/*! For license information please see main.bundle.js.LICENSE.txt */ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b6d0de9d-a929-56d7-8a6c-43f700470084")}catch(e){}}(); (()=>{var __webpack_modules__={8:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(82284);function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,h=n?i-1:0,d=n?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+h],h+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(t*l-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*m}},528:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},1038:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{default:()=>f}),e.exports=(r=h,u(o({},"__esModule",{value:!0}),r));var d=((e,t,n)=>(n=null!=e?i(l(e)):{},u(e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(40295));class f extends d.default{byteSize="variable";randomValue(){const e=new Uint8Array(Math.floor(256*Math.random()));for(let t=0;t{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},1189:(e,t,n)=>{"use strict";var r=Array.prototype.slice,i=n(1093),o=Object.keys,a=o?function(e){return o(e)}:n(28875),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1356:(e,t,n)=>{"use strict";let r;t.A=function(){document.body.addEventListener("click",(e=>{try{const n=r(e.target),i=[];let o=n;for(;o;){var t="function"==typeof o.elementType&&o.elementType.displayName;t&&i.push(t),o=o.return}e.__lrName=i}catch(e){console.error("logrocket-react caught an error while hooking into React. Please make sure you are using the correct version of logrocket-react for your version of react-dom.")}}),{capture:!0,passive:!0})};const i=n(40961).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;i&&i.Events&&i.Events[0]?r=i.Events[0]:console.warn("logrocket-react does not work with this version of React")},2069:e=>{e.exports={deg2rad:e=>.017453292519943295*e,rad2deg:e=>57.29577951308232*e,roundToDecimalPlace:(e,t)=>{const n=10**t;return Math.round(e*n)/n},gregorianToJulian:(e,t,n)=>new Date(e,t,n).valueOf()/864e5+2440587.5,zeroArray2D:(e,t)=>Array.from({length:e},(()=>Array(t).fill(0)))}},2076:(e,t,n)=>{"use strict";var r=n(69675),i=n(13541),o=n(52875),a=n(92702),s=function(){try{return delete[].length,!0}catch(e){return!1}}();e.exports=function(e,t,n,l){if(!a(e))throw new r("Assertion failed: `O` must be an Object");if(!i(t))throw new r("Assertion failed: `P` must be a Property Key");if("boolean"!=typeof l)throw new r("Assertion failed: `Throw` must be a Boolean");if(l){if(e[t]=n,s&&!o(e[t],n))throw new r("Attempted to assign to readonly property.");return!0}try{return e[t]=n,!s||o(e[t],n)}catch(e){return!1}}},2138:(e,t,n)=>{"use strict";var r=n(70453),i=n(58068),o=n(69675),a=n(77440),s=r("%Uint8Array%",!0),l=n(27881),c=n(25910),u=n(65015),h=n(84670),d=n(37070),f=n(9957),p=n(64097),m=n(45100),g=n(53795);e.exports=function(e,t,n,r,y,v){var b=d(e);if(!h(e)&&!b)throw new o("Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer");if(!a(t)||t<0)throw new o("Assertion failed: `byteIndex` must be a non-negative integer");if("string"!=typeof n||!f(p.size,"$"+n))throw new o("Assertion failed: `type` must be a Typed Array Element Type");if("number"!=typeof r&&"bigint"!=typeof r)throw new o("Assertion failed: `value` must be a Number or a BigInt");if("boolean"!=typeof y)throw new o("Assertion failed: `isTypedArray` must be a boolean");if("SEQ-CST"!==v&&"UNORDERED"!==v&&"INIT"!==v)throw new o('Assertion failed: `order` must be `"SEQ-CST"`, `"UNORDERED"`, or `"INIT"`');if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("Assertion failed: `isLittleEndian` must be a boolean, if present");if(c(e))throw new o("Assertion failed: ArrayBuffer is detached");if(l(n)?"bigint"!=typeof r:"number"!=typeof r)throw new o("Assertion failed: `value` must be a BigInt if type is ~BIGINT64~ or ~BIGUINT64~, otherwise a Number");var A=p.size["$"+n],x=u(n,r,arguments.length>6?arguments[6]:"little"===m);if(b)throw new i("SharedArrayBuffer is not supported by this implementation");var w=new s(e,t,A);g(x,(function(e,t){w[t]=e}))}},2275:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(80326)),o=function(){function e(e,t){this.id=e,this.apiCall=t}return e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},e}();t.default=o},2520:(e,t,n)=>{const r=n(28854),i=n(88137),o=["keyword","gray","hex"],a={};for(const e of Object.keys(i))a[[...i[e].labels].sort().join("")]=e;const s={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in o&&(t=null),t&&!(t in i))throw new Error("Unknown model: "+t);let n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=r.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,c=i[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"==typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=i[this.model].channels;const n=Array.prototype.slice.call(e,0,c);this.color=d(n,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in a))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=a[r];const{labels:o}=i[this.model],s=[];for(n=0;n(e%360+360)%360)),saturationl:u("hsl",1,h(100)),lightness:u("hsl",2,h(100)),saturationv:u("hsv",1,h(100)),value:u("hsv",2,h(100)),chroma:u("hcg",1,h(100)),gray:u("hcg",2,h(100)),white:u("hwb",1,h(100)),wblack:u("hwb",2,h(100)),cyan:u("cmyk",0,h(100)),magenta:u("cmyk",1,h(100)),yellow:u("cmyk",2,h(100)),black:u("cmyk",3,h(100)),x:u("xyz",0,h(95.047)),y:u("xyz",1,h(100)),z:u("xyz",2,h(108.833)),l:u("lab",0,h(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new l(e):i[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=void 0===t?.5:t,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,c=1-s;return l.rgb(s*n.red()+c*r.red(),s*n.green()+c*r.green(),s*n.blue()+c*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(i)){if(o.includes(e))continue;const{channels:t}=i[e];l.prototype[e]=function(...t){return this.model===e?new l(this):t.length>0?new l(t,e):new l([...(n=i[this.model][e].raw(this.color),Array.isArray(n)?n:[n]),this.valpha],e);var n},l[e]=function(...n){let r=n[0];return"number"==typeof r&&(r=d(n,t)),new l(r,e)}}function c(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function u(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(s[r]||(s[r]=[]))[t]=n;return e=e[0],function(r){let i;return void 0!==r?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function h(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e,t){for(let n=0;n{"use strict";n.d(t,{A:()=>o});var r=n(91515),i=n.n(r);const o=e=>{if(null==e)return e;var t=i()(e);return null!=t?t=(t<<24|t>>>8)>>>0:void 0}},2905:(e,t,n)=>{var r=n(8186),i=n(62792),o=n(29883);i instanceof Function||(i=i.default),e.exports=function(e){if(!e)return[];var t=i(r(e)),n=[];return t.features.forEach((function(e){e.geometry&&(n=n.concat(o(e.geometry.coordinates)))})),n}},2909:e=>{"use strict";e.exports={escapeFacetValue:function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")}}},3098:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>i})},3469:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_ICON_SIZE=t.DEFAULT_ICON_COLOR=void 0,t.createIconSet=function(e,t,n,r){const{postScriptName:h,fontFileName:p,fontStyle:m}="string"==typeof t?{postScriptName:t,fontFileName:n,fontStyle:r}:t,g=p?p.replace(/\.(otf|ttf)$/,""):h,y=o.Platform.select({windows:`/Assets/${p}#${h}`,android:g,web:g,default:h}),v=t=>{const n=e[t]||"?";return"number"==typeof n?String.fromCodePoint(n):n},b=({name:e,size:n=d,color:r=f,style:a,children:c,allowFontScaling:h=!1,innerRef:p,...g})=>{const[b,A]=i.default.useState(!(0,l.isDynamicLoadingEnabled)()||s.dynamicLoader.isLoaded(y)),x=b&&e?v(e):"";(0,i.useEffect)((()=>{let e=!0;return b||"object"!=typeof t||void 0===t.fontSource||s.dynamicLoader.loadFontAsync(y,t.fontSource).finally((()=>{e&&A(!0)})),()=>{e=!1}}),[]);const w={...g,style:[{fontSize:n,color:r},a,{fontFamily:y,fontWeight:"normal",fontStyle:"normal"},m||{}],allowFontScaling:h};return(0,u.jsxs)(o.Text,{ref:p,selectable:!1,...w,children:[x,c]})},A=(0,i.forwardRef)(((e,t)=>(0,u.jsx)(b,{innerRef:t,...e})));A.displayName="Icon";const x=(0,a.default)();return Object.assign(A,{getImageSource:async(e,t=d,n=f)=>{const r=(0,c.ensureGetImageAvailable)(),i=v(e),a=(0,o.processColor)(n),s=`${i}:${t}:${String(a)}`;if(x.has(s))return x.get(s);try{const e={uri:await r.getImageForFont(y,i,t,a),scale:o.PixelRatio.get()};return x.setValue(s,e),e}catch(e){throw x.setError(s,e),e}},getImageSourceSync:(e,t=d,n=f)=>{const r=(0,c.ensureGetImageAvailable)(),i=v(e),a=(0,o.processColor)(n),s=`${i}:${t}:${String(a)}`;if(x.has(s))return x.get(s);try{const e={uri:r.getImageForFontSync(y,i,t,a),scale:o.PixelRatio.get()};return x.setValue(s,e),e}catch(e){throw x.setError(s,e),e}}})};var r,i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(31513),a=(r=n(84963))&&r.__esModule?r:{default:r},s=n(64310),l=n(46985),c=n(61356),u=n(74848);function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}const d=t.DEFAULT_ICON_SIZE=12,f=t.DEFAULT_ICON_COLOR="black"},3533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(){function e(e){this.apiCall=e}return e.prototype.upsert=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){return[2,this.apiCall.put(this.endpointPath(e),t)]}))}))},e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/stopwords"},enumerable:!1,configurable:!0}),e}();t.default=i},3918:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;te.length)&&(n=e.length),e.substring(n-t.length,n)===t}var v="",b="",A="",x="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function C(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function S(e){return m(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var E=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(E,e);var n,r,a,c,u=(n=E,r=h(),function(){var e,t=f(n);if(r){var i=f(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return s(this,e)});function E(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),"object"!==p(e)||null===e)throw new g("options","Object",e);var n=e.message,r=e.operator,i=e.stackStartFn,o=e.actual,a=e.expected,c=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=u.call(this,String(n));else if({env:{}}.stderr&&{env:{}}.stderr.isTTY&&({env:{}}.stderr&&{env:{}}.stderr.getColorDepth&&1!=={env:{}}.stderr.getColorDepth()?(v="",b="",x="",A=""):(v="",b="",x="",A="")),"object"===p(o)&&null!==o&&"object"===p(a)&&null!==a&&"stack"in o&&o instanceof Error&&"stack"in a&&a instanceof Error&&(o=C(o),a=C(a)),"deepStrictEqual"===r||"strictEqual"===r)t=u.call(this,function(e,t,n){var r="",i="",o=0,a="",s=!1,l=S(e),c=l.split("\n"),u=S(t).split("\n"),h=0,d="";if("strictEqual"===n&&"object"===p(e)&&"object"===p(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===c.length&&1===u.length&&c[0]!==u[0]){var f=c[0].length+u[0].length;if(f<=10){if(!("object"===p(e)&&null!==e||"object"===p(t)&&null!==t||0===e&&0===t))return"".concat(w[n],"\n\n")+"".concat(c[0]," !== ").concat(u[0],"\n")}else if("strictEqualObject"!==n&&f<({env:{}}.stderr&&{env:{}}.stderr.isTTY?{env:{}}.stderr.columns:80)){for(;c[0][h]===u[0][h];)h++;h>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",h),"^"),h=0)}}for(var m=c[c.length-1],g=u[u.length-1];m===g&&(h++<2?a="\n ".concat(m).concat(a):r=m,c.pop(),u.pop(),0!==c.length&&0!==u.length);)m=c[c.length-1],g=u[u.length-1];var C=Math.max(c.length,u.length);if(0===C){var E=l.split("\n");if(E.length>30)for(E[26]="".concat(v,"...").concat(x);E.length>27;)E.pop();return"".concat(w.notIdentical,"\n\n").concat(E.join("\n"),"\n")}h>3&&(a="\n".concat(v,"...").concat(x).concat(a),s=!0),""!==r&&(a="\n ".concat(r).concat(a),r="");var k=0,T=w[n]+"\n".concat(b,"+ actual").concat(x," ").concat(A,"- expected").concat(x),I=" ".concat(v,"...").concat(x," Lines skipped");for(h=0;h1&&h>2&&(O>4?(i+="\n".concat(v,"...").concat(x),s=!0):O>3&&(i+="\n ".concat(u[h-2]),k++),i+="\n ".concat(u[h-1]),k++),o=h,r+="\n".concat(A,"-").concat(x," ").concat(u[h]),k++;else if(u.length1&&h>2&&(O>4?(i+="\n".concat(v,"...").concat(x),s=!0):O>3&&(i+="\n ".concat(c[h-2]),k++),i+="\n ".concat(c[h-1]),k++),o=h,i+="\n".concat(b,"+").concat(x," ").concat(c[h]),k++;else{var R=u[h],M=c[h],P=M!==R&&(!y(M,",")||M.slice(0,-1)!==R);P&&y(R,",")&&R.slice(0,-1)===M&&(P=!1,M+=","),P?(O>1&&h>2&&(O>4?(i+="\n".concat(v,"...").concat(x),s=!0):O>3&&(i+="\n ".concat(c[h-2]),k++),i+="\n ".concat(c[h-1]),k++),o=h,i+="\n".concat(b,"+").concat(x," ").concat(M),r+="\n".concat(A,"-").concat(x," ").concat(R),k+=2):(i+=r,r="",1!==O&&0!==h||(i+="\n ".concat(M),k++))}if(k>20&&h30)for(d[26]="".concat(v,"...").concat(x);d.length>27;)d.pop();t=1===d.length?u.call(this,"".concat(h," ").concat(d[0])):u.call(this,"".concat(h,"\n\n").concat(d.join("\n"),"\n"))}else{var f=S(o),m="",k=w[r];"notDeepEqual"===r||"notEqual"===r?(f="".concat(w[r],"\n\n").concat(f)).length>1024&&(f="".concat(f.slice(0,1021),"...")):(m="".concat(S(a)),f.length>512&&(f="".concat(f.slice(0,509),"...")),m.length>512&&(m="".concat(m.slice(0,509),"...")),"deepEqual"===r||"equal"===r?f="".concat(k,"\n\n").concat(f,"\n\nshould equal\n\n"):m=" ".concat(r," ").concat(m)),t=u.call(this,"".concat(f).concat(m))}return Error.stackTraceLimit=c,t.generatedMessage=!n,Object.defineProperty(l(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=o,t.expected=a,t.operator=r,Error.captureStackTrace&&Error.captureStackTrace(l(t),i),t.stack,t.name="AssertionError",s(t)}return a=E,(c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return m(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&o(a.prototype,c),Object.defineProperty(a,"prototype",{writable:!1}),E}(c(Error),m.custom);e.exports=E},3932:(e,t)=>{"use strict";function n(e){return e>=48&&e<=57}function r(e){return e>=97&&e<=122||e>=65&&e<=90}Object.defineProperty(t,"__esModule",{value:!0}),t.isDigit=n,t.isLetter=r,t.isNameContinue=function(e){return r(e)||n(e)||95===e},t.isNameStart=function(e){return r(e)||95===e},t.isWhiteSpace=function(e){return 9===e||32===e}},4078:(e,t,n)=>{"use strict";function r(e,t){}n.d(t,{m:()=>r})},4146:(e,t,n)=>{"use strict";var r=n(44363),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=f(n);i&&i!==p&&e(t,i,r)}var a=u(n);h&&(a=a.concat(h(n)));for(var s=l(t),m=l(n),g=0;g{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},4477:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,i=e[r];if(!(0>>1;ro(l,n))co(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(co(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],h=1,d=null,f=3,p=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function A(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,A(e),!m)if(null!==r(c))m=!0,M();else{var t=r(u);null!==t&&P(x,t.startTime-e)}}var w,C=!1,S=-1,E=5,k=-1;function T(){return!(t.unstable_now()-ke&&T());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof s){d.callback=s,A(e),n=!0;break t}d===r(c)&&i(c),A(e)}else i(c);d=r(c)}if(null!==d)n=!0;else{var l=r(u);null!==l&&P(x,l.startTime-e),n=!1}}break e}finally{d=null,f=o,p=!1}n=void 0}}finally{n?w():C=!1}}}if("function"==typeof b)w=function(){b(I)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,R=O.port2;O.port1.onmessage=I,w=function(){R.postMessage(null)}}else w=function(){y(I,0)};function M(){C||(C=!0,w())}function P(e,n){S=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,M())},t.unstable_forceFrameRate=function(e){0>e||125a?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(v(S),S=-1):g=!0,P(x,o-a))):(e.sortIndex=s,n(c,e),m||p||(m=!0,M())),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},4633:(e,t,n)=>{var r=n(73738).default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},o=Object.prototype,a=o.hasOwnProperty,s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function h(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{h({},"")}catch(t){h=function(e,t,n){return e[t]=n}}function d(e,n,r,i){var o=n&&n.prototype instanceof m?n:m,a=Object.create(o.prototype);return h(a,"_invoke",function(e,n,r){var i=1;return function(o,a){if(3===i)throw Error("Generator is already running");if(4===i){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=S(s,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===i)throw i=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=3;var c=f(e,n,r);if("normal"===c.type){if(i=r.done?4:2,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=4,r.method="throw",r.arg=c.arg)}}}(e,r,new T(i||[])),!0),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var p={};function m(){}function g(){}function y(){}var v={};h(v,l,(function(){return this}));var b=Object.getPrototypeOf,A=b&&b(b(I([])));A&&A!==o&&a.call(A,l)&&(v=A);var x=y.prototype=m.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,o,s,l){var c=f(e[i],e,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==r(h)&&a.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(h).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var i;h(this,"_invoke",(function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}),!0)}function S(e,n){var r=n.method,i=e.i[r];if(i===t)return n.delegate=null,"throw"===r&&e.i.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=f(i,e.i,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var a=o.arg;return a?a.done?(n[e.r]=a.value,n.next=e.n,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function E(e){this.tryEntries.push(e)}function k(e){var n=e[4]||{};n.type="normal",n.arg=t,e[4]=n}function T(e){this.tryEntries=[[-1]],e.forEach(E,this),this.reset(!0)}function I(e){if(null!=e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i=0;--i){var o=this.tryEntries[i],a=o[4],s=this.prev,l=o[1],c=o[2];if(-1===o[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=o[0]&&o[0]<=s){if(s=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),k(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={i:I(e),r:n,n:r},"next"===this.method&&(this.arg=t),p}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},4742:(e,t,n)=>{"use strict";var r=n(58068),i=n(69675),o=n(77440),a=n(25767),s=n(64097);e.exports=function(e){var t=a(e);if(!t)throw new i("Assertion failed: `O` must be a TypedArray");var n=s.size["$"+s.name["$"+t]];if(!o(n)||n<0)throw new r("Assertion failed: Unknown TypedArray type `"+t+"`");return n}},4761:(e,t,n)=>{"use strict";var r=n(36556),i=r("String.prototype.valueOf"),o=r("Object.prototype.toString"),a=n(49092)();e.exports=function(e){return"string"==typeof e||!(!e||"object"!=typeof e)&&(a?function(e){try{return i(e),!0}catch(e){return!1}}(e):"[object String]"===o(e))}},4909:e=>{new Set,e.exports=function(e,...t){}},4915:(e,t,n)=>{"use strict";var r=n(75880);e.exports=function(e){var t=128&e[3]?-1:1,n=(127&e[3])<<1|e[2]>>7,i=(127&e[2])<<16|e[1]<<8|e[0];return 0===n&&0===i?1===t?0:-0:255===n&&0===i?1===t?1/0:-1/0:255===n&&0!==i?NaN:-127==(n-=127)?t*i*r(2,-149):t*(1+i*r(2,-23))*r(2,n)}},4992:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=e=>{throw new Error("findNodeHandle is not supported on web. Use the ref property on the component instead.")}},5257:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{default:()=>f}),e.exports=(r=h,u(o({},"__esModule",{value:!0}),r));var d=((e,t,n)=>(n=null!=e?i(l(e)):{},u(e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(40295));class f extends d.default{size=2;name;values;get byteSize(){return this.size}constructor(e){super(e);const[,t,n]=/^(.+?)\[(.+,?)+\]$/.exec(e)??[];if(!t)throw new Error(`Invalid field name: ${e}`);if(!n)throw new Error(`Invalid field values: ${e}`);this.name=t,this.values=n.split(",")}decode(e,t){return[this.values[e.getUint16(t)]??"",this.size]}encode(e){const t=this.values.indexOf(e);if(-1===t)throw new d.EncodeError(`Value "${e}" not in allowed values: ${this.values.join(", ")}`);const n=new ArrayBuffer(this.size);return new DataView(n).setUint16(0,t),n}randomValue(){return this.values[Math.floor(Math.random()*this.values.length)]??""}}},5338:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(31247)},5388:(e,t,n)=>{"use strict";var r=n(69675);e.exports=function(e){if(null==e)throw new r(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}},5901:(e,t,n)=>{var r=n(70079);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},5919:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0,t.DirectiveLocation=n,function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(n||(t.DirectiveLocation=n={}))},5963:(e,t,n)=>{"use strict";n.d(t,{A:()=>H});var r=n(3098),i=n(58168),o=n(8),a=n(71217),s=n(34951),l=n(9176),c=n(43999),u=n(59819);const h=class{constructor(e,t){this._delay=t,this._callback=e}dispose(e){void 0===e&&(e={abort:!1}),this._taskHandle&&(this._taskHandle.cancel(),e.abort||this._callback(),this._taskHandle=null)}schedule(){if(!this._taskHandle){var e=setTimeout((()=>{this._taskHandle=u.A.runAfterInteractions((()=>{this._taskHandle=null,this._callback()}))}),this._delay);this._taskHandle={cancel:()=>clearTimeout(e)}}}},d=function(e,t,n){return tn?n:t};var f=n(90646),p=n.n(f);class m{constructor(e){p()(e>=0,"CellRenderMask must contain a non-negative number os cells"),this._numCells=e,this._regions=0===e?[]:[{first:0,last:e-1,isSpacer:!0}]}enumerateRegions(){return this._regions}addCells(e){if(p()(e.first>=0&&e.first=-1&&e.last=e.first-1,"CellRenderMask.addCells called with invalid cell range"),!(e.lastu.last&&(a.isSpacer?c.push({first:u.last+1,last:a.last,isSpacer:!0}):u.last=a.last);var h=[...l,u,...c],d=s-r+1;this._regions.splice(r,d,...h)}}}numCells(){return this._numCells}equals(e){return this._numCells===e._numCells&&this._regions.length===e._regions.length&&this._regions.every(((t,n)=>t.first===e._regions[n].first&&t.last===e._regions[n].last&&t.isSpacer===e._regions[n].isSpacer))}_findRegion(e){for(var t=0,n=this._regions.length-1;t<=n;){var r=Math.floor((t+n)/2),i=this._regions[r];if(e>=i.first&&e<=i.last)return[i,r];ei.last&&(t=r+1)}p()(!1,"A region was not found containing cellIdx "+e)}}class g{constructor(){this._cellKeyToChildren=new Map,this._childrenToCellKey=new Map}add(e,t){var n;p()(!this._childrenToCellKey.has(e),"Trying to add already present child list");var r=null!==(n=this._cellKeyToChildren.get(t))&&void 0!==n?n:new Set;r.add(e),this._cellKeyToChildren.set(t,r),this._childrenToCellKey.set(e,t)}remove(e){var t=this._childrenToCellKey.get(e);p()(null!=t,"Trying to remove non-present child list"),this._childrenToCellKey.delete(e);var n=this._cellKeyToChildren.get(t);p()(n,"_cellKeyToChildren should contain cellKey"),n.delete(e),0===n.size&&this._cellKeyToChildren.delete(t)}forEach(e){for(var t,n=(0,r.A)(this._cellKeyToChildren.values());!(t=n()).done;)for(var i,o=t.value,a=(0,r.A)(o);!(i=a()).done;)e(i.value)}forEachInCell(e,t){for(var n,i,o=null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[],a=(0,r.A)(o);!(i=a()).done;)t(i.value)}anyInCell(e,t){for(var n,i,o=null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[],a=(0,r.A)(o);!(i=a()).done;)if(t(i.value))return!0;return!1}size(){return this._childrenToCellKey.size}}class y{constructor(){this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0}}var v=[],b=10,A=null;const x=class{static addListener(e){return null===A&&console.warn("Call `FillRateHelper.setSampleRate` before `addListener`."),v.push(e),{remove:()=>{v=v.filter((t=>e!==t))}}}static setSampleRate(e){A=e}static setMinSampleCount(e){b=e}constructor(e){this._anyBlankStartTime=null,this._enabled=!1,this._info=new y,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=e,this._enabled=(A||0)>Math.random(),this._resetData()}activate(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=n.g.performance.now())}deactivateAndFlush(){if(this._enabled){var e=this._samplesStartTime;if(null!=e)if(this._info.sample_counte(r))),this._resetData()}}}computeBlankness(e,t,r){if(!this._enabled||0===e.getItemCount(e.data)||t.last0&&(u=Math.min(s,Math.max(0,d.offset-o)));for(var f=0,p=t.last,m=this._getFrameMetrics(p,e);p>=t.first&&(!m||!m.inLayout);)m=this._getFrameMetrics(p,e),p--;if(m&&p0?(this._anyBlankStartTime=c,this._info.any_blank_speed_sum+=l,this._info.any_blank_count++,this._info.pixels_blank+=y,v>.5&&(this._mostlyBlankStartTime=c,this._info.mostly_blank_count++)):(l<.01||Math.abs(i)<1)&&this.deactivateAndFlush(),v}enabled(){return this._enabled}_resetData(){this._anyBlankStartTime=null,this._info=new y,this._mostlyBlankStartTime=null,this._samplesStartTime=null}};var w=n(96540);class C extends w.PureComponent{constructor(e){super(e),this._inAsyncStateUpdate=!1,this._installSetStateHooks()}setState(e,t){"function"==typeof e?super.setState(((t,n)=>{var r;this._inAsyncStateUpdate=!0;try{r=e(t,n)}catch(e){throw e}finally{this._inAsyncStateUpdate=!1}return r}),t):super.setState(e,t)}_installSetStateHooks(){var e=this,t=this.props,n=this.state;Object.defineProperty(this,"props",{get:()=>(p()(!e._inAsyncStateUpdate,'"this.props" should not be accessed during state updates'),t),set(e){t=e}}),Object.defineProperty(this,"state",{get:()=>(p()(!e._inAsyncStateUpdate,'"this.state" should not be acceessed during state updates'),n),set(e){n=e}})}}function S(e,t,n,r,i,o){if(function(e,t,n){return e>=0&&t<=n&&t>e}(n,r,i))return!0;var a=function(e,t,n){var r=Math.min(t,n)-Math.max(e,0);return Math.max(0,r)}(n,r,i);return 100*(e?a/i:a/o)>=t}const E=class{constructor(e){void 0===e&&(e={viewAreaCoveragePercentThreshold:0}),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=e}dispose(){this._timers.forEach(clearTimeout)}computeViewableItems(e,t,n,r,i){var o=e.getItemCount(e.data),a=this._config,s=a.itemVisiblePercentThreshold,l=a.viewAreaCoveragePercentThreshold,c=null!=l,u=c?l:s;p()(null!=u&&null!=s!=(null!=l),"Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold");var h=[];if(0===o)return h;var d=-1,f=i||{first:0,last:o-1},m=f.first,g=f.last;if(g>=o)return console.warn("Invalid render range computing viewability "+JSON.stringify({renderRange:i,itemCount:o})),[];for(var y=m;y<=g;y++){var v=r(y,e);if(v){var b=v.offset-t,A=b+v.length;if(b0)d=y,S(c,u,b,A,n,v.length)&&h.push(y);else if(d>=0)break}}return h}onUpdate(e,t,n,r,i,o,a){var s=e.getItemCount(e.data);if((!this._config.waitForInteraction||this._hasInteracted)&&0!==s&&r(0,e)){var l=[];if(s&&(l=this.computeViewableItems(e,t,n,r,a)),this._viewableIndices.length!==l.length||!this._viewableIndices.every(((e,t)=>e===l[t])))if(this._viewableIndices=l,this._config.minimumViewTime){var c=setTimeout((()=>{this._timers.delete(c),this._onUpdateSync(e,l,o,i)}),this._config.minimumViewTime);this._timers.add(c)}else this._onUpdateSync(e,l,o,i)}}resetViewableIndices(){this._viewableIndices=[]}recordInteraction(){this._hasInteracted=!0}_onUpdateSync(e,t,n,i){t=t.filter((e=>this._viewableIndices.includes(e)));for(var a,s=this._viewableItems,l=new Map(t.map((t=>{var n=i(t,!0,e);return[n.key,n]}))),c=[],u=(0,r.A)(l);!(a=u()).done;){var h=a.value,d=h[0],f=h[1];s.has(d)||c.push(f)}for(var p,m=(0,r.A)(s);!(p=m()).done;){var g=p.value,y=g[0],v=g[1];l.has(y)||c.push((0,o.A)((0,o.A)({},v),{},{isViewable:!1}))}c.length>0&&(this._viewableItems=l,n({viewableItems:Array.from(l.values()),changed:c,viewabilityConfig:this._config}))}};var k=w.createContext(null);function T(e){var t=e.children,n=e.value,r=(0,w.useMemo)((()=>({cellKey:null,getScrollMetrics:n.getScrollMetrics,horizontal:n.horizontal,getOutermostParentListRef:n.getOutermostParentListRef,registerAsNestedChild:n.registerAsNestedChild,unregisterAsNestedChild:n.unregisterAsNestedChild})),[n.getScrollMetrics,n.horizontal,n.getOutermostParentListRef,n.registerAsNestedChild,n.unregisterAsNestedChild]);return w.createElement(k.Provider,{value:r},t)}function I(e){var t=e.cellKey,n=e.children,r=(0,w.useContext)(k),i=(0,w.useMemo)((()=>null==r?null:(0,o.A)((0,o.A)({},r),{},{cellKey:t})),[r,t]);return w.createElement(k.Provider,{value:i},n)}class O extends w.Component{constructor(){super(...arguments),this.state={separatorProps:{highlighted:!1,leadingItem:this.props.item}},this._separators={highlight:()=>{var e=this.props,t=e.cellKey,n=e.prevCellKey;this.props.onUpdateSeparators([t,n],{highlighted:!0})},unhighlight:()=>{var e=this.props,t=e.cellKey,n=e.prevCellKey;this.props.onUpdateSeparators([t,n],{highlighted:!1})},updateProps:(e,t)=>{var n=this.props,r=n.cellKey,i=n.prevCellKey;this.props.onUpdateSeparators(["leading"===e?i:r],t)}},this._onLayout=e=>{this.props.onCellLayout&&this.props.onCellLayout(e,this.props.cellKey,this.props.index)}}static getDerivedStateFromProps(e,t){return{separatorProps:(0,o.A)((0,o.A)({},t.separatorProps),{},{leadingItem:e.item})}}updateSeparatorProps(e){this.setState((t=>({separatorProps:(0,o.A)((0,o.A)({},t.separatorProps),e)})))}componentWillUnmount(){this.props.onUnmount(this.props.cellKey)}_renderElement(e,t,n,r){return e&&t&&console.warn("VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem."),t?w.createElement(t,{item:n,index:r,separators:this._separators}):e?e({item:n,index:r,separators:this._separators}):void p()(!1,"VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.")}render(){var e=this.props,t=e.CellRendererComponent,n=e.ItemSeparatorComponent,r=e.ListItemComponent,o=e.cellKey,a=e.horizontal,s=e.item,c=e.index,u=e.inversionStyle,h=e.onCellFocusCapture,d=e.onCellLayout,f=e.renderItem,p=this._renderElement(f,r,s,c),m=w.isValidElement(n)?n:n&&w.createElement(n,this.state.separatorProps),g=u?a?[R.rowReverse,u]:[R.columnReverse,u]:a?[R.row,u]:u,y=t?w.createElement(t,(0,i.A)({cellKey:o,index:c,item:s,style:g,onFocusCapture:h},d&&{onLayout:this._onLayout}),p,m):w.createElement(l.A,(0,i.A)({style:g,onFocusCapture:h},d&&{onLayout:this._onLayout}),p,m);return w.createElement(I,{cellKey:this.props.cellKey},y)}}var R=c.A.create({row:{flexDirection:"row"},rowReverse:{flexDirection:"row-reverse"},columnReverse:{flexDirection:"column-reverse"}}),M=n(56074),P=n(40801),D=n.n(P),j=!1,B="";function L(e){return null!=e&&e}function F(e){return null!=e?e:10}function N(e){return null!=e?e:2}function _(e,t){return e*t/2}function z(e){return null!=e?e:21}class V extends C{scrollToEnd(e){var t=!e||e.animated,n=this.props.getItemCount(this.props.data)-1;if(!(n<0)){var r=this.__getFrameMetricsApprox(n,this.props),i=Math.max(0,r.offset+r.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(L(this.props.horizontal)?{x:i,animated:t}:{y:i,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}}scrollToIndex(e){var t=this.props,n=t.data,r=t.horizontal,i=t.getItemCount,o=t.getItemLayout,a=t.onScrollToIndexFailed,s=e.animated,l=e.index,c=e.viewOffset,u=e.viewPosition;if(p()(l>=0,"scrollToIndex out of range: requested index "+l+" but minimum is 0"),p()(i(n)>=1,"scrollToIndex out of range: item length "+i(n)+" but minimum is 1"),p()(lthis._highestMeasuredFrameIndex)return p()(!!a,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void a({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:l});var h=this.__getFrameMetricsApprox(Math.floor(l),this.props),d=Math.max(0,this._getOffsetApprox(l,this.props)-(u||0)*(this._scrollMetrics.visibleLength-h.length))-(c||0);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(r?{x:d,animated:s}:{y:d,animated:s}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}scrollToItem(e){for(var t=e.item,n=this.props,r=n.data,i=n.getItem,a=(0,n.getItemCount)(r),s=0;s{e.recordInteraction()})),this._viewabilityTuples.forEach((e=>{e.viewabilityHelper.recordInteraction()})),this._updateViewableItems(this.props,this.state.cellsAroundViewport)}flashScrollIndicators(){null!=this._scrollRef&&this._scrollRef.flashScrollIndicators()}getScrollResponder(){if(this._scrollRef&&this._scrollRef.getScrollResponder)return this._scrollRef.getScrollResponder()}getScrollableNode(){return this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode():this._scrollRef}getScrollRef(){return this._scrollRef&&this._scrollRef.getScrollRef?this._scrollRef.getScrollRef():this._scrollRef}_getCellKey(){var e;return(null==(e=this.context)?void 0:e.cellKey)||"rootList"}hasMore(){return this._hasMore}constructor(e){var t;if(super(e),this._getScrollMetrics=()=>this._scrollMetrics,this._getOutermostParentListRef=()=>this._isNestedWithSameOrientation()?this.context.getOutermostParentListRef():this,this._registerAsNestedChild=e=>{this._nestedChildLists.add(e.ref,e.cellKey),this._hasInteracted&&e.ref.recordInteraction()},this._unregisterAsNestedChild=e=>{this._nestedChildLists.remove(e.ref)},this._onUpdateSeparators=(e,t)=>{e.forEach((e=>{var n=null!=e&&this._cellRefs[e];n&&n.updateSeparatorProps(t)}))},this._getSpacerKey=e=>e?"height":"width",this._averageCellLength=0,this._cellRefs={},this._frames={},this._footerLength=0,this._hasTriggeredInitialScrollToIndex=!1,this._hasInteracted=!1,this._hasMore=!1,this._hasWarned={},this._headerLength=0,this._hiPriInProgress=!1,this._highestMeasuredFrameIndex=0,this._indicesToKeys=new Map,this._lastFocusedCellKey=null,this._nestedChildLists=new g,this._offsetFromParentVirtualizedList=0,this._prevParentOffset=0,this._scrollMetrics={contentLength:0,dOffset:0,dt:10,offset:0,timestamp:0,velocity:0,visibleLength:0,zoomScale:1},this._scrollRef=null,this._sentStartForContentLength=0,this._sentEndForContentLength=0,this._totalCellLength=0,this._totalCellsMeasured=0,this._viewabilityTuples=[],this._captureScrollRef=e=>{this._scrollRef=e},this._defaultRenderScrollComponent=e=>{var t,n=e.onRefresh;return this._isNestedWithSameOrientation()?w.createElement(l.A,e):n?(p()("boolean"==typeof e.refreshing,"`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `"+JSON.stringify(null!==(t=e.refreshing)&&void 0!==t?t:"undefined")+"`"),w.createElement(s.A,(0,i.A)({},e,{refreshControl:null==e.refreshControl?w.createElement(a.A,{refreshing:e.refreshing,onRefresh:n,progressViewOffset:e.progressViewOffset}):e.refreshControl}))):w.createElement(s.A,e)},this._onCellLayout=(e,t,n)=>{var r=e.nativeEvent.layout,i={offset:this._selectOffset(r),length:this._selectLength(r),index:n,inLayout:!0},o=this._frames[t];o&&i.offset===o.offset&&i.length===o.length&&n===o.index?this._frames[t].inLayout=!0:(this._totalCellLength+=i.length-(o?o.length:0),this._totalCellsMeasured+=o?0:1,this._averageCellLength=this._totalCellLength/this._totalCellsMeasured,this._frames[t]=i,this._highestMeasuredFrameIndex=Math.max(this._highestMeasuredFrameIndex,n),this._scheduleCellsToRenderUpdate()),this._triggerRemeasureForChildListsInCell(t),this._computeBlankness(),this._updateViewableItems(this.props,this.state.cellsAroundViewport)},this._onCellUnmount=e=>{delete this._cellRefs[e];var t=this._frames[e];t&&(this._frames[e]=(0,o.A)((0,o.A)({},t),{},{inLayout:!1}))},this._onLayout=e=>{this._isNestedWithSameOrientation()?this.measureLayoutRelativeToContainingList():this._scrollMetrics.visibleLength=this._selectLength(e.nativeEvent.layout),this.props.onLayout&&this.props.onLayout(e),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._onLayoutEmpty=e=>{this.props.onLayout&&this.props.onLayout(e)},this._onLayoutFooter=e=>{this._triggerRemeasureForChildListsInCell(this._getFooterCellKey()),this._footerLength=this._selectLength(e.nativeEvent.layout)},this._onLayoutHeader=e=>{this._headerLength=this._selectLength(e.nativeEvent.layout)},this._onContentSizeChange=(e,t)=>{e>0&&t>0&&null!=this.props.initialScrollIndex&&this.props.initialScrollIndex>0&&!this._hasTriggeredInitialScrollToIndex&&(null==this.props.contentOffset&&(this.props.initialScrollIndex{var t=e.offset-this._offsetFromParentVirtualizedList,n=e.visibleLength,r=t-this._scrollMetrics.offset;return{visibleLength:n,contentLength:this._scrollMetrics.contentLength,offset:t,dOffset:r}},this._onScroll=e=>{this._nestedChildLists.forEach((t=>{t._onScroll(e)})),this.props.onScroll&&this.props.onScroll(e);var t=e.timeStamp,n=this._selectLength(e.nativeEvent.layoutMeasurement),r=this._selectLength(e.nativeEvent.contentSize),i=this._selectOffset(e.nativeEvent.contentOffset),o=i-this._scrollMetrics.offset;if(this._isNestedWithSameOrientation()){if(0===this._scrollMetrics.contentLength)return;var a=this._convertParentScrollMetrics({visibleLength:n,offset:i});n=a.visibleLength,r=a.contentLength,i=a.offset,o=a.dOffset}var s=this._scrollMetrics.timestamp?Math.max(1,t-this._scrollMetrics.timestamp):1,l=o/s;s>500&&this._scrollMetrics.dt>500&&r>5*n&&!this._hasWarned.perf&&(function(){console.log(...arguments)}("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:s,prevDt:this._scrollMetrics.dt,contentLength:r}),this._hasWarned.perf=!0);var c=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;this._scrollMetrics={contentLength:r,dt:s,dOffset:o,offset:i,timestamp:t,velocity:l,visibleLength:n,zoomScale:c},this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.props&&(this._maybeCallOnEdgeReached(),0!==l&&this._fillRateHelper.activate(),this._computeBlankness(),this._scheduleCellsToRenderUpdate())},this._onScrollBeginDrag=e=>{this._nestedChildLists.forEach((t=>{t._onScrollBeginDrag(e)})),this._viewabilityTuples.forEach((e=>{e.viewabilityHelper.recordInteraction()})),this._hasInteracted=!0,this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this._onScrollEndDrag=e=>{this._nestedChildLists.forEach((t=>{t._onScrollEndDrag(e)}));var t=e.nativeEvent.velocity;t&&(this._scrollMetrics.velocity=this._selectOffset(t)),this._computeBlankness(),this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this._onMomentumScrollBegin=e=>{this._nestedChildLists.forEach((t=>{t._onMomentumScrollBegin(e)})),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this._onMomentumScrollEnd=e=>{this._nestedChildLists.forEach((t=>{t._onMomentumScrollEnd(e)})),this._scrollMetrics.velocity=0,this._computeBlankness(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this._updateCellsToRender=()=>{this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.setState(((e,t)=>{var n=this._adjustCellsAroundViewport(t,e.cellsAroundViewport),r=V._createRenderMask(t,n,this._getNonViewportRenderRegions(t));return n.first===e.cellsAroundViewport.first&&n.last===e.cellsAroundViewport.last&&r.equals(e.renderMask)?null:{cellsAroundViewport:n,renderMask:r}}))},this._createViewToken=(e,t,n)=>{var r=n.data,i=(0,n.getItem)(r,e);return{index:e,item:i,key:this._keyExtractor(i,e,n),isViewable:t}},this._getOffsetApprox=(e,t)=>{if(Number.isInteger(e))return this.__getFrameMetricsApprox(e,t).offset;var n=this.__getFrameMetricsApprox(Math.floor(e),t),r=e-Math.floor(e);return n.offset+r*n.length},this.__getFrameMetricsApprox=(e,t)=>{var n=this._getFrameMetrics(e,t);if(n&&n.index===e)return n;var r=t.data,i=t.getItemCount,o=t.getItemLayout;return p()(e>=0&&e{var n=t.data,r=t.getItem,i=t.getItemCount,o=t.getItemLayout;p()(e>=0&&e{if(!this._lastFocusedCellKey||!this._cellRefs[this._lastFocusedCellKey])return[];var t=this._cellRefs[this._lastFocusedCellKey].props.index,n=e.getItemCount(e.data);if(t>=n||this._keyExtractor(e.getItem(e.data,t),t,e)!==this._lastFocusedCellKey)return[];for(var r=t,i=0,o=r-1;o>=0&&i({viewabilityHelper:new E(e.viewabilityConfig),onViewableItemsChanged:e.onViewableItemsChanged})));else{var n=this.props,r=n.onViewableItemsChanged,c=n.viewabilityConfig;r&&this._viewabilityTuples.push({viewabilityHelper:new E(c),onViewableItemsChanged:r})}var u=V._initialRenderRegion(e);this.state={cellsAroundViewport:u,renderMask:V._createRenderMask(e,u)},this.invertedWheelEventHandler=e=>{var t=this.props.horizontal?e.target.scrollLeft:e.target.scrollTop,n=this.props.horizontal?e.target.scrollWidth:e.target.scrollHeight,r=this.props.horizontal?e.target.clientWidth:e.target.clientHeight,i=n>r,o=this.props.horizontal?e.deltaX||e.wheelDeltaX:e.deltaY||e.wheelDeltaY,a=o;i&&(a=o<0?Math.min(o+t,0):Math.max(o-(n-r-t),0));var s=o-a;if(this.props.inverted&&this._scrollRef&&this._scrollRef.getScrollableNode){var l=this._scrollRef.getScrollableNode();if(this.props.horizontal){e.target.scrollLeft+=s;var c=l.scrollLeft-a;l.scrollLeft=this.props.getItemLayout?c:Math.min(c,this._totalCellLength)}else{e.target.scrollTop+=s;var u=l.scrollTop-a;l.scrollTop=this.props.getItemLayout?u:Math.min(u,this._totalCellLength)}e.preventDefault()}}}_checkProps(e){var t=e.onScroll,n=e.windowSize,r=e.getItemCount,i=e.data,o=e.initialScrollIndex;p()(!t||!t.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),p()(z(n)>0,"VirtualizedList: The windowSize prop must be present and set to a value greater than 0."),p()(r,'VirtualizedList: The "getItemCount" prop must be provided');var a=r(i);null==o||this._hasTriggeredInitialScrollToIndex||!(o<0||a>0&&o>=a)||this._hasWarned.initialScrollIndex||(console.warn('initialScrollIndex "'+o+'" is not valid (list has '+a+" items)"),this._hasWarned.initialScrollIndex=!0)}static _createRenderMask(e,t,n){var r=e.getItemCount(e.data);p()(t.first>=0&&t.last>=t.first-1&&t.last0){for(var o=0,a=[t,...null!=n?n:[]];o=0;o--)if(t.has(o+i)){n.addCells({first:o,last:o});break}}_adjustCellsAroundViewport(e,t){var n,r=e.data,i=e.getItemCount,o=N(e.onEndReachedThreshold),a=this._scrollMetrics,s=a.contentLength,l=a.offset,c=a.visibleLength,u=s-c-l;if(c<=0||s<=0)return t.last>=i(r)?V._constrainToItemCount(t,e):t;if(e.disableVirtualization){var h=u=Number.EPSILON)return t.last>=i(r)?V._constrainToItemCount(t,e):t;n=(0,M.pT)(e,F(e.maxToRenderPerBatch),z(e.windowSize),t,this.__getFrameMetricsApprox,this._scrollMetrics),p()(n.last0){var d=this._findFirstChildWithMore(n.first,n.last);n.last=null!=d?d:n.last}return n}_findFirstChildWithMore(e,t){for(var n=e;n<=t;n++){var r=this._indicesToKeys.get(n);if(null!=r&&this._nestedChildLists.anyInCell(r,(e=>e.hasMore())))return n}return null}componentDidMount(){this._isNestedWithSameOrientation()&&this.context.registerAsNestedChild({ref:this,cellKey:this.context.cellKey}),this.setupWebWheelHandler()}componentWillUnmount(){this._isNestedWithSameOrientation()&&this.context.unregisterAsNestedChild({ref:this}),this._updateCellsToRenderBatcher.dispose({abort:!0}),this._viewabilityTuples.forEach((e=>{e.viewabilityHelper.dispose()})),this._fillRateHelper.deactivateAndFlush(),this.teardownWebWheelHandler()}setupWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode().addEventListener("wheel",this.invertedWheelEventHandler):setTimeout((()=>this.setupWebWheelHandler()),50)}teardownWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode&&this._scrollRef.getScrollableNode().removeEventListener("wheel",this.invertedWheelEventHandler)}static getDerivedStateFromProps(e,t){if(e.getItemCount(e.data)===t.renderMask.numCells())return t;var n=V._constrainToItemCount(t.cellsAroundViewport,e);return{cellsAroundViewport:n,renderMask:V._createRenderMask(e,n)}}_pushCells(e,t,n,r,o,a){var s,l=this,c=this.props,u=c.CellRendererComponent,h=c.ItemSeparatorComponent,d=c.ListHeaderComponent,f=c.ListItemComponent,p=c.data,m=c.debug,g=c.getItem,y=c.getItemCount,v=c.getItemLayout,b=c.horizontal,A=c.renderItem,x=d?1:0,C=y(p)-1;o=Math.min(C,o);for(var S=function(){var r=g(p,E),o=l._keyExtractor(r,E,l.props);l._indicesToKeys.set(E,o),n.has(E+x)&&t.push(e.length);var c=null==v||m||l._fillRateHelper.enabled();e.push(w.createElement(O,(0,i.A)({CellRendererComponent:u,ItemSeparatorComponent:El._onCellFocusCapture(o),onUnmount:l._onCellUnmount,ref:e=>{l._cellRefs[o]=e},renderItem:A},c&&{onCellLayout:l._onCellLayout}))),s=o},E=r;E<=o;E++)S()}static _constrainToItemCount(e,t){var n=t.getItemCount(t.data),r=Math.min(n-1,e.last),i=F(t.maxToRenderPerBatch);return{first:d(0,n-1-i,e.first),last:r}}_isNestedWithSameOrientation(){var e=this.context;return!(!e||!!e.horizontal!==L(this.props.horizontal))}_keyExtractor(e,t,n){if(null!=n.keyExtractor)return n.keyExtractor(e,t);var r=(0,M.It)(e,t);return r===String(t)&&(j=!0,e.type&&e.type.displayName&&(B=e.type.displayName)),r}render(){this._checkProps(this.props);var e=this.props,t=e.ListEmptyComponent,n=e.ListFooterComponent,i=e.ListHeaderComponent,a=this.props,s=a.data,c=a.horizontal,u=this.props.inverted?L(this.props.horizontal)?U.horizontallyInverted:U.verticallyInverted:null,h=[],f=new Set(this.props.stickyHeaderIndices),p=[];if(i){f.has(0)&&p.push(0);var m=w.isValidElement(i)?i:w.createElement(i,null);h.push(w.createElement(I,{cellKey:this._getCellKey()+"-header",key:"$header"},w.createElement(l.A,{onLayout:this._onLayoutHeader,style:[u,this.props.ListHeaderComponentStyle]},m)))}var g=this.props.getItemCount(s);if(0===g&&t){var y=w.isValidElement(t)?t:w.createElement(t,null);h.push(w.createElement(I,{cellKey:this._getCellKey()+"-empty",key:"$empty"},w.cloneElement(y,{onLayout:e=>{this._onLayoutEmpty(e),y.props.onLayout&&y.props.onLayout(e)},style:[u,y.props.style]})))}if(g>0){j=!1,B="";for(var v,b=this._getSpacerKey(!c),A=this.state.renderMask.enumerateRegions(),x=function(e){for(var t=e.length-1;t>=0;t--)if(e[t].isSpacer)return e[t];return null}(A),C=(0,r.A)(A);!(v=C()).done;){var S=v.value;if(S.isSpacer){if(this.props.disableVirtualization)continue;var E=S!==x||this.props.getItemLayout?S.last:d(S.first-1,S.last,this._highestMeasuredFrameIndex),k=this.__getFrameMetricsApprox(S.first,this.props),O=this.__getFrameMetricsApprox(E,this.props),R=O.offset+O.length-k.offset;h.push(w.createElement(l.A,{key:"$spacer-"+S.first,style:{[b]:R}}))}else this._pushCells(h,p,f,S.first,S.last,u)}!this._hasWarned.keys&&j&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",B),this._hasWarned.keys=!0)}if(n){var M=w.isValidElement(n)?n:w.createElement(n,null);h.push(w.createElement(I,{cellKey:this._getFooterCellKey(),key:"$footer"},w.createElement(l.A,{onLayout:this._onLayoutFooter,style:[u,this.props.ListFooterComponentStyle]},M)))}var P,D=(0,o.A)((0,o.A)({},this.props),{},{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollBegin:this._onMomentumScrollBegin,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:(P=this.props.scrollEventThrottle,null!=P?P:50),invertStickyHeaders:void 0!==this.props.invertStickyHeaders?this.props.invertStickyHeaders:this.props.inverted,stickyHeaderIndices:p,style:u?[u,this.props.style]:this.props.style});this._hasMore=this.state.cellsAroundViewport.last{e.viewabilityHelper.resetViewableIndices()}));var i=this._hiPriInProgress;this._scheduleCellsToRenderUpdate(),i&&(this._hiPriInProgress=!1)}_computeBlankness(){this._fillRateHelper.computeBlankness(this.props,this.state.cellsAroundViewport,this._scrollMetrics)}_onCellFocusCapture(e){this._lastFocusedCellKey=e,this._updateCellsToRender()}_triggerRemeasureForChildListsInCell(e){this._nestedChildLists.forEachInCell(e,(e=>{e.measureLayoutRelativeToContainingList()}))}measureLayoutRelativeToContainingList(){try{if(!this._scrollRef)return;this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(),((e,t,n,r)=>{this._offsetFromParentVirtualizedList=this._selectOffset({x:e,y:t}),this._scrollMetrics.contentLength=this._selectLength({width:n,height:r});var i=this._convertParentScrollMetrics(this.context.getScrollMetrics());(this._scrollMetrics.visibleLength!==i.visibleLength||this._scrollMetrics.offset!==i.offset)&&(this._scrollMetrics.visibleLength=i.visibleLength,this._scrollMetrics.offset=i.offset,this._nestedChildLists.forEach((e=>{e.measureLayoutRelativeToContainingList()})))}),(e=>{console.warn("VirtualizedList: Encountered an error while measuring a list's offset from its containing VirtualizedList.")}))}catch(e){console.warn("measureLayoutRelativeToContainingList threw an error",e.stack)}}_getFooterCellKey(){return this._getCellKey()+"-footer"}_renderDebugOverlay(){for(var e=this._scrollMetrics.visibleLength/(this._scrollMetrics.contentLength||1),t=[],n=this.props.getItemCount(this.props.data),r=0;rw.createElement(l.A,{key:"f"+n,style:[U.debugOverlayBase,U.debugOverlayFrame,{top:t.offset*e,height:t.length*e}]}))),w.createElement(l.A,{style:[U.debugOverlayBase,U.debugOverlayFrameLast,{top:o*e,height:s*e}]}),w.createElement(l.A,{style:[U.debugOverlayBase,U.debugOverlayFrameVis,{top:c*e,height:u*e}]}))}_selectLength(e){return L(this.props.horizontal)?e.width:e.height}_selectOffset(e){return L(this.props.horizontal)?e.x:e.y}_maybeCallOnEdgeReached(){var e=this.props,t=e.data,n=e.getItemCount,r=e.onStartReached,i=e.onStartReachedThreshold,o=e.onEndReached,a=e.onEndReachedThreshold,s=e.initialScrollIndex,l=this._scrollMetrics,c=l.contentLength,u=l.visibleLength,h=l.offset,d=h,f=c-u-h;d<.001&&(d=0),f<.001&&(f=0);var p=d<=(null!=i?i*u:2),m=f<=(null!=a?a*u:2);o&&this.state.cellsAroundViewport.last===n(t)-1&&m&&this._scrollMetrics.contentLength!==this._sentEndForContentLength?(this._sentEndForContentLength=this._scrollMetrics.contentLength,o({distanceFromEnd:f})):null!=r&&0===this.state.cellsAroundViewport.first&&p&&this._scrollMetrics.contentLength!==this._sentStartForContentLength?s&&0===this._scrollMetrics.timestamp||(this._sentStartForContentLength=this._scrollMetrics.contentLength,r({distanceFromStart:d})):(this._sentStartForContentLength=p?this._sentStartForContentLength:0,this._sentEndForContentLength=m?this._sentEndForContentLength:0)}_scheduleCellsToRenderUpdate(){var e=this.state.cellsAroundViewport,t=e.first,n=e.last,r=this._scrollMetrics,i=r.offset,o=r.visibleLength,a=r.velocity,s=this.props.getItemCount(this.props.data),l=!1,c=function(e){return null!=e?e:2}(this.props.onStartReachedThreshold),u=N(this.props.onEndReachedThreshold);if(t>0){var h=i-this.__getFrameMetricsApprox(t,this.props).offset;l=h<0||a<-2&&h<_(c,o)}if(!l&&n>=0&&n2&&d<_(u,o)}if(l&&(this._averageCellLength||this.props.getItemLayout)&&!this._hiPriInProgress)return this._hiPriInProgress=!0,this._updateCellsToRenderBatcher.dispose({abort:!0}),void this._updateCellsToRender();this._updateCellsToRenderBatcher.schedule()}_updateViewableItems(e,t){this._viewabilityTuples.forEach((n=>{n.viewabilityHelper.onUpdate(e,this._scrollMetrics.offset,this._scrollMetrics.visibleLength,this._getFrameMetrics,this._createViewToken,n.onViewableItemsChanged,t)}))}}V.contextType=k;var U=c.A.create({verticallyInverted:{transform:"scaleY(-1)"},horizontallyInverted:{transform:"scaleX(-1)"},debug:{flex:1},debugOverlayBase:{position:"absolute",top:0,right:0},debugOverlay:{bottom:0,width:20,borderColor:"blue",borderWidth:1},debugOverlayFrame:{left:0,backgroundColor:"orange"},debugOverlayFrameLast:{left:0,borderColor:"green",borderWidth:2},debugOverlayFrameVis:{left:0,borderColor:"red",borderWidth:2}});const H=V},5996:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(86425)),o=n(85978),a=n(37205),s=n(14410),l=r.__importDefault(n(27796)),c=n(47353),u=!0,h=null!={env:{}}.versions&&null!={env:{}}.versions.node&&"undefined"==typeof window,d=function(){function e(e){this.configuration=e,this.apiKey=this.configuration.apiKey,this.nodes=null==this.configuration.nodes?this.configuration.nodes:JSON.parse(JSON.stringify(this.configuration.nodes)),this.nearestNode=null==this.configuration.nearestNode?this.configuration.nearestNode:JSON.parse(JSON.stringify(this.configuration.nearestNode)),this.connectionTimeoutSeconds=this.configuration.connectionTimeoutSeconds,this.healthcheckIntervalSeconds=this.configuration.healthcheckIntervalSeconds,this.numRetriesPerRequest=this.configuration.numRetries,this.retryIntervalSeconds=this.configuration.retryIntervalSeconds,this.sendApiKeyAsQueryParam=this.configuration.sendApiKeyAsQueryParam,this.additionalUserHeaders=this.configuration.additionalHeaders,this.logger=this.configuration.logger,this.initializeMetadataForNodes(),this.currentNodeIndex=-1}return e.prototype.get=function(e,t,n){void 0===t&&(t={});var i=void 0===n?{}:n,o=i.abortSignal,a=void 0===o?null:o,s=i.responseType,l=void 0===s?void 0:s,c=i.streamConfig,u=void 0===c?void 0:c,h=i.isStreamingRequest;return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){return[2,this.performRequest("get",e,{queryParameters:t,abortSignal:a,responseType:l,streamConfig:u,isStreamingRequest:h})]}))}))},e.prototype.delete=function(e,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){return[2,this.performRequest("delete",e,{queryParameters:t,isStreamingRequest:!1})]}))}))},e.prototype.post=function(e,t,n,i,o){void 0===t&&(t={}),void 0===n&&(n={}),void 0===i&&(i={});var a=void 0===o?{}:o,s=a.abortSignal,l=void 0===s?null:s,c=a.responseType,u=void 0===c?void 0:c,h=a.streamConfig,d=void 0===h?void 0:h,f=a.isStreamingRequest;return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(r){return[2,this.performRequest("post",e,{queryParameters:n,bodyParameters:t,additionalHeaders:i,abortSignal:l,responseType:u,streamConfig:d,isStreamingRequest:f})]}))}))},e.prototype.put=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(r){return[2,this.performRequest("put",e,{queryParameters:n,bodyParameters:t,isStreamingRequest:!1})]}))}))},e.prototype.patch=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(r){return[2,this.performRequest("patch",e,{queryParameters:n,bodyParameters:t,isStreamingRequest:!1})]}))}))},e.prototype.getAdapter=function(){if(this.configuration.axiosAdapter)return"function"==typeof this.configuration.axiosAdapter?this.configuration.axiosAdapter:"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent?i.default.getAdapter(this.configuration.axiosAdapter).bind(globalThis):i.default.getAdapter(this.configuration.axiosAdapter)},e.prototype.performRequest=function(e,t,n){var s,l,c,d,f=n.queryParameters,p=void 0===f?null:f,m=n.bodyParameters,g=void 0===m?null:m,y=n.additionalHeaders,v=void 0===y?{}:y,b=n.abortSignal,A=void 0===b?null:b,x=n.responseType,w=void 0===x?void 0:x,C=n.skipConnectionTimeout,S=void 0!==C&&C,E=n.enableKeepAlive,k=void 0===E?void 0:E,T=n.streamConfig,I=void 0===T?void 0:T,O=n.isStreamingRequest;return r.__awaiter(this,void 0,void 0,(function(){var n,f,m,y,b,x,C;return r.__generator(this,(function(E){switch(E.label){case 0:this.configuration.validate(),O&&(this.logger.debug("Request: Performing streaming request to ".concat(t)),h||"undefined"==typeof fetch||(this.logger.debug("Using fetch adapter for browser streaming"),w="stream")),n=Date.now(),m=!1,this.logger.debug("Request #".concat(n,": Performing ").concat(e.toUpperCase()," request: ").concat(t)),y=function(y){var x,C,E,T,R,M,P;return r.__generator(this,(function(D){switch(D.label){case 0:if(x=b.getNextNode(n),b.logger.debug("Request #".concat(n,": Attempting ").concat(e.toUpperCase()," request Try #").concat(y," to Node ").concat(x.index)),A&&A.aborted)return[2,{value:Promise.reject(new Error("Request aborted by caller."))}];C=void 0,D.label=1;case 1:return D.trys.push([1,3,5,6]),(E={method:e,url:b.uriFor(t,x),headers:Object.assign({},b.defaultHeaders(),v,b.additionalUserHeaders),maxContentLength:1/0,maxBodyLength:1/0,validateStatus:function(e){return e>0},transformResponse:[function(e,t){var n=e;return void 0!==t&&"string"==typeof e&&t["content-type"]&&t["content-type"].startsWith("application/json")&&(n=JSON.parse(e)),n}]}).adapter=O&&!h?"fetch":b.getAdapter(),!0!==S&&(E.timeout=1e3*b.connectionTimeoutSeconds),p&&0!==Object.keys(p).length&&(E.params=p),b.sendApiKeyAsQueryParam&&(E.params=E.params||{},E.params["x-typesense-api-key"]=b.apiKey),b.configuration.httpAgent?(b.logger.debug("Request #".concat(n,": Using custom httpAgent")),E.httpAgent=b.configuration.httpAgent):!0===k&&(h?(b.logger.debug("Request #".concat(n,": Enabling KeepAlive")),E.httpAgent=new o.Agent({keepAlive:!0})):b.logger.warn("Request #".concat(n,": Cannot use custom httpAgent in a browser environment to enable keepAlive"))),b.configuration.httpsAgent?(b.logger.debug("Request #".concat(n,": Using custom httpsAgent")),E.httpsAgent=b.configuration.httpsAgent):!0===k&&(h?(b.logger.debug("Request #".concat(n,": Enabling keepAlive")),E.httpsAgent=new a.Agent({keepAlive:!0})):b.logger.warn("Request #".concat(n,": Cannot use custom httpAgent in a browser environment to enable keepAlive"))),b.configuration.paramsSerializer&&(b.logger.debug("Request #".concat(n,": Using custom paramsSerializer")),E.paramsSerializer=b.configuration.paramsSerializer),g&&("string"==typeof g&&0!==g.length||"object"==typeof g&&0!==Object.keys(g).length)&&(E.data=g),A&&(T=i.default.CancelToken,R=T.source(),C=function(){m=!0,R.cancel()},A.addEventListener("abort",C),E.cancelToken=R.token),O?(E.responseType="stream",h||(E.headers=r.__assign(r.__assign({},E.headers),{Accept:"text/event-stream"}))):w&&(E.responseType=w),[4,(0,i.default)(E)];case 2:if((M=D.sent()).status>=1&&M.status<=499&&b.setNodeHealthcheck(x,u),b.logger.debug("Request #".concat(n,": Request to Node ").concat(x.index," was made. Response Code was ").concat(M.status,".")),M.status>=200&&M.status<300)return O?[2,{value:b.handleStreamingResponse(M,I)}]:[2,{value:Promise.resolve(M.data)}];if(M.status<500)return[2,{value:Promise.reject(b.customErrorForResponse(M,null===(s=M.data)||void 0===s?void 0:s.message,E.data))}];throw b.customErrorForResponse(M,null===(l=M.data)||void 0===l?void 0:l.message,E.data);case 3:return P=D.sent(),m||b.setNodeHealthcheck(x,!1),f=P,b.logger.warn("Request #".concat(n,": Request to Node ").concat(x.index,' failed due to "').concat(null!==(c=null==P?void 0:P.code)&&void 0!==c?c:""," ").concat(P.message).concat(null==P.response?"":" - "+JSON.stringify(null===(d=P.response)||void 0===d?void 0:d.data),'"')),m?[2,{value:Promise.reject(new Error("Request aborted by caller."))}]:(O&&b.invokeOnErrorCallback(P,I),y0){var i=s.split("\n");n.processStreamLines(i,a,t)}n.finalizeStreamResult(a,r,e,t)})),o.on("error",(function(e){n.logger.error("Stream error: ".concat(e)),n.invokeOnErrorCallback(e,t),i(e)}))}))},e.prototype.handleBrowserStreaming=function(e,t){var n=this;return this.logger.debug("Processing browser stream"),new Promise((function(i,o){return r.__awaiter(n,void 0,void 0,(function(){return r.__generator(this,(function(n){try{return e.data&&"function"==typeof e.data.getReader?[2,this.handleBrowserReadableStream(e.data,i,o,e,t)]:"string"==typeof e.data?[2,this.handleBrowserStringResponse(e.data,i,e,t)]:"object"==typeof e.data&&null!==e.data?(this.logger.debug("No stream found, but data object is available"),this.invokeOnCompleteCallback(e.data,t),[2,i(e.data)]):(this.logger.error("No usable data found in response"),[2,o(new Error("No usable data found in response"))])}catch(e){this.logger.error("Error processing streaming response: ".concat(e)),this.invokeOnErrorCallback(e,t),o(e)}return[2]}))}))}))},e.prototype.handleBrowserReadableStream=function(e,t,n,i,o){return r.__awaiter(this,void 0,void 0,(function(){var a,s,l,c,u,h,d,f,p,m;return r.__generator(this,(function(r){switch(r.label){case 0:this.logger.debug("Found ReadableStream in response.data"),a=e.getReader(),s=[],l="",r.label=1;case 1:r.trys.push([1,5,,6]),r.label=2;case 2:return[4,a.read()];case 3:return c=r.sent(),u=c.done,h=c.value,u?(this.logger.debug("Stream reading complete"),l.trim()&&(d=l.split("\n"),this.processStreamLines(d,s,o)),[3,4]):(f=(new TextDecoder).decode(h),this.logger.debug("Received chunk: ".concat(f.length," bytes")),p=(l+=f).split("\n"),l=p.pop()||"",this.processStreamLines(p,s,o),[3,2]);case 4:return this.finalizeStreamResult(s,t,i,o),[3,6];case 5:return m=r.sent(),this.logger.error("Stream error: ".concat(m)),this.invokeOnErrorCallback(m,o),n(m),[3,6];case 6:return[2]}}))}))},e.prototype.handleBrowserStringResponse=function(e,t,n,r){this.logger.debug("Processing text response as stream data");var i=[],o=e.split("\n");if(this.processStreamLines(o,i,r),i.length>0){var a=this.combineStreamingChunks(i);this.invokeOnCompleteCallback(a,r),t(a)}else this.logger.debug("No chunks processed, returning original API response"),this.invokeOnCompleteCallback(n.data,r),t(n.data)},e.prototype.processStreamLines=function(e,t,n){for(var r=0,i=e;r0){var i=this.combineStreamingChunks(e);this.logger.debug("Stream processing complete"),this.invokeOnCompleteCallback(i,r),t(i)}else this.logger.debug("No chunks processed, returning original API response"),this.invokeOnCompleteCallback(n.data,r),t(n.data)},e.prototype.combineStreamingChunks=function(e){if(0===e.length)return{};if(1===e.length)return e[0];var t=this.getMessageChunks(e);if(t.length>0)return this.combineMessageChunks(e,t);var n=e[e.length-1];if(!this.isCompleteSearchResponse(n))throw new Error("Last chunk is not a complete search response");return n},e.prototype.getMessageChunks=function(e){return e.filter(this.isChunkMessage)},e.prototype.isChunkMessage=function(e){return"object"==typeof e&&null!==e&&"message"in e&&"conversation_id"in e},e.prototype.combineMessageChunks=function(e,t){this.logger.debug("Found ".concat(t.length," message chunks to combine"));var n=e[e.length-1];if(this.isCompleteSearchResponse(n))return n;var r=e.find(this.isCompleteSearchResponse);if(!r)throw new Error("No metadata chunk found");return r},e.prototype.isCompleteSearchResponse=function(e){return"object"==typeof e&&null!==e&&Object.keys(e).length>0&&("results"in e||"found"in e||"hits"in e||"page"in e||"search_time_ms"in e)},e.prototype.getNextNode=function(e){if(void 0===e&&(e=0),null!=this.nearestNode){if(this.logger.debug("Request #".concat(e,": Nodes Health: Node ").concat(this.nearestNode.index," is ").concat(!0===this.nearestNode.isHealthy?"Healthy":"Unhealthy")),!0===this.nearestNode.isHealthy||this.nodeDueForHealthcheck(this.nearestNode,e))return this.logger.debug("Request #".concat(e,": Updated current node to Node ").concat(this.nearestNode.index)),this.nearestNode;this.logger.debug("Request #".concat(e,": Falling back to individual nodes"))}this.logger.debug("Request #".concat(e,": Nodes Health: ").concat(this.nodes.map((function(e){return"Node ".concat(e.index," is ").concat(!0===e.isHealthy?"Healthy":"Unhealthy")})).join(" || ")));for(var t=this.nodes[0],n=0;n<=this.nodes.length;n++)if(this.currentNodeIndex=(this.currentNodeIndex+1)%this.nodes.length,!0===(t=this.nodes[this.currentNodeIndex]).isHealthy||this.nodeDueForHealthcheck(t,e))return this.logger.debug("Request #".concat(e,": Updated current node to Node ").concat(t.index)),t;return this.logger.debug("Request #".concat(e,": No healthy nodes were found. Returning the next node, Node ").concat(t.index)),t},e.prototype.nodeDueForHealthcheck=function(e,t){void 0===t&&(t=0);var n=Date.now()-e.lastAccessTimestamp>1e3*this.healthcheckIntervalSeconds;return n&&this.logger.debug("Request #".concat(t,": Node ").concat(e.index," has exceeded healtcheckIntervalSeconds of ").concat(this.healthcheckIntervalSeconds,". Adding it back into rotation.")),n},e.prototype.initializeMetadataForNodes=function(){var e=this;null!=this.nearestNode&&(this.nearestNode.index="nearestNode",this.setNodeHealthcheck(this.nearestNode,u)),this.nodes.forEach((function(t,n){t.index=n,e.setNodeHealthcheck(t,u)}))},e.prototype.setNodeHealthcheck=function(e,t){e.isHealthy=t,e.lastAccessTimestamp=Date.now()},e.prototype.uriFor=function(e,t){return null!=t.url?"".concat(t.url).concat(e):"".concat(t.protocol,"://").concat(t.host,":").concat(t.port).concat(t.path).concat(e)},e.prototype.defaultHeaders=function(){var e={};return this.sendApiKeyAsQueryParam||(e["X-TYPESENSE-API-KEY"]=this.apiKey),e["Content-Type"]="application/json",e},e.prototype.timer=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,new Promise((function(t){return setTimeout(t,1e3*e)}))]}))}))},e.prototype.customErrorForResponse=function(e,t,n){var r="Request failed with HTTP code ".concat(e.status);return"string"==typeof t&&""!==t.trim()&&(r+=" | Server said: ".concat(t)),new l.default(r,n,e.status),400===e.status?new s.RequestMalformed(r,n,e.status):401===e.status?new s.RequestUnauthorized(r,n,e.status):404===e.status?new s.ObjectNotFound(r,n,e.status):409===e.status?new s.ObjectAlreadyExists(r,n,e.status):422===e.status?new s.ObjectUnprocessable(r,n,e.status):e.status>=500&&e.status<=599?new s.ServerError(r,n,e.status):new s.HTTPError(r,n,e.status)},e.prototype.invokeOnChunkCallback=function(e,t){if(null==t?void 0:t.onChunk)try{t.onChunk(e)}catch(e){this.logger.warn("Error in onChunk callback: ".concat(e))}},e.prototype.invokeOnCompleteCallback=function(e,t){if(null==t?void 0:t.onComplete)try{t.onComplete(e)}catch(e){this.logger.warn("Error in onComplete callback: ".concat(e))}},e.prototype.invokeOnErrorCallback=function(e,t){if(null==t?void 0:t.onError){var n=(0,c.toErrorWithMessage)(e);try{t.onError(n)}catch(e){this.logger.warn("Error in onError callback: ".concat(e))}}},e}();t.default=d},6188:e=>{"use strict";e.exports=Math.max},6221:(e,t,n)=>{"use strict";var r=n(96540);function i(e){var t="https://react.dev/errors/"+e;if(1{"use strict";e.exports=Object.getOwnPropertyDescriptor},6575:(e,t,n)=>{"use strict";var r=n(69675),i=n(36556),o=i("%ArrayBuffer.prototype.resizable%",!0),a=i("%SharedArrayBuffer.prototype.growable%",!0),s=n(84670),l=n(37070);e.exports=function(e){var t=s(e),n=l(e);if(!t&&!n)throw new r("Assertion failed: `arrayBuffer` must be an ArrayBuffer or SharedArrayBuffer");return t&&o?!o(e):!n||!a||!a(e)}},6781:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(96540));t.default=function(e,t){var n,i,o,a,s;return i=n=function(e){var n,i;function o(){return e.apply(this,arguments)||this}return i=e,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i,o.prototype.render=function(){return r.createElement(t.Provider,{value:this.props.theme},this.props.children)},o}(r.Component),s={theme:e},(a="defaultProps")in(o=n)?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s,i}},6864:function(e,t,n){"use strict";const r=n(16368),{hasOwnProperty:i}=Object.prototype,{propertyIsEnumerable:o}=Object,a=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}),s=this,l={concatArrays:!1,ignoreUndefined:!1},c=e=>{const t=[];for(const n in e)i.call(e,n)&&t.push(n);if(Object.getOwnPropertySymbols){const n=Object.getOwnPropertySymbols(e);for(const r of n)o.call(e,r)&&t.push(r)}return t};function u(e){return Array.isArray(e)?function(e){const t=e.slice(0,0);return c(e).forEach((n=>{a(t,n,u(e[n]))})),t}(e):r(e)?function(e){const t=null===Object.getPrototypeOf(e)?Object.create(null):{};return c(e).forEach((n=>{a(t,n,u(e[n]))})),t}(e):e}const h=(e,t,n,r)=>(n.forEach((n=>{void 0===t[n]&&r.ignoreUndefined||(n in e&&e[n]!==Object.getPrototypeOf(e)?a(e,n,f(e[n],t[n],r)):a(e,n,u(t[n])))})),e),d=(e,t,n)=>{let r=e.slice(0,0),o=0;return[e,t].forEach((t=>{const s=[];for(let n=0;n!s.includes(e))),n)})),r};function f(e,t,n){return n.concatArrays&&Array.isArray(e)&&Array.isArray(t)?d(e,t,n):r(t)&&r(e)?h(e,t,c(t),n):u(t)}e.exports=function(...e){const t=f(u(l),this!==s&&this||{},l);let n={_:{}};for(const i of e)if(void 0!==i){if(!r(i))throw new TypeError("`"+i+"` is not an Option Object");n=f(n,{_:i},t)}return n._}},6927:(e,t,n)=>{"use strict";n.d(t,{Xw:()=>c,kb:()=>f,l5:()=>l,vk:()=>y});var r=n(86610),i=n(51747),o=n(4078),a={},s={height:0,width:0},l=e=>{var t=e.shadowColor,n=e.shadowOffset,o=e.shadowOpacity,a=e.shadowRadius,l=n||s,c=l.height,u=l.width,h=(0,i.A)(u),d=(0,i.A)(c),f=(0,i.A)(a||0),p=(0,r.A)(t||"black",o);if(null!=p&&null!=h&&null!=d&&null!=f)return h+" "+d+" "+f+" "+p},c=e=>{var t=e.textShadowColor,n=e.textShadowOffset,r=e.textShadowRadius,o=n||s,a=o.height,l=o.width,c=r||0,u=(0,i.A)(l),h=(0,i.A)(a),d=(0,i.A)(c),f=(0,i.A)(t,"textShadowColor");if(f&&(0!==a||0!==l||0!==c)&&null!=u&&null!=h&&null!=d)return u+" "+h+" "+d+" "+f},u=e=>{if("string"==typeof e)return e;var t=(0,i.A)(e.offsetX)||0,n=(0,i.A)(e.offsetY)||0,o=(0,i.A)(e.blurRadius)||0,a=(0,i.A)(e.spreadDistance)||0,s=(0,r.A)(e.color)||"black";return(e.inset?"inset ":"")+t+" "+n+" "+o+" "+a+" "+s},h=e=>e.map(u).join(", "),d=e=>{var t=Object.keys(e)[0],n=e[t];return"matrix"===t||"matrix3d"===t?t+"("+n.join(",")+")":t+"("+(0,i.A)(n,t)+")"},f=e=>e.map(d).join(" "),p=e=>e.map((e=>(0,i.A)(e))).join(" "),m={borderBottomEndRadius:"borderEndEndRadius",borderBottomStartRadius:"borderEndStartRadius",borderTopEndRadius:"borderStartEndRadius",borderTopStartRadius:"borderStartStartRadius",borderEndColor:"borderInlineEndColor",borderEndStyle:"borderInlineEndStyle",borderEndWidth:"borderInlineEndWidth",borderStartColor:"borderInlineStartColor",borderStartStyle:"borderInlineStartStyle",borderStartWidth:"borderInlineStartWidth",end:"insetInlineEnd",marginEnd:"marginInlineEnd",marginHorizontal:"marginInline",marginStart:"marginInlineStart",marginVertical:"marginBlock",paddingEnd:"paddingInlineEnd",paddingHorizontal:"paddingInline",paddingStart:"paddingInlineStart",paddingVertical:"paddingBlock",start:"insetInlineStart"},g={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},y=function(e,t){void 0===t&&(t={});var n=e||a,r={};if(t.shadow,null!=n.shadowColor||null!=n.shadowOffset||null!=n.shadowOpacity||null!=n.shadowRadius){(0,o.m)("shadowStyles",'"shadow*" style props are deprecated. Use "boxShadow".');var i=l(n);null!=i&&(r.boxShadow=i)}if(t.textShadow,null!=n.textShadowColor||null!=n.textShadowOffset||null!=n.textShadowRadius){(0,o.m)("textShadowStyles",'"textShadow*" style props are deprecated. Use "textShadow".');var s=c(n);if(null!=s&&null==r.textShadow){var u=n.textShadow,d=u?u+", "+s:s;r.textShadow=d}}for(var y in n)if(null==g[y]&&"shadowColor"!==y&&"shadowOffset"!==y&&"shadowOpacity"!==y&&"shadowRadius"!==y&&"textShadowColor"!==y&&"textShadowOffset"!==y&&"textShadowRadius"!==y){var v=n[y],b=m[y]||y,A=v;if(Object.prototype.hasOwnProperty.call(n,y)&&(b===y||null==n[b]))if("aspectRatio"===b&&"number"==typeof A)r[b]=A.toString();else if("boxShadow"===b){Array.isArray(A)&&(A=h(A));var x=r.boxShadow;r.boxShadow=x?A+", "+x:A}else"fontVariant"===b?(Array.isArray(A)&&A.length>0&&(A=A.join(" ")),r[b]=A):"textAlignVertical"===b?null==n.verticalAlign&&(r.verticalAlign="center"===A?"middle":A):"transform"===b?(Array.isArray(A)&&(A=f(A)),r.transform=A):"transformOrigin"===b?(Array.isArray(A)&&(A=p(A)),r.transformOrigin=A):r[b]=A}return r}},6966:(e,t,n)=>{"use strict";e.exports=n(69600)},7030:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0,t.Kind=n,function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(t.Kind=n={}))},7162:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=!("undefined"==typeof window||!window.document||!window.document.createElement)},7176:(e,t,n)=>{"use strict";var r,i=n(73126),o=n(75795);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!r&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},7577:(e,t,n)=>{"use strict";var r=n(20849);e.exports=function(e,t){var n=(t||[]).map((function(e){return e.split(":")}));return e.reduce((function(e,t){var i=t.split(":"),o=r(n,(function(e){return e[0]===i[0]}));return i.length>1||!o?(e[0].push(i[0]),e[1].push(i[1]),e):(e[0].push(o[0]),e[1].push(o[1]),e)}),[[],[]])}},7583:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printString=function(e){return`"${e.replace(n,r)}"`};const n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function r(e){return i[e.charCodeAt(0)]}const i=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},7697:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(90646),i=n.n(r),o=n(11603),a=n(7162),s=a.A&&!document.hasOwnProperty("hidden")&&document.hasOwnProperty("webkitHidden"),l=["change","memoryWarning"],c=s?"webkitvisibilitychange":"visibilitychange",u=s?"webkitVisibilityState":"visibilityState",h="active",d=null;class f{static get currentState(){if(!f.isAvailable)return h;switch(document[u]){case"hidden":case"prerender":case"unloaded":return"background";default:return h}}static addEventListener(e,t){if(f.isAvailable&&(i()(-1!==l.indexOf(e),'Trying to subscribe to unknown event: "%s"',e),"change"===e))return d||(d=new o.A,document.addEventListener(c,(()=>{d&&d.emit("change",f.currentState)}),!1)),d.addListener(e,t)}}f.isAvailable=a.A&&!!document[u]},8156:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8186:e=>{e.exports=function(e){if(!e||!e.type)return null;var n=t[e.type];return n?"geometry"===n?{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:e}]}:"feature"===n?{type:"FeatureCollection",features:[e]}:"featurecollection"===n?e:void 0:null};var t={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"}},8394:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[o]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[a]=u["[object Map]"]=u["[object Number]"]=u[s]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var h,d,f,p="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,m="object"==typeof self&&self&&self.Object===Object&&self,g=p||m||Function("return this")(),y=t&&!t.nodeType&&t,v=y&&e&&!e.nodeType&&e,b=v&&v.exports===y,A=b&&p.process,x=function(){try{return v&&v.require&&v.require("util").types||A&&A.binding&&A.binding("util")}catch(e){}}(),w=x&&x.isTypedArray,C=Array.prototype,S=Function.prototype,E=Object.prototype,k=g["__core-js_shared__"],T=S.toString,I=E.hasOwnProperty,O=(h=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+h:"",R=E.toString,M=T.call(Object),P=RegExp("^"+T.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=b?g.Buffer:void 0,j=g.Symbol,B=g.Uint8Array,L=(D&&D.allocUnsafe,d=Object.getPrototypeOf,f=Object,function(e){return d(f(e))}),F=Object.create,N=E.propertyIsEnumerable,_=C.splice,z=j?j.toStringTag:void 0,V=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),U=D?D.isBuffer:void 0,H=Math.max,q=Date.now,G=se(g,"Map"),Y=se(Object,"create"),W=function(){function e(){}return function(t){if(!be(t))return{};if(F)return F(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},X.prototype.set=function(e,t){var n=this.__data__,r=ee(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},J.prototype.clear=function(){this.size=0,this.__data__={hash:new Q,map:new(G||X),string:new Q}},J.prototype.delete=function(e){var t=ae(this,e).delete(e);return this.size-=t?1:0,t},J.prototype.get=function(e){return ae(this,e).get(e)},J.prototype.has=function(e){return ae(this,e).has(e)},J.prototype.set=function(e,t){var n=ae(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Z.prototype.clear=function(){this.__data__=new X,this.size=0},Z.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Z.prototype.get=function(e){return this.__data__.get(e)},Z.prototype.has=function(e){return this.__data__.has(e)},Z.prototype.set=function(e,t){var n=this.__data__;if(n instanceof X){var r=n.__data__;if(!G||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new J(r)}return n.set(e,t),this.size=n.size,this};function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":z&&z in Object(e)?function(e){var t=I.call(e,z),n=e[z];try{e[z]=void 0;var r=!0}catch(e){}var i=R.call(e);return r&&(t?e[z]=n:delete e[z]),i}(e):function(e){return R.call(e)}(e)}function re(e){return Ae(e)&&ne(e)==o}function ie(e,t,n,r,i){e!==t&&function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}}(t,(function(o,a){if(i||(i=new Z),be(o))!function(e,t,n,r,i,o,a){var l=ue(e,n),c=ue(t,n),u=a.get(c);if(u)K(e,n,u);else{var h,d,f,p,m,g=o?o(l,c,n+"",e,t,a):void 0,y=void 0===g;if(y){var v=pe(c),b=!v&&ge(c),A=!v&&!b&&xe(c);g=c,v||b||A?pe(l)?g=l:Ae(m=l)&&me(m)?g=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(oe);function de(e,t){return e===t||e!=e&&t!=t}var fe=re(function(){return arguments}())?re:function(e){return Ae(e)&&I.call(e,"callee")&&!N.call(e,"callee")},pe=Array.isArray;function me(e){return null!=e&&ve(e.length)&&!ye(e)}var ge=U||function(){return!1};function ye(e){if(!be(e))return!1;var t=ne(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ve(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ae(e){return null!=e&&"object"==typeof e}var xe=w?function(e){return function(t){return e(t)}}(w):function(e){return Ae(e)&&ve(e.length)&&!!u[ne(e)]};function we(e){return me(e)?function(e,t){var n=pe(e),r=!n&&fe(e),i=!n&&!r&&ge(e),o=!n&&!r&&!i&&xe(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=Ce.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!be(n))return!1;var r=typeof t;return!!("number"==r?me(n)&&le(t,n.length):"string"==r&&t in n)&&de(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n{"use strict";var r=n(70453),i=n(69675),o=r("%Number%"),a=n(86600),s=n(10866),l=n(8679);e.exports=function(e){var t=a(e)?e:s(e,o);if("symbol"==typeof t)throw new i("Cannot convert a Symbol value to a number");if("bigint"==typeof t)throw new i("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof t?l(t):+t}},8507:(e,t,n)=>{var r=n(15659);function i(e,t){return function(n){return t(e(n))}}function o(e,t){for(var n=[t[e].parent,e],o=r[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),o=i(r[t[a].parent][a],o),a=t[a].parent;return o.conversion=n,o}e.exports=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i{"use strict";var r=n(70453),i=r("%RegExp%"),o=n(69675),a=r("%parseInt%"),s=n(36556),l=n(99721),c=s("String.prototype.slice"),u=l(/^0b[01]+$/i),h=l(/^0o[0-7]+$/i),d=l(/^[-+]0x[0-9a-f]+$/i),f=l(new i("["+["…","​","￾"].join("")+"]","g")),p=n(20214);e.exports=function e(t){if("string"!=typeof t)throw new o("Assertion failed: `argument` is not a String");if(u(t))return+a(c(t,2),2);if(h(t))return+a(c(t,2),8);if(f(t)||d(t))return NaN;var n=p(t);return n!==t?e(n):+t}},8683:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(21968),i={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},o=["ms","Moz","O","Webkit"];Object.keys(i).forEach((e=>{o.forEach((t=>{i[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(t,e)]=i[e]}))}));const a=i,s=function(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||a.hasOwnProperty(e)&&a[e]?(""+t).trim():t+"px"},l=function(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=0===r.indexOf("--"),o=s(r,t[r],i);"float"===r&&(r="cssFloat"),i?n.setProperty(r,o):n[r]=o}};var c=e=>{var t=e.offsetHeight,n=e.offsetWidth,r=e.offsetLeft,i=e.offsetTop;for(e=e.offsetParent;e&&1===e.nodeType;)r+=e.offsetLeft+e.clientLeft-e.scrollLeft,i+=e.offsetTop+e.clientTop-e.scrollTop,e=e.offsetParent;return{width:n,height:t,top:i-=window.scrollY,left:r-=window.scrollX}},u=(e,t,n)=>{var r=t||e&&e.parentNode;e&&r&&setTimeout((()=>{if(e.isConnected&&r.isConnected){var t=c(r),i=c(e),o=i.height,a=i.left,s=i.top,l=i.width,u=a-t.left,h=s-t.top;n(u,h,l,o,a,s)}}),0)},h={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0};const d={blur(e){try{e.blur()}catch(e){}},focus(e){try{var t=e.nodeName;null==e.getAttribute("tabIndex")&&!0!==e.isContentEditable&&null==h[t]&&e.setAttribute("tabIndex","-1"),e.focus()}catch(e){}},measure(e,t){u(e,null,t)},measureInWindow(e,t){e&&setTimeout((()=>{var n=(0,r.A)(e),i=n.height,o=n.left,a=n.top,s=n.width;t(o,a,s,i)}),0)},measureLayout(e,t,n,r){u(e,t,r)},updateView(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];switch(n){case"style":l(e,r);break;case"class":case"className":e.setAttribute("class",r);break;case"text":case"value":e.value=r;break;default:e.setAttribute(n,r)}}},configureNextLayoutAnimation(e,t){t()},setLayoutAnimationEnabledExperimental(){}}},8700:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(12783)),o=r.__importDefault(n(65168)),a="/conversations",s=function(){function e(e){this.apiCall=e,this.individualConversationModels={},this.apiCall=e,this._conversationsModels=new i.default(this.apiCall)}return e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(a)]}))}))},e.prototype.models=function(e){return void 0===e?this._conversationsModels:(void 0===this.individualConversationModels[e]&&(this.individualConversationModels[e]=new o.default(e,this.apiCall)),this.individualConversationModels[e])},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return a},enumerable:!1,configurable:!0}),e}();t.default=s},8747:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{default:()=>f}),e.exports=(r=h,u(o({},"__esModule",{value:!0}),r));var d=((e,t,n)=>(n=null!=e?i(l(e)):{},u(e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(40295));class f extends d.default{fields;byteSize=1;constructor(e){super(e);const[,t,n]=/^(.+?)\[(.+,?)+\]$/.exec(e)??[];if(!t||!n)throw new Error(`Invalid field name: ${e}`);this.name=t,this.fields=n.split(",")}randomValue(){return this.fields.reduce(((e,t)=>({...e,[t]:Math.random()>.5})),{})}decode(e,t){const n=e.getUint8(t);return[this.fields.reduce(((e,t,r)=>({...e,[t]:(n&2**r)===2**r})),{}),1]}encode(e){const t=new Uint8Array(1);for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=void 0,t.getEnterLeaveForKind=l,t.getVisitFn=function(e,t,n){const{enter:r,leave:i}=l(e,t);return n?i:r},t.visit=function(e,t,n=o.QueryDocumentKeys){const c=new Map;for(const e of Object.values(a.Kind))c.set(e,l(t,e));let u,h,d,f=Array.isArray(e),p=[e],m=-1,g=[],y=e;const v=[],b=[];do{m++;const e=m===p.length,a=e&&0!==g.length;if(e){if(h=0===b.length?void 0:v[v.length-1],y=d,d=b.pop(),a)if(f){y=y.slice();let e=0;for(const[t,n]of g){const r=t-e;null===n?(y.splice(r,1),e++):y[r]=n}}else{y={...y};for(const[e,t]of g)y[e]=t}m=u.index,p=u.keys,g=u.edits,f=u.inArray,u=u.prev}else if(d){if(h=f?m:p[m],y=d[h],null==y)continue;v.push(h)}let l;if(!Array.isArray(y)){var A,x;(0,o.isNode)(y)||(0,r.devAssert)(!1,`Invalid AST Node: ${(0,i.inspect)(y)}.`);const n=e?null===(A=c.get(y.kind))||void 0===A?void 0:A.leave:null===(x=c.get(y.kind))||void 0===x?void 0:x.enter;if(l=null==n?void 0:n.call(t,y,h,d,v,b),l===s)break;if(!1===l){if(!e){v.pop();continue}}else if(void 0!==l&&(g.push([h,l]),!e)){if(!(0,o.isNode)(l)){v.pop();continue}y=l}}var w;void 0===l&&a&&g.push([h,y]),e?v.pop():(u={inArray:f,index:m,keys:p,edits:g,prev:u},f=Array.isArray(y),p=f?y:null!==(w=n[y.kind])&&void 0!==w?w:[],m=-1,g=[],d&&b.push(d),d=y)}while(void 0!==u);return 0!==g.length?g[g.length-1][1]:e},t.visitInParallel=function(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(a.Kind)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t{"use strict";n.d(t,{A:()=>b});var r=n(98587),i=n(96540),o=n(71261),a=n(68697),s=n(40254),l=n(92008),c=n(11804),u=n(96177),h=n(33098),d=n(43999),f=n(85243),p=n(11420),m=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture"],g=Object.assign({},a.Gs,a.Fh,a.DY,a.l3,a.Aw,a.k2,a.CD,a.eO,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0,title:!0}),y=i.forwardRef(((e,t)=>{var n=e.hrefAttrs,a=e.onLayout,d=e.onMoveShouldSetResponder,y=e.onMoveShouldSetResponderCapture,b=e.onResponderEnd,A=e.onResponderGrant,x=e.onResponderMove,w=e.onResponderReject,C=e.onResponderRelease,S=e.onResponderStart,E=e.onResponderTerminate,k=e.onResponderTerminationRequest,T=e.onScrollShouldSetResponder,I=e.onScrollShouldSetResponderCapture,O=e.onSelectionChangeShouldSetResponder,R=e.onSelectionChangeShouldSetResponderCapture,M=e.onStartShouldSetResponder,P=e.onStartShouldSetResponderCapture,D=(0,r.A)(e,m),j=i.useContext(f.A),B=i.useRef(null),L=(0,p.PZ)().direction;(0,l.A)(B,a),(0,h.A)(B,{onMoveShouldSetResponder:d,onMoveShouldSetResponderCapture:y,onResponderEnd:b,onResponderGrant:A,onResponderMove:x,onResponderReject:w,onResponderRelease:C,onResponderStart:S,onResponderTerminate:E,onResponderTerminationRequest:k,onScrollShouldSetResponder:T,onScrollShouldSetResponderCapture:I,onSelectionChangeShouldSetResponder:O,onSelectionChangeShouldSetResponderCapture:R,onStartShouldSetResponder:M,onStartShouldSetResponderCapture:P});var F="div",N=null!=e.lang?(0,p.il)(e.lang):null,_=e.dir||N,z=_||L,V=(e=>(0,s.A)(e,g))(D);if(V.dir=_,V.style=[v.view$raw,j&&v.inline,e.style],null!=e.href&&(F="a",null!=n)){var U=n.download,H=n.rel,q=n.target;null!=U&&(V.download=U),null!=H&&(V.rel=H),"string"==typeof q&&(V.target="_"!==q.charAt(0)?"_"+q:q)}var G=(0,u.A)(V),Y=(0,c.A)(B,G,t);return V.ref=Y,(0,o.A)(F,V,{writingDirection:z})}));y.displayName="View";var v=d.A.create({view$raw:{alignContent:"flex-start",alignItems:"stretch",backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",display:"flex",flexBasis:"auto",flexDirection:"column",flexShrink:0,listStyle:"none",margin:0,minHeight:0,minWidth:0,padding:0,position:"relative",textDecoration:"none",zIndex:0},inline:{display:"inline-flex"}});const b=y},9394:(e,t,n)=>{"use strict";var r=n(89211);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},9459:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Document=void 0;var r=n(31635),i=r.__importDefault(n(87361)),o=r.__importDefault(n(69078)),a=function(){function e(e,t,n){this.collectionName=e,this.documentId=t,this.apiCall=n}return e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.delete=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,this.apiCall.delete(this.endpointPath(),e)]}))}))},e.prototype.update=function(e,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){return[2,this.apiCall.patch(this.endpointPath(),e,t)]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(o.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.documentId))},e}();t.Document=a},9693:(e,t,n)=>{"use strict";var r=n(70453)("%BigInt%",!0),i=n(69675),o=n(58068);e.exports=function(e){if("string"!=typeof e)throw new i("`argument` must be a string");if(!r)throw new o("BigInts are not supported in this environment");try{return r(e)}catch(e){return}}},9863:(e,t)=>{"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.isArray(t))for(var r=0,i=t.length;r{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(66743);e.exports=o.call(r,i)},10020:(e,t)=>{"use strict";t.A=function(e,t,r){if(Object.prototype.hasOwnProperty.call(n,e))for(var i=n[e],o=0,a=i.length;o{"use strict";e.exports=Function.prototype.call},10087:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n{null!=t&&("function"!=typeof t?"object"!=typeof t?console.error("mergeRefs cannot handle Refs of type boolean, number or string, received ref "+String(t)):t.current=e:t(e))}))}}n.d(t,{A:()=>r}),n(96540)},10419:(e,t)=>{t.X=function(e){if("number"!=typeof e)throw new Error("ERROR! Radius has to be a positive number but was: "+typeof e);if(e<=0)throw new Error(`ERROR! Radius has to be a positive number but was: ${e}`)}},10487:(e,t,n)=>{"use strict";var r=n(96897),i=n(30655),o=n(73126),a=n(12205);e.exports=function(e){var t=o(arguments),n=e.length-(arguments.length-1);return r(t,1+(n>0?n:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},10533:(e,t,n)=>{"use strict";e.exports=n(21412)},10540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},10612:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i="/aliases",o=function(){function e(e){this.apiCall=e}return e.prototype.upsert=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){return[2,this.apiCall.put(this.endpointPath(e),t)]}))}))},e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(i)]}))}))},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH,"/").concat(encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return i},enumerable:!1,configurable:!0}),e}();t.default=o},10734:(e,t,n)=>{var r=n(15659),i=n(8507),o={};Object.keys(r).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach((function(n){var r=t[n];o[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},10800:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(29813)),o=r.__importDefault(n(43614)),a=r.__importDefault(n(44145)),s=function(){function e(e){this.apiCall=e,this.individualAnalyticsRules={},this.apiCall=e,this._analyticsRules=new i.default(this.apiCall),this._analyticsEvents=new a.default(this.apiCall)}return e.prototype.rules=function(e){return void 0===e?this._analyticsRules:(void 0===this.individualAnalyticsRules[e]&&(this.individualAnalyticsRules[e]=new o.default(e,this.apiCall)),this.individualAnalyticsRules[e])},e.prototype.events=function(){return this._analyticsEvents},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/analytics"},enumerable:!1,configurable:!0}),e}();t.default=s},10866:(e,t,n)=>{"use strict";var r=n(95437);e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},10920:(e,t,n)=>{const r=n(8156),i={};for(const e of Object.keys(r))i[r[e]]=e;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e]))throw new Error("missing channels property: "+e);if(!("labels"in o[e]))throw new Error("missing channel labels property: "+e);if(o[e].labels.length!==o[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=o[e];delete o[e].channels,delete o[e].labels,Object.defineProperty(o[e],"channels",{value:t}),Object.defineProperty(o[e],"labels",{value:n})}o.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=o-i;let s,l;o===i?s=0:t===o?s=(n-r)/a:n===o?s=2+(r-t)/a:r===o&&(s=4+(t-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const c=(i+o)/2;return l=o===i?0:c<=.5?a/(o+i):a/(2-o-i),[s,100*l,100*c]},o.rgb.hsv=function(e){let t,n,r,i,o;const a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),h=function(e){return(c-e)/6/u+.5};return 0===u?(i=0,o=0):(o=u/c,t=h(a),n=h(s),r=h(l),a===c?i=r-n:s===c?i=1/3+t-r:l===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},o.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=o.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,100*a,100*r]},o.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r);return[100*((1-t-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},o.rgb.keyword=function(e){const t=i[e];if(t)return t;let n,o=1/0;for(const t of Object.keys(r)){const i=(s=r[t],((a=e)[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2);i.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},o.rgb.lab=function(e){const t=o.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];return n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,[116*r-16,500*(n-r),200*(r-i)]},o.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,a;if(0===n)return a=255*r,[a,a,a];i=r<.5?r*(1+n):r+n-r*n;const s=2*r-i,l=[0,0,0];for(let e=0;e<3;e++)o=t+1/3*-(e-1),o<0&&o++,o>1&&o--,a=6*o<1?s+6*(i-s)*o:2*o<1?i:3*o<2?s+(i-s)*(2/3-o)*6:s,l[e]=255*a;return l},o.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},o.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},o.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,a;a=(2-n)*r;const s=(2-n)*i;return o=n*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,100*o,100*a]},o.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const a=Math.floor(6*t),s=1-r;o=6*t-a,1&a&&(o=1-o);const l=n+o*(s-n);let c,u,h;switch(a){default:case 6:case 0:c=s,u=l,h=n;break;case 1:c=l,u=s,h=n;break;case 2:c=n,u=s,h=l;break;case 3:c=n,u=l,h=s;break;case 4:c=l,u=n,h=s;break;case 5:c=s,u=n,h=l}return[255*c,255*u,255*h]},o.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},o.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,a;return i=3.2406*t+-1.5372*n+-.4986*r,o=-.9689*t+1.8758*n+.0415*r,a=.0557*t+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[255*i,255*o,255*a]},o.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},o.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const i=n**3,o=t**3,a=r**3;return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},o.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;return i=360*Math.atan2(r,n)/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},o.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},o.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let a=null===t?o.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===a&&(s+=60),s},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},o.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},o.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},o.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),a=i-o;let s,l;return s=a<1?o/(1-a):0,l=a<=0?0:i===t?(n-r)/a%6:i===n?2+(r-t)/a:4+(t-n)/a,l/=6,l%=1,[360*l,100*a,100*s]},o.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},o.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},o.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],o=t%1*6,a=o%1,s=1-a;let l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[255*(n*i[0]+l),255*(n*i[1]+l),255*(n*i[2]+l)]},o.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},o.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},o.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},o.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},11002:e=>{"use strict";e.exports=Function.prototype.apply},11087:(e,t,n)=>{"use strict";e.exports=n(77440)},11338:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",h="[object Map]",d="[object Number]",f="[object Object]",p="[object Promise]",m="[object RegExp]",g="[object Set]",y="[object String]",v="[object Symbol]",b="[object WeakMap]",A="[object ArrayBuffer]",x="[object DataView]",w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/,S=/^\./,E=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k=/\\(\\)?/g,T=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,O={};O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O[o]=O[a]=O[A]=O[s]=O[x]=O[l]=O[c]=O[u]=O[h]=O[d]=O[f]=O[m]=O[g]=O[y]=O[b]=!1;var R="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,M="object"==typeof self&&self&&self.Object===Object&&self,P=R||M||Function("return this")(),D=t&&!t.nodeType&&t,j=D&&e&&!e.nodeType&&e,B=j&&j.exports===D&&R.process,L=function(){try{return B&&B.binding("util")}catch(e){}}(),F=L&&L.isTypedArray;function N(e,t){return!(!e||!e.length)&&function(e,t){if(t!=t)return function(e,t){for(var n=e.length,r=-1;++r-1}function _(e,t,n){for(var r=-1,i=e?e.length:0;++r=200&&(o=q,a=!1,t=new Oe(t));e:for(;++i-1},Te.prototype.set=function(e,t){var n=this.__data__,r=Me(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ie.prototype.clear=function(){this.__data__={hash:new ke,map:new(fe||Te),string:new ke}},Ie.prototype.delete=function(e){return _e(this,e).delete(e)},Ie.prototype.get=function(e){return _e(this,e).get(e)},Ie.prototype.has=function(e){return _e(this,e).has(e)},Ie.prototype.set=function(e,t){return _e(this,e).set(e,t),this},Oe.prototype.add=Oe.prototype.push=function(e){return this.__data__.set(e,r),this},Oe.prototype.has=function(e){return this.__data__.has(e)},Re.prototype.clear=function(){this.__data__=new Te},Re.prototype.delete=function(e){return this.__data__.delete(e)},Re.prototype.get=function(e){return this.__data__.get(e)},Re.prototype.has=function(e){return this.__data__.has(e)},Re.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Te){var r=n.__data__;if(!fe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ie(r)}return n.set(e,t),this};var Fe=me&&1/W(new me([,-0]))[1]==1/0?function(e){return new me(e)}:function(){};function Ne(e,t,n,r,i,o){var a=2&i,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,h=!0,d=1&i?new Oe:void 0;for(o.set(e,t),o.set(t,e);++u-1&&e%1==0&&e=200){var c=t?null:Fe(e);if(c)return W(c);a=!1,i=q,l=new Oe}else l=t?[]:s;e:for(;++r-1&&e%1==0&&e<=i}function it(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ot(e){return!!e&&"object"==typeof e}function at(e){return"symbol"==typeof e||ot(e)&&ie.call(e)==v}var st=F?H(F):function(e){return ot(e)&&rt(e.length)&&!!O[ie.call(e)]};function lt(e){return et(e)?function(e,t){var n=$e(e)||Ke(e)?function(e,t){for(var n=-1,r=Array(e);++n{"use strict";n.d(t,{YO:()=>u,il:()=>c,PZ:()=>h});var r=n(96540),i=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","far","glk","he","iw","khw","ks","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]),a=new Map,s={direction:"ltr",locale:"en-US"},l=(0,r.createContext)(s);function c(e){return function(e){var t=a.get(e);if(t)return t;var n=!1;if(Intl.Locale)try{var r=new Intl.Locale(e).maximize().script;n=i.has(r)}catch(t){var s=e.split("-")[0];n=o.has(s)}else{var l=e.split("-")[0];n=o.has(l)}return a.set(e,n),n}(e)?"rtl":"ltr"}function u(e){var t=e.direction,n=e.locale,i=e.children;return t||n?r.createElement(l.Provider,{children:i,value:{direction:n?c(n):t,locale:n}}):i}function h(){return(0,r.useContext)(l)}},11460:(e,t,n)=>{"use strict";var r,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(l,{networksApiLiveTrafficExtraDataDiffSchema:()=>c}),e.exports=(r=l,((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a(t))s.call(e,n)||undefined===n||i(e,n,{get:()=>t[n],enumerable:!(r=o(t,n))||r.enumerable});return e})(i({},"__esModule",{value:!0}),r));const c=(new(n(52407).SchemaBuilder)).field("key","varstring8").field("aircraft","varstring8").field("mappedAircraft","varstring8").field("callsign","varstring8").build()},11514:(e,t,n)=>{"use strict";var r=n(38403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r{"use strict";e.exports="data:image/svg+xml;charset=UTF-8,%3csvg width=%2732%27 height=%2732%27 viewBox=%270 0 32 32%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3crect x=%2712.3259%27 y=%2718.5298%27 width=%272%27 height=%278.94612%27 rx=%271%27 transform=%27rotate%2845 12.3259 18.5298%29%27 fill=%27white%27/%3e%3ccircle cx=%2718%27 cy=%2714%27 r=%277.5%27 stroke=%27white%27/%3e%3cpath d=%27M21.5 13.5C21.7761 13.5 22 13.7239 22 14C22 14.2761 21.7761 14.5 21.5 14.5L14.5 14.5C14.2239 14.5 14 14.2761 14 14C14 13.7239 14.2239 13.5 14.5 13.5L21.5 13.5Z%27 fill=%27white%27/%3e%3c/svg%3e"},11603:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});class r{constructor(){this._registry={}}addListener(e,t,n){var r=function(e,t){var n=e[t];return null==n&&(n=new Set,e[t]=n),n}(this._registry,e),i={context:n,listener:t,remove(){r.delete(i)}};return r.add(i),i}emit(e){var t=this._registry[e];if(null!=t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{"use strict";n.d(t,{A:()=>o});var r=n(96540),i=n(10087);function o(){for(var e=arguments.length,t=new Array(e),n=0;n(0,i.A)(...t)),[...t])}},11934:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useClipboard=void 0;const r=n(96540),i=n(33363),o=new Set;function a(e){i.Clipboard.setString(e);for(const t of o)t(e)}t.useClipboard=()=>{const[e,t]=(0,r.useState)("");return(0,r.useEffect)((()=>{i.Clipboard.getString().then(t)}),[]),(0,r.useEffect)((()=>(o.add(t),()=>{o.delete(t)})),[]),[e,a]}},12049:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=e[t];if(r&&n.hasOwnProperty(t))for(var o=(0,i.default)(t),a=0;a{"use strict";var r=n(66743),i=n(11002),o=n(13144);e.exports=function(){return o(r,i,arguments)}},12648:(e,t,n)=>{"use strict";var r=n(70453),i=n(36556),o=r("%WeakSet%",!0),a=i("WeakSet.prototype.has",!0);if(a){var s=i("WeakMap.prototype.has",!0);e.exports=function(e){if(!e||"object"!=typeof e)return!1;try{if(a(e,a),s)try{s(e,s)}catch(e){return!0}return e instanceof o}catch(e){}return!1}}else e.exports=function(e){return!1}},12783:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.create=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,this.apiCall.post(this.endpointPath(),e)]}))}))},e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/conversations/models"},enumerable:!1,configurable:!0}),e}();t.default=i},13003:e=>{"use strict";e.exports=function(e){return e!=e}},13144:(e,t,n)=>{"use strict";var r=n(66743),i=n(11002),o=n(10076),a=n(47119);e.exports=a||r.call(o,i)},13541:e=>{"use strict";e.exports=function(e){return"string"==typeof e||"symbol"==typeof e}},13557:(e,t,n)=>{"use strict";var r=n(54224),i=n(8410),o=n(41003),a=n(63331);e.exports=function(e){var t=i(e);if(!a(t)||0===t)return 0;var n=o(t),s=r(n,65536);return s>=32768?s-65536:s}},14035:(e,t,n)=>{"use strict";var r,i=n(36556),o=n(49092)(),a=n(9957),s=n(75795);if(o){var l=i("RegExp.prototype.exec"),c={},u=function(){throw c},h={toString:u,valueOf:u};"symbol"==typeof Symbol.toPrimitive&&(h[Symbol.toPrimitive]=u),r=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!t||!a(t,"value"))return!1;try{l(e,h)}catch(e){return e===c}}}else{var d=i("Object.prototype.toString");r=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===d(e)}}e.exports=r},14089:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(67862);const i="undefined"!=typeof window&&!!window.document?.createElement,o=i&&!(!window.addEventListener&&!window.attachEvent),a=i&&!!window.screen,s={OS:"web",select:"undefined"!=typeof window?r.A.select:function(e){return e.hasOwnProperty("web")?e.web:e.hasOwnProperty("default")?e.default:void 0},isDOMAvailable:i,canUseEventListeners:o,canUseViewport:a,isAsyncDebugging:!1}},14410:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImportError=t.TypesenseError=t.ServerError=t.RequestUnauthorized=t.RequestMalformed=t.ObjectUnprocessable=t.ObjectNotFound=t.ObjectAlreadyExists=t.MissingConfigurationError=t.HTTPError=void 0;var r=n(31635),i=r.__importDefault(n(52144));t.HTTPError=i.default;var o=r.__importDefault(n(22426));t.MissingConfigurationError=o.default;var a=r.__importDefault(n(36731));t.ObjectAlreadyExists=a.default;var s=r.__importDefault(n(78280));t.ObjectNotFound=s.default;var l=r.__importDefault(n(92703));t.ObjectUnprocessable=l.default;var c=r.__importDefault(n(48274));t.RequestMalformed=c.default;var u=r.__importDefault(n(66909));t.RequestUnauthorized=u.default;var h=r.__importDefault(n(31081));t.ServerError=h.default;var d=r.__importDefault(n(38331));t.ImportError=d.default;var f=r.__importDefault(n(27796));t.TypesenseError=f.default},14594:(e,t,n)=>{"use strict";var r=n(59395);e.exports=r},14687:(e,t,n)=>{var r="__lodash_hash_undefined__",i=9007199254740991,o=/^\[object .+?Constructor\]$/,a=/^(?:0|[1-9]\d*)$/,s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")();function u(e,t){return!(!e||!e.length)&&function(e,t){if(t!=t)return function(e,t){for(var n=e.length,r=-1;++r-1}function h(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n0&&n(s)?t>1?z(s,t-1,n,r,i):d(i,s):r||(i[i.length]=s)}return i}function V(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function U(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!K(e)||x&&x in e)return!1;var t=Z(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?E:o;return t.test(function(e){if(null!=e){try{return w.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(n)?n:void 0}B.prototype.clear=function(){this.__data__=j?j(null):{}},B.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},B.prototype.get=function(e){var t=this.__data__;if(j){var n=t[e];return n===r?void 0:n}return C.call(t,e)?t[e]:void 0},B.prototype.has=function(e){var t=this.__data__;return j?void 0!==t[e]:C.call(t,e)},B.prototype.set=function(e,t){return this.__data__[e]=j&&void 0===t?r:t,this},L.prototype.clear=function(){this.__data__=[]},L.prototype.delete=function(e){var t=this.__data__,n=_(t,e);return!(n<0||(n==t.length-1?t.pop():O.call(t,n,1),0))},L.prototype.get=function(e){var t=this.__data__,n=_(t,e);return n<0?void 0:t[n][1]},L.prototype.has=function(e){return _(this.__data__,e)>-1},L.prototype.set=function(e,t){var n=this.__data__,r=_(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},F.prototype.clear=function(){this.__data__={hash:new B,map:new(D||L),string:new B}},F.prototype.delete=function(e){return V(this,e).delete(e)},F.prototype.get=function(e){return V(this,e).get(e)},F.prototype.has=function(e){return V(this,e).has(e)},F.prototype.set=function(e,t){return V(this,e).set(e,t),this},N.prototype.add=N.prototype.push=function(e){return this.__data__.set(e,r),this},N.prototype.has=function(e){return this.__data__.has(e)};var H=M?m(M,Object):ie,q=M?function(e){for(var t=[];e;)d(t,H(e)),e=T(e);return t}:ie;function G(e){return X(e)||Q(e)||!!(R&&e&&e[R])}function Y(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||a.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=i}(e.length)&&!Z(e)}function Z(e){var t=K(e)?S.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function K(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function $(e){return!!e&&"object"==typeof e}function ee(e){return J(e)?function(e,t){var n=X(e)||Q(e)?function(e,t){for(var n=-1,r=Array(e);++n=200&&(o=p,a=!1,t=new N(t));e:for(;++i{"use strict";e.exports=function(e,t){return e.filter((function(n,r){return t.indexOf(n)>-1&&e.indexOf(n)===r}))}},15539:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(90646),i=n.n(r),o=n(7162),a=o.A?window.location.href:"";const s=new class{constructor(){this._eventCallbacks={}}_dispatchEvent(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{e(...n)}))}addEventListener(e,t){var n=this;return n._eventCallbacks[e]||(n._eventCallbacks[e]=[t]),n._eventCallbacks[e].push(t),{remove(){var r=n._eventCallbacks[e].filter((e=>e.toString()!==t.toString()));n._eventCallbacks[e]=r}}}removeEventListener(e,t){console.error("Linking.removeEventListener('"+e+"', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `Linking.addEventListener`.");var n=this._eventCallbacks[e].filter((e=>e.toString()!==t.toString()));this._eventCallbacks[e]=n}canOpenURL(){return Promise.resolve(!0)}getInitialURL(){return Promise.resolve(a)}openURL(e,t){1===arguments.length&&(t="_blank");try{return((e,t)=>{if(o.A){var n=new URL(e,window.location).toString();0===n.indexOf("tel:")?window.location=n:window.open(n,t,"noopener")}})(e,t),this._dispatchEvent("onOpen",e),Promise.resolve()}catch(e){return Promise.reject(e)}}_validateURL(e){i()("string"==typeof e,"Invalid URL: should be a string. Was: "+e),i()(e,"Invalid URL: cannot be empty")}}},15659:(e,t,n)=>{var r=n(51031),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var l=a[s].channels,c=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:l}),Object.defineProperty(a[s],"labels",{value:c})}a.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a;return s===a?t=0:r===s?t=(i-o)/l:i===s?t=2+(o-r)/l:o===s&&(t=4+(r-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]},a.rgb.hsv=function(e){var t,n,r,i,o,a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),h=function(e){return(c-e)/6/u+.5};return 0===u?i=o=0:(o=u/c,t=h(a),n=h(s),r=h(l),a===c?i=r-n:s===c?i=1/3+t-r:l===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,o,a,s=1/0;for(var l in r)if(r.hasOwnProperty(l)){var c=(o=e,a=r[l],Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[o=255*l,o,o];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c<3;c++)(r=a+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*o;return i},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,i,o,a,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,h=c+u;switch(h>1&&(c/=h,u/=h),r=6*l-(t=Math.floor(6*l)),1&t&&(r=1-r),i=c+r*((n=1-u)-c),t){default:case 6:case 0:o=n,a=i,s=c;break;case 1:o=i,a=n,s=c;break;case 2:o=c,a=n,s=i;break;case 3:o=c,a=i,s=n;break;case 4:o=i,a=c,s=n;break;case 5:o=n,a=c,s=i}return[255*o,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),s=o-a;return t=s<=0?0:o===n?(r-i)/s%6:o===r?2+(i-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,i=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(i=(r-.5*t)/(1-t)),[e[0],100*t,100*i]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=t%1*6,s=a%1,l=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},15725:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=new(n(11603).A)},15782:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(96540),i=n(71261),o=n(68697),a=n(40254),s=n(92008),l=n(88425),c=n(11804),u=n(96177),h=n(33098),d=n(11420),f=n(43999),p=n(38865),m=(e,t)=>{if(((e,t)=>{var n=e.selectionEnd,r=e.selectionStart,i=t.start,o=t.end;return i!==r||o!==n})(e,t)){var n=t.start,r=t.end;try{e.setSelectionRange(n,r||n)}catch(e){}}},g=Object.assign({},o.Gs,o.Fh,o.DY,o.l3,o.Aw,o.k2,o.CD,o.eO,{autoCapitalize:!0,autoComplete:!0,autoCorrect:!0,autoFocus:!0,defaultValue:!0,disabled:!0,lang:!0,maxLength:!0,onChange:!0,onScroll:!0,placeholder:!0,pointerEvents:!0,readOnly:!0,rows:!0,spellCheck:!0,value:!0,type:!0}),y=null,v=r.forwardRef(((e,t)=>{var n,o,f=e.autoCapitalize,v=void 0===f?"sentences":f,A=e.autoComplete,x=e.autoCompleteType,w=e.autoCorrect,C=void 0===w||w,S=e.blurOnSubmit,E=e.caretHidden,k=e.clearTextOnFocus,T=e.dir,I=e.editable,O=e.enterKeyHint,R=e.inputMode,M=e.keyboardType,P=e.multiline,D=void 0!==P&&P,j=e.numberOfLines,B=e.onBlur,L=e.onChange,F=e.onChangeText,N=e.onContentSizeChange,_=e.onFocus,z=e.onKeyPress,V=e.onLayout,U=e.onMoveShouldSetResponder,H=e.onMoveShouldSetResponderCapture,q=e.onResponderEnd,G=e.onResponderGrant,Y=e.onResponderMove,W=e.onResponderReject,Q=e.onResponderRelease,X=e.onResponderStart,J=e.onResponderTerminate,Z=e.onResponderTerminationRequest,K=e.onScrollShouldSetResponder,$=e.onScrollShouldSetResponderCapture,ee=e.onSelectionChange,te=e.onSelectionChangeShouldSetResponder,ne=e.onSelectionChangeShouldSetResponderCapture,re=e.onStartShouldSetResponder,ie=e.onStartShouldSetResponderCapture,oe=e.onSubmitEditing,ae=e.placeholderTextColor,se=e.readOnly,le=void 0!==se&&se,ce=e.returnKeyType,ue=e.rows,he=e.secureTextEntry,de=void 0!==he&&he,fe=e.selection,pe=e.selectTextOnFocus,me=e.showSoftInputOnFocus,ge=e.spellCheck;if(null!=R)o=R,n="email"===R?"email":"tel"===R?"tel":"search"===R?"search":"url"===R?"url":"text";else if(null!=M)switch(M){case"email-address":n="email";break;case"number-pad":case"numeric":o="numeric";break;case"decimal-pad":o="decimal";break;case"phone-pad":n="tel";break;case"search":case"web-search":n="search";break;case"url":n="url";break;default:n="text"}de&&(n="password");var ye=r.useRef({height:null,width:null}),ve=r.useRef(null),be=r.useRef(null),Ae=r.useRef(!1);r.useEffect((()=>{ve.current&&be.current&&m(ve.current,be.current),Ae.current=de}),[de]);var xe=r.useCallback((e=>{if(D&&N&&null!=e){var t=e.scrollHeight,n=e.scrollWidth;t===ye.current.height&&n===ye.current.width||(ye.current.height=t,ye.current.width=n,N({nativeEvent:{contentSize:{height:ye.current.height,width:ye.current.width}}}))}}),[D,N]),we=r.useMemo((()=>e=>{null!=e&&(e.clear=function(){null!=e&&(e.value="")},e.isFocused=function(){return null!=e&&p.A.currentlyFocusedField()===e},xe(e))}),[xe]);(0,l.A)((()=>{var e=ve.current;null!=e&&null!=fe&&m(e,fe),document.activeElement===e&&(p.A._currentlyFocusedNode=e)}),[ve,fe]);var Ce=D?"textarea":"input";(0,s.A)(ve,V),(0,h.A)(ve,{onMoveShouldSetResponder:U,onMoveShouldSetResponderCapture:H,onResponderEnd:q,onResponderGrant:G,onResponderMove:Y,onResponderReject:W,onResponderRelease:Q,onResponderStart:X,onResponderTerminate:J,onResponderTerminationRequest:Z,onScrollShouldSetResponder:K,onScrollShouldSetResponderCapture:$,onSelectionChangeShouldSetResponder:te,onSelectionChangeShouldSetResponderCapture:ne,onStartShouldSetResponder:re,onStartShouldSetResponderCapture:ie});var Se=(0,d.PZ)().direction,Ee=(e=>(0,a.A)(e,g))(e);Ee.autoCapitalize=v,Ee.autoComplete=A||x||"on",Ee.autoCorrect=C?"on":"off",Ee.dir=void 0!==T?T:"auto",Ee.enterKeyHint=O||ce,Ee.inputMode=o,Ee.onBlur=function(e){p.A._currentlyFocusedNode=null,B&&(e.nativeEvent.text=e.target.value,B(e))},Ee.onChange=function(e){var t=e.target,n=t.value;e.nativeEvent.text=n,xe(t),L&&L(e),F&&F(n)},Ee.onFocus=function(e){var t=e.target;_&&(e.nativeEvent.text=t.value,_(e)),null!=t&&(p.A._currentlyFocusedNode=t,k&&(t.value=""),pe&&(null!=y&&clearTimeout(y),y=setTimeout((()=>{null!=t&&document.activeElement===t&&t.select()}),0)))},Ee.onKeyDown=function(e){var t=e.target;e.stopPropagation();var n=null==S?!D:S,r=e.nativeEvent,i=function(e){return e.isComposing||229===e.keyCode}(r);z&&z(e),"Enter"!==e.key||e.shiftKey||i||e.isDefaultPrevented()||(!S&&D||!oe||(e.preventDefault(),r.text=e.target.value,oe(e)),n&&null!=t&&setTimeout((()=>t.blur()),0))},Ee.onSelect=function(e){try{var t=e.target,n={start:t.selectionStart,end:t.selectionEnd};ee&&(e.nativeEvent.selection=n,e.nativeEvent.text=e.target.value,ee(e)),Ae.current===de&&(be.current=n)}catch(e){}},Ee.readOnly=!0===le||!1===I,Ee.rows=D?null!=ue?ue:j:1,Ee.spellCheck=null!=ge?ge:C,Ee.style=[{"--placeholderTextColor":ae},b.textinput$raw,b.placeholder,e.style,E&&b.caretHidden],Ee.type=D?void 0:n,Ee.virtualkeyboardpolicy=!1===me?"manual":"auto";var ke=(0,u.A)(Ee),Te=(0,c.A)(ve,ke,we,t);Ee.ref=Te;var Ie=null!=e.lang?(0,d.il)(e.lang):null,Oe=e.dir||Ie||Se;return(0,i.A)(Ce,Ee,{writingDirection:Oe})}));v.displayName="TextInput",v.State=p.A;var b=f.A.create({textinput$raw:{MozAppearance:"textfield",WebkitAppearance:"none",backgroundColor:"transparent",border:"0 solid black",borderRadius:0,boxSizing:"border-box",font:"14px System",margin:0,padding:0,resize:"none"},placeholder:{placeholderTextColor:"var(--placeholderTextColor)"},caretHidden:{caretColor:"transparent"}});const A=v},16368:e=>{"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},16485:(e,t,n)=>{"use strict";t.A=function(e){var t=e.prefixMap,n=e.plugins;return function e(s){for(var l in s){var c=s[l];if((0,a.default)(c))s[l]=e(c);else if(Array.isArray(c)){for(var u=[],h=0,d=c.length;h0&&(s[l]=u)}else{var p=(0,i.default)(n,l,c,s,t);p&&(s[l]=p),s=(0,r.default)(t,l,s)}}return s}};var r=s(n(12049)),i=s(n(37971)),o=s(n(9863)),a=s(n(41099));function s(e){return e&&e.__esModule?e:{default:e}}},16938:e=>{"use strict";e.exports="3.25.0"},16988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultJsonSerializer=void 0,t.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify}},17030:(e,t,n)=>{"use strict";var r=n(69675),i=n(55701),o=n(52997);e.exports=function(e){if(void 0!==e&&!i(e))throw new r("Assertion failed: `Desc` must be a Property Descriptor");return o(e)}},17057:(e,t,n)=>{"use strict";var r=n(58068),i=n(69675),o=n(25767),a=n(39209)(),s=n(10533),l=n(17732),c=n(19531),u=n(82697);e.exports=function(e,t){if(0===a.length)throw new r("Assertion failed: Typed Arrays are not supported in this environment");var n=o(e);if(!n)throw new i("Assertion failed: exemplar must be a TypedArray");if(!s(t))throw new i("Assertion failed: `argumentList` must be a List");var h=u(n);if("function"!=typeof h)throw new r("Assertion failed: `constructor` of `exemplar` ("+n+") must exist. Please report this!");var d=l(e,h);return c(d,t)}},17122:(e,t,n)=>{var r=n(70079);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},17369:(e,t,n)=>{"use strict";var r=n(57003);e.exports=r,r.prototype.finally=function(e){return this.then((function(t){return r.resolve(e()).then((function(){return t}))}),(function(t){return r.resolve(e()).then((function(){throw t}))}))}},17383:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},17507:e=>{"use strict";e.exports=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw new Error("The value should be a number, a parsable string or an array of those.")}},17732:(e,t,n)=>{"use strict";var r=n(70453)("%Symbol.species%",!0),i=n(69675),o=n(34528),a=n(92702);e.exports=function(e,t){if(!a(e))throw new i("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if(!a(n))throw new i("O.constructor is not an Object");var s=r?n[r]:void 0;if(null==s)return t;if(o(s))return s;throw new i("no constructor found")}},18173:(e,t,n)=>{"use strict";var r=n(36556)("WeakRef.prototype.deref",!0);e.exports="undefined"==typeof WeakRef?function(e){return!1}:function(e){if(!e||"object"!=typeof e)return!1;try{return r(e),!0}catch(e){return!1}}},18367:e=>{"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},18621:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(60875)),o=n(47353),a=function(){function e(e,t,n){void 0===n&&(n=!1),this.apiCall=e,this.configuration=t,this.useTextContentType=n,this.requestWithCache=new i.default}return e.prototype.clearCache=function(){this.requestWithCache.clearCache()},e.prototype.perform=function(e,t,n){var i=(void 0===n?{}:n).cacheSearchResultsForSeconds,a=void 0===i?this.configuration.cacheSearchResultsForSeconds:i;return r.__awaiter(this,void 0,void 0,(function(){var n,i,s,l,c;return r.__generator(this,(function(u){return n=t?r.__assign({},t):{},!0===this.configuration.useServerSideSearchCache&&(n.use_cache=!0),i={union:e.union,searches:e.searches.map(o.normalizeArrayableParams)},s=n.streamConfig,l=r.__rest(n,["streamConfig"]),c=(0,o.normalizeArrayableParams)(l),[2,this.requestWithCache.perform(this.apiCall,"post",{path:"/multi_search",body:i,queryParams:c,headers:this.useTextContentType?{"content-type":"text/plain"}:{},streamConfig:s,isStreamingRequest:this.isStreamingRequest(n)},{cacheResponseForSeconds:a})]}))}))},e.prototype.isStreamingRequest=function(e){return void 0!==e.streamConfig},e}();t.default=a},18705:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(96540),i="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;t.default=i},18968:(e,t,n)=>{"use strict";var r=n(75880);e.exports=function(e){var t=128&e[7]?-1:1,n=(127&e[7])<<4|(240&e[6])>>4,i=281474976710656*(15&e[6])+1099511627776*e[5]+4294967296*e[4]+16777216*e[3]+65536*e[2]+256*e[1]+e[0];return 0===n&&0===i?0*t:2047===n&&0!==i?NaN:2047===n&&0===i?t*(1/0):-1023==(n-=1023)?t*i*5e-324:t*(1+i/4503599627370496)*r(2,n)}},19127:e=>{"use strict";function t(e){e=e||{},this.params=e.params||[]}t.prototype={constructor:t,addParams:function(e){var n=this.params.slice();return n.push(e),new t({params:n})},removeParams:function(e){return new t({params:this.params.filter((function(t){return t.$$id!==e}))})},addFrequentlyBoughtTogether:function(e){return this.addParams(Object.assign({},e,{model:"bought-together"}))},addRelatedProducts:function(e){return this.addParams(Object.assign({},e,{model:"related-products"}))},addTrendingItems:function(e){return this.addParams(Object.assign({},e,{model:"trending-items"}))},addTrendingFacets:function(e){return this.addParams(Object.assign({},e,{model:"trending-facets"}))},addLookingSimilar:function(e){return this.addParams(Object.assign({},e,{model:"looking-similar"}))},_buildQueries:function(e,t){return this.params.filter((function(e){return void 0===t[e.$$id]})).map((function(t){var n=Object.assign({},t,{indexName:e,threshold:t.threshold||0});return delete n.$$id,n}))}},e.exports=t},19511:(e,t,n)=>{"use strict";var r=n(36556)("ArrayBuffer.prototype.byteLength",!0),i=n(84670);e.exports=function(e){return i(e)?r?r(e):e.byteLength:NaN}},19531:(e,t,n)=>{"use strict";var r=n(58068),i=n(69675),o=n(10533),a=n(34528),s=n(45291),l=n(99271),c=n(91509),u=n(39209)();e.exports=function(e,t){if(!a(e))throw new i("Assertion failed: `constructor` must be a constructor");if(!o(t))throw new i("Assertion failed: `argumentList` must be a List");if(0===u.length)throw new r("Assertion failed: Typed Arrays are not supported in this environment");var n;n=0===t.length?new e:1===t.length?new e(t[0]):2===t.length?new e(t[0],t[1]):new e(t[0],t[1],t[2]);var h=c(n,"SEQ-CST");if(1===t.length&&"number"==typeof t[0]){if(s(h))throw new i("new Typed Array is out of bounds");if(l(h){t.h=function(e){if("number"!=typeof e){const t=Array.isArray(e)?"array":typeof e;throw new Error(`ERROR! Bearing has to be a number but was: ${t}`)}}},19703:e=>{"use strict";const t=[];e.exports={registerAsset:function(e){return t.push(e)},getAssetByID:function(e){return t[e-1]}}},19723:(e,t,n)=>{"use strict";var r=n(81539),i=n(60593),o=n(25767),a=n(64634),s=n(62120),l=n(14035),c=n(18173),u=n(23811),h=n(21482),d=n(48184),f=n(45351),p=n(36556),m=n(49092)()&&Symbol.toStringTag,g=Object,y=p("Promise.prototype.then",!0),v=function(e){return!!e&&"BigInt"!==e&&"Boolean"!==e&&"Null"!==e&&"Number"!==e&&"String"!==e&&"Symbol"!==e&&"Undefined"!==e&&"Math"!==e&&"JSON"!==e&&"Reflect"!==e&&"Atomics"!==e&&"Map"!==e&&"Set"!==e&&"WeakMap"!==e&&"WeakSet"!==e&&"BigInt64Array"!==e&&"BigUint64Array"!==e&&"Float32Array"!==e&&"Float64Array"!==e&&"Int16Array"!==e&&"Int32Array"!==e&&"Int8Array"!==e&&"Uint16Array"!==e&&"Uint32Array"!==e&&"Uint8Array"!==e&&"Uint8ClampedArray"!==e&&"Array"!==e&&"Date"!==e&&"FinalizationRegistry"!==e&&"Promise"!==e&&"RegExp"!==e&&"WeakRef"!==e&&"Function"!==e&&"GeneratorFunction"!==e&&"AsyncFunction"!==e};e.exports=function(e){if(null==e)return e;var t=r(g(e))||i(e)||o(e);if(t)return t;if(a(e))return"Array";if(s(e))return"Date";if(l(e))return"RegExp";if(c(e))return"WeakRef";if(u(e))return"FinalizationRegistry";if("function"==typeof e)return d(e)?"GeneratorFunction":f(e)?"AsyncFunction":"Function";if(function(e){if(!e||"object"!=typeof e||!y)return!1;try{return y(e,null,(function(){})),!0}catch(e){}return!1}(e))return"Promise";if(m&&m in e){var n=e[m];if(v(n))return n}if("function"==typeof e.constructor){var p=h(e.constructor);if(v(p))return p}return"Object"}},19872:(e,t,n)=>{"use strict";var r=n(83496),i=Array.prototype.concat,o=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n{"use strict";var r=n(70453)("%BigInt%",!0),i=n(75880),o=n(22964),a=n(99969),s=n(40122),l=r&&BigInt(i(2,32))*BigInt(i(2,32));e.exports=function(e){var t=o(e);return s(a,t,l)}},19888:(e,t,n)=>{"use strict";e.exports=n(58493)},20176:e=>{e.exports={gnmWmm:[[0,0,0,0,0,0,0,0,0,0,0,0,0],[-29351.8,-1410.8,0,0,0,0,0,0,0,0,0,0,0],[-2556.6,2951.1,1649.3,0,0,0,0,0,0,0,0,0,0],[1361,-2404.1,1243.8,453.6,0,0,0,0,0,0,0,0,0],[895,799.5,55.7,-281.1,12.1,0,0,0,0,0,0,0,0],[-233.2,368.9,187.2,-138.7,-142,20.9,0,0,0,0,0,0,0],[64.4,63.8,76.9,-115.7,-40.9,14.9,-60.7,0,0,0,0,0,0],[79.5,-77,-8.8,59.3,15.8,2.5,-11.1,14.2,0,0,0,0,0],[23.2,10.8,-17.5,2,-21.7,16.9,15,-16.8,.9,0,0,0,0],[4.6,7.8,3,-.2,-2.5,-13.1,2.4,8.6,-8.7,-12.9,0,0,0],[-1.3,-6.4,.2,2,-1,-.6,-.9,1.5,.9,-2.7,-3.9,0,0],[2.9,-1.5,-2.5,2.4,-.6,-.1,-.6,-.1,1.1,-1,-.2,2.6,0],[-2,-.2,.3,1.2,-1.3,.6,.6,.5,-.1,-.4,-.2,-1.3,-.7]],hnmWmm:[[0,0,0,0,0,0,0,0,0,0,0,0,0],[0,4545.4,0,0,0,0,0,0,0,0,0,0,0],[0,-3133.6,-815.1,0,0,0,0,0,0,0,0,0,0],[0,-56.6,237.5,-549.5,0,0,0,0,0,0,0,0,0],[0,278.6,-133.9,212,-375.6,0,0,0,0,0,0,0,0],[0,45.4,220.2,-122.9,43,106.1,0,0,0,0,0,0,0],[0,-18.4,16.8,48.8,-59.8,10.9,72.7,0,0,0,0,0,0],[0,-48.9,-14.4,-1,23.4,-7.4,-25.1,-2.3,0,0,0,0,0],[0,7.1,-12.6,11.4,-9.7,12.7,.7,-5.2,3.9,0,0,0,0],[0,-24.8,12.2,8.3,-3.3,-5.2,7.2,-.6,.8,10,0,0,0],[0,3.3,0,2.4,5.3,-9.1,.4,-4.2,-3.8,.9,-9.1,0,0],[0,0,2.9,-.6,.2,.5,-.3,-1.2,-1.7,-2.9,-1.8,-2.3,0],[0,-1.3,.7,1,-1.4,0,.6,-.1,.8,.1,-1,.1,.2]],gtnmWmm:[[0,0,0,0,0,0,0,0,0,0,0,0,0],[12,9.7,0,0,0,0,0,0,0,0,0,0,0],[-11.6,-5.2,-8,0,0,0,0,0,0,0,0,0,0],[-1.3,-4.2,.4,-15.6,0,0,0,0,0,0,0,0,0],[-1.6,-2.4,-6,5.6,-7,0,0,0,0,0,0,0,0],[.6,1.4,0,.6,2.2,.9,0,0,0,0,0,0,0],[-.2,-.4,.9,1.2,-.9,.3,.9,0,0,0,0,0,0],[-0,-.1,-.1,.5,-.1,-.8,-.8,.8,0,0,0,0,0],[-.1,.2,0,.5,-.1,.3,.2,-0,.2,0,0,0,0],[-0,-.1,.1,.3,-.3,0,.3,-.1,.1,-.1,0,0,0],[.1,0,.1,.1,-0,-.3,0,-.1,-.1,-0,-0,0,0],[0,-0,0,0,0,-.1,0,-0,-.1,-.1,-.1,-.1,0],[0,0,-0,-0,-0,-0,.1,-0,0,0,-.1,-0,-.1]],htnmWmm:[[0,0,0,0,0,0,0,0,0,0,0,0,0],[0,-21.5,0,0,0,0,0,0,0,0,0,0,0],[0,-27.7,-12.1,0,0,0,0,0,0,0,0,0,0],[0,4,-.3,-4.1,0,0,0,0,0,0,0,0,0],[0,-1.1,4.1,1.6,-4.4,0,0,0,0,0,0,0,0],[0,-.5,2.2,.4,1.7,1.9,0,0,0,0,0,0,0],[0,.3,-1.6,-.4,.9,.7,.9,0,0,0,0,0,0],[0,.6,.5,-.8,0,-1,.6,-.2,0,0,0,0,0],[0,-.2,.5,-.4,.4,-.5,-.6,.3,.2,0,0,0,0],[0,-.3,.3,-.3,.3,.2,-.1,-.2,.4,.1,0,0,0],[0,0,-0,-.2,.1,-.1,.1,0,-.1,.2,-0,0,0],[0,-0,.1,-0,.1,-0,-0,.1,-0,0,0,0,0],[0,-0,0,-.1,.1,-0,-0,-0,0,-0,-0,0,-.1]],julianDaysCOF:2460677,testData:[[2025,28,89,-121,-99.77,88.47,1504.298146,-255.388723,-1482.460628,56194.288771,56214.419888,2.491706,-.009987,10.28564,62.723738,-21.242793,18.075146,18.343917],[2025,48,80,-96,-29.91,87.77,2164.285547,1875.98228,-1079.269389,55623.044051,55665.134163,1.248417,-.057537,55.469239,71.596398,13.214774,-12.148507,-9.982652],[2025,54,82,87,54.89,87.68,2302.427342,1324.336929,1883.42862,56740.772059,56787.4668,.884574,.03613,-34.169939,-48.732002,-7.505574,41.134755,39.715524],[2025,65,43,93,.5,64.1,24300.764692,24299.852822,210.517066,50037.923998,55626.621348,-.019813,.030822,-3.938347,-3.865401,-8.437166,60.388819,52.601187],[2025,51,-33,109,-5.49,-67.5,21838.046477,21737.778822,-2090.274098,-52710.00392,57054.752538,.069861,.026375,29.809763,32.221578,23.651711,-3.33404,14.490015],[2025,39,-59,-8,-15.75,-58.55,14918.115796,14358.095523,-4049.10754,-24389.086374,28589.818346,.010988,.055916,-.905656,-.095123,2.999401,54.951779,-47.350226],[2025,3,-50,-103,27.96,-54.89,22106.041373,19526.532799,10362.99098,-31437.562789,38431.724126,-.032104,.024888,-42.140973,-31.417096,-30.696074,88.952383,-97.003616],[2025,94,-29,-110,15.74,-38.25,24181.990098,23275.47108,6559.046509,-19063.605287,30792.688931,-.011062,.027107,-42.453758,-39.595926,-16.008811,52.018933,-65.544285],[2025,66,14,143,-.19,12.82,35003.635649,35003.441364,-116.624818,7966.315182,35898.700342,-.055086,-.003859,10.848172,10.735986,-33.689325,-.010939,10.575266],[2025,18,0,21,1.29,-26.06,29282.246275,29274.811882,659.800118,-14316.72254,32594.761714,.030544,.079429,-8.761425,-9.110937,15.408838,54.58125,-31.844958],[2025.5,6,-36,-137,20.28,-52.11,25353.230658,23781.930678,8786.698927,-32577.518648,41280.516301,.025348,.014224,-34.463126,-36.214518,-1.422651,60.968936,-69.281309],[2025.5,63,26,81,.51,41.07,34803.980117,34802.613433,308.431881,30332.056989,46166.554053,.018525,.021888,20.342054,20.241534,11.432574,41.122831,42.353703],[2025.5,69,38,-144,12.93,56.97,23096.337032,22510.804524,5167.636206,35525.990264,42373.774537,-.1053,-.007297,-33.951051,-23.593092,-48.967345,-62.123761,-70.589724],[2025.5,50,-70,-133,57.21,-71.94,16656.709403,9021.847823,14001.865232,-51084.838301,53731.803175,-.036998,.045634,8.590794,13.694592,1.395803,111.703074,-103.537175],[2025.5,8,-52,-75,14.91,-49.63,20005.506364,19331.857134,5147.774727,-23532.664273,30886.996822,-.098427,-.028885,-58.502212,-47.688987,-48.263512,44.775999,-72.006513],[2025.5,8,-66,17,-33.14,-59.55,18154.870136,15201.438652,-9925.501123,-30881.123197,35822.382382,-.112991,.041932,10.080437,-11.133189,-35.489343,34.582697,-24.703647],[2025.5,22,-37,140,9.28,-68.62,21688.84759,21404.761773,3498.89743,-55397.58776,59492.006517,.028818,.004094,.393984,-1.37102,10.829532,10.653875,-9.77701],[2025.5,40,-12,-129,10.76,-15.46,29105.866326,28594.451238,5432.201489,-8052.525092,30199.248583,-.009568,.030404,-39.188467,-37.592705,-12.089297,27.469404,-45.094246],[2025.5,44,33,-118,11.1,57.89,23678.743422,23235.83585,4558.379362,37727.715752,44542.826874,-.075717,-.021971,-41.700619,-34.896682,-38.734089,-98.57311,-105.659134],[2025.5,50,-81,-67,28.13,-67.61,18292.84272,16132.682326,8623.494405,-44412.283868,48032.062762,-.099291,.019879,-12.853806,3.608124,-34.016532,74.964128,-74.210029],[2026,74,-57,3,-22.51,-58.65,14362.206593,13268.119649,-5498.179626,-23576.062921,27606.226129,-.037845,.082339,12.94561,8.327751,-13.719801,55.005355,-40.240277],[2026,46,-24,-122,14.01,-34.17,26638.50009,25846.118652,6448.863284,-18080.399376,32194.883578,271e-6,.019932,-40.514451,-39.339842,-9.685735,41.034418,-56.566841],[2026,69,23,63,1.17,35.92,34565.858527,34558.605297,708.078839,25043.405885,42684.54936,.013234,.010624,23.857027,23.688475,8.470762,27.058242,35.194683],[2026,33,-3,-147,9.71,-2.12,30957.666082,30514.086409,5221.840663,-1146.978999,30978.906535,-.006185,.036855,-36.361404,-35.276692,-9.427361,21.287924,-37.124648],[2026,47,-72,-22,-6.32,-61.16,18392.516222,18280.800055,-2024.10532,-33397.48616,38127.112857,-.048225,.01733,-15.939764,-17.546607,-13.632509,52.849287,-53.982732],[2026,62,-14,99,-1.43,-44.7,33448.275663,33437.82863,-835.919473,-33100.922253,47058.03012,.0614,.07248,38.755947,39.639639,34.864408,45.397052,-4.385324],[2026,83,86,-46,-30.61,86.84,3000.255301,2582.099403,-1527.839829,54279.308437,54362.16383,1.221388,-.002547,3.280093,35.392266,53.372894,15.551936,15.709262],[2026,82,-64,87,-81.74,-75.4,13974.248411,2007.07487,-13829.362571,-53663.514288,55453.154865,-.18726,-.029553,-23.144309,-48.522801,16.344602,-24.623137,17.996086],[2026,34,-19,43,-14.98,-52.33,20212.448819,19525.69405,-5224.017527,-26182.86233,33076.961273,-.1357,.023383,51.024088,36.91785,-59.432251,-44.004821,66.012531],[2026,56,-81,40,-59.77,-68.45,17877.818542,9000.536024,-15446.90089,-45267.890393,48670.301997,-.146798,.017031,-1.33047,-40.246526,-21.910829,42.754262,-40.25414],[2026.5,14,0,80,-3.1,-17.15,39489.089663,39431.415992,-2133.456168,-12188.838466,41327.424134,.056431,.021103,33.618195,35.670346,37.019904,5.553327,30.484922],[2026.5,12,-82,-68,29.79,-68.07,18497.480257,16052.819558,9190.416754,-45940.146795,49524.275496,-.104864,.021236,-11.118018,7.171828,-34.904116,76.756556,-75.354213],[2026.5,44,-46,-42,-11.36,-54.39,14140.316272,13863.176808,-2785.834358,-19744.304022,24285.511845,.039043,-.119143,-63.277988,-60.139435,21.913412,1.623579,-38.163791],[2026.5,43,17,52,1.19,23.95,36002.676553,35994.907968,747.876551,15990.895993,39394.180708,-.010785,.016571,20.35104,20.487426,-6.352799,21.505886,27.328663],[2026.5,64,10,78,-1.53,7.53,39441.702532,39427.72448,-1049.971869,5214.811025,39784.948821,.031231,.021184,27.794943,28.357414,20.751458,18.512565,29.981674],[2026.5,12,33,-145,11.96,52.51,24672.289649,24136.839639,5112.225422,32162.934508,40536.110231,-.08662,34e-5,-40.973255,-32.355349,-44.980044,-53.017362,-67.004405],[2026.5,12,-79,115,-137.58,-77.37,13023.480845,-9613.650418,-8785.714482,-58104.306533,59545.961164,-.241722,.014808,7.471685,-42.581077,35.51814,37.027107,-34.496496],[2026.5,14,-33,-114,18.12,-44.1,24613.183584,23393.133584,7653.110952,-23854.293436,34275.882505,-322e-6,.022971,-42.803882,-40.639067,-13.440897,60.620545,-72.925914],[2026.5,19,29,66,2.24,46.04,32749.959268,32725.000691,1278.34338,33958.454002,47177.71116,.018224,.011101,23.712541,23.287876,11.334193,37.754815,43.636705],[2026.5,86,-11,167,10.24,-31.6,33105.255278,32578.377044,5882.794932,-20368.224196,38869.300019,.013426,-.025948,-16.653141,-17.766581,4.674631,-10.422224,-8.722161],[2027,37,-66,-5,-17.22,-59.04,17159.8365,16390.771268,-5079.626554,-28608.243575,33360.029814,-.04363,.039964,-2.074991,-5.850093,-11.867216,48.69553,-42.826703],[2027,67,72,-115,13.73,84.84,5026.868699,4883.287833,1192.857435,55689.615237,55916.032175,-.315901,-.072636,66.581032,71.25614,-11.124661,-50.889259,-44.697541],[2027,44,22,174,6.46,31.89,28867.487799,28683.97251,3249.857362,17961.198575,33999.066253,-.024375,-168e-6,2.815221,4.179894,-11.885941,1.634357,3.253718],[2027,54,54,178,.63,65.46,20617.099795,20615.871559,225.041793,45149.631876,49634.202547,-.170729,.012944,-3.909066,-3.238256,-61.473597,18.434524,15.145168],[2027,57,-43,50,-48.27,-63.13,16833.417225,11203.748204,-12563.437494,-33221.366617,37242.759503,-.165742,-.033376,12.323002,-28.141121,-41.606787,-72.317297,70.078525],[2027,44,-43,-111,24.31,-52.57,22462.470699,20471.522067,9245.50562,-29347.556906,36957.295441,-.006299,.024728,-40.058633,-35.491603,-18.738696,78.579889,-86.747247],[2027,12,-63,178,57.87,-79.14,11720.691727,6233.774935,9925.455386,-61075.730989,62190.188377,.151793,.036783,27.353301,-11.747306,39.678751,69.308326,-62.911163],[2027,38,27,-169,8.48,42.66,26106.758229,25821.061601,3851.701313,24058.365347,35501.658671,-.058765,.013094,-19.135886,-14.976028,-29.306273,-6.601488,-18.545527],[2027,61,59,-77,-16.48,78.68,10884.812802,10437.775689,-3087.391846,54397.713552,55476.03437,.230418,-.074136,59.669126,69.634646,25.051419,-67.643997,-54.621632],[2027,67,-47,-32,-13.52,-57.98,12805.786103,12450.832543,-2994.148743,-20475.298079,24150.072239,.11555,-.077078,-52.470761,-44.977997,37.378183,22.62727,-47.00729],[2027.5,8,62,53,19.39,76.67,12997.751893,12260.425578,4315.497527,54849.810218,56368.814385,.099601,.030088,-12.884268,-19.655269,17.035218,74.003425,69.038304],[2027.5,77,-68,-7,-16.19,-59.82,17262.817301,16578.099495,-4813.676173,-29680.383821,34335.550744,-.048399,.032649,-5.108702,-8.972297,-12.579376,47.699056,-43.800575],[2027.5,98,-5,159,7.79,-23.22,33857.496691,33544.960996,4589.735713,-14525.780052,36841.937629,-.005671,-.036102,-11.751062,-11.188278,-4.913401,-20.218524,-2.827531],[2027.5,34,-29,-107,15.64,-37.45,24446.053109,23540.396213,6592.363667,-18723.097084,30792.269761,-.017007,.030517,-44.335923,-40.736596,-18.943541,54.61513,-68.406867],[2027.5,60,27,65,1.85,42.83,33079.422542,33062.159421,1068.555172,30667.425573,45108.083389,.016699,.011093,23.388908,23.065275,10.391374,33.592654,39.990433],[2027.5,73,-72,95,-102.64,-76.49,13306.747292,-2912.418045,-12984.118939,-55399.217725,56974.931751,-.235287,-.006801,-8.44255,-51.471801,20.197772,6.191978,-7.992526],[2027.5,96,-46,-85,17.93,-47.37,19914.457641,18947.658009,6129.590452,-21631.434316,29402.458634,-.091418,-.005439,-53.229644,-40.865392,-46.615842,53.698344,-75.558704],[2027.5,0,-13,-59,-17.49,-15.26,22401.49301,21365.849306,-6732.56062,-6112.31352,23220.406233,-.17369,-.38568,-68.873971,-86.099325,-44.070217,-143.226783,-28.743372],[2027.5,16,66,-178,.37,75.67,13821.614337,13821.326215,89.244328,54092.646409,55830.559897,-.327448,.003026,-1.280867,-.770805,-78.997758,6.899408,6.367545],[2027.5,72,-87,38,-65.44,-70.97,16661.696834,6926.051596,-15153.941754,-48295.635435,51088.94737,-.14831,.02134,.540463,-39.00136,-18.41966,56.777921,-53.4973],[2028,49,20,167,5.1,26.82,30251.262453,30131.436134,2689.876669,15295.611788,33898.298187,-.020383,-.011359,9.497816,10.417136,-9.874921,-2.728173,7.244961],[2028,71,5,-13,-6.47,-17.66,28323.200567,28142.647915,-3192.970202,-9017.928693,29724.177504,.166481,-.073692,-18.125869,-8.732692,83.815865,-34.350117,-6.850172],[2028,95,14,65,-.51,17.44,36933.940251,36932.466767,-329.910612,11601.180703,38713.089985,.011924,.011881,29.013291,29.080794,7.427118,17.527263,32.932326],[2028,86,-85,-79,41.09,-70.25,16867.459172,12713.115116,11085.480728,-46988.258092,49924.018042,-.121705,.024621,-3.420695,20.969078,-29.252744,73.02543,-69.886927],[2028,30,-36,-64,-4.65,-40.08,17398.651081,17341.333537,-1411.102609,-14639.967305,22738.551012,-.162162,-.152944,-69.721104,-73.485198,-43.42573,-20.660569,-40.045784],[2028,75,79,125,-18.59,87.42,2582.332595,2447.5959,-823.235047,57308.751756,57366.902212,-.910648,.022931,-21.221891,-33.198946,-32.13617,39.08266,38.087754],[2028,21,6,-32,-14.34,-8.7,28453.070088,27567.09426,-7045.034525,-4352.046687,28783.980055,.17796,-.31147,-29.041854,-6.255704,92.814073,-153.852374,-5.445988],[2028,1,-76,-75,29.87,-65.23,19597.63521,16993.742946,9761.147808,-42479.84725,46782.525885,-.086171,.016127,-22.854241,-5.137167,-36.941289,80.971555,-83.0983],[2028,45,-46,-41,-11.68,-54.96,13897.562372,13609.973828,-2812.623735,-19816.196211,24203.798713,.048411,-.117246,-62.721602,-59.047199,24.193263,3.174357,-38.612991],[2028,11,-22,-21,-23.24,-57.67,13528.270036,12430.606447,-5337.987778,-21373.837958,25295.35608,.176027,-.19656,-92.571749,-68.660974,74.716931,-16.002042,-35.98726],[2028.5,28,54,-120,15.43,73.74,15286.094495,14735.145798,4066.959949,52393.678137,54578.03765,-.147623,-.053732,20.801434,30.530225,-32.430768,-111.448817,-101.162318],[2028.5,68,-58,156,41.57,-81.52,9282.943032,6944.959164,6159.591995,-62264.415929,62952.605366,.218259,.014957,11.274695,-15.02895,33.936954,35.824068,-33.769886],[2028.5,39,-65,-88,29.45,-60.2,20609.270068,17946.905687,10131.662696,-35982.872979,41466.964689,-.076076,.014457,-36.693634,-18.500934,-41.868201,85.117374,-92.097328],[2028.5,27,-23,81,-13.27,-58.58,25625.329284,24940.672257,-5883.907569,-41948.733657,49156.421313,.129297,-.007968,18.629651,31.409843,52.004836,-43.610533,46.927695],[2028.5,11,34,0,1.57,46.77,29089.194286,29078.234597,798.434048,30945.577813,42471.284539,.111314,.010464,15.380882,13.823891,56.915296,27.686933,30.707939],[2028.5,72,-62,65,-67.87,-68.5,17434.847799,6567.891205,-16150.440331,-44267.327811,47576.992646,-.176819,-.022421,-7.894025,-52.815238,-12.956527,-30.762466,25.729685],[2028.5,55,86,70,67.64,87.57,2370.361097,901.741754,2192.139033,55926.154052,55976.36393,1.341225,.014915,-13.210618,-56.340956,8.891342,32.41574,31.82725],[2028.5,59,32,163,.15,43.1,28217.204381,28217.104175,75.200106,26405.862611,38645.571587,-.043407,.005164,13.00012,13.057045,-21.342658,16.9364,21.064439],[2028.5,65,48,148,-9.55,61.79,23693.546804,23365.16701,-3931.047029,44177.553125,50130.233993,-.040524,.019409,4.495479,1.652822,-17.271572,44.310648,41.173752],[2028.5,95,30,28,4.56,44.27,29786.406936,29692.133298,2367.965026,29039.808439,41599.765773,.034245,.035803,8.349023,6.90731,18.410171,44.444119,37.00348],[2029,95,-60,-59,8.58,-55.17,18095.598879,17893.018948,2700.105868,-26011.845842,31687.013474,-.053323,-.035373,-49.689333,-46.620155,-24.066802,37.170306,-58.889314],[2029,95,-70,42,-55.06,-64.54,18202.66048,10426.249753,-14920.796381,-38237.047006,42348.655378,-.157751,.012766,3.604264,-39.016467,-31.660684,14.381378,-11.435882],[2029,50,87,-154,-73.48,89.07,906.920459,257.87742,-869.484879,55992.308183,55999.652503,1.562405,-.064156,62.930173,41.603892,-53.300475,13.406039,14.423442],[2029,58,32,19,4.11,46.03,29434.989012,29359.395781,2108.18821,30508.465542,42393.219362,.056569,.028397,10.5931,8.484435,29.745872,41.240139,37.03378],[2029,57,34,-13,-1.89,45.74,28257.277809,28241.863242,-933.225495,28997.458189,40488.595068,.154151,-.026819,21.195169,23.694393,75.28301,-5.404499,10.92162],[2029,38,-76,49,-64.28,-67.36,18412.640681,7991.121323,-16588.167977,-44151.303941,47836.837024,-.160186,.012467,-.041101,-46.394534,-22.304306,27.140173,-25.06501],[2029,49,-50,-179,32.11,-71.33,18080.59379,15315.042731,9610.272521,-53522.651338,56494.088877,.110906,.012602,-5.111774,-22.932228,26.927867,53.95627,-52.754307],[2029,90,-55,-171,38.65,-72.79,16416.538468,12821.507915,10252.398258,-52995.143972,55479.618058,.117199,.024083,2.622098,-18.923406,27.863957,70.344114,-66.418097],[2029,41,42,-19,-4.13,56.44,24503.475397,24439.977735,-1762.893879,36929.897501,44319.720622,.180959,-.034375,24.712482,30.216258,75.411786,-10.849192,4.622821],[2029,19,46,-22,-5.65,60.89,22632.016516,22522.142232,-2227.39329,40651.688191,46527.066578,.196585,-.034725,25.397648,32.916674,74.775309,-12.351198,1.562595],[2029.5,31,13,-132,9.04,31.41,28145.022897,27795.620707,4421.061344,17187.98359,32978.312476,-.039071,.025976,-57.60425,-53.874337,-28.002848,-17.659477,-58.365744],[2029.5,93,-2,158,7.09,-17.84,34067.30102,33806.520595,4207.156292,-10964.647547,35788.329028,-.010065,-.038403,-8.149803,-7.348347,-6.945244,-22.576489,-.841015],[2029.5,51,-76,40,-56.34,-66.22,18517.441118,10263.650094,-15412.758102,-42018.541264,45917.898858,-.148779,.015688,.140771,-39.943896,-26.768531,30.856345,-28.179249],[2029.5,64,22,-132,10.23,43.76,26014.780783,25601.266218,4619.955329,24914.378368,36020.758857,-.057237,.010172,-55.619345,-50.120044,-35.452393,-44.412257,-70.887703],[2029.5,26,-65,55,-63.48,-65.71,18695.741849,8347.198524,-16728.868464,-41431.528035,45454.397791,-.179396,-.005003,1.416835,-51.746426,-27.403316,-12.788863,12.23976],[2029.5,66,-21,32,-14.63,-56.68,16100.322907,15578.335534,-4066.430831,-24494.877642,29312.444941,-.198629,.076846,37.723336,22.403071,-63.533684,14.184486,8.866905],[2029.5,18,9,-172,9.24,15.85,30922.51441,30520.999126,4966.941695,8779.472279,32144.689001,-53e-6,.016657,-17.13715,-16.910013,-2.781046,4.848633,-15.161302],[2029.5,63,88,26,36.52,87.37,2539.900024,2041.140972,1511.567287,55286.620082,55344.931586,1.375737,.002257,-1.029565,-37.121853,48.397411,25.084712,25.011033],[2029.5,33,17,5,.89,13.77,34026.126581,34021.976056,531.446418,8341.137769,35033.582023,.078642,.026998,3.099752,2.369935,46.745426,17.756374,7.238224],[2029.5,77,-18,138,4.45,-47.55,31847.600506,31751.49758,2472.257962,-34817.395113,47186.021876,-.03658,.012491,.895474,2.471158,-20.201885,14.262673,-9.919684]]}},20181:(e,t,n)=>{var r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),h=Object.prototype.toString,d=Math.max,f=Math.min,p=function(){return u.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==h.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=o.test(e);return n||a.test(e)?s(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,o,a,s,l,c=0,u=!1,h=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||h&&e-c>=o}function A(){var e=p();if(b(e))return x(e);s=setTimeout(A,function(e){var n=t-(e-l);return h?f(n,o-(e-c)):n}(e))}function x(e){return s=void 0,y&&r?v(e):(r=i=void 0,a)}function w(){var e=p(),n=b(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(A,t),u?v(e):a}(l);if(h)return s=setTimeout(A,t),v(l)}return void 0===s&&(s=setTimeout(A,t)),a}return t=g(t)||0,m(n)&&(u=!!n.leading,o=(h="maxWait"in n)?d(g(n.maxWait)||0,t):o,y="trailing"in n?!!n.trailing:y),w.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},w.flush=function(){return void 0===s?a:x(p())},w}},20214:(e,t,n)=>{"use strict";var r=n(10487),i=n(38452),o=n(5388),a=n(68206),s=n(74895),l=n(79377),c=r(s()),u=function(e){return o(e),c(e)};i(u,{getPolyfill:s,implementation:a,shim:l}),e.exports=u},20306:(e,t,n)=>{const{gnmWmm:r,gtnmWmm:i,hnmWmm:o,htnmWmm:a,julianDaysCOF:s}=n(20176),{deg2rad:l,rad2deg:c,zeroArray2D:u,roundToDecimalPlace:h,gregorianToJulian:d}=n(2069),f=6378.137,p=6356.7523142,m=u(13,13),g=u(13,13),y=u(13,13),v=u(13,13),b=new Float32Array(13),A=new Float32Array(13),x=new Float32Array(13),w=u(13,13).map((e=>e.map((e=>new Float32Array(2)))));for(let e=2;e<=12;e++)x[e]=Math.sqrt((2*e-1)/(2*e));for(let e=0;e<=12;e++){const t=e*e;for(let n=Math.max(e+1,2);n<=12;n++)w[e][n][0]=Math.sqrt((n-1)*(n-1)-t),w[e][n][1]=1/Math.sqrt(n*n-t)}const C=new Date,S=d(C.getFullYear(),C.getMonth(),C.getDate()),E=(e,t,n,u=0)=>{const d=l(t),C=l(n),S=Math.sin(d),E=Math.cos(d),k=Math.sqrt(f**2*E**2+p**2*S**2),T=Math.atan2(E*(u*k+f**2),S*(u*k+p**2)),I=Math.sqrt(u**2+2*u*k+(f**4-22083079019902.5*S**2)/(f**2-272331.6066819355*S**2)),O=Math.cos(T),R=Math.sin(T),M=1/(R+(0===R?1e-8:0));m[0][0]=1,m[1][1]=R,g[0][0]=0,g[1][1]=O,m[1][0]=O,g[1][0]=-R;for(let e=2;e<=12;e++)m[e][e]=m[e-1][e-1]*R*x[e],g[e][e]=(g[e-1][e-1]*R+m[e-1][e-1]*O)*x[e];for(let e=0;e<=12;e++)for(let t=Math.max(e+1,2);t<=12;t++)m[t][e]=(m[t-1][e]*O*(2*t-1)-m[t-2][e]*w[e][t][0])*w[e][t][1],g[t][e]=((g[t-1][e]*O-m[t-1][e]*R)*(2*t-1)-g[t-2][e]*w[e][t][0])*w[e][t][1];const P=(e-s)/365.25;for(let e=1;e<=12;e++)for(let t=0;t<=12;t++)y[e][t]=r[e][t]+P*i[e][t],v[e][t]=o[e][t]+P*a[e][t];for(let e=0;e<=12;e++)b[e]=Math.sin(e*C),A[e]=Math.cos(e*C);let D=0,j=0,B=0;const L=6371.2/I;let F=L**2;for(let e=1;e<=12;e++){let t=0,n=0,r=0;for(let i=0;i<=e;i++){const o=y[e][i]*A[i]+v[e][i]*b[i];t+=o*m[e][i],n+=o*g[e][i],r+=i*(y[e][i]*b[i]-v[e][i]*A[i])*m[e][i]}F*=L,D+=(e+1)*t*F,j-=n*F,B+=r*F*M}const N=T-(Math.PI/2-d),_=Math.sin(N),z=-j*Math.cos(N)-D*_,V=B;return 0!==z||0!==V?h(c(Math.atan2(V,z)),2):0};e.exports={magvar:(e,t,n=0)=>E(S,e,t,n),calculateMagVar:E,julianDaysNow:S}},20311:e=>{"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},20849:e=>{"use strict";e.exports=function(e,t){if(Array.isArray(e))for(var n=0;n{"use strict";var t,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a={};function s(e){const t=new Uint8Array(4);return t[3]=127&e,t[2]=(16256&e)>>7,t[1]=(2080768&e)>>14,t[0]=(266338304&e)>>21,t[0]>0?(t[0]|=128,t[1]|=128,t[2]|=128,t.buffer):t[1]>0?(t[1]|=128,t[2]|=128,t.buffer.slice(1)):t[2]>0?(t[2]|=128,t.buffer.slice(2)):t.buffer.slice(3)}((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(a,{default:()=>s}),e.exports=(t=a,((e,t,a,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of i(t))o.call(e,a)||undefined===a||n(e,a,{get:()=>t[a],enumerable:!(s=r(t,a))||s.enumerable});return e})(n({},"__esModule",{value:!0}),t))},21383:e=>{"use strict";e.exports=function(e,t){if(null===e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}},21412:(e,t,n)=>{"use strict";var r=n(70453)("%Array%"),i=!r.isArray&&n(36556)("Object.prototype.toString");e.exports=r.isArray||function(e){return"[object Array]"===i(e)}},21482:(e,t,n)=>{"use strict";var r=n(38452),i=n(10487),o=n(60034),a=n(92747),s=n(68013),l=i(o);r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},21703:(e,t,n)=>{"use strict";var r=n(36556),i=r("Number.prototype.toString"),o=r("Object.prototype.toString"),a=n(49092)();e.exports=function(e){return"number"==typeof e||!(!e||"object"!=typeof e)&&(a?function(e){try{return i(e),!0}catch(e){return!1}}(e):"[object Number]"===o(e))}},21968:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=e=>{if(null!=e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect)return e.getBoundingClientRect()}},22102:e=>{"use strict";e.exports="data:image/svg+xml;charset=UTF-8,%3csvg width=%2732%27 height=%2732%27 viewBox=%270 0 32 32%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath d=%27M15.6306 7.22001C15.7761 6.92666 16.2239 6.92666 16.3694 7.22001L19.962 14.4623C20.0866 14.7133 19.8896 15 19.5926 15H12.4074C12.1104 15 11.9134 14.7133 12.038 14.4623L15.6306 7.22001Z%27 fill=%27%23EF2A2A%27/%3e%3cpath d=%27M16.3694 24.78C16.2239 25.0733 15.7761 25.0733 15.6306 24.78L12.038 17.5377C11.9134 17.2867 12.1104 17 12.4074 17L19.5926 17C19.8896 17 20.0866 17.2867 19.962 17.5377L16.3694 24.78Z%27 fill=%27white%27/%3e%3c/svg%3e"},22426:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(r.__importDefault(n(27796)).default);t.default=i},22535:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{default:()=>f}),e.exports=(r=h,u(o({},"__esModule",{value:!0}),r));var d=((e,t,n)=>(n=null!=e?i(l(e)):{},u(e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(78618));class f extends d.default{size=4;dataViewGet(e,t){return e.getFloat32(t)}dataViewSet(e,t){e.setFloat32(0,t)}}},22799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,A=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case h:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case m:case l:return e;default:return t}}case i:return t}}}function w(e){return x(e)===h}t.AsyncMode=u,t.ConcurrentMode=h,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return w(e)||x(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===h||e===s||e===a||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===A||e.$$typeof===y)},t.typeOf=x},22964:(e,t,n)=>{"use strict";var r=n(70453),i=r("%BigInt%",!0),o=r("%Number%"),a=n(69675),s=n(58068),l=n(9693),c=n(10866);e.exports=function(e){if(!i)throw new s("BigInts are not supported in this environment");var t=c(e,o);if(null==t)throw new a("Cannot convert null or undefined to a BigInt");if("boolean"==typeof t)return i(t?1:0);if("number"==typeof t)throw new a("Cannot convert a Number value to a BigInt");if("string"==typeof t){var n=l(t);if(void 0===n)throw new a("Failed to parse String to BigInt");return n}if("symbol"==typeof t)throw new a("Cannot convert a Symbol value to a BigInt");if("bigint"!=typeof t)throw new s("Assertion failed: unknown primitive type");return t}},23079:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAA/CAYAAABXXxDfAAABsElEQVR4Ae3bQ3ZgUQCE4bZt9zZ62uO2bduMbWsRySi2bRtbiJ281DysOHVunfMt4I/z3r3r1tCuQi50QT24wzaQ3noIBWsKFeofgAiwZuACkgsBaxa1ILcgsOagG6TmB9YcFYLMvMEiPAGJeZLhkSAxVzI8BrYohDuR4XEq4Q5keCJsVQi3IcOTVf6i+0uGp8J2hfCfZHgG7FAI/0aGZ8FOhfAvZHgO7FII/0iG58FuhfB3ZHgB7FEIfw3jRHgR7FUIf0GGl8A+hfCnZHg57FcIfwxjRHgFHFAIf0CGV8FBhfC7MEqE18BhhfDbZHgdHFEIvwEjRHgDHFUIvwbDRHgTHFcIv0yGN8MJhfCLMESEt8IphfBzMEiEt8NpkFg+Ed4BZ0FmPUT8eZBaAfmZPwMyY7/n24jvedmf9ieBn/k9r/EXXiMcA2Lmb3vzX53a//OHgJh5kmOe4Sk9vS0TeHor/tzevLEx7+rMW1rzfp7Yd8mTGcR+CZ7JMaexzDk8YvaLewJT/+xtPGwBzJy6lpgHWIQowMxNC3PHRmWBirerzL06YuECNyoF7tIq3aKeACz+zVVHtmnyAAAAAElFTkSuQmCC"},23117:(e,t,n)=>{"use strict";e.exports=n.p+"1eca2d329458b92342aa.ttf"},23811:(e,t,n)=>{"use strict";var r=n(36556)("FinalizationRegistry.prototype.register",!0);e.exports=r?function(e){if(!e||"object"!=typeof e)return!1;try{return r(e,{},null),!0}catch(e){return!1}}:function(e){return!1}},23984:(e,t,n)=>{"use strict";e.exports=n.p+"a97c2faa159e7881c89a.ttf"},24133:(e,t,n)=>{"use strict";var r=n(10487),i=n(38452),o=n(13003),a=n(76642),s=n(92464),l=r(a(),Number);i(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},24280:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},24336:(e,t)=>{"use strict";t.n=function(e,t){if(null!=e[r]){var o=t?1:0;if(n.has(e)){var a=n.get(e),s=a[o];return null==s&&(s=i(e,t),a[o]=s,n.set(e,a)),s}var l=i(e,t),c=new Array(2);return c[o]=l,n.set(e,c),l}return e};var n=new WeakMap,r="$$css$localize";function i(e,t){var n={};for(var i in e)if(i!==r){var o=e[i];Array.isArray(o)?n[i]=t?o[1]:o[0]:n[i]=o}return n}},24646:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(3533)),o=function(){function e(e,t){this.stopwordId=e,this.apiCall=t}return e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.stopwordId))},e}();t.default=o},24751:(e,t,n)=>{"use strict";var r=n(70453),i=r("%Number%"),o=r("%BigInt%",!0);e.exports=function(e,t,n){var r="bigint"==typeof e?o:i;e<0&&(e>>>=0);for(var a=[],s=0;s>=r(8);return a}},24810:(e,t,n)=>{"use strict";var r=n(70453)("%String%"),i=n(69675);e.exports=function(e){if("symbol"==typeof e)throw new i("Cannot convert a Symbol value to a string");return r(e)}},24994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},25214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.upsert=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i;return r.__generator(this,(function(r){switch(r.label){case 0:return n=Array.isArray(t)?t.map((function(e){return JSON.stringify(e)})).join("\n"):t,[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:{id:e},bodyParameters:n,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0})];case 1:return i=r.sent(),[2,Array.isArray(t)?i.split("\n").map((function(e){return JSON.parse(e)})):i]}}))}))},e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.endpointPath=function(t){return void 0===t?"".concat(e.RESOURCEPATH):"".concat(e.RESOURCEPATH,"/").concat(encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/stemming/dictionaries"},enumerable:!1,configurable:!0}),e}();t.default=i},25470:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(58168),i=n(98587),o=n(96540),a=n(9176),s=["behavior","contentContainerStyle","keyboardVerticalOffset"];class l extends o.Component{constructor(){super(...arguments),this.frame=null,this.onLayout=e=>{this.frame=e.nativeEvent.layout}}relativeKeyboardHeight(e){var t=this.frame;if(!t||!e)return 0;var n=e.screenY-(this.props.keyboardVerticalOffset||0);return Math.max(t.y+t.height-n,0)}onKeyboardChange(e){}render(){var e=this.props,t=(e.behavior,e.contentContainerStyle,e.keyboardVerticalOffset,(0,i.A)(e,s));return o.createElement(a.A,(0,r.A)({onLayout:this.onLayout},t))}}const c=l},25767:(e,t,n)=>{"use strict";var r=n(82682),i=n(39209),o=n(10487),a=n(36556),s=n(75795),l=n(93628),c=a("Object.prototype.toString"),u=n(49092)(),h="undefined"==typeof globalThis?n.g:globalThis,d=i(),f=a("String.prototype.slice"),p=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1?t:"Object"===t&&function(e){var t=!1;return r(m,(function(n,r){if(!t)try{n(e),t=f(r,1)}catch(e){}})),t}(e)}return s?function(e){var t=!1;return r(m,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=f(r,1))}catch(e){}})),t}(e):null}},25847:e=>{"use strict";var t,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a={};function s(e){const t=new Uint8Array(e);let n=1,r=0;for(let e=0;e<4;e++){const i=t[e];if(null==i)break;if(r<<=7,r+=127&i,!(128&i))break;n++}return[r,n]}((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(a,{default:()=>s}),e.exports=(t=a,((e,t,a,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of i(t))o.call(e,a)||undefined===a||n(e,a,{get:()=>t[a],enumerable:!(s=r(t,a))||s.enumerable});return e})(n({},"__esModule",{value:!0}),t))},25858:(e,t,n)=>{var r="Expected a function",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,h=c||u||Function("return this")(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return h.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=a.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(r);return g(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),function(e,t,n){var i,o,a,s,l,c,u=0,h=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError(r);function b(t){var n=i,r=o;return i=o=void 0,u=t,s=e.apply(r,n)}function A(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-u>=a}function x(){var e=m();if(A(e))return w(e);l=setTimeout(x,function(e){var n=t-(e-c);return d?p(n,a-(e-u)):n}(e))}function w(e){return l=void 0,v&&i?b(e):(i=o=void 0,s)}function C(){var e=m(),n=A(e);if(i=arguments,o=this,c=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(x,t),h?b(e):s}(c);if(d)return l=setTimeout(x,t),b(c)}return void 0===l&&(l=setTimeout(x,t)),s}return t=y(t)||0,g(n)&&(h=!!n.leading,a=(d="maxWait"in n)?f(y(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v),C.cancel=function(){void 0!==l&&clearTimeout(l),u=0,i=c=o=l=void 0},C.flush=function(){return void 0===l?s:w(m())},C}(e,t,{leading:i,maxWait:t,trailing:o})}},25879:(e,t,n)=>{var r=n(2905),i=n(36623),o=n(65233),a={features:["FeatureCollection"],coordinates:["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],geometry:["Feature"],geometries:["GeometryCollection"]},s=Object.keys(a);function l(e){for(var t=o(),n=r(e),i=0;i{"use strict";var r=n(69675),i=n(19511),o=n(39209)(),a=n(36556),s=n(84670),l=n(37070),c=a("SharedArrayBuffer.prototype.byteLength",!0);e.exports=function(e){var t=l(e);if(!s(e)&&!t)throw new r("Assertion failed: `arrayBuffer` must be an Object with an [[ArrayBufferData]] internal slot");if(0===(t?c:i)(e))try{new n.g[o[0]](e)}catch(e){return!!e&&"TypeError"===e.name}return!1}},26056:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(71354),i=n.n(r),o=n(76314),a=n.n(o),s=n(4417),l=n.n(s),c=new URL(n(97887),n.b),u=new URL(n(92810),n.b),h=a()(i()),d=l()(c),f=l()(u);h.push([e.id,`.marker-label {\n padding-top: 1px;\n text-align: center;\n line-height: 1.2 !important;\n background-color: #1f5f9e !important;\n border: none !important;\n border-radius: 3px;\n color: white !important;\n font-weight: 600 !important;\n font-family: "FiraCode-SemiBold";\n text-transform: uppercase;\n}\n.marker-label::before {\n display: none !important;\n}\n\n.marker-label.procedure-overview {\n padding-top: 0px;\n background-color: transparent !important;\n}\n\n.airway-label-container {\n background-color: transparent;\n}\n\n.airway-label {\n padding: 1px 4px 1px 4px !important;\n line-height: 1.1em !important;\n background-color: #7e429a !important;\n border: 1px solid #552c68 !important;\n border-radius: 3px;\n color: white !important;\n font-weight: 600 !important;\n display: flex !important;\n justify-content: center !important;\n align-items: center !important;\n font-family: "FiraCode-SemiBold";\n will-change: transform !important;\n}\n\n.marker-label.sid {\n background-color: #cb4c8b !important;\n}\n.marker-label.star {\n background-color: #6ca550 !important;\n}\n.marker-label.app {\n background-color: #ec7b2c !important;\n}\n.marker-label.airport {\n background-color: #198080 !important;\n}\n\n.route-marker {\n border-radius: 50%;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.route-marker.sid {\n border: 2px solid #cb4c8b !important;\n}\n\n.route-marker.star {\n border: 2px solid #6ca550 !important;\n}\n\n.route-marker.app {\n border: 2px solid #ec7b2c !important;\n}\n\n.marker-icon-container {\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n}\n\n.leaflet-control-scale-line {\n margin-bottom: 12px; /* To prevent scale from ending up under attribution on high interface scale */\n}\n\n#map.night .leaflet-control-scale-line {\n background: rgba(0, 0, 0, 0.6);\n color: #fff;\n}\n\n#map.day .custom-waypoint-marker {\n filter: invert(100%);\n}\n\n.custom-waypoint-marker-label {\n background-color: transparent;\n border: none;\n box-shadow: none;\n font-family: "FiraCode-SemiBold";\n color: white;\n text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;\n font-size: 11px;\n text-transform: uppercase;\n}\n\n.custom-waypoint-marker-label.large {\n font-size: 22px;\n}\n\n.custom-waypoint-marker-label.xlarge {\n font-size: 44px;\n}\n\n.custom-waypoint-marker-label.small-scale {\n font-size: 8px;\n}\n\n.custom-waypoint-marker-label.x-small-scale {\n font-size: 6px;\n}\n\n.custom-waypoint-marker-label.large.small-scale {\n font-size: 16px;\n}\n\n.custom-waypoint-marker-label.large.x-small-scale {\n font-size: 12px;\n}\n\n.custom-waypoint-marker-label.xlarge.small-scale {\n font-size: 32px;\n}\n.custom-waypoint-marker-label.xlarge.x-small-scale {\n font-size: 24px;\n}\n\n#map.day .custom-waypoint-marker-label {\n color: black;\n text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;\n}\n\n.custom-waypoint-marker-label::before {\n display: none;\n}\n\n/* Ruler labels */\n.ruler-label-container {\n background-color: transparent;\n}\n.ruler-label {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background-image: url(${d});\n background-size: cover;\n border: none;\n font-family: "FiraCode-SemiBold";\n color: #fff;\n font-weight: 600;\n text-transform: uppercase;\n}\n.ruler-label.start{\n background-image: url(${f});\n}\n\n.ruler-point:hover {\n cursor: move;\n}\n\n.ruler-point{\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: #DEDEDE;\n border: 1px solid #1D2838;\n border-radius: 50%; \n box-sizing: border-box;\n}\n`,"",{version:3,sources:["webpack://./web/leaflet-customization.css"],names:[],mappings:"AAAA;EACE,gBAAgB;EAChB,kBAAkB;EAClB,2BAA2B;EAC3B,oCAAoC;EACpC,uBAAuB;EACvB,kBAAkB;EAClB,uBAAuB;EACvB,2BAA2B;EAC3B,gCAAgC;EAChC,yBAAyB;AAC3B;AACA;EACE,wBAAwB;AAC1B;;AAEA;EACE,gBAAgB;EAChB,wCAAwC;AAC1C;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,mCAAmC;EACnC,6BAA6B;EAC7B,oCAAoC;EACpC,oCAAoC;EACpC,kBAAkB;EAClB,uBAAuB;EACvB,2BAA2B;EAC3B,wBAAwB;EACxB,kCAAkC;EAClC,8BAA8B;EAC9B,gCAAgC;EAChC,iCAAiC;AACnC;;AAEA;EACE,oCAAoC;AACtC;AACA;EACE,oCAAoC;AACtC;AACA;EACE,oCAAoC;AACtC;AACA;EACE,oCAAoC;AACtC;;AAEA;EACE,kBAAkB;EAClB,gBAAgB;EAChB,aAAa;EACb,uBAAuB;EACvB,mBAAmB;AACrB;;AAEA;EACE,oCAAoC;AACtC;;AAEA;EACE,oCAAoC;AACtC;;AAEA;EACE,oCAAoC;AACtC;;AAEA;EACE,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,kBAAkB;AACpB;;AAEA;EACE,mBAAmB,EAAE,8EAA8E;AACrG;;AAEA;EACE,8BAA8B;EAC9B,WAAW;AACb;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,6BAA6B;EAC7B,YAAY;EACZ,gBAAgB;EAChB,gCAAgC;EAChC,YAAY;EACZ,+EAA+E;EAC/E,eAAe;EACf,yBAAyB;AAC3B;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,eAAe;AACjB;AACA;EACE,eAAe;AACjB;;AAEA;EACE,YAAY;EACZ,+EAA+E;AACjF;;AAEA;EACE,aAAa;AACf;;AAEA,iBAAiB;AACjB;EACE,6BAA6B;AAC/B;AACA;EACE,WAAW;EACX,YAAY;EACZ,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,yDAAwD;EACxD,sBAAsB;EACtB,YAAY;EACZ,gCAAgC;EAChC,WAAW;EACX,gBAAgB;EAChB,yBAAyB;AAC3B;AACA;EACE,yDAAsD;AACxD;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,yBAAyB;EACzB,yBAAyB;EACzB,kBAAkB;EAClB,sBAAsB;AACxB",sourcesContent:['.marker-label {\n padding-top: 1px;\n text-align: center;\n line-height: 1.2 !important;\n background-color: #1f5f9e !important;\n border: none !important;\n border-radius: 3px;\n color: white !important;\n font-weight: 600 !important;\n font-family: "FiraCode-SemiBold";\n text-transform: uppercase;\n}\n.marker-label::before {\n display: none !important;\n}\n\n.marker-label.procedure-overview {\n padding-top: 0px;\n background-color: transparent !important;\n}\n\n.airway-label-container {\n background-color: transparent;\n}\n\n.airway-label {\n padding: 1px 4px 1px 4px !important;\n line-height: 1.1em !important;\n background-color: #7e429a !important;\n border: 1px solid #552c68 !important;\n border-radius: 3px;\n color: white !important;\n font-weight: 600 !important;\n display: flex !important;\n justify-content: center !important;\n align-items: center !important;\n font-family: "FiraCode-SemiBold";\n will-change: transform !important;\n}\n\n.marker-label.sid {\n background-color: #cb4c8b !important;\n}\n.marker-label.star {\n background-color: #6ca550 !important;\n}\n.marker-label.app {\n background-color: #ec7b2c !important;\n}\n.marker-label.airport {\n background-color: #198080 !important;\n}\n\n.route-marker {\n border-radius: 50%;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.route-marker.sid {\n border: 2px solid #cb4c8b !important;\n}\n\n.route-marker.star {\n border: 2px solid #6ca550 !important;\n}\n\n.route-marker.app {\n border: 2px solid #ec7b2c !important;\n}\n\n.marker-icon-container {\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n}\n\n.leaflet-control-scale-line {\n margin-bottom: 12px; /* To prevent scale from ending up under attribution on high interface scale */\n}\n\n#map.night .leaflet-control-scale-line {\n background: rgba(0, 0, 0, 0.6);\n color: #fff;\n}\n\n#map.day .custom-waypoint-marker {\n filter: invert(100%);\n}\n\n.custom-waypoint-marker-label {\n background-color: transparent;\n border: none;\n box-shadow: none;\n font-family: "FiraCode-SemiBold";\n color: white;\n text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;\n font-size: 11px;\n text-transform: uppercase;\n}\n\n.custom-waypoint-marker-label.large {\n font-size: 22px;\n}\n\n.custom-waypoint-marker-label.xlarge {\n font-size: 44px;\n}\n\n.custom-waypoint-marker-label.small-scale {\n font-size: 8px;\n}\n\n.custom-waypoint-marker-label.x-small-scale {\n font-size: 6px;\n}\n\n.custom-waypoint-marker-label.large.small-scale {\n font-size: 16px;\n}\n\n.custom-waypoint-marker-label.large.x-small-scale {\n font-size: 12px;\n}\n\n.custom-waypoint-marker-label.xlarge.small-scale {\n font-size: 32px;\n}\n.custom-waypoint-marker-label.xlarge.x-small-scale {\n font-size: 24px;\n}\n\n#map.day .custom-waypoint-marker-label {\n color: black;\n text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;\n}\n\n.custom-waypoint-marker-label::before {\n display: none;\n}\n\n/* Ruler labels */\n.ruler-label-container {\n background-color: transparent;\n}\n.ruler-label {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background-image: url(\'../src/assets/bidirectional.png\');\n background-size: cover;\n border: none;\n font-family: "FiraCode-SemiBold";\n color: #fff;\n font-weight: 600;\n text-transform: uppercase;\n}\n.ruler-label.start{\n background-image: url(\'../src/assets/directional.png\');\n}\n\n.ruler-point:hover {\n cursor: move;\n}\n\n.ruler-point{\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: #DEDEDE;\n border: 1px solid #1D2838;\n border-radius: 50%; \n box-sizing: border-box;\n}\n'],sourceRoot:""}]);const p=h},26268:function(e){e.exports=function(){"use strict";var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)};var t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function o(e,t,r){var o={};return r.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=n(e[t],r)})),i(t).forEach((function(i){r.isMergeableObject(t[i])&&e[i]?o[i]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(i,r)(e[i],t[i],r):o[i]=n(t[i],r)})),o}function a(t,i,a){(a=a||{}).arrayMerge=a.arrayMerge||r,a.isMergeableObject=a.isMergeableObject||e;var s=Array.isArray(i);return s===Array.isArray(t)?s?a.arrayMerge(t,i,a):o(t,i,a):n(i,a)}return a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return a(e,n,t)}),{})},a}()},26352:(e,t,n)=>{"use strict";n.d(t,{A:()=>ie});var r,i=n(32615),o=n(14089),a=n(78904),s=n.n(a);function l(){if(!o.A.isDOMAvailable)return null;const e=p();return e.sheet?e.sheet:null}function c(){const e=l();if(e){const t=[...e.cssRules],n=[];for(let e=0;e!(n.style.fontFamily!==e||t&&t.display&&t.display!==n.style.fontDisplay)))}!function(e){e.AUTO="auto",e.SWAP="swap",e.BLOCK="block",e.FALLBACK="fallback",e.OPTIONAL="optional"}(r||(r={}));const h=new Set,d={async unloadAllAsync(){if(!o.A.isDOMAvailable)return;const e=document.getElementById(f);e&&e instanceof HTMLStyleElement&&document.removeChild(e)},async unloadAsync(e,t){const n=l();if(!n)return;const r=u(e,t);for(const e of r)n.deleteRule(e.index)},getServerResources:()=>function(){const e=[...h.entries()];if(!e.length)return[];const t=e.map((([{css:e}])=>e)).join("\n"),n=e.map((([{resourceId:e}])=>e));return[{$$type:"style",children:t,id:f,type:"text/css"},...n.map((e=>({$$type:"link",rel:"preload",href:e,as:"font",crossorigin:""})))]}().map((e=>{switch(e.$$type){case"style":return``;case"link":return``;default:return""}})).filter(Boolean),resetServerContext(){h.clear()},getLoadedFonts:()=>"undefined"==typeof window?[...h.values()].map((({name:e})=>e)):c().map((({rule:e})=>e.style.fontFamily)),isLoaded:(e,t={})=>"undefined"==typeof window?!![...h.values()].find((t=>t.name===e)):u(e,t)?.length>0,loadAsync(e,t){if("undefined"==typeof window)return h.add({name:e,css:m(e,t),resourceId:t.uri}),Promise.resolve();if(!document.head||"function"!=typeof document.head.appendChild)throw new i.A("ERR_WEB_ENVIRONMENT","The browser's `document.head` element doesn't support injecting fonts.");const n=p();return document.head.appendChild(n),u(e,t).length||function(e,t){const n=m(e,t),r=p();if(r.styleSheet){const e=r;e.styleSheet.cssText=e.styleSheet.cssText?e.styleSheet.cssText+n:n}else{const e=document.createTextNode(n);r.appendChild(e)}}(e,t),function(){const{userAgent:e}=window.navigator,t=!!e.match(/iPad|iPhone/i),n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),r=e.includes("Edge"),i=e.includes("Trident"),o=e.includes("Firefox");return!(n||t||r||i||o)}()?new(s())(e,{display:t.display}).load(null,6e3):Promise.resolve()}},f="expo-generated-fonts";function p(){const e=document.getElementById(f);if(e&&e instanceof HTMLStyleElement)return e;const t=document.createElement("style");return t.id=f,t.type="text/css",t}function m(e,t){return`@font-face{font-family:${e};src:url(${t.uri});font-display:${t.display||r.AUTO}}`}var g=n(19703),y=n(99518),v=n(57947);class b{constructor(e,t,n){this.serverUrl=e||"https://expo.dev",this.jsbundleUrl=null,this.asset=n}isLoadedFromServer(){return!0}isLoadedFromFileSystem(){return!1}defaultAsset(){return this.assetServerURL()}assetServerURL(){const e=new URL(function(e){const t=b.pickScale(e.scales,y.A.get()),n=1===t?"":"@"+t+"x",r=e.type?`.${e.type}`:"";return e.httpServerLocation.replace(/\.\.\//g,"_")+"/"+e.name+n+r}(this.asset),this.serverUrl);return e.searchParams.set("platform","web"),e.searchParams.set("hash",this.asset.hash),this.fromSource(e.toString().replace(e.origin,""))}fromSource(e){return{__packager_asset:!0,width:this.asset.width??void 0,height:this.asset.height??void 0,uri:e,scale:b.pickScale(this.asset.scales,y.A.get())}}static pickScale(e,t){for(let n=0;n=t)return e[n];return e[e.length-1]||1}}function A(e){const{pathname:t,searchParams:n}=new URL(e,"https://e");return function(e){return e.substring(e.lastIndexOf("/")+1)}(t)}function x(e){const t=A(e),n=t.lastIndexOf(".");return n>0?t.substring(n):""}let w;function C(e){w=e}function S(e){if("object"==typeof e)return e;const t=(0,g.getAssetByID)(e);if(!t)return null;const n=new b("https://expo.dev",null,t);return w?w(n):n.defaultAsset()}Object.defineProperty(S,"setCustomSourceTransformer",{get:()=>C});const E=S,{pickScale:k}=b;class T{static byHash={};static byUri={};hash=null;localUri=null;width=null;height=null;downloading=!1;downloaded=!1;_downloadCallbacks=[];constructor({name:e,type:t,hash:n=null,uri:r,width:i,height:o}){this.name=e,this.type=t,this.hash=n,this.uri=r,"number"==typeof i&&(this.width=i),"number"==typeof o&&(this.height=o),n&&(this.localUri=null,this.localUri?.startsWith("file:///android_res/")?(this.uri=this.localUri,this.localUri=null):this.localUri&&(this.downloaded=!0)),e||(this.name=A(r)),t||(this.type=x(r))}static loadAsync(e){const t=Array.isArray(e)?e:[e];return Promise.all(t.map((e=>T.fromModule(e).downloadAsync())))}static fromModule(e){if("string"==typeof e)return T.fromURI(e);if("object"==typeof e&&"uri"in e&&"string"==typeof e.uri){const t=x(e.uri);return new T({name:"",type:t.startsWith(".")?t.substring(1):t,hash:null,uri:e.uri,width:e.width,height:e.height})}const t=(0,g.getAssetByID)(e);if(!t)throw new Error(`Module "${e}" is missing from the asset registry`);{const{uri:n}=E(e),r=new T({name:t.name,type:t.type,hash:t.hash,uri:n,width:t.width,height:t.height});return T.byHash[t.hash]=r,r}}static fromMetadata(e){const t=e.hash;if(T.byHash[t])return T.byHash[t];const{uri:n,hash:r}=function(e){const t=b.pickScale(e.scales,y.A.get()),n=e.scales.findIndex((e=>e===t)),r=e.fileHashes?e.fileHashes[n]??e.fileHashes[0]:e.hash,i=e.fileUris?e.fileUris[n]??e.fileUris[0]:e.uri;if(i)return{uri:i,hash:r};const o=1===t?"":`@${t}x`,a=e.type?`.${encodeURIComponent(e.type)}`:"",s=`/${encodeURIComponent(e.name)}${o}${a}`,l=new URLSearchParams({platform:"web",hash:e.hash});if(/^https?:\/\//.test(e.httpServerLocation))return{uri:e.httpServerLocation+s+"?"+l,hash:r};const c={},u=c?.extra?.expoGo?.developer?"http://"+c.extra.expoGo.debuggerHost:null;if(u){const t=new URL(e.httpServerLocation+s,u);return t.searchParams.set("platform","web"),t.searchParams.set("hash",e.hash),{uri:t.href,hash:r}}return v.A.ExponentKernel?{uri:`https://classic-assets.eascdn.net/~assets/${encodeURIComponent(r)}`,hash:r}:{uri:"",hash:r}}(e),i=new T({name:e.name,type:e.type,hash:r,uri:n,width:e.width,height:e.height});return T.byHash[t]=i,i}static fromURI(e){if(T.byUri[e])return T.byUri[e];let t="";if(e.indexOf(";base64")>-1)t=e.split(";")[0].split("/")[1];else{const n=x(e);t=n.startsWith(".")?n.substring(1):n}const n=new T({name:"",type:t,hash:null,uri:e});return T.byUri[e]=n,n}async downloadAsync(){if(this.downloaded)return this;if(this.downloading)return await new Promise(((e,t)=>{this._downloadCallbacks.push({resolve:e,reject:t})})),this;this.downloading=!0;try{if(t=this.type,/^(jpeg|jpg|gif|png|bmp|webp|heic)$/i.test(t)){const{width:t,height:n,name:r}=await(e=this.uri,"undefined"==typeof window?Promise.resolve({name:A(e),width:0,height:0}):new Promise(((t,n)=>{const r=new Image;r.onerror=n,r.onload=()=>{t({name:A(e),width:r.naturalWidth,height:r.naturalHeight})},r.src=e})));this.width=t,this.height=n,this.name=r}else this.name=A(this.uri);this.localUri=await async function(e){return e}(this.uri,this.hash,this.type),this.downloaded=!0,this._downloadCallbacks.forEach((({resolve:e})=>e()))}catch(e){throw this._downloadCallbacks.forEach((({reject:t})=>t(e))),e}finally{this.downloading=!1,this._downloadCallbacks=[]}var e,t;return this}}function I(e){return"string"==typeof e?e||null:"number"==typeof e?I(T.fromModule(e)):"object"==typeof e&&"number"==typeof e.uri?I(e.uri):"object"==typeof e&&(e.uri||e.localUri||e.default)||null}function O(e){const t=I(e),n="object"==typeof(i=e)&&"display"in i&&i.display||r.AUTO;var i;return t&&"string"==typeof t||R(t),{uri:t,display:n}}function R(e){let t=typeof e;throw"object"===t&&(t=JSON.stringify(e,null,2)),new i.A("ERR_FONT_SOURCE",`Expected font asset of type \`string | FontResource | Asset\` instead got: ${t}`)}function M(e,t){("object"!=typeof t||"string"!=typeof t.uri||t.downloadAsync)&&R(t);try{return d.loadAsync(e,t)}catch{}return Promise.resolve()}const P={};let D={};function j(e,t){if(!t)throw new i.A("ERR_FONT_SOURCE",`Cannot load null or undefined font source: { "${e}": ${t} }. Expected asset of type \`FontSource\` for fontFamily of name: "${e}"`);M(e,O(t))}function B(e){return function(e){return e in D}(e)||!!d.isLoaded(e)}function L(e,t){const n="undefined"==typeof window;if("object"==typeof e){if(t)return Promise.reject(new i.A("ERR_FONT_API",`No fontFamily can be used for the provided source: ${t}. The second argument of \`loadAsync()\` can only be used with a \`string\` value as the first argument.`));const r=e,o=Object.keys(r);return n?(o.map((e=>j(e,r[e]))),Promise.resolve()):Promise.all(o.map((e=>F(e,r[e])))).then((()=>{}))}return n?(j(e,t),Promise.resolve()):F(e,t)}async function F(e,t){if(!t)throw new i.A("ERR_FONT_SOURCE",`Cannot load null or undefined font source: { "${e}": ${t} }. Expected asset of type \`FontSource\` for fontFamily of name: "${e}"`);if(B(e))return;if(P.hasOwnProperty(e))return P[e];const n=O(t);P[e]=(async()=>{try{await M(e,n),function(e){D[e]=!0}(e)}finally{delete P[e]}})(),await P[e]}var N=n(96540),_=n(78506),z=n(2901);const V=v.A.RNVectorIconsManager||v.A.RNVectorIconsModule;function U(){if(!V)throw new Error("The native RNVectorIcons API is not available, did you properly integrate the module? Please verify your autolinking setup and recompile.")}const H="error";var q=n(43999),G=n(75584),Y=n(9176),W=n(32854),Q=n(74848);const X=["style","iconStyle","children"],J=q.A.create({container:{flexDirection:"row",justifyContent:"flex-start",alignItems:"center",padding:8},touchable:{overflow:"hidden"},icon:{marginRight:10},text:{fontWeight:"600",backgroundColor:"transparent"}}),Z=["ellipsizeMode","numberOfLines","textBreakStrategy","selectable","suppressHighlighting","allowFontScaling","adjustsFontSizeToFit","minimumFontScale"],K=["accessible","accessibilityLabel","accessibilityHint","accessibilityComponentType","accessibilityRole","accessibilityStates","accessibilityTraits","onFocus","onBlur","disabled","onPress","onPressIn","onPressOut","onLayout","onLongPress","nativeID","testID","delayPressIn","delayPressOut","delayLongPress","activeOpacity","underlayColor","selectionColor","onShowUnderlay","onHideUnderlay","hasTVPreferredFocus","tvParallaxProperties"];function $(e){return class extends N.PureComponent{static defaultProps={backgroundColor:"#007AFF",borderRadius:5,color:"white",size:20};render(){const t=this.props,{style:n,iconStyle:r,children:i}=t,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(t,X),a=(0,W.pick)(o,Z,"style","name","size","color"),s=(0,W.pick)(o,K),l=(0,W.omit)(o,Object.keys(a),Object.keys(s),"iconStyle","borderRadius","backgroundColor");a.style=r?[J.icon,r]:J.icon;const c=(0,W.pick)(this.props,"color"),u=(0,W.pick)(this.props,"backgroundColor","borderRadius");return(0,Q.jsx)(G.A,Object.assign({style:[J.touchable,u]},s,{children:(0,Q.jsxs)(Y.A,Object.assign({style:[J.container,u,n]},l,{children:[(0,Q.jsx)(e,Object.assign({},a)),"string"==typeof i?(0,Q.jsx)(_.A,{style:[J.text,c],selectable:!1,children:i}):i]}))}))}}}const ee=["name","size","color","style","children"],te=v.A.RNVectorIconsManager||v.A.RNVectorIconsModule,ne="black";const re=n.p+"5d42b4e60858731e7b65.ttf",ie=function(e,t,n){const r={[t]:n},i=function(e,t,n,r){const i=n?n.replace(/\.(otf|ttf)$/,""):t;class o extends N.PureComponent{root=null;static defaultProps={size:12,allowFontScaling:!1};render(){const t=this.props,{name:n,size:o,color:a,style:s,children:l}=t,c=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(t,ee);let u=n?e[n]||"?":"";"number"==typeof u&&(u=String.fromCodePoint(u));const h={fontSize:o,color:a},d={fontFamily:i,fontWeight:"normal",fontStyle:"normal"};return c.style=[h,s,d,r||{}],(0,Q.jsxs)(_.A,Object.assign({selectable:!1},c,{children:[u,l]}))}}const a=function(){const e=new Map;return{setValue:(t,n)=>e.set(t,{type:"value",data:n}),setError:(t,n)=>e.set(t,{type:H,data:n}),has:t=>e.has(t),get:t=>{if(!e.has(t))return;const{type:n,data:r}=e.get(t);if(n===H)throw r;return r}}}();function s(t){const n=e[t]||"?";return"number"==typeof n?String.fromCodePoint(n):n}return o.Button=$(o),o.getImageSource=async function(e,t=12,n=ne){U();const r=s(e),o=(0,z.A)(n),l=`${r}:${t}:${o}`;if(a.has(l))return a.get(l);try{const e={uri:await te.getImageForFont(i,r,t,o),scale:y.A.get()};return a.setValue(l,e),e}catch(e){throw a.setError(l,e),e}},o.getImageSourceSync=function(e,t=12,n=ne){U();const r=s(e),o=(0,z.A)(n),l=`${r}:${t}:${o}`;if(a.has(l))return a.get(l);try{const e={uri:te.getImageForFontSync(i,r,t,o),scale:y.A.get()};return a.setValue(l,e),e}catch(e){throw a.setError(l,e),e}},o.loadFont=async function(e=n){},o.hasIcon=function(t){return Object.prototype.hasOwnProperty.call(e,t)},o.getRawGlyphMap=function(){return e},o.getFontFamily=function(){return i},o}(e,t,null,void 0);return class n extends N.Component{static defaultProps=i.defaultProps;static Button=$(n);static glyphMap=e;static getRawGlyphMap=()=>e;static getFontFamily=()=>t;static loadFont=()=>L(r);static font=r;_mounted=!1;state={fontIsLoaded:B(t)};async componentDidMount(){this._mounted=!0,this.state.fontIsLoaded||(await L(r),this._mounted&&this.setState({fontIsLoaded:!0}))}componentWillUnmount(){this._mounted=!1}setNativeProps(e){this._icon&&this._icon.setNativeProps(e)}render(){return this.state.fontIsLoaded?(0,Q.jsx)(i,Object.assign({ref:e=>{this._icon=e}},this.props)):(0,Q.jsx)(_.A,{})}}}(JSON.parse('{"ab-testing":983497,"abacus":988896,"abjad-arabic":987944,"abjad-hebrew":987945,"abugida-devanagari":987946,"abugida-thai":987947,"access-point":983043,"access-point-check":988472,"access-point-minus":988473,"access-point-network":983042,"access-point-network-off":986081,"access-point-off":988433,"access-point-plus":988474,"access-point-remove":988475,"account":983044,"account-alert":983045,"account-alert-outline":985936,"account-arrow-down":989288,"account-arrow-down-outline":989289,"account-arrow-left":985937,"account-arrow-left-outline":985938,"account-arrow-right":985939,"account-arrow-right-outline":985940,"account-arrow-up":989287,"account-arrow-up-outline":989290,"account-box":983046,"account-box-multiple":985396,"account-box-multiple-outline":987146,"account-box-outline":983047,"account-cancel":987871,"account-cancel-outline":987872,"account-cash":987287,"account-cash-outline":987288,"account-check":983048,"account-check-outline":986082,"account-child":985737,"account-child-circle":985738,"account-child-outline":987336,"account-circle":983049,"account-circle-outline":985941,"account-clock":985942,"account-clock-outline":985943,"account-cog":988016,"account-cog-outline":988017,"account-convert":983050,"account-convert-outline":987905,"account-cowboy-hat":986779,"account-cowboy-hat-outline":989171,"account-details":984625,"account-details-outline":988018,"account-edit":984764,"account-edit-outline":987131,"account-eye":984096,"account-eye-outline":987771,"account-filter":985398,"account-filter-outline":987037,"account-group":985161,"account-group-outline":985944,"account-hard-hat":984501,"account-heart":985241,"account-heart-outline":986083,"account-injury":989205,"account-injury-outline":989206,"account-key":983051,"account-key-outline":986084,"account-lock":987486,"account-lock-open":989536,"account-lock-open-outline":989537,"account-lock-outline":987487,"account-minus":983053,"account-minus-outline":985836,"account-multiple":983054,"account-multiple-check":985285,"account-multiple-check-outline":987646,"account-multiple-minus":984531,"account-multiple-minus-outline":986085,"account-multiple-outline":983055,"account-multiple-plus":983056,"account-multiple-plus-outline":985088,"account-multiple-remove":987658,"account-multiple-remove-outline":987659,"account-music":985091,"account-music-outline":986345,"account-network":983057,"account-network-outline":986086,"account-off":983058,"account-off-outline":986087,"account-outline":983059,"account-plus":983060,"account-plus-outline":985089,"account-question":985945,"account-question-outline":985946,"account-reactivate":988459,"account-reactivate-outline":988460,"account-remove":983061,"account-remove-outline":985837,"account-search":983062,"account-search-outline":985397,"account-settings":984624,"account-settings-outline":987337,"account-star":983063,"account-star-outline":986088,"account-supervisor":985739,"account-supervisor-circle":985740,"account-supervisor-circle-outline":988396,"account-supervisor-outline":987437,"account-switch":983065,"account-switch-outline":984267,"account-sync":989467,"account-sync-outline":989468,"account-tie":986339,"account-tie-hat":989336,"account-tie-hat-outline":989337,"account-tie-outline":987338,"account-tie-voice":987912,"account-tie-voice-off":987914,"account-tie-voice-off-outline":987915,"account-tie-voice-outline":987913,"account-voice":984523,"account-voice-off":986836,"account-wrench":989338,"account-wrench-outline":989339,"adjust":983066,"advertisements":989482,"advertisements-off":989483,"air-conditioner":983067,"air-filter":986435,"air-horn":986540,"air-humidifier":987289,"air-humidifier-off":988262,"air-purifier":986436,"airbag":986089,"airballoon":983068,"airballoon-outline":987147,"airplane":983069,"airplane-alert":989306,"airplane-check":989307,"airplane-clock":989308,"airplane-cog":989309,"airplane-edit":989310,"airplane-landing":984532,"airplane-marker":989311,"airplane-minus":989312,"airplane-off":983070,"airplane-plus":989313,"airplane-remove":989314,"airplane-search":989315,"airplane-settings":989316,"airplane-takeoff":984533,"airport":985163,"alarm":983072,"alarm-bell":984974,"alarm-check":983073,"alarm-light":984975,"alarm-light-off":988958,"alarm-light-off-outline":988959,"alarm-light-outline":986090,"alarm-multiple":983074,"alarm-note":986737,"alarm-note-off":986738,"alarm-off":983075,"alarm-panel":988612,"alarm-panel-outline":988613,"alarm-plus":983076,"alarm-snooze":984718,"album":983077,"alert":983078,"alert-box":983079,"alert-box-outline":986340,"alert-circle":983080,"alert-circle-check":987629,"alert-circle-check-outline":987630,"alert-circle-outline":984534,"alert-decagram":984765,"alert-decagram-outline":986341,"alert-minus":988347,"alert-minus-outline":988350,"alert-octagon":983081,"alert-octagon-outline":986342,"alert-octagram":984935,"alert-octagram-outline":986343,"alert-outline":983082,"alert-plus":988346,"alert-plus-outline":988349,"alert-remove":988348,"alert-remove-outline":988351,"alert-rhombus":987598,"alert-rhombus-outline":987599,"alien":985242,"alien-outline":987339,"align-horizontal-center":987587,"align-horizontal-distribute":989538,"align-horizontal-left":987586,"align-horizontal-right":987588,"align-vertical-bottom":987589,"align-vertical-center":987590,"align-vertical-distribute":989539,"align-vertical-top":987591,"all-inclusive":984766,"all-inclusive-box":989325,"all-inclusive-box-outline":989326,"allergy":987736,"alpha":983083,"alpha-a":985838,"alpha-a-box":985864,"alpha-a-box-outline":986091,"alpha-a-circle":986092,"alpha-a-circle-outline":986093,"alpha-b":985839,"alpha-b-box":985865,"alpha-b-box-outline":986094,"alpha-b-circle":986095,"alpha-b-circle-outline":986096,"alpha-c":985840,"alpha-c-box":985866,"alpha-c-box-outline":986097,"alpha-c-circle":986098,"alpha-c-circle-outline":986099,"alpha-d":985841,"alpha-d-box":985867,"alpha-d-box-outline":986100,"alpha-d-circle":986101,"alpha-d-circle-outline":986102,"alpha-e":985842,"alpha-e-box":985868,"alpha-e-box-outline":986103,"alpha-e-circle":986104,"alpha-e-circle-outline":986105,"alpha-f":985843,"alpha-f-box":985869,"alpha-f-box-outline":986106,"alpha-f-circle":986107,"alpha-f-circle-outline":986108,"alpha-g":985844,"alpha-g-box":985870,"alpha-g-box-outline":986109,"alpha-g-circle":986110,"alpha-g-circle-outline":986111,"alpha-h":985845,"alpha-h-box":985871,"alpha-h-box-outline":986112,"alpha-h-circle":986113,"alpha-h-circle-outline":986114,"alpha-i":985846,"alpha-i-box":985872,"alpha-i-box-outline":986115,"alpha-i-circle":986116,"alpha-i-circle-outline":986117,"alpha-j":985847,"alpha-j-box":985873,"alpha-j-box-outline":986118,"alpha-j-circle":986119,"alpha-j-circle-outline":986120,"alpha-k":985848,"alpha-k-box":985874,"alpha-k-box-outline":986121,"alpha-k-circle":986122,"alpha-k-circle-outline":986123,"alpha-l":985849,"alpha-l-box":985875,"alpha-l-box-outline":986124,"alpha-l-circle":986125,"alpha-l-circle-outline":986126,"alpha-m":985850,"alpha-m-box":985876,"alpha-m-box-outline":986127,"alpha-m-circle":986128,"alpha-m-circle-outline":986129,"alpha-n":985851,"alpha-n-box":985877,"alpha-n-box-outline":986130,"alpha-n-circle":986131,"alpha-n-circle-outline":986132,"alpha-o":985852,"alpha-o-box":985878,"alpha-o-box-outline":986133,"alpha-o-circle":986134,"alpha-o-circle-outline":986135,"alpha-p":985853,"alpha-p-box":985879,"alpha-p-box-outline":986136,"alpha-p-circle":986137,"alpha-p-circle-outline":986138,"alpha-q":985854,"alpha-q-box":985880,"alpha-q-box-outline":986139,"alpha-q-circle":986140,"alpha-q-circle-outline":986141,"alpha-r":985855,"alpha-r-box":985881,"alpha-r-box-outline":986142,"alpha-r-circle":986143,"alpha-r-circle-outline":986144,"alpha-s":985856,"alpha-s-box":985882,"alpha-s-box-outline":986145,"alpha-s-circle":986146,"alpha-s-circle-outline":986147,"alpha-t":985857,"alpha-t-box":985883,"alpha-t-box-outline":986148,"alpha-t-circle":986149,"alpha-t-circle-outline":986150,"alpha-u":985858,"alpha-u-box":985884,"alpha-u-box-outline":986151,"alpha-u-circle":986152,"alpha-u-circle-outline":986153,"alpha-v":985859,"alpha-v-box":985885,"alpha-v-box-outline":986154,"alpha-v-circle":986155,"alpha-v-circle-outline":986156,"alpha-w":985860,"alpha-w-box":985886,"alpha-w-box-outline":986157,"alpha-w-circle":986158,"alpha-w-circle-outline":986159,"alpha-x":985861,"alpha-x-box":985887,"alpha-x-box-outline":986160,"alpha-x-circle":986161,"alpha-x-circle-outline":986162,"alpha-y":985862,"alpha-y-box":985888,"alpha-y-box-outline":986163,"alpha-y-circle":986164,"alpha-y-circle-outline":986165,"alpha-z":985863,"alpha-z-box":985889,"alpha-z-box-outline":986166,"alpha-z-circle":986167,"alpha-z-circle-outline":986168,"alphabet-aurebesh":987948,"alphabet-cyrillic":987949,"alphabet-greek":987950,"alphabet-latin":987951,"alphabet-piqad":987952,"alphabet-tengwar":987959,"alphabetical":983084,"alphabetical-off":987148,"alphabetical-variant":987149,"alphabetical-variant-off":987150,"altimeter":984535,"ambulance":983087,"ammunition":986344,"ampersand":985741,"amplifier":983088,"amplifier-off":987573,"anchor":983089,"android":983090,"android-messages":986437,"android-studio":983092,"angle-acute":985399,"angle-obtuse":985400,"angle-right":985401,"angular":984754,"angularjs":984767,"animation":984536,"animation-outline":985743,"animation-play":985402,"animation-play-outline":985744,"ansible":987290,"antenna":987417,"anvil":985243,"apache-kafka":987151,"api":987291,"api-off":987735,"apple":983093,"apple-finder":983094,"apple-icloud":983096,"apple-ios":983095,"apple-keyboard-caps":984626,"apple-keyboard-command":984627,"apple-keyboard-control":984628,"apple-keyboard-option":984629,"apple-keyboard-shift":984630,"apple-safari":983097,"application":985286,"application-array":987381,"application-array-outline":987382,"application-braces":987383,"application-braces-outline":987384,"application-brackets":986251,"application-brackets-outline":986252,"application-cog":984693,"application-cog-outline":988535,"application-edit":983214,"application-edit-outline":984601,"application-export":986541,"application-import":986542,"application-outline":984596,"application-parentheses":987385,"application-parentheses-outline":987386,"application-settings":985952,"application-settings-outline":988501,"application-variable":987387,"application-variable-outline":987388,"approximately-equal":987038,"approximately-equal-box":987039,"apps":983099,"apps-box":986438,"arch":985287,"archive":983100,"archive-alert":988413,"archive-alert-outline":988414,"archive-arrow-down":987737,"archive-arrow-down-outline":987738,"archive-arrow-up":987739,"archive-arrow-up-outline":987740,"archive-cancel":989003,"archive-cancel-outline":989004,"archive-check":989005,"archive-check-outline":989006,"archive-clock":989007,"archive-clock-outline":989008,"archive-cog":989009,"archive-cog-outline":989010,"archive-edit":989011,"archive-edit-outline":989012,"archive-eye":989013,"archive-eye-outline":989014,"archive-lock":989015,"archive-lock-open":989016,"archive-lock-open-outline":989017,"archive-lock-outline":989018,"archive-marker":989019,"archive-marker-outline":989020,"archive-minus":989021,"archive-minus-outline":989022,"archive-music":989023,"archive-music-outline":989024,"archive-off":989025,"archive-off-outline":989026,"archive-outline":987662,"archive-plus":989027,"archive-plus-outline":989028,"archive-refresh":989029,"archive-refresh-outline":989030,"archive-remove":989031,"archive-remove-outline":989032,"archive-search":989033,"archive-search-outline":989034,"archive-settings":989035,"archive-settings-outline":989036,"archive-star":989037,"archive-star-outline":989038,"archive-sync":989039,"archive-sync-outline":989040,"arm-flex":987095,"arm-flex-outline":987094,"arrange-bring-forward":983101,"arrange-bring-to-front":983102,"arrange-send-backward":983103,"arrange-send-to-back":983104,"arrow-all":983105,"arrow-bottom-left":983106,"arrow-bottom-left-bold-box":989540,"arrow-bottom-left-bold-box-outline":989541,"arrow-bottom-left-bold-outline":985527,"arrow-bottom-left-thick":985528,"arrow-bottom-left-thin":989622,"arrow-bottom-left-thin-circle-outline":988566,"arrow-bottom-right":983107,"arrow-bottom-right-bold-box":989542,"arrow-bottom-right-bold-box-outline":989543,"arrow-bottom-right-bold-outline":985529,"arrow-bottom-right-thick":985530,"arrow-bottom-right-thin":989623,"arrow-bottom-right-thin-circle-outline":988565,"arrow-collapse":984597,"arrow-collapse-all":983108,"arrow-collapse-down":984978,"arrow-collapse-horizontal":985164,"arrow-collapse-left":984979,"arrow-collapse-right":984980,"arrow-collapse-up":984981,"arrow-collapse-vertical":985165,"arrow-decision":985531,"arrow-decision-auto":985532,"arrow-decision-auto-outline":985533,"arrow-decision-outline":985534,"arrow-down":983109,"arrow-down-bold":984878,"arrow-down-bold-box":984879,"arrow-down-bold-box-outline":984880,"arrow-down-bold-circle":983111,"arrow-down-bold-circle-outline":983112,"arrow-down-bold-hexagon-outline":983113,"arrow-down-bold-outline":985535,"arrow-down-box":984768,"arrow-down-circle":986331,"arrow-down-circle-outline":986332,"arrow-down-drop-circle":983114,"arrow-down-drop-circle-outline":983115,"arrow-down-left":989089,"arrow-down-left-bold":989090,"arrow-down-right":989091,"arrow-down-right-bold":989092,"arrow-down-thick":983110,"arrow-down-thin":989619,"arrow-down-thin-circle-outline":988569,"arrow-expand":984598,"arrow-expand-all":983116,"arrow-expand-down":984982,"arrow-expand-horizontal":985166,"arrow-expand-left":984983,"arrow-expand-right":984984,"arrow-expand-up":984985,"arrow-expand-vertical":985167,"arrow-horizontal-lock":987483,"arrow-left":983117,"arrow-left-bold":984881,"arrow-left-bold-box":984882,"arrow-left-bold-box-outline":984883,"arrow-left-bold-circle":983119,"arrow-left-bold-circle-outline":983120,"arrow-left-bold-hexagon-outline":983121,"arrow-left-bold-outline":985536,"arrow-left-bottom":989093,"arrow-left-bottom-bold":989094,"arrow-left-box":984769,"arrow-left-circle":986333,"arrow-left-circle-outline":986334,"arrow-left-drop-circle":983122,"arrow-left-drop-circle-outline":983123,"arrow-left-right":986739,"arrow-left-right-bold":986740,"arrow-left-right-bold-outline":985537,"arrow-left-thick":983118,"arrow-left-thin":989617,"arrow-left-thin-circle-outline":988570,"arrow-left-top":989095,"arrow-left-top-bold":989096,"arrow-projectile":989248,"arrow-projectile-multiple":989247,"arrow-right":983124,"arrow-right-bold":984884,"arrow-right-bold-box":984885,"arrow-right-bold-box-outline":984886,"arrow-right-bold-circle":983126,"arrow-right-bold-circle-outline":983127,"arrow-right-bold-hexagon-outline":983128,"arrow-right-bold-outline":985538,"arrow-right-bottom":989097,"arrow-right-bottom-bold":989098,"arrow-right-box":984770,"arrow-right-circle":986335,"arrow-right-circle-outline":986336,"arrow-right-drop-circle":983129,"arrow-right-drop-circle-outline":983130,"arrow-right-thick":983125,"arrow-right-thin":989616,"arrow-right-thin-circle-outline":988568,"arrow-right-top":989099,"arrow-right-top-bold":989100,"arrow-split-horizontal":985403,"arrow-split-vertical":985404,"arrow-top-left":983131,"arrow-top-left-bold-box":989544,"arrow-top-left-bold-box-outline":989545,"arrow-top-left-bold-outline":985539,"arrow-top-left-bottom-right":986741,"arrow-top-left-bottom-right-bold":986742,"arrow-top-left-thick":985540,"arrow-top-left-thin":989621,"arrow-top-left-thin-circle-outline":988563,"arrow-top-right":983132,"arrow-top-right-bold-box":989546,"arrow-top-right-bold-box-outline":989547,"arrow-top-right-bold-outline":985541,"arrow-top-right-bottom-left":986743,"arrow-top-right-bottom-left-bold":986744,"arrow-top-right-thick":985542,"arrow-top-right-thin":989620,"arrow-top-right-thin-circle-outline":988564,"arrow-u-down-left":989101,"arrow-u-down-left-bold":989102,"arrow-u-down-right":989103,"arrow-u-down-right-bold":989104,"arrow-u-left-bottom":989105,"arrow-u-left-bottom-bold":989106,"arrow-u-left-top":989107,"arrow-u-left-top-bold":989108,"arrow-u-right-bottom":989109,"arrow-u-right-bottom-bold":989110,"arrow-u-right-top":989111,"arrow-u-right-top-bold":989112,"arrow-u-up-left":989113,"arrow-u-up-left-bold":989114,"arrow-u-up-right":989115,"arrow-u-up-right-bold":989116,"arrow-up":983133,"arrow-up-bold":984887,"arrow-up-bold-box":984888,"arrow-up-bold-box-outline":984889,"arrow-up-bold-circle":983135,"arrow-up-bold-circle-outline":983136,"arrow-up-bold-hexagon-outline":983137,"arrow-up-bold-outline":985543,"arrow-up-box":984771,"arrow-up-circle":986337,"arrow-up-circle-outline":986338,"arrow-up-down":986745,"arrow-up-down-bold":986746,"arrow-up-down-bold-outline":985544,"arrow-up-drop-circle":983138,"arrow-up-drop-circle-outline":983139,"arrow-up-left":989117,"arrow-up-left-bold":989118,"arrow-up-right":989119,"arrow-up-right-bold":989120,"arrow-up-thick":983134,"arrow-up-thin":989618,"arrow-up-thin-circle-outline":988567,"arrow-vertical-lock":987484,"artstation":985947,"aspect-ratio":985636,"assistant":983140,"asterisk":984772,"at":983141,"atlassian":985092,"atm":986439,"atom":984936,"atom-variant":986747,"attachment":983142,"audio-input-rca":989291,"audio-input-stereo-minijack":989292,"audio-input-xlr":989293,"audio-video":985405,"audio-video-off":987574,"augmented-reality":985168,"auto-download":988030,"auto-fix":983144,"auto-upload":983145,"autorenew":983146,"av-timer":983147,"aws":986639,"axe":985288,"axe-battle":989250,"axis":986440,"axis-arrow":986441,"axis-arrow-info":988174,"axis-arrow-lock":986442,"axis-lock":986443,"axis-x-arrow":986444,"axis-x-arrow-lock":986445,"axis-x-rotate-clockwise":986446,"axis-x-rotate-counterclockwise":986447,"axis-x-y-arrow-lock":986448,"axis-y-arrow":986449,"axis-y-arrow-lock":986450,"axis-y-rotate-clockwise":986451,"axis-y-rotate-counterclockwise":986452,"axis-z-arrow":986453,"axis-z-arrow-lock":986454,"axis-z-rotate-clockwise":986455,"axis-z-rotate-counterclockwise":986456,"babel":985637,"baby":983148,"baby-bottle":986937,"baby-bottle-outline":986938,"baby-buggy":988128,"baby-carriage":984719,"baby-carriage-off":987040,"baby-face":986748,"baby-face-outline":986749,"backburger":983149,"backspace":983150,"backspace-outline":985948,"backspace-reverse":986750,"backspace-reverse-outline":986751,"backup-restore":983151,"bacteria":986837,"bacteria-outline":986838,"badge-account":986535,"badge-account-alert":986536,"badge-account-alert-outline":986537,"badge-account-horizontal":986637,"badge-account-horizontal-outline":986638,"badge-account-outline":986538,"badminton":985169,"bag-carry-on":986939,"bag-carry-on-check":986469,"bag-carry-on-off":986940,"bag-checked":986941,"bag-personal":986640,"bag-personal-off":986641,"bag-personal-off-outline":986642,"bag-personal-outline":986643,"bag-suitcase":988555,"bag-suitcase-off":988557,"bag-suitcase-off-outline":988558,"bag-suitcase-outline":988556,"baguette":986942,"balcony":989207,"balloon":985638,"ballot":985545,"ballot-outline":985546,"ballot-recount":986169,"ballot-recount-outline":986170,"bandage":986543,"bank":983152,"bank-check":988757,"bank-minus":986544,"bank-off":988758,"bank-off-outline":988759,"bank-outline":986752,"bank-plus":986545,"bank-remove":986546,"bank-transfer":985639,"bank-transfer-in":985640,"bank-transfer-out":985641,"barcode":983153,"barcode-off":987702,"barcode-scan":983154,"barley":983155,"barley-off":985949,"barn":985950,"barrel":983156,"baseball":985170,"baseball-bat":985171,"baseball-diamond":988652,"baseball-diamond-outline":988653,"bash":987523,"basket":983158,"basket-check":989413,"basket-check-outline":989414,"basket-fill":983159,"basket-minus":988451,"basket-minus-outline":988452,"basket-off":988453,"basket-off-outline":988454,"basket-outline":987521,"basket-plus":988455,"basket-plus-outline":988456,"basket-remove":988457,"basket-remove-outline":988458,"basket-unfill":983160,"basketball":985094,"basketball-hoop":986171,"basketball-hoop-outline":986172,"bat":985951,"bathtub":989208,"bathtub-outline":989209,"battery":983161,"battery-10":983162,"battery-10-bluetooth":985406,"battery-20":983163,"battery-20-bluetooth":985407,"battery-30":983164,"battery-30-bluetooth":985408,"battery-40":983165,"battery-40-bluetooth":985409,"battery-50":983166,"battery-50-bluetooth":985410,"battery-60":983167,"battery-60-bluetooth":985411,"battery-70":983168,"battery-70-bluetooth":985412,"battery-80":983169,"battery-80-bluetooth":985413,"battery-90":983170,"battery-90-bluetooth":985414,"battery-alert":983171,"battery-alert-bluetooth":985415,"battery-alert-variant":987340,"battery-alert-variant-outline":987341,"battery-arrow-down":989150,"battery-arrow-down-outline":989151,"battery-arrow-up":989152,"battery-arrow-up-outline":989153,"battery-bluetooth":985416,"battery-bluetooth-variant":985417,"battery-charging":983172,"battery-charging-10":985244,"battery-charging-100":983173,"battery-charging-20":983174,"battery-charging-30":983175,"battery-charging-40":983176,"battery-charging-50":985245,"battery-charging-60":983177,"battery-charging-70":985246,"battery-charging-80":983178,"battery-charging-90":983179,"battery-charging-high":987814,"battery-charging-low":987812,"battery-charging-medium":987813,"battery-charging-outline":985247,"battery-charging-wireless":985095,"battery-charging-wireless-10":985096,"battery-charging-wireless-20":985097,"battery-charging-wireless-30":985098,"battery-charging-wireless-40":985099,"battery-charging-wireless-50":985100,"battery-charging-wireless-60":985101,"battery-charging-wireless-70":985102,"battery-charging-wireless-80":985103,"battery-charging-wireless-90":985104,"battery-charging-wireless-alert":985105,"battery-charging-wireless-outline":985106,"battery-check":989154,"battery-check-outline":989155,"battery-heart":987663,"battery-heart-outline":987664,"battery-heart-variant":987665,"battery-high":987811,"battery-lock":989084,"battery-lock-open":989085,"battery-low":987809,"battery-medium":987810,"battery-minus":989156,"battery-minus-outline":989157,"battery-minus-variant":983180,"battery-negative":983181,"battery-off":987741,"battery-off-outline":987742,"battery-outline":983182,"battery-plus":989158,"battery-plus-outline":989159,"battery-plus-variant":983183,"battery-positive":983184,"battery-remove":989160,"battery-remove-outline":989161,"battery-sync":989236,"battery-sync-outline":989237,"battery-unknown":983185,"battery-unknown-bluetooth":985418,"beach":983186,"beaker":986346,"beaker-alert":987689,"beaker-alert-outline":987690,"beaker-check":987691,"beaker-check-outline":987692,"beaker-minus":987693,"beaker-minus-outline":987694,"beaker-outline":984720,"beaker-plus":987695,"beaker-plus-outline":987696,"beaker-question":987697,"beaker-question-outline":987698,"beaker-remove":987699,"beaker-remove-outline":987700,"bed":983779,"bed-double":987092,"bed-double-outline":987091,"bed-empty":985248,"bed-king":987090,"bed-king-outline":987089,"bed-outline":983193,"bed-queen":987088,"bed-queen-outline":987099,"bed-single":987245,"bed-single-outline":987246,"bee":987041,"bee-flower":987042,"beehive-off-outline":988141,"beehive-outline":987342,"beekeeper":988386,"beer":983192,"beer-outline":987916,"bell":983194,"bell-alert":986457,"bell-alert-outline":986753,"bell-badge":987499,"bell-badge-outline":983416,"bell-cancel":988135,"bell-cancel-outline":988136,"bell-check":987621,"bell-check-outline":987622,"bell-circle":986458,"bell-circle-outline":986459,"bell-minus":988137,"bell-minus-outline":988138,"bell-off":983195,"bell-off-outline":985745,"bell-outline":983196,"bell-plus":983197,"bell-plus-outline":985746,"bell-remove":988139,"bell-remove-outline":988140,"bell-ring":983198,"bell-ring-outline":983199,"bell-sleep":983200,"bell-sleep-outline":985747,"beta":983201,"betamax":985547,"biathlon":986644,"bicycle":987292,"bicycle-basket":987701,"bicycle-cargo":989340,"bicycle-electric":988596,"bicycle-penny-farthing":988649,"bike":983203,"bike-fast":987423,"billboard":987152,"billiards":985953,"billiards-rack":985954,"binoculars":983205,"bio":983206,"biohazard":983207,"bird":988614,"bitbucket":983208,"bitcoin":985107,"black-mesa":983209,"blender":986347,"blender-outline":989210,"blender-software":983211,"blinds":983212,"blinds-open":987153,"block-helper":983213,"blood-bag":986348,"bluetooth":983215,"bluetooth-audio":983216,"bluetooth-connect":983217,"bluetooth-off":983218,"bluetooth-settings":983219,"bluetooth-transfer":983220,"blur":983221,"blur-linear":983222,"blur-off":983223,"blur-radial":983224,"bolt":986547,"bomb":984721,"bomb-off":984773,"bone":983225,"book":983226,"book-account":988077,"book-account-outline":988078,"book-alert":988796,"book-alert-outline":988797,"book-alphabet":984605,"book-arrow-down":988798,"book-arrow-down-outline":988799,"book-arrow-left":988800,"book-arrow-left-outline":988801,"book-arrow-right":988802,"book-arrow-right-outline":988803,"book-arrow-up":988804,"book-arrow-up-outline":988805,"book-cancel":988806,"book-cancel-outline":988807,"book-check":988403,"book-check-outline":988404,"book-clock":988808,"book-clock-outline":988809,"book-cog":988810,"book-cog-outline":988811,"book-cross":983202,"book-edit":988812,"book-edit-outline":988813,"book-education":988873,"book-education-outline":988874,"book-information-variant":987247,"book-lock":984986,"book-lock-open":984987,"book-lock-open-outline":988814,"book-lock-outline":988815,"book-marker":988816,"book-marker-outline":988817,"book-minus":984537,"book-minus-multiple":985748,"book-minus-multiple-outline":985355,"book-minus-outline":988818,"book-multiple":983227,"book-multiple-outline":984118,"book-music":983143,"book-music-outline":988819,"book-off":988820,"book-off-outline":988821,"book-open":983229,"book-open-blank-variant":983230,"book-open-outline":985955,"book-open-page-variant":984538,"book-open-page-variant-outline":988630,"book-open-variant":988407,"book-outline":985956,"book-play":986754,"book-play-outline":986755,"book-plus":984539,"book-plus-multiple":985749,"book-plus-multiple-outline":985822,"book-plus-outline":988822,"book-refresh":988823,"book-refresh-outline":988824,"book-remove":985751,"book-remove-multiple":985750,"book-remove-multiple-outline":984266,"book-remove-outline":988825,"book-search":986756,"book-search-outline":986757,"book-settings":988826,"book-settings-outline":988827,"book-sync":988828,"book-sync-outline":988872,"book-variant":983231,"book-variant-multiple":983228,"bookmark":983232,"bookmark-box-multiple":989548,"bookmark-box-multiple-outline":989549,"bookmark-check":983233,"bookmark-check-outline":988027,"bookmark-minus":985548,"bookmark-minus-outline":985549,"bookmark-multiple":986645,"bookmark-multiple-outline":986646,"bookmark-music":983234,"bookmark-music-outline":988025,"bookmark-off":985550,"bookmark-off-outline":985551,"bookmark-outline":983235,"bookmark-plus":983237,"bookmark-plus-outline":983236,"bookmark-remove":983238,"bookmark-remove-outline":988026,"bookshelf":987743,"boom-gate":986758,"boom-gate-alert":986759,"boom-gate-alert-outline":986760,"boom-gate-arrow-down":986761,"boom-gate-arrow-down-outline":986762,"boom-gate-arrow-up":986764,"boom-gate-arrow-up-outline":986765,"boom-gate-outline":986763,"boom-gate-up":989177,"boom-gate-up-outline":989178,"boombox":984540,"boomerang":987343,"bootstrap":984774,"border-all":983239,"border-all-variant":985249,"border-bottom":983240,"border-bottom-variant":985250,"border-color":983241,"border-horizontal":983242,"border-inside":983243,"border-left":983244,"border-left-variant":985251,"border-none":983245,"border-none-variant":985252,"border-outside":983246,"border-right":983247,"border-right-variant":985253,"border-style":983248,"border-top":983249,"border-top-variant":985254,"border-vertical":983250,"bottle-soda":987248,"bottle-soda-classic":987249,"bottle-soda-classic-outline":988003,"bottle-soda-outline":987250,"bottle-tonic":987438,"bottle-tonic-outline":987439,"bottle-tonic-plus":987440,"bottle-tonic-plus-outline":987441,"bottle-tonic-skull":987442,"bottle-tonic-skull-outline":987443,"bottle-wine":985172,"bottle-wine-outline":987920,"bow-arrow":989249,"bow-tie":984696,"bowl":983694,"bowl-mix":984599,"bowl-mix-outline":983780,"bowl-outline":983721,"bowling":983251,"box":983252,"box-cutter":983253,"box-cutter-off":985930,"box-shadow":984631,"boxing-glove":985957,"braille":985552,"brain":985553,"bread-slice":986350,"bread-slice-outline":986351,"bridge":984600,"briefcase":983254,"briefcase-account":986352,"briefcase-account-outline":986353,"briefcase-check":983255,"briefcase-check-outline":987934,"briefcase-clock":987344,"briefcase-clock-outline":987345,"briefcase-download":983256,"briefcase-download-outline":986173,"briefcase-edit":985752,"briefcase-edit-outline":986174,"briefcase-eye":989145,"briefcase-eye-outline":989146,"briefcase-minus":985642,"briefcase-minus-outline":986175,"briefcase-off":988760,"briefcase-off-outline":988761,"briefcase-outline":985108,"briefcase-plus":985643,"briefcase-plus-outline":986176,"briefcase-remove":985644,"briefcase-remove-outline":986177,"briefcase-search":985645,"briefcase-search-outline":986178,"briefcase-upload":983257,"briefcase-upload-outline":986179,"briefcase-variant":988308,"briefcase-variant-off":988762,"briefcase-variant-off-outline":988763,"briefcase-variant-outline":988309,"brightness-1":983258,"brightness-2":983259,"brightness-3":983260,"brightness-4":983261,"brightness-5":983262,"brightness-6":983263,"brightness-7":983264,"brightness-auto":983265,"brightness-percent":986354,"broadcast":988960,"broadcast-off":988961,"broom":983266,"brush":983267,"brush-off":989041,"brush-variant":989203,"bucket":988181,"bucket-outline":988182,"buffet":984440,"bug":983268,"bug-check":985646,"bug-check-outline":985647,"bug-outline":985648,"bugle":986548,"bulldozer":985890,"bullet":986355,"bulletin-board":983269,"bullhorn":983270,"bullhorn-outline":985891,"bullhorn-variant":989550,"bullhorn-variant-outline":989551,"bullseye":984541,"bullseye-arrow":985289,"bulma":987879,"bunk-bed":987906,"bunk-bed-outline":983191,"bus":983271,"bus-alert":985753,"bus-articulated-end":984988,"bus-articulated-front":984989,"bus-clock":985290,"bus-double-decker":984990,"bus-electric":989469,"bus-marker":987666,"bus-multiple":986943,"bus-school":984991,"bus-side":984992,"bus-stop":987154,"bus-stop-covered":987155,"bus-stop-uncovered":987156,"butterfly":988553,"butterfly-outline":988554,"cabin-a-frame":989324,"cable-data":988052,"cached":983272,"cactus":986549,"cake":983273,"cake-layered":983274,"cake-variant":983275,"cake-variant-outline":989168,"calculator":983276,"calculator-variant":985754,"calculator-variant-outline":988582,"calendar":983277,"calendar-account":986839,"calendar-account-outline":986840,"calendar-alert":985649,"calendar-arrow-left":987444,"calendar-arrow-right":987445,"calendar-blank":983278,"calendar-blank-multiple":987251,"calendar-blank-outline":985958,"calendar-check":983279,"calendar-check-outline":986180,"calendar-clock":983280,"calendar-clock-outline":988897,"calendar-collapse-horizontal":989341,"calendar-cursor":988539,"calendar-edit":985255,"calendar-end":988780,"calendar-expand-horizontal":989342,"calendar-export":985892,"calendar-heart":985554,"calendar-import":985893,"calendar-lock":988737,"calendar-lock-outline":988738,"calendar-minus":986460,"calendar-month":986647,"calendar-month-outline":986648,"calendar-multiple":983281,"calendar-multiple-check":983282,"calendar-multiselect":985650,"calendar-outline":985959,"calendar-plus":983283,"calendar-question":984722,"calendar-range":984697,"calendar-range-outline":985960,"calendar-refresh":983521,"calendar-refresh-outline":983555,"calendar-remove":983284,"calendar-remove-outline":986181,"calendar-search":985420,"calendar-star":985555,"calendar-start":988781,"calendar-sync":986766,"calendar-sync-outline":986767,"calendar-text":983285,"calendar-text-outline":986182,"calendar-today":983286,"calendar-week":985651,"calendar-week-begin":985652,"calendar-weekend":986841,"calendar-weekend-outline":986842,"call-made":983287,"call-merge":983288,"call-missed":983289,"call-received":983290,"call-split":983291,"camcorder":983292,"camcorder-off":983295,"camera":983296,"camera-account":985291,"camera-burst":984723,"camera-control":985961,"camera-document":989297,"camera-document-off":989298,"camera-enhance":983297,"camera-enhance-outline":985962,"camera-flip":988633,"camera-flip-outline":988634,"camera-front":983298,"camera-front-variant":983299,"camera-gopro":984993,"camera-image":985292,"camera-iris":983300,"camera-marker":989607,"camera-marker-outline":989608,"camera-metering-center":984994,"camera-metering-matrix":984995,"camera-metering-partial":984996,"camera-metering-spot":984997,"camera-off":984543,"camera-off-outline":989631,"camera-outline":986461,"camera-party-mode":983301,"camera-plus":986843,"camera-plus-outline":986844,"camera-rear":983302,"camera-rear-variant":983303,"camera-retake":986649,"camera-retake-outline":986650,"camera-switch":983304,"camera-switch-outline":985162,"camera-timer":983305,"camera-wireless":986550,"camera-wireless-outline":986551,"campfire":986845,"cancel":984890,"candelabra":989138,"candelabra-fire":989139,"candle":984546,"candy":989552,"candy-off":989553,"candy-off-outline":989554,"candy-outline":989555,"candycane":983306,"cannabis":984998,"cannabis-off":988782,"caps-lock":985755,"car":983307,"car-2-plus":987157,"car-3-plus":987158,"car-arrow-left":988082,"car-arrow-right":988083,"car-back":986651,"car-battery":983308,"car-brake-abs":986183,"car-brake-alert":986184,"car-brake-fluid-level":989449,"car-brake-hold":986462,"car-brake-low-pressure":989450,"car-brake-parking":986463,"car-brake-retarder":987159,"car-brake-temperature":989451,"car-brake-worn-linings":989452,"car-child-seat":987043,"car-clock":989556,"car-clutch":987160,"car-cog":988108,"car-connected":983309,"car-convertible":984999,"car-coolant-level":987161,"car-cruise-control":986464,"car-defrost-front":986465,"car-defrost-rear":986466,"car-door":985963,"car-door-lock":987293,"car-electric":985964,"car-electric-outline":988597,"car-emergency":988687,"car-esp":986185,"car-estate":985000,"car-hatchback":985001,"car-info":987582,"car-key":985965,"car-lifted-pickup":988461,"car-light-alert":989453,"car-light-dimmed":986186,"car-light-fog":986187,"car-light-high":986188,"car-limousine":985293,"car-multiple":985966,"car-off":986652,"car-outline":988397,"car-parking-lights":986467,"car-pickup":985002,"car-seat":987044,"car-seat-cooler":987045,"car-seat-heater":987046,"car-select":989305,"car-settings":988109,"car-shift-pattern":986944,"car-side":985003,"car-speed-limiter":989454,"car-sports":985004,"car-tire-alert":986189,"car-traction-control":986468,"car-turbocharger":987162,"car-wash":983310,"car-windshield":987163,"car-windshield-outline":987164,"car-wireless":989304,"car-wrench":989204,"carabiner":988352,"caravan":985005,"card":985967,"card-account-details":984530,"card-account-details-outline":986539,"card-account-details-star":983715,"card-account-details-star-outline":984795,"card-account-mail":983438,"card-account-mail-outline":986776,"card-account-phone":986777,"card-account-phone-outline":986778,"card-bulleted":985968,"card-bulleted-off":985969,"card-bulleted-off-outline":985970,"card-bulleted-outline":985971,"card-bulleted-settings":985972,"card-bulleted-settings-outline":985973,"card-minus":988672,"card-minus-outline":988673,"card-multiple":989169,"card-multiple-outline":989170,"card-off":988674,"card-off-outline":988675,"card-outline":985974,"card-plus":987647,"card-plus-outline":987648,"card-remove":988676,"card-remove-outline":988677,"card-search":987252,"card-search-outline":987253,"card-text":985975,"card-text-outline":985976,"cards":984632,"cards-club":985294,"cards-club-outline":989343,"cards-diamond":985295,"cards-diamond-outline":987165,"cards-heart":985296,"cards-heart-outline":989344,"cards-outline":984633,"cards-playing":989345,"cards-playing-club":989346,"cards-playing-club-multiple":989347,"cards-playing-club-multiple-outline":989348,"cards-playing-club-outline":989349,"cards-playing-diamond":989350,"cards-playing-diamond-multiple":989351,"cards-playing-diamond-multiple-outline":989352,"cards-playing-diamond-outline":989353,"cards-playing-heart":989354,"cards-playing-heart-multiple":989355,"cards-playing-heart-multiple-outline":989356,"cards-playing-heart-outline":989357,"cards-playing-outline":984634,"cards-playing-spade":989358,"cards-playing-spade-multiple":989359,"cards-playing-spade-multiple-outline":989360,"cards-playing-spade-outline":989361,"cards-spade":985297,"cards-spade-outline":989362,"cards-variant":984775,"carrot":983311,"cart":983312,"cart-arrow-down":986470,"cart-arrow-right":986190,"cart-arrow-up":986471,"cart-check":988650,"cart-heart":989408,"cart-minus":986472,"cart-off":984683,"cart-outline":983313,"cart-plus":983314,"cart-remove":986473,"cart-variant":988651,"case-sensitive-alt":983315,"cash":983316,"cash-100":983317,"cash-check":988398,"cash-fast":989276,"cash-lock":988394,"cash-lock-open":988395,"cash-marker":986552,"cash-minus":987744,"cash-multiple":983318,"cash-plus":987745,"cash-refund":985756,"cash-register":986356,"cash-remove":987746,"cassette":985556,"cast":983320,"cast-audio":987166,"cast-audio-variant":989001,"cast-connected":983321,"cast-education":986653,"cast-off":984970,"cast-variant":983071,"castle":983322,"cat":983323,"cctv":985006,"cctv-off":989279,"ceiling-fan":989079,"ceiling-fan-light":989080,"ceiling-light":984937,"ceiling-light-multiple":989405,"ceiling-light-multiple-outline":989406,"ceiling-light-outline":989127,"cellphone":983324,"cellphone-arrow-down":985557,"cellphone-basic":983326,"cellphone-charging":988055,"cellphone-check":989181,"cellphone-cog":985425,"cellphone-dock":983327,"cellphone-information":986945,"cellphone-key":985422,"cellphone-link":983329,"cellphone-link-off":983330,"cellphone-lock":985423,"cellphone-marker":989242,"cellphone-message":985299,"cellphone-message-off":987346,"cellphone-nfc":986768,"cellphone-nfc-off":987864,"cellphone-off":985424,"cellphone-play":987167,"cellphone-remove":985421,"cellphone-screenshot":985653,"cellphone-settings":983331,"cellphone-sound":985426,"cellphone-text":985298,"cellphone-wireless":985109,"centos":987418,"certificate":983332,"certificate-outline":987528,"chair-rolling":986952,"chair-school":983333,"chandelier":989075,"charity":986191,"chart-arc":983334,"chart-areaspline":983335,"chart-areaspline-variant":986769,"chart-bar":983336,"chart-bar-stacked":984938,"chart-bell-curve":986192,"chart-bell-curve-cumulative":987047,"chart-box":988493,"chart-box-outline":988494,"chart-box-plus-outline":988495,"chart-bubble":984547,"chart-donut":985007,"chart-donut-variant":985008,"chart-gantt":984684,"chart-histogram":983337,"chart-line":983338,"chart-line-stacked":984939,"chart-line-variant":985009,"chart-multiline":985300,"chart-multiple":987667,"chart-pie":983339,"chart-ppf":988032,"chart-sankey":987615,"chart-sankey-variant":987616,"chart-scatter-plot":986770,"chart-scatter-plot-hexbin":984685,"chart-timeline":984686,"chart-timeline-variant":986771,"chart-timeline-variant-shimmer":988598,"chart-tree":986772,"chart-waterfall":989464,"chat":985977,"chat-alert":985978,"chat-alert-outline":987849,"chat-minus":988176,"chat-minus-outline":988179,"chat-outline":986846,"chat-plus":988175,"chat-plus-outline":988178,"chat-processing":985979,"chat-processing-outline":987850,"chat-question":988984,"chat-question-outline":988985,"chat-remove":988177,"chat-remove-outline":988180,"chat-sleep":987857,"chat-sleep-outline":987858,"check":983340,"check-all":983341,"check-bold":986654,"check-circle":984544,"check-circle-outline":984545,"check-decagram":984977,"check-decagram-outline":988992,"check-network":986195,"check-network-outline":986196,"check-outline":985173,"check-underline":986655,"check-underline-circle":986656,"check-underline-circle-outline":986657,"checkbook":985757,"checkbox-blank":983342,"checkbox-blank-badge":987510,"checkbox-blank-badge-outline":983319,"checkbox-blank-circle":983343,"checkbox-blank-circle-outline":983344,"checkbox-blank-off":987884,"checkbox-blank-off-outline":987885,"checkbox-blank-outline":983345,"checkbox-intermediate":985174,"checkbox-marked":983346,"checkbox-marked-circle":983347,"checkbox-marked-circle-outline":983348,"checkbox-marked-circle-plus-outline":989479,"checkbox-marked-outline":983349,"checkbox-multiple-blank":983350,"checkbox-multiple-blank-circle":984635,"checkbox-multiple-blank-circle-outline":984636,"checkbox-multiple-blank-outline":983351,"checkbox-multiple-marked":983352,"checkbox-multiple-marked-circle":984637,"checkbox-multiple-marked-circle-outline":984638,"checkbox-multiple-marked-outline":983353,"checkbox-multiple-outline":986193,"checkbox-outline":986194,"checkerboard":983354,"checkerboard-minus":987650,"checkerboard-plus":987649,"checkerboard-remove":987651,"cheese":987833,"cheese-off":988142,"chef-hat":985980,"chemical-weapon":983355,"chess-bishop":985180,"chess-king":985175,"chess-knight":985176,"chess-pawn":985177,"chess-queen":985178,"chess-rook":985179,"chevron-double-down":983356,"chevron-double-left":983357,"chevron-double-right":983358,"chevron-double-up":983359,"chevron-down":983360,"chevron-down-box":985558,"chevron-down-box-outline":985559,"chevron-down-circle":985894,"chevron-down-circle-outline":985895,"chevron-left":983361,"chevron-left-box":985560,"chevron-left-box-outline":985561,"chevron-left-circle":985896,"chevron-left-circle-outline":985897,"chevron-right":983362,"chevron-right-box":985562,"chevron-right-box-outline":985563,"chevron-right-circle":985898,"chevron-right-circle-outline":985899,"chevron-triple-down":986553,"chevron-triple-left":986554,"chevron-triple-right":986555,"chevron-triple-up":986556,"chevron-up":983363,"chevron-up-box":985564,"chevron-up-box-outline":985565,"chevron-up-circle":985900,"chevron-up-circle-outline":985901,"chili-alert":989162,"chili-alert-outline":989163,"chili-hot":985010,"chili-hot-outline":989164,"chili-medium":985011,"chili-medium-outline":989165,"chili-mild":985012,"chili-mild-outline":989166,"chili-off":988263,"chili-off-outline":989167,"chip":984602,"church":983364,"cigar":987529,"cigar-off":988187,"circle":984933,"circle-box":988636,"circle-box-outline":988637,"circle-double":986773,"circle-edit-outline":985301,"circle-expand":986774,"circle-half":988053,"circle-half-full":988054,"circle-medium":985566,"circle-multiple":985912,"circle-multiple-outline":984725,"circle-off-outline":987347,"circle-opacity":989267,"circle-outline":984934,"circle-slice-1":985758,"circle-slice-2":985759,"circle-slice-3":985760,"circle-slice-4":985761,"circle-slice-5":985762,"circle-slice-6":985763,"circle-slice-7":985764,"circle-slice-8":985765,"circle-small":985567,"circular-saw":986658,"city":983366,"city-variant":985654,"city-variant-outline":985655,"clipboard":983367,"clipboard-account":983368,"clipboard-account-outline":986197,"clipboard-alert":983369,"clipboard-alert-outline":986359,"clipboard-arrow-down":983370,"clipboard-arrow-down-outline":986198,"clipboard-arrow-left":983371,"clipboard-arrow-left-outline":986360,"clipboard-arrow-right":986361,"clipboard-arrow-right-outline":986362,"clipboard-arrow-up":986199,"clipboard-arrow-up-outline":986200,"clipboard-check":983374,"clipboard-check-multiple":987747,"clipboard-check-multiple-outline":987748,"clipboard-check-outline":985256,"clipboard-clock":988898,"clipboard-clock-outline":988899,"clipboard-edit":988389,"clipboard-edit-outline":988390,"clipboard-file":987749,"clipboard-file-outline":987750,"clipboard-flow":984776,"clipboard-flow-outline":987415,"clipboard-list":987348,"clipboard-list-outline":987349,"clipboard-minus":988696,"clipboard-minus-outline":988697,"clipboard-multiple":987751,"clipboard-multiple-outline":987752,"clipboard-off":988698,"clipboard-off-outline":988699,"clipboard-outline":983372,"clipboard-play":986201,"clipboard-play-multiple":987753,"clipboard-play-multiple-outline":987754,"clipboard-play-outline":986202,"clipboard-plus":984913,"clipboard-plus-outline":987935,"clipboard-pulse":985181,"clipboard-pulse-outline":985182,"clipboard-remove":988700,"clipboard-remove-outline":988701,"clipboard-search":988702,"clipboard-search-outline":988703,"clipboard-text":983373,"clipboard-text-clock":989433,"clipboard-text-clock-outline":989434,"clipboard-text-multiple":987755,"clipboard-text-multiple-outline":987756,"clipboard-text-off":988704,"clipboard-text-off-outline":988705,"clipboard-text-outline":985656,"clipboard-text-play":986203,"clipboard-text-play-outline":986204,"clipboard-text-search":988706,"clipboard-text-search-outline":988707,"clippy":983375,"clock":985428,"clock-alert":985429,"clock-alert-outline":984526,"clock-check":987048,"clock-check-outline":987049,"clock-digital":986775,"clock-edit":989626,"clock-edit-outline":989627,"clock-end":983377,"clock-fast":983378,"clock-in":983379,"clock-minus":989283,"clock-minus-outline":989284,"clock-out":983380,"clock-outline":983376,"clock-plus":989281,"clock-plus-outline":989282,"clock-remove":989285,"clock-remove-outline":989286,"clock-start":983381,"clock-time-eight":988230,"clock-time-eight-outline":988242,"clock-time-eleven":988233,"clock-time-eleven-outline":988245,"clock-time-five":988227,"clock-time-five-outline":988239,"clock-time-four":988226,"clock-time-four-outline":988238,"clock-time-nine":988231,"clock-time-nine-outline":988243,"clock-time-one":988223,"clock-time-one-outline":988235,"clock-time-seven":988229,"clock-time-seven-outline":988241,"clock-time-six":988228,"clock-time-six-outline":988240,"clock-time-ten":988232,"clock-time-ten-outline":988244,"clock-time-three":988225,"clock-time-three-outline":988237,"clock-time-twelve":988234,"clock-time-twelve-outline":988246,"clock-time-two":988224,"clock-time-two-outline":988236,"close":983382,"close-box":983383,"close-box-multiple":986205,"close-box-multiple-outline":986206,"close-box-outline":983384,"close-circle":983385,"close-circle-multiple":984618,"close-circle-multiple-outline":985219,"close-circle-outline":983386,"close-network":983387,"close-network-outline":986207,"close-octagon":983388,"close-octagon-outline":983389,"close-outline":984777,"close-thick":988056,"closed-caption":983390,"closed-caption-outline":986557,"cloud":983391,"cloud-alert":985568,"cloud-braces":985013,"cloud-check":983392,"cloud-check-outline":987852,"cloud-circle":983393,"cloud-download":983394,"cloud-download-outline":985981,"cloud-lock":987633,"cloud-lock-outline":987634,"cloud-off-outline":983396,"cloud-outline":983395,"cloud-print":983397,"cloud-print-outline":983398,"cloud-question":985657,"cloud-refresh":984362,"cloud-search":985430,"cloud-search-outline":985431,"cloud-sync":984639,"cloud-sync-outline":987862,"cloud-tags":985014,"cloud-upload":983399,"cloud-upload-outline":985982,"clover":985110,"coach-lamp":987168,"coat-rack":987294,"code-array":983400,"code-braces":983401,"code-braces-box":987350,"code-brackets":983402,"code-equal":983403,"code-greater-than":983404,"code-greater-than-or-equal":983405,"code-json":984614,"code-less-than":983406,"code-less-than-or-equal":983407,"code-not-equal":983408,"code-not-equal-variant":983409,"code-parentheses":983410,"code-parentheses-box":987351,"code-string":983411,"code-tags":983412,"code-tags-check":984724,"codepen":983413,"coffee":983414,"coffee-maker":987295,"coffee-maker-check":989489,"coffee-maker-check-outline":989490,"coffee-maker-outline":989211,"coffee-off":987050,"coffee-off-outline":987051,"coffee-outline":984778,"coffee-to-go":983415,"coffee-to-go-outline":987918,"coffin":985983,"cog":984211,"cog-box":984212,"cog-clockwise":987613,"cog-counterclockwise":987614,"cog-off":988110,"cog-off-outline":988111,"cog-outline":985275,"cog-pause":989491,"cog-pause-outline":989492,"cog-play":989493,"cog-play-outline":989494,"cog-refresh":988254,"cog-refresh-outline":988255,"cog-stop":989495,"cog-stop-outline":989496,"cog-sync":988256,"cog-sync-outline":988257,"cog-transfer":987227,"cog-transfer-outline":987228,"cogs":985302,"collage":984640,"collapse-all":985766,"collapse-all-outline":985767,"color-helper":983417,"comma":986659,"comma-box":986667,"comma-box-outline":986660,"comma-circle":986661,"comma-circle-outline":986662,"comment":983418,"comment-account":983419,"comment-account-outline":983420,"comment-alert":983421,"comment-alert-outline":983422,"comment-arrow-left":985569,"comment-arrow-left-outline":985570,"comment-arrow-right":985571,"comment-arrow-right-outline":985572,"comment-bookmark":988590,"comment-bookmark-outline":988591,"comment-check":983423,"comment-check-outline":983424,"comment-edit":987583,"comment-edit-outline":987844,"comment-eye":985658,"comment-eye-outline":985659,"comment-flash":988592,"comment-flash-outline":988593,"comment-minus":988639,"comment-minus-outline":988640,"comment-multiple":985183,"comment-multiple-outline":983425,"comment-off":988641,"comment-off-outline":988642,"comment-outline":983426,"comment-plus":985573,"comment-plus-outline":983427,"comment-processing":983428,"comment-processing-outline":983429,"comment-question":985111,"comment-question-outline":983430,"comment-quote":987169,"comment-quote-outline":987170,"comment-remove":984542,"comment-remove-outline":983431,"comment-search":985660,"comment-search-outline":985661,"comment-text":983432,"comment-text-multiple":985184,"comment-text-multiple-outline":985185,"comment-text-outline":983433,"compare":983434,"compare-horizontal":988306,"compare-remove":989363,"compare-vertical":988307,"compass":983435,"compass-off":985984,"compass-off-outline":985985,"compass-outline":983436,"compass-rose":988034,"cone":989516,"cone-off":989517,"connection":988694,"console":983437,"console-line":985015,"console-network":985257,"console-network-outline":986208,"consolidate":987352,"contactless-payment":986474,"contactless-payment-circle":983841,"contactless-payment-circle-outline":984072,"contacts":984779,"contacts-outline":984504,"contain":985662,"contain-end":985663,"contain-start":985664,"content-copy":983439,"content-cut":983440,"content-duplicate":983441,"content-paste":983442,"content-save":983443,"content-save-alert":986946,"content-save-alert-outline":986947,"content-save-all":983444,"content-save-all-outline":986948,"content-save-check":989418,"content-save-check-outline":989419,"content-save-cog":988251,"content-save-cog-outline":988252,"content-save-edit":986363,"content-save-edit-outline":986364,"content-save-move":986663,"content-save-move-outline":986664,"content-save-off":988739,"content-save-off-outline":988740,"content-save-outline":985112,"content-save-settings":984603,"content-save-settings-outline":985902,"contrast":983445,"contrast-box":983446,"contrast-circle":983447,"controller-classic":985986,"controller-classic-outline":985987,"cookie":983448,"cookie-alert":988880,"cookie-alert-outline":988881,"cookie-check":988882,"cookie-check-outline":988883,"cookie-clock":988900,"cookie-clock-outline":988901,"cookie-cog":988884,"cookie-cog-outline":988885,"cookie-edit":988902,"cookie-edit-outline":988903,"cookie-lock":988904,"cookie-lock-outline":988905,"cookie-minus":988890,"cookie-minus-outline":988891,"cookie-off":988906,"cookie-off-outline":988907,"cookie-outline":988894,"cookie-plus":988886,"cookie-plus-outline":988887,"cookie-refresh":988908,"cookie-refresh-outline":988909,"cookie-remove":988888,"cookie-remove-outline":988889,"cookie-settings":988892,"cookie-settings-outline":988893,"coolant-temperature":984008,"copyleft":989497,"copyright":984550,"cordova":985432,"corn":985016,"corn-off":988143,"cosine-wave":988281,"counter":983449,"countertop":989212,"countertop-outline":989213,"cow":983450,"cow-off":989436,"cpu-32-bit":986847,"cpu-64-bit":986848,"cradle":989579,"cradle-outline":989585,"crane":985186,"creation":984692,"creative-commons":986475,"credit-card":987119,"credit-card-check":988112,"credit-card-check-outline":988113,"credit-card-chip":989455,"credit-card-chip-outline":989456,"credit-card-clock":986849,"credit-card-clock-outline":986850,"credit-card-edit":989143,"credit-card-edit-outline":989144,"credit-card-fast":989457,"credit-card-fast-outline":989458,"credit-card-lock":989415,"credit-card-lock-outline":989416,"credit-card-marker":984744,"credit-card-marker-outline":986558,"credit-card-minus":987052,"credit-card-minus-outline":987053,"credit-card-multiple":987120,"credit-card-multiple-outline":983452,"credit-card-off":987121,"credit-card-off-outline":984548,"credit-card-outline":983451,"credit-card-plus":987122,"credit-card-plus-outline":984694,"credit-card-refresh":988741,"credit-card-refresh-outline":988742,"credit-card-refund":987123,"credit-card-refund-outline":985768,"credit-card-remove":987054,"credit-card-remove-outline":987055,"credit-card-scan":987124,"credit-card-scan-outline":983453,"credit-card-search":988743,"credit-card-search-outline":988744,"credit-card-settings":987125,"credit-card-settings-outline":985303,"credit-card-sync":988745,"credit-card-sync-outline":988746,"credit-card-wireless":985090,"credit-card-wireless-off":984442,"credit-card-wireless-off-outline":984443,"credit-card-wireless-outline":986476,"cricket":986477,"crop":983454,"crop-free":983455,"crop-landscape":983456,"crop-portrait":983457,"crop-rotate":984726,"crop-square":983458,"cross":985427,"cross-bolnisi":986349,"cross-celtic":986357,"cross-outline":986358,"crosshairs":983459,"crosshairs-gps":983460,"crosshairs-off":986949,"crosshairs-question":987446,"crowd":989557,"crown":983461,"crown-circle":989148,"crown-circle-outline":989149,"crown-outline":987600,"cryengine":985433,"crystal-ball":985903,"cube":983462,"cube-off":988188,"cube-off-outline":988189,"cube-outline":983463,"cube-scan":985988,"cube-send":983464,"cube-unfolded":983465,"cup":983466,"cup-off":984549,"cup-off-outline":988029,"cup-outline":987919,"cup-water":983467,"cupboard":986950,"cupboard-outline":986951,"cupcake":985434,"curling":985187,"currency-bdt":985188,"currency-brl":985989,"currency-btc":983468,"currency-cny":985018,"currency-eth":985019,"currency-eur":983469,"currency-eur-off":987925,"currency-gbp":983470,"currency-ils":986209,"currency-inr":983471,"currency-jpy":985020,"currency-krw":985021,"currency-kzt":985189,"currency-mnt":988434,"currency-ngn":983472,"currency-php":985574,"currency-rial":986780,"currency-rub":983473,"currency-rupee":989558,"currency-sign":985022,"currency-try":983474,"currency-twd":985023,"currency-usd":983489,"currency-usd-off":984698,"current-ac":988288,"current-dc":985436,"cursor-default":983488,"cursor-default-click":986365,"cursor-default-click-outline":986366,"cursor-default-gesture":987431,"cursor-default-gesture-outline":987432,"cursor-default-outline":983487,"cursor-move":983486,"cursor-pointer":983485,"cursor-text":984551,"curtains":989254,"curtains-closed":989255,"cylinder":989518,"cylinder-off":989519,"dance-ballroom":988667,"dance-pole":988536,"data-matrix":988476,"data-matrix-edit":988477,"data-matrix-minus":988478,"data-matrix-plus":988479,"data-matrix-remove":988480,"data-matrix-scan":988481,"database":983484,"database-alert":988730,"database-alert-outline":988708,"database-arrow-down":988731,"database-arrow-down-outline":988709,"database-arrow-left":988732,"database-arrow-left-outline":988710,"database-arrow-right":988733,"database-arrow-right-outline":988711,"database-arrow-up":988734,"database-arrow-up-outline":988712,"database-check":985769,"database-check-outline":988713,"database-clock":988735,"database-clock-outline":988714,"database-cog":988747,"database-cog-outline":988748,"database-edit":985990,"database-edit-outline":988715,"database-export":985438,"database-export-outline":988716,"database-eye":989471,"database-eye-off":989472,"database-eye-off-outline":989473,"database-eye-outline":989474,"database-import":985437,"database-import-outline":988717,"database-lock":985770,"database-lock-outline":988718,"database-marker":987894,"database-marker-outline":988719,"database-minus":983483,"database-minus-outline":988720,"database-off":988736,"database-off-outline":988721,"database-outline":988722,"database-plus":983482,"database-plus-outline":988723,"database-refresh":984514,"database-refresh-outline":988724,"database-remove":986368,"database-remove-outline":988725,"database-search":985190,"database-search-outline":988726,"database-settings":986369,"database-settings-outline":988727,"database-sync":986367,"database-sync-outline":988728,"death-star":985304,"death-star-variant":985305,"deathly-hallows":985991,"debian":985306,"debug-step-into":983481,"debug-step-out":983480,"debug-step-over":983479,"decagram":984940,"decagram-outline":984941,"decimal":987297,"decimal-comma":987298,"decimal-comma-decrease":987299,"decimal-comma-increase":987300,"decimal-decrease":983478,"decimal-increase":983477,"delete":983476,"delete-alert":987301,"delete-alert-outline":987302,"delete-circle":984707,"delete-circle-outline":985992,"delete-clock":988502,"delete-clock-outline":988503,"delete-empty":984780,"delete-empty-outline":986781,"delete-forever":984552,"delete-forever-outline":985993,"delete-off":987303,"delete-off-outline":987304,"delete-outline":985575,"delete-restore":985113,"delete-sweep":984553,"delete-sweep-outline":986210,"delete-variant":983475,"delta":983490,"desk":987705,"desk-lamp":985439,"deskphone":983491,"desktop-classic":985024,"desktop-mac":983492,"desktop-mac-dashboard":985576,"desktop-tower":983493,"desktop-tower-monitor":985771,"details":983494,"dev-to":986478,"developer-board":984727,"deviantart":983495,"devices":987056,"dharmachakra":985419,"diabetes":987430,"dialpad":984604,"diameter":986211,"diameter-outline":986212,"diameter-variant":986213,"diamond":985994,"diamond-outline":985995,"diamond-stone":983496,"dice-1":983498,"dice-1-outline":987466,"dice-2":983499,"dice-2-outline":987467,"dice-3":983500,"dice-3-outline":987468,"dice-4":983501,"dice-4-outline":987469,"dice-5":983502,"dice-5-outline":987470,"dice-6":983503,"dice-6-outline":987471,"dice-d10":987475,"dice-d10-outline":984943,"dice-d12":987476,"dice-d12-outline":985191,"dice-d20":987477,"dice-d20-outline":984554,"dice-d4":987472,"dice-d4-outline":984555,"dice-d6":987473,"dice-d6-outline":984557,"dice-d8":987474,"dice-d8-outline":984556,"dice-multiple":984942,"dice-multiple-outline":987478,"digital-ocean":987703,"dip-switch":985025,"directions":983504,"directions-fork":984641,"disc":984558,"disc-alert":983505,"disc-player":985440,"discord":984687,"dishwasher":985772,"dishwasher-alert":987576,"dishwasher-off":987577,"disqus":983506,"distribute-horizontal-center":987593,"distribute-horizontal-left":987592,"distribute-horizontal-right":987594,"distribute-vertical-bottom":987595,"distribute-vertical-center":987596,"distribute-vertical-top":987597,"diversify":989303,"diving":989559,"diving-flippers":986559,"diving-helmet":986560,"diving-scuba":986561,"diving-scuba-flag":986562,"diving-scuba-tank":986563,"diving-scuba-tank-multiple":986564,"diving-snorkel":986565,"division":983508,"division-box":983509,"dlna":985665,"dna":984708,"dns":983510,"dns-outline":985996,"dock-bottom":987305,"dock-left":987306,"dock-right":987307,"dock-top":988435,"dock-window":987308,"docker":985192,"doctor":985666,"dog":985667,"dog-service":985773,"dog-side":985668,"dog-side-off":988910,"dolby":984755,"dolly":986782,"dolphin":989364,"domain":983511,"domain-off":986479,"domain-plus":987309,"domain-remove":987310,"dome-light":988190,"domino-mask":987171,"donkey":985026,"door":985114,"door-closed":985115,"door-closed-lock":987311,"door-open":985116,"door-sliding":989214,"door-sliding-lock":989215,"door-sliding-open":989216,"doorbell":987878,"doorbell-video":985193,"dot-net":985774,"dots-circle":989560,"dots-grid":988668,"dots-hexagon":988671,"dots-horizontal":983512,"dots-horizontal-circle":985027,"dots-horizontal-circle-outline":985997,"dots-square":988669,"dots-triangle":988670,"dots-vertical":983513,"dots-vertical-circle":985028,"dots-vertical-circle-outline":985998,"download":983514,"download-box":988258,"download-box-outline":988259,"download-circle":988260,"download-circle-outline":988261,"download-lock":987936,"download-lock-outline":987937,"download-multiple":985577,"download-network":984820,"download-network-outline":986214,"download-off":987312,"download-off-outline":987313,"download-outline":985999,"drag":983515,"drag-horizontal":983516,"drag-horizontal-variant":987888,"drag-variant":986000,"drag-vertical":983517,"drag-vertical-variant":987889,"drama-masks":986370,"draw":986953,"draw-pen":989625,"drawing":983518,"drawing-box":983519,"dresser":986954,"dresser-outline":986955,"drone":983522,"dropbox":983523,"drupal":983524,"duck":983525,"dumbbell":983526,"dump-truck":986215,"ear-hearing":985029,"ear-hearing-off":985669,"earbuds":989263,"earbuds-off":989264,"earbuds-off-outline":989265,"earbuds-outline":989266,"earth":983527,"earth-arrow-right":987921,"earth-box":984781,"earth-box-minus":988167,"earth-box-off":984782,"earth-box-plus":988166,"earth-box-remove":988168,"earth-minus":988164,"earth-off":983528,"earth-plus":988163,"earth-remove":988165,"egg":985775,"egg-easter":985776,"egg-fried":989258,"egg-off":988144,"egg-off-outline":988145,"egg-outline":988146,"eiffel-tower":988523,"eight-track":985578,"eject":983530,"eject-outline":986001,"electric-switch":986783,"electric-switch-closed":987353,"electron-framework":987172,"elephant":985030,"elevation-decline":983531,"elevation-rise":983532,"elevator":983533,"elevator-down":987842,"elevator-passenger":988033,"elevator-passenger-off":989561,"elevator-passenger-off-outline":989562,"elevator-passenger-outline":989563,"elevator-up":987841,"ellipse":986784,"ellipse-outline":986785,"email":983534,"email-alert":984783,"email-alert-outline":986434,"email-box":986371,"email-check":985777,"email-check-outline":985778,"email-edit":986851,"email-edit-outline":986852,"email-fast":989295,"email-fast-outline":989296,"email-lock":983537,"email-mark-as-unread":986002,"email-minus":986853,"email-minus-outline":986854,"email-multiple":986855,"email-multiple-outline":986856,"email-newsletter":987057,"email-off":988131,"email-off-outline":988132,"email-open":983535,"email-open-multiple":986857,"email-open-multiple-outline":986858,"email-open-outline":984559,"email-outline":983536,"email-plus":985579,"email-plus-outline":985580,"email-receive":987354,"email-receive-outline":987355,"email-remove":988769,"email-remove-outline":988770,"email-seal":989531,"email-seal-outline":989532,"email-search":985441,"email-search-outline":985442,"email-send":987356,"email-send-outline":987357,"email-sync":987847,"email-sync-outline":987848,"email-variant":984560,"ember":985904,"emby":984756,"emoticon":986216,"emoticon-angry":986217,"emoticon-angry-outline":986218,"emoticon-confused":987358,"emoticon-confused-outline":987359,"emoticon-cool":986219,"emoticon-cool-outline":983539,"emoticon-cry":986220,"emoticon-cry-outline":986221,"emoticon-dead":986222,"emoticon-dead-outline":984731,"emoticon-devil":986223,"emoticon-devil-outline":983540,"emoticon-excited":986224,"emoticon-excited-outline":984732,"emoticon-frown":986956,"emoticon-frown-outline":986957,"emoticon-happy":986225,"emoticon-happy-outline":983541,"emoticon-kiss":986226,"emoticon-kiss-outline":986227,"emoticon-lol":987668,"emoticon-lol-outline":987669,"emoticon-neutral":986228,"emoticon-neutral-outline":983542,"emoticon-outline":983538,"emoticon-poop":983543,"emoticon-poop-outline":986229,"emoticon-sad":986230,"emoticon-sad-outline":983544,"emoticon-sick":988540,"emoticon-sick-outline":988541,"emoticon-tongue":983545,"emoticon-tongue-outline":986231,"emoticon-wink":986232,"emoticon-wink-outline":986233,"engine":983546,"engine-off":985670,"engine-off-outline":985671,"engine-outline":983547,"epsilon":987360,"equal":983548,"equal-box":983549,"equalizer":986786,"equalizer-outline":986787,"eraser":983550,"eraser-variant":984642,"escalator":983551,"escalator-box":988057,"escalator-down":987840,"escalator-up":987839,"eslint":986234,"et":985779,"ethereum":985194,"ethernet":983552,"ethernet-cable":983553,"ethernet-cable-off":983554,"ev-plug-ccs1":988441,"ev-plug-ccs2":988442,"ev-plug-chademo":988443,"ev-plug-tesla":988444,"ev-plug-type1":988445,"ev-plug-type2":988446,"ev-station":984561,"evernote":983556,"excavator":987173,"exclamation":983557,"exclamation-thick":987704,"exit-run":985672,"exit-to-app":983558,"expand-all":985780,"expand-all-outline":985781,"expansion-card":985262,"expansion-card-variant":987058,"exponent":985443,"exponent-box":985444,"export":983559,"export-variant":986003,"eye":983560,"eye-arrow-left":989437,"eye-arrow-left-outline":989438,"eye-arrow-right":989439,"eye-arrow-right-outline":989440,"eye-check":986372,"eye-check-outline":986373,"eye-circle":986004,"eye-circle-outline":986005,"eye-minus":987174,"eye-minus-outline":987175,"eye-off":983561,"eye-off-outline":984785,"eye-outline":984784,"eye-plus":985195,"eye-plus-outline":985196,"eye-refresh":989564,"eye-refresh-outline":989565,"eye-remove":988643,"eye-remove-outline":988644,"eye-settings":985197,"eye-settings-outline":985198,"eyedropper":983562,"eyedropper-minus":988125,"eyedropper-off":988127,"eyedropper-plus":988124,"eyedropper-remove":988126,"eyedropper-variant":983563,"face-agent":986480,"face-man":984643,"face-man-outline":986006,"face-man-profile":984644,"face-man-shimmer":988620,"face-man-shimmer-outline":988621,"face-mask":988550,"face-mask-outline":988551,"face-recognition":986235,"face-woman":987255,"face-woman-outline":987256,"face-woman-profile":987254,"face-woman-shimmer":988622,"face-woman-shimmer-outline":988623,"facebook":983564,"facebook-gaming":985053,"facebook-messenger":983566,"facebook-workplace":985905,"factory":983567,"family-tree":988686,"fan":983568,"fan-alert":988268,"fan-auto":988957,"fan-chevron-down":988269,"fan-chevron-up":988270,"fan-minus":988272,"fan-off":985117,"fan-plus":988271,"fan-remove":988273,"fan-speed-1":988274,"fan-speed-2":988275,"fan-speed-3":988276,"fast-forward":983569,"fast-forward-10":986481,"fast-forward-15":989498,"fast-forward-30":986374,"fast-forward-5":987640,"fast-forward-60":988683,"fast-forward-outline":984786,"fax":983570,"feather":984787,"feature-search":985673,"feature-search-outline":985674,"fedora":985307,"fence":989082,"fence-electric":989174,"fencing":988353,"ferris-wheel":986788,"ferry":983571,"file":983572,"file-account":984891,"file-account-outline":987176,"file-alert":985675,"file-alert-outline":985676,"file-cabinet":985782,"file-cad":986859,"file-cad-box":986860,"file-cancel":986566,"file-cancel-outline":986567,"file-certificate":987526,"file-certificate-outline":987527,"file-chart":983573,"file-chart-outline":987177,"file-check":983574,"file-check-outline":986665,"file-clock":987873,"file-clock-outline":987874,"file-cloud":983575,"file-cloud-outline":987178,"file-code":983598,"file-code-outline":987179,"file-cog":987259,"file-cog-outline":987260,"file-compare":985258,"file-delimited":983576,"file-delimited-outline":986789,"file-document":983577,"file-document-edit":986568,"file-document-edit-outline":986569,"file-document-multiple":988439,"file-document-multiple-outline":988440,"file-document-outline":985582,"file-download":985445,"file-download-outline":985446,"file-edit":987623,"file-edit-outline":987624,"file-excel":983579,"file-excel-box":983580,"file-excel-box-outline":987180,"file-excel-outline":987181,"file-export":983581,"file-export-outline":987182,"file-eye":986570,"file-eye-outline":986571,"file-find":983582,"file-find-outline":986007,"file-gif-box":986488,"file-hidden":984595,"file-image":983583,"file-image-marker":989042,"file-image-marker-outline":989043,"file-image-minus":989499,"file-image-minus-outline":989500,"file-image-outline":986800,"file-image-plus":989501,"file-image-plus-outline":989502,"file-image-remove":989503,"file-image-remove-outline":989504,"file-import":983584,"file-import-outline":987183,"file-jpg-box":983589,"file-key":987524,"file-key-outline":987525,"file-link":987511,"file-link-outline":987512,"file-lock":983585,"file-lock-outline":987184,"file-marker":989044,"file-marker-outline":989045,"file-move":985785,"file-move-outline":987185,"file-multiple":983586,"file-multiple-outline":987186,"file-music":983587,"file-music-outline":986666,"file-outline":983588,"file-pdf-box":983590,"file-percent":985118,"file-percent-outline":987187,"file-phone":987513,"file-phone-outline":987514,"file-plus":984914,"file-plus-outline":986861,"file-png-box":986669,"file-powerpoint":983591,"file-powerpoint-box":983592,"file-powerpoint-box-outline":987188,"file-powerpoint-outline":987189,"file-presentation-box":983593,"file-question":985199,"file-question-outline":987190,"file-refresh":985368,"file-refresh-outline":984385,"file-remove":986008,"file-remove-outline":987191,"file-replace":985906,"file-replace-outline":985907,"file-restore":984688,"file-restore-outline":987192,"file-search":986236,"file-search-outline":986237,"file-send":983594,"file-send-outline":987193,"file-settings":987257,"file-settings-outline":987258,"file-sign":989635,"file-star":987194,"file-star-outline":987195,"file-swap":987060,"file-swap-outline":987061,"file-sync":987670,"file-sync-outline":987671,"file-table":986238,"file-table-box":987361,"file-table-box-multiple":987362,"file-table-box-multiple-outline":987363,"file-table-box-outline":987364,"file-table-outline":986239,"file-tree":984645,"file-tree-outline":988114,"file-undo":985308,"file-undo-outline":987196,"file-upload":985677,"file-upload-outline":985678,"file-video":983595,"file-video-outline":986668,"file-word":983596,"file-word-box":983597,"file-word-box-outline":987197,"file-word-outline":987198,"film":983599,"filmstrip":983600,"filmstrip-box":983858,"filmstrip-box-multiple":986392,"filmstrip-off":983601,"filter":983602,"filter-check":989420,"filter-check-outline":989421,"filter-menu":987365,"filter-menu-outline":987366,"filter-minus":986862,"filter-minus-outline":986863,"filter-off":988399,"filter-off-outline":988400,"filter-outline":983603,"filter-plus":986864,"filter-plus-outline":986865,"filter-remove":983604,"filter-remove-outline":983605,"filter-variant":983606,"filter-variant-minus":987410,"filter-variant-plus":987411,"filter-variant-remove":987199,"finance":985119,"find-replace":984788,"fingerprint":983607,"fingerprint-off":986801,"fire":983608,"fire-alert":988631,"fire-circle":989191,"fire-extinguisher":986866,"fire-hydrant":987447,"fire-hydrant-alert":987448,"fire-hydrant-off":987449,"fire-off":988962,"fire-truck":985259,"firebase":985447,"firefox":983609,"fireplace":986670,"fireplace-off":986671,"firewire":984510,"firework":986672,"firework-off":988963,"fish":983610,"fish-off":988147,"fishbowl":986867,"fishbowl-outline":986868,"fit-to-page":986869,"fit-to-page-outline":986870,"fit-to-screen":989428,"fit-to-screen-outline":989429,"flag":983611,"flag-checkered":983612,"flag-minus":986009,"flag-minus-outline":987314,"flag-off":989422,"flag-off-outline":989423,"flag-outline":983613,"flag-plus":986010,"flag-plus-outline":987315,"flag-remove":986011,"flag-remove-outline":987316,"flag-triangle":983615,"flag-variant":983616,"flag-variant-outline":983614,"flare":986482,"flash":983617,"flash-alert":986871,"flash-alert-outline":986872,"flash-auto":983618,"flash-off":983619,"flash-outline":984789,"flash-red-eye":984699,"flashlight":983620,"flashlight-off":983621,"flask":983187,"flask-empty":983188,"flask-empty-minus":987706,"flask-empty-minus-outline":987707,"flask-empty-off":988148,"flask-empty-off-outline":988149,"flask-empty-outline":983189,"flask-empty-plus":987708,"flask-empty-plus-outline":987709,"flask-empty-remove":987710,"flask-empty-remove-outline":987711,"flask-minus":987712,"flask-minus-outline":987713,"flask-off":988150,"flask-off-outline":988151,"flask-outline":983190,"flask-plus":987714,"flask-plus-outline":987715,"flask-remove":987716,"flask-remove-outline":987717,"flask-round-bottom":987723,"flask-round-bottom-empty":987724,"flask-round-bottom-empty-outline":987725,"flask-round-bottom-outline":987726,"fleur-de-lis":987907,"flip-horizontal":987367,"flip-to-back":983623,"flip-to-front":983624,"flip-vertical":987368,"floor-lamp":985309,"floor-lamp-dual":987200,"floor-lamp-dual-outline":989134,"floor-lamp-outline":989128,"floor-lamp-torchiere":988999,"floor-lamp-torchiere-outline":989142,"floor-lamp-torchiere-variant":987201,"floor-lamp-torchiere-variant-outline":989135,"floor-plan":985121,"floppy":983625,"floppy-variant":985583,"flower":983626,"flower-outline":985584,"flower-pollen":989317,"flower-pollen-outline":989318,"flower-poppy":986376,"flower-tulip":985585,"flower-tulip-outline":985586,"focus-auto":986958,"focus-field":986959,"focus-field-horizontal":986960,"focus-field-vertical":986961,"folder":983627,"folder-account":983628,"folder-account-outline":986012,"folder-alert":986572,"folder-alert-outline":986573,"folder-check":989566,"folder-check-outline":989567,"folder-clock":985786,"folder-clock-outline":985787,"folder-cog":987263,"folder-cog-outline":987264,"folder-download":983629,"folder-download-outline":987369,"folder-edit":985310,"folder-edit-outline":986574,"folder-eye":989066,"folder-eye-outline":989067,"folder-google-drive":983630,"folder-heart":987370,"folder-heart-outline":987371,"folder-hidden":989086,"folder-home":987317,"folder-home-outline":987318,"folder-image":983631,"folder-information":987319,"folder-information-outline":987320,"folder-key":985260,"folder-key-network":985261,"folder-key-network-outline":986240,"folder-key-outline":987372,"folder-lock":983632,"folder-lock-open":983633,"folder-marker":987757,"folder-marker-outline":987758,"folder-move":983634,"folder-move-outline":987718,"folder-multiple":983635,"folder-multiple-image":983636,"folder-multiple-outline":983637,"folder-multiple-plus":988286,"folder-multiple-plus-outline":988287,"folder-music":987993,"folder-music-outline":987994,"folder-network":985200,"folder-network-outline":986241,"folder-open":984944,"folder-open-outline":986575,"folder-outline":983638,"folder-plus":983639,"folder-plus-outline":986013,"folder-pound":986377,"folder-pound-outline":986378,"folder-refresh":984905,"folder-refresh-outline":984386,"folder-remove":983640,"folder-remove-outline":986014,"folder-search":985448,"folder-search-outline":985449,"folder-settings":987261,"folder-settings-outline":987262,"folder-star":984733,"folder-star-multiple":988115,"folder-star-multiple-outline":988116,"folder-star-outline":986015,"folder-swap":987062,"folder-swap-outline":987063,"folder-sync":986379,"folder-sync-outline":986380,"folder-table":987875,"folder-table-outline":987876,"folder-text":986242,"folder-text-outline":986243,"folder-upload":983641,"folder-upload-outline":987373,"folder-zip":984811,"folder-zip-outline":985017,"font-awesome":983098,"food":983642,"food-apple":983643,"food-apple-outline":986244,"food-croissant":985032,"food-drumstick":988191,"food-drumstick-off":988264,"food-drumstick-off-outline":988265,"food-drumstick-outline":988192,"food-fork-drink":984562,"food-halal":988530,"food-hot-dog":989259,"food-kosher":988531,"food-off":984563,"food-off-outline":989461,"food-outline":989462,"food-steak":988266,"food-steak-off":988267,"food-takeout-box":989238,"food-takeout-box-outline":989239,"food-turkey":988956,"food-variant":983644,"food-variant-off":988133,"foot-print":986962,"football":983645,"football-australian":983646,"football-helmet":983647,"forest":989335,"forklift":985033,"form-dropdown":988160,"form-select":988161,"form-textarea":987285,"form-textbox":984590,"form-textbox-lock":987997,"form-textbox-password":985077,"format-align-bottom":984915,"format-align-center":983648,"format-align-justify":983649,"format-align-left":983650,"format-align-middle":984916,"format-align-right":983651,"format-align-top":984917,"format-annotation-minus":985788,"format-annotation-plus":984646,"format-bold":983652,"format-clear":983653,"format-color-fill":983654,"format-color-highlight":986673,"format-color-marker-cancel":987923,"format-color-text":984734,"format-columns":985311,"format-float-center":983655,"format-float-left":983656,"format-float-none":983657,"format-float-right":983658,"format-font":984790,"format-font-size-decrease":985587,"format-font-size-increase":985588,"format-header-1":983659,"format-header-2":983660,"format-header-3":983661,"format-header-4":983662,"format-header-5":983663,"format-header-6":983664,"format-header-decrease":983665,"format-header-equal":983666,"format-header-increase":983667,"format-header-pound":983668,"format-horizontal-align-center":984606,"format-horizontal-align-left":984607,"format-horizontal-align-right":984608,"format-indent-decrease":983669,"format-indent-increase":983670,"format-italic":983671,"format-letter-case":985908,"format-letter-case-lower":985909,"format-letter-case-upper":985910,"format-letter-ends-with":987064,"format-letter-matches":987065,"format-letter-spacing":989526,"format-letter-starts-with":987066,"format-line-spacing":983672,"format-line-style":984520,"format-line-weight":984521,"format-list-bulleted":983673,"format-list-bulleted-square":986576,"format-list-bulleted-triangle":986802,"format-list-bulleted-type":983674,"format-list-checkbox":985450,"format-list-checks":984918,"format-list-group":989280,"format-list-numbered":983675,"format-list-numbered-rtl":986381,"format-list-text":987759,"format-overline":986803,"format-page-break":984791,"format-page-split":989463,"format-paint":983676,"format-paragraph":983677,"format-pilcrow":984792,"format-quote-close":983678,"format-quote-close-outline":987560,"format-quote-open":984919,"format-quote-open-outline":987559,"format-rotate-90":984746,"format-section":984735,"format-size":983679,"format-strikethrough":983680,"format-strikethrough-variant":983681,"format-subscript":983682,"format-superscript":983683,"format-text":983684,"format-text-rotation-angle-down":987067,"format-text-rotation-angle-up":987068,"format-text-rotation-down":986483,"format-text-rotation-down-vertical":987069,"format-text-rotation-none":986484,"format-text-rotation-up":987070,"format-text-rotation-vertical":987071,"format-text-variant":986674,"format-text-variant-outline":988431,"format-text-wrapping-clip":986382,"format-text-wrapping-overflow":986383,"format-text-wrapping-wrap":986384,"format-textbox":986385,"format-textdirection-l-to-r":983685,"format-textdirection-r-to-l":983686,"format-title":984564,"format-underline":983687,"format-underline-wavy":989417,"format-vertical-align-bottom":984609,"format-vertical-align-center":984610,"format-vertical-align-top":984611,"format-wrap-inline":983688,"format-wrap-square":983689,"format-wrap-tight":983690,"format-wrap-top-bottom":983691,"forum":983692,"forum-outline":985122,"forward":983693,"forwardburger":986485,"fountain":985451,"fountain-pen":986386,"fountain-pen-tip":986387,"fraction-one-half":989586,"freebsd":985312,"french-fries":989527,"frequently-asked-questions":986804,"fridge":983696,"fridge-alert":987569,"fridge-alert-outline":987570,"fridge-bottom":983698,"fridge-industrial":988654,"fridge-industrial-alert":988655,"fridge-industrial-alert-outline":988656,"fridge-industrial-off":988657,"fridge-industrial-off-outline":988658,"fridge-industrial-outline":988659,"fridge-off":987567,"fridge-off-outline":987568,"fridge-outline":983695,"fridge-top":983697,"fridge-variant":988660,"fridge-variant-alert":988661,"fridge-variant-alert-outline":988662,"fridge-variant-off":988663,"fridge-variant-off-outline":988664,"fridge-variant-outline":988665,"fruit-cherries":987202,"fruit-cherries-off":988152,"fruit-citrus":987203,"fruit-citrus-off":988153,"fruit-grapes":987204,"fruit-grapes-outline":987205,"fruit-pineapple":987206,"fruit-watermelon":987207,"fuel":985034,"fuel-cell":989365,"fullscreen":983699,"fullscreen-exit":983700,"function":983701,"function-variant":985201,"furigana-horizontal":987265,"furigana-vertical":987266,"fuse":986245,"fuse-alert":988205,"fuse-blade":986246,"fuse-off":988204,"gamepad":983702,"gamepad-circle":986675,"gamepad-circle-down":986676,"gamepad-circle-left":986677,"gamepad-circle-outline":986678,"gamepad-circle-right":986679,"gamepad-circle-up":986680,"gamepad-down":986681,"gamepad-left":986682,"gamepad-outline":989465,"gamepad-right":986683,"gamepad-round":986684,"gamepad-round-down":986685,"gamepad-round-left":986686,"gamepad-round-outline":986687,"gamepad-round-right":986688,"gamepad-round-up":986689,"gamepad-square":986805,"gamepad-square-outline":986806,"gamepad-up":986690,"gamepad-variant":983703,"gamepad-variant-outline":986807,"gamma":987374,"gantry-crane":986577,"garage":984793,"garage-alert":985202,"garage-alert-variant":987861,"garage-lock":989179,"garage-open":984794,"garage-open-variant":987860,"garage-variant":987859,"garage-variant-lock":989180,"gas-cylinder":984647,"gas-station":983704,"gas-station-off":988169,"gas-station-off-outline":988170,"gas-station-outline":986808,"gate":983705,"gate-alert":989176,"gate-and":985313,"gate-arrow-left":989175,"gate-arrow-right":987497,"gate-nand":985314,"gate-nor":985315,"gate-not":985316,"gate-open":987498,"gate-or":985317,"gate-xnor":985318,"gate-xor":985319,"gatsby":986691,"gauge":983706,"gauge-empty":985203,"gauge-full":985204,"gauge-low":985205,"gavel":983707,"gender-female":983708,"gender-male":983709,"gender-male-female":983710,"gender-male-female-variant":987455,"gender-non-binary":987456,"gender-transgender":983711,"gentoo":985320,"gesture":985035,"gesture-double-tap":984892,"gesture-pinch":985789,"gesture-spread":985790,"gesture-swipe":986486,"gesture-swipe-down":984893,"gesture-swipe-horizontal":985791,"gesture-swipe-left":984894,"gesture-swipe-right":984895,"gesture-swipe-up":984896,"gesture-swipe-vertical":985792,"gesture-tap":984897,"gesture-tap-box":987817,"gesture-tap-button":987816,"gesture-tap-hold":986487,"gesture-two-double-tap":984898,"gesture-two-tap":984899,"ghost":983712,"ghost-off":985589,"ghost-off-outline":988764,"ghost-outline":988765,"gift":986692,"gift-off":988911,"gift-off-outline":988912,"gift-open":988913,"gift-open-outline":988914,"gift-outline":983713,"git":983714,"github":983716,"gitlab":986016,"glass-cocktail":983894,"glass-cocktail-off":988646,"glass-flute":983717,"glass-fragile":989299,"glass-mug":983718,"glass-mug-off":988647,"glass-mug-variant":987414,"glass-mug-variant-off":988648,"glass-pint-outline":987917,"glass-stange":983719,"glass-tulip":983720,"glass-wine":985206,"glasses":983722,"globe-light":987863,"globe-model":985321,"gmail":983723,"gnome":983724,"go-kart":986489,"go-kart-track":986490,"gog":986017,"gold":987727,"golf":985123,"golf-cart":987556,"golf-tee":987267,"gondola":984710,"goodreads":986491,"google":983725,"google-ads":986247,"google-analytics":985036,"google-assistant":985037,"google-cardboard":983726,"google-chrome":983727,"google-circles":983728,"google-circles-communities":983729,"google-circles-extended":983730,"google-circles-group":983731,"google-classroom":983744,"google-cloud":987638,"google-controller":983732,"google-controller-off":983733,"google-downasaur":988002,"google-drive":983734,"google-earth":983735,"google-fit":985452,"google-glass":983736,"google-hangouts":983753,"google-home":985124,"google-keep":984796,"google-lens":985590,"google-maps":984565,"google-my-business":987208,"google-nearby":983737,"google-play":983740,"google-plus":983741,"google-podcast":986809,"google-spreadsheet":985591,"google-street-view":986248,"google-translate":983743,"gradient-horizontal":989002,"gradient-vertical":984736,"grain":986492,"graph":987209,"graph-outline":987210,"graphql":985207,"grass":988432,"grave-stone":986018,"grease-pencil":984648,"greater-than":985453,"greater-than-or-equal":985454,"greenhouse":983085,"grid":983745,"grid-large":984920,"grid-off":983746,"grill":986693,"grill-outline":987530,"group":983747,"guitar-acoustic":984945,"guitar-electric":983748,"guitar-pick":983749,"guitar-pick-outline":983750,"guy-fawkes-mask":985125,"hail":985793,"hair-dryer":987375,"hair-dryer-outline":987376,"halloween":986019,"hamburger":984709,"hamburger-check":989046,"hamburger-minus":989047,"hamburger-off":989048,"hamburger-plus":989049,"hamburger-remove":989050,"hammer":985322,"hammer-screwdriver":987938,"hammer-sickle":989319,"hammer-wrench":987939,"hand-back-left":986694,"hand-back-left-off":989232,"hand-back-left-off-outline":989234,"hand-back-left-outline":989228,"hand-back-right":986695,"hand-back-right-off":989233,"hand-back-right-off-outline":989235,"hand-back-right-outline":989229,"hand-clap":989515,"hand-coin":989327,"hand-coin-outline":989328,"hand-extended":989366,"hand-extended-outline":989367,"hand-front-left":989227,"hand-front-left-outline":989230,"hand-front-right":985679,"hand-front-right-outline":989231,"hand-heart":987377,"hand-heart-outline":988542,"hand-okay":985680,"hand-peace":985681,"hand-peace-variant":985682,"hand-pointing-down":985683,"hand-pointing-left":985684,"hand-pointing-right":983751,"hand-pointing-up":985685,"hand-saw":986696,"hand-wash":988543,"hand-wash-outline":988544,"hand-water":988063,"hand-wave":989217,"hand-wave-outline":989218,"handball":986963,"handcuffs":987454,"hands-pray":984441,"handshake":987672,"handshake-outline":988577,"hanger":983752,"hard-hat":985455,"harddisk":983754,"harddisk-plus":987211,"harddisk-remove":987212,"hat-fedora":986020,"hazard-lights":986249,"hdr":986493,"hdr-off":986494,"head":987998,"head-alert":987960,"head-alert-outline":987961,"head-check":987962,"head-check-outline":987963,"head-cog":987964,"head-cog-outline":987965,"head-dots-horizontal":987966,"head-dots-horizontal-outline":987967,"head-flash":987968,"head-flash-outline":987969,"head-heart":987970,"head-heart-outline":987971,"head-lightbulb":987972,"head-lightbulb-outline":987973,"head-minus":987974,"head-minus-outline":987975,"head-outline":987999,"head-plus":987976,"head-plus-outline":987977,"head-question":987978,"head-question-outline":987979,"head-remove":987980,"head-remove-outline":987981,"head-snowflake":987982,"head-snowflake-outline":987983,"head-sync":987984,"head-sync-outline":987985,"headphones":983755,"headphones-bluetooth":985456,"headphones-box":983756,"headphones-off":985038,"headphones-settings":983757,"headset":983758,"headset-dock":983759,"headset-off":983760,"heart":983761,"heart-box":983762,"heart-box-outline":983763,"heart-broken":983764,"heart-broken-outline":986388,"heart-circle":985457,"heart-circle-outline":985458,"heart-cog":988771,"heart-cog-outline":988772,"heart-flash":986873,"heart-half":984799,"heart-half-full":984798,"heart-half-outline":984800,"heart-minus":988207,"heart-minus-outline":988210,"heart-multiple":985686,"heart-multiple-outline":985687,"heart-off":984921,"heart-off-outline":988212,"heart-outline":983765,"heart-plus":988206,"heart-plus-outline":988209,"heart-pulse":984566,"heart-remove":988208,"heart-remove-outline":988211,"heart-settings":988773,"heart-settings-outline":988774,"helicopter":985794,"help":983766,"help-box":984971,"help-circle":983767,"help-circle-outline":984613,"help-network":984821,"help-network-outline":986250,"help-rhombus":986021,"help-rhombus-outline":986022,"hexadecimal":987815,"hexagon":983768,"hexagon-multiple":984801,"hexagon-multiple-outline":987378,"hexagon-outline":983769,"hexagon-slice-1":985795,"hexagon-slice-2":985796,"hexagon-slice-3":985797,"hexagon-slice-4":985798,"hexagon-slice-5":985799,"hexagon-slice-6":985800,"hexagram":985801,"hexagram-outline":985802,"high-definition":985039,"high-definition-box":985208,"highway":984567,"hiking":986495,"history":983770,"hockey-puck":985209,"hockey-sticks":985210,"hololens":983771,"home":983772,"home-account":985126,"home-alert":985211,"home-alert-outline":988624,"home-analytics":986810,"home-assistant":985040,"home-automation":985041,"home-battery":989441,"home-battery-outline":989442,"home-circle":985042,"home-circle-outline":987213,"home-city":986389,"home-city-outline":986390,"home-edit":987481,"home-edit-outline":987482,"home-export-outline":987035,"home-flood":986874,"home-floor-0":986578,"home-floor-1":986496,"home-floor-2":986497,"home-floor-3":986498,"home-floor-a":986499,"home-floor-b":986500,"home-floor-g":986501,"home-floor-l":986502,"home-floor-negative-1":986579,"home-group":986580,"home-group-minus":989633,"home-group-plus":989632,"home-group-remove":989634,"home-heart":985127,"home-import-outline":987036,"home-lightbulb":987729,"home-lightbulb-outline":987730,"home-lightning-bolt":989443,"home-lightning-bolt-outline":989444,"home-lock":985323,"home-lock-open":985324,"home-map-marker":984568,"home-minus":985460,"home-minus-outline":988117,"home-modern":983773,"home-outline":984737,"home-plus":985461,"home-plus-outline":988118,"home-remove":987719,"home-remove-outline":988119,"home-roof":987435,"home-search":988080,"home-search-outline":988081,"home-switch":989076,"home-switch-outline":989077,"home-thermometer":986964,"home-thermometer-outline":986965,"home-variant":983774,"home-variant-outline":986023,"hook":984802,"hook-off":984803,"hoop-house":986710,"hops":983775,"horizontal-rotate-clockwise":987379,"horizontal-rotate-counterclockwise":987380,"horse":988607,"horse-human":988608,"horse-variant":988609,"horse-variant-fast":989294,"horseshoe":985688,"hospital":987126,"hospital-box":983776,"hospital-box-outline":987127,"hospital-building":983777,"hospital-marker":983778,"hot-tub":985128,"hours-24":988280,"hubspot":986391,"hulu":985129,"human":983782,"human-baby-changing-table":988043,"human-cane":988545,"human-capacity-decrease":988571,"human-capacity-increase":988572,"human-child":983783,"human-dolly":989568,"human-edit":988392,"human-female":984649,"human-female-boy":985689,"human-female-dance":988617,"human-female-female":985690,"human-female-girl":985691,"human-greeting":989124,"human-greeting-proximity":988573,"human-greeting-variant":984650,"human-handsdown":984651,"human-handsup":984652,"human-male":984653,"human-male-board":985232,"human-male-board-poll":985158,"human-male-boy":985692,"human-male-child":988044,"human-male-female":983784,"human-male-female-child":989219,"human-male-girl":985693,"human-male-height":986875,"human-male-height-variant":986876,"human-male-male":985694,"human-non-binary":989256,"human-pregnant":984527,"human-queue":988529,"human-scooter":987625,"human-wheelchair":988045,"human-white-cane":989569,"humble-bundle":984900,"hvac":987986,"hvac-off":988574,"hydraulic-oil-level":987940,"hydraulic-oil-temperature":987941,"hydro-power":987877,"hydrogen-station":989332,"ice-cream":985130,"ice-cream-off":986706,"ice-pop":986877,"id-card":987072,"identifier":986878,"ideogram-cjk":987953,"ideogram-cjk-variant":987954,"image":983785,"image-album":983786,"image-area":983787,"image-area-close":983788,"image-auto-adjust":987073,"image-broken":983789,"image-broken-variant":983790,"image-edit":987619,"image-edit-outline":987620,"image-filter-black-white":983792,"image-filter-center-focus":983793,"image-filter-center-focus-strong":986879,"image-filter-center-focus-strong-outline":986880,"image-filter-center-focus-weak":983794,"image-filter-drama":983795,"image-filter-frames":983796,"image-filter-hdr":983797,"image-filter-none":983798,"image-filter-tilt-shift":983799,"image-filter-vintage":983800,"image-frame":986697,"image-marker":989051,"image-marker-outline":989052,"image-minus":988185,"image-move":985592,"image-multiple":983801,"image-multiple-outline":983791,"image-off":985131,"image-off-outline":987601,"image-outline":985462,"image-plus":985212,"image-remove":988184,"image-search":985463,"image-search-outline":985464,"image-size-select-actual":986253,"image-size-select-large":986254,"image-size-select-small":986255,"image-text":988685,"import":983802,"inbox":984711,"inbox-arrow-down":983803,"inbox-arrow-down-outline":987760,"inbox-arrow-up":984017,"inbox-arrow-up-outline":987761,"inbox-full":987762,"inbox-full-outline":987763,"inbox-multiple":985264,"inbox-multiple-outline":986024,"inbox-outline":987764,"inbox-remove":988575,"inbox-remove-outline":988576,"incognito":984569,"incognito-circle":988193,"incognito-circle-off":988194,"incognito-off":983157,"induction":989260,"infinity":984804,"information":983804,"information-off":989068,"information-off-outline":989069,"information-outline":983805,"information-variant":984654,"instagram":983806,"instrument-triangle":987214,"integrated-circuit-chip":989459,"invert-colors":983809,"invert-colors-off":986698,"iobroker":987880,"ip":985695,"ip-network":985696,"ip-network-outline":986256,"ip-outline":989570,"ipod":986257,"iron":989220,"iron-board":989240,"iron-outline":989221,"island":987215,"iv-bag":987321,"jabber":986581,"jeepney":983810,"jellyfish":986881,"jellyfish-outline":986882,"jira":983811,"jquery":985213,"jsfiddle":983812,"jump-rope":987903,"kabaddi":986503,"kangaroo":988504,"karate":985132,"kayaking":985263,"keg":983813,"kettle":984570,"kettle-alert":987927,"kettle-alert-outline":987928,"kettle-off":987931,"kettle-off-outline":987932,"kettle-outline":986966,"kettle-pour-over":988988,"kettle-steam":987929,"kettle-steam-outline":987930,"kettlebell":987904,"key":983814,"key-alert":989571,"key-alert-outline":989572,"key-arrow-right":987922,"key-chain":988532,"key-chain-variant":988533,"key-change":983815,"key-link":987551,"key-minus":983816,"key-outline":986582,"key-plus":983817,"key-remove":983818,"key-star":987550,"key-variant":983819,"key-wireless":987074,"keyboard":983820,"keyboard-backspace":983821,"keyboard-caps":983822,"keyboard-close":983823,"keyboard-esc":987831,"keyboard-f1":987819,"keyboard-f10":987828,"keyboard-f11":987829,"keyboard-f12":987830,"keyboard-f2":987820,"keyboard-f3":987821,"keyboard-f4":987822,"keyboard-f5":987823,"keyboard-f6":987824,"keyboard-f7":987825,"keyboard-f8":987826,"keyboard-f9":987827,"keyboard-off":983824,"keyboard-off-outline":986699,"keyboard-outline":985467,"keyboard-return":983825,"keyboard-settings":985593,"keyboard-settings-outline":985594,"keyboard-space":987216,"keyboard-tab":983826,"keyboard-tab-reverse":983845,"keyboard-variant":983827,"khanda":987389,"kickstarter":984901,"kite":989573,"kite-outline":989574,"kitesurfing":988996,"klingon":987995,"knife":985595,"knife-military":985596,"koala":988991,"kodi":983828,"kubernetes":987390,"label":983829,"label-multiple":988021,"label-multiple-outline":988022,"label-off":985803,"label-off-outline":985804,"label-outline":983830,"label-percent":987882,"label-percent-outline":987883,"label-variant":985805,"label-variant-outline":985806,"ladder":988578,"ladybug":985133,"lambda":984615,"lamp":984757,"lamp-outline":989136,"lamps":988534,"lamps-outline":989137,"lan":983831,"lan-check":987818,"lan-connect":983832,"lan-disconnect":983833,"lan-pending":983834,"language-c":984689,"language-cpp":984690,"language-csharp":983835,"language-css3":983836,"language-fortran":987674,"language-go":985043,"language-haskell":986258,"language-html5":983837,"language-java":985911,"language-javascript":983838,"language-kotlin":987673,"language-lua":985265,"language-markdown":983892,"language-markdown-outline":986971,"language-php":983839,"language-python":983840,"language-r":985044,"language-ruby":986413,"language-ruby-on-rails":985807,"language-rust":988695,"language-swift":984805,"language-typescript":984806,"language-xaml":984691,"laptop":983842,"laptop-off":984807,"laravel":985808,"laser-pointer":988292,"lasso":986883,"lastpass":984134,"latitude":986967,"launch":983847,"lava-lamp":985045,"layers":983848,"layers-edit":989330,"layers-minus":986700,"layers-off":983849,"layers-off-outline":985597,"layers-outline":985598,"layers-plus":986701,"layers-remove":986702,"layers-search":987654,"layers-search-outline":987655,"layers-triple":986968,"layers-triple-outline":986969,"lead-pencil":984655,"leaf":983850,"leaf-circle":989445,"leaf-circle-outline":989446,"leaf-maple":986259,"leaf-maple-off":987866,"leaf-off":987865,"leak":986583,"leak-off":986584,"led-off":983851,"led-on":983852,"led-outline":983853,"led-strip":985046,"led-strip-variant":987217,"led-variant-off":983854,"led-variant-on":983855,"led-variant-outline":983856,"leek":987517,"less-than":985468,"less-than-or-equal":985469,"library":983857,"library-shelves":986025,"license":987075,"lifebuoy":985214,"light-flood-down":989575,"light-flood-up":989576,"light-recessed":989083,"light-switch":985470,"lightbulb":983861,"lightbulb-auto":989184,"lightbulb-auto-outline":989185,"lightbulb-cfl":987656,"lightbulb-cfl-off":987657,"lightbulb-cfl-spiral":987765,"lightbulb-cfl-spiral-off":987843,"lightbulb-fluorescent-tube":989188,"lightbulb-fluorescent-tube-outline":989189,"lightbulb-group":987731,"lightbulb-group-off":987853,"lightbulb-group-off-outline":987854,"lightbulb-group-outline":987732,"lightbulb-multiple":987733,"lightbulb-multiple-off":987855,"lightbulb-multiple-off-outline":987856,"lightbulb-multiple-outline":987734,"lightbulb-off":986703,"lightbulb-off-outline":986704,"lightbulb-on":984808,"lightbulb-on-outline":984809,"lightbulb-outline":983862,"lightbulb-spot":989172,"lightbulb-spot-off":989173,"lightbulb-variant":989186,"lightbulb-variant-outline":989187,"lighthouse":985599,"lighthouse-on":985600,"lightning-bolt":988171,"lightning-bolt-circle":985120,"lightning-bolt-outline":988172,"line-scan":984612,"lingerie":988278,"link":983863,"link-box":986394,"link-box-outline":986395,"link-box-variant":986396,"link-box-variant-outline":986397,"link-lock":987322,"link-off":983864,"link-plus":986260,"link-variant":983865,"link-variant-minus":987391,"link-variant-off":983866,"link-variant-plus":987392,"link-variant-remove":987393,"linkedin":983867,"linux":983869,"linux-mint":985325,"lipstick":988085,"liquid-spot":989222,"liquor":989470,"list-status":988587,"litecoin":985697,"loading":984946,"location-enter":987076,"location-exit":987077,"lock":983870,"lock-alert":985326,"lock-alert-outline":988625,"lock-check":988058,"lock-check-outline":988840,"lock-clock":985471,"lock-minus":988841,"lock-minus-outline":988842,"lock-off":988785,"lock-off-outline":988786,"lock-open":983871,"lock-open-alert":988059,"lock-open-alert-outline":988626,"lock-open-check":988060,"lock-open-check-outline":988843,"lock-open-minus":988844,"lock-open-minus-outline":988845,"lock-open-outline":983872,"lock-open-plus":988846,"lock-open-plus-outline":988847,"lock-open-remove":988848,"lock-open-remove-outline":988849,"lock-open-variant":987078,"lock-open-variant-outline":987079,"lock-outline":983873,"lock-pattern":984810,"lock-plus":984571,"lock-plus-outline":988850,"lock-question":985327,"lock-remove":988851,"lock-remove-outline":988852,"lock-reset":984947,"lock-smart":985266,"locker":985047,"locker-multiple":985048,"login":983874,"login-variant":984572,"logout":983875,"logout-variant":984573,"longitude":986970,"looks":983876,"lotion":988546,"lotion-outline":988547,"lotion-plus":988548,"lotion-plus-outline":988549,"loupe":983877,"lumx":983878,"lungs":987268,"mace":989251,"magazine-pistol":983844,"magazine-rifle":983843,"magic-staff":989252,"magnet":983879,"magnet-on":983880,"magnify":983881,"magnify-close":985472,"magnify-expand":989300,"magnify-minus":983882,"magnify-minus-cursor":985698,"magnify-minus-outline":984812,"magnify-plus":983883,"magnify-plus-cursor":985699,"magnify-plus-outline":984813,"magnify-remove-cursor":987660,"magnify-remove-outline":987661,"magnify-scan":987766,"mail":986811,"mailbox":984814,"mailbox-open":986504,"mailbox-open-outline":986505,"mailbox-open-up":986506,"mailbox-open-up-outline":986507,"mailbox-outline":986508,"mailbox-up":986509,"mailbox-up-outline":986510,"manjaro":988682,"map":983885,"map-check":986812,"map-check-outline":986813,"map-clock":986398,"map-clock-outline":986399,"map-legend":985601,"map-marker":983886,"map-marker-account":989411,"map-marker-account-outline":989412,"map-marker-alert":986885,"map-marker-alert-outline":986886,"map-marker-check":986261,"map-marker-check-outline":987899,"map-marker-circle":983887,"map-marker-distance":985328,"map-marker-down":987394,"map-marker-left":987867,"map-marker-left-outline":987869,"map-marker-minus":984656,"map-marker-minus-outline":987897,"map-marker-multiple":983888,"map-marker-multiple-outline":987767,"map-marker-off":983889,"map-marker-off-outline":987901,"map-marker-outline":985049,"map-marker-path":986400,"map-marker-plus":984657,"map-marker-plus-outline":987896,"map-marker-question":986887,"map-marker-question-outline":986888,"map-marker-radius":983890,"map-marker-radius-outline":987900,"map-marker-remove":986889,"map-marker-remove-outline":987898,"map-marker-remove-variant":986890,"map-marker-right":987868,"map-marker-right-outline":987870,"map-marker-star":988680,"map-marker-star-outline":988681,"map-marker-up":987395,"map-minus":985473,"map-outline":985474,"map-plus":985475,"map-search":985476,"map-search-outline":985477,"mapbox":986026,"margin":983891,"marker":984658,"marker-cancel":986585,"marker-check":983893,"mastodon":985809,"material-design":985478,"material-ui":983895,"math-compass":983896,"math-cos":986262,"math-integral":987080,"math-integral-box":987081,"math-log":987269,"math-norm":987082,"math-norm-box":987083,"math-sin":986263,"math-tan":986264,"matrix":984616,"medal":985479,"medal-outline":987942,"medical-bag":984815,"meditation":987515,"memory":983899,"menorah":989140,"menorah-fire":989141,"menu":983900,"menu-down":983901,"menu-down-outline":984758,"menu-left":983902,"menu-left-outline":985602,"menu-open":986027,"menu-right":983903,"menu-right-outline":985603,"menu-swap":985700,"menu-swap-outline":985701,"menu-up":983904,"menu-up-outline":984759,"merge":986972,"message":983905,"message-alert":983906,"message-alert-outline":985604,"message-arrow-left":987890,"message-arrow-left-outline":987891,"message-arrow-right":987892,"message-arrow-right-outline":987893,"message-badge":989505,"message-badge-outline":989506,"message-bookmark":988588,"message-bookmark-outline":988589,"message-bulleted":984738,"message-bulleted-off":984739,"message-cog":984817,"message-cog-outline":987506,"message-draw":983907,"message-flash":988585,"message-flash-outline":988586,"message-image":983908,"message-image-outline":987500,"message-lock":987084,"message-lock-outline":987501,"message-minus":987502,"message-minus-outline":987503,"message-off":988749,"message-off-outline":988750,"message-outline":983909,"message-plus":984659,"message-plus-outline":987323,"message-processing":983910,"message-processing-outline":987504,"message-question":988986,"message-question-outline":988987,"message-reply":983911,"message-reply-outline":988989,"message-reply-text":983912,"message-reply-text-outline":988990,"message-settings":984816,"message-settings-outline":987505,"message-star":984730,"message-star-outline":987728,"message-text":983913,"message-text-clock":987507,"message-text-clock-outline":987508,"message-text-lock":987085,"message-text-lock-outline":987509,"message-text-outline":983914,"message-video":983915,"meteor":984617,"metronome":985050,"metronome-tick":985051,"micro-sd":985052,"microphone":983916,"microphone-minus":985267,"microphone-off":983917,"microphone-outline":983918,"microphone-plus":985268,"microphone-question":989577,"microphone-question-outline":989578,"microphone-settings":983919,"microphone-variant":983920,"microphone-variant-off":983921,"microscope":984660,"microsoft":983922,"microsoft-access":988046,"microsoft-azure":985093,"microsoft-azure-devops":987093,"microsoft-bing":983204,"microsoft-dynamics-365":985480,"microsoft-edge":983529,"microsoft-excel":988047,"microsoft-internet-explorer":983808,"microsoft-office":984006,"microsoft-onedrive":984010,"microsoft-onenote":984903,"microsoft-outlook":986402,"microsoft-powerpoint":988048,"microsoft-sharepoint":988049,"microsoft-teams":983739,"microsoft-visual-studio":984592,"microsoft-visual-studio-code":985630,"microsoft-windows":984499,"microsoft-windows-classic":985633,"microsoft-word":988050,"microsoft-xbox":984505,"microsoft-xbox-controller":984506,"microsoft-xbox-controller-battery-alert":984907,"microsoft-xbox-controller-battery-charging":985634,"microsoft-xbox-controller-battery-empty":984908,"microsoft-xbox-controller-battery-full":984909,"microsoft-xbox-controller-battery-low":984910,"microsoft-xbox-controller-battery-medium":984911,"microsoft-xbox-controller-battery-unknown":984912,"microsoft-xbox-controller-menu":986735,"microsoft-xbox-controller-off":984507,"microsoft-xbox-controller-view":986736,"microwave":986265,"microwave-off":988195,"middleware":986973,"middleware-outline":986974,"midi":985329,"midi-port":985330,"mine":986586,"minecraft":983923,"mini-sd":985605,"minidisc":985606,"minus":983924,"minus-box":983925,"minus-box-multiple":987457,"minus-box-multiple-outline":987458,"minus-box-outline":984818,"minus-circle":983926,"minus-circle-multiple":983898,"minus-circle-multiple-outline":985811,"minus-circle-off":988249,"minus-circle-off-outline":988250,"minus-circle-outline":983927,"minus-network":983928,"minus-network-outline":986266,"minus-thick":988729,"mirror":987645,"mirror-rectangle":989087,"mirror-variant":989088,"mixed-martial-arts":986511,"mixed-reality":985215,"molecule":986028,"molecule-co":987902,"molecule-co2":985060,"monitor":983929,"monitor-cellphone":985481,"monitor-cellphone-star":985482,"monitor-dashboard":985607,"monitor-edit":987846,"monitor-eye":988084,"monitor-lock":986587,"monitor-multiple":983930,"monitor-off":986512,"monitor-screenshot":986705,"monitor-share":988291,"monitor-shimmer":987396,"monitor-small":989302,"monitor-speaker":986975,"monitor-speaker-off":986976,"monitor-star":986588,"moon-first-quarter":986977,"moon-full":986978,"moon-last-quarter":986979,"moon-new":986980,"moon-waning-crescent":986981,"moon-waning-gibbous":986982,"moon-waxing-crescent":986983,"moon-waxing-gibbous":986984,"moped":987270,"moped-electric":988599,"moped-electric-outline":988600,"moped-outline":988601,"more":983931,"mortar-pestle":989000,"mortar-pestle-plus":984049,"mosque":989223,"mother-heart":987924,"mother-nurse":986401,"motion":988594,"motion-outline":988595,"motion-pause":988560,"motion-pause-outline":988562,"motion-play":988559,"motion-play-outline":988561,"motion-sensor":986513,"motion-sensor-off":988213,"motorbike":983932,"motorbike-electric":988602,"mouse":983933,"mouse-bluetooth":985483,"mouse-move-down":988496,"mouse-move-up":988497,"mouse-move-vertical":988498,"mouse-off":983934,"mouse-variant":983935,"mouse-variant-off":983936,"move-resize":984661,"move-resize-variant":984662,"movie":983937,"movie-check":988915,"movie-check-outline":988916,"movie-cog":988917,"movie-cog-outline":988918,"movie-edit":987426,"movie-edit-outline":987427,"movie-filter":987428,"movie-filter-outline":987429,"movie-minus":988919,"movie-minus-outline":988920,"movie-off":988921,"movie-off-outline":988922,"movie-open":987086,"movie-open-check":988923,"movie-open-check-outline":988924,"movie-open-cog":988925,"movie-open-cog-outline":988926,"movie-open-edit":988927,"movie-open-edit-outline":988928,"movie-open-minus":988929,"movie-open-minus-outline":988930,"movie-open-off":988931,"movie-open-off-outline":988932,"movie-open-outline":987087,"movie-open-play":988933,"movie-open-play-outline":988934,"movie-open-plus":988935,"movie-open-plus-outline":988936,"movie-open-remove":988937,"movie-open-remove-outline":988938,"movie-open-settings":988939,"movie-open-settings-outline":988940,"movie-open-star":988941,"movie-open-star-outline":988942,"movie-outline":986589,"movie-play":988943,"movie-play-outline":988944,"movie-plus":988945,"movie-plus-outline":988946,"movie-remove":988947,"movie-remove-outline":988948,"movie-roll":985054,"movie-search":987602,"movie-search-outline":987603,"movie-settings":988949,"movie-settings-outline":988950,"movie-star":988951,"movie-star-outline":988952,"mower":988783,"mower-bag":988784,"muffin":985484,"multicast":989331,"multiplication":983938,"multiplication-box":983939,"mushroom":985055,"mushroom-off":988154,"mushroom-off-outline":988155,"mushroom-outline":985056,"music":984922,"music-accidental-double-flat":986985,"music-accidental-double-sharp":986986,"music-accidental-flat":986987,"music-accidental-natural":986988,"music-accidental-sharp":986989,"music-box":983940,"music-box-multiple":983859,"music-box-multiple-outline":986884,"music-box-outline":983941,"music-circle":983942,"music-circle-outline":985812,"music-clef-alto":986990,"music-clef-bass":986991,"music-clef-treble":986992,"music-note":983943,"music-note-bluetooth":984574,"music-note-bluetooth-off":984575,"music-note-eighth":983944,"music-note-eighth-dotted":986993,"music-note-half":983945,"music-note-half-dotted":986994,"music-note-off":983946,"music-note-off-outline":986995,"music-note-outline":986996,"music-note-plus":986590,"music-note-quarter":983947,"music-note-quarter-dotted":986997,"music-note-sixteenth":983948,"music-note-sixteenth-dotted":986998,"music-note-whole":983949,"music-note-whole-dotted":986999,"music-off":984923,"music-rest-eighth":987000,"music-rest-half":987001,"music-rest-quarter":987002,"music-rest-sixteenth":987003,"music-rest-whole":987004,"mustache":988638,"nail":986591,"nas":985331,"nativescript":985216,"nature":983950,"nature-people":983951,"navigation":983952,"navigation-outline":988679,"navigation-variant":989424,"navigation-variant-outline":989425,"near-me":984525,"necklace":986891,"needle":983953,"netflix":984902,"network":984819,"network-off":986267,"network-off-outline":986268,"network-outline":986269,"network-strength-1":985332,"network-strength-1-alert":985333,"network-strength-2":985334,"network-strength-2-alert":985335,"network-strength-3":985336,"network-strength-3-alert":985337,"network-strength-4":985338,"network-strength-4-alert":985339,"network-strength-4-cog":989466,"network-strength-off":985340,"network-strength-off-outline":985341,"network-strength-outline":985342,"new-box":983956,"newspaper":983957,"newspaper-check":989507,"newspaper-minus":986892,"newspaper-plus":986893,"newspaper-remove":989508,"newspaper-variant":987137,"newspaper-variant-multiple":987138,"newspaper-variant-multiple-outline":987139,"newspaper-variant-outline":987140,"nfc":983958,"nfc-search-variant":986707,"nfc-tap":983959,"nfc-variant":983960,"nfc-variant-off":986708,"ninja":984948,"nintendo-game-boy":988051,"nintendo-switch":985057,"nintendo-wii":984491,"nintendo-wiiu":984877,"nix":987397,"nodejs":983961,"noodles":987518,"not-equal":985485,"not-equal-variant":985486,"note":983962,"note-alert":989053,"note-alert-outline":989054,"note-check":989055,"note-check-outline":989056,"note-edit":989057,"note-edit-outline":989058,"note-minus":988751,"note-minus-outline":988752,"note-multiple":984760,"note-multiple-outline":984761,"note-off":989059,"note-off-outline":989060,"note-outline":983963,"note-plus":983964,"note-plus-outline":983965,"note-remove":988753,"note-remove-outline":988754,"note-search":988755,"note-search-outline":988756,"note-text":983966,"note-text-outline":987607,"notebook":985134,"notebook-check":988405,"notebook-check-outline":988406,"notebook-edit":988391,"notebook-edit-outline":988393,"notebook-minus":988688,"notebook-minus-outline":988689,"notebook-multiple":986709,"notebook-outline":986815,"notebook-plus":988690,"notebook-plus-outline":988691,"notebook-remove":988692,"notebook-remove-outline":988693,"notification-clear-all":983967,"npm":984823,"nuke":984740,"null":985058,"numeric":983968,"numeric-0":985913,"numeric-0-box":983969,"numeric-0-box-multiple":986894,"numeric-0-box-multiple-outline":983970,"numeric-0-box-outline":983971,"numeric-0-circle":986270,"numeric-0-circle-outline":986271,"numeric-1":985914,"numeric-1-box":983972,"numeric-1-box-multiple":986895,"numeric-1-box-multiple-outline":983973,"numeric-1-box-outline":983974,"numeric-1-circle":986272,"numeric-1-circle-outline":986273,"numeric-10":987113,"numeric-10-box":987005,"numeric-10-box-multiple":987114,"numeric-10-box-multiple-outline":987115,"numeric-10-box-outline":987006,"numeric-10-circle":987116,"numeric-10-circle-outline":987117,"numeric-2":985915,"numeric-2-box":983975,"numeric-2-box-multiple":986896,"numeric-2-box-multiple-outline":983976,"numeric-2-box-outline":983977,"numeric-2-circle":986274,"numeric-2-circle-outline":986275,"numeric-3":985916,"numeric-3-box":983978,"numeric-3-box-multiple":986897,"numeric-3-box-multiple-outline":983979,"numeric-3-box-outline":983980,"numeric-3-circle":986276,"numeric-3-circle-outline":986277,"numeric-4":985917,"numeric-4-box":983981,"numeric-4-box-multiple":986898,"numeric-4-box-multiple-outline":983986,"numeric-4-box-outline":983982,"numeric-4-circle":986278,"numeric-4-circle-outline":986279,"numeric-5":985918,"numeric-5-box":983985,"numeric-5-box-multiple":986899,"numeric-5-box-multiple-outline":983983,"numeric-5-box-outline":983984,"numeric-5-circle":986280,"numeric-5-circle-outline":986281,"numeric-6":985919,"numeric-6-box":983987,"numeric-6-box-multiple":986900,"numeric-6-box-multiple-outline":983988,"numeric-6-box-outline":983989,"numeric-6-circle":986282,"numeric-6-circle-outline":986283,"numeric-7":985920,"numeric-7-box":983990,"numeric-7-box-multiple":986901,"numeric-7-box-multiple-outline":983991,"numeric-7-box-outline":983992,"numeric-7-circle":986284,"numeric-7-circle-outline":986285,"numeric-8":985921,"numeric-8-box":983993,"numeric-8-box-multiple":986902,"numeric-8-box-multiple-outline":983994,"numeric-8-box-outline":983995,"numeric-8-circle":986286,"numeric-8-circle-outline":986287,"numeric-9":985922,"numeric-9-box":983996,"numeric-9-box-multiple":986903,"numeric-9-box-multiple-outline":983997,"numeric-9-box-outline":983998,"numeric-9-circle":986288,"numeric-9-circle-outline":986289,"numeric-9-plus":987118,"numeric-9-plus-box":983999,"numeric-9-plus-box-multiple":986904,"numeric-9-plus-box-multiple-outline":984000,"numeric-9-plus-box-outline":984001,"numeric-9-plus-circle":986290,"numeric-9-plus-circle-outline":986291,"numeric-negative-1":987218,"numeric-positive-1":988619,"nut":984824,"nutrition":984002,"nuxt":987398,"oar":984700,"ocarina":986592,"oci":987881,"ocr":987450,"octagon":984003,"octagon-outline":984004,"octagram":984825,"octagram-outline":984949,"octahedron":989520,"octahedron-off":989521,"odnoklassniki":984005,"offer":987675,"office-building":985489,"office-building-cog":989513,"office-building-cog-outline":989514,"office-building-marker":988448,"office-building-marker-outline":988449,"office-building-outline":988447,"oil":984007,"oil-lamp":986905,"oil-level":987219,"oil-temperature":987128,"om":985459,"omega":984009,"one-up":986029,"onepassword":985217,"opacity":984524,"open-in-app":984011,"open-in-new":984012,"open-source-initiative":986030,"openid":984013,"opera":984014,"orbit":983064,"orbit-variant":988635,"order-alphabetical-ascending":983565,"order-alphabetical-descending":986375,"order-bool-ascending":983742,"order-bool-ascending-variant":985487,"order-bool-descending":988036,"order-bool-descending-variant":985488,"order-numeric-ascending":984389,"order-numeric-descending":984390,"origin":985923,"ornament":984015,"ornament-variant":984016,"outdoor-lamp":987220,"overscan":987141,"owl":984018,"pac-man":986031,"package":984019,"package-down":984020,"package-up":984021,"package-variant":984022,"package-variant-closed":984023,"page-first":984576,"page-last":984577,"page-layout-body":984826,"page-layout-footer":984827,"page-layout-header":984828,"page-layout-header-footer":987007,"page-layout-sidebar-left":984829,"page-layout-sidebar-right":984830,"page-next":986032,"page-next-outline":986033,"page-previous":986034,"page-previous-outline":986035,"pail":988183,"pail-minus":988215,"pail-minus-outline":988220,"pail-off":988217,"pail-off-outline":988222,"pail-outline":988218,"pail-plus":988214,"pail-plus-outline":988219,"pail-remove":988216,"pail-remove-outline":988221,"palette":984024,"palette-advanced":984025,"palette-outline":986636,"palette-swatch":985269,"palette-swatch-outline":987996,"palette-swatch-variant":989530,"palm-tree":987221,"pan":986036,"pan-bottom-left":986037,"pan-bottom-right":986038,"pan-down":986039,"pan-horizontal":986040,"pan-left":986041,"pan-right":986042,"pan-top-left":986043,"pan-top-right":986044,"pan-up":986045,"pan-vertical":986046,"panda":984026,"pandora":984027,"panorama":984028,"panorama-fisheye":984029,"panorama-horizontal":989480,"panorama-horizontal-outline":984030,"panorama-outline":989580,"panorama-sphere":989581,"panorama-sphere-outline":989582,"panorama-variant":989583,"panorama-variant-outline":989584,"panorama-vertical":989481,"panorama-vertical-outline":984031,"panorama-wide-angle":989535,"panorama-wide-angle-outline":984032,"paper-cut-vertical":984033,"paper-roll":987479,"paper-roll-outline":987480,"paperclip":984034,"parachute":986292,"parachute-outline":986293,"paragliding":988997,"parking":984035,"party-popper":987222,"passport":985059,"passport-biometric":986593,"pasta":987488,"patio-heater":987008,"patreon":985218,"pause":984036,"pause-circle":984037,"pause-circle-outline":984038,"pause-octagon":984039,"pause-octagon-outline":984040,"paw":984041,"paw-off":984663,"paw-off-outline":988790,"paw-outline":988789,"peace":985220,"peanut":987132,"peanut-off":987133,"peanut-off-outline":987135,"peanut-outline":987134,"pen":984042,"pen-lock":986594,"pen-minus":986595,"pen-off":986596,"pen-plus":986597,"pen-remove":986598,"pencil":984043,"pencil-box":984044,"pencil-box-multiple":987460,"pencil-box-multiple-outline":987461,"pencil-box-outline":984045,"pencil-circle":984831,"pencil-circle-outline":984950,"pencil-lock":984046,"pencil-lock-outline":986599,"pencil-minus":986600,"pencil-minus-outline":986601,"pencil-off":984047,"pencil-off-outline":986602,"pencil-outline":986294,"pencil-plus":986603,"pencil-plus-outline":986604,"pencil-remove":986605,"pencil-remove-outline":986606,"pencil-ruler":987987,"penguin":986816,"pentagon":984833,"pentagon-outline":984832,"pentagram":988775,"percent":984048,"percent-outline":987768,"periodic-table":985270,"perspective-less":986403,"perspective-more":986404,"ph":989125,"phone":984050,"phone-alert":986906,"phone-alert-outline":987534,"phone-bluetooth":984051,"phone-bluetooth-outline":987535,"phone-cancel":987324,"phone-cancel-outline":987536,"phone-check":987561,"phone-check-outline":987562,"phone-classic":984578,"phone-classic-off":987769,"phone-dial":988505,"phone-dial-outline":988506,"phone-forward":984052,"phone-forward-outline":987537,"phone-hangup":984053,"phone-hangup-outline":987538,"phone-in-talk":984054,"phone-in-talk-outline":987522,"phone-incoming":984055,"phone-incoming-outline":987539,"phone-lock":984056,"phone-lock-outline":987540,"phone-log":984057,"phone-log-outline":987541,"phone-message":987542,"phone-message-outline":987543,"phone-minus":984664,"phone-minus-outline":987544,"phone-missed":984058,"phone-missed-outline":987557,"phone-off":986607,"phone-off-outline":987558,"phone-outgoing":984059,"phone-outgoing-outline":987545,"phone-outline":986608,"phone-paused":984060,"phone-paused-outline":987546,"phone-plus":984665,"phone-plus-outline":987547,"phone-refresh":989587,"phone-refresh-outline":989588,"phone-remove":988463,"phone-remove-outline":988464,"phone-return":985135,"phone-return-outline":987548,"phone-ring":987563,"phone-ring-outline":987564,"phone-rotate-landscape":985221,"phone-rotate-portrait":985222,"phone-settings":984061,"phone-settings-outline":987549,"phone-sync":989589,"phone-sync-outline":989590,"phone-voip":984062,"pi":984063,"pi-box":984064,"pi-hole":986609,"piano":984701,"piano-off":984728,"pickaxe":985271,"picture-in-picture-bottom-right":986711,"picture-in-picture-bottom-right-outline":986712,"picture-in-picture-top-right":986713,"picture-in-picture-top-right-outline":986714,"pier":985223,"pier-crane":985224,"pig":984065,"pig-variant":987142,"pig-variant-outline":988792,"piggy-bank":987143,"piggy-bank-outline":988793,"pill":984066,"pillar":984834,"pin":984067,"pin-off":984068,"pin-off-outline":985392,"pin-outline":985393,"pine-tree":984069,"pine-tree-box":984070,"pine-tree-fire":988186,"pinterest":984071,"pinwheel":985813,"pinwheel-outline":985814,"pipe":985061,"pipe-disconnected":985062,"pipe-leak":985225,"pipe-valve":989261,"pipe-wrench":987988,"pirate":985608,"pistol":984835,"piston":985226,"pitchfork":988499,"pizza":984073,"play":984074,"play-box":987770,"play-box-multiple":986393,"play-box-multiple-outline":988134,"play-box-outline":984075,"play-circle":984076,"play-circle-outline":984077,"play-network":985227,"play-network-outline":986295,"play-outline":986907,"play-pause":984078,"play-protected-content":984079,"play-speed":985343,"playlist-check":984519,"playlist-edit":985344,"playlist-minus":984080,"playlist-music":986296,"playlist-music-outline":986297,"playlist-play":984081,"playlist-plus":984082,"playlist-remove":984083,"playlist-star":986610,"plex":984762,"pliers":989604,"plus":984085,"plus-box":984086,"plus-box-multiple":983860,"plus-box-multiple-outline":987459,"plus-box-outline":984836,"plus-circle":984087,"plus-circle-multiple":983884,"plus-circle-multiple-outline":984088,"plus-circle-outline":984089,"plus-minus":985490,"plus-minus-box":985491,"plus-minus-variant":988361,"plus-network":984090,"plus-network-outline":986298,"plus-outline":984837,"plus-thick":987628,"podcast":985492,"podium":986405,"podium-bronze":986406,"podium-gold":986407,"podium-silver":986408,"point-of-sale":986514,"pokeball":984093,"pokemon-go":985609,"poker-chip":985136,"polaroid":984094,"police-badge":987495,"police-badge-outline":987496,"police-station":989241,"poll":984095,"polo":988355,"polymer":984097,"pool":984582,"popcorn":984098,"post":987144,"post-outline":987145,"postage-stamp":986299,"pot":983781,"pot-mix":984667,"pot-mix-outline":984695,"pot-outline":983807,"pot-steam":984666,"pot-steam-outline":983846,"pound":984099,"pound-box":984100,"pound-box-outline":987519,"power":984101,"power-cycle":985345,"power-off":985346,"power-on":985347,"power-plug":984741,"power-plug-off":984742,"power-plug-off-outline":988196,"power-plug-outline":988197,"power-settings":984102,"power-sleep":985348,"power-socket":984103,"power-socket-au":985349,"power-socket-ch":987059,"power-socket-de":987399,"power-socket-eu":985063,"power-socket-fr":987400,"power-socket-it":988415,"power-socket-jp":987401,"power-socket-uk":985064,"power-socket-us":985065,"power-standby":985350,"powershell":985610,"prescription":984838,"presentation":984104,"presentation-play":984105,"pretzel":988514,"printer":984106,"printer-3d":984107,"printer-3d-nozzle":986715,"printer-3d-nozzle-alert":987584,"printer-3d-nozzle-alert-outline":987585,"printer-3d-nozzle-heat":989368,"printer-3d-nozzle-heat-outline":989369,"printer-3d-nozzle-outline":986716,"printer-alert":984108,"printer-check":987462,"printer-eye":988248,"printer-off":986717,"printer-off-outline":989061,"printer-outline":989062,"printer-pos":987223,"printer-search":988247,"printer-settings":984839,"printer-wireless":985611,"priority-high":984579,"priority-low":984580,"professional-hexagon":984109,"progress-alert":986300,"progress-check":985493,"progress-clock":985494,"progress-close":987402,"progress-download":985495,"progress-pencil":989063,"progress-question":988450,"progress-star":989064,"progress-upload":985496,"progress-wrench":986301,"projector":984110,"projector-screen":984111,"projector-screen-off":989197,"projector-screen-off-outline":989198,"projector-screen-outline":988964,"projector-screen-variant":989199,"projector-screen-variant-off":989200,"projector-screen-variant-off-outline":989201,"projector-screen-variant-outline":989202,"propane-tank":987991,"propane-tank-outline":987992,"protocol":987096,"publish":984743,"publish-off":989509,"pulse":984112,"pump":988162,"pumpkin":986047,"purse":986908,"purse-outline":986909,"puzzle":984113,"puzzle-check":988198,"puzzle-check-outline":988199,"puzzle-edit":988371,"puzzle-edit-outline":988377,"puzzle-heart":988372,"puzzle-heart-outline":988378,"puzzle-minus":988369,"puzzle-minus-outline":988375,"puzzle-outline":985702,"puzzle-plus":988368,"puzzle-plus-outline":988374,"puzzle-remove":988370,"puzzle-remove-outline":988376,"puzzle-star":988373,"puzzle-star-outline":988379,"pyramid":989522,"pyramid-off":989523,"qi":985497,"qqchat":984581,"qrcode":984114,"qrcode-edit":985272,"qrcode-minus":987532,"qrcode-plus":987531,"qrcode-remove":987533,"qrcode-scan":984115,"quadcopter":984116,"quality-high":984117,"quality-low":985612,"quality-medium":985613,"quora":986409,"rabbit":985351,"racing-helmet":986515,"racquetball":986516,"radar":984119,"radiator":984120,"radiator-disabled":985815,"radiator-off":985816,"radio":984121,"radio-am":986302,"radio-fm":986303,"radio-handheld":984122,"radio-off":987676,"radio-tower":984123,"radioactive":984124,"radioactive-circle":989277,"radioactive-circle-outline":989278,"radioactive-off":986817,"radiobox-blank":984125,"radiobox-marked":984126,"radiology-box":988357,"radiology-box-outline":988358,"radius":986304,"radius-outline":986305,"railroad-light":986910,"rake":988484,"raspberry-pi":984127,"ray-end":984128,"ray-end-arrow":984129,"ray-start":984130,"ray-start-arrow":984131,"ray-start-end":984132,"ray-start-vertex-end":988632,"ray-vertex":984133,"razor-double-edge":989591,"razor-single-edge":989592,"react":984840,"read":984135,"receipt":984137,"record":984138,"record-circle":986818,"record-circle-outline":986819,"record-player":985498,"record-rec":984139,"rectangle":986718,"rectangle-outline":986719,"recycle":984140,"recycle-variant":988061,"reddit":984141,"redhat":987419,"redo":984142,"redo-variant":984143,"reflect-horizontal":985614,"reflect-vertical":985615,"refresh":984144,"refresh-auto":989426,"refresh-circle":988023,"regex":984145,"registered-trademark":985703,"reiterate":988552,"relation-many-to-many":988310,"relation-many-to-one":988311,"relation-many-to-one-or-many":988312,"relation-many-to-only-one":988313,"relation-many-to-zero-or-many":988314,"relation-many-to-zero-or-one":988315,"relation-one-or-many-to-many":988316,"relation-one-or-many-to-one":988317,"relation-one-or-many-to-one-or-many":988318,"relation-one-or-many-to-only-one":988319,"relation-one-or-many-to-zero-or-many":988320,"relation-one-or-many-to-zero-or-one":988321,"relation-one-to-many":988322,"relation-one-to-one":988323,"relation-one-to-one-or-many":988324,"relation-one-to-only-one":988325,"relation-one-to-zero-or-many":988326,"relation-one-to-zero-or-one":988327,"relation-only-one-to-many":988328,"relation-only-one-to-one":988329,"relation-only-one-to-one-or-many":988330,"relation-only-one-to-only-one":988331,"relation-only-one-to-zero-or-many":988332,"relation-only-one-to-zero-or-one":988333,"relation-zero-or-many-to-many":988334,"relation-zero-or-many-to-one":988335,"relation-zero-or-many-to-one-or-many":988336,"relation-zero-or-many-to-only-one":988337,"relation-zero-or-many-to-zero-or-many":988338,"relation-zero-or-many-to-zero-or-one":988339,"relation-zero-or-one-to-many":988340,"relation-zero-or-one-to-one":988341,"relation-zero-or-one-to-one-or-many":988342,"relation-zero-or-one-to-only-one":988343,"relation-zero-or-one-to-zero-or-many":988344,"relation-zero-or-one-to-zero-or-one":988345,"relative-scale":984146,"reload":984147,"reload-alert":987403,"reminder":985228,"remote":984148,"remote-desktop":985273,"remote-off":986820,"remote-tv":986821,"remote-tv-off":986822,"rename-box":984149,"reorder-horizontal":984712,"reorder-vertical":984713,"repeat":984150,"repeat-off":984151,"repeat-once":984152,"repeat-variant":984391,"replay":984153,"reply":984154,"reply-all":984155,"reply-all-outline":986911,"reply-circle":987566,"reply-outline":986912,"reproduction":984156,"resistor":985924,"resistor-nodes":985925,"resize":985704,"resize-bottom-right":984157,"responsive":984158,"restart":984841,"restart-alert":987404,"restart-off":986517,"restore":985499,"restore-alert":987405,"rewind":984159,"rewind-10":986410,"rewind-15":989510,"rewind-30":986518,"rewind-5":987641,"rewind-60":988684,"rewind-outline":984842,"rhombus":984843,"rhombus-medium":985616,"rhombus-medium-outline":988380,"rhombus-outline":984844,"rhombus-split":985617,"rhombus-split-outline":988381,"ribbon":984160,"rice":985066,"rickshaw":988603,"rickshaw-electric":988604,"ring":985067,"rivet":986720,"road":984161,"road-variant":984162,"robber":987224,"robot":984745,"robot-angry":988829,"robot-angry-outline":988830,"robot-confused":988831,"robot-confused-outline":988832,"robot-dead":988833,"robot-dead-outline":988834,"robot-excited":988835,"robot-excited-outline":988836,"robot-happy":988953,"robot-happy-outline":988954,"robot-industrial":985926,"robot-love":988837,"robot-love-outline":988838,"robot-mower":987639,"robot-mower-outline":987635,"robot-off":988839,"robot-off-outline":988795,"robot-outline":988794,"robot-vacuum":984845,"robot-vacuum-variant":985352,"rocket":984163,"rocket-launch":988382,"rocket-launch-outline":988383,"rocket-outline":988079,"rodent":987943,"roller-skate":986411,"roller-skate-off":983365,"rollerblade":986412,"rollerblade-off":983086,"rollupjs":986048,"roman-numeral-1":987272,"roman-numeral-10":987281,"roman-numeral-2":987273,"roman-numeral-3":987274,"roman-numeral-4":987275,"roman-numeral-5":987276,"roman-numeral-6":987277,"roman-numeral-7":987278,"roman-numeral-8":987279,"roman-numeral-9":987280,"room-service":985229,"room-service-outline":986519,"rotate-360":989593,"rotate-3d":986823,"rotate-3d-variant":984164,"rotate-left":984165,"rotate-left-variant":984166,"rotate-orbit":986520,"rotate-right":984167,"rotate-right-variant":984168,"rounded-corner":984583,"router":987618,"router-network":987271,"router-wireless":984169,"router-wireless-off":988579,"router-wireless-settings":985705,"routes":984170,"routes-clock":987225,"rowing":984584,"rss":984171,"rss-box":984172,"rss-off":986913,"rug":988277,"rugby":986521,"ruler":984173,"ruler-square":986306,"ruler-square-compass":986814,"run":984846,"run-fast":984174,"rv-truck":987604,"sack":986414,"sack-percent":986415,"safe":985706,"safe-square":987772,"safe-square-outline":987773,"safety-goggles":986416,"sail-boat":986824,"sale":984175,"salesforce":985230,"sass":985068,"satellite":984176,"satellite-uplink":985353,"satellite-variant":984177,"sausage":985274,"sausage-off":989065,"saw-blade":986721,"sawtooth-wave":988282,"saxophone":984585,"scale":984178,"scale-balance":984529,"scale-bathroom":984179,"scale-off":987226,"scale-unbalanced":989624,"scan-helper":988120,"scanner":984747,"scanner-off":985354,"scatter-plot":986825,"scatter-plot-outline":986826,"scent":989528,"scent-off":989529,"school":984180,"school-outline":987520,"scissors-cutting":985707,"scooter":988605,"scooter-electric":988606,"scoreboard":987774,"scoreboard-outline":987775,"screen-rotation":984181,"screen-rotation-lock":984184,"screw-flat-top":986611,"screw-lag":986612,"screw-machine-flat-top":986613,"screw-machine-round-top":986614,"screw-round-top":986615,"screwdriver":984182,"script":986049,"script-outline":984183,"script-text":986050,"script-text-key":988965,"script-text-key-outline":988966,"script-text-outline":986051,"script-text-play":988967,"script-text-play-outline":988968,"sd":984185,"seal":984186,"seal-variant":987097,"search-web":984847,"seat":986307,"seat-flat":984187,"seat-flat-angled":984188,"seat-individual-suite":984189,"seat-legroom-extra":984190,"seat-legroom-normal":984191,"seat-legroom-reduced":984192,"seat-outline":986308,"seat-passenger":987721,"seat-recline-extra":984193,"seat-recline-normal":984194,"seatbelt":986309,"security":984195,"security-network":984196,"seed":986722,"seed-off":988157,"seed-off-outline":988158,"seed-outline":986723,"seesaw":988580,"segment":986827,"select":984197,"select-all":984198,"select-color":986417,"select-compare":985817,"select-drag":985708,"select-group":987010,"select-inverse":984199,"select-marker":987776,"select-multiple":987777,"select-multiple-marker":987778,"select-off":984200,"select-place":987098,"select-remove":989121,"select-search":987652,"selection":984201,"selection-drag":985709,"selection-ellipse":986418,"selection-ellipse-arrow-inside":986914,"selection-ellipse-remove":989122,"selection-marker":987779,"selection-multiple":987781,"selection-multiple-marker":987780,"selection-off":984951,"selection-remove":989123,"selection-search":987653,"semantic-web":987926,"send":984202,"send-check":987489,"send-check-outline":987490,"send-circle":986616,"send-circle-outline":986617,"send-clock":987491,"send-clock-outline":987492,"send-lock":985069,"send-lock-outline":987494,"send-outline":987493,"serial-port":984668,"server":984203,"server-minus":984204,"server-network":984205,"server-network-off":984206,"server-off":984207,"server-plus":984208,"server-remove":984209,"server-security":984210,"set-all":984952,"set-center":984953,"set-center-right":984954,"set-left":984955,"set-left-center":984956,"set-left-right":984957,"set-merge":988384,"set-none":984958,"set-right":984959,"set-split":988385,"set-square":988253,"set-top-box":985503,"settings-helper":985710,"shaker":987406,"shaker-outline":987407,"shape":985137,"shape-circle-plus":984669,"shape-outline":985138,"shape-oval-plus":987642,"shape-plus":984213,"shape-polygon-plus":984670,"shape-rectangle-plus":984671,"shape-square-plus":984672,"shape-square-rounded-plus":988410,"share":984214,"share-all":987636,"share-all-outline":987637,"share-circle":987565,"share-off":986915,"share-off-outline":986916,"share-outline":985394,"share-variant":984215,"share-variant-outline":988436,"shark":989370,"shark-fin":988787,"shark-fin-outline":988788,"shark-off":989371,"sheep":986310,"shield":984216,"shield-account":985231,"shield-account-outline":985618,"shield-account-variant":988583,"shield-account-variant-outline":988584,"shield-airplane":984763,"shield-airplane-outline":986311,"shield-alert":986828,"shield-alert-outline":986829,"shield-bug":988122,"shield-bug-outline":988123,"shield-car":987011,"shield-check":984421,"shield-check-outline":986312,"shield-cross":986313,"shield-cross-outline":986314,"shield-crown":989372,"shield-crown-outline":989373,"shield-edit":987552,"shield-edit-outline":987553,"shield-half":988000,"shield-half-full":984960,"shield-home":984714,"shield-home-outline":986315,"shield-key":986052,"shield-key-outline":986053,"shield-link-variant":986419,"shield-link-variant-outline":986420,"shield-lock":985501,"shield-lock-open":989594,"shield-lock-open-outline":989595,"shield-lock-outline":986316,"shield-moon":989224,"shield-moon-outline":989225,"shield-off":985502,"shield-off-outline":985500,"shield-outline":984217,"shield-plus":985818,"shield-plus-outline":985819,"shield-refresh":983210,"shield-refresh-outline":983520,"shield-remove":985820,"shield-remove-outline":985821,"shield-search":986522,"shield-star":987451,"shield-star-outline":987452,"shield-sun":987229,"shield-sun-outline":987230,"shield-sword":989374,"shield-sword-outline":989375,"shield-sync":987554,"shield-sync-outline":987555,"shimmer":988485,"ship-wheel":985139,"shipping-pallet":989262,"shoe-ballet":988618,"shoe-cleat":988615,"shoe-formal":985927,"shoe-heel":985928,"shoe-print":986618,"shoe-sneaker":988616,"shopping":984218,"shopping-music":984219,"shopping-outline":987605,"shopping-search":987012,"shore":988409,"shovel":984848,"shovel-off":984849,"shower":985504,"shower-head":985505,"shredder":984220,"shuffle":984221,"shuffle-disabled":984222,"shuffle-variant":984223,"shuriken":988031,"sickle":989376,"sigma":984224,"sigma-lower":984619,"sign-caution":984225,"sign-direction":984961,"sign-direction-minus":987136,"sign-direction-plus":987100,"sign-direction-remove":987101,"sign-pole":988408,"sign-real-estate":987416,"sign-text":984962,"signal":984226,"signal-2g":984850,"signal-3g":984851,"signal-4g":984852,"signal-5g":985711,"signal-cellular-1":985276,"signal-cellular-2":985277,"signal-cellular-3":985278,"signal-cellular-outline":985279,"signal-distance-variant":986724,"signal-hspa":984853,"signal-hspa-plus":984854,"signal-off":984963,"signal-variant":984586,"signature":986619,"signature-freehand":986620,"signature-image":986621,"signature-text":986622,"silo":985929,"silverware":984227,"silverware-clean":987102,"silverware-fork":984228,"silverware-fork-knife":985712,"silverware-spoon":984229,"silverware-variant":984230,"sim":984231,"sim-alert":984232,"sim-alert-outline":988627,"sim-off":984233,"sim-off-outline":988628,"sim-outline":988629,"simple-icons":987933,"sina-weibo":985823,"sine-wave":985435,"sitemap":984234,"sitemap-outline":989596,"size-l":988070,"size-m":988069,"size-s":988068,"size-xl":988071,"size-xs":988067,"size-xxl":988072,"size-xxs":988066,"size-xxxl":988073,"skate":986421,"skate-off":984729,"skateboard":988354,"skateboarding":984321,"skew-less":986422,"skew-more":986423,"ski":987908,"ski-cross-country":987909,"ski-water":987910,"skip-backward":984235,"skip-backward-outline":986917,"skip-forward":984236,"skip-forward-outline":986918,"skip-next":984237,"skip-next-circle":984673,"skip-next-circle-outline":984674,"skip-next-outline":986919,"skip-previous":984238,"skip-previous-circle":984675,"skip-previous-circle-outline":984676,"skip-previous-outline":986920,"skull":984716,"skull-crossbones":986054,"skull-crossbones-outline":986055,"skull-outline":986056,"skull-scan":988359,"skull-scan-outline":988360,"skype":984239,"skype-business":984240,"slack":984241,"slash-forward":987103,"slash-forward-box":987104,"sledding":984091,"sleep":984242,"sleep-off":984243,"slide":988581,"slope-downhill":986623,"slope-uphill":986624,"slot-machine":987412,"slot-machine-outline":987413,"smart-card":987325,"smart-card-off":989431,"smart-card-off-outline":989432,"smart-card-outline":987326,"smart-card-reader":987327,"smart-card-reader-outline":987328,"smog":985713,"smoke":989081,"smoke-detector":983954,"smoke-detector-alert":989486,"smoke-detector-alert-outline":989487,"smoke-detector-off":989193,"smoke-detector-off-outline":989194,"smoke-detector-outline":989192,"smoke-detector-variant":989195,"smoke-detector-variant-alert":989488,"smoke-detector-variant-off":989196,"smoking":984244,"smoking-off":984245,"smoking-pipe":988173,"smoking-pipe-off":988200,"snail":988791,"snake":988430,"snapchat":984246,"snowboard":987911,"snowflake":984855,"snowflake-alert":986921,"snowflake-melt":987851,"snowflake-off":988387,"snowflake-variant":986922,"snowman":984247,"snowmobile":984797,"soccer":984248,"soccer-field":985140,"social-distance-2-meters":988537,"social-distance-6-feet":988538,"sofa":984249,"sofa-outline":988525,"sofa-single":988526,"sofa-single-outline":988527,"solar-panel":986523,"solar-panel-large":986524,"solar-power":985714,"soldering-iron":987282,"solid":984717,"sony-playstation":984084,"sort":984250,"sort-alphabetical-ascending":984509,"sort-alphabetical-ascending-variant":987464,"sort-alphabetical-descending":984511,"sort-alphabetical-descending-variant":987465,"sort-alphabetical-variant":984251,"sort-ascending":984252,"sort-bool-ascending":988037,"sort-bool-ascending-variant":988038,"sort-bool-descending":988039,"sort-bool-descending-variant":988040,"sort-calendar-ascending":988487,"sort-calendar-descending":988488,"sort-clock-ascending":988489,"sort-clock-ascending-outline":988490,"sort-clock-descending":988491,"sort-clock-descending-outline":988492,"sort-descending":984253,"sort-numeric-ascending":988041,"sort-numeric-ascending-variant":985357,"sort-numeric-descending":988042,"sort-numeric-descending-variant":985810,"sort-numeric-variant":984254,"sort-reverse-variant":983868,"sort-variant":984255,"sort-variant-lock":986317,"sort-variant-lock-open":986318,"sort-variant-remove":987463,"soundbar":989147,"soundcloud":984256,"source-branch":984620,"source-branch-check":988367,"source-branch-minus":988363,"source-branch-plus":988362,"source-branch-refresh":988365,"source-branch-remove":988364,"source-branch-sync":988366,"source-commit":984856,"source-commit-end":984857,"source-commit-end-local":984858,"source-commit-local":984859,"source-commit-next-local":984860,"source-commit-start":984861,"source-commit-start-next-local":984862,"source-fork":984257,"source-merge":984621,"source-pull":984258,"source-repository":986319,"source-repository-multiple":986320,"soy-sauce":985070,"soy-sauce-off":988156,"spa":986321,"spa-outline":986322,"space-invaders":986057,"space-station":988035,"spade":986725,"speaker":984259,"speaker-bluetooth":985506,"speaker-multiple":986424,"speaker-off":984260,"speaker-wireless":984863,"spear":989253,"speedometer":984261,"speedometer-medium":987013,"speedometer-slow":987014,"spellcheck":984262,"sphere":989524,"sphere-off":989525,"spider":987626,"spider-thread":987627,"spider-web":986058,"spirit-level":988401,"spoon-sugar":988201,"spotify":984263,"spotlight":984264,"spotlight-beam":984265,"spray":984677,"spray-bottle":985824,"sprinkler":987231,"sprinkler-fire":989597,"sprinkler-variant":987232,"sprout":986726,"sprout-outline":986727,"square":984932,"square-circle":988416,"square-edit-outline":985356,"square-medium":985619,"square-medium-outline":985620,"square-off":987886,"square-off-outline":987887,"square-opacity":989268,"square-outline":984931,"square-root":984964,"square-root-box":985507,"square-rounded":988411,"square-rounded-outline":988412,"square-small":985621,"square-wave":988283,"squeegee":985825,"ssh":985280,"stack-exchange":984587,"stack-overflow":984268,"stackpath":983897,"stadium":987129,"stadium-variant":984864,"stairs":984269,"stairs-box":988062,"stairs-down":987838,"stairs-up":987837,"stamper":986425,"standard-definition":985071,"star":984270,"star-box":985715,"star-box-multiple":987782,"star-box-multiple-outline":987783,"star-box-outline":985716,"star-check":988518,"star-check-outline":988522,"star-circle":984271,"star-circle-outline":985508,"star-cog":988776,"star-cog-outline":988777,"star-crescent":985465,"star-david":985466,"star-face":985509,"star-four-points":985826,"star-four-points-outline":985827,"star-half":983622,"star-half-full":984272,"star-minus":988516,"star-minus-outline":988520,"star-off":984273,"star-off-outline":988507,"star-outline":984274,"star-plus":988515,"star-plus-outline":988519,"star-remove":988517,"star-remove-outline":988521,"star-settings":988778,"star-settings-outline":988779,"star-shooting":988993,"star-shooting-outline":988994,"star-three-points":985828,"star-three-points-outline":985829,"state-machine":987631,"steam":984275,"steering":984276,"steering-off":985358,"step-backward":984277,"step-backward-2":984278,"step-forward":984279,"step-forward-2":984280,"stethoscope":984281,"sticker":988004,"sticker-alert":988005,"sticker-alert-outline":988006,"sticker-check":988007,"sticker-check-outline":988008,"sticker-circle-outline":984528,"sticker-emoji":984965,"sticker-minus":988009,"sticker-minus-outline":988010,"sticker-outline":988011,"sticker-plus":988012,"sticker-plus-outline":988013,"sticker-remove":988014,"sticker-remove-outline":988015,"sticker-text":989070,"sticker-text-outline":989071,"stocking":984282,"stomach":987283,"stool":989533,"stool-outline":989534,"stop":984283,"stop-circle":984678,"stop-circle-outline":984679,"store":984284,"store-24-hour":984285,"store-alert":989377,"store-alert-outline":989378,"store-check":989379,"store-check-outline":989380,"store-clock":989381,"store-clock-outline":989382,"store-cog":989383,"store-cog-outline":989384,"store-edit":989385,"store-edit-outline":989386,"store-marker":989387,"store-marker-outline":989388,"store-minus":988766,"store-minus-outline":989389,"store-off":989390,"store-off-outline":989391,"store-outline":988001,"store-plus":988767,"store-plus-outline":989392,"store-remove":988768,"store-remove-outline":989393,"store-search":989394,"store-search-outline":989395,"store-settings":989396,"store-settings-outline":989397,"storefront":985031,"storefront-outline":987329,"stove":984286,"strategy":987606,"stretch-to-page":986923,"stretch-to-page-outline":986924,"string-lights":987834,"string-lights-off":987835,"subdirectory-arrow-left":984588,"subdirectory-arrow-right":984589,"submarine":988524,"subtitles":985622,"subtitles-outline":985623,"subway":984748,"subway-alert-variant":986525,"subway-variant":984287,"summit":984966,"sun-compass":989605,"sun-snowflake":989078,"sun-thermometer":989398,"sun-thermometer-outline":989399,"sun-wireless":989182,"sun-wireless-outline":989183,"sunglasses":984288,"surfing":988998,"surround-sound":984517,"surround-sound-2-0":985072,"surround-sound-2-1":988969,"surround-sound-3-1":985073,"surround-sound-5-1":985074,"surround-sound-5-1-2":988970,"surround-sound-7-1":985075,"svg":984865,"swap-horizontal":984289,"swap-horizontal-bold":986061,"swap-horizontal-circle":987105,"swap-horizontal-circle-outline":987106,"swap-horizontal-variant":985281,"swap-vertical":984290,"swap-vertical-bold":986062,"swap-vertical-circle":987107,"swap-vertical-circle-outline":987108,"swap-vertical-variant":985282,"swim":984291,"switch":984292,"sword":984293,"sword-cross":984967,"syllabary-hangul":987955,"syllabary-hiragana":987956,"syllabary-katakana":987957,"syllabary-katakana-halfwidth":987958,"symbol":988417,"symfony":985830,"sync":984294,"sync-alert":984295,"sync-circle":988024,"sync-off":984296,"tab":984297,"tab-minus":985931,"tab-plus":984924,"tab-remove":985932,"tab-search":989598,"tab-unselected":984298,"table":984299,"table-account":988089,"table-alert":988090,"table-arrow-down":988091,"table-arrow-left":988092,"table-arrow-right":988093,"table-arrow-up":988094,"table-border":985624,"table-cancel":988095,"table-chair":987233,"table-check":988096,"table-clock":988097,"table-cog":988098,"table-column":985141,"table-column-plus-after":984300,"table-column-plus-before":984301,"table-column-remove":984302,"table-column-width":984303,"table-edit":984304,"table-eye":987284,"table-eye-off":988099,"table-furniture":984508,"table-headers-eye":987677,"table-headers-eye-off":987678,"table-heart":988100,"table-key":988101,"table-large":984305,"table-large-plus":987015,"table-large-remove":987016,"table-lock":988102,"table-merge-cells":985510,"table-minus":988103,"table-multiple":988104,"table-network":988105,"table-of-contents":985142,"table-off":988106,"table-picnic":988995,"table-pivot":989244,"table-plus":985717,"table-refresh":988064,"table-remove":985718,"table-row":985143,"table-row-height":984306,"table-row-plus-after":984307,"table-row-plus-before":984308,"table-row-remove":984309,"table-search":985359,"table-settings":985144,"table-split-cell":988202,"table-star":988107,"table-sync":988065,"table-tennis":986728,"tablet":984310,"tablet-android":984311,"tablet-cellphone":985511,"tablet-dashboard":986830,"taco":984930,"tag":984313,"tag-arrow-down":988971,"tag-arrow-down-outline":988972,"tag-arrow-left":988973,"tag-arrow-left-outline":988974,"tag-arrow-right":988975,"tag-arrow-right-outline":988976,"tag-arrow-up":988977,"tag-arrow-up-outline":988978,"tag-faces":984314,"tag-heart":984715,"tag-heart-outline":986063,"tag-minus":985360,"tag-minus-outline":987679,"tag-multiple":984315,"tag-multiple-outline":987895,"tag-off":987680,"tag-off-outline":987681,"tag-outline":984316,"tag-plus":984866,"tag-plus-outline":987682,"tag-remove":984867,"tag-remove-outline":987683,"tag-search":989447,"tag-search-outline":989448,"tag-text":987684,"tag-text-outline":984317,"tailwind":988159,"tangram":984312,"tank":986426,"tanker-truck":987109,"tape-drive":988895,"tape-measure":985933,"target":984318,"target-account":986064,"target-variant":985719,"taxi":984319,"tea":986526,"tea-outline":986527,"teamviewer":984320,"teddy-bear":989435,"telescope":985934,"television":984322,"television-ambient-light":987990,"television-box":985145,"television-classic":985076,"television-classic-off":985146,"television-guide":984323,"television-off":985147,"television-pause":987017,"television-play":986831,"television-shimmer":987408,"television-stop":987018,"temperature-celsius":984324,"temperature-fahrenheit":984325,"temperature-kelvin":984326,"tennis":986528,"tennis-ball":984327,"tent":984328,"terraform":987234,"terrain":984329,"test-tube":984680,"test-tube-empty":985361,"test-tube-off":985362,"text":985512,"text-account":988528,"text-box":983578,"text-box-check":986790,"text-box-check-outline":986791,"text-box-minus":986792,"text-box-minus-outline":986793,"text-box-multiple":985783,"text-box-multiple-outline":985784,"text-box-outline":985581,"text-box-plus":986794,"text-box-plus-outline":986795,"text-box-remove":986796,"text-box-remove-outline":986797,"text-box-search":986798,"text-box-search-outline":986799,"text-long":985514,"text-recognition":987453,"text-search":988088,"text-shadow":984681,"text-short":985513,"text-to-speech":984330,"text-to-speech-off":984331,"texture":984332,"texture-box":987110,"theater":984333,"theme-light-dark":984334,"thermometer":984335,"thermometer-alert":986625,"thermometer-bluetooth":989333,"thermometer-chevron-down":986626,"thermometer-chevron-up":986627,"thermometer-high":987330,"thermometer-lines":984336,"thermometer-low":987331,"thermometer-minus":986628,"thermometer-off":988465,"thermometer-plus":986629,"thermostat":983955,"thermostat-box":985233,"thought-bubble":985078,"thought-bubble-outline":985079,"thumb-down":984337,"thumb-down-outline":984338,"thumb-up":984339,"thumb-up-outline":984340,"thumbs-up-down":984341,"thumbs-up-down-outline":989460,"ticket":984342,"ticket-account":984343,"ticket-confirmation":984344,"ticket-confirmation-outline":988074,"ticket-outline":985363,"ticket-percent":984868,"ticket-percent-outline":988203,"tie":984345,"tilde":984869,"tilde-off":989427,"timelapse":984346,"timeline":986065,"timeline-alert":987029,"timeline-alert-outline":987032,"timeline-check":988466,"timeline-check-outline":988467,"timeline-clock":987643,"timeline-clock-outline":987644,"timeline-help":987033,"timeline-help-outline":987034,"timeline-minus":988468,"timeline-minus-outline":988469,"timeline-outline":986066,"timeline-plus":987030,"timeline-plus-outline":987031,"timeline-remove":988470,"timeline-remove-outline":988471,"timeline-text":986067,"timeline-text-outline":986068,"timer":988075,"timer-10":984348,"timer-3":984349,"timer-cog":989477,"timer-cog-outline":989478,"timer-off":988076,"timer-off-outline":984350,"timer-outline":984347,"timer-sand":984351,"timer-sand-complete":989599,"timer-sand-empty":984749,"timer-sand-full":984972,"timer-sand-paused":989600,"timer-settings":989475,"timer-settings-outline":989476,"timetable":984352,"tire":989334,"toaster":987235,"toaster-off":987575,"toaster-oven":986323,"toggle-switch":984353,"toggle-switch-off":984354,"toggle-switch-off-outline":985625,"toggle-switch-outline":985626,"toilet":985515,"toolbox":985516,"toolbox-outline":985517,"tools":987236,"tooltip":984355,"tooltip-account":983052,"tooltip-cellphone":989243,"tooltip-check":988508,"tooltip-check-outline":988509,"tooltip-edit":984356,"tooltip-edit-outline":987845,"tooltip-image":984357,"tooltip-image-outline":986069,"tooltip-minus":988510,"tooltip-minus-outline":988511,"tooltip-outline":984358,"tooltip-plus":986070,"tooltip-plus-outline":984359,"tooltip-remove":988512,"tooltip-remove-outline":988513,"tooltip-text":984360,"tooltip-text-outline":986071,"tooth":985283,"tooth-outline":984361,"toothbrush":987433,"toothbrush-electric":987436,"toothbrush-paste":987434,"torch":988678,"tortoise":986427,"toslink":987832,"tournament":985518,"tow-truck":985148,"tower-beach":984705,"tower-fire":984706,"town-hall":989301,"toy-brick":987784,"toy-brick-marker":987785,"toy-brick-marker-outline":987786,"toy-brick-minus":987787,"toy-brick-minus-outline":987788,"toy-brick-outline":987789,"toy-brick-plus":987790,"toy-brick-plus-outline":987791,"toy-brick-remove":987792,"toy-brick-remove-outline":987793,"toy-brick-search":987794,"toy-brick-search-outline":987795,"track-light":985364,"trackpad":985080,"trackpad-lock":985395,"tractor":985234,"tractor-variant":988356,"trademark":985720,"traffic-cone":988028,"traffic-light":984363,"traffic-light-outline":989226,"train":984364,"train-car":986072,"train-car-passenger":988979,"train-car-passenger-door":988980,"train-car-passenger-door-open":988981,"train-car-passenger-variant":988982,"train-variant":985284,"tram":984365,"tram-side":987111,"transcribe":984366,"transcribe-close":984367,"transfer":987237,"transfer-down":986529,"transfer-left":986530,"transfer-right":984368,"transfer-up":986531,"transit-connection":986428,"transit-connection-horizontal":988486,"transit-connection-variant":986429,"transit-detour":987019,"transit-skip":988437,"transit-transfer":984750,"transition":985365,"transition-masked":985366,"translate":984522,"translate-off":986630,"transmission-tower":986430,"transmission-tower-export":989484,"transmission-tower-import":989485,"trash-can":985721,"trash-can-outline":985722,"tray":987796,"tray-alert":987797,"tray-arrow-down":983328,"tray-arrow-up":983325,"tray-full":987798,"tray-minus":987799,"tray-plus":987800,"tray-remove":987801,"treasure-chest":984870,"tree":984369,"tree-outline":986729,"trello":984370,"trending-down":984371,"trending-neutral":984372,"trending-up":984373,"triangle":984374,"triangle-outline":984375,"triangle-wave":988284,"triforce":986073,"trophy":984376,"trophy-award":984377,"trophy-broken":986532,"trophy-outline":984378,"trophy-variant":984379,"trophy-variant-outline":984380,"truck":984381,"truck-cargo-container":989400,"truck-check":986324,"truck-check-outline":987802,"truck-delivery":984382,"truck-delivery-outline":987803,"truck-fast":984968,"truck-fast-outline":987804,"truck-flatbed":989329,"truck-minus":989614,"truck-minus-outline":989629,"truck-outline":987805,"truck-plus":989613,"truck-plus-outline":989628,"truck-remove":989615,"truck-remove-outline":989630,"truck-snowflake":989606,"truck-trailer":984871,"trumpet":987286,"tshirt-crew":985723,"tshirt-crew-outline":984383,"tshirt-v":985724,"tshirt-v-outline":984384,"tumble-dryer":985367,"tumble-dryer-alert":987578,"tumble-dryer-off":987579,"tune":984622,"tune-variant":988482,"tune-vertical":984682,"tune-vertical-variant":988483,"tunnel":989245,"tunnel-outline":989246,"turkey":988955,"turnstile":986325,"turnstile-outline":986326,"turtle":986327,"twitch":984387,"twitter":984388,"two-factor-authentication":985519,"typewriter":986925,"ubisoft":986074,"ubuntu":984392,"ufo":987332,"ufo-outline":987333,"ultra-high-definition":985081,"umbraco":984393,"umbrella":984394,"umbrella-beach":989322,"umbrella-beach-outline":989323,"umbrella-closed":985520,"umbrella-closed-outline":988130,"umbrella-closed-variant":988129,"umbrella-outline":984395,"undo":984396,"undo-variant":984397,"unfold-less-horizontal":984398,"unfold-less-vertical":984928,"unfold-more-horizontal":984399,"unfold-more-vertical":984929,"ungroup":984400,"unicode":986832,"unicorn":988610,"unicorn-variant":988611,"unicycle":988645,"unity":984751,"unreal":985521,"update":984752,"upload":984402,"upload-lock":988019,"upload-lock-outline":988020,"upload-multiple":985149,"upload-network":984822,"upload-network-outline":986328,"upload-off":987334,"upload-off-outline":987335,"upload-outline":986631,"usb":984403,"usb-flash-drive":987806,"usb-flash-drive-outline":987807,"usb-port":987632,"vacuum":989601,"vacuum-outline":989602,"valve":987238,"valve-closed":987239,"valve-open":987240,"van-passenger":985082,"van-utility":985083,"vanish":985084,"vanish-quarter":988500,"vanity-light":987617,"variable":985831,"variable-box":987409,"vector-arrange-above":984404,"vector-arrange-below":984405,"vector-bezier":985832,"vector-circle":984406,"vector-circle-variant":984407,"vector-combine":984408,"vector-curve":984409,"vector-difference":984410,"vector-difference-ab":984411,"vector-difference-ba":984412,"vector-ellipse":985235,"vector-intersection":984413,"vector-line":984414,"vector-link":987112,"vector-point":984415,"vector-polygon":984416,"vector-polygon-variant":989270,"vector-polyline":984417,"vector-polyline-edit":987685,"vector-polyline-minus":987686,"vector-polyline-plus":987687,"vector-polyline-remove":987688,"vector-radius":984906,"vector-rectangle":984518,"vector-selection":984418,"vector-square":983041,"vector-square-close":989271,"vector-square-edit":989401,"vector-square-minus":989402,"vector-square-open":989272,"vector-square-plus":989403,"vector-square-remove":989404,"vector-triangle":984419,"vector-union":984420,"vhs":985627,"vibrate":984422,"vibrate-off":986329,"video":984423,"video-3d":985085,"video-3d-off":988121,"video-3d-variant":986833,"video-4k-box":985150,"video-account":985369,"video-box":983293,"video-box-off":983294,"video-check":987241,"video-check-outline":987242,"video-high-definition":988462,"video-image":985370,"video-input-antenna":985151,"video-input-component":985152,"video-input-hdmi":985153,"video-input-scart":987020,"video-input-svideo":985154,"video-marker":989609,"video-marker-outline":989610,"video-minus":985522,"video-minus-outline":983738,"video-off":984424,"video-off-outline":986075,"video-outline":986076,"video-plus":985523,"video-plus-outline":983507,"video-stabilization":985371,"video-switch":984425,"video-switch-outline":984976,"video-vintage":985628,"video-wireless":986834,"video-wireless-outline":986835,"view-agenda":984426,"view-agenda-outline":987608,"view-array":984427,"view-array-outline":988293,"view-carousel":984428,"view-carousel-outline":988294,"view-column":984429,"view-column-outline":988295,"view-comfy":986730,"view-comfy-outline":988296,"view-compact":986731,"view-compact-outline":986732,"view-dashboard":984430,"view-dashboard-edit":989511,"view-dashboard-edit-outline":989512,"view-dashboard-outline":985629,"view-dashboard-variant":985155,"view-dashboard-variant-outline":988297,"view-day":984431,"view-day-outline":988298,"view-gallery":989320,"view-gallery-outline":989321,"view-grid":984432,"view-grid-outline":987609,"view-grid-plus":987021,"view-grid-plus-outline":987610,"view-headline":984433,"view-list":984434,"view-list-outline":988299,"view-module":984435,"view-module-outline":988300,"view-parallel":984872,"view-parallel-outline":988301,"view-quilt":984436,"view-quilt-outline":988302,"view-sequential":984873,"view-sequential-outline":988303,"view-split-horizontal":986059,"view-split-vertical":986060,"view-stream":984437,"view-stream-outline":988304,"view-week":984438,"view-week-outline":988305,"vimeo":984439,"violin":984591,"virtual-reality":985236,"virus":988086,"virus-off":989409,"virus-off-outline":989410,"virus-outline":988087,"vlc":984444,"voicemail":984445,"volleyball":985524,"volume-high":984446,"volume-low":984447,"volume-medium":984448,"volume-minus":984926,"volume-mute":984927,"volume-off":984449,"volume-plus":984925,"volume-source":987424,"volume-variant-off":986632,"volume-vibrate":987425,"vote":985631,"vote-outline":985632,"vpn":984450,"vuejs":985156,"vuetify":986733,"walk":984451,"wall":985086,"wall-sconce":985372,"wall-sconce-flat":985373,"wall-sconce-flat-outline":989129,"wall-sconce-flat-variant":984092,"wall-sconce-flat-variant-outline":989130,"wall-sconce-outline":989131,"wall-sconce-round":984904,"wall-sconce-round-outline":989132,"wall-sconce-round-variant":985374,"wall-sconce-round-variant-outline":989133,"wallet":984452,"wallet-giftcard":984453,"wallet-membership":984454,"wallet-outline":986077,"wallet-plus":987022,"wallet-plus-outline":987023,"wallet-travel":984455,"wallpaper":986633,"wan":984456,"wardrobe":987024,"wardrobe-outline":987025,"warehouse":987009,"washing-machine":984874,"washing-machine-alert":987580,"washing-machine-off":987581,"watch":984457,"watch-export":984458,"watch-export-variant":985237,"watch-import":984459,"watch-import-variant":985238,"watch-variant":985239,"watch-vibrate":984753,"watch-vibrate-off":986330,"water":984460,"water-alert":988418,"water-alert-outline":988419,"water-boiler":987026,"water-boiler-alert":987571,"water-boiler-off":987572,"water-check":988420,"water-check-outline":988421,"water-circle":989190,"water-minus":988422,"water-minus-outline":988423,"water-off":984461,"water-off-outline":988424,"water-opacity":989269,"water-outline":986634,"water-percent":984462,"water-percent-alert":988425,"water-plus":988426,"water-plus-outline":988427,"water-polo":987808,"water-pump":984463,"water-pump-off":987027,"water-remove":988428,"water-remove-outline":988429,"water-sync":989126,"water-well":987243,"water-well-outline":987244,"waterfall":989257,"watering-can":988289,"watering-can-outline":988290,"watermark":984594,"wave":986926,"waveform":988285,"waves":984973,"waves-arrow-left":989273,"waves-arrow-right":989274,"waves-arrow-up":989275,"waze":986078,"weather-cloudy":984464,"weather-cloudy-alert":986927,"weather-cloudy-arrow-right":986734,"weather-cloudy-clock":989430,"weather-fog":984465,"weather-hail":984466,"weather-hazy":986928,"weather-hurricane":985240,"weather-lightning":984467,"weather-lightning-rainy":984702,"weather-night":984468,"weather-night-partly-cloudy":986929,"weather-partly-cloudy":984469,"weather-partly-lightning":986930,"weather-partly-rainy":986931,"weather-partly-snowy":986932,"weather-partly-snowy-rainy":986933,"weather-pouring":984470,"weather-rainy":984471,"weather-snowy":984472,"weather-snowy-heavy":986934,"weather-snowy-rainy":984703,"weather-sunny":984473,"weather-sunny-alert":986935,"weather-sunny-off":988388,"weather-sunset":984474,"weather-sunset-down":984475,"weather-sunset-up":984476,"weather-tornado":986936,"weather-windy":984477,"weather-windy-variant":984478,"web":984479,"web-box":987028,"web-cancel":989072,"web-check":984969,"web-clock":987722,"web-minus":987296,"web-off":985742,"web-plus":983091,"web-refresh":989073,"web-remove":984401,"web-sync":989074,"webcam":984480,"webcam-off":988983,"webhook":984623,"webpack":984875,"webrtc":987720,"wechat":984593,"weight":984481,"weight-gram":986431,"weight-kilogram":984482,"weight-lifter":987485,"weight-pound":985525,"whatsapp":984483,"wheel-barrow":988402,"wheelchair-accessibility":984484,"whistle":985526,"whistle-outline":987836,"white-balance-auto":984485,"white-balance-incandescent":984486,"white-balance-iridescent":984487,"white-balance-sunny":984488,"widgets":984876,"widgets-outline":987989,"wifi":984489,"wifi-alert":988853,"wifi-arrow-down":988854,"wifi-arrow-left":988855,"wifi-arrow-left-right":988856,"wifi-arrow-right":988857,"wifi-arrow-up":988858,"wifi-arrow-up-down":988859,"wifi-cancel":988860,"wifi-check":988861,"wifi-cog":988862,"wifi-lock":988863,"wifi-lock-open":988864,"wifi-marker":988865,"wifi-minus":988866,"wifi-off":984490,"wifi-plus":988867,"wifi-refresh":988868,"wifi-remove":988869,"wifi-settings":988870,"wifi-star":986635,"wifi-strength-1":985375,"wifi-strength-1-alert":985376,"wifi-strength-1-lock":985377,"wifi-strength-1-lock-open":988875,"wifi-strength-2":985378,"wifi-strength-2-alert":985379,"wifi-strength-2-lock":985380,"wifi-strength-2-lock-open":988876,"wifi-strength-3":985381,"wifi-strength-3-alert":985382,"wifi-strength-3-lock":985383,"wifi-strength-3-lock-open":988877,"wifi-strength-4":985384,"wifi-strength-4-alert":985385,"wifi-strength-4-lock":985386,"wifi-strength-4-lock-open":988878,"wifi-strength-alert-outline":985387,"wifi-strength-lock-open-outline":988879,"wifi-strength-lock-outline":985388,"wifi-strength-off":985389,"wifi-strength-off-outline":985390,"wifi-strength-outline":985391,"wifi-sync":988871,"wikipedia":984492,"wind-turbine":986533,"wind-turbine-alert":989611,"wind-turbine-check":989612,"window-close":984493,"window-closed":984494,"window-closed-variant":987611,"window-maximize":984495,"window-minimize":984496,"window-open":984497,"window-open-variant":987612,"window-restore":984498,"window-shutter":987420,"window-shutter-alert":987421,"window-shutter-open":987422,"windsock":988666,"wiper":985833,"wiper-wash":986534,"wiper-wash-alert":989407,"wizard-hat":988279,"wordpress":984500,"wrap":984502,"wrap-disabled":986079,"wrench":984503,"wrench-clock":989603,"wrench-outline":986080,"xamarin":985157,"xml":984512,"xmpp":985087,"yahoo":985935,"yeast":984513,"yin-yang":984704,"yoga":987516,"youtube":984515,"youtube-gaming":985160,"youtube-studio":985159,"youtube-subscription":986432,"youtube-tv":984136,"yurt":988438,"z-wave":985834,"zend":985835,"zigbee":986433,"zip-box":984516,"zip-box-outline":987130,"zip-disk":985635,"zodiac-aquarius":985725,"zodiac-aries":985726,"zodiac-cancer":985727,"zodiac-capricorn":985728,"zodiac-gemini":985729,"zodiac-leo":985730,"zodiac-libra":985731,"zodiac-pisces":985732,"zodiac-sagittarius":985733,"zodiac-scorpio":985734,"zodiac-taurus":985735,"zodiac-virgo":985736,"blank":63116}'),"material-community",re)},26419:(e,t,n)=>{"use strict";var r=n(58068),i=n(69675),o=n(25767),a=n(64097);e.exports=function(e){var t=o(e);if(!t)throw new i("Assertion failed: `O` must be a TypedArray");var n=a.name["$"+t];if("string"!=typeof n)throw new r("Assertion failed: Unknown TypedArray type `"+t+"`");return n}},26577:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII="},26673:(e,t,n)=>{"use strict";var r=n(52376),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=a[u]:u<2048?l+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?l+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r{"use strict";e.exports=n.p+"4ebf1acf62f447ea2f0d.ttf"},27085:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAQAAABIkb+zAAAAlklEQVR4Ae3a1REDMRDG4A3VmHbcUFLigf0exn/mkxuQjmELAAAAAD5Eq5atP6+rZeuPhGz9kZCtPxKy9fs6Zuuf60CfPn369OnTp0+fPn369OnTfx36X1vh+nO6/pytL+D1BCexy+iNhFPt6/dIOEiQIEGCBAkSJEiQ8B0k+PwoQYKhP2OXAYOvRo+vD38bvwcAAACABXF8ILs1PQqpAAAAAElFTkSuQmCC"},27149:(e,t,n)=>{"use strict";var r=n(69675),i=n(25910),o=n(84670),a=n(37070),s=n(19511);e.exports=function(e,t){var n=a(e);if(!o(e)&&!n)throw new r("Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer");if("SEQ-CST"!==t&&"UNORDERED"!==t)throw new r("Assertion failed: `order` must be ~SEQ-CST~ or ~UNORDERED~");if(i(e))throw new r("Assertion failed: `arrayBuffer` must not be detached");return s(e)}},27290:function(e){var t;t=function(){return function(){var e={"./packages/@logrocket/console/src/index.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("./packages/@logrocket/console/src/registerConsole.js")).default;t.default=i},"./packages/@logrocket/console/src/registerConsole.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[];return["log","warn","info","error","debug"].forEach((function(n){t.push((0,o.default)(console,n,(function(){for(var t=arguments.length,r=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},o=t.isEnabled;return"object"===(0,i.default)(o)&&!1===o[n]||!1===o?null:("error"===n&&t.shouldAggregateConsoleErrors&&a.Capture.captureMessage(e,r[0],r,{},!0),{logLevel:n.toUpperCase(),args:r})}))})))})),function(){t.forEach((function(e){return e()}))}};var i=r(n("./node_modules/@babel/runtime/helpers/typeof.js")),o=r(n("./packages/@logrocket/utils/src/enhanceFunc.js")),a=n("./packages/@logrocket/exceptions/src/index.js")},"./packages/@logrocket/exceptions/src/Capture.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.captureMessage=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i={exceptionType:arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"CONSOLE":"MESSAGE",message:t,messageArgs:n,browserHref:window.location?window.location.href:""};l(i,r),e.addEvent("lr.core.Exception",(function(){return i}))},t.captureException=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:null)||o.default.computeStackTrace(t),i={exceptionType:"WINDOW",errorType:r.name,message:r.message,browserHref:window.location?window.location.href:""};l(i,n);var s={_stackTrace:(0,a.default)(r)};e.addEvent("lr.core.Exception",(function(){return i}),s)};var i=r(n("./node_modules/@babel/runtime/helpers/typeof.js")),o=r(n("./packages/@logrocket/utils/src/TraceKit.js")),a=r(n("./packages/@logrocket/exceptions/src/stackTraceFromError.js"));function s(e){return/boolean|number|string/.test((0,i.default)(e))}function l(e,t){if(t){for(var n=0,r=["level","logger"];n2?r-2:0),l=2;l=0&&a.splice(t,1)}},clear:function(){a=[]}};t.default=u},"./packages/@logrocket/network/src/index.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isReactNative:!1},n=t.isReactNative,r=t.shouldAugmentNPS,i=t.shouldParseXHRBlob,h={},f=function(e){var t=e;if("object"===(0,o.default)(e)&&null!=e){var n=Object.getPrototypeOf(e);n!==Object.prototype&&null!==n||(t=JSON.stringify(e))}if(t&&t.length&&t.length>4096e3&&"string"==typeof t){var r=t.substring(0,1e3);return"".concat(r," ... LogRocket truncating to first 1000 characters.\n Keep data under 4MB to prevent truncation. https://docs.logrocket.com/reference/network")}return e},p=function(t,n){var r=n.method;e.addEvent("lr.network.RequestEvent",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.isEnabled,o=void 0===i||i,a=e.requestSanitizer,s=void 0===a?function(e){return e}:a;if(!o)return null;var l=null;try{l=s(d(d({},n),{},{reqId:t}))}catch(e){console.error(e)}if(l){var c=l.url;if("undefined"!=typeof document&&"function"==typeof document.createElement){var p=document.createElement("a");p.href=l.url,c=p.href}return{reqId:t,url:c,headers:(0,u.default)(l.headers,(function(e){return"".concat(e)})),body:f(l.body),method:r,referrer:l.referrer||void 0,mode:l.mode||void 0,credentials:l.credentials||void 0}}return h[t]=!0,null}))},m=function(t,n){var r=n.method,i=n.status;e.addEvent("lr.network.ResponseEvent",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=e.isEnabled,a=void 0===o||o,s=e.responseSanitizer,l=void 0===s?function(e){return e}:s;if(!a)return null;if(h[t])return delete h[t],null;var c=null;try{c=l(d(d({},n),{},{reqId:t}))}catch(e){console.error(e)}return c?{reqId:t,status:c.status,headers:(0,u.default)(c.headers,(function(e){return"".concat(e)})),body:f(c.body),method:r}:{reqId:t,status:i,headers:{},body:null,method:r}}))},g=function(t){return e.isDisabled||!0===h[t]},y=(0,a.default)({addRequest:p,addResponse:m,isIgnored:g}),v=(0,c.default)({addRequest:p,addResponse:m,isIgnored:g,logger:e,shouldAugmentNPS:r,shouldParseXHRBlob:i}),b=(0,s.registerIonic)({addRequest:p,addResponse:m,isIgnored:g}),A=n?function(){}:(0,l.default)(e);return function(){A(),y(),v(),b()}};var i=r(n("./node_modules/@babel/runtime/helpers/defineProperty.js")),o=r(n("./node_modules/@babel/runtime/helpers/typeof.js")),a=r(n("./packages/@logrocket/network/src/registerFetch.js")),s=n("./packages/@logrocket/network/src/registerIonic.ts"),l=r(n("./packages/@logrocket/network/src/registerNetworkInformation.js")),c=r(n("./packages/@logrocket/network/src/registerXHR.js")),u=r(n("./packages/@logrocket/utils/src/mapValues.js"));function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t1?n-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{};return{url:e.url,headers:c(e.headers),method:e.method&&e.method.toUpperCase(),referrer:e.referrer||void 0,mode:e.mode||void 0,credentials:e.credentials||void 0}}},"./packages/@logrocket/network/src/registerIonic.ts":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.mergeHeaders=C,t.serializeQueryParams=function(e,t){return T("",e,t)},t.appendQueryParamsString=I,t.processData=O,t.registerIonic=function(e){var t,n,r,i=e.addRequest,o=e.addResponse,a=e.isIgnored,l=null===(t=window.cordova)||void 0===t||null===(n=t.plugin)||void 0===n?void 0:n.http,c={},u=!1;if(void 0===l)return function(){};var g=null===(r=window.ionic)||void 0===r?void 0:r.platforms;if(void 0!==g&&"function"==typeof g.some&&g.some((function(e){return m.has(e)})))return function(){};var y=l.sendRequest,A=(0,s.default)((function(e,t,n){if(!a("".concat(p).concat(n)))try{var r={url:e.url||"",status:e.status<600&&e.status>=100?e.status:0,headers:e.headers||{},body:t?e.data:e.error,method:c[n].toUpperCase()};o("".concat(p).concat(n),r)}catch(t){var i={url:e.url||"",status:e.status<600&&e.status>=100?e.status:0,headers:e.headers||{},body:"LogRocket fetch error: ".concat(t.message),method:c[n].toUpperCase()};o("".concat(p).concat(n),i)}}));return l.sendRequest=function(e,t,n,r){var o=++R;if(!u)try{var a=function(e,t){var n,r=(e=e||{}).data;try{n=x(d,e.serializer||t.getDataSerializer(),"serializer / data payload type")}catch(i){n=x(f,e.serializer||t.getDataSerializer(),"serializer / data payload type"),r={}}return{data:r,filePath:e.filePath,followRedirect:e.followRedirect,headers:w(e.headers||{},v,"Invalid header type, must be string"),method:x(h,e.method||h[0],"method"),name:e.name,params:w(e.params||{},b,"Invalid param, must be of type string or array"),responseType:e.responseType,serializer:n,connectTimeout:e.connectTimeout,readTimeout:e.readTimeout,timeout:e.timeout}}(t,l),s=I(e,T("",a.params,!0)),m=function(e,t,n){var r=n.getHeaders("*")||{},i=function(e,t){var n=new URL(e).host;return t.getHeaders(n)||null}(e,n)||{};return C(C(r,i),t)}(e,a.headers,l),g=a.method||"get";c[o]=g;var S={url:s,method:g.toUpperCase(),headers:m||{},body:O(a.data||{},a.serializer)};i("".concat(p).concat(o),S)}catch(n){var E={url:e,method:(t.method||"get").toUpperCase(),headers:{},body:"LogRocket fetch error: ".concat(n.message)};i("".concat(p).concat(o),E)}return y(e,t,(function(e){u||(A(e,!0,o),delete c[o]),n(e)}),(function(e){u||(A(e,!1,o),delete c[o]),r(e)}))},function(){u=!0,l.sendRequest=y,c={}}};var i=r(n("./node_modules/@babel/runtime/helpers/defineProperty.js")),o=r(n("./node_modules/@babel/runtime/helpers/typeof.js")),a=r(n("./node_modules/@babel/runtime/helpers/toConsumableArray.js")),s=r(n("./packages/@logrocket/utils/src/protectFunc.js"));function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;Array.isArray(s)?i.push(k("".concat(e,"[]"),s,n)):"object"!==(0,o.default)(s)?i.push("".concat(E(e,"",n),"=").concat(S(s,n))):i.push(T("".concat(e,"[]").concat(s),n,void 0))}}catch(e){a.e(e)}finally{a.f()}return i.join("&")}function T(e,t,n){var r=[];for(var i in t)if(t.hasOwnProperty(i)){var a=e.length?"".concat(e,"[").concat(i,"]"):i;Array.isArray(t[i])?r.push(k(a,t[i],n)):"object"!==(0,o.default)(t[i])||null===t[i]?r.push("".concat(E(e,i,n),"=").concat(S(t[i],n))):r.push(T(a,t[i],n))}return r.join("&")}function I(e,t){if(!e.length||!t.length)return e;var n=new URL(e),r=n.host,i=n.pathname,o=n.search,a=n.hash,s=n.protocol;return"".concat(s,"//").concat(r).concat(i).concat(o.length?"".concat(o,"&").concat(t):"?".concat(t)).concat(a)}function O(e,t){var r=(0,o.default)(e),i=function(e){return A[e]||A.default}(t),s=function(e){return"multipart"===e?g:y}(t);if(s.size>0){var l=!1;if(s.forEach((function(t){n.g[t]&&e instanceof n.g[t]&&(l=!0)})),!l)throw new Error("INSTANCE_TYPE_MISMATCH_DATA ".concat((0,a.default)(s).join(", ")))}if(0===s.size&&!i.has(r))throw new Error("TYPE_MISMATCH_DATA ".concat((0,a.default)(i).join(", ")));return"utf8"===t?e:JSON.stringify(e,void 0,2)}var R=0},"./packages/@logrocket/network/src/registerNetworkInformation.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0;function r(){var r={online:window.navigator.onLine,effectiveType:"UNKOWN"};window.navigator.onLine?window.navigator.connection&&window.navigator.connection.effectiveType&&(r.effectiveType=n[window.navigator.connection.effectiveType]||"UNKNOWN"):r.effectiveType="NONE",t&&r.online===t.online&&r.effectiveType===t.effectiveType||(t=r,e.addEvent("lr.network.NetworkStatusEvent",(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).isEnabled;return void 0===e||e?r:null})))}return setTimeout(r),window.navigator.connection&&"function"==typeof window.navigator.connection.addEventListener&&window.navigator.connection.addEventListener("change",r),window.addEventListener("online",r),window.addEventListener("offline",r),function(){window.removeEventListener("offline",r),window.removeEventListener("online",r),window.navigator.connection&&"function"==typeof window.navigator.connection.removeEventListener&&window.navigator.connection.removeEventListener("change",r)}};var n={"slow-2g":"SLOW2G","2g":"TWOG","3g":"THREEG","4g":"FOURG"}},"./packages/@logrocket/network/src/registerXHR.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.setActive=function(e){l=e},t.default=function(e){var t=e.addRequest,n=e.addResponse,r=e.isIgnored,u=e.logger,h=e.shouldAugmentNPS,d=void 0===h||h,f=e.shouldParseXHRBlob,p=void 0!==f&&f,m=XMLHttpRequest,g=new WeakMap,y=!1,v="xhr-";return window._lrXMLHttpRequest=XMLHttpRequest,XMLHttpRequest=function(e,h){var f=new m(e,h);if(!l)return f;g.set(f,{xhrId:++c,headers:{}});var b=f.open,A=f.send;d&&(f.open=function(){for(var e=arguments.length,t=new Array(e),n=0;n")),t[1]=o.href}}catch(e){}return b.apply(this,t)},f.send=function(){for(var e=arguments.length,t=new Array(e),n=0;n")}return e})).join("&");t[0]=l}}catch(e){}return A.apply(this,t)}),(0,o.default)(f,"open",(function(e,t){if(!y){var n=g.get(f);n.method=e,n.url=t}})),(0,o.default)(f,"send",(function(e){if(!y){var n=g.get(f);if(n){var r={url:n.url,method:n.method&&n.method.toUpperCase(),headers:(0,i.default)(n.headers||{},(function(e){return e.join(", ")})),body:e};t("".concat(v).concat(n.xhrId),r)}}})),(0,o.default)(f,"setRequestHeader",(function(e,t){if(!y){var n=g.get(f);n&&(n.headers=n.headers||{},n.headers[e]=n.headers[e]||[],n.headers[e].push(t))}}));var x={readystatechange:function(){if(!y&&4===f.readyState){var e=g.get(f);if(!e)return;if(r("".concat(v).concat(e.xhrId)))return;var t,i=(f.getAllResponseHeaders()||"").split(/[\r\n]+/).reduce((function(e,t){var n=e,r=t.split(": ");if(r.length>0){var i=r.shift(),o=r.join(": ");e[i]?n[i]+=", ".concat(o):n[i]=o}return n}),{});try{switch(f.responseType){case"json":t=u._shouldCloneResponse?JSON.parse(JSON.stringify(f.response)):f.response;break;case"arraybuffer":case"blob":t=f.response;break;case"document":t=f.responseXML;break;case"text":case"":t=f.responseText;break;default:t=""}}catch(e){t="LogRocket: Error accessing response."}var o={url:e.url,status:f.status,headers:i,body:t,method:(e.method||"").toUpperCase()};if(p&&o.body instanceof Blob){var a=new FileReader;a.readAsText(o.body),a.onload=function(){try{o.body=JSON.parse(a.result)}catch(e){}n("".concat(v).concat(e.xhrId),o)}}else n("".concat(v).concat(e.xhrId),o)}}};return Object.keys(x).forEach((function(e){f.addEventListener(e,x[e])})),f},XMLHttpRequest.prototype=m.prototype,["UNSENT","OPENED","HEADERS_RECEIVED","LOADING","DONE"].forEach((function(e){XMLHttpRequest[e]=m[e]})),function(){y=!0,XMLHttpRequest=m}};var i=r(n("./packages/@logrocket/utils/src/mapValues.js")),o=r(n("./packages/@logrocket/utils/src/enhanceFunc.js")),a=r(n("./packages/@logrocket/utils/src/startsWith.js")),s=n("./packages/@logrocket/utils/src/constants/nps.js"),l=!0,c=0},"./packages/@logrocket/now/src/index.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=Date.now.bind(Date),r=n(),i="undefined"!=typeof performance&&performance.now?performance.now.bind(performance):function(){return n()-r};t.default=i},"./packages/@logrocket/redux/src/createEnhancer.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.stateSanitizer,r=void 0===n?function(e){return e}:n,i=t.actionSanitizer,a=void 0===i?function(e){return e}:i;return function(t){return function(n,i,c){var u=t(n,i,c),h=u.dispatch,d=l++;return e.addEvent("lr.redux.InitialState",(function(){var e;try{e=r(u.getState())}catch(e){console.error(e.toString())}return{state:e,storeId:d}})),s(s({},u),{},{dispatch:function(t){var n,i,s=(0,o.default)();try{i=h(t)}catch(e){n=e}finally{var l=(0,o.default)()-s;e.addEvent("lr.redux.ReduxAction",(function(){var e=null,n=null;try{e=r(u.getState()),n=a(t)}catch(e){console.error(e.toString())}return e&&n?{storeId:d,action:n,duration:l,stateDelta:e}:null}))}if(n)throw n;return i}})}}};var i=r(n("./node_modules/@babel/runtime/helpers/defineProperty.js")),o=r(n("./packages/@logrocket/now/src/index.js"));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.stateSanitizer,r=void 0===n?function(e){return e}:n,a=t.actionSanitizer,s=void 0===a?function(e){return e}:a;return function(t){var n=o++;return e.addEvent("lr.redux.InitialState",(function(){var e;try{e=r(t.getState())}catch(e){console.error(e.toString())}return{state:e,storeId:n}})),function(o){return function(a){var l,c,u=(0,i.default)();try{c=o(a)}catch(e){l=e}finally{var h=(0,i.default)()-u;e.addEvent("lr.redux.ReduxAction",(function(){var e=null,i=null;try{e=r(t.getState()),i=s(a)}catch(e){console.error(e.toString())}return e&&i?{storeId:n,action:i,duration:h,stateDelta:e}:null}))}if(l)throw l;return c}}}};var i=r(n("./packages/@logrocket/now/src/index.js")),o=0},"./packages/@logrocket/redux/src/index.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createEnhancer",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"createMiddleware",{enumerable:!0,get:function(){return o.default}});var i=r(n("./packages/@logrocket/redux/src/createEnhancer.js")),o=r(n("./packages/@logrocket/redux/src/createMiddleware.js"))},"./packages/@logrocket/utils/src/TraceKit.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={collectWindowErrors:!0,debug:!1},i="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},o=[].slice,a="?",s=/^(?:Uncaught (?:exception: )?)?((?:Eval|Internal|Range|Reference|Syntax|Type|URI)Error): ?(.*)$/;function l(){return"undefined"==typeof document||void 0===document.location?"":document.location.href}r.report=function(){var e,t,n=[],c=null,u=null,h=null;function d(e,t){var i=null;if(!t||r.collectWindowErrors){for(var a in n)if(n.hasOwnProperty(a))try{n[a].apply(null,[e].concat(o.call(arguments,2)))}catch(e){i=e}if(i)throw i}}function f(t,n,i,o,c){if(h)r.computeStackTrace.augmentStackTraceWithInitialElement(h,n,i,t),p();else if(c)d(r.computeStackTrace(c),!0);else{var u,f={url:n,line:i,column:o},m=void 0,g=t;"[object String]"==={}.toString.call(t)&&(u=t.match(s))&&(m=u[1],g=u[2]),f.func=a,d({name:m,message:g,url:l(),stack:[f]},!0)}return!!e&&e.apply(this,arguments)}function p(){var e=h,t=c;c=null,h=null,u=null,d.apply(null,[e,!1].concat(t))}function m(e,t){var n=o.call(arguments,1);if(h){if(u===e)return;p()}var i=r.computeStackTrace(e);if(h=i,u=e,c=n,setTimeout((function(){u===e&&p()}),i.incomplete?2e3:0),!1!==t)throw e}return m.subscribe=function(r){t||(e=i.onerror,i.onerror=f,t=!0),n.push(r)},m.unsubscribe=function(e){for(var t=n.length-1;t>=0;--t)n[t]===e&&n.splice(t,1)},m.uninstall=function(){t&&(i.onerror=e,t=!1,e=void 0),n=[]},m}(),r.computeStackTrace=function(){function e(e){if(void 0!==e.stack&&e.stack){for(var t,n,r=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|resource|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,s=e.stack.split("\n"),c=[],u=(/^(.*) is undefined$/.exec(e.message),0),h=s.length;u0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,!1}return e.stack.unshift(i),e.partial=!0,!0}return e.incomplete=!0,!1}function n(e,o){for(var s,c,u=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,h=[],d={},f=!1,p=n.caller;p&&!f;p=p.caller)if(p!==i&&p!==r.report){if(c={url:null,func:a,line:null,column:null},p.name?c.func=p.name:(s=u.exec(p.toString()))&&(c.func=s[1]),void 0===c.func)try{c.func=s.input.substring(0,s.input.indexOf("{"))}catch(e){}d[""+p]?f=!0:d[""+p]=!0,h.push(c)}o&&h.splice(0,o);var m={name:e.name,message:e.message,url:l(),stack:h};return t(m,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),m}function i(t,i){var o=null;i=null==i?0:+i;try{if(o=e(t))return o}catch(e){if(r.debug)throw e}try{if(o=n(t,i+1))return o}catch(e){if(r.debug)throw e}return{name:t.name,message:t.message,url:l()}}return i.augmentStackTraceWithInitialElement=t,i.computeStackTraceFromStackProp=e,i}();var c=r;t.default=c},"./packages/@logrocket/utils/src/constants/nps.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DELIGHTED_FEEDBACK_PREFIX=t.DELIGHTED_RESPONSES_REGEX=t.WOOTRIC_RESPONSES_REGEX=void 0,t.WOOTRIC_RESPONSES_REGEX=/^https:\/\/production.wootric.com\/responses/,t.DELIGHTED_RESPONSES_REGEX=/^https:\/\/web.delighted.com\/e\/[a-zA-Z-]*\/c/,t.DELIGHTED_FEEDBACK_PREFIX="comment="},"./packages/@logrocket/utils/src/enhanceFunc.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=e[t];return e[t]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:function(){};return function(){var n;try{n=e.apply(void 0,arguments)}catch(e){if("undefined"!=typeof window&&window._lrdebug)throw e;var r=t(e);(0,o.default)("LogRocket",e),(0,i.default)(e,r)}return n}};var i=r(n("./packages/@logrocket/utils/src/sendTelemetryData.js")),o=r(n("./packages/@logrocket/utils/src/logError.js"))},"./packages/@logrocket/utils/src/sendTelemetryData.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.sendTelemetry=function(e,t){"undefined"!=typeof window&&window._lrdebug?(0,o.default)(e):t&&t.extra&&t.extra.appID&&"function"==typeof t.extra.appID.indexOf&&0===t.extra.appID.indexOf("au2drp/")&&Math.random()>=.25||u(l({message:e},t))},t.default=function(e,t){try{var n,r,i=e.message;try{n=JSON.stringify(t).slice(0,1e3)}catch(e){try{n="Could not stringify payload: ".concat(Object.prototype.toString.call(t))}catch(e){}}try{r=a.default.computeStackTrace(e).stack.map((function(e){return{filename:e.url,lineno:e.line,colno:e.column,function:e.func||"?"}}))}catch(e){}u({message:i,extra:{stringPayload:n},exception:{values:[{type:e.type,value:i,stacktrace:{frames:r}}]}})}catch(e){(0,o.default)("Failed to send",e)}};var i=r(n("./node_modules/@babel/runtime/helpers/defineProperty.js")),o=r(n("./packages/@logrocket/utils/src/logError.js")),a=r(n("./packages/@logrocket/utils/src/TraceKit.js"));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:0;return e&&t&&e.substring(n,n+t.length)===t}},"./packages/logrocket/src/LogRocket.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MAX_QUEUE_SIZE=void 0;var i=r(n("./node_modules/@babel/runtime/helpers/classCallCheck.js")),o=r(n("./node_modules/@babel/runtime/helpers/createClass.js")),a=r(n("./node_modules/@babel/runtime/helpers/defineProperty.js")),s=r(n("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),l=r(n("./packages/@logrocket/network/src/index.js")),c=n("./packages/@logrocket/exceptions/src/index.js"),u=r(n("./packages/@logrocket/console/src/index.js")),h=n("./packages/@logrocket/redux/src/index.js");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).shouldAggregateConsoleErrors&&c.Capture.captureMessage(t,r[0],r,{},!0),{logLevel:e.toUpperCase(),args:r}}),{shouldCaptureStackTrace:!0})}})),this._isInitialized=!1,this._installed=[],window._lr_surl_cb=this.getSessionURL.bind(this)}return(0,o.default)(e,[{key:"addEvent",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Date.now();this._run((function(i){i.addEvent(e,t,f(f({},n),{},{timeOverride:r}))}))}},{key:"onLogger",value:function(e){for(this._logger=e;this._buffer.length>0;)this._buffer.shift()(this._logger)}},{key:"_run",value:function(e){if(!this._isDisabled)if(this._logger)e(this._logger);else{if(this._buffer.length>=1e3)return this._isDisabled=!0,console.warn("LogRocket: script did not load. Check that you have a valid network connection."),void this.uninstall();this._buffer.push(e.bind(this))}}},{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._isInitialized){var n=t.shouldAugmentNPS,r=void 0===n||n,i=t.shouldParseXHRBlob,o=void 0!==i&&i,a=t.shouldDetectExceptions;(void 0===a||a)&&this._installed.push((0,c.registerExceptions)(this)),this._installed.push((0,l.default)(this,{shouldAugmentNPS:!!r,shouldParseXHRBlob:!!o})),this._installed.push((0,u.default)(this)),this._isInitialized=!0,this._run((function(n){n.init(e,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ingestServer,n=(0,s.default)(e,["ingestServer"]);return t?f({serverURL:"".concat(t,"/i"),statsURL:"".concat(t,"/s")},n):n}(t))}))}}},{key:"start",value:function(){this._run((function(e){e.start()}))}},{key:"uninstall",value:function(){this._installed.forEach((function(e){return e()})),this._buffer=[],this._run((function(e){e.uninstall()}))}},{key:"identify",value:function(e,t){this._run((function(n){n.identify(e,t)}))}},{key:"startNewSession",value:function(){this._run((function(e){e.startNewSession()}))}},{key:"track",value:function(e,t){this._run((function(n){n.track(e,t)}))}},{key:"getSessionURL",value:function(e){if("function"!=typeof e)throw new Error("LogRocket: must pass callback to getSessionURL()");this._run((function(t){t.getSessionURL?t.getSessionURL(e):e(t.recordingURL)}))}},{key:"getVersion",value:function(e){this._run((function(t){e(t.version)}))}},{key:"captureMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c.Capture.captureMessage(this,e,[e],t)}},{key:"captureException",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c.Capture.captureException(this,e,t)}},{key:"version",get:function(){return this._logger&&this._logger.version}},{key:"sessionURL",get:function(){return this._logger&&this._logger.recordingURL}},{key:"recordingURL",get:function(){return this._logger&&this._logger.recordingURL}},{key:"recordingID",get:function(){return this._logger&&this._logger.recordingID}},{key:"threadID",get:function(){return this._logger&&this._logger.threadID}},{key:"tabID",get:function(){return this._logger&&this._logger.tabID}},{key:"reduxEnhancer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,h.createEnhancer)(this,e)}},{key:"reduxMiddleware",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,h.createMiddleware)(this,e)}},{key:"isDisabled",get:function(){return!!(this._isDisabled||this._logger&&this._logger._isDisabled)}}]),e}();t.default=p},"./packages/logrocket/src/makeLogRocket.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};if("undefined"!=typeof navigator&&"ReactNative"===navigator.product)throw new Error(o);if("undefined"!=typeof window){if(window._disableLogRocket)return a();if(window.MutationObserver&&window.WeakMap){window._lrMutationObserver=window.MutationObserver;var t=new i.default;return e(t),t}}return a()};var i=r(n("./packages/logrocket/src/LogRocket.js")),o="LogRocket does not yet support React Native.",a=function(){return{init:function(){},uninstall:function(){},log:function(){},info:function(){},warn:function(){},error:function(){},debug:function(){},addEvent:function(){},identify:function(){},start:function(){},get threadID(){return null},get recordingID(){return null},get recordingURL(){return null},reduxEnhancer:function(){return function(e){return function(){return e.apply(void 0,arguments)}}},reduxMiddleware:function(){return function(){return function(e){return function(t){return e(t)}}}},track:function(){},getSessionURL:function(){},getVersion:function(){},startNewSession:function(){},onLogger:function(){},setClock:function(){},captureMessage:function(){},captureException:function(){}}}},"./packages/logrocket/src/setup.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.enterpriseServer,r=t.sdkVersion,s=void 0===r?"4.0.4":r,l=(0,i.default)(t,["enterpriseServer","sdkVersion"]),c="https://cdn.logrocket.io";if("script"===s)try{var u=document.currentScript.src.match(/^(https?:\/\/([^\\]+))\/.+$/),h=u&&u[2];h&&a[h]&&(c=u&&u[1],e=a[h])}catch(e){}else c="https://cdn.lr-ingest.com",e="https://r.lr-ingest.com";var d=l.sdkServer||n,f=l.ingestServer||n||e,p=(0,o.default)((function(){var e=document.createElement("script");f&&(void 0===window.__SDKCONFIG__&&(window.__SDKCONFIG__={}),window.__SDKCONFIG__.serverURL="".concat(f,"/i"),window.__SDKCONFIG__.statsURL="".concat(f,"/s")),d?e.src="".concat(d,"/logger.min.js"):window.__SDKCONFIG__&&window.__SDKCONFIG__.loggerURL?e.src=window.__SDKCONFIG__.loggerURL:window._lrAsyncScript?e.src=window._lrAsyncScript:e.src="".concat(c,"/logger-1.min.js"),e.async=!0,document.head.appendChild(e),e.onload=function(){"function"==typeof window._LRLogger?p.onLogger(new window._LRLogger({sdkVersion:s})):(console.warn("LogRocket: script execution has been blocked by a product or service."),p.uninstall())},e.onerror=function(){console.warn("LogRocket: script could not load. Check that you have a valid network connection."),p.uninstall()}}));return p};var i=r(n("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),o=r(n("./packages/logrocket/src/makeLogRocket.js")),a={"cdn.logrocket.io":"https://r.logrocket.io","cdn.lr-ingest.io":"https://r.lr-ingest.io","cdn.lr-in.com":"https://r.lr-in.com","cdn.lr-in-prod.com":"https://r.lr-in-prod.com","cdn.lr-ingest.com":"https://r.lr-ingest.com","cdn-staging.logrocket.io":"https://staging-i.logrocket.io","cdn-staging.lr-ingest.io":"https://staging-i.lr-ingest.io","cdn-staging.lr-in.com":"https://staging-i.lr-in.com","cdn-staging.lr-in-prod.com":"https://staging-i.lr-in-prod.com","cdn-staging.lr-ingest.com":"https://staging-i.lr-ingest.com"}},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js":function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),i=n("./node_modules/@babel/runtime/helpers/iterableToArray.js"),o=n("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),a=n("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default,i=n("./node_modules/@babel/runtime/helpers/toPrimitive.js");e.exports=function(e){var t=i(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var r={};return function(){"use strict";var e=r,t=n("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(0,t(n("./packages/logrocket/src/setup.js")).default)();e.default=i}(),r.default}()},e.exports=t()},27671:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h=(e,t,n)=>(n=null!=e?i(l(e)):{},u(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{makeDecoder:()=>m,makeEncoder:()=>g,parseSchema:()=>y}),e.exports=(r=d,u(o({},"__esModule",{value:!0}),r));var f=h(n(59170)),p=h(n(92990));function m(e){return new f.default(y(e))}function g(e){return new p.default(y(e))}function y(e){const[t,...n]=e.trim().split(/\s+|\n/);if("1"===t)return n.reduce(((e,t,n)=>(n%2==0?e.push([t]):e.at(-1).push(t),e)),[]);throw new Error(`Unsupported schema version: ${t}`)}},27796:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(e){function t(t,n,r){var i=this.constructor,o=e.call(this,t)||this;return o.name=i.name,o.httpBody=n,o.httpStatus=r,Object.setPrototypeOf(o,i.prototype),o}return r.__extends(t,e),t}(Error);t.default=i},27881:e=>{"use strict";e.exports=function(e){return"BIGUINT64"===e||"BIGINT64"===e}},28131:(e,t,n)=>{"use strict";var r=n(69675),i=n(9957),o=n(55701);e.exports=function(e){if(void 0===e)return!1;if(!o(e))throw new r("Assertion failed: `Desc` must be a Property Descriptor");return!(!i(e,"[[Value]]")&&!i(e,"[[Writable]]"))}},28254:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(93268),o=r(n(29339)),a=n(16988),s=function(e){return i.isExtractableFile(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.default=function(e,t,n,r){void 0===r&&(r=a.defaultJsonSerializer);var l=i.extractFiles({query:e,variables:t,operationName:n},"",s),c=l.clone,u=l.files;if(0===u.size){if(!Array.isArray(e))return r.stringify(c);if(void 0!==t&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");var h=e.reduce((function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e}),[]);return r.stringify(h)}var d=new("undefined"==typeof FormData?o.default:FormData);d.append("operations",r.stringify(c));var f={},p=0;return u.forEach((function(e){f[++p]=e})),d.append("map",r.stringify(f)),p=0,u.forEach((function(e,t){d.append(""+ ++p,t)})),d}},28854:(e,t,n)=>{var r=n(8156),i=n(19872),o=Object.hasOwnProperty,a=Object.create(null);for(var s in r)o.call(r,s)&&(a[r[s]]=s);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,i,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=t[2],t=t[1],n=0;n<3;n++){var s=2*n;a[n]=parseInt(t.slice(s,s+2),16)}i&&(a[3]=parseInt(i,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=(t=t[1])[3],n=0;n<3;n++)a[n]=parseInt(t[n]+t[n],16);i&&(a[3]=parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=parseInt(t[n+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(r,t[1])?((a=r[t[1]])[3]=1,a):null:null;for(n=0;n<3;n++)a[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(n=0;n<3;n++)a[n]=c(a[n],0,255);return a[3]=c(a[3],0,1),a},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=i(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=i(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=i(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return a[e.slice(0,3)]}},28875:(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(1093),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{h(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m0)for(var g=0;g{"use strict";var r=n(70453)("%parseInt%"),i=n(71514),o=n(58968),a=n(98017),s=n(36556),l=s("String.prototype.indexOf"),c=s("String.prototype.slice"),u=n(99154),h=n(68213),d="11111111111",f="00000000000",p=f+f+f+f+"0000000";e.exports=function(e,t){var n,s,m=e<0||a(e)?"1":"0";if(isNaN(e))n=d,s="1"+p;else if(isFinite(e))if(0===e)n=f,s="0"+p;else{e=i(e);var g,y=o(e),v=h(y),b=u(e-y);if(v)n=v.length-1;else{var A=l(b,"1");A>-1&&(g=A+1),n=-g}s=v+b,n<0?(n<=-1023&&(g=1022),s=c(s,g)):s=c(s,1),n=c(f+h(n+1023),-11),s=c(s+p+"0",0,52)}else n=d,s="0"+p;for(var x=m+n+s,w=[],C=0;C<8;C++)w[t?8-C-1:C]=r(c(x,8*C,8*(C+1)),2);return w}},29026:function(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;var i=function(e){function t(n,r){var i=this,o=t.extractMessage(n)+": "+JSON.stringify({response:n,request:r});return i=e.call(this,o)||this,Object.setPrototypeOf(i,t.prototype),i.response=n,i.request=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return r(t,e),t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: "+e.status+")"}},t}(Error);t.ClientError=i},29110:e=>{"use strict";e.exports=function(){return Array.prototype.slice.call(arguments).reduceRight((function(e,t){return Object.keys(Object(t)).forEach((function(n){void 0!==t[n]&&(void 0!==e[n]&&delete e[n],e[n]=t[n])})),e}),{})}},29293:e=>{function t(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,o){var a=e.apply(n,r);function s(e){t(a,i,o,s,l,"next",e)}function l(e){t(a,i,o,s,l,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},29339:e=>{e.exports="object"==typeof self?self.FormData:window.FormData},29359:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(96540),i=n(40254),o=n(11804),a=n(86533),s=n(4078),l={accessibilityDisabled:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,children:!0,disabled:!0,focusable:!0,nativeID:!0,onBlur:!0,onFocus:!0,onLayout:!0,testID:!0};function c(e,t){(0,s.m)("TouchableWithoutFeedback","TouchableWithoutFeedback is deprecated. Please use Pressable.");var n=e.delayPressIn,c=e.delayPressOut,u=e.delayLongPress,h=e.disabled,d=e.focusable,f=e.onLongPress,p=e.onPress,m=e.onPressIn,g=e.onPressOut,y=e.rejectResponderTermination,v=(0,r.useRef)(null),b=(0,r.useMemo)((()=>({cancelable:!y,disabled:h,delayLongPress:u,delayPressStart:n,delayPressEnd:c,onLongPress:f,onPress:p,onPressStart:m,onPressEnd:g})),[h,n,c,u,f,p,m,g,y]),A=(0,a.A)(v,b),x=r.Children.only(e.children),w=[x.props.children],C=(e=>(0,i.A)(e,l))(e);C.accessibilityDisabled=h,C.focusable=!h&&!1!==d,C.ref=(0,o.A)(t,v,x.ref);var S=Object.assign(C,A);return r.cloneElement(x,S,...w)}var u=r.memo(r.forwardRef(c));u.displayName="TouchableWithoutFeedback";const h=u},29657:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inspect=function(e){return i(e,[])};const n=10,r=2;function i(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const o=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:i(t,o)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>r)return"[Array]";const o=Math.min(n,e.length),a=e.length-o,s=[];for(let n=0;n1&&s.push(`... ${a} more items`),"["+s.join(", ")+"]"}(e,o);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>r)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const o=n.map((([e,n])=>e+": "+i(n,t)));return"{ "+o.join(", ")+" }"}(e,o)}(e,t);default:return String(e)}}},29697:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(15725).A},29698:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(e,t,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),"key"in t)for(var o in r={},t)"key"!==o&&(r[o]=t[o]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:i,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=i,t.jsxs=i},29790:e=>{"use strict";var t="undefined"!=typeof BigInt&&BigInt;e.exports=function(){return"function"==typeof t&&"function"==typeof BigInt&&"bigint"==typeof t(42)&&"bigint"==typeof BigInt(42)}},29813:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.upsert=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){return[2,this.apiCall.put(this.endpointPath(e),t)]}))}))},e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/analytics/rules"},enumerable:!1,configurable:!0}),e}();t.default=i},29869:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var A=b.prototype=new v;A.constructor=b,m(A,y.prototype),A.isPureReactComponent=!0;var x=Array.isArray,w={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function S(e,t,r,i,o,a){return r=a.ref,{$$typeof:n,type:e,key:t,ref:void 0!==r?r:null,props:a}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var k=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function I(){}function O(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,c,u=!1;if(null===e)u=!0;else switch(s){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0;break;case d:return O((u=e._init)(e._payload),t,i,o,a)}}if(u)return a=a(e),u=""===o?"."+T(e,0):o,x(a)?(i="",null!=u&&(i=u.replace(k,"$&/")+"/"),O(a,t,i,"",(function(e){return e}))):null!=a&&(E(a)&&(l=a,c=i+(null==a.key||e&&e.key===a.key?"":(""+a.key).replace(k,"$&/")+"/")+u,a=S(l.type,c,void 0,0,0,l.props)),t.push(a)),1;u=0;var h,p=""===o?".":o+":";if(x(e))for(var m=0;m{e.exports=function(e){return function e(t){return Array.isArray(t)&&t.length&&"number"==typeof t[0]?[t]:t.reduce((function(t,n){return Array.isArray(n)&&Array.isArray(n[0])?t.concat(e(n)):(t.push(n),t)}),[])}(e)}},30041:(e,t,n)=>{"use strict";var r=n(30655),i=n(58068),o=n(69675),a=n(75795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],h=!!a&&a(e,t);if(r)r(e,t,{configurable:null===c&&h?h.configurable:!c,enumerable:null===s&&h?h.enumerable:!s,value:n,writable:null===l&&h?h.writable:!l});else{if(!u&&(s||l||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},30113:(e,t,n)=>{"use strict";e.exports=n(81350)},30454:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n)||[],r=1;r{"use strict";t.A=function(e,t,n,a){if("string"==typeof t&&s.hasOwnProperty(e)){var c=function(e,t){if((0,i.default)(e))return e;for(var n=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),o=0,a=n.length;o-1&&"order"!==h)for(var d=t[u],f=0,p=d.length;f-1)return u;var h=c.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter((function(e){return!/-webkit-|-ms-/.test(e)})).join(",");return e.indexOf("Moz")>-1?h:(n["Webkit"+(0,o.default)(e)]=u,n["Moz"+(0,o.default)(e)]=h,c)}};var r=a(n(65721)),i=a(n(44014)),o=a(n(77091));function a(e){return e&&e.__esModule?e:{default:e}}var s={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},l={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"}},30592:(e,t,n)=>{"use strict";var r=n(30655),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},30655:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},31081:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(r.__importDefault(n(27796)).default);t.default=i},31247:(e,t,n)=>{"use strict";var r=n(69982),i=n(96540),o=n(40961);function a(e){var t="https://react.dev/errors/"+e;if(1)":-1--i||l[r]!==c[i]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}}while(1<=r&&0<=i);break}}}finally{D=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?P(n):""}function B(e){switch(e.tag){case 26:case 27:case 5:return P(e.type);case 16:return P("Lazy");case 13:return P("Suspense");case 19:return P("SuspenseList");case 0:case 15:return j(e.type,!1);case 11:return j(e.type.render,!1);case 1:return j(e.type,!0);default:return""}}function L(e){try{var t="";do{t+=B(e),e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function F(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function N(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function _(e){if(F(e)!==e)throw Error(a(188))}function z(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=z(e)))return t;e=e.sibling}return null}var V=Array.isArray,U=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},q=[],G=-1;function Y(e){return{current:e}}function W(e){0>G||(e.current=q[G],q[G]=null,G--)}function Q(e,t){G++,q[G]=e.current,e.current=t}var X=Y(null),J=Y(null),Z=Y(null),K=Y(null);function $(e,t){switch(Q(Z,t),Q(J,e),Q(X,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Ju(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=Zu(e=Ju(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}W(X),Q(X,t)}function ee(){W(X),W(J),W(Z)}function te(e){null!==e.memoizedState&&Q(K,e);var t=X.current,n=Zu(t,e.type);t!==n&&(Q(J,e),Q(X,n))}function ne(e){J.current===e&&(W(X),W(J)),K.current===e&&(W(K),Lh._currentValue=H)}var re=Object.prototype.hasOwnProperty,ie=r.unstable_scheduleCallback,oe=r.unstable_cancelCallback,ae=r.unstable_shouldYield,se=r.unstable_requestPaint,le=r.unstable_now,ce=r.unstable_getCurrentPriorityLevel,ue=r.unstable_ImmediatePriority,he=r.unstable_UserBlockingPriority,de=r.unstable_NormalPriority,fe=r.unstable_LowPriority,pe=r.unstable_IdlePriority,me=r.log,ge=r.unstable_setDisableYieldValue,ye=null,ve=null;function be(e){if("function"==typeof me&&ge(e),ve&&"function"==typeof ve.setStrictMode)try{ve.setStrictMode(ye,e)}catch(e){}}var Ae=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(xe(e)/we|0)|0},xe=Math.log,we=Math.LN2,Ce=128,Se=4194304;function Ee(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ke(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=e.warmLanes;e=0!==e.finishedLanes;var s=134217727&n;return 0!==s?0!=(n=s&~i)?r=Ee(n):0!=(o&=s)?r=Ee(o):e||0!=(a=s&~a)&&(r=Ee(a)):0!=(s=n&~i)?r=Ee(s):0!==o?r=Ee(o):e||0!=(a=n&~a)&&(r=Ee(a)),0===r?0:0===t||t===r||t&i||!((i=r&-r)>=(a=t&-t)||32===i&&4194176&a)?r:t}function Te(e,t){return!(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ie(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Oe(){var e=Ce;return!(4194176&(Ce<<=1))&&(Ce=128),e}function Re(){var e=Se;return!(62914560&(Se<<=1))&&(Se=4194304),e}function Me(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pe(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function De(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ae(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function je(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ae(n),i=1<=wn),En=String.fromCharCode(32),kn=!1;function Tn(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function In(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var On=!1,Rn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Rn[e.type]:"textarea"===t}function Pn(e,t,n,r){Pt?Dt?Dt.push(r):Dt=[r]:Pt=r,0<(t=Lu(t,"onChange")).length&&(n=new Kt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Dn=null,jn=null;function Bn(e){Iu(e,0)}function Ln(e){if(dt(Xe(e)))return e}function Fn(e,t){if("change"===e)return t}var Nn=!1;if(nt){var _n;if(nt){var zn="oninput"in document;if(!zn){var Vn=document.createElement("div");Vn.setAttribute("oninput","return;"),zn="function"==typeof Vn.oninput}_n=zn}else _n=!1;Nn=_n&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Jn(r)}}function Kn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Kn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function $n(e){for(var t=ft((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ft((e=t.contentWindow).document)}return t}function er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function tr(e,t){var n=$n(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Kn(t.ownerDocument.documentElement,t)){if(null!==r&&er(t))if(e=r.start,void 0===(n=r.end)&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if((n=(e=t.ownerDocument||document)&&e.defaultView||window).getSelection){n=n.getSelection();var i=t.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!n.extend&&o>r&&(i=r,r=o,o=i),i=Zn(t,o);var a=Zn(t,r);i&&a&&(1!==n.rangeCount||n.anchorNode!==i.node||n.anchorOffset!==i.offset||n.focusNode!==a.node||n.focusOffset!==a.offset)&&((e=e.createRange()).setStart(i.node,i.offset),n.removeAllRanges(),o>r?(n.addRange(e),n.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),n.addRange(e)))}for(e=[],n=t;n=n.parentNode;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for("function"==typeof t.focus&&t.focus(),t=0;t=document.documentMode,rr=null,ir=null,or=null,ar=!1;function sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ar||null==rr||rr!==ft(r)||(r="selectionStart"in(r=rr)&&er(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},or&&Xn(or,r)||(or=r,0<(r=Lu(ir,"onSelect")).length&&(t=new Kt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rr)))}function lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var cr={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},ur={},hr={};function dr(e){if(ur[e])return ur[e];if(!cr[e])return e;var t,n=cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in hr)return ur[e]=n[t];return e}nt&&(hr=document.createElement("div").style,"AnimationEvent"in window||(delete cr.animationend.animation,delete cr.animationiteration.animation,delete cr.animationstart.animation),"TransitionEvent"in window||delete cr.transitionend.transition);var fr=dr("animationend"),pr=dr("animationiteration"),mr=dr("animationstart"),gr=dr("transitionrun"),yr=dr("transitionstart"),vr=dr("transitioncancel"),br=dr("transitionend"),Ar=new Map,xr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function wr(e,t){Ar.set(e,t),et(t,[e])}var Cr=[],Sr=0,Er=0;function kr(){for(var e=Sr,t=Er=Sr=0;t>=a,i-=a,Ur=1<<32-Ae(t)+i|n<d?(f=h,h=null):f=h.sibling;var p=y(i,h,s[d],l);if(null===p){null===h&&(h=f);break}e&&h&&null===p.alternate&&t(i,h),a=o(p,a,d),null===u?c=p:u.sibling=p,u=p,h=f}if(d===s.length)return n(i,h),Jr&&qr(i,d),c;if(null===h){for(;df?(p=d,d=null):p=d.sibling;var b=y(i,d,g.value,c);if(null===b){null===d&&(d=p);break}e&&d&&null===b.alternate&&t(i,d),s=o(b,s,f),null===h?u=b:h.sibling=b,h=b,d=p}if(g.done)return n(i,d),Jr&&qr(i,f),u;if(null===d){for(;!g.done;f++,g=l.next())null!==(g=m(i,g.value,c))&&(s=o(g,s,f),null===h?u=g:h.sibling=g,h=g);return Jr&&qr(i,f),u}for(d=r(d);!g.done;f++,g=l.next())null!==(g=v(d,i,f,g.value,c))&&(e&&null!==g.alternate&&d.delete(null===g.key?f:g.key),s=o(g,s,f),null===h?u=g:h.sibling=g,h=g);return e&&d.forEach((function(e){return t(i,e)})),Jr&&qr(i,f),u}(l,d,f=A.call(f),p)}if("function"==typeof f.then)return b(l,d,gi(f),p);if(f.$$typeof===g)return b(l,d,ks(l,f),p);vi(l,f)}return"string"==typeof f&&""!==f||"number"==typeof f||"bigint"==typeof f?(f=""+f,null!==d&&6===d.tag?(n(l,d.sibling),(p=i(d,f)).return=l,l=p):(n(l,d),(p=Ul(f,l.mode,p)).return=l,l=p),s(l)):n(l,d)}return function(e,t,n,r){try{mi=0;var i=b(e,t,n,r);return pi=null,i}catch(t){if(t===ai)throw t;var o=Bl(29,t,null,e.mode);return o.lanes=r,o.return=e,o}}}var xi=Ai(!0),wi=Ai(!1),Ci=Y(null),Si=Y(0);function Ei(e,t){Q(Si,e=cc),Q(Ci,t),cc=e|t.baseLanes}function ki(){Q(Si,cc),Q(Ci,Ci.current)}function Ti(){cc=Si.current,W(Ci),W(Si)}var Ii=Y(null),Oi=null;function Ri(e){var t=e.alternate;Q(ji,1&ji.current),Q(Ii,e),null===Oi&&(null===t||null!==Ci.current||null!==t.memoizedState)&&(Oi=e)}function Mi(e){if(22===e.tag){if(Q(ji,ji.current),Q(Ii,e),null===Oi){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Oi=e)}}else Pi()}function Pi(){Q(ji,ji.current),Q(Ii,Ii.current)}function Di(e){W(Ii),Oi===e&&(Oi=null),W(ji)}var ji=Y(0);function Bi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Li="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach((function(e){return e()}))}},Fi=r.unstable_scheduleCallback,Ni=r.unstable_NormalPriority,_i={$$typeof:g,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zi(){return{controller:new Li,data:new Map,refCount:0}}function Vi(e){e.refCount--,0===e.refCount&&Fi(Ni,(function(){e.controller.abort()}))}var Ui=null,Hi=0,qi=0,Gi=null;function Yi(){if(0==--Hi&&null!==Ui){null!==Gi&&(Gi.status="fulfilled");var e=Ui;Ui=null,qi=0,Gi=null;for(var t=0;to?o:8;var a,s,l,c=R.T,u={};R.T=u,xa(e,!1,t,n);try{var h=i(),d=R.S;null!==d&&d(u,h),null!==h&&"object"==typeof h&&"function"==typeof h.then?Aa(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},h.then((function(){l.status="fulfilled",l.value=a;for(var e=0;e title"))),Yu(o,r,n),o[Ne]=e,Ze(o),r=o;break e;case"link":var s=Th("link","href",i).get(r+(n.href||""));if(s)for(var l=0;l<\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?i.createElement(n,{is:r.is}):i.createElement(n)}}e[Ne]=t,e[_e]=r;e:for(i=t.child;null!==i;){if(5===i.tag||6===i.tag)e.appendChild(i.stateNode);else if(4!==i.tag&&27!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;null===i.sibling;){if(null===i.return||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(Yu(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ql(t)}}return Ql(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&ql(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(e=Z.current,ri(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(i=Qr))switch(i.tag){case 27:case 5:r=i.memoizedProps}e[Ne]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Uu(e.nodeValue,n)))||ei(t)}else(e=Xu(e).createTextNode(r))[Ne]=t,t.stateNode=e}return Ql(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=ri(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[Ne]=t}else ii(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ql(t),i=!1}else null!==Zr&&(jc(Zr),Zr=null),i=!0;if(!i)return 256&t.flags?(Di(t),t):(Di(t),null)}if(Di(t),128&t.flags)return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){i=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(i=r.alternate.memoizedState.cachePool.pool);var o=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Yl(t,t.updateQueue),Ql(t),null;case 4:return ee(),null===e&&Pu(t.stateNode.containerInfo),Ql(t),null;case 10:return bs(t.type),Ql(t),null;case 19:if(W(ji),null===(i=t.memoizedState))return Ql(t),null;if(r=!!(128&t.flags),null===(o=i.rendering))if(r)Wl(i,!1);else{if(0!==uc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=Bi(e))){for(t.flags|=128,Wl(i,!1),e=o.updateQueue,t.updateQueue=e,Yl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Nl(n,e),n=n.sibling;return Q(ji,1&ji.current|2),t.child}e=e.sibling}null!==i.tail&&le()>Ac&&(t.flags|=128,r=!0,Wl(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Bi(o))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Yl(t,e),Wl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate&&!Jr)return Ql(t),null}else 2*le()-i.renderingStartTime>Ac&&536870912!==n&&(t.flags|=128,r=!0,Wl(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=i.last)?e.sibling=o:t.child=o,i.last=o)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=le(),t.sibling=null,e=ji.current,Q(ji,r?1&e|2:1&e),t):(Ql(t),null);case 22:case 23:return Di(t),Ti(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(Ql(t),6&t.subtreeFlags&&(t.flags|=8192)):Ql(t),null!==(n=t.updateQueue)&&Yl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&W(Qi),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),bs(_i),Ql(t),null;case 25:return null}throw Error(a(156,t.tag))}function Jl(e,t){switch(Wr(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return bs(_i),ee(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ne(t),null;case 13:if(Di(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ii()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return W(ji),null;case 4:return ee(),null;case 10:return bs(t.type),null;case 22:case 23:return Di(t),Ti(),null!==e&&W(Qi),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return bs(_i),null;default:return null}}function Zl(e,t){switch(Wr(t),t.tag){case 3:bs(_i),ee();break;case 26:case 27:case 5:ne(t);break;case 4:ee();break;case 13:Di(t);break;case 19:W(ji);break;case 10:bs(t.type);break;case 22:case 23:Di(t),Ti(),null!==e&&W(Qi);break;case 24:bs(_i)}}var Kl={getCacheForType:function(e){var t=Es(_i),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},$l="function"==typeof WeakMap?WeakMap:Map,ec=0,tc=null,nc=null,rc=0,ic=0,oc=null,ac=!1,sc=!1,lc=!1,cc=0,uc=0,hc=0,dc=0,fc=0,pc=0,mc=0,gc=null,yc=null,vc=!1,bc=0,Ac=1/0,xc=null,wc=null,Cc=!1,Sc=null,Ec=0,kc=0,Tc=null,Ic=0,Oc=null;function Rc(){return 2&ec&&0!==rc?rc&-rc:null!==R.T?0!==qi?qi:xu():Le()}function Mc(){0===pc&&(pc=536870912&rc&&!Jr?536870912:Oe());var e=Ii.current;return null!==e&&(e.flags|=32),pc}function Pc(e,t,n){(e===tc&&2===ic||null!==e.cancelPendingCommit)&&(zc(e,0),Fc(e,rc,pc,!1)),Pe(e,n),2&ec&&e===tc||(e===tc&&(!(2&ec)&&(dc|=n),4===uc&&Fc(e,rc,pc,!1)),mu(e))}function Dc(e,t,n){if(6&ec)throw Error(a(327));for(var r=!n&&!(60&t)&&!(t&e.expiredLanes)||Te(e,t),i=r?function(e,t){var n=ec;ec|=2;var r=Uc(),i=Hc();tc!==e||rc!==t?(xc=null,Ac=le()+500,zc(e,t)):sc=Te(e,t);e:for(;;)try{if(0!==ic&&null!==nc){t=nc;var o=oc;t:switch(ic){case 1:ic=0,oc=null,Jc(e,t,o,1);break;case 2:if(ci(o)){ic=0,oc=null,Xc(t);break}t=function(){2===ic&&tc===e&&(ic=7),mu(e)},o.then(t,t);break e;case 3:ic=7;break e;case 4:ic=5;break e;case 7:ci(o)?(ic=0,oc=null,Xc(t)):(ic=0,oc=null,Jc(e,t,o,7));break;case 5:var s=null;switch(nc.tag){case 26:s=nc.memoizedState;case 5:case 27:var l=nc;if(!s||Oh(s)){ic=0,oc=null;var c=l.sibling;if(null!==c)nc=c;else{var u=l.return;null!==u?(nc=u,Zc(u)):nc=null}break t}}ic=0,oc=null,Jc(e,t,o,5);break;case 6:ic=0,oc=null,Jc(e,t,o,6);break;case 8:_c(),uc=6;break e;default:throw Error(a(462))}}Wc();break}catch(t){Vc(e,t)}return ys=gs=null,R.H=r,R.A=i,ec=n,null!==nc?0:(tc=null,rc=0,kr(),uc)}(e,t):Gc(e,t,!0),o=r;;){if(0===i){sc&&!r&&Fc(e,t,0,!1);break}if(6===i)Fc(e,t,0,!ac);else{if(n=e.current.alternate,o&&!Lc(n)){i=Gc(e,t,!1),o=!1;continue}if(2===i){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=0!=(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;i=gc;var c=l.current.memoizedState.isDehydrated;if(c&&(zc(l,s).flags|=256),2!==(s=Gc(l,s,!1))){if(lc&&!c){l.errorRecoveryDisabledLanes|=o,dc|=o,i=4;break e}o=yc,yc=i,null!==o&&jc(o)}i=s}if(o=!1,2!==i)continue}}if(1===i){zc(e,0),Fc(e,t,0,!0);break}e:{switch(r=e,i){case 0:case 1:throw Error(a(345));case 4:if((4194176&t)===t){Fc(r,t,pc,!ac);break e}break;case 2:yc=null;break;case 3:case 5:break;default:throw Error(a(329))}if(r.finishedWork=n,r.finishedLanes=t,(62914560&t)===t&&10<(o=bc+300-le())){if(Fc(r,t,pc,!ac),0!==ke(r,0))break e;r.timeoutHandle=eh(Bc.bind(null,r,n,yc,xc,vc,t,pc,dc,mc,ac,2,-0,0),o)}else Bc(r,n,yc,xc,vc,t,pc,dc,mc,ac,0,-0,0)}}break}mu(e)}function jc(e){null===yc?yc=e:yc.push.apply(yc,e)}function Bc(e,t,n,r,i,o,s,l,c,u,h,d,f){var p=t.subtreeFlags;if((8192&p||!(16785408&~p))&&(Rh={stylesheets:null,count:0,unsuspend:Mh},Il(t),null!==(t=function(){if(null===Rh)throw Error(a(475));var e=Rh;return e.stylesheets&&0===e.count&&jh(e,e.stylesheets),0n?32:n,R.T=null,null===Sc)var o=!1;else{n=Tc,Tc=null;var s=Sc,l=Ec;if(Sc=null,Ec=0,6&ec)throw Error(a(331));var c=ec;if(ec|=4,Ml(s.current),Cl(s,s.current,l,n),ec=c,gu(0,!1),ve&&"function"==typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(ye,s)}catch(e){}o=!0}return o}finally{U.p=i,R.T=r,eu(e,t)}}return!1}function nu(e,t,n){t=jr(n,t),null!==(e=Ps(e,t=za(e.stateNode,t,2),2))&&(Pe(e,2),mu(e))}function ru(e,t,n){if(3===e.tag)nu(e,e,n);else for(;null!==t;){if(3===t.tag){nu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===wc||!wc.has(r))){e=jr(n,e),null!==(r=Ps(t,n=Va(2),2))&&(Ua(n,r,t,e),Pe(r,2),mu(r));break}}t=t.return}}function iu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new $l;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(lc=!0,i.add(n),e=ou.bind(null,e,t,n),t.then(e,e))}function ou(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tc===e&&(rc&n)===n&&(4===uc||3===uc&&(62914560&rc)===rc&&300>le()-bc?!(2&ec)&&zc(e,0):fc|=n,mc===rc&&(mc=0)),mu(e)}function au(e,t){0===t&&(t=Re()),null!==(e=Or(e,t))&&(Pe(e,t),mu(e))}function su(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),au(e,n)}function lu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}null!==r&&r.delete(t),au(e,n)}var cu=null,uu=null,hu=!1,du=!1,fu=!1,pu=0;function mu(e){var t;e!==uu&&null===e.next&&(null===uu?cu=uu=e:uu=uu.next=e),du=!0,hu||(hu=!0,t=yu,rh((function(){6&ec?ie(ue,t):t()})))}function gu(e,t){if(!fu&&du){fu=!0;do{for(var n=!1,r=cu;null!==r;){if(!t)if(0!==e){var i=r.pendingLanes;if(0===i)var o=0;else{var a=r.suspendedLanes,s=r.pingedLanes;o=(1<<31-Ae(42|e)+1)-1,o=201326677&(o&=i&~(a&~s))?201326677&o|1:o?2|o:0}0!==o&&(n=!0,Au(r,o))}else o=rc,!(3&(o=ke(r,r===tc?o:0)))||Te(r,o)||(n=!0,Au(r,o));r=r.next}}while(n);fu=!1}}function yu(){du=hu=!1;var e,t=0;0!==pu&&(((e=window.event)&&"popstate"===e.type?e!==$u&&($u=e,!0):($u=null,!1))&&(t=pu),pu=0);for(var n=le(),r=null,i=cu;null!==i;){var o=i.next,a=vu(i,n);0===a?(i.next=null,null===r?cu=o:r.next=o,null===o&&(uu=r)):(r=i,(0!==t||3&a)&&(du=!0)),i=o}gu(t,!1)}function vu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=-62914561&e.pendingLanes;0 title"):null)}function Oh(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Rh=null;function Mh(){}function Ph(){if(this.count--,0===this.count)if(this.stylesheets)jh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Dh=null;function jh(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Dh=new Map,t.forEach(Bh,e),Dh=null,Ph.call(e))}function Bh(e,t){if(!(4&t.state.loading)){var n=Dh.get(e);if(n)var r=n.get(null);else{n=new Map,Dh.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o{"use strict";n.r(t),n.d(t,{AccessibilityInfo:()=>u.A,ActivityIndicator:()=>_.A,Alert:()=>h.A,Animated:()=>d.A,AppRegistry:()=>p.A,AppState:()=>m.A,Appearance:()=>f.A,BackHandler:()=>g.A,Button:()=>G,CheckBox:()=>$,Clipboard:()=>y,DeviceEventEmitter:()=>Ue.A,Dimensions:()=>v.A,Easing:()=>b.A,FlatList:()=>ee.A,I18nManager:()=>A.A,Image:()=>te.A,ImageBackground:()=>oe,InteractionManager:()=>w.A,Keyboard:()=>x.A,KeyboardAvoidingView:()=>ae.A,LayoutAnimation:()=>I,Linking:()=>O.A,LogBox:()=>Ve.A,Modal:()=>se.A,NativeEventEmitter:()=>R,NativeModules:()=>c.A,PanResponder:()=>M.A,Picker:()=>fe,PixelRatio:()=>P.A,Platform:()=>C.A,Pressable:()=>pe.A,ProgressBar:()=>ve,RefreshControl:()=>be.A,SafeAreaView:()=>Ee,ScrollView:()=>ke.A,SectionList:()=>Te.A,Share:()=>B,StatusBar:()=>Ie.A,StyleSheet:()=>L.A,Switch:()=>Oe.A,Text:()=>U.A,TextInput:()=>Re.A,Touchable:()=>Me.A,TouchableHighlight:()=>Pe.A,TouchableNativeFeedback:()=>Le,TouchableOpacity:()=>V.A,TouchableWithoutFeedback:()=>Fe.A,UIManager:()=>S.A,Vibration:()=>N,View:()=>X.A,VirtualizedList:()=>Ne.A,YellowBox:()=>ze,findNodeHandle:()=>o.A,processColor:()=>a.A,render:()=>s.A,unmountComponentAtNode:()=>l.A,unstable_createElement:()=>i.A,useColorScheme:()=>He,useLocaleContext:()=>qe,useWindowDimensions:()=>Ge.A});var r,i=n(71261),o=n(4992),a=n(2901),s=n(66109),l=n(75767),c=n(57947),u=n(95631),h=n(54081),d=n(94678),f=n(92187),p=n(36998),m=n(7697),g=n(89742);class y{static isAvailable(){return void 0===r&&(r="function"==typeof document.queryCommandSupported&&document.queryCommandSupported("copy")),r}static getString(){return Promise.resolve("")}static setString(e){var t=!1,n=document.body;if(n){var r=document.createElement("span");r.textContent=e,r.style.opacity="0",r.style.position="absolute",r.style.whiteSpace="pre-wrap",r.style.userSelect="auto",n.appendChild(r);var i=window.getSelection();i.removeAllRanges();var o=document.createRange();o.selectNodeContents(r),i.addRange(o);try{document.execCommand("copy"),t=!0}catch(e){}i.removeAllRanges(),n.removeChild(r)}return t}}var v=n(63384),b=n(96693),A=n(95784),x=n(87068),w=n(59819),C=n(67862),S=n(8683);function E(e,t){C.A.isTesting||S.A.configureNextLayoutAnimation(e,null!=t?t:function(){},(function(){}))}function k(e,t,n){return{duration:e,create:{type:t,property:n},update:{type:t},delete:{type:t,property:n}}}var T={easeInEaseOut:k(300,"easeInEaseOut","opacity"),linear:k(500,"linear","opacity"),spring:{duration:700,create:{type:"linear",property:"opacity"},update:{type:"spring",springDamping:.4},delete:{type:"linear",property:"opacity"}}};const I={configureNext:E,create:k,Types:Object.freeze({spring:"spring",linear:"linear",easeInEaseOut:"easeInEaseOut",easeIn:"easeIn",easeOut:"easeOut",keyboard:"keyboard"}),Properties:Object.freeze({opacity:"opacity",scaleX:"scaleX",scaleY:"scaleY",scaleXY:"scaleXY"}),checkConfig(){console.error("LayoutAnimation.checkConfig(...) has been disabled.")},Presets:T,easeInEaseOut:E.bind(null,T.easeInEaseOut),linear:E.bind(null,T.linear),spring:E.bind(null,T.spring)};var O=n(15539);const R=n(44139).A;var M=n(63272),P=n(99518),D=n(90646),j=n.n(D);const B=class{static share(e,t){return void 0===t&&(t={}),j()("object"==typeof e&&null!==e,"Content to share must be a valid object"),j()("string"==typeof e.url||"string"==typeof e.message,"At least one of URL and message is required"),j()("object"==typeof t&&null!==t,"Options must be a valid object"),j()(!e.title||"string"==typeof e.title,"Invalid title: title should be a string."),void 0!==window.navigator.share?window.navigator.share({title:e.title,text:e.message,url:e.url}):Promise.reject(new Error("Share is not supported in this browser"))}static get sharedAction(){return"sharedAction"}static get dismissedAction(){return"dismissedAction"}};var L=n(43999),F=e=>{"vibrate"in window.navigator&&window.navigator.vibrate(e)};const N={cancel(){F(0)},vibrate(e){void 0===e&&(e=400),F(e)}};var _=n(92869),z=n(96540),V=n(46413),U=n(78506),H=z.forwardRef(((e,t)=>{var n=e.accessibilityLabel,r=e.color,i=e.disabled,o=e.onPress,a=e.testID,s=e.title;return z.createElement(V.A,{accessibilityLabel:n,accessibilityRole:"button",disabled:i,focusable:!i,onPress:o,ref:t,style:[q.button,r&&{backgroundColor:r},i&&q.buttonDisabled],testID:a},z.createElement(U.A,{style:[q.text,i&&q.textDisabled]},s))}));H.displayName="Button";var q=L.A.create({button:{backgroundColor:"#2196F3",borderRadius:2},text:{color:"#fff",fontWeight:"500",padding:8,textAlign:"center",textTransform:"uppercase"},buttonDisabled:{backgroundColor:"#dfdfdf"},textDisabled:{color:"#a1a1a1"}});const G=H;var Y=n(8),W=n(58168),Q=n(98587),X=n(9176),J=["aria-readonly","color","disabled","onChange","onValueChange","readOnly","style","value"],Z=z.forwardRef(((e,t)=>{var n=e["aria-readonly"],r=e.color,o=e.disabled,a=e.onChange,s=e.onValueChange,l=e.readOnly,c=e.style,u=e.value,h=(0,Q.A)(e,J),d=z.createElement(X.A,{style:[K.fakeControl,u&&K.fakeControlChecked,u&&r&&{backgroundColor:r,borderColor:r},o&&K.fakeControlDisabled,u&&o&&K.fakeControlCheckedAndDisabled]}),f=(0,i.A)("input",{checked:u,disabled:o,onChange:function(e){var t=e.nativeEvent.target.checked;e.nativeEvent.value=t,a&&a(e),s&&s(t)},readOnly:!0===l||!0===n||!0===h.accessibilityReadOnly,ref:t,style:[K.nativeControl,K.cursorInherit],type:"checkbox"});return z.createElement(X.A,(0,W.A)({},h,{"aria-disabled":o,"aria-readonly":n,style:[K.root,c,o&&K.cursorDefault]}),d,f)}));Z.displayName="CheckBox";var K=L.A.create({root:{cursor:"pointer",height:16,userSelect:"none",width:16},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},fakeControl:{alignItems:"center",backgroundColor:"#fff",borderColor:"#657786",borderRadius:2,borderStyle:"solid",borderWidth:2,height:"100%",justifyContent:"center",width:"100%"},fakeControlChecked:{backgroundColor:"#009688",backgroundImage:'url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K")',backgroundRepeat:"no-repeat",borderColor:"#009688"},fakeControlDisabled:{borderColor:"#CCD6DD"},fakeControlCheckedAndDisabled:{backgroundColor:"#AAB8C2",borderColor:"#AAB8C2"},nativeControl:(0,Y.A)((0,Y.A)({},L.A.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})});const $=Z;var ee=n(57061),te=n(50728),ne=["children","style","imageStyle","imageRef"],re={},ie=(0,z.forwardRef)(((e,t)=>{var n=e.children,r=e.style,i=void 0===r?re:r,o=e.imageStyle,a=e.imageRef,s=(0,Q.A)(e,ne),l=L.A.flatten(i),c=l.height,u=l.width;return z.createElement(X.A,{ref:t,style:i},z.createElement(te.A,(0,W.A)({},s,{ref:a,style:[{width:u,height:c,zIndex:-1},L.A.absoluteFill,o]})),n)}));ie.displayName="ImageBackground";const oe=ie;var ae=n(25470),se=n(36430),le=n(11804),ce=n(96177),ue=["children","enabled","onValueChange","selectedValue","style","testID","itemStyle","mode","prompt"],he=z.forwardRef(((e,t)=>{var n=e.children,r=e.enabled,o=e.onValueChange,a=e.selectedValue,s=e.style,l=e.testID,c=(e.itemStyle,e.mode,e.prompt,(0,Q.A)(e,ue)),u=z.useRef(null),h=(0,Y.A)({children:n,disabled:!1===r||void 0,onChange:function(e){var t=e.target,n=t.selectedIndex,r=t.value;o&&o(r,n)},style:[de.initial,s],testID:l,value:a},c),d=(0,ce.A)(h),f=(0,le.A)(u,d,t);return h.ref=f,(0,i.A)("select",h)}));he.Item=function(e){var t=e.color,n=e.label,r=e.testID,o=e.value,a={color:t};return(0,i.A)("option",{children:n,style:a,testID:r,value:o})};var de=L.A.create({initial:{fontFamily:"System",fontSize:"inherit",margin:0}});const fe=he;var pe=n(94129),me=["color","indeterminate","progress","trackColor","style"],ge=z.forwardRef(((e,t)=>{var n=e.color,r=void 0===n?"#1976D2":n,i=e.indeterminate,o=void 0!==i&&i,a=e.progress,s=void 0===a?0:a,l=e.trackColor,c=void 0===l?"transparent":l,u=e.style,h=(0,Q.A)(e,me),d=100*s,f=o?"25%":d+"%";return z.createElement(X.A,(0,W.A)({},h,{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o?null:d,ref:t,role:"progressbar",style:[ye.track,u,{backgroundColor:c}]}),z.createElement(X.A,{style:[{backgroundColor:r,width:f},ye.progress,o&&ye.animation]}))}));ge.displayName="ProgressBar";var ye=L.A.create({track:{forcedColorAdjust:"none",height:5,overflow:"hidden",userSelect:"none",zIndex:0},progress:{forcedColorAdjust:"none",height:"100%",zIndex:-1},animation:{animationDuration:"1s",animationKeyframes:[{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(400%)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"}});const ve=ge;var be=n(71217),Ae=n(7162),xe=["style"],we=Ae.A&&window.CSS&&window.CSS.supports&&window.CSS.supports("top: constant(safe-area-inset-top)")?"constant":"env",Ce=z.forwardRef(((e,t)=>{var n=e.style,r=(0,Q.A)(e,xe);return z.createElement(X.A,(0,W.A)({},r,{ref:t,style:[Se.root,n]}))}));Ce.displayName="SafeAreaView";var Se=L.A.create({root:{paddingTop:we+"(safe-area-inset-top)",paddingRight:we+"(safe-area-inset-right)",paddingBottom:we+"(safe-area-inset-bottom)",paddingLeft:we+"(safe-area-inset-left)"}});const Ee=Ce;var ke=n(34951),Te=n(86152),Ie=n(97576),Oe=n(37043),Re=n(15782),Me=n(83185),Pe=n(75584),De=["style"],je={};const Be=function(e){var t=e.style,n=(0,Q.A)(e,De);return z.createElement(X.A,(0,W.A)({},n,{style:[je,t]}))},Le=Be;var Fe=n(29359),Ne=n(38510);function _e(e){return z.createElement(Be,e)}_e.ignoreWarnings=()=>{};const ze=_e;var Ve=n(52338),Ue=n(29697);function He(){var e=z.useState(f.A.getColorScheme()),t=e[0],n=e[1];return z.useEffect((()=>f.A.addChangeListener((function(e){n(e.colorScheme)})).remove)),t}const qe=n(11420).PZ;var Ge=n(32773)},31635:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>B,__assign:()=>o,__asyncDelegator:()=>E,__asyncGenerator:()=>S,__asyncValues:()=>k,__await:()=>C,__awaiter:()=>p,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>j,__classPrivateFieldSet:()=>D,__createBinding:()=>g,__decorate:()=>s,__disposeResources:()=>F,__esDecorate:()=>c,__exportStar:()=>y,__extends:()=>i,__generator:()=>m,__importDefault:()=>M,__importStar:()=>R,__makeTemplateObject:()=>T,__metadata:()=>f,__param:()=>l,__propKey:()=>h,__read:()=>b,__rest:()=>a,__rewriteRelativeImportExtension:()=>N,__runInitializers:()=>u,__setFunctionName:()=>d,__spread:()=>A,__spreadArray:()=>w,__spreadArrays:()=>x,__values:()=>v,default:()=>_});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t,n,r,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?r.static?e:e.prototype:null,h=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),d=!1,f=n.length-1;f>=0;f--){var p={};for(var m in r)p[m]="access"===m?{}:r[m];for(var m in r.access)p.access[m]=r.access[m];p.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var g=(0,n[f])("accessor"===l?{get:h.get,set:h.set}:h[c],p);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=a(g.get))&&(h.get=s),(s=a(g.set))&&(h.set=s),(s=a(g.init))&&i.unshift(s)}else(s=a(g))&&("field"===l?i.unshift(s):h[c]=s)}u&&Object.defineProperty(u,r.name,h),d=!0}function u(e,t,n){for(var r=arguments.length>2,i=0;i0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function A(){for(var e=[],t=0;t1||s(e,t)}))},t&&(r[e]=t(r[e])))}function s(e,t){try{(n=i[e](t)).value instanceof C?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(e){u(o[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function E(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:C(e[r](t)),done:!1}:i?i(t):t}:i}}function k(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},O=function(e){return O=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},O(e)};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=O(e),r=0;r{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},32229:(e,t,n)=>{"use strict";var r=n(26673),i=n(52376),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=String.prototype.split,c=Array.prototype.push,u=function(e,t){c.apply(e,s(t)?t:[t])},h=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,i,o,a,c,h,d,p,m,g,y,v,b){var A,x=t;if("function"==typeof h?x=h(n,x):x instanceof Date?x=m(x):"comma"===i&&s(x)&&(x=r.maybeMap(x,(function(e){return e instanceof Date?m(e):e}))),null===x){if(o)return c&&!v?c(n,f.encoder,b,"key",g):n;x=""}if("string"==typeof(A=x)||"number"==typeof A||"boolean"==typeof A||"symbol"==typeof A||"bigint"==typeof A||r.isBuffer(x)){if(c){var w=v?n:c(n,f.encoder,b,"key",g);if("comma"===i&&v){for(var C=l.call(String(x),","),S="",E=0;E0?x.join(",")||null:void 0}];else if(s(h))k=h;else{var I=Object.keys(x);k=d?I.sort(d):I}for(var O=0;O0?v+y:""}},32615:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});class r extends Error{constructor(e,t){super(t),this.code=e}}},32773:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63384),i=n(96540);function o(){var e=(0,i.useState)((()=>r.A.get("window"))),t=e[0],n=e[1];return(0,i.useEffect)((()=>{function e(e){var t=e.window;null!=t&&n(t)}return r.A.addEventListener("change",e),n(r.A.get("window")),()=>{r.A.removeEventListener("change",e)}}),[]),t}},32779:(e,t,n)=>{"use strict";var r=n(71514),i=n(58968),o=n(75880),a=n(63331),s=n(94459),l=n(98017);e.exports=function(e,t){if(s(e))return t?[0,0,192,127]:[127,192,0,0];var n;if(0===e)return n=l(e)?128:0,t?[0,0,0,n]:[n,0,0,0];if(r(e)>34028234663852886e22||!a(e))return n=e<0?255:127,t?[0,0,128,n]:[n,128,0,0];var c=e<0?1:0;e=r(e);for(var u=0;e>=2;)u+=1,e/=2;for(;e<1;)u-=1,e*=2;var h=e-1;h*=o(2,23)+.5,u+=127;var d=c<<31|(u<<=23)|(h=i(h)),f=255&d,p=255&(d>>=8),m=255&(d>>=8),g=255&(d>>=8);return t?[f,p,m,g]:[g,m,p,f]}},32854:e=>{e.exports={pick:(e,...t)=>t.flat().filter((t=>Object.prototype.hasOwnProperty.call(e,t))).reduce(((t,n)=>(t[n]=e[n],t)),{}),omit:(e,...t)=>{const n=new Set(t.flat());return Object.getOwnPropertyNames(e).filter((e=>!n.has(e))).reduce(((t,n)=>(t[n]=e[n],t)),{})}}},33098:(e,t,n)=>{"use strict";n.d(t,{A:()=>Z});var r=n(96540),i=n(21968),o=()=>{},a={},s=[];function l(e){return e>20?e%20:e}function c(e,t){var n,r,c,u=!1,h=e.changedTouches,d=e.type,f=!0===e.metaKey,p=!0===e.shiftKey,m=h&&h[0].force||0,g=l(h&&h[0].identifier||0),y=h&&h[0].clientX||e.clientX,v=h&&h[0].clientY||e.clientY,b=h&&h[0].pageX||e.pageX,A=h&&h[0].pageY||e.pageY,x="function"==typeof e.preventDefault?e.preventDefault.bind(e):o,w=e.timeStamp;function C(e){return Array.prototype.slice.call(e).map((e=>({force:e.force,identifier:l(e.identifier),get locationX(){return k(e.clientX)},get locationY(){return T(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:w})))}if(null!=h)r=C(h),c=C(e.touches);else{var S=[{force:m,identifier:g,get locationX(){return k(y)},get locationY(){return T(v)},pageX:b,pageY:A,target:e.target,timestamp:w}];r=S,c="mouseup"===d||"dragstart"===d?s:S}var E={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:a,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>u,isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:f,shiftKey:p,changedTouches:r,force:m,identifier:g,get locationX(){return k(y)},get locationY(){return T(v)},pageX:b,pageY:A,target:e.target,timestamp:w,touches:c,type:d},persist:o,preventDefault:x,stopPropagation(){u=!0},target:e.target,timeStamp:w,touchHistory:t.touchHistory};function k(e){if(n=n||(0,i.A)(E.currentTarget))return e-n.left}function T(e){if(n=n||(0,i.A)(E.currentTarget))return e-n.top}return E}var u="mousedown",h="mousemove",d="mouseup",f="dragstart",p="touchstart",m="touchmove",g="touchend",y="touchcancel",v="scroll",b="select",A="selectionchange";function x(e){return e===p||e===u}function w(e){return e===m||e===h}function C(e){return e===g||e===d||S(e)}function S(e){return e===y||e===f}var E="__reactResponderId";function k(e){for(var t=[];null!=e&&e!==document.body;)t.push(e),e=e.parentNode;return t}function T(e){return null!=e?e[E]:null}function I(e){return e.timeStamp||e.timestamp}function O(e){var t=e.identifier;return null==t&&console.error("Touch object is missing identifier."),t}function R(e){return JSON.stringify({identifier:e.identifier,pageX:e.pageX,pageY:e.pageY,timestamp:I(e)})}function M(e){var t=e.touchBank,n=JSON.stringify(t.slice(0,20));return t.length>20&&(n+=" (original size: "+t.length+")"),n}var P=n(7162),D={},j=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],B=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],L={touchstart:j,mousedown:j,touchmove:B,mousemove:B,scroll:["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}]},F={id:null,idPath:null,node:null},N=new Map,_=!1,z=0,V={id:null,node:null,idPath:null},U=new class{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(e,t){var n=this._touchHistory;if(w(e))t.changedTouches.forEach((e=>function(e,t){var n=t.touchBank[O(e)];n?(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=I(e),t.mostRecentTimeStamp=I(e)):console.warn("Cannot record touch move without a touch start.\n","Touch Move: "+R(e)+"\n","Touch Bank: "+M(t))}(e,n)));else if(x(e))t.changedTouches.forEach((e=>function(e,t){var n=O(e),r=t.touchBank[n];r?function(e,t){e.touchActive=!0,e.startPageX=t.pageX,e.startPageY=t.pageY,e.startTimeStamp=I(t),e.currentPageX=t.pageX,e.currentPageY=t.pageY,e.currentTimeStamp=I(t),e.previousPageX=t.pageX,e.previousPageY=t.pageY,e.previousTimeStamp=I(t)}(r,e):t.touchBank[n]=function(e){return{touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:I(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:I(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:I(e)}}(e),t.mostRecentTimeStamp=I(e)}(e,n))),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches&&(n.indexOfSingleActiveTouch=t.touches[0].identifier);else if(C(e)&&(t.changedTouches.forEach((e=>function(e,t){var n=t.touchBank[O(e)];n?(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=I(e),t.mostRecentTimeStamp=I(e)):console.warn("Cannot record touch end without a touch start.\n","Touch End: "+R(e)+"\n","Touch Bank: "+M(t))}(e,n))),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches))for(var r=n.touchBank,i=0;i1)&&(_=!1),!("mousedown"===t&&_||"mousemove"===t&&_||"mousemove"===t&&z<1))if(_&&"mouseup"===t)0===z&&(_=!1);else{var r=x(t)&&function(e){var t=e.altKey,n=e.button,r=e.buttons,i=e.ctrlKey,o=e.type,a=!1===t&&!1===i;return!!("touchstart"===o||"touchmove"===o||"mousedown"===o&&(0===n||1===r)&&a||"mousemove"===o&&1===r&&a)}(e),i=w(t),o=C(t),a=function(e){return e===v}(t),s=function(e){return e===b||e===A}(t),l=c(e,U);(r||i||o)&&(e.touches?z=e.touches.length:r?z=1:o&&(z=0),U.recordTouchTrack(t,l.nativeEvent));var u,h=function(e){for(var t=[],n=[],r=function(e){return"selectionchange"===e.type?k(window.getSelection().anchorNode):null!=e.composedPath?e.composedPath():k(e.target)}(e),i=0;i0){var f=V.idPath,p=h.idPath;if(null!=f&&null!=p){var m=function(e,t){var n=e.length,r=t.length;if(0===n||0===r||e[n-1]!==t[r-1])return null;var i=e[0],o=0,a=t[0],s=0;n-r>0&&(i=e[o=n-r],n=r),r-n>0&&(a=t[s=r-n],r=n);for(var l=n;l--;){if(i===a)return i;i=e[o++],a=t[s++]}return null}(f,p);if(null!=m){var g=p.indexOf(m)+(m===V.id?1:0);h={idPath:p.slice(g),nodePath:h.nodePath.slice(g)}}else h=null}null!=h&&(u=function(e,t,n){var r=L[t.type];if(null!=r){for(var i=e.idPath,o=e.nodePath,a=r[0],s=r[1],l=r[2].bubbles,c=function(e,t,r){var o=q(e)[r];if(null!=o&&(n.currentTarget=t,!0===o(n)))return{id:e,node:t,idPath:i.slice(i.indexOf(e))}},u=i.length-1;u>=0;u--){var h=c(i[u],o[u],a);if(null!=h)return h;if(!0===n.isPropagationStopped())return}if(l)for(var d=0;d=1&&"\n"!==n&&o):"select"===e.type;var t,n,r,i,o}(e),G=o&&!N&&!function(e,t){if(!t||0===t.length)return!1;for(var n=0;nJ++,null==(i=r.useRef(null)).current&&(i.current=n()),i.current),a=r.useRef(!1);r.useEffect((()=>(P.A&&null==window.__reactResponderSystemActive&&(window.addEventListener("blur",G),W.forEach((e=>{document.addEventListener(e,G)})),Y.forEach((e=>{document.addEventListener(e,G,!0)})),window.__reactResponderSystemActive=!0),()=>{Q(o)})),[o]),r.useEffect((()=>{var n=t,r=n.onMoveShouldSetResponder,i=n.onMoveShouldSetResponderCapture,s=n.onScrollShouldSetResponder,l=n.onScrollShouldSetResponderCapture,c=n.onSelectionChangeShouldSetResponder,u=n.onSelectionChangeShouldSetResponderCapture,h=n.onStartShouldSetResponder,d=n.onStartShouldSetResponderCapture,f=null!=r||null!=i||null!=s||null!=l||null!=c||null!=u||null!=h||null!=d,p=e.current;f?(function(e,t,n){!function(e,t){null!=e&&(e[E]=t)}(t,e),N.set(e,n)}(o,p,t),a.current=!0):a.current&&(Q(o),a.current=!1)}),[t,e,o]),r.useDebugValue({isResponder:e.current===V.node}),r.useDebugValue(t)}},33363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Clipboard=void 0,t.Clipboard={getString(){if(null===navigator||void 0===navigator?void 0:navigator.clipboard)return navigator.clipboard.readText();const e=document.createElement("textarea");document.body.appendChild(e),e.select(),document.execCommand("paste");const t=e.innerText;return document.body.removeChild(e),Promise.resolve(t)},setString(e){if(null===navigator||void 0===navigator?void 0:navigator.clipboard)navigator.clipboard.writeText(e);else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}}}},33371:(e,t,n)=>{"use strict";var r=n(29110),i=n(20849),o=n(14843),a=n(44728),s=n(40317),l=n(21383),c=n(17507),u=n(72208),h=n(44054);function d(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((function(e,n){return d(t[n],e)})):e===t}function f(e){var t=e?f._parseNumbers(e):{};void 0===t.userToken||u(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var n=this;Object.keys(t).forEach((function(e){var r=-1!==f.PARAMETERS.indexOf(e),i=void 0!==t[e];!r&&i&&(n[e]=t[e])}))}f.PARAMETERS=Object.keys(new f),f._parseNumbers=function(e){if(e instanceof f)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach((function(n){var r=e[n];if("string"==typeof r){var i=parseFloat(r);t[n]=isNaN(i)?r:i}})),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map((function(e){return Array.isArray(e)?e.map((function(e){return parseFloat(e)})):e}))),e.numericRefinements){var n={};Object.keys(e.numericRefinements).forEach((function(t){var r=e.numericRefinements[t]||{};n[t]={},Object.keys(r).forEach((function(e){var i=r[e].map((function(e){return Array.isArray(e)?e.map((function(e){return"string"==typeof e?parseFloat(e):e})):"string"==typeof e?parseFloat(e):e}));n[t][e]=i}))})),t.numericRefinements=n}return a(e,t)},f.make=function(e){var t=new f(e);return(e.hierarchicalFacets||[]).forEach((function(e){if(e.rootPath){var n=t.getHierarchicalRefinement(e.name);n.length>0&&0!==n[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(n=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}})),t},f.validate=function(e,t){var n=t||{};return e.tagFilters&&n.tagRefinements&&n.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&n.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&n.numericRefinements&&s(n.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):s(e.numericRefinements)&&n.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},f.prototype={constructor:f,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:h.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:h.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:h.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:h.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,n){var r=c(n);if(this.isNumericRefined(e,t,r))return this;var i=a({},this.numericRefinements);return i[e]=a({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(r)):i[e][t]=[r],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,n){var r=n;return void 0!==r?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,i){return i===e&&n.op===t&&d(n.val,c(r))}))}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,r){return r===e&&n.op===t}))}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(t,n){return n===e}))}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return s(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return l(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,n=this.numericRefinements,r=Object.keys(n).reduce((function(r,i){var o=n[i],a={};return o=o||{},Object.keys(o).forEach((function(n){var r=o[n]||[],s=[];r.forEach((function(t){e({val:t,op:n},i,"numeric")||s.push(t)})),s.length!==r.length&&(t=!0),a[n]=s})),r[i]=a,r}),{});return t?r:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:h.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:h.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:h.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter((function(t){return t!==e}))}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter((function(t){return t!==e}))}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter((function(t){return t.name!==e}))}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:h.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:h.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:h.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter((function(t){return t!==e}))};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:h.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:h.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:h.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+n))?-1===t.indexOf(n)?i[e]=[]:i[e]=[t.slice(0,t.lastIndexOf(n))]:i[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:r(i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var n={};return n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:r(n,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:r(t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&h.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var n=this.getHierarchicalRefinement(e);return t?-1!==n.indexOf(t):n.length>0},isNumericRefined:function(e,t,n){if(void 0===n&&void 0===t)return Boolean(this.numericRefinements[e]);var r=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===n||!r)return r;var o,a,s=c(n),l=void 0!==(o=this.numericRefinements[e][t],a=s,i(o,(function(e){return d(e,a)})));return r&&l},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=o(Object.keys(this.numericRefinements).filter((function(t){return Object.keys(e.numericRefinements[t]).length>0})),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter((function(t){return e.disjunctiveFacetsRefinements[t].length>0})).concat(t).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return o(this.hierarchicalFacets.map((function(e){return e.name})),Object.keys(this.hierarchicalFacetsRefinements).filter((function(t){return e.hierarchicalFacetsRefinements[t].length>0}))).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter((function(t){return-1===e.indexOf(t)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},n=this;return Object.keys(this).forEach((function(r){var i=n[r];-1===e.indexOf(r)&&void 0!==i&&(t[r]=i)})),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var n={};return n[e]=t,this.setQueryParameters(n)},setQueryParameters:function(e){if(!e)return this;var t=f.validate(this,e);if(t)throw t;var n=this,r=f._parseNumbers(e),i=Object.keys(this).reduce((function(e,t){return e[t]=n[t],e}),{}),o=Object.keys(r).reduce((function(e,t){var n=void 0!==e[t],i=void 0!==r[t];return n&&!i?l(e,[t]):(i&&(e[t]=r[t]),e)}),i);return new this.constructor(o)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return i(this.hierarchicalFacets,(function(t){return t.name===e}))},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(n).map((function(e){return e.trim()}))},toString:function(){return JSON.stringify(this,null,2)}},e.exports=f},34488:(e,t,n)=>{"use strict";var r,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(l,{networksApiLiveTrafficStatsSchema:()=>c}),e.exports=(r=l,((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a(t))s.call(e,n)||undefined===n||i(e,n,{get:()=>t[n],enumerable:!(r=o(t,n))||r.enumerable});return e})(i({},"__esModule",{value:!0}),r));const c=(new(n(52407).SchemaBuilder)).field("source","enum8",{values:["unknown","simlink","vatsim","ivao"]}).field("value","int24",{signed:!1}).build()},34528:(e,t,n)=>{"use strict";var r=n(61376)("%Reflect.construct%",!0),i=n(90893);try{i({},"",{"[[Get]]":function(){}})}catch(e){i=null}if(i&&r){var o={},a={};i(a,"length",{"[[Get]]":function(){throw o},"[[Enumerable]]":!0}),e.exports=function(e){try{r(e,a)}catch(e){return e===o}}}else e.exports=function(e){return"function"==typeof e&&!!e.prototype}},34579:(e,t,n)=>{var r=n(77736);function i(e,t){for(var n=0;n{"use strict";var r=n(54224),i=n(8410),o=n(41003),a=n(63331);e.exports=function(e){var t=i(e);if(!a(t)||0===t)return 0;var n=o(t),s=r(n,4294967296);return 0===s?0:s}},34951:(e,t,n)=>{"use strict";n.d(t,{A:()=>M});var r=n(8),i=n(58168),o=n(98587),a=n(63384),s=n(93116),l=n(90646),c=n.n(l),u=n(10087),h=n(67862),d=n(96540),f=n(43999),p=n(9176),m=n(11804),g=["onScroll","onTouchMove","onWheel","scrollEnabled","scrollEventThrottle","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","style"];function y(e){return{nativeEvent:{contentOffset:{get x(){return e.target.scrollLeft},get y(){return e.target.scrollTop}},contentSize:{get height(){return e.target.scrollHeight},get width(){return e.target.scrollWidth}},layoutMeasurement:{get height(){return e.target.offsetHeight},get width(){return e.target.offsetWidth}}},timeStamp:Date.now()}}var v=d.forwardRef(((e,t)=>{var n=e.onScroll,r=e.onTouchMove,a=e.onWheel,s=e.scrollEnabled,l=void 0===s||s,c=e.scrollEventThrottle,u=void 0===c?0:c,h=e.showsHorizontalScrollIndicator,f=e.showsVerticalScrollIndicator,v=e.style,A=(0,o.A)(e,g),x=d.useRef({isScrolling:!1,scrollLastTick:0}),w=d.useRef(null),C=d.useRef(null);function S(e){return t=>{l&&e&&e(t)}}function E(e){x.current.scrollLastTick=Date.now(),n&&n(y(e))}var k=!1===h||!1===f;return d.createElement(p.A,(0,i.A)({},A,{onScroll:function(e){var t,r,i;e.stopPropagation(),e.target===C.current&&(e.persist(),null!=w.current&&clearTimeout(w.current),w.current=setTimeout((()=>{!function(e){x.current.isScrolling=!1,n&&n(y(e))}(e)}),100),x.current.isScrolling?(t=x.current.scrollLastTick,r=u,i=Date.now()-t,r>0&&i>=r&&E(e)):function(e){x.current.isScrolling=!0,E(e)}(e))},onTouchMove:S(r),onWheel:S(a),ref:(0,m.A)(C,t),style:[v,!l&&b.scrollDisabled,k&&b.hideScrollbar]}))})),b=f.A.create({scrollDisabled:{overflowX:"hidden",overflowY:"hidden",touchAction:"none"},hideScrollbar:{scrollbarWidth:"none"}});const A=v;var x=n(38865),w=n(8683),C=n(14594),S=n.n(C),E=["contentContainerStyle","horizontal","onContentSizeChange","refreshControl","stickyHeaderIndices","pagingEnabled","forwardedRef","keyboardDismissMode","onScroll","centerContent"],k={};class T extends d.Component{constructor(){super(...arguments),this._scrollNodeRef=null,this._innerViewRef=null,this.isTouching=!1,this.lastMomentumScrollBeginTime=0,this.lastMomentumScrollEndTime=0,this.observedScrollSinceBecomingResponder=!1,this.becameResponderWhileAnimating=!1,this.scrollResponderHandleScrollShouldSetResponder=()=>this.isTouching,this.scrollResponderHandleStartShouldSetResponderCapture=e=>this.scrollResponderIsAnimating(),this.scrollResponderHandleTerminationRequest=()=>!this.observedScrollSinceBecomingResponder,this.scrollResponderHandleTouchEnd=e=>{var t=e.nativeEvent;this.isTouching=0!==t.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(e)},this.scrollResponderHandleResponderRelease=e=>{this.props.onResponderRelease&&this.props.onResponderRelease(e);var t=x.A.currentlyFocusedField();this.props.keyboardShouldPersistTaps||null==t||e.target===t||this.observedScrollSinceBecomingResponder||this.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),x.A.blurTextInput(t))},this.scrollResponderHandleScroll=e=>{this.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},this.scrollResponderHandleResponderGrant=e=>{this.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},this.scrollResponderHandleScrollBeginDrag=e=>{this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this.scrollResponderHandleScrollEndDrag=e=>{this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this.scrollResponderHandleMomentumScrollBegin=e=>{this.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this.scrollResponderHandleMomentumScrollEnd=e=>{this.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this.scrollResponderHandleTouchStart=e=>{this.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},this.scrollResponderHandleTouchMove=e=>{this.props.onTouchMove&&this.props.onTouchMove(e)},this.scrollResponderIsAnimating=()=>Date.now()-this.lastMomentumScrollEndTime<16||this.lastMomentumScrollEndTime{if("number"==typeof e)console.warn("`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||k;e=r.x,t=r.y,n=r.animated}var i=this.getScrollableNode(),o=e||0,a=t||0;null!=i&&("function"==typeof i.scroll?i.scroll({top:a,left:o,behavior:n?"smooth":"auto"}):(i.scrollLeft=o,i.scrollTop=a))},this.scrollResponderZoomTo=(e,t)=>{"ios"!==h.A.OS&&c()("zoomToRect is not implemented")},this.scrollResponderScrollNativeHandleToKeyboard=(e,t,n)=>{this.additionalScrollOffset=t||0,this.preventNegativeScrollOffset=!!n,w.A.measureLayout(e,this.getInnerViewNode(),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},this.scrollResponderInputMeasureAndScrollToKeyboard=(e,t,n,r)=>{var i=a.A.get("window").height;this.keyboardWillOpenTo&&(i=this.keyboardWillOpenTo.endCoordinates.screenY);var o=t-i+r+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(o=Math.max(0,o)),this.scrollResponderScrollTo({x:0,y:o,animated:!0}),this.additionalOffset=0,this.preventNegativeScrollOffset=!1},this.scrollResponderKeyboardWillShow=e=>{this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},this.scrollResponderKeyboardWillHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},this.scrollResponderKeyboardDidShow=e=>{e&&(this.keyboardWillOpenTo=e),this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow(e)},this.scrollResponderKeyboardDidHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide(e)},this.flashScrollIndicators=()=>{this.scrollResponderFlashScrollIndicators()},this.getScrollResponder=()=>this,this.getScrollableNode=()=>this._scrollNodeRef,this.getInnerViewRef=()=>this._innerViewRef,this.getInnerViewNode=()=>this._innerViewRef,this.getNativeScrollRef=()=>this._scrollNodeRef,this.scrollTo=(e,t,n)=>{if("number"==typeof e)console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||k;t=r.x,e=r.y,n=r.animated}this.scrollResponderScrollTo({x:t||0,y:e||0,animated:!1!==n})},this.scrollToEnd=e=>{var t=!1!==(e&&e.animated),n=this.props.horizontal,r=this.getScrollableNode(),i=n?r.scrollWidth:0,o=n?0:r.scrollHeight;this.scrollResponderScrollTo({x:i,y:o,animated:t})},this._handleContentOnLayout=e=>{var t=e.nativeEvent.layout,n=t.width,r=t.height;this.props.onContentSizeChange(n,r)},this._handleScroll=e=>{"on-drag"===this.props.keyboardDismissMode&&(0,s.A)(),this.scrollResponderHandleScroll(e)},this._setInnerViewRef=e=>{this._innerViewRef=e},this._setScrollNodeRef=e=>{this._scrollNodeRef=e,null!=e&&(e.getScrollResponder=this.getScrollResponder,e.getInnerViewNode=this.getInnerViewNode,e.getInnerViewRef=this.getInnerViewRef,e.getNativeScrollRef=this.getNativeScrollRef,e.getScrollableNode=this.getScrollableNode,e.scrollTo=this.scrollTo,e.scrollToEnd=this.scrollToEnd,e.flashScrollIndicators=this.flashScrollIndicators,e.scrollResponderZoomTo=this.scrollResponderZoomTo,e.scrollResponderScrollNativeHandleToKeyboard=this.scrollResponderScrollNativeHandleToKeyboard),(0,u.A)(this.props.forwardedRef)(e)}}scrollResponderHandleStartShouldSetResponder(){return!1}scrollResponderHandleResponderReject(){S()(!1,"ScrollView doesn't take rejection well - scrolls anyway")}scrollResponderFlashScrollIndicators(){}scrollResponderTextInputFocusError(e){console.error("Error measuring text field: ",e)}render(){var e=this.props,t=e.contentContainerStyle,n=e.horizontal,a=e.onContentSizeChange,s=e.refreshControl,l=e.stickyHeaderIndices,u=e.pagingEnabled,h=(e.forwardedRef,e.keyboardDismissMode,e.onScroll,e.centerContent),f=(0,o.A)(e,E),m={};a&&(m={onLayout:this._handleContentOnLayout});var g=!n&&Array.isArray(l),y=g||u?d.Children.map(this.props.children,((e,t)=>{var n=g&&l.indexOf(t)>-1;return null!=e&&(n||u)?d.createElement(p.A,{style:[n&&O.stickyHeader,u&&O.pagingEnabledChild]},e):e})):this.props.children,v=d.createElement(p.A,(0,i.A)({},m,{children:y,collapsable:!1,ref:this._setInnerViewRef,style:[n&&O.contentContainerHorizontal,h&&O.contentContainerCenterContent,t]})),b=n?O.baseHorizontal:O.baseVertical,x=n?O.pagingEnabledHorizontal:O.pagingEnabledVertical,w=(0,r.A)((0,r.A)({},f),{},{style:[b,u&&x,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject}),C=A;c()(void 0!==C,"ScrollViewClass must not be undefined");var S=d.createElement(C,(0,i.A)({},w,{ref:this._setScrollNodeRef}),v);return s?d.cloneElement(s,{style:w.style},S):S}}var I={flexGrow:1,flexShrink:1,transform:"translateZ(0)",WebkitOverflowScrolling:"touch"},O=f.A.create({baseVertical:(0,r.A)((0,r.A)({},I),{},{flexDirection:"column",overflowX:"hidden",overflowY:"auto"}),baseHorizontal:(0,r.A)((0,r.A)({},I),{},{flexDirection:"row",overflowX:"auto",overflowY:"hidden"}),contentContainerHorizontal:{flexDirection:"row"},contentContainerCenterContent:{justifyContent:"center",flexGrow:1},stickyHeader:{position:"sticky",top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:"x mandatory"},pagingEnabledVertical:{scrollSnapType:"y mandatory"},pagingEnabledChild:{scrollSnapAlign:"start"}}),R=d.forwardRef(((e,t)=>d.createElement(T,(0,i.A)({},e,{forwardedRef:t}))));R.displayName="ScrollView";const M=R},35345:e=>{"use strict";e.exports=URIError},35680:(e,t,n)=>{"use strict";var r=n(25767);e.exports=function(e){return!!r(e)}},36039:(e,t,n)=>{"use strict";var r=n(63331),i=n(54224),o=n(8410),a=n(41003);e.exports=function(e){var t=o(e);if(!r(t)||0===t)return 0;var n=a(t);return i(n,256)}},36268:(e,t,n)=>{"use strict";var r=n(70453),i=n(6966),o=n(92702),a=n(19723),s=n(69675),l=n(93628),c=n(79612);e.exports=function(e){if(!o(e))throw new s("Reflect.getPrototypeOf called on non-object");if(l)return l(e);var t=a(e);if(t){var n=r("%"+t+".prototype%",!0);if(n)return n}return i(e.constructor)?e.constructor.prototype:e instanceof Object?c.prototype:null}},36430:(e,t,n)=>{"use strict";n.d(t,{A:()=>L});var r=n(58168),i=n(98587),o=n(96540),a=n(40961),s=n(7162);const l=function(e){var t=e.children,n=o.useRef(null);if(s.A&&!n.current){var r=document.createElement("div");r&&document.body&&(document.body.appendChild(r),n.current=r)}return o.useEffect((()=>{if(s.A)return()=>{document.body&&n.current&&(document.body.removeChild(n.current),n.current=null)}}),[]),n.current&&s.A?a.createPortal(t,n.current):null};var c=n(43999),u=n(71261);function h(e,t){return"slide"===e?t?f:p:"fade"===e?t?m:g:t?d.container:d.hidden}var d=c.A.create({container:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:9999},animatedIn:{animationDuration:"300ms",animationTimingFunction:"ease-in"},animatedOut:{pointerEvents:"none",animationDuration:"300ms",animationTimingFunction:"ease-out"},fadeIn:{opacity:1,animationKeyframes:{"0%":{opacity:0},"100%":{opacity:1}}},fadeOut:{opacity:0,animationKeyframes:{"0%":{opacity:1},"100%":{opacity:0}}},slideIn:{transform:"translateY(0%)",animationKeyframes:{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0%)"}}},slideOut:{transform:"translateY(100%)",animationKeyframes:{"0%":{transform:"translateY(0%)"},"100%":{transform:"translateY(100%)"}}},hidden:{opacity:0}}),f=[d.container,d.animatedIn,d.slideIn],p=[d.container,d.animatedOut,d.slideOut],m=[d.container,d.animatedIn,d.fadeIn],g=[d.container,d.animatedOut,d.fadeOut];const y=function(e){var t=e.animationType,n=e.children,r=e.onDismiss,i=e.onShow,a=e.visible,s=o.useState(!1),l=s[0],c=s[1],f=o.useRef(!1),p=o.useRef(!1),m=t&&"none"!==t,g=o.useCallback((e=>{e&&e.currentTarget!==e.target||(a?i&&i():c(!1))}),[i,a]);return o.useEffect((()=>{p.current&&!l&&r&&r(),p.current=l}),[l,r]),o.useEffect((()=>{a&&c(!0),a===f.current||m||g(),f.current=a}),[m,a,g]),l||a?(0,u.A)("div",{style:l?h(t,a):d.hidden,onAnimationEnd:g,children:n}):null};var v=n(9176),b=["active","children","onRequestClose","transparent"],A=o.forwardRef(((e,t)=>{var n=e.active,a=e.children,l=e.onRequestClose,c=e.transparent,u=(0,i.A)(e,b);o.useEffect((()=>{if(s.A){var e=e=>{n&&"Escape"===e.key&&(e.stopPropagation(),l&&l())};return document.addEventListener("keyup",e,!1),()=>document.removeEventListener("keyup",e,!1)}}),[n,l]);var h=o.useMemo((()=>[x.modal,c?x.modalTransparent:x.modalOpaque]),[c]);return o.createElement(v.A,(0,r.A)({},u,{"aria-modal":!0,ref:t,role:n?"dialog":null,style:h}),o.createElement(v.A,{style:x.container},a))})),x=c.A.create({modal:{position:"fixed",top:0,right:0,bottom:0,left:0},modalTransparent:{backgroundColor:"transparent"},modalOpaque:{backgroundColor:"white"},container:{top:0,flex:1}});const w=A;var C=n(8683),S=()=>(0,u.A)("div",{role:"none",tabIndex:0,style:O.focusBracket});function E(e){if(!s.A)return!1;try{e.focus()}catch(e){}return document.activeElement===e}function k(e){for(var t=0;t=0;t--){var n=e.childNodes[t];if(E(n)||T(n))return!0}return!1}const I=e=>{var t=e.active,n=e.children,r=o.useRef(),i=o.useRef({trapFocusInProgress:!1,lastFocusedElement:null});return o.useEffect((()=>{if(s.A){var e=()=>{if(null!=r.current&&!i.current.trapFocusInProgress&&t){try{if(i.current.trapFocusInProgress=!0,document.activeElement instanceof Node&&!r.current.contains(document.activeElement)){var e=k(r.current);i.current.lastFocusedElement===document.activeElement&&(e=T(r.current)),!e&&null!=r.current&&document.activeElement&&C.A.focus(r.current)}}finally{i.current.trapFocusInProgress=!1}i.current.lastFocusedElement=document.activeElement}};return e(),document.addEventListener("focus",e,!0),()=>document.removeEventListener("focus",e,!0)}}),[t]),o.useEffect((function(){if(s.A){var e=document.activeElement;return function(){e&&document.contains(e)&&C.A.focus(e)}}}),[]),o.createElement(o.Fragment,null,o.createElement(S,null),o.createElement(v.A,{ref:r},n),o.createElement(S,null))};var O=c.A.create({focusBracket:{outlineStyle:"none"}}),R=["animationType","children","onDismiss","onRequestClose","onShow","transparent","visible"],M=0,P=[],D={};function j(){if(0!==P.length){var e=P[P.length-1];P.forEach((t=>{t in D&&D[t](t===e)}))}}function B(e){e in D&&(D[e](!1),delete D[e]);var t=P.indexOf(e);-1!==t&&(P.splice(t,1),j())}const L=o.forwardRef(((e,t)=>{var n=e.animationType,a=e.children,s=e.onDismiss,c=e.onRequestClose,u=e.onShow,h=e.transparent,d=e.visible,f=void 0===d||d,p=(0,i.A)(e,R),m=o.useMemo((()=>M++),[]),g=o.useState(!1),v=g[0],b=g[1],A=o.useCallback((()=>{B(m),s&&s()}),[m,s]),x=o.useCallback((()=>{!function(e,t){B(e),P.push(e),D[e]=t,j()}(m,b),u&&u()}),[m,u]);return o.useEffect((()=>()=>B(m)),[m]),o.createElement(l,null,o.createElement(y,{animationType:n,onDismiss:A,onShow:x,visible:f},o.createElement(I,{active:v},o.createElement(w,(0,r.A)({},p,{active:v,onRequestClose:c,ref:t,transparent:h}),a))))}))},36556:(e,t,n)=>{"use strict";var r=n(70453),i=n(73126),o=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i([n]):n}},36571:(e,t,n)=>{"use strict";var r=n(72733),i=n(46732),o=n(2909).escapeFacetValue,a=n(73014),s=n(44728),l=n(40317),c=n(21383),u=n(19127),h=n(42223),d=n(49228),f=n(33371),p=n(67691),m=n(57749),g=n(16938);function y(e,t,n,r){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.setClient(e);var i=n||{};i.index=t,this.state=f.make(i),this.recommendState=new u({params:i.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=r,this._recommendCache={}}function v(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function b(){return this.state.page}a(y,r),y.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},y.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},y.prototype.searchWithComposition=function(){return this._runComposition({onlyWithDerivedHelpers:!0}),this},y.prototype.recommend=function(){return this._recommend(),this},y.prototype.getQuery=function(){var e=this.state;return d._getHitsSearchParams(e)},y.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,r=d._getQueries(n.index,n),i=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:n}),!t)return this.client.search(r).then((function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new p(n,e.results),state:n,_originalResponse:e}}),(function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e}));this.client.search(r).then((function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new p(n,e.results),n)})).catch((function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,n)}))},y.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,n=this.derivedHelpers[0];if(!n)return Promise.resolve([]);var r=n.getModifiedState(t),i=s({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:c(d._getHitsSearchParams(r),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),o="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw new Error(o);var a=this.client.initIndex(r.index);if("function"!=typeof a.findAnswers)throw new Error(o);return a.findAnswers(r.query,e.queryLanguages,i)},y.prototype.searchForFacetValues=function(e,t,n,r){var i="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,a="function"==typeof this.client.initIndex;if(!i&&!a&&"function"!=typeof this.client.search)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var s=this.state.setQueryParameters(r||{}),l=s.isDisjunctiveFacet(e),c=d.getSearchForFacetQuery(e,t,n,s);this._currentNbQueries++;var u,h=this;return i?u=this.client.searchForFacetValues([{indexName:s.index,params:c}]):a?u=this.client.initIndex(s.index).searchForFacetValues(c):(delete c.facetName,u=this.client.search([{type:"facet",facet:e,indexName:s.index,params:c}]).then((function(e){return e.results[0]}))),this.emit("searchForFacetValues",{state:s,facet:e,query:t}),u.then((function(t){return h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits.forEach((function(t){t.escapedValue=o(t.value),t.isRefined=l?s.isDisjunctiveFacetRefined(e,t.escapedValue):s.isFacetRefined(e,t.escapedValue)})),t}),(function(e){throw h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),e}))},y.prototype.searchForCompositionFacetValues=function(e,t,n,r){if("function"!=typeof this.client.searchForFacetValues)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues");var i=this.state.setQueryParameters(r||{}),a=i.isDisjunctiveFacet(e);this._currentNbQueries++;var s,l=this;return s=this.client.searchForFacetValues({compositionID:i.index,facetName:e,searchForFacetValuesRequest:{params:{query:t,maxFacetHits:n,searchQuery:d._getCompositionHitsSearchParams(i)}}}),this.emit("searchForFacetValues",{state:i,facet:e,query:t}),s.then((function(t){return l._currentNbQueries--,0===l._currentNbQueries&&l.emit("searchQueueEmpty"),(t=t.results[0]).facetHits.forEach((function(t){t.escapedValue=o(t.value),t.isRefined=a?i.isDisjunctiveFacetRefined(e,t.escapedValue):i.isFacetRefined(e,t.escapedValue)})),t}),(function(e){throw l._currentNbQueries--,0===l._currentNbQueries&&l.emit("searchQueueEmpty"),e}))},y.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},y.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},y.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},y.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},y.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.addNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,n),isPageReset:!0}),this},y.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},y.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},y.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},y.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},y.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},y.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},y.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},y.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},y.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},y.prototype.removeNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,n),isPageReset:!0}),this},y.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},y.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},y.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},y.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},y.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},y.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},y.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},y.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},y.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},y.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},y.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},y.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},y.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},y.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},y.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},y.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},y.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},y.prototype.setCurrentPage=v,y.prototype.setPage=v,y.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},y.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},y.prototype.setState=function(e){return this._change({state:f.make(e),isPageReset:!1}),this},y.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new f(e),this},y.prototype.hasRefinements=function(e){return!!l(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},y.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},y.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},y.prototype.hasTag=function(e){return this.state.isTagRefined(e)},y.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},y.prototype.getIndex=function(){return this.state.index},y.prototype.getCurrentPage=b,y.prototype.getPage=b,y.prototype.getTags=function(){return this.state.tagRefinements},y.prototype.getRefinements=function(e){var t=[];this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"conjunctive"})})),this.state.getExcludeRefinements(e).forEach((function(e){t.push({value:e,type:"exclude"})}))):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"disjunctive"})}));var n=this.state.getNumericRefinements(e);return Object.keys(n).forEach((function(e){var r=n[e];t.push({value:r,operator:e,type:"numeric"})})),t},y.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},y.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},y.prototype._search=function(e){var t=this.state,n=[],r=[];e.onlyWithDerivedHelpers||(r=d._getQueries(t.index,t),n.push({state:t,queriesCount:r.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map((function(e){var r=e.getModifiedState(t),i=r.index?d._getQueries(r.index,r):[];return n.push({state:r,queriesCount:i.length,helper:e}),e.emit("search",{state:r,results:e.lastResults}),i})),o=Array.prototype.concat.apply(r,i),a=this._queryId++;if(this._currentNbQueries++,!o.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,n,a));try{this.client.search(o).then(this._dispatchAlgoliaResponse.bind(this,n,a)).catch(this._dispatchAlgoliaError.bind(this,a))}catch(e){this.emit("error",{error:e})}},y.prototype._runComposition=function(){var e=this.state,t=[],n=this.derivedHelpers.map((function(n){var r=n.getModifiedState(e),i=d._getCompositionQueries(r);return t.push({state:r,queriesCount:i.length,helper:n}),n.emit("search",{state:r,results:n.lastResults}),i})),r=Array.prototype.concat.apply([],n),i=this._queryId++;if(this._currentNbQueries++,!r.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,t,i));if(r.length>1)throw new Error("Only one query is allowed when using a composition.");var o=r[0];try{this.client.search(o).then(this._dispatchAlgoliaResponse.bind(this,t,i)).catch(this._dispatchAlgoliaError.bind(this,i))}catch(e){this.emit("error",{error:e})}},y.prototype._recommend=function(){var e=this.state,t=this.recommendState,n=this.getIndex(),r=[{state:t,index:n,helper:this}],i=t.params.map((function(e){return e.$$id}));this.emit("fetch",{recommend:{state:t,results:this.lastRecommendResults}});var o=this._recommendCache,a=this.derivedHelpers.map((function(t){var n=t.getModifiedState(e).index;if(!n)return[];var a=t.getModifiedRecommendState(new u);return r.push({state:a,index:n,helper:t}),i=Array.prototype.concat.apply(i,a.params.map((function(e){return e.$$id}))),t.emit("fetch",{recommend:{state:a,results:t.lastRecommendResults}}),a._buildQueries(n,o)})),s=Array.prototype.concat.apply(this.recommendState._buildQueries(n,o),a);if(0!==s.length)if(s.length>0&&void 0===this.client.getRecommendations)console.warn("Please update algoliasearch/lite to the latest version in order to use recommend widgets.");else{var l=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(s).then(this._dispatchRecommendResponse.bind(this,l,r,i)).catch(this._dispatchRecommendError.bind(this,l))}catch(e){this.emit("error",{error:e})}}},y.prototype._dispatchAlgoliaResponse=function(e,t,n){var r=this;if(!(t0},y.prototype._change=function(e){var t=e.state,n=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:n}))},y.prototype._recommendChange=function(e){var t=e.state;t!==this.recommendState&&(this.recommendState=t,this.emit("recommend:change",{search:{results:this.lastResults,state:this.state},recommend:{results:this.lastRecommendResults,state:this.recommendState}}))},y.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},y.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.client=e),this},y.prototype.getClient=function(){return this.client},y.prototype.derive=function(e,t){var n=new i(this,e,t);return this.derivedHelpers.push(n),n},y.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},y.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=y},36576:(e,t,n)=>{"use strict";var r=n(9394),i=n(38452);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},36623:(e,t,n)=>{"use strict";var r=n(25767),i=n(53432),o=n(75795);function a(e){return Object.prototype.toString.call(e)}var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function l(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n2?arguments[2]:m,u=a.includeSymbols?d:c,h=!!a.immutable;return function e(c){var d=h?p(c,a):c,m={__proto__:null},g=!0,y={node:d,node_:c,path:[].concat(n),parent:r[r.length-1],parents:r,key:n[n.length-1],removedKeys:{__proto__:null},isRoot:0===n.length,level:n.length,circular:null,update:function(e,t){y.isRoot||(y.parent.node[y.key]=e),y.node=e,t&&(g=!1)},delete:function(e){delete y.parent.node[y.key],y.parent.removedKeys[y.key]=!0,e&&(g=!1)},remove:function(e){s(y.parent.node)?(y.parent.node.splice(y.key,1),y.parent.removedKeys[y.key]=!0,e&&(g=!1)):y.delete(e)},keys:null,before:function(e){m.before=e},after:function(e){m.after=e},pre:function(e){m.pre=e},post:function(e){m.post=e},stop:function(){i=!1},block:function(){g=!1}};if(!i)return y;function v(){if("object"==typeof y.node&&null!==y.node){y.keys&&y.node_===y.node||(y.keys=u(y.node)),y.isLeaf=0===y.keys.length;for(var e=0;e1?arguments[1]:m,this.value=e}function v(e){return new y(e,arguments.length>1?arguments[1]:m)}y.prototype.get=function(e){for(var t=this.value,n=0;t&&n0)return!1;for(var n=0;t&&n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(r.__importDefault(n(27796)).default);t.default=i},36998:(e,t,n)=>{"use strict";n.d(t,{A:()=>b}),n(8);var r=n(90646),i=n.n(r),o=n(75767),a=n(58168),s=n(96540),l=n(43999),c=n(9176),u=s.createContext(null),h=s.forwardRef(((e,t)=>{var n=e.children,r=e.WrapperComponent,i=s.createElement(c.A,{children:n,key:1,style:p.appContainer});return r&&(i=s.createElement(r,null,i)),s.createElement(u.Provider,{value:e.rootTag},s.createElement(c.A,{ref:t,style:p.appContainer},i))}));h.displayName="AppContainer";const d=h;var f,p=l.A.create({appContainer:{flex:1,pointerEvents:"box-none"}}),m=n(66109),g={},y={},v=e=>e();class b{static getAppKeys(){return Object.keys(y)}static getApplication(e,t){return i()(y[e]&&y[e].getApplication,"Application "+e+" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),y[e].getApplication(t)}static registerComponent(e,t){return y[e]={getApplication:e=>{return n=v(t),r=e?e.initialProps:g,i=f&&f(e),{element:s.createElement(d,{WrapperComponent:i,rootTag:{}},s.createElement(n,r)),getStyleElement:e=>{var t=l.A.getSheet();return s.createElement("style",(0,a.A)({},e,{dangerouslySetInnerHTML:{__html:t.textContent},id:t.id}))}};var n,r,i},run:e=>{return n=v(t),r=f&&f(e),o=e.callback,l=(a={hydrate:e.hydrate||!1,initialProps:e.initialProps||g,mode:e.mode||"concurrent",rootTag:e.rootTag}).initialProps,c=a.rootTag,u=a.hydrate?m.Q:m.A,i()(c,"Expect to have a valid rootTag, instead got ",c),u(s.createElement(d,{WrapperComponent:r,ref:o,rootTag:c},s.createElement(n,l)),c);var n,r,o,a,l,c,u}},e}static registerConfig(e){e.forEach((e=>{var t=e.appKey,n=e.component,r=e.run;r?b.registerRunnable(t,r):(i()(n,"No component provider passed in"),b.registerComponent(t,n))}))}static registerRunnable(e,t){return y[e]={run:t},e}static runApplication(e,t){return i()(y[e]&&y[e].run,'Application "'+e+'" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.'),y[e].run(t)}static setComponentProviderInstrumentationHook(e){v=e}static setWrapperComponentProvider(e){f=e}static unmountApplicationComponentAtRootTag(e){(0,o.A)(e)}}},37024:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII="},37043:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(8),i=n(58168),o=n(98587),a=n(96540),s=n(71261),l=/^[+-]?\d*(?:\.\d+)?(?:[Ee][+-]?\d+)?(%|\w*)/;const c=(e,t)=>{var n;return"string"==typeof e?""+parseFloat(e)*t+e.match(l)[1]:(n=e,!isNaN(parseFloat(n))&&isFinite(n)?e*t:void 0)};var u=n(43999),h=n(9176),d=["aria-label","accessibilityLabel","activeThumbColor","activeTrackColor","disabled","onValueChange","style","thumbColor","trackColor","value"],f={},p="0px 1px 3px rgba(0,0,0,0.5)",m=p+", 0 0 0 10px rgba(0,0,0,0.1)",g="#D5D5D5",y="#BDBDBD",v=a.forwardRef(((e,t)=>{var n=e["aria-label"],r=e.accessibilityLabel,l=e.activeThumbColor,v=e.activeTrackColor,A=e.disabled,x=void 0!==A&&A,w=e.onValueChange,C=e.style,S=void 0===C?f:C,E=e.thumbColor,k=e.trackColor,T=e.value,I=void 0!==T&&T,O=(0,o.A)(e,d),R=a.useRef(null);function M(e){var t="focus"===e.nativeEvent.type?m:p;null!=R.current&&(R.current.style.boxShadow=t)}var P=u.A.flatten(S),D=P.height,j=P.width,B=D||"20px",L=c(B,2),F=j>L?j:L,N=c(B,.5),_=!0===I?null!=k&&"object"==typeof k?k.true:null!=v?v:"#A3D3CF":null!=k&&"object"==typeof k?k.false:null!=k?k:"#939393",z=I?null!=l?l:"#009688":null!=E?E:"#FAFAFA",V=B,U=V,H=[b.root,S,x&&b.cursorDefault,{height:B,width:F}],q=!0===I?"string"==typeof v&&null!=v||"object"==typeof k&&null!=k&&k.true?_:g:"string"==typeof k&&null!=k||"object"==typeof k&&null!=k&&k.false?_:g,G=!0===I?null==l?y:z:null==E?y:z,Y=[b.track,{backgroundColor:x?q:_,borderRadius:N}],W=[b.thumb,I&&b.thumbActive,{backgroundColor:x?G:z,height:V,marginStart:I?c(U,-1):0,width:U}],Q=(0,s.A)("input",{"aria-label":n||r,checked:I,disabled:x,onBlur:M,onChange:function(e){null!=w&&w(e.nativeEvent.target.checked)},onFocus:M,ref:t,style:[b.nativeControl,b.cursorInherit],type:"checkbox",role:"switch"});return a.createElement(h.A,(0,i.A)({},O,{style:H}),a.createElement(h.A,{style:Y}),a.createElement(h.A,{ref:R,style:W}),Q)}));v.displayName="Switch";var b=u.A.create({root:{cursor:"pointer",userSelect:"none"},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},track:(0,r.A)((0,r.A)({forcedColorAdjust:"none"},u.A.absoluteFillObject),{},{height:"70%",margin:"auto",transitionDuration:"0.1s",width:"100%"}),thumb:{forcedColorAdjust:"none",alignSelf:"flex-start",borderRadius:"100%",boxShadow:p,start:"0%",transform:"translateZ(0)",transitionDuration:"0.1s"},thumbActive:{insetInlineStart:"100%"},nativeControl:(0,r.A)((0,r.A)({},u.A.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})});const A=v},37070:(e,t,n)=>{"use strict";var r=n(36556)("SharedArrayBuffer.prototype.byteLength",!0);e.exports=r?function(e){if(!e||"object"!=typeof e)return!1;try{return r(e),!0}catch(e){return!1}}:function(e){return!1}},37196:(e,t,n)=>{"use strict";var r=n(8410),i=n(41003),o=n(94459),a=n(63331);e.exports=function(e){var t=r(e);return o(t)||0===t?0:a(t)?i(t):t}},37205:()=>{},37260:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.FacetSearchResponseAdapter=void 0;var i=r(n(17383)),o=r(n(34579)),a=n(46794),s=t.FacetSearchResponseAdapter=function(){return(0,o.default)((function e(t,n){(0,i.default)(this,e),this.typesenseResponse=t,this.instantsearchRequest=n}),[{key:"_adaptFacetHits",value:function(e){var t=this;return e.find((function(e){return e.field_name===t.instantsearchRequest.params.facetName})).counts.map((function(e){return{value:e.value,highlighted:t._adaptHighlightTag(e.highlighted,t.instantsearchRequest.params.highlightPreTag,t.instantsearchRequest.params.highlightPostTag),count:e.count}}))}},{key:"adapt",value:function(){return{facetHits:this._adaptFacetHits(this.typesenseResponse.facet_counts),exhaustiveFacetsCount:!0,processingTimeMS:this.typesenseResponse.search_time_ms}}}])}();Object.assign(s.prototype,a.utils)},37653:(e,t,n)=>{"use strict";var r=n(38452),i=n(10487),o=n(89211),a=n(9394),s=n(36576),l=i(a(),Object);r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},37765:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayableParams=void 0,t.arrayableParams={query_by:"query_by",query_by_weights:"query_by_weights",facet_by:"facet_by",group_by:"group_by",include_fields:"include_fields",exclude_fields:"exclude_fields",highlight_fields:"highlight_fields",highlight_full_fields:"highlight_full_fields",pinned_hits:"pinned_hits",hidden_hits:"hidden_hits",infix:"infix",override_tags:"override_tags",num_typos:"num_typos",prefix:"prefix",sort_by:"sort_by"}},37971:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){for(var o=0,a=e.length;o{"use strict";var r=n(70453),i=n(10487),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},38233:e=>{"use strict";e.exports="data:image/svg+xml;charset=UTF-8,%3csvg width=%2732%27 height=%2732%27 viewBox=%270 0 32 32%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath d=%27M17.5 10.5C17.5 10.2239 17.7239 10 18 10C18.2761 10 18.5 10.2239 18.5 10.5V17.5C18.5 17.7761 18.2761 18 18 18C17.7239 18 17.5 17.7761 17.5 17.5V10.5Z%27 fill=%27white%27/%3e%3cpath d=%27M21.5 13.5C21.7761 13.5 22 13.7239 22 14C22 14.2761 21.7761 14.5 21.5 14.5L14.5 14.5C14.2239 14.5 14 14.2761 14 14C14 13.7239 14.2239 13.5 14.5 13.5L21.5 13.5Z%27 fill=%27white%27/%3e%3crect x=%2712.3259%27 y=%2718.5298%27 width=%272%27 height=%278.94612%27 rx=%271%27 transform=%27rotate%2845 12.3259 18.5298%29%27 fill=%27white%27/%3e%3ccircle cx=%2718%27 cy=%2714%27 r=%277.5%27 stroke=%27white%27/%3e%3c/svg%3e"},38268:(e,t,n)=>{"use strict";var r=n(69675),i=n(60280),o=n(79901),a=n(25910),s=n(6188),l=n(68002),c=n(2076),u=n(2138),h=n(37196),d=n(24810),f=n(4742),p=n(26419),m=n(17057),g=n(91509),y=n(74372),v=n(72308);e.exports=function(e,t){var n=this;g(n,"SEQ-CST");var b,A=n.length,x=h(e);b=x===-1/0?0:x<0?s(A+x,0):l(x,A);var w,C=void 0===t?A:h(t);w=C===-1/0?0:C<0?s(A+C,0):l(C,A);var S=s(w-b,0),E=m(n,[S]);if(S>0){if(a(y(n)))throw new r("Cannot use a Typed Array with an underlying ArrayBuffer that is detached");if(p(n)===p(E))for(var k=y(n),T=y(E),I=f(n),O=b*I+v(n),R=v(E),M=R+S*I;R{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.importResults=n,i.payload=r,i}return r.__extends(t,e),t}(r.__importDefault(n(27796)).default);t.default=i},38403:(e,t,n)=>{"use strict";var r=n(1189),i=n(41333)(),o=n(36556),a=n(79612),s=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),c=i?a.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var o=1;o{"use strict";var r=n(1189),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=n(30041),l=n(30592)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;l?s(e,t,n,!0):s(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s{"use strict";n.d(t,{A:()=>r});const r=n(5963).A},38557:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(45706)),o=r.__importDefault(n(5996)),a=r.__importDefault(n(18621)),s=n(57112),l=function(){function e(e){var t;e.sendApiKeyAsQueryParam=null===(t=e.sendApiKeyAsQueryParam)||void 0===t||t,!0===e.sendApiKeyAsQueryParam&&(e.apiKey||"").length>2e3&&(console.warn("[typesense] API Key is longer than 2000 characters which is over the allowed limit, so disabling sending it as a query parameter."),e.sendApiKeyAsQueryParam=!1),this.configuration=new i.default(e),this.apiCall=new o.default(this.configuration),this.multiSearch=new a.default(this.apiCall,this.configuration,!0),this.individualCollections={}}return e.prototype.clearCache=function(){this.multiSearch.clearCache(),Object.entries(this.individualCollections).forEach((function(e){e[0],e[1].documents().clearCache()}))},e.prototype.collections=function(e){if(e)return void 0===this.individualCollections[e]&&(this.individualCollections[e]=new s.SearchOnlyCollection(e,this.apiCall,this.configuration)),this.individualCollections[e];throw new Error("Typesense.SearchClient only supports search operations, so the collectionName that needs to be searched must be specified. Use Typesense.Client if you need to access the collection object.")},e}();t.default=l},38567:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Errors=t.SearchClient=t.Client=void 0;var r=n(31635),i=r.__importDefault(n(95641));t.Client=i.default;var o=r.__importDefault(n(38557));t.SearchClient=o.default;var a=r.__importStar(n(14410));t.Errors=a,t.default={Client:i.default,SearchClient:o.default,Errors:a}},38601:e=>{"use strict";function t(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=void 0!==t,o=null===t;if(!o&&e>t||r&&i||!n)return 1;if(!r&&e=r.length?o:"desc"===r[i]?-o:o}return e.index-n.index})),i.map((function(e){return e.value}))}},38657:e=>{e.exports=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])}},38837:(e,t,n)=>{"use strict";const r=n(33363);n(11934);t.Ay=r.Clipboard},38865:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(8683);const i={_currentlyFocusedNode:null,currentlyFocusedField(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput(e){null!==e&&(this._currentlyFocusedNode=e,document.activeElement!==e&&r.A.focus(e))},blurTextInput(e){null!==e&&(this._currentlyFocusedNode=null,document.activeElement===e&&r.A.blur(e))}}},39209:(e,t,n)=>{"use strict";var r=n(76578),i="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t{"use strict";if(n(29790)()){var r=BigInt.prototype.valueOf;e.exports=function(e){return null!=e&&"boolean"!=typeof e&&"string"!=typeof e&&"number"!=typeof e&&"symbol"!=typeof e&&"function"!=typeof e&&("bigint"==typeof e||function(e){try{return r.call(e),!0}catch(e){}return!1}(e))}}else e.exports=function(e){return!1}},40121:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0;var i=r(n(17383)),o=r(n(34579));t.Configuration=function(){return(0,o.default)((function e(){var t,n,r,o,a,s,l,c,u,h,d,f,p,m,g,y,v,b,A,x,w=this,C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.default)(this,e),this.server=C.server||{nodes:[{host:"localhost",port:"8108",path:"",protocol:"http"}]},this.server.cacheSearchResultsForSeconds=null!==(t=this.server.cacheSearchResultsForSeconds)&&void 0!==t?t:120,this.additionalSearchParameters=null!==(n=C.additionalSearchParameters)&&void 0!==n?n:{},this.additionalSearchParameters.query_by=null!==(r=null!==(o=this.additionalSearchParameters.queryBy)&&void 0!==o?o:this.additionalSearchParameters.query_by)&&void 0!==r?r:"",this.additionalSearchParameters.preset=null!==(a=null!==(s=this.additionalSearchParameters.preset)&&void 0!==s?s:this.additionalSearchParameters.preset)&&void 0!==a?a:"",this.additionalSearchParameters.sort_by=null!==(l=null!==(c=this.additionalSearchParameters.sortBy)&&void 0!==c?c:this.additionalSearchParameters.sort_by)&&void 0!==l?l:"",this.additionalSearchParameters.highlight_full_fields=null!==(u=null!==(h=this.additionalSearchParameters.highlightFullFields)&&void 0!==h?h:this.additionalSearchParameters.highlight_full_fields)&&void 0!==u?u:this.additionalSearchParameters.query_by,this.geoLocationField=null!==(d=C.geoLocationField)&&void 0!==d?d:"_geoloc",this.facetableFieldsWithSpecialCharacters=null!==(f=C.facetableFieldsWithSpecialCharacters)&&void 0!==f?f:[],this.collectionSpecificSearchParameters=null!==(p=C.collectionSpecificSearchParameters)&&void 0!==p?p:{},Object.keys(this.collectionSpecificSearchParameters).forEach((function(e){var t,n,r,i,o,a,s=w.collectionSpecificSearchParameters[e];s.query_by=null!==(t=s.queryBy)&&void 0!==t?t:s.query_by,s.preset=null!==(n=s.preset)&&void 0!==n?n:s.preset,s.sort_by=null!==(r=s.sortBy)&&void 0!==r?r:s.sort_by,s.highlight_full_fields=null!==(i=null!==(o=null!==(a=s.highlightFullFields)&&void 0!==a?a:s.highlight_full_fields)&&void 0!==o?o:w.additionalSearchParameters.highlight_full_fields)&&void 0!==i?i:s.query_by,Object.keys(s).forEach((function(e){return void 0===s[e]?delete s[e]:{}}))})),this.renderingContent=C.renderingContent,this.flattenGroupedHits=null===(m=C.flattenGroupedHits)||void 0===m||m,this.facetByOptions=null!==(g=C.facetByOptions)&&void 0!==g?g:{},this.filterByOptions=null!==(y=C.filterByOptions)&&void 0!==y?y:{},this.sortByOptions=null!==(v=C.sortByOptions)&&void 0!==v?v:{},this.collectionSpecificFacetByOptions=null!==(b=C.collectionSpecificFacetByOptions)&&void 0!==b?b:{},this.collectionSpecificFilterByOptions=null!==(A=C.collectionSpecificFilterByOptions)&&void 0!==A?A:{},this.collectionSpecificSortByOptions=null!==(x=C.collectionSpecificSortByOptions)&&void 0!==x?x:{}}),[{key:"validate",value:function(){if((this.additionalSearchParameters.queryBy||Object.values(this.collectionSpecificSearchParameters).some((function(e){return e.queryBy})))&&console.warn("[typesense-instantsearch-adapter] Please use snake_cased versions of parameters in additionalSearchParameters instead of camelCased parameters. For example: Use query_by instead of queryBy. camelCased parameters will be deprecated in a future version. We're making this change so that parameter names are identical to the ones sent to Typesense (which are all snake_cased), and to also keep the types for these parameters in sync with the types defined in typesense-js."),0===this.additionalSearchParameters.query_by.length&&0===this.additionalSearchParameters.preset.length&&(0===Object.keys(this.collectionSpecificSearchParameters).length||Object.values(this.collectionSpecificSearchParameters).some((function(e){return 0===(e.query_by||"").length&&0===(e.preset||"").length}))))throw new Error("[typesense-instantsearch-adapter] Missing parameter: One of additionalSearchParameters.query_by or additionalSearchParameters.preset needs to be set, or all collectionSpecificSearchParameters need to have either .query_by or .preset set.")}}])}()},40122:e=>{"use strict";e.exports=function(e,t,n){var r=e(t,n);return r>=0?r:r+n}},40254:(e,t,n)=>{"use strict";function r(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&!0===t[r]&&(n[r]=e[r]);return n}n.d(t,{A:()=>r})},40278:function(e,t,n){var r;e.exports=(r=n(96540),function(){var e={442:function(e){"use strict";e.exports=r},548:function(e){e.exports=function(){"use strict";var e={34:function(e,t,n){var r=n(4901);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},81:function(e,t,n){var r=n(9565),i=n(9306),o=n(8551),a=n(6823),s=n(851),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return o(r(n,e));throw new l(a(e)+" is not iterable")}},235:function(e,t,n){var r=n(9213).forEach,i=n(4598)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},283:function(e,t,n){var r=n(9504),i=n(9039),o=n(4901),a=n(9297),s=n(3724),l=n(350).CONFIGURABLE,c=n(3706),u=n(1181),h=u.enforce,d=u.get,f=String,p=Object.defineProperty,m=r("".slice),g=r("".replace),y=r([].join),v=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),A=e.exports=function(e,t,n){"Symbol("===m(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=h(e);return a(r,"source")||(r.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=A((function(){return o(this)&&d(this).source||c(this)}),"toString")},298:function(e,t,n){var r=n(2195),i=n(5397),o=n(8480).f,a=n(7680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===r(e)?function(e){try{return o(e)}catch(e){return a(s)}}(e):o(i(e))}},350:function(e,t,n){var r=n(3724),i=n(9297),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},397:function(e,t,n){var r=n(7751);e.exports=r("document","documentElement")},421:function(e){e.exports={}},511:function(e,t,n){var r=n(9167),i=n(9297),o=n(1951),a=n(4913).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},566:function(e,t,n){var r=n(9504),i=n(9306),o=n(34),a=n(9297),s=n(7680),l=n(616),c=Function,u=r([].concat),h=r([].join),d={};e.exports=l?c.bind:function(e){var t=i(this),n=t.prototype,r=s(arguments,1),l=function(){var n=u(r,s(arguments));return this instanceof l?function(e,t,n){if(!a(d,t)){for(var r=[],i=0;i=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},616:function(e,t,n){var r=n(9039);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},655:function(e,t,n){var r=n(6955),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},687:function(e,t,n){var r=n(4913).f,i=n(9297),o=n(8227)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},706:function(e,t,n){var r=n(350).PROPER,i=n(9039),o=n(7452);e.exports=function(e){return i((function(){return!!o[e]()||"​…᠎"!=="​…᠎"[e]()||r&&o[e].name!==e}))}},739:function(e,t,n){var r=n(6518),i=n(9039),o=n(8981),a=n(2777);r({target:"Date",proto:!0,arity:1,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=o(this),n=a(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},741:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},744:function(e,t,n){var r=n(9565),i=n(9504),o=n(9228),a=n(8551),s=n(34),l=n(7750),c=n(2293),u=n(7829),h=n(8014),d=n(655),f=n(5966),p=n(6682),m=n(8429),g=n(9039),y=m.UNSUPPORTED_Y,v=Math.min,b=i([].push),A=i("".slice),x=!g((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),w="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",(function(e,t,n){var i="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[function(t,n){var o=l(this),a=s(t)?f(t,e):void 0;return a?r(a,t,o,n):r(i,d(o),t,n)},function(e,r){var o=a(this),s=d(e);if(!w){var l=n(i,o,s,r,i!==t);if(l.done)return l.value}var f=c(o,RegExp),m=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(y?"g":"y"),x=new f(y?"^(?:"+o.source+")":o,g),C=void 0===r?4294967295:r>>>0;if(0===C)return[];if(0===s.length)return null===p(x,s)?[s]:[];for(var S=0,E=0,k=[];E=0:f>p;p+=m)p in d&&(u=n(u,d[p],p,h));return u}};e.exports={left:c(!1),right:c(!0)}},1034:function(e,t,n){var r=n(9565),i=n(9297),o=n(1625),a=n(7979),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:r(a,e)}},1056:function(e,t,n){var r=n(4913).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},1072:function(e,t,n){var r=n(1828),i=n(8727);e.exports=Object.keys||function(e){return r(e,i)}},1088:function(e,t,n){var r=n(6518),i=n(9565),o=n(6395),a=n(350),s=n(4901),l=n(3994),c=n(2787),u=n(2967),h=n(687),d=n(6699),f=n(6840),p=n(8227),m=n(6269),g=n(7657),y=a.PROPER,v=a.CONFIGURABLE,b=g.IteratorPrototype,A=g.BUGGY_SAFARI_ITERATORS,x=p("iterator"),w="keys",C="values",S="entries",E=function(){return this};e.exports=function(e,t,n,a,p,g,k){l(n,t,a);var T,I,O,R=function(e){if(e===p&&B)return B;if(!A&&e&&e in D)return D[e];switch(e){case w:case C:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",P=!1,D=e.prototype,j=D[x]||D["@@iterator"]||p&&D[p],B=!A&&j||R(p),L="Array"===t&&D.entries||j;if(L&&(T=c(L.call(new e)))!==Object.prototype&&T.next&&(o||c(T)===b||(u?u(T,b):s(T[x])||f(T,x,E)),h(T,M,!0,!0),o&&(m[M]=E)),y&&p===C&&j&&j.name!==C&&(!o&&v?d(D,"name",C):(P=!0,B=function(){return i(j,this)})),p)if(I={values:R(C),keys:g?B:R(w),entries:R(S)},k)for(O in I)(A||P||!(O in D))&&f(D,O,I[O]);else r({target:t,proto:!0,forced:A||P},I);return o&&!k||D[x]===B||f(D,x,B,{name:p}),m[t]=B,I}},1181:function(e,t,n){var r,i,o,a=n(8622),s=n(4576),l=n(34),c=n(6699),u=n(9297),h=n(7629),d=n(6119),f=n(421),p="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||h.state){var y=h.state||(h.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw new m(p);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var v=d("state");f[v]=!0,r=function(e,t){if(u(e,v))throw new m(p);return t.facade=e,c(e,v,t),t},i=function(e){return u(e,v)?e[v]:{}},o=function(e){return u(e,v)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},1240:function(e,t,n){var r=n(9504);e.exports=r(1..valueOf)},1278:function(e,t,n){var r=n(6518),i=n(3724),o=n(5031),a=n(5397),s=n(7347),l=n(4659);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),i=s.f,c=o(r),u={},h=0;c.length>h;)void 0!==(n=i(r,t=c[h++]))&&l(u,t,n);return u}})},1291:function(e,t,n){var r=n(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},1296:function(e,t,n){var r=n(4495);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},1436:function(e,t,n){var r=n(8227)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},1469:function(e,t,n){var r=n(7433);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},1480:function(e,t,n){var r=n(6518),i=n(9039),o=n(298).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},1510:function(e,t,n){var r=n(6518),i=n(7751),o=n(9297),a=n(655),s=n(5745),l=n(1296),c=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(o(c,t))return c[t];var n=i("Symbol")(t);return c[t]=n,u[n]=t,n}})},1625:function(e,t,n){var r=n(9504);e.exports=r({}.isPrototypeOf)},1699:function(e,t,n){var r=n(6518),i=n(9504),o=n(5749),a=n(7750),s=n(655),l=n(1436),c=i("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},1761:function(e,t,n){var r=n(9565),i=n(9228),o=n(8551),a=n(34),s=n(8014),l=n(655),c=n(7750),u=n(5966),h=n(7829),d=n(6682);i("match",(function(e,t,n){return[function(t){var n=c(this),i=a(t)?u(t,e):void 0;return i?r(i,t,n):new RegExp(t)[e](l(n))},function(e){var r=o(this),i=l(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return d(r,i);var c=r.unicode;r.lastIndex=0;for(var u,f=[],p=0;null!==(u=d(r,i));){var m=l(u[0]);f[p]=m,""===m&&(r.lastIndex=h(i,s(r.lastIndex),c)),p++}return 0===p?null:f}]}))},1828:function(e,t,n){var r=n(9504),i=n(9297),o=n(5397),a=n(9617).indexOf,s=n(421),l=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&l(u,n);for(;t.length>c;)i(r,n=t[c++])&&(~a(u,n)||l(u,n));return u}},1951:function(e,t,n){var r=n(8227);t.f=r},2008:function(e,t,n){var r=n(6518),i=n(9213).filter;r({target:"Array",proto:!0,forced:!n(597)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},2010:function(e,t,n){var r=n(3724),i=n(350).EXISTS,o=n(9504),a=n(2106),s=Function.prototype,l=o(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=o(c.exec);r&&!i&&a(s,"name",{configurable:!0,get:function(){try{return u(c,l(this))[1]}catch(e){return""}}})},2062:function(e,t,n){var r=n(6518),i=n(9213).map;r({target:"Array",proto:!0,forced:!n(597)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},2087:function(e,t,n){var r=n(34),i=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},2106:function(e,t,n){var r=n(283),i=n(4913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},2140:function(e,t,n){var r={};r[n(8227)("toStringTag")]="z",e.exports="[object z]"===String(r)},2195:function(e,t,n){var r=n(9504),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},2211:function(e,t,n){var r=n(9039);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2259:function(e,t,n){n(511)("iterator")},2293:function(e,t,n){var r=n(8551),i=n(5548),o=n(4117),a=n(8227)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||o(n=r(s)[a])?t:i(n)}},2360:function(e,t,n){var r,i=n(8551),o=n(6801),a=n(8727),s=n(421),l=n(397),c=n(4055),u=n(6119),h="prototype",d="script",f=u("IE_PROTO"),p=function(){},m=function(e){return"<"+d+">"+e+""},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;y="undefined"!=typeof document?document.domain&&r?g(r):(t=c("iframe"),n="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(r);for(var i=a.length;i--;)delete y[h][a[i]];return y()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[h]=i(e),n=new p,p[h]=null,n[f]=e):n=y(),void 0===t?n:o.f(n,t)}},2478:function(e,t,n){var r=n(9504),i=n(8981),o=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,h,d){var f=n+e.length,p=r.length,m=u;return void 0!==h&&(h=i(h),m=c),s(d,m,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":c=h[l(s,1,-1)];break;default:var u=+s;if(0===u)return i;if(u>p){var d=o(u/10);return 0===d?i:d<=p?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):i}c=r[u-1]}return void 0===c?"":c}))}},2529:function(e){e.exports=function(e,t){return{value:e,done:t}}},2551:function(e,t,n){var r=n(6395),i=n(4576),o=n(9039),a=n(3607);e.exports=r||!o((function(){if(!(a&&a<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete i[e]}}))},2637:function(e,t,n){n(6518)({target:"Number",stat:!0},{isInteger:n(2087)})},2675:function(e,t,n){n(6761),n(1510),n(7812),n(3110),n(9773)},2712:function(e,t,n){var r=n(6518),i=n(926).left,o=n(4598),a=n(9519);r({target:"Array",proto:!0,forced:!n(6193)&&a>79&&a<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},2762:function(e,t,n){var r=n(6518),i=n(3802).trim;r({target:"String",proto:!0,forced:n(706)("trim")},{trim:function(){return i(this)}})},2777:function(e,t,n){var r=n(9565),i=n(34),o=n(757),a=n(5966),s=n(4270),l=n(8227),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,l=a(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},2787:function(e,t,n){var r=n(9297),i=n(4901),o=n(8981),a=n(6119),s=n(2211),l=a("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=o(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},2796:function(e,t,n){var r=n(9039),i=n(4901),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===u||n!==c&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},2839:function(e,t,n){var r=n(4576).navigator,i=r&&r.userAgent;e.exports=i?String(i):""},2892:function(e,t,n){var r=n(6518),i=n(6395),o=n(3724),a=n(4576),s=n(9167),l=n(9504),c=n(2796),u=n(9297),h=n(3167),d=n(1625),f=n(757),p=n(2777),m=n(9039),g=n(8480).f,y=n(7347).f,v=n(4913).f,b=n(1240),A=n(3802).trim,x="Number",w=a[x],C=s[x],S=w.prototype,E=a.TypeError,k=l("".slice),T=l("".charCodeAt),I=c(x,!w(" 0o1")||!w("0b1")||w("+0x1")),O=function(e){var t,n=arguments.length<1?0:w(function(e){var t=p(e,"number");return"bigint"==typeof t?t:function(e){var t,n,r,i,o,a,s,l,c=p(e,"number");if(f(c))throw new E("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=A(c),43===(t=T(c,0))||45===t){if(88===(n=T(c,2))||120===n)return NaN}else if(48===t){switch(T(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=k(c,2)).length,s=0;si)return NaN;return parseInt(o,r)}return+c}(t)}(e));return d(S,t=this)&&m((function(){b(t)}))?h(Object(n),this,O):n};O.prototype=S,I&&!i&&(S.constructor=O),r({global:!0,constructor:!0,wrap:!0,forced:I},{Number:O});var R=function(e,t){for(var n,r=o?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)u(t,n=r[i])&&!u(e,n)&&v(e,n,y(t,n))};i&&C&&R(s[x],C),(I||i)&&R(s[x],w)},2953:function(e,t,n){var r=n(4576),i=n(7400),o=n(9296),a=n(3792),s=n(6699),l=n(687),c=n(8227)("iterator"),u=a.values,h=function(e,t){if(e){if(e[c]!==u)try{s(e,c,u)}catch(t){e[c]=u}if(l(e,t,!0),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var d in i)h(r[d]&&r[d].prototype,d);h(o,"DOMTokenList")},2967:function(e,t,n){var r=n(6706),i=n(34),o=n(7750),a=n(3506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),a(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},3110:function(e,t,n){var r=n(6518),i=n(7751),o=n(8745),a=n(9565),s=n(9504),l=n(9039),c=n(4901),u=n(757),h=n(7680),d=n(6933),f=n(4495),p=String,m=i("JSON","stringify"),g=s(/./.exec),y=s("".charAt),v=s("".charCodeAt),b=s("".replace),A=s(1..toString),x=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,C=/^[\uDC00-\uDFFF]$/,S=!f||l((function(){var e=i("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),E=l((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),k=function(e,t){var n=h(arguments),r=d(t);if(c(r)||void 0!==e&&!u(e))return n[1]=function(e,t){if(c(r)&&(t=a(r,this,p(e),t)),!u(t))return t},o(m,null,n)},T=function(e,t,n){var r=y(n,t-1),i=y(n,t+1);return g(w,e)&&!g(C,i)||g(C,e)&&!g(w,r)?"\\u"+A(v(e,0),16):e};m&&r({target:"JSON",stat:!0,arity:3,forced:S||E},{stringify:function(e,t,n){var r=h(arguments),i=o(S?k:m,null,r);return E&&"string"==typeof i?b(i,x,T):i}})},3167:function(e,t,n){var r=n(4901),i=n(34),o=n(2967);e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},3179:function(e,t,n){var r=n(2140),i=n(6955);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},3392:function(e,t,n){var r=n(9504),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},3418:function(e,t,n){var r=n(6518),i=n(7916);r({target:"Array",stat:!0,forced:!n(4428)((function(e){Array.from(e)}))},{from:i})},3500:function(e,t,n){var r=n(4576),i=n(7400),o=n(9296),a=n(235),s=n(6699),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in i)i[c]&&l(r[c]&&r[c].prototype);l(o)},3506:function(e,t,n){var r=n(3925),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},3517:function(e,t,n){var r=n(9504),i=n(9039),o=n(4901),a=n(6955),s=n(7751),l=n(3706),c=function(){},u=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),f=!h.test(c),p=function(e){if(!o(e))return!1;try{return u(c,[],e),!0}catch(e){return!1}},m=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!d(h,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!u||i((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?m:p},3607:function(e,t,n){var r=n(2839).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},3635:function(e,t,n){var r=n(9039),i=n(4576).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},3640:function(e,t,n){var r=n(8551),i=n(4270),o=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new o("Incorrect hint");return i(this,e)}},3706:function(e,t,n){var r=n(9504),i=n(4901),o=n(7629),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},3709:function(e,t,n){var r=n(2839).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},3717:function(e,t){t.f=Object.getOwnPropertySymbols},3724:function(e,t,n){var r=n(9039);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3763:function(e,t,n){var r=n(2839);e.exports=/MSIE|Trident/.test(r)},3792:function(e,t,n){var r=n(5397),i=n(6469),o=n(6269),a=n(1181),s=n(4913).f,l=n(1088),c=n(2529),u=n(6395),h=n(3724),d="Array Iterator",f=a.set,p=a.getterFor(d);e.exports=l(Array,"Array",(function(e,t){f(this,{type:d,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var m=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!u&&h&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(e){}},3802:function(e,t,n){var r=n(9504),i=n(7750),o=n(655),a=n(7452),s=r("".replace),l=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),u=function(e){return function(t){var n=o(i(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,c,"$1")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},3851:function(e,t,n){var r=n(6518),i=n(9039),o=n(5397),a=n(7347).f,s=n(3724);r({target:"Object",stat:!0,forced:!s||i((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},3925:function(e,t,n){var r=n(34);e.exports=function(e){return r(e)||null===e}},3994:function(e,t,n){var r=n(7657).IteratorPrototype,i=n(2360),o=n(6980),a=n(687),s=n(6269),l=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=i(r,{next:o(+!c,n)}),a(e,u,!1,!0),s[u]=l,e}},4055:function(e,t,n){var r=n(4576),i=n(34),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},4117:function(e){e.exports=function(e){return null==e}},4209:function(e,t,n){var r=n(8227),i=n(6269),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},4213:function(e,t,n){var r=n(3724),i=n(9504),o=n(9565),a=n(9039),s=n(1072),l=n(3717),c=n(8773),u=n(8981),h=n(7055),d=Object.assign,f=Object.defineProperty,p=i([].concat);e.exports=!d||a((function(){if(r&&1!==d({b:1},d(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==d({},e)[n]||s(d({},t)).join("")!==i}))?function(e,t){for(var n=u(e),i=arguments.length,a=1,d=l.f,f=c.f;i>a;)for(var m,g=h(arguments[a++]),y=d?p(s(g),d(g)):s(g),v=y.length,b=0;v>b;)m=y[b++],r&&!o(f,g,m)||(n[m]=g[m]);return n}:d},4215:function(e,t,n){var r=n(4576),i=n(2839),o=n(2195),a=function(e){return i.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},4270:function(e,t,n){var r=n(9565),i=n(4901),o=n(34),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},4376:function(e,t,n){var r=n(2195);e.exports=Array.isArray||function(e){return"Array"===r(e)}},4423:function(e,t,n){var r=n(6518),i=n(9617).includes,o=n(9039),a=n(6469);r({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},4428:function(e,t,n){var r=n(8227)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},4488:function(e,t,n){var r=n(7680),i=Math.floor,o=function(e,t){var n=e.length;if(n<8)for(var a,s,l=1;l0;)e[s]=e[--s];s!==l++&&(e[s]=a)}else for(var c=i(n/2),u=o(r(e,0,c),t),h=o(r(e,c),t),d=u.length,f=h.length,p=0,m=0;pA-r+n;g--)d(b,g-1)}else if(n>r)for(g=A-r;g>x;g--)v=g+n-1,(y=g+r-1)in b?b[v]=b[y]:d(b,v);for(g=0;g@^][^\s!#%&*+<=>@^]*>/,B=/a/g,L=/a/g,F=new k(B)!==B,N=m.MISSED_STICKY,_=m.UNSUPPORTED_Y;if(a("RegExp",r&&(!F||N||C||S||v((function(){return L[E]=!1,k(B)!==B||k(L)===L||"/a/i"!==String(k(B,"i"))}))))){for(var z=function(e,t){var n,r,i,o,a,u,m=h(T,this),g=d(e),y=void 0===t,v=[],x=e;if(!m&&g&&y&&e.constructor===z)return e;if((g||h(T,e))&&(e=e.source,y&&(t=p(x))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),x=e,C&&"dotAll"in B&&(r=!!t&&P(t,"s")>-1)&&(t=M(t,/s/g,"")),n=t,N&&"sticky"in B&&(i=!!t&&P(t,"y")>-1)&&_&&(t=M(t,/y/g,"")),S&&(o=function(e){for(var t,n=e.length,r=0,i="",o=[],a=c(null),s=!1,l=!1,u=0,h="";r<=n;r++){if("\\"===(t=R(e,r)))t+=R(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:if(i+=t,"?:"===D(e,r+1,r+3))continue;O(j,D(e,r+1))&&(r+=2,l=!0),u++;continue;case">"===t&&l:if(""===h||b(a,h))throw new I("Invalid capture group name");a[h]=!0,o[o.length]=[h,u],l=!1,h="";continue}l?h+=t:i+=t}return[i,o]}(e),e=o[0],v=o[1]),a=s(k(e,t),m?this:T,z),(r||i||v.length)&&(u=A(a),r&&(u.dotAll=!0,u.raw=z(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=R(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+R(e,++r);return i}(e),n)),i&&(u.sticky=!0),v.length&&(u.groups=v)),e!==x)try{l(a,"source",""===x?"(?:)":x)}catch(e){}return a},V=u(k),U=0;V.length>U;)g(z,k,V[U++]);T.constructor=z,z.prototype=T,y(i,"RegExp",z,{constructor:!0})}x("RegExp")},4901:function(e){var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},4913:function(e,t,n){var r=n(3724),i=n(5917),o=n(8686),a=n(8551),s=n(6969),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=u(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:h in n?n[h]:r[h],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},5031:function(e,t,n){var r=n(7751),i=n(9504),o=n(8480),a=n(3717),s=n(8551),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},5276:function(e,t,n){var r=n(6518),i=n(7476),o=n(9617).indexOf,a=n(4598),s=i([].indexOf),l=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:l||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:o(this,e,t)}})},5397:function(e,t,n){var r=n(7055),i=n(7750);e.exports=function(e){return r(i(e))}},5440:function(e,t,n){var r=n(8745),i=n(9565),o=n(9504),a=n(9228),s=n(9039),l=n(8551),c=n(4901),u=n(34),h=n(1291),d=n(8014),f=n(655),p=n(7750),m=n(7829),g=n(5966),y=n(2478),v=n(6682),b=n(8227)("replace"),A=Math.max,x=Math.min,w=o([].concat),C=o([].push),S=o("".indexOf),E=o("".slice),k="$0"==="a".replace(/./,"$0"),T=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,n){var o=T?"$":"$0";return[function(e,n){var r=p(this),o=u(e)?g(e,b):void 0;return o?i(o,e,r,n):i(t,f(r),e,n)},function(e,i){var a=l(this),s=f(e);if("string"==typeof i&&-1===S(i,o)&&-1===S(i,"$<")){var u=n(t,a,s,i);if(u.done)return u.value}var p=c(i);p||(i=f(i));var g,b=a.global;b&&(g=a.unicode,a.lastIndex=0);for(var k,T=[];null!==(k=v(a,s))&&(C(T,k),b);)""===f(k[0])&&(a.lastIndex=m(s,d(a.lastIndex),g));for(var I,O="",R=0,M=0;M=R&&(O+=E(s,R,j)+P,R=j+D.length)}return O+E(s,R)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!k||T)},5548:function(e,t,n){var r=n(3517),i=n(6823),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},5610:function(e,t,n){var r=n(1291),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},5700:function(e,t,n){var r=n(511),i=n(8242);r("toPrimitive"),i()},5745:function(e,t,n){var r=n(7629);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},5749:function(e,t,n){var r=n(788),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},5917:function(e,t,n){var r=n(3724),i=n(9039),o=n(4055);e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},5966:function(e,t,n){var r=n(9306),i=n(4117);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},6080:function(e,t,n){var r=n(7476),i=n(9306),o=n(616),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},6099:function(e,t,n){var r=n(2140),i=n(6840),o=n(3179);r||i(Object.prototype,"toString",o,{unsafe:!0})},6119:function(e,t,n){var r=n(5745),i=n(3392),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},6193:function(e,t,n){var r=n(4215);e.exports="NODE"===r},6198:function(e,t,n){var r=n(8014);e.exports=function(e){return r(e.length)}},6269:function(e){e.exports={}},6319:function(e,t,n){var r=n(8551),i=n(9539);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},6395:function(e){e.exports=!1},6469:function(e,t,n){var r=n(8227),i=n(2360),o=n(4913).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},6518:function(e,t,n){var r=n(4576),i=n(7347).f,o=n(6699),a=n(6840),s=n(9433),l=n(7740),c=n(2796);e.exports=function(e,t){var n,u,h,d,f,p=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[p]||s(p,{}):r[p]&&r[p].prototype)for(u in t){if(d=t[u],h=e.dontCallGetSet?(f=i(n,u))&&f.value:n[u],!c(m?u:p+(g?".":"#")+u,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(e.sham||h&&h.sham)&&o(d,"sham",!0),a(n,u,d,e)}}},6682:function(e,t,n){var r=n(9565),i=n(8551),o=n(4901),a=n(2195),s=n(7323),l=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var c=r(n,e,t);return null!==c&&i(c),c}if("RegExp"===a(e))return r(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},6699:function(e,t,n){var r=n(3724),i=n(4913),o=n(6980);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},6706:function(e,t,n){var r=n(9504),i=n(9306);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},6761:function(e,t,n){var r=n(6518),i=n(4576),o=n(9565),a=n(9504),s=n(6395),l=n(3724),c=n(4495),u=n(9039),h=n(9297),d=n(1625),f=n(8551),p=n(5397),m=n(6969),g=n(655),y=n(6980),v=n(2360),b=n(1072),A=n(8480),x=n(298),w=n(3717),C=n(7347),S=n(4913),E=n(6801),k=n(8773),T=n(6840),I=n(2106),O=n(5745),R=n(6119),M=n(421),P=n(3392),D=n(8227),j=n(1951),B=n(511),L=n(8242),F=n(687),N=n(1181),_=n(9213).forEach,z=R("hidden"),V="Symbol",U="prototype",H=N.set,q=N.getterFor(V),G=Object[U],Y=i.Symbol,W=Y&&Y[U],Q=i.RangeError,X=i.TypeError,J=i.QObject,Z=C.f,K=S.f,$=x.f,ee=k.f,te=a([].push),ne=O("symbols"),re=O("op-symbols"),ie=O("wks"),oe=!J||!J[U]||!J[U].findChild,ae=function(e,t,n){var r=Z(G,t);r&&delete G[t],K(e,t,n),r&&e!==G&&K(G,t,r)},se=l&&u((function(){return 7!==v(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?ae:K,le=function(e,t){var n=ne[e]=v(W);return H(n,{type:V,tag:e,description:t}),l||(n.description=t),n},ce=function(e,t,n){e===G&&ce(re,t,n),f(e);var r=m(t);return f(n),h(ne,r)?(n.enumerable?(h(e,z)&&e[z][r]&&(e[z][r]=!1),n=v(n,{enumerable:y(0,!1)})):(h(e,z)||K(e,z,y(1,v(null))),e[z][r]=!0),se(e,r,n)):K(e,r,n)},ue=function(e,t){f(e);var n=p(t),r=b(n).concat(pe(n));return _(r,(function(t){l&&!o(he,n,t)||ce(e,t,n[t])})),e},he=function(e){var t=m(e),n=o(ee,this,t);return!(this===G&&h(ne,t)&&!h(re,t))&&(!(n||!h(this,t)||!h(ne,t)||h(this,z)&&this[z][t])||n)},de=function(e,t){var n=p(e),r=m(t);if(n!==G||!h(ne,r)||h(re,r)){var i=Z(n,r);return!i||!h(ne,r)||h(n,z)&&n[z][r]||(i.enumerable=!0),i}},fe=function(e){var t=$(p(e)),n=[];return _(t,(function(e){h(ne,e)||h(M,e)||te(n,e)})),n},pe=function(e){var t=e===G,n=$(t?re:p(e)),r=[];return _(n,(function(e){!h(ne,e)||t&&!h(G,e)||te(r,ne[e])})),r};c||(Y=function(){if(d(W,this))throw new X("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=P(e),n=function(e){var r=void 0===this?i:this;r===G&&o(n,re,e),h(r,z)&&h(r[z],t)&&(r[z][t]=!1);var a=y(1,e);try{se(r,t,a)}catch(e){if(!(e instanceof Q))throw e;ae(r,t,a)}};return l&&oe&&se(G,t,{configurable:!0,set:n}),le(t,e)},T(W=Y[U],"toString",(function(){return q(this).tag})),T(Y,"withoutSetter",(function(e){return le(P(e),e)})),k.f=he,S.f=ce,E.f=ue,C.f=de,A.f=x.f=fe,w.f=pe,j.f=function(e){return le(D(e),e)},l&&(I(W,"description",{configurable:!0,get:function(){return q(this).description}}),s||T(G,"propertyIsEnumerable",he,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:Y}),_(b(ie),(function(e){B(e)})),r({target:V,stat:!0,forced:!c},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return void 0===t?v(e):ue(v(e),t)},defineProperty:ce,defineProperties:ue,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:fe}),L(),F(Y,V),M[z]=!0},6801:function(e,t,n){var r=n(3724),i=n(8686),o=n(4913),a=n(8551),s=n(5397),l=n(1072);t.f=r&&!i?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),i=l(t),c=i.length,u=0;c>u;)o.f(e,n=i[u++],r[n]);return e}},6823:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6837:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},6840:function(e,t,n){var r=n(4901),i=n(4913),o=n(283),a=n(9433);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&o(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6910:function(e,t,n){var r=n(6518),i=n(9504),o=n(9306),a=n(8981),s=n(6198),l=n(4606),c=n(655),u=n(9039),h=n(4488),d=n(4598),f=n(3709),p=n(3763),m=n(9519),g=n(3607),y=[],v=i(y.sort),b=i(y.push),A=u((function(){y.sort(void 0)})),x=u((function(){y.sort(null)})),w=d("sort"),C=!u((function(){if(m)return m<70;if(!(f&&f>3)){if(p)return!0;if(g)return g<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:t+r,v:n})}for(y.sort((function(e,t){return t.v-e.v})),r=0;rc(n)?1:-1}}(e)),n=s(i),r=0;r0&&(!f.multiline||f.multiline&&"\n"!==v(E,f.lastIndex-1))&&(R="(?: "+R+")",P=" "+P,M++),n=new RegExp("^(?:"+R+")",O)),S&&(n=new RegExp("^"+R+"$(?!\\s)",O)),w&&(r=f.lastIndex),i=o(g,I?n:f,P),I?i?(i.input=x(i.input,M),i[0]=x(i[0],M),i.index=f.lastIndex,f.lastIndex+=i[0].length):f.lastIndex=0:w&&i&&(f.lastIndex=f.global?i.index+i[0].length:r),S&&i&&i.length>1&&o(m,i[0],n,(function(){for(a=1;a=n.length?s(void 0,!0):(e=r(n,i),t.index+=e.length,s(e,!1))}))},7812:function(e,t,n){var r=n(6518),i=n(9297),o=n(757),a=n(6823),s=n(5745),l=n(1296),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!o(e))throw new TypeError(a(e)+" is not a symbol");if(i(c,e))return c[e]}})},7829:function(e,t,n){var r=n(8183).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},7916:function(e,t,n){var r=n(6080),i=n(9565),o=n(8981),a=n(6319),s=n(4209),l=n(3517),c=n(6198),u=n(4659),h=n(81),d=n(851),f=Array;e.exports=function(e){var t=o(e),n=l(this),p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m;g&&(m=r(m,p>2?arguments[2]:void 0));var y,v,b,A,x,w,C=d(t),S=0;if(!C||this===f&&s(C))for(y=c(t),v=n?new this(y):f(y);y>S;S++)w=g?m(t[S],S):t[S],u(v,S,w);else for(v=n?new this:[],x=(A=h(t,C)).next;!(b=i(x,A)).done;S++)w=g?a(A,m,[b.value,S],!0):b.value,u(v,S,w);return v.length=S,v}},7979:function(e,t,n){var r=n(8551);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},8014:function(e,t,n){var r=n(1291),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},8183:function(e,t,n){var r=n(9504),i=n(1291),o=n(655),a=n(7750),s=r("".charAt),l=r("".charCodeAt),c=r("".slice),u=function(e){return function(t,n){var r,u,h=o(a(t)),d=i(n),f=h.length;return d<0||d>=f?e?"":void 0:(r=l(h,d))<55296||r>56319||d+1===f||(u=l(h,d+1))<56320||u>57343?e?s(h,d):r:e?c(h,d,d+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},8227:function(e,t,n){var r=n(4576),i=n(5745),o=n(9297),a=n(3392),s=n(4495),l=n(7040),c=r.Symbol,u=i("wks"),h=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(u[e]=s&&o(c,e)?c[e]:h("Symbol."+e)),u[e]}},8242:function(e,t,n){var r=n(9565),i=n(7751),o=n(8227),a=n(6840);e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=o("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},8344:function(e,t,n){n(8543)},8429:function(e,t,n){var r=n(9039),i=n(4576).RegExp,o=r((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},8480:function(e,t,n){var r=n(1828),i=n(8727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},8543:function(e,t,n){var r=n(6518),i=n(9565),o=n(7476),a=n(3994),s=n(2529),l=n(7750),c=n(8014),u=n(655),h=n(8551),d=n(34),f=n(2195),p=n(788),m=n(1034),g=n(5966),y=n(6840),v=n(9039),b=n(8227),A=n(2293),x=n(7829),w=n(6682),C=n(1181),S=n(6395),E=b("matchAll"),k="RegExp String",T=k+" Iterator",I=C.set,O=C.getterFor(T),R=RegExp.prototype,M=TypeError,P=o("".indexOf),D=o("".matchAll),j=!!D&&!v((function(){D("a",/./)})),B=a((function(e,t,n,r){I(this,{type:T,regexp:e,string:t,global:n,unicode:r,done:!1})}),k,(function(){var e=O(this);if(e.done)return s(void 0,!0);var t=e.regexp,n=e.string,r=w(t,n);return null===r?(e.done=!0,s(void 0,!0)):e.global?(""===u(r[0])&&(t.lastIndex=x(n,c(t.lastIndex),e.unicode)),s(r,!1)):(e.done=!0,s(r,!1))})),L=function(e){var t,n,r,i=h(this),o=u(e),a=A(i,RegExp),s=u(m(i));return t=new a(a===RegExp?i.source:i,s),n=!!~P(s,"g"),r=!!~P(s,"u"),t.lastIndex=c(i.lastIndex),new B(t,o,n,r)};r({target:"String",proto:!0,forced:j},{matchAll:function(e){var t,n,r,o,a=l(this);if(d(e)){if(p(e)&&(t=u(l(m(e))),!~P(t,"g")))throw new M("`.matchAll` does not allow non-global regexes");if(j)return D(a,e);if(void 0===(r=g(e,E))&&S&&"RegExp"===f(e)&&(r=L),r)return i(r,e,a)}else if(j)return D(a,e);return n=u(a),o=new RegExp(e,"g"),S?i(L,o,n):o[E](n)}}),S||E in R||y(R,E,L)},8551:function(e,t,n){var r=n(34),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},8598:function(e,t,n){var r=n(6518),i=n(9504),o=n(7055),a=n(5397),s=n(4598),l=i([].join);r({target:"Array",proto:!0,forced:o!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},8622:function(e,t,n){var r=n(4576),i=n(4901),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},8686:function(e,t,n){var r=n(3724),i=n(9039);e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8706:function(e,t,n){var r=n(6518),i=n(9039),o=n(4376),a=n(34),s=n(8981),l=n(6198),c=n(6837),u=n(4659),h=n(1469),d=n(597),f=n(8227),p=n(9519),m=f("isConcatSpreadable"),g=p>=51||!i((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),y=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,arity:1,forced:!g||!d("concat")},{concat:function(e){var t,n,r,i,o,a=s(this),d=h(a,0),f=0;for(t=-1,r=arguments.length;tb)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},8981:function(e,t,n){var r=n(7750),i=Object;e.exports=function(e){return i(r(e))}},9039:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},9085:function(e,t,n){var r=n(6518),i=n(4213);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},9167:function(e,t,n){var r=n(4576);e.exports=r},9213:function(e,t,n){var r=n(6080),i=n(9504),o=n(7055),a=n(8981),s=n(6198),l=n(1469),c=i([].push),u=function(e){var t=1===e,n=2===e,i=3===e,u=4===e,h=6===e,d=7===e,f=5===e||h;return function(p,m,g,y){for(var v,b,A=a(p),x=o(A),w=s(x),C=r(m,g),S=0,E=y||l,k=t?E(p,w):n||d?E(p,0):void 0;w>S;S++)if((f||S in x)&&(b=C(v=x[S],S,A),e))if(t)k[S]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return S;case 2:c(k,v)}else switch(e){case 4:return!1;case 7:c(k,v)}return h?-1:i||u?u:k}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},9228:function(e,t,n){n(7495);var r=n(9565),i=n(6840),o=n(7323),a=n(9039),s=n(8227),l=n(6699),c=s("species"),u=RegExp.prototype;e.exports=function(e,t,n,h){var d=s(e),f=!a((function(){var t={};return t[d]=function(){return 7},7!==""[e](t)})),p=f&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!f||!p||n){var m=/./[d],g=t(d,""[e],(function(e,t,n,i,a){var s=t.exec;return s===o||s===u.exec?f&&!a?{done:!0,value:r(m,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}}));i(String.prototype,e,g[0]),i(u,d,g[1])}h&&l(u[d],"sham",!0)}},9296:function(e,t,n){var r=n(4055)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},9297:function(e,t,n){var r=n(9504),i=n(8981),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},9306:function(e,t,n){var r=n(4901),i=n(6823),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},9432:function(e,t,n){var r=n(6518),i=n(8981),o=n(1072);r({target:"Object",stat:!0,forced:n(9039)((function(){o(1)}))},{keys:function(e){return o(i(e))}})},9433:function(e,t,n){var r=n(4576),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},9463:function(e,t,n){var r=n(6518),i=n(3724),o=n(4576),a=n(9504),s=n(9297),l=n(4901),c=n(1625),u=n(655),h=n(2106),d=n(7740),f=o.Symbol,p=f&&f.prototype;if(i&&l(f)&&(!("description"in p)||void 0!==f().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=c(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(m[t]=!0),t};d(g,f),g.prototype=p,p.constructor=g;var y="Symbol(description detection)"===String(f("description detection")),v=a(p.valueOf),b=a(p.toString),A=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),w=a("".slice);h(p,"description",{configurable:!0,get:function(){var e=v(this);if(s(m,e))return"";var t=b(e),n=y?w(t,7,-1):x(t,A,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},9504:function(e,t,n){var r=n(616),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},9519:function(e,t,n){var r,i,o=n(4576),a=n(2839),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(i=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},9539:function(e,t,n){var r=n(9565),i=n(8551),o=n(5966);e.exports=function(e,t,n){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return i(a),n}},9565:function(e,t,n){var r=n(616),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},9572:function(e,t,n){var r=n(9297),i=n(6840),o=n(3640),a=n(8227)("toPrimitive"),s=Date.prototype;r(s,a)||i(s,a,o)},9617:function(e,t,n){var r=n(5397),i=n(5610),o=n(6198),a=function(e){return function(t,n,a){var s=r(t),l=o(s);if(0===l)return!e&&-1;var c,u=i(a,l);if(e&&n!=n){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},9773:function(e,t,n){var r=n(6518),i=n(4495),o=n(9039),a=n(3717),s=n(8981);r({target:"Object",stat:!0,forced:!i||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};function i(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&void 0!==arguments[2]&&arguments[2]?Object.assign({},this.getDefaultDiplay(),t):t||this.getDefaultDiplay())[e]||e}},{key:"getUpdatedInput",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this.getOptions(),a=[n,r,i],s=t;return("{bksp}"===e||"{backspace}"===e)&&s.length>0?s=this.removeAt.apply(this,[s].concat(a)):("{delete}"===e||"{forwarddelete}"===e)&&s.length>0?s=this.removeForwardsAt.apply(this,[s].concat(a)):"{space}"===e?s=this.addStringAt.apply(this,[s," "].concat(a)):"{tab}"!==e||"boolean"==typeof o.tabCharOnTab&&!1===o.tabCharOnTab?"{enter}"!==e&&"{numpadenter}"!==e||!o.newLineOnEnter?e.includes("numpad")&&Number.isInteger(Number(e[e.length-2]))?s=this.addStringAt.apply(this,[s,e[e.length-2]].concat(a)):"{numpaddivide}"===e?s=this.addStringAt.apply(this,[s,"/"].concat(a)):"{numpadmultiply}"===e?s=this.addStringAt.apply(this,[s,"*"].concat(a)):"{numpadsubtract}"===e?s=this.addStringAt.apply(this,[s,"-"].concat(a)):"{numpadadd}"===e?s=this.addStringAt.apply(this,[s,"+"].concat(a)):"{numpaddecimal}"===e?s=this.addStringAt.apply(this,[s,"."].concat(a)):"{"===e||"}"===e?s=this.addStringAt.apply(this,[s,e].concat(a)):e.includes("{")||e.includes("}")||(s=this.addStringAt.apply(this,[s,e].concat(a))):s=this.addStringAt.apply(this,[s,"\n"].concat(a)):s=this.addStringAt.apply(this,[s,"\t"].concat(a)),o.debug&&console.log("Input will be: "+s),s}},{key:"updateCaretPos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.updateCaretPosAction(e,t);this.dispatch((function(e){e.setCaretPosition(n)}))}},{key:"updateCaretPosAction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getOptions(),r=this.getCaretPosition();return null!=r&&(t?r>0&&(r-=e):r+=e),n.debug&&console.log("Caret at:",r),r}},{key:"addStringAt",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return r||0===r?(n=[e.slice(0,r),t,e.slice(i)].join(""),this.isMaxLengthReached()||o&&this.updateCaretPos(t.length)):n=e+t,n}},{key:"removeAt",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0===n&&0===r)return e;if(n===r){var o=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;n&&n>=0?e.substring(n-2,n).match(o)?(t=e.substr(0,n-2)+e.substr(n),i&&this.updateCaretPos(2,!0)):(t=e.substr(0,n-1)+e.substr(n),i&&this.updateCaretPos(1,!0)):e.slice(-2).match(o)?(t=e.slice(0,-2),i&&this.updateCaretPos(2,!0)):(t=e.slice(0,-1),i&&this.updateCaretPos(1,!0))}else t=e.slice(0,n)+e.slice(r),i&&this.dispatch((function(e){e.setCaretPosition(n)}));return t}},{key:"removeForwardsAt",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return null!=e&&e.length&&null!==n?(n===r?t=e.substring(n,n+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?e.substr(0,n)+e.substr(n+2):e.substr(0,n)+e.substr(n+1):(t=e.slice(0,n)+e.slice(r),i&&this.dispatch((function(e){e.setCaretPosition(n)}))),t):e}},{key:"handleMaxLength",value:function(e,t){var n=this.getOptions(),r=n.maxLength,i=e[n.inputName||"default"],o=t.length-1>=r;if(t.length<=i.length)return!1;if(Number.isInteger(r))return n.debug&&console.log("maxLength (num) reached:",o),o?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if("object"===a(r)){var s=t.length-1>=r[n.inputName||"default"];return n.debug&&console.log("maxLength (obj) reached:",s),s?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}},{key:"isMaxLengthReached",value:function(){return Boolean(this.maxLengthReached)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return!!window.PointerEvent}},{key:"camelCase",value:function(e){return e?e.toLowerCase().trim().split(/[.\-_\s]/g).reduce((function(e,t){return t.length?e+t[0].toUpperCase()+t.slice(1):e})):""}},{key:"chunkArray",value:function(e,t){return function(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(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.")}()}(Array(Math.ceil(e.length/t))).map((function(n,r){return e.slice(t*r,t+t*r)}))}},{key:"escapeRegex",value:function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(e,t){var n=e,r=t.indexOf("‫");return r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw o}}}}(Object.getOwnPropertyNames(e.prototype));try{for(r.s();!(n=r.n()).done;){var o=n.value;"constructor"===o||"bindMethods"===o||(t[o]=t[o].bind(t))}}catch(e){r.e(e)}finally{r.f()}}}],t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();l(u,"noop",(function(){}));var h=u;function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){for(var n=0;n1?null===(t=n)||void 0===t?void 0:t.toLowerCase():n}},{key:"keyCodeToKey",value:function(e){return{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[e]||""}}],t&&f(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function v(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:i();return s(e,t)},l.appendChild(r)}));var c=o>0,u=document.createElement("div");u.classList.add("hg-candidate-box-prev"),c&&u.classList.add("hg-candidate-box-btn-active");var h=function(){c&&n.renderPage({candidateListPages:r,targetElement:i,pageIndex:o-1,nbPages:a,onItemSelected:s})};this.options.useTouchEvents?u.ontouchstart=h:u.onclick=h,this.candidateBoxElement.appendChild(u),this.candidateBoxElement.appendChild(l);var d=oe.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:e;this.caretPosition=e,this.caretPositionEnd=t}},{key:"getInputCandidates",value:function(e){var t=this,n=this.options,r=n.layoutCandidates,i=n.layoutCandidatesCaseSensitiveMatch;if(!r||"object"!==E(r))return{};var o=Object.keys(r).filter((function(n){var r=e.substring(0,t.getCaretPositionEnd()||0)||e,o=new RegExp("".concat(t.utilities.escapeRegex(n),"$"),i?"g":"gi");return!!C(r.matchAll(o)).length}));if(o.length>1){var a=o.sort((function(e,t){return t.length-e.length}))[0];return{candidateKey:a,candidateValue:r[a]}}if(o.length){var s=o[0];return{candidateKey:s,candidateValue:r[s]}}return{}}},{key:"showCandidatesBox",value:function(e,t,n){var r=this;this.candidateBox&&this.candidateBox.show({candidateValue:t,targetElement:n,onSelect:function(t,n){var i=r.options,o=i.layoutCandidatesCaseSensitiveMatch,a=i.disableCandidateNormalization,s=i.enableLayoutCandidatesKeyPress,l=t;a||(l=t.normalize("NFD")),"function"==typeof r.options.beforeInputUpdate&&r.options.beforeInputUpdate(r);var c=r.getInput(r.options.inputName,!0),u=r.getCaretPositionEnd()||0,h=c.substring(0,u||0)||c,d=new RegExp("".concat(r.utilities.escapeRegex(e),"$"),o?"g":"gi"),f=h.replace(d,l),p=c.replace(h,f),m=f.length-h.length,g=(u||c.length)+m;g<0&&(g=0),r.setInput(p,r.options.inputName,!0),r.setCaretPosition(g),s&&"function"==typeof r.options.onKeyPress&&r.options.onKeyPress(t,n),"function"==typeof r.options.onChange&&r.options.onChange(r.getInput(r.options.inputName,!0),n),"function"==typeof r.options.onChangeAll&&r.options.onChangeAll(r.getAllInputs(),n)}})}},{key:"handleButtonClicked",value:function(e,t){var n=this.options,r=n.inputName,i=void 0===r?this.defaultName:r,o=n.debug;if("{//}"!==e){this.input[i]||(this.input[i]=""),"function"==typeof this.options.beforeInputUpdate&&this.options.beforeInputUpdate(this);var a=this.utilities.getUpdatedInput(e,this.input[i],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(e)&&this.activeInputElement&&this.input[i]&&this.input[i]===a&&0===this.caretPosition&&this.caretPositionEnd===a.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(e,t);if("function"==typeof this.options.onKeyPress&&this.options.onKeyPress(e,t),this.input[i]!==a&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(a))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,a))return;var s=this.utilities.getUpdatedInput(e,this.input[i],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(s,this.options.inputName,!0),o&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),null==t?void 0:t.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),"function"==typeof this.options.onChange&&this.options.onChange(this.getInput(this.options.inputName,!0),t),"function"==typeof this.options.onChangeAll&&this.options.onChangeAll(this.getAllInputs(),t),null!=t&&t.target&&this.options.enableLayoutCandidates){var l,c=this.getInputCandidates(a),u=c.candidateKey,h=c.candidateValue;u&&h?this.showCandidatesBox(u,h,this.keyboardDOM):null===(l=this.candidateBox)||void 0===l||l.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),o&&console.log("Key pressed:",e)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(e){this.options.syncInstanceInputs?this.dispatch((function(t){t.isMouseHold=e})):this.isMouseHold=e}},{key:"handleButtonMouseDown",value:function(e,t){var n=this;t&&(this.options.preventMouseDownDefault&&t.preventDefault(),this.options.stopMouseDownPropagation&&t.stopPropagation(),t.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(!0),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout((function(){(n.getMouseHold()&&(!e.includes("{")&&!e.includes("}")||"{delete}"===e||"{backspace}"===e||"{bksp}"===e||"{space}"===e||"{tab}"===e)||"{arrowright}"===e||"{arrowleft}"===e||"{arrowup}"===e||"{arrowdown}"===e)&&(n.options.debug&&console.log("Button held:",e),n.handleButtonHold(e)),clearTimeout(n.holdTimeout)}),500))}},{key:"handleButtonMouseUp",value:function(e,t){var n=this;t&&(this.options.preventMouseUpDefault&&t.preventDefault&&t.preventDefault(),this.options.stopMouseUpPropagation&&t.stopPropagation&&t.stopPropagation(),!(t.target===this.keyboardDOM||t.target&&this.keyboardDOM.contains(t.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(t.target===this.candidateBox.candidateBoxElement||t.target&&this.candidateBox.candidateBoxElement.contains(t.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons((function(e){e.classList.remove(n.activeButtonClass)})),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),e&&"function"==typeof this.options.onKeyReleased&&this.options.onKeyReleased(e,t)}},{key:"handleKeyboardContainerMouseDown",value:function(e){this.options.preventMouseDownDefault&&e.preventDefault()}},{key:"handleButtonHold",value:function(e){var t=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout((function(){t.getMouseHold()?(t.handleButtonClicked(e),t.handleButtonHold(e)):clearTimeout(t.holdInteractionTimeout)}),100)}},{key:"syncInstanceInputs",value:function(){var e=this;this.dispatch((function(t){t.replaceInput(e.input),t.setCaretPosition(e.caretPosition,e.caretPositionEnd)}))}},{key:"clearInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName;this.input[e]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.options.syncInstanceInputs&&!t&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[e].replace("‫","").replace("‬","")+"‬":this.input[e]}},{key:"getAllInputs",value:function(){var e=this,t={};return Object.keys(this.input).forEach((function(n){t[n]=e.getInput(n,!0)})),t}},{key:"setInput",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.inputName||this.defaultName,n=arguments.length>2?arguments[2]:void 0;this.input[t]=e,!n&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(e){this.input=e}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.changedOptions(e);this.options=Object.assign(this.options,e),t.length&&(this.options.debug&&console.log("changedOptions",t),this.onSetOptions(t),this.render())}},{key:"changedOptions",value:function(e){var t=this;return Object.keys(e).filter((function(n){return JSON.stringify(e[n])!==JSON.stringify(t.options[n])}))}},{key:"onSetOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(e.includes("layoutCandidatesPageSize")||e.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new w({utilities:this.utilities,options:this.options}))}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={}}},{key:"dispatch",value:function(e){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach((function(t){e(window.SimpleKeyboardInstances[t],t)}))}},{key:"addButtonTheme",value:function(e,t){var n=this;t&&e&&(e.split(" ").forEach((function(r){t.split(" ").forEach((function(t){n.options.buttonTheme||(n.options.buttonTheme=[]);var i=!1;n.options.buttonTheme.map((function(e){if(null!=e&&e.class.split(" ").includes(t)){i=!0;var n=e.buttons.split(" ");n.includes(r)||(i=!0,n.push(r),e.buttons=n.join(" "))}return e})),i||n.options.buttonTheme.push({class:t,buttons:e})}))})),this.render())}},{key:"removeButtonTheme",value:function(e,t){var n=this;if(!e&&!t)return this.options.buttonTheme=[],void this.render();e&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(e.split(" ").forEach((function(e){var r;null===(r=n.options)||void 0===r||null===(r=r.buttonTheme)||void 0===r||r.map((function(r,i){if(r&&t&&t.includes(r.class)||!t){var o,a,s=null===(o=r)||void 0===o?void 0:o.buttons.split(" ").filter((function(t){return t!==e}));r&&null!=s&&s.length?r.buttons=s.join(" "):(null===(a=n.options.buttonTheme)||void 0===a||a.splice(i,1),r=null)}return r}))})),this.render())}},{key:"getButtonElement",value:function(e){var t,n=this.buttonElements[e];return n&&(t=n.length>1?n:n[0]),t}},{key:"inputPatternIsValid",value:function(e){var t,n=this.options.inputPattern;if((t=n instanceof RegExp?n:n[this.options.inputName||this.defaultName])&&e){var r=t.test(e);return this.options.debug&&console.log('inputPattern ("'.concat(t,'"): ').concat(r?"passed":"did not pass!")),r}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var e=this.options.physicalKeyboardHighlightPreventDefault,t=void 0!==e&&e;document.addEventListener("keyup",this.handleKeyUp,t),document.addEventListener("keydown",this.handleKeyDown,t),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),this.options.updateCaretOnSelectionChange&&document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(e){this.caretEventHandler(e),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(e)}},{key:"handleKeyDown",value:function(e){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(e)}},{key:"handleMouseUp",value:function(e){this.caretEventHandler(e)}},{key:"handleTouchEnd",value:function(e){this.caretEventHandler(e)}},{key:"handleSelect",value:function(e){this.caretEventHandler(e)}},{key:"handleSelectionChange",value:function(e){navigator.userAgent.includes("Firefox")||this.caretEventHandler(e)}},{key:"caretEventHandler",value:function(e){var t,n=this;e.target.tagName&&(t=e.target.tagName.toLowerCase()),this.dispatch((function(r){var i=e.target===r.keyboardDOM||e.target&&r.keyboardDOM.contains(e.target);if(n.options.syncInstanceInputs&&Array.isArray(e.path)&&(i=e.path.some((function(e){var t;return null==e||null===(t=e.hasAttribute)||void 0===t?void 0:t.call(e,"data-skInstance")}))),("textarea"===t||"input"===t&&["text","search","url","tel","password"].includes(e.target.type))&&!r.options.disableCaretPositioning){var o=e.target.selectionStart,a=e.target.selectionEnd;r.options.rtl&&(o=r.utilities.getRtlOffset(o,r.getInput()),a=r.utilities.getRtlOffset(a,r.getInput())),r.setCaretPosition(o,a),r.activeInputElement=e.target,r.options.debug&&console.log("Caret at: ",r.getCaretPosition(),r.getCaretPositionEnd(),e&&e.target.tagName.toLowerCase(),"(".concat(r.keyboardDOMClass,")"),null==e?void 0:e.type)}else!r.options.disableCaretPositioning&&i||"selectionchange"===(null==e?void 0:e.type)||(r.setCaretPosition(null),r.activeInputElement=null,r.options.debug&&console.log('Caret position reset due to "'.concat(null==e?void 0:e.type,'" event'),e))}))}},{key:"recurseButtons",value:function(e){var t=this;e&&Object.keys(this.buttonElements).forEach((function(n){return t.buttonElements[n].forEach(e)}))}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var e=this.options.physicalKeyboardHighlightPreventDefault,t=void 0!==e&&e;document.removeEventListener("keyup",this.handleKeyUp,t),document.removeEventListener("keydown",this.handleKeyDown,t),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),this.options.updateCaretOnSelectionChange&&document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons((function(e){e&&(e.onpointerdown=null,e.onpointerup=null,e.onpointercancel=null,e.ontouchstart=null,e.ontouchend=null,e.ontouchcancel=null,e.onclick=null,e.onmousedown=null,e.onmouseup=null,e.remove(),e=null)})),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(e){var t=this.options.buttonTheme,n=[];return Array.isArray(t)&&t.forEach((function(t){if(t&&t.class&&"string"==typeof t.class&&t.buttons&&"string"==typeof t.buttons){var r=t.class.split(" ");t.buttons.split(" ").includes(e)&&(n=[].concat(C(n),C(r)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',t)})),n}},{key:"setDOMButtonAttributes",value:function(e,t){var n=this.options.buttonAttributes;Array.isArray(n)&&n.forEach((function(n){n.attribute&&"string"==typeof n.attribute&&n.value&&"string"==typeof n.value&&n.buttons&&"string"==typeof n.buttons?n.buttons.split(" ").includes(e)&&t(n.attribute,n.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',n)}))}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(e){if(e.target.classList.contains("hg-button"))return e.preventDefault(),e.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."))}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),"function"==typeof this.options.onInit&&this.options.onInit(this)}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),"function"==typeof this.options.beforeFirstRender&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.")}},{key:"beforeRender",value:function(){"function"==typeof this.options.beforeRender&&this.options.beforeRender(this)}},{key:"onRender",value:function(){"function"==typeof this.options.onRender&&this.options.onRender(this)}},{key:"onModulesLoaded",value:function(){"function"==typeof this.options.onModulesLoaded&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var e=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach((function(t){var n=e.utilities.isConstructor(t)?new t(e):t(e);n.init&&n.init(e)})),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(e,t){return!!this.modules[e]&&this.modules[e][t]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(e,t,n,r){var i=this,o=Array.from(e.children),a=0;return o.length&&n.forEach((function(n,s){var l=r[s];if(!(l&&l>n))return!1;var c=n-a,u=l-a,h=document.createElement("div");h.className+="hg-button-container";var d="".concat(i.options.layoutName,"-r").concat(t,"c").concat(s);h.setAttribute("data-skUID",d);var f=o.splice(c,u-c+1);a+=u-c,f.forEach((function(e){return h.appendChild(e)})),o.splice(c,0,h),e.innerHTML="",o.forEach((function(t){return e.appendChild(t)})),i.options.debug&&console.log("rowDOMContainer",f,c,u,a+1)})),e}},{key:"render",value:function(){var e=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var t="hg-layout-".concat(this.options.layoutName),n=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},r=this.options.useTouchEvents||!1,i=r?"hg-touch-events":"",o=this.options.useMouseEvents||!1,a=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,t,this.keyboardPluginClasses,i),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",n[this.options.layoutName||this.defaultName].forEach((function(t,n){var i=t.split(" ");e.options.excludeFromLayout&&e.options.excludeFromLayout[e.options.layoutName||e.defaultName]&&(i=i.filter((function(t){return e.options.excludeFromLayout&&!e.options.excludeFromLayout[e.options.layoutName||e.defaultName].includes(t)})));var s=document.createElement("div");s.className+="hg-row";var l=[],c=[];i.forEach((function(t,i){var u,h=!a&&"string"==typeof t&&t.length>1&&0===t.indexOf("["),d=!a&&"string"==typeof t&&t.length>1&&t.indexOf("]")===t.length-1;h&&(l.push(i),t=t.replace(/\[/g,"")),d&&(c.push(i),t=t.replace(/\]/g,""));var f=e.utilities.getButtonClass(t),p=e.utilities.getButtonDisplayName(t,e.options.display,e.options.mergeDisplay),m=e.options.useButtonTag?"button":"div",g=document.createElement(m);g.className+="hg-button ".concat(f),(u=g.classList).add.apply(u,C(e.getButtonThemeClasses(t))),e.setDOMButtonAttributes(t,(function(e,t){g.setAttribute(e,t)})),e.activeButtonClass="hg-activeButton",!e.utilities.pointerEventsSupported()||r||o?r?(g.ontouchstart=function(n){e.handleButtonClicked(t,n),e.handleButtonMouseDown(t,n)},g.ontouchend=function(n){e.handleButtonMouseUp(t,n)},g.ontouchcancel=function(n){e.handleButtonMouseUp(t,n)}):(g.onclick=function(n){e.setMouseHold(!1),"function"==typeof e.options.onKeyReleased||e.options.useMouseEvents&&e.options.clickOnMouseDown||e.handleButtonClicked(t,n)},g.onmousedown=function(n){("function"==typeof e.options.onKeyReleased||e.options.useMouseEvents&&e.options.clickOnMouseDown)&&!e.isMouseHold&&e.handleButtonClicked(t,n),e.handleButtonMouseDown(t,n)},g.onmouseup=function(n){e.handleButtonMouseUp(t,n)}):(g.onpointerdown=function(n){e.handleButtonClicked(t,n),e.handleButtonMouseDown(t,n)},g.onpointerup=function(n){e.handleButtonMouseUp(t,n)},g.onpointercancel=function(n){e.handleButtonMouseUp(t,n)}),g.setAttribute("data-skBtn",t);var y="".concat(e.options.layoutName,"-r").concat(n,"b").concat(i);g.setAttribute("data-skBtnUID",y);var v=document.createElement("span");v.innerHTML=p,g.appendChild(v),e.buttonElements[t]||(e.buttonElements[t]=[]),e.buttonElements[t].push(g),s.appendChild(g)})),s=e.parseRowDOMContainers(s,n,l,c),e.keyboardRowsDOM.appendChild(s)})),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||r||o?r?(document.ontouchend=function(t){return e.handleButtonMouseUp(void 0,t)},document.ontouchcancel=function(t){return e.handleButtonMouseUp(void 0,t)},this.keyboardDOM.ontouchstart=function(t){return e.handleKeyboardContainerMouseDown(t)}):r||(document.onmouseup=function(t){return e.handleButtonMouseUp(void 0,t)},this.keyboardDOM.onmousedown=function(t){return e.handleKeyboardContainerMouseDown(t)}):(document.onpointerup=function(t){return e.handleButtonMouseUp(void 0,t)},this.keyboardDOM.onpointerdown=function(t){return e.handleKeyboardContainerMouseDown(t)}),this.onInit())}}],t&&T(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),M=R,P=M;return r}()},981:function(){"undefined"==typeof Element||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),"undefined"!=typeof self&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(e){"use strict";if("Element"in e){var t="classList",n="prototype",r=e.Element[n],i=Object,o=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(e){for(var t=0,n=this.length;t{"use strict";var t,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(a,{EncodeError:()=>c,assertValueInRange:()=>l,default:()=>s}),e.exports=(t=a,((e,t,a,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of i(t))o.call(e,a)||undefined===a||n(e,a,{get:()=>t[a],enumerable:!(s=r(t,a))||s.enumerable});return e})(n({},"__esModule",{value:!0}),t));class s{name;constructor(e){this.name=e}}function l(e,[t,n]){if(en)throw new c(`Value "${e}" is not in range [${t}..${n}]`)}class c extends Error{}},40317:e=>{"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},40525:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h=(e,t,n)=>(n=null!=e?i(l(e)):{},u(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{default:()=>g}),e.exports=(r=d,u(o({},"__esModule",{value:!0}),r));var f=h(n(25847)),p=h(n(21107)),m=h(n(40295));class g extends m.default{byteSize="variable";randomValue(){const e=new Uint8Array(Math.floor(Math.random()*2**28));for(let t=0;t2**28-1)throw new m.EncodeError(`Byte size "${t.byteLength}" not in range [0..268435455]`);const n=new Uint8Array((0,p.default)(t.byteLength)),r=new ArrayBuffer(n.byteLength+t.byteLength),i=new DataView(r);for(let e=0;e{var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),h(r,e,r.depth)}function c(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function u(e,t){return e}function h(e,n,r){if(e.customInspect&&n&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return v(i)||(i=h(e,i,r)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),C(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(S(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(A(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(C(n))return d(n)}var c,u="",x=!1,E=["{","}"];return p(n)&&(x=!0,E=["[","]"]),S(n)&&(u=" [Function"+(n.name?": "+n.name:"")+"]"),A(n)&&(u=" "+RegExp.prototype.toString.call(n)),w(n)&&(u=" "+Date.prototype.toUTCString.call(n)),C(n)&&(u=" "+d(n)),0!==a.length||x&&0!=n.length?r<0?A(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=x?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,u,E)):E[0]+u+E[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),I(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=g(n)?h(e,l.value,null):h(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function g(e){return null===e}function y(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return void 0===e}function A(e){return x(e)&&"[object RegExp]"===E(e)}function x(e){return"object"==typeof e&&null!==e}function w(e){return x(e)&&"[object Date]"===E(e)}function C(e){return x(e)&&("[object Error]"===E(e)||e instanceof Error)}function S(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(a.test(e)){var n={env:{}}.pid;o[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else o[e]=function(){};return o[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(49032),t.isArray=p,t.isBoolean=m,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=A,t.types.isRegExp=A,t.isObject=x,t.isDate=w,t.types.isDate=w,t.isError=C,t.types.isNativeError=C,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(81135);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[k((e=new Date).getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),T[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(56698),t._extend=function(e,t){if(!t||!x(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(O&&e[O]){var t;if("function"!=typeof(t=e[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o{"use strict";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},40825:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return i(e.source,(0,r.getLocation)(e.source,e.start))},t.printSourceLocation=i;var r=n(99530);function i(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,s=t.line+a,l=1===t.line?n:0,c=t.column+l,u=`${e.name}:${s}:${c}\n`,h=r.split(/\r\n|[\n\r]/g),d=h[i];if(d.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+o([[s-1+" |",h[i-1]],[`${s} |`,d],["|","^".padStart(c)],[`${s+1} |`,h[i+1]]])}function o(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}},40961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(6221)},41003:(e,t,n)=>{"use strict";var r=n(55986),i=n(69675);e.exports=function(e){if("number"!=typeof e&&"bigint"!=typeof e)throw new i("argument must be a Number or a BigInt");var t=e<0?-r(-e):r(e);return 0===t?0:t}},41081:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(71354),i=n.n(r),o=n(76314),a=n.n(o),s=n(4417),l=n.n(s),c=new URL(n(94648),n.b),u=new URL(n(26577),n.b),h=new URL(n(37024),n.b),d=a()(i()),f=l()(c),p=l()(u),m=l()(h);d.push([e.id,`/* required styles */\n\n.leaflet-pane,\n.leaflet-tile,\n.leaflet-marker-icon,\n.leaflet-marker-shadow,\n.leaflet-tile-container,\n.leaflet-pane > svg,\n.leaflet-pane > canvas,\n.leaflet-zoom-box,\n.leaflet-image-layer,\n.leaflet-layer {\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\t}\n.leaflet-container {\n\toverflow: hidden;\n\t}\n.leaflet-tile,\n.leaflet-marker-icon,\n.leaflet-marker-shadow {\n\t-webkit-user-select: none;\n\t -moz-user-select: none;\n\t user-select: none;\n\t -webkit-user-drag: none;\n\t}\n/* Prevents IE11 from highlighting tiles in blue */\n.leaflet-tile::selection {\n\tbackground: transparent;\n}\n/* Safari renders non-retina tile on retina better with this, but Chrome is worse */\n.leaflet-safari .leaflet-tile {\n\timage-rendering: -webkit-optimize-contrast;\n\t}\n/* hack that prevents hw layers "stretching" when loading new tiles */\n.leaflet-safari .leaflet-tile-container {\n\twidth: 1600px;\n\theight: 1600px;\n\t-webkit-transform-origin: 0 0;\n\t}\n.leaflet-marker-icon,\n.leaflet-marker-shadow {\n\tdisplay: block;\n\t}\n/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */\n/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */\n.leaflet-container .leaflet-overlay-pane svg {\n\tmax-width: none !important;\n\tmax-height: none !important;\n\t}\n.leaflet-container .leaflet-marker-pane img,\n.leaflet-container .leaflet-shadow-pane img,\n.leaflet-container .leaflet-tile-pane img,\n.leaflet-container img.leaflet-image-layer,\n.leaflet-container .leaflet-tile {\n\tmax-width: none !important;\n\tmax-height: none !important;\n\twidth: auto;\n\tpadding: 0;\n\t}\n\n.leaflet-container img.leaflet-tile {\n\t/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */\n\t/* mix-blend-mode: plus-lighter; */\n}\n\n.leaflet-container.leaflet-touch-zoom {\n\t-ms-touch-action: pan-x pan-y;\n\ttouch-action: pan-x pan-y;\n\t}\n.leaflet-container.leaflet-touch-drag {\n\t-ms-touch-action: pinch-zoom;\n\t/* Fallback for FF which doesn't support pinch-zoom */\n\ttouch-action: none;\n\ttouch-action: pinch-zoom;\n}\n.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {\n\t-ms-touch-action: none;\n\ttouch-action: none;\n}\n.leaflet-container {\n\t-webkit-tap-highlight-color: transparent;\n}\n.leaflet-container a {\n\t-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);\n}\n.leaflet-tile {\n\tfilter: inherit;\n\tvisibility: hidden;\n\t}\n.leaflet-tile-loaded {\n\tvisibility: inherit;\n\t}\n.leaflet-zoom-box {\n\twidth: 0;\n\theight: 0;\n\t-moz-box-sizing: border-box;\n\t box-sizing: border-box;\n\tz-index: 800;\n\t}\n/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */\n.leaflet-overlay-pane svg {\n\t-moz-user-select: none;\n\t}\n\n.leaflet-pane { z-index: 400; }\n\n.leaflet-tile-pane { z-index: 200; }\n.leaflet-overlay-pane { z-index: 400; }\n.leaflet-shadow-pane { z-index: 500; }\n.leaflet-marker-pane { z-index: 600; }\n.leaflet-tooltip-pane { z-index: 650; }\n.leaflet-popup-pane { z-index: 700; }\n\n.leaflet-map-pane canvas { z-index: 100; }\n.leaflet-map-pane svg { z-index: 200; }\n\n.leaflet-vml-shape {\n\twidth: 1px;\n\theight: 1px;\n\t}\n.lvml {\n\tbehavior: url(#default#VML);\n\tdisplay: inline-block;\n\tposition: absolute;\n\t}\n\n\n/* control positioning */\n\n.leaflet-control {\n\tposition: relative;\n\tz-index: 800;\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\n\tpointer-events: auto;\n\t}\n.leaflet-top,\n.leaflet-bottom {\n\tposition: absolute;\n\tz-index: 1000;\n\tpointer-events: none;\n\t}\n.leaflet-top {\n\ttop: 0;\n\t}\n.leaflet-right {\n\tright: 0;\n\t}\n.leaflet-bottom {\n\tbottom: 0;\n\t}\n.leaflet-left {\n\tleft: 0;\n\t}\n.leaflet-control {\n\tfloat: left;\n\tclear: both;\n\t}\n.leaflet-right .leaflet-control {\n\tfloat: right;\n\t}\n.leaflet-top .leaflet-control {\n\tmargin-top: 10px;\n\t}\n.leaflet-bottom .leaflet-control {\n\tmargin-bottom: 10px;\n\t}\n.leaflet-left .leaflet-control {\n\tmargin-left: 10px;\n\t}\n.leaflet-right .leaflet-control {\n\tmargin-right: 10px;\n\t}\n\n\n/* zoom and fade animations */\n\n.leaflet-fade-anim .leaflet-popup {\n\topacity: 0;\n\t-webkit-transition: opacity 0.2s linear;\n\t -moz-transition: opacity 0.2s linear;\n\t transition: opacity 0.2s linear;\n\t}\n.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\n\topacity: 1;\n\t}\n.leaflet-zoom-animated {\n\t-webkit-transform-origin: 0 0;\n\t -ms-transform-origin: 0 0;\n\t transform-origin: 0 0;\n\t}\nsvg.leaflet-zoom-animated {\n\twill-change: transform;\n}\n\n.leaflet-zoom-anim .leaflet-zoom-animated {\n\t-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\n\t -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);\n\t transition: transform 0.25s cubic-bezier(0,0,0.25,1);\n\t}\n.leaflet-zoom-anim .leaflet-tile,\n.leaflet-pan-anim .leaflet-tile {\n\t-webkit-transition: none;\n\t -moz-transition: none;\n\t transition: none;\n\t}\n\n.leaflet-zoom-anim .leaflet-zoom-hide {\n\tvisibility: hidden;\n\t}\n\n\n/* cursors */\n\n.leaflet-interactive {\n\tcursor: pointer;\n\t}\n.leaflet-grab {\n\tcursor: -webkit-grab;\n\tcursor: -moz-grab;\n\tcursor: grab;\n\t}\n.leaflet-crosshair,\n.leaflet-crosshair .leaflet-interactive {\n\tcursor: crosshair;\n\t}\n.leaflet-popup-pane,\n.leaflet-control {\n\tcursor: auto;\n\t}\n.leaflet-dragging .leaflet-grab,\n.leaflet-dragging .leaflet-grab .leaflet-interactive,\n.leaflet-dragging .leaflet-marker-draggable {\n\tcursor: move;\n\tcursor: -webkit-grabbing;\n\tcursor: -moz-grabbing;\n\tcursor: grabbing;\n\t}\n\n/* marker & overlays interactivity */\n.leaflet-marker-icon,\n.leaflet-marker-shadow,\n.leaflet-image-layer,\n.leaflet-pane > svg path,\n.leaflet-tile-container {\n\tpointer-events: none;\n\t}\n\n.leaflet-marker-icon.leaflet-interactive,\n.leaflet-image-layer.leaflet-interactive,\n.leaflet-pane > svg path.leaflet-interactive,\nsvg.leaflet-image-layer.leaflet-interactive path {\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\n\tpointer-events: auto;\n\t}\n\n/* visual tweaks */\n\n.leaflet-container {\n\tbackground: #ddd;\n\toutline-offset: 1px;\n\t}\n.leaflet-container a {\n\tcolor: #0078A8;\n\t}\n.leaflet-zoom-box {\n\tborder: 2px dotted #38f;\n\tbackground: rgba(255,255,255,0.5);\n\t}\n\n\n/* general typography */\n.leaflet-container {\n\tfont-family: "Helvetica Neue", Arial, Helvetica, sans-serif;\n\tfont-size: 12px;\n\tfont-size: 0.75rem;\n\tline-height: 1.5;\n\t}\n\n\n/* general toolbar styles */\n\n.leaflet-bar {\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.65);\n\tborder-radius: 4px;\n\t}\n.leaflet-bar a {\n\tbackground-color: #fff;\n\tborder-bottom: 1px solid #ccc;\n\twidth: 26px;\n\theight: 26px;\n\tline-height: 26px;\n\tdisplay: block;\n\ttext-align: center;\n\ttext-decoration: none;\n\tcolor: black;\n\t}\n.leaflet-bar a,\n.leaflet-control-layers-toggle {\n\tbackground-position: 50% 50%;\n\tbackground-repeat: no-repeat;\n\tdisplay: block;\n\t}\n.leaflet-bar a:hover,\n.leaflet-bar a:focus {\n\tbackground-color: #f4f4f4;\n\t}\n.leaflet-bar a:first-child {\n\tborder-top-left-radius: 4px;\n\tborder-top-right-radius: 4px;\n\t}\n.leaflet-bar a:last-child {\n\tborder-bottom-left-radius: 4px;\n\tborder-bottom-right-radius: 4px;\n\tborder-bottom: none;\n\t}\n.leaflet-bar a.leaflet-disabled {\n\tcursor: default;\n\tbackground-color: #f4f4f4;\n\tcolor: #bbb;\n\t}\n\n.leaflet-touch .leaflet-bar a {\n\twidth: 30px;\n\theight: 30px;\n\tline-height: 30px;\n\t}\n.leaflet-touch .leaflet-bar a:first-child {\n\tborder-top-left-radius: 2px;\n\tborder-top-right-radius: 2px;\n\t}\n.leaflet-touch .leaflet-bar a:last-child {\n\tborder-bottom-left-radius: 2px;\n\tborder-bottom-right-radius: 2px;\n\t}\n\n/* zoom control */\n\n.leaflet-control-zoom-in,\n.leaflet-control-zoom-out {\n\tfont: bold 18px 'Lucida Console', Monaco, monospace;\n\ttext-indent: 1px;\n\t}\n\n.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {\n\tfont-size: 22px;\n\t}\n\n\n/* layers control */\n\n.leaflet-control-layers {\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.4);\n\tbackground: #fff;\n\tborder-radius: 5px;\n\t}\n.leaflet-control-layers-toggle {\n\tbackground-image: url(${f});\n\twidth: 36px;\n\theight: 36px;\n\t}\n.leaflet-retina .leaflet-control-layers-toggle {\n\tbackground-image: url(${p});\n\tbackground-size: 26px 26px;\n\t}\n.leaflet-touch .leaflet-control-layers-toggle {\n\twidth: 44px;\n\theight: 44px;\n\t}\n.leaflet-control-layers .leaflet-control-layers-list,\n.leaflet-control-layers-expanded .leaflet-control-layers-toggle {\n\tdisplay: none;\n\t}\n.leaflet-control-layers-expanded .leaflet-control-layers-list {\n\tdisplay: block;\n\tposition: relative;\n\t}\n.leaflet-control-layers-expanded {\n\tpadding: 6px 10px 6px 6px;\n\tcolor: #333;\n\tbackground: #fff;\n\t}\n.leaflet-control-layers-scrollbar {\n\toverflow-y: scroll;\n\toverflow-x: hidden;\n\tpadding-right: 5px;\n\t}\n.leaflet-control-layers-selector {\n\tmargin-top: 2px;\n\tposition: relative;\n\ttop: 1px;\n\t}\n.leaflet-control-layers label {\n\tdisplay: block;\n\tfont-size: 13px;\n\tfont-size: 1.08333em;\n\t}\n.leaflet-control-layers-separator {\n\theight: 0;\n\tborder-top: 1px solid #ddd;\n\tmargin: 5px -10px 5px -6px;\n\t}\n\n/* Default icon URLs */\n.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */\n\tbackground-image: url(${m});\n\t}\n\n\n/* attribution and scale controls */\n\n.leaflet-container .leaflet-control-attribution {\n\tbackground: #fff;\n\tbackground: rgba(255, 255, 255, 0.8);\n\tmargin: 0;\n\t}\n.leaflet-control-attribution,\n.leaflet-control-scale-line {\n\tpadding: 0 5px;\n\tcolor: #333;\n\tline-height: 1.4;\n\t}\n.leaflet-control-attribution a {\n\ttext-decoration: none;\n\t}\n.leaflet-control-attribution a:hover,\n.leaflet-control-attribution a:focus {\n\ttext-decoration: underline;\n\t}\n.leaflet-attribution-flag {\n\tdisplay: inline !important;\n\tvertical-align: baseline !important;\n\twidth: 1em;\n\theight: 0.6669em;\n\t}\n.leaflet-left .leaflet-control-scale {\n\tmargin-left: 5px;\n\t}\n.leaflet-bottom .leaflet-control-scale {\n\tmargin-bottom: 5px;\n\t}\n.leaflet-control-scale-line {\n\tborder: 2px solid #777;\n\tborder-top: none;\n\tline-height: 1.1;\n\tpadding: 2px 5px 1px;\n\twhite-space: nowrap;\n\t-moz-box-sizing: border-box;\n\t box-sizing: border-box;\n\tbackground: rgba(255, 255, 255, 0.8);\n\ttext-shadow: 1px 1px #fff;\n\t}\n.leaflet-control-scale-line:not(:first-child) {\n\tborder-top: 2px solid #777;\n\tborder-bottom: none;\n\tmargin-top: -2px;\n\t}\n.leaflet-control-scale-line:not(:first-child):not(:last-child) {\n\tborder-bottom: 2px solid #777;\n\t}\n\n.leaflet-touch .leaflet-control-attribution,\n.leaflet-touch .leaflet-control-layers,\n.leaflet-touch .leaflet-bar {\n\tbox-shadow: none;\n\t}\n.leaflet-touch .leaflet-control-layers,\n.leaflet-touch .leaflet-bar {\n\tborder: 2px solid rgba(0,0,0,0.2);\n\tbackground-clip: padding-box;\n\t}\n\n\n/* popup */\n\n.leaflet-popup {\n\tposition: absolute;\n\ttext-align: center;\n\tmargin-bottom: 20px;\n\t}\n.leaflet-popup-content-wrapper {\n\tpadding: 1px;\n\ttext-align: left;\n\tborder-radius: 12px;\n\t}\n.leaflet-popup-content {\n\tmargin: 13px 24px 13px 20px;\n\tline-height: 1.3;\n\tfont-size: 13px;\n\tfont-size: 1.08333em;\n\tmin-height: 1px;\n\t}\n.leaflet-popup-content p {\n\tmargin: 17px 0;\n\tmargin: 1.3em 0;\n\t}\n.leaflet-popup-tip-container {\n\twidth: 40px;\n\theight: 20px;\n\tposition: absolute;\n\tleft: 50%;\n\tmargin-top: -1px;\n\tmargin-left: -20px;\n\toverflow: hidden;\n\tpointer-events: none;\n\t}\n.leaflet-popup-tip {\n\twidth: 17px;\n\theight: 17px;\n\tpadding: 1px;\n\n\tmargin: -10px auto 0;\n\tpointer-events: auto;\n\n\t-webkit-transform: rotate(45deg);\n\t -moz-transform: rotate(45deg);\n\t -ms-transform: rotate(45deg);\n\t transform: rotate(45deg);\n\t}\n.leaflet-popup-content-wrapper,\n.leaflet-popup-tip {\n\tbackground: white;\n\tcolor: #333;\n\tbox-shadow: 0 3px 14px rgba(0,0,0,0.4);\n\t}\n.leaflet-container a.leaflet-popup-close-button {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\tborder: none;\n\ttext-align: center;\n\twidth: 24px;\n\theight: 24px;\n\tfont: 16px/24px Tahoma, Verdana, sans-serif;\n\tcolor: #757575;\n\ttext-decoration: none;\n\tbackground: transparent;\n\t}\n.leaflet-container a.leaflet-popup-close-button:hover,\n.leaflet-container a.leaflet-popup-close-button:focus {\n\tcolor: #585858;\n\t}\n.leaflet-popup-scrolled {\n\toverflow: auto;\n\t}\n\n.leaflet-oldie .leaflet-popup-content-wrapper {\n\t-ms-zoom: 1;\n\t}\n.leaflet-oldie .leaflet-popup-tip {\n\twidth: 24px;\n\tmargin: 0 auto;\n\n\t-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";\n\tfilter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\n\t}\n\n.leaflet-oldie .leaflet-control-zoom,\n.leaflet-oldie .leaflet-control-layers,\n.leaflet-oldie .leaflet-popup-content-wrapper,\n.leaflet-oldie .leaflet-popup-tip {\n\tborder: 1px solid #999;\n\t}\n\n\n/* div icon */\n\n.leaflet-div-icon {\n\tbackground: #fff;\n\tborder: 1px solid #666;\n\t}\n\n\n/* Tooltip */\n/* Base styles for the element that has a tooltip */\n.leaflet-tooltip {\n\tposition: absolute;\n\tpadding: 6px;\n\tbackground-color: #fff;\n\tborder: 1px solid #fff;\n\tborder-radius: 3px;\n\tcolor: #222;\n\twhite-space: nowrap;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n\tpointer-events: none;\n\tbox-shadow: 0 1px 3px rgba(0,0,0,0.4);\n\t}\n.leaflet-tooltip.leaflet-interactive {\n\tcursor: pointer;\n\tpointer-events: auto;\n\t}\n.leaflet-tooltip-top:before,\n.leaflet-tooltip-bottom:before,\n.leaflet-tooltip-left:before,\n.leaflet-tooltip-right:before {\n\tposition: absolute;\n\tpointer-events: none;\n\tborder: 6px solid transparent;\n\tbackground: transparent;\n\tcontent: "";\n\t}\n\n/* Directions */\n\n.leaflet-tooltip-bottom {\n\tmargin-top: 6px;\n}\n.leaflet-tooltip-top {\n\tmargin-top: -6px;\n}\n.leaflet-tooltip-bottom:before,\n.leaflet-tooltip-top:before {\n\tleft: 50%;\n\tmargin-left: -6px;\n\t}\n.leaflet-tooltip-top:before {\n\tbottom: 0;\n\tmargin-bottom: -12px;\n\tborder-top-color: #fff;\n\t}\n.leaflet-tooltip-bottom:before {\n\ttop: 0;\n\tmargin-top: -12px;\n\tmargin-left: -6px;\n\tborder-bottom-color: #fff;\n\t}\n.leaflet-tooltip-left {\n\tmargin-left: -6px;\n}\n.leaflet-tooltip-right {\n\tmargin-left: 6px;\n}\n.leaflet-tooltip-left:before,\n.leaflet-tooltip-right:before {\n\ttop: 50%;\n\tmargin-top: -6px;\n\t}\n.leaflet-tooltip-left:before {\n\tright: 0;\n\tmargin-right: -12px;\n\tborder-left-color: #fff;\n\t}\n.leaflet-tooltip-right:before {\n\tleft: 0;\n\tmargin-left: -12px;\n\tborder-right-color: #fff;\n\t}\n\n/* Printing */\n\n@media print {\n\t/* Prevent printers from removing background-images of controls. */\n\t.leaflet-control {\n\t\t-webkit-print-color-adjust: exact;\n\t\tprint-color-adjust: exact;\n\t\t}\n\t}\n`,"",{version:3,sources:["webpack://./node_modules/leaflet/dist/leaflet.css"],names:[],mappings:"AAAA,oBAAoB;;AAEpB;;;;;;;;;;CAUC,kBAAkB;CAClB,OAAO;CACP,MAAM;CACN;AACD;CACC,gBAAgB;CAChB;AACD;;;CAGC,yBAAyB;IACtB,sBAAsB;SACjB,iBAAiB;GACvB,uBAAuB;CACzB;AACD,kDAAkD;AAClD;CACC,uBAAuB;AACxB;AACA,mFAAmF;AACnF;CACC,0CAA0C;CAC1C;AACD,qEAAqE;AACrE;CACC,aAAa;CACb,cAAc;CACd,6BAA6B;CAC7B;AACD;;CAEC,cAAc;CACd;AACD,gGAAgG;AAChG,qFAAqF;AACrF;CACC,0BAA0B;CAC1B,2BAA2B;CAC3B;AACD;;;;;CAKC,0BAA0B;CAC1B,2BAA2B;CAC3B,WAAW;CACX,UAAU;CACV;;AAED;CACC,sEAAsE;CACtE,kCAAkC;AACnC;;AAEA;CACC,6BAA6B;CAC7B,yBAAyB;CACzB;AACD;CACC,4BAA4B;CAC5B,qDAAqD;CACrD,kBAAkB;CAClB,wBAAwB;AACzB;AACA;CACC,sBAAsB;CACtB,kBAAkB;AACnB;AACA;CACC,wCAAwC;AACzC;AACA;CACC,oDAAoD;AACrD;AACA;CACC,eAAe;CACf,kBAAkB;CAClB;AACD;CACC,mBAAmB;CACnB;AACD;CACC,QAAQ;CACR,SAAS;CACT,2BAA2B;MACtB,sBAAsB;CAC3B,YAAY;CACZ;AACD,uEAAuE;AACvE;CACC,sBAAsB;CACtB;;AAED,wBAAwB,YAAY,EAAE;;AAEtC,wBAAwB,YAAY,EAAE;AACtC,wBAAwB,YAAY,EAAE;AACtC,wBAAwB,YAAY,EAAE;AACtC,wBAAwB,YAAY,EAAE;AACtC,0BAA0B,YAAY,EAAE;AACxC,wBAAwB,YAAY,EAAE;;AAEtC,2BAA2B,YAAY,EAAE;AACzC,2BAA2B,YAAY,EAAE;;AAEzC;CACC,UAAU;CACV,WAAW;CACX;AACD;CACC,2BAA2B;CAC3B,qBAAqB;CACrB,kBAAkB;CAClB;;;AAGD,wBAAwB;;AAExB;CACC,kBAAkB;CAClB,YAAY;CACZ,8BAA8B,EAAE,8BAA8B;CAC9D,oBAAoB;CACpB;AACD;;CAEC,kBAAkB;CAClB,aAAa;CACb,oBAAoB;CACpB;AACD;CACC,MAAM;CACN;AACD;CACC,QAAQ;CACR;AACD;CACC,SAAS;CACT;AACD;CACC,OAAO;CACP;AACD;CACC,WAAW;CACX,WAAW;CACX;AACD;CACC,YAAY;CACZ;AACD;CACC,gBAAgB;CAChB;AACD;CACC,mBAAmB;CACnB;AACD;CACC,iBAAiB;CACjB;AACD;CACC,kBAAkB;CAClB;;;AAGD,6BAA6B;;AAE7B;CACC,UAAU;CACV,uCAAuC;IACpC,oCAAoC;SAC/B,+BAA+B;CACvC;AACD;CACC,UAAU;CACV;AACD;CACC,6BAA6B;KACzB,yBAAyB;SACrB,qBAAqB;CAC7B;AACD;CACC,sBAAsB;AACvB;;AAEA;CACC,oEAAoE;IACjE,iEAAiE;SAC5D,4DAA4D;CACpE;AACD;;CAEC,wBAAwB;IACrB,qBAAqB;SAChB,gBAAgB;CACxB;;AAED;CACC,kBAAkB;CAClB;;;AAGD,YAAY;;AAEZ;CACC,eAAe;CACf;AACD;CACC,oBAAoB;CACpB,oBAAoB;CACpB,oBAAoB;CACpB;AACD;;CAEC,iBAAiB;CACjB;AACD;;CAEC,YAAY;CACZ;AACD;;;CAGC,YAAY;CACZ,wBAAwB;CACxB,wBAAwB;CACxB,wBAAwB;CACxB;;AAED,oCAAoC;AACpC;;;;;CAKC,oBAAoB;CACpB;;AAED;;;;CAIC,8BAA8B,EAAE,8BAA8B;CAC9D,oBAAoB;CACpB;;AAED,kBAAkB;;AAElB;CACC,gBAAgB;CAChB,mBAAmB;CACnB;AACD;CACC,cAAc;CACd;AACD;CACC,uBAAuB;CACvB,iCAAiC;CACjC;;;AAGD,uBAAuB;AACvB;CACC,2DAA2D;CAC3D,eAAe;CACf,kBAAkB;CAClB,gBAAgB;CAChB;;;AAGD,2BAA2B;;AAE3B;CACC,sCAAsC;CACtC,kBAAkB;CAClB;AACD;CACC,sBAAsB;CACtB,6BAA6B;CAC7B,WAAW;CACX,YAAY;CACZ,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,qBAAqB;CACrB,YAAY;CACZ;AACD;;CAEC,4BAA4B;CAC5B,4BAA4B;CAC5B,cAAc;CACd;AACD;;CAEC,yBAAyB;CACzB;AACD;CACC,2BAA2B;CAC3B,4BAA4B;CAC5B;AACD;CACC,8BAA8B;CAC9B,+BAA+B;CAC/B,mBAAmB;CACnB;AACD;CACC,eAAe;CACf,yBAAyB;CACzB,WAAW;CACX;;AAED;CACC,WAAW;CACX,YAAY;CACZ,iBAAiB;CACjB;AACD;CACC,2BAA2B;CAC3B,4BAA4B;CAC5B;AACD;CACC,8BAA8B;CAC9B,+BAA+B;CAC/B;;AAED,iBAAiB;;AAEjB;;CAEC,mDAAmD;CACnD,gBAAgB;CAChB;;AAED;CACC,eAAe;CACf;;;AAGD,mBAAmB;;AAEnB;CACC,qCAAqC;CACrC,gBAAgB;CAChB,kBAAkB;CAClB;AACD;CACC,yDAAwC;CACxC,WAAW;CACX,YAAY;CACZ;AACD;CACC,yDAA2C;CAC3C,0BAA0B;CAC1B;AACD;CACC,WAAW;CACX,YAAY;CACZ;AACD;;CAEC,aAAa;CACb;AACD;CACC,cAAc;CACd,kBAAkB;CAClB;AACD;CACC,yBAAyB;CACzB,WAAW;CACX,gBAAgB;CAChB;AACD;CACC,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CAClB;AACD;CACC,eAAe;CACf,kBAAkB;CAClB,QAAQ;CACR;AACD;CACC,cAAc;CACd,eAAe;CACf,oBAAoB;CACpB;AACD;CACC,SAAS;CACT,0BAA0B;CAC1B,0BAA0B;CAC1B;;AAED,sBAAsB;AACtB,6BAA6B,6DAA6D;CACzF,yDAA6C;CAC7C;;;AAGD,mCAAmC;;AAEnC;CACC,gBAAgB;CAChB,oCAAoC;CACpC,SAAS;CACT;AACD;;CAEC,cAAc;CACd,WAAW;CACX,gBAAgB;CAChB;AACD;CACC,qBAAqB;CACrB;AACD;;CAEC,0BAA0B;CAC1B;AACD;CACC,0BAA0B;CAC1B,mCAAmC;CACnC,UAAU;CACV,gBAAgB;CAChB;AACD;CACC,gBAAgB;CAChB;AACD;CACC,kBAAkB;CAClB;AACD;CACC,sBAAsB;CACtB,gBAAgB;CAChB,gBAAgB;CAChB,oBAAoB;CACpB,mBAAmB;CACnB,2BAA2B;MACtB,sBAAsB;CAC3B,oCAAoC;CACpC,yBAAyB;CACzB;AACD;CACC,0BAA0B;CAC1B,mBAAmB;CACnB,gBAAgB;CAChB;AACD;CACC,6BAA6B;CAC7B;;AAED;;;CAGC,gBAAgB;CAChB;AACD;;CAEC,iCAAiC;CACjC,4BAA4B;CAC5B;;;AAGD,UAAU;;AAEV;CACC,kBAAkB;CAClB,kBAAkB;CAClB,mBAAmB;CACnB;AACD;CACC,YAAY;CACZ,gBAAgB;CAChB,mBAAmB;CACnB;AACD;CACC,2BAA2B;CAC3B,gBAAgB;CAChB,eAAe;CACf,oBAAoB;CACpB,eAAe;CACf;AACD;CACC,cAAc;CACd,eAAe;CACf;AACD;CACC,WAAW;CACX,YAAY;CACZ,kBAAkB;CAClB,SAAS;CACT,gBAAgB;CAChB,kBAAkB;CAClB,gBAAgB;CAChB,oBAAoB;CACpB;AACD;CACC,WAAW;CACX,YAAY;CACZ,YAAY;;CAEZ,oBAAoB;CACpB,oBAAoB;;CAEpB,gCAAgC;IAC7B,6BAA6B;KAC5B,4BAA4B;SACxB,wBAAwB;CAChC;AACD;;CAEC,iBAAiB;CACjB,WAAW;CACX,sCAAsC;CACtC;AACD;CACC,kBAAkB;CAClB,MAAM;CACN,QAAQ;CACR,YAAY;CACZ,kBAAkB;CAClB,WAAW;CACX,YAAY;CACZ,2CAA2C;CAC3C,cAAc;CACd,qBAAqB;CACrB,uBAAuB;CACvB;AACD;;CAEC,cAAc;CACd;AACD;CACC,cAAc;CACd;;AAED;CACC,WAAW;CACX;AACD;CACC,WAAW;CACX,cAAc;;CAEd,uHAAuH;CACvH,iHAAiH;CACjH;;AAED;;;;CAIC,sBAAsB;CACtB;;;AAGD,aAAa;;AAEb;CACC,gBAAgB;CAChB,sBAAsB;CACtB;;;AAGD,YAAY;AACZ,mDAAmD;AACnD;CACC,kBAAkB;CAClB,YAAY;CACZ,sBAAsB;CACtB,sBAAsB;CACtB,kBAAkB;CAClB,WAAW;CACX,mBAAmB;CACnB,yBAAyB;CACzB,sBAAsB;CACtB,qBAAqB;CACrB,iBAAiB;CACjB,oBAAoB;CACpB,qCAAqC;CACrC;AACD;CACC,eAAe;CACf,oBAAoB;CACpB;AACD;;;;CAIC,kBAAkB;CAClB,oBAAoB;CACpB,6BAA6B;CAC7B,uBAAuB;CACvB,WAAW;CACX;;AAED,eAAe;;AAEf;CACC,eAAe;AAChB;AACA;CACC,gBAAgB;AACjB;AACA;;CAEC,SAAS;CACT,iBAAiB;CACjB;AACD;CACC,SAAS;CACT,oBAAoB;CACpB,sBAAsB;CACtB;AACD;CACC,MAAM;CACN,iBAAiB;CACjB,iBAAiB;CACjB,yBAAyB;CACzB;AACD;CACC,iBAAiB;AAClB;AACA;CACC,gBAAgB;AACjB;AACA;;CAEC,QAAQ;CACR,gBAAgB;CAChB;AACD;CACC,QAAQ;CACR,mBAAmB;CACnB,uBAAuB;CACvB;AACD;CACC,OAAO;CACP,kBAAkB;CAClB,wBAAwB;CACxB;;AAED,aAAa;;AAEb;CACC,kEAAkE;CAClE;EACC,iCAAiC;EACjC,yBAAyB;EACzB;CACD",sourcesContent:['/* required styles */\r\n\r\n.leaflet-pane,\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-tile-container,\r\n.leaflet-pane > svg,\r\n.leaflet-pane > canvas,\r\n.leaflet-zoom-box,\r\n.leaflet-image-layer,\r\n.leaflet-layer {\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\t}\r\n.leaflet-container {\r\n\toverflow: hidden;\r\n\t}\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\t-webkit-user-select: none;\r\n\t -moz-user-select: none;\r\n\t user-select: none;\r\n\t -webkit-user-drag: none;\r\n\t}\r\n/* Prevents IE11 from highlighting tiles in blue */\r\n.leaflet-tile::selection {\r\n\tbackground: transparent;\r\n}\r\n/* Safari renders non-retina tile on retina better with this, but Chrome is worse */\r\n.leaflet-safari .leaflet-tile {\r\n\timage-rendering: -webkit-optimize-contrast;\r\n\t}\r\n/* hack that prevents hw layers "stretching" when loading new tiles */\r\n.leaflet-safari .leaflet-tile-container {\r\n\twidth: 1600px;\r\n\theight: 1600px;\r\n\t-webkit-transform-origin: 0 0;\r\n\t}\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\tdisplay: block;\r\n\t}\r\n/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */\r\n/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */\r\n.leaflet-container .leaflet-overlay-pane svg {\r\n\tmax-width: none !important;\r\n\tmax-height: none !important;\r\n\t}\r\n.leaflet-container .leaflet-marker-pane img,\r\n.leaflet-container .leaflet-shadow-pane img,\r\n.leaflet-container .leaflet-tile-pane img,\r\n.leaflet-container img.leaflet-image-layer,\r\n.leaflet-container .leaflet-tile {\r\n\tmax-width: none !important;\r\n\tmax-height: none !important;\r\n\twidth: auto;\r\n\tpadding: 0;\r\n\t}\r\n\r\n.leaflet-container img.leaflet-tile {\r\n\t/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */\r\n\t/* mix-blend-mode: plus-lighter; */\n}\r\n\r\n.leaflet-container.leaflet-touch-zoom {\r\n\t-ms-touch-action: pan-x pan-y;\r\n\ttouch-action: pan-x pan-y;\r\n\t}\r\n.leaflet-container.leaflet-touch-drag {\r\n\t-ms-touch-action: pinch-zoom;\r\n\t/* Fallback for FF which doesn\'t support pinch-zoom */\r\n\ttouch-action: none;\r\n\ttouch-action: pinch-zoom;\r\n}\r\n.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {\r\n\t-ms-touch-action: none;\r\n\ttouch-action: none;\r\n}\r\n.leaflet-container {\r\n\t-webkit-tap-highlight-color: transparent;\r\n}\r\n.leaflet-container a {\r\n\t-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);\r\n}\r\n.leaflet-tile {\r\n\tfilter: inherit;\r\n\tvisibility: hidden;\r\n\t}\r\n.leaflet-tile-loaded {\r\n\tvisibility: inherit;\r\n\t}\r\n.leaflet-zoom-box {\r\n\twidth: 0;\r\n\theight: 0;\r\n\t-moz-box-sizing: border-box;\r\n\t box-sizing: border-box;\r\n\tz-index: 800;\r\n\t}\r\n/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */\r\n.leaflet-overlay-pane svg {\r\n\t-moz-user-select: none;\r\n\t}\r\n\r\n.leaflet-pane { z-index: 400; }\r\n\r\n.leaflet-tile-pane { z-index: 200; }\r\n.leaflet-overlay-pane { z-index: 400; }\r\n.leaflet-shadow-pane { z-index: 500; }\r\n.leaflet-marker-pane { z-index: 600; }\r\n.leaflet-tooltip-pane { z-index: 650; }\r\n.leaflet-popup-pane { z-index: 700; }\r\n\r\n.leaflet-map-pane canvas { z-index: 100; }\r\n.leaflet-map-pane svg { z-index: 200; }\r\n\r\n.leaflet-vml-shape {\r\n\twidth: 1px;\r\n\theight: 1px;\r\n\t}\r\n.lvml {\r\n\tbehavior: url(#default#VML);\r\n\tdisplay: inline-block;\r\n\tposition: absolute;\r\n\t}\r\n\r\n\r\n/* control positioning */\r\n\r\n.leaflet-control {\r\n\tposition: relative;\r\n\tz-index: 800;\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn\'t have auto */\r\n\tpointer-events: auto;\r\n\t}\r\n.leaflet-top,\r\n.leaflet-bottom {\r\n\tposition: absolute;\r\n\tz-index: 1000;\r\n\tpointer-events: none;\r\n\t}\r\n.leaflet-top {\r\n\ttop: 0;\r\n\t}\r\n.leaflet-right {\r\n\tright: 0;\r\n\t}\r\n.leaflet-bottom {\r\n\tbottom: 0;\r\n\t}\r\n.leaflet-left {\r\n\tleft: 0;\r\n\t}\r\n.leaflet-control {\r\n\tfloat: left;\r\n\tclear: both;\r\n\t}\r\n.leaflet-right .leaflet-control {\r\n\tfloat: right;\r\n\t}\r\n.leaflet-top .leaflet-control {\r\n\tmargin-top: 10px;\r\n\t}\r\n.leaflet-bottom .leaflet-control {\r\n\tmargin-bottom: 10px;\r\n\t}\r\n.leaflet-left .leaflet-control {\r\n\tmargin-left: 10px;\r\n\t}\r\n.leaflet-right .leaflet-control {\r\n\tmargin-right: 10px;\r\n\t}\r\n\r\n\r\n/* zoom and fade animations */\r\n\r\n.leaflet-fade-anim .leaflet-popup {\r\n\topacity: 0;\r\n\t-webkit-transition: opacity 0.2s linear;\r\n\t -moz-transition: opacity 0.2s linear;\r\n\t transition: opacity 0.2s linear;\r\n\t}\r\n.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\r\n\topacity: 1;\r\n\t}\r\n.leaflet-zoom-animated {\r\n\t-webkit-transform-origin: 0 0;\r\n\t -ms-transform-origin: 0 0;\r\n\t transform-origin: 0 0;\r\n\t}\r\nsvg.leaflet-zoom-animated {\r\n\twill-change: transform;\r\n}\r\n\r\n.leaflet-zoom-anim .leaflet-zoom-animated {\r\n\t-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t transition: transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t}\r\n.leaflet-zoom-anim .leaflet-tile,\r\n.leaflet-pan-anim .leaflet-tile {\r\n\t-webkit-transition: none;\r\n\t -moz-transition: none;\r\n\t transition: none;\r\n\t}\r\n\r\n.leaflet-zoom-anim .leaflet-zoom-hide {\r\n\tvisibility: hidden;\r\n\t}\r\n\r\n\r\n/* cursors */\r\n\r\n.leaflet-interactive {\r\n\tcursor: pointer;\r\n\t}\r\n.leaflet-grab {\r\n\tcursor: -webkit-grab;\r\n\tcursor: -moz-grab;\r\n\tcursor: grab;\r\n\t}\r\n.leaflet-crosshair,\r\n.leaflet-crosshair .leaflet-interactive {\r\n\tcursor: crosshair;\r\n\t}\r\n.leaflet-popup-pane,\r\n.leaflet-control {\r\n\tcursor: auto;\r\n\t}\r\n.leaflet-dragging .leaflet-grab,\r\n.leaflet-dragging .leaflet-grab .leaflet-interactive,\r\n.leaflet-dragging .leaflet-marker-draggable {\r\n\tcursor: move;\r\n\tcursor: -webkit-grabbing;\r\n\tcursor: -moz-grabbing;\r\n\tcursor: grabbing;\r\n\t}\r\n\r\n/* marker & overlays interactivity */\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-image-layer,\r\n.leaflet-pane > svg path,\r\n.leaflet-tile-container {\r\n\tpointer-events: none;\r\n\t}\r\n\r\n.leaflet-marker-icon.leaflet-interactive,\r\n.leaflet-image-layer.leaflet-interactive,\r\n.leaflet-pane > svg path.leaflet-interactive,\r\nsvg.leaflet-image-layer.leaflet-interactive path {\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn\'t have auto */\r\n\tpointer-events: auto;\r\n\t}\r\n\r\n/* visual tweaks */\r\n\r\n.leaflet-container {\r\n\tbackground: #ddd;\r\n\toutline-offset: 1px;\r\n\t}\r\n.leaflet-container a {\r\n\tcolor: #0078A8;\r\n\t}\r\n.leaflet-zoom-box {\r\n\tborder: 2px dotted #38f;\r\n\tbackground: rgba(255,255,255,0.5);\r\n\t}\r\n\r\n\r\n/* general typography */\r\n.leaflet-container {\r\n\tfont-family: "Helvetica Neue", Arial, Helvetica, sans-serif;\r\n\tfont-size: 12px;\r\n\tfont-size: 0.75rem;\r\n\tline-height: 1.5;\r\n\t}\r\n\r\n\r\n/* general toolbar styles */\r\n\r\n.leaflet-bar {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.65);\r\n\tborder-radius: 4px;\r\n\t}\r\n.leaflet-bar a {\r\n\tbackground-color: #fff;\r\n\tborder-bottom: 1px solid #ccc;\r\n\twidth: 26px;\r\n\theight: 26px;\r\n\tline-height: 26px;\r\n\tdisplay: block;\r\n\ttext-align: center;\r\n\ttext-decoration: none;\r\n\tcolor: black;\r\n\t}\r\n.leaflet-bar a,\r\n.leaflet-control-layers-toggle {\r\n\tbackground-position: 50% 50%;\r\n\tbackground-repeat: no-repeat;\r\n\tdisplay: block;\r\n\t}\r\n.leaflet-bar a:hover,\r\n.leaflet-bar a:focus {\r\n\tbackground-color: #f4f4f4;\r\n\t}\r\n.leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 4px;\r\n\tborder-top-right-radius: 4px;\r\n\t}\r\n.leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 4px;\r\n\tborder-bottom-right-radius: 4px;\r\n\tborder-bottom: none;\r\n\t}\r\n.leaflet-bar a.leaflet-disabled {\r\n\tcursor: default;\r\n\tbackground-color: #f4f4f4;\r\n\tcolor: #bbb;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-bar a {\r\n\twidth: 30px;\r\n\theight: 30px;\r\n\tline-height: 30px;\r\n\t}\r\n.leaflet-touch .leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 2px;\r\n\tborder-top-right-radius: 2px;\r\n\t}\r\n.leaflet-touch .leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 2px;\r\n\tborder-bottom-right-radius: 2px;\r\n\t}\r\n\r\n/* zoom control */\r\n\r\n.leaflet-control-zoom-in,\r\n.leaflet-control-zoom-out {\r\n\tfont: bold 18px \'Lucida Console\', Monaco, monospace;\r\n\ttext-indent: 1px;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {\r\n\tfont-size: 22px;\r\n\t}\r\n\r\n\r\n/* layers control */\r\n\r\n.leaflet-control-layers {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.4);\r\n\tbackground: #fff;\r\n\tborder-radius: 5px;\r\n\t}\r\n.leaflet-control-layers-toggle {\r\n\tbackground-image: url(images/layers.png);\r\n\twidth: 36px;\r\n\theight: 36px;\r\n\t}\r\n.leaflet-retina .leaflet-control-layers-toggle {\r\n\tbackground-image: url(images/layers-2x.png);\r\n\tbackground-size: 26px 26px;\r\n\t}\r\n.leaflet-touch .leaflet-control-layers-toggle {\r\n\twidth: 44px;\r\n\theight: 44px;\r\n\t}\r\n.leaflet-control-layers .leaflet-control-layers-list,\r\n.leaflet-control-layers-expanded .leaflet-control-layers-toggle {\r\n\tdisplay: none;\r\n\t}\r\n.leaflet-control-layers-expanded .leaflet-control-layers-list {\r\n\tdisplay: block;\r\n\tposition: relative;\r\n\t}\r\n.leaflet-control-layers-expanded {\r\n\tpadding: 6px 10px 6px 6px;\r\n\tcolor: #333;\r\n\tbackground: #fff;\r\n\t}\r\n.leaflet-control-layers-scrollbar {\r\n\toverflow-y: scroll;\r\n\toverflow-x: hidden;\r\n\tpadding-right: 5px;\r\n\t}\r\n.leaflet-control-layers-selector {\r\n\tmargin-top: 2px;\r\n\tposition: relative;\r\n\ttop: 1px;\r\n\t}\r\n.leaflet-control-layers label {\r\n\tdisplay: block;\r\n\tfont-size: 13px;\r\n\tfont-size: 1.08333em;\r\n\t}\r\n.leaflet-control-layers-separator {\r\n\theight: 0;\r\n\tborder-top: 1px solid #ddd;\r\n\tmargin: 5px -10px 5px -6px;\r\n\t}\r\n\r\n/* Default icon URLs */\r\n.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */\r\n\tbackground-image: url(images/marker-icon.png);\r\n\t}\r\n\r\n\r\n/* attribution and scale controls */\r\n\r\n.leaflet-container .leaflet-control-attribution {\r\n\tbackground: #fff;\r\n\tbackground: rgba(255, 255, 255, 0.8);\r\n\tmargin: 0;\r\n\t}\r\n.leaflet-control-attribution,\r\n.leaflet-control-scale-line {\r\n\tpadding: 0 5px;\r\n\tcolor: #333;\r\n\tline-height: 1.4;\r\n\t}\r\n.leaflet-control-attribution a {\r\n\ttext-decoration: none;\r\n\t}\r\n.leaflet-control-attribution a:hover,\r\n.leaflet-control-attribution a:focus {\r\n\ttext-decoration: underline;\r\n\t}\r\n.leaflet-attribution-flag {\r\n\tdisplay: inline !important;\r\n\tvertical-align: baseline !important;\r\n\twidth: 1em;\r\n\theight: 0.6669em;\r\n\t}\r\n.leaflet-left .leaflet-control-scale {\r\n\tmargin-left: 5px;\r\n\t}\r\n.leaflet-bottom .leaflet-control-scale {\r\n\tmargin-bottom: 5px;\r\n\t}\r\n.leaflet-control-scale-line {\r\n\tborder: 2px solid #777;\r\n\tborder-top: none;\r\n\tline-height: 1.1;\r\n\tpadding: 2px 5px 1px;\r\n\twhite-space: nowrap;\r\n\t-moz-box-sizing: border-box;\r\n\t box-sizing: border-box;\r\n\tbackground: rgba(255, 255, 255, 0.8);\r\n\ttext-shadow: 1px 1px #fff;\r\n\t}\r\n.leaflet-control-scale-line:not(:first-child) {\r\n\tborder-top: 2px solid #777;\r\n\tborder-bottom: none;\r\n\tmargin-top: -2px;\r\n\t}\r\n.leaflet-control-scale-line:not(:first-child):not(:last-child) {\r\n\tborder-bottom: 2px solid #777;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-attribution,\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tbox-shadow: none;\r\n\t}\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tborder: 2px solid rgba(0,0,0,0.2);\r\n\tbackground-clip: padding-box;\r\n\t}\r\n\r\n\r\n/* popup */\r\n\r\n.leaflet-popup {\r\n\tposition: absolute;\r\n\ttext-align: center;\r\n\tmargin-bottom: 20px;\r\n\t}\r\n.leaflet-popup-content-wrapper {\r\n\tpadding: 1px;\r\n\ttext-align: left;\r\n\tborder-radius: 12px;\r\n\t}\r\n.leaflet-popup-content {\r\n\tmargin: 13px 24px 13px 20px;\r\n\tline-height: 1.3;\r\n\tfont-size: 13px;\r\n\tfont-size: 1.08333em;\r\n\tmin-height: 1px;\r\n\t}\r\n.leaflet-popup-content p {\r\n\tmargin: 17px 0;\r\n\tmargin: 1.3em 0;\r\n\t}\r\n.leaflet-popup-tip-container {\r\n\twidth: 40px;\r\n\theight: 20px;\r\n\tposition: absolute;\r\n\tleft: 50%;\r\n\tmargin-top: -1px;\r\n\tmargin-left: -20px;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\t}\r\n.leaflet-popup-tip {\r\n\twidth: 17px;\r\n\theight: 17px;\r\n\tpadding: 1px;\r\n\r\n\tmargin: -10px auto 0;\r\n\tpointer-events: auto;\r\n\r\n\t-webkit-transform: rotate(45deg);\r\n\t -moz-transform: rotate(45deg);\r\n\t -ms-transform: rotate(45deg);\r\n\t transform: rotate(45deg);\r\n\t}\r\n.leaflet-popup-content-wrapper,\r\n.leaflet-popup-tip {\r\n\tbackground: white;\r\n\tcolor: #333;\r\n\tbox-shadow: 0 3px 14px rgba(0,0,0,0.4);\r\n\t}\r\n.leaflet-container a.leaflet-popup-close-button {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tborder: none;\r\n\ttext-align: center;\r\n\twidth: 24px;\r\n\theight: 24px;\r\n\tfont: 16px/24px Tahoma, Verdana, sans-serif;\r\n\tcolor: #757575;\r\n\ttext-decoration: none;\r\n\tbackground: transparent;\r\n\t}\r\n.leaflet-container a.leaflet-popup-close-button:hover,\r\n.leaflet-container a.leaflet-popup-close-button:focus {\r\n\tcolor: #585858;\r\n\t}\r\n.leaflet-popup-scrolled {\r\n\toverflow: auto;\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-popup-content-wrapper {\r\n\t-ms-zoom: 1;\r\n\t}\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\twidth: 24px;\r\n\tmargin: 0 auto;\r\n\r\n\t-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";\r\n\tfilter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-control-zoom,\r\n.leaflet-oldie .leaflet-control-layers,\r\n.leaflet-oldie .leaflet-popup-content-wrapper,\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\tborder: 1px solid #999;\r\n\t}\r\n\r\n\r\n/* div icon */\r\n\r\n.leaflet-div-icon {\r\n\tbackground: #fff;\r\n\tborder: 1px solid #666;\r\n\t}\r\n\r\n\r\n/* Tooltip */\r\n/* Base styles for the element that has a tooltip */\r\n.leaflet-tooltip {\r\n\tposition: absolute;\r\n\tpadding: 6px;\r\n\tbackground-color: #fff;\r\n\tborder: 1px solid #fff;\r\n\tborder-radius: 3px;\r\n\tcolor: #222;\r\n\twhite-space: nowrap;\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none;\r\n\tpointer-events: none;\r\n\tbox-shadow: 0 1px 3px rgba(0,0,0,0.4);\r\n\t}\r\n.leaflet-tooltip.leaflet-interactive {\r\n\tcursor: pointer;\r\n\tpointer-events: auto;\r\n\t}\r\n.leaflet-tooltip-top:before,\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\tposition: absolute;\r\n\tpointer-events: none;\r\n\tborder: 6px solid transparent;\r\n\tbackground: transparent;\r\n\tcontent: "";\r\n\t}\r\n\r\n/* Directions */\r\n\r\n.leaflet-tooltip-bottom {\r\n\tmargin-top: 6px;\r\n}\r\n.leaflet-tooltip-top {\r\n\tmargin-top: -6px;\r\n}\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-top:before {\r\n\tleft: 50%;\r\n\tmargin-left: -6px;\r\n\t}\r\n.leaflet-tooltip-top:before {\r\n\tbottom: 0;\r\n\tmargin-bottom: -12px;\r\n\tborder-top-color: #fff;\r\n\t}\r\n.leaflet-tooltip-bottom:before {\r\n\ttop: 0;\r\n\tmargin-top: -12px;\r\n\tmargin-left: -6px;\r\n\tborder-bottom-color: #fff;\r\n\t}\r\n.leaflet-tooltip-left {\r\n\tmargin-left: -6px;\r\n}\r\n.leaflet-tooltip-right {\r\n\tmargin-left: 6px;\r\n}\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\ttop: 50%;\r\n\tmargin-top: -6px;\r\n\t}\r\n.leaflet-tooltip-left:before {\r\n\tright: 0;\r\n\tmargin-right: -12px;\r\n\tborder-left-color: #fff;\r\n\t}\r\n.leaflet-tooltip-right:before {\r\n\tleft: 0;\r\n\tmargin-left: -12px;\r\n\tborder-right-color: #fff;\r\n\t}\r\n\r\n/* Printing */\r\n\r\n@media print {\r\n\t/* Prevent printers from removing background-images of controls. */\r\n\t.leaflet-control {\r\n\t\t-webkit-print-color-adjust: exact;\r\n\t\tprint-color-adjust: exact;\r\n\t\t}\r\n\t}\r\n'],sourceRoot:""}]);const g=d},41099:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e instanceof Object&&!Array.isArray(e)}},41113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},41132:(e,t,n)=>{var r=n(5901),i=n(99291),o=n(17122),a=n(41869);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},41180:()=>{var e,t,n;e=L.Marker.prototype._initIcon,t=L.Marker.prototype._setPos,n="msTransform"===L.DomUtil.TRANSFORM,L.Marker.addInitHook((function(){var e=this.options.icon&&this.options.icon.options&&this.options.icon.options.iconAnchor;e&&(e=e[0]+"px "+e[1]+"px"),this.options.rotationOrigin=this.options.rotationOrigin||e||"center bottom",this.options.rotationAngle=this.options.rotationAngle||0,this.on("drag",(function(e){e.target._applyRotation()}))})),L.Marker.include({_initIcon:function(){e.call(this)},_setPos:function(e){t.call(this,e),this._applyRotation()},_applyRotation:function(){this.options.rotationAngle&&(this._icon.style[L.DomUtil.TRANSFORM+"Origin"]=this.options.rotationOrigin,n?this._icon.style[L.DomUtil.TRANSFORM]="rotate("+this.options.rotationAngle+"deg)":this._icon.style[L.DomUtil.TRANSFORM]+=" rotateZ("+this.options.rotationAngle+"deg)")},setRotationAngle:function(e){return this.options.rotationAngle=e,this.update(),this},setRotationOrigin:function(e){return this.options.rotationOrigin=e,this.update(),this}})},41237:e=>{"use strict";e.exports=EvalError},41266:(e,t,n)=>{"use strict";var r=n(28854),i=n(10734),o=[].slice,a=["keyword","gray","hex"],s={};Object.keys(i).forEach((function(e){s[o.call(i[e].labels).sort().join("")]=e}));var l={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in a&&(t=null),t&&!(t in i))throw new Error("Unknown model: "+t);var n,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var h=r.get(e);if(null===h)throw new Error("Unable to parse color from string: "+e);this.model=h.model,u=i[this.model].channels,this.color=h.value.slice(0,u),this.valpha="number"==typeof h.value[u]?h.value[u]:1}else if(e.length){this.model=t||"rgb",u=i[this.model].channels;var f=o.call(e,0,u);this.color=d(f,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var p=Object.keys(e);"alpha"in e&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var m=p.sort().join("");if(!(m in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[m];var g=i[this.model].labels,y=[];for(n=0;nn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),r=this.rgb(),i=void 0===t?.5:t,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return c.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}},Object.keys(i).forEach((function(e){if(-1===a.indexOf(e)){var t=i[e].channels;c.prototype[e]=function(){if(this.model===e)return new c(this);if(arguments.length)return new c(arguments,e);var n,r="number"==typeof arguments[t]?t:this.valpha;return new c((n=i[this.model][e].raw(this.color),Array.isArray(n)?n:[n]).concat(r),e)},c[e]=function(n){return"number"==typeof n&&(n=d(o.call(arguments),t)),new c(n,e)}}})),e.exports=c},41333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},41869:e=>{e.exports=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.exports.__esModule=!0,e.exports.default=e.exports},42223:e=>{"use strict";function t(e,t){this._state=e,this._rawResults={};var n=this;e.params.forEach((function(e){var r=e.$$id;n[r]=t[r],n._rawResults[r]=t[r]}))}t.prototype={constructor:t},e.exports=t},42306:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseAnimationBuilder:()=>jd,BounceIn:()=>Fd,BounceInDown:()=>_d,BounceInLeft:()=>Hd,BounceInRight:()=>Gd,BounceInUp:()=>Vd,BounceOut:()=>Wd,BounceOutDown:()=>Xd,BounceOutLeft:()=>$d,BounceOutRight:()=>tf,BounceOutUp:()=>Zd,ColorSpace:()=>Ed,ComplexAnimationBuilder:()=>Bd,CurvedTransition:()=>Tf,Easing:()=>si,EntryExitTransition:()=>Sf,Extrapolate:()=>id,Extrapolation:()=>Gh,FadeIn:()=>rf,FadeInDown:()=>df,FadeInLeft:()=>lf,FadeInRight:()=>af,FadeInUp:()=>uf,FadeOut:()=>pf,FadeOutDown:()=>wf,FadeOutLeft:()=>vf,FadeOutRight:()=>gf,FadeOutUp:()=>Af,FadingTransition:()=>Of,FlipInEasyX:()=>_f,FlipInEasyY:()=>Vf,FlipInXDown:()=>Bf,FlipInXUp:()=>Mf,FlipInYLeft:()=>Df,FlipInYRight:()=>Ff,FlipOutEasyX:()=>Zf,FlipOutEasyY:()=>$f,FlipOutXDown:()=>Wf,FlipOutXUp:()=>Hf,FlipOutYLeft:()=>Gf,FlipOutYRight:()=>Xf,IOSReferenceFrame:()=>C,InterfaceOrientation:()=>S,JumpingTransition:()=>tp,KeyboardState:()=>E,Keyframe:()=>Ls,Layout:()=>ip,LayoutAnimationConfig:()=>Jo,LightSpeedInLeft:()=>lp,LightSpeedInRight:()=>ap,LightSpeedOutLeft:()=>dp,LightSpeedOutRight:()=>up,LinearTransition:()=>rp,PerformanceMonitor:()=>eh,PinwheelIn:()=>pp,PinwheelOut:()=>gp,ReanimatedLogLevel:()=>R,ReduceMotion:()=>k,ReducedMotionConfig:()=>nh,RollInLeft:()=>vp,RollInRight:()=>Ap,RollOutLeft:()=>wp,RollOutRight:()=>Sp,RotateInDownLeft:()=>kp,RotateInDownRight:()=>Ip,RotateInUpLeft:()=>Rp,RotateInUpRight:()=>Pp,RotateOutDownLeft:()=>jp,RotateOutDownRight:()=>Lp,RotateOutUpLeft:()=>Np,RotateOutUpRight:()=>zp,ScreenTransition:()=>ty,SensorType:()=>w,SequencedTransition:()=>Up,SharedTransition:()=>aa,SharedTransitionType:()=>b,SlideInDown:()=>em,SlideInLeft:()=>Yp,SlideInRight:()=>qp,SlideInUp:()=>Kp,SlideOutDown:()=>im,SlideOutLeft:()=>Jp,SlideOutRight:()=>Qp,SlideOutUp:()=>nm,StretchInX:()=>am,StretchInY:()=>lm,StretchOutX:()=>um,StretchOutY:()=>dm,ZoomIn:()=>pm,ZoomInDown:()=>Sm,ZoomInEasyDown:()=>Im,ZoomInEasyUp:()=>km,ZoomInLeft:()=>vm,ZoomInRight:()=>Am,ZoomInRotate:()=>gm,ZoomInUp:()=>wm,ZoomOut:()=>Rm,ZoomOutDown:()=>zm,ZoomOutEasyDown:()=>qm,ZoomOutEasyUp:()=>Um,ZoomOutLeft:()=>jm,ZoomOutRight:()=>Lm,ZoomOutRotate:()=>Pm,ZoomOutUp:()=>Nm,advanceAnimationByFrame:()=>Od,advanceAnimationByTime:()=>Id,cancelAnimation:()=>Eo,clamp:()=>rd,combineTransition:()=>Ef,configureReanimatedLogger:()=>na,convertToRGBA:()=>Gn,createAnimatedPropAdapter:()=>$m,createWorkletRuntime:()=>Tt,default:()=>ny,defineAnimation:()=>xo,dispatchCommand:()=>Gm,enableLayoutAnimations:()=>Gt,executeOnUIRuntimeSync:()=>je,finishScreenTransition:()=>Mg,getAnimatedStyle:()=>Md,getRelativeCoords:()=>Qm,getUseOfValueInStyleWarning:()=>Km,getViewProp:()=>Lt,interpolate:()=>td,interpolateColor:()=>Sd,isColor:()=>_n,isConfigured:()=>Bt,isReanimated3:()=>jt,isSharedValue:()=>it,isWorkletFunction:()=>x,makeMutable:()=>et,makeShareableCloneRecursive:()=>fe,measure:()=>Ym,processColor:()=>Vn,runOnJS:()=>ze,runOnRuntime:()=>Mt,runOnUI:()=>Pe,scrollTo:()=>Xm,setGestureState:()=>Jm,setNativeProps:()=>Zm,setUpTests:()=>Rd,startMapper:()=>ct,startScreenTransition:()=>Tg,stopMapper:()=>ht,useAnimatedGestureHandler:()=>ah,useAnimatedKeyboard:()=>ch,useAnimatedProps:()=>Du,useAnimatedReaction:()=>hh,useAnimatedRef:()=>lc,useAnimatedScrollHandler:()=>fh,useAnimatedSensor:()=>xh,useAnimatedStyle:()=>Mu,useComposedEventHandler:()=>Ch,useDerivedValue:()=>Eh,useEvent:()=>cc,useFrameCallback:()=>zu,useHandler:()=>rh,useInterpolateConfig:()=>kd,useReducedMotion:()=>Th,useScrollViewOffset:()=>hc,useSharedValue:()=>uc,useWorkletCallback:()=>Ih,withClamp:()=>Ac,withDecay:()=>Dc,withDelay:()=>ks,withReanimatedTimer:()=>Td,withRepeat:()=>Lc,withSequence:()=>Rs,withSpring:()=>nu,withTiming:()=>Io});var r={};n.r(r),n.d(r,{FlatList:()=>tc,Image:()=>nc,ScrollView:()=>gc,Text:()=>yc,View:()=>Kl,addWhitelistedNativeProps:()=>ea,addWhitelistedUIProps:()=>ta,createAnimatedComponent:()=>Xl});var i=n(96540),o=n(57061),a=n(47744);const s={code:"function ReanimatedError_reactNativeReanimated_errorsJs1(message){const prefix='[Reanimated]';const errorInstance=new Error(message?prefix+\" \"+message:prefix);errorInstance.name='ReanimatedError';return errorInstance;}"},l=function(){const e=function(e){const t="[Reanimated]",n=new Error(e?`${t} ${e}`:t);return n.name="ReanimatedError",n};return e.__closure={},e.__workletHash=3400383653491,e.__initData=s,e}(),c={code:"function registerReanimatedError_reactNativeReanimated_errorsJs2(){const{ReanimatedErrorConstructor}=this.__closure;if(!_WORKLET){throw new Error('[Reanimated] registerReanimatedError() must be called on Worklet runtime');}global.ReanimatedError=ReanimatedErrorConstructor;}"},u=function(){const e=function(){if(!_WORKLET)throw new Error("[Reanimated] registerReanimatedError() must be called on Worklet runtime");n.g.ReanimatedError=l};return e.__closure={ReanimatedErrorConstructor:l},e.__workletHash=0xc878b3e5252,e.__initData=c,e}(),h=new Map;function d({message:e,stack:t}){const r=new Error;r.message=e,r.stack=t?function(e){const t=e.match(/worklet_(\d+):(\d+):(\d+)/g);let n=e;return t?.forEach((e=>{const[,t,r,i]=e.split(/:|_/).map(Number),o=h.get(t);if(!o)return;const[a,s,l]=o,[c,u,d]=function(e){const t=e.stack?.split("\n")?.[0];if(t){const e=/@([^@]+):(\d+):(\d+)/.exec(t);if(e){const[,t,n,r]=e;return[t,Number(n),Number(r)]}}return["unknown",0,0]}(a),f=r+u+s,p=i+d+l;n=n.replace(e,`${c}:${f}:${p}`)})),n}(t):void 0,r.name="ReanimatedError",r.jsEngine="reanimated",n.g.ErrorUtils.reportFatalError(r)}function f(){return!(n.g.nativeCallSyncHook&&!n.g.__REMOTEDEV__||n.g.RN$Bridgeless)}function p(){return f()||!0}function m(){return!!n.g._IS_FABRIC}function g(){return i.version.startsWith("19.")}function y(){return"undefined"!=typeof window}let v=function(e){return e[e.ENTERING=1]="ENTERING",e[e.EXITING=2]="EXITING",e[e.LAYOUT=3]="LAYOUT",e[e.SHARED_ELEMENT_TRANSITION=4]="SHARED_ELEMENT_TRANSITION",e[e.SHARED_ELEMENT_TRANSITION_PROGRESS=5]="SHARED_ELEMENT_TRANSITION_PROGRESS",e}({}),b=function(e){return e.ANIMATION="animation",e.PROGRESS_ANIMATION="progressAnimation",e}({});const A={code:"function isWorkletFunction_reactNativeReanimated_commonTypesJs1(value){return(typeof value==='function'&&!!value.__workletHash);}"},x=function(){const e=function(e){return"function"==typeof e&&!!e.__workletHash};return e.__closure={},e.__workletHash=0xba7328596d5,e.__initData=A,e}();let w=function(e){return e[e.ACCELEROMETER=1]="ACCELEROMETER",e[e.GYROSCOPE=2]="GYROSCOPE",e[e.GRAVITY=3]="GRAVITY",e[e.MAGNETIC_FIELD=4]="MAGNETIC_FIELD",e[e.ROTATION=5]="ROTATION",e}({}),C=function(e){return e[e.XArbitraryZVertical=0]="XArbitraryZVertical",e[e.XArbitraryCorrectedZVertical=1]="XArbitraryCorrectedZVertical",e[e.XMagneticNorthZVertical=2]="XMagneticNorthZVertical",e[e.XTrueNorthZVertical=3]="XTrueNorthZVertical",e[e.Auto=4]="Auto",e}({}),S=function(e){return e[e.ROTATION_0=0]="ROTATION_0",e[e.ROTATION_90=90]="ROTATION_90",e[e.ROTATION_180=180]="ROTATION_180",e[e.ROTATION_270=270]="ROTATION_270",e}({}),E=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.OPENING=1]="OPENING",e[e.OPEN=2]="OPEN",e[e.CLOSING=3]="CLOSING",e[e.CLOSED=4]="CLOSED",e}({}),k=function(e){return e.System="system",e.Always="always",e.Never="never",e}({});const T=n(52338).A,I=T?.addLog?.bind(T)??(()=>{}),O="If you don't want to see this message, you can disable the `strict` mode. Refer to:\nhttps://docs.swmansion.com/react-native-reanimated/docs/debugging/logger-configuration for more details.";let R=function(e){return e[e.warn=1]="warn",e[e.error=2]="error",e}({});const M={code:"function logToConsole_reactNativeReanimated_loggerJs1(data){switch(data.level){case'warn':console.warn(data.message.content);break;case'error':case'fatal':case'syntax':console.error(data.message.content);break;}}"},P=function(){const e=function(e){switch(e.level){case"warn":console.warn(e.message.content);break;case"error":case"fatal":case"syntax":console.error(e.message.content)}};return e.__closure={},e.__workletHash=0xdfcbff100a4,e.__initData=M,e}(),D={logFunction:P,level:R.warn,strict:!0},j={code:'function formatMessage_reactNativeReanimated_loggerJs2(message){return"[Reanimated] "+message;}'},B=function(){const e=function(e){return`[Reanimated] ${e}`};return e.__closure={},e.__workletHash=0x99bb31b9469,e.__initData=j,e}(),L={code:"function createLog_reactNativeReanimated_loggerJs3(level,message){const{formatMessage}=this.__closure;const formattedMessage=formatMessage(message);return{level:level,message:{content:formattedMessage,substitutions:[]},category:formattedMessage,componentStack:[],componentStackType:null,stack:new Error().stack};}"},F=function(){const e=function(e,t){const n=B(t);return{level:e,message:{content:n,substitutions:[]},category:n,componentStack:[],componentStackType:null,stack:(new Error).stack}};return e.__closure={formatMessage:B},e.__workletHash=2180930896482,e.__initData=L,e}();function N(e){I(e),P(e)}const _={code:"function registerLoggerConfig_reactNativeReanimated_loggerJs4(config){global.__reanimatedLoggerConfig=config;}"},z=function(){const e=function(e){n.g.__reanimatedLoggerConfig=e};return e.__closure={},e.__workletHash=0xb134f1a52b1,e.__initData=_,e}(),V={code:"function replaceLoggerImplementation_reactNativeReanimated_loggerJs5(logFunction){const{registerLoggerConfig}=this.__closure;registerLoggerConfig({...global.__reanimatedLoggerConfig,logFunction:logFunction});}"},U=function(){const e=function(e){z(Object.assign({},n.g.__reanimatedLoggerConfig,{logFunction:e}))};return e.__closure={registerLoggerConfig:z},e.__workletHash=0xf63f4142515,e.__initData=V,e}(),H={code:"function updateLoggerConfig_reactNativeReanimated_loggerJs6(options){const{registerLoggerConfig,DEFAULT_LOGGER_CONFIG}=this.__closure;var _options$level,_options$strict;registerLoggerConfig({...global.__reanimatedLoggerConfig,level:(_options$level=options===null||options===void 0?void 0:options.level)!==null&&_options$level!==void 0?_options$level:DEFAULT_LOGGER_CONFIG.level,strict:(_options$strict=options===null||options===void 0?void 0:options.strict)!==null&&_options$strict!==void 0?_options$strict:DEFAULT_LOGGER_CONFIG.strict});}"},q=function(){const e=function(e){z(Object.assign({},n.g.__reanimatedLoggerConfig,{level:e?.level??D.level,strict:e?.strict??D.strict}))};return e.__closure={registerLoggerConfig:z,DEFAULT_LOGGER_CONFIG:D},e.__workletHash=2984772376773,e.__initData=H,e}(),G={code:'function handleLog_reactNativeReanimated_loggerJs7(level,message,options){const{LogLevel,DOCS_REFERENCE,createLog}=this.__closure;const config=global.__reanimatedLoggerConfig;if(options.strict&&!config.strict||LogLevel[level]e(performance.now())),0)};let K=function(e){return e.WEB_IOS="web iOS",e.WEB_ANDROID="web Android",e.WEB="web",e.UNKNOWN="unknown",e}({});const $=new class{#e=J;nextSensorId=0;sensors=new Map;platform=void 0;scheduleOnUI(e){Z(e)}createWorkletRuntime(e,t){throw new l("createWorkletRuntime is not available in JSReanimated.")}scheduleOnRuntime(){throw new l("scheduleOnRuntime is not available in JSReanimated.")}registerEventHandler(e,t,n){throw new l("registerEventHandler is not available in JSReanimated.")}unregisterEventHandler(e){throw new l("unregisterEventHandler is not available in JSReanimated.")}enableLayoutAnimations(){X.warn("Layout Animations are not supported on web yet.")}configureLayoutAnimationBatch(){}setShouldAnimateExitingForTag(){}registerSensor(e,t,n,r){if(!y())return-1;if(void 0===this.platform&&this.detectPlatform(),!(this.getSensorName(e)in window))return X.warn("Sensor is not available."+("https:"!==location.protocol?" Make sure you use secure origin with `npx expo start --web --https`.":"")+(this.platform===K.WEB_IOS?" For iOS web, you will also have to also grant permission in the browser: https://dev.to/li/how-to-requestpermission-for-devicemotion-and-deviceorientation-events-in-ios-13-46g2.":"")),-1;void 0===this.platform&&this.detectPlatform();const i=this.initializeSensor(e,t);return i.addEventListener("reading",this.getSensorCallback(i,e,r)),i.start(),this.sensors.set(this.nextSensorId,i),this.nextSensorId++}getSensorCallback=(e,t,n)=>{switch(t){case w.ACCELEROMETER:case w.GRAVITY:return()=>{let{x:t,y:r,z:i}=e;this.platform===K.WEB_ANDROID&&([t,r,i]=[-t,-r,-i]),n({x:t,y:r,z:i,interfaceOrientation:0})};case w.GYROSCOPE:case w.MAGNETIC_FIELD:return()=>{const{x:t,y:r,z:i}=e;n({x:t,y:r,z:i,interfaceOrientation:0})};case w.ROTATION:return()=>{let[t,r,i,o]=e.quaternion;this.platform===K.WEB_ANDROID&&([i,o]=[o,-i]);const a=-Math.atan2(2*(i*o+t*r),t*t-r*r-i*i+o*o),s=Math.sin(-2*(r*o-t*i)),l=-Math.atan2(2*(r*i+t*o),t*t+r*r-i*i-o*o);n({qw:t,qx:r,qy:i,qz:o,yaw:a,pitch:s,roll:l,interfaceOrientation:0})}}};unregisterSensor(e){const t=this.sensors.get(e);void 0!==t&&(t.stop(),this.sensors.delete(e))}subscribeForKeyboardEvents(e){return X.warn("useAnimatedKeyboard is not available on web yet."),-1}unsubscribeFromKeyboardEvents(e){}initializeSensor(e,t){const n=t<=0?{referenceFrame:"device"}:{frequency:1e3/t};switch(e){case w.ACCELEROMETER:return new window.Accelerometer(n);case w.GYROSCOPE:return new window.Gyroscope(n);case w.GRAVITY:return new window.GravitySensor(n);case w.MAGNETIC_FIELD:return new window.Magnetometer(n);case w.ROTATION:return new window.AbsoluteOrientationSensor(n)}}getSensorName(e){switch(e){case w.ACCELEROMETER:return"Accelerometer";case w.GRAVITY:return"GravitySensor";case w.GYROSCOPE:return"Gyroscope";case w.MAGNETIC_FIELD:return"Magnetometer";case w.ROTATION:return"AbsoluteOrientationSensor"}}detectPlatform(){const e=navigator.userAgent||navigator.vendor||window.opera;void 0===e?this.platform=K.UNKNOWN:/iPad|iPhone|iPod/.test(e)?this.platform=K.WEB_IOS:/android/i.test(e)?this.platform=K.WEB_ANDROID:this.platform=K.WEB}getViewProp(e,t,n,r){throw new l("getViewProp is not available in JSReanimated.")}configureProps(){throw new l("configureProps is not available in JSReanimated.")}executeOnUIRuntimeSync(e){throw new l("`executeOnUIRuntimeSync` is not available in JSReanimated.")}markNodeAsRemovable(e){throw new l("markNodeAsRemovable is not available in JSReanimated.")}unmarkNodeAsRemovable(e){throw new l("unmarkNodeAsRemovable is not available in JSReanimated.")}},ee=p(),te=Symbol("shareable flag"),ne=ee?null:new WeakMap,re=ee?{set(){},get:()=>null}:{set(e,t){ne.set(e,t||te)},get:ne.get.bind(ne)},ie=p(),oe="REANIMATED_MAGIC_KEY",ae={code:"function isHostObject_reactNativeReanimated_shareablesJs1(value){const{MAGIC_KEY}=this.__closure;return MAGIC_KEY in value;}"},se=function(){const e=function(e){return oe in e};return e.__closure={MAGIC_KEY:oe},e.__workletHash=6235723271315,e.__initData=ae,e}();function le(e){return Object.getPrototypeOf(e)===Object.prototype}const ce={code:"function reactNativeReanimated_shareablesJs2(){return new Proxy({},{get:function(_,prop){if(prop==='_isReanimatedSharedValue'||prop==='__remoteFunction'){return false;}throw new ReanimatedError(\"Trying to access property `\"+String(prop)+\"` of an object which cannot be sent to the UI runtime.\");},set:function(){throw new ReanimatedError('Trying to write to an object which cannot be sent to the UI runtime.');}});}"},ue={__init:function(){const e=function(){return new Proxy({},{get:(e,t)=>{if("_isReanimatedSharedValue"===t||"__remoteFunction"===t)return!1;throw new l(`Trying to access property \`${String(t)}\` of an object which cannot be sent to the UI runtime.`)},set:()=>{throw new l("Trying to write to an object which cannot be sent to the UI runtime.")}})};return e.__closure={},e.__workletHash=0xdb6a5808d38,e.__initData=ce,e}()},he=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array","DataView"];let de;const fe=ie?function(e){return e}:function(e,t=!1,r=0){!function(e,t){if(t>=30){if(30===t)de=e;else if(e===de)throw new l("Trying to convert a cyclic object to a shareable. This is not supported.")}else de=void 0}(e,r);const i="function"==typeof e;if("object"!=typeof e&&!i||null===e)return function(e,t){return J.makeShareableClone(e,t)}(e,t);const o=function(e){const t=re.get(e);return t===te?e:t}(e);return void 0!==o?o:Array.isArray(e)?function(e,t,n){const r=e.map((e=>fe(e,t,n+1))),i=J.makeShareableClone(r,t,e);return re.set(e,i),re.set(i),i}(e,t,r):i&&!x(e)?function(e,t){const n=J.makeShareableClone(e,t,e);return re.set(e,n),re.set(n),n}(e,t):se(e)?function(e,t){const n=J.makeShareableClone(e,t,e);return re.set(e,n),re.set(n),n}(e,t):le(e)&&e.__workletContextObjectFactory?function(e){const t=e.__workletContextObjectFactory,n=fe({__init:function(){const e=function(){return t()};return e.__closure={workletContextObjectFactory:t},e.__workletHash=0xbbe7003bba7,e.__initData=pe,e}()});return re.set(e,n),n}(e):(le(e)||i)&&x(e)?function(e,t,n){e.__stackDetails&&delete e.__stackDetails;const r={};r.__initData=fe(e.__initData,!0,n+1);for(const[i,o]of Object.entries(e))"__initData"===i&&void 0!==r.__initData||(r[i]=fe(o,t,n+1));const i=J.makeShareableClone(r,!0,e);return re.set(e,i),re.set(i),i}(e,t,r):le(e)||i?function(e,t,n){const r={};for(const[i,o]of Object.entries(e))"__initData"===i&&void 0!==r.__initData||(r[i]=fe(o,t,n+1));const i=J.makeShareableClone(r,t,e);return re.set(e,i),re.set(i),i}(e,t,r):e instanceof RegExp?function(e){const t=e.source,n=e.flags,r=fe({__init:function(){const e=function(){return new RegExp(t,n)};return e.__closure={pattern:t,flags:n},e.__workletHash=5248003660769,e.__initData=me,e}()});return re.set(e,r),r}(e):e instanceof Error?function(e){const{name:t,message:n,stack:r}=e,i=fe({__init:function(){const e=function(){const e=new Error;return e.name=t,e.message=n,e.stack=r,e};return e.__closure={name:t,message:n,stack:r},e.__workletHash=0xbc18306e654,e.__initData=ge,e}()});return re.set(e,i),i}(e):e instanceof ArrayBuffer?function(e,t){const n=J.makeShareableClone(e,t,e);return re.set(e,n),re.set(n),n}(e,t):ArrayBuffer.isView(e)?function(e){const t=e.buffer,r=e.constructor.name,i=fe({__init:function(){const e=function(){if(!he.includes(r))throw new l(`[Reanimated] Invalid array view name \`${r}\`.`);const e=n.g[r];if(void 0===e)throw new l(`[Reanimated] Constructor for \`${r}\` not found.`);return new e(t)};return e.__closure={VALID_ARRAY_VIEWS_NAMES:he,typeName:r,buffer:t},e.__workletHash=4924230242707,e.__initData=ye,e}()});return re.set(e,i),i}(e):function(e){const t=fe(ue);return re.set(e,t),t}(e)},pe={code:"function reactNativeReanimated_shareablesJs3(){const{workletContextObjectFactory}=this.__closure;return workletContextObjectFactory();}"},me={code:"function reactNativeReanimated_shareablesJs4(){const{pattern,flags}=this.__closure;return new RegExp(pattern,flags);}"},ge={code:"function reactNativeReanimated_shareablesJs5(){const{name,message,stack}=this.__closure;const error=new Error();error.name=name;error.message=message;error.stack=stack;return error;}"},ye={code:'function reactNativeReanimated_shareablesJs6(){const{VALID_ARRAY_VIEWS_NAMES,typeName,buffer}=this.__closure;if(!VALID_ARRAY_VIEWS_NAMES.includes(typeName)){throw new ReanimatedError("[Reanimated] Invalid array view name `"+typeName+"`.");}const constructor=global[typeName];if(constructor===undefined){throw new ReanimatedError("[Reanimated] Constructor for `"+typeName+"` not found.");}return new constructor(buffer);}'},ve={code:"function isRemoteFunction_reactNativeReanimated_shareablesJs7(value){return!!value.__remoteFunction;}"},be=function(){const e=function(e){return!!e.__remoteFunction};return e.__closure={},e.__workletHash=7140175189813,e.__initData=ve,e}();const Ae={code:"function makeShareableCloneOnUIRecursive_reactNativeReanimated_shareablesJs8(value){const{SHOULD_BE_USE_WEB,isHostObject,isRemoteFunction}=this.__closure;if(SHOULD_BE_USE_WEB){return value;}function cloneRecursive(value){if(typeof value==='object'&&value!==null||typeof value==='function'){if(isHostObject(value)){return global._makeShareableClone(value,undefined);}if(isRemoteFunction(value)){return value.__remoteFunction;}if(Array.isArray(value)){return global._makeShareableClone(value.map(cloneRecursive),undefined);}const toAdapt={};for(const[key,element]of Object.entries(value)){toAdapt[key]=cloneRecursive(element);}return global._makeShareableClone(toAdapt,value);}return global._makeShareableClone(value,undefined);}return cloneRecursive(value);}"},xe=function(){const e=function(e){return ie?e:function e(t){if("object"==typeof t&&null!==t||"function"==typeof t){if(se(t))return n.g._makeShareableClone(t,void 0);if(be(t))return t.__remoteFunction;if(Array.isArray(t))return n.g._makeShareableClone(t.map(e),void 0);const r={};for(const[n,i]of Object.entries(t))r[n]=e(i);return n.g._makeShareableClone(r,t)}return n.g._makeShareableClone(t,void 0)}(e)};return e.__closure={SHOULD_BE_USE_WEB:ie,isHostObject:se,isRemoteFunction:be},e.__workletHash=4829768171363,e.__initData=Ae,e}(),we={code:"function reactNativeReanimated_shareablesJs9(){const{value}=this.__closure;return value;}"},Ce=ie?function(e){return e}:function(e){if(re.get(e))return e;const t=fe({__init:function(){const t=function(){return e};return t.__closure={value:e},t.__workletHash=3766025653260,t.__initData=we,t}()});return re.set(e,t),e},Se=p();let Ee=[];const ke={code:"function setupMicrotasks_reactNativeReanimated_threadsJs1(){let microtasksQueue=[];let isExecutingMicrotasksQueue=false;global.queueMicrotask=function(callback){microtasksQueue.push(callback);};global.__callMicrotasks=function(){if(isExecutingMicrotasksQueue){return;}try{isExecutingMicrotasksQueue=true;for(let index=0;index{e.push(t)},n.g.__callMicrotasks=()=>{if(!t)try{t=!0;for(let t=0;t{}:Ie,Re={code:"function runOnUI_reactNativeReanimated_threadsJs3(worklet){const{__DEV__,SHOULD_BE_USE_WEB,isWorkletFunction,IS_JEST,ReanimatedModule,makeShareableCloneRecursive,callMicrotasks}=this.__closure;if(__DEV__&&!SHOULD_BE_USE_WEB&&_WORKLET){throw new ReanimatedError('`runOnUI` cannot be called on the UI runtime. Please call the function synchronously or use `queueMicrotask` or `requestAnimationFrame` instead.');}if(__DEV__&&!SHOULD_BE_USE_WEB&&!isWorkletFunction(worklet)){throw new ReanimatedError('`runOnUI` can only be used with worklets.');}return function(...args){if(IS_JEST){ReanimatedModule.scheduleOnUI(makeShareableCloneRecursive(function(){'worklet';worklet(...args);}));return;}if(__DEV__){makeShareableCloneRecursive(worklet);makeShareableCloneRecursive(args);}_runOnUIQueue.push([worklet,args]);if(_runOnUIQueue.length===1){queueMicrotask(function(){const queue=_runOnUIQueue;_runOnUIQueue=[];ReanimatedModule.scheduleOnUI(makeShareableCloneRecursive(function(){'worklet';queue.forEach(function([worklet,args]){worklet(...args);});callMicrotasks();}));});}};}"},Me={code:"function reactNativeReanimated_threadsJs5(){const{queue,callMicrotasks}=this.__closure;queue.forEach(function([worklet,args]){worklet(...args);});callMicrotasks();}"},Pe=function(){const e=function(e){return(...t)=>{Ee.push([e,t]),1===Ee.length&&queueMicrotask((()=>{const e=Ee;Ee=[],$.scheduleOnUI(fe(function(){const t=function(){e.forEach((([e,t])=>{e(...t)})),Oe()};return t.__closure={queue:e,callMicrotasks:Oe},t.__workletHash=4355303211381,t.__initData=Me,t}()))}))}};return e.__closure={__DEV__:!1,SHOULD_BE_USE_WEB:Se,isWorkletFunction:x,IS_JEST:false,ReanimatedModule:$,makeShareableCloneRecursive:fe,callMicrotasks:Oe},e.__workletHash=4445380642666,e.__initData=Re,e}(),De={code:"function reactNativeReanimated_threadsJs6(){const{worklet,args,makeShareableCloneOnUIRecursive}=this.__closure;const result=worklet(...args);return makeShareableCloneOnUIRecursive(result);}"};function je(e){return(...t)=>$.executeOnUIRuntimeSync(fe(function(){const n=function(){const n=e(...t);return xe(n)};return n.__closure={worklet:e,args:t,makeShareableCloneOnUIRecursive:xe},n.__workletHash=6795603396775,n.__initData=De,n}()))}const Be={code:"function runOnUIImmediately_reactNativeReanimated_threadsJs7(worklet){const{__DEV__,SHOULD_BE_USE_WEB,isWorkletFunction,ReanimatedModule,makeShareableCloneRecursive}=this.__closure;if(__DEV__&&!SHOULD_BE_USE_WEB&&_WORKLET){throw new ReanimatedError('`runOnUIImmediately` cannot be called on the UI runtime. Please call the function synchronously or use `queueMicrotask` or `requestAnimationFrame` instead.');}if(__DEV__&&!SHOULD_BE_USE_WEB&&!isWorkletFunction(worklet)){throw new ReanimatedError('`runOnUIImmediately` can only be used with worklets.');}return function(...args){ReanimatedModule.scheduleOnUI(makeShareableCloneRecursive(function(){'worklet';worklet(...args);}));};}"},Le={code:"function reactNativeReanimated_threadsJs8(){const{worklet,args}=this.__closure;worklet(...args);}"},Fe=function(){const e=function(e){return(...t)=>{$.scheduleOnUI(fe(function(){const n=function(){e(...t)};return n.__closure={worklet:e,args:t},n.__workletHash=0xa007ba6f8ed,n.__initData=Le,n}()))}};return e.__closure={__DEV__:!1,SHOULD_BE_USE_WEB:Se,isWorkletFunction:x,ReanimatedModule:$,makeShareableCloneRecursive:fe},e.__workletHash=8122972075976,e.__initData=Be,e}();function Ne(e,...t){e(...t)}const _e={code:"function runOnJS_reactNativeReanimated_threadsJs9(fun){const runOnJS_reactNativeReanimated_threadsJs9=this._recur;const{SHOULD_BE_USE_WEB,isWorkletFunction,runWorkletOnJS,makeShareableCloneOnUIRecursive}=this.__closure;if(SHOULD_BE_USE_WEB||!_WORKLET){return function(...args){return queueMicrotask(args.length?function(){return fun(...args);}:fun);};}if(isWorkletFunction(fun)){return function(...args){return runOnJS_reactNativeReanimated_threadsJs9(runWorkletOnJS)(fun,...args);};}if(fun.__remoteFunction){fun=fun.__remoteFunction;}const scheduleOnJS=typeof fun==='function'?global._scheduleHostFunctionOnJS:global._scheduleRemoteFunctionOnJS;return function(...args){scheduleOnJS(fun,args.length>0?makeShareableCloneOnUIRecursive(args):undefined);};}"},ze=function(){const e=function(t){if(Se||!_WORKLET)return(...e)=>queueMicrotask(e.length?()=>t(...e):t);if(x(t))return(...n)=>e(Ne)(t,...n);t.__remoteFunction&&(t=t.__remoteFunction);const r="function"==typeof t?n.g._scheduleHostFunctionOnJS:n.g._scheduleRemoteFunctionOnJS;return(...e)=>{r(t,e.length>0?xe(e):void 0)}};return e.__closure={SHOULD_BE_USE_WEB:Se,isWorkletFunction:x,runWorkletOnJS:Ne,makeShareableCloneOnUIRecursive:xe},e.__workletHash=0xed4e2d71377,e.__initData=_e,e}(),Ve={code:"function valueSetter_reactNativeReanimated_valueSetterJs1(mutable,value,forceUpdate=false){const previousAnimation=mutable._animation;if(previousAnimation){previousAnimation.cancelled=true;mutable._animation=null;}if(typeof value==='function'||value!==null&&typeof value==='object'&&value.onFrame!==undefined){const animation=typeof value==='function'?value():value;if(mutable._value===animation.current&&!animation.isHigherOrder&&!forceUpdate){animation.callback&&animation.callback(true);return;}const initializeAnimation=function(timestamp){animation.onStart(animation,mutable.value,timestamp,previousAnimation);};const currentTimestamp=global.__frameTimestamp||global._getAnimationTimestamp();initializeAnimation(currentTimestamp);const step=function(newTimestamp){const timestamp=newTimestamp<(animation.timestamp||0)?animation.timestamp:newTimestamp;if(animation.cancelled){animation.callback&&animation.callback(false);return;}const finished=animation.onFrame(animation,timestamp);animation.finished=true;animation.timestamp=timestamp;mutable._value=animation.current;if(finished){animation.callback&&animation.callback(true);}else{requestAnimationFrame(step);}};mutable._animation=animation;step(currentTimestamp);}else{if(mutable._value===value&&!forceUpdate){return;}mutable._value=value;}}"},Ue=function(){const e=function(e,t,r=!1){const i=e._animation;if(i&&(i.cancelled=!0,e._animation=null),"function"==typeof t||null!==t&&"object"==typeof t&&void 0!==t.onFrame){const o="function"==typeof t?t():t;if(e._value===o.current&&!o.isHigherOrder&&!r)return void(o.callback&&o.callback(!0));const a=t=>{o.onStart(o,e.value,t,i)},s=n.g.__frameTimestamp||n.g._getAnimationTimestamp();a(s);const l=t=>{const n=t<(o.timestamp||0)?o.timestamp:t;if(o.cancelled)return void(o.callback&&o.callback(!1));const r=o.onFrame(o,n);o.finished=!0,o.timestamp=n,e._value=o.current,r?o.callback&&o.callback(!0):requestAnimationFrame(l)};e._animation=o,l(s)}else{if(e._value===t&&!r)return;e._value=t}};return e.__closure={},e.__workletHash=8092936786998,e.__initData=Ve,e}(),He=p();const qe={code:"function addCompilerSafeGetAndSet_reactNativeReanimated_mutablesJs1(mutable){Object.defineProperties(mutable,{get:{value:function(){return mutable.value;},configurable:false,enumerable:false},set:{value:function(newValue){if(typeof newValue==='function'&&!newValue.__isAnimationDefinition){mutable.value=newValue(mutable.value);}else{mutable.value=newValue;}},configurable:false,enumerable:false}});}"},Ge=function(){const e=function(e){Object.defineProperties(e,{get:{value:()=>e.value,configurable:!1,enumerable:!1},set:{value(t){"function"!=typeof t||t.__isAnimationDefinition?e.value=t:e.value=t(e.value)},configurable:!1,enumerable:!1}})};return e.__closure={},e.__workletHash=0xf1c3f2ca2e2,e.__initData=qe,e}(),Ye={code:"function hideInternalValueProp_reactNativeReanimated_mutablesJs2(mutable){Object.defineProperty(mutable,'_value',{configurable:false,enumerable:false});}"},We=function(){const e=function(e){Object.defineProperty(e,"_value",{configurable:!1,enumerable:!1})};return e.__closure={},e.__workletHash=8838646149489,e.__initData=Ye,e}(),Qe={code:"function makeMutableUI_reactNativeReanimated_mutablesJs3(initial){const{valueSetter,hideInternalValueProp,addCompilerSafeGetAndSet}=this.__closure;const listeners=new Map();let value=initial;const mutable={get value(){return value;},set value(newValue){valueSetter(mutable,newValue);},get _value(){return value;},set _value(newValue){value=newValue;listeners.forEach(function(listener){listener(newValue);});},modify:function(modifier,forceUpdate=true){valueSetter(mutable,modifier!==undefined?modifier(value):value,forceUpdate);},addListener:function(id,listener){listeners.set(id,listener);},removeListener:function(id){listeners.delete(id);},_animation:null,_isReanimatedSharedValue:true};hideInternalValueProp(mutable);addCompilerSafeGetAndSet(mutable);return mutable;}"},Xe=function(){const e=function(e){const t=new Map;let n=e;const r={get value(){return n},set value(e){Ue(r,e)},get _value(){return n},set _value(e){n=e,t.forEach((t=>{t(e)}))},modify:(e,t=!0)=>{Ue(r,void 0!==e?e(n):n,t)},addListener:(e,n)=>{t.set(e,n)},removeListener:e=>{t.delete(e)},_animation:null,_isReanimatedSharedValue:!0};return We(r),Ge(r),r};return e.__closure={valueSetter:Ue,hideInternalValueProp:We,addCompilerSafeGetAndSet:Ge},e.__workletHash=2026298274947,e.__initData=Qe,e}(),Je={code:"function reactNativeReanimated_mutablesJs4(){const{makeMutableUI,initial}=this.__closure;return makeMutableUI(initial);}"},Ze={code:"function reactNativeReanimated_mutablesJs5(sv){return sv.value;}"},Ke={code:"function reactNativeReanimated_mutablesJs6(){const{mutable,newValue}=this.__closure;mutable.value=newValue;}"},$e={code:"function reactNativeReanimated_mutablesJs7(){const{mutable,modifier,forceUpdate}=this.__closure;mutable.modify(modifier,forceUpdate);}"},et=He?function(e){let t=e;const n=new Map,r={get value(){return t},set value(e){Ue(r,e)},get _value(){return t},set _value(e){t=e,n.forEach((t=>{t(e)}))},modify:(e,t=!0)=>{Ue(r,void 0!==e?e(r.value):r.value,t)},addListener:(e,t)=>{n.set(e,t)},removeListener:e=>{n.delete(e)},_isReanimatedSharedValue:!0};return We(r),Ge(r),r}:function(e){const t=fe({__init:function(){const t=function(){return Xe(e)};return t.__closure={makeMutableUI:Xe,initial:e},t.__workletHash=0xe0caed74c2d,t.__initData=Je,t}()}),n={get value(){return je(function(){const e=function(e){return e.value};return e.__closure={},e.__workletHash=5992386903096,e.__initData=Ze,e}())(n)},set value(e){Pe(function(){const t=function(){n.value=e};return t.__closure={mutable:n,newValue:e},t.__workletHash=6286833930716,t.__initData=Ke,t}())()},get _value(){throw new l("Reading from `_value` directly is only possible on the UI runtime. Perhaps you passed an Animated Style to a non-animated component?")},set _value(e){throw new l("Setting `_value` directly is only possible on the UI runtime. Perhaps you want to assign to `value` instead?")},modify:(e,t=!0)=>{Pe(function(){const r=function(){n.modify(e,t)};return r.__closure={mutable:n,modifier:e,forceUpdate:t},r.__workletHash=6323190190522,r.__initData=$e,r}())()},addListener:()=>{throw new l("Adding listeners is only possible on the UI runtime.")},removeListener:()=>{throw new l("Removing listeners is only possible on the UI runtime.")},_isReanimatedSharedValue:!0};return We(n),Ge(n),re.set(n,t),n};class tt{listenersNumber=0;sensorId=null;constructor(e,t){this.sensorType=e,this.config=t,this.data=function(e){return e===w.ROTATION?et({qw:0,qx:0,qy:0,qz:0,yaw:0,pitch:0,roll:0,interfaceOrientation:0}):et({x:0,y:0,z:0,interfaceOrientation:0})}(e)}register(e){const t=this.config,n=this.sensorType;return this.sensorId=$.registerSensor(n,"auto"===t.interval?-1:t.interval,t.iosReferenceFrame,e),-1!==this.sensorId}isRunning(){return-1!==this.sensorId&&null!==this.sensorId}isAvailable(){return-1!==this.sensorId}getSharedValue(){return this.data}unregister(){null!==this.sensorId&&-1!==this.sensorId&&$.unregisterSensor(this.sensorId),this.sensorId=null}}class nt{nativeSensors=new Map;getSensorId(e,t){return 100*e+10*t.iosReferenceFrame+Number(t.adjustToInterfaceOrientation)}initializeSensor(e,t){const n=this.getSensorId(e,t);if(!this.nativeSensors.has(n)){const r=new tt(e,t);this.nativeSensors.set(n,r)}return this.nativeSensors.get(n).getSharedValue()}registerSensor(e,t,n){const r=this.getSensorId(e,t);if(!this.nativeSensors.has(r))return-1;const i=this.nativeSensors.get(r);return i&&i.isAvailable()&&(i.isRunning()||i.register(n))?(i.listenersNumber++,r):-1}unregisterSensor(e){if(this.nativeSensors.has(e)){const t=this.nativeSensors.get(e);t&&t.isRunning()&&(t.listenersNumber--,0===t.listenersNumber&&t.unregister())}}}const rt={code:"function isSharedValue_reactNativeReanimated_isSharedValueJs1(value){return(value===null||value===void 0?void 0:value._isReanimatedSharedValue)===true;}"},it=function(){const e=function(e){return!0===e?._isReanimatedSharedValue};return e.__closure={},e.__workletHash=6111424988838,e.__initData=rt,e}(),ot={code:"function createMapperRegistry_reactNativeReanimated_mappersJs1(){const{IS_JEST,isSharedValue}=this.__closure;const mappers=new Map();let sortedMappers=[];let runRequested=false;let processingMappers=false;function updateMappersOrder(){const pre=new Map();mappers.forEach(function(mapper){if(mapper.outputs){for(const output of mapper.outputs){const preMappers=pre.get(output);if(preMappers===undefined){pre.set(output,[mapper]);}else{preMappers.push(mapper);}}}});const visited=new Set();const newOrder=[];function dfs(mapper){visited.add(mapper);for(const input of mapper.inputs){const preMappers=pre.get(input);if(preMappers){for(const preMapper of preMappers){if(!visited.has(preMapper)){dfs(preMapper);}}}}newOrder.push(mapper);}mappers.forEach(function(mapper){if(!visited.has(mapper)){dfs(mapper);}});sortedMappers=newOrder;}function mapperRun(){runRequested=false;if(processingMappers){return;}try{processingMappers=true;if(mappers.size!==sortedMappers.length){updateMappersOrder();}for(const mapper of sortedMappers){if(mapper.dirty){mapper.dirty=false;mapper.worklet();}}}finally{processingMappers=false;}}function maybeRequestUpdates(){if(IS_JEST){mapperRun();}else if(!runRequested){if(processingMappers){requestAnimationFrame(mapperRun);}else{queueMicrotask(mapperRun);}runRequested=true;}}function extractInputs(inputs,resultArray){if(Array.isArray(inputs)){for(const input of inputs){input&&extractInputs(input,resultArray);}}else if(isSharedValue(inputs)){resultArray.push(inputs);}else if(Object.getPrototypeOf(inputs)===Object.prototype){for(const element of Object.values(inputs)){element&&extractInputs(element,resultArray);}}return resultArray;}return{start:function(mapperID,worklet,inputs,outputs){const mapper={id:mapperID,dirty:true,worklet:worklet,inputs:extractInputs(inputs,[]),outputs:outputs};mappers.set(mapper.id,mapper);sortedMappers=[];for(const sv of mapper.inputs){sv.addListener(mapper.id,function(){mapper.dirty=true;maybeRequestUpdates();});}maybeRequestUpdates();},stop:function(mapperID){const mapper=mappers.get(mapperID);if(mapper){mappers.delete(mapper.id);sortedMappers=[];for(const sv of mapper.inputs){sv.removeListener(mapper.id);}}}};}"},at=function(){const e=function(){const e=new Map;let t=[],n=!1,r=!1;function i(){const n=new Map;e.forEach((e=>{if(e.outputs)for(const t of e.outputs){const r=n.get(t);void 0===r?n.set(t,[e]):r.push(e)}}));const r=new Set,i=[];function o(e){r.add(e);for(const t of e.inputs){const e=n.get(t);if(e)for(const t of e)r.has(t)||o(t)}i.push(e)}e.forEach((e=>{r.has(e)||o(e)})),t=i}function o(){if(n=!1,!r)try{r=!0,e.size!==t.length&&i();for(const e of t)e.dirty&&(e.dirty=!1,e.worklet())}finally{r=!1}}function a(){n||(r?requestAnimationFrame(o):queueMicrotask(o),n=!0)}function s(e,t){if(Array.isArray(e))for(const n of e)n&&s(n,t);else if(it(e))t.push(e);else if(Object.getPrototypeOf(e)===Object.prototype)for(const n of Object.values(e))n&&s(n,t);return t}return{start:(n,r,i,o)=>{const l={id:n,dirty:!0,worklet:r,inputs:s(i,[]),outputs:o};e.set(l.id,l),t=[];for(const e of l.inputs)e.addListener(l.id,(()=>{l.dirty=!0,a()}));a()},stop:n=>{const r=e.get(n);if(r){e.delete(r.id),t=[];for(const e of r.inputs)e.removeListener(r.id)}}}};return e.__closure={IS_JEST:false,isSharedValue:it},e.__workletHash=1831615820738,e.__initData=ot,e}();let st=9999;const lt={code:"function reactNativeReanimated_mappersJs2(){const{createMapperRegistry,mapperID,worklet,inputs,outputs}=this.__closure;let mapperRegistry=global.__mapperRegistry;if(mapperRegistry===undefined){mapperRegistry=global.__mapperRegistry=createMapperRegistry();}mapperRegistry.start(mapperID,worklet,inputs,outputs);}"};function ct(e,t=[],r=[]){const i=st+=1;return Pe(function(){const o=function(){let o=n.g.__mapperRegistry;void 0===o&&(o=n.g.__mapperRegistry=at()),o.start(i,e,t,r)};return o.__closure={createMapperRegistry:at,mapperID:i,worklet:e,inputs:t,outputs:r},o.__workletHash=6546531365916,o.__initData=lt,o}())(),i}const ut={code:"function reactNativeReanimated_mappersJs3(){const{mapperID}=this.__closure;const mapperRegistry=global.__mapperRegistry;mapperRegistry===null||mapperRegistry===void 0||mapperRegistry.stop(mapperID);}"};function ht(e){Pe(function(){const t=function(){const t=n.g.__mapperRegistry;t?.stop(e)};return t.__closure={mapperID:e},t.__workletHash=2151698497712,t.__initData=ut,t}())()}const dt=p(),ft=f(),pt={code:"function overrideLogFunctionImplementation_reactNativeReanimated_initializersJs1(){const{replaceLoggerImplementation,runOnJS,logToLogBoxAndConsole}=this.__closure;replaceLoggerImplementation(function(data){'worklet';runOnJS(logToLogBoxAndConsole)(data);});}"},mt={code:"function reactNativeReanimated_initializersJs2(data){const{runOnJS,logToLogBoxAndConsole}=this.__closure;runOnJS(logToLogBoxAndConsole)(data);}"},gt=function(){const e=function(){U(function(){const e=function(e){ze(N)(e)};return e.__closure={runOnJS:ze,logToLogBoxAndConsole:N},e.__workletHash=0xced918978fc,e.__initData=mt,e}())};return e.__closure={replaceLoggerImplementation:U,runOnJS:ze,logToLogBoxAndConsole:N},e.__workletHash=125413399060,e.__initData=pt,e}();z(D),gt(),dt?(n.g._WORKLET=!1,n.g._log=console.log,n.g._getAnimationTimestamp=()=>performance.now()):(je(u)(),je(z)(D),je(gt)());const yt={code:"function callGuardDEV_reactNativeReanimated_initializersJs3(fn,...args){try{return fn(...args);}catch(e){if(global.__ErrorUtils){global.__ErrorUtils.reportFatalError(e);}else{throw e;}}}"},vt=function(){const e=function(e,...t){try{return e(...t)}catch(e){if(!n.g.__ErrorUtils)throw e;n.g.__ErrorUtils.reportFatalError(e)}};return e.__closure={},e.__workletHash=0xc75ace76a03,e.__initData=yt,e}(),bt={code:"function setupCallGuard_reactNativeReanimated_initializersJs4(){const{callGuardDEV,runOnJS,reportFatalErrorOnJS}=this.__closure;global.__callGuardDEV=callGuardDEV;global.__ErrorUtils={reportFatalError:function(error){runOnJS(reportFatalErrorOnJS)({message:error.message,stack:error.stack});}};}"},At=function(){const e=function(){n.g.__callGuardDEV=vt,n.g.__ErrorUtils={reportFatalError:e=>{ze(d)({message:e.message,stack:e.stack})}}};return e.__closure={callGuardDEV:vt,runOnJS:ze,reportFatalErrorOnJS:d},e.__workletHash=0xee0ea48f435,e.__initData=bt,e}(),xt=Object.fromEntries(Object.entries(console).map((([e,t])=>{const n=function(...e){return t(...e)};return t.name&&Object.defineProperty(n,"name",{value:t.name,writable:!1}),[e,n]}))),wt={code:"function setupConsole_reactNativeReanimated_initializersJs5(){const{IS_CHROME_DEBUGGER,runOnJS,capturableConsole}=this.__closure;if(!IS_CHROME_DEBUGGER){global.console={assert:runOnJS(capturableConsole.assert),debug:runOnJS(capturableConsole.debug),log:runOnJS(capturableConsole.log),warn:runOnJS(capturableConsole.warn),error:runOnJS(capturableConsole.error),info:runOnJS(capturableConsole.info)};}}"},Ct=function(){const e=function(){ft||(n.g.console={assert:ze(xt.assert),debug:ze(xt.debug),log:ze(xt.log),warn:ze(xt.warn),error:ze(xt.error),info:ze(xt.info)})};return e.__closure={IS_CHROME_DEBUGGER:ft,runOnJS:ze,capturableConsole:xt},e.__workletHash=0xb41e09d4d59,e.__initData=wt,e}(),St={code:"function setupRequestAnimationFrame_reactNativeReanimated_initializersJs6(){const{callMicrotasks}=this.__closure;const nativeRequestAnimationFrame=global.requestAnimationFrame;let animationFrameCallbacks=[];let flushRequested=false;global.__flushAnimationFrame=function(frameTimestamp){const currentCallbacks=animationFrameCallbacks;animationFrameCallbacks=[];currentCallbacks.forEach(function(f){return f(frameTimestamp);});callMicrotasks();};global.requestAnimationFrame=function(callback){animationFrameCallbacks.push(callback);if(!flushRequested){flushRequested=true;nativeRequestAnimationFrame(function(timestamp){flushRequested=false;global.__frameTimestamp=timestamp;global.__flushAnimationFrame(timestamp);global.__frameTimestamp=undefined;});}return-1;};}"};!function(){const e=function(){const e=n.g.requestAnimationFrame;let t=[],r=!1;n.g.__flushAnimationFrame=e=>{const n=t;t=[],n.forEach((t=>t(e))),Oe()},n.g.requestAnimationFrame=i=>(t.push(i),r||(r=!0,e((e=>{r=!1,n.g.__frameTimestamp=e,n.g.__flushAnimationFrame(e),n.g.__frameTimestamp=void 0}))),-1)};e.__closure={callMicrotasks:Oe},e.__workletHash=8389799221965,e.__initData=St}();const Et=p(),kt={code:"function reactNativeReanimated_runtimesJs1(){const{registerReanimatedError,registerLoggerConfig,config,setupCallGuard,setupConsole,initializer}=this.__closure;var _initializer;registerReanimatedError();registerLoggerConfig(config);setupCallGuard();setupConsole();(_initializer=initializer)===null||_initializer===void 0||_initializer();}"};function Tt(e,t){const n=__reanimatedLoggerConfig;return $.createWorkletRuntime(e,fe(function(){const e=function(){u(),z(n),At(),Ct(),t?.()};return e.__closure={registerReanimatedError:u,registerLoggerConfig:z,config:n,setupCallGuard:At,setupConsole:Ct,initializer:t},e.__workletHash=3079584135205,e.__initData=kt,e}()))}const It={code:"function runOnRuntime_reactNativeReanimated_runtimesJs2(workletRuntime,worklet){const{__DEV__,SHOULD_BE_USE_WEB,isWorkletFunction,makeShareableCloneOnUIRecursive,ReanimatedModule,makeShareableCloneRecursive}=this.__closure;if(__DEV__&&!SHOULD_BE_USE_WEB&&!isWorkletFunction(worklet)){throw new ReanimatedError('The function passed to `runOnRuntime` is not a worklet.'+(_WORKLET?' Please make sure that `processNestedWorklets` option in Reanimated Babel plugin is enabled.':''));}if(_WORKLET){return function(...args){return global._scheduleOnRuntime(workletRuntime,makeShareableCloneOnUIRecursive(function(){'worklet';worklet(...args);}));};}return function(...args){return ReanimatedModule.scheduleOnRuntime(workletRuntime,makeShareableCloneRecursive(function(){'worklet';worklet(...args);}));};}"},Ot={code:"function reactNativeReanimated_runtimesJs3(){const{worklet,args}=this.__closure;worklet(...args);}"},Rt={code:"function reactNativeReanimated_runtimesJs4(){const{worklet,args}=this.__closure;worklet(...args);}"},Mt=function(){const e=function(e,t){return _WORKLET?(...r)=>n.g._scheduleOnRuntime(e,xe(function(){const e=function(){t(...r)};return e.__closure={worklet:t,args:r},e.__workletHash=734813279060,e.__initData=Ot,e}())):(...n)=>$.scheduleOnRuntime(e,fe(function(){const e=function(){t(...n)};return e.__closure={worklet:t,args:n},e.__workletHash=3463492873011,e.__initData=Rt,e}()))};return e.__closure={__DEV__:!1,SHOULD_BE_USE_WEB:Et,isWorkletFunction:x,makeShareableCloneOnUIRecursive:xe,ReanimatedModule:$,makeShareableCloneRecursive:fe},e.__workletHash=0xbd8d109b845,e.__initData=It,e}(),Pt=(0,a.S)(),Dt=p(),jt=()=>!0,Bt=jt;function Lt(e,t,n){if(m()&&!n)throw new l("Function `getViewProp` requires a component to be passed as an argument on Fabric.");return new Promise(((r,i)=>$.getViewProp(e,t,n,(e=>{"string"==typeof e&&"error:"===e.substr(0,6)?i(e):r(e)}))))}function Ft(){return n.g.__sensorContainer||(n.g.__sensorContainer=new nt),n.g.__sensorContainer}const Nt={code:"function handleAndFlushAnimationFrame_reactNativeReanimated_coreJs1(eventTimestamp,event){const{eventHandler}=this.__closure;global.__frameTimestamp=eventTimestamp;eventHandler(event);global.__flushAnimationFrame(eventTimestamp);global.__frameTimestamp=undefined;}"};function _t(e,t,r=-1){const i=function(){const t=function(t,r){n.g.__frameTimestamp=t,e(r),n.g.__flushAnimationFrame(t),n.g.__frameTimestamp=void 0};return t.__closure={eventHandler:e},t.__workletHash=5990672709877,t.__initData=Nt,t}();return $.registerEventHandler(fe(i),t,r)}function zt(e){return $.unregisterEventHandler(e)}const Vt={code:"function handleAndFlushAnimationFrame_reactNativeReanimated_coreJs2(state,height){const{eventHandler}=this.__closure;const now=global._getAnimationTimestamp();global.__frameTimestamp=now;eventHandler(state,height);global.__flushAnimationFrame(now);global.__frameTimestamp=undefined;}"};function Ut(e,t){const r=function(){const t=function(t,r){const i=n.g._getAnimationTimestamp();n.g.__frameTimestamp=i,e(t,r),n.g.__flushAnimationFrame(i),n.g.__frameTimestamp=void 0};return t.__closure={eventHandler:e},t.__workletHash=0xf4dbf8a3558,t.__initData=Vt,t}();return $.subscribeForKeyboardEvents(fe(r),Pt||(t.isStatusBarTranslucentAndroid??!1),Pt||(t.isNavigationBarTranslucentAndroid??!1))}function Ht(e,t){return Ft().initializeSensor(e,t)}let qt={enableLayoutAnimations:!1,setByUser:!1};function Gt(e,t=!0){t?(qt={enableLayoutAnimations:e,setByUser:!0},$.enableLayoutAnimations(e)):qt.setByUser||qt.enableLayoutAnimations===e||(qt.enableLayoutAnimations=e,$.enableLayoutAnimations(e))}const Yt="[-+]?\\d*\\.?\\d+",Wt=Yt+"%";function Qt(...e){return"\\(\\s*("+e.join(")\\s*,?\\s*(")+")\\s*\\)"}function Xt(...e){return"\\(\\s*("+e.slice(0,e.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+e[e.length-1]+")\\s*\\)"}function Jt(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Zt={rgb:new RegExp("rgb"+Qt(Yt,Yt,Yt)),rgba:new RegExp("rgba("+Jt(Yt,Yt,Yt,Yt)+"|"+Xt(Yt,Yt,Yt,Yt)+")"),hsl:new RegExp("hsl"+Qt(Yt,Wt,Wt)),hsla:new RegExp("hsla("+Jt(Yt,Wt,Wt,Yt)+"|"+Xt(Yt,Wt,Wt,Yt)+")"),hwb:new RegExp("hwb"+Qt(Yt,Wt,Wt)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/},Kt={code:"function hue2rgb_reactNativeReanimated_ColorsJs1(p,q,t){if(t<0){t+=1;}if(t>1){t-=1;}if(t<1/6){return p+(q-p)*6*t;}if(t<1/2){return q;}if(t<2/3){return p+(q-p)*(2/3-t)*6;}return p;}"},$t=function(){const e=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e};return e.__closure={},e.__workletHash=6465697987976,e.__initData=Kt,e}(),en={code:"function hslToRgb_reactNativeReanimated_ColorsJs2(h,s,l){const{hue2rgb}=this.__closure;const q=l<0.5?l*(1+s):l+s-l*s;const p=2*l-q;const r=hue2rgb(p,q,h+1/3);const g=hue2rgb(p,q,h);const b=hue2rgb(p,q,h-1/3);return Math.round(r*255)<<24|Math.round(g*255)<<16|Math.round(b*255)<<8;}"},tn=function(){const e=function(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=$t(i,r,e+1/3),a=$t(i,r,e),s=$t(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8};return e.__closure={hue2rgb:$t},e.__workletHash=8357945951018,e.__initData=en,e}(),nn={code:"function hwbToRgb_reactNativeReanimated_ColorsJs3(h,w,b){const{hue2rgb}=this.__closure;if(w+b>=1){const gray=Math.round(w*255/(w+b));return gray<<24|gray<<16|gray<<8;}const red=hue2rgb(0,1,h+1/3)*(1-w-b)+w;const green=hue2rgb(0,1,h)*(1-w-b)+w;const blue=hue2rgb(0,1,h-1/3)*(1-w-b)+w;return Math.round(red*255)<<24|Math.round(green*255)<<16|Math.round(blue*255)<<8;}"},rn=function(){const e=function(e,t,n){if(t+n>=1){const e=Math.round(255*t/(t+n));return e<<24|e<<16|e<<8}const r=$t(0,1,e+1/3)*(1-t-n)+t,i=$t(0,1,e)*(1-t-n)+t,o=$t(0,1,e-1/3)*(1-t-n)+t;return Math.round(255*r)<<24|Math.round(255*i)<<16|Math.round(255*o)<<8};return e.__closure={hue2rgb:$t},e.__workletHash=8354719868736,e.__initData=nn,e}(),on={code:"function parse255_reactNativeReanimated_ColorsJs4(str){const int=Number.parseInt(str,10);if(int<0){return 0;}if(int>255){return 255;}return int;}"},an=function(){const e=function(e){const t=Number.parseInt(e,10);return t<0?0:t>255?255:t};return e.__closure={},e.__workletHash=2764477577497,e.__initData=on,e}(),sn={code:"function parse360_reactNativeReanimated_ColorsJs5(str){const int=Number.parseFloat(str);return(int%360+360)%360/360;}"},ln=function(){const e=function(e){return(Number.parseFloat(e)%360+360)%360/360};return e.__closure={},e.__workletHash=0x922d49fc576,e.__initData=sn,e}(),cn={code:"function parse1_reactNativeReanimated_ColorsJs6(str){const num=Number.parseFloat(str);if(num<0){return 0;}if(num>1){return 255;}return Math.round(num*255);}"},un=function(){const e=function(e){const t=Number.parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)};return e.__closure={},e.__workletHash=0xbfd3b03d510,e.__initData=cn,e}(),hn={code:"function parsePercentage_reactNativeReanimated_ColorsJs7(str){const int=Number.parseFloat(str);if(int<0){return 0;}if(int>100){return 1;}return int/100;}"},dn=function(){const e=function(e){const t=Number.parseFloat(e);return t<0?0:t>100?1:t/100};return e.__closure={},e.__workletHash=8288364824928,e.__initData=hn,e}(),fn={code:"function clampRGBA_reactNativeReanimated_ColorsJs8(RGBA){for(let i=0;i<4;i++){RGBA[i]=Math.max(0,Math.min(RGBA[i],1));}}"},pn=function(){const e=function(e){for(let t=0;t<4;t++)e[t]=Math.max(0,Math.min(e[t],1))};return e.__closure={},e.__workletHash=1803948073058,e.__initData=fn,e}(),mn=Ce({transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}),gn=Ce(["backgroundColor","borderBottomColor","borderColor","borderLeftColor","borderRightColor","borderTopColor","borderStartColor","borderEndColor","borderBlockColor","borderBlockEndColor","borderBlockStartColor","color","outlineColor","shadowColor","textDecorationColor","tintColor","textShadowColor","overlayColor","fill","floodColor","lightingColor","stopColor","stroke"]),yn=Ce({boxShadow:"color"}),vn={code:"function normalizeColor_reactNativeReanimated_ColorsJs9(color){const{MATCHERS,names,parse255,parse1,hslToRgb,parse360,parsePercentage,hwbToRgb}=this.__closure;if(typeof color==='number'){if(color>>>0===color&&color>=0&&color<=0xffffffff){return color;}return null;}if(typeof color!=='string'){return null;}let match;if(match=MATCHERS.hex6.exec(color)){return Number.parseInt(match[1]+'ff',16)>>>0;}if(names[color]!==undefined){return names[color];}if(match=MATCHERS.rgb.exec(color)){return((parse255(match[1])<<24|parse255(match[2])<<16|parse255(match[3])<<8|0x000000ff)>>>0);}if(match=MATCHERS.rgba.exec(color)){if(match[6]!==undefined){return(parse255(match[6])<<24|parse255(match[7])<<16|parse255(match[8])<<8|parse1(match[9]))>>>0;}return(parse255(match[2])<<24|parse255(match[3])<<16|parse255(match[4])<<8|parse1(match[5]))>>>0;}if(match=MATCHERS.hex3.exec(color)){return Number.parseInt(match[1]+match[1]+match[2]+match[2]+match[3]+match[3]+'ff',16)>>>0;}if(match=MATCHERS.hex8.exec(color)){return Number.parseInt(match[1],16)>>>0;}if(match=MATCHERS.hex4.exec(color)){return Number.parseInt(match[1]+match[1]+match[2]+match[2]+match[3]+match[3]+match[4]+match[4],16)>>>0;}if(match=MATCHERS.hsl.exec(color)){return(hslToRgb(parse360(match[1]),parsePercentage(match[2]),parsePercentage(match[3]))|0x000000ff)>>>0;}if(match=MATCHERS.hsla.exec(color)){if(match[6]!==undefined){return(hslToRgb(parse360(match[6]),parsePercentage(match[7]),parsePercentage(match[8]))|parse1(match[9]))>>>0;}return(hslToRgb(parse360(match[2]),parsePercentage(match[3]),parsePercentage(match[4]))|parse1(match[5]))>>>0;}if(match=MATCHERS.hwb.exec(color)){return(hwbToRgb(parse360(match[1]),parsePercentage(match[2]),parsePercentage(match[3]))|0x000000ff)>>>0;}return null;}"},bn=function(){const e=function(e){if("number"==typeof e)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if("string"!=typeof e)return null;let t;return(t=Zt.hex6.exec(e))?Number.parseInt(t[1]+"ff",16)>>>0:void 0!==mn[e]?mn[e]:(t=Zt.rgb.exec(e))?(an(t[1])<<24|an(t[2])<<16|an(t[3])<<8|255)>>>0:(t=Zt.rgba.exec(e))?void 0!==t[6]?(an(t[6])<<24|an(t[7])<<16|an(t[8])<<8|un(t[9]))>>>0:(an(t[2])<<24|an(t[3])<<16|an(t[4])<<8|un(t[5]))>>>0:(t=Zt.hex3.exec(e))?Number.parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Zt.hex8.exec(e))?Number.parseInt(t[1],16)>>>0:(t=Zt.hex4.exec(e))?Number.parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Zt.hsl.exec(e))?(255|tn(ln(t[1]),dn(t[2]),dn(t[3])))>>>0:(t=Zt.hsla.exec(e))?void 0!==t[6]?(tn(ln(t[6]),dn(t[7]),dn(t[8]))|un(t[9]))>>>0:(tn(ln(t[2]),dn(t[3]),dn(t[4]))|un(t[5]))>>>0:(t=Zt.hwb.exec(e))?(255|rn(ln(t[1]),dn(t[2]),dn(t[3])))>>>0:null};return e.__closure={MATCHERS:Zt,names:mn,parse255:an,parse1:un,hslToRgb:tn,parse360:ln,parsePercentage:dn,hwbToRgb:rn},e.__workletHash=0xe009dc22815,e.__initData=vn,e}(),An={code:"function reactNativeReanimated_ColorsJs10(c){return(c>>24&255)/255;}"},xn=function(){const e=function(e){return(e>>24&255)/255};return e.__closure={},e.__workletHash=2755491285980,e.__initData=An,e}(),wn={code:"function reactNativeReanimated_ColorsJs11(c){return c>>16&255;}"},Cn=function(){const e=function(e){return e>>16&255};return e.__closure={},e.__workletHash=0xa28502fc5e0,e.__initData=wn,e}(),Sn={code:"function reactNativeReanimated_ColorsJs12(c){return c>>8&255;}"},En=function(){const e=function(e){return e>>8&255};return e.__closure={},e.__workletHash=5817953192348,e.__initData=Sn,e}(),kn={code:"function reactNativeReanimated_ColorsJs13(c){return c&255;}"},Tn=function(){const e=function(e){return 255&e};return e.__closure={},e.__workletHash=0xa536c1ad445,e.__initData=kn,e}(),In={code:'function reactNativeReanimated_ColorsJs14(r,g,b,alpha=1){const safeAlpha=alpha<0.001?0:alpha;return"rgba("+r+", "+g+", "+b+", "+safeAlpha+")";}'},On=function(){const e=function(e,t,n,r=1){return`rgba(${e}, ${t}, ${n}, ${r<.001?0:r})`};return e.__closure={},e.__workletHash=0xb5c5114301c,e.__initData=In,e}(),Rn={code:"function RGBtoHSV_reactNativeReanimated_ColorsJs15(r,g,b){const max=Math.max(r,g,b);const min=Math.min(r,g,b);const d=max-min;const s=max===0?0:d/max;const v=max/255;let h=0;switch(max){case min:break;case r:h=g-b+d*(g>>8)>>>0;}"},Fn=function(){const e=function(e){if(null==e)return e;let t;if("number"==typeof e)t=e;else{const n=bn(e);if(null==n)return;if("number"!=typeof n)return null;t=n}return(t<<24|t>>>8)>>>0};return e.__closure={normalizeColor:bn},e.__workletHash=0xb06d94c4cb9,e.__initData=Ln,e}(),Nn={code:"function isColor_reactNativeReanimated_ColorsJs19(value){const{processColorInitially}=this.__closure;if(typeof value!=='string'){return false;}return processColorInitially(value)!=null;}"},_n=function(){const e=function(e){return"string"==typeof e&&null!=Fn(e)};return e.__closure={processColorInitially:Fn},e.__workletHash=0xf7ef9c8c6b3,e.__initData=Nn,e}(),zn={code:"function processColor_reactNativeReanimated_ColorsJs20(color){const{processColorInitially,IS_ANDROID}=this.__closure;let normalizedColor=processColorInitially(color);if(normalizedColor===null||normalizedColor===undefined){return undefined;}if(typeof normalizedColor!=='number'){return null;}if(IS_ANDROID){normalizedColor=normalizedColor|0x0;}return normalizedColor;}"},Vn=function(){const e=function(e){let t=Fn(e);if(null!=t)return"number"!=typeof t?null:t};return e.__closure={processColorInitially:Fn,IS_ANDROID:false},e.__workletHash=0xb48a0bd5d77,e.__initData=zn,e}(),Un={code:"function processColorsInProps_reactNativeReanimated_ColorsJs21(props){const{ColorProperties,processColor,NestedColorProperties}=this.__closure;for(const key in props){if(ColorProperties.includes(key)){if(Array.isArray(props[key])){props[key]=props[key].map(function(color){return processColor(color);});}else{props[key]=processColor(props[key]);}}else if(NestedColorProperties[key]){const propGroupList=props[key];for(const propGroup of propGroupList){const nestedPropertyName=NestedColorProperties[key];if(propGroup[nestedPropertyName]!==undefined){propGroup[nestedPropertyName]=processColor(propGroup[nestedPropertyName]);}}}}}"},Hn=function(){const e=function(e){for(const t in e)if(gn.includes(t))Array.isArray(e[t])?e[t]=e[t].map((e=>Vn(e))):e[t]=Vn(e[t]);else if(yn[t]){const n=e[t];for(const e of n){const n=yn[t];void 0!==e[n]&&(e[n]=Vn(e[n]))}}};return e.__closure={ColorProperties:gn,processColor:Vn,NestedColorProperties:yn},e.__workletHash=0xbf79efc92df,e.__initData=Un,e}(),qn={code:"function convertToRGBA_reactNativeReanimated_ColorsJs22(color){const{processColorInitially}=this.__closure;const processedColor=processColorInitially(color);const a=(processedColor>>>24)/255;const r=(processedColor<<8>>>24)/255;const g=(processedColor<<16>>>24)/255;const b=(processedColor<<24>>>24)/255;return[r,g,b,a];}"},Gn=function(){const e=function(e){const t=Fn(e);return[(t<<8>>>24)/255,(t<<16>>>24)/255,(t<<24>>>24)/255,(t>>>24)/255]};return e.__closure={processColorInitially:Fn},e.__workletHash=2701148573964,e.__initData=qn,e}(),Yn={code:'function rgbaArrayToRGBAColor_reactNativeReanimated_ColorsJs23(RGBA){const alpha=RGBA[3]<0.001?0:RGBA[3];return"rgba("+Math.round(RGBA[0]*255)+", "+Math.round(RGBA[1]*255)+", "+Math.round(RGBA[2]*255)+", "+alpha+")";}'},Wn=function(){const e=function(e){const t=e[3]<.001?0:e[3];return`rgba(${Math.round(255*e[0])}, ${Math.round(255*e[1])}, ${Math.round(255*e[2])}, ${t})`};return e.__closure={},e.__workletHash=2087336200668,e.__initData=Yn,e}(),Qn={code:"function toLinearSpace_reactNativeReanimated_ColorsJs24(RGBA,gamma=2.2){const res=[];for(let i=0;i<3;++i){res.push(Math.pow(RGBA[i],gamma));}res.push(RGBA[3]);return res;}"},Xn=function(){const e=function(e,t=2.2){const n=[];for(let r=0;r<3;++r)n.push(Math.pow(e[r],t));return n.push(e[3]),n};return e.__closure={},e.__workletHash=388276346895,e.__initData=Qn,e}(),Jn={code:"function toGammaSpace_reactNativeReanimated_ColorsJs25(RGBA,gamma=2.2){const res=[];for(let i=0;i<3;++i){res.push(Math.pow(RGBA[i],1/gamma));}res.push(RGBA[3]);return res;}"},Zn=function(){const e=function(e,t=2.2){const n=[];for(let r=0;r<3;++r)n.push(Math.pow(e[r],1/t));return n.push(e[3]),n};return e.__closure={},e.__workletHash=0xe00d2f4d90a,e.__initData=Jn,e}(),Kn=.001,$n=.1,er={code:"function A_reactNativeReanimated_BezierJs1(aA1,aA2){return 1.0-3.0*aA2+3.0*aA1;}"},tr=function(){const e=function(e,t){return 1-3*t+3*e};return e.__closure={},e.__workletHash=8828646082676,e.__initData=er,e}(),nr={code:"function B_reactNativeReanimated_BezierJs2(aA1,aA2){return 3.0*aA2-6.0*aA1;}"},rr=function(){const e=function(e,t){return 3*t-6*e};return e.__closure={},e.__workletHash=4203953384949,e.__initData=nr,e}(),ir={code:"function C_reactNativeReanimated_BezierJs3(aA1){return 3.0*aA1;}"},or=function(){const e=function(e){return 3*e};return e.__closure={},e.__workletHash=8388140024310,e.__initData=ir,e}(),ar={code:"function calcBezier_reactNativeReanimated_BezierJs4(aT,aA1,aA2){const{A,B,C}=this.__closure;return((A(aA1,aA2)*aT+B(aA1,aA2))*aT+C(aA1))*aT;}"},sr=function(){const e=function(e,t,n){return((tr(t,n)*e+rr(t,n))*e+or(t))*e};return e.__closure={A:tr,B:rr,C:or},e.__workletHash=0xe50e323023e,e.__initData=ar,e}(),lr={code:"function getSlope_reactNativeReanimated_BezierJs5(aT,aA1,aA2){const{A,B,C}=this.__closure;return 3.0*A(aA1,aA2)*aT*aT+2.0*B(aA1,aA2)*aT+C(aA1);}"},cr=function(){const e=function(e,t,n){return 3*tr(t,n)*e*e+2*rr(t,n)*e+or(t)};return e.__closure={A:tr,B:rr,C:or},e.__workletHash=4162364291299,e.__initData=lr,e}(),ur={code:"function binarySubdivide_reactNativeReanimated_BezierJs6(aX,aA,aB,mX1,mX2){const{calcBezier,SUBDIVISION_PRECISION,SUBDIVISION_MAX_ITERATIONS}=this.__closure;let currentX;let currentT;let i=0;do{currentT=aA+(aB-aA)/2.0;currentX=calcBezier(currentT,mX1,mX2)-aX;if(currentX>0.0){aB=currentT;}else{aA=currentT;}}while(Math.abs(currentX)>SUBDIVISION_PRECISION&&++i0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a};return e.__closure={calcBezier:sr,SUBDIVISION_PRECISION:1e-7,SUBDIVISION_MAX_ITERATIONS:10},e.__workletHash=9166841024279,e.__initData=ur,e}(),dr={code:"function newtonRaphsonIterate_reactNativeReanimated_BezierJs7(aX,aGuessT,mX1,mX2){const{NEWTON_ITERATIONS,getSlope,calcBezier}=this.__closure;for(let i=0;i=0&&mX1<=1&&mX2>=0&&mX2<=1)){throw new ReanimatedError('Bezier x values must be in [0, 1] range.');}if(mX1===mY1&&mX2===mY2){return LinearEasing;}const sampleValues=new Array(kSplineTableSize);for(let i=0;i=NEWTON_MIN_SLOPE){return newtonRaphsonIterate(aX,guessForT,mX1,mX2);}else if(initialSlope===0.0){return guessForT;}else{return binarySubdivide(aX,intervalStart,intervalStart+kSampleStepSize,mX1,mX2);}}return function Bezier_reactNativeReanimated_BezierJs8(x){'worklet';if(mX1===mY1&&mX2===mY2){return x;}if(x===0){return 0;}if(x===1){return 1;}return calcBezier(getTForX(x),mY1,mY2);};}"},mr={code:"function LinearEasing_reactNativeReanimated_BezierJs9(x){return x;}"},gr={code:"function getTForX_reactNativeReanimated_BezierJs10(aX){const{kSplineTableSize,sampleValues,kSampleStepSize,getSlope,mX1,mX2,NEWTON_MIN_SLOPE,newtonRaphsonIterate,binarySubdivide}=this.__closure;let intervalStart=0.0;let currentSample=1;const lastSample=kSplineTableSize-1;for(;currentSample!==lastSample&&sampleValues[currentSample]<=aX;++currentSample){intervalStart+=kSampleStepSize;}--currentSample;const dist=(aX-sampleValues[currentSample])/(sampleValues[currentSample+1]-sampleValues[currentSample]);const guessForT=intervalStart+dist*kSampleStepSize;const initialSlope=getSlope(guessForT,mX1,mX2);if(initialSlope>=NEWTON_MIN_SLOPE){return newtonRaphsonIterate(aX,guessForT,mX1,mX2);}else if(initialSlope===0.0){return guessForT;}else{return binarySubdivide(aX,intervalStart,intervalStart+kSampleStepSize,mX1,mX2);}}"},yr={code:"function BezierEasing_reactNativeReanimated_BezierJs11(x){const{mX1,mY1,mX2,mY2,calcBezier,getTForX}=this.__closure;if(mX1===mY1&&mX2===mY2){return x;}if(x===0){return 0;}if(x===1){return 1;}return calcBezier(getTForX(x),mY1,mY2);}"},vr=function(){const e=function(e,t,n,r){const i=function(){const e=function(e){return e};return e.__closure={},e.__workletHash=0xfaf2062d7d2,e.__initData=mr,e}();if(!(e>=0&&e<=1&&n>=0&&n<=1))throw new l("Bezier x values must be in [0, 1] range.");if(e===t&&n===r)return i;const o=new Array(11);for(let t=0;t<11;++t)o[t]=sr(t*$n,e,n);const a=function(){const t=function(t){let r=0,i=1;for(;10!==i&&o[i]<=t;++i)r+=$n;--i;const a=r+(t-o[i])/(o[i+1]-o[i])*$n,s=cr(a,e,n);return s>=Kn?fr(t,a,e,n):0===s?a:hr(t,r,r+$n,e,n)};return t.__closure={kSplineTableSize:11,sampleValues:o,kSampleStepSize:$n,getSlope:cr,mX1:e,mX2:n,NEWTON_MIN_SLOPE:Kn,newtonRaphsonIterate:fr,binarySubdivide:hr},t.__workletHash=0xdfdc8d4cb73,t.__initData=gr,t}();return function(){const i=function(i){return e===t&&n===r?i:0===i?0:1===i?1:sr(a(i),t,r)};return i.__closure={mX1:e,mY1:t,mX2:n,mY2:r,calcBezier:sr,getTForX:a},i.__workletHash=7919274967463,i.__initData=yr,i}()};return e.__closure={kSplineTableSize:11,calcBezier:sr,kSampleStepSize:$n,getSlope:cr,NEWTON_MIN_SLOPE:Kn,newtonRaphsonIterate:fr,binarySubdivide:hr},e.__workletHash=6918608934740,e.__initData=pr,e}(),br={code:"function linear_reactNativeReanimated_EasingJs1(t){return t;}"},Ar=function(){const e=function(e){return e};return e.__closure={},e.__workletHash=0x93fc152a439,e.__initData=br,e}(),xr={code:"function ease_reactNativeReanimated_EasingJs2(t){const{Bezier}=this.__closure;return Bezier(0.42,0,1,1)(t);}"},wr=function(){const e=function(e){return vr(.42,0,1,1)(e)};return e.__closure={Bezier:vr},e.__workletHash=0xc58aa18772d,e.__initData=xr,e}(),Cr={code:"function quad_reactNativeReanimated_EasingJs3(t){return t*t;}"},Sr=function(){const e=function(e){return e*e};return e.__closure={},e.__workletHash=0xab71d64c1d9,e.__initData=Cr,e}(),Er={code:"function cubic_reactNativeReanimated_EasingJs4(t){return t*t*t;}"},kr=function(){const e=function(e){return e*e*e};return e.__closure={},e.__workletHash=420874989599,e.__initData=Er,e}(),Tr={code:"function poly_reactNativeReanimated_EasingJs5(n){return function(t){'worklet';return Math.pow(t,n);};}"},Ir={code:"function reactNativeReanimated_EasingJs6(t){const{n}=this.__closure;return Math.pow(t,n);}"},Or=function(){const e=function(e){return function(){const t=function(t){return Math.pow(t,e)};return t.__closure={n:e},t.__workletHash=485715021435,t.__initData=Ir,t}()};return e.__closure={},e.__workletHash=0xf070fd434a2,e.__initData=Tr,e}(),Rr={code:"function sin_reactNativeReanimated_EasingJs7(t){return 1-Math.cos(t*Math.PI/2);}"},Mr=function(){const e=function(e){return 1-Math.cos(e*Math.PI/2)};return e.__closure={},e.__workletHash=6057811655898,e.__initData=Rr,e}(),Pr={code:"function circle_reactNativeReanimated_EasingJs8(t){return 1-Math.sqrt(1-t*t);}"},Dr=function(){const e=function(e){return 1-Math.sqrt(1-e*e)};return e.__closure={},e.__workletHash=8811157154490,e.__initData=Pr,e}(),jr={code:"function exp_reactNativeReanimated_EasingJs9(t){return Math.pow(2,10*(t-1));}"},Br=function(){const e=function(e){return Math.pow(2,10*(e-1))};return e.__closure={},e.__workletHash=0xf31c99a983e,e.__initData=jr,e}(),Lr={code:"function elastic_reactNativeReanimated_EasingJs10(bounciness=1){const p=bounciness*Math.PI;return function(t){'worklet';return 1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*p);};}"},Fr={code:"function reactNativeReanimated_EasingJs11(t){const{p}=this.__closure;return 1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*p);}"},Nr=function(){const e=function(e=1){const t=e*Math.PI;return function(){const e=function(e){return 1-Math.pow(Math.cos(e*Math.PI/2),3)*Math.cos(e*t)};return e.__closure={p:t},e.__workletHash=943036289222,e.__initData=Fr,e}()};return e.__closure={},e.__workletHash=1909362451472,e.__initData=Lr,e}(),_r={code:"function back_reactNativeReanimated_EasingJs12(s=1.70158){return function(t){'worklet';return t*t*((s+1)*t-s);};}"},zr={code:"function reactNativeReanimated_EasingJs13(t){const{s}=this.__closure;return t*t*((s+1)*t-s);}"},Vr=function(){const e=function(e=1.70158){return function(){const t=function(t){return t*t*((e+1)*t-e)};return t.__closure={s:e},t.__workletHash=3467309697498,t.__initData=zr,t}()};return e.__closure={},e.__workletHash=0xe5bd9f260d9,e.__initData=_r,e}(),Ur={code:"function bounce_reactNativeReanimated_EasingJs14(t){if(t<1/2.75){return 7.5625*t*t;}if(t<2/2.75){const t2=t-1.5/2.75;return 7.5625*t2*t2+0.75;}if(t<2.5/2.75){const t2=t-2.25/2.75;return 7.5625*t2*t2+0.9375;}const t2=t-2.625/2.75;return 7.5625*t2*t2+0.984375;}"},Hr=function(){const e=function(e){if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){const t=e-1.5/2.75;return 7.5625*t*t+.75}if(e<2.5/2.75){const t=e-2.25/2.75;return 7.5625*t*t+.9375}const t=e-2.625/2.75;return 7.5625*t*t+.984375};return e.__closure={},e.__workletHash=6227633941748,e.__initData=Ur,e}(),qr={code:"function bezier_reactNativeReanimated_EasingJs15(x1,y1,x2,y2){const{Bezier}=this.__closure;return{factory:function(){'worklet';return Bezier(x1,y1,x2,y2);}};}"},Gr={code:"function reactNativeReanimated_EasingJs16(){const{Bezier,x1,y1,x2,y2}=this.__closure;return Bezier(x1,y1,x2,y2);}"},Yr=function(){const e=function(e,t,n,r){return{factory:function(){const i=function(){return vr(e,t,n,r)};return i.__closure={Bezier:vr,x1:e,y1:t,x2:n,y2:r},i.__workletHash=6381722808540,i.__initData=Gr,i}()}};return e.__closure={Bezier:vr},e.__workletHash=4688559456052,e.__initData=qr,e}(),Wr={code:"function bezierFn_reactNativeReanimated_EasingJs17(x1,y1,x2,y2){const{Bezier}=this.__closure;return Bezier(x1,y1,x2,y2);}"},Qr=function(){const e=function(e,t,n,r){return vr(e,t,n,r)};return e.__closure={Bezier:vr},e.__workletHash=1286668932581,e.__initData=Wr,e}(),Xr={code:"function in__reactNativeReanimated_EasingJs18(easing){return easing;}"},Jr=function(){const e=function(e){return e};return e.__closure={},e.__workletHash=5692504487844,e.__initData=Xr,e}(),Zr={code:"function out_reactNativeReanimated_EasingJs19(easing){return function(t){'worklet';return 1-easing(1-t);};}"},Kr={code:"function reactNativeReanimated_EasingJs20(t){const{easing}=this.__closure;return 1-easing(1-t);}"},$r=function(){const e=function(e){return function(){const t=function(t){return 1-e(1-t)};return t.__closure={easing:e},t.__workletHash=0xa87de49dc95,t.__initData=Kr,t}()};return e.__closure={},e.__workletHash=0xf3115823541,e.__initData=Zr,e}(),ei={code:"function inOut_reactNativeReanimated_EasingJs21(easing){return function(t){'worklet';if(t<0.5){return easing(t*2)/2;}return 1-easing((1-t)*2)/2;};}"},ti={code:"function reactNativeReanimated_EasingJs22(t){const{easing}=this.__closure;if(t<0.5){return easing(t*2)/2;}return 1-easing((1-t)*2)/2;}"},ni=function(){const e=function(e){return function(){const t=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2};return t.__closure={easing:e},t.__workletHash=0xab36e9b348e,t.__initData=ti,t}()};return e.__closure={},e.__workletHash=0xbe507f3ed54,e.__initData=ei,e}(),ri={code:"function steps_reactNativeReanimated_EasingJs23(n=10,roundToNextStep=true){return function(t){'worklet';const value=Math.min(Math.max(t,0),1)*n;if(roundToNextStep){return Math.ceil(value)/n;}return Math.floor(value)/n;};}"},ii={code:"function reactNativeReanimated_EasingJs24(t){const{n,roundToNextStep}=this.__closure;const value=Math.min(Math.max(t,0),1)*n;if(roundToNextStep){return Math.ceil(value)/n;}return Math.floor(value)/n;}"},oi={linear:Ar,ease:wr,quad:Sr,cubic:kr,poly:Or,sin:Mr,circle:Dr,exp:Br,elastic:Nr,back:Vr,bounce:Hr,bezier:Yr,bezierFn:Qr,steps:function(){const e=function(e=10,t=!0){return function(){const n=function(n){const r=Math.min(Math.max(n,0),1)*e;return t?Math.ceil(r)/e:Math.floor(r)/e};return n.__closure={n:e,roundToNextStep:t},n.__workletHash=8357878766723,n.__initData=ii,n}()};return e.__closure={},e.__workletHash=0xdc2af410382,e.__initData=ri,e}(),in:Jr,out:$r,inOut:ni},ai=Symbol("easingName");for(const[e,t]of Object.entries(oi))Object.defineProperty(t,ai,{value:e,configurable:!1,enumerable:!1,writable:!1});const si=oi;function li(){return!!y()&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}const ci=li(),ui={jsValue:ci,uiValue:et(ci),setEnabled(e){ui.jsValue=e,ui.uiValue.value=e}},hi={code:"function isAffineMatrixFlat_reactNativeReanimated_matrixUtilsJs1(x){return Array.isArray(x)&&x.length===16&&x.every(function(element){return typeof element==='number'&&!isNaN(element);});}"},di=function(){const e=function(e){return Array.isArray(e)&&16===e.length&&e.every((e=>"number"==typeof e&&!isNaN(e)))};return e.__closure={},e.__workletHash=0xd3b93720873,e.__initData=hi,e}(),fi={code:"function isAffineMatrix_reactNativeReanimated_matrixUtilsJs2(x){return Array.isArray(x)&&x.length===4&&x.every(function(row){return Array.isArray(row)&&row.length===4&&row.every(function(element){return typeof element==='number'&&!isNaN(element);});});}"},pi=function(){const e=function(e){return Array.isArray(e)&&4===e.length&&e.every((e=>Array.isArray(e)&&4===e.length&&e.every((e=>"number"==typeof e&&!isNaN(e)))))};return e.__closure={},e.__workletHash=5469063891828,e.__initData=fi,e}(),mi={code:"function flatten_reactNativeReanimated_matrixUtilsJs3(matrix){return matrix.flat();}"},gi=function(){const e=function(e){return e.flat()};return e.__closure={},e.__workletHash=0xa0a63ceceed,e.__initData=mi,e}(),yi={code:"function unflatten_reactNativeReanimated_matrixUtilsJs4(m){return[[m[0],m[1],m[2],m[3]],[m[4],m[5],m[6],m[7]],[m[8],m[9],m[10],m[11]],[m[12],m[13],m[14],m[15]]];}"},vi=function(){const e=function(e){return[[e[0],e[1],e[2],e[3]],[e[4],e[5],e[6],e[7]],[e[8],e[9],e[10],e[11]],[e[12],e[13],e[14],e[15]]]};return e.__closure={},e.__workletHash=0xdfc53cfb7a6,e.__initData=yi,e}(),bi={code:"function maybeFlattenMatrix_reactNativeReanimated_matrixUtilsJs5(matrix){const{isAffineMatrix,flatten}=this.__closure;return isAffineMatrix(matrix)?flatten(matrix):matrix;}"},Ai=function(){const e=function(e){return pi(e)?gi(e):e};return e.__closure={isAffineMatrix:pi,flatten:gi},e.__workletHash=4631559778503,e.__initData=bi,e}(),xi={code:"function multiplyMatrices_reactNativeReanimated_matrixUtilsJs6(a,b){return[[a[0][0]*b[0][0]+a[0][1]*b[1][0]+a[0][2]*b[2][0]+a[0][3]*b[3][0],a[0][0]*b[0][1]+a[0][1]*b[1][1]+a[0][2]*b[2][1]+a[0][3]*b[3][1],a[0][0]*b[0][2]+a[0][1]*b[1][2]+a[0][2]*b[2][2]+a[0][3]*b[3][2],a[0][0]*b[0][3]+a[0][1]*b[1][3]+a[0][2]*b[2][3]+a[0][3]*b[3][3]],[a[1][0]*b[0][0]+a[1][1]*b[1][0]+a[1][2]*b[2][0]+a[1][3]*b[3][0],a[1][0]*b[0][1]+a[1][1]*b[1][1]+a[1][2]*b[2][1]+a[1][3]*b[3][1],a[1][0]*b[0][2]+a[1][1]*b[1][2]+a[1][2]*b[2][2]+a[1][3]*b[3][2],a[1][0]*b[0][3]+a[1][1]*b[1][3]+a[1][2]*b[2][3]+a[1][3]*b[3][3]],[a[2][0]*b[0][0]+a[2][1]*b[1][0]+a[2][2]*b[2][0]+a[2][3]*b[3][0],a[2][0]*b[0][1]+a[2][1]*b[1][1]+a[2][2]*b[2][1]+a[2][3]*b[3][1],a[2][0]*b[0][2]+a[2][1]*b[1][2]+a[2][2]*b[2][2]+a[2][3]*b[3][2],a[2][0]*b[0][3]+a[2][1]*b[1][3]+a[2][2]*b[2][3]+a[2][3]*b[3][3]],[a[3][0]*b[0][0]+a[3][1]*b[1][0]+a[3][2]*b[2][0]+a[3][3]*b[3][0],a[3][0]*b[0][1]+a[3][1]*b[1][1]+a[3][2]*b[2][1]+a[3][3]*b[3][1],a[3][0]*b[0][2]+a[3][1]*b[1][2]+a[3][2]*b[2][2]+a[3][3]*b[3][2],a[3][0]*b[0][3]+a[3][1]*b[1][3]+a[3][2]*b[2][3]+a[3][3]*b[3][3]]];}"},wi=function(){const e=function(e,t){return[[e[0][0]*t[0][0]+e[0][1]*t[1][0]+e[0][2]*t[2][0]+e[0][3]*t[3][0],e[0][0]*t[0][1]+e[0][1]*t[1][1]+e[0][2]*t[2][1]+e[0][3]*t[3][1],e[0][0]*t[0][2]+e[0][1]*t[1][2]+e[0][2]*t[2][2]+e[0][3]*t[3][2],e[0][0]*t[0][3]+e[0][1]*t[1][3]+e[0][2]*t[2][3]+e[0][3]*t[3][3]],[e[1][0]*t[0][0]+e[1][1]*t[1][0]+e[1][2]*t[2][0]+e[1][3]*t[3][0],e[1][0]*t[0][1]+e[1][1]*t[1][1]+e[1][2]*t[2][1]+e[1][3]*t[3][1],e[1][0]*t[0][2]+e[1][1]*t[1][2]+e[1][2]*t[2][2]+e[1][3]*t[3][2],e[1][0]*t[0][3]+e[1][1]*t[1][3]+e[1][2]*t[2][3]+e[1][3]*t[3][3]],[e[2][0]*t[0][0]+e[2][1]*t[1][0]+e[2][2]*t[2][0]+e[2][3]*t[3][0],e[2][0]*t[0][1]+e[2][1]*t[1][1]+e[2][2]*t[2][1]+e[2][3]*t[3][1],e[2][0]*t[0][2]+e[2][1]*t[1][2]+e[2][2]*t[2][2]+e[2][3]*t[3][2],e[2][0]*t[0][3]+e[2][1]*t[1][3]+e[2][2]*t[2][3]+e[2][3]*t[3][3]],[e[3][0]*t[0][0]+e[3][1]*t[1][0]+e[3][2]*t[2][0]+e[3][3]*t[3][0],e[3][0]*t[0][1]+e[3][1]*t[1][1]+e[3][2]*t[2][1]+e[3][3]*t[3][1],e[3][0]*t[0][2]+e[3][1]*t[1][2]+e[3][2]*t[2][2]+e[3][3]*t[3][2],e[3][0]*t[0][3]+e[3][1]*t[1][3]+e[3][2]*t[2][3]+e[3][3]*t[3][3]]]};return e.__closure={},e.__workletHash=5391881567303,e.__initData=xi,e}(),Ci={code:"function subtractMatrices_reactNativeReanimated_matrixUtilsJs7(maybeFlatA,maybeFlatB){const{isAffineMatrixFlat,maybeFlattenMatrix,unflatten}=this.__closure;const isFlatOnStart=isAffineMatrixFlat(maybeFlatA);const a=maybeFlattenMatrix(maybeFlatA);const b=maybeFlattenMatrix(maybeFlatB);const c=a.map(function(_,i){return a[i]-b[i];});return isFlatOnStart?c:unflatten(c);}"},Si=function(){const e=function(e,t){const n=di(e),r=Ai(e),i=Ai(t),o=r.map(((e,t)=>r[t]-i[t]));return n?o:vi(o)};return e.__closure={isAffineMatrixFlat:di,maybeFlattenMatrix:Ai,unflatten:vi},e.__workletHash=0xcc64605ce59,e.__initData=Ci,e}(),Ei={code:"function addMatrices_reactNativeReanimated_matrixUtilsJs8(maybeFlatA,maybeFlatB){const{isAffineMatrixFlat,maybeFlattenMatrix,unflatten}=this.__closure;const isFlatOnStart=isAffineMatrixFlat(maybeFlatA);const a=maybeFlattenMatrix(maybeFlatA);const b=maybeFlattenMatrix(maybeFlatB);const c=a.map(function(_,i){return a[i]+b[i];});return isFlatOnStart?c:unflatten(c);}"},ki=function(){const e=function(e,t){const n=di(e),r=Ai(e),i=Ai(t),o=r.map(((e,t)=>r[t]+i[t]));return n?o:vi(o)};return e.__closure={isAffineMatrixFlat:di,maybeFlattenMatrix:Ai,unflatten:vi},e.__workletHash=0xdf95fa74225,e.__initData=Ei,e}(),Ti={code:"function scaleMatrix_reactNativeReanimated_matrixUtilsJs9(maybeFlatA,scalar){const{isAffineMatrixFlat,maybeFlattenMatrix,unflatten}=this.__closure;const isFlatOnStart=isAffineMatrixFlat(maybeFlatA);const a=maybeFlattenMatrix(maybeFlatA);const b=a.map(function(x){return x*scalar;});return isFlatOnStart?b:unflatten(b);}"},Ii=function(){const e=function(e,t){const n=di(e),r=Ai(e).map((e=>e*t));return n?r:vi(r)};return e.__closure={isAffineMatrixFlat:di,maybeFlattenMatrix:Ai,unflatten:vi},e.__workletHash=0xe81d6b243e0,e.__initData=Ti,e}(),Oi={code:"function getRotationMatrix_reactNativeReanimated_matrixUtilsJs10(angle,axis='z'){const cos=Math.cos(angle);const sin=Math.sin(angle);switch(axis){case'z':return[[cos,sin,0,0],[-sin,cos,0,0],[0,0,1,0],[0,0,0,1]];case'y':return[[cos,0,-sin,0],[0,1,0,0],[sin,0,cos,0],[0,0,0,1]];case'x':return[[1,0,0,0],[0,cos,sin,0],[0,-sin,cos,0],[0,0,0,1]];}}"},Ri=function(){const e=function(e,t="z"){const n=Math.cos(e),r=Math.sin(e);switch(t){case"z":return[[n,r,0,0],[-r,n,0,0],[0,0,1,0],[0,0,0,1]];case"y":return[[n,0,-r,0],[0,1,0,0],[r,0,n,0],[0,0,0,1]];case"x":return[[1,0,0,0],[0,n,r,0],[0,-r,n,0],[0,0,0,1]]}};return e.__closure={},e.__workletHash=0xaaa8357fdbb,e.__initData=Oi,e}(),Mi={code:"function norm3d_reactNativeReanimated_matrixUtilsJs11(x,y,z){return Math.sqrt(x*x+y*y+z*z);}"},Pi=function(){const e=function(e,t,n){return Math.sqrt(e*e+t*t+n*n)};return e.__closure={},e.__workletHash=927634218413,e.__initData=Mi,e}(),Di={code:"function transposeMatrix_reactNativeReanimated_matrixUtilsJs12(matrix){const{flatten}=this.__closure;const m=flatten(matrix);return[[m[0],m[4],m[8],m[12]],[m[1],m[5],m[9],m[13]],[m[2],m[6],m[10],m[14]],[m[3],m[7],m[11],m[15]]];}"},ji=function(){const e=function(e){const t=gi(e);return[[t[0],t[4],t[8],t[12]],[t[1],t[5],t[9],t[13]],[t[2],t[6],t[10],t[14]],[t[3],t[7],t[11],t[15]]]};return e.__closure={flatten:gi},e.__workletHash=0xb8ea1f97fdc,e.__initData=Di,e}(),Bi={code:'function assertVectorsHaveEqualLengths_reactNativeReanimated_matrixUtilsJs13(a,b){const{__DEV__}=this.__closure;if(__DEV__&&a.length!==b.length){throw new ReanimatedError("Cannot calculate inner product of two vectors of different lengths. Length of "+a.toString()+" is "+a.length+" and length of "+b.toString()+" is "+b.length+".");}}'},Li=function(){const e=function(e,t){};return e.__closure={__DEV__:!1},e.__workletHash=8857834171738,e.__initData=Bi,e}(),Fi={code:"function innerProduct_reactNativeReanimated_matrixUtilsJs14(a,b){const{assertVectorsHaveEqualLengths}=this.__closure;assertVectorsHaveEqualLengths(a,b);return a.reduce(function(acc,_,i){return acc+a[i]*b[i];},0);}"},Ni=function(){const e=function(e,t){return Li(e,t),e.reduce(((n,r,i)=>n+e[i]*t[i]),0)};return e.__closure={assertVectorsHaveEqualLengths:Li},e.__workletHash=0xbc883104f6a,e.__initData=Fi,e}(),_i={code:"function projection_reactNativeReanimated_matrixUtilsJs15(u,a){const{assertVectorsHaveEqualLengths,innerProduct}=this.__closure;assertVectorsHaveEqualLengths(u,a);const s=innerProduct(u,a)/innerProduct(u,u);return u.map(function(e){return e*s;});}"},zi=function(){const e=function(e,t){Li(e,t);const n=Ni(e,t)/Ni(e,e);return e.map((e=>e*n))};return e.__closure={assertVectorsHaveEqualLengths:Li,innerProduct:Ni},e.__workletHash=0xf5f56090a8,e.__initData=_i,e}(),Vi={code:"function subtractVectors_reactNativeReanimated_matrixUtilsJs16(a,b){const{assertVectorsHaveEqualLengths}=this.__closure;assertVectorsHaveEqualLengths(a,b);return a.map(function(_,i){return a[i]-b[i];});}"},Ui=function(){const e=function(e,t){return Li(e,t),e.map(((n,r)=>e[r]-t[r]))};return e.__closure={assertVectorsHaveEqualLengths:Li},e.__workletHash=0xbf5bdd5fec3,e.__initData=Vi,e}(),Hi={code:"function scaleVector_reactNativeReanimated_matrixUtilsJs17(u,a){return u.map(function(e){return e*a;});}"},qi=function(){const e=function(e,t){return e.map((e=>e*t))};return e.__closure={},e.__workletHash=8263229383304,e.__initData=Hi,e}(),Gi={code:"function gramSchmidtAlgorithm_reactNativeReanimated_matrixUtilsJs18(matrix){const{subtractVectors,projection,scaleVector,innerProduct,transposeMatrix}=this.__closure;const[a0,a1,a2,a3]=matrix;const u0=a0;const u1=subtractVectors(a1,projection(u0,a1));const u2=subtractVectors(subtractVectors(a2,projection(u0,a2)),projection(u1,a2));const u3=subtractVectors(subtractVectors(subtractVectors(a3,projection(u0,a3)),projection(u1,a3)),projection(u2,a3));const[e0,e1,e2,e3]=[u0,u1,u2,u3].map(function(u){return scaleVector(u,1/Math.sqrt(innerProduct(u,u)));});const rotationMatrix=[[e0[0],e1[0],e2[0],e3[0]],[e0[1],e1[1],e2[1],e3[1]],[e0[2],e1[2],e2[2],e3[2]],[e0[3],e1[3],e2[3],e3[3]]];const skewMatrix=[[innerProduct(e0,a0),innerProduct(e0,a1),innerProduct(e0,a2),innerProduct(e0,a3)],[0,innerProduct(e1,a1),innerProduct(e1,a2),innerProduct(e1,a3)],[0,0,innerProduct(e2,a2),innerProduct(e2,a3)],[0,0,0,innerProduct(e3,a3)]];return{rotationMatrix:transposeMatrix(rotationMatrix),skewMatrix:transposeMatrix(skewMatrix)};}"},Yi=function(){const e=function(e){const[t,n,r,i]=e,o=t,a=Ui(n,zi(o,n)),s=Ui(Ui(r,zi(o,r)),zi(a,r)),l=Ui(Ui(Ui(i,zi(o,i)),zi(a,i)),zi(s,i)),[c,u,h,d]=[o,a,s,l].map((e=>qi(e,1/Math.sqrt(Ni(e,e))))),f=[[c[0],u[0],h[0],d[0]],[c[1],u[1],h[1],d[1]],[c[2],u[2],h[2],d[2]],[c[3],u[3],h[3],d[3]]],p=[[Ni(c,t),Ni(c,n),Ni(c,r),Ni(c,i)],[0,Ni(u,n),Ni(u,r),Ni(u,i)],[0,0,Ni(h,r),Ni(h,i)],[0,0,0,Ni(d,i)]];return{rotationMatrix:ji(f),skewMatrix:ji(p)}};return e.__closure={subtractVectors:Ui,projection:zi,scaleVector:qi,innerProduct:Ni,transposeMatrix:ji},e.__workletHash=0xc6100516636,e.__initData=Gi,e}(),Wi={code:"function decomposeMatrix_reactNativeReanimated_matrixUtilsJs19(unknownTypeMatrix){const{maybeFlattenMatrix,norm3d,gramSchmidtAlgorithm}=this.__closure;const matrix=maybeFlattenMatrix(unknownTypeMatrix);if(matrix[15]===0){throw new ReanimatedError('Invalid transform matrix.');}matrix.forEach(function(_,i){return matrix[i]/=matrix[15];});const translationMatrix=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[matrix[12],matrix[13],matrix[14],1]];const sx=matrix[15]*norm3d(matrix[0],matrix[4],matrix[8]);const sy=matrix[15]*norm3d(matrix[1],matrix[5],matrix[9]);const sz=matrix[15]*norm3d(matrix[2],matrix[6],matrix[10]);const scaleMatrix=[[sx,0,0,0],[0,sy,0,0],[0,0,sz,0],[0,0,0,1]];const rotationAndSkewMatrix=[[matrix[0]/sx,matrix[1]/sx,matrix[2]/sx,0],[matrix[4]/sy,matrix[5]/sy,matrix[6]/sy,0],[matrix[8]/sz,matrix[9]/sz,matrix[10]/sz,0],[0,0,0,1]];const{rotationMatrix:rotationMatrix,skewMatrix:skewMatrix}=gramSchmidtAlgorithm(rotationAndSkewMatrix);return{translationMatrix:translationMatrix,scaleMatrix:scaleMatrix,rotationMatrix:rotationMatrix,skewMatrix:skewMatrix};}"},Qi=function(){const e=function(e){const t=Ai(e);if(0===t[15])throw new l("Invalid transform matrix.");t.forEach(((e,n)=>t[n]/=t[15]));const n=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[t[12],t[13],t[14],1]],r=t[15]*Pi(t[0],t[4],t[8]),i=t[15]*Pi(t[1],t[5],t[9]),o=t[15]*Pi(t[2],t[6],t[10]),a=[[r,0,0,0],[0,i,0,0],[0,0,o,0],[0,0,0,1]],s=[[t[0]/r,t[1]/r,t[2]/r,0],[t[4]/i,t[5]/i,t[6]/i,0],[t[8]/o,t[9]/o,t[10]/o,0],[0,0,0,1]],{rotationMatrix:c,skewMatrix:u}=Yi(s);return{translationMatrix:n,scaleMatrix:a,rotationMatrix:c,skewMatrix:u}};return e.__closure={maybeFlattenMatrix:Ai,norm3d:Pi,gramSchmidtAlgorithm:Yi},e.__workletHash=0xab4c59cfe28,e.__initData=Wi,e}(),Xi={code:"function decomposeMatrixIntoMatricesAndAngles_reactNativeReanimated_matrixUtilsJs20(matrix){const{decomposeMatrix}=this.__closure;const{scaleMatrix:scaleMatrix,rotationMatrix:rotationMatrix,translationMatrix:translationMatrix,skewMatrix:skewMatrix}=decomposeMatrix(matrix);const sinRy=-rotationMatrix[0][2];const ry=Math.asin(sinRy);let rx;let rz;if(sinRy===1||sinRy===-1){rz=0;rx=Math.atan2(sinRy*rotationMatrix[0][1],sinRy*rotationMatrix[0][2]);}else{rz=Math.atan2(rotationMatrix[0][1],rotationMatrix[0][0]);rx=Math.atan2(rotationMatrix[1][2],rotationMatrix[2][2]);}return{scaleMatrix:scaleMatrix,rotationMatrix:rotationMatrix,translationMatrix:translationMatrix,skewMatrix:skewMatrix,rx:rx||0,ry:ry||0,rz:rz||0};}"},Ji=function(){const e=function(e){const{scaleMatrix:t,rotationMatrix:n,translationMatrix:r,skewMatrix:i}=Qi(e),o=-n[0][2],a=Math.asin(o);let s,l;return 1===o||-1===o?(l=0,s=Math.atan2(o*n[0][1],o*n[0][2])):(l=Math.atan2(n[0][1],n[0][0]),s=Math.atan2(n[1][2],n[2][2])),{scaleMatrix:t,rotationMatrix:n,translationMatrix:r,skewMatrix:i,rx:s||0,ry:a||0,rz:l||0}};return e.__closure={decomposeMatrix:Qi},e.__workletHash=1937983127392,e.__initData=Xi,e}();let Zi=!1;const Ki=p(),$i={originX:!0,originY:!0,width:!0,height:!0,borderRadius:!0,globalOriginX:!0,globalOriginY:!0,opacity:!0,transform:!0,backgroundColor:!0},eo={code:"function isValidLayoutAnimationProp_reactNativeReanimated_utilJs1(prop){const{LAYOUT_ANIMATION_SUPPORTED_PROPS}=this.__closure;return prop in LAYOUT_ANIMATION_SUPPORTED_PROPS;}"},to=function(){const e=function(e){return e in $i};return e.__closure={LAYOUT_ANIMATION_SUPPORTED_PROPS:$i},e.__workletHash=6433531961713,e.__initData=eo,e}(),no={code:"function assertEasingIsWorklet_reactNativeReanimated_utilJs2(easing){const{SHOULD_BE_USE_WEB,isWorkletFunction}=this.__closure;if(_WORKLET){return;}if(SHOULD_BE_USE_WEB){return;}if(easing!==null&&easing!==void 0&&easing.factory){return;}if(!isWorkletFunction(easing)){throw new ReanimatedError('The easing function is not a worklet. Please make sure you import `Easing` from react-native-reanimated.');}}"},ro=function(){const e=function(e){if(!(_WORKLET||Ki||e?.factory||x(e)))throw new l("The easing function is not a worklet. Please make sure you import `Easing` from react-native-reanimated.")};return e.__closure={SHOULD_BE_USE_WEB:Ki,isWorkletFunction:x},e.__workletHash=0xc373a3eea32,e.__initData=no,e}();function io(e){Zi=!0;const t=e();return Zi=!1,t}const oo={code:"function recognizePrefixSuffix_reactNativeReanimated_utilJs3(value){if(typeof value==='string'){var _match$;const match=value.match(/([A-Za-z]*)(-?\\d*\\.?\\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/);if(!match){throw new ReanimatedError(\"Couldn't parse animation value.\");}const prefix=match[1];const suffix=match[4];const number=match[2]+((_match$=match[3])!==null&&_match$!==void 0?_match$:'');return{prefix:prefix,suffix:suffix,strippedValue:parseFloat(number)};}else{return{strippedValue:value};}}"},ao=function(){const e=function(e){if("string"==typeof e){const t=e.match(/([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/);if(!t)throw new l("Couldn't parse animation value.");const n=t[1],r=t[4],i=t[2]+(t[3]??"");return{prefix:n,suffix:r,strippedValue:parseFloat(i)}}return{strippedValue:e}};return e.__closure={},e.__workletHash=0xfa2f60db350,e.__initData=oo,e}(),so=ui.uiValue,lo={code:"function getReduceMotionFromConfig_reactNativeReanimated_utilJs4(config){const{ReduceMotion,isReduceMotionOnUI}=this.__closure;return!config||config===ReduceMotion.System?isReduceMotionOnUI.value:config===ReduceMotion.Always;}"},co=function(){const e=function(e){return e&&e!==k.System?e===k.Always:so.value};return e.__closure={ReduceMotion:k,isReduceMotionOnUI:so},e.__workletHash=9218816022141,e.__initData=lo,e}(),uo={code:"function getReduceMotionForAnimation_reactNativeReanimated_utilJs5(config){const{getReduceMotionFromConfig}=this.__closure;if(!config){return undefined;}return getReduceMotionFromConfig(config);}"},ho=function(){const e=function(e){if(e)return co(e)};return e.__closure={getReduceMotionFromConfig:co},e.__workletHash=4956957273507,e.__initData=uo,e}(),fo={code:"function applyProgressToMatrix_reactNativeReanimated_utilJs6(progress,a,b){const{addMatrices,scaleMatrix,subtractMatrices}=this.__closure;return addMatrices(a,scaleMatrix(subtractMatrices(b,a),progress));}"},po=function(){const e=function(e,t,n){return ki(t,Ii(Si(n,t),e))};return e.__closure={addMatrices:ki,scaleMatrix:Ii,subtractMatrices:Si},e.__workletHash=0xb5bf74110c9,e.__initData=fo,e}(),mo={code:"function applyProgressToNumber_reactNativeReanimated_utilJs7(progress,a,b){return a+progress*(b-a);}"},go=function(){const e=function(e,t,n){return t+e*(n-t)};return e.__closure={},e.__workletHash=7101026900556,e.__initData=mo,e}(),yo={code:"function decorateAnimation_reactNativeReanimated_utilJs8(animation){const{getReduceMotionFromConfig,recognizePrefixSuffix,isColor,toLinearSpace,convertToRGBA,clampRGBA,rgbaArrayToRGBAColor,toGammaSpace,decomposeMatrixIntoMatricesAndAngles,applyProgressToMatrix,applyProgressToNumber,getRotationMatrix,multiplyMatrices,flatten,isAffineMatrixFlat}=this.__closure;const baseOnStart=animation.onStart;const baseOnFrame=animation.onFrame;if(animation.isHigherOrder){animation.onStart=function(animation,value,timestamp,previousAnimation){if(animation.reduceMotion===undefined){animation.reduceMotion=getReduceMotionFromConfig();}return baseOnStart(animation,value,timestamp,previousAnimation);};return;}const animationCopy=Object.assign({},animation);delete animationCopy.callback;const prefNumberSuffOnStart=function(animation,value,timestamp,previousAnimation){var _animation$__prefix,_animation$__suffix;const{prefix:prefix,suffix:suffix,strippedValue:strippedValue}=recognizePrefixSuffix(value);animation.__prefix=prefix;animation.__suffix=suffix;animation.strippedCurrent=strippedValue;const{strippedValue:strippedToValue}=recognizePrefixSuffix(animation.toValue);animation.current=strippedValue;animation.startValue=strippedValue;animation.toValue=strippedToValue;if(previousAnimation&&previousAnimation!==animation){const{prefix:paPrefix,suffix:paSuffix,strippedValue:paStrippedValue}=recognizePrefixSuffix(previousAnimation.current);previousAnimation.current=paStrippedValue;previousAnimation.__prefix=paPrefix;previousAnimation.__suffix=paSuffix;}baseOnStart(animation,strippedValue,timestamp,previousAnimation);animation.current=((_animation$__prefix=animation.__prefix)!==null&&_animation$__prefix!==void 0?_animation$__prefix:'')+animation.current+((_animation$__suffix=animation.__suffix)!==null&&_animation$__suffix!==void 0?_animation$__suffix:'');if(previousAnimation&&previousAnimation!==animation){var _previousAnimation$__,_previousAnimation$__2;previousAnimation.current=((_previousAnimation$__=previousAnimation.__prefix)!==null&&_previousAnimation$__!==void 0?_previousAnimation$__:'')+previousAnimation.current+((_previousAnimation$__2=previousAnimation.__suffix)!==null&&_previousAnimation$__2!==void 0?_previousAnimation$__2:'');}};const prefNumberSuffOnFrame=function(animation,timestamp){var _animation$__prefix2,_animation$__suffix2;animation.current=animation.strippedCurrent;const res=baseOnFrame(animation,timestamp);animation.strippedCurrent=animation.current;animation.current=((_animation$__prefix2=animation.__prefix)!==null&&_animation$__prefix2!==void 0?_animation$__prefix2:'')+animation.current+((_animation$__suffix2=animation.__suffix)!==null&&_animation$__suffix2!==void 0?_animation$__suffix2:'');return res;};const tab=['R','G','B','A'];const colorOnStart=function(animation,value,timestamp,previousAnimation){let RGBAValue;let RGBACurrent;let RGBAToValue;const res=[];if(isColor(value)){RGBACurrent=toLinearSpace(convertToRGBA(animation.current));RGBAValue=toLinearSpace(convertToRGBA(value));if(animation.toValue){RGBAToValue=toLinearSpace(convertToRGBA(animation.toValue));}}tab.forEach(function(i,index){animation[i]=Object.assign({},animationCopy);animation[i].current=RGBACurrent[index];animation[i].toValue=RGBAToValue?RGBAToValue[index]:undefined;animation[i].onStart(animation[i],RGBAValue[index],timestamp,previousAnimation?previousAnimation[i]:undefined);res.push(animation[i].current);});animation.unroundedCurrent=res;clampRGBA(res);animation.current=rgbaArrayToRGBAColor(toGammaSpace(res));};const colorOnFrame=function(animation,timestamp){const res=[];let finished=true;animation.current=animation.nonscaledCurrent;tab.forEach(function(i){const result=animation[i].onFrame(animation[i],timestamp);finished=finished&&result;res.push(animation[i].current);});clampRGBA(res);animation.nonscaledCurrent=res;animation.current=rgbaArrayToRGBAColor(toGammaSpace(res));return finished;};const transformationMatrixOnStart=function(animation,value,timestamp,previousAnimation){const toValue=animation.toValue;animation.startMatrices=decomposeMatrixIntoMatricesAndAngles(value);animation.stopMatrices=decomposeMatrixIntoMatricesAndAngles(toValue);animation[0]=Object.assign({},animationCopy);animation[0].current=0;animation[0].toValue=100;animation[0].onStart(animation[0],0,timestamp,previousAnimation?previousAnimation[0]:undefined);animation.current=value;};const transformationMatrixOnFrame=function(animation,timestamp){let finished=true;const result=animation[0].onFrame(animation[0],timestamp);finished=finished&&result;const progress=animation[0].current/100;const transforms=['translationMatrix','scaleMatrix','skewMatrix'];const mappedTransforms=[];transforms.forEach(function(key,_){return mappedTransforms.push(applyProgressToMatrix(progress,animation.startMatrices[key],animation.stopMatrices[key]));});const[currentTranslation,currentScale,skewMatrix]=mappedTransforms;const rotations=['x','y','z'];const mappedRotations=[];rotations.forEach(function(key,_){const angle=applyProgressToNumber(progress,animation.startMatrices['r'+key],animation.stopMatrices['r'+key]);mappedRotations.push(getRotationMatrix(angle,key));});const[rotationMatrixX,rotationMatrixY,rotationMatrixZ]=mappedRotations;const rotationMatrix=multiplyMatrices(rotationMatrixX,multiplyMatrices(rotationMatrixY,rotationMatrixZ));const updated=flatten(multiplyMatrices(multiplyMatrices(currentScale,multiplyMatrices(skewMatrix,rotationMatrix)),currentTranslation));animation.current=updated;return finished;};const arrayOnStart=function(animation,value,timestamp,previousAnimation){value.forEach(function(v,i){animation[i]=Object.assign({},animationCopy);animation[i].current=v;animation[i].toValue=animation.toValue[i];animation[i].onStart(animation[i],v,timestamp,previousAnimation?previousAnimation[i]:undefined);});animation.current=[...value];};const arrayOnFrame=function(animation,timestamp){let finished=true;animation.current.forEach(function(_,i){const result=animation[i].onFrame(animation[i],timestamp);finished=finished&&result;animation.current[i]=animation[i].current;});return finished;};const objectOnStart=function(animation,value,timestamp,previousAnimation){for(const key in value){animation[key]=Object.assign({},animationCopy);animation[key].onStart=animation.onStart;animation[key].current=value[key];animation[key].toValue=animation.toValue[key];animation[key].onStart(animation[key],value[key],timestamp,previousAnimation?previousAnimation[key]:undefined);}animation.current=value;};const objectOnFrame=function(animation,timestamp){let finished=true;const newObject={};for(const key in animation.current){const result=animation[key].onFrame(animation[key],timestamp);finished=finished&&result;newObject[key]=animation[key].current;}animation.current=newObject;return finished;};animation.onStart=function(animation,value,timestamp,previousAnimation){if(animation.reduceMotion===undefined){animation.reduceMotion=getReduceMotionFromConfig();}if(animation.reduceMotion){if(animation.toValue!==undefined){animation.current=animation.toValue;}else{baseOnStart(animation,value,timestamp,previousAnimation);}animation.startTime=0;animation.onFrame=function(){return true;};return;}if(isColor(value)){colorOnStart(animation,value,timestamp,previousAnimation);animation.onFrame=colorOnFrame;return;}else if(isAffineMatrixFlat(value)){transformationMatrixOnStart(animation,value,timestamp,previousAnimation);animation.onFrame=transformationMatrixOnFrame;return;}else if(Array.isArray(value)){arrayOnStart(animation,value,timestamp,previousAnimation);animation.onFrame=arrayOnFrame;return;}else if(typeof value==='string'){prefNumberSuffOnStart(animation,value,timestamp,previousAnimation);animation.onFrame=prefNumberSuffOnFrame;return;}else if(typeof value==='object'&&value!==null){objectOnStart(animation,value,timestamp,previousAnimation);animation.onFrame=objectOnFrame;return;}baseOnStart(animation,value,timestamp,previousAnimation);};}"},vo=function(){const e=function(e){const t=e.onStart,n=e.onFrame;if(e.isHigherOrder)return void(e.onStart=(e,n,r,i)=>(void 0===e.reduceMotion&&(e.reduceMotion=co()),t(e,n,r,i)));const r=Object.assign({},e);delete r.callback;const i=(e,t)=>{e.current=e.strippedCurrent;const r=n(e,t);return e.strippedCurrent=e.current,e.current=(e.__prefix??"")+e.current+(e.__suffix??""),r},o=["R","G","B","A"],a=(e,t)=>{const n=[];let r=!0;return e.current=e.nonscaledCurrent,o.forEach((i=>{const o=e[i].onFrame(e[i],t);r=r&&o,n.push(e[i].current)})),pn(n),e.nonscaledCurrent=n,e.current=Wn(Zn(n)),r},s=(e,t)=>{let n=!0;const r=e[0].onFrame(e[0],t);n=n&&r;const i=e[0].current/100,o=[];["translationMatrix","scaleMatrix","skewMatrix"].forEach(((t,n)=>o.push(po(i,e.startMatrices[t],e.stopMatrices[t]))));const[a,s,l]=o,c=[];["x","y","z"].forEach(((t,n)=>{const r=go(i,e.startMatrices["r"+t],e.stopMatrices["r"+t]);c.push(Ri(r,t))}));const[u,h,d]=c,f=wi(u,wi(h,d)),p=gi(wi(wi(s,wi(l,f)),a));return e.current=p,n},l=(e,t)=>{let n=!0;return e.current.forEach(((r,i)=>{const o=e[i].onFrame(e[i],t);n=n&&o,e.current[i]=e[i].current})),n},c=(e,t)=>{let n=!0;const r={};for(const i in e.current){const o=e[i].onFrame(e[i],t);n=n&&o,r[i]=e[i].current}return e.current=r,n};e.onStart=(e,n,u,h)=>(void 0===e.reduceMotion&&(e.reduceMotion=co()),e.reduceMotion?(void 0!==e.toValue?e.current=e.toValue:t(e,n,u,h),e.startTime=0,void(e.onFrame=()=>!0)):_n(n)?(((e,t,n,i)=>{let a,s,l;const c=[];_n(t)&&(s=Xn(Gn(e.current)),a=Xn(Gn(t)),e.toValue&&(l=Xn(Gn(e.toValue)))),o.forEach(((t,o)=>{e[t]=Object.assign({},r),e[t].current=s[o],e[t].toValue=l?l[o]:void 0,e[t].onStart(e[t],a[o],n,i?i[t]:void 0),c.push(e[t].current)})),e.unroundedCurrent=c,pn(c),e.current=Wn(Zn(c))})(e,n,u,h),void(e.onFrame=a)):di(n)?(((e,t,n,i)=>{const o=e.toValue;e.startMatrices=Ji(t),e.stopMatrices=Ji(o),e[0]=Object.assign({},r),e[0].current=0,e[0].toValue=100,e[0].onStart(e[0],0,n,i?i[0]:void 0),e.current=t})(e,n,u,h),void(e.onFrame=s)):Array.isArray(n)?(((e,t,n,i)=>{t.forEach(((t,o)=>{e[o]=Object.assign({},r),e[o].current=t,e[o].toValue=e.toValue[o],e[o].onStart(e[o],t,n,i?i[o]:void 0)})),e.current=[...t]})(e,n,u,h),void(e.onFrame=l)):"string"==typeof n?(((e,n,r,i)=>{const{prefix:o,suffix:a,strippedValue:s}=ao(n);e.__prefix=o,e.__suffix=a,e.strippedCurrent=s;const{strippedValue:l}=ao(e.toValue);if(e.current=s,e.startValue=s,e.toValue=l,i&&i!==e){const{prefix:e,suffix:t,strippedValue:n}=ao(i.current);i.current=n,i.__prefix=e,i.__suffix=t}t(e,s,r,i),e.current=(e.__prefix??"")+e.current+(e.__suffix??""),i&&i!==e&&(i.current=(i.__prefix??"")+i.current+(i.__suffix??""))})(e,n,u,h),void(e.onFrame=i)):"object"==typeof n&&null!==n?(((e,t,n,i)=>{for(const o in t)e[o]=Object.assign({},r),e[o].onStart=e.onStart,e[o].current=t[o],e[o].toValue=e.toValue[o],e[o].onStart(e[o],t[o],n,i?i[o]:void 0);e.current=t})(e,n,u,h),void(e.onFrame=c)):void t(e,n,u,h))};return e.__closure={getReduceMotionFromConfig:co,recognizePrefixSuffix:ao,isColor:_n,toLinearSpace:Xn,convertToRGBA:Gn,clampRGBA:pn,rgbaArrayToRGBAColor:Wn,toGammaSpace:Zn,decomposeMatrixIntoMatricesAndAngles:Ji,applyProgressToMatrix:po,applyProgressToNumber:go,getRotationMatrix:Ri,multiplyMatrices:wi,flatten:gi,isAffineMatrixFlat:di},e.__workletHash=6884630105099,e.__initData=yo,e}(),bo={code:"function defineAnimation_reactNativeReanimated_utilJs9(starting,factory){const{IN_STYLE_UPDATER,decorateAnimation,SHOULD_BE_USE_WEB}=this.__closure;if(IN_STYLE_UPDATER){return starting;}const create=function(){'worklet';const animation=factory();decorateAnimation(animation);return animation;};if(_WORKLET||SHOULD_BE_USE_WEB){return create();}create.__isAnimationDefinition=true;return create;}"},Ao={code:"function reactNativeReanimated_utilJs10(){const{factory,decorateAnimation}=this.__closure;const animation=factory();decorateAnimation(animation);return animation;}"},xo=function(){const e=function(e,t){if(Zi)return e;const n=function(){const e=function(){const e=t();return vo(e),e};return e.__closure={factory:t,decorateAnimation:vo},e.__workletHash=0xccd0f4bd386,e.__initData=Ao,e}();return _WORKLET||Ki?n():(n.__isAnimationDefinition=!0,n)};return e.__closure={IN_STYLE_UPDATER:Zi,decorateAnimation:vo,SHOULD_BE_USE_WEB:Ki},e.__workletHash=7567361008935,e.__initData=bo,e}(),wo={code:"function cancelAnimationNative_reactNativeReanimated_utilJs11(sharedValue){const{runOnUI}=this.__closure;if(_WORKLET){sharedValue.value=sharedValue.value;}else{runOnUI(function(){'worklet';sharedValue.value=sharedValue.value;})();}}"},Co={code:"function reactNativeReanimated_utilJs12(){const{sharedValue}=this.__closure;sharedValue.value=sharedValue.value;}"},So=function(){const e=function(e){_WORKLET?e.value=e.value:Pe(function(){const t=function(){e.value=e.value};return t.__closure={sharedValue:e},t.__workletHash=0xb170e05b4b3,t.__initData=Co,t}())()};return e.__closure={runOnUI:Pe},e.__workletHash=5585762772979,e.__initData=wo,e}(),Eo=Ki?function(e){e.value=e.value}:So,ko={code:"function reactNativeReanimated_timingJs1(toValue,userConfig,callback){const{__DEV__,assertEasingIsWorklet,defineAnimation,Easing,getReduceMotionForAnimation}=this.__closure;if(__DEV__&&userConfig!==null&&userConfig!==void 0&&userConfig.easing){assertEasingIsWorklet(userConfig.easing);}return defineAnimation(toValue,function(){'worklet';const config={duration:300,easing:Easing.inOut(Easing.quad)};if(userConfig){Object.keys(userConfig).forEach(function(key){return config[key]=userConfig[key];});}function timing(animation,now){const{toValue:toValue,startTime:startTime,startValue:startValue}=animation;const runtime=now-startTime;if(runtime>=config.duration){animation.startTime=0;animation.current=toValue;return true;}const progress=animation.easing(runtime/config.duration);animation.current=startValue+(toValue-startValue)*progress;return false;}function onStart(animation,value,now,previousAnimation){if(previousAnimation&&previousAnimation.type==='timing'&&previousAnimation.toValue===toValue&&previousAnimation.startTime){animation.startTime=previousAnimation.startTime;animation.startValue=previousAnimation.startValue;}else{animation.startTime=now;animation.startValue=value;}animation.current=value;if(typeof config.easing==='object'){animation.easing=config.easing.factory();}else{animation.easing=config.easing;}}return{type:'timing',onFrame:timing,onStart:onStart,progress:0,toValue:toValue,startValue:0,startTime:0,easing:function(){return 0;},current:toValue,callback:callback,reduceMotion:getReduceMotionForAnimation(userConfig===null||userConfig===void 0?void 0:userConfig.reduceMotion)};});}"},To={code:"function reactNativeReanimated_timingJs2(){const{Easing,userConfig,toValue,callback,getReduceMotionForAnimation}=this.__closure;var _userConfig;const config={duration:300,easing:Easing.inOut(Easing.quad)};if(userConfig){Object.keys(userConfig).forEach(function(key){return config[key]=userConfig[key];});}function timing(animation,now){const{toValue:toValue,startTime:startTime,startValue:startValue}=animation;const runtime=now-startTime;if(runtime>=config.duration){animation.startTime=0;animation.current=toValue;return true;}const progress=animation.easing(runtime/config.duration);animation.current=startValue+(toValue-startValue)*progress;return false;}function onStart(animation,value,now,previousAnimation){if(previousAnimation&&previousAnimation.type==='timing'&&previousAnimation.toValue===toValue&&previousAnimation.startTime){animation.startTime=previousAnimation.startTime;animation.startValue=previousAnimation.startValue;}else{animation.startTime=now;animation.startValue=value;}animation.current=value;if(typeof config.easing==='object'){animation.easing=config.easing.factory();}else{animation.easing=config.easing;}}return{type:'timing',onFrame:timing,onStart:onStart,progress:0,toValue:toValue,startValue:0,startTime:0,easing:function(){return 0;},current:toValue,callback:callback,reduceMotion:getReduceMotionForAnimation((_userConfig=userConfig)===null||_userConfig===void 0?void 0:_userConfig.reduceMotion)};}"},Io=function(){const e=function(e,t,n){return xo(e,function(){const r=function(){const r={duration:300,easing:si.inOut(si.quad)};return t&&Object.keys(t).forEach((e=>r[e]=t[e])),{type:"timing",onFrame:function(e,t){const{toValue:n,startTime:i,startValue:o}=e,a=t-i;if(a>=r.duration)return e.startTime=0,e.current=n,!0;const s=e.easing(a/r.duration);return e.current=o+(n-o)*s,!1},onStart:function(t,n,i,o){o&&"timing"===o.type&&o.toValue===e&&o.startTime?(t.startTime=o.startTime,t.startValue=o.startValue):(t.startTime=i,t.startValue=n),t.current=n,"object"==typeof r.easing?t.easing=r.easing.factory():t.easing=r.easing},progress:0,toValue:e,startValue:0,startTime:0,easing:()=>0,current:e,callback:n,reduceMotion:ho(t?.reduceMotion)}};return r.__closure={Easing:si,userConfig:t,toValue:e,callback:n,getReduceMotionForAnimation:ho},r.__workletHash=0xb5767c8ce9a,r.__initData=To,r}())};return e.__closure={__DEV__:!1,assertEasingIsWorklet:ro,defineAnimation:xo,Easing:si,getReduceMotionForAnimation:ho},e.__workletHash=0xd17d56414b8,e.__initData=ko,e}(),Oo={code:"function resolvePath_reactNativeReanimated_styleAnimationJs1(obj,path){const keys=Array.isArray(path)?path:[path];return keys.reduce(function(acc,current){if(Array.isArray(acc)&&typeof current==='number'){return acc[current];}else if(acc!==null&&typeof acc==='object'&¤t in acc){return acc[current];}return undefined;},obj);}"},Ro=function(){const e=function(e,t){return(Array.isArray(t)?t:[t]).reduce(((e,t)=>Array.isArray(e)&&"number"==typeof t||null!==e&&"object"==typeof e&&t in e?e[t]:void 0),e)};return e.__closure={},e.__workletHash=0xa0236b1b95a,e.__initData=Oo,e}(),Mo={code:"function setPath_reactNativeReanimated_styleAnimationJs2(obj,path,value){const keys=Array.isArray(path)?path:[path];let currObj=obj;for(let i=0;i0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index0){const currentAnimation=animationsToCheck.pop();if(Array.isArray(currentAnimation)){for(const element of currentAnimation){animationsToCheck.push(element);}}else if(typeof currentAnimation==='object'&¤tAnimation.onStart===undefined){for(const value of Object.values(currentAnimation)){animationsToCheck.push(value);}}else{const currentStyleAnimation=currentAnimation;if(!currentStyleAnimation.finished&¤tStyleAnimation.callback){currentStyleAnimation.callback(false);}}}}};return{isHigherOrder:true,onFrame:onFrame,onStart:onStart,current:{},styleAnimations:styleAnimations,callback:callback};});}"},jo={code:"function reactNativeReanimated_styleAnimationJs4(){const{ColorProperties,setPath,processColor,styleAnimations,resolvePath,__DEV__,logger,isValidLayoutAnimationProp,withTiming}=this.__closure;const onFrame=function(animation,now){let stillGoing=false;const entriesToCheck=[{value:animation.styleAnimations,path:[]}];while(entriesToCheck.length>0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index0){const currentAnimation=animationsToCheck.pop();if(Array.isArray(currentAnimation)){for(const element of currentAnimation){animationsToCheck.push(element);}}else if(typeof currentAnimation==='object'&¤tAnimation.onStart===undefined){for(const value of Object.values(currentAnimation)){animationsToCheck.push(value);}}else{const currentStyleAnimation=currentAnimation;if(!currentStyleAnimation.finished&¤tStyleAnimation.callback){currentStyleAnimation.callback(false);}}}}};return{isHigherOrder:true,onFrame:onFrame,onStart:onStart,current:{},styleAnimations:styleAnimations,callback:callback};}"},Bo=function(){const e=function(e){return xo({},function(){const t=function(){return{isHigherOrder:!0,onFrame:(e,t)=>{let n=!1;const r=[{value:e.styleAnimations,path:[]}];for(;r.length>0;){const i=r.pop();if(Array.isArray(i.value))for(let e=0;e{const o=[{value:e,path:[]}];for(;o.length>0;){const e=o.pop();if(Array.isArray(e.value))for(let t=0;t{if(!t){const t=[e];for(;t.length>0;){const e=t.pop();if(Array.isArray(e))for(const n of e)t.push(n);else if("object"==typeof e&&void 0===e.onStart)for(const n of Object.values(e))t.push(n);else{const t=e;!t.finished&&t.callback&&t.callback(!1)}}}}}};return t.__closure={ColorProperties:gn,setPath:Po,processColor:Vn,styleAnimations:e,resolvePath:Ro,__DEV__:!1,logger:X,isValidLayoutAnimationProp:to,withTiming:Io},t.__workletHash=2043192133177,t.__initData=jo,t}())};return e.__closure={defineAnimation:xo,ColorProperties:gn,setPath:Po,processColor:Vn,resolvePath:Ro,__DEV__:!1,logger:X,isValidLayoutAnimationProp:to,withTiming:Io},e.__workletHash=0xdb35f00a4da,e.__initData=Do,e}(),Lo=1e9,Fo={code:"function startObservingProgress_reactNativeReanimated_animationsManagerJs1(tag,sharedValue,animationType){const{LayoutAnimationType,TAG_OFFSET}=this.__closure;const isSharedTransition=animationType===LayoutAnimationType.SHARED_ELEMENT_TRANSITION;sharedValue.addListener(tag+TAG_OFFSET,function(){global._notifyAboutProgress(tag,sharedValue.value,isSharedTransition);});}"},No=function(){const e=function(e,t,r){const i=r===v.SHARED_ELEMENT_TRANSITION;t.addListener(e+Lo,(()=>{n.g._notifyAboutProgress(e,t.value,i)}))};return e.__closure={LayoutAnimationType:v,TAG_OFFSET:Lo},e.__workletHash=0xbbc4d4d70e1,e.__initData=Fo,e}(),_o={code:"function stopObservingProgress_reactNativeReanimated_animationsManagerJs2(tag,sharedValue,removeView=false){const{TAG_OFFSET}=this.__closure;sharedValue.removeListener(tag+TAG_OFFSET);global._notifyAboutEnd(tag,removeView);}"},zo=function(){const e=function(e,t,r=!1){t.removeListener(e+Lo),n.g._notifyAboutEnd(e,r)};return e.__closure={TAG_OFFSET:Lo},e.__workletHash=7600341837897,e.__initData=_o,e}(),Vo={code:"function createLayoutAnimationManager_reactNativeReanimated_animationsManagerJs3(){const{LayoutAnimationType,makeMutableUI,stopObservingProgress,withStyleAnimation,startObservingProgress}=this.__closure;const currentAnimationForTag=new Map();const mutableValuesForTag=new Map();return{start:function(tag,type,yogaValues,config){if(type===LayoutAnimationType.SHARED_ELEMENT_TRANSITION_PROGRESS){global.ProgressTransitionRegister.onTransitionStart(tag,yogaValues);return;}const style=config(yogaValues);let currentAnimation=style.animations;const previousAnimation=currentAnimationForTag.get(tag);if(previousAnimation){currentAnimation={...previousAnimation,...style.animations};}currentAnimationForTag.set(tag,currentAnimation);let value=mutableValuesForTag.get(tag);if(value===undefined){value=makeMutableUI(style.initialValues);mutableValuesForTag.set(tag,value);}else{stopObservingProgress(tag,value);value._value=style.initialValues;}const animation=withStyleAnimation(currentAnimation);animation.callback=function(finished){if(finished){currentAnimationForTag.delete(tag);mutableValuesForTag.delete(tag);const shouldRemoveView=type===LayoutAnimationType.EXITING;stopObservingProgress(tag,value,shouldRemoveView);}style.callback&&style.callback(finished===undefined?false:finished);};startObservingProgress(tag,value,type);value.value=animation;},stop:function(tag){const value=mutableValuesForTag.get(tag);if(!value){return;}stopObservingProgress(tag,value);}};}"},Uo=function(){const e=function(){const e=new Map,t=new Map;return{start(r,i,o,a){if(i===v.SHARED_ELEMENT_TRANSITION_PROGRESS)return void n.g.ProgressTransitionRegister.onTransitionStart(r,o);const s=a(o);let l=s.animations;const c=e.get(r);c&&(l=Object.assign({},c,s.animations)),e.set(r,l);let u=t.get(r);void 0===u?(u=Xe(s.initialValues),t.set(r,u)):(zo(r,u),u._value=s.initialValues);const h=Bo(l);h.callback=n=>{if(n){e.delete(r),t.delete(r);const n=i===v.EXITING;zo(r,u,n)}s.callback&&s.callback(void 0!==n&&n)},No(r,u,i),u.value=h},stop(e){const n=t.get(e);n&&zo(e,n)}}};return e.__closure={LayoutAnimationType:v,makeMutableUI:Xe,stopObservingProgress:zo,withStyleAnimation:Bo,startObservingProgress:No},e.__workletHash=0xecb2fc0b7f9,e.__initData=Vo,e}(),Ho={code:"function reactNativeReanimated_animationsManagerJs4(){const{createLayoutAnimationManager}=this.__closure;global.LayoutAnimationsManager=createLayoutAnimationManager();}"};Fe(function(){const e=function(){n.g.LayoutAnimationsManager=Uo()};return e.__closure={createLayoutAnimationManager:Uo},e.__workletHash=0xb97c90554dc,e.__initData=Ho,e}())();var qo=n(20311),Go=n.n(qo),Yo=n(74848);const Wo=g(),Qo=(0,i.createContext)(null);function Xo(e){const t=(0,i.useRef)(e.shouldSkip);(0,i.useEffect)((()=>{t.current=!1}),[t]);const n=Wo?Qo:Qo.Provider;return(0,Yo.jsx)(n,{value:t,children:e.children})}class Jo extends i.Component{getMaybeWrappedChildren(){return i.Children.count(this.props.children)>1&&this.props.skipExiting?i.Children.map(this.props.children,(e=>(0,Yo.jsx)(Jo,{skipExiting:!0,children:e}))):this.props.children}setShouldAnimateExiting(){if(1===i.Children.count(this.props.children)){const n=this;n&&(e=n,t=!this.props.skipExiting,$.setShouldAnimateExitingForTag(e,t))}var e,t}componentWillUnmount(){void 0!==this.props.skipExiting&&this.setShouldAnimateExiting()}render(){const e=this.getMaybeWrappedChildren();return void 0===this.props.skipEntering?e:(0,Yo.jsx)(Xo,{shouldSkip:this.props.skipEntering,children:e})}}const Zo={UI_THREAD_PROPS_WHITELIST:{opacity:!0,transform:!0,backgroundColor:!0,borderRightColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderStartColor:!0,borderTopColor:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0},NATIVE_THREAD_PROPS_WHITELIST:{borderBottomWidth:!0,borderEndWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderStartWidth:!0,borderTopWidth:!0,borderWidth:!0,bottom:!0,boxShadow:!0,flex:!0,flexGrow:!0,flexShrink:!0,height:!0,left:!0,margin:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,padding:!0,paddingBottom:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,right:!0,start:!0,top:!0,width:!0,zIndex:!0,borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,fontSize:!0,lineHeight:!0,textShadowRadius:!0,textShadowOffset:!0,letterSpacing:!0,aspectRatio:!0,columnGap:!0,end:!0,flexBasis:!0,gap:!0,rowGap:!0,display:!0,backfaceVisibility:!0,overflow:!0,resizeMode:!0,fontStyle:!0,fontWeight:!0,textAlign:!0,textDecorationLine:!0,fontFamily:!0,textAlignVertical:!0,fontVariant:!0,textDecorationStyle:!0,textTransform:!0,writingDirection:!0,alignContent:!0,alignItems:!0,alignSelf:!0,direction:!0,flexDirection:!0,flexWrap:!0,justifyContent:!0,position:!0,color:!0,tintColor:!0,shadowColor:!0,placeholderTextColor:!0}},Ko=p();function $o(){var e,t;!function(){for(const e in Zo.NATIVE_THREAD_PROPS_WHITELIST)if(e in Zo.UI_THREAD_PROPS_WHITELIST)throw new l(`Property \`${e}\` was whitelisted both as UI and native prop. Please remove it from one of the lists.`)}(),e=Object.keys(Zo.UI_THREAD_PROPS_WHITELIST),t=Object.keys(Zo.NATIVE_THREAD_PROPS_WHITELIST),Dt||$.configureProps(e,t)}function ea(e){const t=Object.keys(Zo.NATIVE_THREAD_PROPS_WHITELIST).length;Zo.NATIVE_THREAD_PROPS_WHITELIST=Object.assign({},Zo.NATIVE_THREAD_PROPS_WHITELIST,e),t!==Object.keys(Zo.NATIVE_THREAD_PROPS_WHITELIST).length&&$o()}function ta(e){const t=Object.keys(Zo.UI_THREAD_PROPS_WHITELIST).length;Zo.UI_THREAD_PROPS_WHITELIST=Object.assign({},Zo.UI_THREAD_PROPS_WHITELIST,e),t!==Object.keys(Zo.UI_THREAD_PROPS_WHITELIST).length&&$o()}function na(e){q(e),Ko||je(q)(e)}const ra=new Set;function ia(e){const t=e.uiViewClassName,n=e.validAttributes;if(!ra.has(t)){const e={};Object.keys(n).forEach((t=>{t in Zo.NATIVE_THREAD_PROPS_WHITELIST||t in Zo.UI_THREAD_PROPS_WHITELIST||(e[t]=!0)})),ta(e),ra.add(t)}}function oa(){throw new l("Trying to call `getShadowNodeWrapperFromRef` on web.")}$o();class aa{custom(){return this}progressAnimation(){return this}duration(){return this}reduceMotion(){return this}defaultTransitionType(){return this}registerTransition(){}unregisterTransition(){}getReduceMotion(){return k.System}static custom(){return new aa}static duration(){return new aa}static progressAnimation(){return new aa}static defaultTransitionType(){return new aa}static reduceMotion(){return new aa}}let sa,la,ca;try{sa=n(75617).A}catch(e){}try{la=n(6927).kb}catch(e){}try{ca=n(6927).Xw}catch(e){}n.g._makeShareableClone=()=>{throw new l("`_makeShareableClone` should never be called from React runtime.")},n.g._scheduleHostFunctionOnJS=()=>{throw new l("`_scheduleOnJS` should never be called from React runtime.")},n.g._scheduleOnRuntime=()=>{throw new l("`_scheduleOnRuntime` should never be called from React runtime.")};const ua=(e,t,n)=>{if(t){const r=t.getAnimatableRef?t.getAnimatableRef():t,[i]=Object.keys(e).reduce(((t,n)=>{const r=e[n];return t["function"==typeof r?1:0][n]=r,t}),[{},{}]);if("function"==typeof r.setNativeProps)ha(r,i,n);else if(void 0!==sa&&void 0!==r.style)da(r,i,n);else if(Object.keys(r.props).length>0)Object.keys(r.props).forEach((e=>{if(!i[e])return;const t=e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()));r._touchableNode.setAttribute(t,i[e])}));else{const e="className"in r?r?.className:"";X.warn(`It's not possible to manipulate the component ${e}`)}}},ha=(e,t,n)=>{if(n){const n={};for(const e in t)r=e,Zo.NATIVE_THREAD_PROPS_WHITELIST[r]&&(n[e]=t[e]);e.setNativeProps?.(n)}var r;const i=e.previousStyle?e.previousStyle:{},o=Object.assign({},i,t);e.previousStyle=o,e.setNativeProps?.({style:o})},da=(e,t,n)=>{const r=e.previousStyle?e.previousStyle:{},i=Object.assign({},r,t);e.previousStyle=i;const o=sa(i);Array.isArray(o.transform)&&void 0!==la&&(o.transform=la(o.transform)),void 0!==ca&&(o.textShadowColor||o.textShadowRadius||o.textShadowOffset)&&(o.textShadow=ca({textShadowColor:o.textShadowColor,textShadowOffset:o.textShadowOffset,textShadowRadius:o.textShadowRadius}));for(const t in o)n?"INPUT"===e.nodeName&&"text"===t?e.value=o[t]:e.setAttribute(t,o[t]):e.style[t]=o[t]},fa=new WeakMap;function pa(e,t){e.style.transform="",e.style.position="absolute",e.style.top=`${t.top}px`,e.style.left=`${t.left}px`,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.style.margin="0px",e.parentElement&&function(e,t,n){const r=t.getBoundingClientRect(),i=parseInt(getComputedStyle(t).borderTopWidth),o=parseInt(getComputedStyle(t).borderLeftWidth),a=e.getBoundingClientRect();a.top!==n.top&&(e.style.top=n.top-r.top-i+"px"),a.left!==n.left&&(e.style.left=n.left-r.left-o+"px")}(e,e.parentElement,t)}const ma={linear:[0,0,1,1],ease:[.42,0,1,1],quad:[.11,0,.5,0],cubic:[.32,0,.67,0],sin:[.12,0,.39,0],circle:[.55,0,1,.45],exp:[.7,0,.84,0]};function ga(e){return`cubic-bezier(${ma[e].toString()})`}function ya(e){let t=`@keyframes ${e.name} { `;for(const[n,r]of Object.entries(e.style)){t+=`${"from"===n?0:"to"===n?100:n}% { `;for(const[e,n]of Object.entries(r))if("easing"!==e)"originX"!==e?"originY"!==e?"transform"===e?(t+="transform:",n.forEach((e=>{for(const[n,r]of Object.entries(e))t+=` ${n}(${r})`})),t+="; "):t+=`${e}: ${n}; `:t+=`top: ${n}px; `:t+=`left: ${n}px; `;else{let e="linear";n in ma?e=n:n.name in ma&&(e=n.name),t+=`animation-timing-function: cubic-bezier(${ma[e].toString()});`}t+="} "}return t+="} ",t}const va=.6,ba={BounceIn:{name:"BounceIn",style:{0:{transform:[{scale:0}]},55:{transform:[{scale:1.2}]},70:{transform:[{scale:.9}]},85:{transform:[{scale:1.1}]},100:{transform:[{scale:1}]}},duration:va},BounceInRight:{name:"BounceInRight",style:{0:{transform:[{translateX:"100vw"}]},55:{transform:[{translateX:"-20px"}]},70:{transform:[{translateX:"10px"}]},85:{transform:[{translateX:"-10px"}]},100:{transform:[{translateX:"0px"}]}},duration:va},BounceInLeft:{name:"BounceInLeft",style:{0:{transform:[{translateX:"-100vw"}]},55:{transform:[{translateX:"20px"}]},70:{transform:[{translateX:"-10px"}]},85:{transform:[{translateX:"10px"}]},100:{transform:[{translateX:"0px"}]}},duration:va},BounceInUp:{name:"BounceInUp",style:{0:{transform:[{translateY:"-100vh"}]},55:{transform:[{translateY:"20px"}]},70:{transform:[{translateY:"-10px"}]},85:{transform:[{translateY:"10px"}]},100:{transform:[{translateY:"0px"}]}},duration:va},BounceInDown:{name:"BounceInDown",style:{0:{transform:[{translateY:"100vh"}]},55:{transform:[{translateY:"-20px"}]},70:{transform:[{translateY:"10px"}]},85:{transform:[{translateY:"-10px"}]},100:{transform:[{translateY:"0px"}]}},duration:va}},Aa={BounceOut:{name:"BounceOut",style:{0:{transform:[{scale:1}]},15:{transform:[{scale:1.1}]},30:{transform:[{scale:.9}]},45:{transform:[{scale:1.2}]},100:{transform:[{scale:.1}]}},duration:va},BounceOutRight:{name:"BounceOutRight",style:{0:{transform:[{translateX:"0px"}]},15:{transform:[{translateX:"-10px"}]},30:{transform:[{translateX:"10px"}]},45:{transform:[{translateX:"-20px"}]},100:{transform:[{translateX:"100vh"}]}},duration:va},BounceOutLeft:{name:"BounceOutLeft",style:{0:{transform:[{translateX:"0px"}]},15:{transform:[{translateX:"10px"}]},30:{transform:[{translateX:"-10px"}]},45:{transform:[{translateX:"20px"}]},100:{transform:[{translateX:"-100vh"}]}},duration:va},BounceOutUp:{name:"BounceOutUp",style:{0:{transform:[{translateY:"0px"}]},15:{transform:[{translateY:"10px"}]},30:{transform:[{translateY:"-10px"}]},45:{transform:[{translateY:"20px"}]},100:{transform:[{translateY:"-100vh"}]}},duration:va},BounceOutDown:{name:"BounceOutDown",style:{0:{transform:[{translateY:"0px"}]},15:{transform:[{translateY:"-10px"}]},30:{transform:[{translateY:"10px"}]},45:{transform:[{translateY:"-20px"}]},100:{transform:[{translateY:"100vh"}]}},duration:va}},xa={BounceIn:{style:ya(ba.BounceIn),duration:ba.BounceIn.duration},BounceInRight:{style:ya(ba.BounceInRight),duration:ba.BounceInRight.duration},BounceInLeft:{style:ya(ba.BounceInLeft),duration:ba.BounceInLeft.duration},BounceInUp:{style:ya(ba.BounceInUp),duration:ba.BounceInUp.duration},BounceInDown:{style:ya(ba.BounceInDown),duration:ba.BounceInDown.duration}},wa={BounceOut:{style:ya(Aa.BounceOut),duration:Aa.BounceOut.duration},BounceOutRight:{style:ya(Aa.BounceOutRight),duration:Aa.BounceOutRight.duration},BounceOutLeft:{style:ya(Aa.BounceOutLeft),duration:Aa.BounceOutLeft.duration},BounceOutUp:{style:ya(Aa.BounceOutUp),duration:Aa.BounceOutUp.duration},BounceOutDown:{style:ya(Aa.BounceOutDown),duration:Aa.BounceOutDown.duration}},Ca=.3,Sa={FadeIn:{name:"FadeIn",style:{0:{opacity:0},100:{opacity:1}},duration:Ca},FadeInRight:{name:"FadeInRight",style:{0:{opacity:0,transform:[{translateX:"25px"}]},100:{opacity:1,transform:[{translateX:"0px"}]}},duration:Ca},FadeInLeft:{name:"FadeInLeft",style:{0:{opacity:0,transform:[{translateX:"-25px"}]},100:{opacity:1,transform:[{translateX:"0px"}]}},duration:Ca},FadeInUp:{name:"FadeInUp",style:{0:{opacity:0,transform:[{translateY:"-25px"}]},100:{opacity:1,transform:[{translateY:"0px"}]}},duration:Ca},FadeInDown:{name:"FadeInDown",style:{0:{opacity:0,transform:[{translateY:"25px"}]},100:{opacity:1,transform:[{translateY:"0px"}]}},duration:Ca}},Ea={FadeOut:{name:"FadeOut",style:{0:{opacity:1},100:{opacity:0}},duration:Ca},FadeOutRight:{name:"FadeOutRight",style:{0:{opacity:1,transform:[{translateX:"0px"}]},100:{opacity:0,transform:[{translateX:"25px"}]}},duration:Ca},FadeOutLeft:{name:"FadeOutLeft",style:{0:{opacity:1,transform:[{translateX:"0px"}]},100:{opacity:0,transform:[{translateX:"-25px"}]}},duration:Ca},FadeOutUp:{name:"FadeOutUp",style:{0:{opacity:1,transform:[{translateY:"0px"}]},100:{opacity:0,transform:[{translateY:"-25px"}]}},duration:Ca},FadeOutDown:{name:"FadeOutDown",style:{0:{opacity:1,transform:[{translateY:"0px"}]},100:{opacity:0,transform:[{translateY:"25px"}]}},duration:Ca}},ka={FadeIn:{style:ya(Sa.FadeIn),duration:Sa.FadeIn.duration},FadeInRight:{style:ya(Sa.FadeInRight),duration:Sa.FadeInRight.duration},FadeInLeft:{style:ya(Sa.FadeInLeft),duration:Sa.FadeInLeft.duration},FadeInUp:{style:ya(Sa.FadeInUp),duration:Sa.FadeInUp.duration},FadeInDown:{style:ya(Sa.FadeInDown),duration:Sa.FadeInDown.duration}},Ta={FadeOut:{style:ya(Ea.FadeOut),duration:Ea.FadeOut.duration},FadeOutRight:{style:ya(Ea.FadeOutRight),duration:Ea.FadeOutRight.duration},FadeOutLeft:{style:ya(Ea.FadeOutLeft),duration:Ea.FadeOutLeft.duration},FadeOutUp:{style:ya(Ea.FadeOutUp),duration:Ea.FadeOutUp.duration},FadeOutDown:{style:ya(Ea.FadeOutDown),duration:Ea.FadeOutDown.duration}},Ia=.3,Oa={FlipInYRight:{name:"FlipInYRight",style:{0:{transform:[{perspective:"500px",rotateY:"90deg",translateX:"100%"}]},100:{transform:[{perspective:"500px",rotateY:"0deg",translateX:"0%"}]}},duration:Ia},FlipInYLeft:{name:"FlipInYLeft",style:{0:{transform:[{perspective:"500px",rotateY:"-90deg",translateX:"-100%"}]},100:{transform:[{perspective:"500px",rotateY:"0deg",translateX:"0%"}]}},duration:Ia},FlipInXUp:{name:"FlipInXUp",style:{0:{transform:[{perspective:"500px",rotateX:"90deg",translateY:"-100%"}]},100:{transform:[{perspective:"500px",rotateX:"0deg",translateY:"0%"}]}},duration:Ia},FlipInXDown:{name:"FlipInXDown",style:{0:{transform:[{perspective:"500px",rotateX:"-90deg",translateY:"100%"}]},100:{transform:[{perspective:"500px",rotateX:"0deg",translateY:"0%"}]}},duration:Ia},FlipInEasyX:{name:"FlipInEasyX",style:{0:{transform:[{perspective:"500px",rotateX:"90deg"}]},100:{transform:[{perspective:"500px",rotateX:"0deg"}]}},duration:Ia},FlipInEasyY:{name:"FlipInEasyY",style:{0:{transform:[{perspective:"500px",rotateY:"90deg"}]},100:{transform:[{perspective:"500px",rotateY:"0deg"}]}},duration:Ia}},Ra={FlipOutYRight:{name:"FlipOutYRight",style:{0:{transform:[{perspective:"500px",rotateY:"0deg",translateX:"0%"}]},100:{transform:[{perspective:"500px",rotateY:"90deg",translateX:"100%"}]}},duration:Ia},FlipOutYLeft:{name:"FlipOutYLeft",style:{0:{transform:[{perspective:"500px",rotateY:"0deg",translateX:"0%"}]},100:{transform:[{perspective:"500px",rotateY:"-90deg",translateX:"-100%"}]}},duration:Ia},FlipOutXUp:{name:"FlipOutXUp",style:{0:{transform:[{perspective:"500px",rotateX:"0deg",translateY:"0%"}]},100:{transform:[{perspective:"500px",rotateX:"90deg",translateY:"-100%"}]}},duration:Ia},FlipOutXDown:{name:"FlipOutXDown",style:{0:{transform:[{perspective:"500px",rotateX:"0deg",translateY:"0%"}]},100:{transform:[{perspective:"500px",rotateX:"-90deg",translateY:"100%"}]}},duration:Ia},FlipOutEasyX:{name:"FlipOutEasyX",style:{0:{transform:[{perspective:"500px",rotateX:"0deg"}]},100:{transform:[{perspective:"500px",rotateX:"90deg"}]}},duration:Ia},FlipOutEasyY:{name:"FlipOutEasyY",style:{0:{transform:[{perspective:"500px",rotateY:"0deg"}]},100:{transform:[{perspective:"500px",rotateY:"90deg"}]}},duration:Ia}},Ma={FlipInYRight:{style:ya(Oa.FlipInYRight),duration:Oa.FlipInYRight.duration},FlipInYLeft:{style:ya(Oa.FlipInYLeft),duration:Oa.FlipInYLeft.duration},FlipInXUp:{style:ya(Oa.FlipInXUp),duration:Oa.FlipInXUp.duration},FlipInXDown:{style:ya(Oa.FlipInXDown),duration:Oa.FlipInXDown.duration},FlipInEasyX:{style:ya(Oa.FlipInEasyX),duration:Oa.FlipInEasyX.duration},FlipInEasyY:{style:ya(Oa.FlipInEasyY),duration:Oa.FlipInEasyY.duration}},Pa={FlipOutYRight:{style:ya(Ra.FlipOutYRight),duration:Ra.FlipOutYRight.duration},FlipOutYLeft:{style:ya(Ra.FlipOutYLeft),duration:Ra.FlipOutYLeft.duration},FlipOutXUp:{style:ya(Ra.FlipOutXUp),duration:Ra.FlipOutXUp.duration},FlipOutXDown:{style:ya(Ra.FlipOutXDown),duration:Ra.FlipOutXDown.duration},FlipOutEasyX:{style:ya(Ra.FlipOutEasyX),duration:Ra.FlipOutEasyX.duration},FlipOutEasyY:{style:ya(Ra.FlipOutEasyY),duration:Ra.FlipOutEasyY.duration}},Da=.3,ja={LightSpeedInRight:{name:"LightSpeedInRight",style:{0:{transform:[{translateX:"100vw",skewX:"-45deg"}],opacity:0},70:{transform:[{skewX:"10deg"}]},85:{transform:[{skewX:"-5deg"}]},100:{transform:[{skewX:"0deg"}]}},duration:Da},LightSpeedInLeft:{name:"LightSpeedInLeft",style:{0:{transform:[{translateX:"-100vw",skewX:"45deg"}],opacity:0},70:{transform:[{skewX:"-10deg"}]},85:{transform:[{skewX:"5deg"}]},100:{transform:[{skewX:"0deg"}]}},duration:Da}},Ba={LightSpeedOutRight:{name:"LightSpeedOutRight",style:{0:{transform:[{translateX:"0vw",skewX:"0deg"}],opacity:1},100:{transform:[{translateX:"100vw",skewX:"-45deg"}],opacity:0}},duration:Da},LightSpeedOutLeft:{name:"LightSpeedOutLeft",style:{0:{transform:[{translateX:"0vw",skew:"0deg"}],opacity:1},100:{transform:[{translateX:"-100vw",skew:"45deg"}],opacity:0}},duration:Da}},La={LightSpeedInRight:{style:ya(ja.LightSpeedInRight),duration:ja.LightSpeedInRight.duration},LightSpeedInLeft:{style:ya(ja.LightSpeedInLeft),duration:ja.LightSpeedInLeft.duration}},Fa={LightSpeedOutRight:{style:ya(Ba.LightSpeedOutRight),duration:Ba.LightSpeedOutRight.duration},LightSpeedOutLeft:{style:ya(Ba.LightSpeedOutLeft),duration:Ba.LightSpeedOutLeft.duration}},Na={PinwheelIn:{name:"PinwheelIn",style:{0:{transform:[{rotate:"5rad",scale:0}],opacity:0},100:{transform:[{rotate:"0deg",scale:1}],opacity:1}},duration:.3},PinwheelOut:{name:"PinwheelOut",style:{0:{transform:[{rotate:"0rad",scale:1}],opacity:1},100:{transform:[{rotate:"5rad",scale:0}],opacity:0}},duration:.3}},_a={PinwheelIn:{style:ya(Na.PinwheelIn),duration:Na.PinwheelIn.duration},PinwheelOut:{style:ya(Na.PinwheelOut),duration:Na.PinwheelOut.duration}},za=.3,Va={RollInLeft:{name:"RollInLeft",style:{0:{transform:[{translateX:"-100vw",rotate:"-180deg"}]},100:{transform:[{translateX:"0vw",rotate:"0deg"}]}},duration:za},RollInRight:{name:"RollInRight",style:{0:{transform:[{translateX:"100vw",rotate:"180deg"}]},100:{transform:[{translateX:"0vw",rotate:"0deg"}]}},duration:za}},Ua={RollOutLeft:{name:"RollOutLeft",style:{0:{transform:[{translateX:"0vw",rotate:"0deg"}]},100:{transform:[{translateX:"-100vw",rotate:"-180deg"}]}},duration:za},RollOutRight:{name:"RollOutRight",style:{0:{transform:[{translateX:"0vw",rotate:"0deg"}]},100:{transform:[{translateX:"100vw",rotate:"180deg"}]}},duration:za}},Ha={RollInLeft:{style:ya(Va.RollInLeft),duration:Va.RollInLeft.duration},RollInRight:{style:ya(Va.RollInRight),duration:Va.RollInRight.duration}},qa={RollOutLeft:{style:ya(Ua.RollOutLeft),duration:Ua.RollOutLeft.duration},RollOutRight:{style:ya(Ua.RollOutRight),duration:Ua.RollOutRight.duration}},Ga=.3,Ya={RotateInDownLeft:{name:"RotateInDownLeft",style:{0:{transform:[{translateX:"-50%",translateY:"-250%",rotate:"-90deg"}],opacity:0},100:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1}},duration:Ga},RotateInDownRight:{name:"RotateInDownRight",style:{0:{transform:[{translateX:"40%",translateY:"-250%",rotate:"90deg"}],opacity:0},100:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1}},duration:Ga},RotateInUpLeft:{name:"RotateInUpLeft",style:{0:{transform:[{translateX:"-40%",translateY:"250%",rotate:"90deg"}],opacity:0},100:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1}},duration:Ga},RotateInUpRight:{name:"RotateInUpRight",style:{0:{transform:[{translateX:"40%",translateY:"250%",rotate:"-90deg"}],opacity:0},100:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1}},duration:Ga}},Wa={RotateOutDownLeft:{name:"RotateOutDownLeft",style:{0:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1},100:{transform:[{translateX:"-40%",translateY:"250%",rotate:"90deg"}],opacity:0}},duration:Ga},RotateOutDownRight:{name:"RotateOutDownRight",style:{0:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1},100:{transform:[{translateX:"40%",translateY:"250%",rotate:"-90deg"}],opacity:0}},duration:Ga},RotateOutUpLeft:{name:"RotateOutUpLeft",style:{0:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1},100:{transform:[{translateX:"-40%",translateY:"-250%",rotate:"-90deg"}],opacity:0}},duration:Ga},RotateOutUpRight:{name:"RotateOutUpRight",style:{0:{transform:[{translateX:"0%",translateY:"0%",rotate:"0deg"}],opacity:1},100:{transform:[{translateX:"40%",translateY:"-250%",rotate:"90deg"}],opacity:0}},duration:Ga}},Qa={RotateInDownLeft:{style:ya(Ya.RotateInDownLeft),duration:Ya.RotateInDownLeft.duration},RotateInDownRight:{style:ya(Ya.RotateInDownRight),duration:Ya.RotateInDownRight.duration},RotateInUpLeft:{style:ya(Ya.RotateInUpLeft),duration:Ya.RotateInUpLeft.duration},RotateInUpRight:{style:ya(Ya.RotateInUpRight),duration:Ya.RotateInUpRight.duration}},Xa={RotateOutDownLeft:{style:ya(Wa.RotateOutDownLeft),duration:Wa.RotateOutDownLeft.duration},RotateOutDownRight:{style:ya(Wa.RotateOutDownRight),duration:Wa.RotateOutDownRight.duration},RotateOutUpLeft:{style:ya(Wa.RotateOutUpLeft),duration:Wa.RotateOutUpLeft.duration},RotateOutUpRight:{style:ya(Wa.RotateOutUpRight),duration:Wa.RotateOutUpRight.duration}},Ja=.3,Za={SlideInRight:{name:"SlideInRight",style:{0:{transform:[{translateX:"100vw"}]},100:{transform:[{translateX:"0%"}]}},duration:Ja},SlideInLeft:{name:"SlideInLeft",style:{0:{transform:[{translateX:"-100vw"}]},100:{transform:[{translateX:"0%"}]}},duration:Ja},SlideInUp:{name:"SlideInUp",style:{0:{transform:[{translateY:"-100vh"}]},100:{transform:[{translateY:"0%"}]}},duration:Ja},SlideInDown:{name:"SlideInDown",style:{0:{transform:[{translateY:"100vh"}]},100:{transform:[{translateY:"0%"}]}},duration:Ja}},Ka={SlideOutRight:{name:"SlideOutRight",style:{0:{transform:[{translateX:"0%"}]},100:{transform:[{translateX:"100vw"}]}},duration:Ja},SlideOutLeft:{name:"SlideOutLeft",style:{0:{transform:[{translateX:"0%"}]},100:{transform:[{translateX:"-100vw"}]}},duration:Ja},SlideOutUp:{name:"SlideOutUp",style:{0:{transform:[{translateY:"0%"}]},100:{transform:[{translateY:"-100vh"}]}},duration:Ja},SlideOutDown:{name:"SlideOutDown",style:{0:{transform:[{translateY:"0%"}]},100:{transform:[{translateY:"100vh"}]}},duration:Ja}},$a={SlideInRight:{style:ya(Za.SlideInRight),duration:Za.SlideInRight.duration},SlideInLeft:{style:ya(Za.SlideInLeft),duration:Za.SlideInLeft.duration},SlideInUp:{style:ya(Za.SlideInUp),duration:Za.SlideInUp.duration},SlideInDown:{style:ya(Za.SlideInDown),duration:Za.SlideInDown.duration}},es={SlideOutRight:{style:ya(Ka.SlideOutRight),duration:Ka.SlideOutRight.duration},SlideOutLeft:{style:ya(Ka.SlideOutLeft),duration:Ka.SlideOutLeft.duration},SlideOutUp:{style:ya(Ka.SlideOutUp),duration:Ka.SlideOutUp.duration},SlideOutDown:{style:ya(Ka.SlideOutDown),duration:Ka.SlideOutDown.duration}},ts=.3,ns={StretchInX:{name:"StretchInX",style:{0:{transform:[{scaleX:0}]},100:{transform:[{scaleX:1}]}},duration:ts},StretchInY:{name:"StretchInY",style:{0:{transform:[{scaleY:0}]},100:{transform:[{scaleY:1}]}},duration:ts}},rs={StretchOutX:{name:"StretchOutX",style:{0:{transform:[{scaleX:1}]},100:{transform:[{scaleX:0}]}},duration:ts},StretchOutY:{name:"StretchOutY",style:{0:{transform:[{scaleY:1}]},100:{transform:[{scaleY:0}]}},duration:ts}},is={StretchInX:{style:ya(ns.StretchInX),duration:ns.StretchInX.duration},StretchInY:{style:ya(ns.StretchInY),duration:ns.StretchInY.duration}},os={StretchOutX:{style:ya(rs.StretchOutX),duration:rs.StretchOutX.duration},StretchOutY:{style:ya(rs.StretchOutY),duration:rs.StretchOutY.duration}},as=.3,ss={ZoomIn:{name:"ZoomIn",style:{0:{transform:[{scale:0}]},100:{transform:[{scale:1}]}},duration:as},ZoomInRotate:{name:"ZoomInRotate",style:{0:{transform:[{scale:0,rotate:"0.3rad"}]},100:{transform:[{scale:1,rotate:"0deg"}]}},duration:as},ZoomInRight:{name:"ZoomInRight",style:{0:{transform:[{translateX:"100vw",scale:0}]},100:{transform:[{translateX:"0%",scale:1}]}},duration:as},ZoomInLeft:{name:"ZoomInLeft",style:{0:{transform:[{translateX:"-100vw",scale:0}]},100:{transform:[{translateX:"0%",scale:1}]}},duration:as},ZoomInUp:{name:"ZoomInUp",style:{0:{transform:[{translateY:"-100vh",scale:0}]},100:{transform:[{translateY:"0%",scale:1}]}},duration:as},ZoomInDown:{name:"ZoomInDown",style:{0:{transform:[{translateY:"100vh",scale:0}]},100:{transform:[{translateY:"0%",scale:1}]}},duration:as},ZoomInEasyUp:{name:"ZoomInEasyUp",style:{0:{transform:[{translateY:"-100%",scale:0}]},100:{transform:[{translateY:"0%",scale:1}]}},duration:as},ZoomInEasyDown:{name:"ZoomInEasyDown",style:{0:{transform:[{translateY:"100%",scale:0}]},100:{transform:[{translateY:"0%",scale:1}]}},duration:as}},ls={ZoomOut:{name:"ZoomOut",style:{0:{transform:[{scale:1}]},100:{transform:[{scale:0}]}},duration:as},ZoomOutRotate:{name:"ZoomOutRotate",style:{0:{transform:[{scale:1,rotate:"0rad"}]},100:{transform:[{scale:0,rotate:"0.3rad"}]}},duration:as},ZoomOutRight:{name:"ZoomOutRight",style:{0:{transform:[{translateX:"0vw",scale:1}]},100:{transform:[{translateX:"100vw",scale:0}]}},duration:as},ZoomOutLeft:{name:"ZoomOutLeft",style:{0:{transform:[{translateX:"0vw",scale:1}]},100:{transform:[{translateX:"-100vw",scale:0}]}},duration:as},ZoomOutUp:{name:"ZoomOutUp",style:{0:{transform:[{translateX:"0vh",scale:1}]},100:{transform:[{translateY:"-100vh",scale:0}]}},duration:as},ZoomOutDown:{name:"ZoomOutDown",style:{0:{transform:[{translateX:"0vh",scale:1}]},100:{transform:[{translateY:"100vh",scale:0}]}},duration:as},ZoomOutEasyUp:{name:"ZoomOutEasyUp",style:{0:{transform:[{translateY:"0%",scale:1}]},100:{transform:[{translateY:"-100%",scale:0}]}},duration:as},ZoomOutEasyDown:{name:"ZoomOutEasyDown",style:{0:{transform:[{translateY:"0%",scale:1}]},100:{transform:[{translateY:"100%",scale:0}]}},duration:as}},cs={ZoomIn:{style:ya(ss.ZoomIn),duration:ss.ZoomIn.duration},ZoomInRotate:{style:ya(ss.ZoomInRotate),duration:ss.ZoomInRotate.duration},ZoomInRight:{style:ya(ss.ZoomInRight),duration:ss.ZoomInRight.duration},ZoomInLeft:{style:ya(ss.ZoomInLeft),duration:ss.ZoomInLeft.duration},ZoomInUp:{style:ya(ss.ZoomInUp),duration:ss.ZoomInUp.duration},ZoomInDown:{style:ya(ss.ZoomInDown),duration:ss.ZoomInDown.duration},ZoomInEasyUp:{style:ya(ss.ZoomInEasyUp),duration:ss.ZoomInEasyUp.duration},ZoomInEasyDown:{style:ya(ss.ZoomInEasyDown),duration:ss.ZoomInEasyDown.duration}},us={ZoomOut:{style:ya(ls.ZoomOut),duration:ls.ZoomOut.duration},ZoomOutRotate:{style:ya(ls.ZoomOutRotate),duration:ls.ZoomOutRotate.duration},ZoomOutRight:{style:ya(ls.ZoomOutRight),duration:ls.ZoomOutRight.duration},ZoomOutLeft:{style:ya(ls.ZoomOutLeft),duration:ls.ZoomOutLeft.duration},ZoomOutUp:{style:ya(ls.ZoomOutUp),duration:ls.ZoomOutUp.duration},ZoomOutDown:{style:ya(ls.ZoomOutDown),duration:ls.ZoomOutDown.duration},ZoomOutEasyUp:{style:ya(ls.ZoomOutEasyUp),duration:ls.ZoomOutEasyUp.duration},ZoomOutEasyDown:{style:ya(ls.ZoomOutEasyDown),duration:ls.ZoomOutEasyDown.duration}};let hs=function(e){return e[e.LINEAR=0]="LINEAR",e[e.SEQUENCED=1]="SEQUENCED",e[e.FADING=2]="FADING",e[e.JUMPING=3]="JUMPING",e[e.CURVED=4]="CURVED",e[e.ENTRY_EXIT=5]="ENTRY_EXIT",e}({});const ds=Object.assign({},Sa,Ea,ba,Aa,Oa,Ra,ns,rs,ss,ls,Za,Ka,ja,Ba,Na,Ya,Wa,Va,Ua),fs=Object.assign({},ka,Ta,xa,wa,Ma,Pa,is,os,cs,us,$a,es,La,Fa,_a,Qa,Xa,Ha,qa),ps="ReanimatedPredefinedWebAnimationsStyle",ms="ReanimatedCustomWebAnimationsStyle",gs=new Map,ys=[];let vs=!1;function bs(e,t){if(!y())return;const n=document.getElementById(ms);if(n.sheet){n.sheet.insertRule(t,0),ys.unshift(e),gs.set(e,0);for(let e=1;e=delayMs||animation.reduceMotion){if(!started){nextAnimation.onStart(nextAnimation,current,now,previousAnimation);animation.previousAnimation=null;animation.started=true;}const finished=nextAnimation.onFrame(nextAnimation,now);animation.current=nextAnimation.current;return finished;}else if(previousAnimation){const finished=previousAnimation.finished||previousAnimation.onFrame(previousAnimation,now);animation.current=previousAnimation.current;if(finished){animation.previousAnimation=null;}}return false;}function onStart(animation,value,now,previousAnimation){animation.startTime=now;animation.started=false;animation.current=value;if(previousAnimation===animation){animation.previousAnimation=previousAnimation.previousAnimation;}else{animation.previousAnimation=previousAnimation;}if(nextAnimation.reduceMotion===undefined){nextAnimation.reduceMotion=animation.reduceMotion;}}const callback=function(finished){if(nextAnimation.callback){nextAnimation.callback(finished);}};return{isHigherOrder:true,onFrame:delay,onStart:onStart,current:nextAnimation.current,callback:callback,previousAnimation:null,startTime:0,started:false,reduceMotion:getReduceMotionForAnimation(reduceMotion)};});}"},Es={code:"function reactNativeReanimated_delayJs2(){const{_nextAnimation,delayMs,getReduceMotionForAnimation,reduceMotion}=this.__closure;const nextAnimation=typeof _nextAnimation==='function'?_nextAnimation():_nextAnimation;function delay(animation,now){const{startTime:startTime,started:started,previousAnimation:previousAnimation}=animation;const current=animation.current;if(now-startTime>=delayMs||animation.reduceMotion){if(!started){nextAnimation.onStart(nextAnimation,current,now,previousAnimation);animation.previousAnimation=null;animation.started=true;}const finished=nextAnimation.onFrame(nextAnimation,now);animation.current=nextAnimation.current;return finished;}else if(previousAnimation){const finished=previousAnimation.finished||previousAnimation.onFrame(previousAnimation,now);animation.current=previousAnimation.current;if(finished){animation.previousAnimation=null;}}return false;}function onStart(animation,value,now,previousAnimation){animation.startTime=now;animation.started=false;animation.current=value;if(previousAnimation===animation){animation.previousAnimation=previousAnimation.previousAnimation;}else{animation.previousAnimation=previousAnimation;}if(nextAnimation.reduceMotion===undefined){nextAnimation.reduceMotion=animation.reduceMotion;}}const callback=function(finished){if(nextAnimation.callback){nextAnimation.callback(finished);}};return{isHigherOrder:true,onFrame:delay,onStart:onStart,current:nextAnimation.current,callback:callback,previousAnimation:null,startTime:0,started:false,reduceMotion:getReduceMotionForAnimation(reduceMotion)};}"},ks=function(){const e=function(e,t,n){return xo(t,function(){const r=function(){const r="function"==typeof t?t():t;return{isHigherOrder:!0,onFrame:function(t,n){const{startTime:i,started:o,previousAnimation:a}=t,s=t.current;if(n-i>=e||t.reduceMotion){o||(r.onStart(r,s,n,a),t.previousAnimation=null,t.started=!0);const e=r.onFrame(r,n);return t.current=r.current,e}if(a){const e=a.finished||a.onFrame(a,n);t.current=a.current,e&&(t.previousAnimation=null)}return!1},onStart:function(e,t,n,i){e.startTime=n,e.started=!1,e.current=t,e.previousAnimation=i===e?i.previousAnimation:i,void 0===r.reduceMotion&&(r.reduceMotion=e.reduceMotion)},current:r.current,callback:e=>{r.callback&&r.callback(e)},previousAnimation:null,startTime:0,started:!1,reduceMotion:ho(n)}};return r.__closure={_nextAnimation:t,delayMs:e,getReduceMotionForAnimation:ho,reduceMotion:n},r.__workletHash=0xf768dd0647d,r.__initData=Es,r}())};return e.__closure={defineAnimation:xo,getReduceMotionForAnimation:ho},e.__workletHash=0x922bb0474ae,e.__initData=Ss,e}(),Ts={code:"function withSequence_reactNativeReanimated_sequenceJs1(_reduceMotionOrFirstAnimation,..._animations){const{logger,defineAnimation,getReduceMotionForAnimation}=this.__closure;let reduceMotion;if(_reduceMotionOrFirstAnimation){if(typeof _reduceMotionOrFirstAnimation==='string'){reduceMotion=_reduceMotionOrFirstAnimation;}else{_animations.unshift(_reduceMotionOrFirstAnimation);}}if(_animations.length===0){logger.warn('No animation was provided for the sequence');return defineAnimation(0,function(){'worklet';return{onStart:function(animation,value){return animation.current=value;},onFrame:function(){return true;},current:0,animationIndex:0,reduceMotion:getReduceMotionForAnimation(reduceMotion)};});}return defineAnimation(_animations[0],function(){'worklet';const animations=_animations.map(function(a){const result=typeof a==='function'?a():a;result.finished=false;return result;});function findNextNonReducedMotionAnimationIndex(index){while(indexe.current=t,onFrame:()=>!0,current:0,animationIndex:0,reduceMotion:ho(n)}};return e.__closure={getReduceMotionForAnimation:ho,reduceMotion:n},e.__workletHash=0xb6c5138675f,e.__initData=Is,e}())):xo(t[0],function(){const e=function(){const e=t.map((e=>{const t="function"==typeof e?e():e;return t.finished=!1,t}));function r(t){for(;t{void 0===e.reduceMotion&&(e.reduceMotion=t.reduceMotion)})),t.animationIndex=r(0),void 0===o&&(o=e[e.length-1]);const a=e[t.animationIndex];a.onStart(a,n,i,o)},animationIndex:0,current:e[0].current,callback:t=>{t||e.forEach((e=>{"function"!=typeof e.callback||e.finished||e.callback(t)}))},reduceMotion:ho(n)}};return e.__closure={_animations:t,getReduceMotionForAnimation:ho,reduceMotion:n},e.__workletHash=6232803474731,e.__initData=Os,e}())};return e.__closure={logger:X,defineAnimation:xo,getReduceMotionForAnimation:ho},e.__workletHash=909393107299,e.__initData=Ts,e}(),Ms={code:"function reactNativeReanimated_KeyframeJs1(delay,animation){const{withDelay,reduceMotion}=this.__closure;return withDelay(delay,animation,reduceMotion);}"},Ps={code:"function reactNativeReanimated_KeyframeJs2(_,animation){const{getReduceMotionFromConfig,reduceMotion}=this.__closure;animation.reduceMotion=getReduceMotionFromConfig(reduceMotion);return animation;}"},Ds={code:"function reactNativeReanimated_KeyframeJs3(){const{keyframes,delayFunction,delay,withTiming,Easing,withSequence,initialValues,makeKeyframeKey,callback}=this.__closure;const animations={};const addAnimation=function(key){const keyframePoints=keyframes[key];if(keyframePoints.length===0){return;}const animation=delayFunction(delay,keyframePoints.length===1?withTiming(keyframePoints[0].value,{duration:keyframePoints[0].duration,easing:keyframePoints[0].easing?keyframePoints[0].easing:Easing.linear}):withSequence(...keyframePoints.map(function(keyframePoint){return withTiming(keyframePoint.value,{duration:keyframePoint.duration,easing:keyframePoint.easing?keyframePoint.easing:Easing.linear});})));if(key.includes('transform')){if(!('transform'in animations)){animations.transform=[];}animations.transform.push({[key.split(':')[1]]:animation});}else{animations[key]=animation;}};Object.keys(initialValues).forEach(function(key){if(key.includes('transform')){initialValues[key].forEach(function(transformProp,index){Object.keys(transformProp).forEach(function(transformPropKey){addAnimation(makeKeyframeKey(index,transformPropKey));});});}else{addAnimation(key);}});return{animations:animations,initialValues:initialValues,callback:callback};}"},js={code:'function makeKeyframeKey_reactNativeReanimated_KeyframeJs4(index,transformProp){return index+"_transform:"+transformProp;}'},Bs=function(){const e=function(e,t){return`${e}_transform:${t}`};return e.__closure={},e.__workletHash=0xd2d26255c26,e.__initData=js,e}(),Ls=class{reduceMotionV=k.System;constructor(e){this.definitions=e}parseDefinitions(){const e={};if(this.definitions.from){if(this.definitions[0])throw new l("You cannot provide both keyframe 0 and 'from' as they both specified initial values.");this.definitions[0]=this.definitions.from,delete this.definitions.from}if(this.definitions.to){if(this.definitions[100])throw new l("You cannot provide both keyframe 100 and 'to' as they both specified values at the end of the animation.");this.definitions[100]=this.definitions.to,delete this.definitions.to}if(!this.definitions[0])throw new l("Please provide 0 or 'from' keyframe with initial state of your object.");const t=this.definitions[0];Object.keys(t).forEach((n=>{if("transform"===n){if(!Array.isArray(t.transform))return;t.transform.forEach(((t,n)=>{Object.keys(t).forEach((t=>{e[Bs(n,t)]=[]}))}))}else e[n]=[]}));const n=this.durationV?this.durationV:500,r=Array.from(Object.keys(this.definitions)).map(Number),i=(t,r)=>r/100*n-e[t].reduce(((e,t)=>e+t.duration),0);return r.filter((e=>0!==e)).sort(((e,t)=>e-t)).forEach((t=>{if(t<0||t>100)throw new l("Keyframe should be in between range 0 - 100.");const n=this.definitions[t],r=n.easing;delete n.easing;const o=(n,o)=>(({key:t,value:n,currentKeyPoint:r,easing:o})=>{if(!(t in e))throw new l("Keyframe can contain only that set of properties that were provide with initial values (keyframe 0 or 'from')");e[t].push({duration:i(t,r),value:n,easing:o})})({key:n,value:o,currentKeyPoint:t,easing:r});Object.keys(n).forEach((e=>{if("transform"===e){if(!Array.isArray(n.transform))return;n.transform.forEach(((e,t)=>{Object.keys(e).forEach((n=>{o(Bs(t,n),e[n])}))}))}else o(e,n[e])}))})),{initialValues:t,keyframes:e}}duration(e){return this.durationV=e,this}delay(e){return this.delayV=e,this}withCallback(e){return this.callbackV=e,this}reduceMotion(e){return this.reduceMotionV=e,this}getDelayFunction(){const e=this.delayV,t=this.reduceMotionV;return e?function(){const e=function(e,n){return ks(e,n,t)};return e.__closure={withDelay:ks,reduceMotion:t},e.__workletHash=1199474877403,e.__initData=Ms,e}():function(){const e=function(e,n){return n.reduceMotion=co(t),n};return e.__closure={getReduceMotionFromConfig:co,reduceMotion:t},e.__workletHash=0x91aeec32a47,e.__initData=Ps,e}()}build=()=>{const e=this.delayV,t=this.getDelayFunction(),{keyframes:n,initialValues:r}=this.parseDefinitions(),i=this.callbackV;return this.parsedAnimation||(this.parsedAnimation=function(){const o=function(){const o={},a=r=>{const i=n[r];if(0===i.length)return;const a=t(e,1===i.length?Io(i[0].value,{duration:i[0].duration,easing:i[0].easing?i[0].easing:si.linear}):Rs(...i.map((e=>Io(e.value,{duration:e.duration,easing:e.easing?e.easing:si.linear})))));r.includes("transform")?("transform"in o||(o.transform=[]),o.transform.push({[r.split(":")[1]]:a})):o[r]=a};return Object.keys(r).forEach((e=>{e.includes("transform")?r[e].forEach(((e,t)=>{Object.keys(e).forEach((e=>{a(Bs(t,e))}))})):a(e)})),{animations:o,initialValues:r,callback:i}};return o.__closure={keyframes:n,delayFunction:t,delay:e,withTiming:Io,Easing:si,withSequence:Rs,initialValues:r,makeKeyframeKey:Bs,callback:i},o.__workletHash=9575547351751,o.__initData=Ds,o}()),this.parsedAnimation}};function Fs(e,t,n){for(let r=0;r{const t={};for(const[n,r]of Object.entries(e))(n.includes("translate")||n.includes("perspective"))&&"number"==typeof r?t[n]=`${r}px`:t[n]=r;return t}))}let Hs=0;function qs(){return"REA"+Hs++}function Gs(e,t){const n=qs();let r,i;switch(e){case hs.LINEAR:i=function(e,t){const{translateX:n,translateY:r,scaleX:i,scaleY:o}=t;return{name:e,style:{0:{transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${o}`}]}},duration:300}}(n,t);break;case hs.SEQUENCED:i=function(e,t){const{translateX:n,translateY:r,scaleX:i,scaleY:o,reversed:a}=t;return{name:e,style:{0:{transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${o}`}]},50:{transform:[{translateX:a?`${n}px`:"0px",translateY:a?"0px":`${r}px`,scale:a?`1,${i}`:`${o},1`}]},100:{transform:[{translateX:"0px",translateY:"0px",scale:"1,1"}]}},duration:300}}(n,t);break;case hs.FADING:i=function(e,t){const{translateX:n,translateY:r,scaleX:i,scaleY:o}=t;return{name:e,style:{0:{opacity:1,transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${o}`}]},20:{opacity:0,transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${o}`}]},60:{opacity:0,transform:[{translateX:"0px",translateY:"0px",scale:"1,1"}]},100:{opacity:1,transform:[{translateX:"0px",translateY:"0px",scale:"1,1"}]}},duration:300}}(n,t);break;case hs.JUMPING:i=function(e,t){const{translateX:n,translateY:r,scaleX:i,scaleY:o}=t,a=Math.max(Math.abs(n),Math.abs(r))/2,s=r<=0?r-a:-r+a;return{name:e,style:{0:{transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${o}`}],easing:si.exp},50:{transform:[{translateX:n/2+"px",translateY:`${s}px`,scale:`${i},${o}`}]},100:{transform:[{translateX:"0px",translateY:"0px",scale:"1,1"}]}},duration:300}}(n,t);break;case hs.CURVED:{r=qs();const{firstKeyframeObj:e,secondKeyframeObj:o}=function(e,t,n){return{firstKeyframeObj:{name:e,style:{0:{transform:[{translateX:`${n.translateX}px`,scale:`${n.scaleX},${n.scaleY}`}]}},duration:300},secondKeyframeObj:{name:t,style:{0:{transform:[{translateY:`${n.translateY}px`,scale:`${n.scaleX},${n.scaleY}`}]}},duration:300}}}(n,r,t);i=e,bs(r,ya(o));break}case hs.ENTRY_EXIT:i=function(e,t){const n=structuredClone(ds[t.exiting]),r=structuredClone(ds[t.entering]),i={translateX:`${t.translateX}px`,translateY:`${t.translateY}px`,scale:`${t.scaleX},${t.scaleY}`},o={name:e,style:{},duration:300};return zs(o.style,n.style,i,!0),zs(o.style,r.style,{translateX:"0px",translateY:"0px",scale:"1,1"},!1),function(e){const t=new Map;void 0===e[0].opacity&&(t.set(48,1),t.set(49,0)),void 0===e[50].opacity&&(t.set(50,0),t.set(51,1));for(const[n,r]of t)e[n]=Object.assign({},e[n],{opacity:r})}(o.style),o}(n,t)}return bs(n,ya(i)),{transitionKeyframeName:n,dummyTransitionKeyframeName:r}}function Ys(e){if(!e.easingV)return ga("linear");const t=e.easingV[ai];if(t in ma)return ga(t);const n=function(e){if(!("factory"in e))return null;const t=e.factory;if(!("__closure"in t))return null;const n=t.__closure;return"Bezier"in n?`cubic-bezier(${n.x1}, ${n.y1}, ${n.x2}, ${n.y2})`:null}(e.easingV);return n||(X.warn("Selected easing is not currently supported on web. Using linear easing instead."),ga("linear"))}function Ws(e=1e3){return Math.floor(Math.random()*(e+1))/1e3}function Qs(e){const t=e.randomizeDelay,n=t?Ws():0;return e.delayV?t?Ws(e.delayV):e.delayV/1e3:n}function Xs(e){if(!e.reduceMotionV)return ui.jsValue;switch(e.reduceMotionV){case k.Never:return!1;case k.Always:return!0;default:return ui.jsValue}}function Js(e,t){const n=t in fs?fs[t].duration:.3;return void 0!==e.durationV?e.durationV/1e3:n}function Zs(e){return void 0!==e.callbackV?e.callbackV:null}function Ks(e){return!!e.reversed}function $s(e){const t=e.getBoundingClientRect(),n={top:t.top,left:t.left,width:t.width,height:t.height,scrollOffsets:tl(e)};fa.set(e,n)}function el(e,t,n=!1,r=null){const{animationName:i,duration:o,delay:a,easing:s}=t,c=()=>{e.style.animationName=i,e.style.animationDuration=`${o}s`,e.style.animationDelay=`${a}s`,e.style.animationTimingFunction=s};t.animationType===v.ENTERING?requestAnimationFrame(c):c();const u=()=>{e.isDummy&&r?.contains(e)&&(e.removedAfterAnimation=!0,r.removeChild(e))};let h=!1;const d=e=>{!h&&t.callback&&(t.callback(e),h=!0)};e.onanimationend=()=>{n&&$s(e),u(),d(!0),e.removeEventListener("animationcancel",f)};const f=()=>{u(),d(!1),e.removeEventListener("animationcancel",f)};e.onanimationstart=()=>{t.animationType===v.ENTERING&&ua({visibility:"initial"},e),e.addEventListener("animationcancel",f)},i in fs||function(e,t,n){const r=Math.max(t*As*1e3,t+xs*ws);setTimeout((()=>function(e,t){if(!y())return;const n=document.getElementById(ms),r=gs.get(e);if(void 0===r)throw new l("Failed to obtain animation index.");t(),n.sheet?.deleteRule(r),ys.splice(r,1),gs.delete(e);for(let e=r;e{n&&pa(e,fa.get(e)),u(),d(!1)}))}function tl(e){let t=e;const n={scrollTopOffset:0,scrollLeftOffset:0};for(;t;)0!==t.scrollTop&&0===n.scrollTopOffset&&(n.scrollTopOffset=t.scrollTop),0!==t.scrollLeft&&0===n.scrollLeftOffset&&(n.scrollLeftOffset=t.scrollLeft),t=t.parentElement;return n}function nl(e,t,n,r){switch(e){case v.ENTERING:el(n,t,!0);break;case v.LAYOUT:r.reversed=t.reversed,function(e,t,n){const{animationName:r}=t;let i;switch(r){case"LinearTransition":default:i=hs.LINEAR;break;case"SequencedTransition":i=hs.SEQUENCED;break;case"FadingTransition":i=hs.FADING;break;case"JumpingTransition":i=hs.JUMPING;break;case"CurvedTransition":i=hs.CURVED;break;case"EntryExitTransition":i=hs.ENTRY_EXIT}const{transitionKeyframeName:o,dummyTransitionKeyframeName:a}=Gs(i,n);if(t.animationName=o,i===hs.CURVED){const{dummy:r,dummyAnimationConfig:i}=function(e,t,n,r){const{dummy:i,dummyAnimationConfig:o}=function(e,t,n,r){const i={animationName:r,animationType:v.LAYOUT,duration:t.duration,delay:t.delay,easing:ga(n.easingY),callback:null,reversed:!1},o=e.cloneNode(!0);var a;return o.isDummy=!0,(a=o).style.animationName="",a.style.position="absolute",a.style.top="0px",a.style.left="0px",a.style.margin="0px",a.style.width="100%",a.style.height="100%",{dummy:o,dummyAnimationConfig:i}}(e,t,n,r);return function(e,t,n,r){n.easing=ga(r.easingX);const i=new Map;Fs(e,i,!1);const o=e.style.backgroundColor;e.style.backgroundColor="transparent";const a=()=>{e.contains(t)&&e.removeChild(t),Fs(e,i,!0),e.style.backgroundColor=o},s=()=>{a(),e.removeEventListener("animationcancel",s)},l=()=>{a(),e.removeEventListener("animationend",l)};e.addEventListener("animationend",l),e.addEventListener("animationcancel",s),e.appendChild(t)}(e,i,t,n),{dummy:i,dummyAnimationConfig:o}}(e,t,n,a);el(r,i)}el(e,t)}(n,t,r);break;case v.EXITING:!function(e,t){const n=e.offsetParent,r=e.cloneNode();r.isDummy=!0,r.style.animationName="",e.dummyClone=r,e.style.animationName="";const i=new Map,o=e=>{i.set(e,{top:e.scrollTop,left:e.scrollLeft});for(const t of Array.from(e.children))o(t)};for(o(e);e.firstChild;)r.appendChild(e.firstChild);n?.appendChild(r);const a=t=>{const n=i.get(t===r?e:t);n&&(t.scrollTop=n.top,t.scrollLeft=n.left);for(const e of Array.from(t.children))a(e)};a(r);const s=fa.get(e),l=tl(e),c=l.scrollTopOffset,u=s.scrollOffsets.scrollTopOffset;c!==u&&(s.top+=u-c);const h=l.scrollLeftOffset,d=s.scrollOffsets.scrollLeftOffset;h!==d&&(s.left+=d-h),fa.set(r,s),pa(r,s),el(r,t,!1,n)}(n,t)}}function rl(e,t,n,r){const i=function(e,t){const n=function(e,t){return e===v.ENTERING?t.entering:e===v.EXITING?t.exiting:e===v.LAYOUT?t.layout:null}(t,e);if(!n)return null;const r=t===v.LAYOUT,i=n instanceof Ls,o=void 0!==n.initialValues;let a;if(a=i?function(e){for(const t of Object.values(e))t.transform&&(t.transform=Us(t.transform));const t={name:"",style:e,duration:-1};t.name=qs();const n=Object.keys(e);for(let t=1;t({[e]:t})))}else r.transform=e}n[0]=Object.assign({},n[0],o);const a=qs();return bs(a,ya({name:a,style:n,duration:ds[e].duration})),a}(a,n.initialValues)),!(a in fs)&&!(r||i||o)&&(X.warn("Couldn't load entering/exiting animation. Current version supports only predefined animations with modifiers: duration, delay, easing, randomizeDelay, withCallback, reducedMotion."),1))return null;if(i){const e=Object.keys(n.definitions);e.includes("100")||e.includes("to")||X.warn("Neither '100' nor 'to' was specified in Keyframe definition. This may result in wrong final position of your component. One possible solution is to duplicate last timestamp in definition as '100' (or 'to')")}const s=function(e,t,n){return{animationName:e,animationType:t,duration:Js(n,e),delay:Qs(n),easing:Ys(n),callback:Zs(n),reversed:Ks(n)}}(a,t,n);return s}(e,n);!function(e,t){if(t instanceof Ls){e.style.animationFillMode="forwards";for(const n of Object.values(t.definitions))if("originX"in n||"originY"in n)return void(e.style.position="absolute")}}(t,e.entering),i?.animationName in fs&&function(e,t){const n=/([a-zA-Z-]+)(?=:)/g,r=new Set;for(const t of e.matchAll(n))r.add(t[1]);const i=Array.from(t).filter((e=>r.has(e)));0!==i.length&&X.warn(`${1===i.length?"Property":"Properties"} [${i.join(", ")}] may be overwritten by a layout animation. Please wrap your component with an animated view and apply the layout animation on the wrapper.`)}(fs[i?.animationName].style,t.style),i?nl(n,i,t,r):function(e){ua({visibility:"initial"},e)}(t)}const il=["ref"],ol=g();function al(e){return ol?t=>{let{ref:n}=t,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(t,il);return e(r,n)}:(0,i.forwardRef)(e)}let sl;if(p())sl=()=>{};else{const e=function(){const e=[],t=[];return{update(n,r){r?t.push(n):e.push(n),e.length+t.length===1&&(m()?this.flush():setImmediate(this.flush))},flush(){var n;n=e.concat(t),$.configureLayoutAnimationBatch(n),e.length=0,t.length=0}}}();sl=(t,n,r,i,o)=>e.update({viewTag:t,type:n,config:r?fe(r):void 0,sharedTransitionTag:i},o)}let ll=e=>void 0!==e._nativeTag&&null!==e.__nativeTag?(ll=cl,cl(e)):void 0!==e.__nativeTag&&null!==e.__nativeTag?(ll=ul,ul(e)):cl(e);function cl(e){return{viewName:e?.viewConfig?.uiViewClassName,viewTag:e?._nativeTag,viewConfig:e?.viewConfig}}function ul(e){return{viewName:e?._viewConfig?.uiViewClassName,viewTag:e?.__nativeTag,viewConfig:e?._viewConfig}}const hl={code:"function validateTransformOrigin_reactNativeReanimated_processTransformOriginJs1(transformOrigin){if(transformOrigin.length!==3){throw new ReanimatedError('Transform origin must have exactly 3 values.');}const[x,y,z]=transformOrigin;if(!(typeof x==='number'||typeof x==='string'&&x.endsWith('%'))){throw new ReanimatedError(\"Transform origin x-position must be a number or a percentage string. Passed value: \"+x+\".\");}if(!(typeof y==='number'||typeof y==='string'&&y.endsWith('%'))){throw new ReanimatedError(\"Transform origin y-position must be a number or a percentage string. Passed value: \"+y+\".\");}if(typeof z!=='number'){throw new ReanimatedError(\"Transform origin z-position must be a number. Passed value: \"+z+\".\");}}"},dl=function(){const e=function(e){if(3!==e.length)throw new l("Transform origin must have exactly 3 values.");const[t,n,r]=e;if(!("number"==typeof t||"string"==typeof t&&t.endsWith("%")))throw new l(`Transform origin x-position must be a number or a percentage string. Passed value: ${t}.`);if(!("number"==typeof n||"string"==typeof n&&n.endsWith("%")))throw new l(`Transform origin y-position must be a number or a percentage string. Passed value: ${n}.`);if("number"!=typeof r)throw new l(`Transform origin z-position must be a number. Passed value: ${r}.`)};return e.__closure={},e.__workletHash=7298181072720,e.__initData=hl,e}(),fl={code:"function processTransformOrigin_reactNativeReanimated_processTransformOriginJs2(transformOriginIn){const{INDEX_X,INDEX_Z,INDEX_Y,__DEV__,validateTransformOrigin}=this.__closure;let transformOrigin=Array.isArray(transformOriginIn)?transformOriginIn:['50%','50%',0];if(typeof transformOriginIn==='string'){const transformOriginString=transformOriginIn;const regex=/(top|bottom|left|right|center|\\d+(?:%|px)|0)/gi;const transformOriginArray=['50%','50%',0];let index=INDEX_X;let matches;while(matches=regex.exec(transformOriginString)){let nextIndex=index+1;const value=matches[0];const valueLower=value.toLowerCase();switch(valueLower){case'left':case'right':{if(index!==INDEX_X){throw new ReanimatedError(\"Transform-origin \"+value+\" can only be used for x-position\");}transformOriginArray[INDEX_X]=valueLower==='left'?0:'100%';break;}case'top':case'bottom':{if(index===INDEX_Z){throw new ReanimatedError(\"Transform-origin \"+value+\" can only be used for y-position\");}transformOriginArray[INDEX_Y]=valueLower==='top'?0:'100%';if(index===INDEX_X){const horizontal=regex.exec(transformOriginString);if(horizontal==null){break;}switch(horizontal===null||horizontal===void 0?void 0:horizontal[0].toLowerCase()){case'left':transformOriginArray[INDEX_X]=0;break;case'right':transformOriginArray[INDEX_X]='100%';break;case'center':transformOriginArray[INDEX_X]='50%';break;default:throw new ReanimatedError(\"Could not parse transform-origin: \"+transformOriginString);}nextIndex=INDEX_Z;}break;}case'center':{if(index===INDEX_Z){throw new ReanimatedError(\"Transform-origin value \"+value+\" cannot be used for z-position\");}transformOriginArray[index]='50%';break;}default:{if(value.endsWith('%')){transformOriginArray[index]=value;}else{const numericValue=parseFloat(value);if(isNaN(numericValue)){throw new ReanimatedError(\"Invalid numeric value in transform-origin: \"+value);}transformOriginArray[index]=numericValue;}break;}}index=nextIndex;}transformOrigin=transformOriginArray;}if(typeof transformOriginIn!=='string'&&!Array.isArray(transformOriginIn)){throw new ReanimatedError(\"Invalid transformOrigin type: \"+typeof transformOriginIn);}if(__DEV__){validateTransformOrigin(transformOrigin);}return transformOrigin;}"},pl=function(){const e=function(e){let t=Array.isArray(e)?e:["50%","50%",0];if("string"==typeof e){const n=e,r=/(top|bottom|left|right|center|\d+(?:%|px)|0)/gi,i=["50%","50%",0];let o,a=0;for(;o=r.exec(n);){let e=a+1;const t=o[0],s=t.toLowerCase();switch(s){case"left":case"right":if(0!==a)throw new l(`Transform-origin ${t} can only be used for x-position`);i[0]="left"===s?0:"100%";break;case"top":case"bottom":if(2===a)throw new l(`Transform-origin ${t} can only be used for y-position`);if(i[1]="top"===s?0:"100%",0===a){const t=r.exec(n);if(null==t)break;switch(t?.[0].toLowerCase()){case"left":i[0]=0;break;case"right":i[0]="100%";break;case"center":i[0]="50%";break;default:throw new l(`Could not parse transform-origin: ${n}`)}e=2}break;case"center":if(2===a)throw new l(`Transform-origin value ${t} cannot be used for z-position`);i[a]="50%";break;default:if(t.endsWith("%"))i[a]=t;else{const e=parseFloat(t);if(isNaN(e))throw new l(`Invalid numeric value in transform-origin: ${t}`);i[a]=e}}a=e}t=i}if("string"!=typeof e&&!Array.isArray(e))throw new l("Invalid transformOrigin type: "+typeof e);return t};return e.__closure={INDEX_X:0,INDEX_Z:2,INDEX_Y:1,__DEV__:!1,validateTransformOrigin:dl},e.__workletHash=4007711361503,e.__initData=fl,e}();let ml;const gl={code:"function reactNativeReanimated_updatePropsJs1(viewDescriptors,updates,isAnimatedProps){const{_updatePropsJS}=this.__closure;var _viewDescriptors$valu;(_viewDescriptors$valu=viewDescriptors.value)===null||_viewDescriptors$valu===void 0||_viewDescriptors$valu.forEach(function(viewDescriptor){const component=viewDescriptor.tag;_updatePropsJS(updates,component,isAnimatedProps);});}"},yl={code:"function reactNativeReanimated_updatePropsJs2(viewDescriptors,updates){const{processColorsInProps,processTransformOrigin}=this.__closure;processColorsInProps(updates);if('transformOrigin'in updates){updates.transformOrigin=processTransformOrigin(updates.transformOrigin);}global.UpdatePropsManager.update(viewDescriptors,updates);}"};ml=p()?function(){const e=function(e,t,n){e.value?.forEach((e=>{const r=e.tag;ua(t,r,n)}))};return e.__closure={_updatePropsJS:ua},e.__workletHash=0xd291c710306,e.__initData=gl,e}():function(){const e=function(e,t){Hn(t),"transformOrigin"in t&&(t.transformOrigin=pl(t.transformOrigin)),n.g.UpdatePropsManager.update(e,t)};return e.__closure={processColorsInProps:Hn,processTransformOrigin:pl},e.__workletHash=0xc0a3634a3d7,e.__initData=yl,e}();const vl=(e,t,n,r)=>{r.forEach((e=>{e(t)})),n.current.value=Object.assign({},n.current.value,t),ml(e,t)},bl=ml,Al={code:"function reactNativeReanimated_updatePropsJs3(){const operations=[];return{update:function(viewDescriptors,updates){var _this=this;viewDescriptors.value.forEach(function(viewDescriptor){operations.push({shadowNodeWrapper:viewDescriptor.shadowNodeWrapper,updates:updates});if(operations.length===1){queueMicrotask(_this.flush);}});},flush:function(){global._updatePropsFabric(operations);operations.length=0;}};}"},xl={code:"function reactNativeReanimated_updatePropsJs4(){const operations=[];return{update:function(viewDescriptors,updates){var _this=this;viewDescriptors.value.forEach(function(viewDescriptor){operations.push({tag:viewDescriptor.tag,name:viewDescriptor.name||'RCTView',updates:updates});if(operations.length===1){queueMicrotask(_this.flush);}});},flush:function(){global._updatePropsPaper(operations);operations.length=0;}};}"},wl=m()?function(){const e=function(){const e=[];return{update(t,n){t.value.forEach((t=>{e.push({shadowNodeWrapper:t.shadowNodeWrapper,updates:n}),1===e.length&&queueMicrotask(this.flush)}))},flush(){n.g._updatePropsFabric(e),e.length=0}}};return e.__closure={},e.__workletHash=5349556006606,e.__initData=Al,e}():function(){const e=function(){const e=[];return{update(t,n){t.value.forEach((t=>{e.push({tag:t.tag,name:t.name||"RCTView",updates:n}),1===e.length&&queueMicrotask(this.flush)}))},flush(){n.g._updatePropsPaper(e),e.length=0}}};return e.__closure={},e.__workletHash=481248343212,e.__initData=xl,e}(),Cl={code:"function reactNativeReanimated_updatePropsJs5(){const{createUpdatePropsManager}=this.__closure;global.UpdatePropsManager=createUpdatePropsManager();}"};if(p()){const e=()=>{throw new l("`UpdatePropsManager` is not available on non-native platform.")};n.g.UpdatePropsManager=new Proxy({},{get:e,set:()=>(e(),!1)})}else Fe(function(){const e=function(){n.g.UpdatePropsManager=wl()};return e.__closure={createUpdatePropsManager:wl},e.__workletHash=0x998abf28cf4,e.__initData=Cl,e}())();const Sl={code:"function reactNativeReanimated_ViewDescriptorsSetJs1(descriptors){const{item}=this.__closure;const index=descriptors.findIndex(function(descriptor){return descriptor.tag===item.tag;});if(index!==-1){descriptors[index]=item;}else{descriptors.push(item);}return descriptors;}"},El={code:"function reactNativeReanimated_ViewDescriptorsSetJs2(descriptors){const{viewTag}=this.__closure;const index=descriptors.findIndex(function(descriptor){return descriptor.tag===viewTag;});if(index!==-1){descriptors.splice(index,1);}return descriptors;}"};function kl(){const e=et([]),t=new Set;return{shareableViewDescriptors:e,add:n=>{t.add(n.tag),e.modify(function(){const e=function(e){const t=e.findIndex((e=>e.tag===n.tag));return-1!==t?e[t]=n:e.push(n),e};return e.__closure={item:n},e.__workletHash=0xf45b155a6b9,e.__initData=Sl,e}(),!1)},remove:n=>{t.delete(n),e.modify(function(){const e=function(e){const t=e.findIndex((e=>e.tag===n));return-1!==t&&e.splice(t,1),e};return e.__closure={viewTag:n},e.__workletHash=2880512106780,e.__initData=El,e}(),!1)},has:e=>t.has(e)}}function Tl(e){if(!Array.isArray(e))return[e];const t=[],n=e=>{e.forEach((e=>{Array.isArray(e)?n(e):t.push(e)}))};return n(e),t}const Il=(e,t)=>("function"==typeof t||"object"==typeof t)&&null!=t&&e in t;function Ol(e){return!!Array.isArray(e)&&e.some((e=>Pl(e)))}const Rl={code:"function getInlinePropsUpdate_reactNativeReanimated_InlinePropManagerJs1(inlineProps){const getInlinePropsUpdate_reactNativeReanimated_InlinePropManagerJs1=this._recur;const{isSharedValue}=this.__closure;const update={};for(const[key,styleValue]of Object.entries(inlineProps)){if(isSharedValue(styleValue)){update[key]=styleValue.value;}else if(Array.isArray(styleValue)){update[key]=styleValue.map(function(item){return getInlinePropsUpdate_reactNativeReanimated_InlinePropManagerJs1(item);});}else if(typeof styleValue==='object'){update[key]=getInlinePropsUpdate_reactNativeReanimated_InlinePropManagerJs1(styleValue);}else{update[key]=styleValue;}}return update;}"},Ml=function(){const e=function(t){const n={};for(const[r,i]of Object.entries(t))it(i)?n[r]=i.value:Array.isArray(i)?n[r]=i.map((t=>e(t))):n[r]="object"==typeof i?e(i):i;return n};return e.__closure={isSharedValue:it},e.__workletHash=0xad6475858b6,e.__initData=Rl,e}();function Pl(e){return!!e&&Object.keys(e).some((t=>{const n=e[t];return it(n)||"transform"===t&&Ol(n)}))}function Dl(e,t){if(t)return Ml(e);const n={};for(const[t,r]of Object.entries(e))it(r)||"transform"===t&&Ol(r)||(n[t]=r);return n}const jl={code:"function reactNativeReanimated_InlinePropManagerJs2(){const{getInlinePropsUpdate,newInlineProps,updateProps,shareableViewDescriptors}=this.__closure;const update=getInlinePropsUpdate(newInlineProps);updateProps(shareableViewDescriptors,update);}"};class Bl{_inlinePropsViewDescriptors=null;_inlinePropsMapperId=null;_inlineProps={};attachInlineProps(e,t){const n=function(e){const t={};for(const n in e){const r=e[n];"style"===n?Tl(e.style??[]).forEach((e=>{if(e)for(const[n,r]of Object.entries(e))(it(r)||"transform"===n&&Ol(r))&&(t[n]=r)})):it(r)&&(t[n]=r)}return t}(e.props);if(function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const n of Object.keys(e))if(e[n]!==t[n])return!0;return!1}(n,this._inlineProps)){if(!this._inlinePropsViewDescriptors){this._inlinePropsViewDescriptors=kl();const{viewTag:e,viewName:r,shadowNodeWrapper:i,viewConfig:o}=t;Object.keys(n).length&&o&&ia(o),this._inlinePropsViewDescriptors.add({tag:e,name:r,shadowNodeWrapper:i})}const e=this._inlinePropsViewDescriptors.shareableViewDescriptors,r=function(){const t=function(){const t=Ml(n);bl(e,t)};return t.__closure={getInlinePropsUpdate:Ml,newInlineProps:n,updateProps:bl,shareableViewDescriptors:e},t.__workletHash=5061273221373,t.__initData=jl,t}();this._inlineProps=n,this._inlinePropsMapperId&&ht(this._inlinePropsMapperId),this._inlinePropsMapperId=null,Object.keys(n).length&&(this._inlinePropsMapperId=ct(r,Object.values(n)))}}detachInlineProps(){this._inlinePropsMapperId&&ht(this._inlinePropsMapperId)}}class Ll{addOnJSPropsChangeListener(e){}removeOnJSPropsChangeListener(e){}}const Fl=p()?class{constructor(e,t=[]){this.worklet=e,this.eventNames=t,this.listeners={},this.setupWebListeners()}setupWebListeners(){this.listeners={},this.eventNames.forEach((e=>{this.listeners[e]=function(e,t){return n=>{t(Object.assign({},n.nativeEvent,{eventName:e}))}}(e,this.worklet)}))}updateEventHandler(e,t){this.worklet=e,this.eventNames=t,this.setupWebListeners()}registerForEvents(e,t){}unregisterFromEvents(e){}}:class{#t;#n;constructor(e,t){this.worklet=e,this.eventNames=t,this.#t=new Set,this.#n=new Map}updateEventHandler(e,t){this.worklet=e,this.eventNames=t,this.#n.forEach((e=>{e.forEach((e=>zt(e)))})),Array.from(this.#t).forEach((e=>{const t=this.eventNames.map((t=>_t(this.worklet,t,e)));this.#n.set(e,t)}))}registerForEvents(e,t){this.#t.add(e);const n=this.eventNames.map((t=>_t(this.worklet,t,e)));if(this.#n.set(e,n),0===this.eventNames.length&&t){const n=_t(this.worklet,t,e);this.#n.set(e,[n])}}unregisterFromEvents(e){this.#t.delete(e),this.#n.get(e)?.forEach((e=>{zt(e)})),this.#n.delete(e)}};class Nl{#r;#i;#o=-1;constructor(e,t){this.#r=e,this.#i=t,this.#o=this.getEventViewTag()}attachEvents(){zl(this.#r.props,((e,t)=>{t.registerForEvents(this.#o,e)}))}detachEvents(){zl(this.#r.props,((e,t)=>{t.unregisterFromEvents(this.#o)}))}updateEvents(e){const t=this.getEventViewTag(!0);if(this.#o!==t)return zl(e,((e,t)=>{t.unregisterFromEvents(this.#o)})),this.#o=t,void this.attachEvents();zl(e,((e,t)=>{const n=this.#r.props[e];n?_l(n)&&n.workletEventHandler!==t&&(t.unregisterFromEvents(this.#o),n.workletEventHandler.registerForEvents(this.#o)):t.unregisterFromEvents(this.#o)})),zl(this.#r.props,((t,n)=>{e[t]||n.registerForEvents(this.#o)}))}getEventViewTag(e=!1){const t=this.#r._componentRef;if(t?.getScrollableNode){const e=t.getScrollableNode();return"number"==typeof e?e:e??-1}return this.#i?.setNativeProps?this.#r??-1:e?t?.__nativeTag||t?._nativeTag?t.__nativeTag??t._nativeTag??-1:t??-1:this.#r.getComponentViewTag()}}function _l(e){return Il("workletEventHandler",e)&&e.workletEventHandler instanceof Fl}function zl(e,t){for(const n in e){const r=e[n];_l(r)&&t(n,r.workletEventHandler)}}function Vl(){}class Ul{_initialPropsMap=new Map;filterNonAnimatedProps(e){const t=e.props,n={};for(const r in t){const i=t[r];if("style"===r){const i=Tl(t.style??[]).map((t=>{if(t&&t.viewDescriptors){const n=t;return e._isFirstRender&&this._initialPropsMap.set(n,Object.assign({},n.initial.value,io(n.initial.updater))),this._initialPropsMap.get(n)??{}}return Pl(t)?Dl(t,e._isFirstRender):t}));n[r]=i}else if("animatedProps"===r){const e=t.animatedProps;void 0!==e.initial&&Object.keys(e.initial.value).forEach((t=>{n[t]=e.initial?.value[t]}))}else Il("workletEventHandler",i)&&i.workletEventHandler instanceof Fl?i.workletEventHandler.eventNames.length>0?i.workletEventHandler.eventNames.forEach((e=>{n[e]=Il("listeners",i.workletEventHandler)?i.workletEventHandler.listeners[e]:Vl})):n[r]=Vl:it(i)?e._isFirstRender&&(n[r]=i.value):"onGestureHandlerStateChange"===r&&f()||(n[r]=i)}return n}}const Hl=function({getForwardedRef:e,setLocalRef:t}){return function(n){const r=e();t(n),"function"==typeof r?r(n):"object"==typeof r&&null!=r&&(r.current=n)}},ql=!0,Gl=!1,Yl=g(),Wl=p();ql&&function(){if(!y()||null!==document.getElementById(ps))return;const e=document.createElement("style");e.id=ps,e.onload=()=>{if(e.sheet)for(const t in fs)e.sheet.insertRule(fs[t].style);else X.error("Failed to create layout animations stylesheet.")};const t=document.createElement("style");t.id=ms,document.head.appendChild(e),document.head.appendChild(t)}();let Ql=0;function Xl(e,t){Yl||Go()("function"!=typeof e||e.prototype&&e.prototype.isReactComponent,`Looks like you're passing a function component \`${e.name}\` to \`createAnimatedComponent\` function which supports only class components. Please wrap your function component with \`React.forwardRef()\` or use a class component instead.`);class n extends i.Component{_styles=null;_isFirstRender=!0;jestAnimatedStyle={value:{}};jestAnimatedProps={value:{}};_componentRef=null;_hasAnimatedRef=!1;_componentDOMRef=null;_sharedElementTransition=null;_jsPropsUpdater=new Ll;_InlinePropManager=new Bl;_PropsFilter=new Ul;static contextType=Qo;reanimatedID=Ql++;_willUnmount=!1;constructor(e){super(e),Gl&&(this.jestAnimatedStyle={value:{}},this.jestAnimatedProps={value:{}});const t=this.context?.current;m()&&!t&&this._configureLayoutAnimation(v.ENTERING,this.props.entering)}componentDidMount(){if(ql||(this._NativeEventsManager=new Nl(this,t)),this._NativeEventsManager?.attachEvents(),this._jsPropsUpdater.addOnJSPropsChangeListener(this),this._attachAnimatedStyles(),this._InlinePropManager.attachInlineProps(this,this._getViewInfo()),this._configureLayoutAnimation(v.LAYOUT,this.props.layout),this._configureLayoutAnimation(v.EXITING,this.props.exiting),ql&&this._componentDOMRef){const e=this._componentDOMRef,t=e.dummyClone;for(;t?.firstChild;)e.appendChild(t.firstChild);if(delete e.dummyClone,this.props.exiting&&$s(e),!this.props.entering)return void(this._isFirstRender=!1);if(Xs(this.props.entering))return this._isFirstRender=!1,void this.props.entering.callbackV?.(!0);const n=this.context?.current;n?e.style&&(e.style.visibility="initial"):rl(this.props,e,v.ENTERING)}const e=this._viewInfo?.viewTag;!Wl&&m()&&this._willUnmount&&"number"==typeof e&&function(e){$.unmarkNodeAsRemovable(e)}(e),this._isFirstRender=!1}componentWillUnmount(){this._NativeEventsManager?.detachEvents(),this._jsPropsUpdater.removeOnJSPropsChangeListener(this),this._detachStyles(),this._InlinePropManager.detachInlineProps(),this.props.sharedTransitionTag&&this._configureSharedTransition(!0),this._sharedElementTransition?.unregisterTransition(this.getComponentViewTag(),!0);const e=this.props.exiting;if(ql&&this._componentDOMRef&&e){if(Xs(e))return void e.callbackV?.(!0);!vs&&y()&&(vs=!0,new MutationObserver((e=>{const t=e[e.length-1];if(!function(e){let t="__reactFiber";for(const n of Object.keys(e))if(n.startsWith("__reactFiber")){t=n;break}return void 0!==e[t]?.child?.memoizedProps?.navigation}(t.target))for(let e=0;ee?.viewDescriptors))}(Tl(this.props.style)):[],t=this.props.animatedProps,n=this._styles;this._styles=e;const r=this._animatedProps;this._animatedProps=t;const{viewTag:i,viewName:o,shadowNodeWrapper:a,viewConfig:s}=this._getViewInfo();(this.props.animatedProps?.viewDescriptors||e.length)&&s&&ia(s);const l=new Set(e),c=e=>e.viewDescriptors.has(i);if(n){if(1===e.length&&1===n.length&&e[0]===n[0]&&c(n[0]))return;for(const t of n)!e.some((e=>e===t))&&c(t)&&t.viewDescriptors.remove(i)}t&&Gl&&(this.jestAnimatedProps.value=Object.assign({},this.jestAnimatedProps.value,t?.initial?.value),t?.jestAnimatedValues&&(t.jestAnimatedValues.current=this.jestAnimatedProps)),l.forEach((e=>{e.viewDescriptors.add({tag:i,name:o,shadowNodeWrapper:a}),Gl&&(this.jestAnimatedStyle.value=Object.assign({},this.jestAnimatedStyle.value,e.initial.value),e.jestAnimatedValues.current=this.jestAnimatedStyle)})),r&&r!==this.props.animatedProps&&r.viewDescriptors.remove(i),this.props.animatedProps?.viewDescriptors&&this.props.animatedProps.viewDescriptors.add({tag:i,name:o,shadowNodeWrapper:a})}componentDidUpdate(e,t,n){if(this._configureLayoutAnimation(v.LAYOUT,this.props.layout,e.layout),this._configureLayoutAnimation(v.EXITING,this.props.exiting,e.exiting),void 0===this.props.sharedTransitionTag&&void 0===e.sharedTransitionTag||this._configureSharedTransition(),this._NativeEventsManager?.updateEvents(e),this._attachAnimatedStyles(),this._InlinePropManager.attachInlineProps(this,this._getViewInfo()),ql&&this.props.exiting&&this._componentDOMRef&&$s(this._componentDOMRef),ql&&n&&this.props.layout){if(Xs(this.props.layout))return void this.props.layout.callbackV?.(!0);!function(e,t,n){if(!e.layout)return;const r=t.getBoundingClientRect();if(o=n,(i=r).x===o.x&&i.y===o.y&&i.width===o.width&&i.height===o.height)return;var i,o;const a=e.layout.enteringV?.presetName,s=e.layout.exitingV?.presetName,l=(n.width-r.width)/2,c=(n.height-r.height)/2,u={translateX:n.x-r.x+l,translateY:n.y-r.y+c,scaleX:n.width/r.width,scaleY:n.height/r.height,reversed:!1,easingX:e.layout.easingXV?.[ai]??"ease",easingY:e.layout.easingYV?.[ai]??"ease",entering:a,exiting:s};rl(e,t,v.LAYOUT,u)}(this.props,this._componentDOMRef,n)}}_configureLayoutAnimation(e,t,r){if(!ql&&t!==r){if(this._isReducedMotion(t)){if(!r)return;t=void 0}sl(m()&&e===v.ENTERING?this.reanimatedID:this.getComponentViewTag(),e,t&&(i=t,e===v.LAYOUT||this.props,n.displayName,"build"in i&&"function"==typeof i.build?i.build():i))}var i}_configureSharedTransition(e=!1){if(ql)return;const{sharedTransitionTag:t}=this.props;if(!t)return this._sharedElementTransition?.unregisterTransition(this.getComponentViewTag(),e),void(this._sharedElementTransition=null);const n=this.props.sharedTransitionStyle??this._sharedElementTransition??new aa;n.registerTransition(this.getComponentViewTag(),t,e),this._sharedElementTransition=n}_resolveComponentRef=e=>{const t=e;return t&&t.getAnimatableRef?(this._hasAnimatedRef=!0,t.getAnimatableRef()):(Wl&&(t&&t.elementRef?this._componentDOMRef=t.elementRef.current:this._componentDOMRef=e),t)};_setComponentRef=Hl({getForwardedRef:()=>this.props.forwardedRef,setLocalRef:e=>{if(!e)return;e!==this._componentRef&&(this._componentRef=this._resolveComponentRef(e),this._viewInfo=void 0);const{layout:t,entering:n,exiting:r,sharedTransitionTag:i}=this.props;if(t||n||r||i){Wl||Gt(!0,!1),i&&this._configureSharedTransition();const e=this.context?.current;!n||m()||e||ql||this._configureLayoutAnimation(v.ENTERING,this.props.entering)}}});_isReducedMotion(e){return e&&"getReduceMotion"in e&&"function"==typeof e.getReduceMotion?co(e.getReduceMotion()):co()}getSnapshotBeforeUpdate(){return ql&&this.props.layout&&this._componentDOMRef?.getBoundingClientRect?this._componentDOMRef.getBoundingClientRect():null}render(){const t=this._PropsFilter.filterNonAnimatedProps(this);Gl&&(t.jestAnimatedStyle=this.jestAnimatedStyle,t.jestAnimatedProps=this.jestAnimatedProps),this._isFirstRender&&ql&&t.entering&&!Xs(t.entering)&&(t.style=Array.isArray(t.style)?t.style.concat([{visibility:"hidden"}]):Object.assign({},t.style??{},{visibility:"hidden"}));const n=this.context?.current,r=n||!m()?void 0:`${this.reanimatedID}`,i=Gl?{jestInlineStyle:this.props.style&&Jl(this.props.style),jestAnimatedStyle:this.jestAnimatedStyle,jestAnimatedProps:this.jestAnimatedProps}:{};return(0,Yo.jsx)(e,Object.assign({nativeID:r},t,i,{ref:this._setComponentRef},{}))}}n.displayName=`AnimatedComponent(${e.displayName||e.name||"Component"})`;const r=al(((e,t)=>(0,Yo.jsx)(n,Object.assign({},e,null===t?null:{forwardedRef:t}))));return r.displayName=e.displayName||e.name||"Component",r}function Jl(e){return e?Array.isArray(e)?e.filter((e=>!(e&&"viewDescriptors"in e))).map((e=>Array.isArray(e)?Jl(e):e)):e?.viewDescriptors?{}:e:e}var Zl=n(9176);const Kl=Xl(Zl.A),$l=["itemLayoutAnimation","skipEnteringExitingAnimations","CellRendererComponentStyle"],ec=Xl(o.A),tc=al((function(e,t){const{itemLayoutAnimation:n,skipEnteringExitingAnimations:r,CellRendererComponentStyle:o}=e,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,$l);"scrollEventThrottle"in a||(a.scrollEventThrottle=1);const s=(0,i.useRef)(n);s.current=n;const l=(0,i.useRef)(o);l.current=o;const c=i.useMemo((()=>((e,t)=>n=>(0,Yo.jsx)(Kl,{layout:e?.current,onLayout:n.onLayout,style:[n.style,"function"==typeof t?.current?t?.current({index:n.index,item:n.item}):t?.current],children:n.children}))(s,l)),[]),u=(0,Yo.jsx)(ec,Object.assign({ref:t},a,{CellRendererComponent:c}));return void 0===r?u:(0,Yo.jsx)(Jo,{skipEntering:!0,skipExiting:!0,children:u})})),nc=Xl(n(50728).A);var rc=n(34951);const ic=p();function oc(e){return e.getScrollableNode?e.getScrollableNode():e.getNativeScrollRef?e.getNativeScrollRef():e}function ac(e){const t=(0,i.useRef)(new Map).current,n=(0,i.useRef)(-1),r=(0,i.useRef)(null);if(!r.current){const i=r=>{if(r&&(n.current=e(r),i.getTag=()=>r,i.current=r,t.size)){const e=i?.getTag?.()??null;t.forEach(((n,r)=>{n?.(),t.set(r,r(e))}))}return n.current};i.observe=e=>{const n=e(i?.getTag?.()??null);return t.set(e,n),()=>{t.get(e)?.(),t.delete(e)}},i.current=null,r.current=i}return r.current}const sc={code:"function reactNativeReanimated_useAnimatedRefJs1(){const{tagOrWrapper,viewName}=this.__closure;const f=function(){return tagOrWrapper.value;};if(viewName){f.viewName=viewName;}return f;}"},lc=ic?function(){return ac((e=>oc(e)))}:function(){const[e]=(0,i.useState)((()=>(m(),null))),[t]=(0,i.useState)((()=>et(null))),n=ac((n=>{const r=m()?oa:e=>oc(e);return t.value=r(n),e&&(e.value=n?.viewConfig?.uiViewClassName||"RCTView"),t.value}));if(!re.get(n)){const r=fe({__init:function(){const n=function(){const n=()=>t.value;return e&&(n.viewName=e),n};return n.__closure={tagOrWrapper:t,viewName:e},n.__workletHash=2273190036261,n.__initData=sc,n}()});re.set(n,r)}return n};function cc(e,t=[],n=!1){const r=(0,i.useRef)(null);if(null===r.current){const n=new Fl(e,t);r.current={workletEventHandler:n}}else if(n){const n=r.current.workletEventHandler;n.updateEventHandler(e,t),r.current={workletEventHandler:n}}return r.current}function uc(e){const[t]=(0,i.useState)((()=>et(e)));return(0,i.useEffect)((()=>()=>{Eo(t)}),[t]),t}const hc=function(e,t){const n=uc(0),r=(0,i.useRef)(t??n).current,o=(0,i.useCallback)(function(){const t=function(){if(e){const t=fc(e.current);r.value=0===t.scrollLeft?t.scrollTop:t.scrollLeft}};return t.__closure={animatedRef:e,getWebScrollableElement:fc,offset:r},t.__workletHash=7236655608623,t.__initData=dc,t}(),[e,r]);return(0,i.useEffect)((()=>{if(e)return e.observe((t=>{if(!t)return void X.warn("animatedRef is not initialized in useScrollViewOffset. Make sure to pass the animated ref to the scrollable component to get scroll offset updates.");const n=fc(e.current);return n.addEventListener("scroll",o),()=>{n.removeEventListener("scroll",o)}}))}),[e,o]),r},dc={code:"function reactNativeReanimated_useScrollViewOffsetJs1(){const{animatedRef,getWebScrollableElement,offset}=this.__closure;if(animatedRef){const element=getWebScrollableElement(animatedRef.current);offset.value=element.scrollLeft===0?element.scrollTop:element.scrollLeft;}}"};function fc(e){return e?.getScrollableNode()??e}const pc=["scrollViewOffset"],mc=Xl(rc.A),gc=al(((e,t)=>{const{scrollViewOffset:n}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,pc),i=null===t?lc():t;return n&&hc(i,n),"scrollEventThrottle"in r||(r.scrollEventThrottle=1),(0,Yo.jsx)(mc,Object.assign({ref:i},r))})),yc=Xl(n(78506).A),vc={code:"function reactNativeReanimated_clampJs1(config,_animationToClamp){const{defineAnimation,recognizePrefixSuffix,logger,getReduceMotionForAnimation}=this.__closure;return defineAnimation(_animationToClamp,function(){'worklet';const animationToClamp=typeof _animationToClamp==='function'?_animationToClamp():_animationToClamp;const strippedMin=config.min===undefined?undefined:recognizePrefixSuffix(config.min).strippedValue;const strippedMax=config.max===undefined?undefined:recognizePrefixSuffix(config.max).strippedValue;function clampOnFrame(animation,now){const finished=animationToClamp.onFrame(animationToClamp,now);if(animationToClamp.current===undefined){logger.warn(\"Error inside 'withClamp' animation, the inner animation has invalid current value\");return true;}else{const{prefix:prefix,strippedValue:strippedValue,suffix:suffix}=recognizePrefixSuffix(animationToClamp.current);let newValue;if(strippedMax!==undefined&&strippedMaxstrippedValue){newValue=strippedMin;}else{newValue=strippedValue;}animation.current=typeof animationToClamp.current==='number'?newValue:\"\"+(prefix===undefined?'':prefix)+newValue+(suffix===undefined?'':suffix);}return finished;}function onStart(animation,value,now,previousAnimation){animation.current=value;animation.previousAnimation=animationToClamp;const animationBeforeClamped=previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.previousAnimation;if(config.max!==undefined&&config.min!==undefined&&config.maxstrippedValue){newValue=strippedMin;}else{newValue=strippedValue;}animation.current=typeof animationToClamp.current==='number'?newValue:\"\"+(prefix===undefined?'':prefix)+newValue+(suffix===undefined?'':suffix);}return finished;}function onStart(animation,value,now,previousAnimation){animation.current=value;animation.previousAnimation=animationToClamp;const animationBeforeClamped=previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.previousAnimation;if(config.max!==undefined&&config.min!==undefined&&config.maxo?r:o,e.current="number"==typeof n.current?s:`${void 0===t?"":t}${s}${void 0===a?"":a}`}return o},onStart:function(t,r,i,o){t.current=r,t.previousAnimation=n;const a=o?.previousAnimation;void 0!==e.max&&void 0!==e.min&&e.max{n.callback&&n.callback(e)},previousAnimation:null,reduceMotion:ho(e.reduceMotion)}};return n.__closure={_animationToClamp:t,config:e,recognizePrefixSuffix:ao,logger:X,getReduceMotionForAnimation:ho},n.__workletHash=0xdb018d05057,n.__initData=bc,n}())};return e.__closure={defineAnimation:xo,recognizePrefixSuffix:ao,logger:X,getReduceMotionForAnimation:ho},e.__workletHash=0xa395161786b,e.__initData=vc,e}(),xc=.05,wc=.1,Cc={code:"function isValidRubberBandConfig_reactNativeReanimated_utilsJs1(config){return!!config.rubberBandEffect&&Array.isArray(config.clamp)&&config.clamp.length===2;}"},Sc=function(){const e=function(e){return!!e.rubberBandEffect&&Array.isArray(e.clamp)&&2===e.clamp.length};return e.__closure={},e.__workletHash=0xfd5c9ea3133,e.__initData=Cc,e}(),Ec={code:"function rigidDecay_reactNativeReanimated_rigidDecayJs1(animation,now,config){const{SLOPE_FACTOR,VELOCITY_EPS}=this.__closure;const{lastTimestamp:lastTimestamp,startTimestamp:startTimestamp,initialVelocity:initialVelocity,current:current,velocity:velocity}=animation;const deltaTime=Math.min(now-lastTimestamp,64);const v=velocity*Math.exp(-(1-config.deceleration)*(now-startTimestamp)*SLOPE_FACTOR);animation.current=current+v*config.velocityFactor*deltaTime/1000;animation.velocity=v;animation.lastTimestamp=now;if(config.clamp){if(initialVelocity<0&&animation.current<=config.clamp[0]){animation.current=config.clamp[0];return true;}else if(initialVelocity>0&&animation.current>=config.clamp[1]){animation.current=config.clamp[1];return true;}}return Math.abs(v)0&&e.current>=n.clamp[1])return e.current=n.clamp[1],!0}return Math.abs(c)config.clamp[1]){derivative=current-config.clamp[clampIndex];}const v=velocity*Math.exp(-(1-config.deceleration)*(now-startTimestamp)*SLOPE_FACTOR)-derivative*config.rubberBandFactor;if(Math.abs(derivative)>DERIVATIVE_EPS){animation.springActive=true;}else if(animation.springActive){animation.current=config.clamp[clampIndex];return true;}else if(Math.abs(v)n.clamp[1])&&(c=o-n.clamp[l]);const u=a*Math.exp(-(1-n.deceleration)*(t-i)*wc)-c*n.rubberBandFactor;if(Math.abs(c)>.1)e.springActive=!0;else{if(e.springActive)return e.current=n.clamp[l],!0;if(Math.abs(u)config.clamp[1]){animation.current=config.clamp[1];}}}return{onFrame:decay,onStart:onStart,callback:callback,velocity:(_config$velocity=config.velocity)!==null&&_config$velocity!==void 0?_config$velocity:0,initialVelocity:0,current:undefined,lastTimestamp:0,startTimestamp:0,reduceMotion:getReduceMotionForAnimation(config.reduceMotion)};});}"},Pc={code:"function reactNativeReanimated_decayJs3(){const{userConfig,isValidRubberBandConfig,rubberBandDecay,rigidDecay,validateConfig,callback,getReduceMotionForAnimation}=this.__closure;var _config$velocity;const config={deceleration:0.998,velocityFactor:1,velocity:0,rubberBandFactor:0.6};if(userConfig){Object.keys(userConfig).forEach(function(key){return config[key]=userConfig[key];});}const decay=isValidRubberBandConfig(config)?function(animation,now){return rubberBandDecay(animation,now,config);}:function(animation,now){return rigidDecay(animation,now,config);};function onStart(animation,value,now){const initialVelocity=config.velocity;animation.current=value;animation.lastTimestamp=now;animation.startTimestamp=now;animation.initialVelocity=initialVelocity;animation.velocity=initialVelocity;validateConfig(config);if(animation.reduceMotion&&config.clamp){if(valueconfig.clamp[1]){animation.current=config.clamp[1];}}}return{onFrame:decay,onStart:onStart,callback:callback,velocity:(_config$velocity=config.velocity)!==null&&_config$velocity!==void 0?_config$velocity:0,initialVelocity:0,current:undefined,lastTimestamp:0,startTimestamp:0,reduceMotion:getReduceMotionForAnimation(config.reduceMotion)};}"},Dc=function(){const e=function(e,t){return xo(0,function(){const n=function(){const n={deceleration:.998,velocityFactor:1,velocity:0,rubberBandFactor:.6};return e&&Object.keys(e).forEach((t=>n[t]=e[t])),{onFrame:Sc(n)?(e,t)=>Ic(e,t,n):(e,t)=>kc(e,t,n),onStart:function(e,t,r){const i=n.velocity;e.current=t,e.lastTimestamp=r,e.startTimestamp=r,e.initialVelocity=i,e.velocity=i,Rc(n),e.reduceMotion&&n.clamp&&(tn.clamp[1]&&(e.current=n.clamp[1]))},callback:t,velocity:n.velocity??0,initialVelocity:0,current:void 0,lastTimestamp:0,startTimestamp:0,reduceMotion:ho(n.reduceMotion)}};return n.__closure={userConfig:e,isValidRubberBandConfig:Sc,rubberBandDecay:Ic,rigidDecay:kc,validateConfig:Rc,callback:t,getReduceMotionForAnimation:ho},n.__workletHash=3756010046105,n.__initData=Pc,n}())};return e.__closure={defineAnimation:xo,isValidRubberBandConfig:Sc,rubberBandDecay:Ic,rigidDecay:kc,validateConfig:Rc,getReduceMotionForAnimation:ho},e.__workletHash=0xff16493aa76,e.__initData=Mc,e}(),jc={code:"function reactNativeReanimated_repeatJs1(_nextAnimation,numberOfReps=2,reverse=false,callback,reduceMotion){const{defineAnimation,getReduceMotionForAnimation}=this.__closure;return defineAnimation(_nextAnimation,function(){'worklet';const nextAnimation=typeof _nextAnimation==='function'?_nextAnimation():_nextAnimation;function repeat(animation,now){const finished=nextAnimation.onFrame(nextAnimation,now);animation.current=nextAnimation.current;if(finished){animation.reps+=1;if(nextAnimation.callback){nextAnimation.callback(true,animation.current);}if(animation.reduceMotion||numberOfReps>0&&animation.reps>=numberOfReps){return true;}const startValue=reverse?nextAnimation.current:animation.startValue;if(reverse){nextAnimation.toValue=animation.startValue;animation.startValue=startValue;}nextAnimation.onStart(nextAnimation,startValue,now,nextAnimation.previousAnimation);return false;}return false;}const repCallback=function(finished){if(callback){callback(finished);}if(!finished&&nextAnimation.callback){nextAnimation.callback(false);}};function onStart(animation,value,now,previousAnimation){animation.startValue=value;animation.reps=0;if(nextAnimation.reduceMotion===undefined){nextAnimation.reduceMotion=animation.reduceMotion;}if(animation.reduceMotion&&reverse&&(numberOfReps<=0||numberOfReps%2===0)){animation.current=animation.startValue;animation.onFrame=function(){return true;};}else{nextAnimation.onStart(nextAnimation,value,now,previousAnimation);}}return{isHigherOrder:true,onFrame:repeat,onStart:onStart,reps:0,current:nextAnimation.current,callback:repCallback,startValue:0,reduceMotion:getReduceMotionForAnimation(reduceMotion)};});}"},Bc={code:"function reactNativeReanimated_repeatJs2(){const{_nextAnimation,numberOfReps,reverse,callback,getReduceMotionForAnimation,reduceMotion}=this.__closure;const nextAnimation=typeof _nextAnimation==='function'?_nextAnimation():_nextAnimation;function repeat(animation,now){const finished=nextAnimation.onFrame(nextAnimation,now);animation.current=nextAnimation.current;if(finished){animation.reps+=1;if(nextAnimation.callback){nextAnimation.callback(true,animation.current);}if(animation.reduceMotion||numberOfReps>0&&animation.reps>=numberOfReps){return true;}const startValue=reverse?nextAnimation.current:animation.startValue;if(reverse){nextAnimation.toValue=animation.startValue;animation.startValue=startValue;}nextAnimation.onStart(nextAnimation,startValue,now,nextAnimation.previousAnimation);return false;}return false;}const repCallback=function(finished){if(callback){callback(finished);}if(!finished&&nextAnimation.callback){nextAnimation.callback(false);}};function onStart(animation,value,now,previousAnimation){animation.startValue=value;animation.reps=0;if(nextAnimation.reduceMotion===undefined){nextAnimation.reduceMotion=animation.reduceMotion;}if(animation.reduceMotion&&reverse&&(numberOfReps<=0||numberOfReps%2===0)){animation.current=animation.startValue;animation.onFrame=function(){return true;};}else{nextAnimation.onStart(nextAnimation,value,now,previousAnimation);}}return{isHigherOrder:true,onFrame:repeat,onStart:onStart,reps:0,current:nextAnimation.current,callback:repCallback,startValue:0,reduceMotion:getReduceMotionForAnimation(reduceMotion)};}"},Lc=function(){const e=function(e,t=2,n=!1,r,i){return xo(e,function(){const o=function(){const o="function"==typeof e?e():e;return{isHigherOrder:!0,onFrame:function(e,r){const i=o.onFrame(o,r);if(e.current=o.current,i){if(e.reps+=1,o.callback&&o.callback(!0,e.current),e.reduceMotion||t>0&&e.reps>=t)return!0;const i=n?o.current:e.startValue;return n&&(o.toValue=e.startValue,e.startValue=i),o.onStart(o,i,r,o.previousAnimation),!1}return!1},onStart:function(e,r,i,a){e.startValue=r,e.reps=0,void 0===o.reduceMotion&&(o.reduceMotion=e.reduceMotion),e.reduceMotion&&n&&(t<=0||t%2==0)?(e.current=e.startValue,e.onFrame=()=>!0):o.onStart(o,r,i,a)},reps:0,current:o.current,callback:e=>{r&&r(e),!e&&o.callback&&o.callback(!1)},startValue:0,reduceMotion:ho(i)}};return o.__closure={_nextAnimation:e,numberOfReps:t,reverse:n,callback:r,getReduceMotionForAnimation:ho,reduceMotion:i},o.__workletHash=6384536396530,o.__initData=Bc,o}())};return e.__closure={defineAnimation:xo,getReduceMotionForAnimation:ho},e.__workletHash=0xd688674bc6e,e.__initData=jc,e}(),Fc={code:"function checkIfConfigIsValid_reactNativeReanimated_springUtilsJs1(config){const{logger}=this.__closure;var _config$clamp,_config$clamp2;let errorMessage='';['stiffness','damping','dampingRatio','restDisplacementThreshold','restSpeedThreshold','mass'].forEach(function(prop){const value=config[prop];if(value<=0){errorMessage+=\", \"+prop+\" must be grater than zero but got \"+value;}});if(config.duration<0){errorMessage+=\", duration can't be negative, got \"+config.duration;}if((_config$clamp=config.clamp)!==null&&_config$clamp!==void 0&&_config$clamp.min&&(_config$clamp2=config.clamp)!==null&&_config$clamp2!==void 0&&_config$clamp2.max&&config.clamp.min>config.clamp.max){errorMessage+=\", clamp.min should be lower than clamp.max, got clamp: {min: \"+config.clamp.min+\", max: \"+config.clamp.max+\"} \";}if(errorMessage!==''){logger.warn('Invalid spring config'+errorMessage);}return errorMessage==='';}"},Nc=function(){const e=function(e){let t="";return["stiffness","damping","dampingRatio","restDisplacementThreshold","restSpeedThreshold","mass"].forEach((n=>{const r=e[n];r<=0&&(t+=`, ${n} must be grater than zero but got ${r}`)})),e.duration<0&&(t+=`, duration can't be negative, got ${e.duration}`),e.clamp?.min&&e.clamp?.max&&e.clamp.min>e.clamp.max&&(t+=`, clamp.min should be lower than clamp.max, got clamp: {min: ${e.clamp.min}, max: ${e.clamp.max}} `),""!==t&&X.warn("Invalid spring config"+t),""===t};return e.__closure={logger:X},e.__workletHash=955947669822,e.__initData=Fc,e}(),_c={code:"function bisectRoot_reactNativeReanimated_springUtilsJs2({min:min,max:max,func:func,maxIterations=20}){const ACCURACY=0.00005;let idx=maxIterations;let current=(max+min)/2;while(Math.abs(func(current))>ACCURACY&&idx>0){idx-=1;if(func(current)<0){min=current;}else{max=current;}current=(min+max)/2;}return current;}"},zc=function(){const e=function({min:e,max:t,func:n,maxIterations:r=20}){let i=r,o=(t+e)/2;for(;Math.abs(n(o))>5e-5&&i>0;)i-=1,n(o)<0?e=o:t=o,o=(e+t)/2;return o};return e.__closure={},e.__workletHash=0xe200e84ed39,e.__initData=_c,e}(),Vc={code:"function initialCalculations_reactNativeReanimated_springUtilsJs3(mass=0,config){if(config.skipAnimation){return{zeta:0,omega0:0,omega1:0};}if(config.useDuration){const{stiffness:k,dampingRatio:zeta}=config;const omega0=Math.sqrt(k/mass);const omega1=omega0*Math.sqrt(1-zeta**2);return{zeta:zeta,omega0:omega0,omega1:omega1};}else{const{damping:c,mass:m,stiffness:k}=config;const zeta=c/(2*Math.sqrt(k*m));const omega0=Math.sqrt(k/m);const omega1=omega0*Math.sqrt(1-zeta**2);return{zeta:zeta,omega0:omega0,omega1:omega1};}}"},Uc=function(){const e=function(e=0,t){if(t.skipAnimation)return{zeta:0,omega0:0,omega1:0};if(t.useDuration){const{stiffness:n,dampingRatio:r}=t,i=Math.sqrt(n/e);return{zeta:r,omega0:i,omega1:i*Math.sqrt(1-r**2)}}{const{damping:e,mass:n,stiffness:r}=t,i=e/(2*Math.sqrt(r*n)),o=Math.sqrt(r/n);return{zeta:i,omega0:o,omega1:o*Math.sqrt(1-i**2)}}};return e.__closure={},e.__workletHash=0xc5a4afeee15,e.__initData=Vc,e}(),Hc={code:"function scaleZetaToMatchClamps_reactNativeReanimated_springUtilsJs4(animation,clamp){const{zeta:zeta,toValue:toValue,startValue:startValue}=animation;const toValueNum=Number(toValue);if(toValueNum===startValue){return zeta;}const[firstBound,secondBound]=toValueNum-startValue>0?[clamp.min,clamp.max]:[clamp.max,clamp.min];const relativeExtremum1=secondBound!==undefined?Math.abs((secondBound-toValueNum)/(toValueNum-startValue)):undefined;const relativeExtremum2=firstBound!==undefined?Math.abs((firstBound-toValueNum)/(toValueNum-startValue)):undefined;const newZeta1=relativeExtremum1!==undefined?Math.abs(Math.log(relativeExtremum1)/Math.PI):undefined;const newZeta2=relativeExtremum2!==undefined?Math.abs(Math.log(relativeExtremum2)/(2*Math.PI)):undefined;const zetaSatisfyingClamp=[newZeta1,newZeta2].filter(function(x){return x!==undefined;});return Math.max(...zetaSatisfyingClamp,zeta);}"},qc=function(){const e=function(e,t){const{zeta:n,toValue:r,startValue:i}=e,o=Number(r);if(o===i)return n;const[a,s]=o-i>0?[t.min,t.max]:[t.max,t.min],l=void 0!==s?Math.abs((s-o)/(o-i)):void 0,c=void 0!==a?Math.abs((a-o)/(o-i)):void 0,u=[void 0!==l?Math.abs(Math.log(l)/Math.PI):void 0,void 0!==c?Math.abs(Math.log(c)/(2*Math.PI)):void 0].filter((e=>void 0!==e));return Math.max(...u,n)};return e.__closure={},e.__workletHash=0xd7e46a407c6,e.__initData=Hc,e}(),Gc={code:"function calculateNewMassToMatchDuration_reactNativeReanimated_springUtilsJs5(x0,config,v0){const{bisectRoot}=this.__closure;if(config.skipAnimation){return 0;}const{stiffness:k,dampingRatio:zeta,restSpeedThreshold:threshold,duration:duration}=config;const durationForMass=function(mass){'worklet';const amplitude=(mass*v0*v0+k*x0*x0)/(Math.exp(1-0.5*zeta)*k);const c=zeta*2*Math.sqrt(k*mass);return 1000*(-2*mass/c)*Math.log(threshold*0.01/amplitude)-duration;};return bisectRoot({min:0,max:100,func:durationForMass});}"},Yc={code:"function reactNativeReanimated_springUtilsJs6(mass){const{v0,k,x0,zeta,threshold,duration}=this.__closure;const amplitude=(mass*v0*v0+k*x0*x0)/(Math.exp(1-0.5*zeta)*k);const c=zeta*2*Math.sqrt(k*mass);return 1000*(-2*mass/c)*Math.log(threshold*0.01/amplitude)-duration;}"},Wc=function(){const e=function(e,t,n){if(t.skipAnimation)return 0;const{stiffness:r,dampingRatio:i,restSpeedThreshold:o,duration:a}=t,s=function(){const t=function(t){const s=(t*n*n+r*e*e)/(Math.exp(1-.5*i)*r);return-2*t/(2*i*Math.sqrt(r*t))*1e3*Math.log(.01*o/s)-a};return t.__closure={v0:n,k:r,x0:e,zeta:i,threshold:o,duration:a},t.__workletHash=0xbb152ee9ead,t.__initData=Yc,t}();return zc({min:0,max:100,func:s})};return e.__closure={bisectRoot:zc},e.__workletHash=0xd71885c08c2,e.__initData=Gc,e}(),Qc={code:"function criticallyDampedSpringCalculations_reactNativeReanimated_springUtilsJs7(animation,precalculatedValues){const{toValue:toValue}=animation;const{v0:v0,x0:x0,omega0:omega0,t:t}=precalculatedValues;const criticallyDampedEnvelope=Math.exp(-omega0*t);const criticallyDampedPosition=toValue-criticallyDampedEnvelope*(x0+(v0+omega0*x0)*t);const criticallyDampedVelocity=criticallyDampedEnvelope*(v0*(t*omega0-1)+t*x0*omega0*omega0);return{position:criticallyDampedPosition,velocity:criticallyDampedVelocity};}"},Xc=function(){const e=function(e,t){const{toValue:n}=e,{v0:r,x0:i,omega0:o,t:a}=t,s=Math.exp(-o*a);return{position:n-s*(i+(r+o*i)*a),velocity:s*(r*(a*o-1)+a*i*o*o)}};return e.__closure={},e.__workletHash=349985694663,e.__initData=Qc,e}(),Jc={code:"function underDampedSpringCalculations_reactNativeReanimated_springUtilsJs8(animation,precalculatedValues){const{toValue:toValue,current:current,velocity:velocity}=animation;const{zeta:zeta,t:t,omega0:omega0,omega1:omega1}=precalculatedValues;const v0=-velocity;const x0=toValue-current;const sin1=Math.sin(omega1*t);const cos1=Math.cos(omega1*t);const underDampedEnvelope=Math.exp(-zeta*omega0*t);const underDampedFrag1=underDampedEnvelope*(sin1*((v0+zeta*omega0*x0)/omega1)+x0*cos1);const underDampedPosition=toValue-underDampedFrag1;const underDampedVelocity=zeta*omega0*underDampedFrag1-underDampedEnvelope*(cos1*(v0+zeta*omega0*x0)-omega1*x0*sin1);return{position:underDampedPosition,velocity:underDampedVelocity};}"},Zc=function(){const e=function(e,t){const{toValue:n,current:r,velocity:i}=e,{zeta:o,t:a,omega0:s,omega1:l}=t,c=-i,u=n-r,h=Math.sin(l*a),d=Math.cos(l*a),f=Math.exp(-o*s*a),p=f*(h*((c+o*s*u)/l)+u*d);return{position:n-p,velocity:o*s*p-f*(d*(c+o*s*u)-l*u*h)}};return e.__closure={},e.__workletHash=2991431177292,e.__initData=Jc,e}(),Kc={code:"function isAnimationTerminatingCalculation_reactNativeReanimated_springUtilsJs9(animation,config){const{toValue:toValue,velocity:velocity,startValue:startValue,current:current}=animation;const isOvershooting=config.overshootClamping?current>toValue&&startValuetoValue:false;const isVelocity=Math.abs(velocity)n&&in),isVelocity:Math.abs(r)=config.duration){animation.current=toValue;animation.lastTimestamp=0;return true;}if(config.skipAnimation){animation.current=toValue;animation.lastTimestamp=0;return true;}const{lastTimestamp:lastTimestamp,velocity:velocity}=animation;const deltaTime=Math.min(now-lastTimestamp,64);animation.lastTimestamp=now;const t=deltaTime/1000;const v0=-velocity;const x0=toValue-current;const{zeta:zeta,omega0:omega0,omega1:omega1}=animation;const{position:newPosition,velocity:newVelocity}=zeta<1?underDampedSpringCalculations(animation,{zeta:zeta,v0:v0,x0:x0,omega0:omega0,omega1:omega1,t:t}):criticallyDampedSpringCalculations(animation,{v0:v0,x0:x0,omega0:omega0,t:t});animation.current=newPosition;animation.velocity=newVelocity;const{isOvershooting:isOvershooting,isVelocity:isVelocity,isDisplacement:isDisplacement}=isAnimationTerminatingCalculation(animation,config);const springIsNotInMove=isOvershooting||isVelocity&&isDisplacement;if(!config.useDuration&&springIsNotInMove){animation.velocity=0;animation.current=toValue;animation.lastTimestamp=0;return true;}return false;}function isTriggeredTwice(previousAnimation,animation){return(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.lastTimestamp)&&(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startTimestamp)&&(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.toValue)===animation.toValue&&(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.duration)===animation.duration&&(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.dampingRatio)===animation.dampingRatio;}function onStart(animation,value,now,previousAnimation){animation.current=value;animation.startValue=value;let mass=config.mass;const triggeredTwice=isTriggeredTwice(previousAnimation,animation);const duration=config.duration;const x0=triggeredTwice?previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startValue:Number(animation.toValue)-value;if(previousAnimation){animation.velocity=(triggeredTwice?previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.velocity:(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.velocity)+config.velocity)||0;}else{animation.velocity=config.velocity||0;}if(triggeredTwice){animation.zeta=(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.zeta)||0;animation.omega0=(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.omega0)||0;animation.omega1=(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.omega1)||0;}else{if(config.useDuration){const actualDuration=triggeredTwice?duration-(((previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.lastTimestamp)||0)-((previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startTimestamp)||0)):duration;config.duration=actualDuration;mass=calculateNewMassToMatchDuration(x0,config,animation.velocity);}const{zeta:zeta,omega0:omega0,omega1:omega1}=initialCalculations(mass,config);animation.zeta=zeta;animation.omega0=omega0;animation.omega1=omega1;if(config.clamp!==undefined){animation.zeta=scaleZetaToMatchClamps(animation,config.clamp);}}animation.lastTimestamp=(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.lastTimestamp)||now;animation.startTimestamp=triggeredTwice?(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startTimestamp)||now:now;}return{onFrame:springOnFrame,onStart:onStart,toValue:toValue,velocity:config.velocity||0,current:toValue,startValue:0,callback:callback,lastTimestamp:0,startTimestamp:0,zeta:0,omega0:0,omega1:0,reduceMotion:getReduceMotionForAnimation(config.reduceMotion)};});}"},tu={code:"function reactNativeReanimated_springJs2(){const{userConfig,checkIfConfigIsValid,underDampedSpringCalculations,criticallyDampedSpringCalculations,isAnimationTerminatingCalculation,calculateNewMassToMatchDuration,initialCalculations,scaleZetaToMatchClamps,toValue,callback,getReduceMotionForAnimation}=this.__closure;var _userConfig,_userConfig2;const defaultConfig={damping:10,mass:1,stiffness:100,overshootClamping:false,restDisplacementThreshold:0.01,restSpeedThreshold:2,velocity:0,duration:2000,dampingRatio:0.5,reduceMotion:undefined,clamp:undefined};const config={...defaultConfig,...userConfig,useDuration:!!((_userConfig=userConfig)!==null&&_userConfig!==void 0&&_userConfig.duration||(_userConfig2=userConfig)!==null&&_userConfig2!==void 0&&_userConfig2.dampingRatio),skipAnimation:false};config.skipAnimation=!checkIfConfigIsValid(config);if(config.duration===0){config.skipAnimation=true;}function springOnFrame(animation,now){const{toValue:toValue,startTimestamp:startTimestamp,current:current}=animation;const timeFromStart=now-startTimestamp;if(config.useDuration&&timeFromStart>=config.duration){animation.current=toValue;animation.lastTimestamp=0;return true;}if(config.skipAnimation){animation.current=toValue;animation.lastTimestamp=0;return true;}const{lastTimestamp:lastTimestamp,velocity:velocity}=animation;const deltaTime=Math.min(now-lastTimestamp,64);animation.lastTimestamp=now;const t=deltaTime/1000;const v0=-velocity;const x0=toValue-current;const{zeta:zeta,omega0:omega0,omega1:omega1}=animation;const{position:newPosition,velocity:newVelocity}=zeta<1?underDampedSpringCalculations(animation,{zeta:zeta,v0:v0,x0:x0,omega0:omega0,omega1:omega1,t:t}):criticallyDampedSpringCalculations(animation,{v0:v0,x0:x0,omega0:omega0,t:t});animation.current=newPosition;animation.velocity=newVelocity;const{isOvershooting:isOvershooting,isVelocity:isVelocity,isDisplacement:isDisplacement}=isAnimationTerminatingCalculation(animation,config);const springIsNotInMove=isOvershooting||isVelocity&&isDisplacement;if(!config.useDuration&&springIsNotInMove){animation.velocity=0;animation.current=toValue;animation.lastTimestamp=0;return true;}return false;}function isTriggeredTwice(previousAnimation,animation){return(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.lastTimestamp)&&(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startTimestamp)&&(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.toValue)===animation.toValue&&(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.duration)===animation.duration&&(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.dampingRatio)===animation.dampingRatio;}function onStart(animation,value,now,previousAnimation){animation.current=value;animation.startValue=value;let mass=config.mass;const triggeredTwice=isTriggeredTwice(previousAnimation,animation);const duration=config.duration;const x0=triggeredTwice?previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startValue:Number(animation.toValue)-value;if(previousAnimation){animation.velocity=(triggeredTwice?previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.velocity:(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.velocity)+config.velocity)||0;}else{animation.velocity=config.velocity||0;}if(triggeredTwice){animation.zeta=(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.zeta)||0;animation.omega0=(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.omega0)||0;animation.omega1=(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.omega1)||0;}else{if(config.useDuration){const actualDuration=triggeredTwice?duration-(((previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.lastTimestamp)||0)-((previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startTimestamp)||0)):duration;config.duration=actualDuration;mass=calculateNewMassToMatchDuration(x0,config,animation.velocity);}const{zeta:zeta,omega0:omega0,omega1:omega1}=initialCalculations(mass,config);animation.zeta=zeta;animation.omega0=omega0;animation.omega1=omega1;if(config.clamp!==undefined){animation.zeta=scaleZetaToMatchClamps(animation,config.clamp);}}animation.lastTimestamp=(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.lastTimestamp)||now;animation.startTimestamp=triggeredTwice?(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startTimestamp)||now:now;}return{onFrame:springOnFrame,onStart:onStart,toValue:toValue,velocity:config.velocity||0,current:toValue,startValue:0,callback:callback,lastTimestamp:0,startTimestamp:0,zeta:0,omega0:0,omega1:0,reduceMotion:getReduceMotionForAnimation(config.reduceMotion)};}"},nu=function(){const e=function(e,t,n){return xo(e,function(){const r=function(){const r=Object.assign({},{damping:10,mass:1,stiffness:100,overshootClamping:!1,restDisplacementThreshold:.01,restSpeedThreshold:2,velocity:0,duration:2e3,dampingRatio:.5,reduceMotion:void 0,clamp:void 0},t,{useDuration:!(!t?.duration&&!t?.dampingRatio),skipAnimation:!1});return r.skipAnimation=!Nc(r),0===r.duration&&(r.skipAnimation=!0),{onFrame:function(e,t){const{toValue:n,startTimestamp:i,current:o}=e,a=t-i;if(r.useDuration&&a>=r.duration)return e.current=n,e.lastTimestamp=0,!0;if(r.skipAnimation)return e.current=n,e.lastTimestamp=0,!0;const{lastTimestamp:s,velocity:l}=e,c=Math.min(t-s,64);e.lastTimestamp=t;const u=c/1e3,h=-l,d=n-o,{zeta:f,omega0:p,omega1:m}=e,{position:g,velocity:y}=f<1?Zc(e,{zeta:f,v0:h,x0:d,omega0:p,omega1:m,t:u}):Xc(e,{v0:h,x0:d,omega0:p,t:u});e.current=g,e.velocity=y;const{isOvershooting:v,isVelocity:b,isDisplacement:A}=$c(e,r),x=v||b&&A;return!(r.useDuration||!x||(e.velocity=0,e.current=n,e.lastTimestamp=0,0))},onStart:function(e,t,n,i){e.current=t,e.startValue=t;let o=r.mass;const a=function(e,t){return e?.lastTimestamp&&e?.startTimestamp&&e?.toValue===t.toValue&&e?.duration===t.duration&&e?.dampingRatio===t.dampingRatio}(i,e),s=r.duration,l=a?i?.startValue:Number(e.toValue)-t;if(e.velocity=i?(a?i?.velocity:i?.velocity+r.velocity)||0:r.velocity||0,a)e.zeta=i?.zeta||0,e.omega0=i?.omega0||0,e.omega1=i?.omega1||0;else{if(r.useDuration){const t=a?s-((i?.lastTimestamp||0)-(i?.startTimestamp||0)):s;r.duration=t,o=Wc(l,r,e.velocity)}const{zeta:t,omega0:n,omega1:c}=Uc(o,r);e.zeta=t,e.omega0=n,e.omega1=c,void 0!==r.clamp&&(e.zeta=qc(e,r.clamp))}e.lastTimestamp=i?.lastTimestamp||n,e.startTimestamp=a&&i?.startTimestamp||n},toValue:e,velocity:r.velocity||0,current:e,startValue:0,callback:n,lastTimestamp:0,startTimestamp:0,zeta:0,omega0:0,omega1:0,reduceMotion:ho(r.reduceMotion)}};return r.__closure={userConfig:t,checkIfConfigIsValid:Nc,underDampedSpringCalculations:Zc,criticallyDampedSpringCalculations:Xc,isAnimationTerminatingCalculation:$c,calculateNewMassToMatchDuration:Wc,initialCalculations:Uc,scaleZetaToMatchClamps:qc,toValue:e,callback:n,getReduceMotionForAnimation:ho},r.__workletHash=7127868893693,r.__initData=tu,r}())};return e.__closure={defineAnimation:xo,checkIfConfigIsValid:Nc,underDampedSpringCalculations:Zc,criticallyDampedSpringCalculations:Xc,isAnimationTerminatingCalculation:$c,calculateNewMassToMatchDuration:Wc,initialCalculations:Uc,scaleZetaToMatchClamps:qc,getReduceMotionForAnimation:ho},e.__workletHash=0xa481f675502,e.__initData=eu,e}();var ru=n(43999),iu=n(15782);const ou={code:"function reactNativeReanimated_processBoxShadowJs1(value){return value.endsWith('px')||!isNaN(Number(value));}"},au=function(){const e=function(e){return e.endsWith("px")||!isNaN(Number(e))};return e.__closure={},e.__workletHash=9427335220479,e.__initData=ou,e}(),su={code:"function parseBoxShadowString_reactNativeReanimated_processBoxShadowJs2(rawBoxShadows){const{isLength}=this.__closure;const result=[];for(const rawBoxShadow of rawBoxShadows.split(/,(?![^()]*\\))/).map(function(bS){return bS.trim();}).filter(function(bS){return bS!=='';})){const boxShadow={offsetX:0,offsetY:0};let offsetX=null;let offsetY=null;let keywordDetectedAfterLength=false;let lengthCount=0;const args=rawBoxShadow.split(/\\s+(?![^(]*\\))/);for(const arg of args){if(isLength(arg)){switch(lengthCount){case 0:offsetX=arg;lengthCount++;break;case 1:if(keywordDetectedAfterLength){return[];}offsetY=arg;lengthCount++;break;case 2:if(keywordDetectedAfterLength){return[];}boxShadow.blurRadius=arg;lengthCount++;break;case 3:if(keywordDetectedAfterLength){return[];}boxShadow.spreadDistance=arg;lengthCount++;break;default:return[];}}else if(arg==='inset'){if(boxShadow.inset){return[];}if(offsetX!==null){keywordDetectedAfterLength=true;}boxShadow.inset=true;continue;}else{if(boxShadow.color){return[];}if(offsetX!=null){keywordDetectedAfterLength=true;}boxShadow.color=arg;continue;}}if(offsetX===null||offsetY===null){return[];}boxShadow.offsetX=offsetX;boxShadow.offsetY=offsetY;result.push(boxShadow);}return result;}"},lu=function(){const e=function(e){const t=[];for(const n of e.split(/,(?![^()]*\))/).map((e=>e.trim())).filter((e=>""!==e))){const e={offsetX:0,offsetY:0};let r=null,i=null,o=!1,a=0;const s=n.split(/\s+(?![^(]*\))/);for(const t of s)if(au(t))switch(a){case 0:r=t,a++;break;case 1:if(o)return[];i=t,a++;break;case 2:if(o)return[];e.blurRadius=t,a++;break;case 3:if(o)return[];e.spreadDistance=t,a++;break;default:return[]}else{if("inset"===t){if(e.inset)return[];null!==r&&(o=!0),e.inset=!0;continue}if(e.color)return[];null!=r&&(o=!0),e.color=t}if(null===r||null===i)return[];e.offsetX=r,e.offsetY=i,t.push(e)}return t};return e.__closure={isLength:au},e.__workletHash=7851366028467,e.__initData=su,e}(),cu={code:"function parseLength_reactNativeReanimated_processBoxShadowJs3(length){const{isLength}=this.__closure;const argsWithUnitsRegex=/([+-]?\\d*(\\.\\d+)?)([\\w\\W]+)?/g;const match=argsWithUnitsRegex.exec(length);if(!match||!isLength(length)){return null;}return Number(match[1]);}"},uu=function(){const e=function(e){const t=/([+-]?\d*(\.\d+)?)([\w\W]+)?/g.exec(e);return t&&au(e)?Number(t[1]):null};return e.__closure={isLength:au},e.__workletHash=4929021388630,e.__initData=cu,e}(),hu={code:"function processBoxShadow_reactNativeReanimated_processBoxShadowJs4(props){const{parseBoxShadowString,parseLength}=this.__closure;const result=[];const rawBoxShadows=props.boxShadow;if(rawBoxShadows===null){return result;}let boxShadowList;if(typeof rawBoxShadows==='string'){boxShadowList=parseBoxShadowString(rawBoxShadows.replace(/\\n/g,' '));}else if(Array.isArray(rawBoxShadows)){boxShadowList=rawBoxShadows;}else{throw new ReanimatedError(\"Box shadow value must be an array of shadow objects or a string. Received: \"+JSON.stringify(rawBoxShadows));}for(const rawBoxShadow of boxShadowList){const parsedBoxShadow={offsetX:0,offsetY:0};let value;for(const arg in rawBoxShadow){switch(arg){case'offsetX':value=typeof rawBoxShadow.offsetX==='string'?parseLength(rawBoxShadow.offsetX):rawBoxShadow.offsetX;if(value===null){return[];}parsedBoxShadow.offsetX=value;break;case'offsetY':value=typeof rawBoxShadow.offsetY==='string'?parseLength(rawBoxShadow.offsetY):rawBoxShadow.offsetY;if(value===null){return[];}parsedBoxShadow.offsetY=value;break;case'spreadDistance':value=typeof rawBoxShadow.spreadDistance==='string'?parseLength(rawBoxShadow.spreadDistance):rawBoxShadow.spreadDistance;if(value===null){return[];}parsedBoxShadow.spreadDistance=value;break;case'blurRadius':value=typeof rawBoxShadow.blurRadius==='string'?parseLength(rawBoxShadow.blurRadius):rawBoxShadow.blurRadius;if(value===null||value<0){return[];}parsedBoxShadow.blurRadius=value;break;case'color':parsedBoxShadow.color=rawBoxShadow.color;break;case'inset':parsedBoxShadow.inset=rawBoxShadow.inset;}}result.push(parsedBoxShadow);}props.boxShadow=result;}"},du=function(){const e=function(e){const t=[],n=e.boxShadow;if(null===n)return t;let r;if("string"==typeof n)r=lu(n.replace(/\n/g," "));else{if(!Array.isArray(n))throw new l(`Box shadow value must be an array of shadow objects or a string. Received: ${JSON.stringify(n)}`);r=n}for(const e of r){const n={offsetX:0,offsetY:0};let r;for(const t in e)switch(t){case"offsetX":if(r="string"==typeof e.offsetX?uu(e.offsetX):e.offsetX,null===r)return[];n.offsetX=r;break;case"offsetY":if(r="string"==typeof e.offsetY?uu(e.offsetY):e.offsetY,null===r)return[];n.offsetY=r;break;case"spreadDistance":if(r="string"==typeof e.spreadDistance?uu(e.spreadDistance):e.spreadDistance,null===r)return[];n.spreadDistance=r;break;case"blurRadius":if(r="string"==typeof e.blurRadius?uu(e.blurRadius):e.blurRadius,null===r||r<0)return[];n.blurRadius=r;break;case"color":n.color=e.color;break;case"inset":n.inset=e.inset}t.push(n)}e.boxShadow=t};return e.__closure={parseBoxShadowString:lu,parseLength:uu},e.__workletHash=3626154316227,e.__initData=hu,e}();function fu(e){return Object.values(e).reduce(((e,t)=>e+t.__workletHash.toString()),"")}function pu(e,t){if(e.__workletHash===t.__workletHash){const n=Object.keys(e.__closure),r=Object.keys(t.__closure);return n.length===r.length&&n.every((n=>n in t.__closure&&e.__closure[n]===t.__closure[n]))}return!1}const mu={code:"function isAnimated_reactNativeReanimated_utilsJs1(prop){const isAnimated_reactNativeReanimated_utilsJs1=this._recur;if(Array.isArray(prop)){return prop.some(isAnimated_reactNativeReanimated_utilsJs1);}else if(typeof prop==='object'&&prop!==null){if(prop.onFrame!==undefined){return true;}else{return Object.values(prop).some(isAnimated_reactNativeReanimated_utilsJs1);}}return false;}"},gu=function(){const e=function(t){return Array.isArray(t)?t.some(e):"object"==typeof t&&null!==t&&(void 0!==t.onFrame||Object.values(t).some(e))};return e.__closure={},e.__workletHash=0xfed152b37a0,e.__initData=mu,e}(),yu={code:"function shallowEqual_reactNativeReanimated_utilsJs2(a,b){const aKeys=Object.keys(a);const bKeys=Object.keys(b);if(aKeys.length!==bKeys.length){return false;}for(let i=0;i{e(t,n,r&&r[o],i&&i[o])})),"object"==typeof n&&n.onFrame){const e=n;let o=e.current;null!=i&&("object"==typeof i?void 0!==i.value?o=i.value:void 0!==i.onFrame&&(void 0!==r?.current?o=r.current:void 0!==i?.current&&(o=i.current)):o=i),e.callStart=t=>{e.onStart(e,o,t,r)},e.callStart(t),e.callStart=null}else"object"==typeof n&&Object.keys(n).forEach((o=>e(t,n[o],r&&r[o],i&&i[o])))};return e.__closure={},e.__workletHash=0xe1c3f4235d0,e.__initData=xu,e}(),Cu={code:"function runAnimations_reactNativeReanimated_useAnimatedStyleJs2(animation,timestamp,key,result,animationsActive,forceCopyAnimation){const runAnimations_reactNativeReanimated_useAnimatedStyleJs2=this._recur;if(!animationsActive.value){return true;}if(Array.isArray(animation)){result[key]=[];let allFinished=true;forceCopyAnimation=key==='boxShadow';animation.forEach(function(entry,index){if(!runAnimations_reactNativeReanimated_useAnimatedStyleJs2(entry,timestamp,index,result[key],animationsActive,forceCopyAnimation)){allFinished=false;}});return allFinished;}else if(typeof animation==='object'&&animation.onFrame){let finished=true;if(!animation.finished){if(animation.callStart){animation.callStart(timestamp);animation.callStart=null;}finished=animation.onFrame(animation,timestamp);animation.timestamp=timestamp;if(finished){animation.finished=true;animation.callback&&animation.callback(true);}}if(forceCopyAnimation){result[key]={...animation.current};}else{result[key]=animation.current;}return finished;}else if(typeof animation==='object'){result[key]={};let allFinished=true;Object.keys(animation).forEach(function(k){if(!runAnimations_reactNativeReanimated_useAnimatedStyleJs2(animation[k],timestamp,k,result[key],animationsActive,forceCopyAnimation)){allFinished=false;}});return allFinished;}else{result[key]=animation;return true;}}"},Su=function(){const e=function(t,n,r,i,o,a){if(!o.value)return!0;if(Array.isArray(t)){i[r]=[];let s=!0;return a="boxShadow"===r,t.forEach(((t,l)=>{e(t,n,l,i[r],o,a)||(s=!1)})),s}if("object"==typeof t&&t.onFrame){let e=!0;return t.finished||(t.callStart&&(t.callStart(n),t.callStart=null),e=t.onFrame(t,n),t.timestamp=n,e&&(t.finished=!0,t.callback&&t.callback(!0))),i[r]=a?Object.assign({},t.current):t.current,e}if("object"==typeof t){i[r]={};let s=!0;return Object.keys(t).forEach((l=>{e(t[l],n,l,i[r],o,a)||(s=!1)})),s}return i[r]=t,!0};return e.__closure={},e.__workletHash=7950007328399,e.__initData=Cu,e}(),Eu={code:"function styleUpdater_reactNativeReanimated_useAnimatedStyleJs3(viewDescriptors,updater,state,animationsActive,isAnimatedProps=false){const{SHOULD_BE_USE_WEB,processBoxShadow,isAnimated,prepareAnimation,runAnimations,updateProps,shallowEqual}=this.__closure;var _state$animations,_updater;const animations=(_state$animations=state.animations)!==null&&_state$animations!==void 0?_state$animations:{};const newValues=(_updater=updater())!==null&&_updater!==void 0?_updater:{};const oldValues=state.last;const nonAnimatedNewValues={};let hasAnimations=false;let frameTimestamp;let hasNonAnimatedValues=false;if(!SHOULD_BE_USE_WEB&&newValues.boxShadow){processBoxShadow(newValues);}for(const key in newValues){const value=newValues[key];if(isAnimated(value)){frameTimestamp=global.__frameTimestamp||global._getAnimationTimestamp();prepareAnimation(frameTimestamp,value,animations[key],oldValues[key]);animations[key]=value;hasAnimations=true;}else{hasNonAnimatedValues=true;nonAnimatedNewValues[key]=value;delete animations[key];}}if(hasAnimations){const frame=function(timestamp){const{animations:animations,last:last,isAnimationCancelled:isAnimationCancelled}=state;if(isAnimationCancelled){state.isAnimationRunning=false;return;}const updates={};let allFinished=true;for(const propName in animations){const finished=runAnimations(animations[propName],timestamp,propName,updates,animationsActive);if(finished){if(Array.isArray(updates[propName])){updates[propName].forEach(function(obj){for(const prop in obj){if(!last[propName]||typeof last[propName]!=='object'){last[propName]={};}last[propName][prop]=obj[prop];}});}else{last[propName]=updates[propName];}delete animations[propName];}else{allFinished=false;}}if(updates){updateProps(viewDescriptors,updates);}if(!allFinished){requestAnimationFrame(frame);}else{state.isAnimationRunning=false;}};state.animations=animations;if(!state.isAnimationRunning){state.isAnimationCancelled=false;state.isAnimationRunning=true;frame(frameTimestamp);}if(hasNonAnimatedValues){updateProps(viewDescriptors,nonAnimatedNewValues);}}else{state.isAnimationCancelled=true;state.animations=[];if(!shallowEqual(oldValues,newValues)){updateProps(viewDescriptors,newValues,isAnimatedProps);}}state.last=newValues;}"},ku=function(){const e=function(e,t,r,i,o=!1){const a=r.animations??{},s=t()??{},l=r.last,c={};let u,h=!1,d=!1;!Au&&s.boxShadow&&du(s);for(const e in s){const t=s[e];gu(t)?(u=n.g.__frameTimestamp||n.g._getAnimationTimestamp(),wu(u,t,a[e],l[e]),a[e]=t,h=!0):(d=!0,c[e]=t,delete a[e])}if(h){const t=n=>{const{animations:o,last:a,isAnimationCancelled:s}=r;if(s)return void(r.isAnimationRunning=!1);const l={};let c=!0;for(const e in o)Su(o[e],n,e,l,i)?(Array.isArray(l[e])?l[e].forEach((t=>{for(const n in t)a[e]&&"object"==typeof a[e]||(a[e]={}),a[e][n]=t[n]})):a[e]=l[e],delete o[e]):c=!1;l&&bl(e,l),c?r.isAnimationRunning=!1:requestAnimationFrame(t)};r.animations=a,r.isAnimationRunning||(r.isAnimationCancelled=!1,r.isAnimationRunning=!0,t(u)),d&&bl(e,c)}else r.isAnimationCancelled=!0,r.animations=[],vu(l,s)||bl(e,s,o);r.last=s};return e.__closure={SHOULD_BE_USE_WEB:Au,processBoxShadow:du,isAnimated:gu,prepareAnimation:wu,runAnimations:Su,updateProps:bl,shallowEqual:vu},e.__workletHash=9824012268071,e.__initData=Eu,e}(),Tu={code:"function jestStyleUpdater_reactNativeReanimated_useAnimatedStyleJs4(viewDescriptors,updater,state,animationsActive,animatedValues,adapters){const{isAnimated,prepareAnimation,runAnimations,updatePropsJestWrapper,shallowEqual}=this.__closure;var _state$animations,_updater;const animations=(_state$animations=state.animations)!==null&&_state$animations!==void 0?_state$animations:{};const newValues=(_updater=updater())!==null&&_updater!==void 0?_updater:{};const oldValues=state.last;let hasAnimations=false;let frameTimestamp;Object.keys(animations).forEach(function(key){const value=newValues[key];if(!isAnimated(value)){delete animations[key];}});Object.keys(newValues).forEach(function(key){const value=newValues[key];if(isAnimated(value)){frameTimestamp=global.__frameTimestamp||global._getAnimationTimestamp();prepareAnimation(frameTimestamp,value,animations[key],oldValues[key]);animations[key]=value;hasAnimations=true;}});function frame(timestamp){const{animations:animations,last:last,isAnimationCancelled:isAnimationCancelled}=state;if(isAnimationCancelled){state.isAnimationRunning=false;return;}const updates={};let allFinished=true;Object.keys(animations).forEach(function(propName){const finished=runAnimations(animations[propName],timestamp,propName,updates,animationsActive);if(finished){last[propName]=updates[propName];delete animations[propName];}else{allFinished=false;}});if(Object.keys(updates).length){updatePropsJestWrapper(viewDescriptors,updates,animatedValues,adapters);}if(!allFinished){requestAnimationFrame(frame);}else{state.isAnimationRunning=false;}}if(hasAnimations){state.animations=animations;if(!state.isAnimationRunning){state.isAnimationCancelled=false;state.isAnimationRunning=true;frame(frameTimestamp);}}else{state.isAnimationCancelled=true;state.animations=[];}state.last=newValues;if(!shallowEqual(oldValues,newValues)){updatePropsJestWrapper(viewDescriptors,newValues,animatedValues,adapters);}}"};function Iu(e,t){if(Array.isArray(e))for(const n of e)Iu(n,t);else if("object"==typeof e&&null!==e&&void 0===e.value)for(const t of Object.keys(e))Iu(e[t],t);else if(void 0!==t&&"object"==typeof e&&null!==e&&void 0!==e.value)throw new l(`Invalid value passed to \`${t}\`, maybe you forgot to use \`.value\`?`)}!function(){const e=function(e,t,r,i,o,a){const s=r.animations??{},l=t()??{},c=r.last;let u,h=!1;Object.keys(s).forEach((e=>{const t=l[e];gu(t)||delete s[e]})),Object.keys(l).forEach((e=>{const t=l[e];gu(t)&&(u=n.g.__frameTimestamp||n.g._getAnimationTimestamp(),wu(u,t,s[e],c[e]),s[e]=t,h=!0)})),h?(r.animations=s,r.isAnimationRunning||(r.isAnimationCancelled=!1,r.isAnimationRunning=!0,function t(n){const{animations:s,last:l,isAnimationCancelled:c}=r;if(c)return void(r.isAnimationRunning=!1);const u={};let h=!0;Object.keys(s).forEach((e=>{Su(s[e],n,e,u,i)?(l[e]=u[e],delete s[e]):h=!1})),Object.keys(u).length&&vl(e,u,o,a),h?r.isAnimationRunning=!1:requestAnimationFrame(t)}(u))):(r.isAnimationCancelled=!0,r.animations=[]),r.last=l,vu(c,l)||vl(e,l,o,a)};e.__closure={isAnimated:gu,prepareAnimation:wu,runAnimations:Su,updatePropsJestWrapper:vl,shallowEqual:vu},e.__workletHash=0x9e3568458b0,e.__initData=Tu}();const Ou={code:"function reactNativeReanimated_useAnimatedStyleJs5(){const{updater,adaptersArray}=this.__closure;const newValues=updater();adaptersArray.forEach(function(adapter){adapter(newValues);});return newValues;}"},Ru={code:"function reactNativeReanimated_useAnimatedStyleJs7(){const{styleUpdater,shareableViewDescriptors,updaterFn,remoteState,areAnimationsActive,isAnimatedProps}=this.__closure;styleUpdater(shareableViewDescriptors,updaterFn,remoteState,areAnimationsActive,isAnimatedProps);}"};function Mu(e,t,n,r=!1){const o=(0,i.useRef)(null);let a=Object.values(e.__closure??{});Au&&!a.length&&t?.length&&(a=t);const s=n?Array.isArray(n)?n:[n]:[],l=n?fu(s):null,c=uc(!0);if((0,i.useRef)({}),t?t.push(e.__workletHash):t=[...a,e.__workletHash],l&&t.push(l),!o.current){const t=io(e);o.current={initial:{value:t,updater:e},remoteState:Ce({last:t,animations:{},isAnimationCancelled:!1,isAnimationRunning:!1}),viewDescriptors:kl()}}const{initial:u,remoteState:h,viewDescriptors:d}=o.current,f=d.shareableViewDescriptors;t.push(f),(0,i.useEffect)((()=>{let t,i=e;n&&(i=function(){const t=function(){const t=e();return s.forEach((e=>{e(t)})),t};return t.__closure={updater:e,adaptersArray:s},t.__workletHash=0xe8baca04aca,t.__initData=Ou,t}()),t=function(){const e=function(){ku(f,i,h,c,r)};return e.__closure={styleUpdater:ku,shareableViewDescriptors:f,updaterFn:i,remoteState:h,areAnimationsActive:c,isAnimatedProps:r},e.__workletHash=5297059117402,e.__initData=Ru,e}();const o=ct(t,a);return()=>{ht(o)}}),t),(0,i.useEffect)((()=>(c.value=!0,()=>{c.value=!1})),[c]),Iu(u.value);const p=(0,i.useRef)(null);return p.current||(p.current={viewDescriptors:d,initial:u}),p.current}const Pu=Mu,Du=p()?function(e,t,n){return Mu(e,t,n,!0)}:Pu,ju={code:"function reactNativeReanimated_FrameCallbackRegistryUIJs1(){const frameCallbackRegistry={frameCallbackRegistry:new Map(),activeFrameCallbacks:new Set(),previousFrameTimestamp:null,nextCallId:0,runCallbacks:function(callId){var _this=this;const loop=function(timestamp){if(callId!==_this.nextCallId){return;}if(_this.previousFrameTimestamp===null){_this.previousFrameTimestamp=timestamp;}const delta=timestamp-_this.previousFrameTimestamp;_this.activeFrameCallbacks.forEach(function(callbackId){const callbackDetails=_this.frameCallbackRegistry.get(callbackId);const{startTime:startTime}=callbackDetails;if(startTime===null){callbackDetails.startTime=timestamp;callbackDetails.callback({timestamp:timestamp,timeSincePreviousFrame:null,timeSinceFirstFrame:0});}else{callbackDetails.callback({timestamp:timestamp,timeSincePreviousFrame:delta,timeSinceFirstFrame:timestamp-startTime});}});if(_this.activeFrameCallbacks.size>0){_this.previousFrameTimestamp=timestamp;requestAnimationFrame(loop);}else{_this.previousFrameTimestamp=null;}};if(this.activeFrameCallbacks.size===1&&callId===this.nextCallId){requestAnimationFrame(loop);}},registerFrameCallback:function(callback,callbackId){this.frameCallbackRegistry.set(callbackId,{callback:callback,startTime:null});},unregisterFrameCallback:function(callbackId){this.manageStateFrameCallback(callbackId,false);this.frameCallbackRegistry.delete(callbackId);},manageStateFrameCallback:function(callbackId,state){if(callbackId===-1){return;}if(state){this.activeFrameCallbacks.add(callbackId);this.runCallbacks(this.nextCallId);}else{const callback=this.frameCallbackRegistry.get(callbackId);callback.startTime=null;this.activeFrameCallbacks.delete(callbackId);if(this.activeFrameCallbacks.size===0){this.nextCallId+=1;}}}};global._frameCallbackRegistry=frameCallbackRegistry;}"},Bu=Fe(function(){const e=function(){const e={frameCallbackRegistry:new Map,activeFrameCallbacks:new Set,previousFrameTimestamp:null,nextCallId:0,runCallbacks(e){const t=n=>{if(e!==this.nextCallId)return;null===this.previousFrameTimestamp&&(this.previousFrameTimestamp=n);const r=n-this.previousFrameTimestamp;this.activeFrameCallbacks.forEach((e=>{const t=this.frameCallbackRegistry.get(e),{startTime:i}=t;null===i?(t.startTime=n,t.callback({timestamp:n,timeSincePreviousFrame:null,timeSinceFirstFrame:0})):t.callback({timestamp:n,timeSincePreviousFrame:r,timeSinceFirstFrame:n-i})})),this.activeFrameCallbacks.size>0?(this.previousFrameTimestamp=n,requestAnimationFrame(t)):this.previousFrameTimestamp=null};1===this.activeFrameCallbacks.size&&e===this.nextCallId&&requestAnimationFrame(t)},registerFrameCallback(e,t){this.frameCallbackRegistry.set(t,{callback:e,startTime:null})},unregisterFrameCallback(e){this.manageStateFrameCallback(e,!1),this.frameCallbackRegistry.delete(e)},manageStateFrameCallback(e,t){-1!==e&&(t?(this.activeFrameCallbacks.add(e),this.runCallbacks(this.nextCallId)):(this.frameCallbackRegistry.get(e).startTime=null,this.activeFrameCallbacks.delete(e),0===this.activeFrameCallbacks.size&&(this.nextCallId+=1)))}};n.g._frameCallbackRegistry=e};return e.__closure={},e.__workletHash=0xa09b9e52d16,e.__initData=ju,e}()),Lu={code:"function reactNativeReanimated_FrameCallbackRegistryJSJs1(){const{callback,callbackId}=this.__closure;global._frameCallbackRegistry.registerFrameCallback(callback,callbackId);}"},Fu={code:"function reactNativeReanimated_FrameCallbackRegistryJSJs2(){const{callbackId}=this.__closure;global._frameCallbackRegistry.unregisterFrameCallback(callbackId);}"},Nu={code:"function reactNativeReanimated_FrameCallbackRegistryJSJs3(){const{callbackId,state}=this.__closure;global._frameCallbackRegistry.manageStateFrameCallback(callbackId,state);}"},_u=new class{nextCallbackId=0;constructor(){Bu()}registerFrameCallback(e){if(!e)return-1;const t=this.nextCallbackId;return this.nextCallbackId++,Pe(function(){const r=function(){n.g._frameCallbackRegistry.registerFrameCallback(e,t)};return r.__closure={callback:e,callbackId:t},r.__workletHash=0xc0a3b1e650b,r.__initData=Lu,r}())(),t}unregisterFrameCallback(e){Pe(function(){const t=function(){n.g._frameCallbackRegistry.unregisterFrameCallback(e)};return t.__closure={callbackId:e},t.__workletHash=8067581193523,t.__initData=Fu,t}())()}manageStateFrameCallback(e,t){Pe(function(){const r=function(){n.g._frameCallbackRegistry.manageStateFrameCallback(e,t)};return r.__closure={callbackId:e,state:t},r.__workletHash=4255326950806,r.__initData=Nu,r}())()}};function zu(e,t=!0){const n=(0,i.useRef)({setActive:e=>{_u.manageStateFrameCallback(n.current.callbackId,e),n.current.isActive=e},isActive:t,callbackId:-1});return(0,i.useEffect)((()=>{n.current.callbackId=_u.registerFrameCallback(e);const t=n.current;return n.current.setActive(n.current.isActive),()=>{_u.unregisterFrameCallback(t.callbackId),t.callbackId=-1}}),[e,t]),n.current}const Vu={code:"function createCircularDoublesBuffer_reactNativeReanimated_PerformanceMonitorJs1(size){return{next:0,buffer:new Float32Array(size),size:size,count:0,push:function(value){const oldValue=this.buffer[this.next];const oldCount=this.count;this.buffer[this.next]=value;this.next=(this.next+1)%this.size;this.count=Math.min(this.size,this.count+1);return oldCount===this.size?oldValue:null;},front:function(){const notEmpty=this.count>0;if(notEmpty){const current=this.next-1;const index=current<0?this.size-1:current;return this.buffer[index];}return null;},back:function(){const notEmpty=this.count>0;return notEmpty?this.buffer[this.next]:null;}};}"},Uu=function(){const e=function(e){return{next:0,buffer:new Float32Array(e),size:e,count:0,push(e){const t=this.buffer[this.next],n=this.count;return this.buffer[this.next]=e,this.next=(this.next+1)%this.size,this.count=Math.min(this.size,this.count+1),n===this.size?t:null},front(){if(this.count>0){const e=this.next-1,t=e<0?this.size-1:e;return this.buffer[t]}return null},back(){return this.count>0?this.buffer[this.next]:null}}};return e.__closure={},e.__workletHash=0xf9977dc7876,e.__initData=Vu,e}(),Hu=20;ea({text:!0});const qu=Xl(iu.A),Gu={code:"function getFps_reactNativeReanimated_PerformanceMonitorJs2(renderTimeInMs){return 1000/renderTimeInMs;}"},Yu=function(){const e=function(e){return 1e3/e};return e.__closure={},e.__workletHash=0x934d06b3f99,e.__initData=Gu,e}(),Wu={code:"function completeBufferRoutine_reactNativeReanimated_PerformanceMonitorJs3(buffer,timestamp){const{getFps}=this.__closure;var _buffer$push;timestamp=Math.round(timestamp);const droppedTimestamp=(_buffer$push=buffer.push(timestamp))!==null&&_buffer$push!==void 0?_buffer$push:timestamp;const measuredRangeDuration=timestamp-droppedTimestamp;return getFps(measuredRangeDuration/buffer.count);}"},Qu=function(){const e=function(e,t){t=Math.round(t);const n=e.push(t)??t;return Yu((t-n)/e.count)};return e.__closure={getFps:Yu},e.__workletHash=0xfd31cbf315e,e.__initData=Wu,e}(),Xu={code:"function reactNativeReanimated_PerformanceMonitorJs4(){const{jsFps}=this.__closure;var _jsFps$value;const text='JS: '+((_jsFps$value=jsFps.value)!==null&&_jsFps$value!==void 0?_jsFps$value:'N/A')+' ';return{text:text,defaultValue:text};}"};function Ju({smoothingFrames:e}){const t=uc(null),n=uc(0),r=(0,i.useRef)(Uu(e));(0,i.useEffect)((()=>{!function(){let e=0;!function n(){requestAnimationFrame((i=>{e>0&&((e,n)=>{n=Math.round(n);const i=Qu(r.current,n);t.value=(2*i).toFixed(0)})(0,i),e=i,requestAnimationFrame(n)}))}()}()}),[t,n]);const o=Du(function(){const e=function(){const e="JS: "+(t.value??"N/A")+" ";return{text:e,defaultValue:e}};return e.__closure={jsFps:t},e.__workletHash=7926048032311,e.__initData=Xu,e}());return(0,Yo.jsx)(Zl.A,{style:th.container,children:(0,Yo.jsx)(qu,{style:th.text,animatedProps:o,editable:!1})})}const Zu={code:"function reactNativeReanimated_PerformanceMonitorJs5({timestamp:timestamp}){const{circularBuffer,createCircularDoublesBuffer,smoothingFrames,completeBufferRoutine,uiFps}=this.__closure;if(circularBuffer.value===null){circularBuffer.value=createCircularDoublesBuffer(smoothingFrames);}timestamp=Math.round(timestamp);const currentFps=completeBufferRoutine(circularBuffer.value,timestamp);uiFps.value=currentFps.toFixed(0);}"},Ku={code:"function reactNativeReanimated_PerformanceMonitorJs6(){const{uiFps}=this.__closure;var _uiFps$value;const text='UI: '+((_uiFps$value=uiFps.value)!==null&&_uiFps$value!==void 0?_uiFps$value:'N/A')+' ';return{text:text,defaultValue:text};}"};function $u({smoothingFrames:e}){const t=uc(null),n=uc(null);zu(function(){const r=function({timestamp:r}){null===n.value&&(n.value=Uu(e)),r=Math.round(r);const i=Qu(n.value,r);t.value=i.toFixed(0)};return r.__closure={circularBuffer:n,createCircularDoublesBuffer:Uu,smoothingFrames:e,completeBufferRoutine:Qu,uiFps:t},r.__workletHash=3606514044171,r.__initData=Zu,r}());const r=Du(function(){const e=function(){const e="UI: "+(t.value??"N/A")+" ";return{text:e,defaultValue:e}};return e.__closure={uiFps:t},e.__workletHash=9265903866512,e.__initData=Ku,e}());return(0,Yo.jsx)(Zl.A,{style:th.container,children:(0,Yo.jsx)(qu,{style:th.text,animatedProps:r,editable:!1})})}function eh({smoothingFrames:e=Hu}){return(0,Yo.jsxs)(Zl.A,{style:th.monitor,children:[(0,Yo.jsx)(Ju,{smoothingFrames:e}),(0,Yo.jsx)($u,{smoothingFrames:e})]})}const th=ru.A.create({monitor:{flexDirection:"row",position:"absolute",backgroundColor:"#0006",zIndex:1e3},header:{fontSize:14,color:"#ffff",paddingHorizontal:5},text:{fontSize:13,fontVariant:["tabular-nums"],color:"#ffff",fontFamily:"monospace",paddingHorizontal:3},container:{alignItems:"center",justifyContent:"center",flexDirection:"row",flexWrap:"wrap"}});function nh({mode:e}){return(0,i.useEffect)((()=>{}),[]),(0,i.useEffect)((()=>{const t=ui.jsValue;switch(e){case k.System:ui.setEnabled(li());break;case k.Always:ui.setEnabled(!0);break;case k.Never:ui.setEnabled(!1)}return()=>{ui.setEnabled(t)}}),[e]),null}function rh(e,t){const n=(0,i.useRef)(null);if(null===n.current){const e=Ce({});n.current={context:e,savedDependencies:[]}}(0,i.useEffect)((()=>()=>{n.current=null}),[]);const{context:r,savedDependencies:o}=n.current;for(const t in e)if(!x(e[t]))throw new l("Passed a function that is not a worklet. Please provide a worklet function.");t=function(e,t){const n=Object.values(t).filter((e=>void 0!==e));return e?(e.push(fu(n)),e):n}(t,e);const a=!function(e,t){const n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||Number.isNaN(e)&&Number.isNaN(t)};return function(e,t){if(!e||!t||t.length!==e.length)return!1;for(let r=0;r{if(!1===r.current&&null!==t.current){const i=t.current;n.current=Ut(function(){const e=function(e,t){i.state.value=e,i.height.value=t};return e.__closure={keyboardEventData:i},e.__workletHash=5338428174022,e.__initData=lh,e}(),e),r.current=!0}return()=>{!function(e){$.unsubscribeFromKeyboardEvents(e)}(n.current),r.current=!1}}),[]),t.current}const uh={code:"function reactNativeReanimated_useAnimatedReactionJs1(){const{prepare,react,previous}=this.__closure;const input=prepare();react(input,previous.value);previous.value=input;}"};function hh(e,t,n){const r=uc(null);let o=Object.values(e.__closure??{});p()&&!o.length&&n?.length&&(o=n),void 0===n?n=[...Object.values(e.__closure??{}),...Object.values(t.__closure??{}),e.__workletHash,t.__workletHash]:n.push(e.__workletHash,t.__workletHash),(0,i.useEffect)((()=>{const n=ct(function(){const n=function(){const n=e();t(n,r.value),r.value=n};return n.__closure={prepare:e,react:t,previous:r},n.__workletHash=0xcab92620901,n.__initData=uh,n}(),o);return()=>{ht(n)}}),n)}const dh={code:"function reactNativeReanimated_useAnimatedScrollHandlerJs1(event){const{scrollHandlers,context}=this.__closure;const{onScroll:onScroll,onBeginDrag:onBeginDrag,onEndDrag:onEndDrag,onMomentumBegin:onMomentumBegin,onMomentumEnd:onMomentumEnd}=scrollHandlers;if(onScroll&&event.eventName.endsWith('onScroll')){onScroll(event,context);}else if(onBeginDrag&&event.eventName.endsWith('onScrollBeginDrag')){onBeginDrag(event,context);}else if(onEndDrag&&event.eventName.endsWith('onScrollEndDrag')){onEndDrag(event,context);}else if(onMomentumBegin&&event.eventName.endsWith('onMomentumScrollBegin')){onMomentumBegin(event,context);}else if(onMomentumEnd&&event.eventName.endsWith('onMomentumScrollEnd')){onMomentumEnd(event,context);}}"};function fh(e,t){const n="function"==typeof e?{onScroll:e}:e,{context:r,doDependenciesDiffer:i}=rh(n,t),o=["onScroll"];return void 0!==n.onBeginDrag&&o.push("onScrollBeginDrag"),void 0!==n.onEndDrag&&o.push("onScrollEndDrag"),void 0!==n.onMomentumBegin&&o.push("onMomentumScrollBegin"),void 0!==n.onMomentumEnd&&o.push("onMomentumScrollEnd"),cc(function(){const e=function(e){const{onScroll:t,onBeginDrag:i,onEndDrag:o,onMomentumBegin:a,onMomentumEnd:s}=n;t&&e.eventName.endsWith("onScroll")?t(e,r):i&&e.eventName.endsWith("onScrollBeginDrag")?i(e,r):o&&e.eventName.endsWith("onScrollEndDrag")?o(e,r):a&&e.eventName.endsWith("onMomentumScrollBegin")?a(e,r):s&&e.eventName.endsWith("onMomentumScrollEnd")&&s(e,r)};return e.__closure={scrollHandlers:n,context:r},e.__workletHash=9130425254161,e.__initData=dh,e}(),o,i)}const ph={code:"function eulerToQuaternion_reactNativeReanimated_useAnimatedSensorJs1(pitch,roll,yaw){const c1=Math.cos(pitch/2);const s1=Math.sin(pitch/2);const c2=Math.cos(roll/2);const s2=Math.sin(roll/2);const c3=Math.cos(yaw/2);const s3=Math.sin(yaw/2);return[s1*c2*c3-c1*s2*s3,c1*s2*c3+s1*c2*s3,c1*c2*s3+s1*s2*c3,c1*c2*c3-s1*s2*s3];}"},mh=function(){const e=function(e,t,n){const r=Math.cos(e/2),i=Math.sin(e/2),o=Math.cos(t/2),a=Math.sin(t/2),s=Math.cos(n/2),l=Math.sin(n/2);return[i*o*s-r*a*l,r*a*s+i*o*l,r*o*l+i*a*s,r*o*s-i*a*l]};return e.__closure={},e.__workletHash=0xdb1ce8e186c,e.__initData=ph,e}(),gh={code:"function adjustRotationToInterfaceOrientation_reactNativeReanimated_useAnimatedSensorJs2(data){const{InterfaceOrientation,eulerToQuaternion}=this.__closure;const{interfaceOrientation:interfaceOrientation,pitch:pitch,roll:roll,yaw:yaw}=data;if(interfaceOrientation===InterfaceOrientation.ROTATION_90){data.pitch=roll;data.roll=-pitch;data.yaw=yaw-Math.PI/2;}else if(interfaceOrientation===InterfaceOrientation.ROTATION_270){data.pitch=-roll;data.roll=pitch;data.yaw=yaw+Math.PI/2;}else if(interfaceOrientation===InterfaceOrientation.ROTATION_180){data.pitch*=-1;data.roll*=-1;data.yaw*=-1;}const q=eulerToQuaternion(data.pitch,data.roll,data.yaw);data.qx=q[0];data.qy=q[1];data.qz=q[2];data.qw=q[3];return data;}"},yh=function(){const e=function(e){const{interfaceOrientation:t,pitch:n,roll:r,yaw:i}=e;t===S.ROTATION_90?(e.pitch=r,e.roll=-n,e.yaw=i-Math.PI/2):t===S.ROTATION_270?(e.pitch=-r,e.roll=n,e.yaw=i+Math.PI/2):t===S.ROTATION_180&&(e.pitch*=-1,e.roll*=-1,e.yaw*=-1);const o=mh(e.pitch,e.roll,e.yaw);return e.qx=o[0],e.qy=o[1],e.qz=o[2],e.qw=o[3],e};return e.__closure={InterfaceOrientation:S,eulerToQuaternion:mh},e.__workletHash=0x994ae48a7fd,e.__initData=gh,e}(),vh={code:"function adjustVectorToInterfaceOrientation_reactNativeReanimated_useAnimatedSensorJs3(data){const{InterfaceOrientation}=this.__closure;const{interfaceOrientation:interfaceOrientation,x:x,y:y}=data;if(interfaceOrientation===InterfaceOrientation.ROTATION_90){data.x=-y;data.y=x;}else if(interfaceOrientation===InterfaceOrientation.ROTATION_270){data.x=y;data.y=-x;}else if(interfaceOrientation===InterfaceOrientation.ROTATION_180){data.x*=-1;data.y*=-1;}return data;}"},bh=function(){const e=function(e){const{interfaceOrientation:t,x:n,y:r}=e;return t===S.ROTATION_90?(e.x=-r,e.y=n):t===S.ROTATION_270?(e.x=r,e.y=-n):t===S.ROTATION_180&&(e.x*=-1,e.y*=-1),e};return e.__closure={InterfaceOrientation:S},e.__workletHash=4028360763619,e.__initData=vh,e}(),Ah={code:"function reactNativeReanimated_useAnimatedSensorJs4(data){const{adjustToInterfaceOrientation,sensorType,SensorType,adjustRotationToInterfaceOrientation,adjustVectorToInterfaceOrientation,sensorData,callMicrotasks}=this.__closure;if(adjustToInterfaceOrientation){if(sensorType===SensorType.ROTATION){data=adjustRotationToInterfaceOrientation(data);}else{data=adjustVectorToInterfaceOrientation(data);}}sensorData.value=data;callMicrotasks();}"};function xh(e,t){const n=(0,i.useRef)(t);(n.current?.adjustToInterfaceOrientation!==t?.adjustToInterfaceOrientation||n.current?.interval!==t?.interval||n.current?.iosReferenceFrame!==t?.iosReferenceFrame)&&(n.current=Object.assign({},t));const r=(0,i.useMemo)((()=>Object.assign({interval:"auto",adjustToInterfaceOrientation:!0,iosReferenceFrame:C.Auto},n.current)),[n.current]),o=(0,i.useRef)({sensor:Ht(e,r),unregister:()=>{},isAvailable:!1,config:r});return(0,i.useEffect)((()=>{o.current={sensor:Ht(e,r),unregister:()=>{},isAvailable:!1,config:r};const t=o.current.sensor,n=o.current.config.adjustToInterfaceOrientation,i=function(e,t,n){return Ft().registerSensor(e,t,fe(n))}(e,r,function(){const r=function(r){n&&(r=e===w.ROTATION?yh(r):bh(r)),t.value=r,Oe()};return r.__closure={adjustToInterfaceOrientation:n,sensorType:e,SensorType:w,adjustRotationToInterfaceOrientation:yh,adjustVectorToInterfaceOrientation:bh,sensorData:t,callMicrotasks:Oe},r.__workletHash=0xb8a2208d769,r.__initData=Ah,r}());return-1!==i?(o.current.unregister=()=>{return e=i,Ft().unregisterSensor(e);var e},o.current.isAvailable=!0):(o.current.unregister=()=>{},o.current.isAvailable=!1),()=>{o.current.unregister()}}),[e,r]),o.current}const wh={code:"function reactNativeReanimated_useComposedEventHandlerJs1(event){const{workletsMap}=this.__closure;if(workletsMap[event.eventName]){workletsMap[event.eventName].forEach(function(worklet){return worklet(event);});}}"};function Ch(e){const t={},n=new Set,r={};e.filter((e=>null!==e)).forEach((e=>{const{workletEventHandler:i}=e;i instanceof Fl&&i.eventNames.forEach((e=>{n.add(e),r[e]?r[e].push(i.worklet):r[e]=[i.worklet];const o=e+`${r[e].length}`;t[o]=i.worklet}))}));const{doDependenciesDiffer:i}=rh(t);return cc(function(){const e=function(e){r[e.eventName]&&r[e.eventName].forEach((t=>t(e)))};return e.__closure={workletsMap:r},e.__workletHash=0xf95d411c94,e.__initData=wh,e}(),Array.from(n),i)}const Sh={code:"function reactNativeReanimated_useDerivedValueJs1(){const{sharedValue,updater}=this.__closure;sharedValue.value=updater();}"};function Eh(e,t){const n=(0,i.useRef)(null);let r=Object.values(e.__closure??{});p()&&!r.length&&t?.length&&(r=t),void 0===t?t=[...r,e.__workletHash]:t.push(e.__workletHash),null===n.current&&(n.current=et(io(e)));const o=n.current;return(0,i.useEffect)((()=>{const t=ct(function(){const t=function(){o.value=e()};return t.__closure={sharedValue:o,updater:e},t.__workletHash=3093677085834,t.__initData=Sh,t}(),r,[o]);return()=>{ht(t)}}),t),o}const kh=li();function Th(){return kh}function Ih(e,t){return(0,i.useCallback)(e,t??[])}const Oh={code:"function reactNativeReanimated_lrgbJs1(c=0){const abs=Math.abs(c);if(abs>0.0031308){return(Math.sign(c)||1)*(1.055*Math.pow(abs,1/2.4)-0.055);}return c*12.92;}"},Rh=function(){const e=function(e=0){const t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,1/2.4)-.055):12.92*e};return e.__closure={},e.__workletHash=8638963679382,e.__initData=Oh,e}(),Mh={code:"function reactNativeReanimated_lrgbJs2({r:r,g:g,b:b,alpha:alpha}){const{channelFromLrgb}=this.__closure;return{r:channelFromLrgb(r),g:channelFromLrgb(g),b:channelFromLrgb(b),alpha:alpha};}"},Ph=function(){const e=function({r:e,g:t,b:n,alpha:r}){return{r:Rh(e),g:Rh(t),b:Rh(n),alpha:r}};return e.__closure={channelFromLrgb:Rh},e.__workletHash=489495721257,e.__initData=Mh,e}(),Dh={code:"function reactNativeReanimated_lrgbJs3(c=0){const abs=Math.abs(c);if(abs<=0.04045){return c/12.92;}return(Math.sign(c)||1)*Math.pow((abs+0.055)/1.055,2.4);}"},jh=function(){const e=function(e=0){const t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)};return e.__closure={},e.__workletHash=6135795305567,e.__initData=Dh,e}(),Bh={code:"function reactNativeReanimated_lrgbJs4({r:r,g:g,b:b,alpha:alpha}){const{channelToLrgb}=this.__closure;return{r:channelToLrgb(r),g:channelToLrgb(g),b:channelToLrgb(b),alpha:alpha};}"},Lh={convert:{fromRgb:function(){const e=function({r:e,g:t,b:n,alpha:r}){return{r:jh(e),g:jh(t),b:jh(n),alpha:r}};return e.__closure={channelToLrgb:jh},e.__workletHash=1269246349231,e.__initData=Bh,e}(),toRgb:Ph}},Fh={code:"function convertLrgbToOklab_reactNativeReanimated_oklabJs1({r=0,g=0,b=0,alpha:alpha}){const L=Math.cbrt(0.41222147079999993*r+0.5363325363*g+0.0514459929*b);const M=Math.cbrt(0.2119034981999999*r+0.6806995450999999*g+0.1073969566*b);const S=Math.cbrt(0.08830246189999998*r+0.2817188376*g+0.6299787005000002*b);return{l:0.2104542553*L+0.793617785*M-0.0040720468*S,a:1.9779984951*L-2.428592205*M+0.4505937099*S,b:0.0259040371*L+0.7827717662*M-0.808675766*S,alpha:alpha};}"},Nh=function(){const e=function({r:e=0,g:t=0,b:n=0,alpha:r}){const i=Math.cbrt(.41222147079999993*e+.5363325363*t+.0514459929*n),o=Math.cbrt(.2119034981999999*e+.6806995450999999*t+.1073969566*n),a=Math.cbrt(.08830246189999998*e+.2817188376*t+.6299787005000002*n);return{l:.2104542553*i+.793617785*o-.0040720468*a,a:1.9779984951*i-2.428592205*o+.4505937099*a,b:.0259040371*i+.7827717662*o-.808675766*a,alpha:r}};return e.__closure={},e.__workletHash=0xc081f2be830,e.__initData=Fh,e}(),_h={code:"function convertRgbToOklab_reactNativeReanimated_oklabJs2(rgb){const{lrgb,convertLrgbToOklab}=this.__closure;const lrgbColor=lrgb.convert.fromRgb(rgb);const result=convertLrgbToOklab(lrgbColor);if(rgb.r===rgb.b&&rgb.b===rgb.g){result.a=result.b=0;}return result;}"},zh=function(){const e=function(e){const t=Lh.convert.fromRgb(e),n=Nh(t);return e.r===e.b&&e.b===e.g&&(n.a=n.b=0),n};return e.__closure={lrgb:Lh,convertLrgbToOklab:Nh},e.__workletHash=4448019407832,e.__initData=_h,e}(),Vh={code:"function convertOklabToLrgb_reactNativeReanimated_oklabJs3({l=0,a=0,b=0,alpha:alpha}){const L=Math.pow(l*0.99999999845051981432+0.39633779217376785678*a+0.21580375806075880339*b,3);const M=Math.pow(l*1.0000000088817607767-0.1055613423236563494*a-0.063854174771705903402*b,3);const S=Math.pow(l*1.0000000546724109177-0.089484182094965759684*a-1.2914855378640917399*b,3);return{r:+4.076741661347994*L-3.307711590408193*M+0.230969928729428*S,g:-1.2684380040921763*L+2.6097574006633715*M-0.3413193963102197*S,b:-0.004196086541837188*L-0.7034186144594493*M+1.7076147009309444*S,alpha:alpha};}"},Uh=function(){const e=function({l:e=0,a:t=0,b:n=0,alpha:r}){const i=Math.pow(.9999999984505198*e+.39633779217376786*t+.2158037580607588*n,3),o=Math.pow(1.0000000088817609*e-.10556134232365635*t-.06385417477170591*n,3),a=Math.pow(1.0000000546724108*e-.08948418209496575*t-1.2914855378640917*n,3);return{r:4.076741661347994*i-3.307711590408193*o+.230969928729428*a,g:-1.2684380040921763*i+2.6097574006633715*o-.3413193963102197*a,b:-.004196086541837188*i-.7034186144594493*o+1.7076147009309444*a,alpha:r}};return e.__closure={},e.__workletHash=2727607163353,e.__initData=Vh,e}(),Hh={code:"function convertOklabToRgb_reactNativeReanimated_oklabJs4(labColor){const{convertOklabToLrgb,lrgb}=this.__closure;const roundChannel=function(channel){return Math.ceil(channel*100_000)/100_000;};const lrgbColor=convertOklabToLrgb(labColor);const rgbColor=lrgb.convert.toRgb(lrgbColor);rgbColor.r=roundChannel(rgbColor.r);rgbColor.g=roundChannel(rgbColor.g);rgbColor.b=roundChannel(rgbColor.b);return rgbColor;}"},qh={oklab:{convert:{fromRgb:zh,toRgb:function(){const e=function(e){const t=e=>Math.ceil(1e5*e)/1e5,n=Uh(e),r=Lh.convert.toRgb(n);return r.r=t(r.r),r.g=t(r.g),r.b=t(r.b),r};return e.__closure={convertOklabToLrgb:Uh,lrgb:Lh},e.__workletHash=0xdc3de429a2f,e.__initData=Hh,e}()}}};let Gh=function(e){return e.IDENTITY="identity",e.CLAMP="clamp",e.EXTEND="extend",e}({});const Yh={code:"function getVal_reactNativeReanimated_interpolationJs1(type,coef,val,leftEdgeOutput,rightEdgeOutput,x){const{Extrapolation}=this.__closure;switch(type){case Extrapolation.IDENTITY:return x;case Extrapolation.CLAMP:if(coef*val=leftEdgeOutput?1:-1;if(coef*valcoef*rightEdgeOutput){return getVal(extrapolationConfig.extrapolateRight,coef,val,leftEdgeOutput,rightEdgeOutput,x);}return val;}"},$h=function(){const e=function(e,t,n){const{leftEdgeInput:r,rightEdgeInput:i,leftEdgeOutput:o,rightEdgeOutput:a}=t;if(i-r==0)return o;const s=o+(e-r)/(i-r)*(a-o),l=a>=o?1:-1;return l*sl*a?Wh(n.extrapolateRight,l,s,o,a,e):s};return e.__closure={getVal:Wh},e.__workletHash=0xb70b0d76835,e.__initData=Kh,e}(),ed={code:"function interpolate_reactNativeReanimated_interpolationJs5(x,inputRange,outputRange,type){const{validateType,internalInterpolate}=this.__closure;if(inputRange.length<2||outputRange.length<2){throw new ReanimatedError('Interpolation input and output ranges should contain at least two values.');}const extrapolationConfig=validateType(type);const length=inputRange.length;const narrowedInput={leftEdgeInput:inputRange[0],rightEdgeInput:inputRange[1],leftEdgeOutput:outputRange[0],rightEdgeOutput:outputRange[1]};if(length>2){if(x>inputRange[length-1]){narrowedInput.leftEdgeInput=inputRange[length-2];narrowedInput.rightEdgeInput=inputRange[length-1];narrowedInput.leftEdgeOutput=outputRange[length-2];narrowedInput.rightEdgeOutput=outputRange[length-1];}else{for(let i=1;i2)if(e>t[o-1])a.leftEdgeInput=t[o-2],a.rightEdgeInput=t[o-1],a.leftEdgeOutput=n[o-2],a.rightEdgeOutput=n[o-1];else for(let r=1;roriginalH[i-1]&&d>0.5){correctedInputRange.push(inputRange[i]);correctedInputRange.push(inputRange[i]+0.00001);correctedH.push(originalH[i]-1);correctedH.push(originalH[i]);}else if(originalH[i]o[e-1]&&n>.5?(r.push(t[e]),r.push(t[e]+1e-5),a.push(o[e]-1),a.push(o[e])):o[e]Math.pow(e/255,t)))};return e.__closure={},e.__workletHash=7578010435416,e.__initData=sd,e}(),cd={code:"function reactNativeReanimated_interpolateColorJs3(x,gamma){return Math.round(Math.pow(x,1/gamma)*255);}"},ud=function(){const e=function(e,t){return Math.round(255*Math.pow(e,1/t))};return e.__closure={},e.__workletHash=8612601199928,e.__initData=cd,e}(),hd={code:"function reactNativeReanimated_interpolateColorJs4(value,inputRange,colors,options){const{toLinearSpace,interpolate,Extrapolation,rgbaColor,toGammaSpace}=this.__closure;const{gamma=2.2}=options;let{r:outputR,g:outputG,b:outputB}=colors;if(gamma!==1){outputR=toLinearSpace(outputR,gamma);outputG=toLinearSpace(outputG,gamma);outputB=toLinearSpace(outputB,gamma);}const r=interpolate(value,inputRange,outputR,Extrapolation.CLAMP);const g=interpolate(value,inputRange,outputG,Extrapolation.CLAMP);const b=interpolate(value,inputRange,outputB,Extrapolation.CLAMP);const a=interpolate(value,inputRange,colors.a,Extrapolation.CLAMP);if(gamma===1){return rgbaColor(r,g,b,a);}return rgbaColor(toGammaSpace(r,gamma),toGammaSpace(g,gamma),toGammaSpace(b,gamma),a);}"},dd=function(){const e=function(e,t,n,r){const{gamma:i=2.2}=r;let{r:o,g:a,b:s}=n;1!==i&&(o=ld(o,i),a=ld(a,i),s=ld(s,i));const l=td(e,t,o,Gh.CLAMP),c=td(e,t,a,Gh.CLAMP),u=td(e,t,s,Gh.CLAMP),h=td(e,t,n.a,Gh.CLAMP);return 1===i?On(l,c,u,h):On(ud(l,i),ud(c,i),ud(u,i),h)};return e.__closure={toLinearSpace:ld,interpolate:td,Extrapolation:Gh,rgbaColor:On,toGammaSpace:ud},e.__workletHash=9578440859780,e.__initData=hd,e}(),fd={code:"function reactNativeReanimated_interpolateColorJs5(value,inputRange,colors,_options){const{interpolate,Extrapolation,culori,rgbaColor}=this.__closure;const l=interpolate(value,inputRange,colors.l,Extrapolation.CLAMP);const a=interpolate(value,inputRange,colors.a,Extrapolation.CLAMP);const b=interpolate(value,inputRange,colors.b,Extrapolation.CLAMP);const alpha=interpolate(value,inputRange,colors.alpha,Extrapolation.CLAMP);const{r:_r,g:_g,b:_b,alpha:_alpha}=culori.oklab.convert.toRgb({l:l,a:a,b:b,alpha:alpha});return rgbaColor(_r,_g,_b,_alpha);}"},pd=function(){const e=function(e,t,n,r){const i=td(e,t,n.l,Gh.CLAMP),o=td(e,t,n.a,Gh.CLAMP),a=td(e,t,n.b,Gh.CLAMP),s=td(e,t,n.alpha,Gh.CLAMP),{r:l,g:c,b:u,alpha:h}=qh.oklab.convert.toRgb({l:i,a:o,b:a,alpha:s});return On(l,c,u,h)};return e.__closure={interpolate:td,Extrapolation:Gh,culori:qh,rgbaColor:On},e.__workletHash=6220548705420,e.__initData=fd,e}(),md={code:"function reactNativeReanimated_interpolateColorJs6(colors,convFromRgb){const{processColor,red,green,blue,opacity}=this.__closure;const ch1=[];const ch2=[];const ch3=[];const alpha=[];for(let i=0;i({ch1:e.r,ch2:e.g,ch3:e.b})));return{r:t,g:n,b:r,a:i}};return e.__closure={_splitColorsIntoChannels:gd},e.__workletHash=5725401513521,e.__initData=yd,e}(),bd={code:"function reactNativeReanimated_interpolateColorJs8(colors){const{_splitColorsIntoChannels,RGBtoHSV}=this.__closure;const{ch1:ch1,ch2:ch2,ch3:ch3,alpha:alpha}=_splitColorsIntoChannels(colors,function(color){const hsvColor=RGBtoHSV(color.r,color.g,color.b);return{ch1:hsvColor.h,ch2:hsvColor.s,ch3:hsvColor.v};});return{h:ch1,s:ch2,v:ch3,a:alpha};}"},Ad=function(){const e=function(e){const{ch1:t,ch2:n,ch3:r,alpha:i}=gd(e,(e=>{const t=Mn(e.r,e.g,e.b);return{ch1:t.h,ch2:t.s,ch3:t.v}}));return{h:t,s:n,v:r,a:i}};return e.__closure={_splitColorsIntoChannels:gd,RGBtoHSV:Mn},e.__workletHash=0x9ed1d3ad0a9,e.__initData=bd,e}(),xd={code:"function reactNativeReanimated_interpolateColorJs9(colors){const{_splitColorsIntoChannels,culori}=this.__closure;const{ch1:ch1,ch2:ch2,ch3:ch3,alpha:alpha}=_splitColorsIntoChannels(colors,function(color){const labColor=culori.oklab.convert.fromRgb(color);return{ch1:labColor.l,ch2:labColor.a,ch3:labColor.b};});return{l:ch1,a:ch2,b:ch3,alpha:alpha};}"},wd=function(){const e=function(e){const{ch1:t,ch2:n,ch3:r,alpha:i}=gd(e,(e=>{const t=qh.oklab.convert.fromRgb(e);return{ch1:t.l,ch2:t.a,ch3:t.b}}));return{l:t,a:n,b:r,alpha:i}};return e.__closure={_splitColorsIntoChannels:gd,culori:qh},e.__workletHash=0xbe9b9a24ef7,e.__initData=xd,e}(),Cd={code:"function interpolateColor_reactNativeReanimated_interpolateColorJs10(value,inputRange,outputRange,colorSpace='RGB',options={}){const{interpolateColorsHSV,getInterpolateHSV,interpolateColorsRGB,getInterpolateRGB,interpolateColorsLAB,getInterpolateLAB}=this.__closure;if(colorSpace==='HSV'){return interpolateColorsHSV(value,inputRange,getInterpolateHSV(outputRange),options);}else if(colorSpace==='RGB'){return interpolateColorsRGB(value,inputRange,getInterpolateRGB(outputRange),options);}else if(colorSpace==='LAB'){return interpolateColorsLAB(value,inputRange,getInterpolateLAB(outputRange),options);}throw new ReanimatedError(\"Invalid color space provided: \"+colorSpace+\". Supported values are: ['RGB', 'HSV', 'LAB'].\");}"},Sd=function(){const e=function(e,t,n,r="RGB",i={}){if("HSV"===r)return ad(e,t,Ad(n),i);if("RGB"===r)return dd(e,t,vd(n),i);if("LAB"===r)return pd(e,t,wd(n),i);throw new l(`Invalid color space provided: ${r}. Supported values are: ['RGB', 'HSV', 'LAB'].`)};return e.__closure={interpolateColorsHSV:ad,getInterpolateHSV:Ad,interpolateColorsRGB:dd,getInterpolateRGB:vd,interpolateColorsLAB:pd,getInterpolateLAB:wd},e.__workletHash=6040343646811,e.__initData=Cd,e}();let Ed=function(e){return e[e.RGB=0]="RGB",e[e.HSV=1]="HSV",e[e.LAB=2]="LAB",e}({});function kd(e,t,n=Ed.RGB,r={}){return uc({inputRange:e,outputRange:t,colorSpace:n,cache:et(null),options:r})}function Td(){}function Id(){}function Od(){}function Rd(){}function Md(){}const Pd={code:"function reactNativeReanimated_BaseAnimationBuilderJs1(delay,animation){const{withDelay,reduceMotion}=this.__closure;return withDelay(delay,animation,reduceMotion);}"},Dd={code:"function reactNativeReanimated_BaseAnimationBuilderJs2(_,animation){const{getReduceMotionFromConfig,reduceMotion}=this.__closure;animation.reduceMotion=getReduceMotionFromConfig(reduceMotion);return animation;}"};class jd{reduceMotionV=k.System;randomizeDelay=!1;build=()=>{throw new l("Unimplemented method in child class.")};static duration(e){return this.createInstance().duration(e)}duration(e){return this.durationV=e,this}static delay(e){return this.createInstance().delay(e)}delay(e){return this.delayV=e,this}static withCallback(e){return this.createInstance().withCallback(e)}withCallback(e){return this.callbackV=e,this}static reduceMotion(e){return this.createInstance().reduceMotion(e)}reduceMotion(e){return this.reduceMotionV=e,this}static getDuration(){return 300}getDuration(){return this.durationV??300}static randomDelay(){return this.createInstance().randomDelay()}randomDelay(){return this.randomizeDelay=!0,this}getDelay(){return this.randomizeDelay?Math.random()*(this.delayV??1e3):this.delayV??0}getReduceMotion(){return this.reduceMotionV}getDelayFunction(){const e=this.randomizeDelay||this.delayV,t=this.getReduceMotion();return e?function(){const e=function(e,n){return ks(e,n,t)};return e.__closure={withDelay:ks,reduceMotion:t},e.__workletHash=0xec2088a2593,e.__initData=Pd,e}():function(){const e=function(e,n){return n.reduceMotion=co(t),n};return e.__closure={getReduceMotionFromConfig:co,reduceMotion:t},e.__workletHash=6646183570703,e.__initData=Dd,e}()}static build(){return this.createInstance().build()}}class Bd extends jd{static easing(e){return this.createInstance().easing(e)}easing(e){return this.easingV=e,this}static rotate(e){return this.createInstance().rotate(e)}rotate(e){return this.rotateV=e,this}static springify(e){return this.createInstance().springify(e)}springify(e){return this.durationV=e,this.type=nu,this}static dampingRatio(e){return this.createInstance().dampingRatio(e)}dampingRatio(e){return this.dampingRatioV=e,this}static damping(e){return this.createInstance().damping(e)}damping(e){return this.dampingV=e,this}static mass(e){return this.createInstance().mass(e)}mass(e){return this.massV=e,this}static stiffness(e){return this.createInstance().stiffness(e)}stiffness(e){return this.stiffnessV=e,this}static overshootClamping(e){return this.createInstance().overshootClamping(e)}overshootClamping(e){return this.overshootClampingV=e,this}static restDisplacementThreshold(e){return this.createInstance().restDisplacementThreshold(e)}restDisplacementThreshold(e){return this.restDisplacementThresholdV=e,this}static restSpeedThreshold(e){return this.createInstance().restSpeedThreshold(e)}restSpeedThreshold(e){return this.restSpeedThresholdV=e,this}static withInitialValues(e){return this.createInstance().withInitialValues(e)}withInitialValues(e){return this.initialValues=e,this}getAnimationAndConfig(){const e=this.durationV,t=this.easingV,n=this.rotateV,r=this.type?this.type:Io,i=this.dampingV,o=this.dampingRatioV,a=this.massV,s=this.stiffnessV,l=this.overshootClampingV,c=this.restDisplacementThresholdV,u=this.restSpeedThresholdV,h=r,d={};function f(e,t){e&&(d[t]=e)}return r===Io&&f(t,"easing"),[{variableName:"damping",value:i},{variableName:"dampingRatio",value:o},{variableName:"mass",value:a},{variableName:"stiffness",value:s},{variableName:"overshootClamping",value:l},{variableName:"restDisplacementThreshold",value:c},{variableName:"restSpeedThreshold",value:u},{variableName:"duration",value:e},{variableName:"rotate",value:n}].forEach((({value:e,variableName:t})=>f(e,t))),[h,d]}}const Ld={code:"function reactNativeReanimated_BounceJs1(){const{delayFunction,delay,withSequence,withTiming,duration,initialValues,callback}=this.__closure;return{animations:{transform:[{scale:delayFunction(delay,withSequence(withTiming(1.2,{duration:duration*0.55}),withTiming(0.9,{duration:duration*0.15}),withTiming(1.1,{duration:duration*0.15}),withTiming(1,{duration:duration*0.15})))}]},initialValues:{transform:[{scale:0}],...initialValues},callback:callback};}"};class Fd extends Bd{static presetName="BounceIn";static createInstance(){return new Fd}static getDuration(){return 600}getDuration(){return this.durationV??600}build=()=>{const e=this.getDelayFunction(),t=this.getDelay(),n=this.getDuration(),r=this.callbackV,i=this.initialValues;return function(){const o=function(){return{animations:{transform:[{scale:e(t,Rs(Io(1.2,{duration:.55*n}),Io(.9,{duration:.15*n}),Io(1.1,{duration:.15*n}),Io(1,{duration:.15*n})))}]},initialValues:Object.assign({transform:[{scale:0}]},i),callback:r}};return o.__closure={delayFunction:e,delay:t,withSequence:Rs,withTiming:Io,duration:n,initialValues:i,callback:r},o.__workletHash=0xecf6b287ab9,o.__initData=Ld,o}()}}const Nd={code:"function reactNativeReanimated_BounceJs2(values){const{delayFunction,delay,withSequence,withTiming,duration,initialValues,callback}=this.__closure;return{animations:{transform:[{translateY:delayFunction(delay,withSequence(withTiming(-20,{duration:duration*0.55}),withTiming(10,{duration:duration*0.15}),withTiming(-10,{duration:duration*0.15}),withTiming(0,{duration:duration*0.15})))}]},initialValues:{transform:[{translateY:values.windowHeight}],...initialValues},callback:callback};}"};class _d extends Bd{static presetName="BounceInDown";static createInstance(){return new _d}static getDuration(){return 600}getDuration(){return this.durationV??600}build=()=>{const e=this.getDelayFunction(),t=this.getDelay(),n=this.getDuration(),r=this.callbackV,i=this.initialValues;return function(){const o=function(o){return{animations:{transform:[{translateY:e(t,Rs(Io(-20,{duration:.55*n}),Io(10,{duration:.15*n}),Io(-10,{duration:.15*n}),Io(0,{duration:.15*n})))}]},initialValues:Object.assign({transform:[{translateY:o.windowHeight}]},i),callback:r}};return o.__closure={delayFunction:e,delay:t,withSequence:Rs,withTiming:Io,duration:n,initialValues:i,callback:r},o.__workletHash=8439271633968,o.__initData=Nd,o}()}}const zd={code:"function reactNativeReanimated_BounceJs3(values){const{delayFunction,delay,withSequence,withTiming,duration,initialValues,callback}=this.__closure;return{animations:{transform:[{translateY:delayFunction(delay,withSequence(withTiming(20,{duration:duration*0.55}),withTiming(-10,{duration:duration*0.15}),withTiming(10,{duration:duration*0.15}),withTiming(0,{duration:duration*0.15})))}]},initialValues:{transform:[{translateY:-values.windowHeight}],...initialValues},callback:callback};}"};class Vd extends Bd{static presetName="BounceInUp";static createInstance(){return new Vd}static getDuration(){return 600}getDuration(){return this.durationV??600}build=()=>{const e=this.getDelayFunction(),t=this.getDelay(),n=this.getDuration(),r=this.callbackV,i=this.initialValues;return function(){const o=function(o){return{animations:{transform:[{translateY:e(t,Rs(Io(20,{duration:.55*n}),Io(-10,{duration:.15*n}),Io(10,{duration:.15*n}),Io(0,{duration:.15*n})))}]},initialValues:Object.assign({transform:[{translateY:-o.windowHeight}]},i),callback:r}};return o.__closure={delayFunction:e,delay:t,withSequence:Rs,withTiming:Io,duration:n,initialValues:i,callback:r},o.__workletHash=0x9bec198e911,o.__initData=zd,o}()}}const Ud={code:"function reactNativeReanimated_BounceJs4(values){const{delayFunction,delay,withSequence,withTiming,duration,initialValues,callback}=this.__closure;return{animations:{transform:[{translateX:delayFunction(delay,withSequence(withTiming(20,{duration:duration*0.55}),withTiming(-10,{duration:duration*0.15}),withTiming(10,{duration:duration*0.15}),withTiming(0,{duration:duration*0.15})))}]},initialValues:{transform:[{translateX:-values.windowWidth}],...initialValues},callback:callback};}"};class Hd extends Bd{static presetName="BounceInLeft";static createInstance(){return new Hd}static getDuration(){return 600}getDuration(){return this.durationV??600}build=()=>{const e=this.getDelayFunction(),t=this.getDelay(),n=this.getDuration(),r=this.callbackV,i=this.initialValues;return function(){const o=function(o){return{animations:{transform:[{translateX:e(t,Rs(Io(20,{duration:.55*n}),Io(-10,{duration:.15*n}),Io(10,{duration:.15*n}),Io(0,{duration:.15*n})))}]},initialValues:Object.assign({transform:[{translateX:-o.windowWidth}]},i),callback:r}};return o.__closure={delayFunction:e,delay:t,withSequence:Rs,withTiming:Io,duration:n,initialValues:i,callback:r},o.__workletHash=9594426187631,o.__initData=Ud,o}()}}const qd={code:"function reactNativeReanimated_BounceJs5(values){const{delayFunction,delay,withSequence,withTiming,duration,initialValues,callback}=this.__closure;return{animations:{transform:[{translateX:delayFunction(delay,withSequence(withTiming(-20,{duration:duration*0.55}),withTiming(10,{duration:duration*0.15}),withTiming(-10,{duration:duration*0.15}),withTiming(0,{duration:duration*0.15})))}]},initialValues:{transform:[{translateX:values.windowWidth}],...initialValues},callback:callback};}"};class Gd extends Bd{static presetName="BounceInRight";static createInstance(){return new Gd}static getDuration(){return 600}getDuration(){return this.durationV??600}build=()=>{const e=this.getDelayFunction(),t=this.getDelay(),n=this.getDuration(),r=this.callbackV,i=this.initialValues;return function(){const o=function(o){return{animations:{transform:[{translateX:e(t,Rs(Io(-20,{duration:.55*n}),Io(10,{duration:.15*n}),Io(-10,{duration:.15*n}),Io(0,{duration:.15*n})))}]},initialValues:Object.assign({transform:[{translateX:o.windowWidth}]},i),callback:r}};return o.__closure={delayFunction:e,delay:t,withSequence:Rs,withTiming:Io,duration:n,initialValues:i,callback:r},o.__workletHash=0xb10532544ae,o.__initData=qd,o}()}}const Yd={code:"function reactNativeReanimated_BounceJs6(){const{delayFunction,delay,withSequence,withTiming,duration,initialValues,callback}=this.__closure;return{animations:{transform:[{scale:delayFunction(delay,withSequence(withTiming(1.1,{duration:duration*0.15}),withTiming(0.9,{duration:duration*0.15}),withTiming(1.2,{duration:duration*0.15}),withTiming(0,{duration:duration*0.55})))}]},initialValues:{transform:[{scale:1}],...initialValues},callback:callback};}"};class Wd extends Bd{static presetName="BounceOut";static createInstance(){return new Wd}static getDuration(){return 600}getDuration(){return this.durationV??600}build=()=>{const e=this.getDelayFunction(),t=this.getDelay(),n=this.getDuration(),r=this.callbackV,i=this.initialValues;return function(){const o=function(){return{animations:{transform:[{scale:e(t,Rs(Io(1.1,{duration:.15*n}),Io(.9,{duration:.15*n}),Io(1.2,{duration:.15*n}),Io(0,{duration:.55*n})))}]},initialValues:Object.assign({transform:[{scale:1}]},i),callback:r}};return o.__closure={delayFunction:e,delay:t,withSequence:Rs,withTiming:Io,duration:n,initialValues:i,callback:r},o.__workletHash=3716486229086,o.__initData=Yd,o}()}}const Qd={code:"function reactNativeReanimated_BounceJs7(values){const{delayFunction,delay,withSequence,withTiming,duration,initialValues,callback}=this.__closure;return{animations:{transform:[{translateY:delayFunction(delay,withSequence(withTiming(-10,{duration:duration*0.15}),withTiming(10,{duration:duration*0.15}),withTiming(-20,{duration:duration*0.15}),withTiming(values.windowHeight,{duration:duration*0.55})))}]},initialValues:{transform:[{translateY:0}],...initialValues},callback:callback};}"};class Xd extends Bd{static presetName="BounceOutDown";static createInstance(){return new Xd}static getDuration(){return 600}getDuration(){return this.durationV??600}build=()=>{const e=this.getDelayFunction(),t=this.getDelay(),n=this.getDuration(),r=this.callbackV,i=this.initialValues;return function(){const o=function(o){return{animations:{transform:[{translateY:e(t,Rs(Io(-10,{duration:.15*n}),Io(10,{duration:.15*n}),Io(-20,{duration:.15*n}),Io(o.windowHeight,{duration:.55*n})))}]},initialValues:Object.assign({transform:[{translateY:0}]},i),callback:r}};return o.__closure={delayFunction:e,delay:t,withSequence:Rs,withTiming:Io,duration:n,initialValues:i,callback:r},o.__workletHash=3796851510421,o.__initData=Qd,o}()}}const Jd={code:"function reactNativeReanimated_BounceJs8(values){const{delayFunction,delay,withSequence,withTiming,duration,initialValues,callback}=this.__closure;return{animations:{transform:[{translateY:delayFunction(delay,withSequence(withTiming(10,{duration:duration*0.15}),withTiming(-10,{duration:duration*0.15}),withTiming(20,{duration:duration*0.15}),withTiming(-values.windowHeight,{duration:duration*0.55})))}]},initialValues:{transform:[{translateY:0}],...initialValues},callback:callback};}"};class Zd extends Bd{static presetName="BounceOutUp";static createInstance(){return new Zd}static getDuration(){return 600}getDuration(){return this.durationV??600}build=()=>{const e=this.getDelayFunction(),t=this.getDelay(),n=this.getDuration(),r=this.callbackV,i=this.initialValues;return function(){const o=function(o){return{animations:{transform:[{translateY:e(t,Rs(Io(10,{duration:.15*n}),Io(-10,{duration:.15*n}),Io(20,{duration:.15*n}),Io(-o.windowHeight,{duration:.55*n})))}]},initialValues:Object.assign({transform:[{translateY:0}]},i),callback:r}};return o.__closure={delayFunction:e,delay:t,withSequence:Rs,withTiming:Io,duration:n,initialValues:i,callback:r},o.__workletHash=0xfe991d1cada,o.__initData=Jd,o}()}}const Kd={code:"function reactNativeReanimated_BounceJs9(values){const{delayFunction,delay,withSequence,withTiming,duration,initialValues,callback}=this.__closure;return{animations:{transform:[{translateX:delayFunction(delay,withSequence(withTiming(10,{duration:duration*0.15}),withTiming(-10,{duration:duration*0.15}),withTiming(20,{duration:duration*0.15}),withTiming(-values.windowWidth,{duration:duration*0.55})))}]},initialValues:{transform:[{translateX:0}],...initialValues},callback:callback};}"};class $d extends Bd{static presetName="BounceOutLeft";static createInstance(){return new $d}static getDuration(){return 600}getDuration(){return this.durationV??600}build=()=>{const e=this.getDelayFunction(),t=this.getDelay(),n=this.getDuration(),r=this.callbackV,i=this.initialValues;return function(){const o=function(o){return{animations:{transform:[{translateX:e(t,Rs(Io(10,{duration:.15*n}),Io(-10,{duration:.15*n}),Io(20,{duration:.15*n}),Io(-o.windowWidth,{duration:.55*n})))}]},initialValues:Object.assign({transform:[{translateX:0}]},i),callback:r}};return o.__closure={delayFunction:e,delay:t,withSequence:Rs,withTiming:Io,duration:n,initialValues:i,callback:r},o.__workletHash=5106130699650,o.__initData=Kd,o}()}}const ef={code:"function reactNativeReanimated_BounceJs10(values){const{delayFunction,delay,withSequence,withTiming,duration,initialValues,callback}=this.__closure;return{animations:{transform:[{translateX:delayFunction(delay,withSequence(withTiming(-10,{duration:duration*0.15}),withTiming(10,{duration:duration*0.15}),withTiming(-20,{duration:duration*0.15}),withTiming(values.windowWidth,{duration:duration*0.55})))}]},initialValues:{transform:[{translateX:0}],...initialValues},callback:callback};}"};class tf extends Bd{static presetName="BounceOutRight";static createInstance(){return new tf}static getDuration(){return 600}getDuration(){return this.durationV??600}build=()=>{const e=this.getDelayFunction(),t=this.getDelay(),n=this.getDuration(),r=this.callbackV,i=this.initialValues;return function(){const o=function(o){return{animations:{transform:[{translateX:e(t,Rs(Io(-10,{duration:.15*n}),Io(10,{duration:.15*n}),Io(-20,{duration:.15*n}),Io(o.windowWidth,{duration:.55*n})))}]},initialValues:Object.assign({transform:[{translateX:0}]},i),callback:r}};return o.__closure={delayFunction:e,delay:t,withSequence:Rs,withTiming:Io,duration:n,initialValues:i,callback:r},o.__workletHash=0xe9d1143e9fa,o.__initData=ef,o}()}}const nf={code:"function reactNativeReanimated_FadeJs1(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config))},initialValues:{opacity:0,...initialValues},callback:callback};}"};class rf extends Bd{static presetName="FadeIn";static createInstance(){return new rf}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.callbackV,i=this.initialValues,o=this.getDelay();return function(){const a=function(){return{animations:{opacity:e(o,t(1,n))},initialValues:Object.assign({opacity:0},i),callback:r}};return a.__closure={delayFunction:e,delay:o,animation:t,config:n,initialValues:i,callback:r},a.__workletHash=2408710693551,a.__initData=nf,a}()}}const of={code:"function reactNativeReanimated_FadeJs2(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config)),transform:[{translateX:delayFunction(delay,animation(0,config))}]},initialValues:{opacity:0,transform:[{translateX:25}],...initialValues},callback:callback};}"};class af extends Bd{static presetName="FadeInRight";static createInstance(){return new af}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.callbackV,i=this.initialValues,o=this.getDelay();return function(){const a=function(){return{animations:{opacity:e(o,t(1,n)),transform:[{translateX:e(o,t(0,n))}]},initialValues:Object.assign({opacity:0,transform:[{translateX:25}]},i),callback:r}};return a.__closure={delayFunction:e,delay:o,animation:t,config:n,initialValues:i,callback:r},a.__workletHash=2759384225477,a.__initData=of,a}()}}const sf={code:"function reactNativeReanimated_FadeJs3(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config)),transform:[{translateX:delayFunction(delay,animation(0,config))}]},initialValues:{opacity:0,transform:[{translateX:-25}],...initialValues},callback:callback};}"};class lf extends Bd{static presetName="FadeInLeft";static createInstance(){return new lf}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.callbackV,i=this.initialValues,o=this.getDelay();return function(){const a=function(){return{animations:{opacity:e(o,t(1,n)),transform:[{translateX:e(o,t(0,n))}]},initialValues:Object.assign({opacity:0,transform:[{translateX:-25}]},i),callback:r}};return a.__closure={delayFunction:e,delay:o,animation:t,config:n,initialValues:i,callback:r},a.__workletHash=0xd6870952949,a.__initData=sf,a}()}}const cf={code:"function reactNativeReanimated_FadeJs4(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config)),transform:[{translateY:delayFunction(delay,animation(0,config))}]},initialValues:{opacity:0,transform:[{translateY:-25}],...initialValues},callback:callback};}"};class uf extends Bd{static presetName="FadeInUp";static createInstance(){return new uf}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.callbackV,i=this.initialValues,o=this.getDelay();return function(){const a=function(){return{animations:{opacity:e(o,t(1,n)),transform:[{translateY:e(o,t(0,n))}]},initialValues:Object.assign({opacity:0,transform:[{translateY:-25}]},i),callback:r}};return a.__closure={delayFunction:e,delay:o,animation:t,config:n,initialValues:i,callback:r},a.__workletHash=7783727740462,a.__initData=cf,a}()}}const hf={code:"function reactNativeReanimated_FadeJs5(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config)),transform:[{translateY:delayFunction(delay,animation(0,config))}]},initialValues:{opacity:0,transform:[{translateY:25}],...initialValues},callback:callback};}"};class df extends Bd{static presetName="FadeInDown";static createInstance(){return new df}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.callbackV,i=this.initialValues,o=this.getDelay();return function(){const a=function(){return{animations:{opacity:e(o,t(1,n)),transform:[{translateY:e(o,t(0,n))}]},initialValues:Object.assign({opacity:0,transform:[{translateY:25}]},i),callback:r}};return a.__closure={delayFunction:e,delay:o,animation:t,config:n,initialValues:i,callback:r},a.__workletHash=0xdf55d390722,a.__initData=hf,a}()}}const ff={code:"function reactNativeReanimated_FadeJs6(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config))},initialValues:{opacity:1,...initialValues},callback:callback};}"};class pf extends Bd{static presetName="FadeOut";static createInstance(){return new pf}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.callbackV,i=this.initialValues,o=this.getDelay();return function(){const a=function(){return{animations:{opacity:e(o,t(0,n))},initialValues:Object.assign({opacity:1},i),callback:r}};return a.__closure={delayFunction:e,delay:o,animation:t,config:n,initialValues:i,callback:r},a.__workletHash=0xdeeb34b3ae8,a.__initData=ff,a}()}}const mf={code:"function reactNativeReanimated_FadeJs7(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{translateX:delayFunction(delay,animation(25,config))}]},initialValues:{opacity:1,transform:[{translateX:0}],...initialValues},callback:callback};}"};class gf extends Bd{static presetName="FadeOutRight";static createInstance(){return new gf}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.callbackV,i=this.initialValues,o=this.getDelay();return function(){const a=function(){return{animations:{opacity:e(o,t(0,n)),transform:[{translateX:e(o,t(25,n))}]},initialValues:Object.assign({opacity:1,transform:[{translateX:0}]},i),callback:r}};return a.__closure={delayFunction:e,delay:o,animation:t,config:n,initialValues:i,callback:r},a.__workletHash=0xefd10292d00,a.__initData=mf,a}()}}const yf={code:"function reactNativeReanimated_FadeJs8(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{translateX:delayFunction(delay,animation(-25,config))}]},initialValues:{opacity:1,transform:[{translateX:0}],...initialValues},callback:callback};}"};class vf extends Bd{static presetName="FadeOutLeft";static createInstance(){return new vf}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.callbackV,i=this.initialValues,o=this.getDelay();return function(){const a=function(){return{animations:{opacity:e(o,t(0,n)),transform:[{translateX:e(o,t(-25,n))}]},initialValues:Object.assign({opacity:1,transform:[{translateX:0}]},i),callback:r}};return a.__closure={delayFunction:e,delay:o,animation:t,config:n,initialValues:i,callback:r},a.__workletHash=7507875144002,a.__initData=yf,a}()}}const bf={code:"function reactNativeReanimated_FadeJs9(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{translateY:delayFunction(delay,animation(-25,config))}]},initialValues:{opacity:1,transform:[{translateY:0}],...initialValues},callback:callback};}"};class Af extends Bd{static presetName="FadeOutUp";static createInstance(){return new Af}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.callbackV,i=this.initialValues,o=this.getDelay();return function(){const a=function(){return{animations:{opacity:e(o,t(0,n)),transform:[{translateY:e(o,t(-25,n))}]},initialValues:Object.assign({opacity:1,transform:[{translateY:0}]},i),callback:r}};return a.__closure={delayFunction:e,delay:o,animation:t,config:n,initialValues:i,callback:r},a.__workletHash=2169999521379,a.__initData=bf,a}()}}const xf={code:"function reactNativeReanimated_FadeJs10(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{translateY:delayFunction(delay,animation(25,config))}]},initialValues:{opacity:1,transform:[{translateY:0}],...initialValues},callback:callback};}"};class wf extends Bd{static presetName="FadeOutDown";static createInstance(){return new wf}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.callbackV,i=this.initialValues,o=this.getDelay();return function(){const a=function(){return{animations:{opacity:e(o,t(0,n)),transform:[{translateY:e(o,t(25,n))}]},initialValues:Object.assign({opacity:1,transform:[{translateY:0}]},i),callback:r}};return a.__closure={delayFunction:e,delay:o,animation:t,config:n,initialValues:i,callback:r},a.__workletHash=1751875256886,a.__initData=xf,a}()}}const Cf={code:"function reactNativeReanimated_EntryExitTransitionJs1(values){const{enteringAnimation,exitingAnimation,delayFunction,delay,withSequence,withTiming,exitingDuration,logger,callback}=this.__closure;const enteringValues=enteringAnimation(values);const exitingValues=exitingAnimation(values);const animations={transform:[]};for(const prop of Object.keys(exitingValues.animations)){if(prop==='transform'){if(!Array.isArray(exitingValues.animations.transform)){continue;}exitingValues.animations.transform.forEach(function(value,index){for(const transformProp of Object.keys(value)){animations.transform.push({[transformProp]:delayFunction(delay,withSequence(value[transformProp],withTiming(exitingValues.initialValues.transform?exitingValues.initialValues.transform[index][transformProp]:0,{duration:0})))});}});}else{const sequence=enteringValues.animations[prop]!==undefined?[exitingValues.animations[prop],withTiming(enteringValues.initialValues[prop],{duration:0}),enteringValues.animations[prop]]:[exitingValues.animations[prop],withTiming(Object.keys(values).includes(prop)?values[prop]:exitingValues.initialValues[prop],{duration:0})];animations[prop]=delayFunction(delay,withSequence(...sequence));}}for(const prop of Object.keys(enteringValues.animations)){if(prop==='transform'){if(!Array.isArray(enteringValues.animations.transform)){continue;}enteringValues.animations.transform.forEach(function(value,index){for(const transformProp of Object.keys(value)){animations.transform.push({[transformProp]:delayFunction(delay+exitingDuration,withSequence(withTiming(enteringValues.initialValues.transform?enteringValues.initialValues.transform[index][transformProp]:0,{duration:exitingDuration}),value[transformProp]))});}});}else if(animations[prop]!==undefined){continue;}else{animations[prop]=delayFunction(delay,withSequence(withTiming(enteringValues.initialValues[prop],{duration:0}),enteringValues.animations[prop]));}}const mergedTransform=(Array.isArray(exitingValues.initialValues.transform)?exitingValues.initialValues.transform:[]).concat((Array.isArray(enteringValues.animations.transform)?enteringValues.animations.transform:[]).map(function(value){const objectKeys=Object.keys(value);if((objectKeys===null||objectKeys===void 0?void 0:objectKeys.length)<1){logger.error(\"${value} is not a valid Transform object\");return value;}const transformProp=objectKeys[0];const current=value[transformProp].current;if(typeof current==='string'){if(current.includes('deg')){return{[transformProp]:'0deg'};}else{return{[transformProp]:'0'};}}else if(transformProp.includes('translate')){return{[transformProp]:0};}else{return{[transformProp]:1};}}));return{initialValues:{...exitingValues.initialValues,originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight,transform:mergedTransform},animations:{originX:delayFunction(delay+exitingDuration,withTiming(values.targetOriginX,{duration:exitingDuration})),originY:delayFunction(delay+exitingDuration,withTiming(values.targetOriginY,{duration:exitingDuration})),width:delayFunction(delay+exitingDuration,withTiming(values.targetWidth,{duration:exitingDuration})),height:delayFunction(delay+exitingDuration,withTiming(values.targetHeight,{duration:exitingDuration})),...animations},callback:callback};}"};class Sf extends jd{static presetName="EntryExitTransition";enteringV=rf;exitingV=pf;static createInstance(){return new Sf}static entering(e){return this.createInstance().entering(e)}entering(e){return this.enteringV=e,this}static exiting(e){return this.createInstance().exiting(e)}exiting(e){return this.exitingV=e,this}build=()=>{const e=this.getDelayFunction(),t=this.callbackV,n=this.getDelay(),r=this.enteringV.build(),i=this.exitingV.build(),o=this.exitingV.getDuration();return function(){const a=function(a){const s=r(a),l=i(a),c={transform:[]};for(const t of Object.keys(l.animations))if("transform"===t){if(!Array.isArray(l.animations.transform))continue;l.animations.transform.forEach(((t,r)=>{for(const i of Object.keys(t))c.transform.push({[i]:e(n,Rs(t[i],Io(l.initialValues.transform?l.initialValues.transform[r][i]:0,{duration:0})))})}))}else{const r=void 0!==s.animations[t]?[l.animations[t],Io(s.initialValues[t],{duration:0}),s.animations[t]]:[l.animations[t],Io(Object.keys(a).includes(t)?a[t]:l.initialValues[t],{duration:0})];c[t]=e(n,Rs(...r))}for(const t of Object.keys(s.animations))if("transform"===t){if(!Array.isArray(s.animations.transform))continue;s.animations.transform.forEach(((t,r)=>{for(const i of Object.keys(t))c.transform.push({[i]:e(n+o,Rs(Io(s.initialValues.transform?s.initialValues.transform[r][i]:0,{duration:o}),t[i]))})}))}else{if(void 0!==c[t])continue;c[t]=e(n,Rs(Io(s.initialValues[t],{duration:0}),s.animations[t]))}const u=(Array.isArray(l.initialValues.transform)?l.initialValues.transform:[]).concat((Array.isArray(s.animations.transform)?s.animations.transform:[]).map((e=>{const t=Object.keys(e);if(t?.length<1)return X.error("${value} is not a valid Transform object"),e;const n=t[0],r=e[n].current;return"string"==typeof r?r.includes("deg")?{[n]:"0deg"}:{[n]:"0"}:n.includes("translate")?{[n]:0}:{[n]:1}})));return{initialValues:Object.assign({},l.initialValues,{originX:a.currentOriginX,originY:a.currentOriginY,width:a.currentWidth,height:a.currentHeight,transform:u}),animations:Object.assign({originX:e(n+o,Io(a.targetOriginX,{duration:o})),originY:e(n+o,Io(a.targetOriginY,{duration:o})),width:e(n+o,Io(a.targetWidth,{duration:o})),height:e(n+o,Io(a.targetHeight,{duration:o}))},c),callback:t}};return a.__closure={enteringAnimation:r,exitingAnimation:i,delayFunction:e,delay:n,withSequence:Rs,withTiming:Io,exitingDuration:o,logger:X,callback:t},a.__workletHash=0xc5a96c4f86b,a.__initData=Cf,a}()}}function Ef(e,t){return Sf.entering(t).exiting(e)}const kf={code:"function reactNativeReanimated_CurvedTransitionJs1(values){const{delayFunction,delay,withTiming,duration,easing,callback}=this.__closure;return{initialValues:{originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight},animations:{originX:delayFunction(delay,withTiming(values.targetOriginX,{duration:duration,easing:easing.easingX})),originY:delayFunction(delay,withTiming(values.targetOriginY,{duration:duration,easing:easing.easingY})),width:delayFunction(delay,withTiming(values.targetWidth,{duration:duration,easing:easing.easingWidth})),height:delayFunction(delay,withTiming(values.targetHeight,{duration:duration,easing:easing.easingHeight}))},callback:callback};}"};class Tf extends jd{static presetName="CurvedTransition";easingXV=si.in(si.ease);easingYV=si.out(si.ease);easingWidthV=si.in(si.exp);easingHeightV=si.out(si.exp);static createInstance(){return new Tf}static easingX(e){return this.createInstance().easingX(e)}easingX(e){return this.easingXV=e,this}static easingY(e){return this.createInstance().easingY(e)}easingY(e){return this.easingYV=e,this}static easingWidth(e){return this.createInstance().easingWidth(e)}easingWidth(e){return this.easingWidthV=e,this}static easingHeight(e){return this.createInstance().easingHeight(e)}easingHeight(e){return this.easingHeightV=e,this}build=()=>{const e=this.getDelayFunction(),t=this.callbackV,n=this.getDelay(),r=this.durationV??300,i={easingX:this.easingXV,easingY:this.easingYV,easingWidth:this.easingWidthV,easingHeight:this.easingHeightV};return function(){const o=function(o){return{initialValues:{originX:o.currentOriginX,originY:o.currentOriginY,width:o.currentWidth,height:o.currentHeight},animations:{originX:e(n,Io(o.targetOriginX,{duration:r,easing:i.easingX})),originY:e(n,Io(o.targetOriginY,{duration:r,easing:i.easingY})),width:e(n,Io(o.targetWidth,{duration:r,easing:i.easingWidth})),height:e(n,Io(o.targetHeight,{duration:r,easing:i.easingHeight}))},callback:t}};return o.__closure={delayFunction:e,delay:n,withTiming:Io,duration:r,easing:i,callback:t},o.__workletHash=0xe3fd7eb0e8f,o.__initData=kf,o}()}}const If={code:"function reactNativeReanimated_FadingTransitionJs1(values){const{delayFunction,delay,withSequence,withTiming,halfDuration,withDelay,callback}=this.__closure;return{initialValues:{opacity:1,originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight},animations:{opacity:delayFunction(delay,withSequence(withTiming(0,{duration:halfDuration}),withTiming(1,{duration:halfDuration}))),originX:withDelay(delay+halfDuration,withTiming(values.targetOriginX,{duration:0})),originY:withDelay(delay+halfDuration,withTiming(values.targetOriginY,{duration:0})),width:withDelay(delay+halfDuration,withTiming(values.targetWidth,{duration:0})),height:withDelay(delay+halfDuration,withTiming(values.targetHeight,{duration:0}))},callback:callback};}"};class Of extends jd{static presetName="FadingTransition";static createInstance(){return new Of}build=()=>{const e=this.getDelayFunction(),t=this.callbackV,n=this.getDelay(),r=(this.durationV??500)/2;return function(){const i=function(i){return{initialValues:{opacity:1,originX:i.currentOriginX,originY:i.currentOriginY,width:i.currentWidth,height:i.currentHeight},animations:{opacity:e(n,Rs(Io(0,{duration:r}),Io(1,{duration:r}))),originX:ks(n+r,Io(i.targetOriginX,{duration:0})),originY:ks(n+r,Io(i.targetOriginY,{duration:0})),width:ks(n+r,Io(i.targetWidth,{duration:0})),height:ks(n+r,Io(i.targetHeight,{duration:0}))},callback:t}};return i.__closure={delayFunction:e,delay:n,withSequence:Rs,withTiming:Io,halfDuration:r,withDelay:ks,callback:t},i.__workletHash=0xea5a1e6b1fa,i.__initData=If,i}()}}const Rf={code:"function reactNativeReanimated_FlipJs1(targetValues){const{initialValues,delayFunction,delay,animation,config,callback}=this.__closure;return{initialValues:{transform:[{perspective:500},{rotateX:'90deg'},{translateY:-targetValues.targetHeight}],...initialValues},animations:{transform:[{perspective:500},{rotateX:delayFunction(delay,animation('0deg',config))},{translateY:delayFunction(delay,animation(0,config))}]},callback:callback};}"};class Mf extends Bd{static presetName="FlipInXUp";static createInstance(){return new Mf}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{initialValues:Object.assign({transform:[{perspective:500},{rotateX:"90deg"},{translateY:-a.targetHeight}]},o),animations:{transform:[{perspective:500},{rotateX:e(r,t("0deg",n))},{translateY:e(r,t(0,n))}]},callback:i}};return a.__closure={initialValues:o,delayFunction:e,delay:r,animation:t,config:n,callback:i},a.__workletHash=1601311507553,a.__initData=Rf,a}()}}const Pf={code:"function reactNativeReanimated_FlipJs2(targetValues){const{initialValues,delayFunction,delay,animation,config,callback}=this.__closure;return{initialValues:{transform:[{perspective:500},{rotateY:'-90deg'},{translateX:-targetValues.targetWidth}],...initialValues},animations:{transform:[{perspective:delayFunction(delay,animation(500,config))},{rotateY:delayFunction(delay,animation('0deg',config))},{translateX:delayFunction(delay,animation(0,config))}]},callback:callback};}"};class Df extends Bd{static presetName="FlipInYLeft";static createInstance(){return new Df}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{initialValues:Object.assign({transform:[{perspective:500},{rotateY:"-90deg"},{translateX:-a.targetWidth}]},o),animations:{transform:[{perspective:e(r,t(500,n))},{rotateY:e(r,t("0deg",n))},{translateX:e(r,t(0,n))}]},callback:i}};return a.__closure={initialValues:o,delayFunction:e,delay:r,animation:t,config:n,callback:i},a.__workletHash=5889374379048,a.__initData=Pf,a}()}}const jf={code:"function reactNativeReanimated_FlipJs3(targetValues){const{initialValues,delayFunction,delay,animation,config,callback}=this.__closure;return{initialValues:{transform:[{perspective:500},{rotateX:'-90deg'},{translateY:targetValues.targetHeight}],...initialValues},animations:{transform:[{perspective:delayFunction(delay,animation(500,config))},{rotateX:delayFunction(delay,animation('0deg',config))},{translateY:delayFunction(delay,animation(0,config))}]},callback:callback};}"};class Bf extends Bd{static presetName="FlipInXDown";static createInstance(){return new Bf}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{initialValues:Object.assign({transform:[{perspective:500},{rotateX:"-90deg"},{translateY:a.targetHeight}]},o),animations:{transform:[{perspective:e(r,t(500,n))},{rotateX:e(r,t("0deg",n))},{translateY:e(r,t(0,n))}]},callback:i}};return a.__closure={initialValues:o,delayFunction:e,delay:r,animation:t,config:n,callback:i},a.__workletHash=0xf9e57a39cbd,a.__initData=jf,a}()}}const Lf={code:"function reactNativeReanimated_FlipJs4(targetValues){const{initialValues,delayFunction,delay,animation,config,callback}=this.__closure;return{initialValues:{transform:[{perspective:500},{rotateY:'90deg'},{translateX:targetValues.targetWidth}],...initialValues},animations:{transform:[{perspective:delayFunction(delay,animation(500,config))},{rotateY:delayFunction(delay,animation('0deg',config))},{translateX:delayFunction(delay,animation(0,config))}]},callback:callback};}"};class Ff extends Bd{static presetName="FlipInYRight";static createInstance(){return new Ff}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{initialValues:Object.assign({transform:[{perspective:500},{rotateY:"90deg"},{translateX:a.targetWidth}]},o),animations:{transform:[{perspective:e(r,t(500,n))},{rotateY:e(r,t("0deg",n))},{translateX:e(r,t(0,n))}]},callback:i}};return a.__closure={initialValues:o,delayFunction:e,delay:r,animation:t,config:n,callback:i},a.__workletHash=0xed138dd568e,a.__initData=Lf,a}()}}const Nf={code:"function reactNativeReanimated_FlipJs5(){const{initialValues,delayFunction,delay,animation,config,callback}=this.__closure;return{initialValues:{transform:[{perspective:500},{rotateX:'90deg'}],...initialValues},animations:{transform:[{perspective:delayFunction(delay,animation(500,config))},{rotateX:delayFunction(delay,animation('0deg',config))}]},callback:callback};}"};class _f extends Bd{static presetName="FlipInEasyX";static createInstance(){return new _f}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(){return{initialValues:Object.assign({transform:[{perspective:500},{rotateX:"90deg"}]},o),animations:{transform:[{perspective:e(r,t(500,n))},{rotateX:e(r,t("0deg",n))}]},callback:i}};return a.__closure={initialValues:o,delayFunction:e,delay:r,animation:t,config:n,callback:i},a.__workletHash=8344922058616,a.__initData=Nf,a}()}}const zf={code:"function reactNativeReanimated_FlipJs6(){const{initialValues,delayFunction,delay,animation,config,callback}=this.__closure;return{initialValues:{transform:[{perspective:500},{rotateY:'90deg'}],...initialValues},animations:{transform:[{perspective:delayFunction(delay,animation(500,config))},{rotateY:delayFunction(delay,animation('0deg',config))}]},callback:callback};}"};class Vf extends Bd{static presetName="FlipInEasyY";static createInstance(){return new Vf}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(){return{initialValues:Object.assign({transform:[{perspective:500},{rotateY:"90deg"}]},o),animations:{transform:[{perspective:e(r,t(500,n))},{rotateY:e(r,t("0deg",n))}]},callback:i}};return a.__closure={initialValues:o,delayFunction:e,delay:r,animation:t,config:n,callback:i},a.__workletHash=0xf293c74aefb,a.__initData=zf,a}()}}const Uf={code:"function reactNativeReanimated_FlipJs7(targetValues){const{initialValues,delayFunction,delay,animation,config,callback}=this.__closure;return{initialValues:{transform:[{perspective:500},{rotateX:'0deg'},{translateY:0}],...initialValues},animations:{transform:[{perspective:delayFunction(delay,animation(500,config))},{rotateX:delayFunction(delay,animation('90deg',config))},{translateY:delayFunction(delay,animation(-targetValues.currentHeight,config))}]},callback:callback};}"};class Hf extends Bd{static presetName="FlipOutXUp";static createInstance(){return new Hf}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{initialValues:Object.assign({transform:[{perspective:500},{rotateX:"0deg"},{translateY:0}]},o),animations:{transform:[{perspective:e(r,t(500,n))},{rotateX:e(r,t("90deg",n))},{translateY:e(r,t(-a.currentHeight,n))}]},callback:i}};return a.__closure={initialValues:o,delayFunction:e,delay:r,animation:t,config:n,callback:i},a.__workletHash=0xcaadcc45621,a.__initData=Uf,a}()}}const qf={code:"function reactNativeReanimated_FlipJs8(targetValues){const{initialValues,delayFunction,delay,animation,config,callback}=this.__closure;return{initialValues:{transform:[{perspective:500},{rotateY:'0deg'},{translateX:0}],...initialValues},animations:{transform:[{perspective:delayFunction(delay,animation(500,config))},{rotateY:delayFunction(delay,animation('-90deg',config))},{translateX:delayFunction(delay,animation(-targetValues.currentWidth,config))}]},callback:callback};}"};class Gf extends Bd{static presetName="FlipOutYLeft";static createInstance(){return new Gf}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{initialValues:Object.assign({transform:[{perspective:500},{rotateY:"0deg"},{translateX:0}]},o),animations:{transform:[{perspective:e(r,t(500,n))},{rotateY:e(r,t("-90deg",n))},{translateX:e(r,t(-a.currentWidth,n))}]},callback:i}};return a.__closure={initialValues:o,delayFunction:e,delay:r,animation:t,config:n,callback:i},a.__workletHash=0x9323a33cbda,a.__initData=qf,a}()}}const Yf={code:"function reactNativeReanimated_FlipJs9(targetValues){const{initialValues,delayFunction,delay,animation,config,callback}=this.__closure;return{initialValues:{transform:[{perspective:500},{rotateX:'0deg'},{translateY:0}],...initialValues},animations:{transform:[{perspective:delayFunction(delay,animation(500,config))},{rotateX:delayFunction(delay,animation('-90deg',config))},{translateY:delayFunction(delay,animation(targetValues.currentHeight,config))}]},callback:callback};}"};class Wf extends Bd{static presetName="FlipOutXDown";static createInstance(){return new Wf}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{initialValues:Object.assign({transform:[{perspective:500},{rotateX:"0deg"},{translateY:0}]},o),animations:{transform:[{perspective:e(r,t(500,n))},{rotateX:e(r,t("-90deg",n))},{translateY:e(r,t(a.currentHeight,n))}]},callback:i}};return a.__closure={initialValues:o,delayFunction:e,delay:r,animation:t,config:n,callback:i},a.__workletHash=0xf629aa1292f,a.__initData=Yf,a}()}}const Qf={code:"function reactNativeReanimated_FlipJs10(targetValues){const{initialValues,delayFunction,delay,animation,config,callback}=this.__closure;return{initialValues:{transform:[{perspective:500},{rotateY:'0deg'},{translateX:0}],...initialValues},animations:{transform:[{perspective:delayFunction(delay,animation(500,config))},{rotateY:delayFunction(delay,animation('90deg',config))},{translateX:delayFunction(delay,animation(targetValues.currentWidth,config))}]},callback:callback};}"};class Xf extends Bd{static presetName="FlipOutYRight";static createInstance(){return new Xf}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{initialValues:Object.assign({transform:[{perspective:500},{rotateY:"0deg"},{translateX:0}]},o),animations:{transform:[{perspective:e(r,t(500,n))},{rotateY:e(r,t("90deg",n))},{translateX:e(r,t(a.currentWidth,n))}]},callback:i}};return a.__closure={initialValues:o,delayFunction:e,delay:r,animation:t,config:n,callback:i},a.__workletHash=0xd3405ea1a23,a.__initData=Qf,a}()}}const Jf={code:"function reactNativeReanimated_FlipJs11(){const{initialValues,delayFunction,delay,animation,config,callback}=this.__closure;return{initialValues:{transform:[{perspective:500},{rotateX:'0deg'}],...initialValues},animations:{transform:[{perspective:delayFunction(delay,animation(500,config))},{rotateX:delayFunction(delay,animation('90deg',config))}]},callback:callback};}"};class Zf extends Bd{static presetName="FlipOutEasyX";static createInstance(){return new Zf}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(){return{initialValues:Object.assign({transform:[{perspective:500},{rotateX:"0deg"}]},o),animations:{transform:[{perspective:e(r,t(500,n))},{rotateX:e(r,t("90deg",n))}]},callback:i}};return a.__closure={initialValues:o,delayFunction:e,delay:r,animation:t,config:n,callback:i},a.__workletHash=8532415155949,a.__initData=Jf,a}()}}const Kf={code:"function reactNativeReanimated_FlipJs12(){const{initialValues,delayFunction,delay,animation,config,callback}=this.__closure;return{initialValues:{transform:[{perspective:500},{rotateY:'0deg'}],...initialValues},animations:{transform:[{perspective:delayFunction(delay,animation(500,config))},{rotateY:delayFunction(delay,animation('90deg',config))}]},callback:callback};}"};class $f extends Bd{static presetName="FlipOutEasyY";static createInstance(){return new $f}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(){return{initialValues:Object.assign({transform:[{perspective:500},{rotateY:"0deg"}]},o),animations:{transform:[{perspective:e(r,t(500,n))},{rotateY:e(r,t("90deg",n))}]},callback:i}};return a.__closure={initialValues:o,delayFunction:e,delay:r,animation:t,config:n,callback:i},a.__workletHash=4292891435118,a.__initData=Kf,a}()}}const ep={code:"function reactNativeReanimated_JumpingTransitionJs1(values){const{delayFunction,delay,withTiming,config,withSequence,halfDuration,Easing,callback}=this.__closure;const d=Math.max(Math.abs(values.targetOriginX-values.currentOriginX),Math.abs(values.targetOriginY-values.currentOriginY));return{initialValues:{originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight},animations:{originX:delayFunction(delay,withTiming(values.targetOriginX,config)),originY:delayFunction(delay,withSequence(withTiming(Math.min(values.targetOriginY,values.currentOriginY)-d,{duration:halfDuration,easing:Easing.out(Easing.exp)}),withTiming(values.targetOriginY,{...config,duration:halfDuration,easing:Easing.bounce}))),width:delayFunction(delay,withTiming(values.targetWidth,config)),height:delayFunction(delay,withTiming(values.targetHeight,config))},callback:callback};}"};class tp extends jd{static presetName="JumpingTransition";static createInstance(){return new tp}build=()=>{const e=this.getDelayFunction(),t=this.callbackV,n=this.getDelay(),r=this.durationV??300,i=r/2,o={duration:r};return function(){const r=function(r){const a=Math.max(Math.abs(r.targetOriginX-r.currentOriginX),Math.abs(r.targetOriginY-r.currentOriginY));return{initialValues:{originX:r.currentOriginX,originY:r.currentOriginY,width:r.currentWidth,height:r.currentHeight},animations:{originX:e(n,Io(r.targetOriginX,o)),originY:e(n,Rs(Io(Math.min(r.targetOriginY,r.currentOriginY)-a,{duration:i,easing:si.out(si.exp)}),Io(r.targetOriginY,Object.assign({},o,{duration:i,easing:si.bounce})))),width:e(n,Io(r.targetWidth,o)),height:e(n,Io(r.targetHeight,o))},callback:t}};return r.__closure={delayFunction:e,delay:n,withTiming:Io,config:o,withSequence:Rs,halfDuration:i,Easing:si,callback:t},r.__workletHash=0x984bebac63c,r.__initData=ep,r}()}}const np={code:"function reactNativeReanimated_LinearTransitionJs1(values){const{delayFunction,delay,animation,config,callback}=this.__closure;return{initialValues:{originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight},animations:{originX:delayFunction(delay,animation(values.targetOriginX,config)),originY:delayFunction(delay,animation(values.targetOriginY,config)),width:delayFunction(delay,animation(values.targetWidth,config)),height:delayFunction(delay,animation(values.targetHeight,config))},callback:callback};}"};class rp extends Bd{static presetName="LinearTransition";static createInstance(){return new rp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.callbackV,i=this.getDelay();return function(){const o=function(o){return{initialValues:{originX:o.currentOriginX,originY:o.currentOriginY,width:o.currentWidth,height:o.currentHeight},animations:{originX:e(i,t(o.targetOriginX,n)),originY:e(i,t(o.targetOriginY,n)),width:e(i,t(o.targetWidth,n)),height:e(i,t(o.targetHeight,n))},callback:r}};return o.__closure={delayFunction:e,delay:i,animation:t,config:n,callback:r},o.__workletHash=8121541185586,o.__initData=np,o}()}}const ip=rp,op={code:"function reactNativeReanimated_LightspeedJs1(values){const{delayFunction,delay,withTiming,duration,animation,config,withSequence,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,withTiming(1,{duration:duration})),transform:[{translateX:delayFunction(delay,animation(0,{...config,duration:duration*0.7}))},{skewX:delayFunction(delay,withSequence(withTiming('10deg',{duration:duration*0.7}),withTiming('-5deg',{duration:duration*0.15}),withTiming('0deg',{duration:duration*0.15})))}]},initialValues:{opacity:0,transform:[{translateX:values.windowWidth},{skewX:'-45deg'}],...initialValues},callback:callback};}"};class ap extends Bd{static presetName="LightSpeedInRight";static createInstance(){return new ap}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.getDuration(),o=this.callbackV,a=this.initialValues;return function(){const s=function(s){return{animations:{opacity:e(r,Io(1,{duration:i})),transform:[{translateX:e(r,t(0,Object.assign({},n,{duration:.7*i})))},{skewX:e(r,Rs(Io("10deg",{duration:.7*i}),Io("-5deg",{duration:.15*i}),Io("0deg",{duration:.15*i})))}]},initialValues:Object.assign({opacity:0,transform:[{translateX:s.windowWidth},{skewX:"-45deg"}]},a),callback:o}};return s.__closure={delayFunction:e,delay:r,withTiming:Io,duration:i,animation:t,config:n,withSequence:Rs,initialValues:a,callback:o},s.__workletHash=0xbd160ac351e,s.__initData=op,s}()}}const sp={code:"function reactNativeReanimated_LightspeedJs2(values){const{delayFunction,delay,withTiming,duration,animation,config,withSequence,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,withTiming(1,{duration:duration})),transform:[{translateX:delayFunction(delay,animation(0,{...config,duration:duration*0.7}))},{skewX:delayFunction(delay,withSequence(withTiming('-10deg',{duration:duration*0.7}),withTiming('5deg',{duration:duration*0.15}),withTiming('0deg',{duration:duration*0.15})))}]},initialValues:{opacity:0,transform:[{translateX:-values.windowWidth},{skewX:'45deg'}],...initialValues},callback:callback};}"};class lp extends Bd{static presetName="LightSpeedInLeft";static createInstance(){return new lp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.getDuration(),o=this.callbackV,a=this.initialValues;return function(){const s=function(s){return{animations:{opacity:e(r,Io(1,{duration:i})),transform:[{translateX:e(r,t(0,Object.assign({},n,{duration:.7*i})))},{skewX:e(r,Rs(Io("-10deg",{duration:.7*i}),Io("5deg",{duration:.15*i}),Io("0deg",{duration:.15*i})))}]},initialValues:Object.assign({opacity:0,transform:[{translateX:-s.windowWidth},{skewX:"45deg"}]},a),callback:o}};return s.__closure={delayFunction:e,delay:r,withTiming:Io,duration:i,animation:t,config:n,withSequence:Rs,initialValues:a,callback:o},s.__workletHash=0xb560dcf8c3d,s.__initData=sp,s}()}}const cp={code:"function reactNativeReanimated_LightspeedJs3(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{translateX:delayFunction(delay,animation(values.windowWidth,config))},{skewX:delayFunction(delay,animation('-45deg',config))}]},initialValues:{opacity:1,transform:[{translateX:0},{skewX:'0deg'}],...initialValues},callback:callback};}"};class up extends Bd{static presetName="LightSpeedOutRight";static createInstance(){return new up}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{opacity:e(r,t(0,n)),transform:[{translateX:e(r,t(a.windowWidth,n))},{skewX:e(r,t("-45deg",n))}]},initialValues:Object.assign({opacity:1,transform:[{translateX:0},{skewX:"0deg"}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=2150615836506,a.__initData=cp,a}()}}const hp={code:"function reactNativeReanimated_LightspeedJs4(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{translateX:delayFunction(delay,animation(-values.windowWidth,config))},{skewX:delayFunction(delay,animation('45deg',config))}]},initialValues:{opacity:1,transform:[{translateX:0},{skewX:'0deg'}],...initialValues},callback:callback};}"};class dp extends Bd{static presetName="LightSpeedOutLeft";static createInstance(){return new dp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{opacity:e(r,t(0,n)),transform:[{translateX:e(r,t(-a.windowWidth,n))},{skewX:e(r,t("45deg",n))}]},initialValues:Object.assign({opacity:1,transform:[{translateX:0},{skewX:"0deg"}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=2945630233341,a.__initData=hp,a}()}}const fp={code:"function reactNativeReanimated_PinwheelJs1(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config)),transform:[{scale:delayFunction(delay,animation(1,config))},{rotate:delayFunction(delay,animation('0rad',config))}]},initialValues:{opacity:0,transform:[{scale:0},{rotate:'5rad'}],...initialValues},callback:callback};}"};class pp extends Bd{static presetName="PinwheelIn";static createInstance(){return new pp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(){return{animations:{opacity:e(r,t(1,n)),transform:[{scale:e(r,t(1,n))},{rotate:e(r,t("0rad",n))}]},initialValues:Object.assign({opacity:0,transform:[{scale:0},{rotate:"5rad"}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=666965387913,a.__initData=fp,a}()}}const mp={code:"function reactNativeReanimated_PinwheelJs2(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{scale:delayFunction(delay,animation(0,config))},{rotate:delayFunction(delay,animation('5rad',config))}]},initialValues:{opacity:1,transform:[{scale:1},{rotate:'0rad'}],...initialValues},callback:callback};}"};class gp extends Bd{static presetName="PinwheelOut";static createInstance(){return new gp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(){return{animations:{opacity:e(r,t(0,n)),transform:[{scale:e(r,t(0,n))},{rotate:e(r,t("5rad",n))}]},initialValues:Object.assign({opacity:1,transform:[{scale:1},{rotate:"0rad"}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=8717185426154,a.__initData=mp,a}()}}const yp={code:"function reactNativeReanimated_RollJs1(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{translateX:delayFunction(delay,animation(0,config))},{rotate:delayFunction(delay,animation('0deg',config))}]},initialValues:{transform:[{translateX:-values.windowWidth},{rotate:'-180deg'}],...initialValues},callback:callback};}"};class vp extends Bd{static presetName="RollInLeft";static createInstance(){return new vp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{transform:[{translateX:e(r,t(0,n))},{rotate:e(r,t("0deg",n))}]},initialValues:Object.assign({transform:[{translateX:-a.windowWidth},{rotate:"-180deg"}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=1717494557174,a.__initData=yp,a}()}}const bp={code:"function reactNativeReanimated_RollJs2(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{translateX:delayFunction(delay,animation(0,config))},{rotate:delayFunction(delay,animation('0deg',config))}]},initialValues:{transform:[{translateX:values.windowWidth},{rotate:'180deg'}],...initialValues},callback:callback};}"};class Ap extends Bd{static presetName="RollInRight";static createInstance(){return new Ap}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{transform:[{translateX:e(r,t(0,n))},{rotate:e(r,t("0deg",n))}]},initialValues:Object.assign({transform:[{translateX:a.windowWidth},{rotate:"180deg"}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=6184507813205,a.__initData=bp,a}()}}const xp={code:"function reactNativeReanimated_RollJs3(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{translateX:delayFunction(delay,animation(-values.windowWidth,config))},{rotate:delayFunction(delay,animation('-180deg',config))}]},initialValues:{transform:[{translateX:0},{rotate:'0deg'}],...initialValues},callback:callback};}"};class wp extends Bd{static presetName="RollOutLeft";static createInstance(){return new wp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{transform:[{translateX:e(r,t(-a.windowWidth,n))},{rotate:e(r,t("-180deg",n))}]},initialValues:Object.assign({transform:[{translateX:0},{rotate:"0deg"}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=0xaf71eced274,a.__initData=xp,a}()}}const Cp={code:"function reactNativeReanimated_RollJs4(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{translateX:delayFunction(delay,animation(values.windowWidth,config))},{rotate:delayFunction(delay,animation('180deg',config))}]},initialValues:{transform:[{translateX:0},{rotate:'0deg'}],...initialValues},callback:callback};}"};class Sp extends Bd{static presetName="RollOutRight";static createInstance(){return new Sp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{transform:[{translateX:e(r,t(a.windowWidth,n))},{rotate:e(r,t("180deg",n))}]},initialValues:Object.assign({transform:[{translateX:0},{rotate:"0deg"}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=4328194112115,a.__initData=Cp,a}()}}const Ep={code:"function reactNativeReanimated_RotateJs1(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config)),transform:[{rotate:delayFunction(delay,animation('0deg',config))},{translateX:delayFunction(delay,animation(0,config))},{translateY:delayFunction(delay,animation(0,config))}]},initialValues:{opacity:0,transform:[{rotate:'-90deg'},{translateX:values.targetWidth/2-values.targetHeight/2},{translateY:-(values.targetWidth/2-values.targetHeight/2)}],...initialValues},callback:callback};}"};class kp extends Bd{static presetName="RotateInDownLeft";static createInstance(){return new kp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{opacity:e(r,t(1,n)),transform:[{rotate:e(r,t("0deg",n))},{translateX:e(r,t(0,n))},{translateY:e(r,t(0,n))}]},initialValues:Object.assign({opacity:0,transform:[{rotate:"-90deg"},{translateX:a.targetWidth/2-a.targetHeight/2},{translateY:-(a.targetWidth/2-a.targetHeight/2)}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=5352377200590,a.__initData=Ep,a}()}}const Tp={code:"function reactNativeReanimated_RotateJs2(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config)),transform:[{rotate:delayFunction(delay,animation('0deg',config))},{translateX:delayFunction(delay,animation(0,config))},{translateY:delayFunction(delay,animation(0,config))}]},initialValues:{opacity:0,transform:[{rotate:'90deg'},{translateX:-(values.targetWidth/2-values.targetHeight/2)},{translateY:-(values.targetWidth/2-values.targetHeight/2)}],...initialValues},callback:callback};}"};class Ip extends Bd{static presetName="RotateInDownRight";static createInstance(){return new Ip}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{opacity:e(r,t(1,n)),transform:[{rotate:e(r,t("0deg",n))},{translateX:e(r,t(0,n))},{translateY:e(r,t(0,n))}]},initialValues:Object.assign({opacity:0,transform:[{rotate:"90deg"},{translateX:-(a.targetWidth/2-a.targetHeight/2)},{translateY:-(a.targetWidth/2-a.targetHeight/2)}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=9042789026668,a.__initData=Tp,a}()}}const Op={code:"function reactNativeReanimated_RotateJs3(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config)),transform:[{rotate:delayFunction(delay,animation('0deg',config))},{translateX:delayFunction(delay,animation(0,config))},{translateY:delayFunction(delay,animation(0,config))}]},initialValues:{opacity:0,transform:[{rotate:'90deg'},{translateX:values.targetWidth/2-values.targetHeight/2},{translateY:values.targetWidth/2-values.targetHeight/2}],...initialValues},callback:callback};}"};class Rp extends Bd{static presetName="RotateInUpLeft";static createInstance(){return new Rp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{opacity:e(r,t(1,n)),transform:[{rotate:e(r,t("0deg",n))},{translateX:e(r,t(0,n))},{translateY:e(r,t(0,n))}]},initialValues:Object.assign({opacity:0,transform:[{rotate:"90deg"},{translateX:a.targetWidth/2-a.targetHeight/2},{translateY:a.targetWidth/2-a.targetHeight/2}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=6099232345325,a.__initData=Op,a}()}}const Mp={code:"function reactNativeReanimated_RotateJs4(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config)),transform:[{rotate:delayFunction(delay,animation('0deg',config))},{translateX:delayFunction(delay,animation(0,config))},{translateY:delayFunction(delay,animation(0,config))}]},initialValues:{opacity:0,transform:[{rotate:'-90deg'},{translateX:-(values.targetWidth/2-values.targetHeight/2)},{translateY:values.targetWidth/2-values.targetHeight/2}],...initialValues},callback:callback};}"};class Pp extends Bd{static presetName="RotateInUpRight";static createInstance(){return new Pp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{opacity:e(r,t(1,n)),transform:[{rotate:e(r,t("0deg",n))},{translateX:e(r,t(0,n))},{translateY:e(r,t(0,n))}]},initialValues:Object.assign({opacity:0,transform:[{rotate:"-90deg"},{translateX:-(a.targetWidth/2-a.targetHeight/2)},{translateY:a.targetWidth/2-a.targetHeight/2}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=0xded5f28964b,a.__initData=Mp,a}()}}const Dp={code:"function reactNativeReanimated_RotateJs5(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{rotate:delayFunction(delay,animation('90deg',config))},{translateX:delayFunction(delay,animation(values.currentWidth/2-values.currentHeight/2,config))},{translateY:delayFunction(delay,animation(values.currentWidth/2-values.currentHeight/2,config))}]},initialValues:{opacity:1,transform:[{rotate:'0deg'},{translateX:0},{translateY:0}],...initialValues},callback:callback};}"};class jp extends Bd{static presetName="RotateOutDownLeft";static createInstance(){return new jp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{opacity:e(r,t(0,n)),transform:[{rotate:e(r,t("90deg",n))},{translateX:e(r,t(a.currentWidth/2-a.currentHeight/2,n))},{translateY:e(r,t(a.currentWidth/2-a.currentHeight/2,n))}]},initialValues:Object.assign({opacity:1,transform:[{rotate:"0deg"},{translateX:0},{translateY:0}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=3165232963211,a.__initData=Dp,a}()}}const Bp={code:"function reactNativeReanimated_RotateJs6(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{rotate:delayFunction(delay,animation('-90deg',config))},{translateX:delayFunction(delay,animation(-(values.currentWidth/2-values.currentHeight/2),config))},{translateY:delayFunction(delay,animation(values.currentWidth/2-values.currentHeight/2,config))}]},initialValues:{opacity:1,transform:[{rotate:'0deg'},{translateX:0},{translateY:0}],...initialValues},callback:callback};}"};class Lp extends Bd{static presetName="RotateOutDownRight";static createInstance(){return new Lp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{opacity:e(r,t(0,n)),transform:[{rotate:e(r,t("-90deg",n))},{translateX:e(r,t(-(a.currentWidth/2-a.currentHeight/2),n))},{translateY:e(r,t(a.currentWidth/2-a.currentHeight/2,n))}]},initialValues:Object.assign({opacity:1,transform:[{rotate:"0deg"},{translateX:0},{translateY:0}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=6587003180297,a.__initData=Bp,a}()}}const Fp={code:"function reactNativeReanimated_RotateJs7(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{rotate:delayFunction(delay,animation('-90deg',config))},{translateX:delayFunction(delay,animation(values.currentWidth/2-values.currentHeight/2,config))},{translateY:delayFunction(delay,animation(-(values.currentWidth/2-values.currentHeight/2),config))}]},initialValues:{opacity:1,transform:[{rotate:'0deg'},{translateX:0},{translateY:0}],...initialValues},callback:callback};}"};class Np extends Bd{static presetName="RotateOutUpLeft";static createInstance(){return new Np}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{opacity:e(r,t(0,n)),transform:[{rotate:e(r,t("-90deg",n))},{translateX:e(r,t(a.currentWidth/2-a.currentHeight/2,n))},{translateY:e(r,t(-(a.currentWidth/2-a.currentHeight/2),n))}]},initialValues:Object.assign({opacity:1,transform:[{rotate:"0deg"},{translateX:0},{translateY:0}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=9228134651400,a.__initData=Fp,a}()}}const _p={code:"function reactNativeReanimated_RotateJs8(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{rotate:delayFunction(delay,animation('90deg',config))},{translateX:delayFunction(delay,animation(-(values.currentWidth/2-values.currentHeight/2),config))},{translateY:delayFunction(delay,animation(-(values.currentWidth/2-values.currentHeight/2),config))}]},initialValues:{opacity:1,transform:[{rotate:'0deg'},{translateX:0},{translateY:0}],...initialValues},callback:callback};}"};class zp extends Bd{static presetName="RotateOutUpRight";static createInstance(){return new zp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{opacity:e(r,t(0,n)),transform:[{rotate:e(r,t("90deg",n))},{translateX:e(r,t(-(a.currentWidth/2-a.currentHeight/2),n))},{translateY:e(r,t(-(a.currentWidth/2-a.currentHeight/2),n))}]},initialValues:Object.assign({opacity:1,transform:[{rotate:"0deg"},{translateX:0},{translateY:0}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=7154390421766,a.__initData=_p,a}()}}const Vp={code:"function reactNativeReanimated_SequencedTransitionJs1(values){const{delayFunction,delay,withSequence,withTiming,reverse,config,callback}=this.__closure;return{initialValues:{originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight},animations:{originX:delayFunction(delay,withSequence(withTiming(reverse?values.currentOriginX:values.targetOriginX,config),withTiming(values.targetOriginX,config))),originY:delayFunction(delay,withSequence(withTiming(reverse?values.targetOriginY:values.currentOriginY,config),withTiming(values.targetOriginY,config))),width:delayFunction(delay,withSequence(withTiming(reverse?values.currentWidth:values.targetWidth,config),withTiming(values.targetWidth,config))),height:delayFunction(delay,withSequence(withTiming(reverse?values.targetHeight:values.currentHeight,config),withTiming(values.targetHeight,config)))},callback:callback};}"};class Up extends jd{static presetName="SequencedTransition";reversed=!1;static createInstance(){return new Up}static reverse(){return Up.createInstance().reverse()}reverse(){return this.reversed=!this.reversed,this}build=()=>{const e=this.getDelayFunction(),t=this.callbackV,n=this.getDelay(),r={duration:(this.durationV??500)/2},i=this.reversed;return function(){const o=function(o){return{initialValues:{originX:o.currentOriginX,originY:o.currentOriginY,width:o.currentWidth,height:o.currentHeight},animations:{originX:e(n,Rs(Io(i?o.currentOriginX:o.targetOriginX,r),Io(o.targetOriginX,r))),originY:e(n,Rs(Io(i?o.targetOriginY:o.currentOriginY,r),Io(o.targetOriginY,r))),width:e(n,Rs(Io(i?o.currentWidth:o.targetWidth,r),Io(o.targetWidth,r))),height:e(n,Rs(Io(i?o.targetHeight:o.currentHeight,r),Io(o.targetHeight,r)))},callback:t}};return o.__closure={delayFunction:e,delay:n,withSequence:Rs,withTiming:Io,reverse:i,config:r,callback:t},o.__workletHash=0xc84270322ed,o.__initData=Vp,o}()}}const Hp={code:"function reactNativeReanimated_SlideJs1(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{originX:delayFunction(delay,animation(values.targetOriginX,config))},initialValues:{originX:values.targetOriginX+values.windowWidth,...initialValues},callback:callback};}"};class qp extends Bd{static presetName="SlideInRight";static createInstance(){return new qp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{originX:e(r,t(a.targetOriginX,n))},initialValues:Object.assign({originX:a.targetOriginX+a.windowWidth},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=2105442335056,a.__initData=Hp,a}()}}const Gp={code:"function reactNativeReanimated_SlideJs2(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{originX:delayFunction(delay,animation(values.targetOriginX,config))},initialValues:{originX:values.targetOriginX-values.windowWidth,...initialValues},callback:callback};}"};class Yp extends Bd{static presetName="SlideInLeft";static createInstance(){return new Yp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{originX:e(r,t(a.targetOriginX,n))},initialValues:Object.assign({originX:a.targetOriginX-a.windowWidth},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=525408064277,a.__initData=Gp,a}()}}const Wp={code:"function reactNativeReanimated_SlideJs3(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{originX:delayFunction(delay,animation(Math.max(values.currentOriginX+values.windowWidth,values.windowWidth),config))},initialValues:{originX:values.currentOriginX,...initialValues},callback:callback};}"};class Qp extends Bd{static presetName="SlideOutRight";static createInstance(){return new Qp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{originX:e(r,t(Math.max(a.currentOriginX+a.windowWidth,a.windowWidth),n))},initialValues:Object.assign({originX:a.currentOriginX},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=0xe5be8ca40e9,a.__initData=Wp,a}()}}const Xp={code:"function reactNativeReanimated_SlideJs4(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{originX:delayFunction(delay,animation(Math.min(values.currentOriginX-values.windowWidth,-values.windowWidth),config))},initialValues:{originX:values.currentOriginX,...initialValues},callback:callback};}"};class Jp extends Bd{static presetName="SlideOutLeft";static createInstance(){return new Jp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{originX:e(r,t(Math.min(a.currentOriginX-a.windowWidth,-a.windowWidth),n))},initialValues:Object.assign({originX:a.currentOriginX},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=5193954722779,a.__initData=Xp,a}()}}const Zp={code:"function reactNativeReanimated_SlideJs5(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{originY:delayFunction(delay,animation(values.targetOriginY,config))},initialValues:{originY:-values.windowHeight,...initialValues},callback:callback};}"};class Kp extends Bd{static presetName="SlideInUp";static createInstance(){return new Kp}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{originY:e(r,t(a.targetOriginY,n))},initialValues:Object.assign({originY:-a.windowHeight},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=0x9a5db09d241,a.__initData=Zp,a}()}}const $p={code:"function reactNativeReanimated_SlideJs6(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{originY:delayFunction(delay,animation(values.targetOriginY,config))},initialValues:{originY:values.targetOriginY+values.windowHeight,...initialValues},callback:callback};}"};class em extends Bd{static presetName="SlideInDown";static createInstance(){return new em}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{originY:e(r,t(a.targetOriginY,n))},initialValues:Object.assign({originY:a.targetOriginY+a.windowHeight},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=0xcb198fef48e,a.__initData=$p,a}()}}const tm={code:"function reactNativeReanimated_SlideJs7(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{originY:delayFunction(delay,animation(Math.min(values.currentOriginY-values.windowHeight,-values.windowHeight),config))},initialValues:{originY:values.currentOriginY,...initialValues},callback:callback};}"};class nm extends Bd{static presetName="SlideOutUp";static createInstance(){return new nm}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{originY:e(r,t(Math.min(a.currentOriginY-a.windowHeight,-a.windowHeight),n))},initialValues:Object.assign({originY:a.currentOriginY},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=0xab0e66d4df8,a.__initData=tm,a}()}}const rm={code:"function reactNativeReanimated_SlideJs8(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{originY:delayFunction(delay,animation(Math.max(values.currentOriginY+values.windowHeight,values.windowHeight),config))},initialValues:{originY:values.currentOriginY,...initialValues},callback:callback};}"};class im extends Bd{static presetName="SlideOutDown";static createInstance(){return new im}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{originY:e(r,t(Math.max(a.currentOriginY+a.windowHeight,a.windowHeight),n))},initialValues:Object.assign({originY:a.currentOriginY},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=561109535554,a.__initData=rm,a}()}}const om={code:"function reactNativeReanimated_StretchJs1(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{scaleX:delayFunction(delay,animation(1,config))}]},initialValues:{transform:[{scaleX:0}],...initialValues},callback:callback};}"};class am extends Bd{static presetName="StretchInX";static createInstance(){return new am}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(){return{animations:{transform:[{scaleX:e(r,t(1,n))}]},initialValues:Object.assign({transform:[{scaleX:0}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=0xbe0581be7e6,a.__initData=om,a}()}}const sm={code:"function reactNativeReanimated_StretchJs2(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{scaleY:delayFunction(delay,animation(1,config))}]},initialValues:{transform:[{scaleY:0}],...initialValues},callback:callback};}"};class lm extends Bd{static presetName="StretchInY";static createInstance(){return new lm}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(){return{animations:{transform:[{scaleY:e(r,t(1,n))}]},initialValues:Object.assign({transform:[{scaleY:0}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=1979717714597,a.__initData=sm,a}()}}const cm={code:"function reactNativeReanimated_StretchJs3(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{scaleX:delayFunction(delay,animation(0,config))}]},initialValues:{transform:[{scaleX:1}],...initialValues},callback:callback};}"};class um extends Bd{static presetName="StretchOutX";static createInstance(){return new um}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(){return{animations:{transform:[{scaleX:e(r,t(0,n))}]},initialValues:Object.assign({transform:[{scaleX:1}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=0xb46c85b0a24,a.__initData=cm,a}()}}const hm={code:"function reactNativeReanimated_StretchJs4(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{scaleY:delayFunction(delay,animation(0,config))}]},initialValues:{transform:[{scaleY:1}],...initialValues},callback:callback};}"};class dm extends Bd{static presetName="StretchOutY";static createInstance(){return new dm}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(){return{animations:{transform:[{scaleY:e(r,t(0,n))}]},initialValues:Object.assign({transform:[{scaleY:1}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=2583716022883,a.__initData=hm,a}()}}const fm={code:"function reactNativeReanimated_ZoomJs1(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{scale:delayFunction(delay,animation(1,config))}]},initialValues:{transform:[{scale:0}],...initialValues},callback:callback};}"};class pm extends Bd{static presetName="ZoomIn";static createInstance(){return new pm}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(){return{animations:{transform:[{scale:e(r,t(1,n))}]},initialValues:Object.assign({transform:[{scale:0}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=0xbd48626253e,a.__initData=fm,a}()}}const mm={code:'function reactNativeReanimated_ZoomJs2(){const{delayFunction,delay,animation,config,rotate,initialValues,callback}=this.__closure;return{animations:{transform:[{scale:delayFunction(delay,animation(1,config))},{rotate:delayFunction(delay,animation(0,config))}]},initialValues:{transform:[{scale:0},{rotate:rotate+"rad"}],...initialValues},callback:callback};}'};class gm extends Bd{static presetName="ZoomInRotate";static createInstance(){return new gm}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.rotateV?this.rotateV:"0.3",o=this.callbackV,a=this.initialValues;return function(){const s=function(){return{animations:{transform:[{scale:e(r,t(1,n))},{rotate:e(r,t(0,n))}]},initialValues:Object.assign({transform:[{scale:0},{rotate:`${i}rad`}]},a),callback:o}};return s.__closure={delayFunction:e,delay:r,animation:t,config:n,rotate:i,initialValues:a,callback:o},s.__workletHash=9775775576323,s.__initData=mm,s}()}}const ym={code:"function reactNativeReanimated_ZoomJs3(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{translateX:delayFunction(delay,animation(0,config))},{scale:delayFunction(delay,animation(1,config))}]},initialValues:{transform:[{translateX:-values.windowWidth},{scale:0}],...initialValues},callback:callback};}"};class vm extends Bd{static presetName="ZoomInLeft";static createInstance(){return new vm}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{transform:[{translateX:e(r,t(0,n))},{scale:e(r,t(1,n))}]},initialValues:Object.assign({transform:[{translateX:-a.windowWidth},{scale:0}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=7924057890523,a.__initData=ym,a}()}}const bm={code:"function reactNativeReanimated_ZoomJs4(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{translateX:delayFunction(delay,animation(0,config))},{scale:delayFunction(delay,animation(1,config))}]},initialValues:{transform:[{translateX:values.windowWidth},{scale:0}],...initialValues},callback:callback};}"};class Am extends Bd{static presetName="ZoomInRight";static createInstance(){return new Am}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{transform:[{translateX:e(r,t(0,n))},{scale:e(r,t(1,n))}]},initialValues:Object.assign({transform:[{translateX:a.windowWidth},{scale:0}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=0xbb227297a31,a.__initData=bm,a}()}}const xm={code:"function reactNativeReanimated_ZoomJs5(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{translateY:delayFunction(delay,animation(0,config))},{scale:delayFunction(delay,animation(1,config))}]},initialValues:{transform:[{translateY:-values.windowHeight},{scale:0}],...initialValues},callback:callback};}"};class wm extends Bd{static presetName="ZoomInUp";static createInstance(){return new wm}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{transform:[{translateY:e(r,t(0,n))},{scale:e(r,t(1,n))}]},initialValues:Object.assign({transform:[{translateY:-a.windowHeight},{scale:0}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=0xef0d90d7384,a.__initData=xm,a}()}}const Cm={code:"function reactNativeReanimated_ZoomJs6(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{translateY:delayFunction(delay,animation(0,config))},{scale:delayFunction(delay,animation(1,config))}]},initialValues:{transform:[{translateY:values.windowHeight},{scale:0}],...initialValues},callback:callback};}"};class Sm extends Bd{static presetName="ZoomInDown";static createInstance(){return new Sm}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{transform:[{translateY:e(r,t(0,n))},{scale:e(r,t(1,n))}]},initialValues:Object.assign({transform:[{translateY:a.windowHeight},{scale:0}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=0xa096f31e38a,a.__initData=Cm,a}()}}const Em={code:"function reactNativeReanimated_ZoomJs7(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{translateY:delayFunction(delay,animation(0,config))},{scale:delayFunction(delay,animation(1,config))}]},initialValues:{transform:[{translateY:-values.targetHeight},{scale:0}],...initialValues},callback:callback};}"};class km extends Bd{static presetName="ZoomInEasyUp";static createInstance(){return new km}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{transform:[{translateY:e(r,t(0,n))},{scale:e(r,t(1,n))}]},initialValues:Object.assign({transform:[{translateY:-a.targetHeight},{scale:0}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=5737861637979,a.__initData=Em,a}()}}const Tm={code:"function reactNativeReanimated_ZoomJs8(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{translateY:delayFunction(delay,animation(0,config))},{scale:delayFunction(delay,animation(1,config))}]},initialValues:{transform:[{translateY:values.targetHeight},{scale:0}],...initialValues},callback:callback};}"};class Im extends Bd{static presetName="ZoomInEasyDown";static createInstance(){return new Im}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{transform:[{translateY:e(r,t(0,n))},{scale:e(r,t(1,n))}]},initialValues:Object.assign({transform:[{translateY:a.targetHeight},{scale:0}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=0xc0ffb562439,a.__initData=Tm,a}()}}const Om={code:"function reactNativeReanimated_ZoomJs9(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{scale:delayFunction(delay,animation(0,config))}]},initialValues:{transform:[{scale:1}],...initialValues},callback:callback};}"};class Rm extends Bd{static presetName="ZoomOut";static createInstance(){return new Rm}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(){return{animations:{transform:[{scale:e(r,t(0,n))}]},initialValues:Object.assign({transform:[{scale:1}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=1159099652758,a.__initData=Om,a}()}}const Mm={code:"function reactNativeReanimated_ZoomJs10(){const{delayFunction,delay,animation,config,rotate,initialValues,callback}=this.__closure;return{animations:{transform:[{scale:delayFunction(delay,animation(0,config))},{rotate:delayFunction(delay,animation(rotate,config))}]},initialValues:{transform:[{scale:1},{rotate:'0rad'}],...initialValues},callback:callback};}"};class Pm extends Bd{static presetName="ZoomOutRotate";static createInstance(){return new Pm}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.rotateV?this.rotateV:"0.3",o=this.callbackV,a=this.initialValues;return function(){const s=function(){return{animations:{transform:[{scale:e(r,t(0,n))},{rotate:e(r,t(i,n))}]},initialValues:Object.assign({transform:[{scale:1},{rotate:"0rad"}]},a),callback:o}};return s.__closure={delayFunction:e,delay:r,animation:t,config:n,rotate:i,initialValues:a,callback:o},s.__workletHash=9183648630459,s.__initData=Mm,s}()}}const Dm={code:"function reactNativeReanimated_ZoomJs11(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{translateX:delayFunction(delay,animation(-values.windowWidth,config))},{scale:delayFunction(delay,animation(0,config))}]},initialValues:{transform:[{translateX:0},{scale:1}],...initialValues},callback:callback};}"};class jm extends Bd{static presetName="ZoomOutLeft";static createInstance(){return new jm}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{transform:[{translateX:e(r,t(-a.windowWidth,n))},{scale:e(r,t(0,n))}]},initialValues:Object.assign({transform:[{translateX:0},{scale:1}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=1850484736744,a.__initData=Dm,a}()}}const Bm={code:"function reactNativeReanimated_ZoomJs12(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{translateX:delayFunction(delay,animation(values.windowWidth,config))},{scale:delayFunction(delay,animation(0,config))}]},initialValues:{transform:[{translateX:0},{scale:1}],...initialValues},callback:callback};}"};class Lm extends Bd{static presetName="ZoomOutRight";static createInstance(){return new Lm}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{transform:[{translateX:e(r,t(a.windowWidth,n))},{scale:e(r,t(0,n))}]},initialValues:Object.assign({transform:[{translateX:0},{scale:1}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=5269717396294,a.__initData=Bm,a}()}}const Fm={code:"function reactNativeReanimated_ZoomJs13(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{translateY:delayFunction(delay,animation(-values.windowHeight,config))},{scale:delayFunction(delay,animation(0,config))}]},initialValues:{transform:[{translateY:0},{scale:1}],...initialValues},callback:callback};}"};class Nm extends Bd{static presetName="ZoomOutUp";static createInstance(){return new Nm}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{transform:[{translateY:e(r,t(-a.windowHeight,n))},{scale:e(r,t(0,n))}]},initialValues:Object.assign({transform:[{translateY:0},{scale:1}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=8329813472947,a.__initData=Fm,a}()}}const _m={code:"function reactNativeReanimated_ZoomJs14(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{translateY:delayFunction(delay,animation(values.windowHeight,config))},{scale:delayFunction(delay,animation(0,config))}]},initialValues:{transform:[{translateY:0},{scale:1}],...initialValues},callback:callback};}"};class zm extends Bd{static presetName="ZoomOutDown";static createInstance(){return new zm}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{transform:[{translateY:e(r,t(a.windowHeight,n))},{scale:e(r,t(0,n))}]},initialValues:Object.assign({transform:[{translateY:0},{scale:1}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=0xc70efe19f19,a.__initData=_m,a}()}}const Vm={code:"function reactNativeReanimated_ZoomJs15(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{translateY:delayFunction(delay,animation(-values.currentHeight,config))},{scale:delayFunction(delay,animation(0,config))}]},initialValues:{transform:[{translateY:0},{scale:1}],...initialValues},callback:callback};}"};class Um extends Bd{static presetName="ZoomOutEasyUp";static createInstance(){return new Um}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{transform:[{translateY:e(r,t(-a.currentHeight,n))},{scale:e(r,t(0,n))}]},initialValues:Object.assign({transform:[{translateY:0},{scale:1}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=0xb948da35570,a.__initData=Vm,a}()}}const Hm={code:"function reactNativeReanimated_ZoomJs16(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{translateY:delayFunction(delay,animation(values.currentHeight,config))},{scale:delayFunction(delay,animation(0,config))}]},initialValues:{transform:[{translateY:0},{scale:1}],...initialValues},callback:callback};}"};class qm extends Bd{static presetName="ZoomOutEasyDown";static createInstance(){return new qm}build=()=>{const e=this.getDelayFunction(),[t,n]=this.getAnimationAndConfig(),r=this.getDelay(),i=this.callbackV,o=this.initialValues;return function(){const a=function(a){return{animations:{transform:[{translateY:e(r,t(a.currentHeight,n))},{scale:e(r,t(0,n))}]},initialValues:Object.assign({transform:[{translateY:0},{scale:1}]},o),callback:i}};return a.__closure={delayFunction:e,delay:r,animation:t,config:n,initialValues:o,callback:i},a.__workletHash=8014137760958,a.__initData=Hm,a}()}}function Gm(){X.warn("dispatchCommand() is not supported on web.")}function Ym(e){const t=e();if(-1===t)return X.warn(`The view with tag ${t} is not a valid argument for measure(). This may be because the view is not currently rendered, which may not be a bug (e.g. an off-screen FlatList item).`),null;const n=t.getBoundingClientRect();return{width:t.offsetWidth,height:t.offsetHeight,x:t.offsetLeft,y:t.offsetTop,pageX:n.left,pageY:n.top}}const Wm={code:"function getRelativeCoords_reactNativeReanimated_getRelativeCoordsJs1(animatedRef,absoluteX,absoluteY){const{measure}=this.__closure;const parentCoords=measure(animatedRef);if(parentCoords===null){return null;}return{x:absoluteX-parentCoords.pageX,y:absoluteY-parentCoords.pageY};}"},Qm=function(){const e=function(e,t,n){const r=Ym(e);return null===r?null:{x:t-r.pageX,y:n-r.pageY}};return e.__closure={measure:Ym},e.__workletHash=5752716742403,e.__initData=Wm,e}();function Xm(e,t,n,r){const i=e();if(-1===i)return void X.warn("Called scrollTo() with an uninitialized ref. Make sure to pass the animated ref to the scrollable component before calling scrollTo().");const o=i;o?.scrollTo({x:t,y:n,animated:r})}function Jm(){X.warn("setGestureState() is not available on web.")}function Zm(e,t){const n=e();ua(t,n)}function Km(){return"It looks like you might be using shared value's .value inside reanimated inline style. If you want a component to update when shared value changes you should use the shared value directly instead of its current state represented by `.value`. See documentation here: https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary/#animations-in-inline-styling"}function $m(e,t){const n={};return t?.forEach((e=>{n[e]=!0})),ea(n),e}const eg=m(),tg={code:"function createViewDescriptorPaper_reactNativeReanimated_styleUpdaterJs1(screenId){return{tag:screenId,name:'RCTView'};}"},ng=function(){const e=function(e){return{tag:e,name:"RCTView"}};return e.__closure={},e.__workletHash=0xd4d7f9ac17c,e.__initData=tg,e}(),rg={code:"function createViewDescriptorFabric_reactNativeReanimated_styleUpdaterJs2(screenId){return{shadowNodeWrapper:screenId};}"},ig=function(){const e=function(e){return{shadowNodeWrapper:e}};return e.__closure={},e.__workletHash=0xc44a6d8360a,e.__initData=rg,e}(),og=eg?ig:ng,ag={code:"function applyStyleForTopScreen_reactNativeReanimated_styleUpdaterJs3(screenTransitionConfig,event){const{createViewDescriptor,updateProps}=this.__closure;const{screenDimensions:screenDimensions,topScreenId:topScreenId,screenTransition:screenTransition}=screenTransitionConfig;const{topScreenStyle:computeTopScreenStyle}=screenTransition;const topScreenStyle=computeTopScreenStyle(event,screenDimensions);const topScreenDescriptor={value:[createViewDescriptor(topScreenId)]};updateProps(topScreenDescriptor,topScreenStyle,undefined);}"},sg=function(){const e=function(e,t){const{screenDimensions:n,topScreenId:r,screenTransition:i}=e,{topScreenStyle:o}=i,a=o(t,n),s={value:[og(r)]};bl(s,a,void 0)};return e.__closure={createViewDescriptor:og,updateProps:bl},e.__workletHash=0xe08e852d7fc,e.__initData=ag,e}(),lg={code:"function applyStyleForBelowTopScreen_reactNativeReanimated_styleUpdaterJs4(screenTransitionConfig,event){const{createViewDescriptor,updateProps}=this.__closure;const{screenDimensions:screenDimensions,belowTopScreenId:belowTopScreenId,screenTransition:screenTransition}=screenTransitionConfig;const{belowTopScreenStyle:computeBelowTopScreenStyle}=screenTransition;const belowTopScreenStyle=computeBelowTopScreenStyle(event,screenDimensions);const belowTopScreenDescriptor={value:[createViewDescriptor(belowTopScreenId)]};updateProps(belowTopScreenDescriptor,belowTopScreenStyle,undefined);}"},cg=function(){const e=function(e,t){const{screenDimensions:n,belowTopScreenId:r,screenTransition:i}=e,{belowTopScreenStyle:o}=i,a=o(t,n),s={value:[og(r)]};bl(s,a,void 0)};return e.__closure={createViewDescriptor:og,updateProps:bl},e.__workletHash=2747176653608,e.__initData=lg,e}(),ug={code:"function applyStyle_reactNativeReanimated_styleUpdaterJs5(screenTransitionConfig,event){const{applyStyleForTopScreen,applyStyleForBelowTopScreen}=this.__closure;applyStyleForTopScreen(screenTransitionConfig,event);applyStyleForBelowTopScreen(screenTransitionConfig,event);}"},hg=function(){const e=function(e,t){sg(e,t),cg(e,t)};return e.__closure={applyStyleForTopScreen:sg,applyStyleForBelowTopScreen:cg},e.__workletHash=7793038430696,e.__initData=ug,e}(),dg={code:"function reactNativeReanimated_RNScreensTurboModuleJs1(){const{logger,defaultReturnValue}=this.__closure;logger.warn('RNScreensTurboModule has not been found. Check that you have installed `react-native-screens@3.30.0` or newer in your project and rebuilt your app.');return defaultReturnValue;}"};function fg(e){return function(){const t=function(){return X.warn("RNScreensTurboModule has not been found. Check that you have installed `react-native-screens@3.30.0` or newer in your project and rebuilt your app."),e};return t.__closure={logger:X,defaultReturnValue:e},t.__workletHash=0xf6fca5659c1,t.__initData=dg,t}()}const pg=n.g.RNScreensTurboModule||{startTransition:fg({topScreenId:-1,belowTopScreenId:-1,canStartTransition:!1}),updateTransition:fg(),finishTransition:fg()},mg=400,gg={code:"function computeEasingProgress_reactNativeReanimated_swipeSimulatorJs1(startingTimestamp,distance,velocity){if(Math.abs(distance)<1){return 1;}const elapsedTime=(_getAnimationTimestamp()-startingTimestamp)/1000;const currentPosition=velocity*elapsedTime;const progress=currentPosition/distance;return progress;}"},yg=function(){const e=function(e,t,n){return Math.abs(t)<1?1:n*((_getAnimationTimestamp()-e)/1e3)/t};return e.__closure={},e.__workletHash=0xd3bf9952dcf,e.__initData=gg,e}(),vg={code:"function easing_reactNativeReanimated_swipeSimulatorJs2(x){return 1-Math.pow(1-x,5);}"},bg=function(){const e=function(e){return 1-Math.pow(1-e,5)};return e.__closure={},e.__workletHash=0x9cf7ced9ed7,e.__initData=vg,e}(),Ag={code:"function computeProgress_reactNativeReanimated_swipeSimulatorJs3(screenTransitionConfig,event,isTransitionCanceled){const screenDimensions=screenTransitionConfig.screenDimensions;const progressX=Math.abs(event.translationX/screenDimensions.width);const progressY=Math.abs(event.translationY/screenDimensions.height);const maxProgress=Math.max(progressX,progressY);const progress=isTransitionCanceled?maxProgress/2:maxProgress;return progress;}"},xg=function(){const e=function(e,t,n){const r=e.screenDimensions,i=Math.abs(t.translationX/r.width),o=Math.abs(t.translationY/r.height),a=Math.max(i,o);return n?a/2:a};return e.__closure={},e.__workletHash=1991703960680,e.__initData=Ag,e}(),wg={code:"function maybeScheduleNextFrame_reactNativeReanimated_swipeSimulatorJs4(step,didScreenReachDestination,screenTransitionConfig,event,isTransitionCanceled){const{computeProgress,RNScreensTurboModule}=this.__closure;if(!didScreenReachDestination){const stackTag=screenTransitionConfig.stackTag;const progress=computeProgress(screenTransitionConfig,event,isTransitionCanceled);RNScreensTurboModule.updateTransition(stackTag,progress);requestAnimationFrame(step);}else{var _screenTransitionConf;(_screenTransitionConf=screenTransitionConfig.onFinishAnimation)===null||_screenTransitionConf===void 0||_screenTransitionConf.call(screenTransitionConfig);}}"},Cg=function(){const e=function(e,t,n,r,i){if(t)n.onFinishAnimation?.();else{const t=n.stackTag,o=xg(n,r,i);pg.updateTransition(t,o),requestAnimationFrame(e)}};return e.__closure={computeProgress:xg,RNScreensTurboModule:pg},e.__workletHash=5191610802729,e.__initData=wg,e}(),Sg={code:"function getSwipeSimulator_reactNativeReanimated_swipeSimulatorJs5(event,screenTransitionConfig,lockAxis){const{BASE_VELOCITY,ADDITIONAL_VELOCITY_FACTOR_X,ADDITIONAL_VELOCITY_FACTOR_Y,ADDITIONAL_VELOCITY_FACTOR_XY,applyStyleForBelowTopScreen,computeEasingProgress,easing,applyStyle,maybeScheduleNextFrame}=this.__closure;const screenDimensions=screenTransitionConfig.screenDimensions;const startTimestamp=_getAnimationTimestamp();const{isTransitionCanceled:isTransitionCanceled}=screenTransitionConfig;const startingPosition={x:event.translationX,y:event.translationY};const direction={x:Math.sign(event.translationX),y:Math.sign(event.translationY)};const finalPosition=isTransitionCanceled?{x:0,y:0}:{x:direction.x*screenDimensions.width,y:direction.y*screenDimensions.height};const distance={x:Math.abs(finalPosition.x-startingPosition.x),y:Math.abs(finalPosition.y-startingPosition.y)};const didScreenReachDestination={x:false,y:false};const velocity={x:BASE_VELOCITY,y:BASE_VELOCITY};if(lockAxis==='x'){velocity.y=0;velocity.x+=ADDITIONAL_VELOCITY_FACTOR_X*distance.x/screenDimensions.width;}else if(lockAxis==='y'){velocity.x=0;velocity.y+=ADDITIONAL_VELOCITY_FACTOR_Y*distance.y/screenDimensions.height;}else{const euclideanDistance=Math.sqrt(distance.x**2+distance.y**2);const screenDiagonal=Math.sqrt(screenDimensions.width**2+screenDimensions.height**2);const velocityVectorLength=BASE_VELOCITY+ADDITIONAL_VELOCITY_FACTOR_XY*euclideanDistance/screenDiagonal;if(Math.abs(startingPosition.x)>Math.abs(startingPosition.y)){velocity.x=velocityVectorLength;velocity.y=velocityVectorLength*Math.abs(startingPosition.y/startingPosition.x);}else{velocity.x=velocityVectorLength*Math.abs(startingPosition.x/startingPosition.y);velocity.y=velocityVectorLength;}}if(isTransitionCanceled){function didScreenReachDestinationCheck(){if(lockAxis==='x'){return didScreenReachDestination.x;}else if(lockAxis==='y'){return didScreenReachDestination.y;}else{return didScreenReachDestination.x&&didScreenReachDestination.y;}}function restoreOriginalStyleForBelowTopScreen(){event.translationX=direction.x*screenDimensions.width;event.translationY=direction.y*screenDimensions.height;applyStyleForBelowTopScreen(screenTransitionConfig,event);}const computeFrame=function(){const progress={x:computeEasingProgress(startTimestamp,distance.x,velocity.x),y:computeEasingProgress(startTimestamp,distance.y,velocity.y)};event.translationX=startingPosition.x-direction.x*distance.x*easing(progress.x);event.translationY=startingPosition.y-direction.y*distance.y*easing(progress.y);if(direction.x>0){if(event.translationX<=0){didScreenReachDestination.x=true;event.translationX=0;}}else{if(event.translationX>=0){didScreenReachDestination.x=true;event.translationX=0;}}if(direction.y>0){if(event.translationY<=0){didScreenReachDestination.y=true;event.translationY=0;}}else{if(event.translationY>=0){didScreenReachDestination.y=true;event.translationY=0;}}applyStyle(screenTransitionConfig,event);const finished=didScreenReachDestinationCheck();if(finished){restoreOriginalStyleForBelowTopScreen();}maybeScheduleNextFrame(computeFrame,finished,screenTransitionConfig,event,isTransitionCanceled);};return computeFrame;}else{const computeFrame=function(){const progress={x:computeEasingProgress(startTimestamp,distance.x,velocity.x),y:computeEasingProgress(startTimestamp,distance.y,velocity.y)};event.translationX=startingPosition.x+direction.x*distance.x*easing(progress.x);event.translationY=startingPosition.y+direction.y*distance.y*easing(progress.y);if(direction.x>0){if(event.translationX>=screenDimensions.width){didScreenReachDestination.x=true;event.translationX=screenDimensions.width;}}else{if(event.translationX<=-screenDimensions.width){didScreenReachDestination.x=true;event.translationX=-screenDimensions.width;}}if(direction.y>0){if(event.translationY>=screenDimensions.height){didScreenReachDestination.y=true;event.translationY=screenDimensions.height;}}else{if(event.translationY<=-screenDimensions.height){didScreenReachDestination.y=true;event.translationY=-screenDimensions.height;}}applyStyle(screenTransitionConfig,event);maybeScheduleNextFrame(computeFrame,didScreenReachDestination.x||didScreenReachDestination.y,screenTransitionConfig,event,isTransitionCanceled);};return computeFrame;}}"},Eg=function(){const e=function(e,t,n){const r=t.screenDimensions,i=_getAnimationTimestamp(),{isTransitionCanceled:o}=t,a={x:e.translationX,y:e.translationY},s=Math.sign(e.translationX),l=Math.sign(e.translationY),c=o?{x:0,y:0}:{x:s*r.width,y:l*r.height},u={x:Math.abs(c.x-a.x),y:Math.abs(c.y-a.y)},h={x:!1,y:!1},d={x:mg,y:mg};if("x"===n)d.y=0,d.x+=400*u.x/r.width;else if("y"===n)d.x=0,d.y+=500*u.y/r.height;else{const e=Math.sqrt(u.x**2+u.y**2),t=Math.sqrt(r.width**2+r.height**2),n=mg+600*e/t;Math.abs(a.x)>Math.abs(a.y)?(d.x=n,d.y=n*Math.abs(a.y/a.x)):(d.x=n*Math.abs(a.x/a.y),d.y=n)}if(o){const c=()=>{const f={x:yg(i,u.x,d.x),y:yg(i,u.y,d.y)};e.translationX=a.x-s*u.x*bg(f.x),e.translationY=a.y-l*u.y*bg(f.y),s>0?e.translationX<=0&&(h.x=!0,e.translationX=0):e.translationX>=0&&(h.x=!0,e.translationX=0),l>0?e.translationY<=0&&(h.y=!0,e.translationY=0):e.translationY>=0&&(h.y=!0,e.translationY=0),hg(t,e);const p="x"===n?h.x:("y"===n||h.x)&&h.y;p&&(e.translationX=s*r.width,e.translationY=l*r.height,cg(t,e)),Cg(c,p,t,e,o)};return c}{const n=()=>{const c={x:yg(i,u.x,d.x),y:yg(i,u.y,d.y)};e.translationX=a.x+s*u.x*bg(c.x),e.translationY=a.y+l*u.y*bg(c.y),s>0?e.translationX>=r.width&&(h.x=!0,e.translationX=r.width):e.translationX<=-r.width&&(h.x=!0,e.translationX=-r.width),l>0?e.translationY>=r.height&&(h.y=!0,e.translationY=r.height):e.translationY<=-r.height&&(h.y=!0,e.translationY=-r.height),hg(t,e),Cg(n,h.x||h.y,t,e,o)};return n}};return e.__closure={BASE_VELOCITY:mg,ADDITIONAL_VELOCITY_FACTOR_X:400,ADDITIONAL_VELOCITY_FACTOR_Y:500,ADDITIONAL_VELOCITY_FACTOR_XY:600,applyStyleForBelowTopScreen:cg,computeEasingProgress:yg,easing:bg,applyStyle:hg,maybeScheduleNextFrame:Cg},e.__workletHash=0xdbe497e2a3f,e.__initData=Sg,e}();$o();const kg={code:"function startScreenTransition_reactNativeReanimated_animationManagerJs1(screenTransitionConfig){const{applyStyle}=this.__closure;const{stackTag:stackTag,sharedEvent:sharedEvent}=screenTransitionConfig;sharedEvent.addListener(stackTag,function(){applyStyle(screenTransitionConfig,sharedEvent.value);});}"},Tg=function(){const e=function(e){const{stackTag:t,sharedEvent:n}=e;n.addListener(t,(()=>{hg(e,n.value)}))};return e.__closure={applyStyle:hg},e.__workletHash=0xda6f934d915,e.__initData=kg,e}(),Ig={code:"function getLockAxis_reactNativeReanimated_animationManagerJs2(goBackGesture){if(['swipeRight','swipeLeft','horizontalSwipe'].includes(goBackGesture)){return'x';}else if(['swipeUp','swipeDown','verticalSwipe'].includes(goBackGesture)){return'y';}return undefined;}"},Og=function(){const e=function(e){return["swipeRight","swipeLeft","horizontalSwipe"].includes(e)?"x":["swipeUp","swipeDown","verticalSwipe"].includes(e)?"y":void 0};return e.__closure={},e.__workletHash=0xc3b25d020cb,e.__initData=Ig,e}(),Rg={code:"function finishScreenTransition_reactNativeReanimated_animationManagerJs3(screenTransitionConfig){const{getLockAxis,getSwipeSimulator}=this.__closure;const{stackTag:stackTag,sharedEvent:sharedEvent,goBackGesture:goBackGesture}=screenTransitionConfig;sharedEvent.removeListener(stackTag);const lockAxis=getLockAxis(goBackGesture);const step=getSwipeSimulator(sharedEvent.value,screenTransitionConfig,lockAxis);step();}"},Mg=function(){const e=function(e){const{stackTag:t,sharedEvent:n,goBackGesture:r}=e;n.removeListener(t);const i=Og(r);Eg(n.value,e,i)()};return e.__closure={getLockAxis:Og,getSwipeSimulator:Eg},e.__workletHash=3004477788376,e.__initData=Rg,e}(),Pg={code:"function reactNativeReanimated_presetsJs1(event){return{transform:[{translateX:event.translationX}]};}"},Dg={code:"function reactNativeReanimated_presetsJs2(event,screenSize){return{transform:[{translateX:(event.translationX-screenSize.width)*0.3}]};}"},jg={topScreenStyle:function(){const e=function(e){return{transform:[{translateX:e.translationX}]}};return e.__closure={},e.__workletHash=5484936344083,e.__initData=Pg,e}(),belowTopScreenStyle:function(){const e=function(e,t){return{transform:[{translateX:.3*(e.translationX-t.width)}]}};return e.__closure={},e.__workletHash=1982736006015,e.__initData=Dg,e}()},Bg={code:"function reactNativeReanimated_presetsJs3(event){return{transform:[{translateX:event.translationX}]};}"},Lg={code:"function reactNativeReanimated_presetsJs4(event,screenSize){return{transform:[{translateX:(event.translationX+screenSize.width)*0.3}]};}"},Fg={topScreenStyle:function(){const e=function(e){return{transform:[{translateX:e.translationX}]}};return e.__closure={},e.__workletHash=0xc43157b0311,e.__initData=Bg,e}(),belowTopScreenStyle:function(){const e=function(e,t){return{transform:[{translateX:.3*(e.translationX+t.width)}]}};return e.__closure={},e.__workletHash=1538455951551,e.__initData=Lg,e}()},Ng={code:"function reactNativeReanimated_presetsJs5(event){return{transform:[{translateY:event.translationY}]};}"},_g={code:"function reactNativeReanimated_presetsJs6(event,screenSize){return{transform:[{translateY:(event.translationY-screenSize.height)*0.3}]};}"},zg={topScreenStyle:function(){const e=function(e){return{transform:[{translateY:e.translationY}]}};return e.__closure={},e.__workletHash=0xa151fe08477,e.__initData=Ng,e}(),belowTopScreenStyle:function(){const e=function(e,t){return{transform:[{translateY:.3*(e.translationY-t.height)}]}};return e.__closure={},e.__workletHash=5133619612290,e.__initData=_g,e}()},Vg={code:"function reactNativeReanimated_presetsJs7(event){return{transform:[{translateY:event.translationY}]};}"},Ug={code:"function reactNativeReanimated_presetsJs8(event,screenSize){return{transform:[{translateY:(event.translationY+screenSize.height)*0.3}]};}"},Hg={topScreenStyle:function(){const e=function(e){return{transform:[{translateY:e.translationY}]}};return e.__closure={},e.__workletHash=4987507595125,e.__initData=Vg,e}(),belowTopScreenStyle:function(){const e=function(e,t){return{transform:[{translateY:.3*(e.translationY+t.height)}]}};return e.__closure={},e.__workletHash=0xf69bcbc8cca,e.__initData=Ug,e}()},qg={code:"function reactNativeReanimated_presetsJs9(event,_screenSize){return{transform:[{translateX:event.translationX},{translateY:event.translationY}]};}"},Gg={code:"function reactNativeReanimated_presetsJs10(_event,_screenSize){return{};}"},Yg={topScreenStyle:function(){const e=function(e,t){return{transform:[{translateX:e.translationX},{translateY:e.translationY}]}};return e.__closure={},e.__workletHash=1955209496670,e.__initData=qg,e}(),belowTopScreenStyle:function(){const e=function(e,t){return{}};return e.__closure={},e.__workletHash=0xc395843a105,e.__initData=Gg,e}()},Wg={code:"function reactNativeReanimated_presetsJs11(event,_screenSize){return{transform:[{translateX:event.translationX}]};}"},Qg={code:"function reactNativeReanimated_presetsJs12(_event,_screenSize){return{};}"},Xg={topScreenStyle:function(){const e=function(e,t){return{transform:[{translateX:e.translationX}]}};return e.__closure={},e.__workletHash=9289617012344,e.__initData=Wg,e}(),belowTopScreenStyle:function(){const e=function(e,t){return{}};return e.__closure={},e.__workletHash=0x9f91ee8d147,e.__initData=Qg,e}()},Jg={code:"function reactNativeReanimated_presetsJs13(event,_screenSize){return{transform:[{translateY:event.translationY}]};}"},Zg={code:"function reactNativeReanimated_presetsJs14(_event,_screenSize){return{};}"},Kg={topScreenStyle:function(){const e=function(e,t){return{transform:[{translateY:e.translationY}]}};return e.__closure={},e.__workletHash=0xab663eedb5a,e.__initData=Jg,e}(),belowTopScreenStyle:function(){const e=function(e,t){return{}};return e.__closure={},e.__workletHash=2357616099201,e.__initData=Zg,e}()},$g={code:"function reactNativeReanimated_presetsJs15(event,screenSize){return{opacity:1-Math.abs(event.translationX/screenSize.width)};}"},ey={code:"function reactNativeReanimated_presetsJs16(_event,_screenSize){return{};}"},ty={SwipeRight:jg,SwipeLeft:Fg,SwipeDown:zg,SwipeUp:Hg,Horizontal:Xg,Vertical:Kg,TwoDimensional:Yg,SwipeRightFade:{topScreenStyle:function(){const e=function(e,t){return{opacity:1-Math.abs(e.translationX/t.width)}};return e.__closure={},e.__workletHash=0xed8b6e7e2ef,e.__initData=$g,e}(),belowTopScreenStyle:function(){const e=function(e,t){return{}};return e.__closure={},e.__workletHash=0xfe3b383efc3,e.__initData=ey,e}()}},ny=r},42491:(e,t,n)=>{"use strict";var r=n(69675),i=n(9957),o=n(92702),a=n(13541);e.exports=function(e,t){if(!o(e))throw new r("Assertion failed: `O` must be an Object");if(!a(t))throw new r("Assertion failed: `P` must be a Property Key");return i(e,t)}},42634:()=>{},42986:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=[];for(let e=0;e<256;++e)r[e]=(e+256).toString(16).substr(1);const i=function(e,t){let n=t||0;const i=r;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")};function o(e,t,n){const r=function(e,r,o,a){const s=o&&a||0;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=new Array(e.length);for(let n=0;n(t.push(parseInt(e,16)),""))),t}(r)),!Array.isArray(e))throw TypeError("value must be an array of bytes");if(!Array.isArray(r)||16!==r.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");const l=n(r.concat(e));if(l[6]=15&l[6]|t,l[8]=63&l[8]|128,o)for(let e=0;e<16;++e)o[s+e]=l[e];return i(l)};try{r.name=e}catch{}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}},43098:(e,t,n)=>{"use strict";var{validateInput:r}=n(87731);const i=6378137;function o(e){return e*Math.PI/180}function a(e){return 180*e/Math.PI}function s(e,t,n,r){var i=o(e[1]),s=o(e[0]),l=t/n,c=Math.asin(Math.sin(i)*Math.cos(l)+Math.cos(i)*Math.sin(l)*Math.cos(r));return[a(s+Math.atan2(Math.sin(r)*Math.sin(l)*Math.cos(i),Math.cos(l)-Math.sin(i)*Math.sin(c))),a(c)]}function l(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function c(e){return null==e}e.exports=function(e,t,n){var a=function(e){if(c(e))return 32;if(l(e)){var t=e.numberOfEdges;return void 0===t?32:t}return e}(n),u=function(e){if(c(e))return i;if(l(e)){var t=e.earthRadius;return void 0===t?i:t}return i}(n),h=function(e){if(c(e))return 0;if(l(e)){var t=e.bearing;return void 0===t?0:t}return 0}(n),d=function(e){return l(e)&&e.rightHandRule?-1:1}(n);r({center:e,radius:t,numberOfEdges:a,earthRadius:u,bearing:h});for(var f=o(h),p=[],m=0;m{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(29813)),o=function(){function e(e,t){this.name=e,this.apiCall=t}return e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},e}();t.default=o},43693:(e,t,n)=>{var r=n(77736);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},43917:e=>{"use strict";e.exports=function(e,t){if(!Array.isArray(e))return-1;for(var n=0;n{"use strict";n.d(t,{A:()=>le});var r=n(8),i=n(98587),o=n(75617);var a=/[A-Z]/g,s=/^ms-/,l={};function c(e){return"-"+e.toLowerCase()}var u=n(51747),h=n(16485),d=n(81261),f=n(46852),p=n(10020),m=n(69996),g=n(85129),y=n(30508),v=["Webkit"],b=["Webkit","ms"];const A={plugins:[d.A,f.A,p.A,m.A,g.A,y.A],prefixMap:{appearance:["Webkit","Moz","ms"],userSelect:["Webkit","Moz"],textEmphasisPosition:b,textEmphasis:b,textEmphasisStyle:b,textEmphasisColor:b,boxDecorationBreak:b,clipPath:v,maskImage:b,maskMode:b,maskRepeat:b,maskPosition:b,maskClip:b,maskOrigin:b,maskSize:b,maskComposite:b,mask:b,maskBorderSource:b,maskBorderMode:b,maskBorderSlice:b,maskBorderWidth:b,maskBorderOutset:b,maskBorderRepeat:b,maskBorder:b,maskType:b,textDecorationStyle:v,textDecorationSkip:v,textDecorationLine:v,textDecorationColor:v,filter:v,breakAfter:v,breakBefore:v,breakInside:v,columnCount:v,columnFill:v,columnGap:v,columnRule:v,columnRuleColor:v,columnRuleStyle:v,columnRuleWidth:v,columns:v,columnSpan:v,columnWidth:v,backdropFilter:v,hyphens:v,flowInto:v,flowFrom:v,regionFragment:v,textOrientation:v,tabSize:["Moz"],fontKerning:v,textSizeAdjust:v}},x=(0,h.A)(A);var w=["animationKeyframes"],C=new Map,S={},E={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},k="borderTopLeftRadius",T="borderTopRightRadius",I="borderBottomLeftRadius",O="borderBottomRightRadius",R="borderLeftColor",M="borderLeftStyle",P="borderLeftWidth",D="borderRightColor",j="borderRightStyle",B="borderRightWidth",L="right",F="marginLeft",N="marginRight",_="paddingLeft",z="paddingRight",V="left",U={[k]:T,[T]:k,[I]:O,[O]:I,[R]:D,[M]:j,[P]:B,[D]:R,[j]:M,[B]:P,[V]:L,[F]:N,[N]:F,[_]:z,[z]:_,[L]:V},H={borderStartStartRadius:k,borderStartEndRadius:T,borderEndStartRadius:I,borderEndEndRadius:O,borderInlineStartColor:R,borderInlineStartStyle:M,borderInlineStartWidth:P,borderInlineEndColor:D,borderInlineEndStyle:j,borderInlineEndWidth:B,insetInlineEnd:L,insetInlineStart:V,marginInlineStart:F,marginInlineEnd:N,paddingInlineStart:_,paddingInlineEnd:z},q=["clear","float","textAlign"];function G(e){var t=x((0,o.A)(e));return"{"+Object.keys(t).map((e=>{var n=t[e],r=function(e){if(e in l)return l[e];var t=e.replace(a,c);return l[e]=s.test(t)?"-"+t:t}(e);return Array.isArray(n)?n.map((e=>r+":"+e)).join(";"):r+":"+n})).sort().join(";")+";}"}function Y(e,t,n){return e+"-"+function(e){for(var t,n=e.length,r=1^n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}(t+n).toString(36)}function W(e){if("number"==typeof e)throw new Error("Invalid CSS keyframes type: "+typeof e);var t=[],n=[];return(Array.isArray(e)?e:[e]).forEach((e=>{if("string"==typeof e)t.push(e);else{var r=function(e){var t=Y("r","animation",JSON.stringify(e)),n="{"+Object.keys(e).map((t=>""+t+G(e[t]))).join("")+"}",r=["-webkit-",""].map((e=>"@"+e+"keyframes "+t+n));return[t,r]}(e),i=r[0],o=r[1];t.push(i),n.push(...o)}})),[t,n]}var Q=n(93748),X=n(24336),J=n(6927),Z=n(73176),K=n(7162),$=["writingDirection"],ee=new WeakMap,te=(0,Q._)(),ne={shadow:!0,textShadow:!0};function re(e){e.forEach((e=>{var t=e[0],n=e[1];null!=te&&t.forEach((e=>{te.insert(e,n)}))}))}var ie={position:"absolute",left:0,right:0,top:0,bottom:0},oe=ae({x:(0,r.A)({},ie)}).x;function ae(e){return Object.keys(e).forEach((t=>{var n,o,a,s,l=e[t];null!=l&&!0!==l.$$css&&(t.indexOf("$raw")>-1?n=function(e,t){var n=function(e,t){var n,o={$$css:!0},a=[],s=e.animationKeyframes,l=(0,i.A)(e,w),c=Y("css",t,JSON.stringify(e)),u="."+c;if(null!=s){var h=W(s),d=h[0],f=h[1];n=d.join(","),a.push(...f)}var p=G((0,r.A)((0,r.A)({},l),{},{animationName:n}));return a.push(""+u+p),o[c]=c,[o,[[a,1]]]}(e,t),o=n[0];return re(n[1]),o}(l,t.split("$raw")[0]):(o=l,a=function(e){var t={$$css:!0},n=[];function r(e,t,r){var i,o=function(e,t){var n=(0,u.A)(e,t);return"string"!=typeof n?JSON.stringify(n||""):n}(r,t),a=t+o,s=C.get(a);if(null!=s)i=s[0],n.push(s[1]);else{i=Y("r",e,e!==t?a:o);var l=E[e]||3,c=function(e,t,n){var r=[],i="."+e;switch(t){case"animationKeyframes":var o=W(n),a=o[0],s=o[1],l=G({animationName:a.join(",")});r.push(""+i+l,...s);break;case"placeholderTextColor":var c=G({color:n,opacity:1});r.push(i+"::-webkit-input-placeholder"+c,i+"::-moz-placeholder"+c,i+":-ms-input-placeholder"+c,i+"::placeholder"+c);break;case"pointerEvents":var u=n;if("auto"===n||"box-only"===n){if(u="auto!important","box-only"===n){var h=G({pointerEvents:"none"});r.push(i+">*"+h)}}else if(("none"===n||"box-none"===n)&&(u="none!important","box-none"===n)){var d=G({pointerEvents:"auto"});r.push(i+">*"+d)}var f=G({pointerEvents:u});r.push(""+i+f);break;case"scrollbarWidth":"none"===n&&r.push(i+"::-webkit-scrollbar{display:none}");var p=G({scrollbarWidth:n});r.push(""+i+p);break;default:var m=G({[t]:n});r.push(""+i+m)}return r}(i,t,r),h=[c,l];n.push(h),C.set(a,[i,h])}return i}return Object.keys(e).sort().forEach((n=>{var i=e[n];if(null!=i){var o;if(q.indexOf(n)>-1){var a=r(n,n,"left"),s=r(n,n,"right");"start"===i?o=[a,s]:"end"===i&&(o=[s,a])}var l=H[n];if(null!=l){var c=r(n,l,i),u=r(n,U[l],i);o=[c,u]}if("transitionProperty"===n){for(var h=Array.isArray(i)?i:[i],d=[],f=0;f0){var m=[...h],g=[...h];d.forEach((e=>{var t=m[e];if("string"==typeof t){var i=H[t],a=U[i];m[e]=i,g[e]=a;var s=r(n,n,m),l=r(n,n,g);o=[s,l]}}))}}null==o?o=r(n,n,i):t.$$css$localize=!0,t[n]=o}})),[t,n]}((0,J.vk)(o,ne)),s=a[0],re(a[1]),n=s),ee.set(l,n))})),e}function se(e,t){void 0===t&&(t={});var n="rtl"===t.writingDirection,a=function(e,t){void 0===t&&(t={});var n=t,o=n.writingDirection,a=(0,i.A)(n,$),s="rtl"===o;return Z.P.factory({transform(e){var t=ee.get(e);return null!=t?(0,X.n)(t,s):(0,J.vk)(e,(0,r.A)((0,r.A)({},ne),a))}})(e)}(e,t);return Array.isArray(a)&&null!=a[1]&&(a[1]=function(e,t){var n=e||S,r={},i={},a=function(){var e=n[s],o=s,a=e;if(!Object.prototype.hasOwnProperty.call(n,s)||null==e)return"continue";q.indexOf(s)>-1&&("start"===e?a=t?"right":"left":"end"===e&&(a=t?"left":"right"));var l=H[s];if(null!=l&&(o=t?U[l]:l),"transitionProperty"===s){var c=Array.isArray(e)?e:[e];c.forEach(((e,n)=>{if("string"==typeof e){var r=H[e];null!=r&&(c[n]=t?U[r]:r,a=c.join(" "))}}))}r[o]||(i[o]=a),o===s&&(r[o]=!0)};for(var s in n)a();return(0,o.A)(i,!0)}(a[1],n)),a}se.absoluteFill=oe,se.absoluteFillObject=ie,se.create=ae,se.compose=function(e,t){return[e,t]},se.flatten=function(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&n.test(e)};var n=/-webkit-|-moz-|-ms-/},44054:(e,t,n)=>{"use strict";var r=n(29110),i=n(40317),o=n(21383),a={addRefinement:function(e,t,n){if(a.isRefined(e,t,n))return e;var i=""+n,o=e[t]?e[t].concat(i):[i],s={};return s[t]=o,r(s,e)},removeRefinement:function(e,t,n){if(void 0===n)return a.clearRefinement(e,(function(e,n){return t===n}));var r=""+n;return a.clearRefinement(e,(function(e,n){return t===n&&r===e}))},toggleRefinement:function(e,t,n){if(void 0===n)throw new Error("toggleRefinement should be used with a value");return a.isRefined(e,t,n)?a.removeRefinement(e,t,n):a.addRefinement(e,t,n)},clearRefinement:function(e,t,n){if(void 0===t)return i(e)?{}:e;if("string"==typeof t)return o(e,[t]);if("function"==typeof t){var r=!1,a=Object.keys(e).reduce((function(i,o){var a=e[o]||[],s=a.filter((function(e){return!t(e,o,n)}));return s.length!==a.length&&(r=!0),i[o]=s,i}),{});return r?a:e}},isRefined:function(e,t,n){var r=Boolean(e[t])&&e[t].length>0;if(void 0===n||!r)return r;var i=""+n;return-1!==e[t].indexOf(i)}};e.exports=a},44061:e=>{"use strict";e.exports=JSON.parse('{"ab-testing":983497,"abacus":988896,"abjad-arabic":987944,"abjad-hebrew":987945,"abugida-devanagari":987946,"abugida-thai":987947,"access-point":983043,"access-point-check":988472,"access-point-minus":988473,"access-point-network":983042,"access-point-network-off":986081,"access-point-off":988433,"access-point-plus":988474,"access-point-remove":988475,"account":983044,"account-alert":983045,"account-alert-outline":985936,"account-arrow-down":989288,"account-arrow-down-outline":989289,"account-arrow-left":985937,"account-arrow-left-outline":985938,"account-arrow-right":985939,"account-arrow-right-outline":985940,"account-arrow-up":989287,"account-arrow-up-outline":989290,"account-badge":989962,"account-badge-outline":989963,"account-box":983046,"account-box-edit-outline":990408,"account-box-minus-outline":990409,"account-box-multiple":985396,"account-box-multiple-outline":987146,"account-box-outline":983047,"account-box-plus-outline":990410,"account-cancel":987871,"account-cancel-outline":987872,"account-card":990116,"account-card-outline":990117,"account-cash":987287,"account-cash-outline":987288,"account-check":983048,"account-check-outline":986082,"account-child":985737,"account-child-circle":985738,"account-child-outline":987336,"account-circle":983049,"account-circle-outline":985941,"account-clock":985942,"account-clock-outline":985943,"account-cog":988016,"account-cog-outline":988017,"account-convert":983050,"account-convert-outline":987905,"account-cowboy-hat":986779,"account-cowboy-hat-outline":989171,"account-credit-card":990118,"account-credit-card-outline":990119,"account-details":984625,"account-details-outline":988018,"account-edit":984764,"account-edit-outline":987131,"account-eye":984096,"account-eye-outline":987771,"account-file":990375,"account-file-outline":990376,"account-file-text":990377,"account-file-text-outline":990378,"account-filter":985398,"account-filter-outline":987037,"account-group":985161,"account-group-outline":985944,"account-hard-hat":984501,"account-hard-hat-outline":989727,"account-heart":985241,"account-heart-outline":986083,"account-injury":989205,"account-injury-outline":989206,"account-key":983051,"account-key-outline":986084,"account-lock":987486,"account-lock-open":989536,"account-lock-open-outline":989537,"account-lock-outline":987487,"account-minus":983053,"account-minus-outline":985836,"account-multiple":983054,"account-multiple-check":985285,"account-multiple-check-outline":987646,"account-multiple-minus":984531,"account-multiple-minus-outline":986085,"account-multiple-outline":983055,"account-multiple-plus":983056,"account-multiple-plus-outline":985088,"account-multiple-remove":987658,"account-multiple-remove-outline":987659,"account-music":985091,"account-music-outline":986345,"account-network":983057,"account-network-off":989937,"account-network-off-outline":989938,"account-network-outline":986086,"account-off":983058,"account-off-outline":986087,"account-outline":983059,"account-plus":983060,"account-plus-outline":985089,"account-question":985945,"account-question-outline":985946,"account-reactivate":988459,"account-reactivate-outline":988460,"account-remove":983061,"account-remove-outline":985837,"account-school":989728,"account-school-outline":989729,"account-search":983062,"account-search-outline":985397,"account-settings":984624,"account-settings-outline":987337,"account-star":983063,"account-star-outline":986088,"account-supervisor":985739,"account-supervisor-circle":985740,"account-supervisor-circle-outline":988396,"account-supervisor-outline":987437,"account-switch":983065,"account-switch-outline":984267,"account-sync":989467,"account-sync-outline":989468,"account-tag":990235,"account-tag-outline":990236,"account-tie":986339,"account-tie-hat":989336,"account-tie-hat-outline":989337,"account-tie-outline":987338,"account-tie-voice":987912,"account-tie-voice-off":987914,"account-tie-voice-off-outline":987915,"account-tie-voice-outline":987913,"account-tie-woman":989836,"account-voice":984523,"account-voice-off":986836,"account-wrench":989338,"account-wrench-outline":989339,"adjust":983066,"advertisements":989482,"advertisements-off":989483,"air-conditioner":983067,"air-filter":986435,"air-horn":986540,"air-humidifier":987289,"air-humidifier-off":988262,"air-purifier":986436,"air-purifier-off":990039,"airbag":986089,"airballoon":983068,"airballoon-outline":987147,"airplane":983069,"airplane-alert":989306,"airplane-check":989307,"airplane-clock":989308,"airplane-cog":989309,"airplane-edit":989310,"airplane-landing":984532,"airplane-marker":989311,"airplane-minus":989312,"airplane-off":983070,"airplane-plus":989313,"airplane-remove":989314,"airplane-search":989315,"airplane-settings":989316,"airplane-takeoff":984533,"airport":985163,"alarm":983072,"alarm-bell":984974,"alarm-check":983073,"alarm-light":984975,"alarm-light-off":988958,"alarm-light-off-outline":988959,"alarm-light-outline":986090,"alarm-multiple":983074,"alarm-note":986737,"alarm-note-off":986738,"alarm-off":983075,"alarm-panel":988612,"alarm-panel-outline":988613,"alarm-plus":983076,"alarm-snooze":984718,"album":983077,"alert":983078,"alert-box":983079,"alert-box-outline":986340,"alert-circle":983080,"alert-circle-check":987629,"alert-circle-check-outline":987630,"alert-circle-outline":984534,"alert-decagram":984765,"alert-decagram-outline":986341,"alert-minus":988347,"alert-minus-outline":988350,"alert-octagon":983081,"alert-octagon-outline":986342,"alert-octagram":984935,"alert-octagram-outline":986343,"alert-outline":983082,"alert-plus":988346,"alert-plus-outline":988349,"alert-remove":988348,"alert-remove-outline":988351,"alert-rhombus":987598,"alert-rhombus-outline":987599,"alien":985242,"alien-outline":987339,"align-horizontal-center":987587,"align-horizontal-distribute":989538,"align-horizontal-left":987586,"align-horizontal-right":987588,"align-vertical-bottom":987589,"align-vertical-center":987590,"align-vertical-distribute":989539,"align-vertical-top":987591,"all-inclusive":984766,"all-inclusive-box":989325,"all-inclusive-box-outline":989326,"allergy":987736,"alpha":983083,"alpha-a":985838,"alpha-a-box":985864,"alpha-a-box-outline":986091,"alpha-a-circle":986092,"alpha-a-circle-outline":986093,"alpha-b":985839,"alpha-b-box":985865,"alpha-b-box-outline":986094,"alpha-b-circle":986095,"alpha-b-circle-outline":986096,"alpha-c":985840,"alpha-c-box":985866,"alpha-c-box-outline":986097,"alpha-c-circle":986098,"alpha-c-circle-outline":986099,"alpha-d":985841,"alpha-d-box":985867,"alpha-d-box-outline":986100,"alpha-d-circle":986101,"alpha-d-circle-outline":986102,"alpha-e":985842,"alpha-e-box":985868,"alpha-e-box-outline":986103,"alpha-e-circle":986104,"alpha-e-circle-outline":986105,"alpha-f":985843,"alpha-f-box":985869,"alpha-f-box-outline":986106,"alpha-f-circle":986107,"alpha-f-circle-outline":986108,"alpha-g":985844,"alpha-g-box":985870,"alpha-g-box-outline":986109,"alpha-g-circle":986110,"alpha-g-circle-outline":986111,"alpha-h":985845,"alpha-h-box":985871,"alpha-h-box-outline":986112,"alpha-h-circle":986113,"alpha-h-circle-outline":986114,"alpha-i":985846,"alpha-i-box":985872,"alpha-i-box-outline":986115,"alpha-i-circle":986116,"alpha-i-circle-outline":986117,"alpha-j":985847,"alpha-j-box":985873,"alpha-j-box-outline":986118,"alpha-j-circle":986119,"alpha-j-circle-outline":986120,"alpha-k":985848,"alpha-k-box":985874,"alpha-k-box-outline":986121,"alpha-k-circle":986122,"alpha-k-circle-outline":986123,"alpha-l":985849,"alpha-l-box":985875,"alpha-l-box-outline":986124,"alpha-l-circle":986125,"alpha-l-circle-outline":986126,"alpha-m":985850,"alpha-m-box":985876,"alpha-m-box-outline":986127,"alpha-m-circle":986128,"alpha-m-circle-outline":986129,"alpha-n":985851,"alpha-n-box":985877,"alpha-n-box-outline":986130,"alpha-n-circle":986131,"alpha-n-circle-outline":986132,"alpha-o":985852,"alpha-o-box":985878,"alpha-o-box-outline":986133,"alpha-o-circle":986134,"alpha-o-circle-outline":986135,"alpha-p":985853,"alpha-p-box":985879,"alpha-p-box-outline":986136,"alpha-p-circle":986137,"alpha-p-circle-outline":986138,"alpha-q":985854,"alpha-q-box":985880,"alpha-q-box-outline":986139,"alpha-q-circle":986140,"alpha-q-circle-outline":986141,"alpha-r":985855,"alpha-r-box":985881,"alpha-r-box-outline":986142,"alpha-r-circle":986143,"alpha-r-circle-outline":986144,"alpha-s":985856,"alpha-s-box":985882,"alpha-s-box-outline":986145,"alpha-s-circle":986146,"alpha-s-circle-outline":986147,"alpha-t":985857,"alpha-t-box":985883,"alpha-t-box-outline":986148,"alpha-t-circle":986149,"alpha-t-circle-outline":986150,"alpha-u":985858,"alpha-u-box":985884,"alpha-u-box-outline":986151,"alpha-u-circle":986152,"alpha-u-circle-outline":986153,"alpha-v":985859,"alpha-v-box":985885,"alpha-v-box-outline":986154,"alpha-v-circle":986155,"alpha-v-circle-outline":986156,"alpha-w":985860,"alpha-w-box":985886,"alpha-w-box-outline":986157,"alpha-w-circle":986158,"alpha-w-circle-outline":986159,"alpha-x":985861,"alpha-x-box":985887,"alpha-x-box-outline":986160,"alpha-x-circle":986161,"alpha-x-circle-outline":986162,"alpha-y":985862,"alpha-y-box":985888,"alpha-y-box-outline":986163,"alpha-y-circle":986164,"alpha-y-circle-outline":986165,"alpha-z":985863,"alpha-z-box":985889,"alpha-z-box-outline":986166,"alpha-z-circle":986167,"alpha-z-circle-outline":986168,"alphabet-aurebesh":987948,"alphabet-cyrillic":987949,"alphabet-greek":987950,"alphabet-latin":987951,"alphabet-piqad":987952,"alphabet-tengwar":987959,"alphabetical":983084,"alphabetical-off":987148,"alphabetical-variant":987149,"alphabetical-variant-off":987150,"altimeter":984535,"ambulance":983087,"ammunition":986344,"ampersand":985741,"amplifier":983088,"amplifier-off":987573,"anchor":983089,"android":983090,"android-studio":983092,"angle-acute":985399,"angle-obtuse":985400,"angle-right":985401,"angular":984754,"angularjs":984767,"animation":984536,"animation-outline":985743,"animation-play":985402,"animation-play-outline":985744,"ansible":987290,"antenna":987417,"anvil":985243,"apache-kafka":987151,"api":987291,"api-off":987735,"apple":983093,"apple-finder":983094,"apple-icloud":983096,"apple-ios":983095,"apple-keyboard-caps":984626,"apple-keyboard-command":984627,"apple-keyboard-control":984628,"apple-keyboard-option":984629,"apple-keyboard-shift":984630,"apple-safari":983097,"application":985286,"application-array":987381,"application-array-outline":987382,"application-braces":987383,"application-braces-outline":987384,"application-brackets":986251,"application-brackets-outline":986252,"application-cog":984693,"application-cog-outline":988535,"application-edit":983214,"application-edit-outline":984601,"application-export":986541,"application-import":986542,"application-outline":984596,"application-parentheses":987385,"application-parentheses-outline":987386,"application-settings":985952,"application-settings-outline":988501,"application-variable":987387,"application-variable-outline":987388,"approximately-equal":987038,"approximately-equal-box":987039,"apps":983099,"apps-box":986438,"arch":985287,"archive":983100,"archive-alert":988413,"archive-alert-outline":988414,"archive-arrow-down":987737,"archive-arrow-down-outline":987738,"archive-arrow-up":987739,"archive-arrow-up-outline":987740,"archive-cancel":989003,"archive-cancel-outline":989004,"archive-check":989005,"archive-check-outline":989006,"archive-clock":989007,"archive-clock-outline":989008,"archive-cog":989009,"archive-cog-outline":989010,"archive-edit":989011,"archive-edit-outline":989012,"archive-eye":989013,"archive-eye-outline":989014,"archive-lock":989015,"archive-lock-open":989016,"archive-lock-open-outline":989017,"archive-lock-outline":989018,"archive-marker":989019,"archive-marker-outline":989020,"archive-minus":989021,"archive-minus-outline":989022,"archive-music":989023,"archive-music-outline":989024,"archive-off":989025,"archive-off-outline":989026,"archive-outline":987662,"archive-plus":989027,"archive-plus-outline":989028,"archive-refresh":989029,"archive-refresh-outline":989030,"archive-remove":989031,"archive-remove-outline":989032,"archive-search":989033,"archive-search-outline":989034,"archive-settings":989035,"archive-settings-outline":989036,"archive-star":989037,"archive-star-outline":989038,"archive-sync":989039,"archive-sync-outline":989040,"arm-flex":987095,"arm-flex-outline":987094,"arrange-bring-forward":983101,"arrange-bring-to-front":983102,"arrange-send-backward":983103,"arrange-send-to-back":983104,"arrow-all":983105,"arrow-bottom-left":983106,"arrow-bottom-left-bold-box":989540,"arrow-bottom-left-bold-box-outline":989541,"arrow-bottom-left-bold-outline":985527,"arrow-bottom-left-thick":985528,"arrow-bottom-left-thin":989622,"arrow-bottom-left-thin-circle-outline":988566,"arrow-bottom-right":983107,"arrow-bottom-right-bold-box":989542,"arrow-bottom-right-bold-box-outline":989543,"arrow-bottom-right-bold-outline":985529,"arrow-bottom-right-thick":985530,"arrow-bottom-right-thin":989623,"arrow-bottom-right-thin-circle-outline":988565,"arrow-collapse":984597,"arrow-collapse-all":983108,"arrow-collapse-down":984978,"arrow-collapse-horizontal":985164,"arrow-collapse-left":984979,"arrow-collapse-right":984980,"arrow-collapse-up":984981,"arrow-collapse-vertical":985165,"arrow-decision":985531,"arrow-decision-auto":985532,"arrow-decision-auto-outline":985533,"arrow-decision-outline":985534,"arrow-down":983109,"arrow-down-bold":984878,"arrow-down-bold-box":984879,"arrow-down-bold-box-outline":984880,"arrow-down-bold-circle":983111,"arrow-down-bold-circle-outline":983112,"arrow-down-bold-hexagon-outline":983113,"arrow-down-bold-outline":985535,"arrow-down-box":984768,"arrow-down-circle":986331,"arrow-down-circle-outline":986332,"arrow-down-drop-circle":983114,"arrow-down-drop-circle-outline":983115,"arrow-down-left":989089,"arrow-down-left-bold":989090,"arrow-down-right":989091,"arrow-down-right-bold":989092,"arrow-down-thick":983110,"arrow-down-thin":989619,"arrow-down-thin-circle-outline":988569,"arrow-expand":984598,"arrow-expand-all":983116,"arrow-expand-down":984982,"arrow-expand-horizontal":985166,"arrow-expand-left":984983,"arrow-expand-right":984984,"arrow-expand-up":984985,"arrow-expand-vertical":985167,"arrow-horizontal-lock":987483,"arrow-left":983117,"arrow-left-bold":984881,"arrow-left-bold-box":984882,"arrow-left-bold-box-outline":984883,"arrow-left-bold-circle":983119,"arrow-left-bold-circle-outline":983120,"arrow-left-bold-hexagon-outline":983121,"arrow-left-bold-outline":985536,"arrow-left-bottom":989093,"arrow-left-bottom-bold":989094,"arrow-left-box":984769,"arrow-left-circle":986333,"arrow-left-circle-outline":986334,"arrow-left-drop-circle":983122,"arrow-left-drop-circle-outline":983123,"arrow-left-right":986739,"arrow-left-right-bold":986740,"arrow-left-right-bold-outline":985537,"arrow-left-thick":983118,"arrow-left-thin":989617,"arrow-left-thin-circle-outline":988570,"arrow-left-top":989095,"arrow-left-top-bold":989096,"arrow-oscillating":990353,"arrow-oscillating-off":990354,"arrow-projectile":989248,"arrow-projectile-multiple":989247,"arrow-right":983124,"arrow-right-bold":984884,"arrow-right-bold-box":984885,"arrow-right-bold-box-outline":984886,"arrow-right-bold-circle":983126,"arrow-right-bold-circle-outline":983127,"arrow-right-bold-hexagon-outline":983128,"arrow-right-bold-outline":985538,"arrow-right-bottom":989097,"arrow-right-bottom-bold":989098,"arrow-right-box":984770,"arrow-right-circle":986335,"arrow-right-circle-outline":986336,"arrow-right-drop-circle":983129,"arrow-right-drop-circle-outline":983130,"arrow-right-thick":983125,"arrow-right-thin":989616,"arrow-right-thin-circle-outline":988568,"arrow-right-top":989099,"arrow-right-top-bold":989100,"arrow-split-horizontal":985403,"arrow-split-vertical":985404,"arrow-top-left":983131,"arrow-top-left-bold-box":989544,"arrow-top-left-bold-box-outline":989545,"arrow-top-left-bold-outline":985539,"arrow-top-left-bottom-right":986741,"arrow-top-left-bottom-right-bold":986742,"arrow-top-left-thick":985540,"arrow-top-left-thin":989621,"arrow-top-left-thin-circle-outline":988563,"arrow-top-right":983132,"arrow-top-right-bold-box":989546,"arrow-top-right-bold-box-outline":989547,"arrow-top-right-bold-outline":985541,"arrow-top-right-bottom-left":986743,"arrow-top-right-bottom-left-bold":986744,"arrow-top-right-thick":985542,"arrow-top-right-thin":989620,"arrow-top-right-thin-circle-outline":988564,"arrow-u-down-left":989101,"arrow-u-down-left-bold":989102,"arrow-u-down-right":989103,"arrow-u-down-right-bold":989104,"arrow-u-left-bottom":989105,"arrow-u-left-bottom-bold":989106,"arrow-u-left-top":989107,"arrow-u-left-top-bold":989108,"arrow-u-right-bottom":989109,"arrow-u-right-bottom-bold":989110,"arrow-u-right-top":989111,"arrow-u-right-top-bold":989112,"arrow-u-up-left":989113,"arrow-u-up-left-bold":989114,"arrow-u-up-right":989115,"arrow-u-up-right-bold":989116,"arrow-up":983133,"arrow-up-bold":984887,"arrow-up-bold-box":984888,"arrow-up-bold-box-outline":984889,"arrow-up-bold-circle":983135,"arrow-up-bold-circle-outline":983136,"arrow-up-bold-hexagon-outline":983137,"arrow-up-bold-outline":985543,"arrow-up-box":984771,"arrow-up-circle":986337,"arrow-up-circle-outline":986338,"arrow-up-down":986745,"arrow-up-down-bold":986746,"arrow-up-down-bold-outline":985544,"arrow-up-drop-circle":983138,"arrow-up-drop-circle-outline":983139,"arrow-up-left":989117,"arrow-up-left-bold":989118,"arrow-up-right":989119,"arrow-up-right-bold":989120,"arrow-up-thick":983134,"arrow-up-thin":989618,"arrow-up-thin-circle-outline":988567,"arrow-vertical-lock":987484,"artboard":990106,"artstation":985947,"aspect-ratio":985636,"assistant":983140,"asterisk":984772,"asterisk-circle-outline":989735,"at":983141,"atlassian":985092,"atm":986439,"atom":984936,"atom-variant":986747,"attachment":983142,"attachment-check":989889,"attachment-lock":989636,"attachment-minus":989890,"attachment-off":989891,"attachment-plus":989892,"attachment-remove":989893,"atv":990064,"audio-input-rca":989291,"audio-input-stereo-minijack":989292,"audio-input-xlr":989293,"audio-video":985405,"audio-video-off":987574,"augmented-reality":985168,"aurora":990137,"auto-download":988030,"auto-fix":983144,"auto-mode":990240,"auto-upload":983145,"autorenew":983146,"autorenew-off":989671,"av-timer":983147,"awning":990087,"awning-outline":990088,"aws":986639,"axe":985288,"axe-battle":989250,"axis":986440,"axis-arrow":986441,"axis-arrow-info":988174,"axis-arrow-lock":986442,"axis-lock":986443,"axis-x-arrow":986444,"axis-x-arrow-lock":986445,"axis-x-rotate-clockwise":986446,"axis-x-rotate-counterclockwise":986447,"axis-x-y-arrow-lock":986448,"axis-y-arrow":986449,"axis-y-arrow-lock":986450,"axis-y-rotate-clockwise":986451,"axis-y-rotate-counterclockwise":986452,"axis-z-arrow":986453,"axis-z-arrow-lock":986454,"axis-z-rotate-clockwise":986455,"axis-z-rotate-counterclockwise":986456,"babel":985637,"baby":983148,"baby-bottle":986937,"baby-bottle-outline":986938,"baby-buggy":988128,"baby-buggy-off":989939,"baby-carriage":984719,"baby-carriage-off":987040,"baby-face":986748,"baby-face-outline":986749,"backburger":983149,"backspace":983150,"backspace-outline":985948,"backspace-reverse":986750,"backspace-reverse-outline":986751,"backup-restore":983151,"bacteria":986837,"bacteria-outline":986838,"badge-account":986535,"badge-account-alert":986536,"badge-account-alert-outline":986537,"badge-account-horizontal":986637,"badge-account-horizontal-outline":986638,"badge-account-outline":986538,"badminton":985169,"bag-carry-on":986939,"bag-carry-on-check":986469,"bag-carry-on-off":986940,"bag-checked":986941,"bag-personal":986640,"bag-personal-off":986641,"bag-personal-off-outline":986642,"bag-personal-outline":986643,"bag-personal-plus":990372,"bag-personal-plus-outline":990373,"bag-personal-tag":989964,"bag-personal-tag-outline":989965,"bag-suitcase":988555,"bag-suitcase-off":988557,"bag-suitcase-off-outline":988558,"bag-suitcase-outline":988556,"baguette":986942,"balcony":989207,"balloon":985638,"ballot":985545,"ballot-outline":985546,"ballot-recount":986169,"ballot-recount-outline":986170,"bandage":986543,"bank":983152,"bank-check":988757,"bank-circle":990211,"bank-circle-outline":990212,"bank-minus":986544,"bank-off":988758,"bank-off-outline":988759,"bank-outline":986752,"bank-plus":986545,"bank-remove":986546,"bank-transfer":985639,"bank-transfer-in":985640,"bank-transfer-out":985641,"barcode":983153,"barcode-off":987702,"barcode-scan":983154,"barley":983155,"barley-off":985949,"barn":985950,"barrel":983156,"barrel-outline":989736,"baseball":985170,"baseball-bat":985171,"baseball-diamond":988652,"baseball-diamond-outline":988653,"baseball-outline":990298,"bash":987523,"basket":983158,"basket-check":989413,"basket-check-outline":989414,"basket-fill":983159,"basket-minus":988451,"basket-minus-outline":988452,"basket-off":988453,"basket-off-outline":988454,"basket-outline":987521,"basket-plus":988455,"basket-plus-outline":988456,"basket-remove":988457,"basket-remove-outline":988458,"basket-unfill":983160,"basketball":985094,"basketball-hoop":986171,"basketball-hoop-outline":986172,"bat":985951,"bathtub":989208,"bathtub-outline":989209,"battery":983161,"battery-10":983162,"battery-10-bluetooth":985406,"battery-20":983163,"battery-20-bluetooth":985407,"battery-30":983164,"battery-30-bluetooth":985408,"battery-40":983165,"battery-40-bluetooth":985409,"battery-50":983166,"battery-50-bluetooth":985410,"battery-60":983167,"battery-60-bluetooth":985411,"battery-70":983168,"battery-70-bluetooth":985412,"battery-80":983169,"battery-80-bluetooth":985413,"battery-90":983170,"battery-90-bluetooth":985414,"battery-alert":983171,"battery-alert-bluetooth":985415,"battery-alert-variant":987340,"battery-alert-variant-outline":987341,"battery-arrow-down":989150,"battery-arrow-down-outline":989151,"battery-arrow-up":989152,"battery-arrow-up-outline":989153,"battery-bluetooth":985416,"battery-bluetooth-variant":985417,"battery-charging":983172,"battery-charging-10":985244,"battery-charging-100":983173,"battery-charging-20":983174,"battery-charging-30":983175,"battery-charging-40":983176,"battery-charging-50":985245,"battery-charging-60":983177,"battery-charging-70":985246,"battery-charging-80":983178,"battery-charging-90":983179,"battery-charging-high":987814,"battery-charging-low":987812,"battery-charging-medium":987813,"battery-charging-outline":985247,"battery-charging-wireless":985095,"battery-charging-wireless-10":985096,"battery-charging-wireless-20":985097,"battery-charging-wireless-30":985098,"battery-charging-wireless-40":985099,"battery-charging-wireless-50":985100,"battery-charging-wireless-60":985101,"battery-charging-wireless-70":985102,"battery-charging-wireless-80":985103,"battery-charging-wireless-90":985104,"battery-charging-wireless-alert":985105,"battery-charging-wireless-outline":985106,"battery-check":989154,"battery-check-outline":989155,"battery-clock":989669,"battery-clock-outline":989670,"battery-heart":987663,"battery-heart-outline":987664,"battery-heart-variant":987665,"battery-high":987811,"battery-lock":989084,"battery-lock-open":989085,"battery-low":987809,"battery-medium":987810,"battery-minus":989156,"battery-minus-outline":989157,"battery-minus-variant":983180,"battery-negative":983181,"battery-off":987741,"battery-off-outline":987742,"battery-outline":983182,"battery-plus":989158,"battery-plus-outline":989159,"battery-plus-variant":983183,"battery-positive":983184,"battery-remove":989160,"battery-remove-outline":989161,"battery-sync":989236,"battery-sync-outline":989237,"battery-unknown":983185,"battery-unknown-bluetooth":985418,"beach":983186,"beaker":986346,"beaker-alert":987689,"beaker-alert-outline":987690,"beaker-check":987691,"beaker-check-outline":987692,"beaker-minus":987693,"beaker-minus-outline":987694,"beaker-outline":984720,"beaker-plus":987695,"beaker-plus-outline":987696,"beaker-question":987697,"beaker-question-outline":987698,"beaker-remove":987699,"beaker-remove-outline":987700,"bed":983779,"bed-clock":990100,"bed-double":987092,"bed-double-outline":987091,"bed-empty":985248,"bed-king":987090,"bed-king-outline":987089,"bed-outline":983193,"bed-queen":987088,"bed-queen-outline":987099,"bed-single":987245,"bed-single-outline":987246,"bee":987041,"bee-flower":987042,"beehive-off-outline":988141,"beehive-outline":987342,"beekeeper":988386,"beer":983192,"beer-outline":987916,"bell":983194,"bell-alert":986457,"bell-alert-outline":986753,"bell-badge":987499,"bell-badge-outline":983416,"bell-cancel":988135,"bell-cancel-outline":988136,"bell-check":987621,"bell-check-outline":987622,"bell-circle":986458,"bell-circle-outline":986459,"bell-cog":989737,"bell-cog-outline":989738,"bell-minus":988137,"bell-minus-outline":988138,"bell-off":983195,"bell-off-outline":985745,"bell-outline":983196,"bell-plus":983197,"bell-plus-outline":985746,"bell-remove":988139,"bell-remove-outline":988140,"bell-ring":983198,"bell-ring-outline":983199,"bell-sleep":983200,"bell-sleep-outline":985747,"bench":990241,"bench-back":990242,"beta":983201,"betamax":985547,"biathlon":986644,"bicycle":987292,"bicycle-basket":987701,"bicycle-cargo":989340,"bicycle-electric":988596,"bicycle-penny-farthing":988649,"bike":983203,"bike-fast":987423,"bike-pedal":990243,"bike-pedal-clipless":990244,"bike-pedal-mountain":990245,"billboard":987152,"billiards":985953,"billiards-rack":985954,"binoculars":983205,"bio":983206,"biohazard":983207,"bird":988614,"bitbucket":983208,"bitcoin":985107,"black-mesa":983209,"blender":986347,"blender-outline":989210,"blender-software":983211,"blinds":983212,"blinds-horizontal":989739,"blinds-horizontal-closed":989740,"blinds-open":987153,"blinds-vertical":989741,"blinds-vertical-closed":989742,"block-helper":983213,"blood-bag":986348,"bluetooth":983215,"bluetooth-audio":983216,"bluetooth-connect":983217,"bluetooth-off":983218,"bluetooth-settings":983219,"bluetooth-transfer":983220,"blur":983221,"blur-linear":983222,"blur-off":983223,"blur-radial":983224,"bolt":986547,"bomb":984721,"bomb-off":984773,"bone":983225,"bone-off":989664,"book":983226,"book-account":988077,"book-account-outline":988078,"book-alert":988796,"book-alert-outline":988797,"book-alphabet":984605,"book-arrow-down":988798,"book-arrow-down-outline":988799,"book-arrow-left":988800,"book-arrow-left-outline":988801,"book-arrow-right":988802,"book-arrow-right-outline":988803,"book-arrow-up":988804,"book-arrow-up-outline":988805,"book-cancel":988806,"book-cancel-outline":988807,"book-check":988403,"book-check-outline":988404,"book-clock":988808,"book-clock-outline":988809,"book-cog":988810,"book-cog-outline":988811,"book-cross":983202,"book-edit":988812,"book-edit-outline":988813,"book-education":988873,"book-education-outline":988874,"book-heart":989725,"book-heart-outline":989726,"book-information-variant":987247,"book-lock":984986,"book-lock-open":984987,"book-lock-open-outline":988814,"book-lock-outline":988815,"book-marker":988816,"book-marker-outline":988817,"book-minus":984537,"book-minus-multiple":985748,"book-minus-multiple-outline":985355,"book-minus-outline":988818,"book-multiple":983227,"book-multiple-outline":984118,"book-music":983143,"book-music-outline":988819,"book-off":988820,"book-off-outline":988821,"book-open":983229,"book-open-blank-variant":983230,"book-open-blank-variant-outline":990411,"book-open-outline":985955,"book-open-page-variant":984538,"book-open-page-variant-outline":988630,"book-open-variant":988407,"book-open-variant-outline":990412,"book-outline":985956,"book-play":986754,"book-play-outline":986755,"book-plus":984539,"book-plus-multiple":985749,"book-plus-multiple-outline":985822,"book-plus-outline":988822,"book-refresh":988823,"book-refresh-outline":988824,"book-remove":985751,"book-remove-multiple":985750,"book-remove-multiple-outline":984266,"book-remove-outline":988825,"book-search":986756,"book-search-outline":986757,"book-settings":988826,"book-settings-outline":988827,"book-sync":988828,"book-sync-outline":988872,"book-variant":983231,"bookmark":983232,"bookmark-box":990069,"bookmark-box-multiple":989548,"bookmark-box-multiple-outline":989549,"bookmark-box-outline":990070,"bookmark-check":983233,"bookmark-check-outline":988027,"bookmark-minus":985548,"bookmark-minus-outline":985549,"bookmark-multiple":986645,"bookmark-multiple-outline":986646,"bookmark-music":983234,"bookmark-music-outline":988025,"bookmark-off":985550,"bookmark-off-outline":985551,"bookmark-outline":983235,"bookmark-plus":983237,"bookmark-plus-outline":983236,"bookmark-remove":983238,"bookmark-remove-outline":988026,"bookshelf":987743,"boom-gate":986758,"boom-gate-alert":986759,"boom-gate-alert-outline":986760,"boom-gate-arrow-down":986761,"boom-gate-arrow-down-outline":986762,"boom-gate-arrow-up":986764,"boom-gate-arrow-up-outline":986765,"boom-gate-outline":986763,"boom-gate-up":989177,"boom-gate-up-outline":989178,"boombox":984540,"boomerang":987343,"bootstrap":984774,"border-all":983239,"border-all-variant":985249,"border-bottom":983240,"border-bottom-variant":985250,"border-color":983241,"border-horizontal":983242,"border-inside":983243,"border-left":983244,"border-left-variant":985251,"border-none":983245,"border-none-variant":985252,"border-outside":983246,"border-radius":989940,"border-right":983247,"border-right-variant":985253,"border-style":983248,"border-top":983249,"border-top-variant":985254,"border-vertical":983250,"bottle-soda":987248,"bottle-soda-classic":987249,"bottle-soda-classic-outline":988003,"bottle-soda-outline":987250,"bottle-tonic":987438,"bottle-tonic-outline":987439,"bottle-tonic-plus":987440,"bottle-tonic-plus-outline":987441,"bottle-tonic-skull":987442,"bottle-tonic-skull-outline":987443,"bottle-wine":985172,"bottle-wine-outline":987920,"bow-arrow":989249,"bow-tie":984696,"bowl":983694,"bowl-mix":984599,"bowl-mix-outline":983780,"bowl-outline":983721,"bowling":983251,"box":983252,"box-cutter":983253,"box-cutter-off":985930,"box-shadow":984631,"boxing-glove":985957,"braille":985552,"brain":985553,"bread-slice":986350,"bread-slice-outline":986351,"bridge":984600,"briefcase":983254,"briefcase-account":986352,"briefcase-account-outline":986353,"briefcase-arrow-left-right":989837,"briefcase-arrow-left-right-outline":989838,"briefcase-arrow-up-down":989839,"briefcase-arrow-up-down-outline":989840,"briefcase-check":983255,"briefcase-check-outline":987934,"briefcase-clock":987344,"briefcase-clock-outline":987345,"briefcase-download":983256,"briefcase-download-outline":986173,"briefcase-edit":985752,"briefcase-edit-outline":986174,"briefcase-eye":989145,"briefcase-eye-outline":989146,"briefcase-minus":985642,"briefcase-minus-outline":986175,"briefcase-off":988760,"briefcase-off-outline":988761,"briefcase-outline":985108,"briefcase-plus":985643,"briefcase-plus-outline":986176,"briefcase-remove":985644,"briefcase-remove-outline":986177,"briefcase-search":985645,"briefcase-search-outline":986178,"briefcase-upload":983257,"briefcase-upload-outline":986179,"briefcase-variant":988308,"briefcase-variant-off":988762,"briefcase-variant-off-outline":988763,"briefcase-variant-outline":988309,"brightness-1":983258,"brightness-2":983259,"brightness-3":983260,"brightness-4":983261,"brightness-5":983262,"brightness-6":983263,"brightness-7":983264,"brightness-auto":983265,"brightness-percent":986354,"broadcast":988960,"broadcast-off":988961,"broom":983266,"brush":983267,"brush-off":989041,"brush-outline":989709,"brush-variant":989203,"bucket":988181,"bucket-outline":988182,"buffet":984440,"bug":983268,"bug-check":985646,"bug-check-outline":985647,"bug-outline":985648,"bug-pause":989941,"bug-pause-outline":989942,"bug-play":989943,"bug-play-outline":989944,"bug-stop":989945,"bug-stop-outline":989946,"bugle":986548,"bulkhead-light":989743,"bulldozer":985890,"bullet":986355,"bulletin-board":983269,"bullhorn":983270,"bullhorn-outline":985891,"bullhorn-variant":989550,"bullhorn-variant-outline":989551,"bullseye":984541,"bullseye-arrow":985289,"bulma":987879,"bunk-bed":987906,"bunk-bed-outline":983191,"bus":983271,"bus-alert":985753,"bus-articulated-end":984988,"bus-articulated-front":984989,"bus-clock":985290,"bus-double-decker":984990,"bus-electric":989469,"bus-marker":987666,"bus-multiple":986943,"bus-school":984991,"bus-side":984992,"bus-sign":990401,"bus-stop":987154,"bus-stop-covered":987155,"bus-stop-uncovered":987156,"bus-wrench":990402,"butterfly":988553,"butterfly-outline":988554,"button-cursor":990031,"button-pointer":990032,"cabin-a-frame":989324,"cable-data":988052,"cached":983272,"cactus":986549,"cake":983273,"cake-layered":983274,"cake-variant":983275,"cake-variant-outline":989168,"calculator":983276,"calculator-variant":985754,"calculator-variant-outline":988582,"calendar":983277,"calendar-account":986839,"calendar-account-outline":986840,"calendar-alert":985649,"calendar-alert-outline":990050,"calendar-arrow-left":987444,"calendar-arrow-right":987445,"calendar-badge":990109,"calendar-badge-outline":990110,"calendar-blank":983278,"calendar-blank-multiple":987251,"calendar-blank-outline":985958,"calendar-check":983279,"calendar-check-outline":986180,"calendar-clock":983280,"calendar-clock-outline":988897,"calendar-collapse-horizontal":989341,"calendar-collapse-horizontal-outline":990051,"calendar-cursor":988539,"calendar-cursor-outline":990052,"calendar-edit":985255,"calendar-edit-outline":990053,"calendar-end":988780,"calendar-end-outline":990054,"calendar-expand-horizontal":989342,"calendar-expand-horizontal-outline":990055,"calendar-export":985892,"calendar-export-outline":990056,"calendar-filter":989746,"calendar-filter-outline":989747,"calendar-heart":985554,"calendar-heart-outline":990057,"calendar-import":985893,"calendar-import-outline":990058,"calendar-lock":988737,"calendar-lock-open":990043,"calendar-lock-open-outline":990044,"calendar-lock-outline":988738,"calendar-minus":986460,"calendar-minus-outline":990059,"calendar-month":986647,"calendar-month-outline":986648,"calendar-multiple":983281,"calendar-multiple-check":983282,"calendar-multiselect":985650,"calendar-multiselect-outline":990037,"calendar-outline":985959,"calendar-plus":983283,"calendar-plus-outline":990060,"calendar-question":984722,"calendar-question-outline":990061,"calendar-range":984697,"calendar-range-outline":985960,"calendar-refresh":983521,"calendar-refresh-outline":983555,"calendar-remove":983284,"calendar-remove-outline":986181,"calendar-search":985420,"calendar-search-outline":990062,"calendar-star":985555,"calendar-star-four-points":990239,"calendar-star-outline":990035,"calendar-start":988781,"calendar-start-outline":990063,"calendar-sync":986766,"calendar-sync-outline":986767,"calendar-text":983285,"calendar-text-outline":986182,"calendar-today":983286,"calendar-today-outline":989744,"calendar-week":985651,"calendar-week-begin":985652,"calendar-week-begin-outline":989745,"calendar-week-outline":989748,"calendar-weekend":986841,"calendar-weekend-outline":986842,"call-made":983287,"call-merge":983288,"call-missed":983289,"call-received":983290,"call-split":983291,"camcorder":983292,"camcorder-off":983295,"camera":983296,"camera-account":985291,"camera-burst":984723,"camera-control":985961,"camera-document":989297,"camera-document-off":989298,"camera-enhance":983297,"camera-enhance-outline":985962,"camera-flip":988633,"camera-flip-outline":988634,"camera-front":983298,"camera-front-variant":983299,"camera-gopro":984993,"camera-image":985292,"camera-iris":983300,"camera-lock":989716,"camera-lock-open":990221,"camera-lock-open-outline":990222,"camera-lock-outline":989717,"camera-marker":989607,"camera-marker-outline":989608,"camera-metering-center":984994,"camera-metering-matrix":984995,"camera-metering-partial":984996,"camera-metering-spot":984997,"camera-off":984543,"camera-off-outline":989631,"camera-outline":986461,"camera-party-mode":983301,"camera-plus":986843,"camera-plus-outline":986844,"camera-rear":983302,"camera-rear-variant":983303,"camera-retake":986649,"camera-retake-outline":986650,"camera-switch":983304,"camera-switch-outline":985162,"camera-timer":983305,"camera-wireless":986550,"camera-wireless-outline":986551,"campfire":986845,"cancel":984890,"candelabra":989138,"candelabra-fire":989139,"candle":984546,"candy":989552,"candy-off":989553,"candy-off-outline":989554,"candy-outline":989555,"candycane":983306,"cannabis":984998,"cannabis-off":988782,"caps-lock":985755,"car":983307,"car-2-plus":987157,"car-3-plus":987158,"car-arrow-left":988082,"car-arrow-right":988083,"car-back":986651,"car-battery":983308,"car-brake-abs":986183,"car-brake-alert":986184,"car-brake-fluid-level":989449,"car-brake-hold":986462,"car-brake-low-pressure":989450,"car-brake-parking":986463,"car-brake-retarder":987159,"car-brake-temperature":989451,"car-brake-worn-linings":989452,"car-child-seat":987043,"car-clock":989556,"car-clutch":987160,"car-cog":988108,"car-connected":983309,"car-convertible":984999,"car-coolant-level":987161,"car-cruise-control":986464,"car-defrost-front":986465,"car-defrost-rear":986466,"car-door":985963,"car-door-lock":987293,"car-door-lock-open":990337,"car-electric":985964,"car-electric-outline":988597,"car-emergency":988687,"car-esp":986185,"car-estate":985000,"car-hatchback":985001,"car-info":987582,"car-key":985965,"car-lifted-pickup":988461,"car-light-alert":989453,"car-light-dimmed":986186,"car-light-fog":986187,"car-light-high":986188,"car-limousine":985293,"car-multiple":985966,"car-off":986652,"car-outline":988397,"car-parking-lights":986467,"car-pickup":985002,"car-search":990093,"car-search-outline":990094,"car-seat":987044,"car-seat-cooler":987045,"car-seat-heater":987046,"car-select":989305,"car-settings":988109,"car-shift-pattern":986944,"car-side":985003,"car-speed-limiter":989454,"car-sports":985004,"car-tire-alert":986189,"car-traction-control":986468,"car-turbocharger":987162,"car-wash":983310,"car-windshield":987163,"car-windshield-outline":987164,"car-wireless":989304,"car-wrench":989204,"carabiner":988352,"caravan":985005,"card":985967,"card-account-details":984530,"card-account-details-outline":986539,"card-account-details-star":983715,"card-account-details-star-outline":984795,"card-account-mail":983438,"card-account-mail-outline":986776,"card-account-phone":986777,"card-account-phone-outline":986778,"card-bulleted":985968,"card-bulleted-off":985969,"card-bulleted-off-outline":985970,"card-bulleted-outline":985971,"card-bulleted-settings":985972,"card-bulleted-settings-outline":985973,"card-minus":988672,"card-minus-outline":988673,"card-multiple":989169,"card-multiple-outline":989170,"card-off":988674,"card-off-outline":988675,"card-outline":985974,"card-plus":987647,"card-plus-outline":987648,"card-remove":988676,"card-remove-outline":988677,"card-search":987252,"card-search-outline":987253,"card-text":985975,"card-text-outline":985976,"cards":984632,"cards-club":985294,"cards-club-outline":989343,"cards-diamond":985295,"cards-diamond-outline":987165,"cards-heart":985296,"cards-heart-outline":989344,"cards-outline":984633,"cards-playing":989345,"cards-playing-club":989346,"cards-playing-club-multiple":989347,"cards-playing-club-multiple-outline":989348,"cards-playing-club-outline":989349,"cards-playing-diamond":989350,"cards-playing-diamond-multiple":989351,"cards-playing-diamond-multiple-outline":989352,"cards-playing-diamond-outline":989353,"cards-playing-heart":989354,"cards-playing-heart-multiple":989355,"cards-playing-heart-multiple-outline":989356,"cards-playing-heart-outline":989357,"cards-playing-outline":984634,"cards-playing-spade":989358,"cards-playing-spade-multiple":989359,"cards-playing-spade-multiple-outline":989360,"cards-playing-spade-outline":989361,"cards-spade":985297,"cards-spade-outline":989362,"cards-variant":984775,"carrot":983311,"cart":983312,"cart-arrow-down":986470,"cart-arrow-right":986190,"cart-arrow-up":986471,"cart-check":988650,"cart-heart":989408,"cart-minus":986472,"cart-off":984683,"cart-outline":983313,"cart-percent":990126,"cart-plus":983314,"cart-remove":986473,"cart-variant":988651,"case-sensitive-alt":983315,"cash":983316,"cash-100":983317,"cash-check":988398,"cash-clock":989841,"cash-edit":990379,"cash-fast":989276,"cash-lock":988394,"cash-lock-open":988395,"cash-marker":986552,"cash-minus":987744,"cash-multiple":983318,"cash-off":990329,"cash-plus":987745,"cash-refund":985756,"cash-register":986356,"cash-remove":987746,"cash-sync":989842,"cassette":985556,"cast":983320,"cast-audio":987166,"cast-audio-variant":989001,"cast-connected":983321,"cast-education":986653,"cast-off":984970,"cast-variant":983071,"castle":983322,"cat":983323,"cctv":985006,"cctv-off":989279,"ceiling-fan":989079,"ceiling-fan-light":989080,"ceiling-light":984937,"ceiling-light-multiple":989405,"ceiling-light-multiple-outline":989406,"ceiling-light-outline":989127,"cellphone":983324,"cellphone-arrow-down":985557,"cellphone-arrow-down-variant":989637,"cellphone-basic":983326,"cellphone-charging":988055,"cellphone-check":989181,"cellphone-cog":985425,"cellphone-dock":983327,"cellphone-information":986945,"cellphone-key":985422,"cellphone-link":983329,"cellphone-link-off":983330,"cellphone-lock":985423,"cellphone-marker":989242,"cellphone-message":985299,"cellphone-message-off":987346,"cellphone-nfc":986768,"cellphone-nfc-off":987864,"cellphone-off":985424,"cellphone-play":987167,"cellphone-remove":985421,"cellphone-screenshot":985653,"cellphone-settings":983331,"cellphone-sound":985426,"cellphone-text":985298,"cellphone-wireless":985109,"centos":987418,"certificate":983332,"certificate-outline":987528,"chair-rolling":986952,"chair-school":983333,"chandelier":989075,"charity":986191,"charity-search":990338,"chart-arc":983334,"chart-areaspline":983335,"chart-areaspline-variant":986769,"chart-bar":983336,"chart-bar-stacked":984938,"chart-bell-curve":986192,"chart-bell-curve-cumulative":987047,"chart-box":988493,"chart-box-multiple":990413,"chart-box-multiple-outline":990414,"chart-box-outline":988494,"chart-box-plus-outline":988495,"chart-bubble":984547,"chart-donut":985007,"chart-donut-variant":985008,"chart-gantt":984684,"chart-histogram":983337,"chart-line":983338,"chart-line-stacked":984939,"chart-line-variant":985009,"chart-multiline":985300,"chart-multiple":987667,"chart-pie":983339,"chart-pie-outline":990175,"chart-ppf":988032,"chart-sankey":987615,"chart-sankey-variant":987616,"chart-scatter-plot":986770,"chart-scatter-plot-hexbin":984685,"chart-timeline":984686,"chart-timeline-variant":986771,"chart-timeline-variant-shimmer":988598,"chart-tree":986772,"chart-waterfall":989464,"chat":985977,"chat-alert":985978,"chat-alert-outline":987849,"chat-minus":988176,"chat-minus-outline":988179,"chat-outline":986846,"chat-plus":988175,"chat-plus-outline":988178,"chat-processing":985979,"chat-processing-outline":987850,"chat-question":988984,"chat-question-outline":988985,"chat-remove":988177,"chat-remove-outline":988180,"chat-sleep":987857,"chat-sleep-outline":987858,"check":983340,"check-all":983341,"check-bold":986654,"check-circle":984544,"check-circle-outline":984545,"check-decagram":984977,"check-decagram-outline":988992,"check-network":986195,"check-network-outline":986196,"check-outline":985173,"check-underline":986655,"check-underline-circle":986656,"check-underline-circle-outline":986657,"checkbook":985757,"checkbook-arrow-left":990237,"checkbook-arrow-right":990238,"checkbox-blank":983342,"checkbox-blank-badge":987510,"checkbox-blank-badge-outline":983319,"checkbox-blank-circle":983343,"checkbox-blank-circle-outline":983344,"checkbox-blank-off":987884,"checkbox-blank-off-outline":987885,"checkbox-blank-outline":983345,"checkbox-intermediate":985174,"checkbox-intermediate-variant":990036,"checkbox-marked":983346,"checkbox-marked-circle":983347,"checkbox-marked-circle-auto-outline":990246,"checkbox-marked-circle-minus-outline":990247,"checkbox-marked-circle-outline":983348,"checkbox-marked-circle-plus-outline":989479,"checkbox-marked-outline":983349,"checkbox-multiple-blank":983350,"checkbox-multiple-blank-circle":984635,"checkbox-multiple-blank-circle-outline":984636,"checkbox-multiple-blank-outline":983351,"checkbox-multiple-marked":983352,"checkbox-multiple-marked-circle":984637,"checkbox-multiple-marked-circle-outline":984638,"checkbox-multiple-marked-outline":983353,"checkbox-multiple-outline":986193,"checkbox-outline":986194,"checkerboard":983354,"checkerboard-minus":987650,"checkerboard-plus":987649,"checkerboard-remove":987651,"cheese":987833,"cheese-off":988142,"chef-hat":985980,"chemical-weapon":983355,"chess-bishop":985180,"chess-king":985175,"chess-knight":985176,"chess-pawn":985177,"chess-queen":985178,"chess-rook":985179,"chevron-double-down":983356,"chevron-double-left":983357,"chevron-double-right":983358,"chevron-double-up":983359,"chevron-down":983360,"chevron-down-box":985558,"chevron-down-box-outline":985559,"chevron-down-circle":985894,"chevron-down-circle-outline":985895,"chevron-left":983361,"chevron-left-box":985560,"chevron-left-box-outline":985561,"chevron-left-circle":985896,"chevron-left-circle-outline":985897,"chevron-right":983362,"chevron-right-box":985562,"chevron-right-box-outline":985563,"chevron-right-circle":985898,"chevron-right-circle-outline":985899,"chevron-triple-down":986553,"chevron-triple-left":986554,"chevron-triple-right":986555,"chevron-triple-up":986556,"chevron-up":983363,"chevron-up-box":985564,"chevron-up-box-outline":985565,"chevron-up-circle":985900,"chevron-up-circle-outline":985901,"chili-alert":989162,"chili-alert-outline":989163,"chili-hot":985010,"chili-hot-outline":989164,"chili-medium":985011,"chili-medium-outline":989165,"chili-mild":985012,"chili-mild-outline":989166,"chili-off":988263,"chili-off-outline":989167,"chip":984602,"church":983364,"church-outline":989954,"cigar":987529,"cigar-off":988187,"circle":984933,"circle-box":988636,"circle-box-outline":988637,"circle-double":986773,"circle-edit-outline":985301,"circle-expand":986774,"circle-half":988053,"circle-half-full":988054,"circle-medium":985566,"circle-multiple":985912,"circle-multiple-outline":984725,"circle-off-outline":987347,"circle-opacity":989267,"circle-outline":984934,"circle-slice-1":985758,"circle-slice-2":985759,"circle-slice-3":985760,"circle-slice-4":985761,"circle-slice-5":985762,"circle-slice-6":985763,"circle-slice-7":985764,"circle-slice-8":985765,"circle-small":985567,"circular-saw":986658,"city":983366,"city-switch":990248,"city-variant":985654,"city-variant-outline":985655,"clipboard":983367,"clipboard-account":983368,"clipboard-account-outline":986197,"clipboard-alert":983369,"clipboard-alert-outline":986359,"clipboard-arrow-down":983370,"clipboard-arrow-down-outline":986198,"clipboard-arrow-left":983371,"clipboard-arrow-left-outline":986360,"clipboard-arrow-right":986361,"clipboard-arrow-right-outline":986362,"clipboard-arrow-up":986199,"clipboard-arrow-up-outline":986200,"clipboard-check":983374,"clipboard-check-multiple":987747,"clipboard-check-multiple-outline":987748,"clipboard-check-outline":985256,"clipboard-clock":988898,"clipboard-clock-outline":988899,"clipboard-edit":988389,"clipboard-edit-outline":988390,"clipboard-file":987749,"clipboard-file-outline":987750,"clipboard-flow":984776,"clipboard-flow-outline":987415,"clipboard-list":987348,"clipboard-list-outline":987349,"clipboard-minus":988696,"clipboard-minus-outline":988697,"clipboard-multiple":987751,"clipboard-multiple-outline":987752,"clipboard-off":988698,"clipboard-off-outline":988699,"clipboard-outline":983372,"clipboard-play":986201,"clipboard-play-multiple":987753,"clipboard-play-multiple-outline":987754,"clipboard-play-outline":986202,"clipboard-plus":984913,"clipboard-plus-outline":987935,"clipboard-pulse":985181,"clipboard-pulse-outline":985182,"clipboard-remove":988700,"clipboard-remove-outline":988701,"clipboard-search":988702,"clipboard-search-outline":988703,"clipboard-text":983373,"clipboard-text-clock":989433,"clipboard-text-clock-outline":989434,"clipboard-text-multiple":987755,"clipboard-text-multiple-outline":987756,"clipboard-text-off":988704,"clipboard-text-off-outline":988705,"clipboard-text-outline":985656,"clipboard-text-play":986203,"clipboard-text-play-outline":986204,"clipboard-text-search":988706,"clipboard-text-search-outline":988707,"clippy":983375,"clock":985428,"clock-alert":985429,"clock-alert-outline":984526,"clock-check":987048,"clock-check-outline":987049,"clock-digital":986775,"clock-edit":989626,"clock-edit-outline":989627,"clock-end":983377,"clock-fast":983378,"clock-in":983379,"clock-minus":989283,"clock-minus-outline":989284,"clock-out":983380,"clock-outline":983376,"clock-plus":989281,"clock-plus-outline":989282,"clock-remove":989285,"clock-remove-outline":989286,"clock-star-four-points":990249,"clock-star-four-points-outline":990250,"clock-start":983381,"clock-time-eight":988230,"clock-time-eight-outline":988242,"clock-time-eleven":988233,"clock-time-eleven-outline":988245,"clock-time-five":988227,"clock-time-five-outline":988239,"clock-time-four":988226,"clock-time-four-outline":988238,"clock-time-nine":988231,"clock-time-nine-outline":988243,"clock-time-one":988223,"clock-time-one-outline":988235,"clock-time-seven":988229,"clock-time-seven-outline":988241,"clock-time-six":988228,"clock-time-six-outline":988240,"clock-time-ten":988232,"clock-time-ten-outline":988244,"clock-time-three":988225,"clock-time-three-outline":988237,"clock-time-twelve":988234,"clock-time-twelve-outline":988246,"clock-time-two":988224,"clock-time-two-outline":988236,"close":983382,"close-box":983383,"close-box-multiple":986205,"close-box-multiple-outline":986206,"close-box-outline":983384,"close-circle":983385,"close-circle-multiple":984618,"close-circle-multiple-outline":985219,"close-circle-outline":983386,"close-network":983387,"close-network-outline":986207,"close-octagon":983388,"close-octagon-outline":983389,"close-outline":984777,"close-thick":988056,"closed-caption":983390,"closed-caption-outline":986557,"cloud":983391,"cloud-alert":985568,"cloud-alert-outline":990176,"cloud-arrow-down":990177,"cloud-arrow-down-outline":990178,"cloud-arrow-left":990179,"cloud-arrow-left-outline":990180,"cloud-arrow-right":990181,"cloud-arrow-right-outline":990182,"cloud-arrow-up":990183,"cloud-arrow-up-outline":990184,"cloud-braces":985013,"cloud-cancel":990185,"cloud-cancel-outline":990186,"cloud-check":990187,"cloud-check-outline":990188,"cloud-check-variant":983392,"cloud-check-variant-outline":987852,"cloud-circle":983393,"cloud-circle-outline":990189,"cloud-clock":990190,"cloud-clock-outline":990191,"cloud-cog":990192,"cloud-cog-outline":990193,"cloud-download":983394,"cloud-download-outline":985981,"cloud-key":990369,"cloud-key-outline":990370,"cloud-lock":987633,"cloud-lock-open":990194,"cloud-lock-open-outline":990195,"cloud-lock-outline":987634,"cloud-minus":990196,"cloud-minus-outline":990197,"cloud-off":990198,"cloud-off-outline":983396,"cloud-outline":983395,"cloud-percent":989749,"cloud-percent-outline":989750,"cloud-plus":990199,"cloud-plus-outline":990200,"cloud-print":983397,"cloud-print-outline":983398,"cloud-question":985657,"cloud-question-outline":990201,"cloud-refresh":990202,"cloud-refresh-outline":990203,"cloud-refresh-variant":984362,"cloud-refresh-variant-outline":990204,"cloud-remove":990205,"cloud-remove-outline":990206,"cloud-search":985430,"cloud-search-outline":985431,"cloud-sync":984639,"cloud-sync-outline":987862,"cloud-tags":985014,"cloud-upload":983399,"cloud-upload-outline":985982,"clouds":990101,"clover":985110,"clover-outline":990306,"coach-lamp":987168,"coach-lamp-variant":989751,"coat-rack":987294,"code-array":983400,"code-block-braces":990339,"code-block-brackets":990340,"code-block-parentheses":990341,"code-block-tags":990342,"code-braces":983401,"code-braces-box":987350,"code-brackets":983402,"code-equal":983403,"code-greater-than":983404,"code-greater-than-or-equal":983405,"code-json":984614,"code-less-than":983406,"code-less-than-or-equal":983407,"code-not-equal":983408,"code-not-equal-variant":983409,"code-parentheses":983410,"code-parentheses-box":987351,"code-string":983411,"code-tags":983412,"code-tags-check":984724,"codepen":983413,"coffee":983414,"coffee-maker":987295,"coffee-maker-check":989489,"coffee-maker-check-outline":989490,"coffee-maker-outline":989211,"coffee-off":987050,"coffee-off-outline":987051,"coffee-outline":984778,"coffee-to-go":983415,"coffee-to-go-outline":987918,"coffin":985983,"cog":984211,"cog-box":984212,"cog-clockwise":987613,"cog-counterclockwise":987614,"cog-off":988110,"cog-off-outline":988111,"cog-outline":985275,"cog-pause":989491,"cog-pause-outline":989492,"cog-play":989493,"cog-play-outline":989494,"cog-refresh":988254,"cog-refresh-outline":988255,"cog-stop":989495,"cog-stop-outline":989496,"cog-sync":988256,"cog-sync-outline":988257,"cog-transfer":987227,"cog-transfer-outline":987228,"cogs":985302,"collage":984640,"collapse-all":985766,"collapse-all-outline":985767,"color-helper":983417,"comma":986659,"comma-box":986667,"comma-box-outline":986660,"comma-circle":986661,"comma-circle-outline":986662,"comment":983418,"comment-account":983419,"comment-account-outline":983420,"comment-alert":983421,"comment-alert-outline":983422,"comment-arrow-left":985569,"comment-arrow-left-outline":985570,"comment-arrow-right":985571,"comment-arrow-right-outline":985572,"comment-bookmark":988590,"comment-bookmark-outline":988591,"comment-check":983423,"comment-check-outline":983424,"comment-edit":987583,"comment-edit-outline":987844,"comment-eye":985658,"comment-eye-outline":985659,"comment-flash":988592,"comment-flash-outline":988593,"comment-minus":988639,"comment-minus-outline":988640,"comment-multiple":985183,"comment-multiple-outline":983425,"comment-off":988641,"comment-off-outline":988642,"comment-outline":983426,"comment-plus":985573,"comment-plus-outline":983427,"comment-processing":983428,"comment-processing-outline":983429,"comment-question":985111,"comment-question-outline":983430,"comment-quote":987169,"comment-quote-outline":987170,"comment-remove":984542,"comment-remove-outline":983431,"comment-search":985660,"comment-search-outline":985661,"comment-text":983432,"comment-text-multiple":985184,"comment-text-multiple-outline":985185,"comment-text-outline":983433,"compare":983434,"compare-horizontal":988306,"compare-remove":989363,"compare-vertical":988307,"compass":983435,"compass-off":985984,"compass-off-outline":985985,"compass-outline":983436,"compass-rose":988034,"compost":989752,"cone":989516,"cone-off":989517,"connection":988694,"console":983437,"console-line":985015,"console-network":985257,"console-network-outline":986208,"consolidate":987352,"contactless-payment":986474,"contactless-payment-circle":983841,"contactless-payment-circle-outline":984072,"contacts":984779,"contacts-outline":984504,"contain":985662,"contain-end":985663,"contain-start":985664,"content-copy":983439,"content-cut":983440,"content-duplicate":983441,"content-paste":983442,"content-save":983443,"content-save-alert":986946,"content-save-alert-outline":986947,"content-save-all":983444,"content-save-all-outline":986948,"content-save-check":989418,"content-save-check-outline":989419,"content-save-cog":988251,"content-save-cog-outline":988252,"content-save-edit":986363,"content-save-edit-outline":986364,"content-save-minus":990019,"content-save-minus-outline":990020,"content-save-move":986663,"content-save-move-outline":986664,"content-save-off":988739,"content-save-off-outline":988740,"content-save-outline":985112,"content-save-plus":990017,"content-save-plus-outline":990018,"content-save-settings":984603,"content-save-settings-outline":985902,"contrast":983445,"contrast-box":983446,"contrast-circle":983447,"controller":983732,"controller-classic":985986,"controller-classic-outline":985987,"controller-off":983733,"cookie":983448,"cookie-alert":988880,"cookie-alert-outline":988881,"cookie-check":988882,"cookie-check-outline":988883,"cookie-clock":988900,"cookie-clock-outline":988901,"cookie-cog":988884,"cookie-cog-outline":988885,"cookie-edit":988902,"cookie-edit-outline":988903,"cookie-lock":988904,"cookie-lock-outline":988905,"cookie-minus":988890,"cookie-minus-outline":988891,"cookie-off":988906,"cookie-off-outline":988907,"cookie-outline":988894,"cookie-plus":988886,"cookie-plus-outline":988887,"cookie-refresh":988908,"cookie-refresh-outline":988909,"cookie-remove":988888,"cookie-remove-outline":988889,"cookie-settings":988892,"cookie-settings-outline":988893,"coolant-temperature":984008,"copyleft":989497,"copyright":984550,"cordova":985432,"corn":985016,"corn-off":988143,"cosine-wave":988281,"counter":983449,"countertop":989212,"countertop-outline":989213,"cow":983450,"cow-off":989436,"cpu-32-bit":986847,"cpu-64-bit":986848,"cradle":989579,"cradle-outline":989585,"crane":985186,"creation":984692,"creation-outline":990251,"creative-commons":986475,"credit-card":987119,"credit-card-check":988112,"credit-card-check-outline":988113,"credit-card-chip":989455,"credit-card-chip-outline":989456,"credit-card-clock":986849,"credit-card-clock-outline":986850,"credit-card-edit":989143,"credit-card-edit-outline":989144,"credit-card-fast":989457,"credit-card-fast-outline":989458,"credit-card-lock":989415,"credit-card-lock-outline":989416,"credit-card-marker":984744,"credit-card-marker-outline":986558,"credit-card-minus":987052,"credit-card-minus-outline":987053,"credit-card-multiple":987120,"credit-card-multiple-outline":983452,"credit-card-off":987121,"credit-card-off-outline":984548,"credit-card-outline":983451,"credit-card-plus":987122,"credit-card-plus-outline":984694,"credit-card-refresh":988741,"credit-card-refresh-outline":988742,"credit-card-refund":987123,"credit-card-refund-outline":985768,"credit-card-remove":987054,"credit-card-remove-outline":987055,"credit-card-scan":987124,"credit-card-scan-outline":983453,"credit-card-search":988743,"credit-card-search-outline":988744,"credit-card-settings":987125,"credit-card-settings-outline":985303,"credit-card-sync":988745,"credit-card-sync-outline":988746,"credit-card-wireless":985090,"credit-card-wireless-off":984442,"credit-card-wireless-off-outline":984443,"credit-card-wireless-outline":986476,"cricket":986477,"crop":983454,"crop-free":983455,"crop-landscape":983456,"crop-portrait":983457,"crop-rotate":984726,"crop-square":983458,"cross":985427,"cross-bolnisi":986349,"cross-celtic":986357,"cross-outline":986358,"crosshairs":983459,"crosshairs-gps":983460,"crosshairs-off":986949,"crosshairs-question":987446,"crowd":989557,"crown":983461,"crown-circle":989148,"crown-circle-outline":989149,"crown-outline":987600,"cryengine":985433,"crystal-ball":985903,"cube":983462,"cube-off":988188,"cube-off-outline":988189,"cube-outline":983463,"cube-scan":985988,"cube-send":983464,"cube-unfolded":983465,"cup":983466,"cup-off":984549,"cup-off-outline":988029,"cup-outline":987919,"cup-water":983467,"cupboard":986950,"cupboard-outline":986951,"cupcake":985434,"curling":985187,"currency-bdt":985188,"currency-brl":985989,"currency-btc":983468,"currency-cny":985018,"currency-eth":985019,"currency-eur":983469,"currency-eur-off":987925,"currency-fra":989753,"currency-gbp":983470,"currency-ils":986209,"currency-inr":983471,"currency-jpy":985020,"currency-krw":985021,"currency-kzt":985189,"currency-mnt":988434,"currency-ngn":983472,"currency-php":985574,"currency-rial":986780,"currency-rub":983473,"currency-rupee":989558,"currency-sign":985022,"currency-thb":990213,"currency-try":983474,"currency-twd":985023,"currency-uah":990107,"currency-usd":983489,"currency-usd-off":984698,"current-ac":988288,"current-dc":985436,"cursor-default":983488,"cursor-default-click":986365,"cursor-default-click-outline":986366,"cursor-default-gesture":987431,"cursor-default-gesture-outline":987432,"cursor-default-outline":983487,"cursor-move":983486,"cursor-pointer":983485,"cursor-text":984551,"curtains":989254,"curtains-closed":989255,"cylinder":989518,"cylinder-off":989519,"dance-ballroom":988667,"dance-pole":988536,"data-matrix":988476,"data-matrix-edit":988477,"data-matrix-minus":988478,"data-matrix-plus":988479,"data-matrix-remove":988480,"data-matrix-scan":988481,"database":983484,"database-alert":988730,"database-alert-outline":988708,"database-arrow-down":988731,"database-arrow-down-outline":988709,"database-arrow-left":988732,"database-arrow-left-outline":988710,"database-arrow-right":988733,"database-arrow-right-outline":988711,"database-arrow-up":988734,"database-arrow-up-outline":988712,"database-check":985769,"database-check-outline":988713,"database-clock":988735,"database-clock-outline":988714,"database-cog":988747,"database-cog-outline":988748,"database-edit":985990,"database-edit-outline":988715,"database-export":985438,"database-export-outline":988716,"database-eye":989471,"database-eye-off":989472,"database-eye-off-outline":989473,"database-eye-outline":989474,"database-import":985437,"database-import-outline":988717,"database-lock":985770,"database-lock-outline":988718,"database-marker":987894,"database-marker-outline":988719,"database-minus":983483,"database-minus-outline":988720,"database-off":988736,"database-off-outline":988721,"database-outline":988722,"database-plus":983482,"database-plus-outline":988723,"database-refresh":984514,"database-refresh-outline":988724,"database-remove":986368,"database-remove-outline":988725,"database-search":985190,"database-search-outline":988726,"database-settings":986369,"database-settings-outline":988727,"database-sync":986367,"database-sync-outline":988728,"death-star":985304,"death-star-variant":985305,"deathly-hallows":985991,"debian":985306,"debug-step-into":983481,"debug-step-out":983480,"debug-step-over":983479,"decagram":984940,"decagram-outline":984941,"decimal":987297,"decimal-comma":987298,"decimal-comma-decrease":987299,"decimal-comma-increase":987300,"decimal-decrease":983478,"decimal-increase":983477,"delete":983476,"delete-alert":987301,"delete-alert-outline":987302,"delete-circle":984707,"delete-circle-outline":985992,"delete-clock":988502,"delete-clock-outline":988503,"delete-empty":984780,"delete-empty-outline":986781,"delete-forever":984552,"delete-forever-outline":985993,"delete-off":987303,"delete-off-outline":987304,"delete-outline":985575,"delete-restore":985113,"delete-sweep":984553,"delete-sweep-outline":986210,"delete-variant":983475,"delta":983490,"desk":987705,"desk-lamp":985439,"desk-lamp-off":989983,"desk-lamp-on":989984,"deskphone":983491,"desktop-classic":985024,"desktop-tower":983493,"desktop-tower-monitor":985771,"details":983494,"dev-to":986478,"developer-board":984727,"deviantart":983495,"devices":987056,"dharmachakra":985419,"diabetes":987430,"dialpad":984604,"diameter":986211,"diameter-outline":986212,"diameter-variant":986213,"diamond":985994,"diamond-outline":985995,"diamond-stone":983496,"diaper-outline":990415,"dice-1":983498,"dice-1-outline":987466,"dice-2":983499,"dice-2-outline":987467,"dice-3":983500,"dice-3-outline":987468,"dice-4":983501,"dice-4-outline":987469,"dice-5":983502,"dice-5-outline":987470,"dice-6":983503,"dice-6-outline":987471,"dice-d10":987475,"dice-d10-outline":984943,"dice-d12":987476,"dice-d12-outline":985191,"dice-d20":987477,"dice-d20-outline":984554,"dice-d4":987472,"dice-d4-outline":984555,"dice-d6":987473,"dice-d6-outline":984557,"dice-d8":987474,"dice-d8-outline":984556,"dice-multiple":984942,"dice-multiple-outline":987478,"digital-ocean":987703,"dip-switch":985025,"directions":983504,"directions-fork":984641,"disc":984558,"disc-alert":983505,"disc-player":985440,"dishwasher":985772,"dishwasher-alert":987576,"dishwasher-off":987577,"disqus":983506,"distribute-horizontal-center":987593,"distribute-horizontal-left":987592,"distribute-horizontal-right":987594,"distribute-vertical-bottom":987595,"distribute-vertical-center":987596,"distribute-vertical-top":987597,"diversify":989303,"diving":989559,"diving-flippers":986559,"diving-helmet":986560,"diving-scuba":990071,"diving-scuba-flag":986562,"diving-scuba-mask":986561,"diving-scuba-tank":986563,"diving-scuba-tank-multiple":986564,"diving-snorkel":986565,"division":983508,"division-box":983509,"dlna":985665,"dna":984708,"dns":983510,"dns-outline":985996,"dock-bottom":987305,"dock-left":987306,"dock-right":987307,"dock-top":988435,"dock-window":987308,"docker":985192,"doctor":985666,"dog":985667,"dog-service":985773,"dog-side":985668,"dog-side-off":988910,"dolby":984755,"dolly":986782,"dolphin":989364,"domain":983511,"domain-off":986479,"domain-plus":987309,"domain-remove":987310,"domain-switch":990252,"dome-light":988190,"domino-mask":987171,"donkey":985026,"door":985114,"door-closed":985115,"door-closed-cancel":990355,"door-closed-lock":987311,"door-open":985116,"door-sliding":989214,"door-sliding-lock":989215,"door-sliding-open":989216,"doorbell":987878,"doorbell-video":985193,"dot-net":985774,"dots-circle":989560,"dots-grid":988668,"dots-hexagon":988671,"dots-horizontal":983512,"dots-horizontal-circle":985027,"dots-horizontal-circle-outline":985997,"dots-square":988669,"dots-triangle":988670,"dots-vertical":983513,"dots-vertical-circle":985028,"dots-vertical-circle-outline":985998,"download":983514,"download-box":988258,"download-box-outline":988259,"download-circle":988260,"download-circle-outline":988261,"download-lock":987936,"download-lock-outline":987937,"download-multiple":985577,"download-multiple-outline":990416,"download-network":984820,"download-network-outline":986214,"download-off":987312,"download-off-outline":987313,"download-outline":985999,"drag":983515,"drag-horizontal":983516,"drag-horizontal-variant":987888,"drag-variant":986000,"drag-vertical":983517,"drag-vertical-variant":987889,"drama-masks":986370,"draw":986953,"draw-pen":989625,"drawing":983518,"drawing-box":983519,"dresser":986954,"dresser-outline":986955,"drone":983522,"dropbox":983523,"drupal":983524,"duck":983525,"dumbbell":983526,"dump-truck":986215,"ear-hearing":985029,"ear-hearing-loop":989934,"ear-hearing-off":985669,"earbuds":989263,"earbuds-off":989264,"earbuds-off-outline":989265,"earbuds-outline":989266,"earth":983527,"earth-arrow-down":990343,"earth-arrow-left":990344,"earth-arrow-right":987921,"earth-arrow-up":990345,"earth-box":984781,"earth-box-minus":988167,"earth-box-off":984782,"earth-box-plus":988166,"earth-box-remove":988168,"earth-minus":988164,"earth-off":983528,"earth-plus":988163,"earth-remove":988165,"egg":985775,"egg-easter":985776,"egg-fried":989258,"egg-off":988144,"egg-off-outline":988145,"egg-outline":988146,"eiffel-tower":988523,"eight-track":985578,"eject":983530,"eject-circle":989987,"eject-circle-outline":989988,"eject-outline":986001,"electric-switch":986783,"electric-switch-closed":987353,"electron-framework":987172,"elephant":985030,"elevation-decline":983531,"elevation-rise":983532,"elevator":983533,"elevator-down":987842,"elevator-passenger":988033,"elevator-passenger-off":989561,"elevator-passenger-off-outline":989562,"elevator-passenger-outline":989563,"elevator-up":987841,"ellipse":986784,"ellipse-outline":986785,"email":983534,"email-alert":984783,"email-alert-outline":986434,"email-arrow-left":987354,"email-arrow-left-outline":987355,"email-arrow-right":987356,"email-arrow-right-outline":987357,"email-box":986371,"email-check":985777,"email-check-outline":985778,"email-edit":986851,"email-edit-outline":986852,"email-fast":989295,"email-fast-outline":989296,"email-heart-outline":990299,"email-lock":983537,"email-lock-outline":990049,"email-mark-as-unread":986002,"email-minus":986853,"email-minus-outline":986854,"email-multiple":986855,"email-multiple-outline":986856,"email-newsletter":987057,"email-off":988131,"email-off-outline":988132,"email-open":983535,"email-open-heart-outline":990300,"email-open-multiple":986857,"email-open-multiple-outline":986858,"email-open-outline":984559,"email-outline":983536,"email-plus":985579,"email-plus-outline":985580,"email-remove":988769,"email-remove-outline":988770,"email-seal":989531,"email-seal-outline":989532,"email-search":985441,"email-search-outline":985442,"email-sync":987847,"email-sync-outline":987848,"email-variant":984560,"ember":985904,"emby":984756,"emoticon":986216,"emoticon-angry":986217,"emoticon-angry-outline":986218,"emoticon-confused":987358,"emoticon-confused-outline":987359,"emoticon-cool":986219,"emoticon-cool-outline":983539,"emoticon-cry":986220,"emoticon-cry-outline":986221,"emoticon-dead":986222,"emoticon-dead-outline":984731,"emoticon-devil":986223,"emoticon-devil-outline":983540,"emoticon-excited":986224,"emoticon-excited-outline":984732,"emoticon-frown":986956,"emoticon-frown-outline":986957,"emoticon-happy":986225,"emoticon-happy-outline":983541,"emoticon-kiss":986226,"emoticon-kiss-outline":986227,"emoticon-lol":987668,"emoticon-lol-outline":987669,"emoticon-minus":990386,"emoticon-minus-outline":990387,"emoticon-neutral":986228,"emoticon-neutral-outline":983542,"emoticon-outline":983538,"emoticon-plus":990388,"emoticon-plus-outline":990389,"emoticon-poop":983543,"emoticon-poop-outline":986229,"emoticon-remove":990390,"emoticon-remove-outline":990391,"emoticon-sad":986230,"emoticon-sad-outline":983544,"emoticon-sick":988540,"emoticon-sick-outline":988541,"emoticon-tongue":983545,"emoticon-tongue-outline":986231,"emoticon-wink":986232,"emoticon-wink-outline":986233,"engine":983546,"engine-off":985670,"engine-off-outline":985671,"engine-outline":983547,"epsilon":987360,"equal":983548,"equal-box":983549,"equalizer":986786,"equalizer-outline":986787,"eraser":983550,"eraser-variant":984642,"escalator":983551,"escalator-box":988057,"escalator-down":987840,"escalator-up":987839,"eslint":986234,"et":985779,"ethereum":985194,"ethernet":983552,"ethernet-cable":983553,"ethernet-cable-off":983554,"ethernet-off":990417,"ev-plug-ccs1":988441,"ev-plug-ccs2":988442,"ev-plug-chademo":988443,"ev-plug-tesla":988444,"ev-plug-type1":988445,"ev-plug-type2":988446,"ev-station":984561,"evernote":983556,"excavator":987173,"exclamation":983557,"exclamation-thick":987704,"exit-run":985672,"exit-to-app":983558,"expand-all":985780,"expand-all-outline":985781,"expansion-card":985262,"expansion-card-variant":987058,"exponent":985443,"exponent-box":985444,"export":983559,"export-variant":986003,"eye":983560,"eye-arrow-left":989437,"eye-arrow-left-outline":989438,"eye-arrow-right":989439,"eye-arrow-right-outline":989440,"eye-check":986372,"eye-check-outline":986373,"eye-circle":986004,"eye-circle-outline":986005,"eye-closed":990371,"eye-lock":990214,"eye-lock-open":990215,"eye-lock-open-outline":990216,"eye-lock-outline":990217,"eye-minus":987174,"eye-minus-outline":987175,"eye-off":983561,"eye-off-outline":984785,"eye-outline":984784,"eye-plus":985195,"eye-plus-outline":985196,"eye-refresh":989564,"eye-refresh-outline":989565,"eye-remove":988643,"eye-remove-outline":988644,"eye-settings":985197,"eye-settings-outline":985198,"eyedropper":983562,"eyedropper-minus":988125,"eyedropper-off":988127,"eyedropper-plus":988124,"eyedropper-remove":988126,"eyedropper-variant":983563,"face-agent":986480,"face-man":984643,"face-man-outline":986006,"face-man-profile":984644,"face-man-shimmer":988620,"face-man-shimmer-outline":988621,"face-mask":988550,"face-mask-outline":988551,"face-recognition":986235,"face-woman":987255,"face-woman-outline":987256,"face-woman-profile":987254,"face-woman-shimmer":988622,"face-woman-shimmer-outline":988623,"facebook":983564,"facebook-gaming":985053,"facebook-messenger":983566,"facebook-workplace":985905,"factory":983567,"family-tree":988686,"fan":983568,"fan-alert":988268,"fan-auto":988957,"fan-chevron-down":988269,"fan-chevron-up":988270,"fan-clock":989754,"fan-minus":988272,"fan-off":985117,"fan-plus":988271,"fan-remove":988273,"fan-speed-1":988274,"fan-speed-2":988275,"fan-speed-3":988276,"fast-forward":983569,"fast-forward-10":986481,"fast-forward-15":989498,"fast-forward-30":986374,"fast-forward-45":989970,"fast-forward-5":987640,"fast-forward-60":988683,"fast-forward-outline":984786,"faucet":989993,"faucet-variant":989994,"fax":983570,"feather":984787,"feature-search":985673,"feature-search-outline":985674,"fedora":985307,"fence":989082,"fence-electric":989174,"fencing":988353,"ferris-wheel":986788,"ferry":983571,"file":983572,"file-account":984891,"file-account-outline":987176,"file-alert":985675,"file-alert-outline":985676,"file-arrow-left-right":989843,"file-arrow-left-right-outline":989844,"file-arrow-up-down":989845,"file-arrow-up-down-outline":989846,"file-cabinet":985782,"file-cad":986859,"file-cad-box":986860,"file-cancel":986566,"file-cancel-outline":986567,"file-certificate":987526,"file-certificate-outline":987527,"file-chart":983573,"file-chart-check":989638,"file-chart-check-outline":989639,"file-chart-outline":987177,"file-check":983574,"file-check-outline":986665,"file-clock":987873,"file-clock-outline":987874,"file-cloud":983575,"file-cloud-outline":987178,"file-code":983598,"file-code-outline":987179,"file-cog":987259,"file-cog-outline":987260,"file-compare":985258,"file-delimited":983576,"file-delimited-outline":986789,"file-document":983577,"file-document-alert":989847,"file-document-alert-outline":989848,"file-document-arrow-right":990223,"file-document-arrow-right-outline":990224,"file-document-check":989849,"file-document-check-outline":989850,"file-document-edit":986568,"file-document-edit-outline":986569,"file-document-minus":989851,"file-document-minus-outline":989852,"file-document-multiple":988439,"file-document-multiple-outline":988440,"file-document-outline":985582,"file-document-plus":989853,"file-document-plus-outline":989854,"file-document-refresh":990330,"file-document-refresh-outline":990331,"file-document-remove":989855,"file-document-remove-outline":989856,"file-download":985445,"file-download-outline":985446,"file-edit":987623,"file-edit-outline":987624,"file-excel":983579,"file-excel-box":983580,"file-excel-box-outline":987180,"file-excel-outline":987181,"file-export":983581,"file-export-outline":987182,"file-eye":986570,"file-eye-outline":986571,"file-find":983582,"file-find-outline":986007,"file-gif-box":986488,"file-hidden":984595,"file-image":983583,"file-image-marker":989042,"file-image-marker-outline":989043,"file-image-minus":989499,"file-image-minus-outline":989500,"file-image-outline":986800,"file-image-plus":989501,"file-image-plus-outline":989502,"file-image-remove":989503,"file-image-remove-outline":989504,"file-import":983584,"file-import-outline":987183,"file-jpg-box":983589,"file-key":987524,"file-key-outline":987525,"file-link":987511,"file-link-outline":987512,"file-lock":983585,"file-lock-open":989640,"file-lock-open-outline":989641,"file-lock-outline":987184,"file-marker":989044,"file-marker-outline":989045,"file-minus":989857,"file-minus-outline":989858,"file-move":985785,"file-move-outline":987185,"file-multiple":983586,"file-multiple-outline":987186,"file-music":983587,"file-music-outline":986666,"file-outline":983588,"file-pdf-box":983590,"file-percent":985118,"file-percent-outline":987187,"file-phone":987513,"file-phone-outline":987514,"file-plus":984914,"file-plus-outline":986861,"file-png-box":986669,"file-powerpoint":983591,"file-powerpoint-box":983592,"file-powerpoint-box-outline":987188,"file-powerpoint-outline":987189,"file-presentation-box":983593,"file-question":985199,"file-question-outline":987190,"file-refresh":985368,"file-refresh-outline":984385,"file-remove":986008,"file-remove-outline":987191,"file-replace":985906,"file-replace-outline":985907,"file-restore":984688,"file-restore-outline":987192,"file-rotate-left":989755,"file-rotate-left-outline":989756,"file-rotate-right":989757,"file-rotate-right-outline":989758,"file-search":986236,"file-search-outline":986237,"file-send":983594,"file-send-outline":987193,"file-settings":987257,"file-settings-outline":987258,"file-sign":989635,"file-star":987194,"file-star-four-points":990253,"file-star-four-points-outline":990254,"file-star-outline":987195,"file-swap":987060,"file-swap-outline":987061,"file-sync":987670,"file-sync-outline":987671,"file-table":986238,"file-table-box":987361,"file-table-box-multiple":987362,"file-table-box-multiple-outline":987363,"file-table-box-outline":987364,"file-table-outline":986239,"file-tree":984645,"file-tree-outline":988114,"file-undo":985308,"file-undo-outline":987196,"file-upload":985677,"file-upload-outline":985678,"file-video":983595,"file-video-outline":986668,"file-word":983596,"file-word-box":983597,"file-word-box-outline":987197,"file-word-outline":987198,"file-xml-box":990027,"film":983599,"filmstrip":983600,"filmstrip-box":983858,"filmstrip-box-multiple":986392,"filmstrip-off":983601,"filter":983602,"filter-check":989420,"filter-check-outline":989421,"filter-cog":989859,"filter-cog-outline":989860,"filter-menu":987365,"filter-menu-outline":987366,"filter-minus":986862,"filter-minus-outline":986863,"filter-multiple":989759,"filter-multiple-outline":989760,"filter-off":988399,"filter-off-outline":988400,"filter-outline":983603,"filter-plus":986864,"filter-plus-outline":986865,"filter-remove":983604,"filter-remove-outline":983605,"filter-settings":989861,"filter-settings-outline":989862,"filter-variant":983606,"filter-variant-minus":987410,"filter-variant-plus":987411,"filter-variant-remove":987199,"finance":985119,"find-replace":984788,"fingerprint":983607,"fingerprint-off":986801,"fire":983608,"fire-alert":988631,"fire-circle":989191,"fire-extinguisher":986866,"fire-hydrant":987447,"fire-hydrant-alert":987448,"fire-hydrant-off":987449,"fire-off":988962,"fire-station":990403,"fire-truck":985259,"firebase":985447,"firefox":983609,"fireplace":986670,"fireplace-off":986671,"firewire":984510,"firework":986672,"firework-off":988963,"fish":983610,"fish-off":988147,"fishbowl":986867,"fishbowl-outline":986868,"fit-to-page":986869,"fit-to-page-outline":986870,"fit-to-screen":989428,"fit-to-screen-outline":989429,"flag":983611,"flag-checkered":983612,"flag-minus":986009,"flag-minus-outline":987314,"flag-off":989422,"flag-off-outline":989423,"flag-outline":983613,"flag-plus":986010,"flag-plus-outline":987315,"flag-remove":986011,"flag-remove-outline":987316,"flag-triangle":983615,"flag-variant":983616,"flag-variant-minus":990132,"flag-variant-minus-outline":990133,"flag-variant-off":990128,"flag-variant-off-outline":990129,"flag-variant-outline":983614,"flag-variant-plus":990130,"flag-variant-plus-outline":990131,"flag-variant-remove":990134,"flag-variant-remove-outline":990135,"flare":986482,"flash":983617,"flash-alert":986871,"flash-alert-outline":986872,"flash-auto":983618,"flash-off":983619,"flash-off-outline":990021,"flash-outline":984789,"flash-red-eye":984699,"flash-triangle":989981,"flash-triangle-outline":989982,"flashlight":983620,"flashlight-off":983621,"flask":983187,"flask-empty":983188,"flask-empty-minus":987706,"flask-empty-minus-outline":987707,"flask-empty-off":988148,"flask-empty-off-outline":988149,"flask-empty-outline":983189,"flask-empty-plus":987708,"flask-empty-plus-outline":987709,"flask-empty-remove":987710,"flask-empty-remove-outline":987711,"flask-minus":987712,"flask-minus-outline":987713,"flask-off":988150,"flask-off-outline":988151,"flask-outline":983190,"flask-plus":987714,"flask-plus-outline":987715,"flask-remove":987716,"flask-remove-outline":987717,"flask-round-bottom":987723,"flask-round-bottom-empty":987724,"flask-round-bottom-empty-outline":987725,"flask-round-bottom-outline":987726,"fleur-de-lis":987907,"flip-horizontal":987367,"flip-to-back":983623,"flip-to-front":983624,"flip-vertical":987368,"floor-lamp":985309,"floor-lamp-dual":987200,"floor-lamp-dual-outline":989134,"floor-lamp-outline":989128,"floor-lamp-torchiere":988999,"floor-lamp-torchiere-outline":989142,"floor-lamp-torchiere-variant":987201,"floor-lamp-torchiere-variant-outline":989135,"floor-plan":985121,"floppy":983625,"floppy-variant":985583,"flower":983626,"flower-outline":985584,"flower-pollen":989317,"flower-pollen-outline":989318,"flower-poppy":986376,"flower-tulip":985585,"flower-tulip-outline":985586,"focus-auto":986958,"focus-field":986959,"focus-field-horizontal":986960,"focus-field-vertical":986961,"folder":983627,"folder-account":983628,"folder-account-outline":986012,"folder-alert":986572,"folder-alert-outline":986573,"folder-arrow-down":989672,"folder-arrow-down-outline":989673,"folder-arrow-left":989674,"folder-arrow-left-outline":989675,"folder-arrow-left-right":989676,"folder-arrow-left-right-outline":989677,"folder-arrow-right":989678,"folder-arrow-right-outline":989679,"folder-arrow-up":989680,"folder-arrow-up-down":989681,"folder-arrow-up-down-outline":989682,"folder-arrow-up-outline":989683,"folder-cancel":989684,"folder-cancel-outline":989685,"folder-check":989566,"folder-check-outline":989567,"folder-clock":985786,"folder-clock-outline":985787,"folder-cog":987263,"folder-cog-outline":987264,"folder-download":983629,"folder-download-outline":987369,"folder-edit":985310,"folder-edit-outline":986574,"folder-eye":989066,"folder-eye-outline":989067,"folder-file":989686,"folder-file-outline":989687,"folder-google-drive":983630,"folder-heart":987370,"folder-heart-outline":987371,"folder-hidden":989086,"folder-home":987317,"folder-home-outline":987318,"folder-image":983631,"folder-information":987319,"folder-information-outline":987320,"folder-key":985260,"folder-key-network":985261,"folder-key-network-outline":986240,"folder-key-outline":987372,"folder-lock":983632,"folder-lock-open":983633,"folder-lock-open-outline":989863,"folder-lock-outline":989864,"folder-marker":987757,"folder-marker-outline":987758,"folder-minus":990025,"folder-minus-outline":990026,"folder-move":983634,"folder-move-outline":987718,"folder-multiple":983635,"folder-multiple-image":983636,"folder-multiple-outline":983637,"folder-multiple-plus":988286,"folder-multiple-plus-outline":988287,"folder-music":987993,"folder-music-outline":987994,"folder-network":985200,"folder-network-outline":986241,"folder-off":989688,"folder-off-outline":989689,"folder-open":984944,"folder-open-outline":986575,"folder-outline":983638,"folder-play":989690,"folder-play-outline":989691,"folder-plus":983639,"folder-plus-outline":986013,"folder-pound":986377,"folder-pound-outline":986378,"folder-question":989642,"folder-question-outline":989643,"folder-refresh":984905,"folder-refresh-outline":984386,"folder-remove":983640,"folder-remove-outline":986014,"folder-search":985448,"folder-search-outline":985449,"folder-settings":987261,"folder-settings-outline":987262,"folder-star":984733,"folder-star-multiple":988115,"folder-star-multiple-outline":988116,"folder-star-outline":986015,"folder-swap":987062,"folder-swap-outline":987063,"folder-sync":986379,"folder-sync-outline":986380,"folder-table":987875,"folder-table-outline":987876,"folder-text":986242,"folder-text-outline":986243,"folder-upload":983641,"folder-upload-outline":987373,"folder-wrench":989692,"folder-wrench-outline":989693,"folder-zip":984811,"folder-zip-outline":985017,"font-awesome":983098,"food":983642,"food-apple":983643,"food-apple-outline":986244,"food-croissant":985032,"food-drumstick":988191,"food-drumstick-off":988264,"food-drumstick-off-outline":988265,"food-drumstick-outline":988192,"food-fork-drink":984562,"food-halal":988530,"food-hot-dog":989259,"food-kosher":988531,"food-off":984563,"food-off-outline":989461,"food-outline":989462,"food-steak":988266,"food-steak-off":988267,"food-takeout-box":989238,"food-takeout-box-outline":989239,"food-turkey":988956,"food-variant":983644,"food-variant-off":988133,"foot-print":986962,"football":983645,"football-australian":983646,"football-helmet":983647,"forest":989335,"forest-outline":990307,"forklift":985033,"form-dropdown":988160,"form-select":988161,"form-textarea":987285,"form-textbox":984590,"form-textbox-lock":987997,"form-textbox-password":985077,"format-align-bottom":984915,"format-align-center":983648,"format-align-justify":983649,"format-align-left":983650,"format-align-middle":984916,"format-align-right":983651,"format-align-top":984917,"format-annotation-minus":985788,"format-annotation-plus":984646,"format-bold":983652,"format-clear":983653,"format-color-fill":983654,"format-color-highlight":986673,"format-color-marker-cancel":987923,"format-color-text":984734,"format-columns":985311,"format-float-center":983655,"format-float-left":983656,"format-float-none":983657,"format-float-right":983658,"format-font":984790,"format-font-size-decrease":985587,"format-font-size-increase":985588,"format-header-1":983659,"format-header-2":983660,"format-header-3":983661,"format-header-4":983662,"format-header-5":983663,"format-header-6":983664,"format-header-decrease":983665,"format-header-equal":983666,"format-header-increase":983667,"format-header-pound":983668,"format-horizontal-align-center":984606,"format-horizontal-align-left":984607,"format-horizontal-align-right":984608,"format-indent-decrease":983669,"format-indent-increase":983670,"format-italic":983671,"format-letter-case":985908,"format-letter-case-lower":985909,"format-letter-case-upper":985910,"format-letter-ends-with":987064,"format-letter-matches":987065,"format-letter-spacing":989526,"format-letter-spacing-variant":989947,"format-letter-starts-with":987066,"format-line-height":989948,"format-line-spacing":983672,"format-line-style":984520,"format-line-weight":984521,"format-list-bulleted":983673,"format-list-bulleted-square":986576,"format-list-bulleted-triangle":986802,"format-list-bulleted-type":983674,"format-list-checkbox":985450,"format-list-checks":984918,"format-list-group":989280,"format-list-group-plus":990038,"format-list-numbered":983675,"format-list-numbered-rtl":986381,"format-list-text":987759,"format-overline":986803,"format-page-break":984791,"format-page-split":989463,"format-paint":983676,"format-paragraph":983677,"format-paragraph-spacing":989949,"format-pilcrow":984792,"format-pilcrow-arrow-left":983686,"format-pilcrow-arrow-right":983685,"format-quote-close":983678,"format-quote-close-outline":987560,"format-quote-open":984919,"format-quote-open-outline":987559,"format-rotate-90":984746,"format-section":984735,"format-size":983679,"format-strikethrough":983680,"format-strikethrough-variant":983681,"format-subscript":983682,"format-superscript":983683,"format-text":983684,"format-text-rotation-angle-down":987067,"format-text-rotation-angle-up":987068,"format-text-rotation-down":986483,"format-text-rotation-down-vertical":987069,"format-text-rotation-none":986484,"format-text-rotation-up":987070,"format-text-rotation-vertical":987071,"format-text-variant":986674,"format-text-variant-outline":988431,"format-text-wrapping-clip":986382,"format-text-wrapping-overflow":986383,"format-text-wrapping-wrap":986384,"format-textbox":986385,"format-title":984564,"format-underline":983687,"format-underline-wavy":989417,"format-vertical-align-bottom":984609,"format-vertical-align-center":984610,"format-vertical-align-top":984611,"format-wrap-inline":983688,"format-wrap-square":983689,"format-wrap-tight":983690,"format-wrap-top-bottom":983691,"forum":983692,"forum-minus":989865,"forum-minus-outline":989866,"forum-outline":985122,"forum-plus":989867,"forum-plus-outline":989868,"forum-remove":989869,"forum-remove-outline":989870,"forward":983693,"forwardburger":986485,"fountain":985451,"fountain-pen":986386,"fountain-pen-tip":986387,"fraction-one-half":989586,"freebsd":985312,"french-fries":989527,"frequently-asked-questions":986804,"fridge":983696,"fridge-alert":987569,"fridge-alert-outline":987570,"fridge-bottom":983698,"fridge-industrial":988654,"fridge-industrial-alert":988655,"fridge-industrial-alert-outline":988656,"fridge-industrial-off":988657,"fridge-industrial-off-outline":988658,"fridge-industrial-outline":988659,"fridge-off":987567,"fridge-off-outline":987568,"fridge-outline":983695,"fridge-top":983697,"fridge-variant":988660,"fridge-variant-alert":988661,"fridge-variant-alert-outline":988662,"fridge-variant-off":988663,"fridge-variant-off-outline":988664,"fridge-variant-outline":988665,"fruit-cherries":987202,"fruit-cherries-off":988152,"fruit-citrus":987203,"fruit-citrus-off":988153,"fruit-grapes":987204,"fruit-grapes-outline":987205,"fruit-pear":989710,"fruit-pineapple":987206,"fruit-watermelon":987207,"fuel":985034,"fuel-cell":989365,"fullscreen":983699,"fullscreen-exit":983700,"function":983701,"function-variant":985201,"furigana-horizontal":987265,"furigana-vertical":987266,"fuse":986245,"fuse-alert":988205,"fuse-blade":986246,"fuse-off":988204,"gamepad":983702,"gamepad-circle":986675,"gamepad-circle-down":986676,"gamepad-circle-left":986677,"gamepad-circle-outline":986678,"gamepad-circle-right":986679,"gamepad-circle-up":986680,"gamepad-down":986681,"gamepad-left":986682,"gamepad-outline":989465,"gamepad-right":986683,"gamepad-round":986684,"gamepad-round-down":986685,"gamepad-round-left":986686,"gamepad-round-outline":986687,"gamepad-round-right":986688,"gamepad-round-up":986689,"gamepad-square":986805,"gamepad-square-outline":986806,"gamepad-up":986690,"gamepad-variant":983703,"gamepad-variant-outline":986807,"gamma":987374,"gantry-crane":986577,"garage":984793,"garage-alert":985202,"garage-alert-variant":987861,"garage-lock":989179,"garage-open":984794,"garage-open-variant":987860,"garage-variant":987859,"garage-variant-lock":989180,"gas-burner":989723,"gas-cylinder":984647,"gas-station":983704,"gas-station-in-use":990404,"gas-station-in-use-outline":990405,"gas-station-off":988169,"gas-station-off-outline":988170,"gas-station-outline":986808,"gate":983705,"gate-alert":989176,"gate-and":985313,"gate-arrow-left":989175,"gate-arrow-right":987497,"gate-buffer":989950,"gate-nand":985314,"gate-nor":985315,"gate-not":985316,"gate-open":987498,"gate-or":985317,"gate-xnor":985318,"gate-xor":985319,"gatsby":986691,"gauge":983706,"gauge-empty":985203,"gauge-full":985204,"gauge-low":985205,"gavel":983707,"gender-female":983708,"gender-male":983709,"gender-male-female":983710,"gender-male-female-variant":987455,"gender-non-binary":987456,"gender-transgender":983711,"generator-mobile":990346,"generator-portable":990347,"generator-stationary":990348,"gentoo":985320,"gesture":985035,"gesture-double-tap":984892,"gesture-pinch":985789,"gesture-spread":985790,"gesture-swipe":986486,"gesture-swipe-down":984893,"gesture-swipe-horizontal":985791,"gesture-swipe-left":984894,"gesture-swipe-right":984895,"gesture-swipe-up":984896,"gesture-swipe-vertical":985792,"gesture-tap":984897,"gesture-tap-box":987817,"gesture-tap-button":987816,"gesture-tap-hold":986487,"gesture-two-double-tap":984898,"gesture-two-tap":984899,"ghost":983712,"ghost-off":985589,"ghost-off-outline":988764,"ghost-outline":988765,"gift":986692,"gift-off":988911,"gift-off-outline":988912,"gift-open":988913,"gift-open-outline":988914,"gift-outline":983713,"git":983714,"github":983716,"gitlab":986016,"glass-cocktail":983894,"glass-cocktail-off":988646,"glass-flute":983717,"glass-fragile":989299,"glass-mug":983718,"glass-mug-off":988647,"glass-mug-variant":987414,"glass-mug-variant-off":988648,"glass-pint-outline":987917,"glass-stange":983719,"glass-tulip":983720,"glass-wine":985206,"glasses":983722,"globe-light":984687,"globe-light-outline":987863,"globe-model":985321,"gmail":983723,"gnome":983724,"go-kart":986489,"go-kart-track":986490,"gog":986017,"gold":987727,"golf":985123,"golf-cart":987556,"golf-tee":987267,"gondola":984710,"goodreads":986491,"google":983725,"google-ads":986247,"google-analytics":985036,"google-assistant":985037,"google-cardboard":983726,"google-chrome":983727,"google-circles":983728,"google-circles-communities":983729,"google-circles-extended":983730,"google-circles-group":983731,"google-classroom":983744,"google-cloud":987638,"google-downasaur":988002,"google-drive":983734,"google-earth":983735,"google-fit":985452,"google-glass":983736,"google-hangouts":983753,"google-keep":984796,"google-lens":985590,"google-maps":984565,"google-my-business":987208,"google-nearby":983737,"google-play":983740,"google-plus":983741,"google-podcast":986809,"google-spreadsheet":985591,"google-street-view":986248,"google-translate":983743,"gradient-horizontal":989002,"gradient-vertical":984736,"grain":986492,"graph":987209,"graph-outline":987210,"graphql":985207,"grass":988432,"grave-stone":986018,"grease-pencil":984648,"greater-than":985453,"greater-than-or-equal":985454,"greenhouse":983085,"grid":983745,"grid-large":984920,"grid-off":983746,"grill":986693,"grill-outline":987530,"group":983747,"guitar-acoustic":984945,"guitar-electric":983748,"guitar-pick":983749,"guitar-pick-outline":983750,"guy-fawkes-mask":985125,"gymnastics":989761,"hail":985793,"hair-dryer":987375,"hair-dryer-outline":987376,"halloween":986019,"hamburger":984709,"hamburger-check":989046,"hamburger-minus":989047,"hamburger-off":989048,"hamburger-plus":989049,"hamburger-remove":989050,"hammer":985322,"hammer-screwdriver":987938,"hammer-sickle":989319,"hammer-wrench":987939,"hand-back-left":986694,"hand-back-left-off":989232,"hand-back-left-off-outline":989234,"hand-back-left-outline":989228,"hand-back-right":986695,"hand-back-right-off":989233,"hand-back-right-off-outline":989235,"hand-back-right-outline":989229,"hand-clap":989515,"hand-clap-off":989762,"hand-coin":989327,"hand-coin-outline":989328,"hand-cycle":990108,"hand-extended":989366,"hand-extended-outline":989367,"hand-front-left":989227,"hand-front-left-outline":989230,"hand-front-right":985679,"hand-front-right-outline":989231,"hand-heart":987377,"hand-heart-outline":988542,"hand-okay":985680,"hand-peace":985681,"hand-peace-variant":985682,"hand-pointing-down":985683,"hand-pointing-left":985684,"hand-pointing-right":983751,"hand-pointing-up":985685,"hand-saw":986696,"hand-wash":988543,"hand-wash-outline":988544,"hand-water":988063,"hand-wave":989217,"hand-wave-outline":989218,"handball":986963,"handcuffs":987454,"hands-pray":984441,"handshake":987672,"handshake-outline":988577,"hanger":983752,"hard-hat":985455,"harddisk":983754,"harddisk-plus":987211,"harddisk-remove":987212,"hat-fedora":986020,"hazard-lights":986249,"hdmi-port":990136,"hdr":986493,"hdr-off":986494,"head":987998,"head-alert":987960,"head-alert-outline":987961,"head-check":987962,"head-check-outline":987963,"head-cog":987964,"head-cog-outline":987965,"head-dots-horizontal":987966,"head-dots-horizontal-outline":987967,"head-flash":987968,"head-flash-outline":987969,"head-heart":987970,"head-heart-outline":987971,"head-lightbulb":987972,"head-lightbulb-outline":987973,"head-minus":987974,"head-minus-outline":987975,"head-outline":987999,"head-plus":987976,"head-plus-outline":987977,"head-question":987978,"head-question-outline":987979,"head-remove":987980,"head-remove-outline":987981,"head-snowflake":987982,"head-snowflake-outline":987983,"head-sync":987984,"head-sync-outline":987985,"headphones":983755,"headphones-bluetooth":985456,"headphones-box":983756,"headphones-off":985038,"headphones-settings":983757,"headset":983758,"headset-dock":983759,"headset-off":983760,"heart":983761,"heart-box":983762,"heart-box-outline":983763,"heart-broken":983764,"heart-broken-outline":986388,"heart-circle":985457,"heart-circle-outline":985458,"heart-cog":988771,"heart-cog-outline":988772,"heart-flash":986873,"heart-half":984799,"heart-half-full":984798,"heart-half-outline":984800,"heart-minus":988207,"heart-minus-outline":988210,"heart-multiple":985686,"heart-multiple-outline":985687,"heart-off":984921,"heart-off-outline":988212,"heart-outline":983765,"heart-plus":988206,"heart-plus-outline":988209,"heart-pulse":984566,"heart-remove":988208,"heart-remove-outline":988211,"heart-search":990349,"heart-settings":988773,"heart-settings-outline":988774,"heat-pump":989763,"heat-pump-outline":989764,"heat-wave":989765,"heating-coil":989871,"helicopter":985794,"help":983766,"help-box":984971,"help-box-multiple":990218,"help-box-multiple-outline":990219,"help-box-outline":990220,"help-circle":983767,"help-circle-outline":984613,"help-network":984821,"help-network-outline":986250,"help-rhombus":986021,"help-rhombus-outline":986022,"hexadecimal":987815,"hexagon":983768,"hexagon-multiple":984801,"hexagon-multiple-outline":987378,"hexagon-outline":983769,"hexagon-slice-1":985795,"hexagon-slice-2":985796,"hexagon-slice-3":985797,"hexagon-slice-4":985798,"hexagon-slice-5":985799,"hexagon-slice-6":985800,"hexagram":985801,"hexagram-outline":985802,"high-definition":985039,"high-definition-box":985208,"highway":984567,"hiking":986495,"history":983770,"hockey-puck":985209,"hockey-sticks":985210,"hololens":983771,"home":983772,"home-account":985126,"home-alert":985211,"home-alert-outline":988624,"home-analytics":986810,"home-assistant":985040,"home-automation":985041,"home-battery":989441,"home-battery-outline":989442,"home-circle":985042,"home-circle-outline":987213,"home-city":986389,"home-city-outline":986390,"home-clock":989714,"home-clock-outline":989715,"home-edit":987481,"home-edit-outline":987482,"home-export-outline":987035,"home-flood":986874,"home-floor-0":986578,"home-floor-1":986496,"home-floor-2":986497,"home-floor-3":986498,"home-floor-a":986499,"home-floor-b":986500,"home-floor-g":986501,"home-floor-l":986502,"home-floor-negative-1":986579,"home-group":986580,"home-group-minus":989633,"home-group-plus":989632,"home-group-remove":989634,"home-heart":985127,"home-import-outline":987036,"home-lightbulb":987729,"home-lightbulb-outline":987730,"home-lightning-bolt":989443,"home-lightning-bolt-outline":989444,"home-lock":985323,"home-lock-open":985324,"home-map-marker":984568,"home-minus":985460,"home-minus-outline":988117,"home-modern":983773,"home-off":989766,"home-off-outline":989767,"home-outline":984737,"home-percent":990332,"home-percent-outline":990333,"home-plus":985461,"home-plus-outline":988118,"home-remove":987719,"home-remove-outline":988119,"home-roof":987435,"home-search":988080,"home-search-outline":988081,"home-silo":990112,"home-silo-outline":990113,"home-sound-in":990255,"home-sound-in-outline":990256,"home-sound-out":990257,"home-sound-out-outline":990258,"home-switch":989076,"home-switch-outline":989077,"home-thermometer":986964,"home-thermometer-outline":986965,"home-variant":983774,"home-variant-outline":986023,"hook":984802,"hook-off":984803,"hoop-house":986710,"hops":983775,"horizontal-rotate-clockwise":987379,"horizontal-rotate-counterclockwise":987380,"horse":988607,"horse-human":988608,"horse-variant":988609,"horse-variant-fast":989294,"horseshoe":985688,"hospital":987126,"hospital-box":983776,"hospital-box-outline":987127,"hospital-building":983777,"hospital-marker":983778,"hot-tub":985128,"hours-12":990356,"hours-24":988280,"hub":990357,"hub-outline":990358,"hubspot":986391,"hulu":985129,"human":983782,"human-baby-changing-table":988043,"human-cane":988545,"human-capacity-decrease":988571,"human-capacity-increase":988572,"human-child":983783,"human-dolly":989568,"human-edit":988392,"human-female":984649,"human-female-boy":985689,"human-female-dance":988617,"human-female-female":985690,"human-female-female-child":990350,"human-female-girl":985691,"human-greeting":989124,"human-greeting-proximity":988573,"human-greeting-variant":984650,"human-handsdown":984651,"human-handsup":984652,"human-male":984653,"human-male-board":985232,"human-male-board-poll":985158,"human-male-boy":985692,"human-male-child":988044,"human-male-female":983784,"human-male-female-child":989219,"human-male-girl":985693,"human-male-height":986875,"human-male-height-variant":986876,"human-male-male":985694,"human-male-male-child":990351,"human-non-binary":989256,"human-pregnant":984527,"human-queue":988529,"human-scooter":987625,"human-walker":990065,"human-wheelchair":988045,"human-white-cane":989569,"humble-bundle":984900,"hvac":987986,"hvac-off":988574,"hydraulic-oil-level":987940,"hydraulic-oil-temperature":987941,"hydro-power":987877,"hydrogen-station":989332,"ice-cream":985130,"ice-cream-off":986706,"ice-pop":986877,"id-card":987072,"identifier":986878,"ideogram-cjk":987953,"ideogram-cjk-variant":987954,"image":983785,"image-album":983786,"image-area":983787,"image-area-close":983788,"image-auto-adjust":987073,"image-broken":983789,"image-broken-variant":983790,"image-check":989989,"image-check-outline":989990,"image-edit":987619,"image-edit-outline":987620,"image-filter-black-white":983792,"image-filter-center-focus":983793,"image-filter-center-focus-strong":986879,"image-filter-center-focus-strong-outline":986880,"image-filter-center-focus-weak":983794,"image-filter-drama":983795,"image-filter-drama-outline":990207,"image-filter-frames":983796,"image-filter-hdr":983797,"image-filter-hdr-outline":990308,"image-filter-none":983798,"image-filter-tilt-shift":983799,"image-filter-vintage":983800,"image-frame":986697,"image-lock":989872,"image-lock-outline":989873,"image-marker":989051,"image-marker-outline":989052,"image-minus":988185,"image-minus-outline":990023,"image-move":985592,"image-multiple":983801,"image-multiple-outline":983791,"image-off":985131,"image-off-outline":987601,"image-outline":985462,"image-plus":985212,"image-plus-outline":990022,"image-refresh":989694,"image-refresh-outline":989695,"image-remove":988184,"image-remove-outline":990024,"image-search":985463,"image-search-outline":985464,"image-size-select-actual":986253,"image-size-select-large":986254,"image-size-select-small":986255,"image-sync":989696,"image-sync-outline":989697,"image-text":988685,"import":983802,"inbox":984711,"inbox-arrow-down":983803,"inbox-arrow-down-outline":987760,"inbox-arrow-up":984017,"inbox-arrow-up-outline":987761,"inbox-full":987762,"inbox-full-outline":987763,"inbox-multiple":985264,"inbox-multiple-outline":986024,"inbox-outline":987764,"inbox-remove":988575,"inbox-remove-outline":988576,"incognito":984569,"incognito-circle":988193,"incognito-circle-off":988194,"incognito-off":983157,"induction":989260,"infinity":984804,"information":983804,"information-box":990309,"information-box-outline":990310,"information-off":989068,"information-off-outline":989069,"information-outline":983805,"information-slab-box":990311,"information-slab-box-outline":990312,"information-slab-circle":990313,"information-slab-circle-outline":990314,"information-slab-symbol":990315,"information-symbol":990316,"information-variant":984654,"information-variant-box":990317,"information-variant-box-outline":990318,"information-variant-circle":990319,"information-variant-circle-outline":990320,"instagram":983806,"instrument-triangle":987214,"integrated-circuit-chip":989459,"invert-colors":983809,"invert-colors-off":986698,"invoice":990418,"invoice-arrow-left":990419,"invoice-arrow-left-outline":990420,"invoice-arrow-right":990421,"invoice-arrow-right-outline":990422,"invoice-check":990423,"invoice-check-outline":990424,"invoice-clock":990425,"invoice-clock-outline":990426,"invoice-edit":990427,"invoice-edit-outline":990428,"invoice-export-outline":990429,"invoice-fast":990430,"invoice-fast-outline":990431,"invoice-import":990432,"invoice-import-outline":990433,"invoice-list":990434,"invoice-list-outline":990435,"invoice-minus":990436,"invoice-minus-outline":990437,"invoice-multiple":990438,"invoice-multiple-outline":990439,"invoice-outline":990440,"invoice-plus":990441,"invoice-plus-outline":990442,"invoice-remove":990443,"invoice-remove-outline":990444,"invoice-send":990445,"invoice-send-outline":990446,"invoice-text":990447,"invoice-text-arrow-left":990448,"invoice-text-arrow-left-outline":990449,"invoice-text-arrow-right":990450,"invoice-text-arrow-right-outline":990451,"invoice-text-check":990452,"invoice-text-check-outline":990453,"invoice-text-clock":990454,"invoice-text-clock-outline":990455,"invoice-text-edit":990456,"invoice-text-edit-outline":990457,"invoice-text-fast":990458,"invoice-text-fast-outline":990459,"invoice-text-minus":990460,"invoice-text-minus-outline":990461,"invoice-text-multiple":990462,"invoice-text-multiple-outline":990463,"invoice-text-outline":990464,"invoice-text-plus":990465,"invoice-text-plus-outline":990466,"invoice-text-remove":990467,"invoice-text-remove-outline":990468,"invoice-text-send":990469,"invoice-text-send-outline":990470,"iobroker":987880,"ip":985695,"ip-network":985696,"ip-network-outline":986256,"ip-outline":989570,"ipod":986257,"iron":989220,"iron-board":989240,"iron-outline":989221,"island":987215,"island-variant":990406,"iv-bag":987321,"jabber":986581,"jeepney":983810,"jellyfish":986881,"jellyfish-outline":986882,"jira":983811,"jquery":985213,"jsfiddle":983812,"jump-rope":987903,"kabaddi":986503,"kangaroo":988504,"karate":985132,"kayaking":985263,"keg":983813,"kettle":984570,"kettle-alert":987927,"kettle-alert-outline":987928,"kettle-off":987931,"kettle-off-outline":987932,"kettle-outline":986966,"kettle-pour-over":988988,"kettle-steam":987929,"kettle-steam-outline":987930,"kettlebell":987904,"key":983814,"key-alert":989571,"key-alert-outline":989572,"key-arrow-right":987922,"key-chain":988532,"key-chain-variant":988533,"key-change":983815,"key-link":987551,"key-minus":983816,"key-outline":986582,"key-plus":983817,"key-remove":983818,"key-star":987550,"key-variant":983819,"key-wireless":987074,"keyboard":983820,"keyboard-backspace":983821,"keyboard-caps":983822,"keyboard-close":983823,"keyboard-close-outline":990208,"keyboard-esc":987831,"keyboard-f1":987819,"keyboard-f10":987828,"keyboard-f11":987829,"keyboard-f12":987830,"keyboard-f2":987820,"keyboard-f3":987821,"keyboard-f4":987822,"keyboard-f5":987823,"keyboard-f6":987824,"keyboard-f7":987825,"keyboard-f8":987826,"keyboard-f9":987827,"keyboard-off":983824,"keyboard-off-outline":986699,"keyboard-outline":985467,"keyboard-return":983825,"keyboard-settings":985593,"keyboard-settings-outline":985594,"keyboard-space":987216,"keyboard-tab":983826,"keyboard-tab-reverse":983845,"keyboard-variant":983827,"khanda":987389,"kickstarter":984901,"kite":989573,"kite-outline":989574,"kitesurfing":988996,"klingon":987995,"knife":985595,"knife-military":985596,"knob":990102,"koala":988991,"kodi":983828,"kubernetes":987390,"label":983829,"label-multiple":988021,"label-multiple-outline":988022,"label-off":985803,"label-off-outline":985804,"label-outline":983830,"label-percent":987882,"label-percent-outline":987883,"label-variant":985805,"label-variant-outline":985806,"ladder":988578,"ladybug":985133,"lambda":984615,"lamp":984757,"lamp-outline":989136,"lamps":988534,"lamps-outline":989137,"lan":983831,"lan-check":987818,"lan-connect":983832,"lan-disconnect":983833,"lan-pending":983834,"land-fields":989874,"land-plots":989875,"land-plots-circle":989876,"land-plots-circle-variant":989877,"land-plots-marker":990301,"land-rows-horizontal":989878,"land-rows-vertical":989879,"landslide":989768,"landslide-outline":989769,"language-c":984689,"language-cpp":984690,"language-csharp":983835,"language-css3":983836,"language-fortran":987674,"language-go":985043,"language-haskell":986258,"language-html5":983837,"language-java":985911,"language-javascript":983838,"language-kotlin":987673,"language-lua":985265,"language-markdown":983892,"language-markdown-outline":986971,"language-php":983839,"language-python":983840,"language-r":985044,"language-ruby":986413,"language-ruby-on-rails":985807,"language-rust":988695,"language-swift":984805,"language-typescript":984806,"language-xaml":984691,"laptop":983842,"laptop-account":989770,"laptop-off":984807,"laravel":985808,"laser-pointer":988292,"lasso":986883,"lastpass":984134,"latitude":986967,"launch":983847,"lava-lamp":985045,"layers":983848,"layers-edit":989330,"layers-minus":986700,"layers-off":983849,"layers-off-outline":985597,"layers-outline":985598,"layers-plus":986701,"layers-remove":986702,"layers-search":987654,"layers-search-outline":987655,"layers-triple":986968,"layers-triple-outline":986969,"lead-pencil":984655,"leaf":983850,"leaf-circle":989445,"leaf-circle-outline":989446,"leaf-maple":986259,"leaf-maple-off":987866,"leaf-off":987865,"leak":986583,"leak-off":986584,"lectern":989936,"led-off":983851,"led-on":983852,"led-outline":983853,"led-strip":985046,"led-strip-variant":987217,"led-strip-variant-off":989771,"led-variant-off":983854,"led-variant-on":983855,"led-variant-outline":983856,"leek":987517,"less-than":985468,"less-than-or-equal":985469,"library":983857,"library-outline":989730,"library-shelves":986025,"license":987075,"lifebuoy":985214,"light-flood-down":989575,"light-flood-up":989576,"light-recessed":989083,"light-switch":985470,"light-switch-off":989732,"lightbulb":983861,"lightbulb-alert":989665,"lightbulb-alert-outline":989666,"lightbulb-auto":989184,"lightbulb-auto-outline":989185,"lightbulb-cfl":987656,"lightbulb-cfl-off":987657,"lightbulb-cfl-spiral":987765,"lightbulb-cfl-spiral-off":987843,"lightbulb-fluorescent-tube":989188,"lightbulb-fluorescent-tube-outline":989189,"lightbulb-group":987731,"lightbulb-group-off":987853,"lightbulb-group-off-outline":987854,"lightbulb-group-outline":987732,"lightbulb-multiple":987733,"lightbulb-multiple-off":987855,"lightbulb-multiple-off-outline":987856,"lightbulb-multiple-outline":987734,"lightbulb-night":989772,"lightbulb-night-outline":989773,"lightbulb-off":986703,"lightbulb-off-outline":986704,"lightbulb-on":984808,"lightbulb-on-10":989774,"lightbulb-on-20":989775,"lightbulb-on-30":989776,"lightbulb-on-40":989777,"lightbulb-on-50":989778,"lightbulb-on-60":989779,"lightbulb-on-70":989780,"lightbulb-on-80":989781,"lightbulb-on-90":989782,"lightbulb-on-outline":984809,"lightbulb-outline":983862,"lightbulb-question":989667,"lightbulb-question-outline":989668,"lightbulb-spot":989172,"lightbulb-spot-off":989173,"lightbulb-variant":989186,"lightbulb-variant-outline":989187,"lighthouse":985599,"lighthouse-on":985600,"lightning-bolt":988171,"lightning-bolt-circle":985120,"lightning-bolt-outline":988172,"line-scan":984612,"lingerie":988278,"link":983863,"link-box":986394,"link-box-outline":986395,"link-box-variant":986396,"link-box-variant-outline":986397,"link-circle":990380,"link-circle-outline":990381,"link-edit":990382,"link-lock":987322,"link-off":983864,"link-plus":986260,"link-variant":983865,"link-variant-minus":987391,"link-variant-off":983866,"link-variant-plus":987392,"link-variant-remove":987393,"linkedin":983867,"linux":983869,"linux-mint":985325,"lipstick":988085,"liquid-spot":989222,"liquor":989470,"list-box":990075,"list-box-outline":990076,"list-status":988587,"litecoin":985697,"loading":984946,"location-enter":987076,"location-exit":987077,"lock":983870,"lock-alert":985326,"lock-alert-outline":988625,"lock-check":988058,"lock-check-outline":988840,"lock-clock":985471,"lock-minus":988841,"lock-minus-outline":988842,"lock-off":988785,"lock-off-outline":988786,"lock-open":983871,"lock-open-alert":988059,"lock-open-alert-outline":988626,"lock-open-check":988060,"lock-open-check-outline":988843,"lock-open-minus":988844,"lock-open-minus-outline":988845,"lock-open-outline":983872,"lock-open-plus":988846,"lock-open-plus-outline":988847,"lock-open-remove":988848,"lock-open-remove-outline":988849,"lock-open-variant":987078,"lock-open-variant-outline":987079,"lock-outline":983873,"lock-pattern":984810,"lock-percent":990226,"lock-percent-open":990227,"lock-percent-open-outline":990228,"lock-percent-open-variant":990229,"lock-percent-open-variant-outline":990230,"lock-percent-outline":990231,"lock-plus":984571,"lock-plus-outline":988850,"lock-question":985327,"lock-remove":988851,"lock-remove-outline":988852,"lock-reset":984947,"lock-smart":985266,"locker":985047,"locker-multiple":985048,"login":983874,"login-variant":984572,"logout":983875,"logout-variant":984573,"longitude":986970,"looks":983876,"lotion":988546,"lotion-outline":988547,"lotion-plus":988548,"lotion-plus-outline":988549,"loupe":983877,"lumx":983878,"lungs":987268,"mace":989251,"magazine-pistol":983844,"magazine-rifle":983843,"magic-staff":989252,"magnet":983879,"magnet-on":983880,"magnify":983881,"magnify-close":985472,"magnify-expand":989300,"magnify-minus":983882,"magnify-minus-cursor":985698,"magnify-minus-outline":984812,"magnify-plus":983883,"magnify-plus-cursor":985699,"magnify-plus-outline":984813,"magnify-remove-cursor":987660,"magnify-remove-outline":987661,"magnify-scan":987766,"mail":986811,"mailbox":984814,"mailbox-open":986504,"mailbox-open-outline":986505,"mailbox-open-up":986506,"mailbox-open-up-outline":986507,"mailbox-outline":986508,"mailbox-up":986509,"mailbox-up-outline":986510,"manjaro":988682,"map":983885,"map-check":986812,"map-check-outline":986813,"map-clock":986398,"map-clock-outline":986399,"map-legend":985601,"map-marker":983886,"map-marker-account":989411,"map-marker-account-outline":989412,"map-marker-alert":986885,"map-marker-alert-outline":986886,"map-marker-check":986261,"map-marker-check-outline":987899,"map-marker-circle":983887,"map-marker-distance":985328,"map-marker-down":987394,"map-marker-left":987867,"map-marker-left-outline":987869,"map-marker-minus":984656,"map-marker-minus-outline":987897,"map-marker-multiple":983888,"map-marker-multiple-outline":987767,"map-marker-off":983889,"map-marker-off-outline":987901,"map-marker-outline":985049,"map-marker-path":986400,"map-marker-plus":984657,"map-marker-plus-outline":987896,"map-marker-question":986887,"map-marker-question-outline":986888,"map-marker-radius":983890,"map-marker-radius-outline":987900,"map-marker-remove":986889,"map-marker-remove-outline":987898,"map-marker-remove-variant":986890,"map-marker-right":987868,"map-marker-right-outline":987870,"map-marker-star":988680,"map-marker-star-outline":988681,"map-marker-up":987395,"map-minus":985473,"map-outline":985474,"map-plus":985475,"map-search":985476,"map-search-outline":985477,"mapbox":986026,"margin":983891,"marker":984658,"marker-cancel":986585,"marker-check":983893,"mastodon":985809,"material-design":985478,"material-ui":983895,"math-compass":983896,"math-cos":986262,"math-integral":987080,"math-integral-box":987081,"math-log":987269,"math-norm":987082,"math-norm-box":987083,"math-sin":986263,"math-tan":986264,"matrix":984616,"medal":985479,"medal-outline":987942,"medical-bag":984815,"medical-cotton-swab":989880,"medication":989972,"medication-outline":989973,"meditation":987515,"memory":983899,"memory-arrow-down":990374,"menorah":989140,"menorah-fire":989141,"menu":983900,"menu-close":990352,"menu-down":983901,"menu-down-outline":984758,"menu-left":983902,"menu-left-outline":985602,"menu-open":986027,"menu-right":983903,"menu-right-outline":985603,"menu-swap":985700,"menu-swap-outline":985701,"menu-up":983904,"menu-up-outline":984759,"merge":986972,"message":983905,"message-alert":983906,"message-alert-outline":985604,"message-arrow-left":987890,"message-arrow-left-outline":987891,"message-arrow-right":987892,"message-arrow-right-outline":987893,"message-badge":989505,"message-badge-outline":989506,"message-bookmark":988588,"message-bookmark-outline":988589,"message-bulleted":984738,"message-bulleted-off":984739,"message-check":990090,"message-check-outline":990091,"message-cog":984817,"message-cog-outline":987506,"message-draw":983907,"message-fast":989644,"message-fast-outline":989645,"message-flash":988585,"message-flash-outline":988586,"message-image":983908,"message-image-outline":987500,"message-lock":987084,"message-lock-outline":987501,"message-minus":987502,"message-minus-outline":987503,"message-off":988749,"message-off-outline":988750,"message-outline":983909,"message-plus":984659,"message-plus-outline":987323,"message-processing":983910,"message-processing-outline":987504,"message-question":988986,"message-question-outline":988987,"message-reply":983911,"message-reply-outline":988989,"message-reply-text":983912,"message-reply-text-outline":988990,"message-settings":984816,"message-settings-outline":987505,"message-star":984730,"message-star-outline":987728,"message-text":983913,"message-text-clock":987507,"message-text-clock-outline":987508,"message-text-fast":989646,"message-text-fast-outline":989647,"message-text-lock":987085,"message-text-lock-outline":987509,"message-text-outline":983914,"message-video":983915,"meteor":984617,"meter-electric":989783,"meter-electric-outline":989784,"meter-gas":989785,"meter-gas-outline":989786,"metronome":985050,"metronome-tick":985051,"micro-sd":985052,"microphone":983916,"microphone-message":984330,"microphone-message-off":984331,"microphone-minus":985267,"microphone-off":983917,"microphone-outline":983918,"microphone-plus":985268,"microphone-question":989577,"microphone-question-outline":989578,"microphone-settings":983919,"microphone-variant":983920,"microphone-variant-off":983921,"microscope":984660,"microsoft":983922,"microsoft-access":988046,"microsoft-azure":985093,"microsoft-azure-devops":987093,"microsoft-bing":983204,"microsoft-dynamics-365":985480,"microsoft-edge":983529,"microsoft-excel":988047,"microsoft-internet-explorer":983808,"microsoft-office":984006,"microsoft-onedrive":984010,"microsoft-onenote":984903,"microsoft-outlook":986402,"microsoft-powerpoint":988048,"microsoft-sharepoint":988049,"microsoft-teams":983739,"microsoft-visual-studio":984592,"microsoft-visual-studio-code":985630,"microsoft-windows":984499,"microsoft-windows-classic":985633,"microsoft-word":988050,"microsoft-xbox":984505,"microsoft-xbox-controller":984506,"microsoft-xbox-controller-battery-alert":984907,"microsoft-xbox-controller-battery-charging":985634,"microsoft-xbox-controller-battery-empty":984908,"microsoft-xbox-controller-battery-full":984909,"microsoft-xbox-controller-battery-low":984910,"microsoft-xbox-controller-battery-medium":984911,"microsoft-xbox-controller-battery-unknown":984912,"microsoft-xbox-controller-menu":986735,"microsoft-xbox-controller-off":984507,"microsoft-xbox-controller-view":986736,"microwave":986265,"microwave-off":988195,"middleware":986973,"middleware-outline":986974,"midi":985329,"midi-port":985330,"mine":986586,"minecraft":983923,"mini-sd":985605,"minidisc":985606,"minus":983924,"minus-box":983925,"minus-box-multiple":987457,"minus-box-multiple-outline":987458,"minus-box-outline":984818,"minus-circle":983926,"minus-circle-multiple":983898,"minus-circle-multiple-outline":985811,"minus-circle-off":988249,"minus-circle-off-outline":988250,"minus-circle-outline":983927,"minus-network":983928,"minus-network-outline":986266,"minus-thick":988729,"mirror":987645,"mirror-rectangle":989087,"mirror-variant":989088,"mixed-martial-arts":986511,"mixed-reality":985215,"molecule":986028,"molecule-co":987902,"molecule-co2":985060,"monitor":983929,"monitor-account":989787,"monitor-arrow-down":989648,"monitor-arrow-down-variant":989649,"monitor-cellphone":985481,"monitor-cellphone-star":985482,"monitor-dashboard":985607,"monitor-edit":987846,"monitor-eye":988084,"monitor-lock":986587,"monitor-multiple":983930,"monitor-off":986512,"monitor-screenshot":986705,"monitor-share":988291,"monitor-shimmer":987396,"monitor-small":989302,"monitor-speaker":986975,"monitor-speaker-off":986976,"monitor-star":986588,"monitor-vertical":990259,"moon-first-quarter":986977,"moon-full":986978,"moon-last-quarter":986979,"moon-new":986980,"moon-waning-crescent":986981,"moon-waning-gibbous":986982,"moon-waxing-crescent":986983,"moon-waxing-gibbous":986984,"moped":987270,"moped-electric":988599,"moped-electric-outline":988600,"moped-outline":988601,"more":983931,"mortar-pestle":989000,"mortar-pestle-plus":984049,"mosque":986437,"mosque-outline":989223,"mother-heart":987924,"mother-nurse":986401,"motion":988594,"motion-outline":988595,"motion-pause":988560,"motion-pause-outline":988562,"motion-play":988559,"motion-play-outline":988561,"motion-sensor":986513,"motion-sensor-off":988213,"motorbike":983932,"motorbike-electric":988602,"motorbike-off":989974,"mouse":983933,"mouse-bluetooth":985483,"mouse-left-click":990471,"mouse-left-click-outline":990472,"mouse-move-down":988496,"mouse-move-up":988497,"mouse-move-vertical":988498,"mouse-off":983934,"mouse-outline":990473,"mouse-right-click":990474,"mouse-right-click-outline":990475,"mouse-scroll-wheel":990476,"mouse-variant":983935,"mouse-variant-off":983936,"move-resize":984661,"move-resize-variant":984662,"movie":983937,"movie-check":988915,"movie-check-outline":988916,"movie-cog":988917,"movie-cog-outline":988918,"movie-edit":987426,"movie-edit-outline":987427,"movie-filter":987428,"movie-filter-outline":987429,"movie-minus":988919,"movie-minus-outline":988920,"movie-off":988921,"movie-off-outline":988922,"movie-open":987086,"movie-open-check":988923,"movie-open-check-outline":988924,"movie-open-cog":988925,"movie-open-cog-outline":988926,"movie-open-edit":988927,"movie-open-edit-outline":988928,"movie-open-minus":988929,"movie-open-minus-outline":988930,"movie-open-off":988931,"movie-open-off-outline":988932,"movie-open-outline":987087,"movie-open-play":988933,"movie-open-play-outline":988934,"movie-open-plus":988935,"movie-open-plus-outline":988936,"movie-open-remove":988937,"movie-open-remove-outline":988938,"movie-open-settings":988939,"movie-open-settings-outline":988940,"movie-open-star":988941,"movie-open-star-outline":988942,"movie-outline":986589,"movie-play":988943,"movie-play-outline":988944,"movie-plus":988945,"movie-plus-outline":988946,"movie-remove":988947,"movie-remove-outline":988948,"movie-roll":985054,"movie-search":987602,"movie-search-outline":987603,"movie-settings":988949,"movie-settings-outline":988950,"movie-star":988951,"movie-star-outline":988952,"mower":988783,"mower-bag":988784,"mower-bag-on":990048,"mower-on":990047,"muffin":985484,"multicast":989331,"multimedia":990103,"multiplication":983938,"multiplication-box":983939,"mushroom":985055,"mushroom-off":988154,"mushroom-off-outline":988155,"mushroom-outline":985056,"music":984922,"music-accidental-double-flat":986985,"music-accidental-double-sharp":986986,"music-accidental-flat":986987,"music-accidental-natural":986988,"music-accidental-sharp":986989,"music-box":983940,"music-box-multiple":983859,"music-box-multiple-outline":986884,"music-box-outline":983941,"music-circle":983942,"music-circle-outline":985812,"music-clef-alto":986990,"music-clef-bass":986991,"music-clef-treble":986992,"music-note":983943,"music-note-bluetooth":984574,"music-note-bluetooth-off":984575,"music-note-eighth":983944,"music-note-eighth-dotted":986993,"music-note-half":983945,"music-note-half-dotted":986994,"music-note-minus":990089,"music-note-off":983946,"music-note-off-outline":986995,"music-note-outline":986996,"music-note-plus":986590,"music-note-quarter":983947,"music-note-quarter-dotted":986997,"music-note-sixteenth":983948,"music-note-sixteenth-dotted":986998,"music-note-whole":983949,"music-note-whole-dotted":986999,"music-off":984923,"music-rest-eighth":987000,"music-rest-half":987001,"music-rest-quarter":987002,"music-rest-sixteenth":987003,"music-rest-whole":987004,"mustache":988638,"nail":986591,"nas":985331,"nativescript":985216,"nature":983950,"nature-outline":990321,"nature-people":983951,"nature-people-outline":990322,"navigation":983952,"navigation-outline":988679,"navigation-variant":989424,"navigation-variant-outline":989425,"near-me":984525,"necklace":986891,"needle":983953,"needle-off":989650,"netflix":984902,"network":984819,"network-off":986267,"network-off-outline":986268,"network-outline":986269,"network-pos":989899,"network-strength-1":985332,"network-strength-1-alert":985333,"network-strength-2":985334,"network-strength-2-alert":985335,"network-strength-3":985336,"network-strength-3-alert":985337,"network-strength-4":985338,"network-strength-4-alert":985339,"network-strength-4-cog":989466,"network-strength-off":985340,"network-strength-off-outline":985341,"network-strength-outline":985342,"new-box":983956,"newspaper":983957,"newspaper-check":989507,"newspaper-minus":986892,"newspaper-plus":986893,"newspaper-remove":989508,"newspaper-variant":987137,"newspaper-variant-multiple":987138,"newspaper-variant-multiple-outline":987139,"newspaper-variant-outline":987140,"nfc":983958,"nfc-search-variant":986707,"nfc-tap":983959,"nfc-variant":983960,"nfc-variant-off":986708,"ninja":984948,"nintendo-game-boy":988051,"nintendo-switch":985057,"nintendo-wii":984491,"nintendo-wiiu":984877,"nix":987397,"nodejs":983961,"noodles":987518,"not-equal":985485,"not-equal-variant":985486,"note":983962,"note-alert":989053,"note-alert-outline":989054,"note-check":989055,"note-check-outline":989056,"note-edit":989057,"note-edit-outline":989058,"note-minus":988751,"note-minus-outline":988752,"note-multiple":984760,"note-multiple-outline":984761,"note-off":989059,"note-off-outline":989060,"note-outline":983963,"note-plus":983964,"note-plus-outline":983965,"note-remove":988753,"note-remove-outline":988754,"note-search":988755,"note-search-outline":988756,"note-text":983966,"note-text-outline":987607,"notebook":985134,"notebook-check":988405,"notebook-check-outline":988406,"notebook-edit":988391,"notebook-edit-outline":988393,"notebook-heart":989707,"notebook-heart-outline":989708,"notebook-minus":988688,"notebook-minus-outline":988689,"notebook-multiple":986709,"notebook-outline":986815,"notebook-plus":988690,"notebook-plus-outline":988691,"notebook-remove":988692,"notebook-remove-outline":988693,"notification-clear-all":983967,"npm":984823,"nuke":984740,"null":985058,"numeric":983968,"numeric-0":985913,"numeric-0-box":983969,"numeric-0-box-multiple":986894,"numeric-0-box-multiple-outline":983970,"numeric-0-box-outline":983971,"numeric-0-circle":986270,"numeric-0-circle-outline":986271,"numeric-1":985914,"numeric-1-box":983972,"numeric-1-box-multiple":986895,"numeric-1-box-multiple-outline":983973,"numeric-1-box-outline":983974,"numeric-1-circle":986272,"numeric-1-circle-outline":986273,"numeric-10":987113,"numeric-10-box":987005,"numeric-10-box-multiple":987114,"numeric-10-box-multiple-outline":987115,"numeric-10-box-outline":987006,"numeric-10-circle":987116,"numeric-10-circle-outline":987117,"numeric-2":985915,"numeric-2-box":983975,"numeric-2-box-multiple":986896,"numeric-2-box-multiple-outline":983976,"numeric-2-box-outline":983977,"numeric-2-circle":986274,"numeric-2-circle-outline":986275,"numeric-3":985916,"numeric-3-box":983978,"numeric-3-box-multiple":986897,"numeric-3-box-multiple-outline":983979,"numeric-3-box-outline":983980,"numeric-3-circle":986276,"numeric-3-circle-outline":986277,"numeric-4":985917,"numeric-4-box":983981,"numeric-4-box-multiple":986898,"numeric-4-box-multiple-outline":983986,"numeric-4-box-outline":983982,"numeric-4-circle":986278,"numeric-4-circle-outline":986279,"numeric-5":985918,"numeric-5-box":983985,"numeric-5-box-multiple":986899,"numeric-5-box-multiple-outline":983983,"numeric-5-box-outline":983984,"numeric-5-circle":986280,"numeric-5-circle-outline":986281,"numeric-6":985919,"numeric-6-box":983987,"numeric-6-box-multiple":986900,"numeric-6-box-multiple-outline":983988,"numeric-6-box-outline":983989,"numeric-6-circle":986282,"numeric-6-circle-outline":986283,"numeric-7":985920,"numeric-7-box":983990,"numeric-7-box-multiple":986901,"numeric-7-box-multiple-outline":983991,"numeric-7-box-outline":983992,"numeric-7-circle":986284,"numeric-7-circle-outline":986285,"numeric-8":985921,"numeric-8-box":983993,"numeric-8-box-multiple":986902,"numeric-8-box-multiple-outline":983994,"numeric-8-box-outline":983995,"numeric-8-circle":986286,"numeric-8-circle-outline":986287,"numeric-9":985922,"numeric-9-box":983996,"numeric-9-box-multiple":986903,"numeric-9-box-multiple-outline":983997,"numeric-9-box-outline":983998,"numeric-9-circle":986288,"numeric-9-circle-outline":986289,"numeric-9-plus":987118,"numeric-9-plus-box":983999,"numeric-9-plus-box-multiple":986904,"numeric-9-plus-box-multiple-outline":984000,"numeric-9-plus-box-outline":984001,"numeric-9-plus-circle":986290,"numeric-9-plus-circle-outline":986291,"numeric-negative-1":987218,"numeric-off":989651,"numeric-positive-1":988619,"nut":984824,"nutrition":984002,"nuxt":987398,"oar":984700,"ocarina":986592,"oci":987881,"ocr":987450,"octagon":984003,"octagon-outline":984004,"octagram":984825,"octagram-edit":990260,"octagram-edit-outline":990261,"octagram-minus":990262,"octagram-minus-outline":990263,"octagram-outline":984949,"octagram-plus":990264,"octagram-plus-outline":990265,"octahedron":989520,"octahedron-off":989521,"odnoklassniki":984005,"offer":987675,"office-building":985489,"office-building-cog":989513,"office-building-cog-outline":989514,"office-building-marker":988448,"office-building-marker-outline":988449,"office-building-minus":990122,"office-building-minus-outline":990123,"office-building-outline":988447,"office-building-plus":990120,"office-building-plus-outline":990121,"office-building-remove":990124,"office-building-remove-outline":990125,"oil":984007,"oil-lamp":986905,"oil-level":987219,"oil-temperature":987128,"om":985459,"omega":984009,"one-up":986029,"onepassword":985217,"opacity":984524,"open-in-app":984011,"open-in-new":984012,"open-source-initiative":986030,"openid":984013,"opera":984014,"orbit":983064,"orbit-variant":988635,"order-alphabetical-ascending":983565,"order-alphabetical-descending":986375,"order-bool-ascending":983742,"order-bool-ascending-variant":985487,"order-bool-descending":988036,"order-bool-descending-variant":985488,"order-numeric-ascending":984389,"order-numeric-descending":984390,"origin":985923,"ornament":984015,"ornament-variant":984016,"outdoor-lamp":987220,"overscan":987141,"owl":984018,"pac-man":986031,"package":984019,"package-check":990033,"package-down":984020,"package-up":984021,"package-variant":984022,"package-variant-closed":984023,"package-variant-closed-check":990034,"package-variant-closed-minus":989652,"package-variant-closed-plus":989653,"package-variant-closed-remove":989654,"package-variant-minus":989655,"package-variant-plus":989656,"package-variant-remove":989657,"page-first":984576,"page-last":984577,"page-layout-body":984826,"page-layout-footer":984827,"page-layout-header":984828,"page-layout-header-footer":987007,"page-layout-sidebar-left":984829,"page-layout-sidebar-right":984830,"page-next":986032,"page-next-outline":986033,"page-previous":986034,"page-previous-outline":986035,"pail":988183,"pail-minus":988215,"pail-minus-outline":988220,"pail-off":988217,"pail-off-outline":988222,"pail-outline":988218,"pail-plus":988214,"pail-plus-outline":988219,"pail-remove":988216,"pail-remove-outline":988221,"palette":984024,"palette-advanced":984025,"palette-outline":986636,"palette-swatch":985269,"palette-swatch-outline":987996,"palette-swatch-variant":989530,"palm-tree":987221,"pan":986036,"pan-bottom-left":986037,"pan-bottom-right":986038,"pan-down":986039,"pan-horizontal":986040,"pan-left":986041,"pan-right":986042,"pan-top-left":986043,"pan-top-right":986044,"pan-up":986045,"pan-vertical":986046,"panda":984026,"pandora":984027,"panorama":984028,"panorama-fisheye":984029,"panorama-horizontal":989480,"panorama-horizontal-outline":984030,"panorama-outline":989580,"panorama-sphere":989581,"panorama-sphere-outline":989582,"panorama-variant":989583,"panorama-variant-outline":989584,"panorama-vertical":989481,"panorama-vertical-outline":984031,"panorama-wide-angle":989535,"panorama-wide-angle-outline":984032,"paper-cut-vertical":984033,"paper-roll":987479,"paper-roll-outline":987480,"paperclip":984034,"paperclip-check":989894,"paperclip-lock":989658,"paperclip-minus":989895,"paperclip-off":989896,"paperclip-plus":989897,"paperclip-remove":989898,"parachute":986292,"parachute-outline":986293,"paragliding":988997,"parking":984035,"party-popper":987222,"passport":985059,"passport-alert":990392,"passport-biometric":986593,"passport-cancel":990393,"passport-check":990394,"passport-minus":990395,"passport-plus":990396,"passport-remove":990397,"pasta":987488,"patio-heater":987008,"patreon":985218,"pause":984036,"pause-box":983228,"pause-box-outline":990074,"pause-circle":984037,"pause-circle-outline":984038,"pause-octagon":984039,"pause-octagon-outline":984040,"paw":984041,"paw-off":984663,"paw-off-outline":988790,"paw-outline":988789,"peace":985220,"peanut":987132,"peanut-off":987133,"peanut-off-outline":987135,"peanut-outline":987134,"pen":984042,"pen-lock":986594,"pen-minus":986595,"pen-off":986596,"pen-plus":986597,"pen-remove":986598,"pencil":984043,"pencil-box":984044,"pencil-box-multiple":987460,"pencil-box-multiple-outline":987461,"pencil-box-outline":984045,"pencil-circle":984831,"pencil-circle-outline":984950,"pencil-lock":984046,"pencil-lock-outline":986599,"pencil-minus":986600,"pencil-minus-outline":986601,"pencil-off":984047,"pencil-off-outline":986602,"pencil-outline":986294,"pencil-plus":986603,"pencil-plus-outline":986604,"pencil-remove":986605,"pencil-remove-outline":986606,"pencil-ruler":987987,"pencil-ruler-outline":990225,"penguin":986816,"pentagon":984833,"pentagon-outline":984832,"pentagram":988775,"percent":984048,"percent-box":989698,"percent-box-outline":989699,"percent-circle":989700,"percent-circle-outline":989701,"percent-outline":987768,"periodic-table":985270,"perspective-less":986403,"perspective-more":986404,"ph":989125,"phone":984050,"phone-alert":986906,"phone-alert-outline":987534,"phone-bluetooth":984051,"phone-bluetooth-outline":987535,"phone-cancel":987324,"phone-cancel-outline":987536,"phone-check":987561,"phone-check-outline":987562,"phone-classic":984578,"phone-classic-off":987769,"phone-clock":989659,"phone-dial":988505,"phone-dial-outline":988506,"phone-forward":984052,"phone-forward-outline":987537,"phone-hangup":984053,"phone-hangup-outline":987538,"phone-in-talk":984054,"phone-in-talk-outline":987522,"phone-incoming":984055,"phone-incoming-outgoing":990015,"phone-incoming-outgoing-outline":990016,"phone-incoming-outline":987539,"phone-lock":984056,"phone-lock-outline":987540,"phone-log":984057,"phone-log-outline":987541,"phone-message":987542,"phone-message-outline":987543,"phone-minus":984664,"phone-minus-outline":987544,"phone-missed":984058,"phone-missed-outline":987557,"phone-off":986607,"phone-off-outline":987558,"phone-outgoing":984059,"phone-outgoing-outline":987545,"phone-outline":986608,"phone-paused":984060,"phone-paused-outline":987546,"phone-plus":984665,"phone-plus-outline":987547,"phone-refresh":989587,"phone-refresh-outline":989588,"phone-remove":988463,"phone-remove-outline":988464,"phone-return":985135,"phone-return-outline":987548,"phone-ring":987563,"phone-ring-outline":987564,"phone-rotate-landscape":985221,"phone-rotate-portrait":985222,"phone-settings":984061,"phone-settings-outline":987549,"phone-sync":989589,"phone-sync-outline":989590,"phone-voip":984062,"pi":984063,"pi-box":984064,"pi-hole":986609,"piano":984701,"piano-off":984728,"pickaxe":985271,"picture-in-picture-bottom-right":986711,"picture-in-picture-bottom-right-outline":986712,"picture-in-picture-top-right":986713,"picture-in-picture-top-right-outline":986714,"pier":985223,"pier-crane":985224,"pig":984065,"pig-variant":987142,"pig-variant-outline":988792,"piggy-bank":987143,"piggy-bank-outline":988793,"pill":984066,"pill-multiple":990028,"pill-off":989788,"pillar":984834,"pin":984067,"pin-off":984068,"pin-off-outline":985392,"pin-outline":985393,"pine-tree":984069,"pine-tree-box":984070,"pine-tree-fire":988186,"pine-tree-variant":990323,"pine-tree-variant-outline":990324,"pinterest":984071,"pinwheel":985813,"pinwheel-outline":985814,"pipe":985061,"pipe-disconnected":985062,"pipe-leak":985225,"pipe-valve":989261,"pipe-wrench":987988,"pirate":985608,"pistol":984835,"piston":985226,"pitchfork":988499,"pizza":984073,"plane-car":989951,"plane-train":989952,"play":984074,"play-box":987770,"play-box-edit-outline":990266,"play-box-lock":989718,"play-box-lock-open":989719,"play-box-lock-open-outline":989720,"play-box-lock-outline":989721,"play-box-multiple":986393,"play-box-multiple-outline":988134,"play-box-outline":984075,"play-circle":984076,"play-circle-outline":984077,"play-network":985227,"play-network-outline":986295,"play-outline":986907,"play-pause":984078,"play-protected-content":984079,"play-speed":985343,"playlist-check":984519,"playlist-edit":985344,"playlist-minus":984080,"playlist-music":986296,"playlist-music-outline":986297,"playlist-play":984081,"playlist-plus":984082,"playlist-remove":984083,"playlist-star":986610,"plex":984762,"pliers":989604,"plus":984085,"plus-box":984086,"plus-box-multiple":983860,"plus-box-multiple-outline":987459,"plus-box-outline":984836,"plus-circle":984087,"plus-circle-multiple":983884,"plus-circle-multiple-outline":984088,"plus-circle-outline":984089,"plus-lock":989789,"plus-lock-open":989790,"plus-minus":985490,"plus-minus-box":985491,"plus-minus-variant":988361,"plus-network":984090,"plus-network-outline":986298,"plus-outline":984837,"plus-thick":987628,"pocket":990398,"podcast":985492,"podium":986405,"podium-bronze":986406,"podium-gold":986407,"podium-silver":986408,"point-of-sale":986514,"pokeball":984093,"pokemon-go":985609,"poker-chip":985136,"polaroid":984094,"police-badge":987495,"police-badge-outline":987496,"police-station":989241,"poll":984095,"polo":988355,"polymer":984097,"pool":984582,"pool-thermometer":989791,"popcorn":984098,"post":987144,"post-lamp":989792,"post-outline":987145,"postage-stamp":986299,"pot":983781,"pot-mix":984667,"pot-mix-outline":984695,"pot-outline":983807,"pot-steam":984666,"pot-steam-outline":983846,"pound":984099,"pound-box":984100,"pound-box-outline":987519,"power":984101,"power-cycle":985345,"power-off":985346,"power-on":985347,"power-plug":984741,"power-plug-battery":990267,"power-plug-battery-outline":990268,"power-plug-off":984742,"power-plug-off-outline":988196,"power-plug-outline":988197,"power-settings":984102,"power-sleep":985348,"power-socket":984103,"power-socket-au":985349,"power-socket-ch":987059,"power-socket-de":987399,"power-socket-eu":985063,"power-socket-fr":987400,"power-socket-it":988415,"power-socket-jp":987401,"power-socket-uk":985064,"power-socket-us":985065,"power-standby":985350,"powershell":985610,"prescription":984838,"presentation":984104,"presentation-play":984105,"pretzel":988514,"printer":984106,"printer-3d":984107,"printer-3d-nozzle":986715,"printer-3d-nozzle-alert":987584,"printer-3d-nozzle-alert-outline":987585,"printer-3d-nozzle-heat":989368,"printer-3d-nozzle-heat-outline":989369,"printer-3d-nozzle-off":989977,"printer-3d-nozzle-off-outline":989978,"printer-3d-nozzle-outline":986716,"printer-3d-off":989966,"printer-alert":984108,"printer-check":987462,"printer-eye":988248,"printer-off":986717,"printer-off-outline":989061,"printer-outline":989062,"printer-pos":987223,"printer-pos-alert":990140,"printer-pos-alert-outline":990141,"printer-pos-cancel":990142,"printer-pos-cancel-outline":990143,"printer-pos-check":990144,"printer-pos-check-outline":990145,"printer-pos-cog":990146,"printer-pos-cog-outline":990147,"printer-pos-edit":990148,"printer-pos-edit-outline":990149,"printer-pos-minus":990150,"printer-pos-minus-outline":990151,"printer-pos-network":990152,"printer-pos-network-outline":990153,"printer-pos-off":990154,"printer-pos-off-outline":990155,"printer-pos-outline":990156,"printer-pos-pause":990157,"printer-pos-pause-outline":990158,"printer-pos-play":990159,"printer-pos-play-outline":990160,"printer-pos-plus":990161,"printer-pos-plus-outline":990162,"printer-pos-refresh":990163,"printer-pos-refresh-outline":990164,"printer-pos-remove":990165,"printer-pos-remove-outline":990166,"printer-pos-star":990167,"printer-pos-star-outline":990168,"printer-pos-stop":990169,"printer-pos-stop-outline":990170,"printer-pos-sync":990171,"printer-pos-sync-outline":990172,"printer-pos-wrench":990173,"printer-pos-wrench-outline":990174,"printer-search":988247,"printer-settings":984839,"printer-wireless":985611,"priority-high":984579,"priority-low":984580,"professional-hexagon":984109,"progress-alert":986300,"progress-check":985493,"progress-clock":985494,"progress-close":987402,"progress-download":985495,"progress-helper":990114,"progress-pencil":989063,"progress-question":988450,"progress-star":989064,"progress-star-four-points":990269,"progress-tag":990477,"progress-upload":985496,"progress-wrench":986301,"projector":984110,"projector-off":989731,"projector-screen":984111,"projector-screen-off":989197,"projector-screen-off-outline":989198,"projector-screen-outline":988964,"projector-screen-variant":989199,"projector-screen-variant-off":989200,"projector-screen-variant-off-outline":989201,"projector-screen-variant-outline":989202,"propane-tank":987991,"propane-tank-outline":987992,"protocol":987096,"publish":984743,"publish-off":989509,"pulse":984112,"pump":988162,"pump-off":989986,"pumpkin":986047,"purse":986908,"purse-outline":986909,"puzzle":984113,"puzzle-check":988198,"puzzle-check-outline":988199,"puzzle-edit":988371,"puzzle-edit-outline":988377,"puzzle-heart":988372,"puzzle-heart-outline":988378,"puzzle-minus":988369,"puzzle-minus-outline":988375,"puzzle-outline":985702,"puzzle-plus":988368,"puzzle-plus-outline":988374,"puzzle-remove":988370,"puzzle-remove-outline":988376,"puzzle-star":988373,"puzzle-star-outline":988379,"pyramid":989522,"pyramid-off":989523,"qi":985497,"qqchat":984581,"qrcode":984114,"qrcode-edit":985272,"qrcode-minus":987532,"qrcode-plus":987531,"qrcode-remove":987533,"qrcode-scan":984115,"quadcopter":984116,"quality-high":984117,"quality-low":985612,"quality-medium":985613,"queue-first-in-last-out":990383,"quora":986409,"rabbit":985351,"rabbit-variant":989793,"rabbit-variant-outline":989794,"racing-helmet":986515,"racquetball":986516,"radar":984119,"radiator":984120,"radiator-disabled":985815,"radiator-off":985816,"radio":984121,"radio-am":986302,"radio-fm":986303,"radio-handheld":984122,"radio-off":987676,"radio-tower":984123,"radioactive":984124,"radioactive-circle":989277,"radioactive-circle-outline":989278,"radioactive-off":986817,"radiobox-blank":984125,"radiobox-indeterminate-variant":990302,"radiobox-marked":984126,"radiology-box":988357,"radiology-box-outline":988358,"radius":986304,"radius-outline":986305,"railroad-light":986910,"rake":988484,"raspberry-pi":984127,"raw":989711,"raw-off":989712,"ray-end":984128,"ray-end-arrow":984129,"ray-start":984130,"ray-start-arrow":984131,"ray-start-end":984132,"ray-start-vertex-end":988632,"ray-vertex":984133,"razor-double-edge":989591,"razor-single-edge":989592,"react":984840,"read":984135,"receipt":985124,"receipt-clock":990270,"receipt-clock-outline":990271,"receipt-outline":984311,"receipt-send":990272,"receipt-send-outline":990273,"receipt-text":984137,"receipt-text-arrow-left":990274,"receipt-text-arrow-left-outline":990275,"receipt-text-arrow-right":990276,"receipt-text-arrow-right-outline":990277,"receipt-text-check":989795,"receipt-text-check-outline":989796,"receipt-text-clock":990278,"receipt-text-clock-outline":990279,"receipt-text-edit":990280,"receipt-text-edit-outline":990281,"receipt-text-minus":989797,"receipt-text-minus-outline":989798,"receipt-text-outline":989660,"receipt-text-plus":989799,"receipt-text-plus-outline":989800,"receipt-text-remove":989801,"receipt-text-remove-outline":989802,"receipt-text-send":990282,"receipt-text-send-outline":990283,"record":984138,"record-circle":986818,"record-circle-outline":986819,"record-player":985498,"record-rec":984139,"rectangle":986718,"rectangle-outline":986719,"recycle":984140,"recycle-variant":988061,"reddit":984141,"redhat":987419,"redo":984142,"redo-variant":984143,"reflect-horizontal":985614,"reflect-vertical":985615,"refresh":984144,"refresh-auto":989426,"refresh-circle":988023,"regex":984145,"registered-trademark":985703,"reiterate":988552,"relation-many-to-many":988310,"relation-many-to-one":988311,"relation-many-to-one-or-many":988312,"relation-many-to-only-one":988313,"relation-many-to-zero-or-many":988314,"relation-many-to-zero-or-one":988315,"relation-one-or-many-to-many":988316,"relation-one-or-many-to-one":988317,"relation-one-or-many-to-one-or-many":988318,"relation-one-or-many-to-only-one":988319,"relation-one-or-many-to-zero-or-many":988320,"relation-one-or-many-to-zero-or-one":988321,"relation-one-to-many":988322,"relation-one-to-one":988323,"relation-one-to-one-or-many":988324,"relation-one-to-only-one":988325,"relation-one-to-zero-or-many":988326,"relation-one-to-zero-or-one":988327,"relation-only-one-to-many":988328,"relation-only-one-to-one":988329,"relation-only-one-to-one-or-many":988330,"relation-only-one-to-only-one":988331,"relation-only-one-to-zero-or-many":988332,"relation-only-one-to-zero-or-one":988333,"relation-zero-or-many-to-many":988334,"relation-zero-or-many-to-one":988335,"relation-zero-or-many-to-one-or-many":988336,"relation-zero-or-many-to-only-one":988337,"relation-zero-or-many-to-zero-or-many":988338,"relation-zero-or-many-to-zero-or-one":988339,"relation-zero-or-one-to-many":988340,"relation-zero-or-one-to-one":988341,"relation-zero-or-one-to-one-or-many":988342,"relation-zero-or-one-to-only-one":988343,"relation-zero-or-one-to-zero-or-many":988344,"relation-zero-or-one-to-zero-or-one":988345,"relative-scale":984146,"reload":984147,"reload-alert":987403,"reminder":985228,"remote":984148,"remote-desktop":985273,"remote-off":986820,"remote-tv":986821,"remote-tv-off":986822,"rename":990232,"rename-box":984149,"rename-box-outline":990233,"rename-outline":990234,"reorder-horizontal":984712,"reorder-vertical":984713,"repeat":984150,"repeat-off":984151,"repeat-once":984152,"repeat-variant":984391,"replay":984153,"reply":984154,"reply-all":984155,"reply-all-outline":986911,"reply-circle":987566,"reply-outline":986912,"reproduction":984156,"resistor":985924,"resistor-nodes":985925,"resize":985704,"resize-bottom-right":984157,"responsive":984158,"restart":984841,"restart-alert":987404,"restart-off":986517,"restore":985499,"restore-alert":987405,"rewind":984159,"rewind-10":986410,"rewind-15":989510,"rewind-30":986518,"rewind-45":989971,"rewind-5":987641,"rewind-60":988684,"rewind-outline":984842,"rhombus":984843,"rhombus-medium":985616,"rhombus-medium-outline":988380,"rhombus-outline":984844,"rhombus-split":985617,"rhombus-split-outline":988381,"ribbon":984160,"rice":985066,"rickshaw":988603,"rickshaw-electric":988604,"ring":985067,"rivet":986720,"road":984161,"road-variant":984162,"robber":987224,"robot":984745,"robot-angry":988829,"robot-angry-outline":988830,"robot-confused":988831,"robot-confused-outline":988832,"robot-dead":988833,"robot-dead-outline":988834,"robot-excited":988835,"robot-excited-outline":988836,"robot-happy":988953,"robot-happy-outline":988954,"robot-industrial":985926,"robot-industrial-outline":989722,"robot-love":988837,"robot-love-outline":988838,"robot-mower":987639,"robot-mower-outline":987635,"robot-off":988839,"robot-off-outline":988795,"robot-outline":988794,"robot-vacuum":984845,"robot-vacuum-alert":990045,"robot-vacuum-off":990209,"robot-vacuum-variant":985352,"robot-vacuum-variant-alert":990046,"robot-vacuum-variant-off":990210,"rocket":984163,"rocket-launch":988382,"rocket-launch-outline":988383,"rocket-outline":988079,"rodent":987943,"roller-shade":989803,"roller-shade-closed":989804,"roller-skate":986411,"roller-skate-off":983365,"rollerblade":986412,"rollerblade-off":983086,"rollupjs":986048,"rolodex":989881,"rolodex-outline":989882,"roman-numeral-1":987272,"roman-numeral-10":987281,"roman-numeral-2":987273,"roman-numeral-3":987274,"roman-numeral-4":987275,"roman-numeral-5":987276,"roman-numeral-6":987277,"roman-numeral-7":987278,"roman-numeral-8":987279,"roman-numeral-9":987280,"room-service":985229,"room-service-outline":986519,"rotate-360":989593,"rotate-3d":986823,"rotate-3d-variant":984164,"rotate-left":984165,"rotate-left-variant":984166,"rotate-orbit":986520,"rotate-right":984167,"rotate-right-variant":984168,"rounded-corner":984583,"router":987618,"router-network":987271,"router-network-wireless":990359,"router-wireless":984169,"router-wireless-off":988579,"router-wireless-settings":985705,"routes":984170,"routes-clock":987225,"rowing":984584,"rss":984171,"rss-box":984172,"rss-off":986913,"rug":988277,"rugby":986521,"ruler":984173,"ruler-square":986306,"ruler-square-compass":986814,"run":984846,"run-fast":984174,"rv-truck":987604,"sack":986414,"sack-outline":990284,"sack-percent":986415,"safe":985706,"safe-square":987772,"safe-square-outline":987773,"safety-goggles":986416,"sail-boat":986824,"sail-boat-sink":989935,"sale":984175,"sale-outline":989702,"salesforce":985230,"sass":985068,"satellite":984176,"satellite-uplink":985353,"satellite-variant":984177,"sausage":985274,"sausage-off":989065,"saw-blade":986721,"sawtooth-wave":988282,"saxophone":984585,"scale":984178,"scale-balance":984529,"scale-bathroom":984179,"scale-off":987226,"scale-unbalanced":989624,"scan-helper":988120,"scanner":984747,"scanner-off":985354,"scatter-plot":986825,"scatter-plot-outline":986826,"scent":989528,"scent-off":989529,"school":984180,"school-outline":987520,"scissors-cutting":985707,"scooter":988605,"scooter-electric":988606,"scoreboard":987774,"scoreboard-outline":987775,"screen-rotation":984181,"screen-rotation-lock":984184,"screw-flat-top":986611,"screw-lag":986612,"screw-machine-flat-top":986613,"screw-machine-round-top":986614,"screw-round-top":986615,"screwdriver":984182,"script":986049,"script-outline":984183,"script-text":986050,"script-text-key":988965,"script-text-key-outline":988966,"script-text-outline":986051,"script-text-play":988967,"script-text-play-outline":988968,"sd":984185,"seal":984186,"seal-variant":987097,"search-web":984847,"seat":986307,"seat-flat":984187,"seat-flat-angled":984188,"seat-individual-suite":984189,"seat-legroom-extra":984190,"seat-legroom-normal":984191,"seat-legroom-reduced":984192,"seat-outline":986308,"seat-passenger":987721,"seat-recline-extra":984193,"seat-recline-normal":984194,"seatbelt":986309,"security":984195,"security-network":984196,"seed":986722,"seed-off":988157,"seed-off-outline":988158,"seed-outline":986723,"seed-plus":989805,"seed-plus-outline":989806,"seesaw":988580,"segment":986827,"select":984197,"select-all":984198,"select-arrow-down":990041,"select-arrow-up":990040,"select-color":986417,"select-compare":985817,"select-drag":985708,"select-group":987010,"select-inverse":984199,"select-marker":987776,"select-multiple":987777,"select-multiple-marker":987778,"select-off":984200,"select-place":987098,"select-remove":989121,"select-search":987652,"selection":984201,"selection-drag":985709,"selection-ellipse":986418,"selection-ellipse-arrow-inside":986914,"selection-ellipse-remove":989122,"selection-marker":987779,"selection-multiple":987781,"selection-multiple-marker":987780,"selection-off":984951,"selection-remove":989123,"selection-search":987653,"semantic-web":987926,"send":984202,"send-check":987489,"send-check-outline":987490,"send-circle":986616,"send-circle-outline":986617,"send-clock":987491,"send-clock-outline":987492,"send-lock":985069,"send-lock-outline":987494,"send-outline":987493,"send-variant":990285,"send-variant-clock":990334,"send-variant-clock-outline":990335,"send-variant-outline":990286,"serial-port":984668,"server":984203,"server-minus":984204,"server-minus-outline":990360,"server-network":984205,"server-network-off":984206,"server-network-outline":990361,"server-off":984207,"server-outline":990362,"server-plus":984208,"server-plus-outline":990363,"server-remove":984209,"server-security":984210,"set-all":984952,"set-center":984953,"set-center-right":984954,"set-left":984955,"set-left-center":984956,"set-left-right":984957,"set-merge":988384,"set-none":984958,"set-right":984959,"set-split":988385,"set-square":988253,"set-top-box":985503,"settings-helper":985710,"shaker":987406,"shaker-outline":987407,"shape":985137,"shape-circle-plus":984669,"shape-outline":985138,"shape-oval-plus":987642,"shape-plus":984213,"shape-plus-outline":990287,"shape-polygon-plus":984670,"shape-rectangle-plus":984671,"shape-square-plus":984672,"shape-square-rounded-plus":988410,"share":984214,"share-all":987636,"share-all-outline":987637,"share-circle":987565,"share-off":986915,"share-off-outline":986916,"share-outline":985394,"share-variant":984215,"share-variant-outline":988436,"shark":989370,"shark-fin":988787,"shark-fin-outline":988788,"shark-off":989371,"sheep":986310,"shield":984216,"shield-account":985231,"shield-account-outline":985618,"shield-account-variant":988583,"shield-account-variant-outline":988584,"shield-airplane":984763,"shield-airplane-outline":986311,"shield-alert":986828,"shield-alert-outline":986829,"shield-bug":988122,"shield-bug-outline":988123,"shield-car":987011,"shield-check":984421,"shield-check-outline":986312,"shield-cross":986313,"shield-cross-outline":986314,"shield-crown":989372,"shield-crown-outline":989373,"shield-edit":987552,"shield-edit-outline":987553,"shield-half":988000,"shield-half-full":984960,"shield-home":984714,"shield-home-outline":986315,"shield-key":986052,"shield-key-outline":986053,"shield-link-variant":986419,"shield-link-variant-outline":986420,"shield-lock":985501,"shield-lock-open":989594,"shield-lock-open-outline":989595,"shield-lock-outline":986316,"shield-moon":989224,"shield-moon-outline":989225,"shield-off":985502,"shield-off-outline":985500,"shield-outline":984217,"shield-plus":985818,"shield-plus-outline":985819,"shield-refresh":983210,"shield-refresh-outline":983520,"shield-remove":985820,"shield-remove-outline":985821,"shield-search":986522,"shield-star":987451,"shield-star-outline":987452,"shield-sun":987229,"shield-sun-outline":987230,"shield-sword":989374,"shield-sword-outline":989375,"shield-sync":987554,"shield-sync-outline":987555,"shimmer":988485,"ship-wheel":985139,"shipping-pallet":989262,"shoe-ballet":988618,"shoe-cleat":988615,"shoe-formal":985927,"shoe-heel":985928,"shoe-print":986618,"shoe-sneaker":988616,"shopping":984218,"shopping-music":984219,"shopping-outline":987605,"shopping-search":987012,"shopping-search-outline":989807,"shore":988409,"shovel":984848,"shovel-off":984849,"shower":985504,"shower-head":985505,"shredder":984220,"shuffle":984221,"shuffle-disabled":984222,"shuffle-variant":984223,"shuriken":988031,"sickle":989376,"sigma":984224,"sigma-lower":984619,"sign-caution":984225,"sign-direction":984961,"sign-direction-minus":987136,"sign-direction-plus":987100,"sign-direction-remove":987101,"sign-language":990029,"sign-language-outline":990030,"sign-pole":988408,"sign-real-estate":987416,"sign-text":984962,"sign-yield":990127,"signal":984226,"signal-2g":984850,"signal-3g":984851,"signal-4g":984852,"signal-5g":985711,"signal-cellular-1":985276,"signal-cellular-2":985277,"signal-cellular-3":985278,"signal-cellular-outline":985279,"signal-distance-variant":986724,"signal-hspa":984853,"signal-hspa-plus":984854,"signal-off":984963,"signal-variant":984586,"signature":986619,"signature-freehand":986620,"signature-image":986621,"signature-text":986622,"silo":990111,"silo-outline":985929,"silverware":984227,"silverware-clean":987102,"silverware-fork":984228,"silverware-fork-knife":985712,"silverware-spoon":984229,"silverware-variant":984230,"sim":984231,"sim-alert":984232,"sim-alert-outline":988627,"sim-off":984233,"sim-off-outline":988628,"sim-outline":988629,"simple-icons":987933,"sina-weibo":985823,"sine-wave":985435,"sitemap":984234,"sitemap-outline":989596,"size-l":988070,"size-m":988069,"size-s":988068,"size-xl":988071,"size-xs":988067,"size-xxl":988072,"size-xxs":988066,"size-xxxl":988073,"skate":986421,"skate-off":984729,"skateboard":988354,"skateboarding":984321,"skew-less":986422,"skew-more":986423,"ski":987908,"ski-cross-country":987909,"ski-water":987910,"skip-backward":984235,"skip-backward-outline":986917,"skip-forward":984236,"skip-forward-outline":986918,"skip-next":984237,"skip-next-circle":984673,"skip-next-circle-outline":984674,"skip-next-outline":986919,"skip-previous":984238,"skip-previous-circle":984675,"skip-previous-circle-outline":984676,"skip-previous-outline":986920,"skull":984716,"skull-crossbones":986054,"skull-crossbones-outline":986055,"skull-outline":986056,"skull-scan":988359,"skull-scan-outline":988360,"skype":984239,"skype-business":984240,"slack":984241,"slash-forward":987103,"slash-forward-box":987104,"sledding":984091,"sleep":984242,"sleep-off":984243,"slide":988581,"slope-downhill":986623,"slope-uphill":986624,"slot-machine":987412,"slot-machine-outline":987413,"smart-card":987325,"smart-card-off":989431,"smart-card-off-outline":989432,"smart-card-outline":987326,"smart-card-reader":987327,"smart-card-reader-outline":987328,"smog":985713,"smoke":989081,"smoke-detector":983954,"smoke-detector-alert":989486,"smoke-detector-alert-outline":989487,"smoke-detector-off":989193,"smoke-detector-off-outline":989194,"smoke-detector-outline":989192,"smoke-detector-variant":989195,"smoke-detector-variant-alert":989488,"smoke-detector-variant-off":989196,"smoking":984244,"smoking-off":984245,"smoking-pipe":988173,"smoking-pipe-off":988200,"snail":988791,"snake":988430,"snapchat":984246,"snowboard":987911,"snowflake":984855,"snowflake-alert":986921,"snowflake-check":989808,"snowflake-melt":987851,"snowflake-off":988387,"snowflake-thermometer":989809,"snowflake-variant":986922,"snowman":984247,"snowmobile":984797,"snowshoeing":989810,"soccer":984248,"soccer-field":985140,"social-distance-2-meters":988537,"social-distance-6-feet":988538,"sofa":984249,"sofa-outline":988525,"sofa-single":988526,"sofa-single-outline":988527,"solar-panel":986523,"solar-panel-large":986524,"solar-power":985714,"solar-power-variant":989811,"solar-power-variant-outline":989812,"soldering-iron":987282,"solid":984717,"sony-playstation":984084,"sort":984250,"sort-alphabetical-ascending":984509,"sort-alphabetical-ascending-variant":987464,"sort-alphabetical-descending":984511,"sort-alphabetical-descending-variant":987465,"sort-alphabetical-variant":984251,"sort-ascending":984252,"sort-bool-ascending":988037,"sort-bool-ascending-variant":988038,"sort-bool-descending":988039,"sort-bool-descending-variant":988040,"sort-calendar-ascending":988487,"sort-calendar-descending":988488,"sort-clock-ascending":988489,"sort-clock-ascending-outline":988490,"sort-clock-descending":988491,"sort-clock-descending-outline":988492,"sort-descending":984253,"sort-numeric-ascending":988041,"sort-numeric-ascending-variant":985357,"sort-numeric-descending":988042,"sort-numeric-descending-variant":985810,"sort-numeric-variant":984254,"sort-reverse-variant":983868,"sort-variant":984255,"sort-variant-lock":986317,"sort-variant-lock-open":986318,"sort-variant-off":989883,"sort-variant-remove":987463,"soundbar":989147,"soundcloud":984256,"source-branch":984620,"source-branch-check":988367,"source-branch-minus":988363,"source-branch-plus":988362,"source-branch-refresh":988365,"source-branch-remove":988364,"source-branch-sync":988366,"source-commit":984856,"source-commit-end":984857,"source-commit-end-local":984858,"source-commit-local":984859,"source-commit-next-local":984860,"source-commit-start":984861,"source-commit-start-next-local":984862,"source-fork":984257,"source-merge":984621,"source-pull":984258,"source-repository":986319,"source-repository-multiple":986320,"soy-sauce":985070,"soy-sauce-off":988156,"spa":986321,"spa-outline":986322,"space-invaders":986057,"space-station":988035,"spade":986725,"speaker":984259,"speaker-bluetooth":985506,"speaker-message":989969,"speaker-multiple":986424,"speaker-off":984260,"speaker-pause":990067,"speaker-play":990066,"speaker-stop":990068,"speaker-wireless":984863,"spear":989253,"speedometer":984261,"speedometer-medium":987013,"speedometer-slow":987014,"spellcheck":984262,"sphere":989524,"sphere-off":989525,"spider":987626,"spider-outline":990325,"spider-thread":987627,"spider-web":986058,"spirit-level":988401,"spoon-sugar":988201,"spotify":984263,"spotlight":984264,"spotlight-beam":984265,"spray":984677,"spray-bottle":985824,"sprinkler":987231,"sprinkler-fire":989597,"sprinkler-variant":987232,"sprout":986726,"sprout-outline":986727,"square":984932,"square-circle":988416,"square-circle-outline":990288,"square-edit-outline":985356,"square-medium":985619,"square-medium-outline":985620,"square-off":987886,"square-off-outline":987887,"square-opacity":989268,"square-outline":984931,"square-root":984964,"square-root-box":985507,"square-rounded":988411,"square-rounded-badge":989703,"square-rounded-badge-outline":989704,"square-rounded-outline":988412,"square-small":985621,"square-wave":988283,"squeegee":985825,"ssh":985280,"stack-exchange":984587,"stack-overflow":984268,"stackpath":983897,"stadium":987129,"stadium-outline":989955,"stadium-variant":984864,"stairs":984269,"stairs-box":988062,"stairs-down":987838,"stairs-up":987837,"stamper":986425,"standard-definition":985071,"star":984270,"star-box":985715,"star-box-multiple":987782,"star-box-multiple-outline":987783,"star-box-outline":985716,"star-check":988518,"star-check-outline":988522,"star-circle":984271,"star-circle-outline":985508,"star-cog":988776,"star-cog-outline":988777,"star-crescent":985465,"star-david":985466,"star-face":985509,"star-four-points":985826,"star-four-points-box":990289,"star-four-points-box-outline":990290,"star-four-points-circle":990291,"star-four-points-circle-outline":990292,"star-four-points-outline":985827,"star-four-points-small":990293,"star-half":983622,"star-half-full":984272,"star-minus":988516,"star-minus-outline":988520,"star-off":984273,"star-off-outline":988507,"star-outline":984274,"star-plus":988515,"star-plus-outline":988519,"star-remove":988517,"star-remove-outline":988521,"star-settings":988778,"star-settings-outline":988779,"star-shooting":988993,"star-shooting-outline":988994,"star-three-points":985828,"star-three-points-outline":985829,"state-machine":987631,"steam":984275,"steering":984276,"steering-off":985358,"step-backward":984277,"step-backward-2":984278,"step-forward":984279,"step-forward-2":984280,"stethoscope":984281,"sticker":988004,"sticker-alert":988005,"sticker-alert-outline":988006,"sticker-check":988007,"sticker-check-outline":988008,"sticker-circle-outline":984528,"sticker-emoji":984965,"sticker-minus":988009,"sticker-minus-outline":988010,"sticker-outline":988011,"sticker-plus":988012,"sticker-plus-outline":988013,"sticker-remove":988014,"sticker-remove-outline":988015,"sticker-text":989070,"sticker-text-outline":989071,"stocking":984282,"stomach":987283,"stool":989533,"stool-outline":989534,"stop":984283,"stop-circle":984678,"stop-circle-outline":984679,"storage-tank":989813,"storage-tank-outline":989814,"store":984284,"store-24-hour":984285,"store-alert":989377,"store-alert-outline":989378,"store-check":989379,"store-check-outline":989380,"store-clock":989381,"store-clock-outline":989382,"store-cog":989383,"store-cog-outline":989384,"store-edit":989385,"store-edit-outline":989386,"store-marker":989387,"store-marker-outline":989388,"store-minus":988766,"store-minus-outline":989389,"store-off":989390,"store-off-outline":989391,"store-outline":988001,"store-plus":988767,"store-plus-outline":989392,"store-remove":988768,"store-remove-outline":989393,"store-search":989394,"store-search-outline":989395,"store-settings":989396,"store-settings-outline":989397,"storefront":985031,"storefront-check":990077,"storefront-check-outline":990078,"storefront-edit":990079,"storefront-edit-outline":990080,"storefront-minus":990083,"storefront-minus-outline":990084,"storefront-outline":987329,"storefront-plus":990081,"storefront-plus-outline":990082,"storefront-remove":990085,"storefront-remove-outline":990086,"stove":984286,"strategy":987606,"stretch-to-page":986923,"stretch-to-page-outline":986924,"string-lights":987834,"string-lights-off":987835,"subdirectory-arrow-left":984588,"subdirectory-arrow-right":984589,"submarine":988524,"subtitles":985622,"subtitles-outline":985623,"subway":984748,"subway-alert-variant":986525,"subway-variant":984287,"summit":984966,"sun-angle":989991,"sun-angle-outline":989992,"sun-clock":989815,"sun-clock-outline":989816,"sun-compass":989605,"sun-snowflake":989078,"sun-snowflake-variant":989817,"sun-thermometer":989398,"sun-thermometer-outline":989399,"sun-wireless":989182,"sun-wireless-outline":989183,"sunglasses":984288,"surfing":988998,"surround-sound":984517,"surround-sound-2-0":985072,"surround-sound-2-1":988969,"surround-sound-3-1":985073,"surround-sound-5-1":985074,"surround-sound-5-1-2":988970,"surround-sound-7-1":985075,"svg":984865,"swap-horizontal":984289,"swap-horizontal-bold":986061,"swap-horizontal-circle":987105,"swap-horizontal-circle-outline":987106,"swap-horizontal-hidden":990478,"swap-horizontal-variant":985281,"swap-vertical":984290,"swap-vertical-bold":986062,"swap-vertical-circle":987107,"swap-vertical-circle-outline":987108,"swap-vertical-variant":985282,"swim":984291,"switch":984292,"sword":984293,"sword-cross":984967,"syllabary-hangul":987955,"syllabary-hiragana":987956,"syllabary-katakana":987957,"syllabary-katakana-halfwidth":987958,"symbol":988417,"symfony":985830,"synagogue":989956,"synagogue-outline":989957,"sync":984294,"sync-alert":984295,"sync-circle":988024,"sync-off":984296,"tab":984297,"tab-minus":985931,"tab-plus":984924,"tab-remove":985932,"tab-search":989598,"tab-unselected":984298,"table":984299,"table-account":988089,"table-alert":988090,"table-arrow-down":988091,"table-arrow-left":988092,"table-arrow-right":988093,"table-arrow-up":988094,"table-border":985624,"table-cancel":988095,"table-chair":987233,"table-check":988096,"table-clock":988097,"table-cog":988098,"table-column":985141,"table-column-plus-after":984300,"table-column-plus-before":984301,"table-column-remove":984302,"table-column-width":984303,"table-edit":984304,"table-eye":987284,"table-eye-off":988099,"table-filter":990092,"table-furniture":984508,"table-headers-eye":987677,"table-headers-eye-off":987678,"table-heart":988100,"table-key":988101,"table-large":984305,"table-large-plus":987015,"table-large-remove":987016,"table-lock":988102,"table-merge-cells":985510,"table-minus":988103,"table-multiple":988104,"table-network":988105,"table-of-contents":985142,"table-off":988106,"table-picnic":988995,"table-pivot":989244,"table-plus":985717,"table-question":989985,"table-refresh":988064,"table-remove":985718,"table-row":985143,"table-row-height":984306,"table-row-plus-after":984307,"table-row-plus-before":984308,"table-row-remove":984309,"table-search":985359,"table-settings":985144,"table-split-cell":988202,"table-star":988107,"table-sync":988065,"table-tennis":986728,"tablet":984310,"tablet-cellphone":985511,"tablet-dashboard":986830,"taco":984930,"tag":984313,"tag-arrow-down":988971,"tag-arrow-down-outline":988972,"tag-arrow-left":988973,"tag-arrow-left-outline":988974,"tag-arrow-right":988975,"tag-arrow-right-outline":988976,"tag-arrow-up":988977,"tag-arrow-up-outline":988978,"tag-check":989818,"tag-check-outline":989819,"tag-edit":990364,"tag-edit-outline":990365,"tag-faces":984314,"tag-heart":984715,"tag-heart-outline":986063,"tag-hidden":990326,"tag-minus":985360,"tag-minus-outline":987679,"tag-multiple":984315,"tag-multiple-outline":987895,"tag-off":987680,"tag-off-outline":987681,"tag-outline":984316,"tag-plus":984866,"tag-plus-outline":987682,"tag-remove":984867,"tag-remove-outline":987683,"tag-search":989447,"tag-search-outline":989448,"tag-text":987684,"tag-text-outline":984317,"tailwind":988159,"tally-mark-1":989884,"tally-mark-2":989885,"tally-mark-3":989886,"tally-mark-4":989887,"tally-mark-5":989888,"tangram":984312,"tank":986426,"tanker-truck":987109,"tape-drive":988895,"tape-measure":985933,"target":984318,"target-account":986064,"target-variant":985719,"taxi":984319,"tea":986526,"tea-outline":986527,"teamviewer":984320,"teddy-bear":989435,"telescope":985934,"television":984322,"television-ambient-light":987990,"television-box":985145,"television-classic":985076,"television-classic-off":985146,"television-guide":984323,"television-off":985147,"television-pause":987017,"television-play":986831,"television-shimmer":987408,"television-speaker":989979,"television-speaker-off":989980,"television-stop":987018,"temperature-celsius":984324,"temperature-fahrenheit":984325,"temperature-kelvin":984326,"temple-buddhist":989958,"temple-buddhist-outline":989959,"temple-hindu":989960,"temple-hindu-outline":989961,"tennis":986528,"tennis-ball":984327,"tennis-ball-outline":990303,"tent":984328,"terraform":987234,"terrain":984329,"test-tube":984680,"test-tube-empty":985361,"test-tube-off":985362,"text":985512,"text-account":988528,"text-box":983578,"text-box-check":986790,"text-box-check-outline":986791,"text-box-edit":989820,"text-box-edit-outline":989821,"text-box-minus":986792,"text-box-minus-outline":986793,"text-box-multiple":985783,"text-box-multiple-outline":985784,"text-box-outline":985581,"text-box-plus":986794,"text-box-plus-outline":986795,"text-box-remove":986796,"text-box-remove-outline":986797,"text-box-search":986798,"text-box-search-outline":986799,"text-long":985514,"text-recognition":987453,"text-search":988088,"text-search-variant":989822,"text-shadow":984681,"text-short":985513,"texture":984332,"texture-box":987110,"theater":984333,"theme-light-dark":984334,"thermometer":984335,"thermometer-alert":986625,"thermometer-auto":989967,"thermometer-bluetooth":989333,"thermometer-check":989823,"thermometer-chevron-down":986626,"thermometer-chevron-up":986627,"thermometer-high":987330,"thermometer-lines":984336,"thermometer-low":987331,"thermometer-minus":986628,"thermometer-off":988465,"thermometer-plus":986629,"thermometer-probe":989995,"thermometer-probe-off":989996,"thermometer-water":989824,"thermostat":983955,"thermostat-auto":989975,"thermostat-box":985233,"thermostat-box-auto":989976,"thermostat-cog":990336,"thought-bubble":985078,"thought-bubble-outline":985079,"thumb-down":984337,"thumb-down-outline":984338,"thumb-up":984339,"thumb-up-outline":984340,"thumbs-up-down":984341,"thumbs-up-down-outline":989460,"ticket":984342,"ticket-account":984343,"ticket-confirmation":984344,"ticket-confirmation-outline":988074,"ticket-outline":985363,"ticket-percent":984868,"ticket-percent-outline":988203,"tie":984345,"tilde":984869,"tilde-off":989427,"timelapse":984346,"timeline":986065,"timeline-alert":987029,"timeline-alert-outline":987032,"timeline-check":988466,"timeline-check-outline":988467,"timeline-clock":987643,"timeline-clock-outline":987644,"timeline-minus":988468,"timeline-minus-outline":988469,"timeline-outline":986066,"timeline-plus":987030,"timeline-plus-outline":987031,"timeline-question":987033,"timeline-question-outline":987034,"timeline-remove":988470,"timeline-remove-outline":988471,"timeline-text":986067,"timeline-text-outline":986068,"timer":988075,"timer-10":984348,"timer-3":984349,"timer-alert":989900,"timer-alert-outline":989901,"timer-cancel":989902,"timer-cancel-outline":989903,"timer-check":989904,"timer-check-outline":989905,"timer-cog":989477,"timer-cog-outline":989478,"timer-edit":989906,"timer-edit-outline":989907,"timer-lock":989908,"timer-lock-open":989909,"timer-lock-open-outline":989910,"timer-lock-outline":989911,"timer-marker":989912,"timer-marker-outline":989913,"timer-minus":989914,"timer-minus-outline":989915,"timer-music":989916,"timer-music-outline":989917,"timer-off":988076,"timer-off-outline":984350,"timer-outline":984347,"timer-pause":989918,"timer-pause-outline":989919,"timer-play":989920,"timer-play-outline":989921,"timer-plus":989922,"timer-plus-outline":989923,"timer-refresh":989924,"timer-refresh-outline":989925,"timer-remove":989926,"timer-remove-outline":989927,"timer-sand":984351,"timer-sand-complete":989599,"timer-sand-empty":984749,"timer-sand-full":984972,"timer-sand-paused":989600,"timer-settings":989475,"timer-settings-outline":989476,"timer-star":989928,"timer-star-outline":989929,"timer-stop":989930,"timer-stop-outline":989931,"timer-sync":989932,"timer-sync-outline":989933,"timetable":984352,"tire":989334,"toaster":987235,"toaster-off":987575,"toaster-oven":986323,"toggle-switch":984353,"toggle-switch-off":984354,"toggle-switch-off-outline":985625,"toggle-switch-outline":985626,"toggle-switch-variant":989733,"toggle-switch-variant-off":989734,"toilet":985515,"toolbox":985516,"toolbox-outline":985517,"tools":987236,"tooltip":984355,"tooltip-account":983052,"tooltip-cellphone":989243,"tooltip-check":988508,"tooltip-check-outline":988509,"tooltip-edit":984356,"tooltip-edit-outline":987845,"tooltip-image":984357,"tooltip-image-outline":986069,"tooltip-minus":988510,"tooltip-minus-outline":988511,"tooltip-outline":984358,"tooltip-plus":986070,"tooltip-plus-outline":984359,"tooltip-question":990138,"tooltip-question-outline":990139,"tooltip-remove":988512,"tooltip-remove-outline":988513,"tooltip-text":984360,"tooltip-text-outline":986071,"tooth":985283,"tooth-outline":984361,"toothbrush":987433,"toothbrush-electric":987436,"toothbrush-paste":987434,"torch":988678,"tortoise":986427,"toslink":987832,"touch-text-outline":990304,"tournament":985518,"tow-truck":985148,"tower-beach":984705,"tower-fire":984706,"town-hall":989301,"toy-brick":987784,"toy-brick-marker":987785,"toy-brick-marker-outline":987786,"toy-brick-minus":987787,"toy-brick-minus-outline":987788,"toy-brick-outline":987789,"toy-brick-plus":987790,"toy-brick-plus-outline":987791,"toy-brick-remove":987792,"toy-brick-remove-outline":987793,"toy-brick-search":987794,"toy-brick-search-outline":987795,"track-light":985364,"track-light-off":989953,"trackpad":985080,"trackpad-lock":985395,"tractor":985234,"tractor-variant":988356,"trademark":985720,"traffic-cone":988028,"traffic-light":984363,"traffic-light-outline":989226,"train":984364,"train-bus":990407,"train-car":986072,"train-car-autorack":989997,"train-car-box":989998,"train-car-box-full":989999,"train-car-box-open":990000,"train-car-caboose":990001,"train-car-centerbeam":990002,"train-car-centerbeam-full":990003,"train-car-container":990004,"train-car-flatbed":990005,"train-car-flatbed-car":990006,"train-car-flatbed-tank":990007,"train-car-gondola":990008,"train-car-gondola-full":990009,"train-car-hopper":990010,"train-car-hopper-covered":990011,"train-car-hopper-full":990012,"train-car-intermodal":990013,"train-car-passenger":988979,"train-car-passenger-door":988980,"train-car-passenger-door-open":988981,"train-car-passenger-variant":988982,"train-car-tank":990014,"train-variant":985284,"tram":984365,"tram-side":987111,"transcribe":984366,"transcribe-close":984367,"transfer":987237,"transfer-down":986529,"transfer-left":986530,"transfer-right":984368,"transfer-up":986531,"transit-connection":986428,"transit-connection-horizontal":988486,"transit-connection-variant":986429,"transit-detour":987019,"transit-skip":988437,"transit-transfer":984750,"transition":985365,"transition-masked":985366,"translate":984522,"translate-off":986630,"translate-variant":990105,"transmission-tower":986430,"transmission-tower-export":989484,"transmission-tower-import":989485,"transmission-tower-off":989661,"trash-can":985721,"trash-can-outline":985722,"tray":987796,"tray-alert":987797,"tray-arrow-down":983328,"tray-arrow-up":983325,"tray-full":987798,"tray-minus":987799,"tray-plus":987800,"tray-remove":987801,"treasure-chest":984870,"treasure-chest-outline":990327,"tree":984369,"tree-outline":986729,"trello":984370,"trending-down":984371,"trending-neutral":984372,"trending-up":984373,"triangle":984374,"triangle-down":990294,"triangle-down-outline":990295,"triangle-outline":984375,"triangle-small-down":989705,"triangle-small-up":989706,"triangle-wave":988284,"triforce":986073,"trophy":984376,"trophy-award":984377,"trophy-broken":986532,"trophy-outline":984378,"trophy-variant":984379,"trophy-variant-outline":984380,"truck":984381,"truck-alert":989662,"truck-alert-outline":989663,"truck-cargo-container":989400,"truck-check":986324,"truck-check-outline":987802,"truck-delivery":984382,"truck-delivery-outline":987803,"truck-fast":984968,"truck-fast-outline":987804,"truck-flatbed":989329,"truck-minus":989614,"truck-minus-outline":989629,"truck-off-road":990366,"truck-off-road-off":990367,"truck-outline":987805,"truck-plus":989613,"truck-plus-outline":989628,"truck-remove":989615,"truck-remove-outline":989630,"truck-snowflake":989606,"truck-trailer":984871,"trumpet":987286,"tshirt-crew":985723,"tshirt-crew-outline":984383,"tshirt-v":985724,"tshirt-v-outline":984384,"tsunami":989825,"tumble-dryer":985367,"tumble-dryer-alert":987578,"tumble-dryer-off":987579,"tune":984622,"tune-variant":988482,"tune-vertical":984682,"tune-vertical-variant":988483,"tunnel":989245,"tunnel-outline":989246,"turbine":989826,"turkey":988955,"turnstile":986325,"turnstile-outline":986326,"turtle":986327,"twitch":984387,"twitter":984388,"two-factor-authentication":985519,"typewriter":986925,"ubisoft":986074,"ubuntu":984392,"ufo":987332,"ufo-outline":987333,"ultra-high-definition":985081,"umbraco":984393,"umbrella":984394,"umbrella-beach":989322,"umbrella-beach-outline":989323,"umbrella-closed":985520,"umbrella-closed-outline":988130,"umbrella-closed-variant":988129,"umbrella-outline":984395,"underwear-outline":990479,"undo":984396,"undo-variant":984397,"unfold-less-horizontal":984398,"unfold-less-vertical":984928,"unfold-more-horizontal":984399,"unfold-more-vertical":984929,"ungroup":984400,"unicode":986832,"unicorn":988610,"unicorn-variant":988611,"unicycle":988645,"unity":984751,"unreal":985521,"update":984752,"upload":984402,"upload-box":990480,"upload-box-outline":990481,"upload-circle":990482,"upload-circle-outline":990483,"upload-lock":988019,"upload-lock-outline":988020,"upload-multiple":985149,"upload-multiple-outline":990484,"upload-network":984822,"upload-network-outline":986328,"upload-off":987334,"upload-off-outline":987335,"upload-outline":986631,"usb":984403,"usb-c-port":990399,"usb-flash-drive":987806,"usb-flash-drive-outline":987807,"usb-port":987632,"vacuum":989601,"vacuum-outline":989602,"valve":987238,"valve-closed":987239,"valve-open":987240,"van-passenger":985082,"van-utility":985083,"vanish":985084,"vanish-quarter":988500,"vanity-light":987617,"variable":985831,"variable-box":987409,"vector-arrange-above":984404,"vector-arrange-below":984405,"vector-bezier":985832,"vector-circle":984406,"vector-circle-variant":984407,"vector-combine":984408,"vector-curve":984409,"vector-difference":984410,"vector-difference-ab":984411,"vector-difference-ba":984412,"vector-ellipse":985235,"vector-intersection":984413,"vector-line":984414,"vector-link":987112,"vector-point":983492,"vector-point-edit":985576,"vector-point-minus":990072,"vector-point-plus":990073,"vector-point-select":984415,"vector-polygon":984416,"vector-polygon-variant":989270,"vector-polyline":984417,"vector-polyline-edit":987685,"vector-polyline-minus":987686,"vector-polyline-plus":987687,"vector-polyline-remove":987688,"vector-radius":984906,"vector-rectangle":984518,"vector-selection":984418,"vector-square":983041,"vector-square-close":989271,"vector-square-edit":989401,"vector-square-minus":989402,"vector-square-open":989272,"vector-square-plus":989403,"vector-square-remove":989404,"vector-triangle":984419,"vector-union":984420,"vhs":985627,"vibrate":984422,"vibrate-off":986329,"video":984423,"video-2d":989724,"video-3d":985085,"video-3d-off":988121,"video-3d-variant":986833,"video-4k-box":985150,"video-account":985369,"video-box":983293,"video-box-off":983294,"video-check":987241,"video-check-outline":987242,"video-high-definition":988462,"video-image":985370,"video-input-antenna":985151,"video-input-component":985152,"video-input-hdmi":985153,"video-input-scart":987020,"video-input-svideo":985154,"video-marker":989609,"video-marker-outline":989610,"video-minus":985522,"video-minus-outline":983738,"video-off":984424,"video-off-outline":986075,"video-outline":986076,"video-plus":985523,"video-plus-outline":983507,"video-stabilization":985371,"video-standard-definition":990368,"video-switch":984425,"video-switch-outline":984976,"video-vintage":985628,"video-wireless":986834,"video-wireless-outline":986835,"view-agenda":984426,"view-agenda-outline":987608,"view-array":984427,"view-array-outline":988293,"view-carousel":984428,"view-carousel-outline":988294,"view-column":984429,"view-column-outline":988295,"view-comfy":986730,"view-comfy-outline":988296,"view-compact":986731,"view-compact-outline":986732,"view-dashboard":984430,"view-dashboard-edit":989511,"view-dashboard-edit-outline":989512,"view-dashboard-outline":985629,"view-dashboard-variant":985155,"view-dashboard-variant-outline":988297,"view-day":984431,"view-day-outline":988298,"view-gallery":989320,"view-gallery-outline":989321,"view-grid":984432,"view-grid-compact":990305,"view-grid-outline":987609,"view-grid-plus":987021,"view-grid-plus-outline":987610,"view-headline":984433,"view-list":984434,"view-list-outline":988299,"view-module":984435,"view-module-outline":988300,"view-parallel":984872,"view-parallel-outline":988301,"view-quilt":984436,"view-quilt-outline":988302,"view-sequential":984873,"view-sequential-outline":988303,"view-split-horizontal":986059,"view-split-vertical":986060,"view-stream":984437,"view-stream-outline":988304,"view-week":984438,"view-week-outline":988305,"vimeo":984439,"violin":984591,"virtual-reality":985236,"virus":988086,"virus-off":989409,"virus-off-outline":989410,"virus-outline":988087,"vlc":984444,"voicemail":984445,"volcano":989827,"volcano-outline":989828,"volleyball":985524,"volume-equal":989968,"volume-high":984446,"volume-low":984447,"volume-medium":984448,"volume-minus":984926,"volume-mute":984927,"volume-off":984449,"volume-plus":984925,"volume-source":987424,"volume-variant-off":986632,"volume-vibrate":987425,"vote":985631,"vote-outline":985632,"vpn":984450,"vuejs":985156,"vuetify":986733,"walk":984451,"wall":985086,"wall-fire":989713,"wall-sconce":985372,"wall-sconce-flat":985373,"wall-sconce-flat-outline":989129,"wall-sconce-flat-variant":984092,"wall-sconce-flat-variant-outline":989130,"wall-sconce-outline":989131,"wall-sconce-round":984904,"wall-sconce-round-outline":989132,"wall-sconce-round-variant":985374,"wall-sconce-round-variant-outline":989133,"wallet":984452,"wallet-bifold":990296,"wallet-bifold-outline":990297,"wallet-giftcard":984453,"wallet-membership":984454,"wallet-outline":986077,"wallet-plus":987022,"wallet-plus-outline":987023,"wallet-travel":984455,"wallpaper":986633,"wan":984456,"wardrobe":987024,"wardrobe-outline":987025,"warehouse":987009,"washing-machine":984874,"washing-machine-alert":987580,"washing-machine-off":987581,"watch":984457,"watch-export":984458,"watch-export-variant":985237,"watch-import":984459,"watch-import-variant":985238,"watch-variant":985239,"watch-vibrate":984753,"watch-vibrate-off":986330,"water":984460,"water-alert":988418,"water-alert-outline":988419,"water-boiler":987026,"water-boiler-alert":987571,"water-boiler-auto":990104,"water-boiler-off":987572,"water-check":988420,"water-check-outline":988421,"water-circle":989190,"water-minus":988422,"water-minus-outline":988423,"water-off":984461,"water-off-outline":988424,"water-opacity":989269,"water-outline":986634,"water-percent":984462,"water-percent-alert":988425,"water-plus":988426,"water-plus-outline":988427,"water-polo":987808,"water-pump":984463,"water-pump-off":987027,"water-remove":988428,"water-remove-outline":988429,"water-sync":989126,"water-thermometer":989829,"water-thermometer-outline":989830,"water-well":987243,"water-well-outline":987244,"waterfall":989257,"watering-can":988289,"watering-can-outline":988290,"watermark":984594,"wave":986926,"wave-arrow-down":990384,"wave-arrow-up":990385,"wave-undercurrent":990400,"waveform":988285,"waves":984973,"waves-arrow-left":989273,"waves-arrow-right":989274,"waves-arrow-up":989275,"waze":986078,"weather-cloudy":984464,"weather-cloudy-alert":986927,"weather-cloudy-arrow-right":986734,"weather-cloudy-clock":989430,"weather-dust":990042,"weather-fog":984465,"weather-hail":984466,"weather-hazy":986928,"weather-hurricane":985240,"weather-hurricane-outline":990328,"weather-lightning":984467,"weather-lightning-rainy":984702,"weather-moonset":990485,"weather-moonset-down":990486,"weather-moonset-up":990487,"weather-night":984468,"weather-night-partly-cloudy":986929,"weather-partly-cloudy":984469,"weather-partly-lightning":986930,"weather-partly-rainy":986931,"weather-partly-snowy":986932,"weather-partly-snowy-rainy":986933,"weather-pouring":984470,"weather-rainy":984471,"weather-snowy":984472,"weather-snowy-heavy":986934,"weather-snowy-rainy":984703,"weather-sunny":984473,"weather-sunny-alert":986935,"weather-sunny-off":988388,"weather-sunset":984474,"weather-sunset-down":984475,"weather-sunset-up":984476,"weather-tornado":986936,"weather-windy":984477,"weather-windy-variant":984478,"web":984479,"web-box":987028,"web-cancel":989072,"web-check":984969,"web-clock":987722,"web-minus":987296,"web-off":985742,"web-plus":983091,"web-refresh":989073,"web-remove":984401,"web-sync":989074,"webcam":984480,"webcam-off":988983,"webhook":984623,"webpack":984875,"webrtc":987720,"wechat":984593,"weight":984481,"weight-gram":986431,"weight-kilogram":984482,"weight-lifter":987485,"weight-pound":985525,"whatsapp":984483,"wheel-barrow":988402,"wheelchair":989831,"wheelchair-accessibility":984484,"whistle":985526,"whistle-outline":987836,"white-balance-auto":984485,"white-balance-incandescent":984486,"white-balance-iridescent":984487,"white-balance-sunny":984488,"widgets":984876,"widgets-outline":987989,"wifi":984489,"wifi-alert":988853,"wifi-arrow-down":988854,"wifi-arrow-left":988855,"wifi-arrow-left-right":988856,"wifi-arrow-right":988857,"wifi-arrow-up":988858,"wifi-arrow-up-down":988859,"wifi-cancel":988860,"wifi-check":988861,"wifi-cog":988862,"wifi-lock":988863,"wifi-lock-open":988864,"wifi-marker":988865,"wifi-minus":988866,"wifi-off":984490,"wifi-plus":988867,"wifi-refresh":988868,"wifi-remove":988869,"wifi-settings":988870,"wifi-star":986635,"wifi-strength-1":985375,"wifi-strength-1-alert":985376,"wifi-strength-1-lock":985377,"wifi-strength-1-lock-open":988875,"wifi-strength-2":985378,"wifi-strength-2-alert":985379,"wifi-strength-2-lock":985380,"wifi-strength-2-lock-open":988876,"wifi-strength-3":985381,"wifi-strength-3-alert":985382,"wifi-strength-3-lock":985383,"wifi-strength-3-lock-open":988877,"wifi-strength-4":985384,"wifi-strength-4-alert":985385,"wifi-strength-4-lock":985386,"wifi-strength-4-lock-open":988878,"wifi-strength-alert-outline":985387,"wifi-strength-lock-open-outline":988879,"wifi-strength-lock-outline":985388,"wifi-strength-off":985389,"wifi-strength-off-outline":985390,"wifi-strength-outline":985391,"wifi-sync":988871,"wikipedia":984492,"wind-power":989832,"wind-power-outline":989833,"wind-turbine":986533,"wind-turbine-alert":989611,"wind-turbine-check":989612,"window-close":984493,"window-closed":984494,"window-closed-variant":987611,"window-maximize":984495,"window-minimize":984496,"window-open":984497,"window-open-variant":987612,"window-restore":984498,"window-shutter":987420,"window-shutter-alert":987421,"window-shutter-auto":990115,"window-shutter-cog":989834,"window-shutter-open":987422,"window-shutter-settings":989835,"windsock":988666,"wiper":985833,"wiper-wash":986534,"wiper-wash-alert":989407,"wizard-hat":988279,"wordpress":984500,"wrap":984502,"wrap-disabled":986079,"wrench":984503,"wrench-check":990095,"wrench-check-outline":990096,"wrench-clock":989603,"wrench-clock-outline":990099,"wrench-cog":990097,"wrench-cog-outline":990098,"wrench-outline":986080,"xamarin":985157,"xml":984512,"xmpp":985087,"yahoo":985935,"yeast":984513,"yin-yang":984704,"yoga":987516,"youtube":984515,"youtube-gaming":985160,"youtube-studio":985159,"youtube-subscription":986432,"youtube-tv":984136,"yurt":988438,"z-wave":985834,"zend":985835,"zigbee":986433,"zip-box":984516,"zip-box-outline":987130,"zip-disk":985635,"zodiac-aquarius":985725,"zodiac-aries":985726,"zodiac-cancer":985727,"zodiac-capricorn":985728,"zodiac-gemini":985729,"zodiac-leo":985730,"zodiac-libra":985731,"zodiac-pisces":985732,"zodiac-sagittarius":985733,"zodiac-scorpio":985734,"zodiac-taurus":985735,"zodiac-virgo":985736,"blank":63116}')},44138:e=>{"use strict";e.exports=function(e,t){for(var n=0;n{"use strict";n.d(t,{A:()=>s});var r=n(67862),i=n(15725),o=n(90646),a=n.n(o);class s{constructor(e){"ios"===r.A.OS&&(a()(null!=e,"`new NativeEventEmitter()` requires a non-null argument."),this._nativeModule=e)}addListener(e,t,n){var r;null==(r=this._nativeModule)||r.addListener(e);var o=i.A.addListener(e,t,n);return{remove:()=>{var e;null!=o&&(null==(e=this._nativeModule)||e.removeListeners(1),o.remove(),o=null)}}}removeListener(e,t){var n;null==(n=this._nativeModule)||n.removeListeners(1),i.A.removeListener(e,t)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.create=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,this.apiCall.post(this.endpointPath(),e)]}))}))},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/analytics/events"},enumerable:!1,configurable:!0}),e}();t.default=i},44323:e=>{"use strict";e.exports=function(e){return!!e}},44363:(e,t,n)=>{"use strict";e.exports=n(22799)},44728:e=>{"use strict";function t(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function n(e,r){if(e===r)return e;for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&"__proto__"!==i&&"constructor"!==i){var o=r[i],a=e[i];void 0!==a&&void 0===o||(t(a)&&t(o)?e[i]=n(a,o):e[i]="object"==typeof(s=o)&&null!==s?n(Array.isArray(s)?[]:{},s):s)}var s;return e}e.exports=function(e){t(e)||(e={});for(var r=1,i=arguments.length;r{"use strict";var r=n(57003);e.exports=r,r.prototype.done=function(e,t){(arguments.length?this.then.apply(this,arguments):this).then(null,(function(e){setTimeout((function(){throw e}),0)}))}},45100:(e,t,n)=>{"use strict";var r=n(70453),i=r("%Uint8Array%",!0),o=r("%Uint32Array%",!0),a=n(74372),s=o&&new o([305419896]),l=s&&new i(a(s));e.exports=l?120===l[0]?"little":18===l[0]?"big":52===l[0]?"mixed":"unknown":"indeterminate"},45247:(e,t,n)=>{"use strict";e.exports=n.p+"1fcc36272ea3e53d0031.ttf"},45291:(e,t,n)=>{"use strict";var r=n(69675),i=n(25910),o=n(4742),a=n(69346),s=n(74372),l=n(72308),c=n(66058);e.exports=function(e){if(!a(e))throw new r("Assertion failed: `taRecord` must be a TypedArray With Buffer Witness Record");var t=e["[[Object]]"],n=e["[[CachedBufferByteLength]]"];if(i(s(t))&&"DETACHED"!==n)throw new r("Assertion failed: typed array is detached only if the byte length is ~DETACHED~");if("DETACHED"===n)return!0;var u,h=l(t),d=c(t);return u="AUTO"===d?n:h+d*o(t),h>n||u>n}},45351:(e,t,n)=>{"use strict";var r=n(36556),i=n(99721),o=r("Object.prototype.toString"),a=r("Function.prototype.toString"),s=i(/^\s*async(?:\s+function(?:\s+|\()|\s*\()/),l=n(49092)(),c=n(93628),u=n(93870);e.exports=function(e){if("function"!=typeof e)return!1;if(s(a(e)))return!0;if(!l)return"[object AsyncFunction]"===o(e);if(!c)return!1;var t=u();return t&&t.prototype===c(e)}},45465:(e,t,n)=>{"use strict";function r(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r;default:return 0}}function i(e,t){return e<>>32-t}n.d(t,{A:()=>o});const o=function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Array(t.length);for(let n=0;n>>0;h=u,u=c,c=i(l,30)>>>0,l=a,a=s}n[0]=n[0]+a>>>0,n[1]=n[1]+l>>>0,n[2]=n[2]+c>>>0,n[3]=n[3]+u>>>0,n[4]=n[4]+h>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}},45685:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=/[A-Z]/g,i=/^ms-/,o={};function a(e){return"-"+e.toLowerCase()}const s=function(e){if(o.hasOwnProperty(e))return o[e];var t=e.replace(r,a);return o[e]=i.test(t)?"-"+t:t}},45706:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importStar(n(73065)),o=n(14410),a=function(){function e(e){var t=this;this.nodes=e.nodes||[],this.nodes=this.nodes.map((function(e){return t.setDefaultPathInNode(e)})).map((function(e){return t.setDefaultPortInNode(e)})).map((function(e){return r.__assign({},e)})),null==e.randomizeNodes&&(e.randomizeNodes=!0),!0===e.randomizeNodes&&this.shuffleArray(this.nodes),this.nearestNode=e.nearestNode,this.nearestNode=this.setDefaultPathInNode(this.nearestNode),this.nearestNode=this.setDefaultPortInNode(this.nearestNode),this.connectionTimeoutSeconds=e.connectionTimeoutSeconds||e.timeoutSeconds||5,this.healthcheckIntervalSeconds=e.healthcheckIntervalSeconds||60,this.numRetries=(void 0!==e.numRetries&&e.numRetries>=0?e.numRetries:this.nodes.length+(null==this.nearestNode?0:1))||3,this.retryIntervalSeconds=e.retryIntervalSeconds||.1,this.apiKey=e.apiKey,this.sendApiKeyAsQueryParam=e.sendApiKeyAsQueryParam,this.cacheSearchResultsForSeconds=e.cacheSearchResultsForSeconds||0,this.useServerSideSearchCache=e.useServerSideSearchCache||!1,this.axiosAdapter=e.axiosAdapter,this.logger=e.logger||i,this.logLevel=e.logLevel||"warn",this.logger.setLevel(this.logLevel),this.additionalHeaders=e.additionalHeaders,this.httpAgent=e.httpAgent,this.httpsAgent=e.httpsAgent,this.paramsSerializer=e.paramsSerializer,this.showDeprecationWarnings(e),this.validate()}return e.prototype.validate=function(){if(null==this.nodes||0===this.nodes.length||this.validateNodes())throw new o.MissingConfigurationError("Ensure that nodes[].protocol, nodes[].host and nodes[].port are set");if(null!=this.nearestNode&&this.isNodeMissingAnyParameters(this.nearestNode))throw new o.MissingConfigurationError("Ensure that nearestNodes.protocol, nearestNodes.host and nearestNodes.port are set");if(null==this.apiKey)throw new o.MissingConfigurationError("Ensure that apiKey is set");return!0},e.prototype.validateNodes=function(){var e=this;return this.nodes.some((function(t){return e.isNodeMissingAnyParameters(t)}))},e.prototype.isNodeMissingAnyParameters=function(e){return!["protocol","host","port","path"].every((function(t){return e.hasOwnProperty(t)}))&&null==e.url},e.prototype.setDefaultPathInNode=function(e){return null==e||e.hasOwnProperty("path")||(e.path=""),e},e.prototype.setDefaultPortInNode=function(e){if(null!=e&&!e.hasOwnProperty("port")&&e.hasOwnProperty("protocol"))switch(e.protocol){case"https":e.port=443;break;case"http":e.port=80}return e},e.prototype.showDeprecationWarnings=function(e){e.timeoutSeconds&&this.logger.warn("Deprecation warning: timeoutSeconds is now renamed to connectionTimeoutSeconds"),e.masterNode&&this.logger.warn("Deprecation warning: masterNode is now consolidated to nodes, starting with Typesense Server v0.12"),e.readReplicaNodes&&this.logger.warn("Deprecation warning: readReplicaNodes is now consolidated to nodes, starting with Typesense Server v0.12")},e.prototype.shuffleArray=function(e){for(var t,n=e.length-1;n>0;n--){var r=Math.floor(Math.random()*(n+1));t=[e[r],e[n]],e[n]=t[0],e[r]=t[1]}},e}();t.default=a},46060:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(96540)),i=a(n(26268)),o=a(n(4146));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(i,["_reactThemeProviderForwardedRef"]);return r.createElement(t.Consumer,null,(function(t){return r.createElement(e,s({},a,{theme:n._merge(t,a.theme),ref:o}))}))},u}(r.Component),a=r.forwardRef((function(e,t){return r.createElement(n,s({},e,{_reactThemeProviderForwardedRef:t}))}));return a.displayName="withTheme("+(e.displayName||e.name)+")",(0,o.default)(a,e),a}}},46083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0,t.isPunctuatorTokenKind=function(e){return e===s.TokenKind.BANG||e===s.TokenKind.DOLLAR||e===s.TokenKind.AMP||e===s.TokenKind.PAREN_L||e===s.TokenKind.PAREN_R||e===s.TokenKind.SPREAD||e===s.TokenKind.COLON||e===s.TokenKind.EQUALS||e===s.TokenKind.AT||e===s.TokenKind.BRACKET_L||e===s.TokenKind.BRACKET_R||e===s.TokenKind.BRACE_L||e===s.TokenKind.PIPE||e===s.TokenKind.BRACE_R};var r=n(51352),i=n(76257),o=n(69165),a=n(3932),s=n(73038);class l{constructor(e){const t=new i.Token(s.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.TokenKind.EOF)do{if(e.next)e=e.next;else{const t=m(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===s.TokenKind.COMMENT);return e}}function c(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function u(e,t){return h(e.charCodeAt(t))&&d(e.charCodeAt(t+1))}function h(e){return e>=55296&&e<=56319}function d(e){return e>=56320&&e<=57343}function f(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return s.TokenKind.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function p(e,t,n,r,o){const a=e.line,s=1+n-e.lineStart;return new i.Token(t,n,r,a,s,o)}function m(e,t){const n=e.source.body,i=n.length;let o=t;for(;o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function S(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,r.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function E(e,t){const n=e.source.body,i=n.length;let a=e.lineStart,l=t+3,h=l,d="";const m=[];for(;l{"use strict";n.d(t,{A:()=>p});var r=n(58168),i=n(98587),o=n(96540),a=n(11804),s=n(86533),l=n(43999),c=n(9176),u=["activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style"];function h(e,t){var n=e.activeOpacity,l=e.delayPressIn,h=e.delayPressOut,f=e.delayLongPress,p=e.disabled,m=e.focusable,g=e.onLongPress,y=e.onPress,v=e.onPressIn,b=e.onPressOut,A=e.rejectResponderTermination,x=e.style,w=(0,i.A)(e,u),C=(0,o.useRef)(null),S=(0,a.A)(t,C),E=(0,o.useState)("0s"),k=E[0],T=E[1],I=(0,o.useState)(null),O=I[0],R=I[1],M=(0,o.useCallback)(((e,t)=>{R(e),T(t?t/1e3+"s":"0s")}),[R,T]),P=(0,o.useCallback)((e=>{M(null!=n?n:.2,e)}),[n,M]),D=(0,o.useCallback)((e=>{M(null,e)}),[M]),j=(0,o.useMemo)((()=>({cancelable:!A,disabled:p,delayLongPress:f,delayPressStart:l,delayPressEnd:h,onLongPress:g,onPress:y,onPressStart(e){var t=null!=e.dispatchConfig?"onResponderGrant"===e.dispatchConfig.registrationName:"keydown"===e.type;P(t?0:150),null!=v&&v(e)},onPressEnd(e){D(250),null!=b&&b(e)}})),[f,l,h,p,g,y,v,b,A,P,D]),B=(0,s.A)(C,j);return o.createElement(c.A,(0,r.A)({},w,B,{accessibilityDisabled:p,focusable:!p&&!1!==m,pointerEvents:p?"box-none":void 0,ref:S,style:[d.root,!p&&d.actionable,x,null!=O&&{opacity:O},{transitionDuration:k}]}))}var d=l.A.create({root:{transitionProperty:"opacity",transitionDuration:"0.15s",userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),f=o.memo(o.forwardRef(h));f.displayName="TouchableOpacity";const p=f},46732:(e,t,n)=>{"use strict";var r=n(72733);function i(e,t,n){this.main=e,this.fn=t,this.recommendFn=n,this.lastResults=null,this.lastRecommendResults=null}n(73014)(i,r),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},i.prototype.getModifiedRecommendState=function(e){return this.recommendFn(e)},e.exports=i},46794:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.utils=void 0,t.utils={_adaptHighlightTag:function(e,t,n){return e.replace(new RegExp("","g"),t||"").replace(new RegExp("","g"),n||"")},_adaptNumberOfPages:function(){var e=this.typesenseResponse.found/this.typesenseResponse.request_params.per_page;return Number.isFinite(e)?Math.ceil(e):1}}},46821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(87361)),o=r.__importDefault(n(81104)),a=function(){function e(e,t,n){this.collectionName=e,this.synonymId=t,this.apiCall=n}return e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(o.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.synonymId))},e}();t.default=a},46852:(e,t,n)=>{"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,i.default)(t)&&t.indexOf("image-set(")>-1)return o.map((function(e){return t.replace(/image-set\(/g,e+"image-set(")}))};var r,i=(r=n(44014))&&r.__esModule?r:{default:r},o=["-webkit-",""]},46876:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0,t.isSource=function(e){return(0,o.instanceOf)(e,a)};var r=n(93028),i=n(29657),o=n(79527);class a{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,r.devAssert)(!1,`Body must be a string. Received: ${(0,i.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,r.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,r.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=a},46985:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setDynamicLoadingErrorCallback=t.setDynamicLoadingEnabled=t.isDynamicLoadingSupported=t.isDynamicLoadingEnabled=t.getErrorCallback=void 0;const n=!!globalThis.expo?.modules?.ExpoAsset&&!!globalThis.expo?.modules?.ExpoFontLoader&&"function"==typeof globalThis.expo?.modules.ExpoFontLoader.getLoadedFonts;let r,i=n;t.isDynamicLoadingSupported=()=>n,t.setDynamicLoadingEnabled=e=>!!n&&(i=!!e,!0),t.isDynamicLoadingEnabled=()=>i,t.setDynamicLoadingErrorCallback=e=>{r=e},t.getErrorCallback=()=>r},47009:(e,t,n)=>{"use strict";e.exports=n.p+"757ca8bef5ee90fd406c.ttf"},47119:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},47244:(e,t,n)=>{"use strict";var r=n(49092)(),i=n(36556)("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},47310:e=>{"use strict";function t(e,n,r,i){this.message=e,this.expected=n,this.found=r,this.location=i,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}!function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(t,Error),t.buildMessage=function(e,t){var n={literal:function(e){return'"'+i(e.text)+'"'},class:function(e){var t,n="";for(t=0;t0){for(t=1,r=1;tte&&(te=$,ne=[]),ne.push(e))}function ce(){var e,t,n,r,o;for(e=$,t=[],n=Ae();n!==i;)t.push(n),n=Ae();if(t!==i)if((n=ue())===i&&(n=null),n!==i){for(r=[],o=Ae();o!==i;)r.push(o),o=Ae();r!==i?e=t=s(n):($=e,e=i)}else $=e,e=i;else $=e,e=i;return e}function ue(){var e,t,n,r;if(e=$,(t=he())!==i){for(n=[],r=pe();r!==i;)n.push(r),r=pe();n!==i&&(r=ue())!==i?e=t=l(t,r):($=e,e=i)}else $=e,e=i;return e===i&&(e=he()),e}function he(){var t;return(t=function(){var t,n,r,o,a,s,l,g,y,v,b,A,x;if(t=$,e.substr($,6)===c?(n=c,$+=6):(n=i,0===re&&le(u)),n!==i){for(r=[],o=Ae();o!==i;)r.push(o),o=Ae();if(r!==i)if(40===e.charCodeAt($)?(o=h,$++):(o=i,0===re&&le(d)),o!==i){for(a=[],s=Ae();s!==i;)a.push(s),s=Ae();if(a!==i)if((s=de())!==i)if(pe()!==i)if((l=de())!==i)if(pe()!==i)if((g=de())!==i)if(pe()!==i)if((y=de())!==i)if(pe()!==i)if((v=de())!==i)if(pe()!==i)if((b=de())!==i){for(A=[],x=Ae();x!==i;)A.push(x),x=Ae();A!==i?(41===e.charCodeAt($)?(x=f,$++):(x=i,0===re&&le(p)),x!==i?t=n=m(s,l,g,y,v,b):($=t,t=i)):($=t,t=i)}else $=t,t=i;else $=t,t=i;else $=t,t=i;else $=t,t=i;else $=t,t=i;else $=t,t=i;else $=t,t=i;else $=t,t=i;else $=t,t=i;else $=t,t=i;else $=t,t=i;else $=t,t=i}else $=t,t=i;else $=t,t=i}else $=t,t=i;return t}())===i&&(t=function(){var t,n,r,o,a,s,l,c,u;if(t=$,e.substr($,9)===g?(n=g,$+=9):(n=i,0===re&&le(y)),n!==i){for(r=[],o=Ae();o!==i;)r.push(o),o=Ae();if(r!==i)if(40===e.charCodeAt($)?(o=h,$++):(o=i,0===re&&le(d)),o!==i){for(a=[],s=Ae();s!==i;)a.push(s),s=Ae();if(a!==i)if((s=de())!==i)if((l=fe())===i&&(l=null),l!==i){for(c=[],u=Ae();u!==i;)c.push(u),u=Ae();c!==i?(41===e.charCodeAt($)?(u=f,$++):(u=i,0===re&&le(p)),u!==i?t=n=v(s,l):($=t,t=i)):($=t,t=i)}else $=t,t=i;else $=t,t=i;else $=t,t=i}else $=t,t=i;else $=t,t=i}else $=t,t=i;return t}())===i&&(t=function(){var t,n,r,o,a,s,l,c,u;if(t=$,e.substr($,5)===b?(n=b,$+=5):(n=i,0===re&&le(A)),n!==i){for(r=[],o=Ae();o!==i;)r.push(o),o=Ae();if(r!==i)if(40===e.charCodeAt($)?(o=h,$++):(o=i,0===re&&le(d)),o!==i){for(a=[],s=Ae();s!==i;)a.push(s),s=Ae();if(a!==i)if((s=de())!==i)if((l=fe())===i&&(l=null),l!==i){for(c=[],u=Ae();u!==i;)c.push(u),u=Ae();c!==i?(41===e.charCodeAt($)?(u=f,$++):(u=i,0===re&&le(p)),u!==i?t=n=x(s,l):($=t,t=i)):($=t,t=i)}else $=t,t=i;else $=t,t=i;else $=t,t=i}else $=t,t=i;else $=t,t=i}else $=t,t=i;return t}())===i&&(t=function(){var t,n,r,o,a,s,l,c,u;if(t=$,e.substr($,6)===w?(n=w,$+=6):(n=i,0===re&&le(C)),n!==i){for(r=[],o=Ae();o!==i;)r.push(o),o=Ae();if(r!==i)if(40===e.charCodeAt($)?(o=h,$++):(o=i,0===re&&le(d)),o!==i){for(a=[],s=Ae();s!==i;)a.push(s),s=Ae();if(a!==i)if((s=de())!==i)if(l=function(){var e,t,n;return e=$,pe()!==i&&(t=de())!==i&&pe()!==i&&(n=de())!==i?e=j(t,n):($=e,e=i),e}(),l===i&&(l=null),l!==i){for(c=[],u=Ae();u!==i;)c.push(u),u=Ae();c!==i?(41===e.charCodeAt($)?(u=f,$++):(u=i,0===re&&le(p)),u!==i?t=n=S(s,l):($=t,t=i)):($=t,t=i)}else $=t,t=i;else $=t,t=i;else $=t,t=i}else $=t,t=i;else $=t,t=i}else $=t,t=i;return t}())===i&&(t=function(){var t,n,r,o,a,s,l,c;if(t=$,e.substr($,5)===E?(n=E,$+=5):(n=i,0===re&&le(k)),n!==i){for(r=[],o=Ae();o!==i;)r.push(o),o=Ae();if(r!==i)if(40===e.charCodeAt($)?(o=h,$++):(o=i,0===re&&le(d)),o!==i){for(a=[],s=Ae();s!==i;)a.push(s),s=Ae();if(a!==i)if((s=de())!==i){for(l=[],c=Ae();c!==i;)l.push(c),c=Ae();l!==i?(41===e.charCodeAt($)?(c=f,$++):(c=i,0===re&&le(p)),c!==i?t=n=T(s):($=t,t=i)):($=t,t=i)}else $=t,t=i;else $=t,t=i}else $=t,t=i;else $=t,t=i}else $=t,t=i;return t}())===i&&(t=function(){var t,n,r,o,a,s,l,c;if(t=$,e.substr($,5)===I?(n=I,$+=5):(n=i,0===re&&le(O)),n!==i){for(r=[],o=Ae();o!==i;)r.push(o),o=Ae();if(r!==i)if(40===e.charCodeAt($)?(o=h,$++):(o=i,0===re&&le(d)),o!==i){for(a=[],s=Ae();s!==i;)a.push(s),s=Ae();if(a!==i)if((s=de())!==i){for(l=[],c=Ae();c!==i;)l.push(c),c=Ae();l!==i?(41===e.charCodeAt($)?(c=f,$++):(c=i,0===re&&le(p)),c!==i?t=n=R(s):($=t,t=i)):($=t,t=i)}else $=t,t=i;else $=t,t=i}else $=t,t=i;else $=t,t=i}else $=t,t=i;return t}()),t}function de(){var t,n,r,o;return t=$,n=$,(r=ye())===i&&(r=null),r!==i?(o=function(){var t,n,r,o;return t=$,n=$,r=function(){var t,n,r,o;return re++,t=$,(n=ve())===i&&(n=null),n!==i?(46===e.charCodeAt($)?(r=V,$++):(r=i,0===re&&le(U)),r!==i&&(o=ve())!==i?t=n=H(n,o):($=t,t=i)):($=t,t=i),t===i&&(t=$,(n=ve())!==i?(46===e.charCodeAt($)?(r=V,$++):(r=i,0===re&&le(U)),r!==i?t=n=_(n):($=t,t=i)):($=t,t=i)),re--,t===i&&(n=i,0===re&&le(z)),t}(),r!==i?((o=ge())===i&&(o=null),o!==i?n=r=[r,o]:($=n,n=i)):($=n,n=i),n!==i&&(n=N(n)),(t=n)===i&&(t=$,n=$,(r=ve())!==i&&(o=ge())!==i?n=r=[r,o]:($=n,n=i),n!==i&&(n=_(n)),t=n),t}(),o!==i?n=r=[r,o]:($=n,n=i)):($=n,n=i),n!==i&&(n=M(n)),(t=n)===i&&(t=$,n=$,(r=ye())===i&&(r=null),r!==i?(o=function(){var e;return(e=ve())!==i&&(e=F(e)),e}(),o!==i?n=r=[r,o]:($=n,n=i)):($=n,n=i),n!==i&&(n=P(n)),t=n),t}function fe(){var e,t;return e=$,pe()!==i&&(t=de())!==i?e=D(t):($=e,e=i),e}function pe(){var e,t,n,r,o;if(e=$,t=[],(n=Ae())!==i)for(;n!==i;)t.push(n),n=Ae();else t=i;if(t!==i)if((n=me())===i&&(n=null),n!==i){for(r=[],o=Ae();o!==i;)r.push(o),o=Ae();r!==i?e=t=[t,n,r]:($=e,e=i)}else $=e,e=i;else $=e,e=i;if(e===i)if(e=$,(t=me())!==i){for(n=[],r=Ae();r!==i;)n.push(r),r=Ae();n!==i?e=t=[t,n]:($=e,e=i)}else $=e,e=i;return e}function me(){var t;return 44===e.charCodeAt($)?(t=B,$++):(t=i,0===re&&le(L)),t}function ge(){var t,n,r,o;return t=$,q.test(e.charAt($))?(n=e.charAt($),$++):(n=i,0===re&&le(G)),n!==i?((r=ye())===i&&(r=null),r!==i&&(o=ve())!==i?t=n=[n,r,o]:($=t,t=i)):($=t,t=i),t!==i&&(t=Y(t)),t}function ye(){var t;return W.test(e.charAt($))?(t=e.charAt($),$++):(t=i,0===re&&le(Q)),t}function ve(){var e,t;if(e=[],(t=be())!==i)for(;t!==i;)e.push(t),t=be();else e=i;return e}function be(){var t;return X.test(e.charAt($))?(t=e.charAt($),$++):(t=i,0===re&&le(J)),t}function Ae(){var t;return Z.test(e.charAt($))?(t=e.charAt($),$++):(t=i,0===re&&le(K)),t}var xe=Math.PI/180;if((r=a())!==i&&$===e.length)return r;throw r!==i&&${"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toErrorWithMessage=t.normalizeArrayableParams=void 0;var r=n(31635),i=n(37765);function o(e){return Object.keys(i.arrayableParams).filter((function(t){return void 0!==e[t]})).every((function(t){return n=e[t],!Array.isArray(n);var n}))}t.normalizeArrayableParams=function(e){var t=r.__assign({},e);if(!Object.keys(i.arrayableParams).filter((function(e){return Array.isArray(t[e])})).map((function(e){return t[e]=t[e].join(","),e})).length&&o(t))return t;if(!o(t))throw new Error("Failed to normalize arrayable params: ".concat(JSON.stringify(t)));return t},t.toErrorWithMessage=function(e){if("object"==typeof(t=e)&&null!==t&&"message"in t&&"string"==typeof t.message)return e;var t;try{return"string"==typeof e?new Error(e):new Error(JSON.stringify(e))}catch(t){return new Error(String(e))}}},47744:(e,t)=>{"use strict";t.S=()=>!0},47752:e=>{e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},48184:(e,t,n)=>{"use strict";var r,i=n(36556),o=n(99721)(/^\s*(?:function)?\*/),a=n(49092)(),s=n(93628),l=i("Object.prototype.toString"),c=i("Function.prototype.toString");e.exports=function(e){if("function"!=typeof e)return!1;if(o(c(e)))return!0;if(!a)return"[object GeneratorFunction]"===l(e);if(!s)return!1;if(void 0===r){var t=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&s(t)}return s(e)===r}},48274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(r.__importDefault(n(27796)).default);t.default=i},48287:(e,t,n)=>{"use strict";const r=n(67526),i=n(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(X(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(X(e,SharedArrayBuffer)||e&&X(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|p(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||J(e.length)?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return u(e),s(e<0?0:0|p(e))}function d(e){const t=e.length<0?0:0|p(e.length),n=s(t);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(i)return r?-1:Y(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(X(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return A(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":case"latin1":case"binary":return w(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function I(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let r=t;rn)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r,i){U(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function B(e,t,n,r,i){U(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||P(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||P(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=K((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||P(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=K((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||D(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,r||D(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=K((function(e,t=0){return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=K((function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>>=0,!r){const r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=K((function(e,t=0){return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=K((function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function U(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new _.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||q(t,e.length-(n+1))}(r,i,o)}function H(e,t){if("number"!=typeof e)throw new _.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,n){if(Math.floor(e)!==e)throw H(e,n),new _.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new _.ERR_BUFFER_OUT_OF_BOUNDS;throw new _.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}z("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),z("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),z("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=V(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=V(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function Y(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Q(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function X(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function K(e){return"undefined"==typeof BigInt?$:e}function $(){throw new Error("BigInt not supported")}},48345:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.SearchResponseAdapter=void 0;var i=r(n(73738)),o=r(n(85715)),a=r(n(41132)),s=r(n(43693)),l=r(n(17383)),c=r(n(34579)),u=n(46794);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};(0,l.default)(this,e),this.typesenseResponse=t,this.instantsearchRequest=n,this.configuration=r,this.allTypesenseResults=i,this.fullTypesenseResponse=o}),[{key:"_adaptGroupedHits",value:function(e){var t=this,n=[];return n=e.map((function(e){var n=t._adaptHits(e.hits);return n.forEach((function(t){t.group_key=t._group_key=e.group_key,e.found&&(t._group_found=e.found)})),n})),this.configuration.flattenGroupedHits?n.flat():n.map((function(e){return d(d({},e[0]),{},{_grouped_hits:e})}))}},{key:"_adaptHits",value:function(e){var t=this;return e.map((function(e){var n=d({},e.document);n.objectID=e.document.id,n._snippetResult=t._adaptHighlightResult(e,"snippet"),n._highlightResult=t._adaptHighlightResult(e,"value"),n._rawTypesenseHit=e,t.fullTypesenseResponse.conversation&&(n._rawTypesenseConversation=t.fullTypesenseResponse.conversation),["text_match","geo_distance_meters","curated","text_match_info","hybrid_search_info","vector_distance"].forEach((function(t){Object.keys(e).includes(t)&&!Object.keys(n).includes(t)&&(n[t]=e[t])}));var r=n[t.configuration.geoLocationField];return r&&(n._geoloc={lat:r[0],lng:r[1]}),n}))}},{key:"_adaptHighlightResult",value:function(e,t){var n={};return null!=e.highlight&&this.isHighlightPost0240RCN32Format(e.highlight)?this.adaptHighlightObject(e,n,t):this.adaptHighlightsArray(e,n,t),n}},{key:"isHighlightPost0240RCN32Format",value:function(e){return null==e.full&&null==e.snippet}},{key:"adaptHighlightsArray",value:function(e,t,n){var r=this;Object.assign.apply(Object,[t].concat((0,a.default)(Object.entries(e.document).map((function(e){var t=(0,o.default)(e,2),n=t[0],r=t[1];return(0,s.default)({},n,{value:r,matchLevel:"none",matchedWords:[]})}))))),e.highlights.forEach((function(e){t[e.field]={value:e[n]||e["".concat(n,"s")],matchLevel:"full",matchedWords:e.matched_tokens},e.indices&&(t[e.field].matchedIndices=e.indices)})),Object.entries(t).forEach((function(a){var s=(0,o.default)(a,2),l=s[0],c=s[1],u=l,h=c.value,d=c.matchLevel,f=c.matchedWords,p=c.matchedIndices;null==h?t[u]=r._adaptHighlightNullValue():Array.isArray(h)?(t[u]=[],e.document[u].forEach((function(e,o){p&&p.includes(o)?t[u].push({value:r._adaptHighlightTag("".concat(h[p.indexOf(o)]),r.instantsearchRequest.params.highlightPreTag,r.instantsearchRequest.params.highlightPostTag),matchLevel:d,matchedWords:f[o]}):"object"===(0,i.default)(e)?t[u].push(r._adaptHighlightInObjectValue(e,{},n)):t[u].push({value:"".concat(e),matchLevel:"none",matchedWords:[]})}))):"object"===(0,i.default)(h)?t[u]=r._adaptHighlightInObjectValue(h,{},n):t[u].value=r._adaptHighlightTag("".concat(h),r.instantsearchRequest.params.highlightPreTag,r.instantsearchRequest.params.highlightPostTag)}))}},{key:"adaptHighlightObject",value:function(e,t,n){Object.assign(t,this._adaptHighlightInObjectValue(e.document,e.highlight,n))}},{key:"_adaptHighlightInObjectValue",value:function(e,t,n){var r=this;return Object.assign.apply(Object,[{}].concat((0,a.default)(Object.entries(e).map((function(e){var a,l=(0,o.default)(e,2),c=l[0],u=l[1];if(null==u)a=r._adaptHighlightNullValue();else if(Array.isArray(u)){var h;a=r._adaptHighlightInArrayValue(u,null!==(h=null==t?void 0:t[c])&&void 0!==h?h:[],n)}else if("object"===(0,i.default)(u)){var d;a=r._adaptHighlightInObjectValue(u,null!==(d=null==t?void 0:t[c])&&void 0!==d?d:{},n)}else a=r._adaptHighlightInPrimitiveValue(u,null==t?void 0:t[c],n);return(0,s.default)({},c,a)})))))}},{key:"_adaptHighlightInArrayValue",value:function(e,t,n){var r=this;return e.map((function(e,o){var a;if(null==e)a=r._adaptHighlightNullValue();else if(Array.isArray(e)){var s;a=r._adaptHighlightInArrayValue(e,null!==(s=null==t?void 0:t[o])&&void 0!==s?s:[],n)}else if("object"===(0,i.default)(e)){var l;a=r._adaptHighlightInObjectValue(e,null!==(l=null==t?void 0:t[o])&&void 0!==l?l:{},n)}else a=r._adaptHighlightInPrimitiveValue(e,null==t?void 0:t[o],n);return a}))}},{key:"_adaptHighlightInPrimitiveValue",value:function(e,t,n){var r,i;return null!=t?{value:this._adaptHighlightTag("".concat(null!==(r=null!==(i=t[n])&&void 0!==i?i:t.highlight)&&void 0!==r?r:t.snippet),this.instantsearchRequest.params.highlightPreTag,this.instantsearchRequest.params.highlightPostTag),matchLevel:(t.matched_tokens||[]).length>0?"full":"none",matchedWords:t.matched_tokens||[]}:{value:this._adaptHighlightTag("".concat(e),this.instantsearchRequest.params.highlightPreTag,this.instantsearchRequest.params.highlightPostTag),matchLevel:"none",matchedWords:[]}}},{key:"_adaptHighlightNullValue",value:function(){return{value:"",matchLevel:"none",matchedWords:[]}}},{key:"_adaptFacets",value:function(e){var t={};return e.forEach((function(e){Object.assign(t,(0,s.default)({},e.field_name,Object.assign.apply(Object,[{}].concat((0,a.default)(e.counts.map((function(e){return(0,s.default)({},e.value,e.count)})))))))})),t}},{key:"_adaptFacetStats",value:function(e){var t={};return e.forEach((function(e){Object.keys(e.stats).length>0&&Object.assign(t,(0,s.default)({},e.field_name,e.stats))})),t}},{key:"_adaptRenderingContent",value:function(e){var t,n=Object.assign({},this.configuration.renderingContent);return null==(null===(t=n.facetOrdering)||void 0===t||null===(t=t.facets)||void 0===t?void 0:t.order)&&(n.facetOrdering=n.facetOrdering||{},n.facetOrdering.facets=n.facetOrdering.facets||{},n.facetOrdering.facets.order=(0,a.default)(new Set(e.map((function(e){return e.field_name})).concat(this.allTypesenseResults.map((function(e){return e.facet_counts||[]})).flat().map((function(e){return e.field_name})).filter((function(e){return e})))))),n}},{key:"_adaptUserData",value:function(e){return e?Array.isArray(e)?e:[e]:[]}},{key:"adapt",value:function(){var e=this._adaptRenderingContent(this.typesenseResponse.facet_counts||[]),t=d({hits:this.typesenseResponse.grouped_hits?this._adaptGroupedHits(this.typesenseResponse.grouped_hits):this._adaptHits(this.typesenseResponse.hits),nbHits:this.typesenseResponse.found,page:this.typesenseResponse.page-1,nbPages:this._adaptNumberOfPages(),hitsPerPage:this.typesenseResponse.request_params.per_page,facets:this._adaptFacets(this.typesenseResponse.facet_counts||[]),facets_stats:this._adaptFacetStats(this.typesenseResponse.facet_counts||{}),query:this.typesenseResponse.request_params.q,processingTimeMS:this.typesenseResponse.search_time_ms},Object.keys(e).length>0?{renderingContent:e}:null);return this.typesenseResponse.metadata&&(t.appliedRules=["typesense-override"],t.userData=this._adaptUserData(this.typesenseResponse.metadata)),this.fullTypesenseResponse.conversation&&0===t.hits.length&&(t.hits=[{_rawTypesenseConversation:this.fullTypesenseResponse.conversation}]),t}}])}();Object.assign(f.prototype,u.utils)},48648:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},49032:(e,t,n)=>{"use strict";var r=n(47244),i=n(48184),o=n(25767),a=n(35680);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=s(Object.prototype.toString),h=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),f=s(Boolean.prototype.valueOf);if(l)var p=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===u(e)}function v(e){return"[object Set]"===u(e)}function b(e){return"[object WeakMap]"===u(e)}function A(e){return"[object WeakSet]"===u(e)}function x(e){return"[object ArrayBuffer]"===u(e)}function w(e){return"undefined"!=typeof ArrayBuffer&&(x.working?x(e):e instanceof ArrayBuffer)}function C(e){return"[object DataView]"===u(e)}function S(e){return"undefined"!=typeof DataView&&(C.working?C(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||S(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},A.working="undefined"!=typeof WeakSet&&A(new WeakSet),t.isWeakSet=function(e){return A(e)},x.working="undefined"!=typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=w,C.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&C(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var E="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function k(e){return"[object SharedArrayBuffer]"===u(e)}function T(e){return void 0!==E&&(void 0===k.working&&(k.working=k(new E)),k.working?k(e):e instanceof E)}function I(e){return g(e,h)}function O(e){return g(e,d)}function R(e){return g(e,f)}function M(e){return l&&g(e,p)}function P(e){return c&&g(e,m)}t.isSharedArrayBuffer=T,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===u(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===u(e)},t.isGeneratorObject=function(e){return"[object Generator]"===u(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===u(e)},t.isNumberObject=I,t.isStringObject=O,t.isBooleanObject=R,t.isBigIntObject=M,t.isSymbolObject=P,t.isBoxedPrimitive=function(e){return I(e)||O(e)||R(e)||M(e)||P(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(w(e)||T(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},49092:(e,t,n)=>{"use strict";var r=n(41333);e.exports=function(){return r()&&!!Symbol.toStringTag}},49228:(e,t,n)=>{"use strict";var r=n(44728);function i(e){return Object.keys(e).sort().reduce((function(t,n){return t[n]=e[n],t}),{})}var o={_getQueries:function(e,t){var n=[];return n.push({indexName:e,params:o._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach((function(r){n.push({indexName:e,params:o._getDisjunctiveFacetSearchParams(t,r)})})),t.getRefinedHierarchicalFacets().forEach((function(r){var i=t.getHierarchicalFacetByName(r),a=t.getHierarchicalRefinement(r),s=t._getHierarchicalFacetSeparator(i);if(a.length>0&&a[0].split(s).length>1){var l=a[0].split(s).slice(0,-1).reduce((function(e,t,n){return e.concat({attribute:i.attributes[n],value:0===n?t:[e[e.length-1].value,t].join(s)})}),[]);l.forEach((function(r,a){var s=o._getDisjunctiveFacetSearchParams(t,r.attribute,0===a);function c(e){return i.attributes.some((function(t){return t===e.split(":")[0]}))}var u=(s.facetFilters||[]).reduce((function(e,t){if(Array.isArray(t)){var n=t.filter((function(e){return!c(e)}));n.length>0&&e.push(n)}return"string"!=typeof t||c(t)||e.push(t),e}),[]),h=l[a-1];a>0?s.facetFilters=u.concat(h.attribute+":"+h.value):u.length>0?s.facetFilters=u:delete s.facetFilters,n.push({indexName:e,params:s})}))}})),n},_getCompositionQueries:function(e){return[{compositionID:e.index,requestBody:{params:o._getCompositionHitsSearchParams(e)}}]},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(o._getHitsHierarchicalFacetsAttributes(e)).sort(),n=o._getFacetFilters(e),a=o._getNumericFilters(e),s=o._getTagFilters(e),l={};return t.length>0&&(l.facets=t.indexOf("*")>-1?["*"]:t),s.length>0&&(l.tagFilters=s),n.length>0&&(l.facetFilters=n),a.length>0&&(l.numericFilters=a),i(r({},e.getQueryParams(),l))},_getCompositionHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets.map((function(t){return e.disjunctiveFacetsRefinements&&e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].length>0?"disjunctive("+t+")":t}))).concat(o._getHitsHierarchicalFacetsAttributes(e)).sort(),n=o._getFacetFilters(e),a=o._getNumericFilters(e),s=o._getTagFilters(e),l={};t.length>0&&(l.facets=t.indexOf("*")>-1?["*"]:t),s.length>0&&(l.tagFilters=s),n.length>0&&(l.facetFilters=n),a.length>0&&(l.numericFilters=a);var c=e.getQueryParams();return delete c.highlightPreTag,delete c.highlightPostTag,delete c.index,i(r({},c,l))},_getDisjunctiveFacetSearchParams:function(e,t,n){var a=o._getFacetFilters(e,t,n),s=o._getNumericFilters(e,t),l=o._getTagFilters(e),c={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};l.length>0&&(c.tagFilters=l);var u=e.getHierarchicalFacetByName(t);return c.facets=u?o._getDisjunctiveHierarchicalFacetAttribute(e,u,n):t,s.length>0&&(c.numericFilters=s),a.length>0&&(c.facetFilters=a),i(r({},e.getQueryParams(),c))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var n=[];return Object.keys(e.numericRefinements).forEach((function(r){var i=e.numericRefinements[r]||{};Object.keys(i).forEach((function(e){var o=i[e]||[];t!==r&&o.forEach((function(t){if(Array.isArray(t)){var i=t.map((function(t){return r+e+t}));n.push(i)}else n.push(r+e+t)}))}))})),n},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,n){var r=[],i=e.facetsRefinements||{};Object.keys(i).sort().forEach((function(e){(i[e]||[]).slice().sort().forEach((function(t){r.push(e+":"+t)}))}));var o=e.facetsExcludes||{};Object.keys(o).sort().forEach((function(e){(o[e]||[]).sort().forEach((function(t){r.push(e+":-"+t)}))}));var a=e.disjunctiveFacetsRefinements||{};Object.keys(a).sort().forEach((function(e){var n=a[e]||[];if(e!==t&&n&&0!==n.length){var i=[];n.slice().sort().forEach((function(t){i.push(e+":"+t)})),r.push(i)}}));var s=e.hierarchicalFacetsRefinements||{};return Object.keys(s).sort().forEach((function(i){var o=(s[i]||[])[0];if(void 0!==o){var a,l,c=e.getHierarchicalFacetByName(i),u=e._getHierarchicalFacetSeparator(c),h=e._getHierarchicalRootPath(c);if(t===i){if(-1===o.indexOf(u)||!h&&!0===n||h&&h.split(u).length===o.split(u).length)return;h?(l=h.split(u).length-1,o=h):(l=o.split(u).length-2,o=o.slice(0,o.lastIndexOf(u))),a=c.attributes[l]}else l=o.split(u).length-1,a=c.attributes[l];a&&r.push([a+":"+o])}})),r},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce((function(t,n){var r=e.getHierarchicalRefinement(n.name)[0];if(!r)return t.push(n.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(n),o=r.split(i).length,a=n.attributes.slice(0,o+1);return t.concat(a)}),[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,n){var r=e._getHierarchicalFacetSeparator(t);if(!0===n){var i=e._getHierarchicalRootPath(t),o=0;return i&&(o=i.split(r).length),[t.attributes[o]]}var a=(e.getHierarchicalRefinement(t.name)[0]||"").split(r).length-1;return t.attributes.slice(0,a+1)},getSearchForFacetQuery:function(e,t,n,a){var s=a.isDisjunctiveFacet(e)?a.clearRefinements(e):a,l={facetQuery:t,facetName:e};return"number"==typeof n&&(l.maxFacetHits=n),i(r({},o._getHitsSearchParams(s),l))}};e.exports=o},49373:e=>{"use strict";e.exports=function(e){return"UINT8"===e||"UINT8C"===e||"UINT16"===e||"UINT32"===e||"BIGUINT64"===e}},49891:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,r,i=e.length;for(n=0;n1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t;return function(e,t,r){return e<0&&(e=0),t<0&&(t=0),r<0&&(r=0),"#"+n[e]+n[t]+n[r]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(e)}var dataManager=function(){var e,t,n=1,r=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},o={postMessage:function(e){i.onmessage({data:e})}};function a(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return e=t,i}((function(e){if(o.dataManager||(o.dataManager=function(){function e(i,o){var a,s,l,c,u,h,d,f=i.length;for(s=0;s=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)r(e[t].ks.k);else for(o=e[t].ks.k.length,i=0;in[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var o,a=function(){var e=[4,4,14];function t(e){var t,n,r,i=e.length;for(t=0;t=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(i=e[n].ks.k.length,r=0;r500)&&(this._imageLoaded(),clearInterval(n)),t+=1}.bind(this),50)}function o(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return dataManager.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function a(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(e,t){var n;this.imagesLoadedCb=t;var r=e.length;for(n=0;nthis.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,r=this.animationData.layers,i=r.length,o=e.layers,a=o.length;for(n=0;nthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFramet&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var n,r=e.length;for(n=0;n=0;n-=1)t[n].animation.destroy(e)},e.freeze=function(){a=!0},e.unfreeze=function(){a=!1,p()},e.setVolume=function(e,n){var i;for(i=0;i=.001?function(e,t,n,r){for(var i=0;i<4;++i){var o=c(t,n,r);if(0===o)return t;t-=(l(t,n,r)-e)/o}return t}(e,h,t,i):0===d?h:function(e,t,n,r,i){var o,a,s=0;do{(o=l(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(e,a,a+r,t,i)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,n){var r=0,i=e,o=createSizedArray(i);return{newElement:function(){return r?o[r-=1]:t()},release:function(e){r===i&&(o=pooling.double(o),i*=2),n&&n(e),o[r]=e,r+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,n=e.lengths.length;for(t=0;t-.001&&a<.001}var n=function(e,t,n,r){var i,o,a,s,l,c,u=getDefaultCurveSegments(),h=0,d=[],f=[],p=bezierLengthPool.newElement();for(a=n.length,i=0;ia?-1:1,c=!0;c;)if(r[o]<=a&&r[o+1]>a?(s=(a-r[o])/(r[o+1]-r[o]),c=!1):o+=l,o<0||o>=i-1){if(o===i-1)return n[o];c=!1}return n[o]+(n[o+1]-n[o])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,r=segmentsLengthPool.newElement(),i=e.c,o=e.v,a=e.o,s=e.i,l=e._length,c=r.lengths,u=0;for(t=0;t1&&(o=1);var u,h=s(o,c),d=s(a=a>1?1:a,c),f=t.length,p=1-h,m=1-d,g=p*p*p,y=h*p*p*3,v=h*h*p*3,b=h*h*h,A=p*p*m,x=h*p*m+p*h*m+p*p*d,w=h*h*m+p*h*d+h*p*d,C=h*h*d,S=p*m*m,E=h*m*m+p*d*m+p*m*d,k=h*d*m+p*d*d+h*m*d,T=h*d*d,I=m*m*m,O=d*m*m+m*d*m+m*m*d,R=d*d*m+m*d*d+d*m*d,M=d*d*d;for(u=0;uf?d>p?d-f-p:p-f-d:p>f?p-f-d:f-d-p)>-1e-4&&h<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var n,r=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var i,o,a,s,l,c,u,h,d,f=t.lastIndex,p=f,m=this.keyframes.length-1,g=!0;g;){if(i=this.keyframes[p],o=this.keyframes[p+1],p===m-1&&e>=o.t-r){i.h&&(i=o),f=0;break}if(o.t-r>e){f=p;break}p=v||e=v?A.points.length-1:0;for(l=A.points[x].point.length,s=0;s=S&&C=v?(n[0]=y[0],n[1]=y[1],n[2]=y[2]):e<=b?(n[0]=i.s[0],n[1]=i.s[1],n[2]=i.s[2]):quaternionToEuler(n,slerp(createQuaternion(i.s),createQuaternion(y),(e-b)/(v-b)));else for(p=0;p=v?c=1:e1e-6?(r=Math.acos(i),o=Math.sin(r),a=Math.sin((1-n)*r)/o,s=Math.sin(n*r)/o):(a=1-n,s=n),l[0]=a*c+s*f,l[1]=a*u+s*p,l[2]=a*h+s*m,l[3]=a*d+s*g,l}function quaternionToEuler(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i),s=Math.asin(2*n*r+2*i*o),l=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i);e[0]=a/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,n=e[1]*degToRads,r=e[2]*degToRads,i=Math.cos(t/2),o=Math.cos(n/2),a=Math.cos(r/2),s=Math.sin(t/2),l=Math.sin(n/2),c=Math.sin(r/2);return[s*l*a+i*o*c,s*o*a+i*l*c,i*l*a-s*o*c,i*o*a-s*l*c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var n=0,r=this.v.length;n1e-5&&(this.v[n]=t,this._mdf=!0),n+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e=this._maxLength&&this.doubleArrayLength(),n){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[r]||o[r]&&!i)&&(o[r]=pointPool.newElement()),o[r][0]=e,o[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,r,i,o,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(n,r,"o",a,s),this.setXYAt(i,o,"i",a,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var o,a=this._length-1,s=this._length;for(o=i;o=f[f.length-1].t-this.offsetTime)r=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],o=!0;else{for(var p,m,g,y=d,v=f.length-1,b=!0;b&&(p=f[y],!((m=f[y+1]).t-this.offsetTime>e));)y=m.t-this.offsetTime)u=1;else if(er&&t>r)||(this._caching.lastIndex=i0||e>-1e-6&&e<0?r(1e4*e)/1e4:e}function D(){var e=this.props;return"matrix("+P(e[0])+","+P(e[1])+","+P(e[4])+","+P(e[5])+","+P(e[12])+","+P(e[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=u,this.skewFromAxis=h,this.shear=c,this.scale=d,this.setTransform=f,this.translate=p,this.transform=m,this.multiply=g,this.applyToPoint=x,this.applyToX=w,this.applyToY=C,this.applyToZ=S,this.applyToPointArray=O,this.applyToTriplePoints=I,this.applyToPointStringified=R,this.toCSS=M,this.to2dCSS=D,this.clone=b,this.cloneFromProps=A,this.equals=v,this.inversePoints=T,this.inversePoint=k,this.getInverseMatrix=E,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n=1?o.push({s:e-1,e:t-1}):(o.push({s:e,e:1}),o.push({s:0,e:t-1}));var a,s,l=[],c=o.length;for(a=0;ar+n||(u=s.s*i<=r?0:(s.s*i-r)/n,h=s.e*i>=r+n?1:(s.e*i-r)/n,l.push([u,h]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t1?1+o:this.s.v<0?0+o:this.s.v+o)>(n=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var a=t;t=n,n=a}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var s,l,c,u,h,d=this.shapes.length,f=0;if(n===t)for(i=0;i=0;i-=1)if((p=this.shapes[i]).shape._mdf){for((m=p.localShapeCollection).releaseShapes(),2===this.m&&d>1?(y=this.calculateShapeEdges(t,n,p.totalShapeLength,A,f),A+=p.totalShapeLength):y=[[v,b]],l=y.length,s=0;s=1?g.push({s:p.totalShapeLength*(v-1),e:p.totalShapeLength*(b-1)}):(g.push({s:p.totalShapeLength*v,e:p.totalShapeLength}),g.push({s:0,e:p.totalShapeLength*(b-1)}));var x=this.addShapes(p,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(p.shape.paths.shapes[p.shape.paths._length-1].c){var w=x.pop();this.addPaths(x,m),x=this.addShapes(p,g[1],w)}else this.addPaths(x,m),x=this.addShapes(p,g[1]);this.addPaths(x,m)}}p.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;nt.e){n.c=!1;break}t.s<=p&&t.e>=p+a.addedLength?(this.addSegment(d[r].v[i-1],d[r].o[i-1],d[r].i[i],d[r].v[i],n,s,g),g=!1):(c=bez.getNewSegment(d[r].v[i-1],d[r].v[i],d[r].o[i-1],d[r].i[i],(t.s-p)/a.addedLength,(t.e-p)/a.addedLength,l[i-1]),this.addSegmentFromArray(c,n,s,g),g=!1,n.c=!1),p+=a.addedLength,s+=1}if(d[r].c&&l.length){if(a=l[i-1],p<=t.e){var y=l[i-1].addedLength;t.s<=p&&t.e>=p+y?(this.addSegment(d[r].v[i-1],d[r].o[i-1],d[r].i[0],d[r].v[0],n,s,g),g=!1):(c=bez.getNewSegment(d[r].v[i-1],d[r].v[0],d[r].o[i-1],d[r].i[0],(t.s-p)/y,(t.e-p)/y,l[i-1]),this.addSegmentFromArray(c,n,s,g),g=!1,n.c=!1)}else n.c=!1;p+=a.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[u][0],n.v[u][1],"i",u),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),p>t.e)break;r=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(r[0]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),r[1]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),i[0]=o.getValueAtTime(o.keyframes[0].t/n,0),i[1]=a.getValueAtTime(a.keyframes[0].t/n,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(r[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),r[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0),i[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0)):(r=[o.pv,a.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime),i[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime))}else r=i=e;this.v.rotate(-Math.atan2(r[1]-i[1],r[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,n,r){return new t(e,n,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,n){return e*(1-n)+t*n}function lerpPoint(e,t,n){return[lerp(e[0],t[0],n),lerp(e[1],t[1],n)]}function quadRoots(e,t,n){if(0===e)return[];var r=t*t-4*e*n;if(r<0)return[];var i=-t/(2*e);if(0===r)return[i];var o=Math.sqrt(r)/(2*e);return[i-o,i+o]}function polynomialCoefficients(e,t,n,r){return[3*t-e-3*n+r,3*e-6*t+3*n,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,n,r,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,r,1/3)),i&&pointEqual(n,r)&&(n=lerpPoint(e,r,2/3));var o=polynomialCoefficients(e[0],t[0],n[0],r[0]),a=polynomialCoefficients(e[1],t[1],n[1],r[1]);this.a=[o[0],a[0]],this.b=[o[1],a[1]],this.c=[o[2],a[2]],this.d=[o[3],a[3]],this.points=[e,t,n,r]}function extrema(e,t){var n=e.points[0][t],r=e.points[e.points.length-1][t];if(n>r){var i=r;r=n,n=i}for(var o=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a0&&o[a]<1){var s=e.point(o[a])[t];sr&&(r=s)}return{min:n,max:r}}function intersectData(e,t,n){var r=e.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)=o||e.width<=r&&e.height<=r&&t.width<=r&&t.height<=r)i.push([e.t,t.t]);else{var a=splitData(e),s=splitData(t);intersectsImpl(a[0],s[0],n+1,r,i,o),intersectsImpl(a[0],s[1],n+1,r,i,o),intersectsImpl(a[1],s[0],n+1,r,i,o),intersectsImpl(a[1],s[1],n+1,r,i,o)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,n,r){var i=[e[0],e[1],1],o=[t[0],t[1],1],a=[n[0],n[1],1],s=[r[0],r[1],1],l=crossProduct(crossProduct(i,o),crossProduct(a,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,n,r,i,o,a){var s=n-Math.PI/2,l=n+Math.PI/2,c=t[0]+Math.cos(n)*r*i,u=t[1]-Math.sin(n)*r*i;e.setTripleAt(c,u,c+Math.cos(s)*o,u-Math.sin(s)*o,c+Math.cos(l)*a,u-Math.sin(l)*a,e.length())}function getPerpendicularVector(e,t){var n=[t[0]-e[0],t[1]-e[1]],r=.5*-Math.PI;return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function getProjectingAngle(e,t){var n=0===t?e.length()-1:t-1,r=(t+1)%e.length(),i=getPerpendicularVector(e.v[n],e.v[r]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,n,r,i,o,a){var s=getProjectingAngle(t,n),l=t.v[n%t._length],c=t.v[0===n?t._length-1:n-1],u=t.v[(n+1)%t._length],h=2===o?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,d=2===o?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0;setPoint(e,t.v[n%t._length],s,a,r,d/(2*(i+1)),h/(2*(i+1)),o)}function zigZagSegment(e,t,n,r,i,o){for(var a=0;a1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[n,r]}function pruneIntersections(e){for(var t,n=1;n1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var n,r,i,o,a=e.inflectionPoints();if(0===a.length)return[offsetSegment(e,t)];if(1===a.length||floatEqual(a[1],1))return n=(i=e.split(a[0]))[0],r=i[1],[offsetSegment(n,t),offsetSegment(r,t)];n=(i=e.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return o=(i=i[1].split(s))[0],r=i[1],[offsetSegment(n,t),offsetSegment(o,t),offsetSegment(r,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",i=t.length,o=0;o0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t0?Math.floor(d):Math.ceil(d),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,A=0;if(d>0){for(;Ap;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),A-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),A-=f)}for(r=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,o=this._currentCopies;o;){if(b=(n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==A){for((0!==r&&1===i||r!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v0&&r<1?[t]:[]:[t-r,t+r].filter((function(e){return e>0&&e<1}))},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),r=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,n,e),o=lerpPoint(n,r,e),a=lerpPoint(i,o,e);return[new PolynomialBezier(this.points[0],t,i,a,!0),new PolynomialBezier(a,o,r,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,n){void 0===t&&(t=2),void 0===n&&(n=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,r,n),r},PolynomialBezier.shapeSegment=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,n,r){var i=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(i-=1),0===i)return o;var a=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,t,n,r,a);for(var l=0;l=0;o-=1)s=PolynomialBezier.shapeSegmentInverted(e,o),c.push(offsetSegmentSplit(s,t));c=pruneIntersections(c);var u=null,h=null;for(o=0;o=55296&&n<=56319){var r=e.charCodeAt(1);r>=56320&&r<=57343&&(t=1024*(n-55296)+r-56320+65536)}return t}function s(e){var t=a(e);return t>=127462&&t<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(e,t){var n=e.toString(16)+t.toString(16);return-1!==r.indexOf(n)},l.isZeroWidthJoiner=function(e){return 8205===e},l.isFlagEmoji=function(e){return s(e.substr(0,2))&&s(e.substr(2,2))},l.isRegionalCode=s,l.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},l.isRegionalFlag=function(e,t){var r=a(e.substr(t,2));if(r!==n)return!1;var i=0;for(t+=2;i<5;){if((r=a(e.substr(t,2)))<917601||r>917626)return!1;i+=1,t+=2}return 917631===a(e.substr(t,2))},l.isVariationSelector=function(e){return 65039===e},l.BLACK_FLAG_CODE_POINT=n;var c={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var n,r,i=e.length,o=this.chars.length;for(t=0;t0&&(u=!1),u){var h=createTag("style");h.setAttribute("f-forigin",r[n].fOrigin),h.setAttribute("f-origin",r[n].origin),h.setAttribute("f-family",r[n].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",t.appendChild(h)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;ce?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+g+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n1&&(o+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==o){var a="";n.elem&&(t.c&&(a=e.inv?this.solidPath+o:o),n.elem.setAttribute("d",a)),n.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory={createFilter:function(e,t){var n=createNS("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}},featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,n,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,o=createElementID(),a=filtersFactory.createFilter(o,!0),s=0;for(this.filters=[],t=0;t=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,r=t.length;n.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e0;)l=r.transformers[p].mProps._mdf||l,f-=1,p-=1;if(l)for(f=g-r.styles[u].lvl,p=r.transformers.length-1;f>0;)d.multiply(r.transformers[p].mProps.v),f-=1,p-=1}else d=e;if(a=(h=r.sh.paths)._length,l){for(s="",o=0;o=1?v=.99:v<=-1&&(v=-.99);var b=s*v,A=Math.cos(y+t.a.v)*b+u[0],x=Math.sin(y+t.a.v)*b+u[1];l.setAttribute("fx",A),l.setAttribute("fy",x),c&&!t.g._collapsable&&(t.of.setAttribute("fx",A),t.of.setAttribute("fy",x))}}function l(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||n)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return o;case"gf":return s;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function LetterProps(e,t,n,r,i,o){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=i,this.p=o,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,n,r,i=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(n=0;n1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t=0;s-=1){if((d=this.searchProcessedElement(e[s]))?t[s]=n[d-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)d?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==r&&r.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(d)for(c=t[s].it.length,l=0;l1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(r=0;rt);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,n,r=[],i=0,o=e.length,a=!1,s=!1,l="";i=55296&&t<=56319?FontManager.isRegionalFlag(e,i)?l=e.substr(i,14):(n=e.charCodeAt(i+1))>=56320&&n<=57343&&(FontManager.isModifier(t,n)?(l=e.substr(i,2),a=!0):l=FontManager.isFlagEmoji(e.substr(i,4))?e.substr(i,4):e.substr(i,2)):t>56319?(n=e.charCodeAt(i+1),FontManager.isVariationSelector(t)&&(a=!0)):FontManager.isZeroWidthJoiner(t)&&(a=!0,s=!0),a?(r[r.length-1]+=l,a=!1):r.push(l),i+=l.length;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,n,r,i,o,a,s,l=this.elem.globalData.fontManager,c=this.data,u=[],h=0,d=c.m.g,f=0,p=0,m=0,g=[],y=0,v=0,b=l.getFontByName(e.f),A=0,x=getFontProperties(b);e.fWeight=x.weight,e.fStyle=x.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var w,C=e.tr/1e3*e.finalSize;if(e.sz)for(var S,E,k=!0,T=e.sz[0],I=e.sz[1];k;){S=0,y=0,n=(E=this.buildFinalText(e.t)).length,C=e.tr/1e3*e.finalSize;var O=-1;for(t=0;tT&&" "!==E[t]?(-1===O?n+=1:t=O,S+=e.finalLineHeight||1.2*e.finalSize,E.splice(t,O===t?1:0,"\r"),O=-1,y=0):(y+=A,y+=C);S+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&Iv?y:v,y=-2*C,i="",r=!0,m+=1):i=R,l.chars?(s=l.getCharData(R,b.fStyle,l.getFontByName(e.f).fFamily),A=r?0:s.w*e.finalSize/100):A=l.measureText(i,e.f,e.finalSize)," "===R?M+=A+C:(y+=A+C+M,M=0),u.push({l:A,an:A,add:f,n:r,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==d){if(f+=A,""===i||" "===i||t===n-1){for(""!==i&&" "!==i||(f-=A);p<=t;)u[p].an=f,u[p].ind=h,u[p].extra=A,p+=1;h+=1,f=0}}else if(3==d){if(f+=A,""===i||t===n-1){for(""===i&&(f-=A);p<=t;)u[p].an=f,u[p].ind=h,u[p].extra=A,p+=1;f=0,h+=1}}else u[h].ind=h,u[h].extra=0,h+=1;if(e.l=u,v=y>v?y:v,g.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=v,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var P,D,j,B,L=c.a;a=L.length;var F=[];for(o=0;o0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,o,a,s).get,c=0,u=this.finalS,h=this.finalE,d=this.data.sh;if(2===d)c=l(c=h===u?r>=h?1:0:e(0,t(.5/(h-u)+(r-u)/(h-u),1)));else if(3===d)c=l(c=h===u?r>=h?0:1:1-e(0,t(.5/(h-u)+(r-u)/(h-u),1)));else if(4===d)h===u?c=0:(c=e(0,t(.5/(h-u)+(r-u)/(h-u),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===d){if(h===u)c=0;else{var f=h-u,p=-f/2+(r=t(e(0,r+.5-u),h-u)),m=f/2;c=Math.sqrt(1-p*p/(m*m))}c=l(c)}else 6===d?(h===u?c=0:(r=t(e(0,r+.5-u),h-u),c=(1+Math.cos(Math.PI+2*Math.PI*r/(h-u)))/2),c=l(c)):(r>=n(u)&&(c=e(0,t(r-u<0?t(h,1)-(u-r):h-r,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;c1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,r=this.s.v/t+n,i=this.e.v/t+n;if(r>i){var o=r;r=i,i=o}this.finalS=r,this.finalE=i}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(e,t,n){return new r(e,t,n)}}}();function TextAnimatorDataProperty(e,t,n){var r={propType:!1},i=PropertyFactory.getProp,o=t.a;this.a={r:o.r?i(e,o.r,0,degToRads,n):r,rx:o.rx?i(e,o.rx,0,degToRads,n):r,ry:o.ry?i(e,o.ry,0,degToRads,n):r,sk:o.sk?i(e,o.sk,0,degToRads,n):r,sa:o.sa?i(e,o.sa,0,degToRads,n):r,s:o.s?i(e,o.s,1,.01,n):r,a:o.a?i(e,o.a,1,0,n):r,o:o.o?i(e,o.o,0,.01,n):r,p:o.p?i(e,o.p,1,0,n):r,sw:o.sw?i(e,o.sw,0,0,n):r,sc:o.sc?i(e,o.sc,1,0,n):r,fc:o.fc?i(e,o.fc,1,0,n):r,fh:o.fh?i(e,o.fh,0,0,n):r,fs:o.fs?i(e,o.fs,0,.01,n):r,fb:o.fb?i(e,o.fb,0,.01,n):r,t:o.t?i(e,o.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=PropertyFactory.getProp;for(e=0;e=s+se||!p?(v=(s+se-c)/l.partialLength,N=f.point[0]+(l.point[0]-f.point[0])*v,_=f.point[1]+(l.point[1]-f.point[1])*v,S.translate(-x[0]*T[i].an*.005,-x[1]*B*.01),u=!1):p&&(c+=l.partialLength,(h+=1)>=p.length&&(h=0,m[d+=1]?p=m[d].points:A.v.c?(h=0,p=m[d=0].points):(c-=l.partialLength,p=null)),p&&(f=l,g=(l=p[h]).partialLength));F=T[i].an/2-T[i].add,S.translate(-F,0,0)}else F=T[i].an/2-T[i].add,S.translate(-F,0,0),S.translate(-x[0]*T[i].an*.005,-x[1]*B*.01,0);for(M=0;Me?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,l){var y=createNS("g");a.appendChild(y),this.textSpans[e].childSpan=y}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(c.reset(),u&&(s[e].n&&(h=-p,d+=n.yOffset,d+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(n,c,s[e].line,h,d),h+=s[e].l||0,h+=p),l){var v;if(1===(m=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)v=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,n.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var A=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(A.layerElement),A.destroy()}this.textSpans[e].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[e].childSpan.appendChild(v.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else u&&a.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&a&&a.setAttribute("d","")}else{var x=this.textContainer,w="start";switch(n.j){case 1:w="end";break;case 2:w="middle";break;default:w="start"}x.setAttribute("text-anchor",w),x.setAttribute("letter-spacing",p);var C=this.buildTextContents(n.finalText);for(t=C.length,d=n.ps?n.ps[1]+n.ascent:0,e=0;e=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e=0;n-=1)e.finalTransform.multiply(e.transforms[n].transform.mProps.v);e._mdf=i},processSequences:function(e){var t,n=this.sequenceList.length;for(t=0;t=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var n=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(n),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var n=assetLoader.getLumaCanvas(this.canvasContext.canvas);n.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(n,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},r={};if("fl"===e.ty||"st"===e.ty?(r.c=PropertyFactory.getProp(this,e.c,1,255,this),r.c.k||(n.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(r.s=PropertyFactory.getProp(this,e.s,1,null,this),r.e=PropertyFactory.getProp(this,e.e,1,null,this),r.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,e.g,this)),r.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],1==e.lj&&(n.ml=e.ml),r.w=PropertyFactory.getProp(this,e.w,0,null,this),r.w.k||(n.wi=r.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);r.d=i,r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0])}}else n.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(n),r.style=n,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e=0;o-=1){if((l=this.searchProcessedElement(e[o]))?t[o]=n[l-1]:e[o]._shouldRender=r,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty)l?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],p),d.push(t[o].style);else if("gr"===e[o].ty){if(l)for(s=t[o].it.length,a=0;a=0;i-=1)"tr"===t[i].ty?(o=n[i].transform,this.renderShapeTransform(e,o)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],n[i]):"fl"===t[i].ty?this.renderFill(t[i],n[i],o):"st"===t[i].ty?this.renderStroke(t[i],n[i],o):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],n[i],o):"gr"===t[i].ty?this.renderShape(o,t[i].it,n[i].it):t[i].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n,r,i,o=e.trNodes,a=t.paths,s=a._length;o.length=0;var l=e.transforms.finalTransform;for(i=0;i=1?h=.99:h<=-1&&(h=-.99);var d=c*h,f=Math.cos(u+t.a.v)*d+s[0],p=Math.sin(u+t.a.v)*d+s[1];r=a.createRadialGradient(f,p,0,s[0],s[1],c)}var m=e.g.p,g=t.g.c,y=1;for(o=0;os&&"xMidYMid slice"===l||ai&&"meet"===s||oi&&"slice"===s)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(oi&&"slice"===s)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===u&&(o>i&&"meet"===s||oi&&"meet"===s||o=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var n;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,r=e.length;for(n=0;n0&&s<1&&h[d].push(this.calculateF(s,e,t,n,r,d)):(l=o*o-4*a*i)>=0&&((c=(-o+bmSqrt(l))/(2*i))>0&&c<1&&h[d].push(this.calculateF(c,e,t,n,r,d)),(u=(-o-bmSqrt(l))/(2*i))>0&&u<1&&h[d].push(this.calculateF(u,e,t,n,r,d))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(e,t,n,r,i,o){return bmPow(1-e,3)*t[o]+3*bmPow(1-e,2)*e*n[o]+3*(1-e)*bmPow(e,2)*r[o]+bmPow(e,3)*i[o]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,r=e.length;for(n=0;nn&&(n=i)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax=0;e-=1){var r=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),a=[i[0]/o,i[1]/o,i[2]/o],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],s),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var h,d,f;for(t=this.comp.threeDElements.length,e=0;e=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n,r,i=createTag("div");styleDiv(i);var o=createTag("div");if(styleDiv(o),"3d"===t){(n=i.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var a="50% 50%";n.webkitTransformOrigin=a,n.mozTransformOrigin=a,n.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=o.style).transform=s,r.webkitTransform=s}i.appendChild(o);var l={container:o,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,n=this.layers.length,r="";for(e=0;e=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,r=this.threeDElements.length;na?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,n=0,r=(o-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=o/this.globalData.compSize.h,t=o/this.globalData.compSize.h,n=(i-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,r=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+n+","+r+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,n=this.globalData.compSize.h,r=this.threeDElements.length;for(e=0;e=s;)e/=2,t/=2,n>>>=1;return(e+n)/t};return b.int32=function(){return 0|v.g(4)},b.quick=function(){return v.g(4)/4294967296},b.double=b,d(f(v.S),e),(p.pass||m||function(e,n,r,o){return o&&(o.S&&u(o,v),e.state=function(){return u(v,{})}),r?(t[i]=e,n):e})(b,y,"global"in p?p.global:this==t,p.state)},d(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var n,r=e.length,i=[];for(n=0;nn){var r=n;n=t,t=r}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var n;t||(t=helperLengthArray);var r=Math.min(e.length,t.length),i=0;for(n=0;n.5?c/(2-a-s):c/(a+s),a){case r:t=(i-o)/c+(i1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t,n,r,i=e[0],o=e[1],a=e[2];if(0===o)t=a,r=a,n=a;else{var s=a<.5?a*(1+o):a+o-a*o,l=2*a-s;t=hue2rgb(l,s,i+1/3),n=hue2rgb(l,s,i),r=hue2rgb(l,s,i-1/3)}return[t,n,r,e[3]]}function linear(e,t,n,r,i){if(void 0!==r&&void 0!==i||(r=t,i=n,t=0,n=1),n=n)return i;var a,s=n===t?0:(e-t)/(n-t);if(!r.length)return r+(i-r)*s;var l=r.length,c=createTypedArray("float32",l);for(a=0;a1){for(r=0;r1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(i)){var s,l=i.length,c=createTypedArray("float32",l);for(s=0;sdata.k[t].t&&edata.k[t+1].t-e?(n=t+2,r=data.k[t+1].t):(n=t+1,r=data.k[t].t);break}}-1===n&&(n=t+1,r=data.k[t].t)}else n=0,r=0;var o={};return o.index=n,o.time=r/elem.comp.globalData.frameRate,o}function key(e){var t,n,r;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=i.length,n=0;nc.length-1)&&(t=c.length-1),r=u-(i=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/r)%2!=0)return this.getValueAtTime((r-(l-i)%r+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var h=this.getValueAtTime(i/this.comp.globalData.frameRate,0),d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((l-i)%r+i)/this.comp.globalData.frameRate,0),p=Math.floor((l-i)/r);if(this.pv.length){for(a=(s=new Array(h.length)).length,o=0;o=u)return this.pv;if(n?i=u+(r=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-u)):((!t||t>c.length-1)&&(t=c.length-1),r=(i=c[t].t)-u),"pingpong"===e){if(Math.floor((u-l)/r)%2==0)return this.getValueAtTime(((u-l)%r+u)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var h=this.getValueAtTime(u/this.comp.globalData.frameRate,0),d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),f=this.getValueAtTime((r-(u-l)%r+u)/this.comp.globalData.frameRate,0),p=Math.floor((u-l)/r)+1;if(this.pv.length){for(a=(s=new Array(h.length)).length,o=0;o1?(i+e-o)/(t-1):1,s=0,l=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;sa){var u=s,h=n.c&&s===l-1?0:s+1,d=(a-c)/o[s].addedLength;r=bez.getPointInSegment(n.v[u],n.v[h],n.o[u],n.i[h],d,o[s]);break}c+=o[s].addedLength,s+=1}return r||(r=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),r},vectorOnPath:function(e,t,n){1==e?e=this.v.c:0==e&&(e=.999);var r=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),o=i[0]-r[0],a=i[1]-r[1],s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===n?[o/s,a/s]:[-a/s,o/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],s),extendPrototype([c],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime=c?f<0?r:i:r+d*Math.pow((o-e)/f,1/n),u[h]=a,h+=1,s+=256/255;return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=n*Math.cos(r),o=n*Math.sin(r);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(e,t,n,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",r),e.appendChild(i),this.feGaussianBlur=i}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t{"use strict";n.d(t,{A:()=>s});var r=n(71354),i=n.n(r),o=n(76314),a=n.n(o)()(i());a.push([e.id,'/*!\n * \n * react-simple-keyboard v3.8.69\n * https://github.com/hodgef/react-simple-keyboard\n *\n * Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n/*!\n * \n * simple-keyboard v3.8.53\n * https://github.com/hodgef/simple-keyboard\n *\n * Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */.hg-theme-default{background-color:#ececec;border-radius:5px;box-sizing:border-box;font-family:HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;overflow:hidden;padding:5px;touch-action:manipulation;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.hg-theme-default .hg-button span,.hg-theme-default .hg-button span svg{pointer-events:none}.hg-theme-default button.hg-button{border-width:0;font-size:inherit;outline:0}.hg-theme-default .hg-button{display:inline-block;flex-grow:1}.hg-theme-default .hg-row{display:flex}.hg-theme-default .hg-row:not(:last-child){margin-bottom:5px}.hg-theme-default .hg-row .hg-button-container,.hg-theme-default .hg-row .hg-button:not(:last-child){margin-right:5px}.hg-theme-default .hg-row>div:last-child{margin-right:0}.hg-theme-default .hg-row .hg-button-container{display:flex}.hg-theme-default .hg-button{align-items:center;background:#fff;border-bottom:1px solid #b5b5b5;border-radius:5px;box-shadow:0 0 3px -1px rgba(0,0,0,.3);box-sizing:border-box;cursor:pointer;display:flex;height:40px;justify-content:center;padding:5px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.hg-theme-default .hg-button.hg-standardBtn{width:20px}.hg-theme-default .hg-button.hg-activeButton{background:#efefef}.hg-theme-default.hg-layout-numeric .hg-button{align-items:center;display:flex;height:60px;justify-content:center;width:33.3%}.hg-theme-default .hg-button.hg-button-numpadadd,.hg-theme-default .hg-button.hg-button-numpadenter{height:85px}.hg-theme-default .hg-button.hg-button-numpad0{width:105px}.hg-theme-default .hg-button.hg-button-com{max-width:85px}.hg-theme-default .hg-button.hg-standardBtn.hg-button-at{max-width:45px}.hg-theme-default .hg-button.hg-selectedButton{background:rgba(5,25,70,.53);color:#fff}.hg-theme-default .hg-button.hg-standardBtn[data-skbtn=".com"]{max-width:82px}.hg-theme-default .hg-button.hg-standardBtn[data-skbtn="@"]{max-width:60px}.hg-candidate-box{background:#ececec;border-bottom:2px solid #b5b5b5;border-radius:5px;display:inline-flex;margin-top:-10px;position:absolute;transform:translateY(-100%);-webkit-user-select:none;-moz-user-select:none;user-select:none}ul.hg-candidate-box-list{display:flex;flex:1;list-style:none;margin:0;padding:0}li.hg-candidate-box-list-item{align-items:center;display:flex;height:40px;justify-content:center;width:40px}li.hg-candidate-box-list-item:hover{background:rgba(0,0,0,.03);cursor:pointer}li.hg-candidate-box-list-item:active{background:rgba(0,0,0,.1)}.hg-candidate-box-prev:before{content:"◄"}.hg-candidate-box-next:before{content:"►"}.hg-candidate-box-next,.hg-candidate-box-prev{align-items:center;color:#969696;cursor:pointer;display:flex;padding:0 10px}.hg-candidate-box-next{border-bottom-right-radius:5px;border-top-right-radius:5px}.hg-candidate-box-prev{border-bottom-left-radius:5px;border-top-left-radius:5px}.hg-candidate-box-btn-active{color:#444}',"",{version:3,sources:["webpack://./node_modules/react-simple-keyboard/build/css/index.css"],names:[],mappings:"AAAA;;;;;;;;;;EAUE;AACF;;;;;;;;;;EAUE,CAAC,kBAAkB,wBAAwB,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,4GAA4G,CAAC,eAAe,CAAC,WAAW,CAAC,yBAAyB,CAAC,wBAAwB,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,UAAU,CAAC,wEAAwE,mBAAmB,CAAC,mCAAmC,cAAc,CAAC,iBAAiB,CAAC,SAAS,CAAC,6BAA6B,oBAAoB,CAAC,WAAW,CAAC,0BAA0B,YAAY,CAAC,2CAA2C,iBAAiB,CAAC,qGAAqG,gBAAgB,CAAC,yCAAyC,cAAc,CAAC,+CAA+C,YAAY,CAAC,6BAA6B,kBAAkB,CAAC,eAAe,CAAC,+BAA+B,CAAC,iBAAiB,CAAC,sCAAsC,CAAC,qBAAqB,CAAC,cAAc,CAAC,YAAY,CAAC,WAAW,CAAC,sBAAsB,CAAC,WAAW,CAAC,yCAAyC,CAAC,4CAA4C,UAAU,CAAC,6CAA6C,kBAAkB,CAAC,+CAA+C,kBAAkB,CAAC,YAAY,CAAC,WAAW,CAAC,sBAAsB,CAAC,WAAW,CAAC,oGAAoG,WAAW,CAAC,+CAA+C,WAAW,CAAC,2CAA2C,cAAc,CAAC,yDAAyD,cAAc,CAAC,+CAA+C,4BAA4B,CAAC,UAAU,CAAC,+DAA+D,cAAc,CAAC,4DAA4D,cAAc,CAAC,kBAAkB,kBAAkB,CAAC,+BAA+B,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,2BAA2B,CAAC,wBAAwB,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,yBAAyB,YAAY,CAAC,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC,SAAS,CAAC,8BAA8B,kBAAkB,CAAC,YAAY,CAAC,WAAW,CAAC,sBAAsB,CAAC,UAAU,CAAC,oCAAoC,0BAA0B,CAAC,cAAc,CAAC,qCAAqC,yBAAyB,CAAC,8BAA8B,WAAW,CAAC,8BAA8B,WAAW,CAAC,8CAA8C,kBAAkB,CAAC,aAAa,CAAC,cAAc,CAAC,YAAY,CAAC,cAAc,CAAC,uBAAuB,8BAA8B,CAAC,2BAA2B,CAAC,uBAAuB,6BAA6B,CAAC,0BAA0B,CAAC,6BAA6B,UAAU",sourcesContent:['/*!\n * \n * react-simple-keyboard v3.8.69\n * https://github.com/hodgef/react-simple-keyboard\n *\n * Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n/*!\n * \n * simple-keyboard v3.8.53\n * https://github.com/hodgef/simple-keyboard\n *\n * Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */.hg-theme-default{background-color:#ececec;border-radius:5px;box-sizing:border-box;font-family:HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;overflow:hidden;padding:5px;touch-action:manipulation;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.hg-theme-default .hg-button span,.hg-theme-default .hg-button span svg{pointer-events:none}.hg-theme-default button.hg-button{border-width:0;font-size:inherit;outline:0}.hg-theme-default .hg-button{display:inline-block;flex-grow:1}.hg-theme-default .hg-row{display:flex}.hg-theme-default .hg-row:not(:last-child){margin-bottom:5px}.hg-theme-default .hg-row .hg-button-container,.hg-theme-default .hg-row .hg-button:not(:last-child){margin-right:5px}.hg-theme-default .hg-row>div:last-child{margin-right:0}.hg-theme-default .hg-row .hg-button-container{display:flex}.hg-theme-default .hg-button{align-items:center;background:#fff;border-bottom:1px solid #b5b5b5;border-radius:5px;box-shadow:0 0 3px -1px rgba(0,0,0,.3);box-sizing:border-box;cursor:pointer;display:flex;height:40px;justify-content:center;padding:5px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.hg-theme-default .hg-button.hg-standardBtn{width:20px}.hg-theme-default .hg-button.hg-activeButton{background:#efefef}.hg-theme-default.hg-layout-numeric .hg-button{align-items:center;display:flex;height:60px;justify-content:center;width:33.3%}.hg-theme-default .hg-button.hg-button-numpadadd,.hg-theme-default .hg-button.hg-button-numpadenter{height:85px}.hg-theme-default .hg-button.hg-button-numpad0{width:105px}.hg-theme-default .hg-button.hg-button-com{max-width:85px}.hg-theme-default .hg-button.hg-standardBtn.hg-button-at{max-width:45px}.hg-theme-default .hg-button.hg-selectedButton{background:rgba(5,25,70,.53);color:#fff}.hg-theme-default .hg-button.hg-standardBtn[data-skbtn=".com"]{max-width:82px}.hg-theme-default .hg-button.hg-standardBtn[data-skbtn="@"]{max-width:60px}.hg-candidate-box{background:#ececec;border-bottom:2px solid #b5b5b5;border-radius:5px;display:inline-flex;margin-top:-10px;position:absolute;transform:translateY(-100%);-webkit-user-select:none;-moz-user-select:none;user-select:none}ul.hg-candidate-box-list{display:flex;flex:1;list-style:none;margin:0;padding:0}li.hg-candidate-box-list-item{align-items:center;display:flex;height:40px;justify-content:center;width:40px}li.hg-candidate-box-list-item:hover{background:rgba(0,0,0,.03);cursor:pointer}li.hg-candidate-box-list-item:active{background:rgba(0,0,0,.1)}.hg-candidate-box-prev:before{content:"◄"}.hg-candidate-box-next:before{content:"►"}.hg-candidate-box-next,.hg-candidate-box-prev{align-items:center;color:#969696;cursor:pointer;display:flex;padding:0 10px}.hg-candidate-box-next{border-bottom-right-radius:5px;border-top-right-radius:5px}.hg-candidate-box-prev{border-bottom-left-radius:5px;border-top-left-radius:5px}.hg-candidate-box-btn-active{color:#444}'],sourceRoot:""}]);const s=a},50246:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0,t.parse=function(e,t){const n=new u(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r},t.parseConstValue=function(e,t){const n=new u(e,t);n.expectToken(c.TokenKind.SOF);const r=n.parseConstValueLiteral();return n.expectToken(c.TokenKind.EOF),r},t.parseType=function(e,t){const n=new u(e,t);n.expectToken(c.TokenKind.SOF);const r=n.parseTypeReference();return n.expectToken(c.TokenKind.EOF),r},t.parseValue=function(e,t){const n=new u(e,t);n.expectToken(c.TokenKind.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(c.TokenKind.EOF),r};var r=n(51352),i=n(76257),o=n(5919),a=n(7030),s=n(46083),l=n(46876),c=n(73038);class u{constructor(e,t={}){const n=(0,l.isSource)(e)?e:new l.Source(e);this._lexer=new s.Lexer(n),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(c.TokenKind.NAME);return this.node(e,{kind:a.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.Kind.DOCUMENT,definitions:this.many(c.TokenKind.SOF,this.parseDefinition,c.TokenKind.EOF)})}parseDefinition(){if(this.peek(c.TokenKind.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===c.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(c.TokenKind.BRACE_L))return this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:i.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(c.TokenKind.NAME)&&(n=this.parseName()),this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(c.TokenKind.NAME);switch(e.value){case"query":return i.OperationTypeNode.QUERY;case"mutation":return i.OperationTypeNode.MUTATION;case"subscription":return i.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseVariableDefinition,c.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(c.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(c.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(c.TokenKind.DOLLAR),this.node(e,{kind:a.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.Kind.SELECTION_SET,selections:this.many(c.TokenKind.BRACE_L,this.parseSelection,c.TokenKind.BRACE_R)})}parseSelection(){return this.peek(c.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(c.TokenKind.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:a.Kind.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(c.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(c.TokenKind.PAREN_L,t,c.TokenKind.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:a.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(c.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(c.TokenKind.NAME)?this.node(e,{kind:a.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:a.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case c.TokenKind.BRACKET_L:return this.parseList(e);case c.TokenKind.BRACE_L:return this.parseObject(e);case c.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:a.Kind.INT,value:t.value});case c.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.Kind.FLOAT,value:t.value});case c.TokenKind.STRING:case c.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case c.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:a.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:a.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:a.Kind.NULL});default:return this.node(t,{kind:a.Kind.ENUM,value:t.value})}case c.TokenKind.DOLLAR:if(e){if(this.expectToken(c.TokenKind.DOLLAR),this._lexer.token.kind===c.TokenKind.NAME){const e=this._lexer.token.value;throw(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:a.Kind.STRING,value:e.value,block:e.kind===c.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:a.Kind.LIST,values:this.any(c.TokenKind.BRACKET_L,(()=>this.parseValueLiteral(e)),c.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:a.Kind.OBJECT,fields:this.any(c.TokenKind.BRACE_L,(()=>this.parseObjectField(e)),c.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:a.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(c.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(c.TokenKind.AT),this.node(t,{kind:a.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(c.TokenKind.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(c.TokenKind.BRACKET_R),t=this.node(e,{kind:a.Kind.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(c.TokenKind.BANG)?this.node(e,{kind:a.Kind.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:a.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(c.TokenKind.STRING)||this.peek(c.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);return this.node(e,{kind:a.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(c.TokenKind.COLON);const n=this.parseNamedType();return this.node(e,{kind:a.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:a.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(c.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseFieldDefinition,c.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(c.TokenKind.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:a.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseInputValueDef,c.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(c.TokenKind.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(c.TokenKind.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:a.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:a.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(c.TokenKind.EQUALS)?this.delimitedMany(c.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:a.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseEnumValueDefinition,c.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:a.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,`${h(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseInputValueDef,c.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===c.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(c.TokenKind.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:a.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(c.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new i.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected ${d(e)}, found ${h(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==c.TokenKind.NAME||t.value!==e)throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${h(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===c.TokenKind.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected ${h(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==c.TokenKind.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw(0,r.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function h(e){const t=e.value;return d(e.kind)+(null!=t?` "${t}"`:"")}function d(e){return(0,s.isPunctuatorTokenKind)(e)?`"${e}"`:e}t.Parser=u},50728:(e,t,n)=>{"use strict";n.d(t,{A:()=>P});var r=n(8),i=n(58168),o=n(98587),a=n(96540),s=n(71261),l=[];function c(e){return l[e-1]}var u=n(6927),h=/^data:/;class d{static has(e){var t=d._entries;return h.test(e)||Boolean(t[e])}static add(e){var t=d._entries,n=Date.now();t[e]?(t[e].lastUsedTimestamp=n,t[e].refCount+=1):t[e]={lastUsedTimestamp:n,refCount:1}}static remove(e){var t=d._entries;t[e]&&(t[e].refCount-=1),d._cleanUpIfNeeded()}static _cleanUpIfNeeded(){var e,t,n=d._entries,r=Object.keys(n);r.length+1>d._maximumEntries&&(r.forEach((r=>{var i=n[r];(!t||i.lastUsedTimestampd.has(e),load(e,t,n){f+=1;var r=new window.Image;return r.onerror=n,r.onload=e=>{var n=()=>t({nativeEvent:e});"function"==typeof r.decode?r.decode().then(n,n):setTimeout(n,0)},r.src=e,p[""+f]=r,f},prefetch:e=>new Promise(((t,n)=>{m.load(e,(()=>{d.add(e),d.remove(e),t()}),n)})),queryCache(e){var t={};return e.forEach((e=>{d.has(e)&&(t[e]="disk/memory")})),Promise.resolve(t)}};const g=m;var y=n(99518),v=n(43999),b=n(85243),A=n(9176),x=n(4078),w=["aria-label","accessibilityLabel","blurRadius","defaultSource","draggable","onError","onLayout","onLoad","onLoadEnd","onLoadStart","pointerEvents","source","style"],C="LOADED",S="LOADING",E=0,k=/^(data:image\/svg\+xml;utf8,)(.*)/;function T(e){var t=null;if("number"==typeof e){var n=c(e);if(null==n)throw new Error('Image: asset with ID "'+e+'" could not be found. Please check the image source or packager.');var r=n.scales[0];if(n.scales.length>1){var i=y.A.get();r=n.scales.reduce(((e,t)=>Math.abs(t-i){var n=e["aria-label"],r=e.accessibilityLabel,l=e.blurRadius,h=e.defaultSource,d=e.draggable,f=e.onError,p=e.onLayout,m=e.onLoad,y=e.onLoadEnd,k=e.onLoadStart,I=e.pointerEvents,O=e.source,P=e.style,D=(0,o.A)(e,w),j=n||r,B=a.useState((()=>{var e=T(O);return null!=e&&g.has(e)?C:"IDLE"})),L=B[0],F=B[1],N=a.useState({}),_=N[0],z=N[1],V=a.useContext(b.A),U=a.useRef(null),H=a.useRef(E++),q=a.useRef(null),G=L===C||L===S&&null==h,Y=function(e,t,n,r){var i=v.A.flatten(e),o=i.filter,a=i.resizeMode,s=i.shadowOffset,l=i.tintColor;i.resizeMode&&(0,x.m)("Image.style.resizeMode","Image: style.resizeMode is deprecated. Please use props.resizeMode."),i.tintColor&&(0,x.m)("Image.style.tintColor","Image: style.tintColor is deprecated. Please use props.tintColor.");var c=[],h=null;if(o&&c.push(o),t&&c.push("blur("+t+"px)"),s){var d=(0,u.l5)(i);d&&c.push("drop-shadow("+d+")")}return(r||l)&&null!=n&&c.push("url(#tint-"+n+")"),c.length>0&&(h=c.join(" ")),[a,h,l]}(P,l,H.current,e.tintColor),W=Y[0],Q=Y[1],X=Y[2],J=e.resizeMode||W||"cover",Z=e.tintColor||X,K=G?O:h,$=T(K),ee=function(e){if("number"==typeof e){var t=c(e);return{height:t.height,width:t.width}}if(null!=e&&!Array.isArray(e)&&"object"==typeof e)return{height:e.height,width:e.width}}(K),te=$?'url("'+$+'")':null,ne=function(){if(null!=U.current&&("center"===J||"repeat"===J)){var e=U.current,t=e.naturalHeight,n=e.naturalWidth,r=_.height,i=_.width;if(t&&n&&r&&i){var o=Math.min(1,i/n,r/t);return Math.ceil(o*n)+"px "+Math.ceil(o*t)+"px"}}}(),re=$?(0,s.A)("img",{alt:j||"",style:R.accessibilityImage$raw,draggable:d||!1,ref:U,src:$}):null,ie=T(O);return a.useEffect((()=>{function e(){null!=q.current&&(g.abort(q.current),q.current=null)}return e(),null!=ie&&(F(S),k&&k(),q.current=g.load(ie,(function(e){F(C),m&&m(e),y&&y()}),(function(){F("ERRORED"),f&&f({nativeEvent:{error:"Failed to load resource "+ie}}),y&&y()}))),e}),[ie,q,F,f,m,y,k]),a.createElement(A.A,(0,i.A)({},D,{"aria-label":j,onLayout:function(e){if("center"===J||"repeat"===J||p){var t=e.nativeEvent.layout;p&&p(e),z(t)}},pointerEvents:I,ref:t,style:[R.root,V&&R.inline,ee,P,R.undo,{boxShadow:null}]}),a.createElement(A.A,{style:[R.image,M[J],{backgroundImage:te,filter:Q},null!=ne&&{backgroundSize:ne}],suppressHydrationWarning:!0}),re,function(e,t){return e&&null!=t?a.createElement("svg",{style:{position:"absolute",height:0,visibility:"hidden",width:0}},a.createElement("defs",null,a.createElement("filter",{id:"tint-"+t,suppressHydrationWarning:!0},a.createElement("feFlood",{floodColor:""+e,key:e}),a.createElement("feComposite",{in2:"SourceAlpha",operator:"in"})))):null}(Z,H.current))}));I.displayName="Image";var O=I;O.getSize=function(e,t,n){g.getSize(e,t,n)},O.prefetch=function(e){return g.prefetch(e)},O.queryCache=function(e){return g.queryCache(e)};var R=v.A.create({root:{flexBasis:"auto",overflow:"hidden",zIndex:0},inline:{display:"inline-flex"},undo:{blurRadius:null,shadowColor:null,shadowOpacity:null,shadowOffset:null,shadowRadius:null,tintColor:null,overlayColor:null,resizeMode:null},image:(0,r.A)((0,r.A)({},v.A.absoluteFillObject),{},{backgroundColor:"transparent",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:"100%",width:"100%",zIndex:-1}),accessibilityImage$raw:(0,r.A)((0,r.A)({},v.A.absoluteFillObject),{},{height:"100%",opacity:0,width:"100%",zIndex:-1})}),M=v.A.create({center:{backgroundSize:"auto"},contain:{backgroundSize:"contain"},cover:{backgroundSize:"cover"},none:{backgroundPosition:"0",backgroundSize:"auto"},repeat:{backgroundPosition:"0",backgroundRepeat:"repeat",backgroundSize:"auto"},stretch:{backgroundSize:"100% 100%"}});const P=O},51031:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},51230:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DEFAULT_ICON_COLOR",{enumerable:!0,get:function(){return r.DEFAULT_ICON_COLOR}}),Object.defineProperty(t,"DEFAULT_ICON_SIZE",{enumerable:!0,get:function(){return r.DEFAULT_ICON_SIZE}}),Object.defineProperty(t,"createIconSet",{enumerable:!0,get:function(){return r.createIconSet}}),Object.defineProperty(t,"isDynamicLoadingEnabled",{enumerable:!0,get:function(){return i.isDynamicLoadingEnabled}}),Object.defineProperty(t,"isDynamicLoadingSupported",{enumerable:!0,get:function(){return i.isDynamicLoadingSupported}}),Object.defineProperty(t,"setDynamicLoadingEnabled",{enumerable:!0,get:function(){return i.setDynamicLoadingEnabled}}),Object.defineProperty(t,"setDynamicLoadingErrorCallback",{enumerable:!0,get:function(){return i.setDynamicLoadingErrorCallback}});var r=n(3469),i=n(46985)},51352:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new r.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})};var r=n(61702)},51747:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},i=["ms","Moz","O","Webkit"];Object.keys(r).forEach((e=>{i.forEach((t=>{r[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(t,e)]=r[e]}))}));const o=r;var a=n(86610),s={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function l(e,t){var n=e;return null!=t&&o[t]||"number"!=typeof e?null!=t&&s[t]&&(n=(0,a.A)(e)):n=e+"px",n}},52144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(r.__importDefault(n(27796)).default);t.default=i},52158:e=>{"use strict";e.exports=function(e){return"number"==typeof e&&e>=0&&e<=255&&(0|e)===e}},52338:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={ignoreLogs(){},ignoreAllLogs(){},uninstall(){},install(){}}},52376:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},52407:(e,t,n)=>{"use strict";var r,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(l,{Schema:()=>u,SchemaBuilder:()=>d,SchemaFamily:()=>h}),e.exports=(r=l,((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a(t))s.call(e,n)||undefined===n||i(e,n,{get:()=>t[n],enumerable:!(r=o(t,n))||r.enumerable});return e})(i({},"__esModule",{value:!0}),r));var c=n(69582);class u{constructor(e,t,n=!1){this.version=e,this.schema=t,this.isStatic=n}toString(){return this.schema}asEncoder(){return(0,c.makeEncoder)(this.schema)}asDecoder(){return(0,c.makeDecoder)(this.schema)}}class h{constructor(e,t){this.id=e,this.schemas=t}}class d{constructor(e){this.options=e}schemaArray=[];version=null;field(e,t,n){return this.schemaArray.push([e,t,n??{},""]),this}withVersion(e){return this.schemaArray.unshift(["version","int8",{signed:!1},e]),this.version=e,this}build(){return new u(this.version,this.schemaArray.reduce(((e,[t,n,r])=>{let i="",o="";return"nullable"in r&&r.nullable&&(o+="nullable_"),"signed"in r&&!r.signed&&(o+="u"),"enum8"===n&&"values"in r?(i=`${t}[${r.values.join(",")}]`,o+="uint8_enum"):"flags8"===n&&"flags"in r?(i=`${t}[${r.flags.join(",")}]`,o+="flags8"):(i=`${t}`,o+=`${n}`),e+`${i} ${o}\n`}),"1\n"),this.options?.static)}}},52521:(e,t,n)=>{"use strict";var r=n(38268);e.exports=function(){return"function"==typeof Uint8Array&&Uint8Array.prototype.slice||r}},52834:e=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},52837:(e,t,n)=>{"use strict";var r,i=(r=n(59355))&&r.__esModule?r:{default:r};t.J=i.default},52875:(e,t,n)=>{"use strict";var r=n(94459);e.exports=function(e,t){return e===t?0!==e||1/e==1/t:r(e)&&r(t)}},52997:e=>{"use strict";e.exports=function(e){if(void 0===e)return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t}},53114:function(e){e.exports=function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},s.apply(null,arguments)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function d(e,t,n,r){var i=s(l(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function f(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||m(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 p(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function m(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.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)?e(t,n):void 0}}function g(e){var t="function"==typeof Map?new Map:void 0;return g=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return r(e,arguments,l(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h(n,e)},g(e)}var y=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"getEndCapStyle",value:function(){return this._endCapStyle}},{key:"isSingleSided",value:function(){return this._isSingleSided}},{key:"setQuadrantSegments",value:function(t){this._quadrantSegments=t,0===this._quadrantSegments&&(this._joinStyle=e.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=e.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),t<=0&&(this._quadrantSegments=1),this._joinStyle!==e.JOIN_ROUND&&(this._quadrantSegments=e.DEFAULT_QUADRANT_SEGMENTS)}},{key:"getJoinStyle",value:function(){return this._joinStyle}},{key:"setJoinStyle",value:function(e){this._joinStyle=e}},{key:"setSimplifyFactor",value:function(e){this._simplifyFactor=e<0?0:e}},{key:"getSimplifyFactor",value:function(){return this._simplifyFactor}},{key:"getQuadrantSegments",value:function(){return this._quadrantSegments}},{key:"setEndCapStyle",value:function(e){this._endCapStyle=e}},{key:"getMitreLimit",value:function(){return this._mitreLimit}},{key:"setMitreLimit",value:function(e){this._mitreLimit=e}},{key:"setSingleSided",value:function(e){this._isSingleSided=e}}],[{key:"constructor_",value:function(){if(this._quadrantSegments=e.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=e.CAP_ROUND,this._joinStyle=e.JOIN_ROUND,this._mitreLimit=e.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=e.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.setQuadrantSegments(t)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.setQuadrantSegments(n),this.setEndCapStyle(r)}else if(4===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];this.setQuadrantSegments(i),this.setEndCapStyle(o),this.setJoinStyle(a),this.setMitreLimit(s)}}},{key:"bufferDistanceError",value:function(e){var t=Math.PI/2/e;return 1-Math.cos(t/2)}}])}();y.CAP_ROUND=1,y.CAP_FLAT=2,y.CAP_SQUARE=3,y.JOIN_ROUND=1,y.JOIN_MITRE=2,y.JOIN_BEVEL=3,y.DEFAULT_QUADRANT_SEGMENTS=8,y.DEFAULT_MITRE_LIMIT=5,y.DEFAULT_SIMPLIFY_FACTOR=.01;var v=function(e){function r(e){var i;return n(this,r),(i=t(this,r,[e])).name=Object.keys({Exception:r})[0],i}return c(r,e),o(r,[{key:"toString",value:function(){return this.message}}])}(g(Error)),b=function(e){function r(e){var i;return n(this,r),(i=t(this,r,[e])).name=Object.keys({IllegalArgumentException:r})[0],i}return c(r,e),o(r)}(v),A=o((function e(){n(this,e)}),[{key:"filter",value:function(e){}}]);function x(){}function w(){}function C(){}var S,E,k,T,I,O,R,M=o((function e(){n(this,e)}),null,[{key:"equalsWithTolerance",value:function(e,t,n){return Math.abs(e-t)<=n}}]),P=o((function e(t,r){n(this,e),this.low=r||0,this.high=t||0}),null,[{key:"toBinaryString",value:function(e){var t,n="";for(t=2147483648;t>0;t>>>=1)n+=(e.high&t)===t?"1":"0";for(t=2147483648;t>0;t>>>=1)n+=(e.low&t)===t?"1":"0";return n}}]);function D(){}function j(){}D.NaN=NaN,D.isNaN=function(e){return Number.isNaN(e)},D.isInfinite=function(e){return!Number.isFinite(e)},D.MAX_VALUE=Number.MAX_VALUE,D.POSITIVE_INFINITY=Number.POSITIVE_INFINITY,D.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,"function"==typeof Float64Array&&"function"==typeof Int32Array?(I=2146435072,O=new Float64Array(1),R=new Int32Array(O.buffer),D.doubleToLongBits=function(e){O[0]=e;var t=0|R[0],n=0|R[1];return(n&I)===I&&1048575&n&&0!==t&&(t=0,n=2146959360),new P(n,t)},D.longBitsToDouble=function(e){return R[0]=e.low,R[1]=e.high,O[0]}):(S=Math.log2,E=Math.floor,k=Math.pow,T=function(){for(var e=53;e>0;e--){var t=k(2,e)-1;if(E(S(t))+1===e)return t}return 0}(),D.doubleToLongBits=function(e){var t,n,r,i,o,a,s,l,c;if(e<0||1/e===Number.NEGATIVE_INFINITY?(a=1<<31,e=-e):a=0,0===e)return new P(l=a,c=0);if(e===1/0)return new P(l=2146435072|a,c=0);if(e!=e)return new P(l=2146959360,c=0);if(i=0,c=0,(t=E(e))>1)if(t<=T)(i=E(S(t)))<=20?(c=0,l=t<<20-i&1048575):(c=t%(n=k(2,r=i-20))<<32-r,l=t/n&1048575);else for(r=t,c=0;0!==(r=E(n=r/2));)i++,c>>>=1,c|=(1&l)<<31,l>>>=1,n!==r&&(l|=524288);if(s=i+1023,o=0===t,t=e-t,i<52&&0!==t)for(r=0;;){if((n=2*t)>=1?(t=n-1,o?(s--,o=!1):(r<<=1,r|=1,i++)):(t=n,o?0==--s&&(i++,o=!1):(r<<=1,i++)),20===i)l|=r,r=0;else if(52===i){c|=r;break}if(1===n){i<20?l|=r<<20-i:i<52&&(c|=r<<52-i);break}}return l|=s<<20,new P(l|=a,c)},D.longBitsToDouble=function(e){var t,n,r,i,o=e.high,a=e.low,s=o&1<<31?-1:1;for(r=((2146435072&o)>>20)-1023,i=0,n=1<<19,t=1;t<=20;t++)o&n&&(i+=k(2,-t)),n>>>=1;for(n=1<<31,t=21;t<=52;t++)a&n&&(i+=k(2,-t)),n>>>=1;if(-1023===r){if(0===i)return 0*s;r=-1022}else{if(1024===r)return 0===i?s/0:NaN;i+=1}return s*i*k(2,r)});var B=function(e){function r(e){var i;return n(this,r),(i=t(this,r,[e])).name=Object.keys({RuntimeException:r})[0],i}return c(r,e),o(r)}(v),L=function(e){function r(){var e;return n(this,r),e=t(this,r),r.constructor_.apply(e,arguments),e}return c(r,e),o(r,null,[{key:"constructor_",value:function(){if(0===arguments.length)B.constructor_.call(this);else if(1===arguments.length){var e=arguments[0];B.constructor_.call(this,e)}}}])}(B),F=function(){function e(){n(this,e)}return o(e,null,[{key:"shouldNeverReachHere",value:function(){if(0===arguments.length)e.shouldNeverReachHere(null);else if(1===arguments.length){var t=arguments[0];throw new L("Should never reach here"+(null!==t?": "+t:""))}}},{key:"isTrue",value:function(){if(1===arguments.length){var t=arguments[0];e.isTrue(t,null)}else if(2===arguments.length){var n=arguments[1];if(!arguments[0])throw null===n?new L:new L(n)}}},{key:"equals",value:function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];e.equals(t,n,null)}else if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];if(!i.equals(r))throw new L("Expected "+r+" but encountered "+i+(null!==o?": "+o:""))}}}])}(),N=new ArrayBuffer(8),_=new Float64Array(N),z=new Int32Array(N),V=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"getM",value:function(){return D.NaN}},{key:"setOrdinate",value:function(t,n){switch(t){case e.X:this.x=n;break;case e.Y:this.y=n;break;case e.Z:this.setZ(n);break;default:throw new b("Invalid ordinate index: "+t)}}},{key:"equals2D",value:function(){if(1===arguments.length){var e=arguments[0];return this.x===e.x&&this.y===e.y}if(2===arguments.length){var t=arguments[0],n=arguments[1];return!!M.equalsWithTolerance(this.x,t.x,n)&&!!M.equalsWithTolerance(this.y,t.y,n)}}},{key:"setM",value:function(t){throw new b("Invalid ordinate index: "+e.M)}},{key:"getZ",value:function(){return this.z}},{key:"getOrdinate",value:function(t){switch(t){case e.X:return this.x;case e.Y:return this.y;case e.Z:return this.getZ()}throw new b("Invalid ordinate index: "+t)}},{key:"equals3D",value:function(e){return this.x===e.x&&this.y===e.y&&(this.getZ()===e.getZ()||D.isNaN(this.getZ())&&D.isNaN(e.getZ()))}},{key:"equals",value:function(t){return t instanceof e&&this.equals2D(t)}},{key:"equalInZ",value:function(e,t){return M.equalsWithTolerance(this.getZ(),e.getZ(),t)}},{key:"setX",value:function(e){this.x=e}},{key:"compareTo",value:function(e){var t=e;return this.xt.x?1:this.yt.y?1:0}},{key:"getX",value:function(){return this.x}},{key:"setZ",value:function(e){this.z=e}},{key:"clone",value:function(){try{return null}catch(e){if(e instanceof CloneNotSupportedException)return F.shouldNeverReachHere("this shouldn't happen because this class is Cloneable"),null;throw e}}},{key:"copy",value:function(){return new e(this)}},{key:"toString",value:function(){return"("+this.x+", "+this.y+", "+this.getZ()+")"}},{key:"distance3D",value:function(e){var t=this.x-e.x,n=this.y-e.y,r=this.getZ()-e.getZ();return Math.sqrt(t*t+n*n+r*r)}},{key:"getY",value:function(){return this.y}},{key:"setY",value:function(e){this.y=e}},{key:"distance",value:function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)}},{key:"hashCode",value:function(){var t=17;return 37*(t=37*t+e.hashCode(this.x))+e.hashCode(this.y)}},{key:"setCoordinate",value:function(e){this.x=e.x,this.y=e.y,this.z=e.getZ()}},{key:"interfaces_",get:function(){return[x,w,C]}}],[{key:"constructor_",value:function(){if(this.x=null,this.y=null,this.z=null,0===arguments.length)e.constructor_.call(this,0,0);else if(1===arguments.length){var t=arguments[0];e.constructor_.call(this,t.x,t.y,t.getZ())}else if(2===arguments.length){var n=arguments[0],r=arguments[1];e.constructor_.call(this,n,r,e.NULL_ORDINATE)}else if(3===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2];this.x=i,this.y=o,this.z=a}}},{key:"hashCode",value:function(e){return _[0]=e,z[0]^z[1]}}])}(),U=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"compare",value:function(t,n){var r=e.compare(t.x,n.x);if(0!==r)return r;var i=e.compare(t.y,n.y);return 0!==i?i:this._dimensionsToTest<=2?0:e.compare(t.getZ(),n.getZ())}},{key:"interfaces_",get:function(){return[j]}}],[{key:"constructor_",value:function(){if(this._dimensionsToTest=2,0===arguments.length)e.constructor_.call(this,2);else if(1===arguments.length){var t=arguments[0];if(2!==t&&3!==t)throw new b("only 2 or 3 dimensions may be specified");this._dimensionsToTest=t}}},{key:"compare",value:function(e,t){return et?1:D.isNaN(e)?D.isNaN(t)?0:-1:D.isNaN(t)?1:0}}])}();V.DimensionalComparator=U,V.NULL_ORDINATE=D.NaN,V.X=0,V.Y=1,V.Z=2,V.M=3;var H=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"getArea",value:function(){return this.getWidth()*this.getHeight()}},{key:"equals",value:function(t){if(!(t instanceof e))return!1;var n=t;return this.isNull()?n.isNull():this._maxx===n.getMaxX()&&this._maxy===n.getMaxY()&&this._minx===n.getMinX()&&this._miny===n.getMinY()}},{key:"intersection",value:function(t){if(this.isNull()||t.isNull()||!this.intersects(t))return new e;var n=this._minx>t._minx?this._minx:t._minx,r=this._miny>t._miny?this._miny:t._miny;return new e(n,this._maxx=this._minx&&n.getMaxX()<=this._maxx&&n.getMinY()>=this._miny&&n.getMaxY()<=this._maxy}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];return!this.isNull()&&r>=this._minx&&r<=this._maxx&&i>=this._miny&&i<=this._maxy}}},{key:"intersects",value:function(){if(1===arguments.length){if(arguments[0]instanceof e){var t=arguments[0];return!this.isNull()&&!t.isNull()&&!(t._minx>this._maxx||t._maxxthis._maxy||t._maxythis._maxx||(r.x>i.x?r.x:i.x)this._maxy||(r.y>i.y?r.y:i.y)this._maxx||othis._maxy||athis._maxx&&(this._maxx=n._maxx),n._minythis._maxy&&(this._maxy=n._maxy))}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.isNull()?(this._minx=r,this._maxx=r,this._miny=i,this._maxy=i):(rthis._maxx&&(this._maxx=r),ithis._maxy&&(this._maxy=i))}}},{key:"minExtent",value:function(){if(this.isNull())return 0;var e=this.getWidth(),t=this.getHeight();return et._minx?1:this._minyt._miny?1:this._maxxt._maxx?1:this._maxyt._maxy?1:0}},{key:"translate",value:function(e,t){if(this.isNull())return null;this.init(this.getMinX()+e,this.getMaxX()+e,this.getMinY()+t,this.getMaxY()+t)}},{key:"copy",value:function(){return new e(this)}},{key:"toString",value:function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"}},{key:"setToNull",value:function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1}},{key:"disjoint",value:function(e){return!(!this.isNull()&&!e.isNull())||e._minx>this._maxx||e._maxxthis._maxy||e._maxyt?e:t}},{key:"expandBy",value:function(){if(1===arguments.length){var e=arguments[0];this.expandBy(e,e)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(this.isNull())return null;this._minx-=t,this._maxx+=t,this._miny-=n,this._maxy+=n,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}}},{key:"contains",value:function(){if(1===arguments.length){if(arguments[0]instanceof e){var t=arguments[0];return this.covers(t)}if(arguments[0]instanceof V){var n=arguments[0];return this.covers(n)}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];return this.covers(r,i)}}},{key:"centre",value:function(){return this.isNull()?null:new V((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)}},{key:"init",value:function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof V){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof e){var n=arguments[0];this._minx=n._minx,this._maxx=n._maxx,this._miny=n._miny,this._maxy=n._maxy}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.init(r.x,i.x,r.y,i.y)}else if(4===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2],l=arguments[3];oe._maxx&&(t=this._minx-e._maxx);var n=0;return this._maxye._maxy&&(n=this._miny-e._maxy),0===t?n:0===n?t:Math.sqrt(t*t+n*n)}},{key:"hashCode",value:function(){var e=17;return 37*(e=37*(e=37*(e=37*e+V.hashCode(this._minx))+V.hashCode(this._maxx))+V.hashCode(this._miny))+V.hashCode(this._maxy)}},{key:"interfaces_",get:function(){return[x,C]}}],[{key:"constructor_",value:function(){if(this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,0===arguments.length)this.init();else if(1===arguments.length){if(arguments[0]instanceof V){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof e){var n=arguments[0];this.init(n)}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.init(r.x,i.x,r.y,i.y)}else if(4===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2],l=arguments[3];this.init(o,a,s,l)}}},{key:"intersects",value:function(){if(3===arguments.length){var e=arguments[0],t=arguments[1],n=arguments[2];return n.x>=(e.xt.x?e.x:t.x)&&n.y>=(e.yt.y?e.y:t.y)}if(4===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],a=arguments[3],s=Math.min(o.x,a.x),l=Math.max(o.x,a.x),c=Math.min(r.x,i.x),u=Math.max(r.x,i.x);return!(c>l||ul||u=this.size())throw new ee;return this.array[e]}},{key:"push",value:function(e){return this.array.push(e),e}},{key:"pop",value:function(){if(0===this.array.length)throw new $;return this.array.pop()}},{key:"peek",value:function(){if(0===this.array.length)throw new $;return this.array[this.array.length-1]}},{key:"empty",value:function(){return 0===this.array.length}},{key:"isEmpty",value:function(){return this.empty()}},{key:"search",value:function(e){return this.array.indexOf(e)}},{key:"size",value:function(){return this.array.length}},{key:"toArray",value:function(){return this.array.slice()}}])}(te);function re(e,t){return e.interfaces_&&e.interfaces_.indexOf(t)>-1}var ie=o((function e(t){n(this,e),this.str=t}),[{key:"append",value:function(e){this.str+=e}},{key:"setCharAt",value:function(e,t){this.str=this.str.substr(0,e)+t+this.str.substr(e+1)}},{key:"toString",value:function(){return this.str}}]),oe=function(){function e(t){n(this,e),this.value=t}return o(e,[{key:"intValue",value:function(){return this.value}},{key:"compareTo",value:function(e){return this.valuee?1:0}}],[{key:"compare",value:function(e,t){return et?1:0}},{key:"isNan",value:function(e){return Number.isNaN(e)}},{key:"valueOf",value:function(t){return new e(t)}}])}(),ae=o((function e(){n(this,e)}),null,[{key:"isWhitespace",value:function(e){return e<=32&&e>=0||127===e}},{key:"toUpperCase",value:function(e){return e.toUpperCase()}}]),se=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"le",value:function(e){return this._hi9?(h=!0,d="9"):d="0"+u,s.append(d),r=r.subtract(e.valueOf(u)).multiply(e.TEN),h&&r.selfAdd(e.TEN);var f=!0,p=e.magnitude(r._hi);if(p<0&&Math.abs(p)>=l-c&&(f=!1),!f)break}return n[0]=i,s.toString()}},{key:"sqr",value:function(){return this.multiply(this)}},{key:"doubleValue",value:function(){return this._hi+this._lo}},{key:"subtract",value:function(){if(arguments[0]instanceof e){var t=arguments[0];return this.add(t.negate())}if("number"==typeof arguments[0]){var n=arguments[0];return this.add(-n)}}},{key:"equals",value:function(){if(1===arguments.length&&arguments[0]instanceof e){var t=arguments[0];return this._hi===t._hi&&this._lo===t._lo}}},{key:"isZero",value:function(){return 0===this._hi&&0===this._lo}},{key:"selfSubtract",value:function(){if(arguments[0]instanceof e){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t._hi,-t._lo)}if("number"==typeof arguments[0]){var n=arguments[0];return this.isNaN()?this:this.selfAdd(-n,0)}}},{key:"getSpecialNumberString",value:function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null}},{key:"min",value:function(e){return this.le(e)?this:e}},{key:"selfDivide",value:function(){if(1===arguments.length){if(arguments[0]instanceof e){var t=arguments[0];return this.selfDivide(t._hi,t._lo)}if("number"==typeof arguments[0]){var n=arguments[0];return this.selfDivide(n,0)}}else if(2===arguments.length){var r,i,o,a,s=arguments[0],l=arguments[1],c=null,u=null,h=null,d=null;return o=this._hi/s,d=(c=(h=e.SPLIT*o)-(c=h-o))*(u=(d=e.SPLIT*s)-(u=d-s))-(a=o*s)+c*(i=s-u)+(r=o-c)*u+r*i,d=o+(h=(this._hi-a-d+this._lo-o*l)/s),this._hi=d,this._lo=o-d+h,this}}},{key:"dump",value:function(){return"DD<"+this._hi+", "+this._lo+">"}},{key:"divide",value:function(){if(arguments[0]instanceof e){var t,n,r,i,o=arguments[0],a=null,s=null,l=null,c=null;return t=(r=this._hi/o._hi)-(a=(l=e.SPLIT*r)-(a=l-r)),c=a*(s=(c=e.SPLIT*o._hi)-(s=c-o._hi))-(i=r*o._hi)+a*(n=o._hi-s)+t*s+t*n,new e(c=r+(l=(this._hi-i-c+this._lo-r*o._lo)/o._hi),r-c+l)}if("number"==typeof arguments[0]){var u=arguments[0];return D.isNaN(u)?e.createNaN():e.copy(this).selfDivide(u,0)}}},{key:"ge",value:function(e){return this._hi>e._hi||this._hi===e._hi&&this._lo>=e._lo}},{key:"pow",value:function(t){if(0===t)return e.valueOf(1);var n=new e(this),r=e.valueOf(1),i=Math.abs(t);if(i>1)for(;i>0;)i%2==1&&r.selfMultiply(n),(i/=2)>0&&(n=n.sqr());else r=n;return t<0?r.reciprocal():r}},{key:"ceil",value:function(){if(this.isNaN())return e.NaN;var t=Math.ceil(this._hi),n=0;return t===this._hi&&(n=Math.ceil(this._lo)),new e(t,n)}},{key:"compareTo",value:function(e){var t=e;return this._hit._hi?1:this._lot._lo?1:0}},{key:"rint",value:function(){return this.isNaN()?this:this.add(.5).floor()}},{key:"setValue",value:function(){if(arguments[0]instanceof e){var t=arguments[0];return this.init(t),this}if("number"==typeof arguments[0]){var n=arguments[0];return this.init(n),this}}},{key:"max",value:function(e){return this.ge(e)?this:e}},{key:"sqrt",value:function(){if(this.isZero())return e.valueOf(0);if(this.isNegative())return e.NaN;var t=1/Math.sqrt(this._hi),n=this._hi*t,r=e.valueOf(n),i=this.subtract(r.sqr())._hi*(.5*t);return r.add(i)}},{key:"selfAdd",value:function(){if(1===arguments.length){if(arguments[0]instanceof e){var t=arguments[0];return this.selfAdd(t._hi,t._lo)}if("number"==typeof arguments[0]){var n,r,i,o,a,s=arguments[0],l=null;return l=(i=this._hi+s)-(o=i-this._hi),r=(a=(l=s-o+(this._hi-l))+this._lo)+(i-(n=i+a)),this._hi=n+r,this._lo=r+(n-this._hi),this}}else if(2===arguments.length){var c,u,h,d,f=arguments[0],p=arguments[1],m=null,g=null,y=null;h=this._hi+f,u=this._lo+p,g=h-(y=h-this._hi),m=u-(d=u-this._lo);var v=(c=h+(y=(g=f-y+(this._hi-g))+u))+(y=(m=p-d+(this._lo-m))+(y+(h-c))),b=y+(c-v);return this._hi=v,this._lo=b,this}}},{key:"selfMultiply",value:function(){if(1===arguments.length){if(arguments[0]instanceof e){var t=arguments[0];return this.selfMultiply(t._hi,t._lo)}if("number"==typeof arguments[0]){var n=arguments[0];return this.selfMultiply(n,0)}}else if(2===arguments.length){var r,i,o=arguments[0],a=arguments[1],s=null,l=null,c=null,u=null;s=(c=e.SPLIT*this._hi)-this._hi,u=e.SPLIT*o,s=c-s,r=this._hi-s,l=u-o;var h=(c=this._hi*o)+(u=s*(l=u-l)-c+s*(i=o-l)+r*l+r*i+(this._hi*a+this._lo*o)),d=u+(s=c-h);return this._hi=h,this._lo=d,this}}},{key:"selfSqr",value:function(){return this.selfMultiply(this)}},{key:"floor",value:function(){if(this.isNaN())return e.NaN;var t=Math.floor(this._hi),n=0;return t===this._hi&&(n=Math.floor(this._lo)),new e(t,n)}},{key:"negate",value:function(){return this.isNaN()?this:new e(-this._hi,-this._lo)}},{key:"clone",value:function(){try{return null}catch(e){if(e instanceof CloneNotSupportedException)return null;throw e}}},{key:"multiply",value:function(){if(arguments[0]instanceof e){var t=arguments[0];return t.isNaN()?e.createNaN():e.copy(this).selfMultiply(t)}if("number"==typeof arguments[0]){var n=arguments[0];return D.isNaN(n)?e.createNaN():e.copy(this).selfMultiply(n,0)}}},{key:"isNaN",value:function(){return D.isNaN(this._hi)}},{key:"intValue",value:function(){return Math.trunc(this._hi)}},{key:"toString",value:function(){var t=e.magnitude(this._hi);return t>=-3&&t<=20?this.toStandardNotation():this.toSciNotation()}},{key:"toStandardNotation",value:function(){var t=this.getSpecialNumberString();if(null!==t)return t;var n=new Array(1).fill(null),r=this.extractSignificantDigits(!0,n),i=n[0]+1,o=r;if("."===r.charAt(0))o="0"+r;else if(i<0)o="0."+e.stringOfChar("0",-i)+r;else if(-1===r.indexOf(".")){var a=i-r.length;o=r+e.stringOfChar("0",a)+".0"}return this.isNegative()?"-"+o:o}},{key:"reciprocal",value:function(){var t,n,r,i,o=null,a=null,s=null,l=null;t=(r=1/this._hi)-(o=(s=e.SPLIT*r)-(o=s-r)),a=(l=e.SPLIT*this._hi)-this._hi;var c=r+(s=(1-(i=r*this._hi)-(l=o*(a=l-a)-i+o*(n=this._hi-a)+t*a+t*n)-r*this._lo)/this._hi);return new e(c,r-c+s)}},{key:"toSciNotation",value:function(){if(this.isZero())return e.SCI_NOT_ZERO;var t=this.getSpecialNumberString();if(null!==t)return t;var n=new Array(1).fill(null),r=this.extractSignificantDigits(!1,n),i=e.SCI_NOT_EXPONENT_CHAR+n[0];if("0"===r.charAt(0))throw new IllegalStateException("Found leading zero: "+r);var o="";r.length>1&&(o=r.substring(1));var a=r.charAt(0)+"."+o;return this.isNegative()?"-"+a+i:a+i}},{key:"abs",value:function(){return this.isNaN()?e.NaN:this.isNegative()?this.negate():new e(this)}},{key:"isPositive",value:function(){return this._hi>0||0===this._hi&&this._lo>0}},{key:"lt",value:function(e){return this._hie._hi||this._hi===e._hi&&this._lo>e._lo}},{key:"isNegative",value:function(){return this._hi<0||0===this._hi&&this._lo<0}},{key:"trunc",value:function(){return this.isNaN()?e.NaN:this.isPositive()?this.floor():this.ceil()}},{key:"signum",value:function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0}},{key:"interfaces_",get:function(){return[C,x,w]}}],[{key:"constructor_",value:function(){if(this._hi=0,this._lo=0,0===arguments.length)this.init(0);else if(1===arguments.length){if("number"==typeof arguments[0]){var t=arguments[0];this.init(t)}else if(arguments[0]instanceof e){var n=arguments[0];this.init(n)}else if("string"==typeof arguments[0]){var r=arguments[0];e.constructor_.call(this,e.parse(r))}}else if(2===arguments.length){var i=arguments[0],o=arguments[1];this.init(i,o)}}},{key:"determinant",value:function(){if("number"==typeof arguments[3]&&"number"==typeof arguments[2]&&"number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],n=arguments[1],r=arguments[2],i=arguments[3];return e.determinant(e.valueOf(t),e.valueOf(n),e.valueOf(r),e.valueOf(i))}if(arguments[3]instanceof e&&arguments[2]instanceof e&&arguments[0]instanceof e&&arguments[1]instanceof e){var o=arguments[1],a=arguments[2],s=arguments[3];return arguments[0].multiply(s).selfSubtract(o.multiply(a))}}},{key:"sqr",value:function(t){return e.valueOf(t).selfMultiply(t)}},{key:"valueOf",value:function(){if("string"==typeof arguments[0]){var t=arguments[0];return e.parse(t)}if("number"==typeof arguments[0])return new e(arguments[0])}},{key:"sqrt",value:function(t){return e.valueOf(t).sqrt()}},{key:"parse",value:function(t){for(var n=0,r=t.length;ae.isWhitespace(t.charAt(n));)n++;var i=!1;if(n=r);){var h=t.charAt(n);if(n++,ae.isDigit(h)){var d=h-"0";a.selfMultiply(e.TEN),a.selfAdd(d),s++}else{if("."!==h){if("e"===h||"E"===h){var f=t.substring(n);try{c=oe.parseInt(f)}catch(e){throw e instanceof NumberFormatException?new NumberFormatException("Invalid exponent "+f+" in string "+t):e}break}throw new NumberFormatException("Unexpected character '"+h+"' at position "+n+" in string "+t)}l=s,u=!0}}var p=a;u||(l=s);var m=s-l-c;if(0===m)p=a;else if(m>0){var g=e.TEN.pow(m);p=a.divide(g)}else if(m<0){var y=e.TEN.pow(-m);p=a.multiply(y)}return i?p.negate():p}},{key:"createNaN",value:function(){return new e(D.NaN,D.NaN)}},{key:"copy",value:function(t){return new e(t)}},{key:"magnitude",value:function(e){var t=Math.abs(e),n=Math.log(t)/Math.log(10),r=Math.trunc(Math.floor(n));return 10*Math.pow(10,r)<=t&&(r+=1),r}},{key:"stringOfChar",value:function(e,t){for(var n=new ie,r=0;r0){if(a<=0)return e.signum(s);i=o+a}else{if(!(o<0))return e.signum(s);if(a>=0)return e.signum(s);i=-o-a}var l=e.DP_SAFE_EPSILON*i;return s>=l||-s>=l?e.signum(s):2}},{key:"signum",value:function(e){return e>0?1:e<0?-1:0}}])}();le.DP_SAFE_EPSILON=1e-15;var ce=o((function e(){n(this,e)}),[{key:"getM",value:function(e){if(this.hasM()){var t=this.getDimension()-this.getMeasures();return this.getOrdinate(e,t)}return D.NaN}},{key:"setOrdinate",value:function(e,t,n){}},{key:"getZ",value:function(e){return this.hasZ()?this.getOrdinate(e,2):D.NaN}},{key:"size",value:function(){}},{key:"getOrdinate",value:function(e,t){}},{key:"getCoordinate",value:function(){}},{key:"getCoordinateCopy",value:function(e){}},{key:"createCoordinate",value:function(){}},{key:"getDimension",value:function(){}},{key:"hasM",value:function(){return this.getMeasures()>0}},{key:"getX",value:function(e){}},{key:"hasZ",value:function(){return this.getDimension()-this.getMeasures()>2}},{key:"getMeasures",value:function(){return 0}},{key:"expandEnvelope",value:function(e){}},{key:"copy",value:function(){}},{key:"getY",value:function(e){}},{key:"toCoordinateArray",value:function(){}},{key:"interfaces_",get:function(){return[w]}}]);ce.X=0,ce.Y=1,ce.Z=2,ce.M=3;var ue=function(){function e(){n(this,e)}return o(e,null,[{key:"index",value:function(e,t,n){return le.orientationIndex(e,t,n)}},{key:"isCCW",value:function(){if(arguments[0]instanceof Array){var t=arguments[0],n=t.length-1;if(n<3)throw new b("Ring has fewer than 4 points, so orientation cannot be determined");for(var r=t[0],i=0,o=1;o<=n;o++){var a=t[o];a.y>r.y&&(r=a,i=o)}var s=i;do{(s-=1)<0&&(s=n)}while(t[s].equals2D(r)&&s!==i);var l=i;do{l=(l+1)%n}while(t[l].equals2D(r)&&l!==i);var c=t[s],u=t[l];if(c.equals2D(r)||u.equals2D(r)||c.equals2D(u))return!1;var h=e.index(c,r,u);return 0===h?c.x>u.x:h>0}if(re(arguments[0],ce)){var d=arguments[0],f=d.size()-1;if(f<3)throw new b("Ring has fewer than 4 points, so orientation cannot be determined");for(var p=d.getCoordinate(0),m=0,g=1;g<=f;g++){var y=d.getCoordinate(g);y.y>p.y&&(p=y,m=g)}var v=null,A=m;do{(A-=1)<0&&(A=f),v=d.getCoordinate(A)}while(v.equals2D(p)&&A!==m);var x=null,w=m;do{w=(w+1)%f,x=d.getCoordinate(w)}while(x.equals2D(p)&&w!==m);if(v.equals2D(p)||x.equals2D(p)||v.equals2D(x))return!1;var C=e.index(v,p,x);return 0===C?v.x>x.x:C>0}}}])}();ue.CLOCKWISE=-1,ue.RIGHT=ue.CLOCKWISE,ue.COUNTERCLOCKWISE=1,ue.LEFT=ue.COUNTERCLOCKWISE,ue.COLLINEAR=0,ue.STRAIGHT=ue.COLLINEAR;var he=o((function e(){n(this,e),e.constructor_.apply(this,arguments)}),[{key:"getCoordinate",value:function(){return this._minCoord}},{key:"getRightmostSide",value:function(e,t){var n=this.getRightmostSideOfSegment(e,t);return n<0&&(n=this.getRightmostSideOfSegment(e,t-1)),n<0&&(this._minCoord=null,this.checkForRightmostCoordinate(e)),n}},{key:"findRightmostEdgeAtVertex",value:function(){var e=this._minDe.getEdge().getCoordinates();F.isTrue(this._minIndex>0&&this._minIndexthis._minCoord.y&&n.y>this._minCoord.y&&r===ue.CLOCKWISE)&&(i=!0),i&&(this._minIndex=this._minIndex-1)}},{key:"getRightmostSideOfSegment",value:function(e,t){var n=e.getEdge().getCoordinates();if(t<0||t+1>=n.length)return-1;if(n[t].y===n[t+1].y)return-1;var r=K.LEFT;return n[t].ythis._minCoord.x)&&(this._minDe=e,this._minIndex=n,this._minCoord=t[n])}},{key:"findRightmostEdgeAtNode",value:function(){var e=this._minDe.getNode().getEdges();this._minDe=e.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)}},{key:"findEdge",value:function(e){for(var t=e.iterator();t.hasNext();){var n=t.next();n.isForward()&&this.checkForRightmostCoordinate(n)}F.isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===K.LEFT&&(this._orientedDe=this._minDe.getSym())}}],[{key:"constructor_",value:function(){this._minIndex=-1,this._minCoord=null,this._minDe=null,this._orientedDe=null}}]),de=function(e){function r(e,i){var o;return n(this,r),(o=t(this,r,[i?e+" [ "+i+" ]":e])).pt=i?new V(i):void 0,o.name=Object.keys({TopologyException:r})[0],o}return c(r,e),o(r,[{key:"getCoordinate",value:function(){return this.pt}}])}(B),fe=o((function e(){n(this,e),this.array=[]}),[{key:"addLast",value:function(e){this.array.push(e)}},{key:"removeFirst",value:function(){return this.array.shift()}},{key:"isEmpty",value:function(){return 0===this.array.length}}]),pe=function(e){function r(e){var i;return n(this,r),(i=t(this,r)).array=[],e instanceof Y&&i.addAll(e),i}return c(r,e),o(r,[{key:"interfaces_",get:function(){return[te,Y]}},{key:"ensureCapacity",value:function(){}},{key:"add",value:function(e){return 1===arguments.length?this.array.push(e):this.array.splice(arguments[0],0,arguments[1]),!0}},{key:"clear",value:function(){this.array=[]}},{key:"addAll",value:function(e){var t,n=a(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.array.push(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"set",value:function(e,t){var n=this.array[e];return this.array[e]=t,n}},{key:"iterator",value:function(){return new me(this)}},{key:"get",value:function(e){if(e<0||e>=this.size())throw new ee;return this.array[e]}},{key:"isEmpty",value:function(){return 0===this.array.length}},{key:"sort",value:function(e){e?this.array.sort((function(t,n){return e.compare(t,n)})):this.array.sort()}},{key:"size",value:function(){return this.array.length}},{key:"toArray",value:function(){return this.array.slice()}},{key:"remove",value:function(e){for(var t=0,n=this.array.length;t=1&&t.getDepth(K.LEFT)<=0&&!t.isInteriorAreaEdge()&&t.setInResult(!0)}}},{key:"computeDepths",value:function(e){var t=new J,n=new fe,r=e.getNode();for(n.addLast(r),t.add(r),e.setVisited(!0);!n.isEmpty();){var i=n.removeFirst();t.add(i),this.computeNodeDepth(i);for(var o=i.getEdges().iterator();o.hasNext();){var a=o.next().getSym();if(!a.isVisited()){var s=a.getNode();t.contains(s)||(n.addLast(s),t.add(s))}}}}},{key:"compareTo",value:function(e){var t=e;return this._rightMostCoord.xt._rightMostCoord.x?1:0}},{key:"getEnvelope",value:function(){if(null===this._env){for(var e=new H,t=this._dirEdgeList.iterator();t.hasNext();)for(var n=t.next().getEdge().getCoordinates(),r=0;rt.x?e.x:t.x,s=e.y>t.y?e.y:t.y,l=n.xr.x?n.x:r.x,h=n.y>r.y?n.y:r.y,d=((i>l?i:l)+(ac?o:c)+(sn?n:e}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var r=arguments[0],i=arguments[1],o=arguments[2];return ro?o:r}}},{key:"wrap",value:function(e,t){return e<0?t- -e%t:e%t}},{key:"max",value:function(){if(3===arguments.length){var e=arguments[1],t=arguments[2],n=arguments[0];return e>n&&(n=e),t>n&&(n=t),n}if(4===arguments.length){var r=arguments[1],i=arguments[2],o=arguments[3],a=arguments[0];return r>a&&(a=r),i>a&&(a=i),o>a&&(a=o),a}}},{key:"average",value:function(e,t){return(e+t)/2}}])}();be.LOG_10=Math.log(10);var Ae=function(){function e(){n(this,e)}return o(e,null,[{key:"segmentToSegment",value:function(t,n,r,i){if(t.equals(n))return e.pointToSegment(t,r,i);if(r.equals(i))return e.pointToSegment(i,t,n);var o=!1;if(H.intersects(t,n,r,i)){var a=(n.x-t.x)*(i.y-r.y)-(n.y-t.y)*(i.x-r.x);if(0===a)o=!0;else{var s=(t.y-r.y)*(i.x-r.x)-(t.x-r.x)*(i.y-r.y),l=((t.y-r.y)*(n.x-t.x)-(t.x-r.x)*(n.y-t.y))/a,c=s/a;(c<0||c>1||l<0||l>1)&&(o=!0)}}else o=!0;return o?be.min(e.pointToSegment(t,r,i),e.pointToSegment(n,r,i),e.pointToSegment(r,t,n),e.pointToSegment(i,t,n)):0}},{key:"pointToSegment",value:function(e,t,n){if(t.x===n.x&&t.y===n.y)return e.distance(t);var r=(n.x-t.x)*(n.x-t.x)+(n.y-t.y)*(n.y-t.y),i=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/r;if(i<=0)return e.distance(t);if(i>=1)return e.distance(n);var o=((t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y))/r;return Math.abs(o)*Math.sqrt(r)}},{key:"pointToLinePerpendicular",value:function(e,t,n){var r=(n.x-t.x)*(n.x-t.x)+(n.y-t.y)*(n.y-t.y),i=((t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y))/r;return Math.abs(i)*Math.sqrt(r)}},{key:"pointToSegmentString",value:function(t,n){if(0===n.length)throw new b("Line array must contain at least one vertex");for(var r=t.distance(n[0]),i=0;i0)&&(o=s,i=a)}return i}}},{key:"extend",value:function(t,n,r){var i=t.create(r,n.getDimension()),o=n.size();if(e.copy(n,0,i,0,o),o>0)for(var a=o;a0)&&(t=r)}return t}}])}(),ke=function(){function e(){n(this,e)}return o(e,null,[{key:"toDimensionSymbol",value:function(t){switch(t){case e.FALSE:return e.SYM_FALSE;case e.TRUE:return e.SYM_TRUE;case e.DONTCARE:return e.SYM_DONTCARE;case e.P:return e.SYM_P;case e.L:return e.SYM_L;case e.A:return e.SYM_A}throw new b("Unknown dimension value: "+t)}},{key:"toDimensionValue",value:function(t){switch(ae.toUpperCase(t)){case e.SYM_FALSE:return e.FALSE;case e.SYM_TRUE:return e.TRUE;case e.SYM_DONTCARE:return e.DONTCARE;case e.SYM_P:return e.P;case e.SYM_L:return e.L;case e.SYM_A:return e.A}throw new b("Unknown dimension symbol: "+t)}}])}();ke.P=0,ke.L=1,ke.A=2,ke.FALSE=-1,ke.TRUE=-2,ke.DONTCARE=-3,ke.SYM_FALSE="F",ke.SYM_TRUE="T",ke.SYM_DONTCARE="*",ke.SYM_P="0",ke.SYM_L="1",ke.SYM_A="2";var Te=o((function e(){n(this,e)}),[{key:"filter",value:function(e){}}]),Ie=o((function e(){n(this,e)}),[{key:"filter",value:function(e,t){}},{key:"isDone",value:function(){}},{key:"isGeometryChanged",value:function(){}}]),Oe=function(e){function r(){var e;return n(this,r),e=t(this,r),r.constructor_.apply(e,arguments),e}return c(r,e),o(r,[{key:"computeEnvelopeInternal",value:function(){return this.isEmpty()?new H:this._points.expandEnvelope(new H)}},{key:"isRing",value:function(){return this.isClosed()&&this.isSimple()}},{key:"getCoordinates",value:function(){return this._points.toCoordinateArray()}},{key:"copyInternal",value:function(){return new r(this._points.copy(),this._factory)}},{key:"equalsExact",value:function(){if(2===arguments.length&&"number"==typeof arguments[1]&&arguments[0]instanceof q){var e=arguments[0],t=arguments[1];if(!this.isEquivalentClass(e))return!1;var n=e;if(this._points.size()!==n._points.size())return!1;for(var i=0;i0){var n=this._points.copy();Ee.reverse(n),this._points=n}return null}}}},{key:"getCoordinate",value:function(){return this.isEmpty()?null:this._points.getCoordinate(0)}},{key:"getBoundaryDimension",value:function(){return this.isClosed()?ke.FALSE:0}},{key:"isClosed",value:function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))}},{key:"reverseInternal",value:function(){var e=this._points.copy();return Ee.reverse(e),this.getFactory().createLineString(e)}},{key:"getEndPoint",value:function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)}},{key:"getTypeCode",value:function(){return q.TYPECODE_LINESTRING}},{key:"getDimension",value:function(){return 1}},{key:"getLength",value:function(){return Ce.ofLine(this._points)}},{key:"getNumPoints",value:function(){return this._points.size()}},{key:"compareToSameClass",value:function(){if(1===arguments.length){for(var e=arguments[0],t=0,n=0;t= 2)");this._points=e}},{key:"isCoordinate",value:function(e){for(var t=0;t=1&&this.getCoordinateSequence().size()= 4)")}},{key:"getGeometryType",value:function(){return q.TYPENAME_LINEARRING}}],[{key:"constructor_",value:function(){var e=arguments[0],t=arguments[1];Oe.constructor_.call(this,e,t),this.validateConstruction()}}])}(Oe);Ve.MINIMUM_VALID_SIZE=4;var Ue=function(e){function r(){var e;return n(this,r),e=t(this,r),r.constructor_.apply(e,arguments),e}return c(r,e),o(r,[{key:"setOrdinate",value:function(e,t){switch(e){case r.X:this.x=t;break;case r.Y:this.y=t;break;default:throw new b("Invalid ordinate index: "+e)}}},{key:"getZ",value:function(){return V.NULL_ORDINATE}},{key:"getOrdinate",value:function(e){switch(e){case r.X:return this.x;case r.Y:return this.y}throw new b("Invalid ordinate index: "+e)}},{key:"setZ",value:function(e){throw new b("CoordinateXY dimension 2 does not support z-ordinate")}},{key:"copy",value:function(){return new r(this)}},{key:"toString",value:function(){return"("+this.x+", "+this.y+")"}},{key:"setCoordinate",value:function(e){this.x=e.x,this.y=e.y,this.z=e.getZ()}}],[{key:"constructor_",value:function(){if(0===arguments.length)V.constructor_.call(this);else if(1===arguments.length){if(arguments[0]instanceof r){var e=arguments[0];V.constructor_.call(this,e.x,e.y)}else if(arguments[0]instanceof V){var t=arguments[0];V.constructor_.call(this,t.x,t.y)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];V.constructor_.call(this,n,i,V.NULL_ORDINATE)}}}])}(V);Ue.X=0,Ue.Y=1,Ue.Z=-1,Ue.M=-1;var He=function(e){function r(){var e;return n(this,r),e=t(this,r),r.constructor_.apply(e,arguments),e}return c(r,e),o(r,[{key:"getM",value:function(){return this._m}},{key:"setOrdinate",value:function(e,t){switch(e){case r.X:this.x=t;break;case r.Y:this.y=t;break;case r.M:this._m=t;break;default:throw new b("Invalid ordinate index: "+e)}}},{key:"setM",value:function(e){this._m=e}},{key:"getZ",value:function(){return V.NULL_ORDINATE}},{key:"getOrdinate",value:function(e){switch(e){case r.X:return this.x;case r.Y:return this.y;case r.M:return this._m}throw new b("Invalid ordinate index: "+e)}},{key:"setZ",value:function(e){throw new b("CoordinateXY dimension 2 does not support z-ordinate")}},{key:"copy",value:function(){return new r(this)}},{key:"toString",value:function(){return"("+this.x+", "+this.y+" m="+this.getM()+")"}},{key:"setCoordinate",value:function(e){this.x=e.x,this.y=e.y,this.z=e.getZ(),this._m=e.getM()}}],[{key:"constructor_",value:function(){if(this._m=null,0===arguments.length)V.constructor_.call(this),this._m=0;else if(1===arguments.length){if(arguments[0]instanceof r){var e=arguments[0];V.constructor_.call(this,e.x,e.y),this._m=e._m}else if(arguments[0]instanceof V){var t=arguments[0];V.constructor_.call(this,t.x,t.y),this._m=this.getM()}}else if(3===arguments.length){var n=arguments[0],i=arguments[1],o=arguments[2];V.constructor_.call(this,n,i,V.NULL_ORDINATE),this._m=o}}}])}(V);He.X=0,He.Y=1,He.Z=-1,He.M=2;var qe=function(e){function r(){var e;return n(this,r),e=t(this,r),r.constructor_.apply(e,arguments),e}return c(r,e),o(r,[{key:"getM",value:function(){return this._m}},{key:"setOrdinate",value:function(e,t){switch(e){case V.X:this.x=t;break;case V.Y:this.y=t;break;case V.Z:this.z=t;break;case V.M:this._m=t;break;default:throw new b("Invalid ordinate index: "+e)}}},{key:"setM",value:function(e){this._m=e}},{key:"getOrdinate",value:function(e){switch(e){case V.X:return this.x;case V.Y:return this.y;case V.Z:return this.getZ();case V.M:return this.getM()}throw new b("Invalid ordinate index: "+e)}},{key:"copy",value:function(){return new r(this)}},{key:"toString",value:function(){return"("+this.x+", "+this.y+", "+this.getZ()+" m="+this.getM()+")"}},{key:"setCoordinate",value:function(e){this.x=e.x,this.y=e.y,this.z=e.getZ(),this._m=e.getM()}}],[{key:"constructor_",value:function(){if(this._m=null,0===arguments.length)V.constructor_.call(this),this._m=0;else if(1===arguments.length){if(arguments[0]instanceof r){var e=arguments[0];V.constructor_.call(this,e),this._m=e._m}else if(arguments[0]instanceof V){var t=arguments[0];V.constructor_.call(this,t),this._m=this.getM()}}else if(4===arguments.length){var n=arguments[0],i=arguments[1],o=arguments[2],a=arguments[3];V.constructor_.call(this,n,i,o),this._m=a}}}])}(V),Ge=function(){function e(){n(this,e)}return o(e,null,[{key:"measures",value:function(e){return e instanceof Ue?0:e instanceof He||e instanceof qe?1:0}},{key:"dimension",value:function(e){return e instanceof Ue?2:e instanceof He?3:e instanceof qe?4:3}},{key:"create",value:function(){if(1===arguments.length){var t=arguments[0];return e.create(t,0)}if(2===arguments.length){var n=arguments[0],r=arguments[1];return 2===n?new Ue:3===n&&0===r?new V:3===n&&1===r?new He:4===n&&1===r?new qe:new V}}}])}(),Ye=function(e){function r(){var e;return n(this,r),e=t(this,r),r.constructor_.apply(e,arguments),e}return c(r,e),o(r,[{key:"getCoordinate",value:function(e){return this.get(e)}},{key:"addAll",value:function(){if(2===arguments.length&&"boolean"==typeof arguments[1]&&re(arguments[0],Y)){for(var e=arguments[1],t=!1,n=arguments[0].iterator();n.hasNext();)this.add(n.next(),e),t=!0;return t}return d(r,"addAll",this,1).apply(this,arguments)}},{key:"clone",value:function(){for(var e=d(r,"clone",this,1).call(this),t=0;t=1&&this.get(this.size()-1).equals2D(i))return null;d(r,"add",this,1).call(this,i)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var o=arguments[0],a=arguments[1];return this.add(o,a),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var s=arguments[0],l=arguments[1];if(arguments[2])for(var c=0;c=0;u--)this.add(s[u],l);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof V){var h=arguments[0],f=arguments[1];if(!arguments[2]){var p=this.size();if(p>0){if(h>0&&this.get(h-1).equals2D(f))return null;if(hv&&(b=-1);for(var A=y;A!==v;A+=b)this.add(m[A],g);return!0}}},{key:"closeRing",value:function(){if(this.size()>0){var e=this.get(0).copy();this.add(e,!1)}}}],[{key:"constructor_",value:function(){if(0===arguments.length);else if(1===arguments.length){var e=arguments[0];this.ensureCapacity(e.length),this.add(e,!0)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this.ensureCapacity(t.length),this.add(t,n)}}}])}(pe);Ye.coordArrayType=new Array(0).fill(null);var We=function(){function e(){n(this,e)}return o(e,null,[{key:"isRing",value:function(e){return!(e.length<4||!e[0].equals2D(e[e.length-1]))}},{key:"ptNotInList",value:function(t,n){for(var r=0;r=e?t:[]}},{key:"indexOf",value:function(e,t){for(var n=0;n0)&&(t=e[n]);return t}},{key:"extract",value:function(e,t,n){t=be.clamp(t,0,e.length);var r=(n=be.clamp(n,-1,e.length))-t+1;n<0&&(r=0),t>=e.length&&(r=0),nr.length)return 1;if(0===n.length)return 0;var i=We.compare(n,r);return We.isEqualReversed(n,r)?0:i}},{key:"OLDcompare",value:function(e,t){var n=e,r=t;if(n.lengthr.length)return 1;if(0===n.length)return 0;for(var i=We.increasingDirection(n),o=We.increasingDirection(r),a=i>0?0:n.length-1,s=o>0?0:n.length-1,l=0;l0){var e=new Je(17*this._coordinates.length);e.append("("),e.append(this._coordinates[0]);for(var t=1;t3&&(e=3),e<2&&(e=2),new Ze(arguments[0],e)}if(3===arguments.length){var t=arguments[2],n=arguments[1]-t;return t>1&&(t=1),n>3&&(n=3),n<2&&(n=2),new Ze(arguments[0],n+t,t)}}}},{key:"interfaces_",get:function(){return[xe,C]}}],[{key:"instance",value:function(){return e.instanceObject}}])}();Ke.instanceObject=new Ke;var $e=function(e){function r(){var e;return n(this,r),e=t(this,r),r.constructor_.apply(e,arguments),e}return c(r,e),o(r,[{key:"copyInternal",value:function(){for(var e=new Array(this._geometries.length).fill(null),t=0;t=0?e:t}}])}(),rt=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"readResolve",value:function(){return e.nameToTypeMap.get(this._name)}},{key:"toString",value:function(){return this._name}},{key:"interfaces_",get:function(){return[C]}}],[{key:"constructor_",value:function(){this._name=null;var t=arguments[0];this._name=t,e.nameToTypeMap.put(t,this)}}])}();rt.nameToTypeMap=new tt,nt.Type=rt,nt.FIXED=new rt("FIXED"),nt.FLOATING=new rt("FLOATING"),nt.FLOATING_SINGLE=new rt("FLOATING SINGLE"),nt.maximumPreciseValue=9007199254740992;var it=function(e){function r(){var e;return n(this,r),e=t(this,r),r.constructor_.apply(e,arguments),e}return c(r,e),o(r,[{key:"copyInternal",value:function(){for(var e=new Array(this._geometries.length).fill(null),t=0;t1){if(l instanceof Be)return this.createMultiPolygon(e.toPolygonArray(t));if(l instanceof Oe)return this.createMultiLineString(e.toLineStringArray(t));if(l instanceof Me)return this.createMultiPoint(e.toPointArray(t));F.shouldNeverReachHere("Unhandled geometry type: "+l.getGeometryType())}return l}},{key:"createMultiPointFromCoords",value:function(e){return this.createMultiPoint(null!==e?this.getCoordinateSequenceFactory().create(e):null)}},{key:"createPoint",value:function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof V){var e=arguments[0];return this.createPoint(null!==e?this.getCoordinateSequenceFactory().create([e]):null)}if(re(arguments[0],ce))return new Me(arguments[0],this)}}},{key:"getCoordinateSequenceFactory",value:function(){return this._coordinateSequenceFactory}},{key:"createPolygon",value:function(){if(0===arguments.length)return this.createPolygon(null,null);if(1===arguments.length){if(re(arguments[0],ce)){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof Array){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof Ve){var n=arguments[0];return this.createPolygon(n,null)}}else if(2===arguments.length)return new Be(arguments[0],arguments[1],this)}},{key:"getSRID",value:function(){return this._SRID}},{key:"createGeometryCollection",value:function(){return 0===arguments.length?new _e(null,this):1===arguments.length?new _e(arguments[0],this):void 0}},{key:"getPrecisionModel",value:function(){return this._precisionModel}},{key:"createLinearRing",value:function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var e=arguments[0];return this.createLinearRing(null!==e?this.getCoordinateSequenceFactory().create(e):null)}if(re(arguments[0],ce))return new Ve(arguments[0],this)}}},{key:"createMultiPolygon",value:function(){return 0===arguments.length?new $e(null,this):1===arguments.length?new $e(arguments[0],this):void 0}},{key:"createMultiPoint",value:function(){if(0===arguments.length)return new ze(null,this);if(1===arguments.length){if(arguments[0]instanceof Array)return new ze(arguments[0],this);if(re(arguments[0],ce)){var e=arguments[0];if(null===e)return this.createMultiPoint(new Array(0).fill(null));for(var t=new Array(e.size()).fill(null),n=0;n="a"&&e<="z"||e>="A"&&e<="Z"}},{key:"isNumeric_",value:function(e,t){return e>="0"&&e<="9"||"."==e&&!(void 0!==t&&t)}},{key:"isWhiteSpace_",value:function(e){return" "==e||"\t"==e||"\r"==e||"\n"==e}},{key:"nextChar_",value:function(){return this.wkt.charAt(++this.index_)}},{key:"nextToken",value:function(){var e,t=this.nextChar_(),n=this.index_,r=t;if("("==t)e=2;else if(","==t)e=5;else if(")"==t)e=3;else if(this.isNumeric_(t)||"-"==t)e=4,r=this.readNumber_();else if(this.isAlpha_(t))e=1,r=this.readText_();else{if(this.isWhiteSpace_(t))return this.nextToken();if(""!==t)throw new Error("Unexpected character: "+t);e=6}return{position:n,value:r,type:e}}},{key:"readNumber_",value:function(){var e,t=this.index_,n=!1,r=!1;do{"."==e?n=!0:"e"!=e&&"E"!=e||(r=!0),e=this.nextChar_()}while(this.isNumeric_(e,n)||!r&&("e"==e||"E"==e)||r&&("-"==e||"+"==e));return parseFloat(this.wkt.substring(t,this.index_--))}},{key:"readText_",value:function(){var e,t=this.index_;do{e=this.nextChar_()}while(this.isAlpha_(e));return this.wkt.substring(t,this.index_--).toUpperCase()}}]),ht=o((function e(t,r){n(this,e),this.lexer_=t,this.token_,this.layout_=at,this.factory=r}),[{key:"consume_",value:function(){this.token_=this.lexer_.nextToken()}},{key:"isTokenType",value:function(e){return this.token_.type==e}},{key:"match",value:function(e){var t=this.isTokenType(e);return t&&this.consume_(),t}},{key:"parse",value:function(){return this.consume_(),this.parseGeometry_()}},{key:"parseGeometryLayout_",value:function(){var e=at,t=this.token_;if(this.isTokenType(1)){var n=t.value;"Z"===n?e="XYZ":"M"===n?e="XYM":"ZM"===n&&(e="XYZM"),e!==at&&this.consume_()}return e}},{key:"parseGeometryCollectionText_",value:function(){if(this.match(2)){var e=[];do{e.push(this.parseGeometry_())}while(this.match(5));if(this.match(3))return e}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parsePointText_",value:function(){if(this.match(2)){var e=this.parsePoint_();if(this.match(3))return e}else if(this.isEmptyGeometry_())return null;throw new Error(this.formatErrorMessage_())}},{key:"parseLineStringText_",value:function(){if(this.match(2)){var e=this.parsePointList_();if(this.match(3))return e}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parsePolygonText_",value:function(){if(this.match(2)){var e=this.parseLineStringTextList_();if(this.match(3))return e}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parseMultiPointText_",value:function(){var e;if(this.match(2)){if(e=2==this.token_.type?this.parsePointTextList_():this.parsePointList_(),this.match(3))return e}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parseMultiLineStringText_",value:function(){if(this.match(2)){var e=this.parseLineStringTextList_();if(this.match(3))return e}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parseMultiPolygonText_",value:function(){if(this.match(2)){var e=this.parsePolygonTextList_();if(this.match(3))return e}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parsePoint_",value:function(){for(var e=[],t=this.layout_.length,n=0;n1?e.createPolygon(r[0],r.slice(1)):e.createPolygon(r[0])},i=this.token_;if(this.match(1)){var o=i.value;if(this.layout_=this.parseGeometryLayout_(),"GEOMETRYCOLLECTION"==o){var a=this.parseGeometryCollectionText_();return e.createGeometryCollection(a)}switch(o){case"POINT":var s=this.parsePointText_();return s?e.createPoint(r(V,f(s))):e.createPoint();case"LINESTRING":var l=this.parseLineStringText_().map(t);return e.createLineString(l);case"LINEARRING":var c=this.parseLineStringText_().map(t);return e.createLinearRing(c);case"POLYGON":var u=this.parsePolygonText_();return u&&0!==u.length?n(u):e.createPolygon();case"MULTIPOINT":var h=this.parseMultiPointText_();if(!h||0===h.length)return e.createMultiPoint();var d=h.map(t).map((function(t){return e.createPoint(t)}));return e.createMultiPoint(d);case"MULTILINESTRING":var p=this.parseMultiLineStringText_().map((function(n){return e.createLineString(n.map(t))}));return e.createMultiLineString(p);case"MULTIPOLYGON":var m=this.parseMultiPolygonText_();if(!m||0===m.length)return e.createMultiPolygon();var g=m.map(n);return e.createMultiPolygon(g);default:throw new Error("Invalid geometry type: "+o)}}throw new Error(this.formatErrorMessage_())}}]);function dt(e){if(e.isEmpty())return"";var t=e.getCoordinate(),n=[t.x,t.y];return void 0===t.z||Number.isNaN(t.z)||n.push(t.z),void 0===t.m||Number.isNaN(t.m)||n.push(t.m),n.join(" ")}function ft(e){for(var t=e.getCoordinates().map((function(e){var t=[e.x,e.y];return void 0===e.z||Number.isNaN(e.z)||t.push(e.z),void 0===e.m||Number.isNaN(e.m)||t.push(e.m),t})),n=[],r=0,i=t.length;r0&&(t+=" "+r),e.isEmpty()?t+" "+lt:t+" ("+n(e)+")"}var yt=o((function e(t){n(this,e),this.geometryFactory=t||new ot,this.precisionModel=this.geometryFactory.getPrecisionModel()}),[{key:"read",value:function(e){var t=new ut(e);return new ht(t,this.geometryFactory).parse()}},{key:"write",value:function(e){return gt(e)}}]),vt=o((function e(t){n(this,e),this.parser=new yt(t)}),[{key:"write",value:function(e){return this.parser.write(e)}}],[{key:"toLineString",value:function(e,t){if(2!==arguments.length)throw new Error("Not implemented");return"LINESTRING ( "+e.x+" "+e.y+", "+t.x+" "+t.y+" )"}}]),bt=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"getIndexAlongSegment",value:function(e,t){return this.computeIntLineIndex(),this._intLineIndex[e][t]}},{key:"getTopologySummary",value:function(){var e=new Je;return this.isEndPoint()&&e.append(" endpoint"),this._isProper&&e.append(" proper"),this.isCollinear()&&e.append(" collinear"),e.toString()}},{key:"computeIntersection",value:function(e,t,n,r){this._inputLines[0][0]=e,this._inputLines[0][1]=t,this._inputLines[1][0]=n,this._inputLines[1][1]=r,this._result=this.computeIntersect(e,t,n,r)}},{key:"getIntersectionNum",value:function(){return this._result}},{key:"computeIntLineIndex",value:function(){if(0===arguments.length)null===this._intLineIndex&&(this._intLineIndex=Array(2).fill().map((function(){return Array(2)})),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(1===arguments.length){var e=arguments[0];this.getEdgeDistance(e,0)>this.getEdgeDistance(e,1)?(this._intLineIndex[e][0]=0,this._intLineIndex[e][1]=1):(this._intLineIndex[e][0]=1,this._intLineIndex[e][1]=0)}}},{key:"isProper",value:function(){return this.hasIntersection()&&this._isProper}},{key:"setPrecisionModel",value:function(e){this._precisionModel=e}},{key:"isInteriorIntersection",value:function(){if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var e=arguments[0],t=0;ti?r:i;else{var a=Math.abs(e.x-t.x),s=Math.abs(e.y-t.y);0!==(o=r>i?a:s)||e.equals(t)||(o=Math.max(a,s))}return F.isTrue(!(0===o&&!e.equals(t)),"Bad distance calculation"),o}},{key:"nonRobustComputeEdgeDistance",value:function(e,t,n){var r=e.x-t.x,i=e.y-t.y,o=Math.sqrt(r*r+i*i);return F.isTrue(!(0===o&&!e.equals(t)),"Invalid distance calculation"),o}}])}();bt.DONT_INTERSECT=0,bt.DO_INTERSECT=1,bt.COLLINEAR=2,bt.NO_INTERSECTION=0,bt.POINT_INTERSECTION=1,bt.COLLINEAR_INTERSECTION=2;var At=function(e){function r(){return n(this,r),t(this,r)}return c(r,e),o(r,[{key:"isInSegmentEnvelopes",value:function(e){var t=new H(this._inputLines[0][0],this._inputLines[0][1]),n=new H(this._inputLines[1][0],this._inputLines[1][1]);return t.contains(e)&&n.contains(e)}},{key:"computeIntersection",value:function(){if(3!==arguments.length)return d(r,"computeIntersection",this,1).apply(this,arguments);var e=arguments[0],t=arguments[1],n=arguments[2];if(this._isProper=!1,H.intersects(t,n,e)&&0===ue.index(t,n,e)&&0===ue.index(n,t,e))return this._isProper=!0,(e.equals(t)||e.equals(n))&&(this._isProper=!1),this._result=bt.POINT_INTERSECTION,null;this._result=bt.NO_INTERSECTION}},{key:"intersection",value:function(e,t,n,i){var o=this.intersectionSafe(e,t,n,i);return this.isInSegmentEnvelopes(o)||(o=new V(r.nearestEndpoint(e,t,n,i))),null!==this._precisionModel&&this._precisionModel.makePrecise(o),o}},{key:"checkDD",value:function(e,t,n,r,i){var o=le.intersection(e,t,n,r),a=this.isInSegmentEnvelopes(o);ve.out.println("DD in env = "+a+" --------------------- "+o),i.distance(o)>1e-4&&ve.out.println("Distance = "+i.distance(o))}},{key:"intersectionSafe",value:function(e,t,n,i){var o=ye.intersection(e,t,n,i);return null===o&&(o=r.nearestEndpoint(e,t,n,i)),o}},{key:"computeCollinearIntersection",value:function(e,t,n,r){var i=H.intersects(e,t,n),o=H.intersects(e,t,r),a=H.intersects(n,r,e),s=H.intersects(n,r,t);return i&&o?(this._intPt[0]=n,this._intPt[1]=r,bt.COLLINEAR_INTERSECTION):a&&s?(this._intPt[0]=e,this._intPt[1]=t,bt.COLLINEAR_INTERSECTION):i&&a?(this._intPt[0]=n,this._intPt[1]=e,!n.equals(e)||o||s?bt.COLLINEAR_INTERSECTION:bt.POINT_INTERSECTION):i&&s?(this._intPt[0]=n,this._intPt[1]=t,!n.equals(t)||o||a?bt.COLLINEAR_INTERSECTION:bt.POINT_INTERSECTION):o&&a?(this._intPt[0]=r,this._intPt[1]=e,!r.equals(e)||i||s?bt.COLLINEAR_INTERSECTION:bt.POINT_INTERSECTION):o&&s?(this._intPt[0]=r,this._intPt[1]=t,!r.equals(t)||i||a?bt.COLLINEAR_INTERSECTION:bt.POINT_INTERSECTION):bt.NO_INTERSECTION}},{key:"computeIntersect",value:function(e,t,n,r){if(this._isProper=!1,!H.intersects(e,t,n,r))return bt.NO_INTERSECTION;var i=ue.index(e,t,n),o=ue.index(e,t,r);if(i>0&&o>0||i<0&&o<0)return bt.NO_INTERSECTION;var a=ue.index(n,r,e),s=ue.index(n,r,t);return a>0&&s>0||a<0&&s<0?bt.NO_INTERSECTION:0===i&&0===o&&0===a&&0===s?this.computeCollinearIntersection(e,t,n,r):(0===i||0===o||0===a||0===s?(this._isProper=!1,e.equals2D(n)||e.equals2D(r)?this._intPt[0]=e:t.equals2D(n)||t.equals2D(r)?this._intPt[0]=t:0===i?this._intPt[0]=new V(n):0===o?this._intPt[0]=new V(r):0===a?this._intPt[0]=new V(e):0===s&&(this._intPt[0]=new V(t))):(this._isProper=!0,this._intPt[0]=this.intersection(e,t,n,r)),bt.POINT_INTERSECTION)}}],[{key:"nearestEndpoint",value:function(e,t,n,r){var i=e,o=Ae.pointToSegment(e,n,r),a=Ae.pointToSegment(t,n,r);return ar&&(n=t.x,r=e.x),this._p.x>=n&&this._p.x<=r&&(this._isPointOnSegment=!0),null}if(e.y>this._p.y&&t.y<=this._p.y||t.y>this._p.y&&e.y<=this._p.y){var i=ue.index(e,t,this._p);if(i===ue.COLLINEAR)return this._isPointOnSegment=!0,null;t.ythis.location.length){var t=new Array(3).fill(null);t[K.ON]=this.location[K.ON],t[K.LEFT]=G.NONE,t[K.RIGHT]=G.NONE,this.location=t}for(var n=0;n1&&e.append(G.toLocationSymbol(this.location[K.LEFT])),e.append(G.toLocationSymbol(this.location[K.ON])),this.location.length>1&&e.append(G.toLocationSymbol(this.location[K.RIGHT])),e.toString()}},{key:"setLocations",value:function(e,t,n){this.location[K.ON]=e,this.location[K.LEFT]=t,this.location[K.RIGHT]=n}},{key:"get",value:function(e){return e1}},{key:"isAnyNull",value:function(){for(var e=0;ethis._maxNodeDegree&&(this._maxNodeDegree=t),e=this.getNext(e)}while(e!==this._startDe);this._maxNodeDegree*=2}},{key:"addPoints",value:function(e,t,n){var r=e.getCoordinates();if(t){var i=1;n&&(i=0);for(var o=i;o=0;s--)this._pts.add(r[s])}}},{key:"isHole",value:function(){return this._isHole}},{key:"setInResult",value:function(){var e=this._startDe;do{e.getEdge().setInResult(!0),e=e.getNext()}while(e!==this._startDe)}},{key:"containsPoint",value:function(e){var t=this.getLinearRing();if(!t.getEnvelopeInternal().contains(e))return!1;if(!wt.isInRing(e,t.getCoordinates()))return!1;for(var n=this._holes.iterator();n.hasNext();)if(n.next().containsPoint(e))return!1;return!0}},{key:"addHole",value:function(e){this._holes.add(e)}},{key:"isShell",value:function(){return null===this._shell}},{key:"getLabel",value:function(){return this._label}},{key:"getEdges",value:function(){return this._edges}},{key:"getMaxNodeDegree",value:function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree}},{key:"getShell",value:function(){return this._shell}},{key:"mergeLabel",value:function(){if(1===arguments.length){var e=arguments[0];this.mergeLabel(e,0),this.mergeLabel(e,1)}else if(2===arguments.length){var t=arguments[1],n=arguments[0].getLocation(t,K.RIGHT);if(n===G.NONE)return null;if(this._label.getLocation(t)===G.NONE)return this._label.setLocation(t,n),null}}},{key:"setShell",value:function(e){this._shell=e,null!==e&&e.addHole(this)}},{key:"toPolygon",value:function(e){for(var t=new Array(this._holes.size()).fill(null),n=0;n=2,"found partial label"),this.computeIM(e)}},{key:"isInResult",value:function(){return this._isInResult}},{key:"isVisited",value:function(){return this._isVisited}}],[{key:"constructor_",value:function(){if(this._label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this._label=e}}}]),Ot=function(e){function r(){var e;return n(this,r),e=t(this,r),r.constructor_.apply(e,arguments),e}return c(r,e),o(r,[{key:"isIncidentEdgeInResult",value:function(){for(var e=this.getEdges().getEdges().iterator();e.hasNext();)if(e.next().getEdge().isInResult())return!0;return!1}},{key:"isIsolated",value:function(){return 1===this._label.getGeometryCount()}},{key:"getCoordinate",value:function(){return this._coord}},{key:"print",value:function(e){e.println("node "+this._coord+" lbl: "+this._label)}},{key:"computeIM",value:function(e){}},{key:"computeMergedLocation",value:function(e,t){var n=G.NONE;if(n=this._label.getLocation(t),!e.isNull(t)){var r=e.getLocation(t);n!==G.BOUNDARY&&(n=r)}return n}},{key:"setLabel",value:function(){if(2!==arguments.length||!Number.isInteger(arguments[1])||!Number.isInteger(arguments[0]))return d(r,"setLabel",this,1).apply(this,arguments);var e=arguments[0],t=arguments[1];null===this._label?this._label=new St(e,t):this._label.setLocation(e,t)}},{key:"getEdges",value:function(){return this._edges}},{key:"mergeLabel",value:function(){if(arguments[0]instanceof r){var e=arguments[0];this.mergeLabel(e._label)}else if(arguments[0]instanceof St)for(var t=arguments[0],n=0;n<2;n++){var i=this.computeMergedLocation(t,n);this._label.getLocation(n)===G.NONE&&this._label.setLocation(n,i)}}},{key:"add",value:function(e){this._edges.insert(e),e.setNode(this)}},{key:"setLabelBoundary",value:function(e){if(null===this._label)return null;var t=G.NONE;null!==this._label&&(t=this._label.getLocation(e));var n=null;switch(t){case G.BOUNDARY:n=G.INTERIOR;break;case G.INTERIOR:default:n=G.BOUNDARY}this._label.setLocation(e,n)}}],[{key:"constructor_",value:function(){this._coord=null,this._edges=null;var e=arguments[0],t=arguments[1];this._coord=e,this._edges=t,this._label=new St(0,G.NONE)}}])}(It),Rt=function(e){function r(){return n(this,r),t(this,r,arguments)}return c(r,e),o(r)}(et);function Mt(e){return null==e?0:e.color}function Pt(e){return null==e?null:e.parent}function Dt(e,t){null!==e&&(e.color=t)}function jt(e){return null==e?null:e.left}function Bt(e){return null==e?null:e.right}var Lt=function(e){function r(){var e;return n(this,r),(e=t(this,r)).root_=null,e.size_=0,e}return c(r,e),o(r,[{key:"get",value:function(e){for(var t=this.root_;null!==t;){var n=e.compareTo(t.key);if(n<0)t=t.left;else{if(!(n>0))return t.value;t=t.right}}return null}},{key:"put",value:function(e,t){if(null===this.root_)return this.root_={key:e,value:t,left:null,right:null,parent:null,color:0,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var n,r,i=this.root_;do{if(n=i,(r=e.compareTo(i.key))<0)i=i.left;else{if(!(r>0)){var o=i.value;return i.value=t,o}i=i.right}}while(null!==i);var a={key:e,left:null,right:null,value:t,parent:n,color:0,getValue:function(){return this.value},getKey:function(){return this.key}};return r<0?n.left=a:n.right=a,this.fixAfterInsertion(a),this.size_++,null}},{key:"fixAfterInsertion",value:function(e){var t;for(e.color=1;null!=e&&e!==this.root_&&1===e.parent.color;)Pt(e)===jt(Pt(Pt(e)))?1===Mt(t=Bt(Pt(Pt(e))))?(Dt(Pt(e),0),Dt(t,0),Dt(Pt(Pt(e)),1),e=Pt(Pt(e))):(e===Bt(Pt(e))&&(e=Pt(e),this.rotateLeft(e)),Dt(Pt(e),0),Dt(Pt(Pt(e)),1),this.rotateRight(Pt(Pt(e)))):1===Mt(t=jt(Pt(Pt(e))))?(Dt(Pt(e),0),Dt(t,0),Dt(Pt(Pt(e)),1),e=Pt(Pt(e))):(e===jt(Pt(e))&&(e=Pt(e),this.rotateRight(e)),Dt(Pt(e),0),Dt(Pt(Pt(e)),1),this.rotateLeft(Pt(Pt(e))));this.root_.color=0}},{key:"values",value:function(){var e=new pe,t=this.getFirstEntry();if(null!==t)for(e.add(t.value);null!==(t=r.successor(t));)e.add(t.value);return e}},{key:"entrySet",value:function(){var e=new J,t=this.getFirstEntry();if(null!==t)for(e.add(t);null!==(t=r.successor(t));)e.add(t);return e}},{key:"rotateLeft",value:function(e){if(null!=e){var t=e.right;e.right=t.left,null!=t.left&&(t.left.parent=e),t.parent=e.parent,null==e.parent?this.root_=t:e.parent.left===e?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t}}},{key:"rotateRight",value:function(e){if(null!=e){var t=e.left;e.left=t.right,null!=t.right&&(t.right.parent=e),t.parent=e.parent,null==e.parent?this.root_=t:e.parent.right===e?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t}}},{key:"getFirstEntry",value:function(){var e=this.root_;if(null!=e)for(;null!=e.left;)e=e.left;return e}},{key:"size",value:function(){return this.size_}},{key:"containsKey",value:function(e){for(var t=this.root_;null!==t;){var n=e.compareTo(t.key);if(n<0)t=t.left;else{if(!(n>0))return!0;t=t.right}}return!1}}],[{key:"successor",value:function(e){var t;if(null===e)return null;if(null!==e.right){for(t=e.right;null!==t.left;)t=t.left;return t}t=e.parent;for(var n=e;null!==t&&n===t.right;)n=t,t=t.parent;return t}}])}(Rt),Ft=o((function e(){n(this,e),e.constructor_.apply(this,arguments)}),[{key:"find",value:function(e){return this.nodeMap.get(e)}},{key:"addNode",value:function(){if(arguments[0]instanceof V){var e=arguments[0],t=this.nodeMap.get(e);return null===t&&(t=this.nodeFact.createNode(e),this.nodeMap.put(e,t)),t}if(arguments[0]instanceof Ot){var n=arguments[0],r=this.nodeMap.get(n.getCoordinate());return null===r?(this.nodeMap.put(n.getCoordinate(),n),n):(r.mergeLabel(n),r)}}},{key:"print",value:function(e){for(var t=this.iterator();t.hasNext();)t.next().print(e)}},{key:"iterator",value:function(){return this.nodeMap.values().iterator()}},{key:"values",value:function(){return this.nodeMap.values()}},{key:"getBoundaryNodes",value:function(e){for(var t=new pe,n=this.iterator();n.hasNext();){var r=n.next();r.getLabel().getLocation(e)===G.BOUNDARY&&t.add(r)}return t}},{key:"add",value:function(e){var t=e.getCoordinate();this.addNode(t).add(e)}}],[{key:"constructor_",value:function(){this.nodeMap=new Lt,this.nodeFact=null;var e=arguments[0];this.nodeFact=e}}]),Nt=function(){function e(){n(this,e)}return o(e,null,[{key:"isNorthern",value:function(t){return t===e.NE||t===e.NW}},{key:"isOpposite",value:function(e,t){return e!==t&&2==(e-t+4)%4}},{key:"commonHalfPlane",value:function(e,t){if(e===t)return e;if(2==(e-t+4)%4)return-1;var n=et?e:t)?3:n}},{key:"isInHalfPlane",value:function(t,n){return n===e.SE?t===e.SE||t===e.SW:t===n||t===n+1}},{key:"quadrant",value:function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],n=arguments[1];if(0===t&&0===n)throw new b("Cannot compute the quadrant for point ( "+t+", "+n+" )");return t>=0?n>=0?e.NE:e.SE:n>=0?e.NW:e.SW}if(arguments[0]instanceof V&&arguments[1]instanceof V){var r=arguments[0],i=arguments[1];if(i.x===r.x&&i.y===r.y)throw new b("Cannot compute the quadrant for two identical points "+r);return i.x>=r.x?i.y>=r.y?e.NE:e.SE:i.y>=r.y?e.NW:e.SW}}}])}();Nt.NE=0,Nt.NW=1,Nt.SW=2,Nt.SE=3;var _t=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"compareDirection",value:function(e){return this._dx===e._dx&&this._dy===e._dy?0:this._quadrant>e._quadrant?1:this._quadrant2){o.linkDirectedEdgesForMinimalEdgeRings();var a=o.buildMinimalRings(),s=this.findShell(a);null!==s?(this.placePolygonHoles(s,a),t.add(s)):n.addAll(a)}else r.add(o)}return r}},{key:"buildMaximalEdgeRings",value:function(e){for(var t=new pe,n=e.iterator();n.hasNext();){var r=n.next();if(r.isInResult()&&r.getLabel().isArea()&&null===r.getEdgeRing()){var i=new Tt(r,this._geometryFactory);t.add(i),i.setInResult()}}return t}},{key:"placePolygonHoles",value:function(e,t){for(var n=t.iterator();n.hasNext();){var r=n.next();r.isHole()&&r.setShell(e)}}},{key:"getPolygons",value:function(){return this.computePolygons(this._shellList)}},{key:"findShell",value:function(e){for(var t=0,n=null,r=e.iterator();r.hasNext();){var i=r.next();i.isHole()||(n=i,t++)}return F.isTrue(t<=1,"found two shells in MinimalEdgeRing list"),n}},{key:"add",value:function(){if(1===arguments.length){var e=arguments[0];this.add(e.getEdgeEnds(),e.getNodes())}else if(2===arguments.length){var t=arguments[0],n=arguments[1];Ut.linkResultDirectedEdges(n);var r=this.buildMaximalEdgeRings(t),i=new pe,o=this.buildMinimalEdgeRings(r,this._shellList,i);this.sortShellsAndHoles(o,this._shellList,i),this.placeFreeHoles(this._shellList,i)}}}],[{key:"constructor_",value:function(){this._geometryFactory=null,this._shellList=new pe;var e=arguments[0];this._geometryFactory=e}},{key:"findEdgeRingContaining",value:function(e,t){for(var n=e.getLinearRing(),r=n.getEnvelopeInternal(),i=n.getCoordinateN(0),o=null,a=null,s=t.iterator();s.hasNext();){var l=s.next(),c=l.getLinearRing(),u=c.getEnvelopeInternal();if(!u.equals(r)&&u.contains(r)){i=We.ptNotInList(n.getCoordinates(),c.getCoordinates());var h=!1;wt.isInRing(i,c.getCoordinates())&&(h=!0),h&&(null===o||a.contains(u))&&(a=(o=l).getLinearRing().getEnvelopeInternal())}}return o}}])}(),qt=o((function e(){n(this,e)}),[{key:"getBounds",value:function(){}}]),Gt=o((function e(){n(this,e),e.constructor_.apply(this,arguments)}),[{key:"getItem",value:function(){return this._item}},{key:"getBounds",value:function(){return this._bounds}},{key:"interfaces_",get:function(){return[qt,C]}}],[{key:"constructor_",value:function(){this._bounds=null,this._item=null;var e=arguments[0],t=arguments[1];this._bounds=e,this._item=t}}]),Yt=o((function e(){n(this,e),e.constructor_.apply(this,arguments)}),[{key:"poll",value:function(){if(this.isEmpty())return null;var e=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),e}},{key:"size",value:function(){return this._size}},{key:"reorder",value:function(e){for(var t=null,n=this._items.get(e);2*e<=this._size&&((t=2*e)!==this._size&&this._items.get(t+1).compareTo(this._items.get(t))<0&&t++,this._items.get(t).compareTo(n)<0);e=t)this._items.set(e,this._items.get(t));this._items.set(e,n)}},{key:"clear",value:function(){this._size=0,this._items.clear()}},{key:"peek",value:function(){return this.isEmpty()?null:this._items.get(1)}},{key:"isEmpty",value:function(){return 0===this._size}},{key:"add",value:function(e){this._items.add(null),this._size+=1;var t=this._size;for(this._items.set(0,e);e.compareTo(this._items.get(Math.trunc(t/2)))<0;t/=2)this._items.set(t,this._items.get(Math.trunc(t/2)));this._items.set(t,e)}}],[{key:"constructor_",value:function(){this._size=null,this._items=null,this._size=0,this._items=new pe,this._items.add(null)}}]),Wt=o((function e(){n(this,e)}),[{key:"insert",value:function(e,t){}},{key:"remove",value:function(e,t){}},{key:"query",value:function(){}}]),Qt=o((function e(){n(this,e),e.constructor_.apply(this,arguments)}),[{key:"getLevel",value:function(){return this._level}},{key:"size",value:function(){return this._childBoundables.size()}},{key:"getChildBoundables",value:function(){return this._childBoundables}},{key:"addChildBoundable",value:function(e){F.isTrue(null===this._bounds),this._childBoundables.add(e)}},{key:"isEmpty",value:function(){return this._childBoundables.isEmpty()}},{key:"getBounds",value:function(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds}},{key:"interfaces_",get:function(){return[qt,C]}}],[{key:"constructor_",value:function(){if(this._childBoundables=new pe,this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this._level=e}}}]),Xt={reverseOrder:function(){return{compare:function(e,t){return t.compareTo(e)}}},min:function(e){return Xt.sort(e),e.get(0)},sort:function(e,t){var n=e.toArray();t?De.sort(n,t):De.sort(n);for(var r=e.iterator(),i=0,o=n.length;ie.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,!1,t,n),null):(this.expand(this._boundable2,this._boundable1,!0,t,n),null);if(r)return this.expand(this._boundable1,this._boundable2,!1,t,n),null;if(i)return this.expand(this._boundable2,this._boundable1,!0,t,n),null;throw new b("neither boundable is composite")}},{key:"isLeaves",value:function(){return!(e.isComposite(this._boundable1)||e.isComposite(this._boundable2))}},{key:"compareTo",value:function(e){var t=e;return this._distancet._distance?1:0}},{key:"expand",value:function(t,n,r,i,o){for(var a=t.getChildBoundables().iterator();a.hasNext();){var s=a.next(),l=null;(l=r?new e(n,s,this._itemDistance):new e(s,n,this._itemDistance)).getDistance()-2),r.getLevel()===n)return i.add(r),null;for(var o=r.getChildBoundables().iterator();o.hasNext();){var a=o.next();a instanceof Qt?this.boundablesAtLevel(n,a,i):(F.isTrue(a instanceof Gt),-1===n&&i.add(a))}return null}}},{key:"query",value:function(){if(1===arguments.length){var e=arguments[0];this.build();var t=new pe;return this.isEmpty()||this.getIntersectsOp().intersects(this._root.getBounds(),e)&&this.queryInternal(e,this._root,t),t}if(2===arguments.length){var n=arguments[0],r=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),n)&&this.queryInternal(n,this._root,r)}}},{key:"build",value:function(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),this._itemBoundables=null,this._built=!0}},{key:"getRoot",value:function(){return this.build(),this._root}},{key:"remove",value:function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];return this.build(),!!this.getIntersectsOp().intersects(this._root.getBounds(),e)&&this.remove(e,this._root,t)}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=this.removeItem(r,i);if(o)return!0;for(var a=null,s=r.getChildBoundables().iterator();s.hasNext();){var l=s.next();if(this.getIntersectsOp().intersects(l.getBounds(),n)&&l instanceof Qt&&(o=this.remove(n,l,i))){a=l;break}}return null!==a&&a.getChildBoundables().isEmpty()&&r.getChildBoundables().remove(a),o}}},{key:"createHigherLevels",value:function(e,t){F.isTrue(!e.isEmpty());var n=this.createParentBoundables(e,t+1);return 1===n.size()?n.get(0):this.createHigherLevels(n,t+1)}},{key:"depth",value:function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(1===arguments.length){for(var e=0,t=arguments[0].getChildBoundables().iterator();t.hasNext();){var n=t.next();if(n instanceof Qt){var r=this.depth(n);r>e&&(e=r)}}return e+1}}},{key:"createParentBoundables",value:function(e,t){F.isTrue(!e.isEmpty());var n=new pe;n.add(this.createNode(t));var r=new pe(e);Xt.sort(r,this.getComparator());for(var i=r.iterator();i.hasNext();){var o=i.next();this.lastNode(n).getChildBoundables().size()===this.getNodeCapacity()&&n.add(this.createNode(t)),this.lastNode(n).addChildBoundable(o)}return n}},{key:"isEmpty",value:function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()}},{key:"interfaces_",get:function(){return[C]}}],[{key:"constructor_",value:function(){if(this._root=null,this._built=!1,this._itemBoundables=new pe,this._nodeCapacity=null,0===arguments.length)e.constructor_.call(this,e.DEFAULT_NODE_CAPACITY);else if(1===arguments.length){var t=arguments[0];F.isTrue(t>1,"Node capacity must be greater than 1"),this._nodeCapacity=t}}},{key:"compareDoubles",value:function(e,t){return e>t?1:e0);for(var n=new pe,r=0;r=0;){var l=a.poll(),c=l.getDistance();if(c>=o)break;l.isLeaves()?s.size()c&&(s.poll(),s.add(l)),o=s.peek().getDistance()):l.expandToQueue(a,o)}return r.getItems(s)}}},{key:"createNode",value:function(e){return new nn(e)}},{key:"size",value:function(){return 0===arguments.length?d(r,"size",this,1).call(this):d(r,"size",this,1).apply(this,arguments)}},{key:"insert",value:function(){if(!(2===arguments.length&&arguments[1]instanceof Object&&arguments[0]instanceof H))return d(r,"insert",this,1).apply(this,arguments);var e=arguments[0],t=arguments[1];if(e.isNull())return null;d(r,"insert",this,1).call(this,e,t)}},{key:"getIntersectsOp",value:function(){return r.intersectsOp}},{key:"verticalSlices",value:function(e,t){for(var n=Math.trunc(Math.ceil(e.size()/t)),r=new Array(t).fill(null),i=e.iterator(),o=0;o0;){var a=o.poll(),s=a.getDistance();if(s>=r)break;a.isLeaves()?(r=s,i=a):a.expandToQueue(o,r)}return null===i?null:[i.getBoundable(0).getItem(),i.getBoundable(1).getItem()]}}else{if(2===arguments.length){var l=arguments[0],c=arguments[1];if(this.isEmpty()||l.isEmpty())return null;var u=new Zt(this.getRoot(),l.getRoot(),c);return this.nearestNeighbour(u)}if(3===arguments.length){var h=arguments[2],d=new Gt(arguments[0],arguments[1]),f=new Zt(this.getRoot(),d,h);return this.nearestNeighbour(f)[0]}if(4===arguments.length){var p=arguments[2],m=arguments[3],g=new Gt(arguments[0],arguments[1]),y=new Zt(this.getRoot(),g,p);return this.nearestNeighbourK(y,m)}}}},{key:"isWithinDistance",value:function(){if(2===arguments.length){var e=arguments[0],t=arguments[1],n=D.POSITIVE_INFINITY,r=new Yt;for(r.add(e);!r.isEmpty();){var i=r.poll(),o=i.getDistance();if(o>t)return!1;if(i.maximumDistance()<=t)return!0;if(i.isLeaves()){if((n=o)<=t)return!0}else i.expandToQueue(r,n)}return!1}if(3===arguments.length){var a=arguments[0],s=arguments[1],l=arguments[2],c=new Zt(this.getRoot(),a.getRoot(),s);return this.isWithinDistance(c,l)}}},{key:"interfaces_",get:function(){return[Wt,C]}}],[{key:"constructor_",value:function(){if(0===arguments.length)r.constructor_.call(this,r.DEFAULT_NODE_CAPACITY);else if(1===arguments.length){var e=arguments[0];$t.constructor_.call(this,e)}}},{key:"centreX",value:function(e){return r.avg(e.getMinX(),e.getMaxX())}},{key:"avg",value:function(e,t){return(e+t)/2}},{key:"getItems",value:function(e){for(var t=new Array(e.size()).fill(null),n=0;!e.isEmpty();){var r=e.poll();t[n]=r.getBoundable(0).getItem(),n++}return t}},{key:"centreY",value:function(e){return r.avg(e.getMinY(),e.getMaxY())}}])}($t),nn=function(e){function r(){var e;return n(this,r),e=t(this,r),r.constructor_.apply(e,arguments),e}return c(r,e),o(r,[{key:"computeBounds",value:function(){for(var e=null,t=this.getChildBoundables().iterator();t.hasNext();){var n=t.next();null===e?e=new H(n.getBounds()):e.expandToInclude(n.getBounds())}return e}}],[{key:"constructor_",value:function(){var e=arguments[0];Qt.constructor_.call(this,e)}}])}(Qt);tn.STRtreeNode=nn,tn.xComparator=new(o((function e(){n(this,e)}),[{key:"interfaces_",get:function(){return[j]}},{key:"compare",value:function(e,t){return $t.compareDoubles(tn.centreX(e.getBounds()),tn.centreX(t.getBounds()))}}])),tn.yComparator=new(o((function e(){n(this,e)}),[{key:"interfaces_",get:function(){return[j]}},{key:"compare",value:function(e,t){return $t.compareDoubles(tn.centreY(e.getBounds()),tn.centreY(t.getBounds()))}}])),tn.intersectsOp=new(o((function e(){n(this,e)}),[{key:"interfaces_",get:function(){return[IntersectsOp]}},{key:"intersects",value:function(e,t){return e.intersects(t)}}])),tn.DEFAULT_NODE_CAPACITY=10;var rn=function(){function e(){n(this,e)}return o(e,null,[{key:"relativeSign",value:function(e,t){return et?1:0}},{key:"compare",value:function(t,n,r){if(n.equals2D(r))return 0;var i=e.relativeSign(n.x,r.x),o=e.relativeSign(n.y,r.y);switch(t){case 0:return e.compareValue(i,o);case 1:return e.compareValue(o,i);case 2:return e.compareValue(o,-i);case 3:return e.compareValue(-i,o);case 4:return e.compareValue(-i,-o);case 5:return e.compareValue(-o,-i);case 6:return e.compareValue(-o,i);case 7:return e.compareValue(i,-o)}return F.shouldNeverReachHere("invalid octant value"),0}},{key:"compareValue",value:function(e,t){return e<0?-1:e>0?1:t<0?-1:t>0?1:0}}])}(),on=o((function e(){n(this,e),e.constructor_.apply(this,arguments)}),[{key:"getCoordinate",value:function(){return this.coord}},{key:"print",value:function(e){e.print(this.coord),e.print(" seg # = "+this.segmentIndex)}},{key:"compareTo",value:function(e){var t=e;return this.segmentIndext.segmentIndex?1:this.coord.equals2D(t.coord)?0:this._isInterior?t._isInterior?rn.compare(this._segmentOctant,this.coord,t.coord):1:-1}},{key:"isEndPoint",value:function(e){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===e}},{key:"toString",value:function(){return this.segmentIndex+":"+this.coord.toString()}},{key:"isInterior",value:function(){return this._isInterior}},{key:"interfaces_",get:function(){return[x]}}],[{key:"constructor_",value:function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var e=arguments[0],t=arguments[1],n=arguments[2],r=arguments[3];this._segString=e,this.coord=new V(t),this.segmentIndex=n,this._segmentOctant=r,this._isInterior=!t.equals2D(e.getCoordinate(n))}}]),an=o((function e(){n(this,e)}),[{key:"hasNext",value:function(){}},{key:"next",value:function(){}},{key:"remove",value:function(){}}]),sn=o((function e(){n(this,e),e.constructor_.apply(this,arguments)}),[{key:"getSplitCoordinates",value:function(){var e=new Ye;this.addEndpoints();for(var t=this.iterator(),n=t.next();t.hasNext();){var r=t.next();this.addEdgeCoordinates(n,r,e),n=r}return e.toCoordinateArray()}},{key:"addCollapsedNodes",value:function(){var e=new pe;this.findCollapsesFromInsertedNodes(e),this.findCollapsesFromExistingVertices(e);for(var t=e.iterator();t.hasNext();){var n=t.next().intValue();this.add(this._edge.getCoordinate(n),n)}}},{key:"createSplitEdgePts",value:function(e,t){var n=t.segmentIndex-e.segmentIndex+2;if(2===n)return[new V(e.coord),new V(t.coord)];var r=this._edge.getCoordinate(t.segmentIndex),i=t.isInterior()||!t.coord.equals2D(r);i||n--;var o=new Array(n).fill(null),a=0;o[a++]=new V(e.coord);for(var s=e.segmentIndex+1;s<=t.segmentIndex;s++)o[a++]=this._edge.getCoordinate(s);return i&&(o[a]=new V(t.coord)),o}},{key:"print",value:function(e){e.println("Intersections:");for(var t=this.iterator();t.hasNext();)t.next().print(e)}},{key:"findCollapsesFromExistingVertices",value:function(e){for(var t=0;t=0?n>=0?r>=i?0:1:r>=i?7:6:n>=0?r>=i?3:2:r>=i?4:5}if(arguments[0]instanceof V&&arguments[1]instanceof V){var o=arguments[0],a=arguments[1],s=a.x-o.x,l=a.y-o.y;if(0===s&&0===l)throw new b("Cannot compute the octant for two identical points "+o);return e.octant(s,l)}}}])}(),cn=o((function e(){n(this,e)}),[{key:"getCoordinates",value:function(){}},{key:"size",value:function(){}},{key:"getCoordinate",value:function(e){}},{key:"isClosed",value:function(){}},{key:"setData",value:function(e){}},{key:"getData",value:function(){}}]),un=o((function e(){n(this,e)}),[{key:"addIntersection",value:function(e,t){}},{key:"interfaces_",get:function(){return[cn]}}]),hn=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"getCoordinates",value:function(){return this._pts}},{key:"size",value:function(){return this._pts.length}},{key:"getCoordinate",value:function(e){return this._pts[e]}},{key:"isClosed",value:function(){return this._pts[0].equals(this._pts[this._pts.length-1])}},{key:"getSegmentOctant",value:function(e){return e===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(e),this.getCoordinate(e+1))}},{key:"setData",value:function(e){this._data=e}},{key:"safeOctant",value:function(e,t){return e.equals2D(t)?0:ln.octant(e,t)}},{key:"getData",value:function(){return this._data}},{key:"addIntersection",value:function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];this.addIntersectionNode(e,t)}else if(4===arguments.length){var n=arguments[1],r=arguments[3],i=new V(arguments[0].getIntersection(r));this.addIntersection(i,n)}}},{key:"toString",value:function(){return vt.toLineString(new Ze(this._pts))}},{key:"getNodeList",value:function(){return this._nodeList}},{key:"addIntersectionNode",value:function(e,t){var n=t,r=n+1;if(r=0&&r>=0||n<=0&&r<=0?Math.max(n,r):0}if(arguments[0]instanceof V){var i=arguments[0];return ue.index(this.p0,this.p1,i)}}},{key:"toGeometry",value:function(e){return e.createLineString([this.p0,this.p1])}},{key:"isVertical",value:function(){return this.p0.x===this.p1.x}},{key:"equals",value:function(t){if(!(t instanceof e))return!1;var n=t;return this.p0.equals(n.p0)&&this.p1.equals(n.p1)}},{key:"intersection",value:function(e){var t=new At;return t.computeIntersection(this.p0,this.p1,e.p0,e.p1),t.hasIntersection()?t.getIntersection(0):null}},{key:"project",value:function(){if(arguments[0]instanceof V){var t=arguments[0];if(t.equals(this.p0)||t.equals(this.p1))return new V(t);var n=this.projectionFactor(t),r=new V;return r.x=this.p0.x+n*(this.p1.x-this.p0.x),r.y=this.p0.y+n*(this.p1.y-this.p0.y),r}if(arguments[0]instanceof e){var i=arguments[0],o=this.projectionFactor(i.p0),a=this.projectionFactor(i.p1);if(o>=1&&a>=1)return null;if(o<=0&&a<=0)return null;var s=this.project(i.p0);o<0&&(s=this.p0),o>1&&(s=this.p1);var l=this.project(i.p1);return a<0&&(l=this.p0),a>1&&(l=this.p1),new e(s,l)}}},{key:"normalize",value:function(){this.p1.compareTo(this.p0)<0&&this.reverse()}},{key:"angle",value:function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)}},{key:"getCoordinate",value:function(e){return 0===e?this.p0:this.p1}},{key:"distancePerpendicular",value:function(e){return Ae.pointToLinePerpendicular(e,this.p0,this.p1)}},{key:"minY",value:function(){return Math.min(this.p0.y,this.p1.y)}},{key:"midPoint",value:function(){return e.midPoint(this.p0,this.p1)}},{key:"projectionFactor",value:function(e){if(e.equals(this.p0))return 0;if(e.equals(this.p1))return 1;var t=this.p1.x-this.p0.x,n=this.p1.y-this.p0.y,r=t*t+n*n;return r<=0?D.NaN:((e.x-this.p0.x)*t+(e.y-this.p0.y)*n)/r}},{key:"closestPoints",value:function(e){var t=this.intersection(e);if(null!==t)return[t,t];var n=new Array(2).fill(null),r=D.MAX_VALUE,i=null,o=this.closestPoint(e.p0);r=o.distance(e.p0),n[0]=o,n[1]=e.p0;var a=this.closestPoint(e.p1);(i=a.distance(e.p1))0&&t<1?this.project(e):this.p0.distance(e)1||D.isNaN(t))&&(t=1),t}},{key:"toString",value:function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"}},{key:"isHorizontal",value:function(){return this.p0.y===this.p1.y}},{key:"reflect",value:function(e){var t=this.p1.getY()-this.p0.getY(),n=this.p0.getX()-this.p1.getX(),r=this.p0.getY()*(this.p1.getX()-this.p0.getX())-this.p0.getX()*(this.p1.getY()-this.p0.getY()),i=t*t+n*n,o=t*t-n*n,a=e.getX(),s=e.getY();return new V((-o*a-2*t*n*s-2*t*r)/i,(o*s-2*t*n*a-2*n*r)/i)}},{key:"distance",value:function(){if(arguments[0]instanceof e){var t=arguments[0];return Ae.segmentToSegment(this.p0,this.p1,t.p0,t.p1)}if(arguments[0]instanceof V){var n=arguments[0];return Ae.pointToSegment(n,this.p0,this.p1)}}},{key:"pointAlong",value:function(e){var t=new V;return t.x=this.p0.x+e*(this.p1.x-this.p0.x),t.y=this.p0.y+e*(this.p1.y-this.p0.y),t}},{key:"hashCode",value:function(){var e=D.doubleToLongBits(this.p0.x);e^=31*D.doubleToLongBits(this.p0.y);var t=Math.trunc(e)^Math.trunc(e>>32),n=D.doubleToLongBits(this.p1.x);return n^=31*D.doubleToLongBits(this.p1.y),t^Math.trunc(n)^Math.trunc(n>>32)}},{key:"interfaces_",get:function(){return[x,C]}}],[{key:"constructor_",value:function(){if(this.p0=null,this.p1=null,0===arguments.length)e.constructor_.call(this,new V,new V);else if(1===arguments.length){var t=arguments[0];e.constructor_.call(this,t.p0,t.p1)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.p0=n,this.p1=r}else if(4===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];e.constructor_.call(this,new V(i,o),new V(a,s))}}},{key:"midPoint",value:function(e,t){return new V((e.x+t.x)/2,(e.y+t.y)/2)}}])}(),fn=o((function e(){n(this,e),e.constructor_.apply(this,arguments)}),[{key:"overlap",value:function(){if(2===arguments.length);else if(4===arguments.length){var e=arguments[1],t=arguments[2],n=arguments[3];arguments[0].getLineSegment(e,this._overlapSeg1),t.getLineSegment(n,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}}}],[{key:"constructor_",value:function(){this._overlapSeg1=new dn,this._overlapSeg2=new dn}}]),pn=o((function e(){n(this,e),e.constructor_.apply(this,arguments)}),[{key:"getLineSegment",value:function(e,t){t.p0=this._pts[e],t.p1=this._pts[e+1]}},{key:"computeSelect",value:function(e,t,n,r){var i=this._pts[t],o=this._pts[n];if(n-t==1)return r.select(this,t),null;if(!e.intersects(i,o))return null;var a=Math.trunc((t+n)/2);t=e.length-1)return e.length-1;for(var r=Nt.quadrant(e[n],e[n+1]),i=t+1;in.getId()&&(n.computeOverlaps(i,e),this._nOverlaps++),this._segInt.isDone())return null}}}],[{key:"constructor_",value:function(){if(this._monoChains=new pe,this._index=new tn,this._idCounter=0,this._nodedSegStrings=null,this._nOverlaps=0,0===arguments.length);else if(1===arguments.length){var e=arguments[0];yn.constructor_.call(this,e)}}}])}(yn),bn=function(e){function r(){var e;return n(this,r),e=t(this,r),r.constructor_.apply(e,arguments),e}return c(r,e),o(r,[{key:"overlap",value:function(){if(4!==arguments.length)return d(r,"overlap",this,1).apply(this,arguments);var e=arguments[1],t=arguments[2],n=arguments[3],i=arguments[0].getContext(),o=t.getContext();this._si.processIntersections(i,e,o,n)}}],[{key:"constructor_",value:function(){this._si=null;var e=arguments[0];this._si=e}}])}(fn);vn.SegmentOverlapAction=bn;var An=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"isDeletable",value:function(e,t,n,r){var i=this._inputLine[e],o=this._inputLine[t],a=this._inputLine[n];return!!this.isConcave(i,o,a)&&!!this.isShallow(i,o,a,r)&&this.isShallowSampled(i,o,e,n,r)}},{key:"deleteShallowConcavities",value:function(){for(var t=1,n=this.findNextNonDeletedIndex(t),r=this.findNextNonDeletedIndex(n),i=!1;r=0;r--)this.addPt(e[r])}},{key:"isRedundant",value:function(e){if(this._ptList.size()<1)return!1;var t=this._ptList.get(this._ptList.size()-1);return e.distance(t)Math.PI;)t-=e.PI_TIMES_2;for(;t<=-Math.PI;)t+=e.PI_TIMES_2;return t}},{key:"angle",value:function(){if(1===arguments.length){var e=arguments[0];return Math.atan2(e.y,e.x)}if(2===arguments.length){var t=arguments[0],n=arguments[1],r=n.x-t.x,i=n.y-t.y;return Math.atan2(i,r)}}},{key:"isAcute",value:function(e,t,n){var r=e.x-t.x,i=e.y-t.y;return r*(n.x-t.x)+i*(n.y-t.y)>0}},{key:"isObtuse",value:function(e,t,n){var r=e.x-t.x,i=e.y-t.y;return r*(n.x-t.x)+i*(n.y-t.y)<0}},{key:"interiorAngle",value:function(t,n,r){var i=e.angle(n,t),o=e.angle(n,r);return Math.abs(o-i)}},{key:"normalizePositive",value:function(t){if(t<0){for(;t<0;)t+=e.PI_TIMES_2;t>=e.PI_TIMES_2&&(t=0)}else{for(;t>=e.PI_TIMES_2;)t-=e.PI_TIMES_2;t<0&&(t=0)}return t}},{key:"angleBetween",value:function(t,n,r){var i=e.angle(n,t),o=e.angle(n,r);return e.diff(i,o)}},{key:"diff",value:function(e,t){var n=null;return(n=eMath.PI&&(n=2*Math.PI-n),n}},{key:"toRadians",value:function(e){return e*Math.PI/180}},{key:"getTurn",value:function(t,n){var r=Math.sin(n-t);return r>0?e.COUNTERCLOCKWISE:r<0?e.CLOCKWISE:e.NONE}},{key:"angleBetweenOriented",value:function(t,n,r){var i=e.angle(n,t),o=e.angle(n,r)-i;return o<=-Math.PI?o+e.PI_TIMES_2:o>Math.PI?o-e.PI_TIMES_2:o}}])}();wn.PI_TIMES_2=2*Math.PI,wn.PI_OVER_2=Math.PI/2,wn.PI_OVER_4=Math.PI/4,wn.COUNTERCLOCKWISE=ue.COUNTERCLOCKWISE,wn.CLOCKWISE=ue.CLOCKWISE,wn.NONE=ue.COLLINEAR;var Cn=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"addNextSegment",value:function(e,t){if(this._s0=this._s1,this._s1=this._s2,this._s2=e,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var n=ue.index(this._s0,this._s1,this._s2),r=n===ue.CLOCKWISE&&this._side===K.LEFT||n===ue.COUNTERCLOCKWISE&&this._side===K.RIGHT;0===n?this.addCollinear(t):r?this.addOutsideTurn(n,t):this.addInsideTurn(n,t)}},{key:"addLineEndCap",value:function(e,t){var n=new dn(e,t),r=new dn;this.computeOffsetSegment(n,K.LEFT,this._distance,r);var i=new dn;this.computeOffsetSegment(n,K.RIGHT,this._distance,i);var o=t.x-e.x,a=t.y-e.y,s=Math.atan2(a,o);switch(this._bufParams.getEndCapStyle()){case y.CAP_ROUND:this._segList.addPt(r.p1),this.addDirectedFillet(t,s+Math.PI/2,s-Math.PI/2,ue.CLOCKWISE,this._distance),this._segList.addPt(i.p1);break;case y.CAP_FLAT:this._segList.addPt(r.p1),this._segList.addPt(i.p1);break;case y.CAP_SQUARE:var l=new V;l.x=Math.abs(this._distance)*Math.cos(s),l.y=Math.abs(this._distance)*Math.sin(s);var c=new V(r.p1.x+l.x,r.p1.y+l.y),u=new V(i.p1.x+l.x,i.p1.y+l.y);this._segList.addPt(c),this._segList.addPt(u)}}},{key:"getCoordinates",value:function(){return this._segList.getCoordinates()}},{key:"addMitreJoin",value:function(e,t,n,r){var i=ye.intersection(t.p0,t.p1,n.p0,n.p1);if(null!==i&&(r<=0?1:i.distance(e)/Math.abs(r))<=this._bufParams.getMitreLimit())return this._segList.addPt(i),null;this.addLimitedMitreJoin(t,n,r,this._bufParams.getMitreLimit())}},{key:"addOutsideTurn",value:function(t,n){if(this._offset0.p1.distance(this._offset1.p0)=u&&(s-=2*Math.PI),this._segList.addPt(t),this.addDirectedFillet(e,s,u,r,i),this._segList.addPt(n)}},{key:"addLastSegment",value:function(){this._segList.addPt(this._offset1.p1)}},{key:"initSideSegments",value:function(e,t,n){this._s1=e,this._s2=t,this._side=n,this._seg1.setCoordinates(e,t),this.computeOffsetSegment(this._seg1,n,this._distance,this._offset1)}},{key:"addLimitedMitreJoin",value:function(e,t,n,r){var i=this._seg0.p1,o=wn.angle(i,this._seg0.p0),a=wn.angleBetweenOriented(this._seg0.p0,i,this._seg1.p1)/2,s=wn.normalize(o+a),l=wn.normalize(s+Math.PI),c=r*n,u=n-c*Math.abs(Math.sin(a)),h=i.x+c*Math.cos(l),d=i.y+c*Math.sin(l),f=new V(h,d),p=new dn(i,f),m=p.pointAlongOffset(1,u),g=p.pointAlongOffset(1,-u);this._side===K.LEFT?(this._segList.addPt(m),this._segList.addPt(g)):(this._segList.addPt(g),this._segList.addPt(m))}},{key:"addDirectedFillet",value:function(e,t,n,r,i){var o=r===ue.CLOCKWISE?-1:1,a=Math.abs(t-n),s=Math.trunc(a/this._filletAngleQuantum+.5);if(s<1)return null;for(var l=a/s,c=new V,u=0;u0){var r=new V((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(r);var i=new V((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(i)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}}},{key:"createCircle",value:function(e){var t=new V(e.x+this._distance,e.y);this._segList.addPt(t),this.addDirectedFillet(e,0,2*Math.PI,-1,this._distance),this._segList.closeRing()}},{key:"addBevelJoin",value:function(e,t){this._segList.addPt(e.p1),this._segList.addPt(t.p0)}},{key:"init",value:function(t){this._distance=t,this._maxCurveSegmentError=t*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new xn,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(t*e.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)}},{key:"addCollinear",value:function(e){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===y.JOIN_BEVEL||this._bufParams.getJoinStyle()===y.JOIN_MITRE?(e&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addCornerFillet(this._s1,this._offset0.p1,this._offset1.p0,ue.CLOCKWISE,this._distance))}},{key:"closeRing",value:function(){this._segList.closeRing()}},{key:"hasNarrowConcaveAngle",value:function(){return this._hasNarrowConcaveAngle}}],[{key:"constructor_",value:function(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new dn,this._seg1=new dn,this._offset0=new dn,this._offset1=new dn,this._side=0,this._hasNarrowConcaveAngle=!1;var t=arguments[0],n=arguments[1],r=arguments[2];this._precisionModel=t,this._bufParams=n,this._li=new At,this._filletAngleQuantum=Math.PI/2/n.getQuadrantSegments(),n.getQuadrantSegments()>=8&&n.getJoinStyle()===y.JOIN_ROUND&&(this._closingSegLengthFactor=e.MAX_CLOSING_SEG_LEN_FACTOR),this.init(r)}}])}();Cn.OFFSET_SEGMENT_SEPARATION_FACTOR=.001,Cn.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR=.001,Cn.CURVE_VERTEX_SNAP_DISTANCE_FACTOR=1e-6,Cn.MAX_CLOSING_SEG_LEN_FACTOR=80;var Sn=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"getOffsetCurve",value:function(e,t){if(this._distance=t,0===t)return null;var n=t<0,r=Math.abs(t),i=this.getSegGen(r);e.length<=1?this.computePointCurve(e[0],i):this.computeOffsetCurve(e,n,i);var o=i.getCoordinates();return n&&We.reverse(o),o}},{key:"computeSingleSidedBufferCurve",value:function(e,t,n){var r=this.simplifyTolerance(this._distance);if(t){n.addSegments(e,!0);var i=An.simplify(e,-r),o=i.length-1;n.initSideSegments(i[o],i[o-1],K.LEFT),n.addFirstSegment();for(var a=o-2;a>=0;a--)n.addNextSegment(i[a],!0)}else{n.addSegments(e,!1);var s=An.simplify(e,r),l=s.length-1;n.initSideSegments(s[0],s[1],K.LEFT),n.addFirstSegment();for(var c=2;c<=l;c++)n.addNextSegment(s[c],!0)}n.addLastSegment(),n.closeRing()}},{key:"computeRingBufferCurve",value:function(e,t,n){var r=this.simplifyTolerance(this._distance);t===K.RIGHT&&(r=-r);var i=An.simplify(e,r),o=i.length-1;n.initSideSegments(i[o-1],i[0],t);for(var a=1;a<=o;a++){var s=1!==a;n.addNextSegment(i[a],s)}n.closeRing()}},{key:"computeLineBufferCurve",value:function(e,t){var n=this.simplifyTolerance(this._distance),r=An.simplify(e,n),i=r.length-1;t.initSideSegments(r[0],r[1],K.LEFT);for(var o=2;o<=i;o++)t.addNextSegment(r[o],!0);t.addLastSegment(),t.addLineEndCap(r[i-1],r[i]);var a=An.simplify(e,-n),s=a.length-1;t.initSideSegments(a[s],a[s-1],K.LEFT);for(var l=s-2;l>=0;l--)t.addNextSegment(a[l],!0);t.addLastSegment(),t.addLineEndCap(a[1],a[0]),t.closeRing()}},{key:"computePointCurve",value:function(e,t){switch(this._bufParams.getEndCapStyle()){case y.CAP_ROUND:t.createCircle(e);break;case y.CAP_SQUARE:t.createSquare(e)}}},{key:"getLineCurve",value:function(e,t){if(this._distance=t,this.isLineOffsetEmpty(t))return null;var n=Math.abs(t),r=this.getSegGen(n);if(e.length<=1)this.computePointCurve(e[0],r);else if(this._bufParams.isSingleSided()){var i=t<0;this.computeSingleSidedBufferCurve(e,i,r)}else this.computeLineBufferCurve(e,r);return r.getCoordinates()}},{key:"getBufferParameters",value:function(){return this._bufParams}},{key:"simplifyTolerance",value:function(e){return e*this._bufParams.getSimplifyFactor()}},{key:"getRingCurve",value:function(t,n,r){if(this._distance=r,t.length<=2)return this.getLineCurve(t,r);if(0===r)return e.copyCoordinates(t);var i=this.getSegGen(r);return this.computeRingBufferCurve(t,n,i),i.getCoordinates()}},{key:"computeOffsetCurve",value:function(e,t,n){var r=this.simplifyTolerance(this._distance);if(t){var i=An.simplify(e,-r),o=i.length-1;n.initSideSegments(i[o],i[o-1],K.LEFT),n.addFirstSegment();for(var a=o-2;a>=0;a--)n.addNextSegment(i[a],!0)}else{var s=An.simplify(e,r),l=s.length-1;n.initSideSegments(s[0],s[1],K.LEFT),n.addFirstSegment();for(var c=2;c<=l;c++)n.addNextSegment(s[c],!0)}n.addLastSegment()}},{key:"isLineOffsetEmpty",value:function(e){return 0===e||e<0&&!this._bufParams.isSingleSided()}},{key:"getSegGen",value:function(e){return new Cn(this._precisionModel,this._bufParams,e)}}],[{key:"constructor_",value:function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var e=arguments[0],t=arguments[1];this._precisionModel=e,this._bufParams=t}},{key:"copyCoordinates",value:function(e){for(var t=new Array(e.length).fill(null),n=0;ni.getMaxY()||this.findStabbedSegments(e,r.getDirectedEdges(),t)}return t}if(3===arguments.length)if(re(arguments[2],te)&&arguments[0]instanceof V&&arguments[1]instanceof zt){for(var o=arguments[0],a=arguments[1],s=arguments[2],l=a.getEdge().getCoordinates(),c=0;cthis._seg.p1.y&&this._seg.reverse(),!(Math.max(this._seg.p0.x,this._seg.p1.x)this._seg.p1.y||ue.index(this._seg.p0,this._seg.p1,o)===ue.RIGHT)){var u=a.getDepth(K.LEFT);this._seg.p0.equals(l[c])||(u=a.getDepth(K.RIGHT));var h=new kn(this._seg,u);s.add(h)}}else if(re(arguments[2],te)&&arguments[0]instanceof V&&re(arguments[1],te))for(var d=arguments[0],f=arguments[2],p=arguments[1].iterator();p.hasNext();){var m=p.next();m.isForward()&&this.findStabbedSegments(d,m,f)}}},{key:"getDepth",value:function(e){var t=this.findStabbedSegments(e);return 0===t.size()?0:Xt.min(t)._leftDepth}}],[{key:"constructor_",value:function(){this._subgraphs=null,this._seg=new dn;var e=arguments[0];this._subgraphs=e}}]),kn=o((function e(){n(this,e),e.constructor_.apply(this,arguments)}),[{key:"compareTo",value:function(e){var t=e;if(this._upwardSeg.minX()>=t._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=t._upwardSeg.minX())return-1;var n=this._upwardSeg.orientationIndex(t._upwardSeg);return 0!==n||0!=(n=-1*t._upwardSeg.orientationIndex(this._upwardSeg))?n:this._upwardSeg.compareTo(t._upwardSeg)}},{key:"compareX",value:function(e,t){var n=e.p0.compareTo(t.p0);return 0!==n?n:e.p1.compareTo(t.p1)}},{key:"toString",value:function(){return this._upwardSeg.toString()}},{key:"interfaces_",get:function(){return[x]}}],[{key:"constructor_",value:function(){this._upwardSeg=null,this._leftDepth=null;var e=arguments[0],t=arguments[1];this._upwardSeg=new dn(e),this._leftDepth=t}}]);En.DepthSegment=kn;var Tn=function(e){function r(){var e;return n(this,r),e=t(this,r),r.constructor_.apply(e,arguments),e}return c(r,e),o(r,null,[{key:"constructor_",value:function(){v.constructor_.call(this,"Projective point not representable on the Cartesian plane.")}}])}(v),In=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"getY",value:function(){var e=this.y/this.w;if(D.isNaN(e)||D.isInfinite(e))throw new Tn;return e}},{key:"getX",value:function(){var e=this.x/this.w;if(D.isNaN(e)||D.isInfinite(e))throw new Tn;return e}},{key:"getCoordinate",value:function(){var e=new V;return e.x=this.getX(),e.y=this.getY(),e}}],[{key:"constructor_",value:function(){if(this.x=null,this.y=null,this.w=null,0===arguments.length)this.x=0,this.y=0,this.w=1;else if(1===arguments.length){var t=arguments[0];this.x=t.x,this.y=t.y,this.w=1}else if(2===arguments.length){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var n=arguments[0],r=arguments[1];this.x=n,this.y=r,this.w=1}else if(arguments[0]instanceof e&&arguments[1]instanceof e){var i=arguments[0],o=arguments[1];this.x=i.y*o.w-o.y*i.w,this.y=o.x*i.w-i.x*o.w,this.w=i.x*o.y-o.x*i.y}else if(arguments[0]instanceof V&&arguments[1]instanceof V){var a=arguments[0],s=arguments[1];this.x=a.y-s.y,this.y=s.x-a.x,this.w=a.x*s.y-s.x*a.y}}else if(3===arguments.length){var l=arguments[0],c=arguments[1],u=arguments[2];this.x=l,this.y=c,this.w=u}else if(4===arguments.length){var h=arguments[0],d=arguments[1],f=arguments[2],p=arguments[3],m=h.y-d.y,g=d.x-h.x,y=h.x*d.y-d.x*h.y,v=f.y-p.y,b=p.x-f.x,A=f.x*p.y-p.x*f.y;this.x=g*A-b*y,this.y=v*y-m*A,this.w=m*b-v*g}}}])}(),On=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"area",value:function(){return e.area(this.p0,this.p1,this.p2)}},{key:"signedArea",value:function(){return e.signedArea(this.p0,this.p1,this.p2)}},{key:"interpolateZ",value:function(t){if(null===t)throw new b("Supplied point is null.");return e.interpolateZ(t,this.p0,this.p1,this.p2)}},{key:"longestSideLength",value:function(){return e.longestSideLength(this.p0,this.p1,this.p2)}},{key:"isAcute",value:function(){return e.isAcute(this.p0,this.p1,this.p2)}},{key:"circumcentre",value:function(){return e.circumcentre(this.p0,this.p1,this.p2)}},{key:"area3D",value:function(){return e.area3D(this.p0,this.p1,this.p2)}},{key:"centroid",value:function(){return e.centroid(this.p0,this.p1,this.p2)}},{key:"inCentre",value:function(){return e.inCentre(this.p0,this.p1,this.p2)}}],[{key:"constructor_",value:function(){this.p0=null,this.p1=null,this.p2=null;var e=arguments[0],t=arguments[1],n=arguments[2];this.p0=e,this.p1=t,this.p2=n}},{key:"area",value:function(e,t,n){return Math.abs(((n.x-e.x)*(t.y-e.y)-(t.x-e.x)*(n.y-e.y))/2)}},{key:"signedArea",value:function(e,t,n){return((n.x-e.x)*(t.y-e.y)-(t.x-e.x)*(n.y-e.y))/2}},{key:"det",value:function(e,t,n,r){return e*r-t*n}},{key:"interpolateZ",value:function(e,t,n,r){var i=t.x,o=t.y,a=n.x-i,s=r.x-i,l=n.y-o,c=r.y-o,u=a*c-s*l,h=e.x-i,d=e.y-o,f=(c*h-s*d)/u,p=(-l*h+a*d)/u;return t.getZ()+f*(n.getZ()-t.getZ())+p*(r.getZ()-t.getZ())}},{key:"longestSideLength",value:function(e,t,n){var r=e.distance(t),i=t.distance(n),o=n.distance(e),a=r;return i>a&&(a=i),o>a&&(a=o),a}},{key:"circumcentreDD",value:function(e,t,n){var r=se.valueOf(e.x).subtract(n.x),i=se.valueOf(e.y).subtract(n.y),o=se.valueOf(t.x).subtract(n.x),a=se.valueOf(t.y).subtract(n.y),s=se.determinant(r,i,o,a).multiply(2),l=r.sqr().add(i.sqr()),c=o.sqr().add(a.sqr()),u=se.determinant(i,l,a,c),h=se.determinant(r,l,o,c),d=se.valueOf(n.x).subtract(u.divide(s)).doubleValue(),f=se.valueOf(n.y).add(h.divide(s)).doubleValue();return new V(d,f)}},{key:"isAcute",value:function(e,t,n){return!!wn.isAcute(e,t,n)&&!!wn.isAcute(t,n,e)&&!!wn.isAcute(n,e,t)}},{key:"circumcentre",value:function(t,n,r){var i=r.x,o=r.y,a=t.x-i,s=t.y-o,l=n.x-i,c=n.y-o,u=2*e.det(a,s,l,c),h=e.det(s,a*a+s*s,c,l*l+c*c),d=e.det(a,a*a+s*s,l,l*l+c*c);return new V(i-h/u,o+d/u)}},{key:"perpendicularBisector",value:function(e,t){var n=t.x-e.x,r=t.y-e.y,i=new In(e.x+n/2,e.y+r/2,1),o=new In(e.x-r+n/2,e.y+n+r/2,1);return new In(i,o)}},{key:"angleBisector",value:function(e,t,n){var r=t.distance(e),i=r/(r+t.distance(n)),o=n.x-e.x,a=n.y-e.y;return new V(e.x+i*o,e.y+i*a)}},{key:"area3D",value:function(e,t,n){var r=t.x-e.x,i=t.y-e.y,o=t.getZ()-e.getZ(),a=n.x-e.x,s=n.y-e.y,l=n.getZ()-e.getZ(),c=i*l-o*s,u=o*a-r*l,h=r*s-i*a,d=c*c+u*u+h*h;return Math.sqrt(d)/2}},{key:"centroid",value:function(e,t,n){var r=(e.x+t.x+n.x)/3,i=(e.y+t.y+n.y)/3;return new V(r,i)}},{key:"inCentre",value:function(e,t,n){var r=t.distance(n),i=e.distance(n),o=e.distance(t),a=r+i+o,s=(r*e.x+i*t.x+o*n.x)/a,l=(r*e.y+i*t.y+o*n.y)/a;return new V(s,l)}}])}(),Rn=o((function e(){n(this,e),e.constructor_.apply(this,arguments)}),[{key:"addRingSide",value:function(e,t,n,r,i){if(0===t&&e.length=Ve.MINIMUM_VALID_SIZE&&ue.isCCW(e)&&(o=i,a=r,n=K.opposite(n));var s=this._curveBuilder.getRingCurve(e,n,t);this.addCurve(s,o,a)}},{key:"addRingBothSides",value:function(e,t){this.addRingSide(e,t,K.LEFT,G.EXTERIOR,G.INTERIOR),this.addRingSide(e,t,K.RIGHT,G.INTERIOR,G.EXTERIOR)}},{key:"addPoint",value:function(e){if(this._distance<=0)return null;var t=e.getCoordinates(),n=this._curveBuilder.getLineCurve(t,this._distance);this.addCurve(n,G.EXTERIOR,G.INTERIOR)}},{key:"addPolygon",value:function(e){var t=this._distance,n=K.LEFT;this._distance<0&&(t=-this._distance,n=K.RIGHT);var r=e.getExteriorRing(),i=We.removeRepeatedPoints(r.getCoordinates());if(this._distance<0&&this.isErodedCompletely(r,this._distance))return null;if(this._distance<=0&&i.length<3)return null;this.addRingSide(i,t,n,G.EXTERIOR,G.INTERIOR);for(var o=0;o0&&this.isErodedCompletely(a,-this._distance)||this.addRingSide(s,t,K.opposite(n),G.INTERIOR,G.EXTERIOR)}}},{key:"isTriangleErodedCompletely",value:function(e,t){var n=new On(e[0],e[1],e[2]),r=n.inCentre();return Ae.pointToSegment(r,n.p0,n.p1)i}},{key:"addCollection",value:function(e){for(var t=0;t=this._max)throw new W;var t=this._parent.getGeometryN(this._index++);return t instanceof _e?(this._subcollectionIterator=new e(t),this._subcollectionIterator.next()):t}},{key:"remove",value:function(){throw new Q(this.getClass().getName())}},{key:"hasNext",value:function(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)}},{key:"interfaces_",get:function(){return[an]}}],[{key:"constructor_",value:function(){this._parent=null,this._atStart=null,this._max=null,this._index=null,this._subcollectionIterator=null;var e=arguments[0];this._parent=e,this._atStart=!0,this._index=0,this._max=e.getNumGeometries()}},{key:"isAtomic",value:function(e){return!(e instanceof _e)}}])}(),Dn=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"locate",value:function(t){return e.locate(t,this._geom)}},{key:"interfaces_",get:function(){return[Mn]}}],[{key:"constructor_",value:function(){this._geom=null;var e=arguments[0];this._geom=e}},{key:"locatePointInPolygon",value:function(t,n){if(n.isEmpty())return G.EXTERIOR;var r=n.getExteriorRing(),i=e.locatePointInRing(t,r);if(i!==G.INTERIOR)return i;for(var o=0;o=0;n--){var r=this._edgeList.get(n),i=r.getSym();null===t&&(t=i),null!==e&&i.setNext(e),e=r}t.setNext(e)}},{key:"computeDepths",value:function(){if(1===arguments.length){var e=arguments[0],t=this.findIndex(e),n=e.getDepth(K.LEFT),r=e.getDepth(K.RIGHT),i=this.computeDepths(t+1,this._edgeList.size(),n);if(this.computeDepths(0,t,i)!==r)throw new de("depth mismatch at "+e.getCoordinate())}else if(3===arguments.length){for(var o=arguments[1],a=arguments[2],s=arguments[0];s=0;i--){var o=this._resultAreaEdgeList.get(i),a=o.getSym();switch(null===t&&o.getEdgeRing()===e&&(t=o),r){case this._SCANNING_FOR_INCOMING:if(a.getEdgeRing()!==e)continue;n=a,r=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(o.getEdgeRing()!==e)continue;n.setNextMin(o),r=this._SCANNING_FOR_INCOMING}}r===this._LINKING_TO_OUTGOING&&(F.isTrue(null!==t,"found null for first outgoing dirEdge"),F.isTrue(t.getEdgeRing()===e,"unable to link last incoming dirEdge"),n.setNextMin(t))}},{key:"getOutgoingDegree",value:function(){if(0===arguments.length){for(var e=0,t=this.iterator();t.hasNext();)t.next().isInResult()&&e++;return e}if(1===arguments.length){for(var n=arguments[0],r=0,i=this.iterator();i.hasNext();)i.next().getEdgeRing()===n&&r++;return r}}},{key:"getLabel",value:function(){return this._label}},{key:"findCoveredLineEdges",value:function(){for(var e=G.NONE,t=this.iterator();t.hasNext();){var n=t.next(),r=n.getSym();if(!n.isLineEdge()){if(n.isInResult()){e=G.INTERIOR;break}if(r.isInResult()){e=G.EXTERIOR;break}}}if(e===G.NONE)return null;for(var i=e,o=this.iterator();o.hasNext();){var a=o.next(),s=a.getSym();a.isLineEdge()?a.getEdge().setCovered(i===G.INTERIOR):(a.isInResult()&&(i=G.EXTERIOR),s.isInResult()&&(i=G.INTERIOR))}}},{key:"computeLabelling",value:function(e){d(r,"computeLabelling",this,1).call(this,e),this._label=new St(G.NONE);for(var t=this.iterator();t.hasNext();)for(var n=t.next().getEdge().getLabel(),i=0;i<2;i++){var o=n.getLocation(i);o!==G.INTERIOR&&o!==G.BOUNDARY||this._label.setLocation(i,G.INTERIOR)}}}],[{key:"constructor_",value:function(){this._resultAreaEdgeList=null,this._label=null,this._SCANNING_FOR_INCOMING=1,this._LINKING_TO_OUTGOING=2}}])}(jn),Ln=function(e){function r(){return n(this,r),t(this,r)}return c(r,e),o(r,[{key:"createNode",value:function(e){return new Ot(e,new Bn)}}])}(Vt),Fn=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"compareTo",value:function(t){var n=t;return e.compareOriented(this._pts,this._orientation,n._pts,n._orientation)}},{key:"interfaces_",get:function(){return[x]}}],[{key:"constructor_",value:function(){this._pts=null,this._orientation=null;var t=arguments[0];this._pts=t,this._orientation=e.orientation(t)}},{key:"orientation",value:function(e){return 1===We.increasingDirection(e)}},{key:"compareOriented",value:function(e,t,n,r){for(var i=t?1:-1,o=r?1:-1,a=t?e.length:-1,s=r?n.length:-1,l=t?0:e.length-1,c=r?0:n.length-1;;){var u=e[l].compareTo(n[c]);if(0!==u)return u;var h=(l+=i)===a,d=(c+=o)===s;if(h&&!d)return-1;if(!h&&d)return 1;if(h&&d)return 0}}}])}(),Nn=o((function e(){n(this,e),e.constructor_.apply(this,arguments)}),[{key:"print",value:function(e){e.print("MULTILINESTRING ( ");for(var t=0;t0&&e.print(","),e.print("(");for(var r=n.getCoordinates(),i=0;i0&&e.print(","),e.print(r[i].x+" "+r[i].y);e.println(")")}e.print(") ")}},{key:"addAll",value:function(e){for(var t=e.iterator();t.hasNext();)this.add(t.next())}},{key:"findEdgeIndex",value:function(e){for(var t=0;te?1:this.distt?1:0}},{key:"interfaces_",get:function(){return[x]}}],[{key:"constructor_",value:function(){this.coord=null,this.segmentIndex=null,this.dist=null;var e=arguments[0],t=arguments[1],n=arguments[2];this.coord=new V(e),this.segmentIndex=t,this.dist=n}}]),Un=o((function e(){n(this,e),e.constructor_.apply(this,arguments)}),[{key:"print",value:function(e){e.println("Intersections:");for(var t=this.iterator();t.hasNext();)t.next().print(e)}},{key:"iterator",value:function(){return this._nodeMap.values().iterator()}},{key:"addSplitEdges",value:function(e){this.addEndpoints();for(var t=this.iterator(),n=t.next();t.hasNext();){var r=t.next(),i=this.createSplitEdge(n,r);e.add(i),n=r}}},{key:"addEndpoints",value:function(){var e=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[e],e,0)}},{key:"createSplitEdge",value:function(e,t){var n=t.segmentIndex-e.segmentIndex+2,r=this.edge.pts[t.segmentIndex],i=t.dist>0||!t.coord.equals2D(r);i||n--;var o=new Array(n).fill(null),a=0;o[a++]=new V(e.coord);for(var s=e.segmentIndex+1;s<=t.segmentIndex;s++)o[a++]=this.edge.pts[s];return i&&(o[a]=t.coord),new Qn(o,new St(this.edge._label))}},{key:"add",value:function(e,t,n){var r=new Vn(e,t,n),i=this._nodeMap.get(r);return null!==i?i:(this._nodeMap.put(r,r),r)}},{key:"isIntersection",value:function(e){for(var t=this.iterator();t.hasNext();)if(t.next().coord.equals(e))return!0;return!1}}],[{key:"constructor_",value:function(){this._nodeMap=new Lt,this.edge=null;var e=arguments[0];this.edge=e}}]),Hn=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"isIntersects",value:function(){return!this.isDisjoint()}},{key:"isCovers",value:function(){return(e.isTrue(this._matrix[G.INTERIOR][G.INTERIOR])||e.isTrue(this._matrix[G.INTERIOR][G.BOUNDARY])||e.isTrue(this._matrix[G.BOUNDARY][G.INTERIOR])||e.isTrue(this._matrix[G.BOUNDARY][G.BOUNDARY]))&&this._matrix[G.EXTERIOR][G.INTERIOR]===ke.FALSE&&this._matrix[G.EXTERIOR][G.BOUNDARY]===ke.FALSE}},{key:"isCoveredBy",value:function(){return(e.isTrue(this._matrix[G.INTERIOR][G.INTERIOR])||e.isTrue(this._matrix[G.INTERIOR][G.BOUNDARY])||e.isTrue(this._matrix[G.BOUNDARY][G.INTERIOR])||e.isTrue(this._matrix[G.BOUNDARY][G.BOUNDARY]))&&this._matrix[G.INTERIOR][G.EXTERIOR]===ke.FALSE&&this._matrix[G.BOUNDARY][G.EXTERIOR]===ke.FALSE}},{key:"set",value:function(){if(1===arguments.length)for(var e=arguments[0],t=0;t=0&&t>=0&&this.setAtLeast(e,t,n)}},{key:"isWithin",value:function(){return e.isTrue(this._matrix[G.INTERIOR][G.INTERIOR])&&this._matrix[G.INTERIOR][G.EXTERIOR]===ke.FALSE&&this._matrix[G.BOUNDARY][G.EXTERIOR]===ke.FALSE}},{key:"isTouches",value:function(t,n){return t>n?this.isTouches(n,t):(t===ke.A&&n===ke.A||t===ke.L&&n===ke.L||t===ke.L&&n===ke.A||t===ke.P&&n===ke.A||t===ke.P&&n===ke.L)&&this._matrix[G.INTERIOR][G.INTERIOR]===ke.FALSE&&(e.isTrue(this._matrix[G.INTERIOR][G.BOUNDARY])||e.isTrue(this._matrix[G.BOUNDARY][G.INTERIOR])||e.isTrue(this._matrix[G.BOUNDARY][G.BOUNDARY]))}},{key:"isOverlaps",value:function(t,n){return t===ke.P&&n===ke.P||t===ke.A&&n===ke.A?e.isTrue(this._matrix[G.INTERIOR][G.INTERIOR])&&e.isTrue(this._matrix[G.INTERIOR][G.EXTERIOR])&&e.isTrue(this._matrix[G.EXTERIOR][G.INTERIOR]):t===ke.L&&n===ke.L&&1===this._matrix[G.INTERIOR][G.INTERIOR]&&e.isTrue(this._matrix[G.INTERIOR][G.EXTERIOR])&&e.isTrue(this._matrix[G.EXTERIOR][G.INTERIOR])}},{key:"isEquals",value:function(t,n){return t===n&&e.isTrue(this._matrix[G.INTERIOR][G.INTERIOR])&&this._matrix[G.INTERIOR][G.EXTERIOR]===ke.FALSE&&this._matrix[G.BOUNDARY][G.EXTERIOR]===ke.FALSE&&this._matrix[G.EXTERIOR][G.INTERIOR]===ke.FALSE&&this._matrix[G.EXTERIOR][G.BOUNDARY]===ke.FALSE}},{key:"toString",value:function(){for(var e=new Je("123456789"),t=0;t<3;t++)for(var n=0;n<3;n++)e.setCharAt(3*t+n,ke.toDimensionSymbol(this._matrix[t][n]));return e.toString()}},{key:"setAll",value:function(e){for(var t=0;t<3;t++)for(var n=0;n<3;n++)this._matrix[t][n]=e}},{key:"get",value:function(e,t){return this._matrix[e][t]}},{key:"transpose",value:function(){var e=this._matrix[1][0];return this._matrix[1][0]=this._matrix[0][1],this._matrix[0][1]=e,e=this._matrix[2][0],this._matrix[2][0]=this._matrix[0][2],this._matrix[0][2]=e,e=this._matrix[2][1],this._matrix[2][1]=this._matrix[1][2],this._matrix[1][2]=e,this}},{key:"matches",value:function(t){if(9!==t.length)throw new b("Should be length 9: "+t);for(var n=0;n<3;n++)for(var r=0;r<3;r++)if(!e.matches(this._matrix[n][r],t.charAt(3*n+r)))return!1;return!0}},{key:"add",value:function(e){for(var t=0;t<3;t++)for(var n=0;n<3;n++)this.setAtLeast(t,n,e.get(t,n))}},{key:"isDisjoint",value:function(){return this._matrix[G.INTERIOR][G.INTERIOR]===ke.FALSE&&this._matrix[G.INTERIOR][G.BOUNDARY]===ke.FALSE&&this._matrix[G.BOUNDARY][G.INTERIOR]===ke.FALSE&&this._matrix[G.BOUNDARY][G.BOUNDARY]===ke.FALSE}},{key:"isCrosses",value:function(t,n){return t===ke.P&&n===ke.L||t===ke.P&&n===ke.A||t===ke.L&&n===ke.A?e.isTrue(this._matrix[G.INTERIOR][G.INTERIOR])&&e.isTrue(this._matrix[G.INTERIOR][G.EXTERIOR]):t===ke.L&&n===ke.P||t===ke.A&&n===ke.P||t===ke.A&&n===ke.L?e.isTrue(this._matrix[G.INTERIOR][G.INTERIOR])&&e.isTrue(this._matrix[G.EXTERIOR][G.INTERIOR]):t===ke.L&&n===ke.L&&0===this._matrix[G.INTERIOR][G.INTERIOR]}},{key:"interfaces_",get:function(){return[w]}}],[{key:"constructor_",value:function(){if(this._matrix=null,0===arguments.length)this._matrix=Array(3).fill().map((function(){return Array(3)})),this.setAll(ke.FALSE);else if(1===arguments.length)if("string"==typeof arguments[0]){var t=arguments[0];e.constructor_.call(this),this.set(t)}else if(arguments[0]instanceof e){var n=arguments[0];e.constructor_.call(this),this._matrix[G.INTERIOR][G.INTERIOR]=n._matrix[G.INTERIOR][G.INTERIOR],this._matrix[G.INTERIOR][G.BOUNDARY]=n._matrix[G.INTERIOR][G.BOUNDARY],this._matrix[G.INTERIOR][G.EXTERIOR]=n._matrix[G.INTERIOR][G.EXTERIOR],this._matrix[G.BOUNDARY][G.INTERIOR]=n._matrix[G.BOUNDARY][G.INTERIOR],this._matrix[G.BOUNDARY][G.BOUNDARY]=n._matrix[G.BOUNDARY][G.BOUNDARY],this._matrix[G.BOUNDARY][G.EXTERIOR]=n._matrix[G.BOUNDARY][G.EXTERIOR],this._matrix[G.EXTERIOR][G.INTERIOR]=n._matrix[G.EXTERIOR][G.INTERIOR],this._matrix[G.EXTERIOR][G.BOUNDARY]=n._matrix[G.EXTERIOR][G.BOUNDARY],this._matrix[G.EXTERIOR][G.EXTERIOR]=n._matrix[G.EXTERIOR][G.EXTERIOR]}}},{key:"matches",value:function(){if(Number.isInteger(arguments[0])&&"string"==typeof arguments[1]){var t=arguments[0],n=arguments[1];return n===ke.SYM_DONTCARE||n===ke.SYM_TRUE&&(t>=0||t===ke.TRUE)||n===ke.SYM_FALSE&&t===ke.FALSE||n===ke.SYM_P&&t===ke.P||n===ke.SYM_L&&t===ke.L||n===ke.SYM_A&&t===ke.A}if("string"==typeof arguments[0]&&"string"==typeof arguments[1]){var r=arguments[1];return new e(arguments[0]).matches(r)}}},{key:"isTrue",value:function(e){return e>=0||e===ke.TRUE}}])}(),qn=function(){function e(){n(this,e),e.constructor_.apply(this,arguments)}return o(e,[{key:"size",value:function(){return this._size}},{key:"addAll",value:function(e){return null===e||0===e.length?null:(this.ensureCapacity(this._size+e.length),ve.arraycopy(e,0,this._data,this._size,e.length),void(this._size+=e.length))}},{key:"ensureCapacity",value:function(e){if(e<=this._data.length)return null;var t=Math.max(e,2*this._data.length);this._data=De.copyOf(this._data,t)}},{key:"toArray",value:function(){var e=new Array(this._size).fill(null);return ve.arraycopy(this._data,0,e,0,this._size),e}},{key:"add",value:function(e){this.ensureCapacity(this._size+1),this._data[this._size]=e,++this._size}}],[{key:"constructor_",value:function(){if(this._data=null,this._size=0,0===arguments.length)e.constructor_.call(this,10);else if(1===arguments.length){var t=arguments[0];this._data=new Array(t).fill(null)}}}])}(),Gn=function(){function e(){n(this,e)}return o(e,[{key:"getChainStartIndices",value:function(e){var t=0,n=new qn(Math.trunc(e.length/2));n.add(t);do{var r=this.findChainEnd(e,t);n.add(r),t=r}while(tn?t:n}},{key:"getMinX",value:function(e){var t=this.pts[this.startIndex[e]].x,n=this.pts[this.startIndex[e+1]].x;return tt&&(r=1),this._depth[e][n]=r}}}},{key:"getDelta",value:function(e){return this._depth[e][K.RIGHT]-this._depth[e][K.LEFT]}},{key:"getLocation",value:function(e,t){return this._depth[e][t]<=0?G.EXTERIOR:G.INTERIOR}},{key:"toString",value:function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]}},{key:"add",value:function(){if(1===arguments.length)for(var t=arguments[0],n=0;n<2;n++)for(var r=1;r<3;r++){var i=t.getLocation(n,r);i!==G.EXTERIOR&&i!==G.INTERIOR||(this.isNull(n,r)?this._depth[n][r]=e.depthAtLocation(i):this._depth[n][r]+=e.depthAtLocation(i))}else if(3===arguments.length){var o=arguments[0],a=arguments[1];arguments[2]===G.INTERIOR&&this._depth[o][a]++}}}],[{key:"constructor_",value:function(){this._depth=Array(2).fill().map((function(){return Array(3)}));for(var t=0;t<2;t++)for(var n=0;n<3;n++)this._depth[t][n]=e.NULL_VALUE}},{key:"depthAtLocation",value:function(t){return t===G.EXTERIOR?0:t===G.INTERIOR?1:e.NULL_VALUE}}])}();Wn.NULL_VALUE=-1;var Qn=function(e){function r(){var e;return n(this,r),e=t(this,r),r.constructor_.apply(e,arguments),e}return c(r,e),o(r,[{key:"getDepth",value:function(){return this._depth}},{key:"getCollapsedEdge",value:function(){var e=new Array(2).fill(null);return e[0]=this.pts[0],e[1]=this.pts[1],new r(e,St.toLineLabel(this._label))}},{key:"isIsolated",value:function(){return this._isIsolated}},{key:"getCoordinates",value:function(){return this.pts}},{key:"setIsolated",value:function(e){this._isIsolated=e}},{key:"setName",value:function(e){this._name=e}},{key:"equals",value:function(e){if(!(e instanceof r))return!1;var t=e;if(this.pts.length!==t.pts.length)return!1;for(var n=!0,i=!0,o=this.pts.length,a=0;a0?this.pts[0]:null;if(1===arguments.length){var e=arguments[0];return this.pts[e]}}},{key:"print",value:function(e){e.print("edge "+this._name+": "),e.print("LINESTRING (");for(var t=0;t0&&e.print(","),e.print(this.pts[t].x+" "+this.pts[t].y);e.print(") "+this._label+" "+this._depthDelta)}},{key:"computeIM",value:function(e){r.updateIM(this._label,e)}},{key:"isCollapsed",value:function(){return!!this._label.isArea()&&3===this.pts.length&&!!this.pts[0].equals(this.pts[2])}},{key:"isClosed",value:function(){return this.pts[0].equals(this.pts[this.pts.length-1])}},{key:"getMaximumSegmentIndex",value:function(){return this.pts.length-1}},{key:"getDepthDelta",value:function(){return this._depthDelta}},{key:"getNumPoints",value:function(){return this.pts.length}},{key:"printReverse",value:function(e){e.print("edge "+this._name+": ");for(var t=this.pts.length-1;t>=0;t--)e.print(this.pts[t]+" ");e.println("")}},{key:"getMonotoneChainEdge",value:function(){return null===this._mce&&(this._mce=new Yn(this)),this._mce}},{key:"getEnvelope",value:function(){if(null===this._env){this._env=new H;for(var e=0;e0&&e.append(","),e.append(this.pts[t].x+" "+this.pts[t].y);return e.append(") "+this._label+" "+this._depthDelta),e.toString()}},{key:"isPointwiseEqual",value:function(e){if(this.pts.length!==e.pts.length)return!1;for(var t=0;tr||this._maxyo;if(a)return!1;var s=this.intersectsToleranceSquare(e,t);return F.isTrue(!(a&&s),"Found bad envelope test"),s}},{key:"initCorners",value:function(e){var t=.5;this._minx=e.x-t,this._maxx=e.x+t,this._miny=e.y-t,this._maxy=e.y+t,this._corner[0]=new V(this._maxx,this._maxy),this._corner[1]=new V(this._minx,this._maxy),this._corner[2]=new V(this._minx,this._miny),this._corner[3]=new V(this._maxx,this._miny)}},{key:"intersects",value:function(e,t){return 1===this._scaleFactor?this.intersectsScaled(e,t):(this.copyScaled(e,this._p0Scaled),this.copyScaled(t,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))}},{key:"scale",value:function(e){return Math.round(e*this._scaleFactor)}},{key:"getCoordinate",value:function(){return this._originalPt}},{key:"copyScaled",value:function(e,t){t.x=this.scale(e.x),t.y=this.scale(e.y)}},{key:"getSafeEnvelope",value:function(){if(null===this._safeEnv){var t=e.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new H(this._originalPt.x-t,this._originalPt.x+t,this._originalPt.y-t,this._originalPt.y+t)}return this._safeEnv}},{key:"intersectsPixelClosure",value:function(e,t){return this._li.computeIntersection(e,t,this._corner[0],this._corner[1]),!!(this._li.hasIntersection()||(this._li.computeIntersection(e,t,this._corner[1],this._corner[2]),this._li.hasIntersection()||(this._li.computeIntersection(e,t,this._corner[2],this._corner[3]),this._li.hasIntersection()||(this._li.computeIntersection(e,t,this._corner[3],this._corner[0]),this._li.hasIntersection()))))}},{key:"intersectsToleranceSquare",value:function(e,t){var n=!1,r=!1;return this._li.computeIntersection(e,t,this._corner[0],this._corner[1]),!!(this._li.isProper()||(this._li.computeIntersection(e,t,this._corner[1],this._corner[2]),this._li.isProper()||(this._li.hasIntersection()&&(n=!0),this._li.computeIntersection(e,t,this._corner[2],this._corner[3]),this._li.isProper()||(this._li.hasIntersection()&&(r=!0),this._li.computeIntersection(e,t,this._corner[3],this._corner[0]),this._li.isProper()||n&&r||e.equals(this._pt)||t.equals(this._pt)))))}},{key:"addSnappedNode",value:function(e,t){var n=e.getCoordinate(t),r=e.getCoordinate(t+1);return!!this.intersects(n,r)&&(e.addIntersection(this.getCoordinate(),t),!0)}}],[{key:"constructor_",value:function(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=new Array(4).fill(null),this._safeEnv=null;var e=arguments[0],t=arguments[1],n=arguments[2];if(this._originalPt=e,this._pt=e,this._scaleFactor=t,this._li=n,t<=0)throw new b("Scale factor must be non-zero");1!==t&&(this._pt=new V(this.scale(e.x),this.scale(e.y)),this._p0Scaled=new V,this._p1Scaled=new V),this.initCorners(this._pt)}}])}();Kn.SAFE_ENV_EXPANSION_FACTOR=.75;var $n=o((function e(){n(this,e),e.constructor_.apply(this,arguments)}),[{key:"select",value:function(){if(1===arguments.length);else if(2===arguments.length){var e=arguments[1];arguments[0].getLineSegment(e,this.selectedSegment),this.select(this.selectedSegment)}}}],[{key:"constructor_",value:function(){this.selectedSegment=new dn}}]),er=o((function e(){n(this,e),e.constructor_.apply(this,arguments)}),[{key:"snap",value:function(){if(1===arguments.length){var e=arguments[0];return this.snap(e,null,-1)}if(3===arguments.length){var t=arguments[0],r=arguments[1],i=arguments[2],a=t.getSafeEnvelope(),s=new tr(t,r,i);return this._index.query(a,new(o((function e(){n(this,e)}),[{key:"interfaces_",get:function(){return[Kt]}},{key:"visitItem",value:function(e){e.select(a,s)}}]))),s.isNodeAdded()}}}],[{key:"constructor_",value:function(){this._index=null;var e=arguments[0];this._index=e}}]),tr=function(e){function r(){var e;return n(this,r),e=t(this,r),r.constructor_.apply(e,arguments),e}return c(r,e),o(r,[{key:"isNodeAdded",value:function(){return this._isNodeAdded}},{key:"select",value:function(){if(!(2===arguments.length&&Number.isInteger(arguments[1])&&arguments[0]instanceof pn))return d(r,"select",this,1).apply(this,arguments);var e=arguments[1],t=arguments[0].getContext();if(this._parentEdge===t&&(e===this._hotPixelVertexIndex||e+1===this._hotPixelVertexIndex))return null;this._isNodeAdded|=this._hotPixel.addSnappedNode(t,e)}}],[{key:"constructor_",value:function(){this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var e=arguments[0],t=arguments[1],n=arguments[2];this._hotPixel=e,this._parentEdge=t,this._hotPixelVertexIndex=n}}])}($n);er.HotPixelSnapAction=tr;var nr=o((function e(){n(this,e),e.constructor_.apply(this,arguments)}),[{key:"processIntersections",value:function(e,t,n,r){if(e===n&&t===r)return null;var i=e.getCoordinates()[t],o=e.getCoordinates()[t+1],a=n.getCoordinates()[r],s=n.getCoordinates()[r+1];if(this._li.computeIntersection(i,o,a,s),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var l=0;l=0;t--){try{this.bufferReducedPrecision(t)}catch(e){if(!(e instanceof de))throw e;this._saveException=e}if(null!==this._resultGeometry)return null}throw this._saveException}if(1===arguments.length){var n=arguments[0],r=e.precisionScaleFactor(this._argGeom,this._distance,n),i=new nt(r);this.bufferFixedPrecision(i)}}},{key:"computeGeometry",value:function(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;var e=this._argGeom.getFactory().getPrecisionModel();e.getType()===nt.FIXED?this.bufferFixedPrecision(e):this.bufferReducedPrecision()}},{key:"setQuadrantSegments",value:function(e){this._bufParams.setQuadrantSegments(e)}},{key:"bufferOriginalPrecision",value:function(){try{var e=new Xn(this._bufParams);this._resultGeometry=e.buffer(this._argGeom,this._distance)}catch(e){if(!(e instanceof B))throw e;this._saveException=e}}},{key:"getResultGeometry",value:function(e){return this._distance=e,this.computeGeometry(),this._resultGeometry}},{key:"setEndCapStyle",value:function(e){this._bufParams.setEndCapStyle(e)}}],[{key:"constructor_",value:function(){if(this._argGeom=null,this._distance=null,this._bufParams=new y,this._resultGeometry=null,this._saveException=null,1===arguments.length){var e=arguments[0];this._argGeom=e}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this._argGeom=t,this._bufParams=n}}},{key:"bufferOp",value:function(){if(2===arguments.length){var t=arguments[1];return new e(arguments[0]).getResultGeometry(t)}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof q&&"number"==typeof arguments[1]){var n=arguments[1],r=arguments[2],i=new e(arguments[0]);return i.setQuadrantSegments(r),i.getResultGeometry(n)}if(arguments[2]instanceof y&&arguments[0]instanceof q&&"number"==typeof arguments[1]){var o=arguments[1];return new e(arguments[0],arguments[2]).getResultGeometry(o)}}else if(4===arguments.length){var a=arguments[1],s=arguments[2],l=arguments[3],c=new e(arguments[0]);return c.setQuadrantSegments(s),c.setEndCapStyle(l),c.getResultGeometry(a)}}},{key:"precisionScaleFactor",value:function(e,t,n){var r=e.getEnvelopeInternal(),i=be.max(Math.abs(r.getMaxX()),Math.abs(r.getMaxY()),Math.abs(r.getMinX()),Math.abs(r.getMinY()))+2*(t>0?t:0),o=n-Math.trunc(Math.log(i)/Math.log(10)+1);return Math.pow(10,o)}}])}();ir.CAP_ROUND=y.CAP_ROUND,ir.CAP_BUTT=y.CAP_FLAT,ir.CAP_FLAT=y.CAP_FLAT,ir.CAP_SQUARE=y.CAP_SQUARE,ir.MAX_PRECISION_DIGITS=12;var or=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],ar=o((function e(t){n(this,e),this.geometryFactory=t||new ot}),[{key:"read",value:function(e){var t,n=(t="string"==typeof e?JSON.parse(e):e).type;if(!sr[n])throw new Error("Unknown GeoJSON type: "+t.type);return-1!==or.indexOf(n)?sr[n].call(this,t.coordinates):"GeometryCollection"===n?sr[n].call(this,t.geometries):sr[n].call(this,t)}},{key:"write",value:function(e){var t=e.getGeometryType();if(!lr[t])throw new Error("Geometry is not supported");return lr[t].call(this,e)}}]),sr={Feature:function(e){var t={};for(var n in e)t[n]=e[n];if(e.geometry){var r=e.geometry.type;if(!sr[r])throw new Error("Unknown GeoJSON type: "+e.type);t.geometry=this.read(e.geometry)}return e.bbox&&(t.bbox=sr.bbox.call(this,e.bbox)),t},FeatureCollection:function(e){var t={};if(e.features){t.features=[];for(var n=0;n{"use strict";var r=n(57003),i=[ReferenceError,TypeError,RangeError],o=!1;function a(){o=!1,r._37=null,r._87=null}function s(e,t){return t.some((function(t){return e instanceof t}))}t.disable=a,t.enable=function(e){e=e||{},o&&a(),o=!0;var t=0,n=0,l={};function c(t){(e.allRejections||s(l[t].error,e.whitelist||i))&&(l[t].displayId=n++,e.onUnhandled?(l[t].logged=!0,e.onUnhandled(l[t].displayId,l[t].error)):(l[t].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(l[t].displayId,l[t].error)))}r._37=function(t){2===t._65&&l[t._51]&&(l[t._51].logged?function(t){l[t].logged&&(e.onHandled?e.onHandled(l[t].displayId,l[t].error):l[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+l[t].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+l[t].displayId+".")))}(t._51):clearTimeout(l[t._51].timeout),delete l[t._51])},r._87=function(e,n){0===e._40&&(e._51=t++,l[e._51]={displayId:null,error:n,timeout:setTimeout(c.bind(null,e._51),s(n,i)?100:2e3),logged:!1})}}},53343:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get("/debug")]}))}))},e}();t.default=i},53432:(e,t,n)=>{"use strict";var r=n(38452),i=n(10487),o=n(38268),a=n(52521),s=n(98599),l=i(a());r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},53481:function(e,t){!function(e){"use strict";function t(e){var t,n,r,i;for(n=1,r=arguments.length;n0?Math.floor(e):Math.ceil(e)};function P(e,t,n){return e instanceof R?e:g(e)?new R(e[0],e[1]):null==e?e:"object"==typeof e&&"x"in e&&"y"in e?new R(e.x,e.y):new R(e,t,n)}function D(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=j(e);var t=this.min,n=this.max,r=e.min,i=e.max,o=i.x>=t.x&&r.x<=n.x,a=i.y>=t.y&&r.y<=n.y;return o&&a},overlaps:function(e){e=j(e);var t=this.min,n=this.max,r=e.min,i=e.max,o=i.x>t.x&&r.xt.y&&r.y=r.lat&&n.lat<=i.lat&&t.lng>=r.lng&&n.lng<=i.lng},intersects:function(e){e=F(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),o=i.lat>=t.lat&&r.lat<=n.lat,a=i.lng>=t.lng&&r.lng<=n.lng;return o&&a},overlaps:function(e){e=F(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),o=i.lat>t.lat&&r.latt.lng&&r.lng1,Ie=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",l,t),window.removeEventListener("testPassiveEventSupport",l,t)}catch(e){}return e}(),Oe=!!document.createElement("canvas").getContext,Re=!(!document.createElementNS||!X("svg").createSVGRect),Me=!!Re&&((Z=document.createElement("div")).innerHTML="","http://www.w3.org/2000/svg"===(Z.firstChild&&Z.firstChild.namespaceURI)),Pe=!Re&&function(){try{var e=document.createElement("div");e.innerHTML='';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"==typeof t.adj}catch(e){return!1}}();function De(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var je={ie:$,ielt9:ee,edge:te,webkit:ne,android:re,android23:ie,androidStock:ae,opera:se,chrome:le,gecko:ce,safari:ue,phantom:he,opera12:de,win:fe,ie3d:pe,webkit3d:me,gecko3d:ge,any3d:ye,mobile:ve,mobileWebkit:be,mobileWebkit3d:Ae,msPointer:xe,pointer:we,touch:Se,touchNative:Ce,mobileOpera:Ee,mobileGecko:ke,retina:Te,passiveEvents:Ie,canvas:Oe,svg:Re,vml:Pe,inlineSvg:Me,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Be=je.msPointer?"MSPointerDown":"pointerdown",Le=je.msPointer?"MSPointerMove":"pointermove",Fe=je.msPointer?"MSPointerUp":"pointerup",Ne=je.msPointer?"MSPointerCancel":"pointercancel",_e={touchstart:Be,touchmove:Le,touchend:Fe,touchcancel:Ne},ze={touchstart:function(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Ft(t),We(e,t)},touchmove:We,touchend:We,touchcancel:We},Ve={},Ue=!1;function He(e,t,n){return"touchstart"===t&&(Ue||(document.addEventListener(Be,qe,!0),document.addEventListener(Le,Ge,!0),document.addEventListener(Fe,Ye,!0),document.addEventListener(Ne,Ye,!0),Ue=!0)),ze[t]?(n=ze[t].bind(this,n),e.addEventListener(_e[t],n,!1),n):(console.warn("wrong event specified:",t),l)}function qe(e){Ve[e.pointerId]=e}function Ge(e){Ve[e.pointerId]&&(Ve[e.pointerId]=e)}function Ye(e){delete Ve[e.pointerId]}function We(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in t.touches=[],Ve)t.touches.push(Ve[n]);t.changedTouches=[t],e(t)}}var Qe,Xe,Je,Ze,Ke,$e=mt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),et=mt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),tt="webkitTransition"===et||"OTransition"===et?et+"End":"transitionend";function nt(e){return"string"==typeof e?document.getElementById(e):e}function rt(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}function it(e,t,n){var r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}function ot(e){var t=e.parentNode;t&&t.removeChild(e)}function at(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function st(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function lt(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function ct(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=ft(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function ut(e,t){if(void 0!==e.classList)for(var n=h(t),r=0,i=n.length;r0?2*window.devicePixelRatio:1;function Ut(e){return je.edge?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/Vt:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}function Ht(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(e){return!1}return n!==e}var qt={__proto__:null,on:Tt,off:Ot,stopPropagation:jt,disableScrollPropagation:Bt,disableClickPropagation:Lt,preventDefault:Ft,stop:Nt,getPropagationPath:_t,getMousePosition:zt,getWheelDelta:Ut,isExternalTarget:Ht,addListener:Tt,removeListener:Ot},Gt=O.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=vt(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=S(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;tthis.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,F(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=P((t=t||{}).paddingTopLeft||t.padding||[0,0]),r=P(t.paddingBottomRight||t.padding||[0,0]),i=this.project(this.getCenter()),o=this.project(e),a=this.getPixelBounds(),s=j([a.min.add(n),a.max.subtract(r)]),l=s.getSize();if(!s.contains(o)){this._enforcingBounds=!0;var c=o.subtract(s.getCenter()),u=s.extend(o).getSize().subtract(l);i.x+=c.x<0?-u.x:u.x,i.y+=c.y<0?-u.y:u.y,this.panTo(this.unproject(i),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=t({animate:!1,pan:!0},!0===e?{animate:!0}:e);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),o=n.divideBy(2).round(),a=i.divideBy(2).round(),s=o.subtract(a);return s.x||s.y?(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:i})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=t({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=r(this._handleGeolocationResponse,this),i=r(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,i,e):navigator.geolocation.getCurrentPosition(n,i,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=new N(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),r=this._locateOptions;if(r.setView){var i=this.getBoundsZoom(n);this.setView(t,r.maxZoom?Math.min(i,r.maxZoom):i)}var o={latlng:t,bounds:n,timestamp:e.timestamp};for(var a in e.coords)"number"==typeof e.coords[a]&&(o[a]=e.coords[a]);this.fire("locationfound",o)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ot(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)ot(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=it("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new B(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=F(e),n=P(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),o=this.getMaxZoom(),a=e.getNorthWest(),s=e.getSouthEast(),l=this.getSize().subtract(n),c=j(this.project(s,r),this.project(a,r)).getSize(),u=je.any3d?this.options.zoomSnap:1,h=l.x/c.x,d=l.y/c.y,f=t?Math.max(h,d):Math.min(h,d);return r=this.getScaleZoom(f,r),u&&(r=Math.round(r/(u/100))*(u/100),r=t?Math.ceil(r/u)*u:Math.floor(r/u)*u),Math.max(i,Math.min(o,r))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new R(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new D(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"==typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(_(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(P(e),t)},layerPointToLatLng:function(e){var t=P(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(_(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(_(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(F(e))},distance:function(e,t){return this.options.crs.distance(_(e),_(t))},containerPointToLayerPoint:function(e){return P(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return P(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(P(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(_(e)))},mouseEventToContainerPoint:function(e){return zt(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=nt(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");Tt(t,"scroll",this._onScroll,this),this._containerId=o(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&je.any3d,ut(e,"leaflet-container"+(je.touch?" leaflet-touch":"")+(je.retina?" leaflet-retina":"")+(je.ielt9?" leaflet-oldie":"")+(je.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=rt(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&"sticky"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),yt(this._mapPane,new R(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ut(e.markerPane,"leaflet-zoom-hide"),ut(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t,n){yt(this._mapPane,new R(0,0));var r=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var i=this._zoom!==t;this._moveStart(i,n)._move(e,t)._moveEnd(i),this.fire("viewreset"),r&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n,r){void 0===t&&(t=this._zoom);var i=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),r?n&&n.pinch&&this.fire("zoom",n):((i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){yt(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={},this._targets[o(this._container)]=this;var t=e?Ot:Tt;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),je.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=S((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,r=[],i="mouseout"===t||"mouseover"===t,a=e.target||e.srcElement,s=!1;a;){if((n=this._targets[o(a)])&&("click"===t||"preclick"===t)&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(t,!0)){if(i&&!Ht(a,e))break;if(r.push(n),i)break}if(a===this._container)break;a=a.parentNode}return r.length||s||i||!this.listens(t,!0)||(r=[this]),r},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(t))){var n=e.type;"mousedown"===n&&wt(t),this._fireDOMEvent(e,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,n,r){if("click"===e.type){var i=t({},e);i.type="preclick",this._fireDOMEvent(i,i.type,r)}var o=this._findEventTargets(e,n);if(r){for(var a=[],s=0;s0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=je.any3d?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ht(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(n)||(this.panBy(n,t),0))},_createAnimProxy:function(){var e=this._proxy=it("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=$e,n=this._proxy.style[t];gt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ot(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();gt(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),i=this._getCenterOffset(e)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(i)||(S((function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(e,t,!0)}),this),0))},_animateZoom:function(e,t,n,i){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,ut(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:i}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ht(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});var Wt=T.extend({options:{position:"topright"},initialize:function(e){d(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return ut(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ot(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),Qt=function(e){return new Wt(e)};Yt.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=it("div",t+"control-container",this._container);function r(r,i){var o=t+r+" "+t+i;e[r+i]=it("div",o,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)ot(this._controlCorners[e]);ot(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Xt=Wt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(o(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n='",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(e){var t,n=document.createElement("label"),r=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=r):t=this._createRadioElement("leaflet-base-layers_"+o(this),r),this._layerControlInputs.push(t),t.layerId=o(e.layer),Tt(t,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+e.name;var a=document.createElement("span");return n.appendChild(a),a.appendChild(t),a.appendChild(i),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var e,t,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)e=n[o],t=this._getLayer(e.layerId).layer,e.checked?r.push(t):e.checked||i.push(t);for(o=0;o=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&rt.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,Tt(e,"click",Ft),this.expand();var t=this;setTimeout((function(){Ot(e,"click",Ft),t._preventClick=!1}))}}),Jt=Wt.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=it("div",t+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,i){var o=it("a",n,r);return o.innerHTML=e,o.href="#",o.title=t,o.setAttribute("role","button"),o.setAttribute("aria-label",t),Lt(o),Tt(o,"click",Nt),Tt(o,"click",i,this),Tt(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";ht(this._zoomInButton,t),ht(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(ut(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(ut(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}});Yt.mergeOptions({zoomControl:!0}),Yt.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Jt,this.addControl(this.zoomControl))}));var Zt=Wt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=it("div",t),r=this.options;return this._addScales(r,t+"-line",n),e.on(r.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=it("div",t,n)),e.imperial&&(this._iScale=it("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,r,i=3.2808399*e;i>5280?(t=i/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(r=this._getRoundNum(i),this._updateScale(this._iScale,r+" ft",r/i))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),Kt=Wt.extend({options:{position:"bottomright",prefix:''+(je.inlineSvg?' ':"")+"Leaflet"},initialize:function(e){d(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=it("div","leaflet-control-attribution"),Lt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",(function(){this.removeAttribution(e.layer.getAttribution())}),this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(' ')}}});Yt.mergeOptions({attributionControl:!0}),Yt.addInitHook((function(){this.options.attributionControl&&(new Kt).addTo(this)}));Wt.Layers=Xt,Wt.Zoom=Jt,Wt.Scale=Zt,Wt.Attribution=Kt,Qt.layers=function(e,t,n){return new Xt(e,t,n)},Qt.zoom=function(e){return new Jt(e)},Qt.scale=function(e){return new Zt(e)},Qt.attribution=function(e){return new Kt(e)};var $t=T.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});$t.addTo=function(e,t){return e.addHandler(t,this),this};var en={Events:I},tn=je.touch?"touchstart mousedown":"mousedown",nn=O.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){d(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||(Tt(this._dragStartTarget,tn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(nn._dragging===this&&this.finishDrag(!0),Ot(this._dragStartTarget,tn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!ct(this._element,"leaflet-zoom-anim")))if(e.touches&&1!==e.touches.length)nn._dragging===this&&this.finishDrag();else if(!(nn._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches||(nn._dragging=this,this._preventOutline&&wt(this._element),At(),Qe(),this._moving))){this.fire("down");var t=e.touches?e.touches[0]:e,n=St(this._element);this._startPoint=new R(t.clientX,t.clientY),this._startPos=vt(this._element),this._parentScale=Et(n);var r="mousedown"===e.type;Tt(document,r?"mousemove":"touchmove",this._onMove,this),Tt(document,r?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(e){if(this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new R(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)t&&(n.push(e[r]),i=r);return il&&(o=a,l=s);l>n&&(t[o]=1,hn(e,t,n,r,o),hn(e,t,n,o,i))}function dn(e,t,n,r,i){var o,a,s,l=r?sn:pn(e,n),c=pn(t,n);for(sn=c;;){if(!(l|c))return[e,t];if(l&c)return!1;s=pn(a=fn(e,t,o=l||c,n,i),n),o===l?(e=a,l=s):(t=a,c=s)}}function fn(e,t,n,r,i){var o,a,s=t.x-e.x,l=t.y-e.y,c=r.min,u=r.max;return 8&n?(o=e.x+s*(u.y-e.y)/l,a=u.y):4&n?(o=e.x+s*(c.y-e.y)/l,a=c.y):2&n?(o=u.x,a=e.y+l*(u.x-e.x)/s):1&n&&(o=c.x,a=e.y+l*(c.x-e.x)/s),new R(o,a,i)}function pn(e,t){var n=0;return e.xt.max.x&&(n|=2),e.yt.max.y&&(n|=8),n}function mn(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}function gn(e,t,n,r){var i,o=t.x,a=t.y,s=n.x-o,l=n.y-a,c=s*s+l*l;return c>0&&((i=((e.x-o)*s+(e.y-a)*l)/c)>1?(o=n.x,a=n.y):i>0&&(o+=s*i,a+=l*i)),s=e.x-o,l=e.y-a,r?s*s+l*l:new R(o,a)}function yn(e){return!g(e[0])||"object"!=typeof e[0][0]&&void 0!==e[0][0]}function vn(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),yn(e)}function bn(e,t){var n,r,i,o,a,s,l,c;if(!e||0===e.length)throw new Error("latlngs not passed");yn(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var u=_([0,0]),h=F(e);h.getNorthWest().distanceTo(h.getSouthWest())*h.getNorthEast().distanceTo(h.getNorthWest())<1700&&(u=an(e));var d=e.length,f=[];for(n=0;nr){l=(o-r)/i,c=[s.x-l*(s.x-a.x),s.y-l*(s.y-a.y)];break}var m=t.unproject(P(c));return _([m.lat+u.lat,m.lng+u.lng])}var An={__proto__:null,simplify:cn,pointToSegmentDistance:un,closestPointOnSegment:function(e,t,n){return gn(e,t,n)},clipSegment:dn,_getEdgeIntersection:fn,_getBitCode:pn,_sqClosestPointOnSegment:gn,isFlat:yn,_flat:vn,polylineCenter:bn},xn={project:function(e){return new R(e.lng,e.lat)},unproject:function(e){return new N(e.y,e.x)},bounds:new D([-180,-90],[180,90])},wn={R:6378137,R_MINOR:6356752.314245179,bounds:new D([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,i=this.R_MINOR/n,o=Math.sqrt(1-i*i),a=o*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/Math.pow((1-a)/(1+a),o/2);return r=-n*Math.log(Math.max(s,1e-10)),new R(e.lng*t*n,r)},unproject:function(e){for(var t,n=180/Math.PI,r=this.R,i=this.R_MINOR/r,o=Math.sqrt(1-i*i),a=Math.exp(-e.y/r),s=Math.PI/2-2*Math.atan(a),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)t=o*Math.sin(s),t=Math.pow((1-t)/(1+t),o/2),s+=c=Math.PI/2-2*Math.atan(a*t)-s;return new N(s*n,e.x*n/r)}},Cn={__proto__:null,LonLat:xn,Mercator:wn,SphericalMercator:q},Sn=t({},U,{code:"EPSG:3395",projection:wn,transformation:function(){var e=.5/(Math.PI*wn.R);return Y(e,.5,-e,.5)}()}),En=t({},U,{code:"EPSG:4326",projection:xn,transformation:Y(1/180,1,-1/180,.5)}),kn=t({},V,{projection:xn,transformation:Y(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});V.Earth=U,V.EPSG3395=Sn,V.EPSG3857=W,V.EPSG900913=Q,V.EPSG4326=En,V.Simple=kn;var Tn=O.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[o(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[o(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",(function(){t.off(n,this)}),this)}this.onAdd(t),this.fire("add"),t.fire("layeradd",{layer:this})}}});Yt.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=o(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=o(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return o(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?g(e)?e:[e]:[]).length;tthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()=2&&t[0]instanceof N&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){Fn.prototype._setLatLngs.call(this,e),yn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return yn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new R(t,t);if(e=new D(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var r,i=0,o=this._rings.length;ie.y!=r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(c=!c);return c||Fn.prototype._containsPoint.call(this,e,!0)}});var _n=On.extend({initialize:function(e,t){d(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,i=g(e)?e:e.features;if(i){for(t=0,n=i.length;t0&&i.push(i[0].slice()),i}function Yn(e,n){return e.feature?t({},e.feature,{geometry:n}):Wn(n)}function Wn(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var Qn={toGeoJSON:function(e){return Yn(this,{type:"Point",coordinates:qn(this.getLatLng(),e)})}};function Xn(e,t){return new _n(e,t)}Dn.include(Qn),Ln.include(Qn),Bn.include(Qn),Fn.include({toGeoJSON:function(e){var t=!yn(this._latlngs);return Yn(this,{type:(t?"Multi":"")+"LineString",coordinates:Gn(this._latlngs,t?1:0,!1,e)})}}),Nn.include({toGeoJSON:function(e){var t=!yn(this._latlngs),n=t&&!yn(this._latlngs[0]),r=Gn(this._latlngs,n?2:t?1:0,!0,e);return t||(r=[r]),Yn(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),In.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(n){t.push(n.toGeoJSON(e).geometry.coordinates)})),Yn(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,r=[];return this.eachLayer((function(t){if(t.toGeoJSON){var i=t.toGeoJSON(e);if(n)r.push(i.geometry);else{var o=Wn(i);"FeatureCollection"===o.type?r.push.apply(r,o.features):r.push(o)}}})),n?Yn(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var Jn=Xn,Zn=Tn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,n){this._url=e,this._bounds=F(t),d(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ut(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ot(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&st(this._image),this},bringToBack:function(){return this._map&<(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=F(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:it("img");ut(t,"leaflet-image-layer"),this._zoomAnimated&&ut(t,"leaflet-zoom-animated"),this.options.className&&ut(t,this.options.className),t.onselectstart=l,t.onmousemove=l,t.onload=r(this.fire,this,"load"),t.onerror=r(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;gt(this._image,n,t)},_reset:function(){var e=this._image,t=new D(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();yt(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){pt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),Kn=Zn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:it("video");if(ut(t,"leaflet-image-layer"),this._zoomAnimated&&ut(t,"leaflet-zoom-animated"),this.options.className&&ut(t,this.options.className),t.onselectstart=l,t.onmousemove=l,t.onloadeddata=r(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),i=[],o=0;o0?i:[t.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var a=0;ai?(t.height=i+"px",ut(e,o)):ht(e,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();yt(this._container,t.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var e=this._map,t=parseInt(rt(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+t,r=this._containerWidth,i=new R(this._containerLeft,-n-this._containerBottom);i._add(vt(this._container));var o=e.layerPointToContainerPoint(i),a=P(this.options.autoPanPadding),s=P(this.options.autoPanPaddingTopLeft||a),l=P(this.options.autoPanPaddingBottomRight||a),c=e.getSize(),u=0,h=0;o.x+r+l.x>c.x&&(u=o.x+r-c.x+l.x),o.x-u-s.x<0&&(u=o.x-s.x),o.y+n+l.y>c.y&&(h=o.y+n-c.y+l.y),o.y-h-s.y<0&&(h=o.y-s.y),(u||h)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([u,h]))}},_getAnchor:function(){return P(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Yt.mergeOptions({closePopupOnClick:!0}),Yt.include({openPopup:function(e,t,n){return this._initOverlay(tr,e,t,n).openOn(this),this},closePopup:function(e){return(e=arguments.length?e:this._popup)&&e.close(),this}}),Tn.include({bindPopup:function(e,t){return this._popup=this._initOverlay(tr,this._popup,e,t),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e){return this._popup&&(this instanceof On||(this._popup._source=this),this._popup._prepareOpen(e||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(this._popup&&this._map){Nt(e);var t=e.layer||e.target;this._popup._source!==t||t instanceof jn?(this._popup._source=t,this.openPopup(e.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var nr=er.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){er.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){er.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=er.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=it("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+o(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,r=this._map,i=this._container,o=r.latLngToContainerPoint(r.getCenter()),a=r.layerPointToContainerPoint(e),s=this.options.direction,l=i.offsetWidth,c=i.offsetHeight,u=P(this.options.offset),h=this._getAnchor();"top"===s?(t=l/2,n=c):"bottom"===s?(t=l/2,n=0):"center"===s?(t=l/2,n=c/2):"right"===s?(t=0,n=c/2):"left"===s?(t=l,n=c/2):a.xthis.options.maxZoom||nr&&this._retainParent(i,o,a,r))},_retainChildren:function(e,t,n,r){for(var i=2*e;i<2*e+2;i++)for(var o=2*t;o<2*t+2;o++){var a=new R(i,o);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1this.options.maxZoom||void 0!==this.options.minZoom&&i1)this._setView(e,n);else{for(var h=i.min.y;h<=i.max.y;h++)for(var d=i.min.x;d<=i.max.x;d++){var f=new R(d,h);if(f.z=this._tileZoom,this._isValidTile(f)){var p=this._tiles[this._tileCoordsToKey(f)];p?p.current=!0:a.push(f)}}if(a.sort((function(e,t){return e.distanceTo(o)-t.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;dn.max.x)||!t.wrapLat&&(e.yn.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(e);return F(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),i=r.add(n);return[t.unproject(r,e.z),t.unproject(i,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new B(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new R(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(ot(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){ut(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=l,e.onmousemove=l,je.ielt9&&this.options.opacity<1&&pt(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),i=this._tileCoordsToKey(e),o=this.createTile(this._wrapCoords(e),r(this._tileReady,this,e));this._initTile(o),this.createTile.length<2&&S(r(this._tileReady,this,e,null,o)),yt(o,n),this._tiles[i]={el:o,coords:e,current:!0},t.appendChild(o),this.fire("tileloadstart",{tile:o,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var i=this._tileCoordsToKey(e);(n=this._tiles[i])&&(n.loaded=+new Date,this._map._fadeAnimated?(pt(n.el,0),E(this._fadeFrame),this._fadeFrame=S(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(ut(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),je.ielt9||!this._map._fadeAnimated?S(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new R(this._wrapX?s(e.x,this._wrapX):e.x,this._wrapY?s(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new D(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});var or=ir.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,(t=d(this,t)).detectRetina&&je.retina&&t.maxZoom>0?(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom=Math.min(t.maxZoom,t.minZoom+1)):(t.zoomOffset++,t.maxZoom=Math.max(t.minZoom,t.maxZoom-1)),t.minZoom=Math.max(0,t.minZoom)):t.zoomReverse?t.minZoom=Math.min(t.maxZoom,t.minZoom):t.maxZoom=Math.max(t.minZoom,t.maxZoom),"string"==typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return Tt(n,"load",r(this._tileOnLoad,this,t,n)),Tt(n,"error",r(this._tileOnError,this,t,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(e),n},getTileUrl:function(e){var n={r:je.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;this.options.tms&&(n.y=r),n["-y"]=r}return m(this._url,t(n,this.options))},_tileOnLoad:function(e,t){je.ielt9?setTimeout(r(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute("src")!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=l,t.onerror=l,!t.complete)){t.src=v;var n=this._tiles[e].coords;ot(t),delete this._tiles[e],this.fire("tileabort",{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute("src",v),ir.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==v))return ir.prototype._tileReady.call(this,e,t,n)}});function ar(e,t){return new or(e,t)}var sr=or.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,n){this._url=e;var r=t({},this.defaultWmsParams);for(var i in n)i in this.options||(r[i]=n[i]);var o=(n=d(this,n)).detectRetina&&je.retina?2:1,a=this.getTileSize();r.width=a.x*o,r.height=a.y*o,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,or.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=j(n.project(t[0]),n.project(t[1])),i=r.min,o=r.max,a=(this._wmsVersion>=1.3&&this._crs===En?[i.y,i.x,o.y,o.x]:[i.x,i.y,o.x,o.y]).join(","),s=or.prototype.getTileUrl.call(this,e);return s+f(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(e,n){return t(this.wmsParams,e),n||this.redraw(),this}});or.WMS=sr,ar.wms=function(e,t){return new sr(e,t)};var lr=Tn.extend({options:{padding:.1},initialize:function(e){d(this,e),o(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ut(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,t),o=r.multiplyBy(-n).add(i).subtract(this._map._getNewPixelOrigin(e,t));je.any3d?gt(this._container,o,n):yt(this._container,o)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new D(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),cr=lr.extend({options:{tolerance:0},getEvents:function(){var e=lr.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){lr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");Tt(e,"mousemove",this._onMouseMove,this),Tt(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Tt(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,ot(this._container),Ot(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){lr.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=je.retina?2:1;yt(t,e.min),t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",je.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){lr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[o(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,r=t.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete e._order,delete this._layers[o(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"==typeof e.options.dashArray){var t,n,r=e.options.dashArray.split(/[, ]+/),i=[];for(n=0;n')}}catch(e){}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),dr={_initContainer:function(){this._container=it("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(lr.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=hr("shape");ut(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=hr("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[o(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;ot(t),e.removeInteractiveTarget(t),delete this._layers[o(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,i=e._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(t||(t=e._stroke=hr("stroke")),i.appendChild(t),t.weight=r.weight+"px",t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=g(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=r.lineCap.replace("butt","flat"),t.joinstyle=r.lineJoin):t&&(i.removeChild(t),e._stroke=null),r.fill?(n||(n=e._fill=hr("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+r+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){st(e._container)},_bringToBack:function(e){lt(e._container)}},fr=je.vml?hr:X,pr=lr.extend({_initContainer:function(){this._container=fr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=fr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ot(this._container),Ot(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){lr.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),yt(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=fr("path");e.options.className&&ut(t,e.options.className),e.options.interactive&&ut(t,"leaflet-interactive"),this._updateStyle(e),this._layers[o(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){ot(e._path),e.removeInteractiveTarget(e._path),delete this._layers[o(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,J(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",i=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(e,i)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){st(e._path)},_bringToBack:function(e){lt(e._path)}});function mr(e){return je.svg||je.vml?new pr(e):null}je.vml&&pr.include(dr),Yt.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&ur(e)||mr(e)}});var gr=Nn.extend({initialize:function(e,t){Nn.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=F(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});pr.create=fr,pr.pointsToPath=J,_n.geometryToLayer=zn,_n.coordsToLatLng=Un,_n.coordsToLatLngs=Hn,_n.latLngToCoords=qn,_n.latLngsToCoords=Gn,_n.getFeature=Yn,_n.asFeature=Wn,Yt.mergeOptions({boxZoom:!0});var yr=$t.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){Tt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ot(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ot(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),Qe(),At(),this._startPoint=this._map.mouseEventToContainerPoint(e),Tt(document,{contextmenu:Nt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=it("div","leaflet-zoom-box",this._container),ut(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new D(this._point,this._startPoint),n=t.getSize();yt(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(ot(this._box),ht(this._container,"leaflet-crosshair")),Xe(),xt(),Ot(document,{contextmenu:Nt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var t=new B(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Yt.addInitHook("addHandler","boxZoom",yr),Yt.mergeOptions({doubleClickZoom:!0});var vr=$t.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,i=e.originalEvent.shiftKey?n-r:n+r;"center"===t.options.doubleClickZoom?t.setZoom(i):t.setZoomAround(e.containerPoint,i)}});Yt.addInitHook("addHandler","doubleClickZoom",vr),Yt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var br=$t.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new nn(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}ut(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ht(this._map._container,"leaflet-grab"),ht(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=F(this._map.options.maxBounds);this._offsetLimit=j(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.xt.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-t+n)%e+t-n,o=(r+t+n)%e-t-n,a=Math.abs(i+n)0?o:-o))-t;this._delta=0,this._startTime=null,a&&("center"===e.options.scrollWheelZoom?e.setZoom(t+a):e.setZoomAround(this._lastMousePos,t+a))}});Yt.addInitHook("addHandler","scrollWheelZoom",xr);Yt.mergeOptions({tapHold:je.touchNative&&je.safari&&je.mobile,tapTolerance:15});var wr=$t.extend({addHooks:function(){Tt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ot(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),1===e.touches.length){var t=e.touches[0];this._startPos=this._newPos=new R(t.clientX,t.clientY),this._holdTimeout=setTimeout(r((function(){this._cancel(),this._isTapValid()&&(Tt(document,"touchend",Ft),Tt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))}),this),600),Tt(document,"touchend touchcancel contextmenu",this._cancel,this),Tt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){Ot(document,"touchend",Ft),Ot(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),Ot(document,"touchend touchcancel contextmenu",this._cancel,this),Ot(document,"touchmove",this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new R(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});Yt.addInitHook("addHandler","tapHold",wr),Yt.mergeOptions({touchZoom:je.touch,bounceAtZoomLimits:!0});var Cr=$t.extend({addHooks:function(){ut(this._map._container,"leaflet-touch-zoom"),Tt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ht(this._map._container,"leaflet-touch-zoom"),Ot(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),Tt(document,"touchmove",this._onTouchMove,this),Tt(document,"touchend touchcancel",this._onTouchEnd,this),Ft(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),i=t.mouseEventToContainerPoint(e.touches[1]),o=n.distanceTo(i)/this._startDist;if(this._zoom=t.getScaleZoom(o,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoomt.getMaxZoom()&&o>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=n._add(i)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var s=r(t._move,t,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=S(s,this,!0),Ft(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),Ot(document,"touchmove",this._onTouchMove,this),Ot(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Yt.addInitHook("addHandler","touchZoom",Cr),Yt.BoxZoom=yr,Yt.DoubleClickZoom=vr,Yt.Drag=br,Yt.Keyboard=Ar,Yt.ScrollWheelZoom=xr,Yt.TapHold=wr,Yt.TouchZoom=Cr,e.Bounds=D,e.Browser=je,e.CRS=V,e.Canvas=cr,e.Circle=Ln,e.CircleMarker=Bn,e.Class=T,e.Control=Wt,e.DivIcon=rr,e.DivOverlay=er,e.DomEvent=qt,e.DomUtil=kt,e.Draggable=nn,e.Evented=O,e.FeatureGroup=On,e.GeoJSON=_n,e.GridLayer=ir,e.Handler=$t,e.Icon=Rn,e.ImageOverlay=Zn,e.LatLng=N,e.LatLngBounds=B,e.Layer=Tn,e.LayerGroup=In,e.LineUtil=An,e.Map=Yt,e.Marker=Dn,e.Mixin=en,e.Path=jn,e.Point=R,e.PolyUtil=ln,e.Polygon=Nn,e.Polyline=Fn,e.Popup=tr,e.PosAnimation=Gt,e.Projection=Cn,e.Rectangle=gr,e.Renderer=lr,e.SVG=pr,e.SVGOverlay=$n,e.TileLayer=or,e.Tooltip=nr,e.Transformation=G,e.Util=k,e.VideoOverlay=Kn,e.bind=r,e.bounds=j,e.canvas=ur,e.circle=function(e,t,n){return new Ln(e,t,n)},e.circleMarker=function(e,t){return new Bn(e,t)},e.control=Qt,e.divIcon=function(e){return new rr(e)},e.extend=t,e.featureGroup=function(e,t){return new On(e,t)},e.geoJSON=Xn,e.geoJson=Jn,e.gridLayer=function(e){return new ir(e)},e.icon=function(e){return new Rn(e)},e.imageOverlay=function(e,t,n){return new Zn(e,t,n)},e.latLng=_,e.latLngBounds=F,e.layerGroup=function(e,t){return new In(e,t)},e.map=function(e,t){return new Yt(e,t)},e.marker=function(e,t){return new Dn(e,t)},e.point=P,e.polygon=function(e,t){return new Nn(e,t)},e.polyline=function(e,t){return new Fn(e,t)},e.popup=function(e,t){return new tr(e,t)},e.rectangle=function(e,t){return new gr(e,t)},e.setOptions=d,e.stamp=o,e.svg=mr,e.svgOverlay=function(e,t,n){return new $n(e,t,n)},e.tileLayer=ar,e.tooltip=function(e,t){return new nr(e,t)},e.transformation=Y,e.version="1.9.4",e.videoOverlay=function(e,t,n){return new Kn(e,t,n)};var Sr=window.L;e.noConflict=function(){return window.L=Sr,this},window.L=e}(t)},53795:e=>{"use strict";e.exports=function(e,t){for(var n=0;n{"use strict";n.d(t,{A:()=>r});const r=class{static alert(){}}},54224:(e,t,n)=>{"use strict";var r=n(30113);e.exports=function(e,t){return r(e,t)}},54756:(e,t,n)=>{var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},54893:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},55056:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},55569:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},55701:(e,t,n)=>{"use strict";var r=n(69675),i=n(9957),o={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};e.exports=function(e){if(!e||"object"!=typeof e)return!1;for(var t in e)if(i(e,t)&&!o[t])return!1;var n=i(e,"[[Value]]")||i(e,"[[Writable]]"),a=i(e,"[[Get]]")||i(e,"[[Set]]");if(n&&a)throw new r("Property Descriptors may not be both accessor and data descriptors");return!0}},55986:(e,t,n)=>{"use strict";var r=n(58968);e.exports=function(e){return"bigint"==typeof e?e:r(e)}},56061:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h=(e,t,n)=>(n=null!=e?i(l(e)):{},u(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{default:()=>g}),e.exports=(r=d,u(o({},"__esModule",{value:!0}),r));var f=h(n(25847)),p=h(n(21107)),m=h(n(40295));class g extends m.default{byteSize="variable";decode(e,t){return(0,f.default)(e.buffer.slice(t))}encode(e){return(0,m.assertValueInRange)(e,[0,2**28-1]),(0,p.default)(e)}randomValue(){throw new Error("Method not implemented.")}}},56074:(e,t,n)=>{"use strict";function r(e,t,n,r,i,o){var a=e.getItemCount(e.data);if(0===a)return{first:0,last:-1};var s=o.offset,l=o.velocity,c=o.visibleLength,u=o.zoomScale,h=void 0===u?1:u,d=Math.max(0,s),f=d+c,p=(n-1)*c,m=l>1?"after":l<-1?"before":"none",g=Math.max(0,d-.5*p),y=Math.max(0,f+.5*p);if(i(a-1,e).offset*h>>1),h=n(u,t),d=h.offset*r,f=(h.offset+h.length)*r;if(0===u&&sf)){o[a]=u;break}l=u+1}}return o}([g,d,f,y],e,i,h),b=v[0],A=v[1],x=v[2],w=v[3];b=null==b?0:b,w=null==w?a-1:w;for(var C={first:A=null==A?Math.max(0,b):A,last:x=null==x?Math.min(w,A+t-1):x},S=function(e,t){return t.last-t.first+1-Math.max(0,1+Math.min(t.last,e.last)-Math.max(t.first,e.first))}(r,C);!(A<=b&&x>=w);){var E=S>=t,k=A<=r.first||A>r.last,T=A>b&&(!E||!k),I=x>=r.last||x=A&&A>=0&&x=b&&x<=w&&A<=C.first&&x>=C.last))throw new Error("Bad window calculation "+JSON.stringify({first:A,last:x,itemCount:a,overscanFirst:b,overscanLast:w,visible:C}));return{first:A,last:x}}function i(e,t){return"object"==typeof e&&null!=(null==e?void 0:e.key)?e.key:"object"==typeof e&&null!=(null==e?void 0:e.id)?e.id:String(t)}n.d(t,{It:()=>i,pT:()=>r})},56614:e=>{"use strict";e.exports=function(e){var t=e.uri,n=e.name,r=e.type;this.uri=t,this.name=n,this.type=r}},56698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},57003:e=>{"use strict";function t(){}var n=null,r={};function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("Promise constructor's argument is not a function");this._40=0,this._65=0,this._55=null,this._72=null,e!==t&&u(e,this)}function o(e,t){for(;3===e._65;)e=e._55;if(i._37&&i._37(e),0===e._65)return 0===e._40?(e._40=1,void(e._72=t)):1===e._40?(e._40=2,void(e._72=[e._72,t])):void e._72.push(t);!function(e,t){setImmediate((function(){var i=1===e._65?t.onFulfilled:t.onRejected;if(null!==i){var o=function(e,t){try{return e(t)}catch(e){return n=e,r}}(i,e._55);o===r?s(t.promise,n):a(t.promise,o)}else 1===e._65?a(t.promise,e._55):s(t.promise,e._55)}))}(e,t)}function a(e,t){if(t===e)return s(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var o=function(e){try{return e.then}catch(e){return n=e,r}}(t);if(o===r)return s(e,n);if(o===e.then&&t instanceof i)return e._65=3,e._55=t,void l(e);if("function"==typeof o)return void u(o.bind(t),e)}e._65=1,e._55=t,l(e)}function s(e,t){e._65=2,e._55=t,i._87&&i._87(e,t),l(e)}function l(e){if(1===e._40&&(o(e,e._72),e._72=null),2===e._40){for(var t=0;t{"use strict";n.d(t,{A:()=>x});var r=n(58168),i=n(98587),o=n(8),a=n(9176),s=n(43999);const l=function e(t,n,r){if(void 0===r&&(r=-1),0===r)return!0;if(t===n)return!1;if("function"==typeof t&&"function"==typeof n)return!1;if("object"!=typeof t||null===t)return t!==n;if("object"!=typeof n||null===n)return!0;if(t.constructor!==n.constructor)return!0;if(Array.isArray(t)){var i=t.length;if(n.length!==i)return!0;for(var o=0;o{this._listRef=e},this._getItem=(e,t)=>{var n=v(this.props.numColumns);if(n>1){for(var r=[],i=0;i{if(null!=e&&function(e){return"number"==typeof Object(e).length}(e)){var t=v(this.props.numColumns);return t>1?Math.ceil(e.length/t):e.length}return 0},this._keyExtractor=(e,t)=>{var n,r=v(this.props.numColumns),i=null!==(n=this.props.keyExtractor)&&void 0!==n?n:p.It;return r>1?(h()(Array.isArray(e),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",r),e.map(((e,n)=>i(e,t*r+n))).join(":")):i(e,t)},this._renderer=(e,t,n,r,i)=>{var o=v(r),s=n=>e?d.createElement(e,n):t?t(n):null,l=e=>{if(o>1){var t=e.item,r=e.index;return h()(Array.isArray(t),"Expected array of items with numColumns > 1"),d.createElement(a.A,{style:[A.row,n]},t.map(((t,n)=>{var i=s({item:t,index:r*o+n,separators:e.separators});return null!=i?d.createElement(d.Fragment,{key:n},i):null})))}return s(e)};return e?{ListItemComponent:l}:{renderItem:l}},this._memoizedRenderer=function(e,t){void 0===t&&(t=g);var n=null;function r(){for(var r=[],i=0;i({viewabilityConfig:e.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(e.onViewableItemsChanged)}))):this.props.onViewableItemsChanged&&this._virtualizedListPairs.push({viewabilityConfig:this.props.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(this.props.onViewableItemsChanged)})}componentDidUpdate(e){h()(e.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),h()(e.onViewableItemsChanged===this.props.onViewableItemsChanged,"Changing onViewableItemsChanged on the fly is not supported"),h()(!l(e.viewabilityConfig,this.props.viewabilityConfig),"Changing viewabilityConfig on the fly is not supported"),h()(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,"Changing viewabilityConfigCallbackPairs on the fly is not supported"),this._checkProps(this.props)}_checkProps(e){var t=e.getItem,n=e.getItemCount,r=e.horizontal,i=e.columnWrapperStyle,o=e.onViewableItemsChanged,a=e.viewabilityConfigCallbackPairs,s=v(this.props.numColumns);h()(!t&&!n,"FlatList does not support custom data formats."),s>1?h()(!r,"numColumns does not support horizontal."):h()(!i,"columnWrapperStyle not supported for single column lists"),h()(!(o&&a),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}_pushMultiColumnViewable(e,t){var n,r=v(this.props.numColumns),i=null!==(n=this.props.keyExtractor)&&void 0!==n?n:p.It;t.item.forEach(((n,a)=>{h()(null!=t.index,"Missing index!");var s=t.index*r+a;e.push((0,o.A)((0,o.A)({},t),{},{item:n,key:i(n,s),index:s}))}))}_createOnViewableItemsChanged(e){return t=>{var n=v(this.props.numColumns);if(e)if(n>1){var r=[],i=[];t.viewableItems.forEach((e=>this._pushMultiColumnViewable(i,e))),t.changed.forEach((e=>this._pushMultiColumnViewable(r,e))),e({viewableItems:i,changed:r})}else e(t)}}render(){var e,t=this.props,n=t.numColumns,o=t.columnWrapperStyle,a=t.removeClippedSubviews,s=t.strictMode,l=void 0!==s&&s,u=(0,i.A)(t,y),h=l?this._memoizedRenderer:this._renderer;return d.createElement(f.A,(0,r.A)({},u,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(e=a,null!=e?e:"android"===c.A.OS)},h(this.props.ListItemComponent,this.props.renderItem,o,n,this.props.extraData)))}}var A=s.A.create({row:{flexDirection:"row"}});const x=b},57112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchOnlyCollection=void 0;var r=n(66124),i=function(){function e(e,t,n){this.name=e,this.apiCall=t,this.configuration=n,this._documents=new r.SearchOnlyDocuments(this.name,this.apiCall,this.configuration)}return e.prototype.documents=function(){return this._documents},e}();t.SearchOnlyCollection=i},57749:(e,t,n)=>{"use strict";var r=n(20849),i=n(38657);e.exports=function(e,t){var n={};return t.forEach((function(t){t.forEach((function(t,r){e.includes(t.objectID)||(n[t.objectID]?n[t.objectID]={indexSum:n[t.objectID].indexSum+r,count:n[t.objectID].count+1}:n[t.objectID]={indexSum:r,count:1})}))})),function(e,t){var n=[];return Object.keys(e).forEach((function(r){e[r].count<2&&(e[r].indexSum+=100),n.push({objectID:r,avgOfIndices:e[r].indexSum/t})})),n.sort((function(e,t){return e.avgOfIndices>t.avgOfIndices?1:-1}))}(n,t.length).reduce((function(e,n){var o=r(i(t),(function(e){return e.objectID===n.objectID}));return o?e.concat(o):e}),[])}},57947:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={UIManager:n(8683).A}},58068:e=>{"use strict";e.exports=SyntaxError},58087:function(e){e.exports=function(){"use strict";var e,t,n;function r(r,i){if(e)if(t){var o="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk); self.onerror = null;",a={};e(a),n=i(a),"undefined"!=typeof window&&window&&window.URL&&window.URL.createObjectURL&&(n.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}else t=i;else e=i}return r(0,(function(e){var t="3.6.0";let n;const r={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(null==n){const e=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{n=null!={}.API_URL_REGEX?new RegExp({}.API_URL_REGEX):e}catch(t){n=e}}return n},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!r.API_URL)return null;try{const e=new URL(r.API_URL);return"api.mapbox.cn"===e.hostname?"https://events.mapbox.cn/events/v2":"api.mapbox.com"===e.hostname?"https://events.mapbox.com/events/v2":null}catch(e){return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1"};function i(e){return r.API_URL_REGEX.test(e)}function o(e){return 0===e.indexOf("mapbox:")}function a(e){return r.API_CDN_URL_REGEX.test(e)}function s(e){return r.API_SPRITE_REGEX.test(e)}function l(e){return r.API_STYLE_REGEX.test(e)&&!s(e)}const c={create:"create",load:"load",fullLoad:"fullLoad"},u={mark(e){performance.mark(e)},measure(e,t,n){performance.measure(e,t,n)}};function h(e){const t=e.name.split("?")[0];return a(t)&&t.includes("mapbox-gl.js")?"javascript":a(t)&&t.includes("mapbox-gl.css")?"css":function(e){return r.API_FONTS_REGEX.test(e)}(t)?"fontRange":s(t)?"sprite":l(t)?"style":function(e){return r.API_TILEJSON_REGEX.test(e)}(t)?"tilejson":"other"}function d(e){const n=performance.getEntriesByType("resource"),r=performance.getEntriesByType("mark"),i=function(e){const t={};if(e)for(const n in e)if("other"!==n)for(const r of e[n]){const e=`${n}ResolveRangeMin`,i=`${n}ResolveRangeMax`,o=`${n}RequestCount`,a=`${n}RequestCachedCount`;t[e]=Math.min(t[e]||1/0,r.startTime),t[i]=Math.max(t[i]||-1/0,r.responseEnd);const s=e=>{void 0===t[e]&&(t[e]=0),++t[e]};void 0!==r.transferSize&&0===r.transferSize&&s(a),s(o)}return t}(function(e,t){const n={};if(e)for(const r of e){const e=t(r);void 0===n[e]&&(n[e]=[]),n[e].push(r)}return n}(n,h)),o=window.devicePixelRatio,a=navigator.connection||navigator.mozConnection||navigator.webkitConnection,s=a?a.effectiveType:void 0,u={counters:[],metadata:[],attributes:[]},d=(e,t,n)=>{null!=n&&e.push({name:t,value:n.toString()})};for(const e in i)d(u.counters,e,i[e]);if(e.interactionRange[0]!==1/0&&e.interactionRange[1]!==-1/0&&(d(u.counters,"interactionRangeMin",e.interactionRange[0]),d(u.counters,"interactionRangeMax",e.interactionRange[1])),r)for(const e of Object.keys(c)){const t=c[e],n=r.find((e=>e.name===t));n&&d(u.counters,t,n.startTime)}return d(u.counters,"visibilityHidden",e.visibilityHidden),d(u.attributes,"style",function(e){if(e)for(const t of e){const e=t.name.split("?")[0];if(l(e)){const t=e.split("/").slice(-2);if(2===t.length)return`mapbox://styles/${t[0]}/${t[1]}`}}}(n)),d(u.attributes,"terrainEnabled",e.terrainEnabled?"true":"false"),d(u.attributes,"fogEnabled",e.fogEnabled?"true":"false"),d(u.attributes,"projection",e.projection),d(u.attributes,"zoom",e.zoom),d(u.metadata,"devicePixelRatio",o),d(u.metadata,"connectionEffectiveType",s),d(u.metadata,"navigatorUserAgent",navigator.userAgent),d(u.metadata,"screenWidth",window.screen.width),d(u.metadata,"screenHeight",window.screen.height),d(u.metadata,"windowWidth",window.innerWidth),d(u.metadata,"windowHeight",window.innerHeight),d(u.metadata,"mapWidth",e.width/o),d(u.metadata,"mapHeight",e.height/o),d(u.metadata,"webglRenderer",e.renderer),d(u.metadata,"webglVendor",e.vendor),d(u.metadata,"sdkVersion",t),d(u.metadata,"sdkIdentifier","mapbox-gl-js"),u}function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p={},m={};Object.defineProperty(m,"__esModule",{value:!0}),m.setMatrixArrayType=function(e){m.ARRAY_TYPE=y=e},m.toRadian=function(e){return e*b},m.equals=function(e,t){return Math.abs(e-t)<=g*Math.max(1,Math.abs(e),Math.abs(t))},m.RANDOM=m.ARRAY_TYPE=m.EPSILON=void 0;var g=1e-6;m.EPSILON=g;var y="undefined"!=typeof Float32Array?Float32Array:Array;m.ARRAY_TYPE=y;var v=Math.random;m.RANDOM=v;var b=Math.PI/180;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var A={};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}Object.defineProperty(A,"__esModule",{value:!0}),A.create=function(){var e=new w.ARRAY_TYPE(4);return w.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e},A.clone=function(e){var t=new w.ARRAY_TYPE(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},A.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},A.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e},A.fromValues=function(e,t,n,r){var i=new w.ARRAY_TYPE(4);return i[0]=e,i[1]=t,i[2]=n,i[3]=r,i},A.set=function(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e},A.transpose=function(e,t){if(e===t){var n=t[1];e[1]=t[2],e[2]=n}else e[0]=t[0],e[1]=t[2],e[2]=t[1],e[3]=t[3];return e},A.invert=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=n*o-i*r;return a?(a=1/a,e[0]=o*a,e[1]=-r*a,e[2]=-i*a,e[3]=n*a,e):null},A.adjoint=function(e,t){var n=t[0];return e[0]=t[3],e[1]=-t[1],e[2]=-t[2],e[3]=n,e},A.determinant=function(e){return e[0]*e[3]-e[2]*e[1]},A.multiply=S,A.rotate=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(n),l=Math.cos(n);return e[0]=r*l+o*s,e[1]=i*l+a*s,e[2]=r*-s+o*l,e[3]=i*-s+a*l,e},A.scale=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=n[0],l=n[1];return e[0]=r*s,e[1]=i*s,e[2]=o*l,e[3]=a*l,e},A.fromRotation=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=-n,e[3]=r,e},A.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=t[1],e},A.str=function(e){return"mat2("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},A.frob=function(e){return Math.hypot(e[0],e[1],e[2],e[3])},A.LDU=function(e,t,n,r){return e[2]=r[2]/r[0],n[0]=r[0],n[1]=r[1],n[3]=r[3]-e[2]*n[1],[e,t,n]},A.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e},A.subtract=E,A.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},A.equals=function(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=t[0],s=t[1],l=t[2],c=t[3];return Math.abs(n-a)<=w.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=w.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-l)<=w.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-c)<=w.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},A.multiplyScalar=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e},A.multiplyScalarAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e},A.sub=A.mul=void 0;var w=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==x(e)&&"function"!=typeof e)return{default:e};var n=C(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(m);function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(C=function(e){return e?n:t})(e)}function S(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=n[0],l=n[1],c=n[2],u=n[3];return e[0]=r*s+o*l,e[1]=i*s+a*l,e[2]=r*c+o*u,e[3]=i*c+a*u,e}function E(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}var k=S;A.mul=k;var T=E;A.sub=T;var I={};function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}Object.defineProperty(I,"__esModule",{value:!0}),I.create=function(){var e=new R.ARRAY_TYPE(6);return R.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0,e[4]=0,e[5]=0),e[0]=1,e[3]=1,e},I.clone=function(e){var t=new R.ARRAY_TYPE(6);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},I.copy=function(e,t){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},I.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e},I.fromValues=function(e,t,n,r,i,o){var a=new R.ARRAY_TYPE(6);return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=i,a[5]=o,a},I.set=function(e,t,n,r,i,o,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=o,e[5]=a,e},I.invert=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=n*o-r*i;return l?(l=1/l,e[0]=o*l,e[1]=-r*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-o*a)*l,e[5]=(r*a-n*s)*l,e):null},I.determinant=function(e){return e[0]*e[3]-e[1]*e[2]},I.multiply=P,I.rotate=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=Math.sin(n),u=Math.cos(n);return e[0]=r*u+o*c,e[1]=i*u+a*c,e[2]=r*-c+o*u,e[3]=i*-c+a*u,e[4]=s,e[5]=l,e},I.scale=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=n[0],u=n[1];return e[0]=r*c,e[1]=i*c,e[2]=o*u,e[3]=a*u,e[4]=s,e[5]=l,e},I.translate=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=n[0],u=n[1];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=r*c+o*u+s,e[5]=i*c+a*u+l,e},I.fromRotation=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=-n,e[3]=r,e[4]=0,e[5]=0,e},I.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=t[1],e[4]=0,e[5]=0,e},I.fromTranslation=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=t[0],e[5]=t[1],e},I.str=function(e){return"mat2d("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")"},I.frob=function(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],1)},I.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e},I.subtract=D,I.multiplyScalar=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e},I.multiplyScalarAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e},I.exactEquals=function(e,t){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]},I.equals=function(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=t[0],c=t[1],u=t[2],h=t[3],d=t[4],f=t[5];return Math.abs(n-l)<=R.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(r-c)<=R.EPSILON*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(i-u)<=R.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(o-h)<=R.EPSILON*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(a-d)<=R.EPSILON*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(s-f)<=R.EPSILON*Math.max(1,Math.abs(s),Math.abs(f))},I.sub=I.mul=void 0;var R=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==O(e)&&"function"!=typeof e)return{default:e};var n=M(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(m);function M(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(M=function(e){return e?n:t})(e)}function P(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=n[0],u=n[1],h=n[2],d=n[3],f=n[4],p=n[5];return e[0]=r*c+o*u,e[1]=i*c+a*u,e[2]=r*h+o*d,e[3]=i*h+a*d,e[4]=r*f+o*p+s,e[5]=i*f+a*p+l,e}function D(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e}var j=P;I.mul=j;var B=D;I.sub=B;var L={};function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}Object.defineProperty(L,"__esModule",{value:!0}),L.create=function(){var e=new N.ARRAY_TYPE(9);return N.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e},L.fromMat4=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e},L.clone=function(e){var t=new N.ARRAY_TYPE(9);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},L.copy=function(e,t){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},L.fromValues=function(e,t,n,r,i,o,a,s,l){var c=new N.ARRAY_TYPE(9);return c[0]=e,c[1]=t,c[2]=n,c[3]=r,c[4]=i,c[5]=o,c[6]=a,c[7]=s,c[8]=l,c},L.set=function(e,t,n,r,i,o,a,s,l,c){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=o,e[5]=a,e[6]=s,e[7]=l,e[8]=c,e},L.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},L.transpose=function(e,t){if(e===t){var n=t[1],r=t[2],i=t[5];e[1]=t[3],e[2]=t[6],e[3]=n,e[5]=t[7],e[6]=r,e[7]=i}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e},L.invert=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],h=u*a-s*c,d=-u*o+s*l,f=c*o-a*l,p=n*h+r*d+i*f;return p?(p=1/p,e[0]=h*p,e[1]=(-u*r+i*c)*p,e[2]=(s*r-i*a)*p,e[3]=d*p,e[4]=(u*n-i*l)*p,e[5]=(-s*n+i*o)*p,e[6]=f*p,e[7]=(-c*n+r*l)*p,e[8]=(a*n-r*o)*p,e):null},L.adjoint=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8];return e[0]=a*u-s*c,e[1]=i*c-r*u,e[2]=r*s-i*a,e[3]=s*l-o*u,e[4]=n*u-i*l,e[5]=i*o-n*s,e[6]=o*c-a*l,e[7]=r*l-n*c,e[8]=n*a-r*o,e},L.determinant=function(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8];return t*(c*o-a*l)+n*(-c*i+a*s)+r*(l*i-o*s)},L.multiply=z,L.translate=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=n[0],f=n[1];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e[6]=d*r+f*a+c,e[7]=d*i+f*s+u,e[8]=d*o+f*l+h,e},L.rotate=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=Math.sin(n),f=Math.cos(n);return e[0]=f*r+d*a,e[1]=f*i+d*s,e[2]=f*o+d*l,e[3]=f*a-d*r,e[4]=f*s-d*i,e[5]=f*l-d*o,e[6]=c,e[7]=u,e[8]=h,e},L.scale=function(e,t,n){var r=n[0],i=n[1];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=i*t[3],e[4]=i*t[4],e[5]=i*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},L.fromTranslation=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e},L.fromRotation=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},L.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},L.fromMat2d=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e},L.fromQuat=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=n+n,s=r+r,l=i+i,c=n*a,u=r*a,h=r*s,d=i*a,f=i*s,p=i*l,m=o*a,g=o*s,y=o*l;return e[0]=1-h-p,e[3]=u-y,e[6]=d+g,e[1]=u+y,e[4]=1-c-p,e[7]=f-m,e[2]=d-g,e[5]=f+m,e[8]=1-c-h,e},L.normalFromMat4=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],h=t[9],d=t[10],f=t[11],p=t[12],m=t[13],g=t[14],y=t[15],v=n*s-r*a,b=n*l-i*a,A=n*c-o*a,x=r*l-i*s,w=r*c-o*s,C=i*c-o*l,S=u*m-h*p,E=u*g-d*p,k=u*y-f*p,T=h*g-d*m,I=h*y-f*m,O=d*y-f*g,R=v*O-b*I+A*T+x*k-w*E+C*S;return R?(R=1/R,e[0]=(s*O-l*I+c*T)*R,e[1]=(l*k-a*O-c*E)*R,e[2]=(a*I-s*k+c*S)*R,e[3]=(i*I-r*O-o*T)*R,e[4]=(n*O-i*k+o*E)*R,e[5]=(r*k-n*I-o*S)*R,e[6]=(m*C-g*w+y*x)*R,e[7]=(g*A-p*C-y*b)*R,e[8]=(p*w-m*A+y*v)*R,e):null},L.projection=function(e,t,n){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/n,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e},L.str=function(e){return"mat3("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+")"},L.frob=function(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},L.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e},L.subtract=V,L.multiplyScalar=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e},L.multiplyScalarAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e},L.exactEquals=function(e,t){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]},L.equals=function(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],h=t[0],d=t[1],f=t[2],p=t[3],m=t[4],g=t[5],y=t[6],v=t[7],b=t[8];return Math.abs(n-h)<=N.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(r-d)<=N.EPSILON*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(i-f)<=N.EPSILON*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(o-p)<=N.EPSILON*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-m)<=N.EPSILON*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(s-g)<=N.EPSILON*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(l-y)<=N.EPSILON*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(c-v)<=N.EPSILON*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(u-b)<=N.EPSILON*Math.max(1,Math.abs(u),Math.abs(b))},L.sub=L.mul=void 0;var N=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==F(e)&&"function"!=typeof e)return{default:e};var n=_(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(m);function _(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_=function(e){return e?n:t})(e)}function z(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=n[0],f=n[1],p=n[2],m=n[3],g=n[4],y=n[5],v=n[6],b=n[7],A=n[8];return e[0]=d*r+f*a+p*c,e[1]=d*i+f*s+p*u,e[2]=d*o+f*l+p*h,e[3]=m*r+g*a+y*c,e[4]=m*i+g*s+y*u,e[5]=m*o+g*l+y*h,e[6]=v*r+b*a+A*c,e[7]=v*i+b*s+A*u,e[8]=v*o+b*l+A*h,e}function V(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e}var U=z;L.mul=U;var H=V;L.sub=H;var q={};function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}Object.defineProperty(q,"__esModule",{value:!0}),q.create=function(){var e=new Y.ARRAY_TYPE(16);return Y.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},q.clone=function(e){var t=new Y.ARRAY_TYPE(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],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},q.copy=function(e,t){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},q.fromValues=function(e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m){var g=new Y.ARRAY_TYPE(16);return g[0]=e,g[1]=t,g[2]=n,g[3]=r,g[4]=i,g[5]=o,g[6]=a,g[7]=s,g[8]=l,g[9]=c,g[10]=u,g[11]=h,g[12]=d,g[13]=f,g[14]=p,g[15]=m,g},q.set=function(e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=o,e[5]=a,e[6]=s,e[7]=l,e[8]=c,e[9]=u,e[10]=h,e[11]=d,e[12]=f,e[13]=p,e[14]=m,e[15]=g,e},q.identity=Q,q.transpose=function(e,t){if(e===t){var n=t[1],r=t[2],i=t[3],o=t[6],a=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=o,e[11]=t[14],e[12]=i,e[13]=a,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e},q.invert=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],h=t[9],d=t[10],f=t[11],p=t[12],m=t[13],g=t[14],y=t[15],v=n*s-r*a,b=n*l-i*a,A=n*c-o*a,x=r*l-i*s,w=r*c-o*s,C=i*c-o*l,S=u*m-h*p,E=u*g-d*p,k=u*y-f*p,T=h*g-d*m,I=h*y-f*m,O=d*y-f*g,R=v*O-b*I+A*T+x*k-w*E+C*S;return R?(R=1/R,e[0]=(s*O-l*I+c*T)*R,e[1]=(i*I-r*O-o*T)*R,e[2]=(m*C-g*w+y*x)*R,e[3]=(d*w-h*C-f*x)*R,e[4]=(l*k-a*O-c*E)*R,e[5]=(n*O-i*k+o*E)*R,e[6]=(g*A-p*C-y*b)*R,e[7]=(u*C-d*A+f*b)*R,e[8]=(a*I-s*k+c*S)*R,e[9]=(r*k-n*I-o*S)*R,e[10]=(p*w-m*A+y*v)*R,e[11]=(h*A-u*w-f*v)*R,e[12]=(s*E-a*T-l*S)*R,e[13]=(n*T-r*E+i*S)*R,e[14]=(m*b-p*x-g*v)*R,e[15]=(u*x-h*b+d*v)*R,e):null},q.adjoint=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],h=t[9],d=t[10],f=t[11],p=t[12],m=t[13],g=t[14],y=t[15];return e[0]=s*(d*y-f*g)-h*(l*y-c*g)+m*(l*f-c*d),e[1]=-(r*(d*y-f*g)-h*(i*y-o*g)+m*(i*f-o*d)),e[2]=r*(l*y-c*g)-s*(i*y-o*g)+m*(i*c-o*l),e[3]=-(r*(l*f-c*d)-s*(i*f-o*d)+h*(i*c-o*l)),e[4]=-(a*(d*y-f*g)-u*(l*y-c*g)+p*(l*f-c*d)),e[5]=n*(d*y-f*g)-u*(i*y-o*g)+p*(i*f-o*d),e[6]=-(n*(l*y-c*g)-a*(i*y-o*g)+p*(i*c-o*l)),e[7]=n*(l*f-c*d)-a*(i*f-o*d)+u*(i*c-o*l),e[8]=a*(h*y-f*m)-u*(s*y-c*m)+p*(s*f-c*h),e[9]=-(n*(h*y-f*m)-u*(r*y-o*m)+p*(r*f-o*h)),e[10]=n*(s*y-c*m)-a*(r*y-o*m)+p*(r*c-o*s),e[11]=-(n*(s*f-c*h)-a*(r*f-o*h)+u*(r*c-o*s)),e[12]=-(a*(h*g-d*m)-u*(s*g-l*m)+p*(s*d-l*h)),e[13]=n*(h*g-d*m)-u*(r*g-i*m)+p*(r*d-i*h),e[14]=-(n*(s*g-l*m)-a*(r*g-i*m)+p*(r*l-i*s)),e[15]=n*(s*d-l*h)-a*(r*d-i*h)+u*(r*l-i*s),e},q.determinant=function(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=e[9],h=e[10],d=e[11],f=e[12],p=e[13],m=e[14],g=e[15];return(t*a-n*o)*(h*g-d*m)-(t*s-r*o)*(u*g-d*p)+(t*l-i*o)*(u*m-h*p)+(n*s-r*a)*(c*g-d*f)-(n*l-i*a)*(c*m-h*f)+(r*l-i*s)*(c*p-u*f)},q.multiply=X,q.translate=function(e,t,n){var r,i,o,a,s,l,c,u,h,d,f,p,m=n[0],g=n[1],y=n[2];return t===e?(e[12]=t[0]*m+t[4]*g+t[8]*y+t[12],e[13]=t[1]*m+t[5]*g+t[9]*y+t[13],e[14]=t[2]*m+t[6]*g+t[10]*y+t[14],e[15]=t[3]*m+t[7]*g+t[11]*y+t[15]):(r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=t[9],f=t[10],p=t[11],e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e[6]=c,e[7]=u,e[8]=h,e[9]=d,e[10]=f,e[11]=p,e[12]=r*m+s*g+h*y+t[12],e[13]=i*m+l*g+d*y+t[13],e[14]=o*m+c*g+f*y+t[14],e[15]=a*m+u*g+p*y+t[15]),e},q.scale=function(e,t,n){var r=n[0],i=n[1],o=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},q.rotate=function(e,t,n,r){var i,o,a,s,l,c,u,h,d,f,p,m,g,y,v,b,A,x,w,C,S,E,k,T,I=r[0],O=r[1],R=r[2],M=Math.hypot(I,O,R);return M0?(n[0]=2*(s*a+u*r+l*o-c*i)/h,n[1]=2*(l*a+u*i+c*r-s*o)/h,n[2]=2*(c*a+u*o+s*i-l*r)/h):(n[0]=2*(s*a+u*r+l*o-c*i),n[1]=2*(l*a+u*i+c*r-s*o),n[2]=2*(c*a+u*o+s*i-l*r)),J(e,t,n),e},q.getTranslation=function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},q.getScaling=Z,q.getRotation=function(e,t){var n=new Y.ARRAY_TYPE(3);Z(n,t);var r=1/n[0],i=1/n[1],o=1/n[2],a=t[0]*r,s=t[1]*i,l=t[2]*o,c=t[4]*r,u=t[5]*i,h=t[6]*o,d=t[8]*r,f=t[9]*i,p=t[10]*o,m=a+u+p,g=0;return m>0?(g=2*Math.sqrt(m+1),e[3]=.25*g,e[0]=(h-f)/g,e[1]=(d-l)/g,e[2]=(s-c)/g):a>u&&a>p?(g=2*Math.sqrt(1+a-u-p),e[3]=(h-f)/g,e[0]=.25*g,e[1]=(s+c)/g,e[2]=(d+l)/g):u>p?(g=2*Math.sqrt(1+u-a-p),e[3]=(d-l)/g,e[0]=(s+c)/g,e[1]=.25*g,e[2]=(h+f)/g):(g=2*Math.sqrt(1+p-a-u),e[3]=(s-c)/g,e[0]=(d+l)/g,e[1]=(h+f)/g,e[2]=.25*g),e},q.fromRotationTranslationScale=function(e,t,n,r){var i=t[0],o=t[1],a=t[2],s=t[3],l=i+i,c=o+o,u=a+a,h=i*l,d=i*c,f=i*u,p=o*c,m=o*u,g=a*u,y=s*l,v=s*c,b=s*u,A=r[0],x=r[1],w=r[2];return e[0]=(1-(p+g))*A,e[1]=(d+b)*A,e[2]=(f-v)*A,e[3]=0,e[4]=(d-b)*x,e[5]=(1-(h+g))*x,e[6]=(m+y)*x,e[7]=0,e[8]=(f+v)*w,e[9]=(m-y)*w,e[10]=(1-(h+p))*w,e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e},q.fromRotationTranslationScaleOrigin=function(e,t,n,r,i){var o=t[0],a=t[1],s=t[2],l=t[3],c=o+o,u=a+a,h=s+s,d=o*c,f=o*u,p=o*h,m=a*u,g=a*h,y=s*h,v=l*c,b=l*u,A=l*h,x=r[0],w=r[1],C=r[2],S=i[0],E=i[1],k=i[2],T=(1-(m+y))*x,I=(f+A)*x,O=(p-b)*x,R=(f-A)*w,M=(1-(d+y))*w,P=(g+v)*w,D=(p+b)*C,j=(g-v)*C,B=(1-(d+m))*C;return e[0]=T,e[1]=I,e[2]=O,e[3]=0,e[4]=R,e[5]=M,e[6]=P,e[7]=0,e[8]=D,e[9]=j,e[10]=B,e[11]=0,e[12]=n[0]+S-(T*S+R*E+D*k),e[13]=n[1]+E-(I*S+M*E+j*k),e[14]=n[2]+k-(O*S+P*E+B*k),e[15]=1,e},q.fromQuat=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=n+n,s=r+r,l=i+i,c=n*a,u=r*a,h=r*s,d=i*a,f=i*s,p=i*l,m=o*a,g=o*s,y=o*l;return e[0]=1-h-p,e[1]=u+y,e[2]=d-g,e[3]=0,e[4]=u-y,e[5]=1-c-p,e[6]=f+m,e[7]=0,e[8]=d+g,e[9]=f-m,e[10]=1-c-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},q.frustum=function(e,t,n,r,i,o,a){var s=1/(n-t),l=1/(i-r),c=1/(o-a);return e[0]=2*o*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*o*l,e[6]=0,e[7]=0,e[8]=(n+t)*s,e[9]=(i+r)*l,e[10]=(a+o)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=a*o*2*c,e[15]=0,e},q.perspectiveNO=K,q.perspectiveZO=function(e,t,n,r,i){var o,a=1/Math.tan(t/2);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(o=1/(r-i),e[10]=i*o,e[14]=i*r*o):(e[10]=-1,e[14]=-r),e},q.perspectiveFromFieldOfView=function(e,t,n,r){var i=Math.tan(t.upDegrees*Math.PI/180),o=Math.tan(t.downDegrees*Math.PI/180),a=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(a+s),c=2/(i+o);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-(a-s)*l*.5,e[9]=(i-o)*c*.5,e[10]=r/(n-r),e[11]=-1,e[12]=0,e[13]=0,e[14]=r*n/(n-r),e[15]=0,e},q.orthoNO=ee,q.orthoZO=function(e,t,n,r,i,o,a){var s=1/(t-n),l=1/(r-i),c=1/(o-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=c,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*l,e[14]=o*c,e[15]=1,e},q.lookAt=function(e,t,n,r){var i,o,a,s,l,c,u,h,d,f,p=t[0],m=t[1],g=t[2],y=r[0],v=r[1],b=r[2],A=n[0],x=n[1],w=n[2];return Math.abs(p-A)0&&(u*=f=1/Math.sqrt(f),h*=f,d*=f);var p=l*d-c*h,m=c*u-s*d,g=s*h-l*u;return(f=p*p+m*m+g*g)>0&&(p*=f=1/Math.sqrt(f),m*=f,g*=f),e[0]=p,e[1]=m,e[2]=g,e[3]=0,e[4]=h*g-d*m,e[5]=d*p-u*g,e[6]=u*m-h*p,e[7]=0,e[8]=u,e[9]=h,e[10]=d,e[11]=0,e[12]=i,e[13]=o,e[14]=a,e[15]=1,e},q.str=function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},q.frob=function(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])},q.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e[9]=t[9]+n[9],e[10]=t[10]+n[10],e[11]=t[11]+n[11],e[12]=t[12]+n[12],e[13]=t[13]+n[13],e[14]=t[14]+n[14],e[15]=t[15]+n[15],e},q.subtract=ne,q.multiplyScalar=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12]*n,e[13]=t[13]*n,e[14]=t[14]*n,e[15]=t[15]*n,e},q.multiplyScalarAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e[9]=t[9]+n[9]*r,e[10]=t[10]+n[10]*r,e[11]=t[11]+n[11]*r,e[12]=t[12]+n[12]*r,e[13]=t[13]+n[13]*r,e[14]=t[14]+n[14]*r,e[15]=t[15]+n[15]*r,e},q.exactEquals=function(e,t){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]},q.equals=function(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],h=e[9],d=e[10],f=e[11],p=e[12],m=e[13],g=e[14],y=e[15],v=t[0],b=t[1],A=t[2],x=t[3],w=t[4],C=t[5],S=t[6],E=t[7],k=t[8],T=t[9],I=t[10],O=t[11],R=t[12],M=t[13],P=t[14],D=t[15];return Math.abs(n-v)<=Y.EPSILON*Math.max(1,Math.abs(n),Math.abs(v))&&Math.abs(r-b)<=Y.EPSILON*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-A)<=Y.EPSILON*Math.max(1,Math.abs(i),Math.abs(A))&&Math.abs(o-x)<=Y.EPSILON*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(a-w)<=Y.EPSILON*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(s-C)<=Y.EPSILON*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(l-S)<=Y.EPSILON*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(c-E)<=Y.EPSILON*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(u-k)<=Y.EPSILON*Math.max(1,Math.abs(u),Math.abs(k))&&Math.abs(h-T)<=Y.EPSILON*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(d-I)<=Y.EPSILON*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(f-O)<=Y.EPSILON*Math.max(1,Math.abs(f),Math.abs(O))&&Math.abs(p-R)<=Y.EPSILON*Math.max(1,Math.abs(p),Math.abs(R))&&Math.abs(m-M)<=Y.EPSILON*Math.max(1,Math.abs(m),Math.abs(M))&&Math.abs(g-P)<=Y.EPSILON*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(y-D)<=Y.EPSILON*Math.max(1,Math.abs(y),Math.abs(D))},q.sub=q.mul=q.ortho=q.perspective=void 0;var Y=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==G(e)&&"function"!=typeof e)return{default:e};var n=W(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(m);function W(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(W=function(e){return e?n:t})(e)}function Q(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function X(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=t[9],f=t[10],p=t[11],m=t[12],g=t[13],y=t[14],v=t[15],b=n[0],A=n[1],x=n[2],w=n[3];return e[0]=b*r+A*s+x*h+w*m,e[1]=b*i+A*l+x*d+w*g,e[2]=b*o+A*c+x*f+w*y,e[3]=b*a+A*u+x*p+w*v,b=n[4],A=n[5],x=n[6],w=n[7],e[4]=b*r+A*s+x*h+w*m,e[5]=b*i+A*l+x*d+w*g,e[6]=b*o+A*c+x*f+w*y,e[7]=b*a+A*u+x*p+w*v,b=n[8],A=n[9],x=n[10],w=n[11],e[8]=b*r+A*s+x*h+w*m,e[9]=b*i+A*l+x*d+w*g,e[10]=b*o+A*c+x*f+w*y,e[11]=b*a+A*u+x*p+w*v,b=n[12],A=n[13],x=n[14],w=n[15],e[12]=b*r+A*s+x*h+w*m,e[13]=b*i+A*l+x*d+w*g,e[14]=b*o+A*c+x*f+w*y,e[15]=b*a+A*u+x*p+w*v,e}function J(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=r+r,l=i+i,c=o+o,u=r*s,h=r*l,d=r*c,f=i*l,p=i*c,m=o*c,g=a*s,y=a*l,v=a*c;return e[0]=1-(f+m),e[1]=h+v,e[2]=d-y,e[3]=0,e[4]=h-v,e[5]=1-(u+m),e[6]=p+g,e[7]=0,e[8]=d+y,e[9]=p-g,e[10]=1-(u+f),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}function Z(e,t){var n=t[0],r=t[1],i=t[2],o=t[4],a=t[5],s=t[6],l=t[8],c=t[9],u=t[10];return e[0]=Math.hypot(n,r,i),e[1]=Math.hypot(o,a,s),e[2]=Math.hypot(l,c,u),e}function K(e,t,n,r,i){var o,a=1/Math.tan(t/2);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(o=1/(r-i),e[10]=(i+r)*o,e[14]=2*i*r*o):(e[10]=-1,e[14]=-2*r),e}var $=K;function ee(e,t,n,r,i,o,a){var s=1/(t-n),l=1/(r-i),c=1/(o-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*l,e[14]=(a+o)*c,e[15]=1,e}q.perspective=$;var te=ee;function ne(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e[9]=t[9]-n[9],e[10]=t[10]-n[10],e[11]=t[11]-n[11],e[12]=t[12]-n[12],e[13]=t[13]-n[13],e[14]=t[14]-n[14],e[15]=t[15]-n[15],e}q.ortho=te;var re=X;q.mul=re;var ie=ne;q.sub=ie;var oe={},ae={};function se(e){return se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se(e)}Object.defineProperty(ae,"__esModule",{value:!0}),ae.create=ue,ae.clone=function(e){var t=new le.ARRAY_TYPE(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},ae.length=he,ae.fromValues=function(e,t,n){var r=new le.ARRAY_TYPE(3);return r[0]=e,r[1]=t,r[2]=n,r},ae.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},ae.set=function(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e},ae.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e},ae.subtract=de,ae.multiply=fe,ae.divide=pe,ae.ceil=function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},ae.floor=function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},ae.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e},ae.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e},ae.round=function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},ae.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e},ae.scaleAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e},ae.distance=me,ae.squaredDistance=ge,ae.squaredLength=ye,ae.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e},ae.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e},ae.normalize=function(e,t){var n=t[0],r=t[1],i=t[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e},ae.dot=ve,ae.cross=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=n[0],s=n[1],l=n[2];return e[0]=i*l-o*s,e[1]=o*a-r*l,e[2]=r*s-i*a,e},ae.lerp=function(e,t,n,r){var i=t[0],o=t[1],a=t[2];return e[0]=i+r*(n[0]-i),e[1]=o+r*(n[1]-o),e[2]=a+r*(n[2]-a),e},ae.hermite=function(e,t,n,r,i,o){var a=o*o,s=a*(2*o-3)+1,l=a*(o-2)+o,c=a*(o-1),u=a*(3-2*o);return e[0]=t[0]*s+n[0]*l+r[0]*c+i[0]*u,e[1]=t[1]*s+n[1]*l+r[1]*c+i[1]*u,e[2]=t[2]*s+n[2]*l+r[2]*c+i[2]*u,e},ae.bezier=function(e,t,n,r,i,o){var a=1-o,s=a*a,l=o*o,c=s*a,u=3*o*s,h=3*l*a,d=l*o;return e[0]=t[0]*c+n[0]*u+r[0]*h+i[0]*d,e[1]=t[1]*c+n[1]*u+r[1]*h+i[1]*d,e[2]=t[2]*c+n[2]*u+r[2]*h+i[2]*d,e},ae.random=function(e,t){t=t||1;var n=2*le.RANDOM()*Math.PI,r=2*le.RANDOM()-1,i=Math.sqrt(1-r*r)*t;return e[0]=Math.cos(n)*i,e[1]=Math.sin(n)*i,e[2]=r*t,e},ae.transformMat4=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,e[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,e[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,e[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,e},ae.transformMat3=function(e,t,n){var r=t[0],i=t[1],o=t[2];return e[0]=r*n[0]+i*n[3]+o*n[6],e[1]=r*n[1]+i*n[4]+o*n[7],e[2]=r*n[2]+i*n[5]+o*n[8],e},ae.transformQuat=function(e,t,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=t[0],l=t[1],c=t[2],u=i*c-o*l,h=o*s-r*c,d=r*l-i*s,f=i*d-o*h,p=o*u-r*d,m=r*h-i*u,g=2*a;return u*=g,h*=g,d*=g,f*=2,p*=2,m*=2,e[0]=s+u+f,e[1]=l+h+p,e[2]=c+d+m,e},ae.rotateX=function(e,t,n,r){var i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},ae.rotateY=function(e,t,n,r){var i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},ae.rotateZ=function(e,t,n,r){var i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},ae.angle=function(e,t){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],s=t[2],l=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(o*o+a*a+s*s),c=l&&ve(e,t)/l;return Math.acos(Math.min(Math.max(c,-1),1))},ae.zero=function(e){return e[0]=0,e[1]=0,e[2]=0,e},ae.str=function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},ae.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},ae.equals=function(e,t){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],s=t[2];return Math.abs(n-o)<=le.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=le.EPSILON*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-s)<=le.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))},ae.forEach=ae.sqrLen=ae.len=ae.sqrDist=ae.dist=ae.div=ae.mul=ae.sub=void 0;var le=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==se(e)&&"function"!=typeof e)return{default:e};var n=ce(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(m);function ce(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(ce=function(e){return e?n:t})(e)}function ue(){var e=new le.ARRAY_TYPE(3);return le.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function he(e){var t=e[0],n=e[1],r=e[2];return Math.hypot(t,n,r)}function de(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function fe(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function pe(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function me(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.hypot(n,r,i)}function ge(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function ye(e){var t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function ve(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}var be=de;ae.sub=be;var Ae=fe;ae.mul=Ae;var xe=pe;ae.div=xe;var we=me;ae.dist=we;var Ce=ge;ae.sqrDist=Ce;var Se=he;ae.len=Se;var Ee=ye;ae.sqrLen=Ee;var ke,Te=(ke=ue(),function(e,t,n,r,i,o){var a,s;for(t||(t=3),n||(n=0),s=r?Math.min(r*t+n,e.length):e.length,a=n;a0&&(a=1/Math.sqrt(a)),e[0]=n*a,e[1]=r*a,e[2]=i*a,e[3]=o*a,e},Ie.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},Ie.cross=function(e,t,n,r){var i=n[0]*r[1]-n[1]*r[0],o=n[0]*r[2]-n[2]*r[0],a=n[0]*r[3]-n[3]*r[0],s=n[1]*r[2]-n[2]*r[1],l=n[1]*r[3]-n[3]*r[1],c=n[2]*r[3]-n[3]*r[2],u=t[0],h=t[1],d=t[2],f=t[3];return e[0]=h*c-d*l+f*s,e[1]=-u*c+d*a-f*o,e[2]=u*l-h*a+f*i,e[3]=-u*s+h*o-d*i,e},Ie.lerp=function(e,t,n,r){var i=t[0],o=t[1],a=t[2],s=t[3];return e[0]=i+r*(n[0]-i),e[1]=o+r*(n[1]-o),e[2]=a+r*(n[2]-a),e[3]=s+r*(n[3]-s),e},Ie.random=function(e,t){var n,r,i,o,a,s;t=t||1;do{a=(n=2*Re.RANDOM()-1)*n+(r=2*Re.RANDOM()-1)*r}while(a>=1);do{s=(i=2*Re.RANDOM()-1)*i+(o=2*Re.RANDOM()-1)*o}while(s>=1);var l=Math.sqrt((1-a)/s);return e[0]=t*n,e[1]=t*r,e[2]=t*i*l,e[3]=t*o*l,e},Ie.transformMat4=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3];return e[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,e[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,e[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,e[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,e},Ie.transformQuat=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=n[0],s=n[1],l=n[2],c=n[3],u=c*r+s*o-l*i,h=c*i+l*r-a*o,d=c*o+a*i-s*r,f=-a*r-s*i-l*o;return e[0]=u*c+f*-a+h*-l-d*-s,e[1]=h*c+f*-s+d*-a-u*-l,e[2]=d*c+f*-l+u*-s-h*-a,e[3]=t[3],e},Ie.zero=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e},Ie.str=function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},Ie.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},Ie.equals=function(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=t[0],s=t[1],l=t[2],c=t[3];return Math.abs(n-a)<=Re.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=Re.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-l)<=Re.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-c)<=Re.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},Ie.forEach=Ie.sqrLen=Ie.len=Ie.sqrDist=Ie.dist=Ie.div=Ie.mul=Ie.sub=void 0;var Re=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==Oe(e)&&"function"!=typeof e)return{default:e};var n=Me(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(m);function Me(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Me=function(e){return e?n:t})(e)}function Pe(){var e=new Re.ARRAY_TYPE(4);return Re.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function De(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}function je(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}function Be(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}function Le(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return Math.hypot(n,r,i,o)}function Fe(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return n*n+r*r+i*i+o*o}function Ne(e){var t=e[0],n=e[1],r=e[2],i=e[3];return Math.hypot(t,n,r,i)}function _e(e){var t=e[0],n=e[1],r=e[2],i=e[3];return t*t+n*n+r*r+i*i}var ze=De;Ie.sub=ze;var Ve=je;Ie.mul=Ve;var Ue=Be;Ie.div=Ue;var He=Le;Ie.dist=He;var qe=Fe;Ie.sqrDist=qe;var Ge=Ne;Ie.len=Ge;var Ye=_e;Ie.sqrLen=Ye;var We=function(){var e=Pe();return function(t,n,r,i,o,a){var s,l;for(n||(n=4),r||(r=0),l=i?Math.min(i*n+r,t.length):t.length,s=r;sXe.EPSILON?(e[0]=t[0]/r,e[1]=t[1]/r,e[2]=t[2]/r):(e[0]=1,e[1]=0,e[2]=0),n},oe.getAngle=function(e,t){var n=mt(e,t);return Math.acos(2*n*n-1)},oe.multiply=rt,oe.rotateX=function(e,t,n){n*=.5;var r=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(n),l=Math.cos(n);return e[0]=r*l+a*s,e[1]=i*l+o*s,e[2]=o*l-i*s,e[3]=a*l-r*s,e},oe.rotateY=function(e,t,n){n*=.5;var r=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(n),l=Math.cos(n);return e[0]=r*l-o*s,e[1]=i*l+a*s,e[2]=o*l+r*s,e[3]=a*l-i*s,e},oe.rotateZ=function(e,t,n){n*=.5;var r=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(n),l=Math.cos(n);return e[0]=r*l+i*s,e[1]=i*l-r*s,e[2]=o*l+a*s,e[3]=a*l-o*s,e},oe.calculateW=function(e,t){var n=t[0],r=t[1],i=t[2];return e[0]=n,e[1]=r,e[2]=i,e[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),e},oe.exp=it,oe.ln=ot,oe.pow=function(e,t,n){return ot(e,t),pt(e,e,n),it(e,e),e},oe.slerp=at,oe.random=function(e){var t=Xe.RANDOM(),n=Xe.RANDOM(),r=Xe.RANDOM(),i=Math.sqrt(1-t),o=Math.sqrt(t);return e[0]=i*Math.sin(2*Math.PI*n),e[1]=i*Math.cos(2*Math.PI*n),e[2]=o*Math.sin(2*Math.PI*r),e[3]=o*Math.cos(2*Math.PI*r),e},oe.invert=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=n*n+r*r+i*i+o*o,s=a?1/a:0;return e[0]=-n*s,e[1]=-r*s,e[2]=-i*s,e[3]=o*s,e},oe.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e},oe.fromMat3=st,oe.fromEuler=function(e,t,n,r){var i=.5*Math.PI/180;t*=i,n*=i,r*=i;var o=Math.sin(t),a=Math.cos(t),s=Math.sin(n),l=Math.cos(n),c=Math.sin(r),u=Math.cos(r);return e[0]=o*l*u-a*s*c,e[1]=a*s*u+o*l*c,e[2]=a*l*c-o*s*u,e[3]=a*l*u+o*s*c,e},oe.str=function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},oe.setAxes=oe.sqlerp=oe.rotationTo=oe.equals=oe.exactEquals=oe.normalize=oe.sqrLen=oe.squaredLength=oe.len=oe.length=oe.lerp=oe.dot=oe.scale=oe.mul=oe.add=oe.set=oe.copy=oe.fromValues=oe.clone=void 0;var Xe=et(m),Je=et(L),Ze=et(ae),Ke=et(Ie);function $e(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return($e=function(e){return e?n:t})(e)}function et(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==Qe(e)&&"function"!=typeof e)return{default:e};var n=$e(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function tt(){var e=new Xe.ARRAY_TYPE(4);return Xe.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function nt(e,t,n){n*=.5;var r=Math.sin(n);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(n),e}function rt(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=n[0],l=n[1],c=n[2],u=n[3];return e[0]=r*u+a*s+i*c-o*l,e[1]=i*u+a*l+o*s-r*c,e[2]=o*u+a*c+r*l-i*s,e[3]=a*u-r*s-i*l-o*c,e}function it(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=Math.sqrt(n*n+r*r+i*i),s=Math.exp(o),l=a>0?s*Math.sin(a)/a:0;return e[0]=n*l,e[1]=r*l,e[2]=i*l,e[3]=s*Math.cos(a),e}function ot(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=Math.sqrt(n*n+r*r+i*i),s=a>0?Math.atan2(a,o)/a:0;return e[0]=n*s,e[1]=r*s,e[2]=i*s,e[3]=.5*Math.log(n*n+r*r+i*i+o*o),e}function at(e,t,n,r){var i,o,a,s,l,c=t[0],u=t[1],h=t[2],d=t[3],f=n[0],p=n[1],m=n[2],g=n[3];return(o=c*f+u*p+h*m+d*g)<0&&(o=-o,f=-f,p=-p,m=-m,g=-g),1-o>Xe.EPSILON?(i=Math.acos(o),a=Math.sin(i),s=Math.sin((1-r)*i)/a,l=Math.sin(r*i)/a):(s=1-r,l=r),e[0]=s*c+l*f,e[1]=s*u+l*p,e[2]=s*h+l*m,e[3]=s*d+l*g,e}function st(e,t){var n,r=t[0]+t[4]+t[8];if(r>0)n=Math.sqrt(r+1),e[3]=.5*n,n=.5/n,e[0]=(t[5]-t[7])*n,e[1]=(t[6]-t[2])*n,e[2]=(t[1]-t[3])*n;else{var i=0;t[4]>t[0]&&(i=1),t[8]>t[3*i+i]&&(i=2);var o=(i+1)%3,a=(i+2)%3;n=Math.sqrt(t[3*i+i]-t[3*o+o]-t[3*a+a]+1),e[i]=.5*n,n=.5/n,e[3]=(t[3*o+a]-t[3*a+o])*n,e[o]=(t[3*o+i]+t[3*i+o])*n,e[a]=(t[3*a+i]+t[3*i+a])*n}return e}var lt=Ke.clone;oe.clone=lt;var ct=Ke.fromValues;oe.fromValues=ct;var ut=Ke.copy;oe.copy=ut;var ht=Ke.set;oe.set=ht;var dt=Ke.add;oe.add=dt;var ft=rt;oe.mul=ft;var pt=Ke.scale;oe.scale=pt;var mt=Ke.dot;oe.dot=mt;var gt=Ke.lerp;oe.lerp=gt;var yt=Ke.length;oe.length=yt;var vt=yt;oe.len=vt;var bt=Ke.squaredLength;oe.squaredLength=bt;var At=bt;oe.sqrLen=At;var xt=Ke.normalize;oe.normalize=xt;var wt=Ke.exactEquals;oe.exactEquals=wt;var Ct=Ke.equals;oe.equals=Ct;var St,Et,kt,Tt=(St=Ze.create(),Et=Ze.fromValues(1,0,0),kt=Ze.fromValues(0,1,0),function(e,t,n){var r=Ze.dot(t,n);return r<-.999999?(Ze.cross(St,Et,t),Ze.len(St)<1e-6&&Ze.cross(St,kt,t),Ze.normalize(St,St),nt(e,St,Math.PI),e):r>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):(Ze.cross(St,t,n),e[0]=St[0],e[1]=St[1],e[2]=St[2],e[3]=1+r,xt(e,e))});oe.rotationTo=Tt;var It,Ot,Rt=(It=tt(),Ot=tt(),function(e,t,n,r,i,o){return at(It,t,i,o),at(Ot,n,r,o),at(e,It,Ot,2*o*(1-o)),e});oe.sqlerp=Rt;var Mt,Pt=(Mt=Je.create(),function(e,t,n,r){return Mt[0]=n[0],Mt[3]=n[1],Mt[6]=n[2],Mt[1]=r[0],Mt[4]=r[1],Mt[7]=r[2],Mt[2]=-t[0],Mt[5]=-t[1],Mt[8]=-t[2],xt(e,st(e,Mt))});oe.setAxes=Pt;var Dt={};function jt(e){return jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(e)}Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.create=function(){var e=new Bt.ARRAY_TYPE(8);return Bt.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[4]=0,e[5]=0,e[6]=0,e[7]=0),e[3]=1,e},Dt.clone=function(e){var t=new Bt.ARRAY_TYPE(8);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t},Dt.fromValues=function(e,t,n,r,i,o,a,s){var l=new Bt.ARRAY_TYPE(8);return l[0]=e,l[1]=t,l[2]=n,l[3]=r,l[4]=i,l[5]=o,l[6]=a,l[7]=s,l},Dt.fromRotationTranslationValues=function(e,t,n,r,i,o,a){var s=new Bt.ARRAY_TYPE(8);s[0]=e,s[1]=t,s[2]=n,s[3]=r;var l=.5*i,c=.5*o,u=.5*a;return s[4]=l*r+c*n-u*t,s[5]=c*r+u*e-l*n,s[6]=u*r+l*t-c*e,s[7]=-l*e-c*t-u*n,s},Dt.fromRotationTranslation=zt,Dt.fromTranslation=function(e,t){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e[4]=.5*t[0],e[5]=.5*t[1],e[6]=.5*t[2],e[7]=0,e},Dt.fromRotation=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=0,e[5]=0,e[6]=0,e[7]=0,e},Dt.fromMat4=function(e,t){var n=Lt.create();Ft.getRotation(n,t);var r=new Bt.ARRAY_TYPE(3);return Ft.getTranslation(r,t),zt(e,n,r),e},Dt.copy=Vt,Dt.identity=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e[6]=0,e[7]=0,e},Dt.set=function(e,t,n,r,i,o,a,s,l){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=o,e[5]=a,e[6]=s,e[7]=l,e},Dt.getDual=function(e,t){return e[0]=t[4],e[1]=t[5],e[2]=t[6],e[3]=t[7],e},Dt.setDual=function(e,t){return e[4]=t[0],e[5]=t[1],e[6]=t[2],e[7]=t[3],e},Dt.getTranslation=function(e,t){var n=t[4],r=t[5],i=t[6],o=t[7],a=-t[0],s=-t[1],l=-t[2],c=t[3];return e[0]=2*(n*c+o*a+r*l-i*s),e[1]=2*(r*c+o*s+i*a-n*l),e[2]=2*(i*c+o*l+n*s-r*a),e},Dt.translate=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=.5*n[0],l=.5*n[1],c=.5*n[2],u=t[4],h=t[5],d=t[6],f=t[7];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=a*s+i*c-o*l+u,e[5]=a*l+o*s-r*c+h,e[6]=a*c+r*l-i*s+d,e[7]=-r*s-i*l-o*c+f,e},Dt.rotateX=function(e,t,n){var r=-t[0],i=-t[1],o=-t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=s*a+u*r+l*o-c*i,d=l*a+u*i+c*r-s*o,f=c*a+u*o+s*i-l*r,p=u*a-s*r-l*i-c*o;return Lt.rotateX(e,t,n),r=e[0],i=e[1],o=e[2],a=e[3],e[4]=h*a+p*r+d*o-f*i,e[5]=d*a+p*i+f*r-h*o,e[6]=f*a+p*o+h*i-d*r,e[7]=p*a-h*r-d*i-f*o,e},Dt.rotateY=function(e,t,n){var r=-t[0],i=-t[1],o=-t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=s*a+u*r+l*o-c*i,d=l*a+u*i+c*r-s*o,f=c*a+u*o+s*i-l*r,p=u*a-s*r-l*i-c*o;return Lt.rotateY(e,t,n),r=e[0],i=e[1],o=e[2],a=e[3],e[4]=h*a+p*r+d*o-f*i,e[5]=d*a+p*i+f*r-h*o,e[6]=f*a+p*o+h*i-d*r,e[7]=p*a-h*r-d*i-f*o,e},Dt.rotateZ=function(e,t,n){var r=-t[0],i=-t[1],o=-t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=s*a+u*r+l*o-c*i,d=l*a+u*i+c*r-s*o,f=c*a+u*o+s*i-l*r,p=u*a-s*r-l*i-c*o;return Lt.rotateZ(e,t,n),r=e[0],i=e[1],o=e[2],a=e[3],e[4]=h*a+p*r+d*o-f*i,e[5]=d*a+p*i+f*r-h*o,e[6]=f*a+p*o+h*i-d*r,e[7]=p*a-h*r-d*i-f*o,e},Dt.rotateByQuatAppend=function(e,t,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=t[0],l=t[1],c=t[2],u=t[3];return e[0]=s*a+u*r+l*o-c*i,e[1]=l*a+u*i+c*r-s*o,e[2]=c*a+u*o+s*i-l*r,e[3]=u*a-s*r-l*i-c*o,s=t[4],l=t[5],c=t[6],u=t[7],e[4]=s*a+u*r+l*o-c*i,e[5]=l*a+u*i+c*r-s*o,e[6]=c*a+u*o+s*i-l*r,e[7]=u*a-s*r-l*i-c*o,e},Dt.rotateByQuatPrepend=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=n[0],l=n[1],c=n[2],u=n[3];return e[0]=r*u+a*s+i*c-o*l,e[1]=i*u+a*l+o*s-r*c,e[2]=o*u+a*c+r*l-i*s,e[3]=a*u-r*s-i*l-o*c,s=n[4],l=n[5],c=n[6],u=n[7],e[4]=r*u+a*s+i*c-o*l,e[5]=i*u+a*l+o*s-r*c,e[6]=o*u+a*c+r*l-i*s,e[7]=a*u-r*s-i*l-o*c,e},Dt.rotateAroundAxis=function(e,t,n,r){if(Math.abs(r)0){n=Math.sqrt(n);var r=t[0]/n,i=t[1]/n,o=t[2]/n,a=t[3]/n,s=t[4],l=t[5],c=t[6],u=t[7],h=r*s+i*l+o*c+a*u;e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=(s-r*h)/n,e[5]=(l-i*h)/n,e[6]=(c-o*h)/n,e[7]=(u-a*h)/n}return e},Dt.str=function(e){return"quat2("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+")"},Dt.exactEquals=function(e,t){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]},Dt.equals=function(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=t[0],h=t[1],d=t[2],f=t[3],p=t[4],m=t[5],g=t[6],y=t[7];return Math.abs(n-u)<=Bt.EPSILON*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-h)<=Bt.EPSILON*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(i-d)<=Bt.EPSILON*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-f)<=Bt.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(a-p)<=Bt.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(s-m)<=Bt.EPSILON*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(l-g)<=Bt.EPSILON*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(c-y)<=Bt.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))},Dt.sqrLen=Dt.squaredLength=Dt.len=Dt.length=Dt.dot=Dt.mul=Dt.setReal=Dt.getReal=void 0;var Bt=_t(m),Lt=_t(oe),Ft=_t(q);function Nt(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Nt=function(e){return e?n:t})(e)}function _t(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==jt(e)&&"function"!=typeof e)return{default:e};var n=Nt(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function zt(e,t,n){var r=.5*n[0],i=.5*n[1],o=.5*n[2],a=t[0],s=t[1],l=t[2],c=t[3];return e[0]=a,e[1]=s,e[2]=l,e[3]=c,e[4]=r*c+i*l-o*s,e[5]=i*c+o*a-r*l,e[6]=o*c+r*s-i*a,e[7]=-r*a-i*s-o*l,e}function Vt(e,t){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}var Ut=Lt.copy;Dt.getReal=Ut;var Ht=Lt.copy;function qt(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=n[4],l=n[5],c=n[6],u=n[7],h=t[4],d=t[5],f=t[6],p=t[7],m=n[0],g=n[1],y=n[2],v=n[3];return e[0]=r*v+a*m+i*y-o*g,e[1]=i*v+a*g+o*m-r*y,e[2]=o*v+a*y+r*g-i*m,e[3]=a*v-r*m-i*g-o*y,e[4]=r*u+a*s+i*c-o*l+h*v+p*m+d*y-f*g,e[5]=i*u+a*l+o*s-r*c+d*v+p*g+f*m-h*y,e[6]=o*u+a*c+r*l-i*s+f*v+p*y+h*g-d*m,e[7]=a*u-r*s-i*l-o*c+p*v-h*m-d*g-f*y,e}Dt.setReal=Ht;var Gt=qt;Dt.mul=Gt;var Yt=Lt.dot;Dt.dot=Yt;var Wt=Lt.length;Dt.length=Wt;var Qt=Wt;Dt.len=Qt;var Xt=Lt.squaredLength;Dt.squaredLength=Xt;var Jt=Xt;Dt.sqrLen=Jt;var Zt={};function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.create=tn,Zt.clone=function(e){var t=new $t.ARRAY_TYPE(2);return t[0]=e[0],t[1]=e[1],t},Zt.fromValues=function(e,t){var n=new $t.ARRAY_TYPE(2);return n[0]=e,n[1]=t,n},Zt.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e},Zt.set=function(e,t,n){return e[0]=t,e[1]=n,e},Zt.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e},Zt.subtract=nn,Zt.multiply=rn,Zt.divide=on,Zt.ceil=function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e},Zt.floor=function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e},Zt.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e},Zt.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e},Zt.round=function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e},Zt.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e},Zt.scaleAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e},Zt.distance=an,Zt.squaredDistance=sn,Zt.length=ln,Zt.squaredLength=cn,Zt.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e},Zt.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e},Zt.normalize=function(e,t){var n=t[0],r=t[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e},Zt.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]},Zt.cross=function(e,t,n){var r=t[0]*n[1]-t[1]*n[0];return e[0]=e[1]=0,e[2]=r,e},Zt.lerp=function(e,t,n,r){var i=t[0],o=t[1];return e[0]=i+r*(n[0]-i),e[1]=o+r*(n[1]-o),e},Zt.random=function(e,t){t=t||1;var n=2*$t.RANDOM()*Math.PI;return e[0]=Math.cos(n)*t,e[1]=Math.sin(n)*t,e},Zt.transformMat2=function(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i,e[1]=n[1]*r+n[3]*i,e},Zt.transformMat2d=function(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e},Zt.transformMat3=function(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[3]*i+n[6],e[1]=n[1]*r+n[4]*i+n[7],e},Zt.transformMat4=function(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[4]*i+n[12],e[1]=n[1]*r+n[5]*i+n[13],e},Zt.rotate=function(e,t,n,r){var i=t[0]-n[0],o=t[1]-n[1],a=Math.sin(r),s=Math.cos(r);return e[0]=i*s-o*a+n[0],e[1]=i*a+o*s+n[1],e},Zt.angle=function(e,t){var n=e[0],r=e[1],i=t[0],o=t[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+o*o),s=a&&(n*i+r*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))},Zt.zero=function(e){return e[0]=0,e[1]=0,e},Zt.str=function(e){return"vec2("+e[0]+", "+e[1]+")"},Zt.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Zt.equals=function(e,t){var n=e[0],r=e[1],i=t[0],o=t[1];return Math.abs(n-i)<=$t.EPSILON*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-o)<=$t.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))},Zt.forEach=Zt.sqrLen=Zt.sqrDist=Zt.dist=Zt.div=Zt.mul=Zt.sub=Zt.len=void 0;var $t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==Kt(e)&&"function"!=typeof e)return{default:e};var n=en(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(m);function en(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(en=function(e){return e?n:t})(e)}function tn(){var e=new $t.ARRAY_TYPE(2);return $t.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0),e}function nn(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function rn(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function on(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function an(e,t){var n=t[0]-e[0],r=t[1]-e[1];return Math.hypot(n,r)}function sn(e,t){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function ln(e){var t=e[0],n=e[1];return Math.hypot(t,n)}function cn(e){var t=e[0],n=e[1];return t*t+n*n}var un=ln;Zt.len=un;var hn=nn;Zt.sub=hn;var dn=rn;Zt.mul=dn;var fn=on;Zt.div=fn;var pn=an;Zt.dist=pn;var mn=sn;Zt.sqrDist=mn;var gn=cn;Zt.sqrLen=gn;var yn=function(){var e=tn();return function(t,n,r,i,o,a){var s,l;for(n||(n=2),r||(r=0),l=i?Math.min(i*n+r,t.length):t.length,s=r;s1)return 1;for(var n=e,r=0;r<8;r++){var i=this.sampleCurveX(n)-e;if(Math.abs(i)i?a=n:s=n,n=.5*(s-a)+a;return n},solve:function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))}};var Dn=f(Mn),jn=Bn;function Bn(e,t){this.x=e,this.y=t}Bn.prototype={clone:function(){return new Bn(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},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(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[0]*this.x+e[1]*this.y,n=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=n,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=t*this.x-n*this.y,i=n*this.x+t*this.y;return this.x=r,this.y=i,this},_rotateAround:function(e,t){var n=Math.cos(e),r=Math.sin(e),i=t.x+n*(this.x-t.x)-r*(this.y-t.y),o=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=i,this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Bn.convert=function(e){return e instanceof Bn?e:Array.isArray(e)?new Bn(e[0],e[1]):e};var Ln=f(jn);function Fn(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n=1)return 1;const t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function qn(e,t,n,r){const i=new Dn(e,t,n,r);return function(e){return i.solve(e)}}const Gn=qn(.25,.1,.25,1);function Yn(e,t,n){return Math.min(n,Math.max(t,e))}function Wn(e,t,n){return(n=Yn((n-e)/(t-e),0,1))*n*(3-2*n)}function Qn(e,t,n){const r=n-t,i=((e-t)%r+r)%r+t;return i===t?n:i}function Xn(e,t,n){if(!e.length)return n(null,[]);let r=e.length;const i=new Array(e.length);let o=null;e.forEach(((e,a)=>{t(e,((e,t)=>{e&&(o=e),i[a]=t,0==--r&&n(o,i)}))}))}function Jn(e){const t=[];for(const n in e)t.push(e[n]);return t}function Zn(e,...t){for(const n of t)for(const t in n)e[t]=n[t];return e}let Kn=1;function $n(){return Kn++}function er(){return function e(t){return t?(t^Math.random()*(16>>t/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}function tr(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function nr(e){return!!e&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}function rr(e,t){e.forEach((e=>{t[e]&&(t[e]=t[e].bind(t))}))}function ir(e,t){return-1!==e.indexOf(t,e.length-t.length)}function or(e,t,n){const r={};for(const n in e)r[n]=t.call(this,e[n],n,e);return r}function ar(e,t,n){const r={};for(const n in e)t.call(this,e[n],n,e)&&(r[n]=e[n]);return r}function sr(e){return Array.isArray(e)?e.map(sr):"object"==typeof e&&e?or(e,sr):e}const lr={};function cr(e){lr[e]||("undefined"!=typeof console&&console.warn(e),lr[e]=!0)}function ur(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}function hr(e){let t=0;for(let n,r,i=0,o=e.length,a=o-1;i@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,((e,n,r,i)=>{const o=r||i;return t[n]=!o||o.toLowerCase(),""})),t["max-age"]){const e=parseInt(t["max-age"],10);isNaN(e)?delete t["max-age"]:t["max-age"]=e}return t}let mr,gr,yr,vr,br,Ar,xr=null;function wr(e){try{const t=self[e];return t.setItem("_mapbox_test_",1),t.removeItem("_mapbox_test_"),!0}catch(e){return!1}}function Cr(e,t){return[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]}function Sr(e,t,n,r){for(;t>1;e[i]>1;e[i]<=r?t=i+1:n=i}return t}function kr(e){return e>0?1/(1.001-e):1+e}function Tr(e){return e>0?1-1/(1.001-e):-e}function Ir(){return null==mr&&(mr=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof self.createImageBitmap),mr}const Or={now:()=>void 0!==vr?vr:performance.now(),setNow(e){vr=e},restoreNow(){vr=void 0},frame(e){const t=requestAnimationFrame(e);return{cancel:()=>cancelAnimationFrame(t)}},getImageData(e,t=0){const{width:n,height:r}=e;br||(br=document.createElement("canvas"));const i=br.getContext("2d",{willReadFrequently:!0});if(!i)throw new Error("failed to create canvas 2d context");return(n>br.width||r>br.height)&&(br.width=n,br.height=r),i.clearRect(-t,-t,n+2*t,r+2*t),i.drawImage(e,0,0,n,r),i.getImageData(-t,-t,n+2*t,r+2*t)},resolveURL:e=>(gr||(gr=document.createElement("a")),gr.href=e,gr.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(null==yr&&(yr=window.matchMedia("(prefers-reduced-motion: reduce)")),yr.matches)},hasCanvasFingerprintNoise(){if(void 0!==Ar)return Ar;if(!Ir())return Ar=!1,!1;const e=new OffscreenCanvas(85,1),t=e.getContext("2d",{willReadFrequently:!0});let n=0;for(let r=0;r0?`?${o}`:""}`}const Pr="mapbox-tiles";let Dr=500,jr=50;const Br=["language","worldview","jobid"];let Lr,Fr;function Nr(){try{return caches}catch(e){}}function _r(){const e=Nr();e&&!Lr&&(Lr=e.open(Pr))}function zr(e,t,n){if(_r(),!Lr)return;const r=pr(t.headers.get("Cache-Control")||"");if(r["no-store"])return;const i={status:t.status,statusText:t.statusText,headers:new Headers};t.headers.forEach(((e,t)=>i.headers.set(t,e))),r["max-age"]&&i.headers.set("Expires",new Date(n+1e3*r["max-age"]).toUTCString());const o=i.headers.get("Expires");if(!o)return;if(new Date(o).getTime()-n<42e4)return;let a=Mr(e.url,{persistentParams:Br});if(206===t.status){const t=e.headers.get("Range");if(!t)return;i.status=200,a=Rr(a,{range:t})}!function(e,t){if(void 0===Fr)try{new Response(new ReadableStream),Fr=!0}catch(e){Fr=!1}Fr?t(e.body):e.blob().then(t)}(t,(e=>{const n=new Response(function(e){return 200!==e&&404!==e&&[101,103,204,205,304].includes(e)}(t.status)?null:e,i);_r(),Lr&&Lr.then((e=>e.put(a,n))).catch((e=>cr(e.message)))}))}function Vr(e,t){if(_r(),!Lr)return t(null);Lr.then((n=>{let r=Mr(e.url,{persistentParams:Br});const i=e.headers.get("Range");i&&(r=Rr(r,{range:i})),n.match(r).then((e=>{const i=function(e){if(!e)return!1;const t=new Date(e.headers.get("Expires")||0),n=pr(e.headers.get("Cache-Control")||"");return t>Date.now()&&!n["no-cache"]}(e);n.delete(r),i&&n.put(r,e.clone()),t(null,e,i)})).catch(t)})).catch(t)}let Ur=1/0;const Hr={supported:!1,testSupport:function(e){!Yr&&Gr&&(Wr?Xr(e):qr=e)}};let qr,Gr,Yr=!1,Wr=!1;const Qr="undefined"!=typeof self?self:{};function Xr(e){const t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,Gr),e.isContextLost())return;Hr.supported=!0}catch(e){}e.deleteTexture(t),Yr=!0}Qr.document&&(Gr=Qr.document.createElement("img"),Gr.onload=function(){qr&&Xr(qr),qr=null,Wr=!0},Gr.onerror=function(){Yr=!0,qr=null},Gr.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const Jr={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image",Model:"Model"};"function"==typeof Object.freeze&&Object.freeze(Jr);class Zr extends Error{constructor(e,t,n){401===t&&i(n)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=t,this.url=n}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const Kr=fr()?()=>self.worker&&self.worker.referrer:()=>("blob:"===location.protocol?parent:self).location.href;function $r(e,t){const n=new AbortController,r=new Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:Kr(),referrerPolicy:e.referrerPolicy,signal:n.signal});let o=!1,a=!1;const s=(l=r.url).indexOf("sku=")>0&&i(l);var l;"json"===e.type&&r.headers.set("Accept","application/json");const c=(n,i,o)=>{if(a)return;if(n&&"SecurityError"!==n.message&&cr(n.toString()),i&&o)return u(i);const l=Date.now();fetch(r).then((n=>{if(n.ok){const e=s?n.clone():null;return u(n,e,l)}return t(new Zr(n.statusText,n.status,e.url))})).catch((n=>{"AbortError"!==n.name&&t(new Error(`${n.message} ${e.url}`))}))},u=(n,i,s)=>{("arrayBuffer"===e.type?n.arrayBuffer():"json"===e.type?n.json():n.text()).then((e=>{a||(i&&s&&zr(r,i,s),o=!0,t(null,e,n.headers.get("Cache-Control"),n.headers.get("Expires")))})).catch((e=>{a||t(new Error(e.message))}))};return s?Vr(r,c):c(null,null),{cancel:()=>{a=!0,o||n.abort()}}}const ei=function(e,t){if(n=e.url,!(/^file:/.test(n)||/^file:/.test(Kr())&&!/^\w+:/.test(n))){if(self.fetch&&self.Request&&self.AbortController&&Request.prototype.hasOwnProperty("signal"))return $r(e,t);if(fr()&&self.worker&&self.worker.actor){const n=!0;return self.worker.actor.send("getResource",e,t,void 0,n)}}var n;return function(e,t){const n=new XMLHttpRequest;n.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(n.responseType="arraybuffer");for(const t in e.headers)n.setRequestHeader(t,e.headers[t]);return"json"===e.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===e.credentials,n.onerror=()=>{t(new Error(n.statusText))},n.onload=()=>{if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){let r=n.response;if("json"===e.type)try{r=JSON.parse(n.response)}catch(e){return t(e)}t(null,r,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"))}else t(new Zr(n.statusText,n.status,e.url))},n.send(e.body),{cancel:()=>n.abort()}}(e,t)},ti=function(e,t){return ei(Zn(e,{type:"arrayBuffer"}),t)};function ni(e){const t=document.createElement("a");return t.href=e,t.protocol===location.protocol&&t.host===location.host}const ri="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let ii,oi;ii=[],oi=0;const ai=function(e,t){if(Hr.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),oi>=r.MAX_PARALLEL_IMAGE_REQUESTS){const n={requestParameters:e,callback:t,cancelled:!1,cancel(){this.cancelled=!0}};return ii.push(n),n}oi++;let n=!1;const i=()=>{if(!n)for(n=!0,oi--;ii.length&&oi{i(),e?t(e):n&&(self.createImageBitmap?function(e,t){const n=new Blob([new Uint8Array(e)],{type:"image/png"});createImageBitmap(n).then((e=>{t(null,e)})).catch((e=>{t(new Error(`Could not load image because of ${e.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))}))}(n,((e,n)=>t(e,n,r,o))):function(e,t){const n=new Image;n.onload=()=>{t(null,n),URL.revokeObjectURL(n.src),n.onload=null,requestAnimationFrame((()=>{n.src=ri}))},n.onerror=()=>t(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const r=new Blob([new Uint8Array(e)],{type:"image/png"});n.src=e.byteLength?URL.createObjectURL(r):ri}(n,((e,n)=>t(e,n,r,o))))}));return{cancel:()=>{o.cancel(),i()}}},si="01";const li="NO_ACCESS_TOKEN";const ci=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function ui(e){const t=e.match(ci);if(!t)throw new Error("Unable to parse URL object");return{protocol:t[1],authority:t[2],path:t[3]||"/",params:t[4]?t[4].split("&"):[]}}function hi(e){const t=e.params.length?`?${e.params.join("&")}`:"";return`${e.protocol}://${e.authority}${e.path}${t}`}const di="mapbox.eventData";function fi(e){if(!e)return null;const t=e.split(".");if(!t||3!==t.length)return null;try{return JSON.parse(function(e){return decodeURIComponent(atob(e).split("").map((e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join(""))}(t[1]))}catch(e){return null}}class pi{constructor(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(e){const t=fi(r.ACCESS_TOKEN);let n="";return n=t&&t.u?function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,((e,t)=>String.fromCharCode(Number("0x"+t)))))}(t.u):r.ACCESS_TOKEN||"",e?`${di}.${e}:${n}`:`${di}:${n}`}fetchEventData(){const e=wr("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{const e=localStorage.getItem(t);e&&(this.eventData=JSON.parse(e));const r=localStorage.getItem(n);r&&(this.anonId=r)}catch(e){cr("Unable to read from LocalStorage")}}saveEventData(){const e=wr("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid"),r=this.anonId;if(e&&r)try{localStorage.setItem(n,r),Object.keys(this.eventData).length>=1&&localStorage.setItem(t,JSON.stringify(this.eventData))}catch(e){cr("Unable to write to LocalStorage")}}processRequests(e){}postEvent(e,t,n,i){if(!r.EVENTS_URL)return;const o=ui(r.EVENTS_URL);o.params.push(`access_token=${i||r.ACCESS_TOKEN||""}`);const a={event:this.type,created:new Date(e).toISOString()},s=t?Zn(a,t):a,l={url:hi(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=function(e,t){return ei(Zn(e,{method:"POST"}),t)}(l,(e=>{this.pendingRequest=null,n(e),this.saveEventData(),this.processRequests(i)}))}queueRequest(e,t){this.queue.push(e),this.processRequests(t)}}const mi=new class extends pi{constructor(e){super("appUserTurnstile"),this._customAccessToken=e}postTurnstileEvent(e,t){r.EVENTS_URL&&r.ACCESS_TOKEN&&Array.isArray(e)&&e.some((e=>o(e)||i(e)))&&this.queueRequest(Date.now(),t)}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const n=fi(r.ACCESS_TOKEN),i=n?n.u:r.ACCESS_TOKEN;let o=i!==this.eventData.tokenU;nr(this.anonId)||(this.anonId=er(),o=!0);const a=this.queue.shift();if(this.eventData.lastSuccess){const e=new Date(this.eventData.lastSuccess),t=new Date(a),n=(a-this.eventData.lastSuccess)/864e5;o=o||n>=1||n<-1||e.getDate()!==t.getDate()}else o=!0;if(!o)return void this.processRequests();const s={sdkIdentifier:"mapbox-gl-js",sdkVersion:t,skuId:si,"enabled.telemetry":!1,userId:this.anonId};this.postEvent(a,s,(e=>{e||(this.eventData.lastSuccess=a,this.eventData.tokenU=i)}),e)}},gi=mi.postTurnstileEvent.bind(mi),yi=new class extends pi{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(e,t,n,i){this.skuToken=t,this.errorCb=i,r.EVENTS_URL&&(n||r.ACCESS_TOKEN?this.queueRequest({id:e,timestamp:Date.now()},n):this.errorCb(new Error(li)))}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{id:n,timestamp:r}=this.queue.shift();if(n&&this.success[n])return;this.anonId||this.fetchEventData(),nr(this.anonId)||(this.anonId=er());const i={sdkIdentifier:"mapbox-gl-js",sdkVersion:t,skuId:si,skuToken:this.skuToken,userId:this.anonId};this.postEvent(r,i,(e=>{e?this.errorCb(e):n&&(this.success[n]=!0)}),e)}remove(){this.errorCb=null}},vi=yi.postMapLoadEvent.bind(yi),bi=new class extends pi{constructor(){super("style.load"),this.eventIdPerMapInstanceMap=new Map,this.mapInstanceIdMap=new WeakMap}getMapInstanceId(e){let t=this.mapInstanceIdMap.get(e);return t||(t=er(),this.mapInstanceIdMap.set(e,t)),t}getEventId(e){const t=this.eventIdPerMapInstanceMap.get(e)||0;return this.eventIdPerMapInstanceMap.set(e,t+1),t}postStyleLoadEvent(e,t){const{map:n,style:i,importedStyles:o}=t;if(!r.EVENTS_URL||!e&&!r.ACCESS_TOKEN)return;const a=this.getMapInstanceId(n),s={mapInstanceId:a,eventId:this.getEventId(a),style:i};o.length&&(s.importedStyles=o),this.queueRequest({timestamp:Date.now(),payload:s},e)}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{timestamp:t,payload:n}=this.queue.shift();this.postEvent(t,n,(()=>{}),e)}},Ai=bi.postStyleLoadEvent.bind(bi),xi=new class extends pi{constructor(){super("gljs.performance")}postPerformanceEvent(e,t){r.EVENTS_URL&&(e||r.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:t},e)}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{timestamp:t,performanceData:n}=this.queue.shift(),r=d(n);for(const e of r.metadata);for(const e of r.counters);for(const e of r.attributes);this.postEvent(t,r,(()=>{}),e)}},wi=xi.postPerformanceEvent.bind(xi),Ci=new class extends pi{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(e,t,n,i){if(!r.API_URL||!r.SESSION_PATH)return;const o=ui(r.API_URL+r.SESSION_PATH);o.params.push(`sku=${t||""}`),o.params.push(`access_token=${i||r.ACCESS_TOKEN||""}`);const a={url:hi(o),headers:{"Content-Type":"text/plain"}};this.pendingRequest=function(e,t){return ei(Zn(e,{method:"GET"}),t)}(a,(e=>{this.pendingRequest=null,n(e),this.saveEventData(),this.processRequests(i)}))}getSessionAPI(e,t,n,i){this.skuToken=t,this.errorCb=i,r.SESSION_PATH&&r.API_URL&&(n||r.ACCESS_TOKEN?this.queueRequest({id:e,timestamp:Date.now()},n):this.errorCb(new Error(li)))}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{id:t,timestamp:n}=this.queue.shift();t&&this.success[t]||this.getSession(n,this.skuToken,(e=>{e?this.errorCb(e):t&&(this.success[t]=!0)}),e)}remove(){this.errorCb=null}},Si=Ci.getSessionAPI.bind(Ci),Ei=new Set;var ki={exports:{}},Ti={exports:{}};!function(e){e.exports=function(e,t){var n,r,i,o,a,s,l,c;for(n=3&e.length,r=e.length-n,i=t,a=3432918353,s=461845907,c=0;c>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,n){case 3:l^=(255&e.charCodeAt(c+2))<<16;case 2:l^=(255&e.charCodeAt(c+1))<<8;case 1:i^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(c)))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}}(Ti);var Ii=Ti.exports,Oi={exports:{}};!function(e){e.exports=function(e,t){for(var n,r=e.length,i=t^r,o=0;r>=4;)n=1540483477*(65535&(n=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(n>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:i^=(255&e.charCodeAt(o+2))<<16;case 2:i^=(255&e.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(o)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0}}(Oi);var Ri=Ii,Mi=Oi.exports;ki.exports=Ri,ki.exports.murmur3=Ri,ki.exports.murmur2=Mi;var Pi=f(ki.exports);class Di{constructor(e,...t){Zn(this,t[0]||{}),this.type=e}}class ji extends Di{constructor(e,t={}){super("error",Zn({error:e},t))}}function Bi(e,t,n){n[e]&&-1!==n[e].indexOf(t)||(n[e]=n[e]||[],n[e].push(t))}function Li(e,t,n){if(n&&n[e]){const r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}class Fi{on(e,t){return this._listeners=this._listeners||{},Bi(e,t,this._listeners),this}off(e,t){return Li(e,t,this._listeners),Li(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners=this._oneTimeListeners||{},Bi(e,t,this._oneTimeListeners),this):new Promise((t=>this.once(e,t)))}fire(e,t){const n="string"==typeof e?new Di(e,t):e,r=n.type;if(this.listens(r)){n.target=this;const e=this._listeners&&this._listeners[r]?this._listeners[r].slice():[];for(const t of e)t.call(this,n);const t=this._oneTimeListeners&&this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];for(const e of t)Li(r,e,this._oneTimeListeners),e.call(this,n);const i=this._eventedParent;i&&(Zn(n,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),i.fire(n))}else n instanceof ji&&console.error(n.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}}e.G=void 0;var Ni={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 _i(e){return(e=Math.round(e))<0?0:e>255?255:e}function zi(e){return e<0?0:e>1?1:e}function Vi(e){return"%"===e[e.length-1]?_i(parseFloat(e)/100*255):_i(parseInt(e))}function Ui(e){return"%"===e[e.length-1]?zi(parseFloat(e)/100):zi(parseFloat(e))}function Hi(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}try{e.G={}.parseCSSColor=function(e){var t,n=e.replace(/ /g,"").toLowerCase();if(n in Ni)return Ni[n].slice();if("#"===n[0])return 4===n.length?(t=parseInt(n.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===n.length&&(t=parseInt(n.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var r=n.indexOf("("),i=n.indexOf(")");if(-1!==r&&i+1===n.length){var o=n.substr(0,r),a=n.substr(r+1,i-(r+1)).split(","),s=1;switch(o){case"rgba":if(4!==a.length)return null;s=Ui(a.pop());case"rgb":return 3!==a.length?null:[Vi(a[0]),Vi(a[1]),Vi(a[2]),s];case"hsla":if(4!==a.length)return null;s=Ui(a.pop());case"hsl":if(3!==a.length)return null;var l=(parseFloat(a[0])%360+360)%360/360,c=Ui(a[1]),u=Ui(a[2]),h=u<=.5?u*(c+1):u+c-u*c,d=2*u-h;return[_i(255*Hi(d,h,l+1/3)),_i(255*Hi(d,h,l)),_i(255*Hi(d,h,l-1/3)),s];default:return null}}return null}}catch(e){}class qi{constructor(e,t,n,r=1){this.r=e,this.g=t,this.b=n,this.a=r}static parse(t){if(!t)return;if(t instanceof qi)return t;if("string"!=typeof t)return;const n=e.G(t);return n?new qi(n[0]/255*n[3],n[1]/255*n[3],n[2]/255*n[3],n[3]):void 0}toString(){const[e,t,n,r]=0===this.a?[0,0,0,0]:[255*this.r/this.a,255*this.g/this.a,255*this.b/this.a,this.a];return`rgba(${Math.round(e)},${Math.round(t)},${Math.round(n)},${r})`}toRenderColor(e){const{r:t,g:n,b:r,a:i}=this;return new Gi(e,t,n,r,i)}}class Gi{constructor(e,t,n,r,i){if(e){const o=e.image.height,a=o*o;t=0===i?0:t/i*(o-1),n=0===i?0:n/i*(o-1),r=0===i?0:r/i*(o-1);const s=Math.floor(t),l=Math.floor(n),c=Math.floor(r),u=Math.ceil(t),h=Math.ceil(n),d=Math.ceil(r),f=t-s,p=n-l,m=r-c,g=e.image.data,y=4*(s+l*a+c*o),v=4*(s+l*a+d*o),b=4*(s+h*a+c*o),A=4*(s+h*a+d*o),x=4*(u+l*a+c*o),w=4*(u+l*a+d*o),C=4*(u+h*a+c*o),S=4*(u+h*a+d*o);if(y<0||S>=g.length)throw new Error("out of range");this.r=Yi(Yi(Yi(g[y],g[v],m),Yi(g[b],g[A],m),p),Yi(Yi(g[x],g[w],m),Yi(g[C],g[S],m),p),f)/255*i,this.g=Yi(Yi(Yi(g[y+1],g[v+1],m),Yi(g[b+1],g[A+1],m),p),Yi(Yi(g[x+1],g[w+1],m),Yi(g[C+1],g[S+1],m),p),f)/255*i,this.b=Yi(Yi(Yi(g[y+2],g[v+2],m),Yi(g[b+2],g[A+2],m),p),Yi(Yi(g[x+2],g[w+2],m),Yi(g[C+2],g[S+2],m),p),f)/255*i,this.a=i}else this.r=t,this.g=n,this.b=r,this.a=i}toArray(){const{r:e,g:t,b:n,a:r}=this;return 0===r?[0,0,0,0]:[255*e/r,255*t/r,255*n/r,r]}toArray01(){const{r:e,g:t,b:n,a:r}=this;return 0===r?[0,0,0,0]:[e/r,t/r,n/r,r]}toArray01Scaled(e){const{r:t,g:n,b:r,a:i}=this;return 0===i?[0,0,0]:[t/i*e,n/i*e,r/i*e]}toArray01PremultipliedAlpha(){const{r:e,g:t,b:n,a:r}=this;return[e,t,n,r]}toArray01Linear(){const{r:e,g:t,b:n,a:r}=this;return 0===r?[0,0,0,0]:[Math.pow(e/r,2.2),Math.pow(t/r,2.2),Math.pow(n/r,2.2),r]}}function Yi(e,t,n){return e*(1-n)+t*n}function Wi(e,t,n){return e.map(((e,r)=>Yi(e,t[r],n)))}qi.black=new qi(0,0,0,1),qi.white=new qi(1,1,1,1),qi.transparent=new qi(0,0,0,0),qi.red=new qi(1,0,0,1),qi.blue=new qi(0,0,1,1);var Qi=Object.freeze({__proto__:null,array:Wi,color:function(e,t,n){return new qi(Yi(e.r,t.r,n),Yi(e.g,t.g,n),Yi(e.b,t.b,n),Yi(e.a,t.a,n))},number:Yi});function Xi(e,...t){for(const n of t)for(const t in n)e[t]=n[t];return e}class Ji extends Error{constructor(e,t){super(t),this.message=t,this.key=e}}class Zi{constructor(e,t=[]){this.parent=e,this.bindings={};for(const[e,n]of t)this.bindings[e]=n}concat(e){return new Zi(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}const Ki={kind:"null"},$i={kind:"number"},eo={kind:"string"},to={kind:"boolean"},no={kind:"color"},ro={kind:"object"},io={kind:"value"},oo={kind:"collator"},ao={kind:"formatted"},so={kind:"resolvedImage"};function lo(e,t){return{kind:"array",itemType:e,N:t}}function co(e){if("array"===e.kind){const t=co(e.itemType);return"number"==typeof e.N?`array<${t}, ${e.N}>`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const uo=[Ki,$i,eo,to,no,ao,ro,lo(io),so];function ho(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!ho(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(const e of uo)if(!ho(e,t))return null}return`Expected ${co(e)} but found ${co(t)} instead.`}function fo(e,t){return t.some((t=>t.kind===e.kind))}function po(e,t){return t.some((t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e))}class mo{constructor(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class go{constructor(e,t,n,r,i){this.text=e.normalize?e.normalize():e,this.image=t,this.scale=n,this.fontStack=r,this.textColor=i}}class yo{constructor(e){this.sections=e}static fromString(e){return new yo([new go(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some((e=>0!==e.text.length||e.image&&0!==e.image.namePrimary.length))}static factory(e){return e instanceof yo?e:yo.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map((e=>e.text)).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){e.push(["image",t.image.namePrimary]);continue}e.push(t.text);const n={};t.fontStack&&(n["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(n["font-scale"]=t.scale),t.textColor&&(n["text-color"]=["rgba"].concat(t.textColor.toRenderColor(null).toArray())),e.push(n)}return e}}class vo{constructor(e){this.namePrimary=e.namePrimary,e.nameSecondary&&(this.nameSecondary=e.nameSecondary),this.available=e.available}toString(){return this.nameSecondary?`[${this.namePrimary},${this.nameSecondary}]`:this.namePrimary}static fromString(e,t){return e?new vo({namePrimary:e,nameSecondary:t,available:!1}):null}serialize(){return this.nameSecondary?["image",this.namePrimary,this.nameSecondary]:["image",this.namePrimary]}}function bo(e,t,n,r){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:`Invalid rgba value [${[e,t,n,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof r?[e,t,n,r]:[e,t,n]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Ao(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof qi)return!0;if(e instanceof mo)return!0;if(e instanceof yo)return!0;if(e instanceof vo)return!0;if(Array.isArray(e)){for(const t of e)if(!Ao(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!Ao(e[t]))return!1;return!0}return!1}function xo(e){if(null===e)return Ki;if("string"==typeof e)return eo;if("boolean"==typeof e)return to;if("number"==typeof e)return $i;if(e instanceof qi)return no;if(e instanceof mo)return oo;if(e instanceof yo)return ao;if(e instanceof vo)return so;if(Array.isArray(e)){const t=e.length;let n;for(const t of e){const e=xo(t);if(n){if(n===e)continue;n=io;break}n=e}return lo(n||io,t)}return ro}function wo(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof qi||e instanceof yo||e instanceof vo?e.toString():JSON.stringify(e)}class Co{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Ao(e[1]))return t.error("invalid value");const n=e[1];let r=xo(n);const i=t.expectedType;return"array"!==r.kind||0!==r.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(r=i),new Co(r,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof qi?["rgba"].concat(this.value.toRenderColor(null).toArray()):this.value instanceof yo?this.value.serialize():this.value}}class So{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const Eo={string:eo,number:$i,boolean:to,object:ro};class ko{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let n,r=1;const i=e[0];if("array"===i){let i,o;if(e.length>2){const n=e[1];if("string"!=typeof n||!(n in Eo)||"object"===n)return t.error('The item type argument of "array" must be one of string, number, boolean',1);i=Eo[n],r++}else i=io;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);o=e[2],r++}n=lo(i,o)}else n=Eo[i];const o=[];for(;re.outputDefined()))}serialize(){const e=this.type,t=[e.kind];if("array"===e.kind){const n=e.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){t.push(n.kind);const r=e.N;("number"==typeof r||this.args.length>1)&&t.push(r)}}return t.concat(this.args.map((e=>e.serialize())))}}class To{constructor(e){this.type=ao,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[1];if(!Array.isArray(n)&&"object"==typeof n)return t.error("First argument must be an image or text section.");const r=[];let i=!1;for(let n=1;n<=e.length-1;++n){const o=e[n];if(i&&"object"==typeof o&&!Array.isArray(o)){i=!1;let e=null;if(o["font-scale"]&&(e=t.parse(o["font-scale"],1,$i),!e))return null;let n=null;if(o["text-font"]&&(n=t.parse(o["text-font"],1,lo(eo)),!n))return null;let a=null;if(o["text-color"]&&(a=t.parse(o["text-color"],1,no),!a))return null;const s=r[r.length-1];s.scale=e,s.font=n,s.textColor=a}else{const o=t.parse(e[n],1,io);if(!o)return null;const a=o.type.kind;if("string"!==a&&"value"!==a&&"null"!==a&&"resolvedImage"!==a)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,r.push({content:o,scale:null,font:null,textColor:null})}}return new To(r)}evaluate(e){return new yo(this.sections.map((t=>{const n=t.content.evaluate(e);return xo(n)===so?new go("",n,null,null,null):new go(wo(n),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const n={};t.scale&&(n["font-scale"]=t.scale.serialize()),t.font&&(n["text-font"]=t.font.serialize()),t.textColor&&(n["text-color"]=t.textColor.serialize()),e.push(n)}return e}}class Io{constructor(e,t){this.type=so,this.inputPrimary=e,this.inputSecondary=t}static parse(e,t){if(e.length<2)return t.error("Expected two or more arguments.");const n=t.parse(e[1],1,eo);if(!n)return t.error("No image name provided.");if(2===e.length)return new Io(n);const r=t.parse(e[2],1,eo);return r?new Io(n,r):t.error("Secondary image variant is not a string.")}evaluate(e){const t=vo.fromString(this.inputPrimary.evaluate(e),this.inputSecondary?this.inputSecondary.evaluate(e):void 0);return t&&e.availableImages&&(t.available=e.availableImages.indexOf(t.namePrimary)>-1,t.nameSecondary&&t.available&&e.availableImages&&(t.available=e.availableImages.indexOf(t.nameSecondary)>-1)),t}eachChild(e){e(this.inputPrimary),this.inputSecondary&&e(this.inputSecondary)}outputDefined(){return!1}serialize(){return this.inputSecondary?["image",this.inputPrimary.serialize(),this.inputSecondary.serialize()]:["image",this.inputPrimary.serialize()]}}function Oo(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}const Ro={"to-boolean":to,"to-color":no,"to-number":$i,"to-string":eo};class Mo{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[0],r=[];let i=Ki;if("to-array"===n){if(!Array.isArray(e[1]))return null;const n=e[1].length;if(t.expectedType){if("array"!==t.expectedType.kind)return t.error(`Expected ${t.expectedType.kind} but found array.`);i=lo(t.expectedType.itemType,n)}else{if(!(n>0&&Ao(e[1][0])))return null;i=lo(xo(e[1][0]),n)}for(let o=0;o4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:bo(t[0],t[1],t[2],t[3]),!n))return new qi(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new So(n||`Could not parse color from value '${"string"==typeof t?t:String(JSON.stringify(t))}'`)}if("number"===this.type.kind){let t=null;for(const n of this.args){if(t=n.evaluate(e),null===t)return 0;const r=Number(t);if(!isNaN(r))return r}throw new So(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?yo.fromString(wo(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?vo.fromString(wo(this.args[0].evaluate(e))):"array"===this.type.kind?this.args.map((t=>t.evaluate(e))):wo(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){if("formatted"===this.type.kind)return new To([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Io(this.args[0]).serialize();const e="array"===this.type.kind?[]:[`to-${this.type.kind}`];return this.eachChild((t=>{e.push(t.serialize())})),e}}const Po=["Unknown","Point","LineString","Polygon"];class Do{constructor(e,t){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=e,this.options=t}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?Po[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}measureLight(e){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,t=this.featureDistanceData.scale,{x:n,y:r}=this.featureTileCoord,i=n*t-e[0],o=r*t-e[1];return this.featureDistanceData.bearing[0]*i+this.featureDistanceData.bearing[1]*o}return 0}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=qi.parse(e)),t}getConfig(e){return this.options?this.options.get(e):null}}class jo{constructor(e,t,n,r,i){this.name=e,this.type=t,this._evaluate=n,this.args=r,this._overloadIndex=i}evaluate(e){if(!this._evaluate){const e=jo.definitions[this.name];this._evaluate=Array.isArray(e)?e[2]:e.overloads[this._overloadIndex][1]}return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map((e=>e.serialize())))}static parse(e,t){const n=e[0],r=jo.definitions[n];if(!r)return t.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const i=Array.isArray(r)?r[0]:r.type,o=Array.isArray(r)?[[r[1],r[2]]]:r.overloads,a=[];let s=null,l=-1;for(const[r,c]of o){if(Array.isArray(r)&&r.length!==e.length-1)continue;a.push(r),l++,s=new $a(t.registry,t.path,null,t.scope,void 0,t._scope,t.options);const o=[];let u=!1;for(let t=1;te))).map(Bo).join(" | "),r=[];for(let n=1;nn;){if(r-n>600){const o=r-n+1,a=t-n+1,s=Math.log(o),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(o-l)/o)*(a-o/2<0?-1:1);Fo(e,t,Math.max(n,Math.floor(t-a*l/o+c)),Math.min(r,Math.floor(t+(o-a)*l/o+c)),i)}const o=e[t];let a=n,s=r;for(No(e,n,t),i(e[r],o)>0&&No(e,n,r);a0;)s--}0===i(e[n],o)?No(e,n,s):(s++,No(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}}function No(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function _o(e,t){return et?1:0}function zo(e){let t=0;for(let n,r,i=0,o=e.length,a=o-1;i=t[2]||e[1]<=t[1]||e[3]>=t[3])}function Ho(e,t,n){const r=e[0]-t[0],i=e[1]-t[1],o=e[0]-n[0],a=e[1]-n[1];return r*a-o*i==0&&r*o<=0&&i*a<=0}function qo(e,t,n=!1){let r=!1;for(let s=0,l=t.length;si[1]!=a[1]>i[1]&&i[0]<(a[0]-o[0])*(i[1]-o[1])/(a[1]-o[1])+o[0]&&(r=!r)}}var i,o,a;return r}function Go(e,t,n,r){const i=e[0]-n[0],o=e[1]-n[1],a=t[0]-n[0],s=t[1]-n[1],l=r[0]-n[0],c=r[1]-n[1],u=i*c-l*o,h=a*c-l*s;return u>0&&h<0||u<0&&h>0}function Yo(e,t,n,r){const i=[t[0]-e[0],t[1]-e[1]];return 0!=(o=[r[0]-n[0],r[1]-n[1]],a=i,o[0]*a[1]-o[1]*a[0])&&!(!Go(e,t,n,r)||!Go(n,r,e,t));var o,a}const Wo=8192;function Qo(e,t){const n=(180+e[0])/360,r=(o=e[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+o*Math.PI/360)))/360),i=Math.pow(2,t.z);var o;return[Math.round(n*i*Wo),Math.round(r*i*Wo)]}function Xo(e,t){for(let n=0;nn[2]){const t=.5*r;let i=e[0]-n[0]>t?-r:n[0]-e[0]>t?r:0;0===i&&(i=e[0]-n[2]>t?-r:n[2]-e[0]>t?r:0),e[0]+=i}Vo(t,e)}function na(e,t,n,r){const i=Math.pow(2,r.z)*Wo,o=[r.x*Wo,r.y*Wo],a=[];if(!e)return a;for(const r of e)for(const e of r){const r=[e.x+o[0],e.y+o[1]];ta(r,t,n,i),a.push(r)}return a}function ra(e,t,n,r){const i=Math.pow(2,r.z)*Wo,o=[r.x*Wo,r.y*Wo],a=[];if(!e)return a;for(const n of e){const e=[];for(const r of n){const n=[r.x+o[0],r.y+o[1]];Vo(t,n),e.push(n)}a.push(e)}if(t[2]-t[0]<=i/2){(s=t)[0]=s[1]=1/0,s[2]=s[3]=-1/0;for(const e of a)for(const r of e)ta(r,t,n,i)}var s;return a}class ia{constructor(e,t){this.type=to,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Ao(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;et)return ha(i,o,(t-(n-a))/a)}return e[e.length-1]}pointToSegmentDistance(e,t,n){let[r,i]=t,o=da(n[0]-r)*this.kx,a=(n[1]-i)*this.ky;if(0!==o||0!==a){const t=(da(e[0]-r)*this.kx*o+(e[1]-i)*this.ky*a)/(o*o+a*a);t>1?(r=n[0],i=n[1]):t>0&&(r+=o/this.kx*t,i+=a/this.ky*t)}return o=da(e[0]-r)*this.kx,a=(e[1]-i)*this.ky,Math.sqrt(o*o+a*a)}pointOnLine(e,t){let n=1/0,r=e[0][0],i=e[0][1],o=0,a=0;for(let s=0;s1?(l=e[s+1][0],c=e[s+1][1]):d>0&&(l+=u/this.kx*d,c+=h/this.ky*d)),u=da(t[0]-l)*this.kx,h=(t[1]-c)*this.ky;const f=u*u+h*h;fi.index||r.index===i.index&&r.t>i.t){const e=r;r=i,i=e}const o=[r.point],a=r.index+1,s=i.index;!ua(n[a],o[0])&&a<=s&&o.push(n[a]);for(let e=a+1;e<=s;e++)o.push(n[e]);return ua(n[s],i.point)||o.push(i.point),o}lineSliceAlong(e,t,n){let r=0;const i=[];for(let o=0;oe&&0===i.length&&i.push(ha(a,s,(e-(r-l))/l)),r>=t)return i.push(ha(a,s,(t-(r-l))/l)),i;r>e&&i.push(s)}return i}bufferPoint(e,t){const n=t/this.ky,r=t/this.kx;return[e[0]-r,e[1]-n,e[0]+r,e[1]+n]}bufferBBox(e,t){const n=t/this.ky,r=t/this.kx;return[e[0]-r,e[1]-n,e[2]+r,e[3]+n]}insideBBox(e,t){return da(e[0]-t[0])>=0&&da(e[0]-t[2])<=0&&e[1]>=t[1]&&e[1]<=t[3]}}function ua(e,t){return e[0]===t[0]&&e[1]===t[1]}function ha(e,t,n){const r=da(t[0]-e[0]),i=t[1]-e[1];return[e[0]+r*n,e[1]+i*n]}function da(e){for(;e<-180;)e+=360;for(;e>180;)e-=360;return e}class fa{constructor(e=[],t=(e,t)=>et?1:0){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:n}=this,r=t[e];for(;e>0;){const i=e-1>>1,o=t[i];if(n(r,o)>=0)break;t[e]=o,e=i}t[e]=r}_down(e){const{data:t,compare:n}=this,r=this.length>>1,i=t[e];for(;e=0)break;t[e]=t[r],e=r}t[e]=i}}var pa=8192;function ma(e,t){return t.dist-e.dist}function ga(e){const t=[1/0,1/0,-1/0,-1/0];if(t.length!==e.length)return!1;for(let n=0;n=e[0]&&e[1]e[1])return[null,null];const n=ya(e);if(t){if(2===n)return[e,null];const t=Math.floor(n/2);return[[e[0],e[0]+t],[e[0]+t,e[1]]]}{if(1===n)return[e,null];const t=Math.floor(n/2)-1;return[[e[0],e[0]+t],[e[0]+t+1,e[1]]]}}function Aa(e,t){const n=[1/0,1/0,-1/0,-1/0];if(!va(t,e.length))return n;for(let r=t[0];r<=t[1];++r)Vo(n,e[r]);return n}function xa(e){const t=[1/0,1/0,-1/0,-1/0];for(let n=0;nt[2]&&(r=e[0]-t[2]),e[1]>t[3]&&(i=e[1]-t[3]),e[3]=r)return r;if(Uo(i,o)){if(ja(e,t))return 0}else if(ja(t,e))return 0;let a=r;for(const r of e)for(let e=0,i=r.length,o=i-1;e=o)continue;const a=i.range1;if(ya(a)<=l){if(!va(a,e.length))return NaN;if(t){const t=Da(e,a,n,r);if(0===(o=Math.min(o,t)))return o}else for(let t=a[0];t<=a[1];++t){const i=Pa(e[t],n,r);if(0===(o=Math.min(o,i)))return o}}else{const n=ba(a,t);if(null!==n[0]){const t=wa(Aa(e,n[0]),c,r);t=a)continue;const s=o.range1,h=o.range2;if(ya(s)<=c&&ya(h)<=u){if(!va(s,e.length)||!va(h,n.length))return NaN;if(t&&r?a=Math.min(a,Ra(e,s,n,h,i)):t||r?t&&!r?a=Math.min(a,Ia(n,h,e,s,i)):!t&&r&&(a=Math.min(a,Ia(e,s,n,h,i))):a=Math.min(a,Ma(e,s,n,h,i)),0===a)return a}else{const o=ba(s,t),c=ba(h,r);La(l,a,i,e,n,o[0],c[0]),La(l,a,i,e,n,o[0],c[1]),La(l,a,i,e,n,o[1],c[0]),La(l,a,i,e,n,o[1],c[1])}}return a}function _a(e,t,n,r,i=1/0){let o=i;const a=Aa(e,[0,e.length-1]);for(const i of n)if(!(o!==1/0&&wa(a,Aa(i,[0,i.length-1]),r)>=o)&&(o=Math.min(o,Na(e,t,i,!0,r,o)),0===o))return o;return o}function za(e,t,n,r,i=1/0){let o=i;const a=Aa(e,[0,e.length-1]);for(const i of n){if(o!==1/0&&wa(a,xa(i),r)>=o)continue;const n=Fa(e,t,i,r,o);if(isNaN(n))return n;if(0===(o=Math.min(o,n)))return o}return o}function Va(e,t,n){const r=[];for(const n of function(e){const t=e.length;if(t<=1)return[e];const n=[];let r,i;for(let o=0;on&&(e=n),e}class Ya{constructor(e,t,n){this.type=e,this.key=t,this.scope=n}static parse(e,t){let n=t.expectedType;if(null==n&&(n=io),e.length<2||e.length>3)return t.error("Invalid number of arguments for 'config' expression.");const r=t.parse(e[1],1);if(!(r instanceof Co))return t.error("Key name of 'config' expression must be a string literal.");if(e.length>=3){const i=t.parse(e[2],2);return i instanceof Co?new Ya(n,wo(r.value),wo(i.value)):t.error("Scope of 'config' expression must be a string literal.")}return new Ya(n,wo(r.value))}evaluate(e){const t=[this.key,this.scope,e.scope].filter(Boolean).join(""),n=e.getConfig(t);if(!n)return null;const{type:r,value:i,values:o,minValue:a,maxValue:s,stepValue:l}=n,c=n.default.evaluate(e);let u=c;if(i){const t=e.scope;e.scope=(t||"").split("").slice(1).join(""),u=i.evaluate(e),e.scope=t}return r&&(u=qa(r,u)),void 0===u||void 0===a&&void 0===s&&void 0===l||("number"==typeof u?u=Ga(u,a,s,l):Array.isArray(u)&&(u=u.map((e=>"number"==typeof e?Ga(e,a,s,l):e)))),void 0!==i&&void 0!==u&&o&&!o.includes(u)&&(u=c,r&&(u=qa(r,u))),(r&&r!==this.type||void 0!==u&&xo(u)!==this.type)&&(u=qa(this.type.kind,u)),u}eachChild(){}outputDefined(){return!1}serialize(){const e=["config",this.key];return this.scope&&e.concat(this.key),e}}function Wa(e){if(e instanceof jo){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}if(e instanceof ia)return!1;if(e instanceof Ha)return!1;let t=!0;return e.eachChild((e=>{t&&!Wa(e)&&(t=!1)})),t}function Qa(e){if(e instanceof jo&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild((e=>{t&&!Qa(e)&&(t=!1)})),t}function Xa(e){if(e instanceof Ya)return new Set([e.key]);let t=new Set;return e.eachChild((e=>{t=new Set([...t,...Xa(e)])})),t}function Ja(e,t){if(e instanceof jo&&t.indexOf(e.name)>=0)return!1;let n=!0;return e.eachChild((e=>{n&&!Ja(e,t)&&(n=!1)})),n}class Za{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");const n=e[1];return t.scope.has(n)?new Za(n,t.scope.get(n)):t.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class Ka{constructor(e,t=[],n,r=new Zi,i=[],o,a){this.registry=e,this.path=t,this.key=t.map((e=>`[${e}]`)).join(""),this.scope=r,this.errors=i,this.expectedType=n,this._scope=o,this.options=a}parse(e,t,n,r,i={}){return t||n?this.concat(t,n,r)._parse(e,i):this._parse(e,i)}_parse(e,t){function n(e,t,n){return"assert"===n?new ko(t,[e]):"coerce"===n?new Mo(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const r="string"==typeof e[0]?this.registry[e[0]]:void 0;if(r){let i=r.parse(e,this);if(!i)return null;if(this.expectedType){const e=this.expectedType,r=i.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==r.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==r.kind&&"string"!==r.kind){if(this.checkSubtype(e,r))return null}else i=n(i,e,t.typeAnnotation||"coerce");else i=n(i,e,t.typeAnnotation||"assert")}if(!(i instanceof Co)&&"resolvedImage"!==i.type.kind&&es(i)){const e=new Do(this._scope,this.options);try{i=new Co(i.type,i.evaluate(e))}catch(e){return this.error(e.message),null}}return i}return Mo.parse(["to-array",e],this)}return void 0===e?this.error("'undefined' value invalid. Use null instead."):"object"==typeof e?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof e} instead.`)}concat(e,t,n){const r="number"==typeof e?this.path.concat(e):this.path,i=n?this.scope.concat(n):this.scope;return new Ka(this.registry,r,t||null,i,this.errors,this._scope,this.options)}error(e,...t){const n=`${this.key}${t.map((e=>`[${e}]`)).join("")}`;this.errors.push(new Ji(n,e))}checkSubtype(e,t){const n=ho(e,t);return n&&this.error(n),n}}var $a=Ka;function es(e){if(e instanceof Za)return es(e.boundExpression);if(e instanceof jo&&"error"===e.name)return!1;if(e instanceof Lo)return!1;if(e instanceof ia)return!1;if(e instanceof Ha)return!1;if(e instanceof Ya)return!1;const t=e instanceof Mo||e instanceof ko;let n=!0;return e.eachChild((e=>{n=t?n&&es(e):n&&e instanceof Co})),!!n&&Wa(e)&&Ja(e,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed"])}function ts(e,t){const n=e.length-1;let r,i,o=0,a=n,s=0;for(;o<=a;)if(s=Math.floor((o+a)/2),r=e[s],i=e[s+1],r<=t){if(s===n||tt))throw new So("Input is not a number.");a=s-1}return 0}class ns{constructor(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[e,t]of n)this.labels.push(e),this.outputs.push(t)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");const n=t.parse(e[1],1,$i);if(!n)return null;const r=[];let i=null;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);for(let n=1;n=o)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',s);const c=t.parse(a,l,i);if(!c)return null;i=i||c.type,r.push([o,c])}return new ns(i,n,r)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);const i=t.length;return r>=t[i-1]?n[i-1].evaluate(e):n[ts(t,r)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){const e=["step",this.input.serialize()];for(let t=0;t0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}const rs=.95047,is=1.08883,os=4/29,as=6/29,ss=3*as*as,ls=as*as*as,cs=Math.PI/180,us=180/Math.PI;function hs(e){return e>ls?Math.pow(e,1/3):e/ss+os}function ds(e){return e>as?e*e*e:ss*(e-os)}function fs(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ps(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ms(e){const t=ps(e.r),n=ps(e.g),r=ps(e.b),i=hs((.4124564*t+.3575761*n+.1804375*r)/rs),o=hs((.2126729*t+.7151522*n+.072175*r)/1);return{l:116*o-16,a:500*(i-o),b:200*(o-hs((.0193339*t+.119192*n+.9503041*r)/is)),alpha:e.a}}function gs(e){let t=(e.l+16)/116,n=isNaN(e.a)?t:t+e.a/500,r=isNaN(e.b)?t:t-e.b/200;return t=1*ds(t),n=rs*ds(n),r=is*ds(r),new qi(fs(3.2404542*n-1.5371385*t-.4985314*r),fs(-.969266*n+1.8760108*t+.041556*r),fs(.0556434*n-.2040259*t+1.0572252*r),e.alpha)}function ys(e,t,n){const r=t-e;return e+n*(r>180||r<-180?r-360*Math.round(r/360):r)}const vs={forward:ms,reverse:gs,interpolate:function(e,t,n){return{l:Yi(e.l,t.l,n),a:Yi(e.a,t.a,n),b:Yi(e.b,t.b,n),alpha:Yi(e.alpha,t.alpha,n)}}},bs={forward:function(e){const{l:t,a:n,b:r}=ms(e),i=Math.atan2(r,n)*us;return{h:i<0?i+360:i,c:Math.sqrt(n*n+r*r),l:t,alpha:e.a}},reverse:function(e){const t=e.h*cs,n=e.c;return gs({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:ys(e.h,t.h,n),c:Yi(e.c,t.c,n),l:Yi(e.l,t.l,n),alpha:Yi(e.alpha,t.alpha,n)}}};var As=Object.freeze({__proto__:null,hcl:bs,lab:vs});class xs{constructor(e,t,n,r,i){this.type=e,this.operator=t,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(const[e,t]of i)this.labels.push(e),this.outputs.push(t)}static interpolationFactor(e,t,n,r){let i=0;if("exponential"===e.name)i=ws(t,e.base,n,r);else if("linear"===e.name)i=ws(t,1,n,r);else if("cubic-bezier"===e.name){const o=e.controlPoints;i=new Dn(o[0],o[1],o[2],o[3]).solve(ws(t,1,n,r))}return i}static parse(e,t){let[n,r,i,...o]=e;if(!Array.isArray(r)||0===r.length)return t.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){const e=r[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:e}}else{if("cubic-bezier"!==r[0])return t.error(`Unknown interpolation type ${String(r[0])}`,1,0);{const e=r.slice(1);if(4!==e.length||e.some((e=>"number"!=typeof e||e<0||e>1)))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(i=t.parse(i,2,$i),!i)return null;const a=[];let s=null;"interpolate-hcl"===n||"interpolate-lab"===n?s=no:t.expectedType&&"value"!==t.expectedType.kind&&(s=t.expectedType);for(let e=0;e=n)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',i);const c=t.parse(r,l,s);if(!c)return null;s=s||c.type,a.push([n,c])}return"number"===s.kind||"color"===s.kind||"array"===s.kind&&"number"===s.itemType.kind&&"number"==typeof s.N?new xs(s,n,r,i,a):t.error(`Type ${co(s)} is not interpolatable.`)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);const i=t.length;if(r>=t[i-1])return n[i-1].evaluate(e);const o=ts(t,r),a=t[o],s=t[o+1],l=xs.interpolationFactor(this.interpolation,r,a,s),c=n[o].evaluate(e),u=n[o+1].evaluate(e);return"interpolate"===this.operator?Qi[this.type.kind.toLowerCase()](c,u,l):"interpolate-hcl"===this.operator?bs.reverse(bs.interpolate(bs.forward(c),bs.forward(u),l)):vs.reverse(vs.interpolate(vs.forward(c),vs.forward(u),l))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){let e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const t=[this.operator,e,this.input.serialize()];for(let e=0;eho(r,e.type)));return new Cs(o?io:n,i)}evaluate(e){let t,n=null,r=0;for(const i of this.args){if(r++,n=i.evaluate(e),n&&n instanceof vo&&!n.available&&(t||(t=n),n=null,r===this.args.length))return t;if(null!==n)break}return n}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){const e=["coalesce"];return this.eachChild((t=>{e.push(t.serialize())})),e}}class Ss{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const n=[];for(let r=1;r=n.length)throw new So(`Array index out of bounds: ${t} > ${n.length-1}.`);if(t!==Math.floor(t))throw new So(`Array index must be an integer, but found ${t} instead.`);return n[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class ks{constructor(e,t){this.type=to,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,io),r=t.parse(e[2],2,io);return n&&r?fo(n.type,[to,eo,$i,Ki,io])?new ks(n,r):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${co(n.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(null==n)return!1;if(!po(t,["boolean","string","number","null"]))throw new So(`Expected first argument to be of type boolean, string, number or null, but found ${co(xo(t))} instead.`);if(!po(n,["string","array"]))throw new So(`Expected second argument to be of type array or string, but found ${co(xo(n))} instead.`);return n.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class Ts{constructor(e,t,n){this.type=$i,this.needle=e,this.haystack=t,this.fromIndex=n}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,io),r=t.parse(e[2],2,io);if(!n||!r)return null;if(!fo(n.type,[to,eo,$i,Ki,io]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${co(n.type)} instead`);if(4===e.length){const i=t.parse(e[3],3,$i);return i?new Ts(n,r,i):null}return new Ts(n,r)}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!po(t,["boolean","string","number","null"]))throw new So(`Expected first argument to be of type boolean, string, number or null, but found ${co(xo(t))} instead.`);if(!po(n,["string","array"]))throw new So(`Expected second argument to be of type array or string, but found ${co(xo(n))} instead.`);if(this.fromIndex){const r=this.fromIndex.evaluate(e);return n.indexOf(t,r)}return n.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class Is{constructor(e,t,n,r,i,o){this.inputType=e,this.type=t,this.input=n,this.cases=r,this.outputs=i,this.otherwise=o}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return t.error("Expected an even number of arguments.");let n,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);const i={},o=[];for(let a=2;aNumber.MAX_SAFE_INTEGER)return c.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return c.error("Numeric branch labels must be integer values.");if(n){if(c.checkSubtype(n,xo(e)))return null}else n=xo(e);if(void 0!==i[String(e)])return c.error("Branch labels must be unique.");i[String(e)]=o.length}const u=t.parse(l,a,r);if(!u)return null;r=r||u.type,o.push(u)}const a=t.parse(e[1],1,io);if(!a)return null;const s=t.parse(e[e.length-1],e.length-1,r);return s?"value"!==a.type.kind&&t.concat(1).checkSubtype(n,a.type)?null:new Is(n,r,a,i,o,s):null}evaluate(e){const t=this.input.evaluate(e);return(xo(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),n=[],r={};for(const e of t){const t=r[this.cases[e]];void 0===t?(r[this.cases[e]]=n.length,n.push([this.cases[e],[e]])):n[t][1].push(e)}const i=e=>"number"===this.inputType.kind?Number(e):e;for(const[t,r]of n)1===r.length?e.push(i(r[0])):e.push(r.map(i)),e.push(this.outputs[t].serialize());return e.push(this.otherwise.serialize()),e}}class Os{constructor(e,t,n){this.type=e,this.branches=t,this.otherwise=n}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return t.error("Expected an odd number of arguments.");let n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);const r=[];for(let i=1;it.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild((t=>{e.push(t.serialize())})),e}}class Rs{constructor(e,t,n,r){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=r}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,io),r=t.parse(e[2],2,$i);if(!n||!r)return null;if(!fo(n.type,[lo(io),eo,io]))return t.error(`Expected first argument to be of type array or string, but found ${co(n.type)} instead`);if(4===e.length){const i=t.parse(e[3],3,$i);return i?new Rs(n.type,n,r,i):null}return new Rs(n.type,n,r)}evaluate(e){const t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!po(t,["string","array"]))throw new So(`Expected first argument to be of type array or string, but found ${co(xo(t))} instead.`);if(this.endIndex){const r=this.endIndex.evaluate(e);return t.slice(n,r)}return t.slice(n)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}function Ms(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function Ps(e,t,n,r){return 0===r.compare(t,n)}function Ds(e,t,n){const r="=="!==e&&"!="!==e;return class i{constructor(e,t,n){this.type=to,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const n=e[0];let o=t.parse(e[1],1,io);if(!o)return null;if(!Ms(n,o.type))return t.concat(1).error(`"${n}" comparisons are not supported for type '${co(o.type)}'.`);let a=t.parse(e[2],2,io);if(!a)return null;if(!Ms(n,a.type))return t.concat(2).error(`"${n}" comparisons are not supported for type '${co(a.type)}'.`);if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error(`Cannot compare types '${co(o.type)}' and '${co(a.type)}'.`);r&&("value"===o.type.kind&&"value"!==a.type.kind?o=new ko(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new ko(o.type,[a])));let s=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(s=t.parse(e[3],3,oo),!s)return null}return new i(o,a,s)}evaluate(i){const o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(r&&this.hasUntypedArgument){const t=xo(o),n=xo(a);if(t.kind!==n.kind||"string"!==t.kind&&"number"!==t.kind)throw new So(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${n.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const e=xo(o),n=xo(a);if("string"!==e.kind||"string"!==n.kind)return t(i,o,a)}return this.collator?n(i,o,a,this.collator.evaluate(i)):t(i,o,a)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}serialize(){const t=[e];return this.eachChild((e=>{t.push(e.serialize())})),t}}}const js=Ds("==",(function(e,t,n){return t===n}),Ps),Bs=Ds("!=",(function(e,t,n){return t!==n}),(function(e,t,n,r){return!Ps(0,t,n,r)})),Ls=Ds("<",(function(e,t,n){return t",(function(e,t,n){return t>n}),(function(e,t,n,r){return r.compare(t,n)>0})),Ns=Ds("<=",(function(e,t,n){return t<=n}),(function(e,t,n,r){return r.compare(t,n)<=0})),_s=Ds(">=",(function(e,t,n){return t>=n}),(function(e,t,n,r){return r.compare(t,n)>=0}));class zs{constructor(e,t,n,r,i,o){this.type=eo,this.number=e,this.locale=t,this.currency=n,this.unit=r,this.minFractionDigits=i,this.maxFractionDigits=o}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,$i);if(!n)return null;const r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");let i=null;if(r.locale&&(i=t.parse(r.locale,1,eo),!i))return null;let o=null;if(r.currency&&(o=t.parse(r.currency,1,eo),!o))return null;let a=null;if(r.unit&&(a=t.parse(r.unit,1,eo),!a))return null;let s=null;if(r["min-fraction-digits"]&&(s=t.parse(r["min-fraction-digits"],1,$i),!s))return null;let l=null;return r["max-fraction-digits"]&&(l=t.parse(r["max-fraction-digits"],1,$i),!l)?null:new zs(n,i,o,a,s,l)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class Vs{constructor(e){this.type=$i,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const n=t.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?t.error(`Expected argument of type string or array, but found ${co(n.type)} instead.`):new Vs(n):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new So(`Expected value to be of type string or array, but found ${co(xo(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild((t=>{e.push(t.serialize())})),e}}function Us(e){return function(){e=1831565813+(e|=0)|0;let t=Math.imul(e^e>>>15,1|e);return t=t+Math.imul(t^t>>>7,61|t)^t,((t^t>>>14)>>>0)/4294967296}}const Hs={"==":js,"!=":Bs,">":Fs,"<":Ls,">=":_s,"<=":Ns,array:ko,at:Es,boolean:ko,case:Os,coalesce:Cs,collator:Lo,format:To,image:Io,in:ks,"index-of":Ts,interpolate:xs,"interpolate-hcl":xs,"interpolate-lab":xs,length:Vs,let:Ss,literal:Co,match:Is,number:ko,"number-format":zs,object:ko,slice:Rs,step:ns,string:ko,"to-boolean":Mo,"to-color":Mo,"to-number":Mo,"to-string":Mo,var:Za,within:ia,distance:Ha,config:Ya};function qs(e,[t,n,r,i]){t=t.evaluate(e),n=n.evaluate(e),r=r.evaluate(e);const o=i?i.evaluate(e):1,a=bo(t,n,r,o);if(a)throw new So(a);return new qi(t/255*o,n/255*o,r/255*o,o)}function Gs(e,[t,n,r,i]){t=t.evaluate(e),n=n.evaluate(e),r=r.evaluate(e);const o=i?i.evaluate(e):1,a=function(e,t,n,r){return"number"==typeof e&&e>=0&&e<=360?"number"==typeof t&&t>=0&&t<=100&&"number"==typeof n&&n>=0&&n<=100?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:`Invalid hsla value [${[e,t,n,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${("number"==typeof r?[e,t,n,r]:[e,t,n]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${("number"==typeof r?[e,t,n,r]:[e,t,n]).join(", ")}]: 'h' must be between 0 and 360.`}(t,n,r,o);if(a)throw new So(a);const s=`hsla(${t}, ${n}%, ${r}%, ${o})`,l=qi.parse(s);if(!l)throw new So(`Failed to parse HSLA color: ${s}`);return l}function Ys(e,t){return e in t}function Ws(e,t){const n=t[e];return void 0===n?null:n}function Qs(e){return{type:e}}function Xs(e){return{result:"success",value:e}}function Js(e){return{result:"error",value:e}}function Zs(e,t){return!!e&&!!e.parameters&&e.parameters.indexOf(t)>-1}function Ks(e){return"data-driven"===e["property-type"]}function $s(e){return Zs(e.expression,"measure-light")}function el(e){return Zs(e.expression,"zoom")}function tl(e){return!!e.expression&&e.expression.interpolated}function nl(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function rl(e){return e}function il(e,t){const n="color"===t.type,r=e.stops&&"object"==typeof e.stops[0][0],i=r||void 0!==e.property,o=r||!i,a=e.type||(tl(t)?"exponential":"interval");if(n&&((e=Xi({},e)).stops&&(e.stops=e.stops.map((e=>[e[0],qi.parse(e[1])]))),e.default?e.default=qi.parse(e.default):e.default=qi.parse(t.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!As[e.colorSpace])throw new Error(`Unknown color space: ${e.colorSpace}`);let s,l,c;if("exponential"===a)s=ll;else if("interval"===a)s=sl;else if("categorical"===a){s=al,l=Object.create(null);for(const t of e.stops)l[t[0]]=t[1];c=typeof e.stops[0][0]}else{if("identity"!==a)throw new Error(`Unknown function type "${a}"`);s=cl}if(r){const n={},r=[];for(let t=0;te[0])),evaluate:({zoom:n},r)=>ll({stops:i,base:e.base},t,n).evaluate(n,r)}}if(o){const n="exponential"===a?{name:"exponential",base:void 0!==e.base?e.base:1}:null;return{kind:"camera",interpolationType:n,interpolationFactor:xs.interpolationFactor.bind(void 0,n),zoomStops:e.stops.map((e=>e[0])),evaluate:({zoom:n})=>s(e,t,n,l,c)}}return{kind:"source",evaluate(n,r){const i=r&&r.properties?r.properties[e.property]:void 0;return void 0===i?ol(e.default,t.default):s(e,t,i,l,c)}}}function ol(e,t,n){return void 0!==e?e:void 0!==t?t:void 0!==n?n:void 0}function al(e,t,n,r,i){return ol(typeof n===i?r[n]:void 0,e.default,t.default)}function sl(e,t,n){if("number"!==Oo(n))return ol(e.default,t.default);const r=e.stops.length;if(1===r)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[r-1][0])return e.stops[r-1][1];const i=ts(e.stops.map((e=>e[0])),n);return e.stops[i][1]}function ll(e,t,n){const r=void 0!==e.base?e.base:1;if("number"!==Oo(n))return ol(e.default,t.default);const i=e.stops.length;if(1===i)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[i-1][0])return e.stops[i-1][1];const o=ts(e.stops.map((e=>e[0])),n),a=function(e,t,n,r){const i=r-n,o=e-n;return 0===i?0:1===t?o/i:(Math.pow(t,o)-1)/(Math.pow(t,i)-1)}(n,r,e.stops[o][0],e.stops[o+1][0]),s=e.stops[o][1],l=e.stops[o+1][1];let c=Qi[t.type]||rl;if(e.colorSpace&&"rgb"!==e.colorSpace){const t=As[e.colorSpace];c=(e,n)=>t.reverse(t.interpolate(t.forward(e),t.forward(n),a))}return"function"==typeof s.evaluate?{evaluate(...e){const t=s.evaluate.apply(void 0,e),n=l.evaluate.apply(void 0,e);if(void 0!==t&&void 0!==n)return c(t,n,a)}}:c(s,l,a)}function cl(e,t,n){return"color"===t.type?n=qi.parse(n):"formatted"===t.type?n=yo.fromString(n.toString()):"resolvedImage"===t.type?n=vo.fromString(n.toString()):Oo(n)===t.type||"enum"===t.type&&t.values[n]||(n=void 0),ol(n,e.default,t.default)}jo.register(Hs,{error:[{kind:"error"},[eo],(e,[t])=>{throw new So(t.evaluate(e))}],typeof:[eo,[io],(e,[t])=>co(xo(t.evaluate(e)))],"to-rgba":[lo($i,4),[no],(e,[t])=>t.evaluate(e).toRenderColor(null).toArray()],rgb:[no,[$i,$i,$i],qs],rgba:[no,[$i,$i,$i,$i],qs],hsl:[no,[$i,$i,$i],Gs],hsla:[no,[$i,$i,$i,$i],Gs],has:{type:to,overloads:[[[eo],(e,[t])=>Ys(t.evaluate(e),e.properties())],[[eo,ro],(e,[t,n])=>Ys(t.evaluate(e),n.evaluate(e))]]},get:{type:io,overloads:[[[eo],(e,[t])=>Ws(t.evaluate(e),e.properties())],[[eo,ro],(e,[t,n])=>Ws(t.evaluate(e),n.evaluate(e))]]},"feature-state":[io,[eo],(e,[t])=>Ws(t.evaluate(e),e.featureState||{})],properties:[ro,[],e=>e.properties()],"geometry-type":[eo,[],e=>e.geometryType()],id:[io,[],e=>e.id()],zoom:[$i,[],e=>e.globals.zoom],pitch:[$i,[],e=>e.globals.pitch||0],"distance-from-center":[$i,[],e=>e.distanceFromCenter()],"measure-light":[$i,[eo],(e,[t])=>e.measureLight(t.evaluate(e))],"heatmap-density":[$i,[],e=>e.globals.heatmapDensity||0],"line-progress":[$i,[],e=>e.globals.lineProgress||0],"raster-value":[$i,[],e=>e.globals.rasterValue||0],"raster-particle-speed":[$i,[],e=>e.globals.rasterParticleSpeed||0],"sky-radial-progress":[$i,[],e=>e.globals.skyRadialProgress||0],accumulated:[io,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[$i,Qs($i),(e,t)=>{let n=0;for(const r of t)n+=r.evaluate(e);return n}],"*":[$i,Qs($i),(e,t)=>{let n=1;for(const r of t)n*=r.evaluate(e);return n}],"-":{type:$i,overloads:[[[$i,$i],(e,[t,n])=>t.evaluate(e)-n.evaluate(e)],[[$i],(e,[t])=>-t.evaluate(e)]]},"/":[$i,[$i,$i],(e,[t,n])=>t.evaluate(e)/n.evaluate(e)],"%":[$i,[$i,$i],(e,[t,n])=>t.evaluate(e)%n.evaluate(e)],ln2:[$i,[],()=>Math.LN2],pi:[$i,[],()=>Math.PI],e:[$i,[],()=>Math.E],"^":[$i,[$i,$i],(e,[t,n])=>Math.pow(t.evaluate(e),n.evaluate(e))],sqrt:[$i,[$i],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[$i,[$i],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[$i,[$i],(e,[t])=>Math.log(t.evaluate(e))],log2:[$i,[$i],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[$i,[$i],(e,[t])=>Math.sin(t.evaluate(e))],cos:[$i,[$i],(e,[t])=>Math.cos(t.evaluate(e))],tan:[$i,[$i],(e,[t])=>Math.tan(t.evaluate(e))],asin:[$i,[$i],(e,[t])=>Math.asin(t.evaluate(e))],acos:[$i,[$i],(e,[t])=>Math.acos(t.evaluate(e))],atan:[$i,[$i],(e,[t])=>Math.atan(t.evaluate(e))],min:[$i,Qs($i),(e,t)=>Math.min(...t.map((t=>t.evaluate(e))))],max:[$i,Qs($i),(e,t)=>Math.max(...t.map((t=>t.evaluate(e))))],abs:[$i,[$i],(e,[t])=>Math.abs(t.evaluate(e))],round:[$i,[$i],(e,[t])=>{const n=t.evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[$i,[$i],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[$i,[$i],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[to,[eo,io],(e,[t,n])=>e.properties()[t.value]===n.value],"filter-id-==":[to,[io],(e,[t])=>e.id()===t.value],"filter-type-==":[to,[eo],(e,[t])=>e.geometryType()===t.value],"filter-<":[to,[eo,io],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r{const n=e.id(),r=t.value;return typeof n==typeof r&&n":[to,[eo,io],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r>i}],"filter-id->":[to,[io],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n>r}],"filter-<=":[to,[eo,io],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r<=i}],"filter-id-<=":[to,[io],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n<=r}],"filter->=":[to,[eo,io],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r>=i}],"filter-id->=":[to,[io],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n>=r}],"filter-has":[to,[io],(e,[t])=>t.value in e.properties()],"filter-has-id":[to,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[to,[lo(eo)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[to,[lo(io)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[to,[eo,lo(io)],(e,[t,n])=>n.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[to,[eo,lo(io)],(e,[t,n])=>function(e,t,n,r){for(;n<=r;){const i=n+r>>1;if(t[i]===e)return!0;t[i]>e?r=i-1:n=i+1}return!1}(e.properties()[t.value],n.value,0,n.value.length-1)],all:{type:to,overloads:[[[to,to],(e,[t,n])=>t.evaluate(e)&&n.evaluate(e)],[Qs(to),(e,t)=>{for(const n of t)if(!n.evaluate(e))return!1;return!0}]]},any:{type:to,overloads:[[[to,to],(e,[t,n])=>t.evaluate(e)||n.evaluate(e)],[Qs(to),(e,t)=>{for(const n of t)if(n.evaluate(e))return!0;return!1}]]},"!":[to,[to],(e,[t])=>!t.evaluate(e)],"is-supported-script":[to,[eo],(e,[t])=>{const n=e.globals&&e.globals.isSupportedScript;return!n||n(t.evaluate(e))}],upcase:[eo,[eo],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[eo,[eo],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[eo,Qs(io),(e,t)=>t.map((t=>wo(t.evaluate(e)))).join("")],"resolved-locale":[eo,[oo],(e,[t])=>t.evaluate(e).resolvedLocale()],random:[$i,[$i,$i,io],(e,t)=>{const[n,r,i]=t.map((t=>t.evaluate(e)));if(n>r)return n;if(n===r)return n;let o;if("string"==typeof i)o=function(e){let t=0;if(0===e.length)return t;for(let n=0;nJSON.stringify(e))).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${e.message}`)),this._defaultValue}}}function hl(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in Hs}function dl(e,t,n,r){const i=new $a(Hs,[],t?function(e){const t={color:no,string:eo,number:$i,enum:eo,boolean:to,formatted:ao,resolvedImage:so};return"array"===e.type?lo(t[e.value]||io,e.length):t[e.type]}(t):void 0,void 0,void 0,n,r),o=i.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return o?Xs(new ul(o,t,n,r)):Js(i.errors)}class fl{constructor(e,t,n){this.kind=e,this._styleExpression=t,this.isLightConstant=n,this.isStateDependent="constant"!==e&&!Qa(t.expression),this.configDependencies=Xa(t.expression)}evaluateWithoutErrorHandling(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)}evaluate(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)}}class pl{constructor(e,t,n,r,i){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!Qa(t.expression),this.isLightConstant=i,this.configDependencies=Xa(t.expression),this.interpolationType=r}evaluateWithoutErrorHandling(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)}evaluate(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)}interpolationFactor(e,t,n){return this.interpolationType?xs.interpolationFactor(this.interpolationType,e,t,n):0}}function ml(e,t,n,r){if("error"===(e=dl(e,t,n,r)).result)return e;const i=e.value.expression,o=Wa(i);if(!o&&!Ks(t))return Js([new Ji("","data expressions not supported")]);const a=Ja(i,["zoom","pitch","distance-from-center"]);if(!a&&!el(t))return Js([new Ji("","zoom expressions not supported")]);const s=Ja(i,["measure-light"]);if(!s&&!$s(t))return Js([new Ji("","measure-light expression not supported")]);const l=t.expression&&t.expression.relaxZoomRestriction,c=yl(i);if(!(c||a||l))return Js([new Ji("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')]);if(c instanceof Ji)return Js([c]);if(c instanceof xs&&!tl(t))return Js([new Ji("",'"interpolate" expressions cannot be used with this property')]);if(!c)return Xs(new fl(o?"constant":"source",e.value,s));const u=c instanceof xs?c.interpolation:void 0;return Xs(new pl(o?"camera":"composite",e.value,c.labels,u,s))}class gl{constructor(e,t){this._parameters=e,this._specification=t,Xi(this,il(this._parameters,this._specification))}static deserialize(e){return new gl(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function yl(e){let t=null;if(e instanceof Ss)t=yl(e.result);else if(e instanceof Cs){for(const n of e.args)if(t=yl(n),t)break}else(e instanceof ns||e instanceof xs)&&e.input instanceof jo&&"zoom"===e.input.name&&(t=e);return t instanceof Ji||e.eachChild((e=>{const n=yl(e);n instanceof Ji?t=n:t&&n&&t!==n&&(t=new Ji("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),t}var vl=Al,bl=3;function Al(e,t,n){var r=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;var i=new Int32Array(this.arrayBuffer);e=i[0],t=i[1],n=i[2],this.d=t+2*n;for(var o=0;o=u[f+0]&&r>=u[f+1])?(a[d]=!0,o.push(c[d])):a[d]=!1}}},Al.prototype._forEachCell=function(e,t,n,r,i,o,a,s){for(var l=this._convertToCellCoord(e),c=this._convertToCellCoord(t),u=this._convertToCellCoord(n),h=this._convertToCellCoord(r),d=l;d<=u;d++)for(var f=c;f<=h;f++){var p=this.d*f+d;if((!s||s(this._convertFromCellCoord(d),this._convertFromCellCoord(f),this._convertFromCellCoord(d+1),this._convertFromCellCoord(f+1)))&&i.call(this,e,t,n,r,p,o,a,s))return}},Al.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},Al.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},Al.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var e=this.cells,t=bl+this.cells.length+1+1,n=0,r=0;r=0)continue;const o=e[n];i[n]=kl(o,t)}e instanceof Error&&(i.message=e.message)}if(i.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==r&&(i.$name=r),i}throw new Error("can't serialize object of type "+typeof e)}function Tl(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||Sl(e)||El(e)||ArrayBuffer.isView(e)||e instanceof ImageData)return e;if(Array.isArray(e))return e.map(Tl);if("object"==typeof e){const t=e.$name||"Object";if("Map"===t){const t=new Map;for(const n of Object.keys(e)){if("$name"===n)continue;const r=e[n];t.set(n,Tl(r))}return t}if("Set"===t){const t=new Set;for(const n of Object.keys(e)){if("$name"===n)continue;const r=e[n];t.add(Tl(r))}return t}const{klass:n}=wl[t];if(!n)throw new Error(`can't deserialize unregistered class ${t}`);if(n.deserialize)return n.deserialize(e);const r=Object.create(n.prototype);for(const t of Object.keys(e)){if("$name"===t)continue;const n=e[t];r[t]=Tl(n)}return r}throw new Error("can't deserialize object of type "+typeof e)}const Il=e=>e>=128&&e<=255,Ol=e=>e>=1536&&e<=1791,Rl=e=>e>=1872&&e<=1919,Ml=e=>e>=2208&&e<=2303,Pl=e=>e>=4352&&e<=4607,Dl=e=>e>=5120&&e<=5759,jl=e=>e>=6016&&e<=6143,Bl=e=>e>=6320&&e<=6399,Ll=e=>e>=8192&&e<=8303,Fl=e=>e>=8448&&e<=8527,Nl=e=>e>=8528&&e<=8591,_l=e=>e>=8960&&e<=9215,zl=e=>e>=9216&&e<=9279,Vl=e=>e>=9280&&e<=9311,Ul=e=>e>=9312&&e<=9471,Hl=e=>e>=9632&&e<=9727,ql=e=>e>=9728&&e<=9983,Gl=e=>e>=11008&&e<=11263,Yl=e=>e>=11904&&e<=12031,Wl=e=>e>=12032&&e<=12255,Ql=e=>e>=12272&&e<=12287,Xl=e=>e>=12288&&e<=12351,Jl=e=>e>=12352&&e<=12447,Zl=e=>e>=12448&&e<=12543,Kl=e=>e>=12544&&e<=12591,$l=e=>e>=12592&&e<=12687,ec=e=>e>=12688&&e<=12703,tc=e=>e>=12704&&e<=12735,nc=e=>e>=12736&&e<=12783,rc=e=>e>=12784&&e<=12799,ic=e=>e>=12800&&e<=13055,oc=e=>e>=13056&&e<=13311,ac=e=>e>=13312&&e<=19903,sc=e=>e>=19904&&e<=19967,lc=e=>e>=19968&&e<=40959,cc=e=>e>=40960&&e<=42127,uc=e=>e>=42128&&e<=42191,hc=e=>e>=43360&&e<=43391,dc=e=>e>=44032&&e<=55215,fc=e=>e>=55216&&e<=55295,pc=e=>e>=57344&&e<=63743,mc=e=>e>=63744&&e<=64255,gc=e=>e>=64336&&e<=65023,yc=e=>e>=65040&&e<=65055,vc=e=>e>=65072&&e<=65103,bc=e=>e>=65104&&e<=65135,Ac=e=>e>=65136&&e<=65279,xc=e=>e>=65280&&e<=65519,wc=e=>e>=131072&&e<=173791;function Cc(e){for(const t of e)if(Tc(t.charCodeAt(0)))return!0;return!1}function Sc(e){for(const t of e)if(!Ec(t.charCodeAt(0)))return!1;return!0}function Ec(e){return!(Ol(e)||Rl(e)||Ml(e)||gc(e)||Ac(e))}function kc(e){return!(e<11904||!(tc(e)||Kl(e)||vc(e)||mc(e)||oc(e)||Yl(e)||nc(e)||Xl(e)||ac(e)||lc(e)||ic(e)||xc(e)||Jl(e)||Ql(e)||Wl(e)||rc(e)||Zl(e)||yc(e)||uc(e)||cc(e)))}function Tc(e){return!(746!==e&&747!==e&&(e<4352||!(tc(e)||Kl(e)||vc(e)&&!(e>=65097&&e<=65103)||mc(e)||oc(e)||Yl(e)||nc(e)||!(!Xl(e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||ac(e)||lc(e)||ic(e)||$l(e)||hc(e)||fc(e)||Pl(e)||dc(e)||Jl(e)||Ql(e)||ec(e)||Wl(e)||rc(e)||Zl(e)&&12540!==e||!(!xc(e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!bc(e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||Dl(e)||Bl(e)||yc(e)||sc(e)||cc(e)||uc(e))))}function Ic(e){return!(Tc(e)||function(e){return!!(Il(e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||Ll(e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||Fl(e)||Nl(e)||_l(e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||zl(e)&&9251!==e||Vl(e)||Ul(e)||Hl(e)||ql(e)&&!(e>=9754&&e<=9759)||Gl(e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Xl(e)||Zl(e)||pc(e)||vc(e)||bc(e)||xc(e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function Oc(e){return Ol(e)||Rl(e)||Ml(e)||gc(e)||Ac(e)}function Rc(e){return e>=1424&&e<=2303||gc(e)||Ac(e)}function Mc(e,t){return!(!t&&Rc(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||jl(e))}function Pc(e){for(const t of e)if(Rc(t.charCodeAt(0)))return!0;return!1}const Dc="deferred",jc="loading",Bc="loaded",Lc="error";let Fc=null,Nc="unavailable",_c=null;const zc=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(Nc=Lc),Fc&&Fc(e)};function Vc(){Uc.fire(new Di("pluginStateChange",{pluginStatus:Nc,pluginURL:_c}))}const Uc=new Fi,Hc=function(){return Nc},qc=function(){if(Nc!==Dc||!_c)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Nc=jc,Vc(),_c&&ti({url:_c},(e=>{e?zc(e):(Nc=Bc,Vc())}))},Gc={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Nc===Bc||null!=Gc.applyArabicShaping,isLoading:()=>Nc===jc,setState(e){Nc=e.pluginStatus,_c=e.pluginURL},isParsed:()=>null!=Gc.applyArabicShaping&&null!=Gc.processBidirectionalText&&null!=Gc.processStyledBidirectionalText,getPluginURL:()=>_c};class Yc{constructor(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.transition=t.transition,this.pitch=t.pitch,this.brightness=t.brightness):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(e){return function(e,t){for(const n of e)if(!Mc(n.charCodeAt(0),t))return!1;return!0}(e,Gc.isLoaded())}}class Wc{constructor(e,t,n,r){this.property=e,this.value=t,this.expression=function(e,t,n,r){if(nl(e))return new gl(e,t);if(hl(e)||Array.isArray(e)&&e.length>0){const i=ml(e,t,n,r);if("error"===i.result)throw new Error(i.value.map((e=>`${e.key}: ${e.message}`)).join(", "));return i.value}{let n=e;return"string"==typeof e&&"color"===t.type&&(n=qi.parse(e)),{kind:"constant",configDependencies:new Set,evaluate:()=>n}}}(void 0===t?e.specification.default:t,e.specification,n,r)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,t,n){return this.property.possiblyEvaluate(this,e,t,n)}}class Qc{constructor(e,t,n){this.property=e,this.value=new Wc(e,void 0,t,n)}transitioned(e,t){return new Jc(this.property,this.value,t,Zn({},e.transition,this.transition),e.now)}untransitioned(){return new Jc(this.property,this.value,null,{},0)}}class Xc{constructor(e,t,n){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._scope=t,this._options=n,this.configDependencies=new Set}getValue(e){return sr(this._values[e].value.value)}setValue(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Qc(this._values[e].property,this._scope,this._options)),this._values[e].value=new Wc(this._values[e].property,null===t?void 0:sr(t),this._scope,this._options),this._values[e].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].value.expression.configDependencies]))}setTransitionOrValue(e,t){t&&(this._options=t);const n=this._properties.properties;if(e)for(const t in e){const r=e[t];if(ir(t,"-transition")){const e=t.slice(0,-11);n[e]&&this.setTransition(e,r)}else n.hasOwnProperty(t)&&this.setValue(t,r)}}getTransition(e){return sr(this._values[e].transition)}setTransition(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Qc(this._values[e].property)),this._values[e].transition=sr(t)||void 0}serialize(){const e={};for(const t of Object.keys(this._values)){const n=this.getValue(t);void 0!==n&&(e[t]=n);const r=this.getTransition(t);void 0!==r&&(e[`${t}-transition`]=r)}return e}transitioned(e,t){const n=new Zc(this._properties);for(const r of Object.keys(this._values))n._values[r]=this._values[r].transitioned(e,t._values[r]);return n}untransitioned(){const e=new Zc(this._properties);for(const t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}}class Jc{constructor(e,t,n,r,i){const o=r.delay||0,a=r.duration||0;i=i||0,this.property=e,this.value=t,this.begin=i+o,this.end=this.begin+a,e.specification.transition&&(r.delay||r.duration)&&(this.prior=n)}possiblyEvaluate(e,t,n){const r=e.now||0,i=this.value.possiblyEvaluate(e,t,n),o=this.prior;if(o){if(r>this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(r":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"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":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective","property-type":"data-constant"}},"colorTheme":{"data":{"type":"string","property-type":"data-constant","expression":{}}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_raster-particle","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"property-type":"data-constant","type":"number","experimental":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"property-type":"data-constant","type":"number","experimental":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"property-type":"data-constant","type":"number","experimental":true,"default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"property-type":"data-constant","type":"color","experimental":true,"default":"#ffffff","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"property-type":"data-constant","type":"number","experimental":true,"default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","experimental":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","experimental":true,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"property-type":"data-constant","type":"number","experimental":true,"default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"property-type":"data-constant","type":"number","experimental":true,"default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"property-type":"data-constant","type":"boolean","default":true,"experimental":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"fill-extrusion-line-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-line-alignment":{"type":"enum","values":{"inside":1,"outside":1,"center":1},"default":"center","property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"property-type":"constant"},"line-trim-fade-range":{"type":"array","value":"number","experimental":true,"length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-trim-color":{"type":"color","experimental":true,"default":"transparent","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-border-width":{"type":"number","private":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","private":true,"default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"property-type":"data-constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-image-cross-fade":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"transition":true},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-color-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-value"]},"property-type":"color-ramp"},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"raster-array-band":{"type":"string","required":false,"experimental":true,"property-type":"data-constant"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-particle-count":{"type":"number","default":512,"minimum":1,"property-type":"data-constant"},"raster-particle-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-particle-speed"]},"property-type":"color-ramp"},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1,"property-type":"data-constant"},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1,"property-type":"data-constant"},"raster-particle-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d","property-type":"data-constant"},"model-cast-shadows":{"type":"boolean","default":true,"property-type":"data-constant"},"model-receive-shadows":{"type":"boolean","default":true,"property-type":"data-constant"},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant","transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"model-front-cutoff":{"type":"array","private":true,"value":"number","property-type":"data-constant","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function au(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function su(e){if(Array.isArray(e))return e.map(su);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const n in e)t[n]=su(e[n]);return t}return au(e)}function lu(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const t of e.slice(1))if(!lu(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}function cu(e,t="fill"){if(null==e)return{filter:()=>!0,needGeometry:!1,needFeature:!1};lu(e)||(e=gu(e));const n=e;let r=!0;try{r=function(e){if(!du(e))return e;let t=su(e);return hu(t),t=uu(t),t}(n)}catch(e){console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n${JSON.stringify(n,null,2)}\n `)}const i=ou[`filter_${t}`],o=dl(r,i);let a=null;if("error"===o.result)throw new Error(o.value.map((e=>`${e.key}: ${e.message}`)).join(", "));a=(e,t,n)=>o.value.evaluate(e,t,{},n);let s=null,l=null;if(r!==n){const e=dl(n,i);if("error"===e.result)throw new Error(e.value.map((e=>`${e.key}: ${e.message}`)).join(", "));s=(t,n,r,i,o)=>e.value.evaluate(t,n,{},r,void 0,void 0,i,o),l=!Wa(e.value.expression)}return{filter:a,dynamicFilter:s||void 0,needGeometry:mu(r),needFeature:!!l}}function uu(e){if(!Array.isArray(e))return e;const t=function(e){if(fu.has(e[0]))for(let t=1;tuu(e)))}function hu(e){let t=!1;const n=[];if("case"===e[0]){for(let r=1;r",">=","<","<=","to-boolean"]);function pu(e,t){return et?1:0}function mu(e){if(!Array.isArray(e))return!1;if("within"===e[0]||"distance"===e[0])return!0;for(let t=1;t"===t||"<="===t||">="===t?yu(e[1],e[2],t):"any"===t?(n=e.slice(1),["any"].concat(n.map(gu))):"all"===t?["all"].concat(e.slice(1).map(gu)):"none"===t?["all"].concat(e.slice(1).map(gu).map(Au)):"in"===t?vu(e[1],e.slice(2)):"!in"===t?Au(vu(e[1],e.slice(2))):"has"===t?bu(e[1]):"!has"!==t||Au(bu(e[1]));var n}function yu(e,t,n){switch(e){case"$type":return[`filter-type-${n}`,t];case"$id":return[`filter-id-${n}`,t];default:return[`filter-${n}`,e,t]}}function vu(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some((e=>typeof e!=typeof t[0]))?["filter-in-large",e,["literal",t.sort(pu)]]:["filter-in-small",e,["literal",t]]}}function bu(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Au(e){return["!",e]}const xu="";function wu(e,t){return t?`${e}${xu}${t}`:e}const Cu="-transition",Su=new Set(["fill","line","background","hillshade","raster"]);class Eu extends Fi{constructor(e,t,n,r,i){if(super(),this.id=e.id,this.fqid=wu(this.id,n),this.type=e.type,this.scope=n,this.lut=r,this.options=i,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,this.configDependencies=new Set,"custom"!==e.type&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&"sky"!==e.type&&"slot"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),e.slot&&(this.slot=e.slot),t.layout&&(this._unevaluatedLayout=new Kc(t.layout,this.scope,i),this.configDependencies=new Set([...this.configDependencies,...this._unevaluatedLayout.configDependencies])),t.paint)){this._transitionablePaint=new Xc(t.paint,this.scope,i);for(const t in e.paint)this.setPaintProperty(t,e.paint[t]);for(const t in e.layout)this.setLayoutProperty(t,e.layout[t]);this.configDependencies=new Set([...this.configDependencies,...this._transitionablePaint.configDependencies]),this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new eu(t.paint)}}onAdd(e){}onRemove(e){}isDraped(e){return Su.has(this.type)}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,t){if("custom"===this.type&&"visibility"===e)return void(this.visibility=t);const n=this._unevaluatedLayout;n._properties.properties[e]&&(n.setValue(e,t),this.configDependencies=new Set([...this.configDependencies,...n.configDependencies]),"visibility"===e&&this.possiblyEvaluateVisibility())}possiblyEvaluateVisibility(){this.visibility=this._unevaluatedLayout._values.visibility.possiblyEvaluate({zoom:0})}getPaintProperty(e){return ir(e,Cu)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,t){const n=this._transitionablePaint,r=n._properties.properties;if(ir(e,Cu)){const i=e.slice(0,-11);return r[i]&&n.setTransition(i,t||void 0),!1}if(!r[e])return!1;const i=n._values[e],o=i.value.isDataDriven(),a=i.value;n.setValue(e,t),this.configDependencies=new Set([...this.configDependencies,...n.configDependencies]),this._handleSpecialPaintPropertyUpdate(e);const s=n._values[e].value,l=s.isDataDriven(),c=ir(e,"pattern")||"line-dasharray"===e;return l||o||c||this._handleOverridablePaintPropertyUpdate(e,a,s)}_handleSpecialPaintPropertyUpdate(e){}getProgramIds(){return null}getDefaultProgramParams(e,t,n){return null}_handleOverridablePaintPropertyUpdate(e,t,n){return!1}isHidden(e){return!!(this.minzoom&&e=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,t){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}serialize(){return ar({id:this.id,type:this.type,slot:this.slot,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()},((e,t)=>!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length)))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}hasShadowPass(){return!1}canCastShadows(){return!1}hasLightBeamPass(){return!1}cutoffRange(){return 0}tileCoverLift(){return 0}resize(){}isStateDependent(){for(const e in this.paint._values){const t=this.paint.get(e);if(t instanceof $c&&Ks(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=cu(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}getLayerRenderingStats(){return this._stats}resetLayerRenderingStats(e){this._stats&&("shadow"===e.renderPass?this._stats.numRenderedVerticesInShadowPass=0:this._stats.numRenderedVerticesInTransparentPass=0)}queryRadius(e){}queryIntersectsFeature(e,t,n,r,i,o,a,s,l){}queryIntersectsMatchingFeature(e,t,n,r){}}const ku={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Tu{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Iu{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.add(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw new Error("StructArray#_refreshViews() must be implemented by each concrete StructArray layout")}emplace(...e){throw new Error("StructArray#emplace() must be implemented by each concrete StructArray layout")}emplaceBack(...e){throw new Error("StructArray#emplaceBack() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function Ou(e,t=1){let n=0,r=0;return{members:e.map((e=>{const i=(s=e.type,ku[s].BYTES_PER_ELEMENT),o=n=Ru(n,Math.max(t,i)),a=e.components||1;var s;return r=Math.max(r,i),n+=i*a,{name:e.name,type:e.type,components:a,offset:o}})),size:Ru(n,Math.max(r,t)),alignment:t}}function Ru(e,t){return Math.ceil(e/t)*t}class Mu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const r=2*e;return this.int16[r+0]=t,this.int16[r+1]=n,e}}Mu.prototype.bytesPerElement=4,Cl(Mu,"StructArrayLayout2i4");class Pu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)}emplace(e,t,n,r){const i=3*e;return this.int16[i+0]=t,this.int16[i+1]=n,this.int16[i+2]=r,e}}Pu.prototype.bytesPerElement=6,Cl(Pu,"StructArrayLayout3i6");class Du extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)}emplace(e,t,n,r,i){const o=4*e;return this.int16[o+0]=t,this.int16[o+1]=n,this.int16[o+2]=r,this.int16[o+3]=i,e}}Du.prototype.bytesPerElement=8,Cl(Du,"StructArrayLayout4i8");class ju extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,i)}emplace(e,t,n,r,i,o){const a=5*e;return this.int16[a+0]=t,this.int16[a+1]=n,this.int16[a+2]=r,this.int16[a+3]=i,this.int16[a+4]=o,e}}ju.prototype.bytesPerElement=10,Cl(ju,"StructArrayLayout5i10");class Bu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,n,r,i,o,a)}emplace(e,t,n,r,i,o,a,s){const l=6*e,c=12*e,u=3*e;return this.int16[l+0]=t,this.int16[l+1]=n,this.uint8[c+4]=r,this.uint8[c+5]=i,this.uint8[c+6]=o,this.uint8[c+7]=a,this.float32[u+2]=s,e}}Bu.prototype.bytesPerElement=12,Cl(Bu,"StructArrayLayout2i4ub1f12");class Lu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)}emplace(e,t,n,r,i){const o=4*e;return this.float32[o+0]=t,this.float32[o+1]=n,this.float32[o+2]=r,this.float32[o+3]=i,e}}Lu.prototype.bytesPerElement=16,Cl(Lu,"StructArrayLayout4f16");class Fu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)}emplace(e,t,n,r){const i=3*e;return this.float32[i+0]=t,this.float32[i+1]=n,this.float32[i+2]=r,e}}Fu.prototype.bytesPerElement=12,Cl(Fu,"StructArrayLayout3f12");class Nu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,i)}emplace(e,t,n,r,i,o){const a=6*e,s=3*e;return this.uint16[a+0]=t,this.uint16[a+1]=n,this.uint16[a+2]=r,this.uint16[a+3]=i,this.float32[s+2]=o,e}}Nu.prototype.bytesPerElement=12,Cl(Nu,"StructArrayLayout4ui1f12");class _u extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)}emplace(e,t,n,r,i){const o=4*e;return this.uint16[o+0]=t,this.uint16[o+1]=n,this.uint16[o+2]=r,this.uint16[o+3]=i,e}}_u.prototype.bytesPerElement=8,Cl(_u,"StructArrayLayout4ui8");class zu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,i,o)}emplace(e,t,n,r,i,o,a){const s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=i,this.int16[s+4]=o,this.int16[s+5]=a,e}}zu.prototype.bytesPerElement=12,Cl(zu,"StructArrayLayout6i12");class Vu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a,s,l,c,u,h){const d=this.length;return this.resize(d+1),this.emplace(d,e,t,n,r,i,o,a,s,l,c,u,h)}emplace(e,t,n,r,i,o,a,s,l,c,u,h,d){const f=12*e;return this.int16[f+0]=t,this.int16[f+1]=n,this.int16[f+2]=r,this.int16[f+3]=i,this.uint16[f+4]=o,this.uint16[f+5]=a,this.uint16[f+6]=s,this.uint16[f+7]=l,this.int16[f+8]=c,this.int16[f+9]=u,this.int16[f+10]=h,this.int16[f+11]=d,e}}Vu.prototype.bytesPerElement=24,Cl(Vu,"StructArrayLayout4i4ui4i24");class Uu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,i,o)}emplace(e,t,n,r,i,o,a){const s=10*e,l=5*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.float32[l+2]=i,this.float32[l+3]=o,this.float32[l+4]=a,e}}Uu.prototype.bytesPerElement=20,Cl(Uu,"StructArrayLayout3i3f20");class Hu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){const n=1*e;return this.uint32[n+0]=t,e}}Hu.prototype.bytesPerElement=4,Cl(Hu,"StructArrayLayout1ul4");class qu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const r=2*e;return this.uint16[r+0]=t,this.uint16[r+1]=n,e}}qu.prototype.bytesPerElement=4,Cl(qu,"StructArrayLayout2ui4");class Gu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a,s,l,c,u,h,d){const f=this.length;return this.resize(f+1),this.emplace(f,e,t,n,r,i,o,a,s,l,c,u,h,d)}emplace(e,t,n,r,i,o,a,s,l,c,u,h,d,f){const p=20*e,m=10*e;return this.int16[p+0]=t,this.int16[p+1]=n,this.int16[p+2]=r,this.int16[p+3]=i,this.int16[p+4]=o,this.float32[m+3]=a,this.float32[m+4]=s,this.float32[m+5]=l,this.float32[m+6]=c,this.int16[p+14]=u,this.uint32[m+8]=h,this.uint16[p+18]=d,this.uint16[p+19]=f,e}}Gu.prototype.bytesPerElement=40,Cl(Gu,"StructArrayLayout5i4f1i1ul2ui40");class Yu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,n,r,i,o,a)}emplace(e,t,n,r,i,o,a,s){const l=8*e;return this.int16[l+0]=t,this.int16[l+1]=n,this.int16[l+2]=r,this.int16[l+4]=i,this.int16[l+5]=o,this.int16[l+6]=a,this.int16[l+7]=s,e}}Yu.prototype.bytesPerElement=16,Cl(Yu,"StructArrayLayout3i2i2i16");class Wu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,i)}emplace(e,t,n,r,i,o){const a=4*e,s=8*e;return this.float32[a+0]=t,this.float32[a+1]=n,this.float32[a+2]=r,this.int16[s+6]=i,this.int16[s+7]=o,e}}Wu.prototype.bytesPerElement=16,Cl(Wu,"StructArrayLayout2f1f2i16");class Qu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)}emplace(e,t,n,r,i){const o=12*e,a=3*e;return this.uint8[o+0]=t,this.uint8[o+1]=n,this.float32[a+1]=r,this.float32[a+2]=i,e}}Qu.prototype.bytesPerElement=12,Cl(Qu,"StructArrayLayout2ub2f12");class Xu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)}emplace(e,t,n,r){const i=3*e;return this.uint16[i+0]=t,this.uint16[i+1]=n,this.uint16[i+2]=r,e}}Xu.prototype.bytesPerElement=6,Cl(Xu,"StructArrayLayout3ui6");class Ju extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,y,v,b,A){const x=this.length;return this.resize(x+1),this.emplace(x,e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,y,v,b,A)}emplace(e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,y,v,b,A,x){const w=30*e,C=15*e,S=60*e;return this.int16[w+0]=t,this.int16[w+1]=n,this.int16[w+2]=r,this.float32[C+2]=i,this.float32[C+3]=o,this.uint16[w+8]=a,this.uint16[w+9]=s,this.uint32[C+5]=l,this.uint32[C+6]=c,this.uint32[C+7]=u,this.uint16[w+16]=h,this.uint16[w+17]=d,this.uint16[w+18]=f,this.float32[C+10]=p,this.float32[C+11]=m,this.uint8[S+48]=g,this.uint8[S+49]=y,this.uint8[S+50]=v,this.uint32[C+13]=b,this.int16[w+28]=A,this.uint8[S+58]=x,e}}Ju.prototype.bytesPerElement=60,Cl(Ju,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class Zu extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,y,v,b,A,x,w,C,S,E,k,T,I,O,R,M){const P=this.length;return this.resize(P+1),this.emplace(P,e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,y,v,b,A,x,w,C,S,E,k,T,I,O,R,M)}emplace(e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,y,v,b,A,x,w,C,S,E,k,T,I,O,R,M,P){const D=20*e,j=40*e,B=80*e;return this.float32[D+0]=t,this.float32[D+1]=n,this.int16[j+4]=r,this.int16[j+5]=i,this.int16[j+6]=o,this.int16[j+7]=a,this.int16[j+8]=s,this.int16[j+9]=l,this.int16[j+10]=c,this.int16[j+11]=u,this.int16[j+12]=h,this.uint16[j+13]=d,this.uint16[j+14]=f,this.uint16[j+15]=p,this.uint16[j+16]=m,this.uint16[j+17]=g,this.uint16[j+18]=y,this.uint16[j+19]=v,this.uint16[j+20]=b,this.uint16[j+21]=A,this.uint16[j+22]=x,this.uint16[j+23]=w,this.uint16[j+24]=C,this.uint16[j+25]=S,this.uint16[j+26]=E,this.uint16[j+27]=k,this.uint32[D+14]=T,this.float32[D+15]=I,this.float32[D+16]=O,this.float32[D+17]=R,this.float32[D+18]=M,this.uint8[B+76]=P,e}}Zu.prototype.bytesPerElement=80,Cl(Zu,"StructArrayLayout2f9i15ui1ul4f1ub80");class Ku extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){const n=1*e;return this.float32[n+0]=t,e}}Ku.prototype.bytesPerElement=4,Cl(Ku,"StructArrayLayout1f4");class $u extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,i)}emplace(e,t,n,r,i,o){const a=5*e;return this.float32[a+0]=t,this.float32[a+1]=n,this.float32[a+2]=r,this.float32[a+3]=i,this.float32[a+4]=o,e}}$u.prototype.bytesPerElement=20,Cl($u,"StructArrayLayout5f20");class eh extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,n,r,i,o,a)}emplace(e,t,n,r,i,o,a,s){const l=7*e;return this.float32[l+0]=t,this.float32[l+1]=n,this.float32[l+2]=r,this.float32[l+3]=i,this.float32[l+4]=o,this.float32[l+5]=a,this.float32[l+6]=s,e}}eh.prototype.bytesPerElement=28,Cl(eh,"StructArrayLayout7f28");class th extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)}emplace(e,t,n,r,i){const o=3*e,a=6*e;return this.uint32[o+0]=t,this.uint16[a+2]=n,this.uint16[a+3]=r,this.uint16[a+4]=i,e}}th.prototype.bytesPerElement=12,Cl(th,"StructArrayLayout1ul3ui12");class nh extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){const n=1*e;return this.uint16[n+0]=t,e}}nh.prototype.bytesPerElement=2,Cl(nh,"StructArrayLayout1ui2");class rh extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const r=2*e;return this.float32[r+0]=t,this.float32[r+1]=n,e}}rh.prototype.bytesPerElement=8,Cl(rh,"StructArrayLayout2f8");class ih extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m){const g=this.length;return this.resize(g+1),this.emplace(g,e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m)}emplace(e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g){const y=16*e;return this.float32[y+0]=t,this.float32[y+1]=n,this.float32[y+2]=r,this.float32[y+3]=i,this.float32[y+4]=o,this.float32[y+5]=a,this.float32[y+6]=s,this.float32[y+7]=l,this.float32[y+8]=c,this.float32[y+9]=u,this.float32[y+10]=h,this.float32[y+11]=d,this.float32[y+12]=f,this.float32[y+13]=p,this.float32[y+14]=m,this.float32[y+15]=g,e}}ih.prototype.bytesPerElement=64,Cl(ih,"StructArrayLayout16f64");class oh extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,i,o,a){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,n,r,i,o,a)}emplace(e,t,n,r,i,o,a,s){const l=10*e,c=5*e;return this.uint16[l+0]=t,this.uint16[l+1]=n,this.uint16[l+2]=r,this.uint16[l+3]=i,this.float32[c+2]=o,this.float32[c+3]=a,this.float32[c+4]=s,e}}oh.prototype.bytesPerElement=20,Cl(oh,"StructArrayLayout4ui3f20");class ah extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){const n=1*e;return this.int16[n+0]=t,e}}ah.prototype.bytesPerElement=2,Cl(ah,"StructArrayLayout1i2");class sh extends Iu{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){const n=1*e;return this.uint8[n+0]=t,e}}sh.prototype.bytesPerElement=1,Cl(sh,"StructArrayLayout1ub1");class lh extends Tu{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}lh.prototype.size=40;class ch extends Gu{get(e){return new lh(this,e)}}Cl(ch,"CollisionBoxArray");class uh extends Tu{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(e){this._structArray.uint8[this._pos1+49]=e}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(e){this._structArray.uint8[this._pos1+50]=e}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(e){this._structArray.uint32[this._pos4+13]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(e){this._structArray.uint8[this._pos1+58]=e}}uh.prototype.size=60;class hh extends Ju{get(e){return new uh(this,e)}}Cl(hh,"PlacedSymbolArray");class dh extends Tu{get tileAnchorX(){return this._structArray.float32[this._pos4+0]}get tileAnchorY(){return this._structArray.float32[this._pos4+1]}get projectedAnchorX(){return this._structArray.int16[this._pos2+4]}get projectedAnchorY(){return this._structArray.int16[this._pos2+5]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+6]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+7]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+11]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get key(){return this._structArray.uint16[this._pos2+13]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+14]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+15]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+17]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+19]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+21]}get featureIndex(){return this._structArray.uint16[this._pos2+22]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+23]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numIconVertices(){return this._structArray.uint16[this._pos2+25]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+26]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+27]}get crossTileID(){return this._structArray.uint32[this._pos4+14]}set crossTileID(e){this._structArray.uint32[this._pos4+14]=e}get textOffset0(){return this._structArray.float32[this._pos4+15]}get textOffset1(){return this._structArray.float32[this._pos4+16]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+17]}get zOffset(){return this._structArray.float32[this._pos4+18]}set zOffset(e){this._structArray.float32[this._pos4+18]=e}get hasIconTextFit(){return this._structArray.uint8[this._pos1+76]}}dh.prototype.size=80;class fh extends Zu{get(e){return new dh(this,e)}}Cl(fh,"SymbolInstanceArray");class ph extends Ku{getoffsetX(e){return this.float32[1*e+0]}}Cl(ph,"GlyphOffsetArray");class mh extends Mu{getx(e){return this.int16[2*e+0]}gety(e){return this.int16[2*e+1]}}Cl(mh,"SymbolLineVertexArray");class gh extends Tu{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}gh.prototype.size=12;class yh extends th{get(e){return new gh(this,e)}}Cl(yh,"FeatureIndexArray");class vh extends qu{geta_centroid_pos0(e){return this.uint16[2*e+0]}geta_centroid_pos1(e){return this.uint16[2*e+1]}}Cl(vh,"FillExtrusionCentroidArray");class bh extends Tu{get a_join_normal_inside_polygon0(){return this._structArray.int16[this._pos2+0]}get a_join_normal_inside_polygon1(){return this._structArray.int16[this._pos2+1]}get a_join_normal_inside_polygon2(){return this._structArray.int16[this._pos2+2]}get a_join_normal_inside_polygon3(){return this._structArray.int16[this._pos2+3]}}bh.prototype.size=8;class Ah extends Du{get(e){return new bh(this,e)}}Cl(Ah,"FillExtrusionWallArray");const xh=Ou([{name:"a_pos",components:2,type:"Int16"}],4),wh=Ou([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class Ch{constructor(e=[]){this.segments=e}_prepareSegment(e,t,n,r){let i=this.segments[this.segments.length-1];return e>Ch.MAX_VERTEX_ARRAY_LENGTH&&cr(`Max vertices per segment is ${Ch.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!i||i.vertexLength+e>Ch.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==r)&&(i={vertexOffset:t,primitiveOffset:n,vertexLength:0,primitiveLength:0},void 0!==r&&(i.sortKey=r),this.segments.push(i)),i}prepareSegment(e,t,n,r){return this._prepareSegment(e,t.length,n.length,r)}get(){return this.segments}destroy(){for(const e of this.segments)for(const t in e.vaos)e.vaos[t].destroy()}static simpleSegment(e,t,n,r){return new Ch([{vertexOffset:e,primitiveOffset:t,vertexLength:n,primitiveLength:r,vaos:{},sortKey:0}])}}function Sh(e,t){return 256*(e=Yn(Math.floor(e),0,255))+Yn(Math.floor(t),0,255)}Ch.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Cl(Ch,"SegmentVector");const Eh=Ou([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),kh=Ou([{name:"a_dash",components:4,type:"Uint16"}]);class Th{constructor(){this.ids=[],this.uniqueIds=[],this.positions=[],this.indexed=!1}add(e,t,n,r){this.ids.push(Ih(e)),this.positions.push(t,n,r)}eachPosition(e,t){const n=Ih(e);let r=0,i=this.ids.length-1;for(;r>1;this.ids[e]>=n?i=e:r=e+1}for(;this.ids[r]===n;)t(this.positions[3*r],this.positions[3*r+1],this.positions[3*r+2]),r++}static serialize(e,t){const n=new Float64Array(e.ids),r=new Uint32Array(e.positions);return Oh(n,r,0,n.length-1),t&&(t.add(n.buffer),t.add(r.buffer)),{ids:n,positions:r}}static deserialize(e){const t=new Th;let n;t.ids=e.ids,t.positions=e.positions;for(const e of t.ids)e!==n&&t.uniqueIds.push(e),n=e;return t.indexed=!0,t}}function Ih(e){const t=+e;return!isNaN(t)&&Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER?t:Pi(String(e))}function Oh(e,t,n,r){for(;n>1];let o=n-1,a=r+1;for(;;){do{o++}while(e[o]i);if(o>=a)break;Rh(e,o,a),Rh(t,3*o,3*a),Rh(t,3*o+1,3*a+1),Rh(t,3*o+2,3*a+2)}a-n`u_${e}`)),this.type=n,this.context=r}setUniform(e,t,n,r,i){const o=r.constantOr(this.value);o instanceof qi?t.set(e,i,o.toRenderColor(this.context.lut)):t.set(e,i,o)}getBinding(e,t){return"color"===this.type?new Fh(e):new Dh(e)}}class Gh{constructor(e,t){this.uniformNames=t.map((e=>`u_${e}`)),this.pattern=null,this.pixelRatio=1}setConstantPatternPositions(e){this.pixelRatio=e.pixelRatio||1,this.pattern=e.tl.concat(e.br)}setUniform(e,t,n,r,i){const o="u_pattern"===i||"u_dash"===i?this.pattern:"u_pixel_ratio"===i?this.pixelRatio:null;o&&t.set(e,i,o)}getBinding(e,t){return"u_pattern"===t||"u_dash"===t?new Lh(e):new Dh(e)}}class Yh{constructor(e,t,n,r){this.expression=e,this.type=n,this.maxValue=0,this.paintVertexAttributes=t.map((e=>({name:`a_${e}`,type:"Float32",components:"color"===n?2:1,offset:0}))),this.paintVertexArray=new r}populatePaintArray(e,t,n,r,i,o,a){const s=this.paintVertexArray.length,l=this.expression.evaluate(new Yc(0,{brightness:o}),t,{},i,r,a);this.paintVertexArray.resize(e),this._setPaintValue(s,e,l,this.context)}updatePaintArray(e,t,n,r,i,o,a){const s=this.expression.evaluate({zoom:0,brightness:a},n,r,void 0,i);this._setPaintValue(e,t,s,this.context)}_setPaintValue(e,t,n,r){if("color"===this.type){const i=Hh(n.toRenderColor(r.lut));for(let n=e;n`u_${e}_t`)),this.type=n,this.useIntegerZoom=r,this.context=i,this.maxValue=0,this.paintVertexAttributes=t.map((e=>({name:`a_${e}`,type:"Float32",components:"color"===n?4:2,offset:0}))),this.paintVertexArray=new o}populatePaintArray(e,t,n,r,i,o,a){const s=this.expression.evaluate(new Yc(this.context.zoom,{brightness:o}),t,{},i,r,a),l=this.expression.evaluate(new Yc(this.context.zoom+1,{brightness:o}),t,{},i,r,a),c=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(c,e,s,l,this.context)}updatePaintArray(e,t,n,r,i,o,a){const s=this.expression.evaluate({zoom:this.context.zoom,brightness:a},n,r,void 0,i),l=this.expression.evaluate({zoom:this.context.zoom+1,brightness:a},n,r,void 0,i);this._setPaintValue(e,t,s,l,this.context)}_setPaintValue(e,t,n,r,i){if("color"===this.type){const r=Hh(n.toRenderColor(i.lut)),o=Hh(n.toRenderColor(i.lut));for(let n=e;n!0){this.binders={},this._buffers=[],this.context=t;const r=[];for(const i in e.paint._values){const o=e.paint.get(i);if(!n(i))continue;if(!(o instanceof $c&&Ks(o.property.specification)))continue;const a=Kh(i,e.type),s=o.value,l=o.property.specification.type,c=!!o.property.useIntegerZoom,u="line-dasharray"===i||i.endsWith("pattern"),h="line-dasharray"===i&&"constant"!==e.layout.get("line-cap").value.kind;if("constant"!==s.kind||h)if("source"===s.kind||h||u){const t=td(i,l,"source");this.binders[i]=u?new Qh(s,a,l,t,e.id):new Yh(s,a,l,t),r.push(`/a_${i}`)}else{const e=td(i,l,"composite");this.binders[i]=new Wh(s,a,l,c,t,e),r.push(`/z_${i}`)}else this.binders[i]=u?new Gh(s.value,a):new qh(s.value,a,l,t),r.push(`/u_${i}`)}this.cacheKey=r.sort().join("")}getMaxValue(e){const t=this.binders[e];return t instanceof Yh||t instanceof Wh?t.maxValue:0}populatePaintArrays(e,t,n,r,i,o,a){for(const s in this.binders){const l=this.binders[s];l.context=this.context,(l instanceof Yh||l instanceof Wh||l instanceof Qh)&&l.populatePaintArray(e,t,n,r,i,o,a)}}setConstantPatternPositions(e){for(const t in this.binders){const n=this.binders[t];n instanceof Gh&&n.setConstantPatternPositions(e)}}updatePaintArrays(e,t,n,r,i,o,a,s){let l=!1;const c=Object.keys(e),u=0!==c.length,h=u?c:t.uniqueIds;this.context.lut=i.lut;for(const c in this.binders){const d=this.binders[c];if(d.context=this.context,(d instanceof Yh||d instanceof Wh||d instanceof Qh)&&(!0===d.expression.isStateDependent||!1===d.expression.isLightConstant)){const f=i.paint.get(c);d.expression=f.value;for(const n of h){const i=e[n.toString()];t.eachPosition(n,((e,t,n)=>{const l=r.feature(e);d.updatePaintArray(t,n,l,i,o,a,s)}))}if(!u)for(const t of n.uniqueIds){const i=e[t.toString()];n.eachPosition(t,((e,t,n)=>{const l=r.feature(e);d.updatePaintArray(t,n,l,i,o,a,s)}))}l=!0}}return l}defines(){const e=[];for(const t in this.binders){const n=this.binders[t];(n instanceof qh||n instanceof Gh)&&e.push(...n.uniformNames.map((e=>`#define HAS_UNIFORM_${e}`)))}return e}getBinderAttributes(){const e=[];for(const t in this.binders){const n=this.binders[t];if(n instanceof Yh||n instanceof Wh||n instanceof Qh)for(let t=0;t!0){this.programConfigurations={};for(const r of e)this.programConfigurations[r.id]=new Xh(r,t,n);this.needsUpload=!1,this._featureMap=new Th,this._featureMapWithoutIds=new Th,this._bufferOffset=0,this._idlessCounter=0}populatePaintArrays(e,t,n,r,i,o,a,s){for(const n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(e,t,r,i,o,a,s);void 0!==t.id?this._featureMap.add(t.id,n,this._bufferOffset,e):(this._featureMapWithoutIds.add(this._idlessCounter,n,this._bufferOffset,e),this._idlessCounter+=1),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,n,r,i,o){for(const a of n)this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(e,this._featureMap,this._featureMapWithoutIds,t,a,r,i,o||0)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}const Zh={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-occlusion-opacity":["occlusion_opacity"],"icon-occlusion-opacity":["occlusion_opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-emissive-strength":["emissive_strength"],"icon-emissive-strength":["emissive_strength"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern","pixel_ratio"],"fill-pattern":["pattern","pixel_ratio"],"fill-extrusion-pattern":["pattern","pixel_ratio"],"line-dasharray":["dash"]};function Kh(e,t){return Zh[e]||[e.replace(`${t}-`,"").replace(/-/g,"_")]}const $h={"line-pattern":{source:Nu,composite:Nu},"fill-pattern":{source:Nu,composite:Nu},"fill-extrusion-pattern":{source:Nu,composite:Nu},"line-dasharray":{source:_u,composite:_u}},ed={color:{source:rh,composite:Lu},number:{source:Ku,composite:rh}};function td(e,t,n){const r=$h[e];return r&&r[n]||ed[t][n]}Cl(qh,"ConstantBinder"),Cl(Gh,"PatternConstantBinder"),Cl(Yh,"SourceExpressionBinder"),Cl(Qh,"PatternCompositeBinder"),Cl(Wh,"CompositeExpressionBinder"),Cl(Xh,"ProgramConfiguration",{omit:["_buffers"]}),Cl(Jh,"ProgramConfigurationSet");const nd=pa/Math.PI/2,rd=64,id=[rd,32,16],od=-nd,ad=nd;function sd(e,t,n,r=nd){return n=zn(n),[e*Math.sin(n)*r,-t*r,e*Math.cos(n)*r]}function ld(e,t,n){return sd(Math.cos(zn(e)),Math.sin(zn(e)),t,n)}const cd=6371008.8,ud=2*Math.PI*cd;class hd{constructor(e,t){if(isNaN(e)||isNaN(t))throw new Error(`Invalid LngLat object: (${e}, ${t})`);if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new hd(Qn(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const t=Math.PI/180,n=this.lat*t,r=e.lat*t,i=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((e.lng-this.lng)*t);return cd*Math.acos(Math.min(i,1))}toBounds(e=0){const t=360*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return new dd({lng:this.lng-n,lat:this.lat-t},{lng:this.lng+n,lat:this.lat+t})}toEcef(e){const t=nd+e*nd/cd;return ld(this.lat,this.lng,t)}static convert(e){if(e instanceof hd)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new hd(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new hd(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}class dd{constructor(e,t){if(e)if(t)this.setSouthWest(e).setNorthEast(t);else if(4===e.length){const t=e;this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]])}else{const t=e;this.setSouthWest(t[0]).setNorthEast(t[1])}}setNorthEast(e){return this._ne=e instanceof hd?new hd(e.lng,e.lat):hd.convert(e),this}setSouthWest(e){return this._sw=e instanceof hd?new hd(e.lng,e.lat):hd.convert(e),this}extend(e){const t=this._sw,n=this._ne;let r,i;if(e instanceof hd)r=e,i=e;else{if(!(e instanceof dd)){if(Array.isArray(e)){if(4===e.length||e.every(Array.isArray)){const t=e;return this.extend(dd.convert(t))}{const t=e;return this.extend(hd.convert(t))}}return"object"==typeof e&&null!==e&&e.hasOwnProperty("lat")&&(e.hasOwnProperty("lon")||e.hasOwnProperty("lng"))?this.extend(hd.convert(e)):this}if(r=e._sw,i=e._ne,!r||!i)return this}return t||n?(t.lng=Math.min(r.lng,t.lng),t.lat=Math.min(r.lat,t.lat),n.lng=Math.max(i.lng,n.lng),n.lat=Math.max(i.lat,n.lat)):(this._sw=new hd(r.lng,r.lat),this._ne=new hd(i.lng,i.lat)),this}getCenter(){return new hd((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new hd(this.getWest(),this.getNorth())}getSouthEast(){return new hd(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:t,lat:n}=hd.convert(e),r=this._sw.lat<=n&&n<=this._ne.lat;let i=this._sw.lng<=t&&t<=this._ne.lng;return this._sw.lng>this._ne.lng&&(i=this._sw.lng>=t&&t>=this._ne.lng),r&&i}static convert(e){return!e||e instanceof dd?e:new dd(e)}}var fd={};!function(e,t){!function(e){function t(e,t,r,i,o,a){return a=a||{},e+"?"+["bbox="+n(r,i,o),"format="+(a.format||"image/png"),"service="+(a.service||"WMS"),"version="+(a.version||"1.1.1"),"request="+(a.request||"GetMap"),"srs="+(a.srs||"EPSG:3857"),"width="+(a.width||256),"height="+(a.height||256),"layers="+t].join("&")}function n(e,t,n){var i=r(256*e,256*(t=Math.pow(2,n)-t-1),n),o=r(256*(e+1),256*(t+1),n);return i[0]+","+i[1]+","+o[0]+","+o[1]}function r(e,t,n){var r=2*Math.PI*6378137/256/Math.pow(2,n);return[e*r-2*Math.PI*6378137/2,t*r-2*Math.PI*6378137/2]}e.getURL=t,e.getTileBBox=n,e.getMercCoords=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,fd);var pd=fd;class md{constructor(e,t,n){this.z=e,this.x=t,this.y=n,this.key=vd(0,e,e,t,n)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t){const n=pd.getTileBBox(this.x,this.y,this.z),r=function(e,t,n){let r,i="";for(let o=e;o>0;o--)r=1<this.canonical.z?new yd(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new yd(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)}calculateScaledKey(e,t=!0){if(this.overscaledZ===e&&t)return this.key;if(e>this.canonical.z)return vd(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y);{const n=this.canonical.z-e;return vd(this.wrap*+t,e,e,this.canonical.x>>n,this.canonical.y>>n)}}isChildOf(e){if(e.wrap!==this.wrap)return!1;const t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ>t&&e.canonical.y===this.canonical.y>>t}children(e){if(this.overscaledZ>=e)return[new yd(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const t=this.canonical.z+1,n=2*this.canonical.x,r=2*this.canonical.y;return[new yd(t,this.wrap,t,n,r),new yd(t,this.wrap,t,n+1,r),new yd(t,this.wrap,t,n,r+1),new yd(t,this.wrap,t,n+1,r+1)]}isLessThan(e){return this.wrape.wrap)&&(this.overscaledZe.overscaledZ)&&(this.canonical.xe.canonical.x)&&this.canonical.y{let t=e.canonical.x-1,n=e.wrap;return t<0&&(t=(1<{let t=e.canonical.x+1,n=e.wrap;return t===1<new yd(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,(0===e.canonical.y?1<new yd(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y===(1<=l?(Dd(e,t,n,c,u,o,h,s,l),Dd(e,c,u,r,i,h,a,s,l)):e.push(a)}function jd(e,t,n){let r=e[0],i=r.x,o=r.y;t(r);const a=[r];for(let s=1;se.x+1||re.y+1)&&cr("Geometry exceeds allowed extent, reduce your vector tile buffer size"),e}function zd(e,t,n){const r=e.loadGeometry(),i=e.extent,o=pa/i;if(t&&n&&n.projection.isReprojectedInTileSpace){const o=1<{const n=Sd((t.x+e.x/i)/o),r=Ed((t.y+e.y/i)/o),u=c.project(n,r);e.x=(u.x*a-s)*i,e.y=(u.y*a-l)*i};for(let t=0;t=i||n.y<0||n.y>=i||(u(n),e.push(n));r[t]=e}}for(const e of r)for(const t of e)_d(t,o);return r}function Vd(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?zd(e):[]}}function Ud(e,t,n,r,i){e.emplaceBack(2*t+(r+1)/2,2*n+(i+1)/2)}function Hd(e,t,n){const r=16384;e.emplaceBack(t.x,t.y,t.z,n[0]*r,n[1]*r,n[2]*r)}class qd{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.index=e.index,this.hasPattern=!1,this.projection=e.projection,this.layoutVertexArray=new Mu,this.indexArray=new Xu,this.segments=new Ch,this.programConfigurations=new Jh(e.layers,{zoom:e.zoom,lut:e.lut}),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id))}updateFootprints(e,t){}populate(e,t,n,r){const i=this.layers[0],o=[];let a=null;"circle"===i.type&&(a=i.layout.get("circle-sort-key"));for(const{feature:t,id:i,index:s,sourceLayerIndex:l}of e){const e=this.layers[0]._featureFilter.needGeometry,c=Vd(t,e);if(!this.layers[0]._featureFilter.filter(new Yc(this.zoom),c,n))continue;const u=a?a.evaluate(c,{},n):void 0,h={id:i,properties:t.properties,type:t.type,sourceLayerIndex:l,index:s,geometry:e?c.geometry:zd(t,n,r),patterns:{},sortKey:u};o.push(h)}a&&o.sort(((e,t)=>e.sortKey-t.sortKey));let s=null;"globe"===r.projection.name&&(this.globeExtVertexArray=new zu,s=r.projection);for(const r of o){const{geometry:i,index:o,sourceLayerIndex:a}=r,l=e[o].feature;this.addFeature(r,i,o,t.availableImages,n,s,t.brightness),t.featureIndex.insert(l,i,o,a,this.index)}}update(e,t,n,r,i){const o=0!==Object.keys(e).length;if(o&&!this.stateDependentLayers.length)return;const a=o?this.stateDependentLayers:this.layers;this.programConfigurations.updatePaintArrays(e,t,a,n,r,i)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,xh.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,wh.members))),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(e,t,n,r,i,o,a){for(const n of t)for(const t of n){const n=t.x,r=t.y;if(n<0||n>=pa||r<0||r>=pa)continue;if(o){const e=o.projectTilePoint(n,r,i),t=o.upVector(i,n,r),a=this.globeExtVertexArray;Hd(a,e,t),Hd(a,e,t),Hd(a,e,t),Hd(a,e,t)}const a=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),s=a.vertexLength;Ud(this.layoutVertexArray,n,r,-1,-1),Ud(this.layoutVertexArray,n,r,1,-1),Ud(this.layoutVertexArray,n,r,1,1),Ud(this.layoutVertexArray,n,r,-1,1),this.indexArray.emplaceBack(s,s+1,s+2),this.indexArray.emplaceBack(s,s+2,s+3),a.vertexLength+=4,a.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,{},r,i,a)}}function Gd(e,t){for(let n=0;n1){if(Xd(e,t))return!0;for(let r=0;r1?e.distSqr(n):e.distSqr(n.sub(t)._mult(i)._add(t))}function $d(e,t){let n,r,i,o=!1;for(let a=0;at.y!=i.y>t.y&&t.x<(i.x-r.x)*(t.y-r.y)/(i.y-r.y)+r.x&&(o=!o)}return o}function ef(e,t){let n=!1;for(let r=0,i=e.length-1;rt.y!=a.y>t.y&&t.x<(a.x-o.x)*(t.y-o.y)/(a.y-o.y)+o.x&&(n=!n)}return n}function tf(e,t,n,r,i){for(const o of e)if(t<=o.x&&n<=o.y&&r>=o.x&&i>=o.y)return!0;const o=[new Ln(t,n),new Ln(t,i),new Ln(r,i),new Ln(r,n)];if(e.length>2)for(const t of o)if(ef(e,t))return!0;for(let t=0;ti.x&&t.x>i.x||e.yi.y&&t.y>i.y)return!1;const o=ur(e,t,n[0]);return o!==ur(e,t,n[1])||o!==ur(e,t,n[2])||o!==ur(e,t,n[3])}function rf(e,t,n,r,i,o){let a=t.y-e.y,s=e.x-t.x;if(o=o||0){const e=a*a+s*s;if(0===e)return!0;const t=Math.sqrt(e);a/=t,s/=t}return!((n.x-e.x)*a+(n.y-e.y)*s-o<0||(r.x-e.x)*a+(r.y-e.y)*s-o<0||(i.x-e.x)*a+(i.y-e.y)*s-o<0)}function of(e,t,n,r,i,o,a){return!(rf(e,t,r,i,o,a)||rf(t,n,r,i,o,a)||rf(n,e,r,i,o,a)||rf(r,i,e,t,n,a)||rf(i,o,e,t,n,a)||rf(o,r,e,t,n,a))}function af(e,t,n){const r=t.paint.get(e).value;return"constant"===r.kind?r.value:n.programConfigurations.get(t.id).getMaxValue(e)}function sf(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function lf(e,t,n,r,i){if(!t[0]&&!t[1])return e;const o=Ln.convert(t)._mult(i);"viewport"===n&&o._rotate(-r);const a=[];for(let t=0;t=0;if(0===a)return 0;a!==n.length&&(r=!1)}return r?2:1}function gf(e,t){for(const n of e.projections){const r=pf(t,e.points[0],n.axis);if(n.projection[1]r[1])return 0}return 1}const yf=0,vf=1,bf=2,Af=3,xf=4,wf=5,Cf=6,Sf=7;function Ef(t,n){let r=0;const i=[0,0,0,0];for(let o=0;o=0&&r++;return r}class kf{constructor(t,n){this.points=t||new Array(8).fill([0,0,0]),this.planes=n||new Array(6).fill([0,0,0,0]),this.bounds=Tf.fromPoints(this.points),this.projections=[],this.frustumEdges=[e.$.sub([],this.points[bf],this.points[Af]),e.$.sub([],this.points[yf],this.points[Af]),e.$.sub([],this.points[xf],this.points[yf]),e.$.sub([],this.points[wf],this.points[vf]),e.$.sub([],this.points[Cf],this.points[bf]),e.$.sub([],this.points[Sf],this.points[Af])];for(const e of this.frustumEdges){const t=[0,-e[2],e[1]],n=[e[2],0,-e[0]];this.projections.push({axis:t,projection:pf(this.points,this.points[0],t)}),this.projections.push({axis:n,projection:pf(this.points,this.points[0],n)})}}static fromInvProjectionMatrix(t,n,r,i){const o=Math.pow(2,r),a=[[-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((r=>{const a=e.aB.transformMat4([],r,t),s=1/a[3]/n*o;return e.aB.mul(a,a,[s,s,i?1/a[3]:s,s])})),s=[[yf,vf,bf],[Cf,wf,xf],[yf,Af,Sf],[bf,vf,wf],[Af,bf,Cf],[yf,xf,wf]].map((t=>{const n=e.$.sub([],a[t[0]],a[t[1]]),r=e.$.sub([],a[t[2]],a[t[1]]),i=e.$.normalize([],e.$.cross([],n,r)),o=-e.$.dot(i,a[t[1]]);return i.concat(o)})),l=[];for(let e=0;es[1]||s[0]>a[1])return 0}return 1}containsPoint(t){for(const n of this.planes){const r=[n[0],n[1],n[2]],i=n[3];if(e.$.dot(r,t)+i<0)return!1}return!0}}class Tf{static fromPoints(t){const n=[1/0,1/0,1/0],r=[-1/0,-1/0,-1/0];for(const i of t)e.$.min(n,n,i),e.$.max(r,r,i);return new Tf(n,r)}static fromTileIdAndHeight(e,t,n){const r=1<e.max[t]||e.min[t]>this.max[t])return!1;return!0}intersectsAabbXY(e){return!(this.min[0]>e.max[0]||e.min[0]>this.max[0]||this.min[1]>e.max[1]||e.min[1]>this.max[1])}encapsulate(e){for(let t=0;t<3;t++)this.min[t]=Math.min(this.min[t],e.min[t]),this.max[t]=Math.max(this.max[t],e.max[t])}encapsulatePoint(e){for(let t=0;t<3;t++)this.min[t]=Math.min(this.min[t],e[t]),this.max[t]=Math.max(this.max[t],e[t])}closestPoint(e){return[Math.max(Math.min(this.max[0],e[0]),this.min[0]),Math.max(Math.min(this.max[1],e[1]),this.min[1]),Math.max(Math.min(this.max[2],e[2]),this.min[2])]}}Cl(Tf,"Aabb");const If=Ou([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:Of,size:Rf,alignment:Mf}=If,Pf=Ou([{name:"a_pos_3",components:3,type:"Int16"}]);var Df=Ou([{name:"a_pos",type:"Int16",components:2}]);function jf(e){return e*nd/cd}const Bf=[new Tf([od,od,od],[ad,ad,ad]),new Tf([od,od,od],[0,0,ad]),new Tf([0,od,od],[ad,0,ad]),new Tf([od,0,od],[0,ad,ad]),new Tf([0,0,od],[ad,ad,ad])];function Lf(t,n,r,i=!0){const o=e.$.scale([],t._camera.position,t.worldSize),a=[n,r,1,1];e.aB.transformMat4(a,a,t.pixelMatrixInverse),e.aB.scale(a,a,1/a[3]);const s=e.$.sub([],a,o),l=e.$.normalize([],s),c=t.globeMatrix,u=[c[12],c[13],c[14]],h=e.$.sub([],u,o),d=e.$.length(h),f=e.$.normalize([],h),p=t.worldSize/(2*Math.PI),m=e.$.dot(f,l),g=Math.asin(p/d);if(g1?null:function(e,t,n,r){const i=Math.sin(n);return e*(Math.sin((1-r)*n)/i)+t*(Math.sin(r*n)/i)}(e.a[t],e.b[t],e.angle,Yn(n,0,1))+e.center[t]}function _f(e){if(e.z<=1)return Bf[e.z+2*e.y+e.x];const t=Gf(qf(e));return Tf.fromPoints(t)}function zf(t,n,r){return e.$.scale(t,t,1-r),e.$.scaleAndAdd(t,t,n,r)}function Vf(t,n){const r=ep(n.zoom);if(0===r)return _f(t);const i=qf(t),o=Gf(i),a=xd(i.getWest())*n.worldSize,s=xd(i.getEast())*n.worldSize,l=wd(i.getNorth())*n.worldSize,c=wd(i.getSouth())*n.worldSize,u=[a,l,0],h=[s,l,0],d=[a,c,0],f=[s,c,0],p=e.ae.invert([],n.globeMatrix);return e.$.transformMat4(u,u,p),e.$.transformMat4(h,h,p),e.$.transformMat4(d,d,p),e.$.transformMat4(f,f,p),o[0]=zf(o[0],d,r),o[1]=zf(o[1],f,r),o[2]=zf(o[2],h,r),o[3]=zf(o[3],u,r),Tf.fromPoints(o)}function Uf(t,n,r){for(const i of t)e.$.transformMat4(i,i,n),e.$.scale(i,i,r)}function Hf(t,n,r,i){const o=n/t.worldSize,a=t.globeMatrix;if(r.z<=1){const e=_f(r).getCorners();return Uf(e,a,o),Tf.fromPoints(e)}const s=qf(r,i),l=Gf(s,nd+jf(t._tileCoverLift));Uf(l,a,o);const c=Number.MAX_VALUE,u=[-c,-c,-c],h=[c,c,c];if(s.contains(t.center)){for(const t of l)e.$.min(h,h,t),e.$.max(u,u,t);u[2]=0;const n=t.point,r=[n.x*o,n.y*o,0];return e.$.min(h,h,r),e.$.max(u,u,r),new Tf(h,u)}if(t._tileCoverLift>0){for(const t of l)e.$.min(h,h,t),e.$.max(u,u,t);return new Tf(h,u)}const d=[a[12]*o,a[13]*o,a[14]*o],f=s.getCenter(),p=Yn(t.center.lat,-85.051129,Td),m=Yn(f.lat,-85.051129,Td),g=xd(t.center.lng),y=wd(p);let v=g-xd(f.lng);const b=y-wd(m);v>.5?v-=1:v<-.5&&(v+=1);let A=0;if(Math.abs(v)>Math.abs(b))A=v>=0?1:3;else{A=b>=0?0:2;const t=[a[4]*o,a[5]*o,a[6]*o],n=-Math.sin(zn(b>=0?s.getSouth():s.getNorth()))*nd;e.$.scaleAndAdd(d,d,t,n)}const x=l[A],w=l[(A+1)%4],C=new Ff(x,w,d),S=[Nf(C,0)||x[0],Nf(C,1)||x[1],Nf(C,2)||x[2]],E=ep(t.zoom);if(E>0){const i=function({x:e,y:t,z:n},r,i,o,a){const s=1/(1<.5?d=-1:f<-.5&&(d=1),l=((l+d)*r-(o*=r))*i+o,c=((c+d)*r-o)*i+o,u=(u*r-(a*=r))*i+a,h=(h*r-a)*i+a,[[l,h,0],[c,h,0],[c,u,0],[l,u,0]]}(r,n,t._pixelsPerMercatorPixel,g,y);for(let e=0;eMath.PI/2*1.01}const rp=zn(85),ip=Math.cos(rp),op=Math.sin(rp),ap=!0;const sp=e.ae.create(),lp=e=>{const t=[];return"map"===e.paint.get("circle-pitch-alignment")&&t.push("PITCH_WITH_MAP"),"map"===e.paint.get("circle-pitch-scale")&&t.push("SCALE_WITH_MAP"),t};function cp(t,n,r,i,o,a,s,l,c){if(a&&t.queryGeometry.isAboveHorizon)return!1;a&&(c*=t.pixelToTileUnitsFactor);const u=t.tileID.canonical,h=r.projection.upVectorScale(u,r.center.lat,r.worldSize).metersToTile;for(const d of n)for(const n of d){const d=n.add(l),f=o&&r.elevation?r.elevation.exaggeration()*o.getElevationAt(d.x,d.y,!0):0,p=r.projection.projectTilePoint(d.x,d.y,u);if(f>0){const e=r.projection.upVector(u,d.x,d.y);p.x+=e[0]*h*f,p.y+=e[1]*h*f,p.z+=e[2]*h*f}const m=a?d:up(p.x,p.y,p.z,i),g=a?t.tilespaceRays.map((e=>fp(e,f))):t.queryGeometry.screenGeometry,y=e.aB.transformMat4([],[p.x,p.y,p.z,1],i);if(!s&&a?c*=y[3]/r.cameraToCenterDistance:s&&!a&&(c*=r.cameraToCenterDistance/y[3]),a){const e=Ed((n.y/pa+u.y)/(1<e.width||i.height>e.height||n.x>e.width-i.width||n.y>e.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>t.width||i.height>t.height||r.x>t.width-i.width||r.y>t.height-i.height)throw new RangeError("out of range destination coordinates for image copy");const l=e.data,c=t.data,u=4===o&&s;for(let s=0;s{t[e.evaluationKey]=o;const a=e.expression.evaluate(t);a&&(i.data[n+r+0]=Math.floor(255*a.r/a.a),i.data[n+r+1]=Math.floor(255*a.g/a.a),i.data[n+r+2]=Math.floor(255*a.b/a.a),i.data[n+r+3]=Math.floor(255*a.a))};if(e.clips)for(let t=0,i=0;t80*n){s=1/0,l=1/0;let t=-1/0,r=-1/0;for(let o=n;ot&&(t=n),i>r&&(r=i)}c=Math.max(t-s,r-l),c=0!==c?32767/c:0}return Dp(o,a,n,s,l,c,0),a}function Mp(e,t,n,r,i){let o;if(i===function(e,t,n,r){let i=0;for(let o=t,a=n-r;o0)for(let i=t;i=t;i-=r)o=Kp(i/r|0,e[i],e[i+1],o);return o&&Yp(o,o.next)&&($p(o),o=o.next),o}function Pp(e,t){if(!e)return e;t||(t=e);let n,r=e;do{if(n=!1,r.steiner||!Yp(r,r.next)&&0!==Gp(r.prev,r,r.next))r=r.next;else{if($p(r),r=t=r.prev,r===r.next)break;n=!0}}while(n||r!==t);return t}function Dp(e,t,n,r,i,o,a){if(!e)return;!a&&o&&function(e,t,n,r){let i=e;do{0===i.z&&(i.z=Vp(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){let t,n=1;do{let r,i=e;e=null;let o=null;for(t=0;i;){t++;let a=i,s=0;for(let e=0;e0||l>0&&a;)0!==s&&(0===l||!a||i.z<=a.z)?(r=i,i=i.nextZ,s--):(r=a,a=a.nextZ,l--),o?o.nextZ=r:e=r,r.prevZ=o,o=r;i=a}o.nextZ=null,n*=2}while(t>1)}(i)}(e,r,i,o);let s=e;for(;e.prev!==e.next;){const l=e.prev,c=e.next;if(o?Bp(e,r,i,o):jp(e))t.push(l.i,e.i,c.i),$p(e),e=c.next,s=c.next;else if((e=c)===s){a?1===a?Dp(e=Lp(Pp(e),t),t,n,r,i,o,2):2===a&&Fp(e,t,n,r,i,o):Dp(Pp(e),t,n,r,i,o,1);break}}}function jp(e){const t=e.prev,n=e,r=e.next;if(Gp(t,n,r)>=0)return!1;const i=t.x,o=n.x,a=r.x,s=t.y,l=n.y,c=r.y,u=io?i>a?i:a:o>a?o:a,f=s>l?s>c?s:c:l>c?l:c;let p=r.next;for(;p!==t;){if(p.x>=u&&p.x<=d&&p.y>=h&&p.y<=f&&Hp(i,s,o,l,a,c,p.x,p.y)&&Gp(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function Bp(e,t,n,r){const i=e.prev,o=e,a=e.next;if(Gp(i,o,a)>=0)return!1;const s=i.x,l=o.x,c=a.x,u=i.y,h=o.y,d=a.y,f=sl?s>c?s:c:l>c?l:c,g=u>h?u>d?u:d:h>d?h:d,y=Vp(f,p,t,n,r),v=Vp(m,g,t,n,r);let b=e.prevZ,A=e.nextZ;for(;b&&b.z>=y&&A&&A.z<=v;){if(b.x>=f&&b.x<=m&&b.y>=p&&b.y<=g&&b!==i&&b!==a&&Hp(s,u,l,h,c,d,b.x,b.y)&&Gp(b.prev,b,b.next)>=0)return!1;if(b=b.prevZ,A.x>=f&&A.x<=m&&A.y>=p&&A.y<=g&&A!==i&&A!==a&&Hp(s,u,l,h,c,d,A.x,A.y)&&Gp(A.prev,A,A.next)>=0)return!1;A=A.nextZ}for(;b&&b.z>=y;){if(b.x>=f&&b.x<=m&&b.y>=p&&b.y<=g&&b!==i&&b!==a&&Hp(s,u,l,h,c,d,b.x,b.y)&&Gp(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;A&&A.z<=v;){if(A.x>=f&&A.x<=m&&A.y>=p&&A.y<=g&&A!==i&&A!==a&&Hp(s,u,l,h,c,d,A.x,A.y)&&Gp(A.prev,A,A.next)>=0)return!1;A=A.nextZ}return!0}function Lp(e,t){let n=e;do{const r=n.prev,i=n.next.next;!Yp(r,i)&&Wp(r,n,n.next,i)&&Jp(r,i)&&Jp(i,r)&&(t.push(r.i,n.i,i.i),$p(n),$p(n.next),n=e=i),n=n.next}while(n!==e);return Pp(n)}function Fp(e,t,n,r,i,o){let a=e;do{let e=a.next.next;for(;e!==a.prev;){if(a.i!==e.i&&qp(a,e)){let s=Zp(a,e);return a=Pp(a,a.next),s=Pp(s,s.next),Dp(a,t,n,r,i,o,0),void Dp(s,t,n,r,i,o,0)}e=e.next}a=a.next}while(a!==e)}function Np(e,t){return e.x-t.x}function _p(e,t){const n=function(e,t){let n=t;const r=e.x,i=e.y;let o,a=-1/0;do{if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){const e=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(e<=r&&e>a&&(a=e,o=n.x=n.x&&n.x>=l&&r!==n.x&&Hp(io.x||n.x===o.x&&zp(o,n)))&&(o=n,u=t)}n=n.next}while(n!==s);return o}(e,t);if(!n)return t;const r=Zp(n,e);return Pp(r,r.next),Pp(n,n.next)}function zp(e,t){return Gp(e.prev,e,t.prev)<0&&Gp(t.next,e,e.next)<0}function Vp(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Up(e){let t=e,n=e;do{(t.x=(e-a)*(o-s)&&(e-a)*(r-s)>=(n-a)*(t-s)&&(n-a)*(o-s)>=(i-a)*(r-s)}function qp(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Wp(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(Jp(e,t)&&Jp(t,e)&&function(e,t){let n=e,r=!1;const i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(Gp(e.prev,e,t.prev)||Gp(e,t.prev,t))||Yp(e,t)&&Gp(e.prev,e,e.next)>0&&Gp(t.prev,t,t.next)>0)}function Gp(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Yp(e,t){return e.x===t.x&&e.y===t.y}function Wp(e,t,n,r){const i=Xp(Gp(e,t,n)),o=Xp(Gp(e,t,r)),a=Xp(Gp(n,r,e)),s=Xp(Gp(n,r,t));return i!==o&&a!==s||!(0!==i||!Qp(e,n,t))||!(0!==o||!Qp(e,r,t))||!(0!==a||!Qp(n,e,r))||!(0!==s||!Qp(n,t,r))}function Qp(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function Xp(e){return e>0?1:e<0?-1:0}function Jp(e,t){return Gp(e.prev,e,e.next)<0?Gp(e,t,e.next)>=0&&Gp(e,e.prev,t)>=0:Gp(e,t,e.prev)<0||Gp(e,e.next,t)<0}function Zp(e,t){const n=em(e.i,e.x,e.y),r=em(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function Kp(e,t,n,r){const i=em(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function $p(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function em(e,t,n){return{i:e,x:t,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function tm(e,t){const n=e.length;if(n<=1)return[e];const r=[];let i,o;for(let t=0;t1)for(let e=0;ee.fqid)),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Mu,this.indexArray=new Xu,this.indexArray2=new qu,this.programConfigurations=new Jh(e.layers,{zoom:e.zoom,lut:e.lut}),this.segments=new Ch,this.segments2=new Ch,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.projection=e.projection}updateFootprints(e,t){}populate(e,t,n,r){this.hasPattern=rm("fill",this.layers,t);const i=this.layers[0].layout.get("fill-sort-key"),o=[];for(const{feature:a,id:s,index:l,sourceLayerIndex:c}of e){const e=this.layers[0]._featureFilter.needGeometry,u=Vd(a,e);if(!this.layers[0]._featureFilter.filter(new Yc(this.zoom),u,n))continue;const h=i?i.evaluate(u,{},n,t.availableImages):void 0,d={id:s,properties:a.properties,type:a.type,sourceLayerIndex:c,index:l,geometry:e?u.geometry:zd(a,n,r),patterns:{},sortKey:h};o.push(d)}i&&o.sort(((e,t)=>e.sortKey-t.sortKey));for(const r of o){const{geometry:i,index:o,sourceLayerIndex:a}=r;if(this.hasPattern){const e=im("fill",this.layers,r,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(r,i,o,n,{},t.availableImages,t.brightness);const s=e[o].feature;t.featureIndex.insert(s,i,o,a,this.index)}}update(e,t,n,r,i){const o=0!==Object.keys(e).length;if(o&&!this.stateDependentLayers.length)return;const a=o?this.stateDependentLayers:this.layers;this.programConfigurations.updatePaintArrays(e,t,a,n,r,i)}addFeatures(e,t,n,r,i,o){for(const e of this.patternFeatures)this.addFeature(e,e.geometry,e.index,t,n,r,o)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Tp),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,n,r,i,o=[],a){for(const e of tm(t,500)){let t=0;for(const n of e)t+=n.length;const n=this.segments.prepareSegment(t,this.layoutVertexArray,this.indexArray),r=n.vertexLength,i=[],o=[];for(const t of e){if(0===t.length)continue;t!==e[0]&&o.push(i.length/2);const n=this.segments2.prepareSegment(t.length,this.layoutVertexArray,this.indexArray2),r=n.vertexLength;this.layoutVertexArray.emplaceBack(t[0].x,t[0].y),this.indexArray2.emplaceBack(r+t.length-1,r),i.push(t[0].x),i.push(t[0].y);for(let e=1;ee.cellIdx-t.cellIdx||e.triIdx-t.triIdx));let c=0;for(;cthis.max.x||this.min.x>e.x||e.y>this.max.y||this.min.y>e.y)return;const n=cm(e.x-this.min.x,this.xScale,this.cellsX),r=cm(e.y-this.min.y,this.yScale,this.cellsY),i=this.cells[r*this.cellsX+n];if(i){this._lazyInitLookup();for(let e=0;ethis.max.x||this.min.x>t.x)return;if(e.y>this.max.y||this.min.y>t.y)return;this._lazyInitLookup();const r=cm(e.x-this.min.x,this.xScale,this.cellsX),i=cm(t.x-this.min.x,this.xScale,this.cellsX),o=cm(e.y-this.min.y,this.yScale,this.cellsY),a=cm(t.y-this.min.y,this.yScale,this.cellsY);for(let e=o;e<=a;e++)for(let t=r;t<=i;t++){const r=this.cells[e*this.cellsX+t];if(r)for(let e=0;ee.fqid)),this.index=e.index,this.hasPattern=!1,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.footprints=[]}updateFootprints(e,t){for(const n of this.footprints)t.push({footprint:n,id:e})}populate(e,t,n,r){const i=[];for(const{feature:t,id:o,index:a,sourceLayerIndex:s}of e){const e=this.layers[0]._featureFilter.needGeometry,l=Vd(t,e);if(!this.layers[0]._featureFilter.filter(new Yc(this.zoom),l,n))continue;const c={id:o,properties:t.properties,type:t.type,sourceLayerIndex:s,index:a,geometry:e?l.geometry:zd(t,n,r),patterns:{}};i.push(c)}for(const r of i){const{geometry:i,index:o,sourceLayerIndex:a}=r;this.addFeature(r,i,o,n,{},t.availableImages,t.brightness);const s=e[o].feature;t.featureIndex.insert(s,i,o,a,this.index)}}isEmpty(){return 0===this.footprints.length}uploadPending(){return!1}upload(e){}update(e,t,n,r,i){}destroy(){}addFeature(e,t,n,r,i,o=[],a){for(const e of tm(t,2)){const t=[],n=[],r=[],i=new Ln(1/0,1/0),o=new Ln(-1/0,-1/0);for(const a of e)if(0!==a.length){a!==e[0]&&r.push(n.length/2);for(let e=0;e>3}if(i--,1===r||2===r)o+=e.readSVarint(),a+=e.readSVarint(),1===r&&(t&&s.push(t),t=[]),t.push(new Cm(o,a));else{if(7!==r)throw new Error("unknown command "+r);t&&t.push(t[0].clone())}}return t&&s.push(t),s},Em.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,r=0,i=0,o=0,a=1/0,s=-1/0,l=1/0,c=-1/0;e.pos>3}if(r--,1===n||2===n)(i+=e.readSVarint())s&&(s=i),(o+=e.readSVarint())c&&(c=o);else if(7!==n)throw new Error("unknown command "+n)}return[a,l,s,c]},Em.prototype.toGeoJSON=function(e,t,n){var r,i,o=this.extent*Math.pow(2,n),a=this.extent*e,s=this.extent*t,l=this.loadGeometry(),c=Em.types[this.type];function u(e){for(var t=0;t>3;t=1===r?e.readString():2===r?e.readFloat():3===r?e.readDouble():4===r?e.readVarint64():5===r?e.readVarint():6===r?e.readSVarint():7===r?e.readBoolean():null}return t}(n))}Rm.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new Im(this._pbf,t,this.extent,this._keys,this._values)};var Pm=Om,Dm=function(e,t){this.layers=e.readFields(jm,{},t)};function jm(e,t,n){if(3===e){var r=new Pm(n,n.readVarint()+n.pos);r.length&&(t[r.name]=r)}}var Bm=wm.VectorTile=Dm,Lm=wm.VectorTileFeature=Sm;wm.VectorTileLayer=Om;class Fm extends Ln{constructor(e,t,n){super(e,t),this.z=n}}class Nm extends Fm{constructor(e,t,n,r){super(e,t,n),this.w=r}}function _m(e,t,n,r){const i=[],o=0===r?(e,t,n,r,i,o)=>{e.push(new Ln(o,n+(o-t)/(r-t)*(i-n)))}:(e,t,n,r,i,o)=>{e.push(new Ln(t+(o-n)/(i-n)*(r-t),o))};for(const a of e){const e=[];for(const i of a){if(i.length<=2)continue;const a=[];for(let e=0;et&&o(a,s,l,c,u,t):h>n?d=t&&o(a,s,l,c,u,t),d>n&&h<=n&&o(a,s,l,c,u,n)}let s=i[i.length-1];const l=0===r?s.x:s.y;l>=t&&l<=n&&a.push(s),a.length&&(s=a[a.length-1],a[0].x===s.x&&a[0].y===s.y||a.push(a[0]),e.push(a))}e.length&&i.push(e)}return i}function zm(e,t,n,r){const i="x"===n?"y":"x",o=(r-e[n])/(t[n]-e[n]);e[i]=e[i]+(t[i]-e[i])*o,e[n]=r,e.hasOwnProperty("z")&&(e.z=Yi(e.z,t.z,o)),e.hasOwnProperty("w")&&(e.w=Yi(e.w,t.w,o))}function Vm(e,t,n,r){const i=n,o=r;for(const n of["x","y"]){let r=e,a=t;r[n]>=a[n]&&(r=t,a=e),r[n]i&&zm(r,a,n,i),r[n]o&&zm(a,r,n,o)}}const Um=Number.MAX_SAFE_INTEGER;function Hm(e,t,n,r){return e.ordert===e))}(r,e.clipScope)}function qm(e,t){return e.x-t.x||e.y-t.y}function Gm(e,t){return 0===qm(e.min,t.min)&&0===qm(e.max,t.max)}function Ym(e,t){return!(e.min.x>t.max.x||e.max.xt.max.y||e.max.y{const t=(e.x+o.x*pa)*s-a.x*pa,n=(e.y+o.y*pa)*s-a.y*pa;return new Ln(t,n)}))}return Jm(n,i,e.indices,0,e.indices.length,0,0)}function Km(e,t,n,r){const i=Math.pow(2,r.z-n.z),o=(e+n.x*pa)*i-r.x*pa,a=(t+n.y*pa)*i-r.y*pa;return new Ln(o,a)}function $m(e,t){const n=[];t.footprint.grid.queryPoint(e,n);const r=t.footprint.indices,i=t.footprint.vertices;for(let t=0;tt[a])return null}else{const s=1/r[a];let l=(e[a]-n[a])*s,c=(t[a]-n[a])*s;if(l>c){const e=l;l=c,c=e}if(l>i&&(i=l),co)return null}return i}function ng(e,t,n,r,i,o,a,s,l,c,u){const h=r-e,d=i-t,f=o-n,p=a-e,m=s-t,g=l-n,y=u[1]*g-u[2]*m,v=u[2]*p-u[0]*g,b=u[0]*m-u[1]*p,A=h*y+d*v+f*b;if(Math.abs(A)<1e-15)return null;const x=1/A,w=c[0]-e,C=c[1]-t,S=c[2]-n,E=(w*y+C*v+S*b)*x;if(E<0||E>1)return null;const k=C*f-S*d,T=S*h-w*f,I=w*d-C*h,O=(u[0]*k+u[1]*T+u[2]*I)*x;return O<0||E+O>1?null:(p*k+m*T+g*I)*x}function rg(e,t,n){return(e-t)/(n-t)}function ig(e,t,n,r,i,o,a,s,l){const c=1<{const o=r?1:0,a=e*n,s=(e+1)*n-o,l=t*n,c=(t+1)*n-o;i[0]=a,i[1]=l,i[2]=s,i[3]=c};let c=new eg(a);const u=[];for(let t=0;t=1;a/=2){const e=o[o.length-1];c=new eg(a);for(let t=0;t0;){const{idx:l,t:p,nodex:m,nodey:g,depth:y}=f.pop();if(this.leaves[l]){ig(m,g,y,t,n,r,i,h,d);const l=1<=t[2])return p}continue}let v=0;for(let e=0;e=c[u[r]]&&(u.splice(r,0,e),n=!0);n||(u[v]=e),v++}}for(let e=0;e=this.dim+1||t<-1||t>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)}static pack(e,t){const n=[0,0,0,0],r=hg.getUnpackVector(t);let i=Math.floor((e+r[3])/r[2]);return n[2]=i%256,i=Math.floor(i/256),n[1]=i%256,i=Math.floor(i/256),n[0]=i,n}getPixels(){return new Ap({width:this.stride,height:this.stride},this.pixels)}backfillBorder(e,t,n){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let r=t*this.dim,i=t*this.dim+this.dim,o=n*this.dim,a=n*this.dim+this.dim;switch(t){case-1:r=i-1;break;case 1:i=r+1}switch(n){case-1:o=a-1;break;case 1:a=o+1}const s=-t*this.dim,l=-n*this.dim;for(let t=o;te.max.x&&(e.max.x=t.x,r=!0),t.ye.max.y&&(e.max.y=t.y,r=!0),((0===t.x||t.x===pa)&&t.x===n.x)!=((0===t.y||t.y===pa)&&t.y===n.y)&&this.processBorderOverlap(t,n),r&&this.checkBorderIntersection(t,n)}checkBorderIntersection(e,t){t.x<0!=e.x<0&&this.addBorderIntersection(0,Yi(t.y,e.y,(0-t.x)/(e.x-t.x))),t.x>pa!=e.x>pa&&this.addBorderIntersection(1,Yi(t.y,e.y,(pa-t.x)/(e.x-t.x))),t.y<0!=e.y<0&&this.addBorderIntersection(2,Yi(t.x,e.x,(0-t.y)/(e.y-t.y))),t.y>pa!=e.y>pa&&this.addBorderIntersection(3,Yi(t.x,e.x,(pa-t.y)/(e.y-t.y)))}addBorderIntersection(e,t){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);const n=this.borders[e];tn[1]&&(n[1]=t)}processBorderOverlap(e,t){if(e.x===t.x){if(e.y===t.y)return;const n=0===e.x?0:1;this.addBorderIntersection(n,t.y),this.addBorderIntersection(n,e.y)}else{const n=0===e.y?2:3;this.addBorderIntersection(n,t.x),this.addBorderIntersection(n,e.x)}}centroid(){return 0===this.accCount?new Ln(0,0):new Ln(Math.floor(Math.max(0,this.acc.x)/this.accCount),Math.floor(Math.max(0,this.acc.y)/this.accCount))}intersectsCount(){return this.borders?this.borders.reduce(((e,t)=>e+ +(t[0]!==Number.MAX_VALUE)),0):0}}function Ig(e,t){const n=e.add(t)._unit(),r=Yn(e.x*n.x+e.y*n.y,-1,1);return function(e){return Math.min(4,Math.max(-4,Math.tan(e)))/4*vg}(Math.acos(r))*(o=t,(i=e).x*o.y-i.y*o.x<0?-1:1);var i,o}const Og=[e=>e.x<0,e=>e.x>pa,e=>e.y<0,e=>e.y>pa];function Rg(e,t,n,r){const i=[4];if(0===r)return i;n._mult(r);const o=e.sub(n),a=t.sub(n),s=[e,t,o,a];for(let e=0;e<4;e++)for(const t of s)if(Og[e](t)){i.push(e);break}return i}class Mg{constructor(e){this.vertexArray=new ju,this.indexArray=new Xu;this.programConfigurations=new Jh(e.layers,{zoom:e.zoom,lut:e.lut},(e=>gg.includes(e))),this._segments=new Ch,this.hiddenByLandmarkVertexArray=new sh,this._segmentToGroundQuads={},this._segmentToGroundQuads[0]=[],this._segmentToRegionTriCounts={},this._segmentToRegionTriCounts[0]=[0,0,0,0,0],this.regionSegments={},this.regionSegments[4]=new Ch}getDefaultSegment(){return this.regionSegments[4]}hasData(){return 0!==this.vertexArray.length}addData(e,t,n,r=!1){const i=e.length;if(i>2){let o=Math.max(0,this._segments.get().length-1);const a=4*i,s=this.vertexArray.length,l=2*this._segmentToGroundQuads[o].length,c=this._segments._prepareSegment(a,s,l);let u;o!==this._segments.get().length-1&&(o++,this._segmentToGroundQuads[o]=[],this._segmentToRegionTriCounts[o]=[0,0,0,0,0]);{const t=e[i-1],n=e[0],r=e[1];u=Ig(n.sub(t)._perp()._unit(),r.sub(n)._perp()._unit())}for(let a=0;ae.region-t.region));for(let n=0;ne+t),0);let o=0;for(let e=0;e<=4;e++){const t=i[e];if(0!==t){let n=this.regionSegments[e];n||(n=this.regionSegments[e]=new Ch);const i={vertexOffset:r.vertexOffset,primitiveOffset:r.primitiveOffset+o,vertexLength:r.vertexLength,primitiveLength:t};n.get().push(i)}o+=t}for(let e=0;e0?this.hiddenByLandmarkVertexBuffer=e.createVertexBuffer(this.hiddenByLandmarkVertexArray,ym.members,!0):this.hiddenByLandmarkVertexBuffer&&this.hiddenByLandmarkVertexBuffer.updateData(this.hiddenByLandmarkVertexArray),this._needsHiddenByLandmarkUpdate=!1)}destroy(){if(this.vertexBuffer){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.hiddenByLandmarkVertexBuffer&&this.hiddenByLandmarkVertexBuffer.destroy(),this._segments&&this._segments.destroy(),this.programConfigurations.destroy();for(let e=0;e<=4;e++){const t=this.regionSegments[e];t&&t.destroy()}}}}class Pg{constructor(e){this.zoom=e.zoom,this.canonical=e.canonical,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.index=e.index,this.hasPattern=!1,this.edgeRadius=0,this.projection=e.projection,this.activeReplacements=[],this.replacementUpdateTime=0,this.centroidData=[],this.footprintIndices=new Xu,this.footprintVertices=new Mu,this.footprintSegments=[],this.layoutVertexArray=new Du,this.centroidVertexArray=new vh,this.wallVertexArray=new Ah,this.indexArray=new Xu;this.programConfigurations=new Jh(e.layers,{zoom:e.zoom,lut:e.lut},(e=>mg.includes(e))),this.segments=new Ch,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.groundEffect=new Mg(e),this.maxHeight=0,this.partLookup={},this.triangleSubSegments=[],this.polygonSegments=[]}updateFootprints(e,t){}populate(e,t,n,r){this.features=[],this.hasPattern=rm("fill-extrusion",this.layers,t),this.featuresOnBorder=[],this.borderFeatureIndices=[[],[],[],[]],this.borderDoneWithNeighborZ=[-1,-1,-1,-1],this.tileToMeter=Md(n),this.edgeRadius=this.layers[0].layout.get("fill-extrusion-edge-radius")/this.tileToMeter,this.wallMode=0!==this.layers[0].paint.get("fill-extrusion-line-width").constantOr(1);for(const{feature:i,id:o,index:a,sourceLayerIndex:s}of e){const e=this.layers[0]._featureFilter.needGeometry,l=Vd(i,e);if(!this.layers[0]._featureFilter.filter(new Yc(this.zoom),l,n))continue;const c={id:o,sourceLayerIndex:s,index:a,geometry:e?l.geometry:zd(i,n,r),properties:i.properties,type:i.type,patterns:{}},u=this.layoutVertexArray.length;if(this.hasPattern)this.features.push(im("fill-extrusion",this.layers,c,this.zoom,t));else if(this.wallMode)for(const e of c.geometry)this.addFeature(c,[e],a,n,{},t.availableImages,r,t.brightness);else this.addFeature(c,c.geometry,a,n,{},t.availableImages,r,t.brightness);t.featureIndex.insert(i,c.geometry,a,s,this.index,u)}this.sortBorders(),"mercator"===this.projection.name&&this.splitToSubtiles(),this.groundEffect.prepareBorderSegments(),this.polygonSegments.length=0}addFeatures(e,t,n,r,i,o){for(const e of this.features){const{geometry:a}=e;if(this.wallMode)for(const s of a)this.addFeature(e,[s],e.index,t,n,r,i,o);else this.addFeature(e,a,e.index,t,n,r,i,o)}this.sortBorders(),"mercator"===this.projection.name&&this.splitToSubtiles()}update(e,t,n,r,i){const o=0!==Object.keys(e).length;if(o&&!this.stateDependentLayers.length)return;const a=o?this.stateDependentLayers:this.layers;this.programConfigurations.updatePaintArrays(e,t,a,n,r,i),this.groundEffect.update(e,t,a,n,r,i)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload||this.groundEffect.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,bm),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.wallVertexBuffer=e.createVertexBuffer(this.wallVertexArray,gm.members),this.layoutVertexExtArray&&(this.layoutVertexExtBuffer=e.createVertexBuffer(this.layoutVertexExtArray,vm.members,!0)),this.groundEffect.upload(e)),this.groundEffect.uploadPaintProperties(e),this.programConfigurations.upload(e),this.uploaded=!0}uploadCentroid(e){this.groundEffect.uploadHiddenByLandmark(e),this.needsCentroidUpdate&&(!this.centroidVertexBuffer&&this.centroidVertexArray.length>0?this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,mm.members,!0):this.centroidVertexBuffer&&this.centroidVertexBuffer.updateData(this.centroidVertexArray),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.layoutVertexExtBuffer&&this.layoutVertexExtBuffer.destroy(),this.groundEffect.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,n,r,i,o,a,s){const l=this.layers[0].paint.get("fill-extrusion-flood-light-ground-radius").evaluate(e,{})/this.tileToMeter,c=[new Ln(0,0),new Ln(pa,pa)],u=a.projection,h="globe"===u.name,d=this.wallMode||"Polygon"===pg[e.type],f=new Tg;f.centroidDataIndex=this.centroidData.length;const p=new kg,m=this.layers[0].paint.get("fill-extrusion-base").evaluate(e,{},r)<=0,g=this.layers[0].paint.get("fill-extrusion-height").evaluate(e,{},r);let y;if(p.height=g,p.vertexArrayOffset=this.layoutVertexArray.length,p.groundVertexArrayOffset=this.groundEffect.vertexArray.length,h&&!this.layoutVertexExtArray&&(this.layoutVertexExtArray=new zu),this.wallMode){if(h)return void cr("Non zero fill-extrusion-line-width is not yet supported on globe.");if(1!==t.length)return;y=function(e){const t=e[0].x===e[e.length-1].x&&e[0].y===e[e.length-1].y;(function(e){let t=0;const n=e.length;for(let r=0;r=0})(e)||(e=e.reverse());const n={isPolygon:t,geometry:[],joinNormals:[]},r=[],i=[],o=[];let a=e.length;if(a<(t?3:2))return n;for(;a>=2&&e[a-1].equals(e[a-2]);)a--;let s,l,c,u,h,d=0;for(;d0;let y="miter";"miter"===y&&m>2&&(y="bevel");const v=(e,t,n,a)=>{const s=new Ln(e.x,e.y),l=new Ln(e.x,e.y);s.x-=t.x*a,s.y-=t.y*a,l.x-=t.x*Math.max(n,1),l.y-=t.y*Math.max(n,1),o.push(t),r.push(s),i.push(l)};if("miter"===y)f._mult(m),v(s,f,1,0);else{const e=-Math.sqrt(m*m-1),t=g?e:0,n=g?0:e;l&&v(s,u,t,n),c&&v(s,h,t,n)}}return n.geometry=[...r,...i.reverse(),r[0]],n.joinNormals=[...o,...o.reverse(),o[o.length-1]],n}(t[0]),t=[y.geometry]}const v=(e,t)=>e<(t.length-1)/2||e===t.length-1,b=this.wallMode?[t]:tm(t,500);for(let e=b.length-1;e>=0;e--){const t=b[e];(0===t.length||((A=t[0]).every((e=>e.x<=0))||A.every((e=>e.x>=pa))||A.every((e=>e.y<=0))||A.every((e=>e.y>=pa))))&&b.splice(e,1)}var A;let x;if(h)x=Vg(b,c,r);else{x=[];for(const e of b)x.push({polygon:e,bounds:c})}const w=d?this.edgeRadius:0,C=w>0&&this.zoom<17,S=(e,t)=>{if(0===e.length)return!1;const n=e[e.length-1];return t.x===n.x&&t.y===n.y};for(const{polygon:e,bounds:t}of x){let n=0,i=0;for(const t of e)d&&!t[0].equals(t[t.length-1])&&t.push(t[0]),i+=d?t.length-1:t.length;const o=this.segments.prepareSegment((d?5:4)*i,this.layoutVertexArray,this.indexArray);p.footprintSegIdx<0&&(p.footprintSegIdx=this.footprintSegments.length),p.polygonSegIdx<0&&(p.polygonSegIdx=this.polygonSegments.length);const a={triangleArrayOffset:this.indexArray.length,triangleCount:0,triangleSegIdx:this.segments.segments.length-1},s=new Eg;if(s.vertexOffset=this.footprintVertices.length,s.indexOffset=3*this.footprintIndices.length,s.ringIndices=[],d){const i=[],a=[];n=o.vertexLength;for(let n=0;n4&&Ng(a[a.length-2],a[0],a[1]),c=w?jg(a[a.length-2],a[0],a[1],w):0;const g=[];let b,A,x;{const e=a[0];A=a[1].sub(e)._perp()._unit()}let C=!0;for(let e=1,i=0;e0?1:0,O=l.dist(d);if(i+O>32768&&(i=0),w){x=E.sub(d)._perp()._unit();let e=Bg(l,d,E,Dg(A,x),w);isNaN(e)&&(e=0);const t=d.sub(l)._unit();l=l.add(t.mult(c))._round(),d=d.add(t.mult(-e))._round(),c=e,A=x,m&&this.zoom>=17&&(S(g,l)||g.push(l),S(g,d)||g.push(d))}const R=o.vertexLength,M=a.length>4&&Ng(l,d,E);let P=_g(i,s,C);if(xg(this.layoutVertexArray,l.x,l.y,T,I,0,0,P),xg(this.layoutVertexArray,l.x,l.y,T,I,0,1,P),this.wallMode){const t=v(e-1,a),n=y.joinNormals[e-1];wg(this.wallVertexArray,n,!t,y.isPolygon),wg(this.wallVertexArray,n,!t,y.isPolygon)}if(i+=O,P=_g(i,M,!C),s=M,xg(this.layoutVertexArray,d.x,d.y,T,I,0,0,P),xg(this.layoutVertexArray,d.x,d.y,T,I,0,1,P),this.wallMode){const t=v(e,a),n=y.joinNormals[e];wg(this.wallVertexArray,n,!t,y.isPolygon),wg(this.wallVertexArray,n,!t,y.isPolygon)}if(o.vertexLength+=4,this.indexArray.emplaceBack(R+0,R+1,R+2),this.indexArray.emplaceBack(R+1,R+3,R+2),o.primitiveLength+=2,w){const r=n+(1===e?a.length-2:e-2),i=1===e?n:r+1;if(this.indexArray.emplaceBack(R+1,r,R+3),this.indexArray.emplaceBack(r,i,R+3),o.primitiveLength+=2,void 0===b&&(b=R),!Lg(E,a[e],t)){const t=e===a.length-1?b:o.vertexLength;this.indexArray.emplaceBack(R+2,R+3,t),this.indexArray.emplaceBack(R+3,t+1,t),this.indexArray.emplaceBack(R+3,i,t+1),o.primitiveLength+=3}C=!C}if(h){const e=this.layoutVertexExtArray,t=u.projectTilePoint(l.x,l.y,r),n=u.projectTilePoint(d.x,d.y,r),i=u.upVector(r,l.x,l.y),o=u.upVector(r,d.x,d.y);Sg(e,t,i),Sg(e,t,i),Sg(e,n,o),Sg(e,n,o)}}d&&(n+=a.length-1),m&&w&&this.zoom>=17&&(0!==g.length&&S(g,g[0])&&g.pop(),this.groundEffect.addData(g,t,l,w>0))}this.footprintSegments.push(s),a.triangleCount=this.indexArray.length-a.triangleArrayOffset,this.polygonSegments.push(a),++p.footprintSegLen,++p.polygonSegLen}if(p.vertexCount=this.layoutVertexArray.length-p.vertexArrayOffset,p.groundVertexCount=this.groundEffect.vertexArray.length-p.groundVertexArrayOffset,0!==p.vertexCount){if(p.centroidXY=f.borders?bg:this.encodeCentroid(f,p),this.centroidData.push(p),f.borders){this.featuresOnBorder.push(f);const e=this.featuresOnBorder.length-1;for(let t=0;tthis.featuresOnBorder[t].borders[e][0]-this.featuresOnBorder[n].borders[e][0]))}splitToSubtiles(){const e=[];for(let t=0;tpa),i=+(n.min.y+n.max.y>pa),o=2*i+(r^i);for(let r=0;re.triangleSegmentIdx===t.triangleSegmentIdx?e.subtile-t.subtile:e.triangleSegmentIdx-t.triangleSegmentIdx));let n=0,r=0,i=0;for(const t of e){if(t.triangleSegmentIdx!==n)break;i++}const o=e.length;for(;r!==e.length;){n=e[r].triangleSegmentIdx;let a=0,s=r,l=r;for(let t=s;t0&&this.triangleSubSegments.push({segment:u,min:o,max:c}),s=l;for(let t=s;t[e[0]*(1-n[0])+t[0]*n[0],e[1]*(1-n[1])+t[1]*n[1]],d=[],f=[];for(const e of this.triangleSubSegments){d[0]=e.min.x/pa,d[1]=e.min.y/pa,f[0]=e.max.x/pa,f[1]=e.max.y/pa;const t=h(c,u,d),a=h(c,u,f);if(0===new Tf([t[0],t[1],i],[a[0],a[1],o]).intersectsPrecise(n)){l&&(r.segments.push(l),l=void 0);continue}const s=e.segment;l&&l.vertexOffset!==s.vertexOffset&&(r.segments.push(l),l=void 0),l?(l.vertexLength+=s.vertexLength,l.primitiveLength+=s.primitiveLength):l={vertexOffset:s.vertexOffset,primitiveLength:s.primitiveLength,vertexLength:s.vertexLength,primitiveOffset:s.primitiveOffset,sortKey:void 0,vaos:{}}}return l&&r.segments.push(l),r}encodeCentroid(e,t){const n=e.centroid(),r=t.span(),i=Math.min(7,Math.round(r.x*this.tileToMeter/10)),o=Math.min(7,Math.round(r.y*this.tileToMeter/10));return new Ln(Yn(n.x,1,8191)<<3|i,Yn(n.y,1,8191)<<3|o)}encodeBorderCentroid(e){if(!e.borders)return new Ln(0,0);const t=e.borders,n=Number.MAX_VALUE;if(t[0][0]!==n||t[1][0]!==n){const e=6|(t[0][0]!==n?0:65528),r=t[0][0]!==n?0:1;return new Ln(e,(t[r][0]+t[r][1])/2<<3|6)}{const e=6|(t[2][0]!==n?0:65528),r=t[2][0]!==n?2:3;return new Ln((t[r][0]+t[r][1])/2<<3|6,e)}}showCentroid(e){const t=this.centroidData[e.centroidDataIndex];t.flags&=Ag,t.centroidXY.x=0,t.centroidXY.y=0,this.writeCentroidToBuffer(t)}writeCentroidToBuffer(e){this.groundEffect.updateHiddenByLandmark(e);const t=e.vertexArrayOffset,n=e.vertexCount+e.vertexArrayOffset,r=e.flags&Ag?bg:e.centroidXY,i=this.centroidVertexArray.geta_centroid_pos0(t);if(this.centroidVertexArray.geta_centroid_pos1(t)!==r.y||i!==r.x){for(let e=t;en.max.x||n.min.x>t.max.x||t.min.y>n.max.y||n.min.y>t.max.y))for(let o=0;ot!=c>t&&e<(l-n)*(t-a)/(c-a)+n&&(r=!r)}a=n}}return r}getHeightAtTileCoord(e,t){let n=Number.NEGATIVE_INFINITY,r=!0;const i=4*(e+pa)*pa+(t+pa);if(this.partLookup.hasOwnProperty(i)){const e=this.partLookup[i];return e?{height:e.height,hidden:!!(e.flags&Ag)}:void 0}for(const o of this.centroidData)e>o.max.x||o.min.x>e||t>o.max.y||o.min.y>t||this.footprintContainsPoint(e,t,o)&&o&&o.height>n&&(n=o.height,this.partLookup[i]=o,r=!!(o.flags&Ag));if(n!==Number.NEGATIVE_INFINITY)return{height:n,hidden:r};this.partLookup[i]=void 0}}function Dg(e,t){const n=e.add(t)._unit();return e.x*n.x+e.y*n.y}function jg(e,t,n,r){const i=t.sub(e)._perp()._unit(),o=n.sub(t)._perp()._unit();return Bg(e,t,n,Dg(i,o),r)}function Bg(e,t,n,r,i){const o=Math.sqrt(1-r*r);return Math.min(e.dist(t)/3,t.dist(n)/3,i*o/r)}function Lg(e,t,n){return e.xn[1].x&&t.x>n[1].x||e.yn[1].y&&t.y>n[1].y}function Fg(e,t){return e.xt[1].x||e.yt[1].y}function Ng(e,t,n){if(e.x<0||e.x>=pa||t.x<0||t.x>=pa||n.x<0||n.x>=pa)return!1;const r=n.sub(t),i=r.perp(),o=e.sub(t),a=(r.x*o.x+r.y*o.y)/Math.sqrt((r.x*r.x+r.y*r.y)*(o.x*o.x+o.y*o.y)),s=i.x*o.x+i.y*o.y;return a>-.866&&s<0}function _g(e,t,n){const r=t?2|e:-3&e;return n?1|r:-2&r}function zg(){const e=Math.PI/32,t=Math.tan(e),n=cd;return n*Math.sqrt(1+2*t*t)-n}function Vg(e,t,n){const r=1<{for(const n of e)a.push({polygon:n,bounds:t})},l=Math.ceil(Math.log2(n)),c=Math.ceil(Math.log2(r)),u=l-c,h=[];for(let e=0;e0?0:1);for(let e=0;et+1?f.push({polygons:d,bounds:o,depth:t+1}):s(d,o)}if(p.length){const e=0===n?u:r.x,i=1===n?u:r.y,o=[new Ln(e,i),a];h.length>t+1?f.push({polygons:p,bounds:o,depth:t+1}):s(p,o)}}return a}(e,t,Math.ceil((o-i)/11.25),Math.ceil((a-s)/11.25),1,((e,t,i)=>{if(0===e)return.5*(t+i);{const e=Ed((n.y+t/pa)/r);return(wd(.5*(Ed((n.y+i/pa)/r)+e))*r-n.y)*pa}}))}function Ug(e,t,n,r,i,o){const a=Math.pow(2,r.z-i.z);for(let s=0;s1&&(s=e[++a]);const l=Math.abs(i-s.left),c=Math.abs(i-s.right),u=Math.min(l,c);let h;const d=t/n*(r+1);if(s.isDash){const e=r-Math.abs(d);h=Math.sqrt(u*u+e*e)}else h=r-Math.sqrt(u*u+d*d);this.image.data[o+i]=Math.max(0,Math.min(255,h+128))}}}addRegularDash(e,t){for(let t=e.length-1;t>=0;--t){const n=e[t],r=e[t+1];n.zeroLength?e.splice(t,1):r&&r.isDash===n.isDash&&(r.left=n.left,e.splice(t,1))}const n=e[0],r=e[e.length-1];n.isDash===r.isDash&&(n.left=r.left-this.width,r.right=n.right+this.width);const i=this.width*this.nextRow;let o=0,a=e[o];for(let n=0;n1&&(a=e[++o]);const r=Math.abs(n-a.left),s=Math.abs(n-a.right),l=Math.min(r,s),c=(a.isDash?l:-l)+t;this.image.data[i+n]=Math.max(0,Math.min(255,c+128))}}addDash(e,t){const n=this.getKey(e,t);if(this.positions[n])return this.positions[n];const r="round"===t,i=r?7:0,o=2*i+1;if(this.nextRow+o>this.height)return cr("LineAtlas out of space"),null;0===e.length&&e.push(1);let a=0;for(let t=0;te.fqid)),this.index=e.index,this.projection=e.projection,this.hasPattern=!1,this.hasZOffset=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach((e=>{this.gradients[e.id]={}})),this.layoutVertexArray=new Bu,this.layoutVertexArray2=new Lu,this.patternVertexArray=new Fu,this.indexArray=new Xu,this.programConfigurations=new Jh(e.layers,{zoom:e.zoom,lut:e.lut}),this.segments=new Ch,this.maxLineLength=0,this.zOffsetVertexArray=new Ku,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.tessellationStep=e.tessellationStep?e.tessellationStep:128}updateFootprints(e,t){}populate(e,t,n,r){this.hasPattern=rm("line",this.layers,t);const i=this.layers[0].layout.get("line-sort-key"),o=this.layers[0].layout.get("line-z-offset");this.hasZOffset=!o.isConstant()||!!o.constantOr(0);const a=[];for(const{feature:t,id:o,index:s,sourceLayerIndex:l}of e){const e=this.layers[0]._featureFilter.needGeometry,c=Vd(t,e);if(!this.layers[0]._featureFilter.filter(new Yc(this.zoom),c,n))continue;const u=i?i.evaluate(c,{},n):void 0,h={id:o,properties:t.properties,type:t.type,sourceLayerIndex:l,index:s,geometry:e?c.geometry:zd(t,n,r),patterns:{},sortKey:u};a.push(h)}i&&a.sort(((e,t)=>e.sortKey-t.sortKey));const{lineAtlas:s,featureIndex:l}=t,c=this.addConstantDashes(s);for(const r of a){const{geometry:i,index:o,sourceLayerIndex:a}=r;if(c&&this.addFeatureDashes(r,s),this.hasPattern){const e=im("line",this.layers,r,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(r,i,o,n,s.positions,t.availableImages,t.brightness);const u=e[o].feature;l.insert(u,i,o,a,this.index)}}addConstantDashes(e){let t=!1;for(const n of this.layers){const r=n.paint.get("line-dasharray").value,i=n.layout.get("line-cap").value;if("constant"!==r.kind||"constant"!==i.kind)t=!0;else{const t=i.value,n=r.value;if(!n)continue;e.addDash(n,t)}}return t}addFeatureDashes(e,t){const n=this.zoom;for(const r of this.layers){const i=r.paint.get("line-dasharray").value,o=r.layout.get("line-cap").value;if("constant"===i.kind&&"constant"===o.kind)continue;let a,s;if("constant"===i.kind){if(a=i.value,!a)continue}else a=i.evaluate({zoom:n},e);s="constant"===o.kind?o.value:o.evaluate({zoom:n},e),t.addDash(a,s),e.patterns[r.id]=t.getKey(a,s)}}update(e,t,n,r,i){const o=0!==Object.keys(e).length;if(o&&!this.stateDependentLayers.length)return;const a=o?this.stateDependentLayers:this.layers;this.programConfigurations.updatePaintArrays(e,t,a,n,r,i)}addFeatures(e,t,n,r,i,o){for(const e of this.patternFeatures)this.addFeature(e,e.geometry,e.index,t,n,r,o)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,$g)),0!==this.patternVertexArray.length&&(this.patternVertexBuffer=e.createVertexBuffer(this.patternVertexArray,ry)),!this.zOffsetVertexBuffer&&this.zOffsetVertexArray.length>0&&(this.zOffsetVertexBuffer=e.createVertexBuffer(this.zOffsetVertexArray,cy.members,!0)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Xg),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.zOffsetVertexBuffer&&this.zOffsetVertexBuffer.destroy(),this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,t,n,r,i,o,a){const s=this.layers[0].layout,l=s.get("line-join").evaluate(e,{}),c=s.get("line-cap").evaluate(e,{}),u=s.get("line-miter-limit"),h=s.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(const n of t)this.addLine(n,e,r,l,c,u,h);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,i,o,r,a)}addLine(e,t,n,r,i,o,a){this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineSoFar=0,this.currentVertex=void 0;const s={zoom:this.zoom,lineProgress:void 0},l=this.layers[0].layout,c="none"===r;if(this.patternJoinNone=this.hasPattern&&c,this.segmentStart=0,this.segmentStartf32=0,this.segmentPoints=[],this.lineClips){this.lineClipsArray.push(this.lineClips);for(let t=0;t=2&&e[h-1].equals(e[h-2]);)h--;let d=0;for(;d0;if(I&&n>d){const e=m.dist(g);if(e>2*f){const t=m.sub(m.sub(g)._mult(f/e)._round());this.updateDistance(g,t),this.addCurrentVertex(t,v,0,0,p,A),g=t}}if(x&&"round"===w&&(ko&&(w="bevel"),"bevel"===w&&(k>2&&(w="flipbevel"),k100)S=b.mult(-1);else{const e=k*v.add(b).mag()/v.sub(b).mag();S._perp()._mult(e*(O?-1:1))}this.addCurrentVertex(m,S,0,0,p,A),this.addCurrentVertex(m,S.mult(-1),0,0,p,A)}else if("bevel"===w||"fakeround"===w){const e=-Math.sqrt(k*k-1),t=O?e:0,n=O?0:e;if(g&&this.addCurrentVertex(m,v,t,n,p,A),"fakeround"===w){const e=Math.round(180*T/Math.PI/20);for(let t=1;t2*f){const t=m.add(y.sub(m)._mult(f/e)._round());this.updateDistance(m,t),this.addCurrentVertex(t,b,0,0,p,A),m=t}}}}addVerticesTo(e,t,n,r,i,o,a,s,l,c){const u=this.tessellationStep,h=(t.w-e.w)/u|0;if(h>1){this.lineSoFar=e.w;const u=(t.x-e.x)/h,d=(t.y-e.y)/h,f=(t.z-e.z)/h,p=(t.w-e.w)/h;for(let t=1;t=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,c),s.primitiveLength++),o?this.e2=c:this.e1=c,null!=l&&this.zOffsetVertexArray.emplaceBack(l)}updateScaledDistance(){if(this.lineClips){const e=this.lineClips.end-this.lineClips.start,t=this.totalDistance/e;this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=t*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}}function Ay(e,t,n){return e.xn||e.yn}let xy;Cl(by,"LineBucket",{omit:["layers","patternFeatures","currentVertex","currentVertexIsOutside"]});let wy;function Cy(e,t,n){return t*(pa/(e.tileSize*Math.pow(2,n-e.tileID.overscaledZ)))}function Sy(e,t){return 1/Cy(e,1,t.tileZoom)}function Ey(e,t,n,r){return e.translatePosMatrix(r||t.tileID.projMatrix,t,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}const ky=e=>{const t=[];Ty(e)&&t.push("RENDER_LINE_DASH"),e.paint.get("line-gradient")&&t.push("RENDER_LINE_GRADIENT");const n=e.paint.get("line-trim-offset");0===n[0]&&0===n[1]||t.push("RENDER_LINE_TRIM_OFFSET"),0!==e.paint.get("line-border-width").constantOr(1)&&t.push("RENDER_LINE_BORDER");const r="none"===e.layout.get("line-join").constantOr("miter"),i=!!e.paint.get("line-pattern").constantOr(1);return r&&i&&t.push("LINE_JOIN_NONE"),t};function Ty(e){const t=e.paint.get("line-dasharray").value;return t.value||"constant"!==t.kind}class Iy{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t>1,u=-7,h=n?i-1:0,d=n?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+h],h+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},write:function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(t*l-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*m}},Ry=Py,My=Oy;function Py(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}Py.Varint=0,Py.Fixed64=1,Py.Bytes=2,Py.Fixed32=5;var Dy=4294967296,jy=1/Dy,By="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Ly(e){return e.type===Py.Bytes?e.readVarint()+e.pos:e.pos+1}function Fy(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function Ny(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=e;i--)n.buf[i+r]=n.buf[i]}function _y(e,t){for(var n=0;n>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function Jy(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}Py.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos>3,o=this.pos;this.type=7&r,e(i,t,this),this.pos===o&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=Qy(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=Jy(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=Qy(this.buf,this.pos)+Qy(this.buf,this.pos+4)*Dy;return this.pos+=8,e},readSFixed64:function(){var e=Qy(this.buf,this.pos)+Jy(this.buf,this.pos+4)*Dy;return this.pos+=8,e},readFloat:function(){var e=My.read(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=My.read(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,r=this.buf;return t=127&(n=r[this.pos++]),n<128?t:(t|=(127&(n=r[this.pos++]))<<7,n<128?t:(t|=(127&(n=r[this.pos++]))<<14,n<128?t:(t|=(127&(n=r[this.pos++]))<<21,n<128?t:function(e,t,n){var r,i,o=n.buf;if(r=(112&(i=o[n.pos++]))>>4,i<128)return Fy(e,r,t);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return Fy(e,r,t);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return Fy(e,r,t);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return Fy(e,r,t);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return Fy(e,r,t);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return Fy(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=r[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&By?function(e,t,n){return By.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){for(var r="",i=t;i239?4:l>223?3:l>191?2:1;if(i+u>n)break;1===u?l<128&&(c=l):2===u?128==(192&(o=e[i+1]))&&(c=(31&l)<<6|63&o)<=127&&(c=null):3===u?(o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&((c=(15&l)<<12|(63&o)<<6|63&a)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&((c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,r+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),r+=String.fromCharCode(c),i+=u}return r}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==Py.Bytes)return e.push(this.readVarint(t));var n=Ly(this);for(e=e||[];this.pos127;);else if(t===Py.Bytes)this.pos=this.readVarint()+this.pos;else if(t===Py.Fixed32)this.pos+=4;else{if(t!==Py.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t268435455||e<0?function(e,t){var n,r;if(e>=0?(n=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,r=r+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos]=127&e}(n,0,t),function(e,t){var n=(7&e)<<4;t.buf[t.pos++]|=n|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(r,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,n){for(var r,i,o=0;o55295&&r<57344){if(!i){r>56319||o+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):i=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(e[n++]=239,e[n++]=191,e[n++]=189,i=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&Ny(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),My.write(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),My.write(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var n=0;n=128&&Ny(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,Py.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,_y,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,zy,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,Hy,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,Vy,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,Uy,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,qy,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,Gy,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,Yy,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,Wy,t)},writeBytesField:function(e,t){this.writeTag(e,Py.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,Py.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,Py.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,Py.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,Py.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,Py.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,Py.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,Py.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,Py.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,Py.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};var Zy=f(Ry);const Ky=["id","tile","layer","source","sourceLayer","state"];class $y{constructor(e,t,n,r,i){this.type="Feature",this._vectorTileFeature=e,this._z=t,this._x=n,this._y=r,this.properties=e.properties,this.id=i}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._x,this._y,this._z).geometry),this._geometry}set geometry(e){this._geometry=e}toJSON(){const e={type:"Feature",state:void 0,geometry:this.geometry,properties:this.properties};for(const t of Ky)void 0!==this[t]&&(e[t]=this[t]);return e}}class ev{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(e,t,n){const r=String(t);if(this.stateChanges[e]=this.stateChanges[e]||{},this.stateChanges[e][r]=this.stateChanges[e][r]||{},Zn(this.stateChanges[e][r],n),null===this.deletedStates[e]){this.deletedStates[e]={};for(const t in this.state[e])t!==r&&(this.deletedStates[e][t]=null)}else if(this.deletedStates[e]&&null===this.deletedStates[e][r]){this.deletedStates[e][r]={};for(const t in this.state[e][r])n[t]||(this.deletedStates[e][r][t]=null)}else for(const t in n)this.deletedStates[e]&&this.deletedStates[e][r]&&null===this.deletedStates[e][r][t]&&delete this.deletedStates[e][r][t]}removeFeatureState(e,t,n){if(null===this.deletedStates[e])return;const r=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},n&&void 0!==t)null!==this.deletedStates[e][r]&&(this.deletedStates[e][r]=this.deletedStates[e][r]||{},this.deletedStates[e][r][n]=null);else if(void 0!==t)if(this.stateChanges[e]&&this.stateChanges[e][r])for(n in this.deletedStates[e][r]={},this.stateChanges[e][r])this.deletedStates[e][r][n]=null;else this.deletedStates[e][r]=null;else this.deletedStates[e]=null}getState(e,t){const n=String(t),r=this.state[e]||{},i=this.stateChanges[e]||{},o=Zn({},r[n],i[n]);if(null===this.deletedStates[e])return{};if(this.deletedStates[e]){const n=this.deletedStates[e][t];if(null===n)return{};for(const e in n)delete o[e]}return o}initializeTileState(e,t){e.setFeatureState(this.state,t)}coalesceChanges(e,t){const n={};for(const e in this.stateChanges){this.state[e]=this.state[e]||{};const t={};for(const n in this.stateChanges[e])this.state[e][n]||(this.state[e][n]={}),Zn(this.state[e][n],this.stateChanges[e][n]),t[n]=this.state[e][n];n[e]=t}for(const e in this.deletedStates){this.state[e]=this.state[e]||{};const t={};if(null===this.deletedStates[e])for(const n in this.state[e])t[n]={},this.state[e][n]={};else for(const n in this.deletedStates[e]){if(null===this.deletedStates[e][n])this.state[e][n]={};else if(this.state[e][n])for(const t of Object.keys(this.deletedStates[e][n]))delete this.state[e][n][t];t[n]=this.state[e][n]}n[e]=n[e]||{},Zn(n[e],t)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(const r in e)e[r].setFeatureState(n,t)}}class tv{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new xl(pa,16,0),this.featureIndexArray=new yh,this.promoteId=t,this.is3DTile=!1}insert(e,t,n,r,i,o=0,a=0){const s=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,i,o);const l=this.grid;for(let e=0;e=0&&r[3]>=0&&l.insert(s,r[0],r[1],r[2],r[3])}}loadVTLayers(){if(!this.vtLayers){this.vtLayers=new Bm(new Zy(this.rawTileData)).layers,this.sourceLayerCoder=new Iy(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={};for(const e in this.vtLayers)this.vtFeatures[e]=[]}return this.vtLayers}query(e,t,n,r){this.loadVTLayers();const i=e.params||{},o=cu(i.filter),a=e.tileResult,s=e.transform,l=a.bufferedTilespaceBounds,c=this.grid.query(l.min.x,l.min.y,l.max.x,l.max.y,((e,t,n,r)=>tf(a.bufferedTilespaceGeometry,e,t,n,r)));c.sort(rv);let u=null;s.elevation&&c.length>0&&(u=dg.create(s.elevation,this.tileID));const h={};let d;for(let l=0;l(m||(m=zd(t,this.tileID.canonical,e.tileTransform)),n.queryIntersectsFeature(a,t,r,m,this.z,e.transform,e.pixelPosMatrix,u,i))))}return h}loadMatchingFeature(e,t,n,r,i,o,a,s,l){const{featureIndex:c,bucketIndex:u,sourceLayerIndex:h,layoutVertexArrayOffset:d}=t,f=this.bucketLayerIDs[u];if(r&&!function(e,t){for(let n=0;n=0)return!0;return!1}(r,f))return;const p=this.sourceLayerCoder.decode(h),m=this.vtLayers[p].feature(c);if(n.needGeometry){const e=Vd(m,!0);if(!n.filter(new Yc(this.tileID.overscaledZ),e,this.tileID.canonical))return}else if(!n.filter(new Yc(this.tileID.overscaledZ),m))return;const g=this.getId(m,p);for(let t=0;t{const a=t instanceof eu?t.get(o):null;return a&&a.evaluate?a.evaluate(n,r,i):a}))}function rv(e,t){return t-e}Cl(tv,"FeatureIndex",{omit:["rawTileData","sourceLayerCoder"]});var iv=24;const ov=128;function av(e,t){const{expression:n}=t;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new Yc(e+1))};if("source"===n.kind)return{kind:"source"};{const{zoomStops:t,interpolationType:r}=n;let i=0;for(;i{e.text=function(e,t,n){const r=t.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?e=e.toLocaleUpperCase():"lowercase"===r&&(e=e.toLocaleLowerCase()),Gc.applyArabicShaping&&(e=Gc.applyArabicShaping(e)),e}(e.text,t,n)})),e}const hv={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂","←":"↑","→":"↓"};function dv(e){return"︶"===e||"﹈"===e||"︸"===e||"﹄"===e||"﹂"===e||"︾"===e||"︼"===e||"︺"===e||"︘"===e||"﹀"===e||"︐"===e||"︓"===e||"︔"===e||"`"===e||" ̄"===e||"︑"===e||"︒"===e}function fv(e){return"︵"===e||"﹇"===e||"︷"===e||"﹃"===e||"﹁"===e||"︽"===e||"︻"===e||"︹"===e||"︗"===e||"︿"===e}function pv(e,t,n){t.glyphs=[],1===e&&n.readMessage(mv,t)}function mv(e,t,n){if(3===e){const{id:e,bitmap:r,width:i,height:o,left:a,top:s,advance:l}=n.readMessage(gv,{});t.glyphs.push({id:e,bitmap:new vp({width:i+6,height:o+6},r),metrics:{width:i,height:o,left:a,top:s,advance:l}})}else 4===e?t.ascender=n.readSVarint():5===e&&(t.descender=n.readSVarint())}function gv(e,t,n){1===e?t.id=n.readVarint():2===e?t.bitmap=n.readBytes():3===e?t.width=n.readVarint():4===e?t.height=n.readVarint():5===e?t.left=n.readSVarint():6===e?t.top=n.readSVarint():7===e&&(t.advance=n.readVarint())}const yv={horizontal:1,vertical:2,horizontalOnly:3},vv=-17;class bv{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(e,t){const n=new bv;return n.scale=e||1,n.fontStack=t,n}static forImage(e){const t=new bv;return t.imageName=e,t}}class Av{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(e,t){const n=new Av;for(let r=0;r=0&&n>=e&&wv[this.text.charCodeAt(n)];n--)t--;this.text=this.text.substring(e,t),this.sectionIndex=this.sectionIndex.slice(e,t)}substring(e,t){const n=new Av;return n.text=this.text.substring(e,t),n.sectionIndex=this.sectionIndex.slice(e,t),n.sections=this.sections,n}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce(((e,t)=>Math.max(e,this.sections[t].scale)),0)}addTextSection(e,t){this.text+=e.text,this.sections.push(bv.forText(e.scale,e.fontStack||t));const n=this.sections.length-1;for(let t=0;t=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function xv(e,t,n,r,i,o,a,s,l,c,u,h,d,f,p){const m=Av.fromFeature(e,i);h===yv.vertical&&m.verticalizePunctuation(d);let g=[];const y=function(e,t,n,r,i,o){if(!e)return[];const a=[],s=function(e,t,n,r,i,o){let a=0;for(let n=0;n=0;let c=0;for(let n=0;n0&&o>A&&(A=o)}else{const e=n[s.fontStack];if(!e)continue;e[m]&&(C=e[m]);const r=t[s.fontStack];if(!r)continue;const o=r.glyphs[m];if(!o)continue;if(v=o.metrics,E=8203!==m?iv:0,g){const e=void 0!==r.ascender?Math.abs(r.ascender):0,t=void 0!==r.descender?Math.abs(r.descender):0,n=(e+t)*y;x-n/2;){if(a--,a<0)return!1;s-=e[a].dist(o),o=e[a]}s+=e[a].dist(e[a+1]),a++;const l=[];let c=0;for(;sr;)c-=l.shift().angleDelta;if(c>i)return!1;a++,s+=n.dist(o)}return!0}function Bv(e){let t=0;for(let n=0;nc){const u=(c-l)/o,h=Yi(r.x,i.x,u),d=Yi(r.y,i.y,u),f=new Dv(h,d,0,i.angleTo(r),n);return!a||jv(e,f,s,a,t)?f:void 0}l+=o}}function _v(e,t,n,r,i,o,a,s,l){const c=Lv(r,o,a),u=Fv(r,i),h=u*a,d=0===e[0].x||e[0].x===l||0===e[0].y||e[0].y===l;return t-h=0&&y=0&&v=0&&d+c<=u){const n=new Dv(y,v,0,m,t);r&&!jv(e,n,o,r,i)||f.push(n)}}h+=p}return s||f.length||a||(f=zv(e,h/2,n,r,i,o,a,!0,l)),f}function Vv(e,t,n,r,i){const o=[];for(let a=0;a=r&&c.x>=r||(a.x>=r?a=new Ln(r,a.y+(c.y-a.y)*((r-a.x)/(c.x-a.x)))._round():c.x>=r&&(c=new Ln(r,a.y+(c.y-a.y)*((r-a.x)/(c.x-a.x)))._round()),a.y>=i&&c.y>=i||(a.y>=i?a=new Ln(a.x+(c.x-a.x)*((i-a.y)/(c.y-a.y)),i)._round():c.y>=i&&(c=new Ln(a.x+(c.x-a.x)*((i-a.y)/(c.y-a.y)),i)._round()),l&&a.equals(l[l.length-1])||(l=[a],o.push(l)),l.push(c)))))}}return o}function Uv(e){let t=0,n=0;for(const r of e)t+=r.w*r.h,n=Math.max(n,r.w);e.sort(((e,t)=>t.h-e.h));const r=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),n),h:1/0}];let i=0,o=0;for(const t of e)for(let e=r.length-1;e>=0;e--){const n=r[e];if(!(t.w>n.w||t.h>n.h)){if(t.x=n.x,t.y=n.y,o=Math.max(o,t.y+t.h),i=Math.max(i,t.x+t.w),t.w===n.w&&t.h===n.h){const t=r.pop();ee.hasImage(t,n))),e.dispatchRenderCallbacks(this.haveRenderCallbacks,n);for(const r in e.getUpdatedImages(n))this.patchUpdatedImage(this.iconPositions[r],e.getImage(r,n),t),this.patchUpdatedImage(this.patternPositions[r],e.getImage(r,n),t)}patchUpdatedImage(e,t,n){if(!e||!t)return;if(e.version===t.version)return;e.version=t.version;const[r,i]=e.tl,o=!!Object.keys(this.patternPositions).length;n.update(t.data,{useMipmap:o},{x:r,y:i})}}Cl(Hv,"ImagePosition"),Cl(qv,"ImageAtlas");const Gv=1e20;function Yv(e,t,n,r,i,o,a,s,l){for(let c=t;c-1);l++,o[l]=s,a[l]=c,a[l+1]=Gv}for(let s=0,l=0;s{let r=this.entries[e];r||(r=this.entries[e]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let i=r.glyphs[t];if(void 0!==i)return void n(null,{stack:e,id:t,glyph:i});if(i=this._tinySDF(r,e,t),i)return r.glyphs[t]=i,void n(null,{stack:e,id:t,glyph:i});const a=Math.floor(t/256);if(256*a>65535)return void n(new Error("glyphs > 65535 not supported"));if(r.ranges[a])return void n(null,{stack:e,id:t,glyph:i});let s=r.requests[a];s||(s=r.requests[a]=[],Xv.loadGlyphRange(e,a,o,this.requestManager,((e,t)=>{if(t){r.ascender=t.ascender,r.descender=t.descender;for(const e in t.glyphs)this._doesCharSupportLocalGlyph(+e)||(r.glyphs[+e]=t.glyphs[+e]);r.ranges[a]=!0}for(const n of s)n(e,t);delete r.requests[a]}))),s.push(((r,i)=>{r?n(r):i&&n(null,{stack:e,id:t,glyph:i.glyphs[t]||null})}))}),((e,t)=>{if(e)n(e);else if(t){const e={};for(const{stack:n,id:r,glyph:i}of t)void 0===e[n]&&(e[n]={}),void 0===e[n].glyphs&&(e[n].glyphs={}),e[n].glyphs[r]=i&&{id:i.id,bitmap:i.bitmap.clone(),metrics:i.metrics},e[n].ascender=this.entries[n].ascender,e[n].descender=this.entries[n].descender;n(null,e)}}))}_doesCharSupportLocalGlyph(e){return this.localGlyphMode!==Qv.none&&(this.localGlyphMode===Qv.all?!!this.localFontFamily:!!this.localFontFamily&&(lc(e)||dc(e)||Jl(e)||Zl(e)||Xl(e)||ac(e)||wc(e)))}_tinySDF(e,t,n){const r=this.localFontFamily;if(!r||!this._doesCharSupportLocalGlyph(n))return;let i=e.tinySDF;if(!i){let n="400";/bold/i.test(t)?n="900":/medium/i.test(t)?n="500":/light/i.test(t)&&(n="200");const o=48,a=6,s=16;i=e.tinySDF=new Xv.TinySDF({fontFamily:r,fontWeight:n,fontSize:o,buffer:a,radius:s}),i.fontWeight=n}if(this.localGlyphs[i.fontWeight][n])return this.localGlyphs[i.fontWeight][n];const o=String.fromCodePoint(n),{data:a,width:s,height:l,glyphWidth:c,glyphHeight:u,glyphLeft:h,glyphTop:d,glyphAdvance:f}=i.draw(o);return this.localGlyphs[i.fontWeight][n]={id:n,bitmap:new vp({width:s,height:l},a),metrics:{width:c/2,height:u/2,left:h/2,top:d/2-27,advance:f/2,localGlyph:!0}}}}Xv.loadGlyphRange=function(e,t,n,r,i){const o=256*t,a=o+255,s=r.transformRequest(r.normalizeGlyphsURL(n).replace("{fontstack}",e).replace("{range}",`${o}-${a}`),Jr.Glyphs);ti(s,((e,t)=>{if(e)i(e);else if(t){const e={},n=function(e){return new Zy(e).readFields(pv,{})}(t);for(const t of n.glyphs)e[t.id]=t;i(null,{glyphs:e,ascender:n.ascender,descender:n.descender})}}))},Xv.TinySDF=class{constructor({fontSize:e=24,buffer:t=3,radius:n=8,cutoff:r=.25,fontFamily:i="sans-serif",fontWeight:o="normal",fontStyle:a="normal"}={}){this.buffer=t,this.cutoff=r,this.radius=n;const s=this.size=e+4*t,l=this._createCanvas(s),c=this.ctx=l.getContext("2d",{willReadFrequently:!0});c.font=`${a} ${o} ${e}px ${i}`,c.textBaseline="alphabetic",c.textAlign="left",c.fillStyle="black",this.gridOuter=new Float64Array(s*s),this.gridInner=new Float64Array(s*s),this.f=new Float64Array(s),this.z=new Float64Array(s+1),this.v=new Uint16Array(s)}_createCanvas(e){const t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){const{width:t,actualBoundingBoxAscent:n,actualBoundingBoxDescent:r,actualBoundingBoxLeft:i,actualBoundingBoxRight:o}=this.ctx.measureText(e),a=Math.ceil(n),s=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(o-i))),l=Math.min(this.size-this.buffer,a+Math.ceil(r)),c=s+2*this.buffer,u=l+2*this.buffer,h=Math.max(c*u,0),d=new Uint8ClampedArray(h),f={data:d,width:c,height:u,glyphWidth:s,glyphHeight:l,glyphTop:a,glyphLeft:0,glyphAdvance:t};if(0===s||0===l)return f;const{ctx:p,buffer:m,gridInner:g,gridOuter:y}=this;p.clearRect(m,m,s,l),p.fillText(e,m,m+a);const v=p.getImageData(m,m,s,l);y.fill(Gv,0,h),g.fill(0,0,h);for(let e=0;e0?e*e:0,g[r]=e<0?e*e:0}}Yv(y,0,0,c,u,c,this.f,this.v,this.z),Yv(g,m,m,s,l,c,this.f,this.v,this.z);for(let e=0;ee+t[1]-t[0],p=h.reduce(f,0),m=d.reduce(f,0),g=s-p,y=l-m;let v=0,b=p,A=0,x=m,w=0,C=g,S=0,E=y;if(o.content&&r){const e=o.content;v=Zv(h,0,e[0]),A=Zv(d,0,e[1]),b=Zv(h,e[0],e[2]),x=Zv(d,e[1],e[3]),w=e[0]-v,S=e[1]-A,C=e[2]-e[0]-b,E=e[3]-e[1]-x}const k=(r,i,s,l)=>{const h=$v(r.stretch-v,b,c,e.left),d=eb(r.fixed-w,C,r.stretch,p),f=$v(i.stretch-A,x,u,e.top),g=eb(i.fixed-S,E,i.stretch,m),y=$v(s.stretch-v,b,c,e.left),k=eb(s.fixed-w,C,s.stretch,p),T=$v(l.stretch-A,x,u,e.top),I=eb(l.fixed-S,E,l.stretch,m),O=new Ln(h,f),R=new Ln(y,f),M=new Ln(y,T),P=new Ln(h,T),D=new Ln(d/a,g/a),j=new Ln(k/a,I/a),B=t*Math.PI/180;if(B){const e=Math.sin(B),t=Math.cos(B),n=[t,-e,e,t];O._matMult(n),R._matMult(n),P._matMult(n),M._matMult(n)}const L=r.stretch+r.fixed,F=s.stretch+s.fixed,N=i.stretch+i.fixed,_=l.stretch+l.fixed,z={x:o.paddedRect.x+1+L,y:o.paddedRect.y+1+N,w:F-L,h:_-N},V=e.imageSecondary;return{tl:O,tr:R,bl:P,br:M,texPrimary:z,texSecondary:V?{x:V.paddedRect.x+1+L,y:V.paddedRect.y+1+N,w:F-L,h:_-N}:void 0,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:D,pixelOffsetBR:j,minFontScaleX:C/a/c,minFontScaleY:E/a/u,isSDF:n}};if(r&&(o.stretchX||o.stretchY)){const e=Kv(h,g,p),t=Kv(d,y,m);for(let n=0;no)&&(o=t.x),(!e||t.y>a)&&(a=t.y)}const l=o-r,c=a-i,u=Math.min(l,c);let h=u/2;const d=new fa([],rb);if(0===u)return new Ln(r,i);for(let t=r;tf.d||!f.d)&&(f=r,n&&console.log("found best %d after %d probes",Math.round(1e4*r.d)/1e4,p)),r.max-f.d<=t||(h=r.h/2,d.push(new ib(r.p.x-h,r.p.y-h,h,e)),d.push(new ib(r.p.x+h,r.p.y-h,h,e)),d.push(new ib(r.p.x-h,r.p.y+h,h,e)),d.push(new ib(r.p.x+h,r.p.y+h,h,e)),p+=4)}return n&&(console.log(`num probes: ${p}`),console.log(`best distance: ${f.d}`)),f.p}function rb(e,t){return t.max-e.max}class ib{constructor(e,t,n,r){this.p=new Ln(e,t),this.h=n,this.d=function(e,t){let n=!1,r=1/0;for(let i=0;ie.y!=s.y>e.y&&e.x<(s.x-i.x)*(e.y-i.y)/(s.y-i.y)+i.x&&(n=!n),r=Math.min(r,Kd(e,i,s))}}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}}const ob=Number.POSITIVE_INFINITY,ab=Math.sqrt(2),sb=65535;function lb(e,[t,n]){let r=0,i=0;if(n===ob){t<0&&(t=0);const n=t/ab;switch(e){case"top-right":case"top-left":i=n-7;break;case"bottom-right":case"bottom-left":i=7-n;break;case"bottom":i=7-t;break;case"top":i=t-7}switch(e){case"top-right":case"bottom-right":r=-n;break;case"top-left":case"bottom-left":r=n;break;case"left":r=t;break;case"right":r=-t}}else{switch(t=Math.abs(t),n=Math.abs(n),e){case"top-right":case"top-left":case"top":i=n-7;break;case"bottom-right":case"bottom-left":case"bottom":i=7-n}switch(e){case"top-right":case"bottom-right":case"right":r=-t;break;case"top-left":case"bottom-left":case"left":r=t}}return[r,i]}function cb(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function ub(e,t,n,r,i,o,a,s,l,c,u,h,d,f,p){let m=o.textMaxSize.evaluate(t,{},h);void 0===m&&(m=a);const g=e.layers[0].layout,y=g.get("icon-offset").evaluate(t,{},h),v=pb(n.horizontal)||n.vertical,b="globe"===d.name,A=a/24,x=e.tilePixelRatio*m/24,w=(e.tilePixelRatio,function(e,t){t>18&&e>2&&(e>>=1);const n=pa/(512*e);return Math.max(n,1)}(e.overscaling,e.zoom)*g.get("symbol-spacing")),C=g.get("text-padding")*e.tilePixelRatio,S=g.get("icon-padding")*e.tilePixelRatio,E=zn(g.get("text-max-angle")),k="map"===g.get("text-rotation-alignment")&&"point"!==g.get("symbol-placement"),T="map"===g.get("icon-rotation-alignment")&&"point"!==g.get("symbol-placement"),I=g.get("symbol-placement"),O=w/2,R=g.get("icon-text-fit").evaluate(t,{},h),M=g.get("icon-text-fit-padding").evaluate(t,{},h),P="none"!==R;let D;!1===e.hasAnyIconTextFit&&P&&(e.hasAnyIconTextFit=!0),r&&P&&(e.allowVerticalPlacement&&n.vertical&&(D=Pv(r,n.vertical,R,M,y,A)),v&&(r=Pv(r,v,R,M,y,A)));const j=(a,s,m)=>{if(s.x<0||s.x>=pa||s.y<0||s.y>=pa)return;let g=null;if(b){const{x:e,y:t,z:n}=d.projectTilePoint(s.x,s.y,m);g={anchor:new Dv(e,t,n,0,void 0),up:d.upVector(m,s.x,s.y)}}!function(e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,y,v,b,A,x,w,C,S,E,k){const T=e.addToLineVertexArray(t,r);let I,O,R,M,P,D,j,B=0,L=0,F=0,N=0,_=-1,z=-1;const V={};let U=Pi("");const H=n?n.anchor:t,q="none"!==l.layout.get("icon-text-fit").evaluate(A,{},S);let G=0,Y=0;if(void 0===l._unevaluatedLayout.getValue("text-radial-offset")?[G,Y]=l.layout.get("text-offset").evaluate(A,{},S).map((e=>e*iv)):(G=l.layout.get("text-radial-offset").evaluate(A,{},S)*iv,Y=ob),e.allowVerticalPlacement&&i.vertical){const e=i.vertical;if(p)D=gb(e),s&&(j=gb(s));else{const n=l.layout.get("text-rotate").evaluate(A,{},S)+90;R=mb(c,H,t,u,h,d,e,f,n,m),s&&(M=mb(c,H,t,u,h,d,s,y,n))}}if(o){const r=l.layout.get("icon-rotate").evaluate(A,{},S),i=Jv(o,r,w,q),a=s?Jv(s,r,w,q):void 0;O=mb(c,H,t,u,h,d,o,y,r),B=4*i.length;const f=e.iconSizeData;let p=null;"source"===f.kind?(p=[ov*l.layout.get("icon-size").evaluate(A,{},S)],p[0]>db&&cr(`${e.layerIds[0]}: Value for "icon-size" is >= ${hb}. Reduce your "icon-size".`)):"composite"===f.kind&&(p=[ov*x.compositeIconSizes[0].evaluate(A,{},S),ov*x.compositeIconSizes[1].evaluate(A,{},S)],(p[0]>db||p[1]>db)&&cr(`${e.layerIds[0]}: Value for "icon-size" is >= ${hb}. Reduce your "icon-size".`)),e.addSymbols(e.icon,i,p,b,v,A,!1,n,t,T.lineStartIndex,T.lineLength,-1,C,S,E,k),_=e.icon.placedSymbolArray.length-1,a&&(L=4*a.length,e.addSymbols(e.icon,a,p,b,v,A,yv.vertical,n,t,T.lineStartIndex,T.lineLength,-1,C,S,E,k),z=e.icon.placedSymbolArray.length-1)}for(const r in i.horizontal){const o=i.horizontal[r];I||(U=Pi(o.text),p?P=gb(o):I=mb(c,H,t,u,h,d,o,f,l.layout.get("text-rotate").evaluate(A,{},S),m));const s=1===o.positionedLines.length;if(F+=fb(e,n,t,o,a,l,p,A,m,T,i.vertical?yv.horizontal:yv.horizontalOnly,s?Object.keys(i.horizontal):[r],V,_,x,C,S,E),s)break}i.vertical&&(N+=fb(e,n,t,i.vertical,a,l,p,A,m,T,yv.vertical,["vertical"],V,z,x,C,S,E));let W=-1;const Q=(e,t)=>e?Math.max(e,t):t;W=Q(P,W),W=Q(D,W),W=Q(j,W);const X=W>-1?1:0;e.glyphOffsetArray.length>=sb&&cr("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==A.sortKey&&e.addToSortKeyRanges(e.symbolInstances.length,A.sortKey);const J=H;e.symbolInstances.emplaceBack(t.x,t.y,J.x,J.y,J.z,V.right>=0?V.right:-1,V.center>=0?V.center:-1,V.left>=0?V.left:-1,V.vertical>=0?V.vertical:-1,_,z,U,void 0!==I?I:e.collisionBoxArray.length,void 0!==I?I+1:e.collisionBoxArray.length,void 0!==R?R:e.collisionBoxArray.length,void 0!==R?R+1:e.collisionBoxArray.length,void 0!==O?O:e.collisionBoxArray.length,void 0!==O?O+1:e.collisionBoxArray.length,M||e.collisionBoxArray.length,M?M+1:e.collisionBoxArray.length,u,F,N,B,L,X,0,G,Y,W,0,q?1:0)}(e,s,g,a,n,r,i,D,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,C,k,l,0,S,T,y,t,o,c,u,h,f,p)};if("line"===I)for(const i of Vv(t.geometry,0,0,pa,pa)){const t=_v(i,w,E,n.vertical||v,r,24,x,e.overscaling,pa);for(const n of t)v&&yb(e,v.text,O,n)||j(i,n,h)}else if("line-center"===I){for(const e of t.geometry)if(e.length>1){const t=Nv(e,E,n.vertical||v,r,24,x);t&&j(e,t,h)}}else if("Polygon"===t.type)for(const e of tm(t.geometry,0)){const t=nb(e,16);j(e[0],new Dv(t.x,t.y,0,0,void 0),h)}else if("LineString"===t.type)for(const e of t.geometry)j(e,new Dv(e[0].x,e[0].y,0,0,void 0),h);else if("Point"===t.type)for(const e of t.geometry)for(const t of e)j([t],new Dv(t.x,t.y,0,0,void 0),h)}const hb=255,db=hb*ov;function fb(e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,y){const v=function(e,t,n,r,i,o,a,s){const l=[];if(0===t.positionedLines.length)return l;const c=r.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,u=function(e){const t=e[0],n=e[1],r=t*n;return r>0?[t,-n]:r<0?[-t,n]:0===t?[n,t]:[n,-t]}(n);let h=Math.abs(t.top-t.bottom);for(const e of t.positionedLines)h-=e.lineOffset;const d=t.positionedLines.length,f=h/d;let p=t.top-n[1];for(let e=0;edb&&cr(`${e.layerIds[0]}: Value for "text-size" is >= ${hb}. Reduce your "text-size".`)):"composite"===b.kind&&(A=[ov*p.compositeTextSizes[0].evaluate(s,{},g),ov*p.compositeTextSizes[1].evaluate(s,{},g)],(A[0]>db||A[1]>db)&&cr(`${e.layerIds[0]}: Value for "text-size" is >= ${hb}. Reduce your "text-size".`)),e.addSymbols(e.text,v,A,l,a,s,u,t,n,c.lineStartIndex,c.lineLength,f,m,g,y,!1);for(const t of h)d[t]=e.text.placedSymbolArray.length-1;return 4*v.length}function pb(e){for(const t in e)return e[t];return null}function mb(e,t,n,r,i,o,a,s,l,c){let u=a.top,h=a.bottom,d=a.left,f=a.right;const p=a.collisionPadding;if(p&&(d-=p[0],u-=p[1],f+=p[2],h+=p[3]),l){const e=new Ln(d,u),t=new Ln(f,u),n=new Ln(d,h),r=new Ln(f,h),i=zn(l);let o=new Ln(0,0);c&&(o=new Ln(c[0],c[1])),e._rotateAround(i,o),t._rotateAround(i,o),n._rotateAround(i,o),r._rotateAround(i,o),d=Math.min(e.x,t.x,n.x,r.x),f=Math.max(e.x,t.x,n.x,r.x),u=Math.min(e.y,t.y,n.y,r.y),h=Math.max(e.y,t.y,n.y,r.y)}return e.emplaceBack(t.x,t.y,t.z,n.x,n.y,d,u,f,h,s,r,i,o),e.length-1}function gb(e){e.collisionPadding&&(e.top-=e.collisionPadding[1],e.bottom+=e.collisionPadding[3]);const t=e.bottom-e.top;return t>0?Math.max(10,t):null}function yb(e,t,n,r){const i=e.compareText;if(t in i){const e=i[t];for(let t=e.length-1;t>=0;t--)if(r.dist(e[t])b&&(A(e,c,r,i,s,l),A(c,n,s,l,o,a))}A(h,d,r,o,i,o),A(d,f,i,o,i,a),A(f,p,i,a,r,a),A(p,h,r,a,r,o),m-=b,g-=b,y+=b,v+=b;const x=1/Math.max(y-m,v-g);return{scale:x,x:m*x,y:g*x,x2:y*x,y2:v*x,projection:t}}function Ab(e,{x:t,y:n},r=0){return new Ln(((t-r)*e.scale-e.x)*pa,(n*e.scale-e.y)*pa)}const xb=e.ae.identity(new Float32Array(16));class wb{constructor(e){this.spec=e,this.name=e.name,this.wrap=!1,this.requiresDraping=!1,this.supportsWorldCopies=!1,this.supportsTerrain=!1,this.supportsFog=!1,this.supportsFreeCamera=!1,this.zAxisUnit="meters",this.isReprojectedInTileSpace=!0,this.unsupportedLayers=["custom"],this.center=[0,0],this.range=[3.5,7]}project(e,t){return{x:0,y:0,z:0}}unproject(e,t){return new hd(0,0)}projectTilePoint(e,t,n){return{x:e,y:t,z:0}}locationPoint(e,t,n=!0){return e._coordinatePoint(e.locationCoordinate(t),n)}pixelsPerMeter(e,t){return Cd(1,e)*t}pixelSpaceConversion(e,t,n){return 1}farthestPixelDistance(e){return vb(e,e.pixelsPerMeter)}pointCoordinate(e,t,n,r){const i=e.horizonLineFromTop(!1),o=new Ln(t,Math.max(i,n));return e.rayIntersectionCoordinate(e.pointRayIntersection(o,r))}pointCoordinate3D(e,t,n){const r=new Ln(t,n);if(e.elevation)return e.elevation.pointCoordinate(r);{const t=this.pointCoordinate(e,r.x,r.y,0);return[t.x,t.y,t.z]}}isPointAboveHorizon(e,t){if(e.elevation&&e.elevation.visibleDemTiles.length)return!this.pointCoordinate3D(e,t.x,t.y);const n=e.horizonLineFromTop();return t.y0?t<-Mb+n&&(t=-Mb+n):t>Mb-n&&(t=Mb-n);const o=i/Math.pow(Pb(t),r);let a=o*Math.sin(r*e),s=i-o*Math.cos(r*e);return a=.5*(a/Math.PI+.5),s=.5*(s/Math.PI+.5),{x:a,y:this.southernCenter?s:1-s,z:0}}unproject(e,t){e=(2*e-.5)*Math.PI,this.southernCenter&&(t=1-t),t=(2*(1-t)-.5)*Math.PI;const{n,f:r}=this,i=r-t,o=Math.sign(i),a=Math.sign(n)*Math.sqrt(e*e+i*i);let s=Math.atan2(e,Math.abs(i))*o;i*n<0&&(s-=Math.PI*Math.sign(e)*o);const l=Yn(Vn(s/n)+this.center[0],-180,180),c=Yn(Vn(2*Math.atan(Math.pow(r/a,1/n))-Mb),-85.051129,Td);return new hd(l,this.southernCenter?-c:c)}}class jb extends wb{constructor(e){super(e),this.wrap=!0,this.supportsWorldCopies=!0,this.supportsTerrain=!0,this.supportsFog=!0,this.supportsFreeCamera=!0,this.isReprojectedInTileSpace=!1,this.unsupportedLayers=[],this.range=null}project(e,t){return{x:xd(e),y:wd(t),z:0}}unproject(e,t){const n=Sd(e),r=Ed(t);return new hd(n,r)}}const Bb=zn(Td);class Lb extends wb{project(e,t){const n=(t=zn(t))*t,r=n*n,i=t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)));return{x:.5*((e=zn(e))*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791))/Math.PI+.5),y:1-.5*(i/Math.PI+1),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI;let n=t=(2*(1-t)-1)*Math.PI,r=25,i=0,o=n*n;do{o=n*n;const e=o*o;i=(n*(1.007226+o*(.015085+e*(.028874*o-.044475-.005916*e)))-t)/(1.007226+o*(.045255+e*(.259866*o-.311325-.005916*11*e))),n=Yn(n-i,-Bb,Bb)}while(Math.abs(i)>1e-6&&--r>0);o=n*n;const a=Yn(Vn(e/(.8707+o*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979))),-180,180),s=Vn(n);return new hd(a,s)}}const Fb=zn(Td);class Nb extends wb{project(e,t){t=zn(t),e=zn(e);const n=Math.cos(t),r=2/Math.PI,i=Math.acos(n*Math.cos(e/2)),o=Math.sin(i)/i,a=.5*(e*r+2*n*Math.sin(e/2)/o)||0,s=.5*(t+Math.sin(t)/o)||0;return{x:.5*(a/Math.PI+.5),y:1-.5*(s/Math.PI+1),z:0}}unproject(e,t){let n=e=(2*e-.5)*Math.PI,r=t=(2*(1-t)-1)*Math.PI,i=25;const o=1e-6;let a=0,s=0;do{const i=Math.cos(r),o=Math.sin(r),l=2*o*i,c=o*o,u=i*i,h=Math.cos(n/2),d=Math.sin(n/2),f=2*h*d,p=d*d,m=1-u*h*h,g=m?1/m:0,y=m?Math.acos(i*h)*Math.sqrt(1/m):0,v=.5*(2*y*i*d+2*n/Math.PI)-e,b=.5*(y*o+r)-t,A=.5*g*(u*p+y*i*h*c)+1/Math.PI,x=g*(f*l/4-y*o*d),w=.125*g*(l*d-y*o*u*f),C=.5*g*(c*h+y*p*i)+.5,S=x*w-C*A;a=(b*x-v*C)/S,s=(v*w-b*A)/S,n=Yn(n-a,-Math.PI,Math.PI),r=Yn(r-s,-Fb,Fb)}while((Math.abs(a)>o||Math.abs(s)>o)&&--i>0);return new hd(Vn(n),Vn(r))}}class _b extends wb{constructor(e){super(e),this.center=e.center||[0,0],this.parallels=e.parallels||[0,0],this.cosPhi=Math.max(.01,Math.cos(zn(this.parallels[0]))),this.scale=1/(2*Math.max(Math.PI*this.cosPhi,1/this.cosPhi)),this.wrap=!0,this.supportsWorldCopies=!0}project(e,t){const{scale:n,cosPhi:r}=this;return{x:zn(e)*r*n+.5,y:-Math.sin(zn(t))/r*n+.5,z:0}}unproject(e,t){const{scale:n,cosPhi:r}=this,i=-(t-.5)/n,o=Yn(Vn((e-.5)/n)/r,-180,180),a=i*r,s=Math.asin(Yn(a,-1,1)),l=Yn(Vn(s),-85.051129,Td);return new hd(o,l)}}class zb extends jb{constructor(e){super(e),this.requiresDraping=!0,this.supportsWorldCopies=!1,this.supportsFog=!0,this.zAxisUnit="pixels",this.unsupportedLayers=["debug"],this.range=[3,5]}projectTilePoint(t,n,r){const i=Yf(t,n,r),o=Xf(_f(r));return e.$.transformMat4(i,i,o),{x:i[0],y:i[1],z:i[2]}}locationPoint(t,n){const r=ld(n.lat,n.lng),i=e.$.normalize([],r),o=t.elevation?t.elevation.getAtPointOrZero(t.locationCoordinate(n),t._centerAltitude):t._centerAltitude,a=Cd(1,0)*pa*o;e.$.scaleAndAdd(r,r,i,a);const s=e.ae.identity(new Float64Array(16));return e.ae.multiply(s,t.pixelMatrix,t.globeMatrix),e.$.transformMat4(r,r,s),new Ln(r[0],r[1])}pixelsPerMeter(e,t){return Cd(1,0)*t}pixelSpaceConversion(e,t,n){const r=Cd(1,e)*t,i=Yi(Cd(1,45)*t,r,n);return this.pixelsPerMeter(e,t)/i}createTileMatrix(t,n,r){const i=Jf(_f(r.canonical));return e.ae.multiply(new Float64Array(16),t.globeMatrix,i)}createInversionMatrix(t,n){const{center:r}=t,i=Xf(_f(n));return e.ae.rotateY(i,i,zn(r.lng)),e.ae.rotateX(i,i,zn(r.lat)),e.ae.scale(i,i,[t._pixelsPerMercatorPixel,t._pixelsPerMercatorPixel,1]),Float32Array.from(i)}pointCoordinate(e,t,n,r){return Lf(e,t,n,!0)||new Pd(0,0)}pointCoordinate3D(e,t,n){const r=this.pointCoordinate(e,t,n,0);return[r.x,r.y,r.z]}isPointAboveHorizon(e,t){return!Lf(e,t.x,t.y,!1)}farthestPixelDistance(t){const n=function(t,n){const r=t.cameraToCenterDistance,i=t._centerAltitude*n,o=t._camera,a=t._camera.forward(),s=e.$.add([],e.$.scale([],a,-r),[0,0,i]),l=t.worldSize/(2*Math.PI),c=[0,0,-l],u=t.width/t.height,h=Math.tan(t.fovAboveCenter),d=e.$.scale([],o.up(),h),f=e.$.scale([],o.right(),h*u),p=e.$.normalize([],e.$.add([],e.$.add([],a,d),f)),m=[];let g;if(new df(s,p).closestPointOnSphere(c,l,m)){const n=e.$.add([],m,c),r=e.$.sub([],n,s);g=Math.cos(t.fovAboveCenter)*e.$.length(r)}else{const t=e.$.sub([],s,c),n=e.$.sub([],c,s);e.$.normalize(n,n);const r=e.$.length(t)-l;g=Math.sqrt(r*(r+2*l));const i=Math.acos(g/(l+r))-Math.acos(e.$.dot(a,n));g*=Math.cos(i)}return 1.01*g}(t,this.pixelsPerMeter(t.center.lat,t.worldSize)),r=ep(t.zoom);if(r>0){const e=vb(t,Cd(1,t.center.lat)*t.worldSize),i=t.worldSize/(2*Math.PI),o=Math.max(t.width,t.height)/t.worldSize*Math.PI;return Yi(n,e+i*(1-Math.cos(o)),Math.pow(r,10))}return n}upVector(e,t,n){return Yf(t,n,e,1)}upVectorScale(e){return{metersToTile:jf(Wf(_f(e)))}}}function Vb(e){const t=e.parallels,n=!!t&&Math.abs(t[0]+t[1])<.01;switch(e.name){case"mercator":return new jb(e);case"equirectangular":return new Rb(e);case"naturalEarth":return new Lb(e);case"equalEarth":return new Ob(e);case"winkelTripel":return new Nb(e);case"albers":return n?new _b(e):new Cb(e);case"lambertConformalConic":return n?new _b(e):new Db(e);case"globe":return new zb(e)}throw new Error(`Invalid projection name: ${e.name}`)}const Ub=Lm.types,Hb=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function qb(e,t,n,r,i,o,a,s,l,c,u,h,d){const f=s?Math.min(db,Math.round(s[0])):0,p=s?Math.min(db,Math.round(s[1])):0;e.emplaceBack(t,n,Math.round(32*r),Math.round(32*i),o,a,(f<<1)+(l?1:0),p,16*c,16*u,256*h,256*d)}function Gb(e,t,n){e.emplaceBack(t,n)}function Yb(e,t,n,r,i,o,a){e.emplaceBack(t,n,r,i,o,a)}function Wb(e,t,n,r,i){e.emplaceBack(t,n,r,i),e.emplaceBack(t,n,r,i),e.emplaceBack(t,n,r,i),e.emplaceBack(t,n,r,i)}function Qb(e){for(const t of e.sections)if(Pc(t.text))return!0;return!1}class Xb{constructor(e){this.layoutVertexArray=new Vu,this.indexArray=new Xu,this.programConfigurations=e,this.segments=new Ch,this.dynamicLayoutVertexArray=new Lu,this.opacityVertexArray=new Hu,this.placedSymbolArray=new hh,this.iconTransitioningVertexArray=new qu,this.globeExtVertexArray=new Uu,this.zOffsetVertexArray=new Ku}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length&&0===this.iconTransitioningVertexArray.length}upload(e,t,n,r,i){this.isEmpty()||(n&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,ay.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,ly.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,Hb,!0),this.iconTransitioningVertexArray.length>0&&(this.iconTransitioningVertexBuffer=e.createVertexBuffer(this.iconTransitioningVertexArray,uy.members,!0)),this.globeExtVertexArray.length>0&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,sy.members,!0)),!this.zOffsetVertexBuffer&&(this.zOffsetVertexArray.length>0||i)&&(this.zOffsetVertexBuffer=e.createVertexBuffer(this.zOffsetVertexArray,cy.members,!0)),this.opacityVertexBuffer.itemSize=1),(n||r)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy(),this.iconTransitioningVertexBuffer&&this.iconTransitioningVertexBuffer.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy(),this.zOffsetVertexBuffer&&this.zOffsetVertexBuffer.destroy())}}Cl(Xb,"SymbolBuffers");class Jb{constructor(e,t,n){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new n,this.segments=new Ch,this.collisionVertexArray=new Qu,this.collisionVertexArrayExt=new Lu}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,hy.members,!0),this.collisionVertexBufferExt=e.createVertexBuffer(this.collisionVertexArrayExt,dy.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.destroy())}}Cl(Jb,"CollisionBuffers");class Zb{constructor(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.lut=t.lut,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.hasAnyIconTextFit=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=e.ae.identity([]),this.placementViewportMatrix=e.ae.identity([]);const n=this.layers[0]._unevaluatedLayout._values;this.textSizeData=av(this.zoom,n["text-size"]),this.iconSizeData=av(this.zoom,n["icon-size"]);const r=this.layers[0].layout,i=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&&void 0!==i.constantOr(1);const a="viewport-y"===o||"auto"===o&&!this.sortFeaturesByKey;this.sortFeaturesByY=a&&this.canOverlap,this.writingModes=r.get("text-writing-mode").map((e=>yv[e])),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.sourceID=t.sourceID,this.projection=t.projection,this.hasAnyZOffset=!1,this.zOffsetSortDirty=!1,this.zOffsetBuffersNeedUpload=r.get("symbol-z-elevate"),this.activeReplacements=[],this.replacementUpdateTime=0}createArrays(){this.text=new Xb(new Jh(this.layers,{zoom:this.zoom,lut:this.lut},(e=>/^text/.test(e)))),this.icon=new Xb(new Jh(this.layers,{zoom:this.zoom,lut:this.lut},(e=>/^icon/.test(e)))),this.glyphOffsetArray=new ph,this.lineVertexArray=new mh,this.symbolInstances=new fh}calculateGlyphDependencies(e,t,n,r,i){for(let n=0;n0)&&("constant"!==l.value.kind||l.value.value.length>0),d="constant"!==u.value.kind||!!u.value.value||Object.keys(u.parameters).length>0,f=a.get("symbol-sort-key");if(this.features=[],!h&&!d)return;const p=n.iconDependencies,m=n.glyphDependencies,g=n.availableImages,y=new Yc(this.zoom);for(const{feature:n,id:c,index:u,sourceLayerIndex:v}of t){const t=o._featureFilter.needGeometry,b=Vd(n,t);if(!o._featureFilter.filter(y,b,r))continue;if(t||(b.geometry=zd(n,r,i)),s&&1!==n.type&&r.z<=5){const t=b.geometry,n=.98078528056,i=(t,i)=>{const o=Yf(t.x,t.y,r,1),a=Yf(i.x,i.y,r,1);return e.$.dot(o,a)=0;for(const n of A.sections)if(n.image)p[n.image.namePrimary]=!0;else{const r=Cc(A.toString()),i=n.fontStack||e,o=m[i]=m[i]||{};this.calculateGlyphDependencies(n.text,o,t,this.allowVerticalPlacement,r)}}}"line"===a.get("symbol-placement")&&(this.features=function(e){const t={},n={},r=[];let i=0;function o(t){r.push(e[t]),i++}function a(e,t,i){const o=n[e];return delete n[e],n[t]=o,r[o].geometry[0].pop(),r[o].geometry[0]=r[o].geometry[0].concat(i[0]),o}function s(e,n,i){const o=t[n];return delete t[n],t[e]=o,r[o].geometry[0].shift(),r[o].geometry[0]=i[0].concat(r[o].geometry[0]),o}function l(e,t,n){const r=n?t[0][t[0].length-1]:t[0][0];return`${e}:${r.x}:${r.y}`}for(let c=0;ce.geometry))}(this.features)),this.sortFeaturesByKey&&this.features.sort(((e,t)=>e.sortKey-t.sortKey))}update(e,t,n,r,i){const o=0!==Object.keys(e).length;if(o&&!this.stateDependentLayers.length)return;const a=o?this.stateDependentLayers:this.layers;this.text.programConfigurations.updatePaintArrays(e,t,a,n,r,i),this.icon.programConfigurations.updatePaintArrays(e,t,a,n,r,i)}updateZOffset(){const e=(e,t,r)=>{n+=t,n>e.length&&e.resize(n);for(let i=-t;i<0;i++)e.emplace(i+n,r)},t=(e,t,n)=>{r+=t,r>e.length&&e.resize(r);for(let i=-t;i<0;i++)e.emplace(i+r,n)};if(!this.zOffsetBuffersNeedUpload)return;this.zOffsetBuffersNeedUpload=!1;let n=0,r=0;for(let n=0;n0;if((i>0||o>0)&&(e(this.text.zOffsetVertexArray,i,s),e(this.text.zOffsetVertexArray,o,s)),l){const{placedIconSymbolIndex:e,verticalPlacedIconSymbolIndex:n}=r;e>=0&&t(this.icon.zOffsetVertexArray,a,s),n>=0&&t(this.icon.zOffsetVertexArray,r.numVerticalIconVertices,s)}}this.text.zOffsetVertexBuffer&&this.text.zOffsetVertexBuffer.updateData(this.text.zOffsetVertexArray),this.icon.zOffsetVertexBuffer&&this.icon.zOffsetVertexBuffer.updateData(this.icon.zOffsetVertexArray)}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload,this.zOffsetBuffersNeedUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload,this.zOffsetBuffersNeedUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}getProjection(){return this.projectionInstance||(this.projectionInstance=Vb(this.projection)),this.projectionInstance}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){const n=this.lineVertexArray.length;if(void 0!==e.segment)for(const{x:e,y:n}of t)this.lineVertexArray.emplaceBack(e,n);return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}}addSymbols(e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m){const g=e.indexArray,y=e.layoutVertexArray,v=e.globeExtVertexArray,b=e.segments.prepareSegment(4*t.length,y,g,this.canOverlap?o.sortKey:void 0),A=this.glyphOffsetArray.length,x=b.vertexLength,w=this.allowVerticalPlacement&&a===yv.vertical?Math.PI/2:0,C=o.text&&o.text.sections;for(let r=0;r=0?t.rightJustifiedTextSymbolIndex:t.centerJustifiedTextSymbolIndex>=0?t.centerJustifiedTextSymbolIndex:t.leftJustifiedTextSymbolIndex>=0?t.leftJustifiedTextSymbolIndex:t.verticalPlacedTextSymbolIndex>=0?t.verticalPlacedTextSymbolIndex:r,o=this.text.placedSymbolArray.get(i),a=sv(this.textSizeData,e,o)/iv;return this.tilePixelRatio*a}getSymbolInstanceIconSize(e,t,n){const r=this.icon.placedSymbolArray.get(n),i=sv(this.iconSizeData,e,r);return this.tilePixelRatio*i}_commitDebugCollisionVertexUpdate(e,t,n,r){e.emplaceBack(t,-n,-n,r),e.emplaceBack(t,n,-n,r),e.emplaceBack(t,n,n,r),e.emplaceBack(t,-n,n,r)}_updateTextDebugCollisionBoxes(e,t,n,r,i,o){for(let a=r;a0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}hasIconTextFit(){return this.hasAnyIconTextFit}addIndicesForPlacedSymbol(e,t){const n=e.placedSymbolArray.get(t),r=n.vertexStartIndex+4*n.numGlyphs;for(let t=n.vertexStartIndex;tr[e]-r[t]||i[t]-i[e])),o}getSortedIndexesByZOffset(){if(!this.zOffsetSortDirty)return this.symbolInstanceIndexesSortedZOffset;if(!this.symbolInstanceIndexesSortedZOffset){this.symbolInstanceIndexesSortedZOffset=[];for(let e=0;ethis.symbolInstances.get(t).zOffset-this.symbolInstances.get(e).zOffset))}addToSortKeyRanges(e,t){const n=this.sortKeyRanges[this.sortKeyRanges.length-1];n&&n.sortKey===t?n.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const e of this.symbolInstanceIndexes){const t=this.symbolInstances.get(e);this.featureSortOrder.push(t.featureIndex);const{rightJustifiedTextSymbolIndex:n,centerJustifiedTextSymbolIndex:r,leftJustifiedTextSymbolIndex:i,verticalPlacedTextSymbolIndex:o,placedIconSymbolIndex:a,verticalPlacedIconSymbolIndex:s}=t;n>=0&&this.addIndicesForPlacedSymbol(this.text,n),r>=0&&r!==n&&this.addIndicesForPlacedSymbol(this.text,r),i>=0&&i!==r&&i!==n&&this.addIndicesForPlacedSymbol(this.text,i),o>=0&&this.addIndicesForPlacedSymbol(this.text,o),a>=0&&this.addIndicesForPlacedSymbol(this.icon,a),s>=0&&this.addIndicesForPlacedSymbol(this.icon,s)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}Cl(Zb,"SymbolBucket",{omit:["layers","collisionBoxArray","features","compareText"]}),Zb.addDynamicAttributes=Wb;class Kb{constructor(e,t,n,r){this.context=e,this.format=n,this.texture=e.gl.createTexture(),this.update(t,r)}update(e,t,n){const{width:r,height:i}=e,{context:o}=this,{gl:a}=o;if(a.bindTexture(a.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1),o.pixelStoreUnpackPremultiplyAlpha.set(this.format===a.RGBA&&(!t||!1!==t.premultiply)),this.useMipmap=Boolean(t&&t.useMipmap),n||this.size&&this.size[0]===r&&this.size[1]===i){const{x:t,y:o}=n||{x:0,y:0};if(e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof ImageData||ImageBitmap&&e instanceof ImageBitmap)a.texSubImage2D(a.TEXTURE_2D,0,t,o,a.RGBA,a.UNSIGNED_BYTE,e);else{let n=this.format,s=a.UNSIGNED_BYTE;this.format===a.R32F&&(n=a.RED,s=a.FLOAT),a.texSubImage2D(a.TEXTURE_2D,0,t,o,r,i,n,s,e.data)}}else if(this.size=[r,i],e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof ImageData||ImageBitmap&&e instanceof ImageBitmap){let t=this.format;this.format===a.R8&&(t=a.RED),a.texImage2D(a.TEXTURE_2D,0,this.format,t,a.UNSIGNED_BYTE,e)}else{let t=this.format,n=this.format,o=a.UNSIGNED_BYTE,s=!1;this.format===a.DEPTH_COMPONENT&&(t=a.DEPTH_COMPONENT16,o=a.UNSIGNED_SHORT),this.format===a.DEPTH_STENCIL&&(t=a.DEPTH24_STENCIL8,o=a.UNSIGNED_INT_24_8,s=!0),this.format===a.R8&&(n=a.RED),this.format===a.R32F&&(o=a.FLOAT,n=a.RED),!this.useMipmap&&s?a.texStorage2D(a.TEXTURE_2D,1,t,r,i):a.texImage2D(a.TEXTURE_2D,0,t,r,i,0,n,o,e.data)}this.useMipmap&&a.generateMipmap(a.TEXTURE_2D)}bind(e,t,n=!1){const{context:r}=this,{gl:i}=r;i.bindTexture(i.TEXTURE_2D,this.texture),e!==this.minFilter&&(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,e),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,this.useMipmap&&!n?e===i.NEAREST?i.NEAREST_MIPMAP_NEAREST:i.LINEAR_MIPMAP_LINEAR:e),this.minFilter=e),t!==this.wrapS&&(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,t),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,t),this.wrapS=t)}bindExtraParam(e,t,n,r){const{context:i}=this,{gl:o}=i;o.bindTexture(o.TEXTURE_2D,this.texture),t!==this.magFilter&&(o.texParameteri(o.TEXTURE_2D,o.TEXTURE_MAG_FILTER,t),this.magFilter=t),e!==this.minFilter&&(o.texParameteri(o.TEXTURE_2D,o.TEXTURE_MIN_FILTER,this.useMipmap?e===o.NEAREST?o.NEAREST_MIPMAP_NEAREST:o.LINEAR_MIPMAP_LINEAR:e),this.minFilter=e),n!==this.wrapS&&(o.texParameteri(o.TEXTURE_2D,o.TEXTURE_WRAP_S,n),this.wrapS=n),r!==this.wrapT&&(o.texParameteri(o.TEXTURE_2D,o.TEXTURE_WRAP_T,r),this.wrapT=r)}destroy(){const{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null}}class $b{constructor(e,t){this.context=e,this.texture=t}bind(e,t){const{context:n}=this,{gl:r}=n;r.bindTexture(r.TEXTURE_2D,this.texture),e!==this.minFilter&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,e),this.minFilter=e),t!==this.wrapS&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,t),this.wrapS=t)}}const eA=32,tA=33,nA=2046,rA=new Uint16Array(8184);for(let e=0;e>=1)>1;){const e=n+i>>1,l=r+o>>1;1&t?(i=n,o=r,n=a,r=s):(n=i,r=o,i=a,o=s),a=e,s=l}const l=4*e;rA[l+0]=n,rA[l+1]=r,rA[l+2]=i,rA[l+3]=o}const iA=new Uint16Array(2178),oA=new Uint8Array(1089),aA=new Uint16Array(1089),sA=.03125;function lA(e){return 0===e?-.03125:32===e?sA:0}var cA=Ou([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class uA{constructor(e,t,n,r){this.id=uA.uniqueIdxCounter,uA.uniqueIdxCounter++,this.context=e;const i=e.gl;this.buffer=i.createBuffer(),this.dynamicDraw=Boolean(n),this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||r||t.destroy()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){this.id=uA.uniqueIdxCounter,uA.uniqueIdxCounter++;const t=this.context.gl;this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){const e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}}uA.uniqueIdxCounter=0;class hA{constructor(e,t,n){this.func=e,this.mask=t,this.range=n}}hA.ReadOnly=!1,hA.ReadWrite=!0,hA.disabled=new hA(519,hA.ReadOnly,[0,1]);const dA=7680;class fA{constructor(e,t,n,r,i,o){this.test=e,this.ref=t,this.mask=n,this.fail=r,this.depthFail=i,this.pass=o}}fA.disabled=new fA({func:519,mask:0},0,0,dA,dA,dA);const pA=771;class mA{constructor(e,t,n,r){this.blendFunction=e,this.blendColor=t,this.mask=n,this.blendEquation=r}}mA.Replace=[1,0,1,0],mA.disabled=new mA(mA.Replace,qi.transparent,[!1,!1,!1,!1]),mA.unblended=new mA(mA.Replace,qi.transparent,[!0,!0,!0,!0]),mA.alphaBlended=new mA([1,pA,1,pA],qi.transparent,[!0,!0,!0,!0]),mA.alphaBlendedNonPremultiplied=new mA([770,pA,770,pA],qi.transparent,[!0,!0,!0,!0]),mA.multiply=new mA([774,0,774,0],qi.transparent,[!0,!0,!0,!0]);const gA=1029,yA=2305;class vA{constructor(e,t,n){this.enable=e,this.mode=t,this.frontFace=n}}vA.disabled=new vA(!1,gA,yA),vA.backCCW=new vA(!0,gA,yA),vA.backCW=new vA(!0,gA,2304),vA.frontCW=new vA(!0,1028,2304),vA.frontCCW=new vA(!0,1028,yA);var bA=Ou([{name:"a_index",type:"Int16",components:1}]);const AA=(()=>({type:2,extent:pa,loadGeometry:()=>[[new Ln(0,0),new Ln(8193,0),new Ln(8193,8193),new Ln(0,8193),new Ln(0,0)]]}))();class xA{constructor(e,t,n,r,i){this.tileID=e,this.uid=$n(),this.uses=0,this.tileSize=t,this.tileZoom=n,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=i,r&&r.style&&(this._lastUpdatedBrightness=r.style.getBrightness()),this.expiredRequestCount=0,this.state="loading",r&&r.transform&&(this.projection=r.transform.projection)}registerFadeDuration(e){const t=e+this.timeAdded;tt.getLayer(e))).filter(Boolean);if(0!==e.length){r.layers=e,r.stateDependentLayerIds&&(r.stateDependentLayers=r.stateDependentLayerIds.map((t=>e.filter((e=>e.id===t))[0])));for(const t of e)n[t.fqid]=r}}return n}(e.buckets,t.style),this.hasSymbolBuckets=!1;for(const e in this.buckets){const t=this.buckets[e];if(t instanceof Zb){if(this.hasSymbolBuckets=!0,!n)break;t.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const e in this.buckets){const t=this.buckets[e];if(t instanceof Zb&&t.hasRTLText){this.hasRTLText=!0,Gc.isLoading()||Gc.isLoaded()||"deferred"!==Hc()||qc();break}}this.queryPadding=0;for(const e in this.buckets){const n=this.buckets[e],r=t.style.getOwnLayer(e);if(!r)continue;const i=r.queryRadius(n);this.queryPadding=Math.max(this.queryPadding,i)}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage),e.lineAtlas&&(this.lineAtlas=e.lineAtlas),this._lastUpdatedBrightness=e.brightness}else this.collisionBoxArray=new ch}unloadVectorData(){if(this.hasData()){for(const e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}getBucket(e){return this.buckets[e.fqid]}upload(e){for(const t in this.buckets){const n=this.buckets[t];n.uploadPending()&&n.upload(e)}const t=e.gl,n=this.imageAtlas;if(n&&!n.uploaded){const r=!!Object.keys(n.patternPositions).length;this.imageAtlasTexture=new Kb(e,n.image,t.RGBA,{useMipmap:r}),this.imageAtlas.uploaded=!0}this.glyphAtlasImage&&(this.glyphAtlasTexture=new Kb(e,this.glyphAtlasImage,t.R8),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new Kb(e,this.lineAtlas.image,t.R8),this.lineAtlas.uploaded=!0)}prepare(e,t,n){if(this.imageAtlas&&this.imageAtlasTexture&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture,n),!t||!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData)return;const r=t.style.getBrightness();(this._lastUpdatedBrightness||r)&&(this._lastUpdatedBrightness&&r&&Math.abs(this._lastUpdatedBrightness-r)<.001||(this._lastUpdatedBrightness=r,this.updateBuckets(void 0,t)))}queryRenderedFeatures(e,t,n,r,i,o,a,s){return this.latestFeatureIndex&&(this.latestFeatureIndex.rawTileData||this.latestFeatureIndex.is3DTile)?this.latestFeatureIndex.query({tileResult:r,pixelPosMatrix:a,transform:o,params:i,tileTransform:this.tileTransform},e,t,n):{}}querySourceFeatures(e,t){const n=this.latestFeatureIndex;if(!n||!n.rawTileData)return;const r=n.loadVTLayers(),i=t?t.sourceLayer:"",o=r._geojsonTileLayer||r[i];if(!o)return;const a=cu(t&&t.filter),{z:s,x:l,y:c}=this.tileID.canonical,u={z:s,x:l,y:c};for(let t=0;te)n=!1;else if(t)if(this.expirationTime=0;e--){const t=4*e,n=rA[t+0],r=rA[t+1],i=rA[t+2],o=rA[t+3],a=n+i>>1,s=r+o>>1,l=a+s-r,c=s+n-a,u=r*tA+n,h=o*tA+i,d=s*tA+a,f=iA[2*u+0],p=iA[2*u+1],m=iA[2*h+0],g=iA[2*h+1],y=iA[2*d+0],v=iA[2*d+1],b=Math.hypot((f+m)/2-y,(p+g)/2-v)>=16;if(oA[d]=oA[d]||(b?1:0),e<1022){const e=(r+c>>1)*tA+(n+l>>1),t=(o+c>>1)*tA+(i+l>>1);oA[d]=oA[d]||oA[e]||oA[t]}}const i=new Du,o=new Xu;let a=0;function s(e,t){const n=t*tA+e;return 0===aA[n]&&(i.emplaceBack(iA[2*n+0],iA[2*n+1],e*pa/eA,t*pa/eA),aA[n]=++a),aA[n]-1}function l(e,t,n,r,i,a){const c=e+n>>1,u=t+r>>1;if(Math.abs(e-i)+Math.abs(t-a)>1&&oA[u*tA+c])l(i,a,e,t,c,u),l(n,r,i,a,c,u);else{const l=s(e,t),c=s(n,r),u=s(i,a);o.emplaceBack(l,c,u)}}return l(0,0,eA,eA,eA,0),l(eA,eA,0,0,0,eA),{vertices:i,indices:o}}(this.tileID.canonical,t);r=e.vertices,i=e.indices}else{r=new Du,i=new Xu;for(const{x:e,y:t}of n)r.emplaceBack(e,t,0,0);const e=Rp(r.int16,void 0,4);for(let t=0;t0&&(s=e.ae.invert(new Float64Array(16),n.globeMatrix)),this._makeGlobeTileDebugBorderBuffer(t,i,n,o,s,a),this._makeGlobeTileDebugTextBuffer(t,i,n,o,s,a)}_globePoint(t,n,r,i,o,a,s){let l=Yf(t,n,r);if(a){const o=1<.5?d=-1:h<-.5&&(d=1);let f=(t/pa+r.x)/o+d,p=(n/pa+r.y)/o;f=(f-c)*i._pixelsPerMercatorPixel+c,p=(p-u)*i._pixelsPerMercatorPixel+u;const m=[f*i.worldSize,p*i.worldSize,0];e.$.transformMat4(m,m,a),l=zf(l,m,s)}return e.$.transformMat4(l,l,o)}_makeGlobeTileDebugBorderBuffer(e,t,n,r,i,o){const a=new Mu,s=new nh,l=new Pu,c=(e,c,u,h,d)=>{const f=(u-e)/(d-1),p=(h-c)/(d-1),m=a.length;for(let u=0;uc*e+t;for(let e=0;e=1;r--){const i=1===r?1:0,o=2===r?1:0;for(let r=0;r>>1^-(1&e[t]);return e}function DA(e,t){switch(t){case"uint32":return e;case"uint16":for(let t=0;t>4|(61440&n)>>8|(240&r)<<4|61440&r,e[t+1]=15&n|(3840&n)>>4|(15&r)<<8|(3840&r)<<4}return e;case"uint8":for(let t=0;t>6|(192&r)>>4|(192&i)>>2|192&o,e[t+1]=(48&n)>>4|(48&r)>>2|48&i|(48&o)<<2,e[t+2]=(12&n)>>2|12&r|(12&i)<<2|(12&o)<<4,e[t+3]=3&n|(3&r)<<2|(3&i)<<4|(3&o)<<6}return e;default:throw new Error(`Invalid pixel format, "${t}"`)}}var jA=Uint8Array,BA=Uint16Array,LA=Int32Array,FA=new jA([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),NA=new jA([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),_A=new jA([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),zA=function(e,t){for(var n=new BA(31),r=0;r<31;++r)n[r]=t+=1<>1|(21845&YA)<<1;WA=(61680&(WA=(52428&WA)>>2|(13107&WA)<<2))>>4|(3855&WA)<<4,GA[YA]=((65280&WA)>>8|(255&WA)<<8)>>1}var QA=function(e,t,n){for(var r=e.length,i=0,o=new BA(t);i>l]=c;return a},XA=new jA(288);for(YA=0;YA<144;++YA)XA[YA]=8;for(YA=144;YA<256;++YA)XA[YA]=9;for(YA=256;YA<280;++YA)XA[YA]=7;for(YA=280;YA<288;++YA)XA[YA]=8;var JA=new jA(32);for(YA=0;YA<32;++YA)JA[YA]=5;var ZA=QA(XA,9),KA=QA(JA,5),$A=function(e){for(var t=e[0],n=1;nt&&(t=e[n]);return t},ex=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},tx=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},nx=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],rx=function(e,t,n){var r=new Error(t||nx[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,rx),!n)throw r;return r},ix=function(e,t,n,r){var i=e.length;if(!i||t.f&&!t.l)return n||new jA(0);var o=!n,a=o||2!=t.i,s=t.i;o&&(n=new jA(3*i));var l,c=function(e){var t=n.length;if(e>t){var r=new jA(Math.max(2*t,e));r.set(n),n=r}},u=t.f||0,h=t.p||0,d=t.b||0,f=t.l,p=t.d,m=t.m,g=t.n,y=8*i;do{if(!f){u=ex(e,h,1);var v=ex(e,h+1,3);if(h+=3,!v){var b=e[(l=h,(R=4+((l+7)/8|0))-4)]|e[R-3]<<8,A=R+b;if(A>i){s&&rx(0);break}a&&c(d+b),n.set(e.subarray(R,A),d),t.b=d+=b,t.p=h=8*A,t.f=u;continue}if(1==v)f=ZA,p=KA,m=9,g=5;else if(2==v){var x=ex(e,h,31)+257,w=ex(e,h+10,15)+4,C=x+ex(e,h+5,31)+1;h+=14;for(var S=new jA(C),E=new jA(19),k=0;k>4)<16)S[k++]=R;else{var P=0,D=0;for(16==R?(D=3+ex(e,h,3),h+=2,P=S[k-1]):17==R?(D=3+ex(e,h,7),h+=3):18==R&&(D=11+ex(e,h,127),h+=7);D--;)S[k++]=P}}var j=S.subarray(0,x),B=S.subarray(x);m=$A(j),g=$A(B),f=QA(j,m),p=QA(B,g)}else rx(1);if(h>y){s&&rx(0);break}}a&&c(d+131072);for(var L=(1<>4;if((h+=15&P)>y){s&&rx(0);break}if(P||rx(2),_<256)n[d++]=_;else{if(256==_){N=h,f=null;break}var z=_-254;if(_>264){var V=FA[k=_-257];z=ex(e,h,(1<>4;if(U||rx(3),h+=15&U,B=qA[H],H>3&&(V=NA[H],B+=tx(e,h)&(1<y){s&&rx(0);break}a&&c(d+131072);var q=d+z;if(de.length)&&(n=e.length),new jA(e.subarray(t,n))}(n,0,d):n.subarray(0,d)},ox=new jA(0);function ax(e,t){var n,r,i=function(e){31==e[0]&&139==e[1]&&8==e[2]||rx(6,"invalid gzip data");var t=e[3],n=10;4&t&&(n+=2+(e[10]|e[11]<<8));for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(2&t)}(e);return i+8>e.length&&rx(6,"invalid gzip data"),ix(e.subarray(i,-8),{i:2},new jA((r=(n=e).length,(n[r-4]|n[r-3]<<8|n[r-2]<<16|n[r-1]<<24)>>>0)),t)}var sx="undefined"!=typeof TextDecoder&&new TextDecoder;try{sx.decode(ox,{stream:!0})}catch(e){}const lx={gzip_data:"gzip"};class cx extends Error{constructor(e){super(e),this.name="MRTError"}}const ux={0:"uint32",1:"uint32",2:"uint16",3:"uint8"},hx={uint32:1,uint16:2,uint8:4},dx={uint32:Uint32Array,uint16:Uint16Array,uint8:Uint8Array};let fx;class px{constructor(e=5){this.x=NaN,this.y=NaN,this.z=NaN,this.layers={},this._cacheSize=e}getLayer(e){const t=this.layers[e];if(!t)throw new cx(`Layer '${e}' not found`);return t}getHeaderLength(e){const t=new Uint8Array(e),n=new DataView(e);if(13!==t[0])throw new cx("File is not a valid MRT.");return n.getUint32(1,!0)}parseHeader(e){const t=new Uint8Array(e),n=this.getHeaderLength(e);if(t.length= ${n} but got buffer of length ${t.length}`);const r=function(e,t){return e.readFields(wA,{header_length:0,x:0,y:0,z:0,layers:[]},t)}(new fx(t.subarray(0,n)));if(!isNaN(this.x)&&(this.x!==r.x||this.y!==r.y||this.z!==r.z))throw new cx(`Invalid attempt to parse header ${r.z}/${r.x}/${r.y} for tile ${this.z}/${this.x}/${this.y}`);this.x=r.x,this.y=r.y,this.z=r.z;for(const e of r.layers)this.layers[e.name]=new mx(e,{cacheSize:this._cacheSize});return this}createDecodingTask(e){const t=[],n=this.getLayer(e.layerName);for(let r of e.blockIndices){const i=n.dataIndex[r],o=i.first_byte-e.firstByte,a=i.last_byte-e.firstByte;if(n._blocksInProgress.has(r))continue;const s={layerName:n.name,firstByte:o,lastByte:a,pixelFormat:n.pixelFormat,blockIndex:r,blockShape:[i.bands.length].concat(n.bandShape),buffer:n.buffer,codec:i.codec.codec,filters:i.filters.map((e=>e.filter))};n._blocksInProgress.add(r),t.push(s)}return new gx(t,(()=>{t.forEach((e=>n._blocksInProgress.delete(e.blockIndex)))}),((e,r)=>{if(t.forEach((e=>n._blocksInProgress.delete(e.blockIndex))),e)throw e;r.forEach((e=>{this.getLayer(e.layerName).processDecodedData(e)}))}))}}class mx{constructor({version:e,name:t,units:n,tilesize:r,pixel_format:i,buffer:o,data_index:a},s){if(this.version=e,1!==this.version)throw new cx(`Cannot parse raster layer encoded with MRT version ${e}`);this.name=t,this.units=n,this.tileSize=r,this.buffer=o,this.pixelFormat=ux[i],this.dataIndex=a,this.bandShape=[r+2*o,r+2*o,hx[this.pixelFormat]];const l=s?s.cacheSize:5;this._decodedBlocks=new RA(l),this._blocksInProgress=new Set}get dimension(){return hx[this.pixelFormat]}get cacheSize(){return this._decodedBlocks.capacity}getBandList(){return this.dataIndex.map((({bands:e})=>e)).flat()}processDecodedData(e){const t=e.blockIndex.toString();this._decodedBlocks.get(t)||this._decodedBlocks.put(t,e.data)}getBlockForBand(e){let t=0;switch(typeof e){case"string":for(const[n,r]of this.dataIndex.entries()){for(const[i,o]of r.bands.entries())if(o===e)return{bandIndex:t+i,blockIndex:n,blockBandIndex:i};t+=r.bands.length}break;case"number":for(const[n,r]of this.dataIndex.entries()){if(e>=t&&ethis.cacheSize)throw new cx(`Number of blocks to decode (${i.size}) exceeds cache size (${this.cacheSize}).`);return{layerName:this.name,firstByte:t,lastByte:n,blockIndices:r}}hasBand(e){const{blockIndex:t}=this.getBlockForBand(e);return t>=0}hasDataForBand(e){const{blockIndex:t}=this.getBlockForBand(e);return t>=0&&!!this._decodedBlocks.get(t.toString())}getBandView(e){const{blockIndex:t,blockBandIndex:n}=this.getBlockForBand(e),r=this._decodedBlocks.get(t.toString());if(!r)throw new cx(`Data for band ${JSON.stringify(e)} of layer "${this.name}" not decoded.`);const i=this.dataIndex[t],o=this.bandShape.reduce(((e,t)=>e*t),1),a=n*o,s=r.subarray(a,a+o);return{data:s,bytes:new Uint8Array(s.buffer).subarray(s.byteOffset,s.byteOffset+s.byteLength),tileSize:this.tileSize,buffer:this.buffer,pixelFormat:this.pixelFormat,dimension:this.dimension,offset:0!==i.offset?i.offset:i.deprecated_offset,scale:0!==i.scale?i.scale:i.deprecated_scale}}}px.setPbf=function(e){fx=e};class gx{constructor(e,t,n){this.tasks=e,this._onCancel=t,this._onComplete=n,this._finalized=!1}cancel(){this._finalized||(this._onCancel(),this._finalized=!0)}complete(e,t){this._finalized||(this._onComplete(e,t),this._finalized=!0)}}px.performDecoding=function(e,t){const n=new Uint8Array(e);return Promise.all(t.tasks.map((e=>{const{layerName:t,firstByte:r,lastByte:i,pixelFormat:o,blockShape:a,blockIndex:s,filters:l,codec:c}=e,u=n.subarray(r,i+1),h=a[0]*a[1]*a[2],d=new Uint32Array(h);let f;if("gzip_data"!==c)throw new cx(`Unhandled codec: ${c}`);return f=function(e,t){if(!globalThis.DecompressionStream&&"gzip_data"===t)return Promise.resolve(ax(e));const n=lx[t];if(!n)throw new Error(`Unhandled codec: ${t}`);const r=new globalThis.DecompressionStream(n);return new Response(new Blob([e]).stream().pipeThrough(r)).arrayBuffer().then((e=>new Uint8Array(e)))}(u,c).then((e=>(function(e,t){e.readFields(IA,t)}(new fx(e),d),new(0,dx[o])(d.buffer)))),f.then((e=>{for(let t=l.length-1;t>=0;t--)switch(l[t]){case"delta_filter":MA(e,a);break;case"zigzag_filter":PA(e);break;case"bitshuffle_filter":DA(e,o);break;default:throw new cx(`Unhandled filter "${l[t]}"`)}return{layerName:t,blockIndex:s,data:e}})).catch((e=>{throw e}))})))},px.setPbf(Zy);class yx extends xA{constructor(e,t,n,r,i){super(e,t,n,r,i),this._workQueue=[],this._fetchQueue=[],this._isHeaderLoaded=!1}setTexture(e,t){const n=t.context,r=n.gl;this.texture=this.texture||t.getTileTexture(e.width),this.texture&&this.texture instanceof Kb?this.texture.update(e,{useMipmap:!1,premultiply:!1}):this.texture=new Kb(n,e,r.RGBA,{useMipmap:!1,premultiply:!1})}flushQueues(){for(;this._workQueue.length;)this._workQueue.pop()();for(;this._fetchQueue.length;)this._fetchQueue.pop()()}fetchHeader(e=16384,t){const n=this._mrt=new px(30),r=Object.assign({},this.requestParams,{headers:{Range:"bytes=0-"+(e-1)}});return this.entireBuffer=null,this.request=ti(r,((r,i,o,a)=>{if(r)t(r);else try{const r=n.getHeaderLength(i);if(r>e)return void(this.request=this.fetchHeader(r,t));n.parseHeader(i),this._isHeaderLoaded=!0;let s=0;for(const e of Object.values(n.layers))s=Math.max(s,e.dataIndex[e.dataIndex.length-1].last_byte);i.byteLength>=s&&(this.entireBuffer=i),t(null,this.entireBuffer||i,o,a)}catch(e){t(e)}})),this.request}fetchBand(e,t,n){const r=this._mrt;if(!this._isHeaderLoaded||!r)return void n(new Error("Tile header is not ready"));const i=this.actor;if(!i)return void n(new Error("Can't fetch tile band without an actor"));let o;const a=(r,i)=>{o.complete(r,i),r?n(r):(this.updateTextureDescriptor(e,t),n(null,this.textureDescriptor&&this.textureDescriptor.img))},s=(e,t)=>{if(e)return n(e);const r={buffer:t,task:o},s=i.send("decodeRasterArray",r,a,void 0,!0);this._workQueue.push((()=>{s&&s.cancel(),o.cancel()}))},l=r.getLayer(e);if(!l)return void n(new Error(`Unknown sourceLayer "${e}"`));if(l.hasDataForBand(t))return this.updateTextureDescriptor(e,t),void n(null,this.textureDescriptor?this.textureDescriptor.img:null);const c=l.getDataRange([t]);if(o=r.createDecodingTask(c),!o||o.tasks.length)if(this.flushQueues(),this.entireBuffer)s(null,this.entireBuffer.slice(c.firstByte,c.lastByte+1));else{const e=Object.assign({},this.requestParams,{headers:{Range:`bytes=${c.firstByte}-${c.lastByte}`}}),t=ti(e,s);this._fetchQueue.push((()=>{t.cancel(),o.cancel()}))}else n(null)}updateNeeded(e,t){return(!this.textureDescriptor||this.textureDescriptor.band!==t||this.textureDescriptor.layer!==e)&&"errored"!==this.state}updateTextureDescriptor(e,t){if(!this._mrt)return;const n=this._mrt.getLayer(e);if(!n||!n.hasBand(t)||!n.hasDataForBand(t))return;const{bytes:r,tileSize:i,buffer:o,offset:a,scale:s}=n.getBandView(t),l=i+2*o,c={data:r,width:l,height:l},u=this.texture;u&&u instanceof Kb&&u.update(c,{useMipmap:!1,premultiply:!1}),this.textureDescriptor={layer:e,band:t,img:c,buffer:o,offset:a,tileSize:i,format:n.pixelFormat,mix:[s,256*s,65536*s,16777216*s]}}}class vx{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(const e in this.data)for(const t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,n){const r=e.wrapped().key;void 0===this.data[r]&&(this.data[r]=[]);const i={value:t,timeout:void 0};if(void 0!==n&&(i.timeout=setTimeout((()=>{this.remove(e,i)}),n)),this.data[r].push(i),this.order.push(r),this.order.length>this.max){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){const t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){const t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;const n=e.wrapped().key,r=void 0===t?0:this.data[n].indexOf(t),i=this.data[n][r];return this.data[n].splice(r,1),i.timeout&&clearTimeout(i.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(i.value),this.order.splice(this.order.indexOf(n),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}filter(e){const t=[];for(const n in this.data)for(const r of this.data[n])e(r.value)||t.push(r);for(const e of t)this.remove(e.value.tileID,e)}}class bx extends Fi{constructor(e,t,n){super(),this.id=e,this._onlySymbols=n,t.on("data",(e=>{"source"===e.dataType&&"metadata"===e.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===e.dataType&&"content"===e.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))})),t.on("error",(()=>{this._sourceErrored=!0})),this._source=t,this._tiles={},this._cache=new vx(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=t.minTileCacheSize,this._maxTileCacheSize=t.maxTileCacheSize,this._loadedParentTiles={},this.castsShadows=!1,this.tileCoverLift=0,this._coveredTiles={},this._shadowCasterTiles={},this._state=new ev,this._isRaster="raster"===this._source.type||"raster-dem"===this._source.type||"raster-array"===this._source.type||"custom"===this._source.type&&"raster"===this._source._dataType}onAdd(e){this.map=e,this._minTileCacheSize=void 0===this._minTileCacheSize&&e?e._minTileCacheSize:this._minTileCacheSize,this._maxTileCacheSize=void 0===this._maxTileCacheSize&&e?e._maxTileCacheSize:this._maxTileCacheSize}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(const e in this._tiles){const t=this._tiles[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(e,t){return e.isSymbolTile=this._onlySymbols,e.isExtraShadowCaster=this._shadowCasterTiles[e.tileID.key],this._source.loadTile(e,t)}_unloadTile(e){if(this._source.unloadTile)return this._source.unloadTile(e)}_abortTile(e){if(this._source.abortTile)return this._source.abortTile(e)}serialize(){return this._source.serialize()}prepare(e){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const t in this._tiles){const n=this._tiles[t];n.upload(e),n.prepare(this.map.style.imageManager,this.map?this.map.painter:null,this._source.scope)}}getIds(){return Jn(this._tiles).map((e=>e.tileID)).sort(Ax).map((e=>e.key))}getRenderableIds(e,t){const n=[];for(const r in this._tiles)this._isIdRenderable(+r,e,t)&&n.push(this._tiles[r]);return e?n.sort(((e,t)=>{const n=e.tileID,r=t.tileID,i=new Ln(n.canonical.x,n.canonical.y)._rotate(this.transform.angle),o=new Ln(r.canonical.x,r.canonical.y)._rotate(this.transform.angle);return n.overscaledZ-r.overscaledZ||o.y-i.y||o.x-i.x})).map((e=>e.tileID.key)):n.map((e=>e.tileID)).sort(Ax).map((e=>e.key))}hasRenderableParent(e){const t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)}_isIdRenderable(e,t,n){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())&&(n||!this._shadowCasterTiles[e])}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const e in this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(+e,"reloading")}}_reloadTile(e,t){const n=this._tiles[e];n&&("loading"!==n.state&&(n.state=t),this._loadTile(n,this._tileLoaded.bind(this,n,e,t)))}_tileLoaded(e,t,n,r){if(r)if(e.state="errored",404!==r.status)this._source.fire(new ji(r,{tile:e}));else{if(this._source.fire(new Di("data",{dataType:"source",sourceDataType:"error",sourceId:this._source.id,tile:e})),!(e.tileID.key in this._loadedParentTiles))return;if("raster-dem"===this._source.type&&this.usedForTerrain&&this.map.painter.terrain){const e=this.map.painter.terrain;this.update(this.transform,e.getScaledDemTileSize(),!0),e.resetTileLookupCache(this.id)}else this.update(this.transform)}else e.timeAdded=Or.now(),"expired"===n&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(t,e),"raster-dem"===this._source.type&&e.dem&&this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new Di("data",{dataType:"source",tile:e,coord:e.tileID,sourceCacheId:this.id}))}_backfillDEM(e){const t=this.getRenderableIds();for(let r=0;r1||(Math.abs(n)>1&&(1===Math.abs(n+i)?n+=i:1===Math.abs(n-i)&&(n-=i)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,n,r),e.neighboringTiles&&e.neighboringTiles[o]&&(e.neighboringTiles[o].backfilled=!0)))}}getTile(e){return this.getTileByID(e.key)}getTileByID(e){return this._tiles[e]}_retainLoadedChildren(e,t,n,r){for(const i in this._tiles){let o=this._tiles[i];if(r[i]||!o.hasData()||o.tileID.overscaledZ<=t||o.tileID.overscaledZ>n)continue;let a=o.tileID;for(;o&&o.tileID.overscaledZ>t+1;){const e=o.tileID.scaledTo(o.tileID.overscaledZ-1);o=this._tiles[e.key],o&&o.hasData()&&(a=e)}let s=a;for(;s.overscaledZ>t;)if(s=s.scaledTo(s.overscaledZ-1),e[s.key]){r[a.key]=a;break}}}findLoadedParent(e,t){if(e.key in this._loadedParentTiles){const n=this._loadedParentTiles[e.key];return n&&n.tileID.overscaledZ>=t?n:null}for(let n=e.overscaledZ-1;n>=t;n--){const t=e.scaledTo(n),r=this._getLoadedTile(t);if(r)return r}}_getLoadedTile(e){const t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(this._source.reparseOverscaled?e.wrapped().key:e.canonical.key)}updateCacheSize(e,t){t=t||this._source.tileSize;const n=(Math.ceil(e.width/t)+1)*(Math.ceil(e.height/t)+1),r=Math.floor(5*n),i="number"==typeof this._minTileCacheSize?Math.max(this._minTileCacheSize,r):r,o="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,i):i;this._cache.setMaxSize(o)}handleWrapJump(e){const t=(e-(void 0===this._prevLng?e:this._prevLng))/360,n=Math.round(t);if(this._prevLng=e,n){const e={};for(const t in this._tiles){const r=this._tiles[t];r.tileID=r.tileID.unwrapTo(r.tileID.wrap+n),e[r.tileID.key]=r}this._tiles=e;for(const e in this._timers)clearTimeout(this._timers[e]),delete this._timers[e];for(const e in this._tiles){const t=this._tiles[e];this._setTileReloadTimer(+e,t)}}}update(e,t,n,r){if(this.transform=e,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage)return;if(this.usedForTerrain&&!n)return;this.updateCacheSize(e,t),"globe"!==this.transform.projection.name&&this.handleWrapJump(this.transform.center.lng),this._shadowCasterTiles={},this._coveredTiles={};const i="batched-model"===this._source.type;let o;if(this.used||this.usedForTerrain){if(this._source.tileID)o=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((e=>new yd(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)));else if(0!==this.tileCoverLift){const r=e.clone();r.tileCoverLift=this.tileCoverLift,o=r.coveringTiles({tileSize:t||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!n,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain,calculateQuadrantVisibility:i}),this._source.minzoom<=1&&"globe"===e.projection.name&&(o.push(new yd(1,0,1,0,0)),o.push(new yd(1,0,1,1,0)),o.push(new yd(1,0,1,0,1)),o.push(new yd(1,0,1,1,1)))}else if(o=e.coveringTiles({tileSize:t||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!n,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain,calculateQuadrantVisibility:i}),this._source.hasTile){const e=this._source.hasTile.bind(this._source);o=o.filter((t=>e(t)))}}else o=[];if(o.length>0&&this.castsShadows&&r&&"globe"!==this.transform.projection.name&&!this.usedForTerrain&&!xx(this._source.type)){const a=e.coveringZoomLevel({tileSize:t||this._source.tileSize,roundZoom:this._source.roundZoom&&!n}),s=Math.min(a,this._source.maxzoom);if(i){const t=e.extendTileCover(o,s);for(const e of t)o.push(e)}else{const t=e.extendTileCover(o,s,r);for(const e of t)this._shadowCasterTiles[e.key]=!0,o.push(e)}}const a=this._updateRetainedTiles(o);if(xx(this._source.type)&&0!==o.length){const e={},t={},n=Object.keys(a);for(const r of n){const n=a[r],i=this._tiles[r];if(!i||i.fadeEndTime&&i.fadeEndTime<=Or.now())continue;const o=this.findLoadedParent(n,Math.max(n.overscaledZ-bx.maxOverzooming,this._source.minzoom));o&&(this._addTile(o.tileID),e[o.tileID.key]=o.tileID),t[r]=n}const r=o[o.length-1].overscaledZ;for(const e in this._tiles){const n=this._tiles[e];if(a[e]||!n.hasData())continue;let i=n.tileID;for(;i.overscaledZ>r;){i=i.scaledTo(i.overscaledZ-1);const r=this._tiles[i.key];if(r&&r.hasData()&&t[i.key]){a[e]=n.tileID;break}}}for(const t in e)a[t]||(this._coveredTiles[t]=!0,a[t]=e[t])}for(const e in a)this._tiles[e].clearFadeHold();const s=function(e,t){const n=[];for(const r in e)r in t||n.push(r);return n}(this._tiles,a);for(const e of s){const t=this._tiles[e];t.hasSymbolBuckets&&!t.holdingForFade()?t.setHoldDuration(this.map._fadeDuration):t.hasSymbolBuckets&&!t.symbolFadeFinished()||this._removeTile(+e)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(+e)}_updateRetainedTiles(e){const t={};if(0===e.length)return t;const n={},r=e.reduce(((e,t)=>Math.min(e,t.overscaledZ)),1/0),i=e[0].overscaledZ,o=Math.max(i-bx.maxOverzooming,this._source.minzoom),a=Math.max(i+bx.maxUnderzooming,this._source.minzoom),s={};for(const n of e){const e=this._addTile(n);t[n.key]=n,e.hasData()||r=this._source.maxzoom){const e=r.children(this._source.maxzoom)[0],n=this.getTile(e);if(n&&n.hasData()){t[e.key]=e;continue}}else{const e=r.children(this._source.maxzoom);if(t[e[0].key]&&t[e[1].key]&&t[e[2].key]&&t[e[3].key])continue}let i=e.wasRequested();for(let a=r.overscaledZ-1;a>=o;--a){const o=r.scaledTo(a);if(n[o.key])break;if(n[o.key]=!0,e=this.getTile(o),!e&&i&&(e=this._addTile(o)),e&&(t[o.key]=o,i=e.wasRequested(),e.hasData()))break}}return t}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const e in this._tiles){const t=[];let n,r=this._tiles[e].tileID;for(;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){n=this._loadedParentTiles[r.key];break}t.push(r.key);const e=r.scaledTo(r.overscaledZ-1);if(n=this._getLoadedTile(e),n)break;r=e}for(const e of t)this._loadedParentTiles[e]=n}}_addTile(e){let t=this._tiles[e.key];const n=!!this._shadowCasterTiles[e.key];if(t)return!0!==t.isExtraShadowCaster||n||this._reloadTile(e.key,"reloading"),t;t=this._cache.getAndRemove(e),t&&(this._setTileReloadTimer(e.key,t),t.tileID=e,this._state.initializeTileState(t,this.map?this.map.painter:null),this._cacheTimers[e.key]&&(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,t)));const r=Boolean(t);if(!r){const n=this.map?this.map.painter:null,r=this._source.tileSize*e.overscaleFactor();t="raster-array"===this._source.type?new yx(e,r,this.transform.tileZoom,n,this._isRaster):new xA(e,r,this.transform.tileZoom,n,this._isRaster),this._loadTile(t,this._tileLoaded.bind(this,t,e.key,t.state))}return t?(t.uses++,this._tiles[e.key]=t,r||this._source.fire(new Di("dataloading",{tile:t,coord:t.tileID,dataType:"source"})),t):null}_setTileReloadTimer(e,t){e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);const n=t.getExpiryTimeout();n&&(this._timers[e]=setTimeout((()=>{this._reloadTile(e,"expired"),delete this._timers[e]}),n))}_removeTile(e){const t=this._tiles[e];t&&(t.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),t.uses>0||(t.hasData()&&"reloading"!==t.state||"empty"===t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const e in this._tiles)this._removeTile(+e);this._source._clear&&this._source._clear(),this._cache.reset(),this.map&&this.usedForTerrain&&this.map.painter.terrain&&this.map.painter.terrain.resetTileLookupCache(this.id)}tilesIn(e,t,n){const r=[],i=this.transform;if(!i)return r;const o="globe"===i.projection.name,a=xd(i.center.lng);for(const s in this._tiles){const l=this._tiles[s];if(n&&l.clearQueryDebugViz(),l.holdingForFade())continue;let c;if(o){const e=l.tileID.canonical;if(0===e.z){const t=[Math.abs(Yn(a,...wx(e,-1))-a),Math.abs(Yn(a,...wx(e,1))-a)];c=[0,2*t.indexOf(Math.min(...t))-1]}else{const t=[Math.abs(Yn(a,...wx(e,-1))-a),Math.abs(Yn(a,...wx(e,0))-a),Math.abs(Yn(a,...wx(e,1))-a)];c=[t.indexOf(Math.min(...t))-1]}}else c=[0];for(const n of c){const o=e.containsTile(l,i,t,n);o&&r.push(o)}}return r}getShadowCasterCoordinates(){return this._getRenderableCoordinates(!1,!0)}getVisibleCoordinates(e){return this._getRenderableCoordinates(e)}_getRenderableCoordinates(e,t){const n=this.getRenderableIds(e,t).map((e=>this._tiles[e].tileID)),r="globe"===this.transform.projection.name;for(const e of n)e.projMatrix=this.transform.calculateProjMatrix(e.toUnwrapped()),e.expandedProjMatrix=r?this.transform.calculateProjMatrix(e.toUnwrapped(),!1,!0):e.projMatrix;return n}sortCoordinatesByDistance(e){const t=e.slice(),n=this.transform._camera.position,r=this.transform._camera.forward(),i={};for(const e of t){const t=1/(1<i[e.key]-i[t.key])),t}hasTransition(){if(this._source.hasTransition())return!0;if(xx(this._source.type))for(const e in this._tiles){const t=this._tiles[e];if(void 0!==t.fadeEndTime&&t.fadeEndTime>=Or.now())return!0}return!1}setFeatureState(e,t,n){e=e||"_geojsonTileLayer",this._state.updateState(e,t,n)}removeFeatureState(e,t,n){e=e||"_geojsonTileLayer",this._state.removeFeatureState(e,t,n)}getFeatureState(e,t){return e=e||"_geojsonTileLayer",this._state.getState(e,t)}setDependencies(e,t,n){const r=this._tiles[e];r&&r.setDependencies(t,n)}reloadTilesForDependencies(e,t){for(const n in this._tiles)this._tiles[n].hasDependency(e,t)&&this._reloadTile(+n,"reloading");this._cache.filter((n=>!n.hasDependency(e,t)))}_preloadTiles(e,t){if(!this._sourceLoaded){const n=()=>{this._sourceLoaded&&(this._source.off("data",n),this._preloadTiles(e,t))};return void this._source.on("data",n)}const n=new Map,r=Array.isArray(e)?e:[e],i=this.map.painter.terrain,o=this.usedForTerrain&&i?i.getScaledDemTileSize():this._source.tileSize;for(const e of r){const t=e.coveringTiles({tileSize:o,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(const e of t)n.set(e.key,e);this.usedForTerrain&&e.updateElevation(!1)}Xn(Array.from(n.values()),((e,t)=>{const n=new xA(e,this._source.tileSize*e.overscaleFactor(),this.transform.tileZoom,this.map.painter,this._isRaster);this._loadTile(n,(e=>{"raster-dem"===this._source.type&&n.dem&&this._backfillDEM(n),t(e,n)}))}),t)}}function Ax(e,t){const n=Math.abs(2*e.wrap)-+(e.wrap<0),r=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||r-n||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function xx(e){return"raster"===e||"image"===e||"video"===e||"custom"===e}function wx(e,t){const n=1<Cx||(Cx={layout:xy||(xy=new iu({"line-cap":new nu(ou.layout_line["line-cap"]),"line-join":new nu(ou.layout_line["line-join"]),"line-miter-limit":new tu(ou.layout_line["line-miter-limit"]),"line-round-limit":new tu(ou.layout_line["line-round-limit"]),"line-sort-key":new nu(ou.layout_line["line-sort-key"]),"line-z-offset":new nu(ou.layout_line["line-z-offset"]),visibility:new tu(ou.layout_line.visibility)})),paint:wy||(wy=new iu({"line-opacity":new nu(ou.paint_line["line-opacity"]),"line-color":new nu(ou.paint_line["line-color"]),"line-translate":new tu(ou.paint_line["line-translate"]),"line-translate-anchor":new tu(ou.paint_line["line-translate-anchor"]),"line-width":new nu(ou.paint_line["line-width"]),"line-gap-width":new nu(ou.paint_line["line-gap-width"]),"line-offset":new nu(ou.paint_line["line-offset"]),"line-blur":new nu(ou.paint_line["line-blur"]),"line-dasharray":new nu(ou.paint_line["line-dasharray"]),"line-pattern":new nu(ou.paint_line["line-pattern"]),"line-gradient":new ru(ou.paint_line["line-gradient"]),"line-trim-offset":new tu(ou.paint_line["line-trim-offset"]),"line-trim-fade-range":new tu(ou.paint_line["line-trim-fade-range"]),"line-trim-color":new tu(ou.paint_line["line-trim-color"]),"line-emissive-strength":new tu(ou.paint_line["line-emissive-strength"]),"line-border-width":new nu(ou.paint_line["line-border-width"]),"line-border-color":new nu(ou.paint_line["line-border-color"]),"line-occlusion-opacity":new tu(ou.paint_line["line-occlusion-opacity"])}))},Cx);class Ex extends nu{possiblyEvaluate(e,t){return t=new Yc(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,n,r){return t=Zn({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,n,r)}}let kx;function Tx(e,t){return t>0?t+2*e:e}let Ix;let Ox;class Rx{constructor(e){this.type=e.property.overrides?e.property.overrides.runtimeType:Ki,this.defaultValue=e}evaluate(e){if(e.formattedSection){const t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}let Mx;Cl(Rx,"FormatSectionOverride",{omit:["defaultValue"]});const Px=()=>Mx||(Mx={layout:Ix||(Ix=new iu({"symbol-placement":new tu(ou.layout_symbol["symbol-placement"]),"symbol-spacing":new tu(ou.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new tu(ou.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new nu(ou.layout_symbol["symbol-sort-key"]),"symbol-z-order":new tu(ou.layout_symbol["symbol-z-order"]),"symbol-z-elevate":new tu(ou.layout_symbol["symbol-z-elevate"]),"icon-allow-overlap":new tu(ou.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new tu(ou.layout_symbol["icon-ignore-placement"]),"icon-optional":new tu(ou.layout_symbol["icon-optional"]),"icon-rotation-alignment":new tu(ou.layout_symbol["icon-rotation-alignment"]),"icon-size":new nu(ou.layout_symbol["icon-size"]),"icon-text-fit":new nu(ou.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new nu(ou.layout_symbol["icon-text-fit-padding"]),"icon-image":new nu(ou.layout_symbol["icon-image"]),"icon-rotate":new nu(ou.layout_symbol["icon-rotate"]),"icon-padding":new tu(ou.layout_symbol["icon-padding"]),"icon-keep-upright":new tu(ou.layout_symbol["icon-keep-upright"]),"icon-offset":new nu(ou.layout_symbol["icon-offset"]),"icon-anchor":new nu(ou.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new tu(ou.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new tu(ou.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new tu(ou.layout_symbol["text-rotation-alignment"]),"text-field":new nu(ou.layout_symbol["text-field"]),"text-font":new nu(ou.layout_symbol["text-font"]),"text-size":new nu(ou.layout_symbol["text-size"]),"text-max-width":new nu(ou.layout_symbol["text-max-width"]),"text-line-height":new nu(ou.layout_symbol["text-line-height"]),"text-letter-spacing":new nu(ou.layout_symbol["text-letter-spacing"]),"text-justify":new nu(ou.layout_symbol["text-justify"]),"text-radial-offset":new nu(ou.layout_symbol["text-radial-offset"]),"text-variable-anchor":new tu(ou.layout_symbol["text-variable-anchor"]),"text-anchor":new nu(ou.layout_symbol["text-anchor"]),"text-max-angle":new tu(ou.layout_symbol["text-max-angle"]),"text-writing-mode":new tu(ou.layout_symbol["text-writing-mode"]),"text-rotate":new nu(ou.layout_symbol["text-rotate"]),"text-padding":new tu(ou.layout_symbol["text-padding"]),"text-keep-upright":new tu(ou.layout_symbol["text-keep-upright"]),"text-transform":new nu(ou.layout_symbol["text-transform"]),"text-offset":new nu(ou.layout_symbol["text-offset"]),"text-allow-overlap":new tu(ou.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new tu(ou.layout_symbol["text-ignore-placement"]),"text-optional":new tu(ou.layout_symbol["text-optional"]),visibility:new tu(ou.layout_symbol.visibility)})),paint:Ox||(Ox=new iu({"icon-opacity":new nu(ou.paint_symbol["icon-opacity"]),"icon-occlusion-opacity":new nu(ou.paint_symbol["icon-occlusion-opacity"]),"icon-emissive-strength":new nu(ou.paint_symbol["icon-emissive-strength"]),"text-emissive-strength":new nu(ou.paint_symbol["text-emissive-strength"]),"icon-color":new nu(ou.paint_symbol["icon-color"]),"icon-halo-color":new nu(ou.paint_symbol["icon-halo-color"]),"icon-halo-width":new nu(ou.paint_symbol["icon-halo-width"]),"icon-halo-blur":new nu(ou.paint_symbol["icon-halo-blur"]),"icon-translate":new tu(ou.paint_symbol["icon-translate"]),"icon-translate-anchor":new tu(ou.paint_symbol["icon-translate-anchor"]),"icon-image-cross-fade":new nu(ou.paint_symbol["icon-image-cross-fade"]),"text-opacity":new nu(ou.paint_symbol["text-opacity"]),"text-occlusion-opacity":new nu(ou.paint_symbol["text-occlusion-opacity"]),"text-color":new nu(ou.paint_symbol["text-color"],{runtimeType:no,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new nu(ou.paint_symbol["text-halo-color"]),"text-halo-width":new nu(ou.paint_symbol["text-halo-width"]),"text-halo-blur":new nu(ou.paint_symbol["text-halo-blur"]),"text-translate":new tu(ou.paint_symbol["text-translate"]),"text-translate-anchor":new tu(ou.paint_symbol["text-translate-anchor"]),"icon-color-saturation":new tu(ou.paint_symbol["icon-color-saturation"]),"icon-color-contrast":new tu(ou.paint_symbol["icon-color-contrast"]),"icon-color-brightness-min":new tu(ou.paint_symbol["icon-color-brightness-min"]),"icon-color-brightness-max":new tu(ou.paint_symbol["icon-color-brightness-max"])}))},Mx);class Dx extends Eu{constructor(t,n,r,i){super(t,Px(),n,r,i),this._colorAdjustmentMatrix=e.ae.identity([]),this.hasInitialOcclusionOpacityProperties=void 0!==t.paint&&("icon-occlusion-opacity"in t.paint||"text-occlusion-opacity"in t.paint)}recalculate(e,t){super.recalculate(e,t),"auto"===this.layout.get("icon-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"));const n=this.layout.get("text-writing-mode");if(n){const e=[];for(const t of n)e.indexOf(t)<0&&e.push(t);this.layout._values["text-writing-mode"]=e}else"point"===this.layout.get("symbol-placement")?this.layout._values["text-writing-mode"]=["horizontal"]:this.layout._values["text-writing-mode"]=["horizontal","vertical"];this._setPaintOverrides()}getColorAdjustmentMatrix(t,n,r,i){return this._saturation===t&&this._contrast===n&&this._brightnessMin===r&&this._brightnessMax===i||(this._colorAdjustmentMatrix=function(t,n,r,i){t=Tr(t),n=kr(n);const o=e.ae.create(),a=t/3,s=1-2*a,l=[s,a,a,0,a,s,a,0,a,a,s,0,0,0,0,1],c=.5-.5*n,u=[n,0,0,0,0,n,0,0,0,0,n,0,c,c,c,1],h=i-r,d=[h,0,0,0,0,h,0,0,0,0,h,0,r,r,r,1];return e.ae.multiply(o,d,u),e.ae.multiply(o,o,l),o}(t,n,r,i),this._saturation=t,this._contrast=n,this._brightnessMin=r,this._brightnessMax=i),this._colorAdjustmentMatrix}getValueAndResolveTokens(e,t,n,r){const i=this.layout.get(e).evaluate(t,{},n,r),o=this._unevaluatedLayout._values[e];return o.isDataDriven()||hl(o.value)||!i?i:function(e,t){return t.replace(/{([^{}]+)}/g,((t,n)=>n in e?String(e[n]):""))}(t.properties,i)}createBucket(e){return new Zb(e)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const e of Px().paint.overridableProperties){if(!Dx.hasPaintOverride(this.layout,e))continue;const t=this.paint.get(e),n=new Rx(t),r=new ul(n,t.property.specification,this.scope,this.options);let i=null;i="constant"===t.value.kind||"source"===t.value.kind?new fl("source",r):new pl("composite",r,t.value.zoomStops,t.value._interpolationType),this.paint._values[e]=new $c(t.property,i,t.parameters)}}_handleOverridablePaintPropertyUpdate(e,t,n){return!(!this.layout||t.isDataDriven()||n.isDataDriven())&&Dx.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,t){const n=e.get("text-field"),r=Px().paint.properties[t];let i=!1;const o=e=>{for(const t of e)if(r.overrides&&r.overrides.hasOverride(t))return void(i=!0)};if("constant"===n.value.kind&&n.value.value instanceof yo)o(n.value.value.sections);else if("source"===n.value.kind){const e=t=>{if(!i)if(t instanceof Co&&xo(t.value)===ao){const e=t.value;o(e.sections)}else t instanceof To?o(t.sections):t.eachChild(e)},t=n.value;t._styleExpression&&e(t._styleExpression.expression)}return i}getProgramIds(){const e=0!==this.paint.get("icon-opacity").constantOr(1),t=0!==this.paint.get("text-opacity").constantOr(1),n=[];return e&&n.push("symbolIcon"),t&&n.push("symbolSDF"),n}getDefaultProgramParams(e,t,n){return{config:new Xh(this,{zoom:t,lut:n}),overrideFog:!1}}}let jx;let Bx;let Lx;let Fx;function Nx(t,n,r,i,o,a,s,l){const c=[t,n,1,r,i,1,o,a,1],u=[s,l,1],h=e.bE.adjoint([],c),[d,f,p]=e.$.transformMat3(u,u,h);return e.bE.multiply(c,c,[d,0,0,0,f,0,0,0,p])}function _x(t,n,r,i,o,a,s,l){const c=function(t,n,r,i,o,a,s,l){const c=Nx(0,0,1,0,1,1,0,1),u=Nx(t,n,r,i,o,a,s,l),h=e.bE.adjoint([],c);return e.bE.multiply(u,u,h)}(t,n,r,i,o,a,s,l);return[c[2]/c[8]/pa,c[5]/c[8]/pa]}function zx(e){return[e[0],Math.min(Math.max(e[1],-85.051129),Td)]}class Vx extends Fi{constructor(e,t,n,r){super(),this.id=e,this.dispatcher=n,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.onNorthPole=!1,this.onSouthPole=!1,this.setEventedParent(r),this.options=t,this._dirty=!1}load(e,t){if(this._loaded=t||!1,this.fire(new Di("dataloading",{dataType:"source"})),this.url=this.options.url,!this.url)return e&&(this.coordinates=e),this._loaded=!0,void this._finishLoading();this._imageRequest=ai(this.map._requestManager.transformRequest(this.url,Jr.Image),((t,n)=>{this._imageRequest=null,this._loaded=!0,t?this.fire(new ji(t)):n&&(n instanceof HTMLImageElement?this.image=Or.getImageData(n):this.image=n,this._dirty=!0,this.width=this.image.width,this.height=this.image.height,e&&(this.coordinates=e),this._finishLoading())}))}loaded(){return this._loaded}updateImage(e){return e.url?(this._imageRequest&&e.url!==this.options.url&&(this._imageRequest.cancel(),this._imageRequest=null),this.options.url=e.url,this.load(e.coordinates,this._loaded),this):this}setTexture(e){if(!(e.handle instanceof WebGLTexture))throw new Error("The provided handle is not a WebGLTexture instance");const t=this.map.painter.context;return this.texture=new $b(t,e.handle),this.width=e.dimensions[0],this.height=e.dimensions[1],this._dirty=!1,this._loaded=!0,this._finishLoading(),this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new Di("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(e){this._imageRequest&&(this._imageRequest.cancel(),this._imageRequest=null),!this.texture||this.texture instanceof $b||this.texture.destroy(),this.boundsBuffer&&(this.boundsBuffer.destroy(),this.elevatedGlobeVertexBuffer&&this.elevatedGlobeVertexBuffer.destroy(),this.elevatedGlobeIndexBuffer&&this.elevatedGlobeIndexBuffer.destroy())}setCoordinates(e){if(this.coordinates=e,this._boundsArray=void 0,this._unsupportedCoords=!1,!e.length)return this;this.onNorthPole=!1,this.onSouthPole=!1;let t=e[0][1],n=e[0][1];for(const r of e)r[1]>n&&(n=r[1]),r[1]Td?this.onNorthPole=!0:r<-85.051129&&(this.onSouthPole=!0),!this.onNorthPole&&!this.onSouthPole){const t=e.map(Pd.fromLngLat);this.tileID=function(e){let t=1/0,n=1/0,r=-1/0,i=-1/0;for(const o of e)t=Math.min(t,o.x),n=Math.min(n,o.y),r=Math.max(r,o.x),i=Math.max(i,o.y);const o=r-t,a=i-n,s=Math.max(o,a),l=Math.max(0,Math.floor(-Math.log(s)/Math.LN2)),c=Math.pow(2,l);let u=Math.floor((t+r)/2*c);return u>1&&(u-=1),new md(l,u,Math.floor((n+i)/2*c))}(t),this.minzoom=this.maxzoom=this.tileID.z}return this.fire(new Di("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){this._boundsArray=void 0,this._unsupportedCoords=!1}_prepareData(t){for(const e in this.tiles){const t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture)}if(this._boundsArray||this.onNorthPole||this.onSouthPole||this._unsupportedCoords)return;const n=bb(new md(0,0,0),this.map.transform.projection),r=[n.projection.project(this.coordinates[0][0],this.coordinates[0][1]),n.projection.project(this.coordinates[1][0],this.coordinates[1][1]),n.projection.project(this.coordinates[2][0],this.coordinates[2][1]),n.projection.project(this.coordinates[3][0],this.coordinates[3][1])];if(!function(e){const t=e[1].x-e[0].x,n=e[1].y-e[0].y,r=e[2].x-e[1].x,i=e[2].y-e[1].y,o=e[3].x-e[2].x,a=e[3].y-e[2].y,s=e[0].x-e[3].x,l=e[0].y-e[3].y,c=t*i-r*n,u=r*a-o*i,h=o*l-s*a,d=s*n-t*l;return c>0&&u>0&&h>0&&d>0||c<0&&u<0&&h<0&&d<0}(r))return console.warn("Image source coordinates are defining non-convex area in the Mercator projection"),void(this._unsupportedCoords=!0);const i=bb(this.tileID,this.map.transform.projection),[o,a,s,l]=this.coordinates.map((e=>{const t=i.projection.project(e[0],e[1]);return Ab(i,t)._round()}));this.perspectiveTransform=_x(o.x,o.y,a.x,a.y,s.x,s.y,l.x,l.y);const c=this._boundsArray=new Du;c.emplaceBack(o.x,o.y,0,0),c.emplaceBack(a.x,a.y,pa,0),c.emplaceBack(l.x,l.y,0,pa),c.emplaceBack(s.x,s.y,pa,pa),this.boundsBuffer&&(this.boundsBuffer.destroy(),this.elevatedGlobeVertexBuffer&&this.elevatedGlobeVertexBuffer.destroy(),this.elevatedGlobeIndexBuffer&&this.elevatedGlobeIndexBuffer.destroy()),this.boundsBuffer=t.createVertexBuffer(c,cA.members),this.boundsSegments=Ch.simpleSegment(0,0,4,2);const u=rd,h=[],d=function(e){return[zx(e[0]),zx(e[1]),zx(e[2]),zx(e[3])]}(this.coordinates),[f,p,m,g]=function(e){let t=e[0][0],n=t,r=e[0][1],i=r;for(let o=1;on&&(n=e[o][0]),e[o][1]i&&(i=e[o][1]);return[t,r,n-t,i-r]}(d);{const i=new Du,[o,a,s,l]=function(e){let t=e[0].x,n=t,r=e[0].y,i=r;for(let o=1;on&&(n=e[o].x),e[o].yi&&(i=e[o].y);return[t,r,n-t,i-r]}(r),c=e=>[(e.x-o)/s,(e.y-a)/l],[d,y,v,b]=r.map(c),A=function(t,n,r,i,o,a,s,l){const c=Nx(0,0,1,0,1,1,0,1),u=Nx(t,n,r,i,o,a,s,l),h=e.bE.adjoint([],u);return e.bE.multiply(c,c,h)}(d[0],d[1],y[0],y[1],v[0],v[1],b[0],b[1]);this.elevatedGlobePerspectiveTransform=_x(d[0],d[1],y[0],y[1],v[0],v[1],b[0],b[1]);const x=(t,n)=>{h.push(t.lng);const r=Math.round((t.lng-f)/m*pa),o=Math.round((t.lat-p)/g*pa),a=c(n),s=e.$.transformMat3([],[a[0],a[1],1],A),l=Math.round(s[0]/s[2]*pa),u=Math.round(s[1]/s[2]*pa);i.emplaceBack(r,o,l,u)},w=r[3].x-r[0].x,C=r[3].y-r[0].y,S=r[2].x-r[1].x,E=r[2].y-r[1].y;for(let e=0;e<65;e++){const t=e/u,i=[r[0].x+t*w,r[0].y+t*C],o=[r[1].x+t*S,r[1].y+t*E],a=o[0]-i[0],s=o[1]-i[1];for(let e=0;e<65;e++){const t=e/u,r={x:i[0]+a*t,y:i[1]+s*t,z:0};x(n.projection.unproject(r.x,r.y),r)}}this.elevatedGlobeVertexBuffer=t.createVertexBuffer(i,cA.members)}{this.maxLongitudeTriangleSize=0;let e=[],n=new Xu;const r=(t,r,i)=>{n.emplaceBack(t,r,i);const o=h[t],a=h[r],s=h[i],l=Math.min(Math.min(o,a),s),c=Math.max(Math.max(o,a),s)-l;c>this.maxLongitudeTriangleSize&&(this.maxLongitudeTriangleSize=c),e.push(l+c/2)};for(let e=0;et));r.sort(((t,n)=>e[t]-e[n]));const i=[],o=new Xu;for(let n=0;n{a.segments.push({vertexOffset:0,primitiveOffset:e,vertexLength:t.segments[0].vertexLength,primitiveLength:n,sortKey:void 0,vaos:{}})},l=.51*this.maxLongitudeTriangleSize;if(Math.abs(n[0]-r)<=l){const e=Er(n,0,n.length,r+l);return e===n.length||s(e,Sr(n,e+1,n.length,r+360-l)-e),a}r0?function(t,n,r){const i=(t,n,r)=>{const i=e.$.length(t),o=e.$.length(n),a=zf(t,n,r);return e.$.scale(a,a,1/e.$.length(a)*Yi(i,o,r))},o=i([t[0],t[1],t[2]],[n[0],n[1],n[2]],r),a=i([t[4],t[5],t[6]],[n[4],n[5],n[6]],r),s=i([t[8],t[9],t[10]],[n[8],n[9],n[10]],r),l=zf([t[12],t[13],t[14]],[n[12],n[13],n[14]],r);return[o[0],o[1],o[2],0,a[0],a[1],a[2],0,s[0],s[1],s[2],0,l[0],l[1],l[2],1]}(o,function(t,n){const r=n.worldSize,i=Cd(1,0)*r*Od(n.center.lat,n.zoom)/Zf(r),o=Cd(1,n.center.lat)*r,a=e.ae.identity([]);return e.ae.rotateY(a,a,zn(n.center.lng)),e.ae.rotateX(a,a,zn(n.center.lat)),e.ae.translate(a,a,[0,0,nd]),e.ae.scale(a,a,[i,i,i*o]),e.ae.translate(a,a,[n.point.x-.5*r,n.point.y-.5*r,0]),e.ae.multiply(a,a,t),e.ae.multiply(a,n.globeMatrix,a)}(t,n),i):o}function cw(e,t,n,r){const i=Tf.projectAabbCorners(r,n);let o=Number.MAX_VALUE,a=-1;for(let e=0;enew Ln(i[e][0],i[e][1]);let l;switch(a){case 0:case 6:l=[s(1),s(5),s(4),s(7),s(3),s(2),s(1)];break;case 1:case 7:l=[s(0),s(4),s(5),s(6),s(2),s(3),s(0)];break;case 3:case 5:l=[s(1),s(0),s(4),s(7),s(6),s(2),s(1)];break;default:l=[s(1),s(5),s(6),s(7),s(3),s(0),s(1)]}if(Gd(e,l))return o}const uw=Ou([{name:"a_pos_3f",components:3,type:"Float32"}]),hw=Ou([{name:"a_color_3f",components:3,type:"Float32"}]),dw=Ou([{name:"a_color_4f",components:4,type:"Float32"}]),fw=Ou([{name:"a_uv_2f",components:2,type:"Float32"}]),pw=Ou([{name:"a_normal_3f",components:3,type:"Float32"}]),mw=Ou([{name:"a_normal_matrix0",components:4,type:"Float32"},{name:"a_normal_matrix1",components:4,type:"Float32"},{name:"a_normal_matrix2",components:4,type:"Float32"},{name:"a_normal_matrix3",components:4,type:"Float32"}]),gw=Ou([{name:"a_pbr",components:4,type:"Uint16"},{name:"a_heightBasedEmissiveStrength",components:3,type:"Float32"}]);class yw{constructor(e,t,n,r){this.message=(e?`${e}: `:"")+n,r&&(this.identifier=r),null!=t&&t.__line__&&(this.line=t.__line__)}}function vw(e,t){const n=-1===e.indexOf("://");try{return new URL(e,n&&t?"http://example.com":void 0),!0}catch(e){return!1}}class bw{constructor(e,t){this.feature=e,this.instancedDataOffset=t,this.instancedDataCount=0,this.rotation=[0,0,0],this.scale=[1,1,1],this.translation=[0,0,0]}}class Aw{constructor(){this.instancedDataArray=new ih,this.instancesEvaluatedElevation=[],this.features=[],this.idToFeaturesIndex={}}}class xw{constructor(e){this.zoom=e.zoom,this.canonical=e.canonical,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.projection=e.projection,this.index=e.index,this.hasZoomDependentProperties=this.layers[0].isZoomDependent(),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.hasPattern=!1,this.instancesPerModel={},this.validForExaggeration=0,this.maxVerticalOffset=0,this.maxScale=0,this.maxHeight=0,this.lookupDim=this.zoom>this.canonical.z?256:this.zoom>15?75:100,this.instanceCount=0,this.terrainElevationMin=0,this.terrainElevationMax=0,this.validForDEMTile={id:null,timestamp:0},this.modelUris=[],this.modelsRequested=!1,this.activeReplacements=[],this.replacementUpdateTime=0}updateFootprints(e,t){}populate(e,t,n,r){this.tileToMeter=Md(n);const i=this.layers[0]._featureFilter.needGeometry;this.lookup=new Uint8Array(this.lookupDim*this.lookupDim);for(const{feature:o,id:a,index:s,sourceLayerIndex:l}of e){const e=null!=a?a:o.properties&&o.properties.hasOwnProperty("id")?o.properties.id:void 0,c=Vd(o,i);if(!this.layers[0]._featureFilter.filter(new Yc(this.zoom),c,n))continue;const u={id:e,sourceLayerIndex:l,index:s,geometry:i?c.geometry:zd(o,n,r),properties:o.properties,type:o.type,patterns:{}},h=this.addFeature(u,u.geometry,c);h&&t.featureIndex.insert(o,u.geometry,s,l,this.index,this.instancesPerModel[h].instancedDataArray.length,256)}this.lookup=null}update(e,t,n,r){for(const t in this.instancesPerModel){const n=this.instancesPerModel[t];for(const t in e)if(n.idToFeaturesIndex.hasOwnProperty(t)){const r=n.features[n.idToFeaturesIndex[t]];this.evaluate(r,e[t],n,!0),this.uploaded=!1}}this.maxHeight=0}updateZoomBasedPaintProperties(){if(!this.hasZoomDependentProperties)return!1;let t=!1;for(const n in this.instancesPerModel){const r=this.instancesPerModel[n];for(const n of r.features){const i=this.layers[0],o=n.feature,a=this.canonical,s=i.paint.get("model-rotation").evaluate(o,{},a),l=i.paint.get("model-scale").evaluate(o,{},a),c=i.paint.get("model-translation").evaluate(o,{},a);e.$.exactEquals(n.rotation,s)&&e.$.exactEquals(n.scale,l)&&e.$.exactEquals(n.translation,c)||(this.evaluate(n,n.featureStates,r,!0),t=!0)}}return t}updateReplacement(e,t,n,r){if(t.updateTime===this.replacementUpdateTime)return!1;this.replacementUpdateTime=t.updateTime;const i=t.getReplacementRegionsForTile(e.toUnwrapped(),!0);if(Wm(this.activeReplacements,i))return!1;this.activeReplacements=i;let o=!1;for(const t in this.instancesPerModel){const i=this.instancesPerModel[t],a=i.instancedDataArray;for(const t of i.features){const i=t.instancedDataOffset,s=t.instancedDataCount;for(let t=0;tpa?l-pa:l;const c=Math.floor(l),u=a.float32[s+1];let h=!1;for(const t of this.activeReplacements)if(!Hm(t,n,fg.Model,r)&&!(t.min.x>c||c>t.max.x||t.min.y>u||u>t.max.y)&&(h=$m(Km(c,u,e.canonical,t.footprintTileId.canonical),t),h))break;a.float32[s]=h?l+pa:l,o=o||h}}}return o}isEmpty(){for(const e in this.instancesPerModel)if(0!==this.instancesPerModel[e].instancedDataArray.length)return!1;return!0}uploadPending(){return!this.uploaded}upload(e){if(!this.uploaded)for(const t in this.instancesPerModel){const n=this.instancesPerModel[t];n.instancedDataArray.length<0||0===n.instancedDataArray.length||(n.instancedDataBuffer?n.instancedDataBuffer.updateData(n.instancedDataArray):n.instancedDataBuffer=e.createVertexBuffer(n.instancedDataArray,mw.members,!0,void 0,this.instanceCount))}this.uploaded=!0}destroy(){for(const e in this.instancesPerModel){const t=this.instancesPerModel[e];0!==t.instancedDataArray.length&&t.instancedDataBuffer&&t.instancedDataBuffer.destroy()}const e=this.layers[0].modelManager;if(e&&this.modelUris)for(const t of this.modelUris)e.removeModel(t,"")}addFeature(e,t,n){const r=this.layers[0],i=r.layout.get("model-id").evaluate(n,{},this.canonical);if(!i)return cr(`modelId is not evaluated for layer ${r.id} and it is not going to get rendered.`),i;vw(i,!1)&&(this.modelUris.includes(i)||this.modelUris.push(i)),this.instancesPerModel[i]||(this.instancesPerModel[i]=new Aw);const o=this.instancesPerModel[i],a=o.instancedDataArray,s=new bw(n,a.length);for(const e of t)for(const t of e){if(t.x<0||t.x>=pa||t.y<0||t.y>=pa)continue;const e=(this.lookupDim-1)/pa,n=this.lookupDim*(t.y*e|0)+t.x*e|0;if(this.lookup){if(0!==this.lookup[n])continue;this.lookup[n]=1}this.instanceCount++;const r=a.length;a.resize(r+1),o.instancesEvaluatedElevation.push(0),a.float32[16*r]=t.x,a.float32[16*r+1]=t.y}return s.instancedDataCount=o.instancedDataArray.length-s.instancedDataOffset,s.instancedDataCount>0&&(e.id&&(o.idToFeaturesIndex[e.id]=o.features.length),o.features.push(s),this.evaluate(s,{},o,!1)),i}getModelUris(){return this.modelUris}evaluate(e,t,n,r){const i=this.layers[0],o=e.feature,a=this.canonical,s=e.rotation=i.paint.get("model-rotation").evaluate(o,t,a),l=e.scale=i.paint.get("model-scale").evaluate(o,t,a),c=e.translation=i.paint.get("model-translation").evaluate(o,t,a),u=i.paint.get("model-color").evaluate(o,t,a);u.a=i.paint.get("model-color-mix-intensity").evaluate(o,t,a);const h=[];this.maxVerticalOffset10?this.tileToMeter:Md(a,f)),s[o+4]=c[0],s[o+5]=c[1],s[o+6]=c[2]+l,s[o+7]=h[0],s[o+8]=h[1],s[o+9]=h[2],s[o+10]=h[4],s[o+11]=h[5],s[o+12]=h[6],s[o+13]=h[8],s[o+14]=h[9],s[o+15]=h[10],n.instancesEvaluatedElevation[i]=c[2]}}}let ww;Cl(xw,"ModelBucket",{omit:["layers"]}),Cl(Aw,"PerModelAttributes"),Cl(bw,"ModelFeature");let Cw;const Sw=64,Ew={CoordinateSpaceTile:1,CoordinateSpaceYUp:2,HasMapboxMeshFeatures:4,HasMeshoptCompression:8};function kw(t,n,r,i,o){const a=n.elevation;if(!a)return 0;const s=Tf.projectAabbCorners(r,i),l=Cd(1,o.lat)*n.worldSize,c=function(t,n){const r=[0,0,1],i=[{corners:[0,1,3,2],dotProductWithUp:0},{corners:[1,5,2,6],dotProductWithUp:0},{corners:[0,4,1,5],dotProductWithUp:0},{corners:[2,6,3,7],dotProductWithUp:0},{corners:[4,7,5,6],dotProductWithUp:0},{corners:[0,3,4,7],dotProductWithUp:0}];for(const o of i){const i=t[o.corners[0]],a=t[o.corners[1]],s=t[o.corners[2]],l=[a[0]-i[0],a[1]-i[1],n*(a[2]-i[2])],c=[s[0]-i[0],s[1]-i[1],n*(s[2]-i[2])],u=e.$.cross(l,l,c);e.$.normalize(u,u),o.dotProductWithUp=e.$.dot(u,r)}return i.sort(((e,t)=>e.dotProductWithUp-t.dotProductWithUp)),i[0].corners}(s,l),u=s[c[0]],h=s[c[1]],d=s[c[2]],f=s[c[3]],p=a.getAtPointOrZero(new Pd(u[0]/n.worldSize,u[1]/n.worldSize),0),m=a.getAtPointOrZero(new Pd(h[0]/n.worldSize,h[1]/n.worldSize),0),g=a.getAtPointOrZero(new Pd(d[0]/n.worldSize,d[1]/n.worldSize),0),y=a.getAtPointOrZero(new Pd(f[0]/n.worldSize,f[1]/n.worldSize),0),v=(p+y)/2,b=(m+g)/2;return v>b?m=t.gl.NEAREST_MIPMAP_NEAREST;e.gfxTexture=new Kb(t,e.image,r,{useMipmap:n}),e.uploaded=!0,e.image=null}}function Ow(e,t,n){if(e.indexBuffer=t.createIndexBuffer(e.indexArray,!1,!0),e.vertexBuffer=t.createVertexBuffer(e.vertexArray,uw.members,!1,!0),e.normalArray&&(e.normalBuffer=t.createVertexBuffer(e.normalArray,pw.members,!1,!0)),e.texcoordArray&&(e.texcoordBuffer=t.createVertexBuffer(e.texcoordArray,fw.members,!1,!0)),e.colorArray){const n=12===e.colorArray.bytesPerElement?hw:dw;e.colorBuffer=t.createVertexBuffer(e.colorArray,n.members,!1,!0)}e.featureArray&&(e.pbrBuffer=t.createVertexBuffer(e.featureArray,gw.members,!0)),e.segments=Ch.simpleSegment(0,0,e.vertexArray.length,e.indexArray.length);const r=e.material;r.pbrMetallicRoughness.baseColorTexture&&Iw(r.pbrMetallicRoughness.baseColorTexture,t),r.pbrMetallicRoughness.metallicRoughnessTexture&&Iw(r.pbrMetallicRoughness.metallicRoughnessTexture,t),r.normalTexture&&Iw(r.normalTexture,t),r.occlusionTexture&&Iw(r.occlusionTexture,t,n),r.emissionTexture&&Iw(r.emissionTexture,t)}function Rw(e,t,n){if(e.meshes)for(const r of e.meshes)Ow(r,t,n);if(e.children)for(const r of e.children)Rw(r,t,n)}function Mw(e){if(e.meshes)for(const t of e.meshes)t.indexArray.destroy(),t.vertexArray.destroy(),t.colorArray&&t.colorArray.destroy(),t.normalArray&&t.normalArray.destroy(),t.texcoordArray&&t.texcoordArray.destroy(),t.featureArray&&t.featureArray.destroy();if(e.children)for(const t of e.children)Mw(t)}function Pw(e){if(e.meshes)for(const n of e.meshes)n.vertexBuffer&&(n.vertexBuffer.destroy(),n.indexBuffer.destroy(),n.normalBuffer&&n.normalBuffer.destroy(),n.texcoordBuffer&&n.texcoordBuffer.destroy(),n.colorBuffer&&n.colorBuffer.destroy(),n.pbrBuffer&&n.pbrBuffer.destroy(),n.segments.destroy(),n.material&&((t=n.material).pbrMetallicRoughness.baseColorTexture&&t.pbrMetallicRoughness.baseColorTexture.gfxTexture&&t.pbrMetallicRoughness.baseColorTexture.gfxTexture.destroy(),t.pbrMetallicRoughness.metallicRoughnessTexture&&t.pbrMetallicRoughness.metallicRoughnessTexture.gfxTexture&&t.pbrMetallicRoughness.metallicRoughnessTexture.gfxTexture.destroy(),t.normalTexture&&t.normalTexture.gfxTexture&&t.normalTexture.gfxTexture.destroy(),t.emissionTexture&&t.emissionTexture.gfxTexture&&t.emissionTexture.gfxTexture.destroy(),t.occlusionTexture&&t.occlusionTexture.gfxTexture&&t.occlusionTexture.gfxTexture.destroy()));var t;if(e.children)for(const t of e.children)Pw(t)}class Dw{constructor(e){this._callback=e,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((()=>{this._triggered=!1,this._callback()}),0))}remove(){this._channel=void 0,this._callback=()=>{}}}class jw{constructor(){this.tasks={},this.taskQueue=[],rr(["process"],this),this.invoker=new Dw(this.process),this.nextId=0}add(e,t){const n=this.nextId++,r=function({type:e,isSymbolTile:t,zoom:n}){return n=n||0,"message"===e?0:"maybePrepare"!==e||t?"parseTile"!==e||t?"parseTile"===e&&t?300-n:"maybePrepare"===e&&t?400-n:500:200-n:100-n}(t);if(0===r){try{e()}finally{}return null}return this.tasks[n]={fn:e,metadata:t,priority:r,id:n},this.taskQueue.push(n),this.invoker.trigger(),{cancel:()=>{delete this.tasks[n]}}}process(){try{if(this.taskQueue=this.taskQueue.filter((e=>!!this.tasks[e])),!this.taskQueue.length)return;const e=this.pick();if(null===e)return;const t=this.tasks[e];if(delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),!t)return;t.fn()}finally{}}pick(){let e=null,t=1/0;for(let n=0;n{n&&delete this.callbacks[a],this.target.postMessage({id:a,type:"",targetMapId:r,sourceMapId:this.mapId})}}}receive(e){const t=e.data,n=t.id;if(n&&(!t.targetMapId||this.mapId===t.targetMapId))if(""===t.type){const e=this.cancelCallbacks[n];delete this.cancelCallbacks[n],e&&e.cancel()}else if(t.mustQueue||fr()){const e=this.callbacks[n],r=e&&e.metadata||{type:"message"},i=this.scheduler.add((()=>this.processTask(n,t)),r);i&&(this.cancelCallbacks[n]=i)}else this.processTask(n,t)}processTask(e,t){if(delete this.cancelCallbacks[e],""===t.type){const n=this.callbacks[e];delete this.callbacks[e],n&&(t.error?n(Tl(t.error)):n(null,Tl(t.data)))}else{const n=new Set,r=t.hasCallback?(t,r)=>{this.target.postMessage({id:e,type:"",sourceMapId:this.mapId,error:t?kl(t):null,data:kl(r,n)},n)}:e=>{},i=Tl(t.data);if(this.parent[t.type])this.parent[t.type](t.sourceMapId,i,r);else if(this.parent.getWorkerSource){const e=t.type.split(".");this.parent.getWorkerSource(t.sourceMapId,e[0],i.source,i.scope)[e[1]](i,r)}else r(new Error(`Could not find function ${t.type}`))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}}class Lw{constructor(e,t){this.workerPool=e,this.actors=[],this.currentActor=0,this.id=$n();const n=this.workerPool.acquire(this.id);for(let e=0;e{this.ready=!0}))}broadcast(e,t,n){n=n||function(){},Xn(this.actors,((n,r)=>{n.send(e,t,r)}),n)}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach((e=>{e.remove()})),this.actors=[],this.workerPool.release(this.id)}}Lw.Actor=Bw;var Fw={workerUrl:"",workerClass:null,workerParams:void 0};function Nw(){return null!=Fw.workerClass?new Fw.workerClass:new self.Worker(Fw.workerUrl,Fw.workerParams)}const _w="mapboxgl_preloaded_worker_pool";class zw{constructor(){this.active={}}acquire(e){if(!this.workers)for(this.workers=[];this.workers.length{e.terminate()})),this.workers=null)}isPreloaded(){return!!this.active[_w]}numActive(){return Object.keys(this.active).length}}let Vw;function Uw(){return Vw||(Vw=new zw),Vw}function Hw(e){let t;const n=WebAssembly.instantiateStreaming(e,{}).then((e=>{t=e.instance,t.exports.__wasm_call_ctors()}));const r={NONE:"",OCTAHEDRAL:"meshopt_decodeFilterOct",QUATERNION:"meshopt_decodeFilterQuat",EXPONENTIAL:"meshopt_decodeFilterExp"},i={ATTRIBUTES:"meshopt_decodeVertexBuffer",TRIANGLES:"meshopt_decodeIndexBuffer",INDICES:"meshopt_decodeIndexSequence"};return{ready:n,supported:!0,decodeGltfBuffer(e,n,o,a,s,l){!function(e,t,n,r,i,o,a){const s=e.exports.sbrk,l=r+3&-4,c=s(l*i),u=s(o.length),h=new Uint8Array(e.exports.memory.buffer);h.set(o,u);const d=t(c,r,i,u,o.length);if(0===d&&a&&a(c,l,i),n.set(h.subarray(c,c+r*i)),s(c-s(0)),0!==d)throw new Error(`Malformed buffer data: ${d}`)}(t,t.exports[i[s]],e,n,o,a,t.exports[r[l]])}}}zw.workerCount=2;let qw,Gw,Yw,Ww,Qw,Xw=null;function Jw(){return fr()&&self.worker&&self.worker.dracoUrl?self.worker.dracoUrl:Gw||r.DRACO_URL}function Zw(){if(!Yw)return qw||(qw=function(e){let t,n=null;function r(){t=new Uint8Array(n.buffer)}function i(){throw new Error("Unexpected Draco error.")}const o={a:{a:i,d:function(e,n,r){return t.copyWithin(e,n,n+r)},c:function(e){const i=t.length,o=Math.max(e>>>0,Math.ceil(1.2*i)),a=Math.ceil((o-i)/65536);try{return n.grow(a),r(),!0}catch(e){return!1}},b:i}};return(WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(e,o):e.then((e=>e.arrayBuffer())).then((e=>WebAssembly.instantiate(e,o)))).then((e=>{const{Rb:i,Qb:o,P:a,T:s,X:l,Ja:c,La:u,Qa:h,Va:d,Wa:f,eb:p,jb:m,f:g,e:y,yb:v,zb:b,Ab:A,Bb:x,Db:w,Gb:C}=e.instance.exports;n=y;const S=(()=>{let e=0,n=0,r=0,a=0;return s=>{r&&(i(a),i(e),n+=r,r=e=0),e||(n+=128,e=o(n));const l=s.length+7&-8;let c=e;l>=n&&(r=l,c=a=o(l));for(let e=0;e{Yw=e,qw=void 0})))}function Kw(){if(fr()&&self.worker&&self.worker.meshoptUrl)return self.worker.meshoptUrl;if(Ww)return Ww;const e=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,3,2,0,0,5,3,1,0,1,12,1,0,10,22,2,12,0,65,0,65,0,65,0,252,10,0,0,11,7,0,65,0,253,15,26,11]);if("object"!=typeof WebAssembly)throw new Error("WebAssembly not supported, cannot instantiate meshoptimizer");return Ww=WebAssembly.validate(e)?r.MESHOPT_SIMD_URL:r.MESHOPT_URL,Ww}const $w=5120,eC=5121,tC=5122,nC=5123,rC=5125,iC=5126,oC={[$w]:Int8Array,[eC]:Uint8Array,[tC]:Int16Array,[nC]:Uint16Array,[rC]:Uint32Array,[iC]:Float32Array},aC={[$w]:"DT_INT8",[eC]:"DT_UINT8",[tC]:"DT_INT16",[nC]:"DT_UINT16",[rC]:"DT_UINT32",[iC]:"DT_FLOAT32"},sC={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16};function lC(e,t,n){const r=n.json.bufferViews.length,i=n.buffers.length;t.bufferView=r,n.json.bufferViews[r]={buffer:i,byteLength:e.byteLength},n.buffers[i]=e}const cC="KHR_draco_mesh_compression";function uC(e,t){const n=e.extensions&&e.extensions[cC];if(!n)return;const r=new Yw.Decoder,i=yC(t,n.bufferView),o=new Yw.Mesh;if(!r.DecodeArrayToMesh(i,i.byteLength,o))throw new Error("Failed to decode Draco mesh");const a=t.json.accessors[e.indices],s=oC[a.componentType],l=a.count*s.BYTES_PER_ELEMENT,c=Yw._malloc(l);s===Uint16Array?r.GetTrianglesUInt16Array(o,l,c):r.GetTrianglesUInt32Array(o,l,c),lC(Yw.memory.buffer.slice(c,c+l),a,t),Yw._free(c);for(const i of Object.keys(n.attributes)){const a=r.GetAttributeByUniqueId(o,n.attributes[i]),s=t.json.accessors[e.attributes[i]],l=oC[s.componentType],c=aC[s.componentType],u=sC[s.type],h=s.count*u*l.BYTES_PER_ELEMENT,d=Yw._malloc(h);r.GetAttributeDataArrayForAllPoints(o,a,Yw[c],h,d),lC(Yw.memory.buffer.slice(d,d+h),s,t),Yw._free(d)}r.destroy(),o.destroy(),delete e.extensions[cC]}const hC="EXT_meshopt_compression";function dC(e,t){if(!e.extensions||!e.extensions[hC])return;const n=e.extensions[hC],r=n.byteOffset||0,i=n.byteLength||0,o=t.buffers[n.buffer],a=new Uint8Array(o,r,i),s=new Uint8Array(n.count*n.byteStride);Qw.decodeGltfBuffer(s,n.count,n.byteStride,a,n.mode,n.filter),e.buffer=t.buffers.length,e.byteOffset=0,t.buffers[e.buffer]=s.buffer,delete e.extensions[hC]}const fC=1179937895,pC=new TextDecoder("utf8");function mC(e,t){return new URL(e,t).href}function gC(e,t,n,r){return fetch(mC(e.uri,r)).then((e=>e.arrayBuffer())).then((e=>{t.buffers[n]=e}))}function yC(e,t){const n=e.json.bufferViews[t],r=e.buffers[n.buffer];return new Uint8Array(r,n.byteOffset||0,n.byteLength)}function vC(e,t,n,r){if(e.uri){const i=mC(e.uri,r);return fetch(i).then((e=>e.blob())).then((e=>createImageBitmap(e))).then((e=>{t.images[n]=e}))}if(void 0!==e.bufferView){const r=yC(t,e.bufferView),i=new Blob([r],{type:e.mimeType});return createImageBitmap(i).then((e=>{t.images[n]=e}))}}function bC(e,t=0,n){const r={json:null,images:[],buffers:[]};if(new Uint32Array(e,t,1)[0]===fC){const n=new Uint32Array(e,t);let i=2;const o=(n[i++]>>2)-3,a=n[i++]>>2;if(n[i++],r.json=JSON.parse(pC.decode(n.subarray(i,i+a))),i+=a,i{const e=[],t=s&&s.includes(cC),i=s&&s.includes(hC);if(t&&e.push(Zw()),i&&e.push(function(){if(Qw)return;const e=Hw(fetch(Kw()));return e.ready.then((()=>{Qw=e}))}()),o)for(let t=0;t{if(t&&a)for(const{primitives:e}of a)for(const t of e)uC(t,r);if(i&&a&&l)for(const e of l)dC(e,r);return r}))}))}function AC(e,t){const n=e.json.bufferViews[t.bufferView],r=e.buffers[n.buffer],i=(t.byteOffset||0)+(n.byteOffset||0),o=oC[t.componentType],a=sC[t.type]*o.BYTES_PER_ELEMENT,s=n.byteStride&&n.byteStride!==a?n.byteStride/o.BYTES_PER_ELEMENT:sC[t.type];return new o(r,i,t.count*s)}function xC(e,t,n,r){const i=oC[t.componentType],o=function(e){switch(e){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:return 1}}(i),a=e.json.bufferViews[t.bufferView],s=a.byteStride?a.byteStride/i.BYTES_PER_ELEMENT:sC[t.type],l=n.float32,c=l.length/n.capacity;for(let e=0,n=0;e0){for(let i=0;i0){o.texcoordArray=new rh;const e=t.json.accessors[i.TEXCOORD_0];o.texcoordArray.resize(e.count);const n=AC(t,e);xC(t,e,o.texcoordArray,n)}if(void 0!==i._FEATURE_ID_RGBA4444){const e=t.json.accessors[i._FEATURE_ID_RGBA4444];t.json.extensionsUsed&&t.json.extensionsUsed.includes("EXT_meshopt_compression")&&(o.featureData=AC(t,e))}if(void 0!==i._FEATURE_RGBA4444){const e=t.json.accessors[i._FEATURE_RGBA4444];o.featureData=new Uint32Array(AC(t,e).buffer)}const h=e.material,d=void 0!==h?t.json.materials[h]:{defined:!1};return o.material=function(e,t){const{emissiveFactor:n=[0,0,0],alphaMode:r="OPAQUE",alphaCutoff:i=.5,normalTexture:o,occlusionTexture:a,emissiveTexture:s,doubleSided:l}=e,{baseColorFactor:c=[1,1,1,1],metallicFactor:u=1,roughnessFactor:h=1,baseColorTexture:d,metallicRoughnessTexture:f}=e.pbrMetallicRoughness||{},p=a?t[a.index]:void 0;if(a&&a.extensions&&a.extensions.KHR_texture_transform&&p){const e=a.extensions.KHR_texture_transform;p.offsetScale=[e.offset[0],e.offset[1],e.scale[0],e.scale[1]]}return{pbrMetallicRoughness:{baseColorFactor:new qi(...c),metallicFactor:u,roughnessFactor:h,baseColorTexture:d?t[d.index]:void 0,metallicRoughnessTexture:f?t[f.index]:void 0},doubleSided:l,emissiveFactor:n,alphaMode:r,alphaCutoff:i,normalTexture:o?t[o.index]:void 0,occlusionTexture:p,emissionTexture:s?t[s.index]:void 0,defined:void 0===e.defined}}(d,n),o}function CC(t,n,r){const{matrix:i,rotation:o,translation:a,scale:s,mesh:l,extras:c,children:u}=t,h={};if(h.matrix=i||e.ae.fromRotationTranslationScale([],o||[0,0,0,1],a||[0,0,0],s||[1,1,1]),void 0!==l){h.meshes=r[l];const e=h.anchor=[0,0];for(const t of h.meshes){const{min:n,max:r}=t.aabb;e[0]+=n[0]+r[0],e[1]+=n[1]+r[1]}e[0]=Math.floor(e[0]/h.meshes.length/2),e[1]=Math.floor(e[1]/h.meshes.length/2)}if(c&&(c.id&&(h.id=c.id),c.lights&&(h.lights=function(e){if(!e.length)return[];const t=function(e){const t=atob(e),n=new Uint8Array(t.length);for(let e=0;e1&&r[r.length-1].equals(r[0])&&r.pop();let i=0;for(let e=0;e0&&r.reverse();const o=Rp(r.flatMap((e=>[e.x,e.y])),[]);return 0===o.length?null:{vertices:r,indices:o}}function kC(t,n){const r=[],i=[];let o=0;const a=[];for(const s of t){o=r.length;const t=s.vertexArray.float32,l=s.indexArray.uint16;for(let i=0;i0&&([i[e+1],i[e+2]]=[i[e+2],i[e+1]])}return{vertices:r,indices:i}}function TC(e){const t=function(e,t){const n=[];for(const r of e.json.meshes){const i=[];for(const n of r.primitives)i.push(wC(n,e,t));n.push(i)}return n}(e,function(e,t){const n=[],r=WebGL2RenderingContext;if(e.json.textures)for(const i of e.json.textures){const o={magFilter:r.LINEAR,minFilter:r.NEAREST,wrapS:r.REPEAT,wrapT:r.REPEAT};void 0!==i.sampler&&Object.assign(o,e.json.samplers[i.sampler]),n.push({image:t[i.source],sampler:o,uploaded:!1})}return n}(e,e.images)),{scenes:n,scene:r,nodes:i}=e.json,o=n?n[r||0].nodes:i,a=[];for(const n of o)a.push(CC(i[n],e,t));return function(e,t,n){const r={},i=new Set;for(let o=0;o0){const t=Array.from(i.values()).sort(((e,t)=>e-t));for(let n=t.length-1;n>=0;n--)e.splice(t[n],1)}}(a,o,e.json.nodes),a}function IC(e){e.heightmap=new Float32Array(4096),e.heightmap.fill(-1);const t=e.vertexArray.float32,n=e.aabb.min[0]-1,r=e.aabb.min[1]-1,i=e.aabb.max[0],o=e.aabb.max[1],a=Sw/(i-n+2),s=Sw/(o-r+2);for(let i=0;ie.heightmap[h*Sw+u]&&(e.heightmap[h*Sw+u]=c)}}function OC(t,n){const r={};r.indexArray=new Xu,r.indexArray.reserve(4*t.length),r.vertexArray=new Fu,r.vertexArray.reserve(10*t.length),r.colorArray=new Lu,r.vertexArray.reserve(10*t.length);let i=0;for(const o of t){const t=Math.min(10,Math.max(4,1.3*o.height))*n,a=[-o.normal[1],o.normal[0],0],s=Math.min(.29,.1*o.width/o.depth),l=o.width-2*o.depth*n*(s+.01),c=e.$.scaleAndAdd([],o.pos,a,l/2),u=e.$.scaleAndAdd([],o.pos,a,-l/2),h=[c[0],c[1],c[2]+o.height],d=[u[0],u[1],u[2]+o.height],f=e.$.scaleAndAdd([],o.normal,a,s);e.$.scale(f,f,t);const p=e.$.scaleAndAdd([],o.normal,a,-s);e.$.scale(p,p,t),e.$.add(f,c,f),e.$.add(p,u,p),c[2]+=.1,u[2]+=.1,r.vertexArray.emplaceBack(f[0],f[1],f[2]),r.vertexArray.emplaceBack(p[0],p[1],p[2]),r.vertexArray.emplaceBack(c[0],c[1],c[2]),r.vertexArray.emplaceBack(u[0],u[1],u[2]),r.vertexArray.emplaceBack(h[0],h[1],h[2]),r.vertexArray.emplaceBack(d[0],d[1],d[2]),r.vertexArray.emplaceBack(c[0],c[1],c[2]),r.vertexArray.emplaceBack(u[0],u[1],u[2]),r.vertexArray.emplaceBack(f[0],f[1],f[2]),r.vertexArray.emplaceBack(p[0],p[1],p[2]);const m=l/t/2;r.colorArray.emplaceBack(-m-s,-1,m,.8),r.colorArray.emplaceBack(m+s,-1,m,.8),r.colorArray.emplaceBack(-m,0,m,1.3),r.colorArray.emplaceBack(m,0,m,1.3),r.colorArray.emplaceBack(m+s,-.8,m,.7),r.colorArray.emplaceBack(m+s,-.8,m,.7),r.colorArray.emplaceBack(0,0,m,1.3),r.colorArray.emplaceBack(0,0,m,1.3),r.colorArray.emplaceBack(m+s,-1.2,m,.8),r.colorArray.emplaceBack(m+s,-1.2,m,.8),r.indexArray.emplaceBack(6+i,4+i,8+i),r.indexArray.emplaceBack(7+i,9+i,5+i),r.indexArray.emplaceBack(0+i,1+i,2+i),r.indexArray.emplaceBack(1+i,3+i,2+i),i+=10}const o={defined:!0,emissiveFactor:[0,0,0]},a={};return a.baseColorFactor=qi.white,o.pbrMetallicRoughness=a,r.material=o,r.aabb=new Tf([1/0,1/0,1/0],[-1/0,-1/0,-1/0]),r}const RC=new Float32Array(262144),MC=new Uint8Array(262144);function PC(e){let t=0;if(e.meshes)for(const n of e.meshes)t=Math.max(t,n.aabb.max[2]);if(e.children)for(const n of e.children)t=Math.max(t,PC(n));return t}function DC(e,t,n){if(e.meshes)for(const r of e.meshes)r.aabb.min[0]!==1/0&&n.insert(t,r.aabb.min[0],r.aabb.min[1],r.aabb.max[0],r.aabb.max[1]);if(e.children)for(const r of e.children)DC(r,t,n)}const jC=2,BC=["","wall","door","roof","window","lamp","logo"];class LC{constructor(e){this.node=e,this.evaluatedRMEA=[[1,0,0,1],[1,0,0,1],[1,0,0,1],[1,0,0,1],[.4,1,0,1],[1,0,0,1],[1,0,0,1]],this.hiddenByReplacement=!1,this.evaluatedScale=[1,1,1],this.evaluatedColor=[],this.emissionHeightBasedParams=[],this.feature={type:"Point",id:e.id,geometry:[],properties:{height:PC(e)}},this.aabb=this._getLocalBounds()}_getLocalBounds(){if(!this.node.meshes)return new Tf([1/0,1/0,1/0],[-1/0,-1/0,-1/0]);if(!this.aabb){let e=0;const t=new Tf([1/0,1/0,1/0],[-1/0,-1/0,-1/0]);for(const n of this.node.meshes)this.node.lightMeshIndex!==e&&(n.transformedAabb=Tf.applyTransformFast(n.aabb,this.node.matrix),t.encapsulate(n.transformedAabb)),e++;this.aabb=t}return this.aabb}}class FC{constructor(e,t,n,r,i,o){this.id=t,this.modelTraits|=Ew.CoordinateSpaceTile,this.uploaded=!1,this.hasPattern=!1,n&&(this.modelTraits|=Ew.HasMapboxMeshFeatures),r&&(this.modelTraits|=Ew.HasMeshoptCompression),this.zoom=-1,this.terrainExaggeration=1,this.projection={name:"mercator"},this.replacementUpdateTime=0,this.elevationReadFromZ=255,this.brightness=i,this.dirty=!0,this.needsUpload=!1,this.nodesInfo=[];for(const t of e)this.nodesInfo.push(new LC(t)),DC(t,o.featureIndexArray.length,o.grid),o.featureIndexArray.emplaceBack(this.nodesInfo.length-1,0,o.bucketLayerIDs.length-1,0)}updateFootprints(e,t){for(const n of this.getNodesInfo()){const r=n.node;r.footprint&&t.push({footprint:r.footprint,id:e})}}update(){console.log("Update 3D model bucket")}populate(){console.log("populate 3D model bucket")}uploadPending(){return!this.uploaded||this.needsUpload}upload(e){if(!this.needsUpload)return;const t=this.getNodesInfo();for(const n of t){const t=n.node;this.uploaded?this.updatePbrBuffer(t):Rw(t,e,!0)}for(const e of t)Mw(e.node);this.uploaded=!0,this.needsUpload=!1}updatePbrBuffer(e){let t=!1;if(!e.meshes)return t;for(const n of e.meshes)n.pbrBuffer&&(n.pbrBuffer.updateData(n.featureArray),t=!0);return t}needsReEvaluation(e,t,n){const r=e.transform.projectionOptions,i=e.style.getBrightness(),o=this.brightness!==i;return!!(!this.uploaded||this.dirty||r.name!==this.projection.name||NC(n.paint.get("model-color").value,o)||NC(n.paint.get("model-color-mix-intensity").value,o)||NC(n.paint.get("model-roughness").value,o)||NC(n.paint.get("model-emissive-strength").value,o)||NC(n.paint.get("model-height-based-emissive-strength-multiplier").value,o))&&(this.projection=r,this.brightness=i,!0)}evaluateScale(e,t){if(e.transform.zoom===this.zoom)return;this.zoom=e.transform.zoom;const n=this.getNodesInfo(),r=this.id.canonical;for(const e of n){const n=e.feature;e.evaluatedScale=t.paint.get("model-scale").evaluate(n,{},r)}}evaluate(e){const t=this.getNodesInfo();for(const n of t){if(!n.node.meshes)continue;const t=n.feature,r=n.node.meshes&&n.node.meshes[0].featureData,i=n.evaluatedColor[jC],o=n.evaluatedRMEA[jC],a=this.id.canonical;if(n.hasTranslucentParts=!1,r){for(let r=0;r=e)continue;const h=RC[c],d=Math.abs(h);d>s&&(a=h,s=d,l=i,u=t)}if(s>.1){const o=1-(e+.5*Math.abs(l*u))/c;let s=t._dem.get(r,n)+a*o;const h=t._dem.get(r+l,n+u),d=t._dem.get(r-l,n-u,!0);(s-h)*(s-d)>0&&(s=(h+d)/2),RC[i]=t._dem.set(r,n,s),MC[i]=e}}}}}a&&(t._demTile.needsDEMTextureUpload=!0,t._dem._timestamp=Or.now())}getNodesInfo(){return this.nodesInfo}destroy(){const e=this.getNodesInfo();for(const t of e)Mw(t.node),Pw(t.node)}isEmpty(){return!this.nodesInfo.length}updateReplacement(e,t){if(t.updateTime===this.replacementUpdateTime)return;this.replacementUpdateTime=t.updateTime;const n=t.getReplacementRegionsForTile(e.toUnwrapped()),r=this.getNodesInfo();for(let e=0;ee.footprint===t.footprint))}}getHeightAtTileCoord(t,n){const r=this.getNodesInfo(),i=[],o=[0,0,0],a=e.ae.identity([]);for(let s=0;su.max[0]||n>u.max[1])continue;if(!0===l.node.hidden)return{height:0,maxHeight:l.feature.properties.height,hidden:!1,verticalScale:l.evaluatedScale[2]};e.ae.invert(a,l.node.matrix),o[0]=t,o[1]=n,e.$.transformMat4(o,o,a);const h=(o[0]-c.aabb.min[0])/(c.aabb.max[0]-c.aabb.min[0])*Sw|0,d=(o[1]-c.aabb.min[1])/(c.aabb.max[1]-c.aabb.min[1])*Sw|0,f=Math.min(63,d)*Sw+Math.min(63,h),p=c.heightmap[f];if(!(p<0&&l.node.footprint)){if(l.hiddenByReplacement)return;return{height:p,maxHeight:l.feature.properties.height,hidden:!1,verticalScale:l.evaluatedScale[2]}}if(l.node.footprint.grid.query(new Ln(t,n),new Ln(t,n),i),i.length>0)return{height:void 0,maxHeight:l.feature.properties.height,hidden:l.hiddenByReplacement,verticalScale:l.evaluatedScale[2]}}}}function NC(e,t){return!e.isLightConstant&&t}function _C(e,t,n,r,i,o,a,s){let l=(61440&t|(61440&t)>>4)>>8,c=(3840&t|(3840&t)>>4)>>4,u=240&t|(240&t)>>4;n[3]>0&&(l=Yi(l,255*n[0],n[3]),c=Yi(c,255*n[1],n[3]),u=Yi(u,255*n[2],n[3]));const h=l<<8|c,d=u<<8|Math.floor(255*r[3]),f=function(e){const t=Yn(e,0,2);return Math.min(Math.round(.5*t*255),255)}(r[2])<<8|15*r[0]<<4|15*r[1],p=Yn(i[0],0,1),m=Yn(i[1],0,1),g=Yn(i[2],0,1),y=Yn(i[3],0,1);let v,b,A,x;if(p!==m&&a!==o&&m!==p){const e=a-o;b=1/(e*(m-p)),A=-(o+e*p)/(e*(m-p));const t=Yn(i[4],-1,1);x=Math.pow(10,t),v=255*g<<8|255*y}else v=65535,b=0,A=1,x=1;if(e.emplaceBack(h,d,f,v,b,A,x),s){const e=s.length;s.clear();for(let t=0;t>16&65535,s=o?t>>16&65535:65535&t,l=(15&s)<8?15&s:0,c=e.evaluatedRMEA[l],u=e.evaluatedColor[l],h=e.emissionHeightBasedParams[l];let d;if(a&&l===jC&&r.lights&&(d=new oh,d.resize(10*r.lights.length)),_C(n.featureArray,i,u,c,h,n.aabb.min[2],n.aabb.max[2],d),d&&a){a=!1;const e=r.meshes[r.lightMeshIndex];e.featureArray=d,e.featureArray._trim()}}n.featureArray._trim(),i++}}Cl(FC,"Tiled3dModelBucket",{omit:["layers"]}),Cl(LC,"Tiled3dModelFeature");function VC(e,t,n,r){const i=1<e.polygon)).flat());const y=p?l:null,[v,b]=function(t,n,r,i,o,a,s,l,c,u,h){return"globe"===t.projection.name?function(t,n,r,i,o,a,s,l,c,u,h){const d=[],f=[],p=t.projection.upVectorScale(h,t.center.lat,t.worldSize).metersToTile,m=[0,0,0,1],g=[0,0,0,1],y=(e,t,n,r)=>{e[0]=t,e[1]=n,e[2]=r,e[3]=1},v=zg();r>0&&(r+=v),i+=v;for(const v of n){const n=[],b=[];for(const d of v){const f=d.x+o.x,v=d.y+o.y,A=t.projection.projectTilePoint(f,v,h),x=t.projection.upVector(h,d.x,d.y);let w=r,C=i;if(s){const e=Wg(f,v,r,i,s,l,c,u);w+=e.base,C+=e.top}0!==r?y(m,A.x+x[0]*p*w,A.y+x[1]*p*w,A.z+x[2]*p*w):y(m,A.x,A.y,A.z),y(g,A.x+x[0]*p*C,A.y+x[1]*p*C,A.z+x[2]*p*C),e.$.transformMat4(m,m,a),e.$.transformMat4(g,g,a),n.push(new Fm(m[0],m[1],m[2])),b.push(new Fm(g[0],g[1],g[2]))}d.push(n),f.push(b)}return[d,f]}(t,n,r,i,o,a,s,l,c,u,h):s?function(t,n,r,i,o,a,s,l,c){const u=[],h=[],d=[0,0,0,1];for(const f of t){const t=[],p=[];for(const u of f){const h=u.x+i.x,f=u.y+i.y,m=Wg(h,f,n,r,a,s,l,c);d[0]=h,d[1]=f,d[2]=m.base,d[3]=1,e.aB.transformMat4(d,d,o),d[3]=Math.max(d[3],1e-5);const g=new Fm(d[0]/d[3],d[1]/d[3],d[2]/d[3]);d[0]=h,d[1]=f,d[2]=m.top,d[3]=1,e.aB.transformMat4(d,d,o),d[3]=Math.max(d[3],1e-5);const y=new Fm(d[0]/d[3],d[1]/d[3],d[2]/d[3]);t.push(g),p.push(y)}u.push(t),h.push(p)}return[u,h]}(n,r,i,o,a,s,l,c,u):function(e,t,n,r,i){const o=[],a=[],s=i[8]*t,l=i[9]*t,c=i[10]*t,u=i[11]*t,h=i[8]*n,d=i[9]*n,f=i[10]*n,p=i[11]*n;for(const t of e){const e=[],n=[];for(const o of t){const t=o.x+r.x,a=o.y+r.y,m=i[0]*t+i[4]*a+i[12],g=i[1]*t+i[5]*a+i[13],y=i[2]*t+i[6]*a+i[14],v=i[3]*t+i[7]*a+i[15],b=m+s,A=g+l,x=y+c,w=Math.max(v+u,1e-5),C=m+h,S=g+d,E=y+f,k=Math.max(v+p,1e-5);e.push(new Fm(b/w,A/w,x/w)),n.push(new Fm(C/k,S/k,E/k))}o.push(e),a.push(n)}return[o,a]}(n,r,i,o,a)}(a,i,d,h,u,s,y,f,m,a.center.lat,t.tileID.canonical),A=t.queryGeometry;return function(e,t,n){let r=1/0;Wd(n,t)&&(r=Yg(n,t[0]));for(let i=0;i{if(kx)return kx;const e=Sx();return kx=new Ex(e.paint.properties["line-width"].specification),kx.useIntegerZoom=!0,kx})().possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new by(e)}getProgramIds(){return[this.paint.get("line-pattern").constantOr(1)?"linePattern":"line"]}getDefaultProgramParams(e,t,n){const r=ky(this);return{config:new Xh(this,{zoom:t,lut:n}),defines:r,overrideFog:!1}}queryRadius(e){const t=e,n=Tx(af("line-width",this,t),af("line-gap-width",this,t)),r=af("line-offset",this,t);return n/2+Math.abs(r)+sf(this.paint.get("line-translate"))}queryIntersectsFeature(e,t,n,r,i,o){if(e.queryGeometry.isAboveHorizon)return!1;const a=lf(e.tilespaceGeometry,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),s=e.pixelToTileUnitsFactor/2*Tx(this.paint.get("line-width").evaluate(t,n),this.paint.get("line-gap-width").evaluate(t,n)),l=this.paint.get("line-offset").evaluate(t,n);return l&&(r=function(e,t){const n=[],r=new Ln(0,0);for(let i=0;i=3)for(let t=0;t>4;if(1!==r)throw new Error(`Got v${r} data when expected v1.`);const i=HC[15&n];if(!i)throw new Error("Unrecognized array type.");const[o]=new Uint16Array(e,2,1),[a]=new Uint32Array(e,4,1);return new qC(a,o,i,e)}constructor(e,t=64,n=Float64Array,r){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=n,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const i=HC.indexOf(this.ArrayType),o=2*e*this.ArrayType.BYTES_PER_ELEMENT,a=e*this.IndexArrayType.BYTES_PER_ELEMENT,s=(8-a%8)%8;if(i<0)throw new Error(`Unexpected typed array class: ${n}.`);r&&r instanceof ArrayBuffer?(this.data=r,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+a+s,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+o+a+s),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+a+s,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+i]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){const n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=e,this.coords[this._pos++]=t,n}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return GC(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,n,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:o,nodeSize:a}=this,s=[0,i.length-1,0],l=[];for(;s.length;){const c=s.pop()||0,u=s.pop()||0,h=s.pop()||0;if(u-h<=a){for(let a=h;a<=u;a++){const s=o[2*a],c=o[2*a+1];s>=e&&s<=n&&c>=t&&c<=r&&l.push(i[a])}continue}const d=h+u>>1,f=o[2*d],p=o[2*d+1];f>=e&&f<=n&&p>=t&&p<=r&&l.push(i[d]),(0===c?e<=f:t<=p)&&(s.push(h),s.push(d-1),s.push(1-c)),(0===c?n>=f:r>=p)&&(s.push(d+1),s.push(u),s.push(1-c))}return l}within(e,t,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:i,nodeSize:o}=this,a=[0,r.length-1,0],s=[],l=n*n;for(;a.length;){const c=a.pop()||0,u=a.pop()||0,h=a.pop()||0;if(u-h<=o){for(let n=h;n<=u;n++)XC(i[2*n],i[2*n+1],e,t)<=l&&s.push(r[n]);continue}const d=h+u>>1,f=i[2*d],p=i[2*d+1];XC(f,p,e,t)<=l&&s.push(r[d]),(0===c?e-n<=f:t-n<=p)&&(a.push(h),a.push(d-1),a.push(1-c)),(0===c?e+n>=f:t+n>=p)&&(a.push(d+1),a.push(u),a.push(1-c))}return s}}function GC(e,t,n,r,i,o){if(i-r<=n)return;const a=r+i>>1;YC(e,t,a,r,i,o),GC(e,t,n,r,a-1,1-o),GC(e,t,n,a+1,i,1-o)}function YC(e,t,n,r,i,o){for(;i>r;){if(i-r>600){const a=i-r+1,s=n-r+1,l=Math.log(a),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(a-c)/a)*(s-a/2<0?-1:1);YC(e,t,n,Math.max(r,Math.floor(n-s*c/a+u)),Math.min(i,Math.floor(n+(a-s)*c/a+u)),o)}const a=t[2*n+o];let s=r,l=i;for(WC(e,t,r,n),t[2*i+o]>a&&WC(e,t,r,i);sa;)l--}t[2*r+o]===a?WC(e,t,r,l):(l++,WC(e,t,l,i)),l<=n&&(r=l+1),n<=l&&(i=l-1)}}function WC(e,t,n,r){QC(e,n,r),QC(t,2*n,2*r),QC(t,2*n+1,2*r+1)}function QC(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function XC(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}e.A=Qa,e.B=Ja,e.C=qi,e.D=Wa,e.E=Fi,e.F=jo,e.H=lu,e.I=uA,e.J=nl,e.K=$s,e.L=function(e){const t=e.value;let n=[];if(!t)return n;const r=Oo(t);return"string"!==r?(n=n.concat([new yw(e.key,t,`string expected, "${r}" found`)]),n):(vw(t,!0)||(n=n.concat([new yw(e.key,t,`invalid url "${t}"`)])),n)},e.M=class{constructor(e,t,n,r){this.id=e,this.position=null!=t?new hd(t[0],t[1]):new hd(0,0),this.orientation=null!=n?n:[0,0,0],this.nodes=r,this.uploaded=!1,this.aabb=new Tf([1/0,1/0,1/0],[-1/0,-1/0,-1/0]),this.matrix=[]}_applyTransformations(t,n){if(e.ae.multiply(t.matrix,n,t.matrix),t.meshes)for(const e of t.meshes){const n=Tf.applyTransformFast(e.aabb,t.matrix);this.aabb.encapsulate(n)}if(t.children)for(const e of t.children)this._applyTransformations(e,t.matrix)}computeBoundsAndApplyParent(){const t=e.ae.identity([]);for(const e of this.nodes)this._applyTransformations(e,t)}computeModelMatrix(e,t,n,r,i,o,a=!1){Tw(this.matrix,this,e.transform,this.position,t,n,r,i,o,a)}upload(e){if(!this.uploaded){for(const t of this.nodes)Rw(t,e);for(const e of this.nodes)Mw(e);this.uploaded=!0}}destroy(){for(const e of this.nodes)Pw(e)}},e.N=ou,e.O=Xc,e.P=Ln,e.Q=Zn,e.R=Jr,e.S=ah,e.T=Kb,e.U=iu,e.V=yw,e.W=tu,e.X=class{constructor(e){this.specification=e}possiblyEvaluate(e,t){return dr(e.expression.evaluate(t))}interpolate(e,t,n){return{x:Yi(e.x,t.x,n),y:Yi(e.y,t.y,n),z:Yi(e.z,t.z,n),azimuthal:Yi(e.azimuthal,t.azimuthal,n),polar:Yi(e.polar,t.polar,n)}}},e.Y=Yc,e.Z=pl,e._=Pd,e.a=mA,e.a$=ff,e.a0=Wn,e.a1=eu,e.a2=ep,e.a3=Yi,e.a4=pa,e.a5=Wi,e.a6=class{constructor(e){this.specification=e}possiblyEvaluate(e,t){return function([e,t]){const n=dr([1,e,t]);return{x:n.x,y:n.y,z:n.z}}(e.expression.evaluate(t))}interpolate(e,t,n){return{x:Yi(e.x,t.x,n),y:Yi(e.y,t.y,n),z:Yi(e.z,t.z,n)}}},e.a7=_h,e.a8=Ph,e.a9=jh,e.aA=function(e,t,n){e[4*t+0]=n[0],e[4*t+1]=n[1],e[4*t+2]=n[2],e[4*t+3]=n[3]},e.aC=function(t,n){const{x:r,y:i}=t.point,o=$f(r,i,t.worldSize/t._pixelsPerMercatorPixel,0,0);return e.ae.multiply(o,o,Jf(_f(n)))},e.aE=lv,e.aF=yv,e.aG=sv,e.aH=function(e,t,n,r,i){const o=5*t+2;e.float32[o+0]=n,e.float32[o+1]=r,e.float32[o+2]=i},e.aI=Wb,e.aJ=hd,e.aK=Vb,e.aL=gd,e.aM=kf,e.aN=ew,e.aO=md,e.aP=Hf,e.aQ=yd,e.aR=function(e,t,n,r,i,o,a,s,l){if("globe"===l.name)return Hf(e,t,new md(n,r,i),!1);const c=bb({z:n,x:r,y:i},l),u=c.x/c.scale,h=c.y/c.scale,d=c.x2/c.scale,f=c.y2/c.scale;return new Tf([(o+u)*t,t*h,a],[(o+d)*t,t*f,s])},e.aS=function(e,t,n){let r=0;for(let n=0;n<2;++n){const i=0;e[n]>i&&(r+=(e[n]-i)*(e[n]-i)),t[n]0&&r[0]<=t.width&&r[1]>0&&r[1]<=t.height&&!np(t,new hd(t.center.lat,90)),i[0]>0&&i[0]<=t.width&&i[1]>0&&i[1]<=t.height&&!np(t,new hd(t.center.lat,-90))]},e.aX=function(t,n){const{scale:r}=t.tileTransform,i=r*pa/(t.tileSize*Math.pow(2,n.zoom-t.tileID.overscaledZ+t.tileID.canonical.z));return e.aD.scale(new Float32Array(4),n.inverseAdjustmentMatrix,[i,i])},e.aY=tw,e.aZ=$x,e.a_=function(t){const n=$x(t,!0);return e.aD.invert([],[n[0],n[1],n[4],n[5]])},e.aa=Fh,e.ab=Dh,e.ac=zn,e.ad=function(e,t,n){const r=Math.sqrt(e*e+t*t+n*n),i=r>0?Math.acos(n/r)*_n:0;let o=0!==e||0!==t?Math.atan2(-t,-e)*_n+90:0;return o<0&&(o+=360),[r,o,i]},e.af=hA,e.ag=vA,e.ah=fA,e.ai=function(e,t){const n={};for(let r=0;rjr&&(e.getActor().send("enforceCacheSizeLimit",Dr),Ur=0)},e.ao=gi,e.ap=class{constructor(e){this.entries={},this.scheduler=e}request(e,t,n,r){const i=this.entries[e]=this.entries[e]||{callbacks:[]};if(i.result){const[e,n]=i.result;return this.scheduler?this.scheduler.add((()=>{r(e,n)}),t):r(e,n),()=>{}}return i.callbacks.push(r),i.cancel||(i.cancel=n(((n,r)=>{i.result=[n,r];for(const e of i.callbacks)this.scheduler?this.scheduler.add((()=>{e(n,r)}),t):e(n,r);setTimeout((()=>delete this.entries[e]),3e3)}))),()=>{i.result||(i.callbacks=i.callbacks.filter((e=>e!==r)),i.callbacks.length||(i.cancel(),delete this.entries[e]))}}},e.aq=function(e,t,n){const r=JSON.stringify(e.request);e.data&&(this.deduped.entries[r]={result:[null,e.data]});const i={type:"parseTile",isSymbolTile:e.isSymbolTile,zoom:e.tileZoom};return this.deduped.request(r,i,(t=>{const r=ti(e.request,((e,r,i,o)=>{e?t(e):r&&t(null,{vectorTile:n?void 0:new Bm(new Zy(r)),rawData:r,cacheControl:i,expires:o})}));return()=>{r.cancel(),t()}}),t)},e.ar=Bh,e.as=class extends Mh{constructor(e){super(e),this.current=zh}set(e,t,n){if(this.fetchUniformLocation(e,t))for(let e=0;e<9;e++)if(n[e]!==this.current[e]){this.current=n,this.gl.uniformMatrix3fv(this.location,!1,n);break}}},e.at=Lh,e.au=Yn,e.av=Qn,e.ax=Cr,e.ay=Cd,e.az=Ed,e.b=Ch,e.b$=bd,e.b0=function(e){const{x:t,y:n}=e.point,{lng:r,lat:i}=e._center;return $f(t,n,e.worldSize,r,i)},e.b1=Vn,e.b2=vd,e.b3=5,e.b4=function(e){const t=(e+45+360)%360,n=Math.round(t/90)%4;return Un[n]},e.b5=45,e.b6=Ad,e.b7=Md,e.b8=Tf,e.b9=dr,e.bA=xA,e.bB=Ap,e.bC=function(e,t){return[Math.pow(e[0],2.2)*t,Math.pow(e[1],2.2)*t,Math.pow(e[2],2.2)*t]},e.bD=Cy,e.bF=Kf,e.bG=Tr,e.bH=kr,e.bI=Ux,e.bJ=function(t,n){const r=[0,0,0],i=Xf(_f(n.canonical));return e.$.transformMat4(r,r,i),e.$.transformMat4(r,r,t),r},e.bK=e=>({u_camera_to_center_distance:new Dh(e),u_extrude_scale:new Uh(e),u_device_pixel_ratio:new Dh(e),u_matrix:new _h(e),u_inv_rot_matrix:new _h(e),u_merc_center:new jh(e),u_tile_id:new Bh(e),u_zoom_transition:new Dh(e),u_up_dir:new Bh(e),u_emissive_strength:new Dh(e)}),e.bL=e=>({u_matrix:new _h(e),u_pixels_to_tile_units:new Uh(e),u_device_pixel_ratio:new Dh(e),u_units_to_pixels:new jh(e),u_dash_image:new Ph(e),u_gradient_image:new Ph(e),u_image_height:new Dh(e),u_texsize:new jh(e),u_tile_units_to_pixels:new Dh(e),u_alpha_discard_threshold:new Dh(e),u_trim_offset:new jh(e),u_trim_fade_range:new jh(e),u_trim_color:new Lh(e),u_emissive_strength:new Dh(e)}),e.bM=e=>({u_matrix:new _h(e),u_texsize:new jh(e),u_pixels_to_tile_units:new Uh(e),u_device_pixel_ratio:new Dh(e),u_image:new Ph(e),u_units_to_pixels:new jh(e),u_tile_units_to_pixels:new Dh(e),u_alpha_discard_threshold:new Dh(e),u_trim_offset:new jh(e)}),e.bN=Wu,e.bO=py,e.bP=iv,e.bQ=cv,e.bR=lb,e.bS=Ov,e.bT=lp,e.bU=(e,t,n,r,i,o)=>{const a=e.transform,s="globe"===a.projection.name;let l;if("map"===o.paint.get("circle-pitch-alignment"))if(s){const e=Kf(a.zoom,t.canonical)*a._pixelsPerMercatorPixel;l=Float32Array.from([e,0,0,e])}else l=a.calculatePixelsToTileUnitsMatrix(n);else l=new Float32Array([a.pixelsToGLUnits[0],0,0,a.pixelsToGLUnits[1]]);const c={u_camera_to_center_distance:e.transform.getCameraToCenterDistance(a.projection),u_matrix:e.translatePosMatrix(t.projMatrix,n,o.paint.get("circle-translate"),o.paint.get("circle-translate-anchor")),u_device_pixel_ratio:Or.devicePixelRatio,u_extrude_scale:l,u_inv_rot_matrix:sp,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0],u_emissive_strength:o.paint.get("circle-emissive-strength")};if(s){c.u_inv_rot_matrix=r,c.u_merc_center=i,c.u_tile_id=[t.canonical.x,t.canonical.y,1<{const a=e.transform;return{u_matrix:Ey(e,t,n,r),u_texsize:t.imageAtlasTexture?t.imageAtlasTexture.size:[0,0],u_pixels_to_tile_units:a.calculatePixelsToTileUnitsMatrix(t),u_device_pixel_ratio:i,u_image:0,u_tile_units_to_pixels:Sy(t,a),u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]],u_alpha_discard_threshold:0,u_trim_offset:o}},e.bX=(e,t,n,r,i,o,a)=>{const s=e.transform,l=s.calculatePixelsToTileUnitsMatrix(t);return{u_matrix:Ey(e,t,n,r),u_pixels_to_tile_units:l,u_device_pixel_ratio:o,u_units_to_pixels:[1/s.pixelsToGLUnits[0],1/s.pixelsToGLUnits[1]],u_dash_image:0,u_gradient_image:1,u_image_height:i,u_texsize:Ty(n)&&t.lineAtlasTexture?t.lineAtlasTexture.size:[0,0],u_tile_units_to_pixels:Sy(t,e.transform),u_alpha_discard_threshold:0,u_trim_offset:a,u_trim_fade_range:n.paint.get("line-trim-fade-range"),u_trim_color:n.paint.get("line-trim-color").toRenderColor(n.lut).toArray01(),u_emissive_strength:n.paint.get("line-emissive-strength")}},e.bY=tr,e.bZ=Cp,e.b_=zg,e.ba=function(e){return[Math.pow(e[0],1/2.2),Math.pow(e[1],1/2.2),Math.pow(e[2],1/2.2)]},e.bb=Hn,e.bc=function(e,t,n){const r=ep(n.zoom),i=e.style.map._antialias,o=t.options.extStandardDerivativesForceOff||e.terrain&&e.terrain.exaggeration()>0;return 0===r&&!i&&!o},e.bd=function(t){const n=t.pixelsPerMeter,r=n/Cd(1,t.center.lat),i=e.ae.identity(new Float64Array(16));return e.ae.translate(i,i,[t.point.x,t.point.y,0]),e.ae.scale(i,i,[r,r,n]),Float32Array.from(i)},e.be=qf,e.bf=function(e){const t=80.051129;e=Yn(e,-80.051129,t)/t*90;const n=Math.pow(Math.abs(Math.sin(zn(e))),3);return Math.round(n*(id.length-1))},e.bg=function(t,n,r,i){const o=n.getNorth(),a=n.getSouth(),s=n.getWest(),l=n.getEast(),c=1<0){const t=180/i,n=[t/u+1,0,0,0,t/h+1,0,-.5*t/d,.5*t/f,1];e.bE.multiply(p,p,n)}return p[2]=c,p[5]=t.x,p[8]=t.y,p},e.bh=Xf,e.bi=_f,e.bj=function(t,n,r){const i=e.ae.identity(new Float64Array(16)),o=(n/(1<{}}},e.bq=$b,e.br=rr,e.bs=class{isDataAvailableAtPoint(e){const t=this._source();if(this.isUsingMockSource()||!t||e.y<0||e.y>1)return!1;const n=t.getSource().maxzoom,r=1<1)return t;const i=r.getSource().maxzoom,o=1<{const a=this.getAtTileOffset(t,o.x,o.y),s=i.upVector(t.canonical,o.x,o.y),l=i.upVectorScale(t.canonical,n,r).metersToTile;return e.$.scale(s,s,a*l),s}}getForTilePoints(e,t,n,r){if(this.isUsingMockSource())return!1;const i=dg.create(this,e,r);return!!i&&(t.forEach((e=>{e[2]=this.exaggeration()*i.getElevationAt(e[0],e[1],n)})),!0)}getMinMaxForTile(e){if(this.isUsingMockSource())return null;const t=this.findDEMTileFor(e);if(!t||!t.dem)return null;const n=t.dem.tree,r=t.tileID,i=1<=0?e.slice(0,t):e},e.cY=function(e){return e.indexOf(xu)>=0},e.cZ=function(e){const t=e.indexOf(xu);return t>=0?e.slice(t+1):""},e.c_=function(e){const t=[],n=e.id;return void 0===n&&t.push({message:`layers.${n}: missing required property "id"`}),void 0===e.render&&t.push({message:`layers.${n}: missing required method "render"`}),e.renderingMode&&"2d"!==e.renderingMode&&"3d"!==e.renderingMode&&t.push({message:`layers.${n}: property "renderingMode" must be either "2d" or "3d"`}),t},e.ca=Fu,e.cb=$u,e.cc=1,e.cd=pA,e.ce=0,e.cf=eh,e.cg=function(e,t,n,r,i){return Yn((e-t)/(n-t)*(i-r)+r,r,i)},e.ch=Us,e.ci=Od,e.cj=class{constructor(e,t,n,r){this.context=e,this.format=r,this.size=n,this.texture=e.gl.createTexture();const[i,o,a]=this.size,{gl:s}=e;s.bindTexture(s.TEXTURE_3D,this.texture),e.pixelStoreUnpackFlipY.set(!1),e.pixelStoreUnpack.set(1),e.pixelStoreUnpackPremultiplyAlpha.set(!1);let l=this.format,c=s.UNSIGNED_BYTE;this.format===s.DEPTH_COMPONENT&&(l=s.DEPTH_COMPONENT16,c=s.UNSIGNED_SHORT),this.format===s.R8&&(r=s.RED),this.format===s.R32F&&(c=s.FLOAT,r=s.RED),s.texImage3D(s.TEXTURE_3D,0,l,i,o,a,0,r,c,t.data)}bind(e,t){const{context:n}=this,{gl:r}=n;r.bindTexture(r.TEXTURE_3D,this.texture),e!==this.minFilter&&(r.texParameteri(r.TEXTURE_3D,r.TEXTURE_MAG_FILTER,e),r.texParameteri(r.TEXTURE_3D,r.TEXTURE_MIN_FILTER,e),this.minFilter=e),t!==this.wrapS&&(r.texParameteri(r.TEXTURE_3D,r.TEXTURE_WRAP_S,t),r.texParameteri(r.TEXTURE_3D,r.TEXTURE_WRAP_T,t),this.wrapS=t)}destroy(){const{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null}},e.ck=lw,e.cl=[1,1,1],e.cm=dg,e.cn=Ew,e.co=qu,e.cp=class{constructor(){this._updateTime=0,this._sourceIds=[],this._activeRegions=[],this._prevRegions=[],this._globalClipBounds={min:new Ln(1/0,1/0),max:new Ln(-1/0,-1/0)}}clear(){this._activeRegions.length>0&&++this._updateTime,this._activeRegions=[],this._prevRegions=[]}get updateTime(){return this._updateTime}getReplacementRegionsForTile(e,t=!1){const n=Qm(new Ln(0,0),new Ln(pa,pa),e),r=[];if(t&&!Ym(n,this._globalClipBounds))return r;for(const t of this._activeRegions){if(t.hiddenByOverlap)continue;if(!Ym(n,t))continue;const i=Xm(t.min,t.max,e);r.push({min:i.min,max:i.max,sourceId:this._sourceIds[t.priority],footprint:t.footprint,footprintTileId:t.tileId,order:t.order,clipMask:t.clipMask,clipScope:t.clipScope})}return r}setSources(e){this._setSources(e.map((e=>({getSourceId:()=>e.cache.id,getFootprints:()=>{const t=[];for(const n of e.cache.getVisibleCoordinates()){const r=e.cache.getTile(n).buckets[e.layer];r&&r.updateFootprints(n.toUnwrapped(),t)}return t},getOrder:()=>e.order,getClipMask:()=>e.clipMask,getClipScope:()=>e.clipScope}))))}_addSource(e){const t=e.getFootprints();if(0===t.length)return;const n=e.getOrder(),r=e.getClipMask(),i=e.getClipScope();for(const e of t){if(!e.footprint)continue;const t=Qm(e.footprint.min,e.footprint.max,e.id);this._activeRegions.push({min:t.min,max:t.max,hiddenByOverlap:!1,priority:this._sourceIds.length,tileId:e.id,footprint:e.footprint,order:n,clipMask:r,clipScope:i})}this._sourceIds.push(e.getSourceId())}_computeReplacement(){this._activeRegions.sort(((e,t)=>e.priority-t.priority||qm(e.min,t.min)||qm(e.max,t.max)||e.order-t.order||e.clipMask-t.clipMask||function(e,t){const n=(e,t)=>e+t;return e.length-t.length||e.reduce(n,"").localeCompare(t.reduce(n,""))}(e.clipScope,t.clipScope)));let e=this._activeRegions.length!==this._prevRegions.length;if(!e){let t=0;for(;!e&&t!==this._activeRegions.length;){const n=this._activeRegions[t],r=this._prevRegions[t];e=n.priority!==r.priority||!Gm(n,r)||n.order!==r.order||n.clipMask!==r.clipMask||!Fn(n.clipScope,r.clipScope),++t}}if(e){++this._updateTime;for(const e of this._activeRegions)e.order!==Um&&(this._globalClipBounds.min.x=Math.min(this._globalClipBounds.min.x,e.min.x),this._globalClipBounds.min.y=Math.min(this._globalClipBounds.min.y,e.min.y),this._globalClipBounds.max.x=Math.max(this._globalClipBounds.max.x,e.max.x),this._globalClipBounds.max.y=Math.max(this._globalClipBounds.max.y,e.max.y));const e=e=>{const t=this._activeRegions;if(e>=t.length)return e;const n=t[e].priority;for(;e1){let t=0,n=e(t);for(;t!==n;){let r=t;const i=t;for(;r!==n;){const e=this._activeRegions[r];e.hiddenByOverlap=!1;for(let t=0;t=0;t--)this._addSource(e[t]);this._computeReplacement()}},e.cq=Du,e.cr=cA,e.cs=nh,e.ct=class{constructor(e){this._createGrid(e),this._createPoles(e)}destroy(){this._poleIndexBuffer.destroy(),this._gridBuffer.destroy(),this._gridIndexBuffer.destroy(),this._poleNorthVertexBuffer.destroy(),this._poleSouthVertexBuffer.destroy();for(const e of this._poleSegments)e.destroy();for(const e of this._gridSegments)e.withSkirts.destroy(),e.withoutSkirts.destroy()}_fillGridMeshWithLods(e,t){const n=new Mu,r=new Xu,i=[],o=e+1+2,a=t[0]+1,s=t[0]+1+(1+t.length),l=(e,t,n)=>{let r=e===o-1?e-2:0===e?e:e-1;return r+=n?24575:0,[r,t]};for(let e=0;ee()))},e.dE=Fw,e.dF=Jw,e.dG=function(e){Gw=Or.resolveURL(e),Xw||(Xw=new Lw(Uw(),new Fi)),Xw.broadcast("setDracoUrl",Gw)},e.dH=Kw,e.dI=function(e){Ww=Or.resolveURL(e),Xw||(Xw=new Lw(Uw(),new Fi)),Xw.broadcast("setMeshoptUrl",Ww)},e.dJ=Jn,e.dK=Cl,e.dL=vp,e.dM=2,e.dN=bb,e.dO=ch,e.dP=Iy,e.dQ=tv,e.dR=my,e.dS=or,e.dT=qv,e.dU=Zb,e.dV=function(e,t,n,r,i,o,a,s,l,c,u){e.createArrays();const h=512*e.overscaling;e.tilePixelRatio=pa/h,e.compareText={},e.iconsNeedLinear=!1;const d=e.layers[0].layout,f=e.layers[0]._unevaluatedLayout._values,p={};if("composite"===e.textSizeData.kind){const{minZoom:t,maxZoom:n}=e.textSizeData;p.compositeTextSizes=[f["text-size"].possiblyEvaluate(new Yc(t),s),f["text-size"].possiblyEvaluate(new Yc(n),s)]}if("composite"===e.iconSizeData.kind){const{minZoom:t,maxZoom:n}=e.iconSizeData;p.compositeIconSizes=[f["icon-size"].possiblyEvaluate(new Yc(t),s),f["icon-size"].possiblyEvaluate(new Yc(n),s)]}p.layoutTextSize=f["text-size"].possiblyEvaluate(new Yc(l+1),s),p.layoutIconSize=f["icon-size"].possiblyEvaluate(new Yc(l+1),s),p.textMaxSize=f["text-size"].possiblyEvaluate(new Yc(18),s);const m="map"===d.get("text-rotation-alignment")&&"point"!==d.get("symbol-placement"),g=d.get("text-size");let y=!1;for(const t of e.features)if(t.icon&&t.icon.nameSecondary){y=!0;break}for(const o of e.features){const l=d.get("text-font").evaluate(o,{},s).join(","),h=g.evaluate(o,{},s),f=p.layoutTextSize.evaluate(o,{},s),v=p.layoutIconSize.evaluate(o,{},s),b={horizontal:{},vertical:void 0},A=o.text;let x,w=[0,0];if(A){const r=A.toString(),a=d.get("text-letter-spacing").evaluate(o,{},s)*iv,c=d.get("text-line-height").evaluate(o,{},s)*iv,u=Sc(r)?a:0,p=d.get("text-anchor").evaluate(o,{},s),g=d.get("text-variable-anchor");if(!g){const e=d.get("text-radial-offset").evaluate(o,{},s);w=e?lb(p,[e*iv,ob]):d.get("text-offset").evaluate(o,{},s).map((e=>e*iv))}let y=m?"center":d.get("text-justify").evaluate(o,{},s);const v="point"===d.get("symbol-placement"),x=v?d.get("text-max-width").evaluate(o,{},s)*iv:1/0,C=o=>{e.allowVerticalPlacement&&Cc(r)&&(b.vertical=xv(A,t,n,i,l,x,c,p,o,u,w,yv.vertical,!0,f,h))};if(!m&&g){const e="auto"===y?g.map((e=>cb(e))):[y];let r=!1;for(let o=0;o=0||!Cc(r)){const e=xv(A,t,n,i,l,x,c,p,y,u,w,yv.horizontal,!1,f,h);e&&(b.horizontal[y]=e)}C(v?"left":y)}}let C=!1;if(o.icon&&o.icon.namePrimary){const t=r[o.icon.namePrimary];t&&(x=Mv(i[o.icon.namePrimary],o.icon.nameSecondary?i[o.icon.nameSecondary]:void 0,d.get("icon-offset").evaluate(o,{},s),d.get("icon-anchor").evaluate(o,{},s)),C=t.sdf,void 0===e.sdfIcons?e.sdfIcons=t.sdf:e.sdfIcons!==t.sdf&&cr("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(t.pixelRatio!==e.pixelRatio||0!==d.get("icon-rotate").constantOr(1))&&(e.iconsNeedLinear=!0))}const S=pb(b.horizontal)||b.vertical;e.iconsInText||(e.iconsInText=!!S&&S.iconsInText),(S||x)&&ub(e,o,b,x,r,p,f,v,w,C,a,s,c,u,y)}o&&e.generateCollisionDebugBuffers(l,e.collisionBoxArray)},e.dW=by,e.dX=om,e.dY=Bm,e.dZ=Zy,e.d_=hg,e.da=cd,e.db=r,e.dc=np,e.dd=tp,e.de=function(t){const n=[0,0,0],r=e.ae.identity(new Float64Array(16));return e.ae.multiply(r,t.pixelMatrix,t.globeMatrix),e.$.transformMat4(n,n,r),new Ln(n[0],n[1])},e.df=u,e.dg=c,e.dh=function(e){const t=e.navigator?e.navigator.userAgent:null;return!!function(e){if(null==xr){const t=e.navigator?e.navigator.userAgent:null;xr=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return xr}(e)&&t&&(t.match("Version/15.4")||t.match("Version/15.5")||t.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/))},e.di=$n,e.dj=class{constructor(e,t,n){this._transformRequestFn=e,this._customAccessToken=t,this._silenceAuthErrors=!!n,this._createSkuToken()}_createSkuToken(){const e=function(){let e="";for(let t=0;t<10;t++)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",si,e].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}normalizeStyleURL(e,n){if(!o(e))return e;const r=ui(e);return r.params.push(`sdk=js-${t}`),r.path=`/styles/v1${r.path}`,this._makeAPIURL(r,this._customAccessToken||n)}normalizeGlyphsURL(e,t){if(!o(e))return e;const n=ui(e);return n.path=`/fonts/v1${n.path}`,this._makeAPIURL(n,this._customAccessToken||t)}normalizeModelURL(e,t){if(!o(e))return e;const n=ui(e);return n.path=`/models/v1${n.path}`,this._makeAPIURL(n,this._customAccessToken||t)}normalizeSourceURL(e,t,n,r){if(!o(e))return e;const i=ui(e);return i.path=`/v4/${i.authority}.json`,i.params.push("secure"),n&&i.params.push(`language=${n}`),r&&i.params.push(`worldview=${r}`),this._makeAPIURL(i,this._customAccessToken||t)}normalizeSpriteURL(e,t,n,r){const i=ui(e);return o(e)?(i.path=`/styles/v1${i.path}/sprite${t}${n}`,this._makeAPIURL(i,this._customAccessToken||r)):(i.path+=`${t}${n}`,hi(i))}normalizeTileURL(e,t,n){if(this._isSkuTokenExpired()&&this._createSkuToken(),e&&!o(e))return e;const i=ui(e),a=Hr.supported?".webp":"$1",s=n&&"raster"!==i.authority&&512===n,l=t||s?"@2x":"";if(i.path=i.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${l}${a}`),"raster"===i.authority)i.path=`/${r.RASTER_URL_PREFIX}${i.path}`;else if("rasterarrays"===i.authority)i.path=`/${r.RASTERARRAYS_URL_PREFIX}${i.path}`;else if("3dtiles"===i.authority)i.path=`/${r.TILES3D_URL_PREFIX}${i.path}`;else{const e=/^.+\/v4\//;i.path=i.path.replace(e,"/"),i.path=`/${r.TILE_URL_VERSION}${i.path}`}const c=this._customAccessToken||function(e){for(const t of e){const e=t.match(/^access_token=(.*)$/);if(e)return e[1]}return null}(i.params)||r.ACCESS_TOKEN;return r.REQUIRE_ACCESS_TOKEN&&c&&this._skuToken&&i.params.push(`sku=${this._skuToken}`),this._makeAPIURL(i,c)}canonicalizeTileURL(e,t){const n=ui(e);if(!n.path.match(/^(\/v4\/|\/(raster|rasterarrays)\/v1\/)/)||!n.path.match(/\.[\w]+$/))return e;let i="mapbox://";if(n.path.match(/^\/raster\/v1\//)){const e=`/${r.RASTER_URL_PREFIX}/`;i+=`raster/${n.path.replace(e,"")}`}else if(n.path.match(/^\/rasterarrays\/v1\//)){const e=`/${r.RASTERARRAYS_URL_PREFIX}/`;i+=`rasterarrays/${n.path.replace(e,"")}`}else{const e=`/${r.TILE_URL_VERSION}/`;i+=`tiles/${n.path.replace(e,"")}`}let o=n.params;return t&&(o=o.filter((e=>!e.match(/^access_token=/)))),o.length&&(i+=`?${o.join("&")}`),i}canonicalizeTileset(e,t){const n=!!t&&o(t),r=[];for(const t of e.tiles||[])i(t)?r.push(this.canonicalizeTileURL(t,n)):r.push(t);return r}_makeAPIURL(e,t){const n="See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes",i=ui(r.API_URL);if(e.protocol=i.protocol,e.authority=i.authority,"http"===e.protocol){const t=e.params.indexOf("secure");t>=0&&e.params.splice(t,1)}if("/"!==i.path&&(e.path=`${i.path}${e.path}`),!r.REQUIRE_ACCESS_TOKEN)return hi(e);if(t=t||r.ACCESS_TOKEN,!this._silenceAuthErrors){if(!t)throw new Error(`An API access token is required to use Mapbox GL. ${n}`);if("s"===t[0])throw new Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${n}`)}return e.params=e.params.filter((e=>-1===e.indexOf("access_token"))),e.params.push(`access_token=${t||""}`),hi(e)}},e.dk=function(e,t){t?Ei.add(e):Ei.delete(e)},e.dl=Hr,e.dm=wi,e.dn=Si,e.dp=li,e.dq=vi,e.dr=Ai,e.ds=function(e){Ei.delete(e)},e.dt=Ci,e.du=yi,e.dv=Xn,e.dw=t,e.dx=function(e,t){Dr=e,jr=t},e.dy=function(e,t,n=!1){if(Nc===Dc||Nc===jc||Nc===Bc)throw new Error("setRTLTextPlugin cannot be called multiple times.");_c=Or.resolveURL(e),Nc=Dc,Fc=t,Vc(),n||qc()},e.dz=Hc,e.e=Or,e.e0=Lm,e.e1=wm,e.e2=jn,e.e3=Ry,e.e4=f,e.e5=ti,e.e6=function(e){let t=0;if(new Uint32Array(e,0,1)[0]!==fC){const n=new Uint32Array(e,0,7),[,,r,i,o,a]=n;t=n.byteLength+i+o+a+o,(r!==e.byteLength||t>=e.byteLength)&&cr("Invalid b3dm header information.")}return bC(e,t)},e.e7=function(e,t){const n=TC(e);for(const e of n){for(const t of e.meshes)IC(t);e.lights&&(e.lightMeshIndex=e.meshes.length,e.meshes.push(OC(e.lights,t)))}return n},e.e8=FC,e.e9=Bw,e.ea=Gc,e.eb=function(e){_r(),Lr&&Lr.then((t=>{t.keys().then((n=>{for(let r=0;re.arrayBuffer())).then((t=>bC(t,0,e)))},e.m=Hv,e.n=class extends yw{},e.o=Oo,e.p=bA,e.q=Xi,e.r=Ks,e.s=tl,e.t=el,e.u=au,e.v=hl,e.w=cr,e.x=su,e.y=ml,e.z=dl})),r(0,(function(e){function t(e){const t=e?e.url.toString():void 0;return t?performance.getEntriesByName(t):[]}function n(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return JSON.stringify(e);if(Array.isArray(e)){let t="[";for(const r of e)t+=`${n(r)},`;return`${t}]`}let t="{";for(const r of Object.keys(e).sort())t+=`${r}:${n(e[r])},`;return`${t}}`}function r(t){let r="";for(const i of e.cG)r+=`/${n(t[i])}`;return r}class i{constructor(e){this.keyCache={},this._layers={},this._layerConfigs={},e&&this.replace(e)}replace(e,t){this._layerConfigs={},this._layers={},this.update(e,[],t)}update(t,n,i){this._options=i;for(const n of t)this._layerConfigs[n.id]=n,(this._layers[n.id]=e.c$(n,this.scope,null,this._options)).compileFilter(),this.keyCache[n.id]&&delete this.keyCache[n.id];for(const e of n)delete this.keyCache[e],delete this._layerConfigs[e],delete this._layers[e];this.familiesBySource={};const o=function(e,t){const n={};for(let i=0;ithis._layers[e.id])),n=t[0];if("none"===n.visibility)continue;const r=n.source||"";let i=this.familiesBySource[r];i||(i=this.familiesBySource[r]={});const o=n.sourceLayer||"_geojsonTileLayer";let a=i[o];a||(a=i[o]=[]),a.push(t)}}}const o=1*e.dM;class a{constructor(t){const n={},r=[];for(const e in t){const i=t[e],a=n[e]={};for(const e in i.glyphs){const t=i.glyphs[+e];if(!t||0===t.bitmap.width||0===t.bitmap.height)continue;const n=t.metrics.localGlyph?o:1,s={x:0,y:0,w:t.bitmap.width+2*n,h:t.bitmap.height+2*n};r.push(s),a[e]=s}}const{w:i,h:a}=e.k(r),s=new e.dL({width:i||1,height:a||1});for(const r in t){const i=t[r];for(const t in i.glyphs){const a=i.glyphs[+t];if(!a||0===a.bitmap.width||0===a.bitmap.height)continue;const l=n[r][t],c=a.metrics.localGlyph?o:1;e.dL.copy(a.bitmap,s,{x:0,y:0},{x:l.x+c,y:l.y+c},a.bitmap)}}this.image=s,this.positions=n}}e.dK(a,"GlyphAtlas");class s{constructor(t){this.tileID=new e.aQ(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.tileZoom=t.tileZoom,this.uid=t.uid,this.zoom=t.zoom,this.lut=t.lut,this.canonical=t.tileID.canonical,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.scope=t.scope,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.promoteId=t.promoteId,this.isSymbolTile=t.isSymbolTile,this.tileTransform=e.dN(t.tileID.canonical,t.projection),this.projection=t.projection,this.brightness=t.brightness,this.extraShadowCaster=!!t.extraShadowCaster,this.tessellationStep=t.tessellationStep}parse(t,n,r,i,o){this.status="parsing",this.data=t,this.collisionBoxArray=new e.dO;const s=new e.dP(Object.keys(t.layers).sort()),c=new e.dQ(this.tileID,this.promoteId);c.bucketLayerIDs=[];const u={},h=new e.dR(256,256),d={featureIndex:c,iconDependencies:{},patternDependencies:{},glyphDependencies:{},lineAtlas:h,availableImages:r,brightness:this.brightness},f=n.familiesBySource[this.source];for(const n in f){const i=t.layers[n];if(!i)continue;let o=!1,a=!1,h=!1;for(const e of f[n])"symbol"===e[0].type?o=!0:a=!0,e[0].is3D()&&"model"!==e[0].type&&(h=!0);if(this.extraShadowCaster&&!h)continue;if(!0===this.isSymbolTile&&!o)continue;if(!1===this.isSymbolTile&&!a)continue;1===i.version&&e.w(`Vector tile source "${this.source}" layer "${n}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const p=s.encode(n),m=[];for(let e=0;e=t.maxzoom||"none"!==t.visibility&&(l(e,this.zoom,d.brightness,r),(u[t.id]=t.createBucket({index:c.bucketLayerIDs.length,layers:e,zoom:this.zoom,lut:this.lut,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:p,sourceID:this.source,projection:this.projection.spec,tessellationStep:this.tessellationStep})).populate(m,d,this.tileID.canonical,this.tileTransform),c.bucketLayerIDs.push(e.map((e=>e.id)))))}}let p,m,g,y;h.trim();const v={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},b=()=>{if(p)return this.status="done",o(p);if(this.extraShadowCaster)this.status="done",o(null,{buckets:e.dJ(u).filter((e=>!e.isEmpty())),featureIndex:c,collisionBoxArray:null,glyphAtlasImage:null,lineAtlas:null,imageAtlas:null,brightness:d.brightness,glyphMap:null,iconMap:null,glyphPositions:null});else if(m&&g&&y){const t=new a(m),n=new e.dT(g,y,this.lut);for(const i in u){const o=u[i];if(o instanceof e.dU)l(o.layers,this.zoom,d.brightness,r),e.dV(o,m,t.positions,g,n.iconPositions,this.showCollisionBoxes,r,this.tileID.canonical,this.tileZoom,this.projection,this.brightness);else if(o.hasPattern&&(o instanceof e.dW||o instanceof e.dX||o instanceof e.c0)){l(o.layers,this.zoom,d.brightness,r);const e=n.patternPositions;o.addFeatures(d,this.tileID.canonical,e,r,this.tileTransform,this.brightness)}}this.status="done",o(null,{buckets:e.dJ(u).filter((e=>!e.isEmpty())),featureIndex:c,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,lineAtlas:h,imageAtlas:n,brightness:d.brightness})}};if(!this.extraShadowCaster){const t=e.dS(d.glyphDependencies,(e=>Object.keys(e).map(Number)));Object.keys(t).length?i.send("getGlyphs",{uid:this.uid,stacks:t,scope:this.scope},((e,t)=>{p||(p=e,m=t,b())}),void 0,!1,v):m={};const n=Object.keys(d.iconDependencies);n.length?i.send("getImages",{icons:n,source:this.source,scope:this.scope,tileID:this.tileID,type:"icons"},((e,t)=>{p||(p=e,g=t,b())}),void 0,!1,v):g={};const r=Object.keys(d.patternDependencies);r.length?i.send("getImages",{icons:r,source:this.source,scope:this.scope,tileID:this.tileID,type:"patterns"},((e,t)=>{p||(p=e,y=t,b())}),void 0,!1,v):y={}}b()}}function l(t,n,r,i){const o=new e.Y(n,{brightness:r});for(const e of t)e.recalculate(o,i)}class c extends e.E{constructor(t,n,r,i,o,a){super(),this.actor=t,this.layerIndex=n,this.availableImages=r,this.loadVectorData=o||e.aq,this.loading={},this.loaded={},this.deduped=new e.ap(t.scheduler),this.isSpriteLoaded=i,this.scheduler=t.scheduler,this.brightness=a}loadTile(n,r){const i=n.uid,o=n&&n.request,a=o&&o.collectResourceTiming,l=this.loading[i]=new s(n);l.abort=this.loadVectorData(n,((s,c)=>{const u=!this.loading[i];if(delete this.loading[i],u||s||!c)return l.status="done",u||(this.loaded[i]=l),r(s);const h=c.rawData,d={};c.expires&&(d.expires=c.expires),c.cacheControl&&(d.cacheControl=c.cacheControl),l.vectorTile=c.vectorTile||new e.dY(new e.dZ(h));const f=()=>{l.parse(l.vectorTile,this.layerIndex,this.availableImages,this.actor,((n,i)=>{if(n||!i)return r(n);const s={};if(a){const e=t(o);e.length>0&&(s.resourceTiming=JSON.parse(JSON.stringify(e)))}r(null,e.Q({rawTileData:h.slice(0)},i,d,s))}))};this.isSpriteLoaded?f():this.once("isSpriteLoaded",(()=>{if(this.scheduler){const e={type:"parseTile",isSymbolTile:n.isSymbolTile,zoom:n.tileZoom};this.scheduler.add(f,e)}else f()})),this.loaded=this.loaded||{},this.loaded[i]=l}))}reloadTile(t,n){const r=this.loaded,i=t.uid;if(r&&r[i]){const o=r[i];o.showCollisionBoxes=t.showCollisionBoxes,o.projection=t.projection,o.brightness=t.brightness,o.tileTransform=e.dN(t.tileID.canonical,t.projection),o.extraShadowCaster=t.extraShadowCaster,o.lut=t.lut;const a=(e,t)=>{const r=o.reloadCallback;r&&(delete o.reloadCallback,o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,r)),n(e,t)};"parsing"===o.status?o.reloadCallback=a:"done"===o.status&&(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,a):a())}else n(null,void 0)}abortTile(e,t){const n=e.uid,r=this.loading[n];r&&(r.abort&&r.abort(),delete this.loading[n]),t()}removeTile(e,t){const n=this.loaded,r=e.uid;n&&n[r]&&delete n[r],t()}}class u{loadTile(t,n){const{uid:r,encoding:i,rawImageData:o,padding:a}=t,s=ImageBitmap&&o instanceof ImageBitmap?this.getImageData(o,a):o;n(null,new e.d_(r,s,i,a<1))}getImageData(e,t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);const n=this.offscreenCanvasContext.getImageData(-t,-t,e.width+2*t,e.height+2*t);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),n}}e.d$.setPbf(e.dZ);class h{decodeRasterArray({task:t,buffer:n},r){e.d$.performDecoding(n,t).then((e=>{r(null,e)}),(e=>{r(e)}))}}const d=e.e0.prototype.toGeoJSON;let f=class{constructor(t){this._feature=t,this.extent=e.a4,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10))}loadGeometry(){if(1===this._feature.type){const t=[];for(const n of this._feature.geometry)t.push([new e.P(n[0],n[1])]);return t}{const t=[];for(const n of this._feature.geometry){const r=[];for(const t of n)r.push(new e.P(t[0],t[1]));t.push(r)}return t}}toGeoJSON(e,t,n){return d.call(this,e,t,n)}},p=class{constructor(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.a4,this.length=t.length,this._features=t}feature(e){return new f(this._features[e])}};const m=64/4096;class g{constructor(){this.features=new Map}clear(){this.features.clear()}load(e=[],t){for(const n of e){const e=n.id;if(null==e)continue;let r=this.features.get(e);r&&this.updateCache(r,t),n.geometry?(r=v(n),this.updateCache(r,t),this.features.set(e,r)):this.features.delete(e),this.updateCache(r,t)}}updateCache(e,t){for(const{canonical:n,uid:r}of Object.values(t)){const{z:i,x:o,y:a}=n;y(e,Math.pow(2,i),o,a)&&delete t[r]}}getTile(e,t,n){const r=Math.pow(2,e),i=[];for(const e of this.features.values())y(e,r,t,n)&&i.push(w(e,r,t,n));return{features:i}}getFeatures(){return[...this.features.values()]}}function y({minX:e,minY:t,maxX:n,maxY:r},i,o,a){return e<(o+1+m)/i&&t<(a+1+m)/i&&n>(o-m)/i&&r>(a-m)/i}function v(e){const{id:t,geometry:n,properties:r}=e;if(!n)return;if("GeometryCollection"===n.type)throw new Error("GeometryCollection not supported in dynamic mode.");const{type:i,coordinates:o}=n,a={id:t,type:1,geometry:[],tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0},s=a.geometry;if("Point"===i)b(o,s,a);else if("MultiPoint"===i)for(const e of o)b(e,s,a);else if("LineString"===i)a.type=2,A(o,s,a);else if("MultiLineString"===i)a.type=2,x(o,s,a);else if("Polygon"===i)a.type=3,x(o,s,a,!0);else{if("MultiPolygon"!==i)throw new Error("Input data is not a valid GeoJSON object.");a.type=3;for(const e of o)x(e,s,a,!0)}return a}function b([t,n],r,i){const o=e.ak(t);let a=e.al(n);a=a<0?0:a>1?1:a,r.push(o,a),i.minX=Math.min(i.minX,o),i.minY=Math.min(i.minY,a),i.maxX=Math.max(i.maxX,o),i.maxY=Math.max(i.maxY,a)}function A(e,t,n,r=!1,i=!1){const o=[];for(const t of e)b(t,o,n);t.push(o),r&&function(e,t){let n=0;for(let t=0,r=e.length,i=r-2;t0===t)for(let t=0,n=e.length;t=s&&d>=s||(u>=s?(h+=Math.round(m*((s-u)/p)),u=s):d>=s&&(f=h+Math.round(m*((s-u)/p)),d=s),h>=s&&f>=s||(h>=s?(u+=Math.round(p*((s-h)/m)),h=s):f>=s&&(d=u+Math.round(p*((s-h)/m)),f=s),l&&u===l[l.length-1][0]&&h===l[l.length-1][1]||(l=[[u,h]],o.push(l)),l.push([d,f])))))}}var S={exports:{}},E=e.e2,k=e.e1.VectorTileFeature,T=I;function I(e,t){this.options=t||{},this.features=e,this.length=e.length}function O(e,t){this.id="number"==typeof e.id?e.id:void 0,this.type=e.type,this.rawGeometry=1===e.type?[e.geometry]:e.geometry,this.properties=e.tags,this.extent=t||4096}I.prototype.feature=function(e){return new O(this.features[e],this.options.extent)},O.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var t=0;t>31}function N(e,t){for(var n=e.loadGeometry(),r=e.type,i=0,o=0,a=n.length,s=0;se},H=Math.fround||(q=new Float32Array(1),e=>(q[0]=+e,q[0]));var q;class G{constructor(e){this.options=Object.assign(Object.create(U),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:n,maxZoom:r}=this.options;t&&console.time("total time");const i=`prepare ${e.length} points`;t&&console.time(i),this.points=e;const o=[];for(let t=0;t=n;e--){const n=+Date.now();a=this.trees[e]=this._createTree(this._cluster(a,e)),t&&console.log("z%d: %d clusters in %dms",e,a.numItems,+Date.now()-n)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let n=((e[0]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,e[1]));let i=180===e[2]?180:((e[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,i=180;else if(n>i){const e=this.getClusters([n,r,180,o],t),a=this.getClusters([-180,r,i,o],t);return e.concat(a)}const a=this.trees[this._limitZoom(t)],s=a.range(Q(n),X(o),Q(i),X(r)),l=a.data,c=[];for(const e of s){const t=this.stride*e;c.push(l[t+5]>1?Y(l,t,this.clusterProps):this.points[l[t+3]])}return c}getChildren(e){const t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",i=this.trees[n];if(!i)throw new Error(r);const o=i.data;if(t*this.stride>=o.length)throw new Error(r);const a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=o[t*this.stride],l=o[t*this.stride+1],c=i.within(s,l,a),u=[];for(const t of c){const n=t*this.stride;o[n+4]===e&&u.push(o[n+5]>1?Y(o,n,this.clusterProps):this.points[o[n+3]])}if(0===u.length)throw new Error(r);return u}getLeaves(e,t,n){t=t||10,n=n||0;const r=[];return this._appendLeaves(r,e,t,n,0),r}getTile(e,t,n){const r=this.trees[this._limitZoom(e)],i=Math.pow(2,e),{extent:o,radius:a}=this.options,s=a/o,l=(n-s)/i,c=(n+1+s)/i,u={features:[]};return this._addTileFeatures(r.range((t-s)/i,l,(t+1+s)/i,c),r.data,t,n,i,u),0===t&&this._addTileFeatures(r.range(1-s/i,l,1,c),r.data,i,n,i,u),t===i-1&&this._addTileFeatures(r.range(0,l,s/i,c),r.data,-1,n,i,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,r,i){const o=this.getChildren(t);for(const t of o){const o=t.properties;if(o&&o.cluster?i+o.point_count<=r?i+=o.point_count:i=this._appendLeaves(e,o.cluster_id,n,r,i):i1;let l,c,u;if(s)l=W(t,e,this.clusterProps),c=t[e],u=t[e+1];else{const n=this.points[t[e+3]];l=n.properties;const[r,i]=n.geometry.coordinates;c=Q(r),u=X(i)}const h={type:1,geometry:[[Math.round(this.options.extent*(c*i-n)),Math.round(this.options.extent*(u*i-r))]],tags:l};let d;d=s||this.options.generateId?t[e+3]:this.points[t[e+3]].id,void 0!==d&&(h.id=d),o.features.push(h)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:n,extent:r,reduce:i,minPoints:o}=this.options,a=n/(r*Math.pow(2,t)),s=e.data,l=[],c=this.stride;for(let n=0;nt&&(f+=s[n+5])}if(f>d&&f>=o){let e,o=r*d,a=u*d,p=-1;const m=(n/c<<5)+(t+1)+this.points.length;for(const r of h){const l=r*c;if(s[l+2]<=t)continue;s[l+2]=t;const u=s[l+5];o+=s[l]*u,a+=s[l+1]*u,s[l+4]=m,i&&(e||(e=this._map(s,n,!0),p=this.clusterProps.length,this.clusterProps.push(e)),i(e,this._map(s,l)))}s[n+4]=m,l.push(o/f,a/f,1/0,m,-1,f),i&&l.push(p)}else{for(let e=0;e1)for(const e of h){const n=e*c;if(!(s[n+2]<=t)){s[n+2]=t;for(let e=0;e>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,n){if(e[t+5]>1){const r=this.clusterProps[e[t+6]];return n?Object.assign({},r):r}const r=this.points[e[t+3]].properties,i=this.options.map(r);return n&&i===r?Object.assign({},i):i}}function Y(e,t,n){return{type:"Feature",id:e[t+3],properties:W(e,t,n),geometry:{type:"Point",coordinates:[(r=e[t],360*(r-.5)),J(e[t+1])]}};var r}function W(e,t,n){const r=e[t+5],i=r>=1e4?`${Math.round(r/1e3)}k`:r>=1e3?Math.round(r/100)/10+"k":r,o=e[t+6],a=-1===o?{}:Object.assign({},n[o]);return Object.assign(a,{cluster:!0,cluster_id:e[t+3],point_count:r,point_count_abbreviated:i})}function Q(e){return e/360+.5}function X(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function J(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function Z(e,t,n,r){let i=r;const o=t+(n-t>>1);let a,s=n-t;const l=e[t],c=e[t+1],u=e[n],h=e[n+1];for(let r=t+3;ri)a=r,i=t;else if(t===i){const e=Math.abs(r-o);er&&(a-t>3&&Z(e,t,a,r),e[a+2]=i,n-a>3&&Z(e,a,n,r))}function K(e,t,n,r,i,o){let a=i-n,s=o-r;if(0!==a||0!==s){const l=((e-n)*a+(t-r)*s)/(a*a+s*s);l>1?(n=i,r=o):l>0&&(n+=a*l,r+=s*l)}return a=e-n,s=t-r,a*a+s*s}function $(e,t,n,r){const i={id:null==e?null:e,type:t,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if("Point"===t||"MultiPoint"===t||"LineString"===t)ee(i,n);else if("Polygon"===t)ee(i,n[0]);else if("MultiLineString"===t)for(const e of n)ee(i,e);else if("MultiPolygon"===t)for(const e of n)ee(i,e[0]);return i}function ee(e,t){for(let n=0;n0&&(a+=r?(i*l-s*o)/2:Math.sqrt(Math.pow(s-i,2)+Math.pow(l-o,2))),i=s,o=l}const s=t.length-3;t[2]=1,Z(t,0,s,n),t[s+2]=1,t.size=Math.abs(a),t.start=0,t.end=t.size}function ie(e,t,n,r){for(let i=0;i1?1:n}function se(e,t,n,r,i,o,a,s){if(r/=t,o>=(n/=t)&&a=r)return null;const l=[];for(const t of e){const e=t.geometry;let o=t.type;const a=0===i?t.minX:t.minY,c=0===i?t.maxX:t.maxY;if(a>=n&&c=r)continue;let u=[];if("Point"===o||"MultiPoint"===o)le(e,u,n,r,i);else if("LineString"===o)ce(e,u,n,r,i,!1,s.lineMetrics);else if("MultiLineString"===o)he(e,u,n,r,i,!1);else if("Polygon"===o)he(e,u,n,r,i,!0);else if("MultiPolygon"===o)for(const t of e){const e=[];he(t,e,n,r,i,!0),e.length&&u.push(e)}if(u.length){if(s.lineMetrics&&"LineString"===o){for(const e of u)l.push($(t.id,o,e,t.tags));continue}"LineString"!==o&&"MultiLineString"!==o||(1===u.length?(o="LineString",u=u[0]):o="MultiLineString"),"Point"!==o&&"MultiPoint"!==o||(o=3===u.length?"Point":"MultiPoint"),l.push($(t.id,o,u,t.tags))}}return l.length?l:null}function le(e,t,n,r,i){for(let o=0;o=n&&a<=r&&de(t,e[o],e[o+1],e[o+2])}}function ce(e,t,n,r,i,o,a){let s=ue(e);const l=0===i?fe:pe;let c,u,h=e.start;for(let d=0;dn&&(u=l(s,f,p,g,y,n),a&&(s.start=h+c*u)):v>r?b=n&&(u=l(s,f,p,g,y,n),A=!0),b>r&&v<=r&&(u=l(s,f,p,g,y,r),A=!0),!o&&A&&(a&&(s.end=h+c*u),t.push(s),s=ue(e)),a&&(h+=c)}let d=e.length-3;const f=e[d],p=e[d+1],m=e[d+2],g=0===i?f:p;g>=n&&g<=r&&de(s,f,p,m),d=s.length-3,o&&d>=3&&(s[d]!==s[0]||s[d+1]!==s[1])&&de(s,s[0],s[1],s[2]),s.length&&t.push(s)}function ue(e){const t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function he(e,t,n,r,i,o){for(const a of e)ce(a,t,n,r,i,o,!1)}function de(e,t,n,r){e.push(t,n,r)}function fe(e,t,n,r,i,o){const a=(o-t)/(r-t);return de(e,o,n+(i-n)*a,1),a}function pe(e,t,n,r,i,o){const a=(o-n)/(i-n);return de(e,t+(r-t)*a,o,1),a}function me(e,t){const n=[];for(let r=0;r0&&t.size<(i?a:r))return void(n.numPoints+=t.length/3);const s=[];for(let e=0;ea)&&(n.numSimplified++,s.push(t[e],t[e+1])),n.numPoints++;i&&function(e,t){let n=0;for(let t=0,r=e.length,i=r-2;t0===t)for(let t=0,n=e.length;t24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");let r=function(e,t){const n=[];if("FeatureCollection"===e.type)for(let r=0;r1&&console.time("creation"),d=this.tiles[h]=be(e,t,n,r,l),this.tileCoords.push({z:t,x:n,y:r}),c)){c>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,n,r,d.numFeatures,d.numPoints,d.numSimplified),console.timeEnd("creation"));const e=`z${t}`;this.stats[e]=(this.stats[e]||0)+1,this.total++}if(d.source=e,null==i){if(t===l.indexMaxZoom||d.numPoints<=l.indexMaxPoints)continue}else{if(t===l.maxZoom||t===i)continue;if(null!=i){const e=i-t;if(n!==o>>e||r!==a>>e)continue}}if(d.source=null,0===e.length)continue;c>1&&console.time("clipping");const f=.5*l.buffer/l.extent,p=.5-f,m=.5+f,g=1+f;let y=null,v=null,b=null,A=null,x=se(e,u,n-f,n+m,0,d.minX,d.maxX,l),w=se(e,u,n+p,n+g,0,d.minX,d.maxX,l);e=null,x&&(y=se(x,u,r-f,r+m,1,d.minY,d.maxY,l),v=se(x,u,r+p,r+g,1,d.minY,d.maxY,l),x=null),w&&(b=se(w,u,r-f,r+m,1,d.minY,d.maxY,l),A=se(w,u,r+p,r+g,1,d.minY,d.maxY,l),w=null),c>1&&console.timeEnd("clipping"),s.push(y||[],t+1,2*n,2*r),s.push(v||[],t+1,2*n,2*r+1),s.push(b||[],t+1,2*n+1,2*r),s.push(A||[],t+1,2*n+1,2*r+1)}}getTile(e,t,n){e=+e,t=+t,n=+n;const r=this.options,{extent:i,debug:o}=r;if(e<0||e>24)return null;const a=1<1&&console.log("drilling down to z%d-%d-%d",e,t,n);let l,c=e,u=t,h=n;for(;!l&&c>0;)c--,u>>=1,h>>=1,l=this.tiles[Se(c,u,h)];return l&&l.source?(o>1&&(console.log("found parent tile z%d-%d-%d",c,u,h),console.time("drilling down")),this.splitTile(l.source,c,u,h,e,t,n),o>1&&console.timeEnd("drilling down"),this.tiles[s]?ye(this.tiles[s],i):null):null}}function Se(e,t,n){return 32*((1<{if(a||!s)return r(a);if("object"!=typeof s)return r(new Error(`Input data given to '${n.source}' is not a valid GeoJSON object.`));{try{if(n.filter){const t=e.z(n.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===t.result)throw new Error(t.value.map((e=>`${e.key}: ${e.message}`)).join(", "));s.features=s.features.filter((e=>t.value.evaluate({zoom:0},e)))}n.dynamic?("Feature"===s.type&&(s={type:"FeatureCollection",features:[s]}),n.append||(this._dynamicIndex.clear(),this.loaded={}),this._dynamicIndex.load(s.features,this.loaded),n.cluster&&(s.features=this._dynamicIndex.getFeatures())):this.loaded={},this._geoJSONIndex=n.cluster?new G(function({superclusterOptions:t,clusterProperties:n}){if(!n||!t)return t;const r={},i={},o={accumulated:null,zoom:0},a={properties:null},s=Object.keys(n);for(const t of s){const[o,a]=n[t],s=e.z(a),l=e.z("string"==typeof o?[o,["accumulated"],["get",t]]:o);r[t]=s.value,i[t]=l.value}return t.map=e=>{a.properties=e;const t={};for(const e of s)t[e]=r[e].evaluate(o,a);return t},t.reduce=(e,t)=>{a.properties=t;for(const t of s)o.accumulated=e[t],e[t]=i[t].evaluate(o,a)},t}(n)).load(s.features):n.dynamic?this._dynamicIndex:function(e,t){return new Ce(e,t)}(s,n.geojsonVtOptions)}catch(e){return r(e)}const a={};if(o){const e=t(i);e&&(a.resourceTiming={},a.resourceTiming[n.source]=JSON.parse(JSON.stringify(e)))}r(null,a)}}))}reloadTile(e,t){const n=this.loaded,r=e.uid;return n&&n[r]?e.partial?t(null,void 0):super.reloadTile(e,t):this.loadTile(e,t)}loadGeoJSON(t,n){if(t.request)e.h(t.request,n);else{if("string"!=typeof t.data)return n(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));try{return n(null,JSON.parse(t.data))}catch(e){return n(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(e,t){try{t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))}catch(e){t(e)}}getClusterChildren(e,t){try{t(null,this._geoJSONIndex.getChildren(e.clusterId))}catch(e){t(e)}}getClusterLeaves(e,t){try{t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))}catch(e){t(e)}}}class Te{constructor(t,n){this.tileID=new e.aQ(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.tileZoom=t.tileZoom,this.uid=t.uid,this.zoom=t.zoom,this.canonical=t.tileID.canonical,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.projection=t.projection,this.brightness=n}parse(t,n,r,i){this.status="parsing";const o=new e.aQ(r.tileID.overscaledZ,r.tileID.wrap,r.tileID.canonical.z,r.tileID.canonical.x,r.tileID.canonical.y),a={},s=n.familiesBySource[r.source],l=new e.dQ(o,r.promoteId);return l.bucketLayerIDs=[],l.is3DTile=!0,e.e6(t).then((t=>{if(!t)return i(new Error("Could not parse tile"));const n=e.e7(t,1/e.b7(r.tileID.canonical)),c=t.json.extensionsUsed&&t.json.extensionsUsed.includes("MAPBOX_mesh_features")||t.json.asset.extras&&t.json.asset.extras.MAPBOX_mesh_features,u=t.json.extensionsUsed&&t.json.extensionsUsed.includes("EXT_meshopt_compression"),h=new e.Y(this.zoom,{brightness:this.brightness});for(const t in s)for(const r of s[t]){const t=r[0];l.bucketLayerIDs.push(r.map((e=>e.id))),t.recalculate(h,[]);const i=new e.e8(n,o,c,u,this.brightness,l);c||(i.needsUpload=!0),a[t.fqid]=i,i.evaluate(t)}this.status="done",i(null,{buckets:a,featureIndex:l})})).catch((e=>i(new Error(e.message))))}}class Ie{constructor(e,t,n,r,i,o){this.actor=e,this.layerIndex=t,this.brightness=o,this.loading={},this.loaded={}}loadTile(t,n){const r=t.uid,i=this.loading[r]=new Te(t,this.brightness);e.e5(t.request,((e,o)=>{const a=!this.loading[r];if(delete this.loading[r],a||e)return i.status="done",a||(this.loaded[r]=i),n(e);if(!o||0===o.byteLength)return i.status="done",this.loaded[r]=i,n();i.parse(o,this.layerIndex,t,((e,t)=>{i.status="done",this.loaded=this.loaded||{},this.loaded[r]=i,e||!t?n(e):n(null,t)}))}))}reloadTile(e,t){const n=this.loaded,r=e.uid;if(n&&n[r]){const i=n[r];i.projection=e.projection,i.brightness=e.brightness;const o=(n,r)=>{i.reloadCallback&&(delete i.reloadCallback,this.loadTile(e,t)),t(n,r)};"parsing"===i.status?i.reloadCallback=o:"done"===i.status&&this.loadTile(e,t)}}abortTile(e,t){const n=e.uid;this.loading[n]&&delete this.loading[n],t()}removeTile(e,t){const n=this.loaded,r=e.uid;n&&n[r]&&delete n[r],t()}}class Oe{constructor(t){this.self=t,this.actor=new e.e9(t,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=e.aK({name:"mercator"}),this.workerSourceTypes={vector:c,geojson:ke,"batched-model":Ie},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(e,t)=>{if(this.workerSourceTypes[e])throw new Error(`Worker source with name "${e}" already registered.`);this.workerSourceTypes[e]=t},this.self.registerRTLTextPlugin=t=>{if(e.ea.isParsed())throw new Error("RTL text plugin already registered.");e.ea.applyArabicShaping=t.applyArabicShaping,e.ea.processBidirectionalText=t.processBidirectionalText,e.ea.processStyledBidirectionalText=t.processStyledBidirectionalText}}clearCaches(e,t,n){delete this.layerIndexes[e],delete this.availableImages[e],delete this.workerSources[e],delete this.demWorkerSources[e],delete this.rasterArrayWorkerSource,n()}checkIfReady(e,t,n){n()}setReferrer(e,t){this.referrer=t}spriteLoaded(t,{scope:n,isLoaded:r}){if(this.isSpriteLoaded[t]||(this.isSpriteLoaded[t]={}),this.isSpriteLoaded[t][n]=r,this.workerSources[t]&&this.workerSources[t][n])for(const i in this.workerSources[t][n]){const o=this.workerSources[t][n][i];for(const t in o){const n=o[t];n instanceof c&&(n.isSpriteLoaded=r,n.fire(new e.g("isSpriteLoaded")))}}}setImages(e,{scope:t,images:n},r){if(this.availableImages[e]||(this.availableImages[e]={}),this.availableImages[e][t]=n,this.workerSources[e]&&this.workerSources[e][t]){for(const r in this.workerSources[e][t]){const i=this.workerSources[e][t][r];for(const e in i)i[e].availableImages=n}r()}else r()}setProjection(t,n){this.projections[t]=e.aK(n)}setBrightness(e,t,n){this.brightness=t,n()}setLayers(e,t,n){this.getLayerIndex(e,t.scope).replace(t.layers,t.options),n()}updateLayers(e,t,n){this.getLayerIndex(e,t.scope).update(t.layers,t.removedIds,t.options),n()}loadTile(e,t,n){t.projection=this.projections[e]||this.defaultProjection,this.getWorkerSource(e,t.type,t.source,t.scope).loadTile(t,n)}loadDEMTile(e,t,n){this.getDEMWorkerSource(e,t.source,t.scope).loadTile(t,n)}decodeRasterArray(e,t,n){this.getRasterArrayWorkerSource().decodeRasterArray(t,n)}reloadTile(e,t,n){t.projection=this.projections[e]||this.defaultProjection,this.getWorkerSource(e,t.type,t.source,t.scope).reloadTile(t,n)}abortTile(e,t,n){this.getWorkerSource(e,t.type,t.source,t.scope).abortTile(t,n)}removeTile(e,t,n){this.getWorkerSource(e,t.type,t.source,t.scope).removeTile(t,n)}removeSource(e,t,n){if(!(this.workerSources[e]&&this.workerSources[e][t.scope]&&this.workerSources[e][t.scope][t.type]&&this.workerSources[e][t.scope][t.type][t.source]))return;const r=this.workerSources[e][t.scope][t.type][t.source];delete this.workerSources[e][t.scope][t.type][t.source],void 0!==r.removeSource?r.removeSource(t,n):n()}loadWorkerSource(e,t,n){try{this.self.importScripts(t.url),n()}catch(e){n(e.toString())}}syncRTLPluginState(t,n,r){try{e.ea.setState(n);const t=e.ea.getPluginURL();if(e.ea.isLoaded()&&!e.ea.isParsed()&&null!=t){this.self.importScripts(t);const n=e.ea.isParsed();r(n?void 0:new Error(`RTL Text Plugin failed to import scripts from ${t}`),n)}}catch(e){r(e.toString())}}setDracoUrl(e,t){this.dracoUrl=t}getAvailableImages(e,t){this.availableImages[e]||(this.availableImages[e]={});let n=this.availableImages[e][t];return n||(n=[]),n}getLayerIndex(e,t){this.layerIndexes[e]||(this.layerIndexes[e]={});let n=this.layerIndexes[e][t];return n||(n=this.layerIndexes[e][t]=new i,n.scope=t),n}getWorkerSource(e,t,n,r){if(this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][r]||(this.workerSources[e][r]={}),this.workerSources[e][r][t]||(this.workerSources[e][r][t]={}),this.isSpriteLoaded[e]||(this.isSpriteLoaded[e]={}),!this.workerSources[e][r][t][n]){const i={send:(t,n,r,i,o,a)=>{this.actor.send(t,n,r,e,o,a)},scheduler:this.actor.scheduler};this.workerSources[e][r][t][n]=new this.workerSourceTypes[t](i,this.getLayerIndex(e,r),this.getAvailableImages(e,r),this.isSpriteLoaded[e][r],void 0,this.brightness)}return this.workerSources[e][r][t][n]}getDEMWorkerSource(e,t,n){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][n]||(this.demWorkerSources[e][n]={}),this.demWorkerSources[e][n][t]||(this.demWorkerSources[e][n][t]=new u),this.demWorkerSources[e][n][t]}getRasterArrayWorkerSource(){return this.rasterArrayWorkerSource||(this.rasterArrayWorkerSource=new h),this.rasterArrayWorkerSource}enforceCacheSizeLimit(t,n){e.eb(n)}getWorkerPerformanceMetrics(e,t,n){n(void 0,void 0)}}return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new Oe(self)),Oe})),r(0,(function(e){var t=n;function n(e){return!function(e){return"undefined"!=typeof window&&"undefined"!=typeof document?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var e,t,n=new Blob([""],{type:"text/javascript"}),r=URL.createObjectURL(n);try{t=new Worker(r),e=!0}catch(t){e=!1}return t&&t.terminate(),URL.revokeObjectURL(r),e}()?function(){var e=document.createElement("canvas");e.width=e.height=1;var t=e.getContext("2d");if(!t)return!1;var n=t.getImageData(0,0,1,1);return n&&n.width===e.width}()?(t=e&&e.failIfMajorPerformanceCaveat,void 0===r[t]&&(r[t]=function(e){var t,r=function(e){var t=document.createElement("canvas"),r=Object.create(n.webGLContextAttributes);return r.failIfMajorPerformanceCaveat=e,t.getContext("webgl2",r)}(e);if(!r)return!1;try{t=r.createShader(r.VERTEX_SHADER)}catch(e){return!1}return!(!t||r.isContextLost())&&(r.shaderSource(t,"void main() {}"),r.compileShader(t),!0===r.getShaderParameter(t,r.COMPILE_STATUS))}(t)),r[t]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL2 support"):"insufficient Canvas/getImageData support":"insufficient worker support":"not a browser";var t}(e)}var r={};function i(e,t,n){const r=document.createElement(e);return null!=t&&(r.className=t),n&&n.appendChild(r),r}function o(e,t,n){const r=document.createElementNS("http://www.w3.org/2000/svg",e);for(const e of Object.keys(t))r.setAttributeNS(null,e,String(t[e]));return n&&n.appendChild(r),r}n.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};const a="undefined"!=typeof document?document.documentElement&&document.documentElement.style:null,s=a&&void 0!==a.userSelect?"userSelect":"WebkitUserSelect";let l;function c(){a&&s&&(l=a[s],a[s]="none")}function u(){a&&s&&(a[s]=l)}function h(e){e.preventDefault(),e.stopPropagation(),window.removeEventListener("click",h,!0)}function d(){window.addEventListener("click",h,!0),window.setTimeout((()=>{window.removeEventListener("click",h,!0)}),0)}function f(e,t){const n=e.getBoundingClientRect();return g(e,n,t)}function p(e,t){const n=e.getBoundingClientRect(),r=[];for(let i=0;i=0?0:e.button}function g(t,n,r){const i=t.offsetWidth===n.width?1:t.offsetWidth/n.width;return new e.P((r.clientX-n.left)*i,(r.clientY-n.top)*i)}class y{constructor(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSourceCaches={},this._updatedPaintProps=new Set,this._updatedImages=new Set}isDirty(){return this._changed}setDirty(){this._changed=!0}getUpdatedSourceCaches(){return this._updatedSourceCaches}updateSourceCache(e,t){this._updatedSourceCaches[e]=t,this.setDirty()}discardSourceCacheUpdate(e){delete this._updatedSourceCaches[e]}updateLayer(e){const t=e.scope;this._updatedLayers[t]=this._updatedLayers[t]||new Set,this._updatedLayers[t].add(e.id),this.setDirty()}removeLayer(e){const t=e.scope;this._removedLayers[t]=this._removedLayers[t]||{},this._updatedLayers[t]=this._updatedLayers[t]||new Set,this._removedLayers[t][e.id]=e,this._updatedLayers[t].delete(e.id),this._updatedPaintProps.delete(e.fqid),this.setDirty()}getRemovedLayer(e){return this._removedLayers[e.scope]?this._removedLayers[e.scope][e.id]:null}discardLayerRemoval(e){this._removedLayers[e.scope]&&delete this._removedLayers[e.scope][e.id]}getLayerUpdatesByScope(){const e={};for(const t in this._updatedLayers)e[t]=e[t]||{},e[t].updatedIds=Array.from(this._updatedLayers[t].values());for(const t in this._removedLayers)e[t]=e[t]||{},e[t].removedIds=Object.keys(this._removedLayers[t]);return e}getUpdatedPaintProperties(){return this._updatedPaintProps}updatePaintProperties(e){this._updatedPaintProps.add(e.fqid),this.setDirty()}getUpdatedImages(){return Array.from(this._updatedImages.values())}updateImage(e){this._updatedImages.add(e),this.setDirty()}resetUpdatedImages(){this._updatedImages.clear()}reset(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSourceCaches={},this._updatedPaintProps.clear(),this._updatedImages.clear()}}const v={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class b{constructor(e,t,n,r,i,o){this.length=t.length,this.attributes=n,this.itemSize=t.bytesPerElement,this.dynamicDraw=r,this.instanceCount=o,this.context=e;const a=e.gl;this.buffer=a.createBuffer(),e.bindVertexBuffer.set(this.buffer),a.bufferData(a.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?a.DYNAMIC_DRAW:a.STATIC_DRAW),this.dynamicDraw||i||t.destroy()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){const t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let n=0;n0&&e.vertexAttribDivisor(o,n)}}destroy(){const e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}}class A{constructor(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class x extends A{getDefault(){return e.C.transparent}set(e){const t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class w extends A{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}}class C extends A{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}}class S extends A{getDefault(){return[!0,!0,!0,!0]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class E extends A{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}}class k extends A{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}}class T extends A{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){const t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)}}class I extends A{getDefault(){const e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)}}class O extends A{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}}class R extends A{getDefault(){return[0,1]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)}}class M extends A{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}}class P extends A{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}}class D extends A{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}}class j extends A{getDefault(){const e=this.gl;return[e.ONE,e.ZERO,e.ONE,e.ZERO]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.blendFuncSeparate(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class B extends A{getDefault(){return e.C.transparent}set(e){const t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class L extends A{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquationSeparate(e,e),this.current=e,this.dirty=!1)}}class F extends A{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}}class N extends A{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}}class _ extends A{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}}let z=class extends A{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}};class V extends A{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}}class U extends A{getDefault(){const e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class H extends A{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}}class q extends A{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class G extends A{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}}class Y extends A{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class W extends A{getDefault(){return null}set(e){const t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class Q extends A{getDefault(){return null}set(e){this.gl&&(e!==this.current||this.dirty)&&(this.gl.bindVertexArray(e),this.current=e,this.dirty=!1)}}class X extends A{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}}class J extends A{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}}class Z extends A{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}}class K extends A{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}}class $ extends K{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}}class ee extends K{attachment(){return this.gl.DEPTH_ATTACHMENT}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,this.attachment(),t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class te extends K{attachment(){return this.gl.DEPTH_ATTACHMENT}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,this.attachment(),t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}}class ne extends ee{attachment(){return this.gl.DEPTH_STENCIL_ATTACHMENT}}class re{constructor(e,t,n,r,i){this.context=e,this.width=t,this.height=n;const o=e.gl,a=this.framebuffer=o.createFramebuffer();r&&(this.colorAttachment=new $(e,a)),i&&(this.depthAttachmentType=i,this.depthAttachment="renderbuffer"===i?new ee(e,a):new te(e,a))}destroy(){const e=this.context.gl;if(this.colorAttachment){const t=this.colorAttachment.get();t&&e.deleteTexture(t)}if(this.depthAttachment&&this.depthAttachmentType)if("renderbuffer"===this.depthAttachmentType){const t=this.depthAttachment.get();t&&e.deleteRenderbuffer(t)}else{const t=this.depthAttachment.get();t&&e.deleteTexture(t)}e.deleteFramebuffer(this.framebuffer)}}class ie{constructor(e,t){this.gl=e,this.clearColor=new x(this),this.clearDepth=new w(this),this.clearStencil=new C(this),this.colorMask=new S(this),this.depthMask=new E(this),this.stencilMask=new k(this),this.stencilFunc=new T(this),this.stencilOp=new I(this),this.stencilTest=new O(this),this.depthRange=new R(this),this.depthTest=new M(this),this.depthFunc=new P(this),this.blend=new D(this),this.blendFunc=new j(this),this.blendColor=new B(this),this.blendEquation=new L(this),this.cullFace=new F(this),this.cullFaceSide=new N(this),this.frontFace=new _(this),this.program=new z(this),this.activeTexture=new V(this),this.viewport=new U(this),this.bindFramebuffer=new H(this),this.bindRenderbuffer=new q(this),this.bindTexture=new G(this),this.bindVertexBuffer=new Y(this),this.bindElementBuffer=new W(this),this.bindVertexArrayOES=new Q(this),this.pixelStoreUnpack=new X(this),this.pixelStoreUnpackPremultiplyAlpha=new J(this),this.pixelStoreUnpackFlipY=new Z(this),this.options=t?{...t}:{},this.options.extTextureFilterAnisotropicForceOff||(this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT))),this.extDebugRendererInfo=e.getExtension("WEBGL_debug_renderer_info"),this.extDebugRendererInfo&&(this.renderer=e.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL),this.vendor=e.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)),this.options.extTextureFloatLinearForceOff||(this.extTextureFloatLinear=e.getExtension("OES_texture_float_linear")),this.extRenderToTextureHalfFloat=e.getExtension("EXT_color_buffer_half_float"),this.extTimerQuery=e.getExtension("EXT_disjoint_timer_query_webgl2"),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),this.maxPointSize=e.getParameter(e.ALIASED_POINT_SIZE_RANGE)[1]}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArrayOES.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(t,n,r){return new e.I(this,t,n,r)}createVertexBuffer(e,t,n,r,i){return new b(this,e,t,n,r,i)}createRenderbuffer(e,t,n){const r=this.gl,i=r.createRenderbuffer();return this.bindRenderbuffer.set(i),r.renderbufferStorage(r.RENDERBUFFER,e,t,n),this.bindRenderbuffer.set(null),i}createFramebuffer(e,t,n,r){return new re(this,e,t,n,r)}clear({color:e,depth:t,stencil:n,colorMask:r}){const i=this.gl;let o=0;e&&(o|=i.COLOR_BUFFER_BIT,this.clearColor.set(e),r?this.colorMask.set(r):this.colorMask.set([!0,!0,!0,!0])),void 0!==t&&(o|=i.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(t),this.depthMask.set(!0)),void 0!==n&&(o|=i.STENCIL_BUFFER_BIT,this.clearStencil.set(n),this.stencilMask.set(255)),i.clear(o)}setCullFace(e){!1===e.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(e){e.func!==this.gl.ALWAYS||e.mask?(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range)):this.depthTest.set(!1)}setStencilMode(e){e.test.func!==this.gl.ALWAYS||e.mask?(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask})):this.stencilTest.set(!1)}setColorMode(t){e.d(t.blendFunction,e.a.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor),t.blendEquation?this.blendEquation.set(t.blendEquation):this.blendEquation.setDefault()),this.colorMask.set(t.mask)}unbindVAO(){this.bindVertexArrayOES.set(null)}}class oe{constructor(t,n,r,i){const o={width:r[0],height:r[1],data:null},a=t.gl;this.targetColorTexture=new e.T(t,o,a.RGBA,{useMipmap:!1}),this.backgroundColorTexture=new e.T(t,o,a.RGBA,{useMipmap:!1}),this.context=t,this.updateParticleTexture(n,i),this.lastInvalidatedAt=0}updateParticleTexture(t,n){if(this.particleTextureDimension===n.width)return;(this.particleTexture0||this.particleTexture1||this.particleIndexBuffer||this.particleSegment)&&(this.particleTexture0.destroy(),this.particleTexture1.destroy(),this.particleIndexBuffer.destroy(),this.particleSegment.destroy());const r=this.context.gl,i=n.width*n.height;this.particleTexture0=new e.T(this.context,n,r.RGBA,{premultiply:!1,useMipmap:!1}),this.particleTexture1=new e.T(this.context,n,r.RGBA,{premultiply:!1,useMipmap:!1});const o=new e.S;o.reserve(i);for(let e=0;e{if(!n)return;const r=e.c(n),i=new e.M(t,void 0,void 0,r);return i.computeBoundsAndApplyParent(),i})).catch((r=>{if(r&&404===r.status)return null;this.fire(new e.f(new Error(`Could not load model ${t} from ${n}: ${r.message}`)))}))}load(t,n){this.models[n]||(this.models[n]={});const r=Object.keys(t);this.numModelsLoading[n]=(this.numModelsLoading[n]||0)+r.length;const i=[];for(const e of r)i.push(this.loadModel(e,t[e]));Promise.allSettled(i).then((t=>{for(let e=0;e{this.fire(new e.f(new Error(`Could not load models: ${t.message}`)))}))}isLoaded(){for(const e in this.numModelsLoading)if(this.numModelsLoading[e]>0)return!1;return!0}hasModel(e,t){return!!this.getModel(e,t)}getModel(e,t){return this.models[t]||(this.models[t]={}),this.models[t][e]?this.models[t][e].model:void 0}addModel(e,t,n){this.models[n]||(this.models[n]={}),this.hasModel(e,n)&&this.models[n][e].numReferences++,this.load({[e]:this.requestManager.normalizeModelURL(t)},n)}addModels(e,t){this.models[t]||(this.models[t]={});const n={};for(const r in e)this.models[t][r]={},n[r]=this.requestManager.normalizeModelURL(e[r]);this.load(n,t)}addModelsFromBucket(e,t){this.models[t]||(this.models[t]={});const n={};for(const r of e)this.hasModel(r,t)?this.models[t][r].numReferences++:n[r]=this.requestManager.normalizeModelURL(r);this.load(n,t)}removeModel(e,t){if(this.models[t]&&this.models[t][e]&&(this.models[t][e].numReferences--,0===this.models[t][e].numReferences)){const n=this.models[t][e].model;delete this.models[t][e],n.destroy()}}listModels(e){return this.models[e]||(this.models[e]={}),Object.keys(this.models[e])}upload(e,t){this.models[t]||(this.models[t]={});for(const n in this.models[t])this.models[t][n].model&&this.models[t][n].model.upload(e.context)}}function se(e){const{userImage:t}=e;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}class le extends e.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded={},this.requestors=[],this.patterns={},this.atlasImage={},this.atlasTexture={},this.dirty=!0}createScope(t){this.images[t]={},this.loaded[t]=!1,this.updatedImages[t]={},this.patterns[t]={},this.callbackDispatchedThisFrame[t]={},this.atlasImage[t]=new e.j({width:1,height:1})}isLoaded(){for(const e in this.loaded)if(!this.loaded[e])return!1;return!0}setLoaded(e,t){if(this.loaded[t]!==e&&(this.loaded[t]=e,e)){for(const{ids:e,callback:n}of this.requestors)this._notify(e,t,n);this.requestors=[]}}hasImage(e,t){return!!this.getImage(e,t)}getImage(e,t){return this.images[t][e]}addImage(e,t,n){this._validate(e,n)&&(this.images[t][e]=n)}_validate(t,n){let r=!0;return this._validateStretch(n.stretchX,n.data&&n.data.width)||(this.fire(new e.f(new Error(`Image "${t}" has invalid "stretchX" value`))),r=!1),this._validateStretch(n.stretchY,n.data&&n.data.height)||(this.fire(new e.f(new Error(`Image "${t}" has invalid "stretchY" value`))),r=!1),this._validateContent(n.content,n)||(this.fire(new e.f(new Error(`Image "${t}" has invalid "content" value`))),r=!1),r}_validateStretch(e,t){if(!e)return!0;let n=0;for(const r of e){if(r[0]o)return[new e.V(n,r,`${r} is greater than the maximum value ${o}`)]}return[]}function de(t){const n=t.valueSpec,r=e.u(t.value.type);let i,o,a,s={};const l="categorical"!==r&&void 0===t.value.property,c=!l,u="array"===e.o(t.value.stops)&&"array"===e.o(t.value.stops[0])&&"object"===e.o(t.value.stops[0][0]),h=ce({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===r)return[new e.V(t.key,t.value,'identity function may not have a "stops" property')];let n=[];const i=t.value;return n=n.concat(ue({key:t.key,value:i,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:d})),"array"===e.o(i)&&0===i.length&&n.push(new e.V(t.key,i,"array must have at least one stop")),n},default:function(e){return Me({key:e.key,value:e.value,valueSpec:n,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===r&&l&&h.push(new e.V(t.key,t.value,'missing required property "property"')),"identity"===r||t.value.stops||h.push(new e.V(t.key,t.value,'missing required property "stops"')),"exponential"===r&&t.valueSpec.expression&&!e.s(t.valueSpec)&&h.push(new e.V(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(c&&!e.r(t.valueSpec)?h.push(new e.V(t.key,t.value,"property functions not supported")):l&&!e.t(t.valueSpec)&&h.push(new e.V(t.key,t.value,"zoom functions not supported"))),"categorical"!==r&&!u||void 0!==t.value.property||h.push(new e.V(t.key,t.value,'"property" property is required')),h;function d(t){let r=[];const i=t.value,l=t.key;if("array"!==e.o(i))return[new e.V(l,i,`array expected, ${e.o(i)} found`)];if(2!==i.length)return[new e.V(l,i,`array length 2 expected, length ${i.length} found`)];if(u){if("object"!==e.o(i[0]))return[new e.V(l,i,`object expected, ${e.o(i[0])} found`)];if(void 0===i[0].zoom)return[new e.V(l,i,"object stop key must have zoom")];if(void 0===i[0].value)return[new e.V(l,i,"object stop key must have value")];const n=e.u(i[0].zoom);if("number"!=typeof n)return[new e.V(l,i[0].zoom,"stop zoom values must be numbers")];if(a&&a>n)return[new e.V(l,i[0].zoom,"stop zoom values must appear in ascending order")];n!==a&&(a=n,o=void 0,s={}),r=r.concat(ce({key:`${l}[0]`,value:i[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:he,value:f}}))}else r=r.concat(f({key:`${l}[0]`,value:i[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},i));return e.v(e.x(i[1]))?r.concat([new e.V(`${l}[1]`,i[1],"expressions are not allowed in function stops.")]):r.concat(Me({key:`${l}[1]`,value:i[1],valueSpec:n,style:t.style,styleSpec:t.styleSpec}))}function f(t,a){const l=e.o(t.value),c=e.u(t.value),u=null!==t.value?t.value:a;if(i){if(l!==i)return[new e.V(t.key,u,`${l} stop domain type must match previous stop domain type ${i}`)]}else i=l;if("number"!==l&&"string"!==l&&"boolean"!==l&&"number"!=typeof c&&"string"!=typeof c&&"boolean"!=typeof c)return[new e.V(t.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==l&&"categorical"!==r){let i=`number expected, ${l} found`;return e.r(n)&&void 0===r&&(i+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new e.V(t.key,u,i)]}return"categorical"!==r||"number"!==l||"number"==typeof c&&isFinite(c)&&Math.floor(c)===c?"categorical"!==r&&"number"===l&&"number"==typeof c&&"number"==typeof o&&void 0!==o&&cnew e.V(`${t.key}${n.key}`,t.value,n.message)));const r=n.value.expression||n.value._styleExpression.expression;if("property"===t.expressionContext&&"text-font"===t.propertyKey&&!r.outputDefined())return[new e.V(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&&!e.A(r))return[new e.V(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===t.expressionContext)return pe(r,t);if(t.expressionContext&&0===t.expressionContext.indexOf("cluster")){if(!e.B(r,["zoom","feature-state"]))return[new e.V(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===t.expressionContext&&!e.D(r))return[new e.V(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function pe(t,n){const r=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(n.valueSpec&&n.valueSpec.expression)for(const e of n.valueSpec.expression.parameters)r.delete(e);if(0===r.size)return[];const i=[];return t instanceof e.F&&r.has(t.name)?[new e.V(n.key,n.value,`["${t.name}"] expression is not supported in a filter for a ${n.object.type} layer with id: ${n.object.id}`)]:(t.eachChild((e=>{i.push(...pe(e,n))})),i)}function me(t){const n=t.key,r=t.value,i=t.valueSpec,o=[];return Array.isArray(i.values)?-1===i.values.indexOf(e.u(r))&&o.push(new e.V(n,r,`expected one of [${i.values.join(", ")}], ${JSON.stringify(r)} found`)):-1===Object.keys(i.values).indexOf(e.u(r))&&o.push(new e.V(n,r,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(r)} found`)),o}function ge(t){if(e.H(e.x(t.value))){const n=t.layerType||"fill";return fe(e.q({},t,{expressionContext:"filter",valueSpec:t.styleSpec[`filter_${n}`]}))}return ye(t)}function ye(t){const n=t.value,r=t.key;if("array"!==e.o(n))return[new e.V(r,n,`array expected, ${e.o(n)} found`)];const i=t.styleSpec;let o,a=[];if(n.length<1)return[new e.V(r,n,"filter array must have at least 1 element")];switch(a=a.concat(me({key:`${r}[0]`,value:n[0],valueSpec:i.filter_operator,style:t.style,styleSpec:t.styleSpec})),e.u(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&"$type"===e.u(n[1])&&a.push(new e.V(r,n,`"$type" cannot be use with operator "${n[0]}"`));case"==":case"!=":3!==n.length&&a.push(new e.V(r,n,`filter array for operator "${n[0]}" must have 3 elements`));case"in":case"!in":n.length>=2&&(o=e.o(n[1]),"string"!==o&&a.push(new e.V(`${r}[1]`,n[1],`string expected, ${o} found`)));for(let s=2;s{t in r&&n.push(new e.V(i,r[t],`"${t}" is prohibited for ref layers`))})),o.layers.forEach((n=>{e.u(n.id)===l&&(t=n)})),t?t.ref?n.push(new e.V(i,r.ref,"ref cannot reference another ref layer")):s=e.u(t.type):"string"==typeof l&&n.push(new e.V(i,r.ref,`ref layer "${l}" not found`))}else if("background"!==s&&"sky"!==s&&"slot"!==s)if(r.source){const t=o.sources&&o.sources[r.source],a=t&&e.u(t.type);t?"vector"===a&&"raster"===s?n.push(new e.V(i,r.source,`layer "${r.id}" requires a raster source`)):"raster"===a&&"raster"!==s?n.push(new e.V(i,r.source,`layer "${r.id}" requires a vector source`)):"vector"!==a||r["source-layer"]?"raster-dem"===a&&"hillshade"!==s?n.push(new e.V(i,r.source,"raster-dem source can only be used with layer type 'hillshade'.")):"raster-array"!==a||["raster","raster-particle"].includes(s)?"line"!==s||!r.paint||!r.paint["line-gradient"]&&!r.paint["line-trim-offset"]||"geojson"===a&&t.lineMetrics?"raster-particle"===s&&"raster-array"!==a&&n.push(new e.V(i,r.source,`layer "${r.id}" requires a 'raster-array' source.`)):n.push(new e.V(i,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):n.push(new e.V(i,r.source,"raster-array source can only be used with layer type 'raster'.")):n.push(new e.V(i,r,`layer "${r.id}" must specify a "source-layer"`)):n.push(new e.V(i,r.source,`source "${r.source}" not found`))}else n.push(new e.V(i,r,'missing required property "source"'));return n=n.concat(ce({key:i,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":()=>[],type:()=>Me({key:`${i}.type`,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:"type"}),filter:t=>ge(e.q({layerType:s},t)),layout:t=>ce({layer:r,key:t.key,value:t.value,valueSpec:{},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":t=>Ae(e.q({layerType:s},t))}}),paint:t=>ce({layer:r,key:t.key,value:t.value,valueSpec:{},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":t=>be(e.q({layerType:s,layer:r},t))}})}})),n}function we(t){const n=t.value,r=t.key,i=e.o(n);return"string"!==i?[new e.V(r,n,`string expected, ${i} found`)]:[]}const Ce={promoteId:function({key:t,value:n}){if("string"===e.o(n))return we({key:t,value:n});{const e=[];for(const r in n)e.push(...we({key:`${t}.${r}`,value:n[r]}));return e}}};function Se(t){const n=t.value,r=t.key,i=t.styleSpec,o=t.style;if(!n.type)return[new e.V(r,n,'"type" is required')];const a=e.u(n.type);let s=[];switch(["vector","raster","raster-dem","raster-array"].includes(a)&&(n.url||n.tiles||s.push(new e.n(r,n,'Either "url" or "tiles" is required.'))),a){case"vector":case"raster":case"raster-dem":case"raster-array":return s=s.concat(ce({key:r,value:n,valueSpec:i[`source_${a.replace("-","_")}`],style:t.style,styleSpec:i,objectElementValidators:Ce})),s;case"geojson":if(s=ce({key:r,value:n,valueSpec:i.source_geojson,style:o,styleSpec:i,objectElementValidators:Ce}),n.cluster)for(const e in n.clusterProperties){const[t,i]=n.clusterProperties[e],o="string"==typeof t?[t,["accumulated"],["get",e]]:t;s.push(...fe({key:`${r}.${e}.map`,value:i,expressionContext:"cluster-map"})),s.push(...fe({key:`${r}.${e}.reduce`,value:o,expressionContext:"cluster-reduce"}))}return s;case"video":return ce({key:r,value:n,valueSpec:i.source_video,style:o,styleSpec:i});case"image":return ce({key:r,value:n,valueSpec:i.source_image,style:o,styleSpec:i});case"canvas":return[new e.V(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return me({key:`${r}.type`,value:n.type,valueSpec:{values:Ee(i)},style:o,styleSpec:i})}}function Ee(e){return e.source.reduce(((t,n)=>{const r=e[n];return"enum"===r.type.type&&(t=t.concat(Object.keys(r.type.values))),t}),[])}function ke(t){const n=t.value,r=t.styleSpec,i=r.light,o=t.style;let a=[];const s=e.o(n);if(void 0===n)return a;if("object"!==s)return a=a.concat([new e.V("light",n,`object expected, ${s} found`)]),a;for(const t in n){const s=t.match(/^(.*)-transition$/);a=s&&i[s[1]]&&i[s[1]].transition?a.concat(Me({key:t,value:n[t],valueSpec:r.transition,style:o,styleSpec:r})):i[t]?a.concat(Me({key:t,value:n[t],valueSpec:i[t],style:o,styleSpec:r})):a.concat([new e.V(t,n[t],`unknown property "${t}"`)])}return a}function Te(t){const n=t.value;let r=[];if(!n)return r;const i=e.o(n);if("object"!==i)return r=r.concat([new e.V("light-3d",n,`object expected, ${i} found`)]),r;const o=t.styleSpec,a=o["light-3d"],s=t.key,l=t.style,c=t.style.lights;for(const t of["type","id"])if(!(t in n))return r=r.concat([new e.V("light-3d",n,`missing property ${t} on light`)]),r;if(n.type&&c)for(let i=0;i[],array:ue,boolean:function(t){const n=t.value,r=t.key,i=e.o(n);return"boolean"!==i?[new e.V(r,n,`boolean expected, ${i} found`)]:[]},number:he,color:function(t){const n=t.key,r=t.value,i=e.o(r);return"string"!==i?[new e.V(n,r,`color expected, ${i} found`)]:null===e.G(r)?[new e.V(n,r,`color expected, "${r}" found`)]:[]},enum:me,filter:ge,function:de,layer:xe,object:ce,source:Se,model:e.L,light:ke,"light-3d":Te,terrain:Ie,fog:Oe,string:we,formatted:function(e){return 0===we(e).length?[]:fe(e)},resolvedImage:function(e){return 0===we(e).length?[]:fe(e)},projection:function(t){const n=t.value,r=t.styleSpec,i=r.projection,o=t.style;let a=[];const s=e.o(n);if("object"===s)for(const e in n)a=a.concat(Me({key:e,value:n[e],valueSpec:i[e],style:o,styleSpec:r}));else"string"!==s&&(a=a.concat([new e.V("projection",n,`object or string expected, ${s} found`)]));return a},import:function(t){const{value:n,styleSpec:r}=t,{data:i,...o}=n;Object.defineProperty(o,"__line__",{value:n.__line__,enumerable:!1});let a=ce(e.q({},t,{value:o,valueSpec:r.import}));if(""===e.u(o.id)){const n=`${t.key}.id`;a.push(new e.V(n,o,"import id can't be an empty string"))}if(i){const e=`${t.key}.data`;a=a.concat(De(i,r,{key:e}))}return a}};function Me(t,n=!1){const r=t.value,i=t.valueSpec,o=t.styleSpec;if(i.expression&&e.J(e.u(r)))return de(t);if(i.expression&&e.v(e.x(r)))return fe(t);if(i.type&&Re[i.type]){const r=Re[i.type](t);return!0===n&&r.length>0&&"array"===e.o(t.value)?fe(t):r}return ce(e.q({},t,{valueSpec:i.type?o[i.type]:i}))}function Pe(t){const n=t.value,r=t.key,i=we(t);return i.length||(-1===n.indexOf("{fontstack}")&&i.push(new e.V(r,n,'"glyphs" url must include a "{fontstack}" token')),-1===n.indexOf("{range}")&&i.push(new e.V(r,n,'"glyphs" url must include a "{range}" token'))),i}function De(t,n=e.N,r={}){return Me({key:r.key||"",value:t,valueSpec:n.$root,styleSpec:n,style:t,objectElementValidators:{glyphs:Pe,"*":()=>[]}})}function je(t,n=e.N){return Ge(De(t,n))}const Be=e=>Ge(Se(e)),Le=e=>Ge(ke(e)),Fe=e=>Ge(Te(e)),Ne=e=>Ge(Ie(e)),_e=e=>Ge(Oe(e)),ze=e=>Ge(xe(e)),Ve=e=>Ge(ge(e)),Ue=e=>Ge(be(e)),He=e=>Ge(Ae(e)),qe=t=>Ge(e.L(t));function Ge(e){return e.slice().sort(((e,t)=>e.line&&t.line?e.line-t.line:0))}function Ye(t,n){let r=!1;if(n&&n.length)for(const i of n)i instanceof e.n?e.w(i.message):(t.fire(new e.f(new Error(i.message))),r=!0);return r}let We;class Qe extends e.E{constructor(t,n="flat"){super(),this._transitionable=new e.O(We||(We=new e.U({anchor:new e.W(e.N.light.anchor),position:new e.X(e.N.light.position),color:new e.W(e.N.light.color),intensity:new e.W(e.N.light.intensity)}))),this.setLight(t,n),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(e,t,n={}){this._validate(Le,e,n)||(this._transitionable.setTransitionOrValue(e),this.id=t)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(t,n,r){return(!r||!1!==r.validate)&&Ye(this,t.call(je,e.Q({value:n,style:{glyphs:!0,sprite:!0},styleSpec:e.N})))}}const Xe=0,Je=1,Ze=new e.U({source:new e.W(e.N.terrain.source),exaggeration:new e.W(e.N.terrain.exaggeration)});let Ke=class extends e.E{constructor(t,n,r,i){super(),this.scope=r,this._transitionable=new e.O(Ze,r,i),this._transitionable.setTransitionOrValue(t,i),this._transitioning=this._transitionable.untransitioned(),this.drapeRenderMode=n}get(){return this._transitionable.serialize()}set(e,t){this._transitionable.setTransitionOrValue(e,t)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}getExaggeration(t){return this._transitioning.possiblyEvaluate(new e.Y(t)).get("exaggeration")}isZoomDependent(){const t=this._transitionable._values.exaggeration;return null!=t&&null!=t.value&&null!=t.value.expression&&t.value.expression instanceof e.Z}};const $e=.05;function et(t,n,r,i){const o=e.a0(45,65,r),[a,s]=tt(t,i),l=(n-a)/(s-a);let c=1-Math.min(1,Math.exp(-6*l));return c*=c*c,c=Math.min(1,1.00747*c),c*o*t.alpha}function tt(e,t){const n=.5/Math.tan(.5*t);return[e.range[0]+n,e.range[1]+n]}function nt(t,n,r,i,o){const a=e.$.transformMat4([],[n,r,i],o.mercatorFogMatrix);return et(t,e.$.length(a),o.pitch,o._fov)}function rt(t,n,r,i,o,a,s){const l=[[r,i,0],[o,i,0],[o,a,0],[r,a,0]];let c=Number.MAX_VALUE,u=-Number.MAX_VALUE;for(const t of l){const r=e.$.transformMat4([],t,n),i=e.$.length(r);c=Math.min(c,i),u=Math.max(u,i)}return[et(t,c,s.pitch,s._fov),et(t,u,s.pitch,s._fov)]}const it=new e.U({range:new e.W(e.N.fog.range),color:new e.W(e.N.fog.color),"high-color":new e.W(e.N.fog["high-color"]),"space-color":new e.W(e.N.fog["space-color"]),"horizon-blend":new e.W(e.N.fog["horizon-blend"]),"star-intensity":new e.W(e.N.fog["star-intensity"]),"vertical-range":new e.W(e.N.fog["vertical-range"])});class ot extends e.E{constructor(t,n,r,i){super(),this._transitionable=new e.O(it,r,new Map(i)),this.set(t,i),this._transitioning=this._transitionable.untransitioned(),this._transform=n,this.properties=new e.a1(it),this.scope=r}get state(){const t=this._transform,n="globe"===t.projection.name,r=e.a2(t.zoom),i=this.properties.get("range"),o=[.5,3];return{range:n?[e.a3(o[0],i[0],r),e.a3(o[1],i[1],r)]:i,horizonBlend:this.properties.get("horizon-blend"),alpha:this.properties.get("color").a}}get(){return this._transitionable.serialize()}set(t,n,r={}){if(this._validate(_e,t,r))return;const i=e.Q({},t);for(const t of Object.keys(e.N.fog))void 0===i[t]&&(i[t]=e.N.fog[t].default);this._options=i,this._transitionable.setTransitionOrValue(this._options,n)}getOpacity(t){if(!this._transform.projection.supportsFog)return 0;const n=this.properties&&this.properties.get("color")||1;return("globe"===this._transform.projection.name?1:e.a0(45,65,t))*n.a}getOpacityAtLatLng(t,n){return this._transform.projection.supportsFog?function(t,n,r){const i=e._.fromLngLat(n),o=r.elevation?r.elevation.getAtPointOrZero(i):0;return nt(t,i.x,i.y,o,r)}(this.state,t,n):0}getOpacityForTile(t){if(!this._transform.projection.supportsFog)return[1,1];const n=this._transform.calculateFogTileMatrix(t.toUnwrapped());return rt(this.state,n,0,0,e.a4,e.a4,this._transform)}getOpacityForBounds(e,t,n,r,i){return this._transform.projection.supportsFog?rt(this.state,e,t,n,r,i,this._transform):[1,1]}getFovAdjustedRange(e){return this._transform.projection.supportsFog?tt(this.state,e):[0,1]}isVisibleOnFrustum(t){if(!this._transform.projection.supportsFog)return!1;const n=[4,5,6,7];for(const r of n){const n=t.points[r];let i;if(n[2]>=0)i=n;else{const o=t.points[r-4];i=e.a5(o,n,o[2]/(o[2]-n[2]))}if(nt(this.state,i[0],i[1],0,this._transform)>=$e)return!0}return!1}updateConfig(e){this._transitionable.setTransitionOrValue(this._options,new Map(e))}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(t,n,r){return(!r||!1!==r.validate)&&Ye(this,t.call(je,e.Q({value:n,style:{glyphs:!0,sprite:!0},styleSpec:e.N})))}}class at extends e.E{constructor(t,n,r,i){super(),this.scope=r,this._options=t,this.properties=new e.a1(n),this._transitionable=new e.O(n,r,new Map(i)),this._transitionable.setTransitionOrValue(t.properties),this._transitioning=this._transitionable.untransitioned()}updateConfig(e){this._transitionable.setTransitionOrValue(this._options.properties,new Map(e))}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}get(){return this._options.properties=this._transitionable.serialize(),this._options}set(e,t){this._options=e,this._transitionable.setTransitionOrValue(e.properties,t)}shadowsEnabled(){return!!this.properties&&!0===this.properties.get("cast-shadows")}}let st;let lt;var ct="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#ifdef RENDER_CUTOFF\nfloat cutoff_opacity(vec4 cutoff_params,float depth) {float near=cutoff_params.x;float far=cutoff_params.y;float cutoffStart=cutoff_params.z;float cutoffEnd=cutoff_params.w;float linearDepth=(depth-near)/(far-near);return clamp((linearDepth-cutoffStart)/(cutoffEnd-cutoffStart),0.0,1.0);}\n#endif",ut="\nout vec4 glFragColor;highp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}\n#ifdef INDICATOR_CUTOUT\nuniform vec2 u_indicator_cutout_centers;uniform vec4 u_indicator_cutout_params;\n#endif\nvec4 applyCutout(vec4 color) {\n#ifdef INDICATOR_CUTOUT\nfloat holeMinOpacity=u_indicator_cutout_params.x;float holeRadius=max(u_indicator_cutout_params.y,0.0);float holeAspectRatio=u_indicator_cutout_params.z;float fadeStart=u_indicator_cutout_params.w;float distA=distance(vec2(gl_FragCoord.x,gl_FragCoord.y*holeAspectRatio),vec2(u_indicator_cutout_centers[0],u_indicator_cutout_centers[1]*holeAspectRatio));return color*min(smoothstep(fadeStart,holeRadius,distA)+holeMinOpacity,1.0);\n#else\nreturn color;\n#endif\n}\n#ifdef DEBUG_WIREFRAME\n#define HANDLE_WIREFRAME_DEBUG \\\nglFragColor=vec4(0.7,0.0,0.0,0.7); \\\ngl_FragDepth=gl_FragCoord.z-0.0001;\n#else\n#define HANDLE_WIREFRAME_DEBUG\n#endif\n#ifdef RENDER_CUTOFF\nuniform highp vec4 u_cutoff_params;in float v_cutoff_opacity;\n#endif\nvec4 textureLodCustom(sampler2D image,vec2 pos,vec2 lod_coord) {vec2 size=vec2(textureSize(image,0));vec2 dx=dFdx(lod_coord.xy*size);vec2 dy=dFdy(lod_coord.xy*size);float delta_max_sqr=max(dot(dx,dx),dot(dy,dy));float lod=0.5*log2(delta_max_sqr);return textureLod(image,pos,lod);}vec4 applyLUT(highp sampler3D lut,vec4 col) {vec3 size=vec3(textureSize(lut,0));vec3 uvw=(col.rbg*float(size-1.0)+0.5)/size;return vec4(texture(lut,uvw).rgb,col.a);}vec3 applyLUT(highp sampler3D lut,vec3 col) {return applyLUT(lut,vec4(col,1.0)).rgb;}",ht="\n#define EXTENT 8192.0\n#define RAD_TO_DEG 180.0/PI\n#define DEG_TO_RAD PI/180.0\n#define GLOBE_RADIUS EXTENT/PI/2.0\nfloat wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {\n#ifndef PROJECTED_POS_ON_VIEWPORT\nfloat tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;\n#else\nreturn vec3(0.0);\n#endif\n}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(PI/4.0+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);}\n#ifdef RENDER_CUTOFF\nuniform vec4 u_cutoff_params;out float v_cutoff_opacity;\n#endif\nconst vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);const float skirtOffset=24575.0;vec3 decomposeToPosAndSkirt(vec2 posWithComposedSkirt)\n{float skirt=float(posWithComposedSkirt.x >=skirtOffset);vec2 pos=posWithComposedSkirt-vec2(skirt*skirtOffset,0.0);return vec3(pos,skirt);}",dt="in highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;out highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}",ft="\n#define ELEVATION_SCALE 7.0\n#define ELEVATION_OFFSET 450.0\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(\nmix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}\n#else\nvec3 elevationVector(vec2 pos) { return vec3(0,0,1); }\n#endif\n#ifdef TERRAIN\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float currentElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture(u_dem,pos).r;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=texture(u_dem,pos).r;float tr=texture(u_dem,pos+vec2(dd,0)).r;float bl=texture(u_dem,pos+vec2(0,dd)).r;float br=texture(u_dem,pos+vec2(dd,dd)).r;return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}float prevElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture(u_dem_prev,pos).r;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=texture(u_dem_prev,pos).r;float tr=texture(u_dem_prev,pos+vec2(dd,0)).r;float bl=texture(u_dem_prev,pos+vec2(0,dd)).r;float br=texture(u_dem_prev,pos+vec2(dd,dd)).r;return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nfloat nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nreturn currentElevation(apos);}\n#endif\nvec4 fourSample(vec2 pos,vec2 off) {float tl=texture(u_dem,pos).r;float tr=texture(u_dem,pos+vec2(off.x,0.0)).r;float bl=texture(u_dem,pos+vec2(0.0,off.y)).r;float br=texture(u_dem,pos+off).r;return vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\n#else\nfloat elevation(vec2 pos) { return 0.0; }\n#endif\n#ifdef DEPTH_OCCLUSION\nuniform highp sampler2D u_depth;uniform highp vec2 u_depth_size_inv;uniform highp vec2 u_depth_range_unpack;uniform highp float u_occluder_half_size;uniform highp float u_occlusion_depth_offset;\n#ifdef DEPTH_D24\nfloat unpack_depth(float depth) {return depth*u_depth_range_unpack.x+u_depth_range_unpack.y;}vec4 unpack_depth4(vec4 depth) {return depth*u_depth_range_unpack.x+vec4(u_depth_range_unpack.y);}\n#else\nhighp float unpack_depth_rgba(vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}\n#endif\nbool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;\n#ifdef DEPTH_D24\nfloat depth=unpack_depth(texture(u_depth,(coord.xy+1.0)*0.5).r);\n#else\nfloat depth=unpack_depth_rgba(texture(u_depth,(coord.xy+1.0)*0.5));\n#endif\nreturn coord.z+u_occlusion_depth_offset > depth;}highp vec4 getCornerDepths(vec2 coord) {highp vec3 df=vec3(u_occluder_half_size*u_depth_size_inv,0.0);highp vec2 uv=0.5*coord.xy+0.5;\n#ifdef DEPTH_D24\nhighp vec4 depth=vec4(\ntexture(u_depth,uv-df.xz).r,texture(u_depth,uv+df.xz).r,texture(u_depth,uv-df.zy).r,texture(u_depth,uv+df.zy).r\n);depth=unpack_depth4(depth);\n#else\nhighp vec4 depth=vec4(\nunpack_depth_rgba(texture(u_depth,uv-df.xz)),unpack_depth_rgba(texture(u_depth,uv+df.xz)),unpack_depth_rgba(texture(u_depth,uv-df.zy)),unpack_depth_rgba(texture(u_depth,uv+df.zy))\n);\n#endif\nreturn depth;}highp float occlusionFadeMultiSample(vec4 frag) {highp vec3 coord=frag.xyz/frag.w;highp vec2 uv=0.5*coord.xy+0.5;int NX=3;int NY=4;highp vec2 df=u_occluder_half_size*u_depth_size_inv;highp vec2 oneStep=2.0*u_occluder_half_size*u_depth_size_inv/vec2(NX-1,NY-1);highp float res=0.0;for (int y=0; y < NY;++y) {for (int x=0; x < NX;++x) {\n#ifdef DEPTH_D24\nhighp float depth=unpack_depth(texture(u_depth,uv-df+vec2(float(x)*oneStep.x,float(y)*oneStep.y)).r);\n#else\nhighp float depth=unpack_depth_rgba(texture(u_depth,uv-df+vec2(float(x)*oneStep.x,float(y)*oneStep.y)));\n#endif\nres+=1.0-clamp(300.0*(coord.z+u_occlusion_depth_offset-depth),0.0,1.0);}}res=clamp(2.0*res/float(NX*NY)-0.5,0.0,1.0);return res;}highp float occlusionFade(vec4 frag) {highp vec3 coord=frag.xyz/frag.w;highp vec4 depth=getCornerDepths(coord.xy);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z+u_occlusion_depth_offset)-depth),0.0,1.0));}\n#else\nbool isOccluded(vec4 frag) { return false; }highp float occlusionFade(vec4 frag) { return 1.0; }highp float occlusionFadeMultiSample(vec4 frag) { return 1.0; }\n#endif//DEPTH_OCCLUSION",pt="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;out vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\n#endif",mt="highp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}\n#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump vec2 u_fog_vertical_limit;uniform mediump float u_fog_temporal_offset;in vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos,float opacity_limit) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,min(opacity,opacity_limit));}vec3 fog_apply(vec3 color,vec3 pos) {return fog_apply(color,pos,1.0);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec4 fog_apply_premultiplied(vec4 color,vec3 pos,float heightMeters) {float verticalProgress=(u_fog_vertical_limit.x > 0.0 || u_fog_vertical_limit.y > 0.0) ? smoothstep(u_fog_vertical_limit.x,u_fog_vertical_limit.y,heightMeters) : 0.0;float opacityLimit=1.0-smoothstep(0.9,1.0,fog_opacity(pos));return mix(fog_apply_premultiplied(color,pos),color,min(verticalProgress,opacityLimit));}vec3 fog_dither(vec3 color) {\n#ifdef FOG_DITHERING\nvec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);\n#else\nreturn color;\n#endif\n}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif",gt="#ifdef RASTER_ARRAY\nuniform sampler2D u_image0;uniform sampler2D u_image1;const vec4 NODATA=vec4(1);ivec4 _raTexLinearCoord(highp vec2 texCoord,highp vec2 texResolution,out highp vec2 fxy) {texCoord=texCoord*texResolution-0.5;fxy=fract(texCoord);texCoord-=fxy;return ivec4(texCoord.xxyy+vec2(1.5,0.5).xyxy);}vec2 _raTexLinearMix(highp vec2 fxy,highp vec4 colorMix,highp float colorOffset,highp vec4 t00,highp vec4 t10,highp vec4 t01,highp vec4 t11) {vec2 c00=t00==NODATA ? vec2(0) : vec2(colorOffset+dot(t00,colorMix),1);vec2 c10=t10==NODATA ? vec2(0) : vec2(colorOffset+dot(t10,colorMix),1);vec2 c01=t01==NODATA ? vec2(0) : vec2(colorOffset+dot(t01,colorMix),1);vec2 c11=t11==NODATA ? vec2(0) : vec2(colorOffset+dot(t11,colorMix),1);return mix(mix(c01,c11,fxy.x),mix(c00,c10,fxy.x),fxy.y);}vec2 raTexture2D_image0_linear(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec2 fxy;ivec4 c=_raTexLinearCoord(texCoord,texResolution,fxy);return _raTexLinearMix(fxy,colorMix,colorOffset,texelFetch(u_image0,c.yz,0),texelFetch(u_image0,c.xz,0),texelFetch(u_image0,c.yw,0),texelFetch(u_image0,c.xw,0)\n);}vec2 raTexture2D_image1_linear(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec2 fxy;ivec4 c=_raTexLinearCoord(texCoord,texResolution,fxy);return _raTexLinearMix(fxy,colorMix,colorOffset,texelFetch(u_image1,c.yz,0),texelFetch(u_image1,c.xz,0),texelFetch(u_image1,c.yw,0),texelFetch(u_image1,c.xw,0)\n);}vec2 raTexture2D_image0_nearest(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec4 t=texelFetch(u_image0,ivec2(texCoord*texResolution),0);return t==NODATA ? vec2(0) : vec2(colorOffset+dot(t,colorMix),1);}vec2 raTexture2D_image1_nearest(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec4 t=texelFetch(u_image1,ivec2(texCoord*texResolution),0);return t==NODATA ? vec2(0) : vec2(colorOffset+dot(t,colorMix),1);}\n#endif",yt="#ifdef RASTER_ARRAY\nuniform sampler2D u_velocity;uniform mediump vec2 u_velocity_res;uniform mediump float u_max_speed;const vec4 NO_DATA=vec4(1);const vec2 INVALID_VELOCITY=vec2(-1);uniform highp vec2 u_uv_offset;uniform highp float u_data_offset;uniform highp vec2 u_data_scale;ivec4 rasterArrayLinearCoord(highp vec2 texCoord,highp vec2 texResolution,out highp vec2 fxy) {texCoord=texCoord*texResolution-0.5;fxy=fract(texCoord);texCoord-=fxy;return ivec4(texCoord.xxyy+vec2(1.5,0.5).xyxy);}highp vec2 lookup_velocity(highp vec2 uv) {uv=u_uv_offset.x+u_uv_offset.y*uv;highp vec2 fxy;ivec4 c=rasterArrayLinearCoord(uv,u_velocity_res,fxy);highp vec4 tl=texelFetch(u_velocity,c.yz,0);highp vec4 tr=texelFetch(u_velocity,c.xz,0);highp vec4 bl=texelFetch(u_velocity,c.yw,0);highp vec4 br=texelFetch(u_velocity,c.xw,0);if (tl==NO_DATA) {return INVALID_VELOCITY;}if (tr==NO_DATA) {return INVALID_VELOCITY;}if (bl==NO_DATA) {return INVALID_VELOCITY;}if (br==NO_DATA) {return INVALID_VELOCITY;}highp vec4 t=mix(mix(bl,br,fxy.x),mix(tl,tr,fxy.x),fxy.y);highp vec2 velocity=u_data_offset+vec2(dot(t.rg,u_data_scale),dot(t.ba,u_data_scale));velocity.y=-velocity.y;velocity/=max(u_max_speed,length(velocity));return velocity;}\n#endif\nuniform highp float u_particle_pos_scale;uniform highp vec2 u_particle_pos_offset;highp vec4 pack_pos_to_rgba(highp vec2 p) {highp vec2 v=(p+u_particle_pos_offset)/u_particle_pos_scale;highp vec4 r=vec4(v.x,fract(v.x*255.0),v.y,fract(v.y*255.0));return vec4(r.x-r.y/255.0,r.y,r.z-r.w/255.0,r.w);}highp vec2 unpack_pos_from_rgba(highp vec4 v) {v=floor(v*255.0+0.5)/255.0;highp vec2 p=vec2(v.x+(v.y/255.0),v.z+(v.w/255.0));return u_particle_pos_scale*p-u_particle_pos_offset;}",vt="#ifdef RENDER_SHADOWS\nuniform mediump vec3 u_shadow_direction;uniform highp vec3 u_shadow_normal_offset;vec3 shadow_normal_offset(vec3 normal) {float tileInMeters=u_shadow_normal_offset[0];vec3 n=vec3(-normal.xy,tileInMeters*normal.z);float dotScale=min(1.0-dot(normal,u_shadow_direction),1.0)*0.5+0.5;return n*dotScale;}vec3 shadow_normal_offset_model(vec3 normal) {vec3 transformed_normal=vec3(-normal.xy,normal.z);float NDotL=dot(normalize(transformed_normal),u_shadow_direction);float dotScale=min(1.0-NDotL,1.0)*0.5+0.5;return normal*dotScale;}float shadow_normal_offset_multiplier0() {return u_shadow_normal_offset[1];}float shadow_normal_offset_multiplier1() {return u_shadow_normal_offset[2];}\n#endif//RENDER_SHADOWS",bt="#ifdef RENDER_SHADOWS\n#ifdef DEPTH_TEXTURE\nuniform highp sampler2D u_shadowmap_0;uniform highp sampler2D u_shadowmap_1;\n#else\nuniform sampler2D u_shadowmap_0;uniform sampler2D u_shadowmap_1;\n#endif\nuniform float u_shadow_intensity;uniform float u_shadow_map_resolution;uniform float u_shadow_texel_size;uniform highp vec3 u_shadow_normal_offset;uniform vec2 u_fade_range;uniform mediump vec3 u_shadow_direction;uniform highp vec3 u_shadow_bias;highp float shadow_sample_1(highp vec2 uv,highp float compare) {highp float shadow_depth;\n#ifdef DEPTH_TEXTURE\nshadow_depth=texture(u_shadowmap_1,uv).r;\n#else\nshadow_depth=unpack_depth(texture(u_shadowmap_1,uv))*0.5+0.5;\n#endif\nreturn step(shadow_depth,compare);}highp float shadow_sample_0(highp vec2 uv,highp float compare) {highp float shadow_depth;\n#ifdef DEPTH_TEXTURE\nshadow_depth=texture(u_shadowmap_0,uv).r;\n#else\nshadow_depth=unpack_depth(texture(u_shadowmap_0,uv))*0.5+0.5;\n#endif\nreturn step(shadow_depth,compare);}float shadow_occlusion_1(highp vec4 pos,highp float bias) {highp vec2 uv=pos.xy;return shadow_sample_1(uv,pos.z-bias);}float shadow_occlusion_0(highp vec4 pos,highp float bias) {highp float compare0=pos.z-bias;\n#ifdef NATIVE\nhighp vec2 uv=pos.xy;highp vec4 samples=textureGather(u_shadowmap_0,uv,0);lowp vec4 stepSamples=step(samples,vec4(compare0));\n#else\nhighp vec2 uv00=pos.xy-vec2(0.5*u_shadow_texel_size);highp vec2 uv10=uv00+vec2(u_shadow_texel_size,0.0);highp vec2 uv01=uv00+vec2(0.0,u_shadow_texel_size);highp vec2 uv11=uv01+vec2(u_shadow_texel_size,0.0);lowp vec4 stepSamples=vec4(\nshadow_sample_0(uv01,compare0),shadow_sample_0(uv11,compare0),shadow_sample_0(uv10,compare0),shadow_sample_0(uv00,compare0)\n);\n#endif\nvec2 f=fract(pos.xy*u_shadow_map_resolution-vec2(0.5));lowp vec2 lerpx=mix(stepSamples.wx,stepSamples.zy,f.xx);return mix(lerpx.x,lerpx.y,f.y);}float shadow_occlusion(highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth,highp float bias) {\n#ifdef SHADOWS_SINGLE_CASCADE\nlight_view_pos0.xyz=light_view_pos0.xyz/light_view_pos0.w*0.5+0.5;return shadow_occlusion_0(light_view_pos0,bias);\n#else\nlight_view_pos0.xyz/=light_view_pos0.w;light_view_pos1.xyz/=light_view_pos1.w;vec4 uv=vec4(light_view_pos0.xy,light_view_pos1.xy);vec4 abs_bounds=abs(uv);if (abs_bounds.x < 1.0 && abs_bounds.y < 1.0) {light_view_pos0.xyz=light_view_pos0.xyz*0.5+0.5;return shadow_occlusion_0(light_view_pos0,bias);}if (abs_bounds.z >=1.0 || abs_bounds.w >=1.0) {return 0.0;}light_view_pos1.xyz=light_view_pos1.xyz*0.5+0.5;float occlusion1=shadow_occlusion_1(light_view_pos1,bias);return mix(occlusion1,0.0,smoothstep(u_fade_range.x,u_fade_range.y,view_depth));\n#endif\n}highp float calculate_shadow_bias(float NDotL) {\n#ifdef NORMAL_OFFSET\nreturn 0.5*u_shadow_bias.x;\n#else\nreturn 0.5*(u_shadow_bias.x+clamp(u_shadow_bias.y*tan(acos(NDotL)),0.0,u_shadow_bias.z));\n#endif\n}float shadowed_light_factor_normal(vec3 N,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float NDotL=dot(N,u_shadow_direction);float bias=calculate_shadow_bias(NDotL);float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return mix(0.0,(1.0-(u_shadow_intensity*occlusion))*NDotL,step(0.0,NDotL));}float shadowed_light_factor_normal_opacity(vec3 N,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth,float shadow_opacity) {float NDotL=dot(N,u_shadow_direction);float bias=calculate_shadow_bias(NDotL);float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias)*shadow_opacity;return mix(0.0,(1.0-(u_shadow_intensity*occlusion))*NDotL,step(0.0,NDotL));}float shadowed_light_factor_normal_unbiased(vec3 N,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float NDotL=dot(N,u_shadow_direction);float bias=0.0;float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return mix(0.0,(1.0-(u_shadow_intensity*occlusion))*NDotL,step(0.0,NDotL));}float shadowed_light_factor(highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float bias=0.0;float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return 1.0-(u_shadow_intensity*occlusion);}float shadow_occlusion(float ndotl,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float bias=calculate_shadow_bias(ndotl);return shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);}\n#endif";const At=[];kt(ct,At),kt(ht,At),kt(ut,At);const xt={"_prelude_fog.vertex.glsl":pt,"_prelude_terrain.vertex.glsl":ft,"_prelude_shadow.vertex.glsl":vt,"_prelude_fog.fragment.glsl":mt,"_prelude_shadow.fragment.glsl":bt,"_prelude_lighting.glsl":"\n#ifdef LIGHTING_3D_MODE\nuniform mediump vec3 u_lighting_ambient_color;uniform mediump vec3 u_lighting_directional_dir;uniform mediump vec3 u_lighting_directional_color;uniform mediump vec3 u_ground_radiance;float calculate_ambient_directional_factor(vec3 normal) {float NdotL=dot(normal,u_lighting_directional_dir);const float factor_reduction_max=0.3;float dir_luminance=dot(u_lighting_directional_color,vec3(0.2126,0.7152,0.0722));float directional_factor_min=1.0-factor_reduction_max*min(dir_luminance,1.0);float ambient_directional_factor=mix(directional_factor_min,1.0,min((NdotL+1.0),1.0));const float vertical_factor_min=0.92;float vertical_factor=mix(vertical_factor_min,1.0,normal.z*0.5+0.5);return vertical_factor*ambient_directional_factor;}vec3 linearProduct(vec3 srgbIn,vec3 k) {return srgbIn*pow(k,vec3(1./2.2));}vec3 apply_lighting(vec3 color,vec3 normal,float dir_factor) {float ambient_directional_factor=calculate_ambient_directional_factor(normal);vec3 ambient_contrib=ambient_directional_factor*u_lighting_ambient_color;vec3 directional_contrib=u_lighting_directional_color*dir_factor;return linearProduct(color,ambient_contrib+directional_contrib);}vec4 apply_lighting(vec4 color,vec3 normal,float dir_factor) {return vec4(apply_lighting(color.rgb,normal,dir_factor),color.a);}vec3 apply_lighting(vec3 color,vec3 normal) {float dir_factor=max(dot(normal,u_lighting_directional_dir),0.0);return apply_lighting(color.rgb,normal,dir_factor);}vec4 apply_lighting(vec4 color,vec3 normal) {float dir_factor=max(dot(normal,u_lighting_directional_dir),0.0);return vec4(apply_lighting(color.rgb,normal,dir_factor),color.a);}vec3 apply_lighting_ground(vec3 color) {return color*u_ground_radiance;}vec4 apply_lighting_ground(vec4 color) {return vec4(apply_lighting_ground(color.rgb),color.a);}float calculate_NdotL(vec3 normal) {const float ext=0.70710678118;return (clamp(dot(normal,u_lighting_directional_dir),-ext,1.0)+ext)/(1.0+ext);}vec4 apply_lighting_with_emission_ground(vec4 color,float emissive_strength) {return mix(apply_lighting_ground(color),color,emissive_strength);}vec3 compute_flood_lighting(vec3 flood_light_color,float fully_occluded_factor,float occlusion,vec3 ground_shadow_factor) {vec3 fully_occluded_color=flood_light_color*mix(ground_shadow_factor,vec3(1.0),fully_occluded_factor);float occlusion_ramp=smoothstep(0.0,0.2,1.0-occlusion);return mix(fully_occluded_color,flood_light_color,occlusion_ramp);}vec3 compute_emissive_draped(vec3 unlit_color,float fully_occluded_factor,float occlusion,vec3 ground_shadow_factor) {vec3 fully_occluded_color=unlit_color*mix(ground_shadow_factor,vec3(1.0),fully_occluded_factor);return mix(fully_occluded_color,unlit_color,1.0-occlusion);}\n#endif//LIGHTING_3D_MODE","_prelude_raster_array.glsl":gt,"_prelude_raster_particle.glsl":yt},wt={};Tt("",ft),Tt(mt,pt),Tt(bt,vt),Tt(gt,""),Tt(yt,"");const Ct=Tt(ut,ht),St=ct;var Et={background:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform vec4 u_color;uniform float u_opacity;\n#ifdef LIGHTING_3D_MODE\nin vec4 v_color;\n#endif\nvoid main() {vec4 out_color;\n#ifdef LIGHTING_3D_MODE\nout_color=v_color;\n#else\nout_color=u_color;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nglFragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_lighting.glsl"\nin vec2 a_pos;uniform mat4 u_matrix;\n#ifdef LIGHTING_3D_MODE\nuniform mediump vec4 u_color;out vec4 v_color;uniform float u_emissive_strength;\n#endif\nvoid main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef LIGHTING_3D_MODE\nv_color=apply_lighting_with_emission_ground(u_color,u_emissive_strength);\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),backgroundPattern:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform vec2 u_pattern_tl;uniform vec2 u_pattern_br;uniform vec2 u_texsize;uniform float u_opacity;uniform float u_emissive_strength;uniform sampler2D u_image;in vec2 v_pos;void main() {vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(u_pattern_tl/u_texsize,u_pattern_br/u_texsize,imagecoord);vec4 out_color=textureLodCustom(u_image,pos,v_pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nglFragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform vec2 u_pattern_size;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_pattern_size,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),circle:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nin vec3 v_data;in float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nuniform float u_emissive_strength;void 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 blur_positive=blur < 0.0 ? 0.0 : 1.0;lowp float antialiasblur=v_data.z;float extrude_length=length(extrude)+antialiasblur*(1.0-blur_positive);float antialiased_blur=-max(abs(blur),antialiasblur);float opacity_t=smoothstep((1.0-blur_positive)*antialiased_blur,blur_positive*antialiased_blur,extrude_length-1.0)-smoothstep(0.0,antialiasblur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\nglFragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\n}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;in vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nin vec3 a_pos_3;in vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nout vec3 v_data;out float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\n#ifdef PROJECTION_GLOBE_VIEW\nreturn u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );\n#else\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#endif\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);vec4 world_center;mat3 surface_vectors;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);world_center=vec4(pos,1);\n#else \nsurface_vectors=mat3(1.0);float height=circle_elevation(circle_center);world_center=vec4(circle_center,height,1);\n#endif\nvec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale,surface_vectors);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();vec4 occlusion_world_center;vec4 occlusion_projected_center;\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);occlusion_world_center=vec4(circle_center,cantilevered_height,1);occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nocclusion_world_center=world_center;occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\n#ifdef FOG\nv_fog_pos=fog_position(world_center.xyz);\n#endif\n}'),clippingMask:Tt("void main() {glFragColor=vec4(1.0);}","in vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:Tt('#include "_prelude_fog.fragment.glsl"\nuniform highp float u_intensity;in 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);glFragColor=vec4(val,1.0,1.0,1.0);\n#ifdef FOG\nif (u_is_globe==0) {glFragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_terrain.vertex.glsl"\n#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;in vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nin vec3 a_pos_3;in vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nout vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);vec3 pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#else\npos=vec3(tilePos+extrude,elevation(tilePos));\n#endif\ngl_Position=u_matrix*vec4(pos,1);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}'),heatmapTexture:Tt("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));glFragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(0.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}","in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:Tt("in float v_placed;in float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);glFragColor =mix(red,blue,step(0.5,v_placed))*0.5;glFragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}",'#include "_prelude_terrain.vertex.glsl"\nin vec3 a_pos;in vec2 a_anchor_pos;in vec2 a_extrude;in vec2 a_placed;in vec2 a_shift;in float a_size_scale;in vec2 a_padding;in float a_z_offset;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;out float v_placed;out float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*(a_z_offset+elevation(a_anchor_pos)),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}'),collisionCircle:Tt("in float v_radius;in vec2 v_extrude;in float v_perspective_ratio;in 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);glFragColor=color*alpha*opacity_t;}","in vec2 a_pos_2f;in float a_radius;in vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;out float v_radius;out vec2 v_extrude;out float v_perspective_ratio;out float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:Tt("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);glFragColor=mix(u_color,overlay_color,overlay_color.a);}",'#include "_prelude_terrain.vertex.glsl"\nin vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nin vec3 a_pos_3;\n#endif\nout vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1);\n#else\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);\n#endif\n}'),fill:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nuniform float u_emissive_strength;void main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nvec4 out_color=color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nglFragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nin vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),fillOutline:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nin highp vec2 v_pos;uniform float u_emissive_strength;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nglFragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nin vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;out highp vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),fillOutlinePattern:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_emissive_strength;in highp vec2 v_pos;in highp vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec2 lod_pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,v_pos);float dist=length(v_pos_world-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=textureLodCustom(u_image,pos,lod_pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nglFragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;in vec2 a_pos;out highp vec2 v_pos;out highp vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);v_pos_world=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),fillPattern:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform vec2 u_texsize;uniform sampler2D u_image;in vec2 v_pos;uniform float u_emissive_strength;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec2 lod_pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,v_pos);vec4 out_color=textureLodCustom(u_image,pos,lod_pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nglFragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;in vec2 a_pos;out vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),fillExtrusion:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_shadow.fragment.glsl"\n#include "_prelude_lighting.glsl"\nin vec4 v_color;in vec4 v_flat;\n#ifdef RENDER_SHADOWS\nin highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;\n#endif\nuniform lowp float u_opacity;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;in vec2 v_ao;\n#endif\n#if defined(ZERO_ROOF_RADIUS) && !defined(LIGHTING_3D_MODE)\nin vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE)\nin highp vec3 v_normal;\n#endif\nuniform vec3 u_flood_light_color;uniform highp float u_vertical_scale;uniform float u_flood_light_intensity;uniform vec3 u_ground_shadow_factor;\n#if defined(LIGHTING_3D_MODE) && defined(FLOOD_LIGHT)\nin float v_flood_radius;in float v_has_floodlight;\n#endif\nuniform float u_emissive_strength;in float v_height;void main() {\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE)\nvec3 normal=normalize(v_normal);\n#endif\nfloat z;vec4 color=v_color;\n#ifdef ZERO_ROOF_RADIUS\nz=float(normal.z > 0.00001);\n#ifdef LIGHTING_3D_MODE\nnormal=mix(normal,vec3(0.0,0.0,1.0),z);\n#else\ncolor=mix(v_color,v_roof_color,z);\n#endif\n#endif\nfloat h=max(0.0,v_height);float ao_shade=1.0;\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h_floors=h/(u_ao[1]*u_vertical_scale);float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);ao_shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;\n#ifdef ZERO_ROOF_RADIUS\nconcave*=(1.0-z);\n#endif\nfloat x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);ao_shade*=mix(1.0,x_shade*x_shade*x_shade,concave);\n#ifdef LIGHTING_3D_MODE\n#ifdef FLOOD_LIGHT\ncolor.rgb*=mix(ao_shade,1.0,v_has_floodlight);\n#else\ncolor.rgb*=ao_shade;\n#endif\n#else\ncolor.rgb*=ao_shade;\n#endif\n#endif\n#ifdef LIGHTING_3D_MODE\nfloat flood_radiance=0.0;\n#ifdef FLOOD_LIGHT\nflood_radiance=(1.0-min(h/v_flood_radius,1.0))*u_flood_light_intensity*v_has_floodlight;\n#endif\n#ifdef RENDER_SHADOWS\n#ifdef FLOOD_LIGHT\nfloat ndotl_unclamped=dot(normal,u_shadow_direction);float ndotl=max(0.0,ndotl_unclamped);float occlusion=ndotl_unclamped < 0.0 ? 1.0 : shadow_occlusion(ndotl,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);vec3 litColor=apply_lighting(color.rgb,normal,(1.0-u_shadow_intensity*occlusion)*ndotl);vec3 floodLitColor=compute_flood_lighting(u_flood_light_color*u_opacity,1.0-u_shadow_intensity,occlusion,u_ground_shadow_factor);color.rgb=mix(litColor,floodLitColor,flood_radiance);\n#else\nfloat shadowed_lighting_factor;\n#ifdef RENDER_CUTOFF\nshadowed_lighting_factor=shadowed_light_factor_normal_opacity(normal,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w,v_cutoff_opacity);if (v_cutoff_opacity==0.0) {discard;}\n#else\nshadowed_lighting_factor=shadowed_light_factor_normal(normal,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);\n#endif\ncolor.rgb=apply_lighting(color.rgb,normal,shadowed_lighting_factor);\n#endif\n#else\ncolor.rgb=apply_lighting(color.rgb,normal);\n#ifdef FLOOD_LIGHT\ncolor.rgb=mix(color.rgb,u_flood_light_color*u_opacity,flood_radiance);\n#endif\n#endif\ncolor.rgb=mix(color.rgb,v_flat.rgb,u_emissive_strength);color*=u_opacity;\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos,h));\n#endif\n#ifdef INDICATOR_CUTOUT\ncolor=applyCutout(color);\n#endif\nglFragColor=color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\n#include "_prelude_lighting.glsl"\nuniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_edge_radius;uniform float u_alignment;uniform float u_width_scale;in vec4 a_pos_normal_ed;in vec2 a_centroid_pos;\n#ifdef RENDER_WALL_MODE\nin vec4 a_join_normal_inside_polygon;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nin vec3 a_pos_3;in vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nuniform highp float u_vertical_scale;out vec4 v_color;out vec4 v_flat;\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;\n#endif\n#if defined(ZERO_ROOF_RADIUS) && !defined(LIGHTING_3D_MODE)\nout vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE)\nout highp vec3 v_normal;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;out vec2 v_ao;\n#endif\n#if defined(LIGHTING_3D_MODE) && defined(FLOOD_LIGHT)\nout float v_flood_radius;out float v_has_floodlight;\n#endif\nout float v_height;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define highp float flood_light_wall_radius\n#pragma mapbox: define highp float line_width\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize highp float flood_light_wall_radius\n#pragma mapbox: initialize highp float line_width\nbase*=u_vertical_scale;height*=u_vertical_scale;vec4 pos_nx=floor(a_pos_normal_ed*0.5);vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE)\nv_normal=normal;\n#endif\nbase=max(0.0,base);float attr_height=height;height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=0.0;float c_ele=0.0;vec3 pos;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);pos=vec3(pos_nx.xy,h);\n#else\nh=t > 0.0 ? height : base;pos=vec3(pos_nx.xy,h);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*h);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat cutoff=1.0;vec3 scaled_pos=pos;\n#ifdef RENDER_CUTOFF\nvec3 centroid_random=vec3(centroid_pos.xy,centroid_pos.x+centroid_pos.y+1.0);vec3 ground_pos=centroid_pos.x==0.0 ? pos.xyz : (centroid_random/8.0);vec4 ground=u_matrix*vec4(ground_pos.xy,ele,1.0);cutoff=cutoff_opacity(u_cutoff_params,ground.z);if (centroid_pos.y !=0.0 && centroid_pos.x !=0.0) {vec3 g=floor(ground_pos);vec3 mod_=centroid_random-g*8.0;float seed=min(1.0,0.1*(min(3.5,max(mod_.x+mod_.y,0.2*attr_height))*0.35+mod_.z));if (cutoff < 0.8-seed) {cutoff=0.0;}}float cutoff_scale=cutoff;v_cutoff_opacity=cutoff;scaled_pos.z=mix(c_ele,h,cutoff_scale);\n#endif\nfloat hidden=float((centroid_pos.x==0.0 && centroid_pos.y==1.0) || (cutoff==0.0 && centroid_pos.x !=0.0));\n#ifdef RENDER_WALL_MODE\nvec2 wall_offset=u_width_scale*line_width*(a_join_normal_inside_polygon.xy/EXTENT);float isPolygon=a_join_normal_inside_polygon.w;float sideAlignment=abs(isPolygon*u_alignment);scaled_pos.xy+=(1.0-a_join_normal_inside_polygon.z)*mix(wall_offset*0.5,wall_offset*mix(1.0,0.0,max(u_alignment,0.0)),sideAlignment);scaled_pos.xy-=a_join_normal_inside_polygon.z*mix(wall_offset*0.5,wall_offset*mix(0.0,1.0,max(u_alignment,0.0)),sideAlignment);\n#endif\ngl_Position=mix(u_matrix*vec4(scaled_pos,1),AWAY,hidden);h=h-ele;v_height=h;\n#ifdef RENDER_SHADOWS\nvec3 shd_pos0=pos;vec3 shd_pos1=pos;\n#ifdef NORMAL_OFFSET\nvec3 offset=shadow_normal_offset(normal);shd_pos0+=offset*shadow_normal_offset_multiplier0();shd_pos1+=offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);\n#endif\nfloat NdotL=0.0;float colorvalue=0.0;\n#ifndef LIGHTING_3D_MODE\ncolorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;NdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),NdotL);if (normal.y !=0.0) {float r=0.84;r=mix(0.7,0.98,1.0-u_lightintensity);NdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}\n#endif\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec2(mix(concave,-concave,start),y_ground);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\n#ifdef FLOOD_LIGHT\nfloat is_wall=1.0-float(t > 0.0 && top_up_ny.y > 0.0);v_has_floodlight=float(flood_light_wall_radius > 0.0 && is_wall > 0.0);v_flood_radius=flood_light_wall_radius*u_vertical_scale;\n#endif\nv_color=vec4(color.rgb,1.0);v_flat=vec4(linearProduct(color.rgb,vec3(calculate_NdotL(normal))),1.0);\n#else\nv_color=vec4(0.0,0.0,0.0,1.0);v_color.rgb+=clamp(color.rgb*NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_color*=u_opacity;\n#endif\n#if defined(ZERO_ROOF_RADIUS) && !defined(LIGHTING_3D_MODE)\nfloat roofNdotL=clamp(u_lightpos.z,0.0,1.0);roofNdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),roofNdotL);v_roof_color=vec4(0.0,0.0,0.0,1.0);v_roof_color.rgb+=clamp(color.rgb*roofNdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_roof_color*=u_opacity;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}'),fillExtrusionDepth:Tt("in highp float v_depth;void main() {\n#ifndef DEPTH_TEXTURE\nglFragColor=pack_depth(v_depth);\n#endif\n}",'#include "_prelude_terrain.vertex.glsl"\nuniform mat4 u_matrix;uniform float u_edge_radius;uniform float u_alignment;uniform float u_width_scale;uniform float u_vertical_scale;in vec4 a_pos_normal_ed;in vec2 a_centroid_pos;\n#ifdef RENDER_WALL_MODE\nin vec4 a_join_normal_inside_polygon;\n#endif\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp float line_width\nout highp float v_depth;void main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp float line_width\nbase*=u_vertical_scale;height*=u_vertical_scale;vec3 pos_nx=floor(a_pos_normal_ed.xyz*0.5);mediump vec3 top_up_ny=a_pos_normal_ed.xyz-2.0*pos_nx;base=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nvec3 pos;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;float ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;float h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base);pos=vec3(pos_nx.xy,h);\n#else\npos=vec3(pos_nx.xy,t > 0.0 ? height : base);\n#endif\n#ifdef RENDER_WALL_MODE\nvec2 wall_offset=u_width_scale*line_width*(a_join_normal_inside_polygon.xy/EXTENT);float isPolygon=a_join_normal_inside_polygon.w;float sideAlignment=abs(isPolygon*u_alignment);pos.xy+=(1.0-a_join_normal_inside_polygon.z)*mix(wall_offset*0.5,wall_offset*mix(1.0,0.0,max(u_alignment,0.0)),sideAlignment);pos.xy-=a_join_normal_inside_polygon.z*mix(wall_offset*0.5,wall_offset*mix(0.0,1.0,max(u_alignment,0.0)),sideAlignment);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);v_depth=gl_Position.z/gl_Position.w;}'),fillExtrusionPattern:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform vec2 u_texsize;uniform sampler2D u_image;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;in vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nin vec3 v_normal;\n#endif\nin vec2 v_pos;in vec4 v_lighting;uniform lowp float u_opacity;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define mediump vec4 pattern\n#pragma mapbox: define highp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize highp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec2 lod_pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,v_pos);vec4 out_color=textureLodCustom(u_image,pos,lod_pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color,normalize(v_normal))*u_opacity;\n#else\nout_color=out_color*v_lighting;\n#endif\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);out_color.rgb=out_color.rgb*shade;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef INDICATOR_CUTOUT\nout_color=applyCutout(out_color);\n#endif\nglFragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#include "_prelude_lighting.glsl"\nuniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform float u_tile_units_to_pixels;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_alignment;uniform float u_width_scale;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;in vec4 a_pos_normal_ed;in vec2 a_centroid_pos;\n#ifdef RENDER_WALL_MODE\nin vec4 a_join_normal_inside_polygon;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nin vec3 a_pos_3;in vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nout vec2 v_pos;out vec4 v_lighting;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;out vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nout vec3 v_normal;\n#endif\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define mediump vec4 pattern\n#pragma mapbox: define highp float pixel_ratio\n#pragma mapbox: define highp float line_width\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize highp float pixel_ratio\n#pragma mapbox: initialize highp float line_width\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec4 pos_nx=floor(a_pos_normal_ed*0.5);mediump vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;mediump vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=z;vec3 p;float c_ele;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);p=vec3(pos_nx.xy,h);\n#else\np=vec3(pos_nx.xy,z);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\n#ifdef RENDER_WALL_MODE\nvec2 wall_offset=u_width_scale*line_width*(a_join_normal_inside_polygon.xy/EXTENT);float isPolygon=a_join_normal_inside_polygon.w;float sideAlignment=abs(isPolygon*u_alignment);p.xy+=(1.0-a_join_normal_inside_polygon.z)*mix(wall_offset*0.5,wall_offset*mix(1.0,0.0,max(u_alignment,0.0)),sideAlignment);p.xy-=a_join_normal_inside_polygon.z*mix(wall_offset*0.5,wall_offset*mix(0.0,1.0,max(u_alignment,0.0)),sideAlignment);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float NdotL=0.0;\n#ifdef LIGHTING_3D_MODE\nNdotL=calculate_NdotL(normal);\n#else\nNdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),NdotL);\n#endif\nif (normal.y !=0.0) {float r=0.84;\n#ifndef LIGHTING_3D_MODE\nr=mix(0.7,0.98,1.0-u_lightintensity);\n#endif\nNdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_normal=normal;\n#else\nv_lighting.rgb+=clamp(NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#endif \n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}'),groundShadow:Tt('#include "_prelude_shadow.fragment.glsl"\nprecision highp float;uniform vec3 u_ground_shadow_factor;in vec4 v_pos_light_view_0;in vec4 v_pos_light_view_1;\n#ifdef FOG\nin float v_fog_opacity;\n#endif\nvoid main() {float light=shadowed_light_factor(v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);vec3 shadow=mix(u_ground_shadow_factor,vec3(1.0),light);\n#ifdef RENDER_CUTOFF\nshadow=mix(vec3(1.0),shadow,cutoff_opacity(u_cutoff_params,1.0/gl_FragCoord.w));\n#endif\n#ifdef FOG\nshadow=mix(shadow,vec3(1.0),v_fog_opacity);\n#endif\n#ifdef INDICATOR_CUTOUT\nshadow=mix(shadow,vec3(1.0),1.0-applyCutout(vec4(1.0)).r);\n#endif\nglFragColor=vec4(shadow,1.0);}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;in vec2 a_pos;out vec4 v_pos_light_view_0;out vec4 v_pos_light_view_1;\n#ifdef FOG\nout float v_fog_opacity;\n#endif\nvoid main() {gl_Position=u_matrix*vec4(a_pos,0.0,1.0);v_pos_light_view_0=u_light_matrix_0*vec4(a_pos,0.0,1.0);v_pos_light_view_1=u_light_matrix_1*vec4(a_pos,0.0,1.0);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);v_fog_opacity=fog(v_fog_pos);\n#endif\n}'),fillExtrusionGroundEffect:Tt("uniform highp float u_ao_pass;uniform highp float u_opacity;uniform highp float u_flood_light_intensity;uniform highp vec3 u_flood_light_color;uniform highp float u_attenuation;uniform sampler2D u_fb;uniform float u_fb_size;\n#ifdef SDF_SUBPASS\nin highp vec2 v_pos;in highp vec4 v_line_segment;in highp float v_flood_light_radius_tile;in highp vec2 v_ao;float line_df(highp vec2 a,highp vec2 b,highp vec2 p) {highp vec2 ba=b-a;highp vec2 pa=p-a;highp float r=clamp(dot(pa,ba)/dot(ba,ba),0.0,1.0);return length(pa-r*ba);}\n#ifdef FOG\nin highp float v_fog;\n#endif\n#endif\nvoid main() {\n#ifdef CLEAR_SUBPASS\nvec4 color=vec4(1.0);\n#ifdef CLEAR_FROM_TEXTURE\ncolor=texture(u_fb,gl_FragCoord.xy/vec2(u_fb_size));\n#endif\nglFragColor=color;\n#else\n#ifdef SDF_SUBPASS\nhighp float d=line_df(v_line_segment.xy,v_line_segment.zw,v_pos);highp float effect_radius=mix(v_flood_light_radius_tile,v_ao.y,u_ao_pass);d/=effect_radius;d=min(d,1.0);d=1.0-pow(1.0-d,u_attenuation);highp float effect_intensity=mix(u_flood_light_intensity,v_ao.x,u_ao_pass);highp float fog=1.0;\n#ifdef FOG\nfog=v_fog;\n#endif\n#ifdef RENDER_CUTOFF\nfog*=v_cutoff_opacity;\n#endif\nglFragColor=vec4(vec3(0.0),mix(1.0,d,effect_intensity*u_opacity*fog));\n#else\nvec4 color=mix(vec4(u_flood_light_color,1.0),vec4(vec3(0.0),1.0),u_ao_pass);\n#ifdef OVERDRAW_INSPECTOR\ncolor=vec4(1.0);\n#endif\nglFragColor=color;\n#endif\nHANDLE_WIREFRAME_DEBUG;\n#endif\n}",'#include "_prelude_fog.vertex.glsl"\nin highp vec4 a_pos_end;in highp float a_angular_offset_factor;in highp float a_hidden_by_landmark;\n#ifdef SDF_SUBPASS\nout highp vec2 v_pos;out highp vec4 v_line_segment;out highp float v_flood_light_radius_tile;out highp vec2 v_ao;\n#ifdef FOG\nout highp float v_fog;\n#endif\n#endif\nuniform highp float u_flood_light_intensity;uniform highp mat4 u_matrix;uniform highp float u_ao_pass;uniform highp float u_meter_to_tile;uniform highp float u_edge_radius;uniform highp vec2 u_ao;\n#pragma mapbox: define highp float flood_light_ground_radius\nconst float TANGENT_CUTOFF=4.0;const float NORM=32767.0;void main() {\n#pragma mapbox: initialize highp float flood_light_ground_radius\nvec2 p=a_pos_end.xy;vec2 q=floor(a_pos_end.zw*0.5);vec2 start_bottom=a_pos_end.zw-q*2.0;float fl_ground_radius=flood_light_ground_radius;fl_ground_radius=abs(flood_light_ground_radius);float direction=flood_light_ground_radius < 0.0 ?-1.0 : 1.0;float flood_radius_tile=fl_ground_radius*u_meter_to_tile;vec2 v=normalize(q-p);float ao_radius=u_ao.y/3.5;float effect_radius=mix(flood_radius_tile,ao_radius,u_ao_pass)+u_edge_radius;float angular_offset_factor=a_angular_offset_factor/NORM*TANGENT_CUTOFF;float angular_offset=direction*angular_offset_factor*effect_radius;float top=1.0-start_bottom.y;float side=(0.5-start_bottom.x)*2.0;vec2 extrusion_parallel=v*side*mix(1.0,angular_offset,top);vec2 perp=vec2(v.y,-v.x);vec2 extrusion_perp=direction*perp*effect_radius*top;vec3 pos=vec3(mix(q,p,start_bottom.x),0.0);pos.xy+=extrusion_parallel+extrusion_perp;\n#ifdef SDF_SUBPASS\nv_pos=pos.xy;v_line_segment=vec4(p,q)+perp.xyxy*u_edge_radius;v_flood_light_radius_tile=flood_radius_tile;v_ao=vec2(u_ao.x,ao_radius);\n#ifdef FOG\nv_fog_pos=fog_position(pos);v_fog=1.0-fog(v_fog_pos);\n#endif\n#endif\nfloat hidden_by_landmark=0.0;\n#ifdef HAS_CENTROID\nhidden_by_landmark=a_hidden_by_landmark;\n#endif\nfloat isFloodlit=float(fl_ground_radius > 0.0 && u_flood_light_intensity > 0.0);float hidden=mix(1.0-isFloodlit,isFloodlit,u_ao_pass);hidden+=hidden_by_landmark;gl_Position=mix(u_matrix*vec4(pos,1.0),AWAY,float(hidden > 0.0));\n#ifdef RENDER_CUTOFF\nv_cutoff_opacity=cutoff_opacity(u_cutoff_params,gl_Position.z);\n#endif\n}'),hillshadePrepare:Tt("precision highp float;uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;float getElevation(vec2 coord) {return texture(u_image,coord).r/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos+vec2(epsilon.x,0));float f=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float g=getElevation(v_pos+vec2(0,epsilon.y));float h=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+e+e+h)-(a+d+d+f),(f+g+g+h)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));glFragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);}","uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;uniform float u_emissive_strength;void main() {vec4 pixel=texture(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);glFragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef LIGHTING_3D_MODE\nglFragColor=apply_lighting_with_emission_ground(glFragColor,u_emissive_strength);\n#endif\n#ifdef FOG\nglFragColor=fog_dither(fog_apply_premultiplied(glFragColor,v_fog_pos));\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),line:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;uniform highp vec2 u_trim_offset;uniform highp vec2 u_trim_fade_range;uniform lowp vec4 u_trim_color;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform sampler2D u_dash_image;in vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform sampler2D u_gradient_image;\n#endif\nfloat luminance(vec3 c) {return (c.r+c.r+c.b+c.g+c.g+c.g)*0.1667;}uniform float u_emissive_strength;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float border_width\n#pragma mapbox: define lowp vec4 border_color\nfloat linearstep(float edge0,float edge1,float x) {return clamp((x-edge0)/(edge1-edge0),0.0,1.0);}void main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float border_width\n#pragma mapbox: initialize lowp vec4 border_color\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\n#ifdef RENDER_LINE_DASH\nfloat sdfdist=texture(u_dash_image,v_tex).r;float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/dash.z;alpha*=linearstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);\n#endif\nhighp vec4 out_color;\n#ifdef RENDER_LINE_GRADIENT\nout_color=texture(u_gradient_image,v_uv.xy);\n#else\nout_color=color;\n#endif\nfloat trim_alpha=1.0;\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {highp float start_transition=max(0.0,min(1.0,(line_progress-trim_start)/max(u_trim_fade_range[0],1.0e-9)));highp float end_transition=max(0.0,min(1.0,(trim_end-line_progress)/max(u_trim_fade_range[1],1.0e-9)));highp float transition_factor=min(start_transition,end_transition);out_color=mix(out_color,u_trim_color,transition_factor);trim_alpha=out_color.a;}\n#endif\nif (u_alpha_discard_threshold !=0.0) {if (alpha < u_alpha_discard_threshold) {discard;}}\n#ifdef RENDER_LINE_BORDER\nfloat edgeBlur=(border_width+1.0/u_device_pixel_ratio);float alpha2=clamp(min(dist-(v_width2.t-edgeBlur),v_width2.s-dist)/edgeBlur,0.0,1.0);if (alpha2 < 1.) {float smoothAlpha=smoothstep(0.6,1.0,alpha2);if (border_color.a==0.0) {float Y=(out_color.a > 0.01) ? luminance(out_color.rgb/out_color.a) : 1.;float adjustment=(Y > 0.) ? 0.5/Y : 0.45;if (out_color.a > 0.25 && Y < 0.25) {vec3 borderColor=(Y > 0.) ? out_color.rgb : vec3(1,1,1)*out_color.a;out_color.rgb=out_color.rgb+borderColor*(adjustment*(1.0-smoothAlpha));} else {out_color.rgb*=(0.6 +0.4*smoothAlpha);}} else {out_color.rgb=mix(border_color.rgb*border_color.a*trim_alpha,out_color.rgb,smoothAlpha);}}\n#endif\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nout_color*=(alpha*opacity);\n#ifdef INDICATOR_CUTOUT\nout_color=applyCutout(out_color);\n#endif\nglFragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#define EXTRUDE_SCALE 0.015873016\nin vec2 a_pos_normal;in vec4 a_data;\n#if defined(ELEVATED)\nin float a_z_offset;\n#endif\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nin highp vec4 a_packed;\n#endif\n#ifdef RENDER_LINE_DASH\nin float a_linesofar;\n#endif\nuniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform vec2 u_texsize;uniform float u_tile_units_to_pixels;out vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform float u_image_height;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float border_width\n#pragma mapbox: define lowp vec4 border_color\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float border_width\n#pragma mapbox: initialize lowp vec4 border_color\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);\n#if defined(ELEVATED)\nvec2 offsetTile=offset2*u_pixels_to_tile_units;vec2 halfCellProgress=normal.yx*32.0;float ele0=elevation(pos);float ele_line=max(ele0,max(elevation(pos+halfCellProgress),elevation(pos-halfCellProgress)));float ele1=elevation(pos+offsetTile);float ele2=elevation(pos-offsetTile);float ele_max=max(ele_line,0.5*(ele1+ele2));float ele=ele_max-ele0+ele1+a_z_offset ;gl_Position=u_matrix*vec4(pos+offsetTile,ele,1.0)+projected_extrude;float z=clamp(gl_Position.z/gl_Position.w,0.5,1.0);float zbias=max(0.00005,(pow(z,0.8)-z)*0.1*u_exaggeration);gl_Position.z-=(gl_Position.w*zbias);\n#else\ngl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#endif\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nfloat a_uv_x=a_packed[0];float a_split_index=a_packed[1];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];\n#ifdef RENDER_LINE_GRADIENT\nhighp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec4(a_uv_x,a_split_index*texel_height-half_texel_height,a_clip_start,a_clip_end);\n#else\nv_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end);\n#endif\n#endif\n#ifdef RENDER_LINE_DASH\nfloat scale=dash.z==0.0 ? 0.0 : u_tile_units_to_pixels/dash.z;float height=dash.y;v_tex=vec2(a_linesofar*scale/floorwidth,(-normal.y*height+dash.x+0.5)/u_texsize.y);\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}'),linePattern:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform highp float u_device_pixel_ratio;uniform highp float u_alpha_discard_threshold;uniform highp vec2 u_texsize;uniform highp float u_tile_units_to_pixels;uniform highp vec2 u_trim_offset;uniform sampler2D u_image;in vec2 v_normal;in vec2 v_width2;in highp float v_linesofar;in float v_gamma_scale;in float v_width;\n#ifdef RENDER_LINE_TRIM_OFFSET\nin highp vec4 v_uv;\n#endif\n#ifdef LINE_JOIN_NONE\nin vec2 v_pattern_data;\n#endif\n#pragma mapbox: define mediump vec4 pattern\n#pragma mapbox: define mediump float pixel_ratio\n#pragma mapbox: define mediump float blur\n#pragma mapbox: define mediump float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize mediump float pixel_ratio\n#pragma mapbox: initialize mediump float blur\n#pragma mapbox: initialize mediump float opacity\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;float pattern_size=display_size.x/u_tile_units_to_pixels;float aspect=display_size.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);highp float pattern_x=v_linesofar/pattern_size*aspect;float x=mod(pattern_x,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(x,y));vec2 lod_pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(pattern_x,y));vec4 color=textureLodCustom(u_image,pos,lod_pos);\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {if (line_progress <=trim_end && line_progress >=trim_start) {color=vec4(0,0,0,0);}}\n#endif\n#ifdef LINE_JOIN_NONE\nfloat pattern_len=pattern_size/aspect;float segment_phase=pattern_len-mod(v_linesofar-v_pattern_data.x+pattern_len,pattern_len);float visible_start=segment_phase-step(pattern_len*0.5,segment_phase)*pattern_len;float visible_end=floor((v_pattern_data.y-segment_phase)/pattern_len)*pattern_len+segment_phase;visible_end+=step(pattern_len*0.5,v_pattern_data.y-visible_end)*pattern_len;if (v_pattern_data.x < visible_start || v_pattern_data.x >=visible_end) {color=vec4(0.0);}\n#endif\n#ifdef LIGHTING_3D_MODE\ncolor=apply_lighting_ground(color);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ncolor*=(alpha*opacity);if (u_alpha_discard_threshold !=0.0) {if (color.a < u_alpha_discard_threshold) {discard;}}\n#ifdef INDICATOR_CUTOUT\ncolor=applyCutout(color);\n#endif\nglFragColor=color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#define scale 0.015873016\nin vec2 a_pos_normal;in vec4 a_data;\n#if defined(ELEVATED)\nin float a_z_offset;\n#endif\n#ifdef RENDER_LINE_TRIM_OFFSET\nin highp vec4 a_packed;\n#endif\nin highp float a_linesofar;\n#ifdef LINE_JOIN_NONE\nin highp vec3 a_pattern_data;out vec2 v_pattern_data;\n#endif\nuniform mat4 u_matrix;uniform float u_tile_units_to_pixels;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out highp float v_linesofar;out float v_gamma_scale;out float v_width;\n#ifdef RENDER_LINE_TRIM_OFFSET\nout highp vec4 v_uv;\n#endif\n#pragma mapbox: define mediump float blur\n#pragma mapbox: define mediump float opacity\n#pragma mapbox: define mediump float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define mediump float floorwidth\n#pragma mapbox: define mediump vec4 pattern\n#pragma mapbox: define mediump float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize mediump float blur\n#pragma mapbox: initialize mediump float opacity\n#pragma mapbox: initialize mediump float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize mediump float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize mediump float pixel_ratio\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);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);vec2 dist=outset*a_extrude*scale;float u=0.5*a_direction;float t=1.0-abs(u);vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);\n#if defined(ELEVATED)\nvec2 offsetTile=offset2*u_pixels_to_tile_units;vec2 halfCellProgress=normal.yx*32.0;float ele0=elevation(pos);float ele_line=max(ele0,max(elevation(pos+halfCellProgress),elevation(pos-halfCellProgress)));float ele1=elevation(pos+offsetTile);float ele2=elevation(pos-offsetTile);float ele_max=max(ele_line,0.5*(ele1+ele2));float ele=ele_max-ele0+ele1+a_z_offset ;gl_Position=u_matrix*vec4(pos+offsetTile,ele,1.0)+projected_extrude;float z=clamp(gl_Position.z/gl_Position.w,0.5,1.0);float zbias=max(0.00005,(pow(z,0.8)-z)*0.1*u_exaggeration);gl_Position.z-=(gl_Position.w*zbias);\n#else\ngl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#endif\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\n#ifdef RENDER_LINE_TRIM_OFFSET\nfloat a_uv_x=a_packed[0];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];v_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end);\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;\n#ifdef LINE_JOIN_NONE\nv_width=floorwidth+ANTIALIASING;mediump float pixels_to_tile_units=1.0/u_tile_units_to_pixels;mediump float pixel_ratio_inverse=1.0/pixel_ratio;mediump float aspect=v_width/((pattern.w-pattern.y)*pixel_ratio_inverse);highp float subt_multiple=(pattern.z-pattern.x)*pixel_ratio_inverse*pixels_to_tile_units*aspect*32.0;highp float subt=floor(a_pattern_data.z/subt_multiple)*subt_multiple;float offset_sign=(fract(a_pattern_data.x)-0.5)*4.0;float line_progress_offset=offset_sign*v_width*0.5*pixels_to_tile_units;v_linesofar=(a_pattern_data.z-subt)+a_linesofar+line_progress_offset;v_pattern_data=vec2(a_pattern_data.x+line_progress_offset,a_pattern_data.y);\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}'),raster:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_raster_array.glsl"\nuniform float u_fade_t;uniform float u_opacity;uniform highp float u_raster_elevation;uniform highp float u_zoom_transition;in vec2 v_pos0;in vec2 v_pos1;in float v_depth;\n#ifdef PROJECTION_GLOBE_VIEW\nin float v_split_fade;\n#endif\nuniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;uniform float u_emissive_strength;\n#ifndef RASTER_ARRAY\nuniform sampler2D u_image0;uniform sampler2D u_image1;\n#endif\n#ifdef RASTER_COLOR\nuniform sampler2D u_color_ramp;uniform highp vec4 u_colorization_mix;uniform highp float u_colorization_offset;uniform vec2 u_texture_res;\n#endif\nvoid main() {vec4 color0,color1,color;vec2 value;\n#ifdef RASTER_COLOR\n#ifdef RASTER_ARRAY\n#ifdef RASTER_ARRAY_LINEAR\nvalue=mix(\nraTexture2D_image0_linear(v_pos0,u_texture_res,u_colorization_mix,u_colorization_offset),raTexture2D_image1_linear(v_pos1,u_texture_res,u_colorization_mix,u_colorization_offset),u_fade_t\n);\n#else\nvalue=mix(\nraTexture2D_image0_nearest(v_pos0,u_texture_res,u_colorization_mix,u_colorization_offset),raTexture2D_image1_nearest(v_pos1,u_texture_res,u_colorization_mix,u_colorization_offset),u_fade_t\n);\n#endif\nif (value.y > 0.0) value.x/=value.y;\n#else\ncolor=mix(texture(u_image0,v_pos0),texture(u_image1,v_pos1),u_fade_t);value=vec2(u_colorization_offset+dot(color.rgb,u_colorization_mix.rgb),color.a);\n#endif\ncolor=texture(u_color_ramp,vec2(value.x,0.5));if (color.a > 0.0) color.rgb/=color.a;color.a*=value.y;\n#else\ncolor0=texture(u_image0,v_pos0);color1=texture(u_image1,v_pos1);if (color0.a > 0.0) color0.rgb/=color0.a;if (color1.a > 0.0) color1.rgb/=color1.a;color=mix(color0,color1,u_fade_t);\n#endif\ncolor.a*=u_opacity;\n#ifdef GLOBE_POLES\ncolor.a*=1.0-smoothstep(0.0,0.05,u_zoom_transition);\n#endif\nvec3 rgb=color.rgb;rgb=vec3(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(vec4(out_color,1.0),u_emissive_strength).rgb;\n#endif\n#ifdef FOG\nhighp float fog_limit_high_meters=1000000.0;highp float fog_limit_low_meters=600000.0;float fog_limit=1.0-smoothstep(fog_limit_low_meters,fog_limit_high_meters,u_raster_elevation);out_color=fog_dither(fog_apply(out_color,v_fog_pos,fog_limit));\n#endif\nglFragColor=vec4(out_color*color.a,color.a);\n#ifdef PROJECTION_GLOBE_VIEW\nglFragColor*=mix(1.0,1.0-smoothstep(0.0,0.05,u_zoom_transition),smoothstep(0.8,0.9,v_split_fade));\n#endif\n#ifdef RENDER_CUTOFF\nglFragColor=glFragColor*cutoff_opacity(u_cutoff_params,v_depth);\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform mat3 u_grid_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;uniform vec2 u_texture_offset;uniform float u_raster_elevation;uniform float u_zoom_transition;uniform vec2 u_merc_center;\n#define GLOBE_UPSCALE GLOBE_RADIUS/6371008.8\n#ifdef GLOBE_POLES\nin vec3 a_globe_pos;in vec2 a_uv;\n#else\nin vec2 a_pos;in vec2 a_texture_pos;\n#endif\nout vec2 v_pos0;out vec2 v_pos1;out float v_depth;\n#ifdef PROJECTION_GLOBE_VIEW\nout float v_split_fade;\n#endif\nvoid main() {vec2 uv;\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;globe_pos+=normalize(globe_pos)*u_raster_elevation*GLOBE_UPSCALE;gl_Position=u_matrix*u_globe_matrix*vec4(globe_pos ,1.0);uv=a_uv;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(a_globe_pos,1.0)).xyz);\n#endif\n#else\nfloat w=1.0+dot(a_texture_pos,u_perspective_transform);uv=a_texture_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);vec3 globe_pos=latLngToECEF(latLng.xy);globe_pos+=normalize(globe_pos)*u_raster_elevation*GLOBE_UPSCALE;vec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);float mercatorY=mercatorYfromLat(latLng[0]);float mercatorX=mercatorXfromLng(latLng[1]); \nv_split_fade=0.0;if (u_zoom_transition > 0.0) {vec2 merc_pos=vec2(mercatorX,mercatorY);merc_world_pos=vec4(merc_pos,u_raster_elevation,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;float opposite_merc_center=mod(u_merc_center.x+0.5,1.0);float dist_from_poles=(abs(mercatorY-0.5)*2.0);float range=0.1;v_split_fade=abs(opposite_merc_center-mercatorX);v_split_fade=clamp(1.0-v_split_fade,0.0,1.0);v_split_fade=max(smoothstep(1.0-range,1.0,dist_from_poles),max(smoothstep(1.0-range,1.0,v_split_fade),smoothstep(1.0-range,1.0,1.0-v_split_fade)));}float tiles=u_grid_matrix[0][2];if (tiles > 0.0) {float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];float uvY=mercatorY*tiles-idy;float uvX=mercatorX*tiles-idx;uv=vec2(uvX,uvY);}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition)*w,w);gl_Position=u_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n#else\ngl_Position=u_matrix*vec4(a_pos*w,u_raster_elevation*w,w);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n#endif\n#endif\nv_pos0=uv;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;v_pos0=u_texture_offset.x+u_texture_offset.y*v_pos0;v_pos1=u_texture_offset.x+u_texture_offset.y*v_pos1;\n#ifdef RENDER_CUTOFF\nv_depth=gl_Position.z;\n#endif\n}'),rasterParticle:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform float u_fade_t;uniform float u_opacity;uniform highp float u_raster_elevation;in vec2 v_pos0;in vec2 v_pos1;uniform sampler2D u_image0;uniform sampler2D u_image1;void main() {vec4 color0,color1,color;color0=texture(u_image0,v_pos0);color1=texture(u_image1,v_pos1);if (color0.a > 0.0) color0.rgb/=color0.a;if (color1.a > 0.0) color1.rgb/=color1.a;color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 out_color=color.rgb;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(vec4(out_color,1.0),0.0).rgb;\n#endif\n#ifdef FOG\nhighp float fog_limit_high_meters=1000000.0;highp float fog_limit_low_meters=600000.0;float fog_limit=1.0-smoothstep(fog_limit_low_meters,fog_limit_high_meters,u_raster_elevation);out_color=fog_dither(fog_apply(out_color,v_fog_pos,fog_limit));\n#endif\nglFragColor=vec4(out_color*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform mat3 u_grid_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_raster_elevation;uniform float u_zoom_transition;uniform vec2 u_merc_center;\n#define GLOBE_UPSCALE GLOBE_RADIUS/6371008.8\nin vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos0;out vec2 v_pos1;void main() {float w=1.0;vec2 uv;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float mercatorX=mercatorXfromLng(latLng[1]);float tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];float uvX=mercatorX*tiles-idx;float uvY=mercatorY*tiles-idy;uv=vec2(uvX,uvY);vec3 globe_pos=latLngToECEF(latLng.xy);globe_pos+=normalize(globe_pos)*u_raster_elevation*GLOBE_UPSCALE;vec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {vec2 merc_pos=vec2(mercatorX,mercatorY);merc_world_pos=vec4(merc_pos,u_raster_elevation,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition)*w,w);gl_Position=u_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n#else\nuv=a_texture_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*w,u_raster_elevation*w,w);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n#endif\nv_pos0=uv;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}'),rasterParticleDraw:Tt("uniform sampler2D u_color_ramp;in float v_particle_speed;void main() {glFragColor=texture(u_color_ramp,vec2(v_particle_speed,0.5));}",'#include "_prelude_raster_particle.glsl"\nin float a_index;uniform sampler2D u_particle_texture;uniform float u_particle_texture_side_len;uniform vec2 u_tile_offset;out float v_particle_speed;void main() {ivec2 pixel_coord=ivec2(\nmod(a_index,u_particle_texture_side_len),a_index/u_particle_texture_side_len);vec4 pixel=texelFetch(u_particle_texture,pixel_coord,0);vec2 pos=unpack_pos_from_rgba(pixel)+u_tile_offset;vec2 tex_coord=fract(pos);vec2 velocity=lookup_velocity(tex_coord);if (velocity==INVALID_VELOCITY) {gl_Position=AWAY;v_particle_speed=0.0;} else {gl_Position=vec4(2.0*pos-1.0,0,1);v_particle_speed=length(velocity);}gl_PointSize=1.0;}'),rasterParticleTexture:Tt("uniform sampler2D u_texture;uniform float u_opacity;in vec2 v_tex_pos;void main() {vec4 color=texture(u_texture,v_tex_pos);glFragColor=vec4(floor(255.0*color*u_opacity)/255.0);}","in vec2 a_pos;out vec2 v_tex_pos;void main() {vec2 uv=0.5*a_pos+vec2(0.5);v_tex_pos=uv;gl_Position=vec4(a_pos,0.0,1.0);}"),rasterParticleUpdate:Tt('#include "_prelude_raster_particle.glsl"\nuniform sampler2D u_particle_texture;uniform mediump float u_particle_texture_side_len;uniform mediump float u_speed_factor;uniform highp float u_reset_rate;uniform highp float u_rand_seed;in highp vec2 v_tex_coord;vec2 linearstep(vec2 edge0,vec2 edge1,vec2 x) {return clamp((x-edge0)/(edge1-edge0),vec2(0),vec2(1));}const highp vec3 rand_constants=vec3(12.9898,78.233,4375.85453);highp float rand(const highp vec2 co) {highp float t=dot(rand_constants.xy,co);return fract(sin(t)*(rand_constants.z+t));}void main() {ivec2 pixel_coord=ivec2(v_tex_coord*u_particle_texture_side_len);highp vec4 pixel=texelFetch(u_particle_texture,pixel_coord,0);highp vec2 pos=unpack_pos_from_rgba(pixel);highp vec2 velocity=lookup_velocity(clamp(pos,0.0,1.0));highp vec2 dp=velocity==INVALID_VELOCITY ? vec2(0) : velocity*u_speed_factor;pos=pos+dp;highp vec2 seed=(pos+v_tex_coord)*u_rand_seed;highp vec2 random_pos=vec2(rand(seed+1.3),rand(seed+2.1));highp vec2 persist_rate=pow(\nlinearstep(vec2(-u_particle_pos_offset),vec2(0),pos)*linearstep(vec2(1.0+u_particle_pos_offset),vec2(1),pos),vec2(4)\n);highp vec2 per_frame_persist=pow(persist_rate,abs(dp)/u_particle_pos_offset);highp float drop_rate=1.0-per_frame_persist.x*per_frame_persist.y;drop_rate=any(greaterThanEqual(abs(pos-0.5),vec2(0.5+u_particle_pos_offset))) ? 1.0 : drop_rate;highp float drop=step(1.0-drop_rate-u_reset_rate,rand(seed));highp vec2 next_pos=mix(pos,random_pos,drop);glFragColor=pack_pos_to_rgba(next_pos);}',"in vec2 a_pos;out vec2 v_tex_coord;void main() {v_tex_coord=0.5*(a_pos+vec2(1.0));gl_Position=vec4(a_pos,0.0,1.0);}"),symbolIcon:Tt('#include "_prelude_lighting.glsl"\nuniform sampler2D u_texture;\n#ifdef ICON_TRANSITION\nuniform float u_icon_transition;\n#endif\nin float v_fade_opacity;in vec2 v_tex_a;\n#ifdef ICON_TRANSITION\nin vec2 v_tex_b;\n#endif\n#ifdef COLOR_ADJUSTMENT\nuniform mat4 u_color_adj_mat;\n#endif\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float emissive_strength\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float emissive_strength\nlowp float alpha=opacity*v_fade_opacity;vec4 out_color;\n#ifdef ICON_TRANSITION\nvec4 a=texture(u_texture,v_tex_a)*(1.0-u_icon_transition);vec4 b=texture(u_texture,v_tex_b)*u_icon_transition;out_color=(a+b);\n#else\nout_color=texture(u_texture,v_tex_a);\n#endif\n#ifdef COLOR_ADJUSTMENT\nout_color=u_color_adj_mat*out_color;\n#endif\nout_color*=alpha;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,emissive_strength);\n#endif\nglFragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_terrain.vertex.glsl"\nin vec4 a_pos_offset;in vec4 a_tex_size;in vec4 a_pixeloffset;in vec4 a_projected_pos;in float a_fade_opacity;\n#ifdef OCCLUSION_QUERIES\nin float a_occlusion_query_opacity;\n#endif\n#ifdef Z_OFFSET\nin float a_z_offset;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nin vec3 a_globe_anchor;in vec3 a_globe_normal;\n#endif\n#ifdef ICON_TRANSITION\nin vec2 a_texb;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nout vec2 v_tex_a;\n#ifdef ICON_TRANSITION\nout vec2 v_tex_b;\n#endif\nout float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float emissive_strength\n#pragma mapbox: define lowp float occlusion_opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float emissive_strength\n#pragma mapbox: initialize lowp float occlusion_opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;float e=elevation(tile_anchor);\n#ifdef Z_OFFSET\ne+=a_z_offset;\n#endif\nvec3 h=elevationVector(tile_anchor)*e;float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;vec3 world_pos_globe;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos_globe=a_globe_anchor+h;world_pos=mix_globe_mercator(world_pos_globe,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjected_point;vec2 a;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetProjected_point=u_matrix*vec4(a_globe_anchor+displacement,1);vec4 projected_point_globe=u_matrix*vec4(world_pos_globe,1);a=projected_point_globe.xy/projected_point_globe.w;\n#else\noffsetProjected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);a=projected_point.xy/projected_point.w;\n#endif\nvec2 b=offsetProjected_point.xy/offsetProjected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=globe_occlusion_fade;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float out_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;float alpha=opacity*out_fade_opacity;float hidden=float(alpha==0.0 || projected_point.w <=0.0 || occlusion_fade==0.0);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,hidden);\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,hidden);\n#endif\nv_tex_a=a_tex/u_texsize;\n#ifdef ICON_TRANSITION\nv_tex_b=a_texb/u_texsize;\n#endif\nv_fade_opacity=out_fade_opacity;\n#ifdef DEPTH_OCCLUSION\nfloat depthOcclusion=occlusionFadeMultiSample(projected_point);float depthOcclusionMultplier=mix(occlusion_opacity,1.0,depthOcclusion);v_fade_opacity*=depthOcclusionMultplier;\n#endif\n#ifdef OCCLUSION_QUERIES\nfloat occludedFadeMultiplier=mix(occlusion_opacity,1.0,a_occlusion_query_opacity);v_fade_opacity*=occludedFadeMultiplier;\n#endif\n}'),symbolSDF:Tt('#include "_prelude_lighting.glsl"\n#define SDF_PX 8.0\nuniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;uniform bool u_is_halo;in float v_draw_halo;in vec2 v_data0;in 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\n#pragma mapbox: define lowp float emissive_strength\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\n#pragma mapbox: initialize lowp float emissive_strength\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;bool draw_halo=v_draw_halo > 0.0;if (draw_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=texture(u_texture,tex).r;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);vec4 out_color=color*(alpha*opacity*fade_opacity);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,emissive_strength);\n#endif\nglFragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_terrain.vertex.glsl"\nin vec4 a_pos_offset;in vec4 a_tex_size;in vec4 a_pixeloffset;in vec4 a_projected_pos;in float a_fade_opacity;\n#ifdef Z_OFFSET\nin float a_z_offset;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nin vec3 a_globe_anchor;in vec3 a_globe_normal;\n#endif\n#ifdef OCCLUSION_QUERIES\nin float a_occlusion_query_opacity;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform bool u_is_halo;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nout float v_draw_halo;out vec2 v_data0;out 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\n#pragma mapbox: define lowp float emissive_strength\n#pragma mapbox: define lowp float occlusion_opacity\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\n#pragma mapbox: initialize lowp float emissive_strength\n#pragma mapbox: initialize lowp float occlusion_opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;float e=elevation(tile_anchor);\n#ifdef Z_OFFSET\ne+=a_z_offset;\n#endif\nvec3 h=elevationVector(tile_anchor)*e;float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;vec3 world_pos_globe;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos_globe=a_globe_anchor+h;world_pos=mix_globe_mercator(world_pos_globe,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetprojected_point;vec2 a;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetprojected_point=u_matrix*vec4(a_globe_anchor+displacement,1);vec4 projected_point_globe=u_matrix*vec4(world_pos_globe,1);a=projected_point_globe.xy/projected_point_globe.w;\n#else\noffsetprojected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);a=projected_point.xy/projected_point.w;\n#endif\nvec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=globe_occlusion_fade;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float out_fade_opacity=interpolated_fade_opacity*projection_transition_fade;\n#ifdef DEPTH_OCCLUSION\nfloat depthOcclusion=occlusionFadeMultiSample(projected_point);float depthOcclusionMultplier=mix(occlusion_opacity,1.0,depthOcclusion);out_fade_opacity*=depthOcclusionMultplier;\n#endif\n#ifdef OCCLUSION_QUERIES\nfloat occludedFadeMultiplier=mix(occlusion_opacity,1.0,a_occlusion_query_opacity);out_fade_opacity*=occludedFadeMultiplier;\n#endif\nfloat alpha=opacity*out_fade_opacity;float hidden=float(alpha==0.0 || projected_point.w <=0.0 || occlusion_fade==0.0);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,hidden);\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,hidden);\n#endif\nfloat gamma_scale=gl_Position.w;v_draw_halo=(u_is_halo && float(gl_InstanceID)==0.0) ? 1.0 : 0.0;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,out_fade_opacity);}'),symbolTextAndIcon:Tt('#include "_prelude_lighting.glsl"\n#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_halo;in float v_draw_halo;in vec4 v_data0;in 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\n#pragma mapbox: define lowp float emissive_strength\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\n#pragma mapbox: initialize lowp float emissive_strength\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;glFragColor=texture(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=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;bool draw_halo=v_draw_halo > 0.0;if (draw_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=texture(u_texture,tex).r;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);vec4 out_color=color*(alpha*opacity*fade_opacity);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,emissive_strength);\n#endif\nglFragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_terrain.vertex.glsl"\nin vec4 a_pos_offset;in vec4 a_tex_size;in vec4 a_projected_pos;in float a_fade_opacity;\n#ifdef OCCLUSION_QUERIES\nin float a_occlusion_query_opacity;\n#endif\n#ifdef Z_OFFSET\nin float a_z_offset;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nin vec3 a_globe_anchor;in vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform vec2 u_texsize_icon;uniform bool u_is_halo;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nout float v_draw_halo;out vec4 v_data0;out 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\n#pragma mapbox: define lowp float emissive_strength\n#pragma mapbox: define lowp float occlusion_opacity\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\n#pragma mapbox: initialize lowp float emissive_strength\n#pragma mapbox: initialize lowp float occlusion_opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;float e=elevation(tile_anchor);\n#ifdef Z_OFFSET\ne+=a_z_offset;\n#endif\nvec3 h=elevationVector(tile_anchor)*e;float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offset_projected_point=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offset_projected_point.xy/offset_projected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*font_scale);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=globe_occlusion_fade;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nfloat out_fade_opacity=interpolated_fade_opacity*projection_transition_fade;\n#ifdef DEPTH_OCCLUSION\nfloat depthOcclusion=occlusionFadeMultiSample(projected_point);float depthOcclusionMultplier=mix(occlusion_opacity,1.0,depthOcclusion);out_fade_opacity*=depthOcclusionMultplier;\n#endif\n#ifdef OCCLUSION_QUERIES\nfloat occludedFadeMultiplier=mix(occlusion_opacity,1.0,a_occlusion_query_opacity);out_fade_opacity*=occludedFadeMultiplier;\n#endif\nfloat alpha=opacity*out_fade_opacity;float hidden=float(alpha==0.0 || projected_point.w <=0.0 || occlusion_fade==0.0);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+ xAxis*offset.x+yAxis*offset.y,1.0),AWAY,hidden);\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,hidden);\n#endif\nfloat gamma_scale=gl_Position.w;v_draw_halo=(u_is_halo && float(gl_InstanceID)==0.0) ? 1.0 : 0.0;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,out_fade_opacity,is_sdf);}'),terrainRaster:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_shadow.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform sampler2D u_image0;in vec2 v_pos0;\n#ifdef FOG\nin float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nin vec4 v_pos_light_view_0;in vec4 v_pos_light_view_1;\n#endif\nuniform vec3 u_ground_shadow_factor;void main() {vec4 image_color=texture(u_image0,v_pos0);vec4 color;\n#ifdef LIGHTING_3D_MODE\nconst vec3 normal=vec3(0.0,0.0,1.0);\n#ifdef RENDER_SHADOWS\nfloat cutoffOpacity=1.0;\n#ifdef RENDER_CUTOFF\ncutoffOpacity=cutoff_opacity(u_cutoff_params,1.0/gl_FragCoord.w);\n#endif\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\nvec3 unlit_base=image_color.rgb*(1.0-image_color.a);vec3 emissive_base=image_color.rgb*image_color.a;float ndotl=u_shadow_direction.z;float occlusion=ndotl < 0.0 ? 1.0 : shadow_occlusion(v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w,0.0);ndotl=max(0.0,ndotl);vec3 lit=apply_lighting(unlit_base,normal,mix(1.0,(1.0-(u_shadow_intensity*occlusion))*ndotl,cutoffOpacity));vec3 emissive=compute_emissive_draped(emissive_base,1.0-u_shadow_intensity,occlusion,u_ground_shadow_factor);color.rgb=lit+emissive;color.a=1.0;\n#else\nfloat lighting_factor=shadowed_light_factor_normal_unbiased(normal,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);color=apply_lighting(image_color,normal,mix(1.0,lighting_factor,cutoffOpacity));\n#endif\n#else\nfloat lighting_factor=u_lighting_directional_dir.z;color=apply_lighting(image_color,normal,lighting_factor);\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\ncolor.rgb=mix(color.rgb,image_color.rgb,image_color.a);color.a=1.0;\n#endif\n#endif\n#else\ncolor=image_color;\n#endif\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#else\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\n#endif\n#endif\nglFragColor=color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\nuniform mat4 u_matrix;uniform float u_skirt_height;in vec2 a_pos;out vec2 v_pos0;\n#ifdef FOG\nout float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out vec4 v_pos_light_view_0;out vec4 v_pos_light_view_1;out float v_depth;\n#endif\nvoid main() {vec3 decomposedPosAndSkirt=decomposeToPosAndSkirt(a_pos);float skirt=decomposedPosAndSkirt.z;vec2 decodedPos=decomposedPosAndSkirt.xy;float elevation=elevation(decodedPos)-skirt*u_skirt_height;v_pos0=decodedPos/8192.0;gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\nv_fog_pos=fog_position(decodedPos);\n#else\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n#endif\n#ifdef RENDER_SHADOWS\nvec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.);\n#endif\n}'),terrainDepth:Tt("precision highp float;in float v_depth;void main() {glFragColor=pack_depth(v_depth);}",'#include "_prelude_terrain.vertex.glsl"\nuniform mat4 u_matrix;in vec2 a_pos;out float v_depth;void main() {float elevation=elevation(a_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}'),skybox:Tt('#include "_prelude_fog.fragment.glsl"\nin lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=texture(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);glFragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\n}',dt),skyboxGradient:Tt('#include "_prelude_fog.fragment.glsl"\nin highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture(u_color_ramp,vec2(progress,0.5));\n#ifdef FOG\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\n#endif\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);glFragColor=color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\n}',dt),skyboxCapture:Tt("\nin highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;precision highp float;\n#define BETA_R vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M vec3(21e-6,21e-6,21e-6)\n#define MIE_G 0.76\n#define DENSITY_HEIGHT_SCALE_R 8000.0\n#define DENSITY_HEIGHT_SCALE_M 1200.0\n#define PLANET_RADIUS 6360e3\n#define ATMOSPHERE_RADIUS 6420e3\n#define SAMPLE_STEPS 10\n#define DENSITY_STEPS 4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;glFragColor=vec4(color,1.0);}","in highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;out highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform sampler2D u_image0;uniform float u_far_z_cutoff;in vec2 v_pos0;\n#ifndef FOG\nuniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform vec2 u_viewport;\n#endif\nvoid main() {vec4 color;\n#ifdef CUSTOM_ANTIALIASING\nvec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);vec3 dir=normalize(ray_dir);vec3 closest_point=dot(u_globe_pos,dir)*dir;float norm_dist_from_center=1.0-length(closest_point-u_globe_pos)/u_globe_radius;const float antialias_pixel=2.0;float antialias_factor=antialias_pixel*fwidth(norm_dist_from_center);float antialias=smoothstep(0.0,antialias_factor,norm_dist_from_center);vec4 raster=texture(u_image0,v_pos0);\n#ifdef LIGHTING_3D_MODE\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\nraster=apply_lighting_with_emission_ground(raster,raster.a);color=vec4(raster.rgb*antialias,antialias);\n#else\nraster=apply_lighting_ground(raster);color=vec4(raster.rgb*antialias,raster.a*antialias);\n#endif\n#else\ncolor=vec4(raster.rgb*antialias,raster.a*antialias);\n#endif\n#else\ncolor=texture(u_image0,v_pos0);\n#ifdef LIGHTING_3D_MODE\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\ncolor=apply_lighting_with_emission_ground(color,color.a);color.a=1.0;\n#else\ncolor=apply_lighting_ground(color);\n#endif\n#endif\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ncolor*=1.0-step(u_far_z_cutoff,1.0/gl_FragCoord.w);glFragColor=color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\nuniform mat4 u_proj_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;uniform float u_skirt_height;\n#ifdef GLOBE_POLES\nin vec3 a_globe_pos;in vec2 a_uv;\n#else\nin vec2 a_pos;\n#endif\nout vec2 v_pos0;void main() {\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;vec2 uv=a_uv;\n#else\nfloat tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];vec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=mercatorX*tiles-idx;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);\n#endif\nv_pos0=uv;vec2 tile_pos=uv*EXTENT;vec3 globe_derived_up_vector=normalize(globe_pos)*u_tile_up_scale;\n#ifdef GLOBE_POLES\nvec3 up_vector=globe_derived_up_vector;\n#else\nvec3 up_vector=elevationVector(tile_pos);\n#endif\nfloat height=elevation(tile_pos);globe_pos+=up_vector*height;\n#ifndef GLOBE_POLES\nglobe_pos-=globe_derived_up_vector*u_skirt_height*decomposed_pos_and_skirt.z;\n#endif\n#ifdef GLOBE_POLES\nvec4 interpolated_pos=u_globe_matrix*vec4(globe_pos,1.0);\n#else\nvec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {merc_world_pos=vec4(merc_pos,height-u_skirt_height*decomposed_pos_and_skirt.z,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0);\n#endif\ngl_Position=u_proj_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n}'),globeAtmosphere:Tt('#include "_prelude_fog.fragment.glsl"\nuniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec4 u_color;uniform vec4 u_high_color;uniform vec4 u_space_color;uniform float u_horizon_angle;in highp vec3 v_ray_dir;in highp vec3 v_horizon_dir;void main() {highp vec3 dir=normalize(v_ray_dir);float globe_pos_dot_dir;\n#ifdef PROJECTION_GLOBE_VIEW\nglobe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) {\n#ifdef ALPHA_PASS\nglFragColor=vec4(0,0,0,0);return;\n#else\n#ifdef NATIVE\nglFragColor=vec4(1,1,1,1);\n#else\nglFragColor=vec4(0,0,0,1);\n#endif\nreturn;\n#endif\n}\n#endif\nhighp vec3 horizon_dir=normalize(v_horizon_dir);float horizon_angle_mercator=dir.y < horizon_dir.y ?\n0.0 : max(acos(clamp(dot(dir,horizon_dir),-1.0,1.0)),0.0);float horizon_angle;\n#ifdef PROJECTION_GLOBE_VIEW\nhighp vec3 closest_point=globe_pos_dot_dir*dir;highp float closest_point_to_center=length(closest_point-u_globe_pos);highp float theta=asin(clamp(closest_point_to_center/length(u_globe_pos),-1.0,1.0));horizon_angle=globe_pos_dot_dir < 0.0 ?\nPI-theta-u_horizon_angle : theta-u_horizon_angle;float angle_t=pow(u_transition,10.0);horizon_angle=mix(horizon_angle,horizon_angle_mercator,angle_t);\n#else\nhorizon_angle=horizon_angle_mercator;\n#endif\nhorizon_angle/=PI;float t=exp(-horizon_angle/u_fadeout_range);float alpha_0=u_color.a;float alpha_1=u_high_color.a;float alpha_2=u_space_color.a;vec3 color_stop_0=u_color.rgb;vec3 color_stop_1=u_high_color.rgb;vec3 color_stop_2=u_space_color.rgb;\n#ifdef ALPHA_PASS\nfloat a0=mix(alpha_2,1.0,alpha_1);float a1=mix(a0,1.0,alpha_0);float a2=mix(a0,a1,t);float a =mix(alpha_2,a2,t);glFragColor=vec4(1.0,1.0,1.0,a);\n#else\nvec3 c0=mix(color_stop_2,color_stop_1,alpha_1);vec3 c1=mix(c0,color_stop_0,alpha_0);vec3 c2=mix(c0,c1,t);vec3 c=c2;\n#ifndef NATIVE\nc=dither(c,gl_FragCoord.xy+u_temporal_offset);\n#endif\nglFragColor=vec4(c*t,t);\n#endif\n}',"in vec3 a_pos;in vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;out highp vec3 v_ray_dir;out highp vec3 v_horizon_dir;void main() {v_ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix(\nmix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}"),model:Tt('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_shadow.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform float u_opacity;uniform vec3 u_lightcolor;uniform vec3 u_lightpos;uniform float u_lightintensity;uniform vec4 u_baseColorFactor;uniform vec4 u_emissiveFactor;uniform float u_metallicFactor;uniform float u_roughnessFactor;uniform float u_emissive_strength;in highp vec4 v_position_height;in lowp vec4 v_color_mix;\n#ifdef RENDER_SHADOWS\nin highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in float v_depth_shadows;\n#endif\n#ifdef OCCLUSION_TEXTURE_TRANSFORM\nuniform vec4 u_occlusionTextureTransform;\n#endif\n#pragma mapbox: define-attribute highp vec3 normal_3f\n#pragma mapbox: define-attribute highp vec3 color_3f\n#pragma mapbox: define-attribute highp vec4 color_4f\n#pragma mapbox: define-attribute highp vec2 uv_2f\n#pragma mapbox: initialize-attribute highp vec3 normal_3f\n#pragma mapbox: initialize-attribute highp vec3 color_3f\n#pragma mapbox: initialize-attribute highp vec4 color_4f\n#pragma mapbox: initialize-attribute highp vec2 uv_2f\n#ifdef HAS_ATTRIBUTE_a_pbr\nin lowp vec4 v_roughness_metallic_emissive_alpha;in mediump vec4 v_height_based_emission_params;\n#endif\n#ifdef HAS_TEXTURE_u_baseColorTexture\nuniform sampler2D u_baseColorTexture;uniform bool u_baseTextureIsAlpha;uniform bool u_alphaMask;uniform float u_alphaCutoff;\n#endif\n#ifdef HAS_TEXTURE_u_metallicRoughnessTexture\nuniform sampler2D u_metallicRoughnessTexture;\n#endif\n#ifdef HAS_TEXTURE_u_occlusionTexture\nuniform sampler2D u_occlusionTexture;uniform float u_aoIntensity;\n#endif\n#ifdef HAS_TEXTURE_u_normalTexture\nuniform sampler2D u_normalTexture;\n#endif\n#ifdef HAS_TEXTURE_u_emissionTexture\nuniform sampler2D u_emissionTexture;\n#endif\n#ifdef APPLY_LUT_ON_GPU\nuniform highp sampler3D u_lutTexture;\n#endif\n#ifdef TERRAIN_FRAGMENT_OCCLUSION\nin highp float v_depth;uniform highp sampler2D u_depthTexture;uniform vec2 u_inv_depth_size;uniform vec2 u_depth_range_unpack;\n#ifdef DEPTH_D24\nfloat unpack_depth(float depth) {return depth*u_depth_range_unpack.x+u_depth_range_unpack.y;}\n#else\nhighp float unpack_depth_rgba(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}\n#endif\nbool isOccluded() {vec2 coord=gl_FragCoord.xy*u_inv_depth_size;\n#ifdef DEPTH_D24\nhighp float depth=unpack_depth(texture(u_depthTexture,coord).r);\n#else\nhighp float depth=unpack_depth_rgba(texture(u_depthTexture,coord));\n#endif\nreturn v_depth > depth+0.0005;}\n#endif\n#define saturate(_x) clamp(_x,0.,1.)\nvec3 linearTosRGB(vec3 color) {return pow(color,vec3(1./2.2));}vec3 sRGBToLinear(vec3 srgbIn) {return pow(srgbIn,vec3(2.2));}float calculate_NdotL(vec3 normal,vec3 lightDir) {const float ext=0.70710678118;return (clamp(dot(normal,lightDir),-ext,1.0)+ext)/(1.0+ext);}vec3 getDiffuseShadedColor(vec3 albedo,vec3 normal,vec3 lightDir,vec3 lightColor)\n{\n#ifdef LIGHTING_3D_MODE\nvec3 transformed_normal=vec3(-normal.xy,normal.z);float lighting_factor;\n#ifdef RENDER_SHADOWS\nlighting_factor=shadowed_light_factor_normal(transformed_normal,v_pos_light_view_0,v_pos_light_view_1,v_depth_shadows);\n#else\nlighting_factor=saturate(dot(transformed_normal,u_lighting_directional_dir));\n#endif\nreturn apply_lighting(albedo,transformed_normal,lighting_factor);\n#else\nvec3 n=normal;float colorvalue=((albedo.x*0.2126)+(albedo.y*0.7152))+(albedo.z*0.0722);vec3 c=vec3(0.03,0.03,0.03);float directional=clamp(dot(n,vec3(lightDir)),0.0,1.0);directional=mix(1.0-u_lightintensity,max((1.0-colorvalue)+u_lightintensity,1.0),directional);vec3 c3=c+clamp((albedo*directional)*lightColor,mix(vec3(0.0),vec3(0.3),vec3(1.0)-lightColor),vec3(1.0));return c3;\n#endif\n}vec4 getBaseColor() {vec4 albedo=u_baseColorFactor;\n#ifdef HAS_ATTRIBUTE_a_color_3f\nalbedo*=vec4(color_3f,1.0);\n#endif\n#ifdef HAS_ATTRIBUTE_a_pbr\n#else\n#ifdef HAS_ATTRIBUTE_a_color_4f\nalbedo*=color_4f;\n#endif\n#endif\n#if defined (HAS_TEXTURE_u_baseColorTexture) && defined (HAS_ATTRIBUTE_a_uv_2f)\nvec4 texColor=texture(u_baseColorTexture,uv_2f);if(u_alphaMask) {if (texColor.w < u_alphaCutoff) {discard;}}\n#ifdef UNPREMULT_TEXTURE_IN_SHADER\nif(texColor.w > 0.0) {texColor.rgb/=texColor.w;}texColor.w=1.0;\n#endif\nif(u_baseTextureIsAlpha) {if (texColor.r < 0.5) {discard;}} else {texColor.rgb=sRGBToLinear(texColor.rgb);albedo*=texColor;}\n#endif\nvec4 color=vec4(mix(albedo.rgb,v_color_mix.rgb,v_color_mix.a),albedo.a);\n#ifdef APPLY_LUT_ON_GPU\ncolor=applyLUT(u_lutTexture,color);\n#endif\nreturn color;}highp mat3 cotangentFrame(highp vec3 N,highp vec3 p,highp vec2 uv ) {\n#ifdef HAS_TEXTURE_u_normalTexture\nhighp vec3 dp1=vec3(dFdx(p.x),dFdx(p.y),dFdx(p.z));highp vec3 dp2=vec3(dFdy(p.x),dFdy(p.y),dFdy(p.z));highp vec2 duv1=vec2(dFdx(uv.x),dFdx(uv.y));highp vec2 duv2=vec2(dFdy(uv.x),dFdy(uv.y));highp vec3 dp2perp=cross( dp2,N );highp vec3 dp1perp=cross( N,dp1 );highp vec3 T=dp2perp*duv1.x+dp1perp*duv2.x;highp vec3 B=dp2perp*duv1.y+dp1perp*duv2.y;highp float lengthT=dot(T,T);highp float lengthB=dot(B,B);highp float maxLength=max(lengthT,lengthB);highp float invmax=inversesqrt( maxLength );highp mat3 res=mat3( T*invmax,B*invmax,N );return res;\n#else\nreturn mat3(1.0);\n#endif\n}highp vec3 getNormal(){highp vec3 n;\n#ifdef HAS_ATTRIBUTE_a_normal_3f\nn=normalize(normal_3f);\n#else\nhighp vec3 fdx=vec3(dFdx(v_position_height.x),dFdx(v_position_height.y),dFdx(v_position_height.z));highp vec3 fdy=vec3(dFdy(v_position_height.x),dFdy(v_position_height.y),dFdy(v_position_height.z));n=normalize(cross(fdx,fdy))*-1.0;\n#endif\n#if defined(HAS_TEXTURE_u_normalTexture) && defined(HAS_ATTRIBUTE_a_uv_2f)\nvec3 nMap=texture( u_normalTexture,uv_2f).xyz;nMap=normalize(2.0*nMap-vec3(1.0));highp vec3 v=normalize(-v_position_height.xyz);highp mat3 TBN=cotangentFrame(n,v,uv_2f);n=normalize(TBN*nMap);\n#endif\nreturn n;}struct Material {float perceptualRoughness;float alphaRoughness;float metallic;vec3 f90;vec4 baseColor;vec3 diffuseColor;vec3 specularColor;highp vec3 normal;};Material getPBRMaterial() {Material mat;mat.baseColor=getBaseColor();mat.perceptualRoughness=u_roughnessFactor;mat.metallic=u_metallicFactor;\n#ifdef HAS_ATTRIBUTE_a_pbr\nmat.perceptualRoughness=v_roughness_metallic_emissive_alpha.x;mat.metallic=v_roughness_metallic_emissive_alpha.y;mat.baseColor.w*=v_roughness_metallic_emissive_alpha.w;\n#endif\n#if defined(HAS_TEXTURE_u_metallicRoughnessTexture) && defined(HAS_ATTRIBUTE_a_uv_2f) \nvec4 mrSample=texture(u_metallicRoughnessTexture,uv_2f);mat.perceptualRoughness*=mrSample.g;mat.metallic*=mrSample.b;\n#endif\nconst float c_minRoughness=0.04;mat.perceptualRoughness=clamp(mat.perceptualRoughness,c_minRoughness,1.0);mat.metallic=saturate(mat.metallic);mat.alphaRoughness=mat.perceptualRoughness*mat.perceptualRoughness;const vec3 f0=vec3(0.04);mat.diffuseColor=mat.baseColor.rgb*(vec3(1.0)-f0);mat.diffuseColor*=1.0-mat.metallic;mat.specularColor=mix(f0,mat.baseColor.rgb,mat.metallic);highp float reflectance=max(max(mat.specularColor.r,mat.specularColor.g),mat.specularColor.b);highp float reflectance90=saturate(reflectance*25.0);mat.f90=vec3(reflectance90);mat.normal=getNormal();return mat;}float V_GGX(float NdotL,float NdotV,float roughness)\n{float a2=roughness*roughness;float GGXV=NdotL*sqrt(NdotV*NdotV*(1.0-a2)+a2);float GGXL=NdotV*sqrt(NdotL*NdotL*(1.0-a2)+a2);return 0.5/(GGXV+GGXL);}float V_GGXFast(float NdotL,float NdotV,float roughness) {float a=roughness;float GGXV=NdotL*(NdotV*(1.0-a)+a);float GGXL=NdotV*(NdotL*(1.0-a)+a);return 0.5/(GGXV+GGXL);}vec3 F_Schlick(vec3 specularColor,vec3 f90,float VdotH)\n{return specularColor+(f90-specularColor)*pow(clamp(1.0-VdotH,0.0,1.0),5.0);}vec3 F_SchlickFast(vec3 specularColor,float VdotH)\n{float x=1.0-VdotH;float x4=x*x*x*x;return specularColor+(1.0-specularColor)*x4*x;}float D_GGX(highp float NdotH,float alphaRoughness)\n{highp float a4=alphaRoughness*alphaRoughness;highp float f=(NdotH*a4-NdotH)*NdotH+1.0;return a4/(PI*f*f);}vec3 diffuseBurley(Material mat,float LdotH,float NdotL,float NdotV)\n{float f90=2.0*LdotH*LdotH*mat.alphaRoughness-0.5;return (mat.diffuseColor/PI)*(1.0+f90*pow((1.0-NdotL),5.0))*(1.0+f90*pow((1.0-NdotV),5.0));}vec3 diffuseLambertian(Material mat)\n{\n#ifdef LIGHTING_3D_MODE\nreturn mat.diffuseColor;\n#else\nreturn mat.diffuseColor/PI;\n#endif\n}vec3 EnvBRDFApprox(vec3 specularColor,float roughness,highp float NdotV)\n{vec4 c0=vec4(-1,-0.0275,-0.572,0.022);vec4 c1=vec4(1,0.0425,1.04,-0.04);highp vec4 r=roughness*c0+c1;highp float a004=min(r.x*r.x,exp2(-9.28*NdotV))*r.x+r.y;vec2 AB=vec2(-1.04,1.04)*a004+r.zw;return specularColor*AB.x+AB.y;}vec3 computeIndirectLightContribution(Material mat,float NdotV,vec3 normal)\n{vec3 env_light=vec3(0.65,0.65,0.65);\n#ifdef LIGHTING_3D_MODE\nfloat ambient_factor=calculate_ambient_directional_factor(normal);env_light=u_lighting_ambient_color*ambient_factor;\n#endif\nvec3 envBRDF=EnvBRDFApprox(mat.specularColor,mat.perceptualRoughness,NdotV);vec3 indirectSpecular= envBRDF*env_light;vec3 indirectDiffuse=mat.diffuseColor*env_light;return indirectSpecular+indirectDiffuse;}vec3 computeLightContribution(Material mat,vec3 lightPosition,vec3 lightColor)\n{highp vec3 n=mat.normal;highp vec3 v=normalize(-v_position_height.xyz);highp vec3 l=normalize(lightPosition);highp vec3 h=normalize(v+l);float NdotV=clamp(abs(dot(n,v)),0.001,1.0);float NdotL=saturate(dot(n,l));highp float NdotH=saturate(dot(n,h));float VdotH=saturate(dot(v,h));vec3 f=F_SchlickFast(mat.specularColor,VdotH);float g=V_GGXFast(NdotL,NdotV,mat.alphaRoughness);float d=D_GGX(NdotH,mat.alphaRoughness);vec3 diffuseTerm=(1.0-f)*diffuseLambertian(mat);vec3 specularTerm=f*g*d;vec3 transformed_normal=vec3(-n.xy,n.z);float lighting_factor;\n#ifdef RENDER_SHADOWS\nlighting_factor=shadowed_light_factor_normal(transformed_normal,v_pos_light_view_0,v_pos_light_view_1,v_depth_shadows);\n#else\nlighting_factor=NdotL;\n#endif\nvec3 directLightColor=(specularTerm+diffuseTerm)*lighting_factor*lightColor;vec3 indirectLightColor=computeIndirectLightContribution(mat,NdotV,transformed_normal);vec3 color=(saturate(directLightColor)+indirectLightColor);float intensityFactor=1.0;\n#if !defined(LIGHTING_3D_MODE)\nconst vec3 luminosityFactor=vec3(0.2126,0.7152,0.0722);float luminance=dot(diffuseTerm,luminosityFactor);intensityFactor=mix((1.0-u_lightintensity),max((1.0-luminance+u_lightintensity),1.0),NdotL);\n#endif\ncolor*=intensityFactor;return color;}void main() {\n#ifdef TERRAIN_FRAGMENT_OCCLUSION\nif (isOccluded()) {discard;}\n#endif\nvec3 lightDir=u_lightpos;vec3 lightColor=u_lightcolor;\n#ifdef LIGHTING_3D_MODE\nlightDir=u_lighting_directional_dir;lightDir.xy=-lightDir.xy;lightColor=u_lighting_directional_color;\n#endif\nvec4 finalColor;\n#ifdef DIFFUSE_SHADED\nvec3 N=getNormal();vec3 baseColor=getBaseColor().rgb;vec3 diffuse=getDiffuseShadedColor(baseColor,N,lightDir,lightColor);\n#ifdef HAS_TEXTURE_u_occlusionTexture\nfloat ao=(texture(u_occlusionTexture,uv_2f).r-1.0)*u_aoIntensity+1.0;diffuse*=ao;\n#endif\nfinalColor=vec4(mix(diffuse,baseColor,u_emissive_strength),1.0)*u_opacity;\n#else\nMaterial mat=getPBRMaterial();vec3 color=computeLightContribution(mat,lightDir,lightColor);float ao=1.0;\n#if defined (HAS_TEXTURE_u_occlusionTexture) && defined(HAS_ATTRIBUTE_a_uv_2f)\n#ifdef OCCLUSION_TEXTURE_TRANSFORM\nvec2 uv=uv_2f.xy*u_occlusionTextureTransform.zw+u_occlusionTextureTransform.xy;\n#else\nvec2 uv=uv_2f;\n#endif\nao=(texture(u_occlusionTexture,uv).x-1.0)*u_aoIntensity+1.0;color*=ao;\n#endif\nvec4 emissive=u_emissiveFactor;\n#if defined(HAS_TEXTURE_u_emissionTexture) && defined(HAS_ATTRIBUTE_a_uv_2f)\nemissive.rgb*=sRGBToLinear(texture(u_emissionTexture,uv_2f).rgb);\n#endif\n#ifdef APPLY_LUT_ON_GPU\nfloat emissiveFactorLength=max(length(u_emissiveFactor.rgb),0.001);emissive.rgb=sRGBToLinear(applyLUT(u_lutTexture,linearTosRGB(emissive.rgb/emissiveFactorLength).rbg))*emissiveFactorLength;\n#endif\ncolor+=emissive.rgb;float opacity=mat.baseColor.w*u_opacity;\n#ifdef HAS_ATTRIBUTE_a_pbr\nfloat resEmission=v_roughness_metallic_emissive_alpha.z;resEmission*=v_height_based_emission_params.z+v_height_based_emission_params.w*pow(clamp(v_height_based_emission_params.x,0.0,1.0),v_height_based_emission_params.y);vec3 color_mix=v_color_mix.rgb;\n#ifdef APPLY_LUT_ON_GPU\ncolor_mix=applyLUT(u_lutTexture,color_mix);\n#endif\ncolor=mix(color,color_mix,min(1.0,resEmission));\n#ifdef HAS_ATTRIBUTE_a_color_4f\nfloat distance=length(vec2(1.3*max(0.0,abs(color_4f.x)-color_4f.z),color_4f.y));distance+= mix(0.5,0.0,clamp(resEmission-1.0,0.0,1.0));opacity*=v_roughness_metallic_emissive_alpha.w*saturate(1.0-distance*distance);\n#endif\n#endif\nvec3 unlitColor=mat.baseColor.rgb*ao+emissive.rgb;color=mix(color,unlitColor,u_emissive_strength);color=linearTosRGB(color);color*=opacity;finalColor=vec4(color,opacity);\n#endif\n#ifdef FOG\nfinalColor=fog_dither(fog_apply_premultiplied(finalColor,v_fog_pos,v_position_height.w));\n#endif\n#ifdef RENDER_CUTOFF\nfinalColor*=v_cutoff_opacity;\n#endif\n#ifdef INDICATOR_CUTOUT\nfinalColor=applyCutout(finalColor);\n#endif\nglFragColor=finalColor;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\nin vec3 a_pos_3f;\n#pragma mapbox: define-attribute highp vec3 normal_3f\n#pragma mapbox: define-attribute highp vec2 uv_2f\n#pragma mapbox: define-attribute highp vec3 color_3f\n#pragma mapbox: define-attribute highp vec4 color_4f\n#pragma mapbox: define-attribute-vertex-shader-only highp vec4 pbr\n#pragma mapbox: define-attribute-vertex-shader-only highp vec3 heightBasedEmissiveStrength\nuniform mat4 u_matrix;uniform mat4 u_node_matrix;uniform mat4 u_lighting_matrix;uniform vec3 u_camera_pos;uniform vec4 u_color_mix;\n#ifdef INSTANCED_ARRAYS\nin vec4 a_normal_matrix0;in vec4 a_normal_matrix1;in vec4 a_normal_matrix2;in vec4 a_normal_matrix3;\n#else\nuniform highp mat4 u_normal_matrix;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out float v_depth_shadows;\n#endif\nout vec4 v_position_height;out lowp vec4 v_color_mix;\n#ifdef TERRAIN_FRAGMENT_OCCLUSION\nout highp float v_depth;\n#endif\n#ifdef HAS_ATTRIBUTE_a_pbr\nout lowp vec4 v_roughness_metallic_emissive_alpha;out mediump vec4 v_height_based_emission_params;\n#endif\nvec3 sRGBToLinear(vec3 srgbIn) {return pow(srgbIn,vec3(2.2));}void main() {\n#pragma mapbox: initialize-attribute highp vec3 normal_3f\n#pragma mapbox: initialize-attribute highp vec2 uv_2f\n#pragma mapbox: initialize-attribute highp vec3 color_3f\n#pragma mapbox: initialize-attribute highp vec4 color_4f\n#pragma mapbox: initialize-attribute-custom highp vec4 pbr\n#pragma mapbox: initialize-attribute-custom highp vec3 heightBasedEmissiveStrength\nhighp mat4 normal_matrix;\n#ifdef INSTANCED_ARRAYS\nnormal_matrix=mat4(a_normal_matrix0,a_normal_matrix1,a_normal_matrix2,a_normal_matrix3);\n#else\nnormal_matrix=u_normal_matrix;\n#endif\nvec3 local_pos;mat3 rs;\n#ifdef MODEL_POSITION_ON_GPU\nvec3 pos_color=normal_matrix[0].xyz;vec4 translate=normal_matrix[1];vec3 pos_a=floor(pos_color);vec3 rgb=1.05*(pos_color-pos_a);float hidden=float(pos_a.x > EXTENT);float color_mix=pos_a.z/100.0;v_color_mix=vec4(sRGBToLinear(rgb),color_mix);float meter_to_tile=normal_matrix[0].w;vec4 pos=vec4(pos_a.xy,translate.z,1.0);rs[0].x=normal_matrix[1].w;rs[0].yz=normal_matrix[2].xy;rs[1].xy=normal_matrix[2].zw;rs[1].z=normal_matrix[3].x;rs[2].xyz=normal_matrix[3].yzw;vec4 pos_node=u_lighting_matrix*vec4(a_pos_3f,1.0);vec3 rotated_pos_node=rs*pos_node.xyz;vec3 pos_model_tile=(rotated_pos_node+vec3(translate.xy,0.0))*vec3(meter_to_tile,meter_to_tile,1.0);pos.xyz+=pos_model_tile;local_pos=pos.xyz;gl_Position=mix(u_matrix*pos,AWAY,hidden);pos.z*=meter_to_tile;v_position_height.xyz=pos.xyz-u_camera_pos;\n#else\nlocal_pos=a_pos_3f;gl_Position=u_matrix*vec4(a_pos_3f,1);v_position_height.xyz=vec3(u_lighting_matrix*vec4(a_pos_3f,1));v_color_mix=vec4(sRGBToLinear(u_color_mix.rgb),u_color_mix.a);\n#endif\nv_position_height.w=a_pos_3f.z;\n#ifdef HAS_ATTRIBUTE_a_pbr\nvec4 albedo_c=decode_color(pbr.xy);vec2 e_r_m=unpack_float(pbr.z);vec2 r_m= unpack_float(e_r_m.y*16.0);r_m.r=r_m.r*16.0;v_color_mix=vec4(albedo_c.rgb,1.0);v_roughness_metallic_emissive_alpha=vec4(vec3(r_m,e_r_m.x)/255.0,albedo_c.a);v_roughness_metallic_emissive_alpha.z*=2.0;float heightBasedRelativeIntepolation=a_pos_3f.z*heightBasedEmissiveStrength.x+heightBasedEmissiveStrength.y;v_height_based_emission_params.x=heightBasedRelativeIntepolation;v_height_based_emission_params.y=heightBasedEmissiveStrength.z;vec2 emissionMultiplierValues=unpack_float(pbr.w)/256.0;v_height_based_emission_params.z=emissionMultiplierValues.x;v_height_based_emission_params.w=emissionMultiplierValues.y-emissionMultiplierValues.x;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(local_pos);\n#endif\n#ifdef RENDER_CUTOFF\nv_cutoff_opacity=cutoff_opacity(u_cutoff_params,gl_Position.z);\n#endif\n#ifdef TERRAIN_FRAGMENT_OCCLUSION\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n#ifdef HAS_ATTRIBUTE_a_normal_3f\n#ifdef MODEL_POSITION_ON_GPU\nfloat x_squared_scale=dot(rs[0],rs[0]);float y_squared_scale=dot(rs[1],rs[1]);float z_squared_scale=dot(rs[2],rs[2]);vec3 squared_scale=vec3(x_squared_scale,y_squared_scale,z_squared_scale);normal_3f=rs*((u_lighting_matrix*vec4(normal_3f,0.0)).xyz/squared_scale);normal_3f=normalize(normal_3f);\n#else\nnormal_3f=vec3(normal_matrix*vec4(normal_3f,0));\n#endif\n#endif\n#ifdef HAS_ATTRIBUTE_a_pbr\n#ifdef HAS_ATTRIBUTE_a_color_4f\nv_roughness_metallic_emissive_alpha.w=clamp(color_4f.a*v_roughness_metallic_emissive_alpha.w*(v_roughness_metallic_emissive_alpha.z-1.0),0.0,1.0);\n#endif\n#endif\n#ifdef RENDER_SHADOWS\nvec4 shadow_pos=u_node_matrix*vec4(local_pos,1.0);\n#ifdef NORMAL_OFFSET\n#ifdef HAS_ATTRIBUTE_a_normal_3f\n#ifdef MODEL_POSITION_ON_GPU\nvec3 offset=shadow_normal_offset(vec3(-normal_3f.xy,normal_3f.z));shadow_pos.xyz+=offset*shadow_normal_offset_multiplier0();\n#else\nvec3 offset=shadow_normal_offset_model(normal_3f);shadow_pos.xyz+=offset*shadow_normal_offset_multiplier0();\n#endif\n#endif\n#endif\nv_pos_light_view_0=u_light_matrix_0*shadow_pos;v_pos_light_view_1=u_light_matrix_1*shadow_pos;v_depth_shadows=gl_Position.w;\n#endif\n}'),modelDepth:Tt("in highp float v_depth;void main() {\n#ifndef DEPTH_TEXTURE\nglFragColor=pack_depth(v_depth);\n#endif\n}","in vec3 a_pos_3f;uniform mat4 u_matrix;out highp float v_depth;\n#ifdef MODEL_POSITION_ON_GPU\n#ifdef INSTANCED_ARRAYS\nin vec4 a_normal_matrix0;in vec4 a_normal_matrix1;in vec4 a_normal_matrix2;in vec4 a_normal_matrix3;\n#else\nuniform highp mat4 u_instance;\n#endif\nuniform highp mat4 u_node_matrix;\n#endif\nvoid main() {\n#ifdef MODEL_POSITION_ON_GPU\nhighp mat4 instance;\n#ifdef INSTANCED_ARRAYS\ninstance=mat4(a_normal_matrix0,a_normal_matrix1,a_normal_matrix2,a_normal_matrix3);\n#else\ninstance=u_instance;\n#endif\nvec3 pos_color=instance[0].xyz;vec4 translate=instance[1];vec3 pos_a=floor(pos_color);float hidden=float(pos_a.x > EXTENT);float meter_to_tile=instance[0].w;vec4 pos=vec4(pos_a.xy,translate.z,1.0);mat3 rs;rs[0].x=instance[1].w;rs[0].yz=instance[2].xy;rs[1].xy=instance[2].zw;rs[1].z=instance[3].x;rs[2].xyz=instance[3].yzw;vec4 pos_node=u_node_matrix*vec4(a_pos_3f,1.0);vec3 rotated_pos_node=rs*pos_node.xyz;vec3 pos_model_tile=(rotated_pos_node+vec3(translate.xy,0.0))*vec3(meter_to_tile,meter_to_tile,1.0);pos.xyz+=pos_model_tile;gl_Position=mix(u_matrix*pos,AWAY,hidden);\n#else\ngl_Position=u_matrix*vec4(a_pos_3f,1);\n#endif\nv_depth=gl_Position.z/gl_Position.w;}"),stars:Tt("in highp vec2 v_uv;in mediump float v_intensity;float shapeCircle(in vec2 uv)\n{float beginFade=0.6;float lengthFromCenter=length(v_uv);return 1.0-clamp((lengthFromCenter-beginFade)/(1.0-beginFade),0.0,1.0);}void main() {float alpha=shapeCircle(v_uv);vec3 color=vec3(1.0,1.0,1.0);alpha*=v_intensity;glFragColor=vec4(color*alpha,alpha);HANDLE_WIREFRAME_DEBUG;}","\nin vec3 a_pos_3f;in vec2 a_uv;in float a_size_scale;in float a_fade_opacity;uniform mat4 u_matrix;uniform vec3 u_up;uniform vec3 u_right;uniform float u_intensity_multiplier;out highp vec2 v_uv;out mediump float v_intensity;void main() {v_uv=a_uv;v_intensity=a_fade_opacity*u_intensity_multiplier;vec3 pos=a_pos_3f;pos+=a_uv.x*u_right*a_size_scale;pos+=a_uv.y*u_up*a_size_scale;gl_Position=u_matrix*vec4(pos,1.0);}"),occlusion:Tt("uniform vec4 u_color;void main() {glFragColor=u_color;}",'#include "_prelude_terrain.vertex.glsl"\nin highp vec2 a_offset_xy;uniform highp vec3 u_anchorPos;uniform mat4 u_matrix;uniform vec2 u_screenSizePx;uniform vec2 u_occluderSizePx;void main() {vec3 world_pos=u_anchorPos;\n#ifdef TERRAIN\nfloat e=elevation(world_pos.xy);world_pos.z+=e;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1.0);projected_point.xy+=projected_point.w*a_offset_xy*0.5*u_occluderSizePx/u_screenSizePx;gl_Position=projected_point;}')};function kt(e,t){const n=e.replace(/\s*\/\/[^\n]*\n/g,"\n").split("\n");for(let e of n)if(e=e.trim(),"#"===e[0]&&e.includes("if")&&!e.includes("endif")){e=e.replace("#","").replace(/ifdef|ifndef|elif|if/g,"").replace(/!|defined|\(|\)|\|\||&&/g,"").replace(/\s+/g," ").trim();const n=e.split(" ");for(const e of n)t.includes(e)||t.push(e)}}function Tt(e,t){const n=/#include\s+"([^"]+)"/g,r=/#pragma mapbox: ([\w\-]+) ([\w]+) ([\w]+) ([\w]+)/g;let i=t.match(/(attribute(\S*)|(^\s*|;)in) (highp |mediump |lowp )?([\w]+) ([\w]+)/gm);i&&(i=i.map((e=>{const t=e.split(" ");return t[t.length-1]})),i=[...new Set(i)]);const o={},a=[],s=[];if(e=e.replace(n,((e,t)=>(s.push(t),""))),(t=t.replace(n,((e,t)=>(a.push(t),"")))).includes("flat out"))return void console.error('The usage of "flat" qualifier is disallowed, see: https://bugs.webkit.org/show_bug.cgi?id=268071');let l=[...At];kt(e,l),kt(t,l);for(const e of[...a,...s])xt[e]||console.error(`Undefined include: ${e}`),wt[e]||(wt[e]=[],kt(xt[e],wt[e])),l=[...l,...wt[e]];return{fragmentSource:e=e.replace(r,((e,t,n,r,i)=>(o[i]=!0,"define"===t?`\n#ifndef HAS_UNIFORM_u_${i}\nin ${n} ${r} ${i};\n#else\nuniform ${n} ${r} u_${i};\n#endif\n`:"initialize"===t?`\n#ifdef HAS_UNIFORM_u_${i}\n ${n} ${r} ${i} = u_${i};\n#endif\n`:"define-attribute"===t?`\n#ifdef HAS_ATTRIBUTE_a_${i}\n in ${n} ${r} ${i};\n#endif\n`:"initialize-attribute"===t?"":void 0))),vertexSource:t=t.replace(r,((e,t,n,r,i)=>{const a="float"===r?"vec2":r,s=i.match(/color/)?"color":a;return"define-attribute-vertex-shader-only"===t?`\n#ifdef HAS_ATTRIBUTE_a_${i}\nin ${n} ${r} a_${i};\n#endif\n`:o[i]?"define"===t?`\n#ifndef HAS_UNIFORM_u_${i}\nuniform lowp float u_${i}_t;\nin ${n} ${a} a_${i};\nout ${n} ${r} ${i};\n#else\nuniform ${n} ${r} u_${i};\n#endif\n`:"initialize"===t?"vec4"===s?`\n#ifndef HAS_UNIFORM_u_${i}\n ${i} = a_${i};\n#else\n ${n} ${r} ${i} = u_${i};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${i}\n ${i} = unpack_mix_${s}(a_${i}, u_${i}_t);\n#else\n ${n} ${r} ${i} = u_${i};\n#endif\n`:"define-attribute"===t?`\n#ifdef HAS_ATTRIBUTE_a_${i}\n in ${n} ${r} a_${i};\n out ${n} ${r} ${i};\n#endif\n`:"initialize-attribute"===t?`\n#ifdef HAS_ATTRIBUTE_a_${i}\n ${i} = a_${i};\n#endif\n`:void 0:"define"===t?`\n#ifndef HAS_UNIFORM_u_${i}\nuniform lowp float u_${i}_t;\nin ${n} ${a} a_${i};\n#else\nuniform ${n} ${r} u_${i};\n#endif\n`:"define-instanced"===t?"mat4"===s?`\n#ifdef INSTANCED_ARRAYS\nin vec4 a_${i}0;\nin vec4 a_${i}1;\nin vec4 a_${i}2;\nin vec4 a_${i}3;\n#else\nuniform ${n} ${r} u_${i};\n#endif\n`:`\n#ifdef INSTANCED_ARRAYS\nin ${n} ${a} a_${i};\n#else\nuniform ${n} ${r} u_${i};\n#endif\n`:"initialize-attribute-custom"===t?`\n#ifdef HAS_ATTRIBUTE_a_${i}\n ${n} ${r} ${i} = a_${i};\n#endif\n`:"vec4"===s?`\n#ifndef HAS_UNIFORM_u_${i}\n ${n} ${r} ${i} = a_${i};\n#else\n ${n} ${r} ${i} = u_${i};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${i}\n ${n} ${r} ${i} = unpack_mix_${s}(a_${i}, u_${i}_t);\n#else\n ${n} ${r} ${i} = u_${i};\n#endif\n`})),staticAttributes:i,usedDefines:l,vertexIncludes:a,fragmentIncludes:s}}class It{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffers=[],this.vao=null}bind(e,t,n,r,i,o,a,s){this.context=e;let l=this.boundPaintVertexBuffers.length!==r.length;for(let e=0;!l&&e{const o=r.paint.get("hillshade-shadow-color"),a=r.paint.get("hillshade-highlight-color"),s=r.paint.get("hillshade-accent-color"),l=r.paint.get("hillshade-emissive-strength");let c=e.ac(r.paint.get("hillshade-illumination-direction"));if("viewport"===r.paint.get("hillshade-illumination-anchor"))c-=t.transform.angle;else if(t.style&&t.style.enable3dLights()&&t.style.directionalLight){const n=t.style.directionalLight.properties.get("direction"),r=e.ad(n.x,n.y,n.z);c=e.ac(r[1])}const u=!t.options.moving;return{u_matrix:i||t.transform.calculateProjMatrix(n.tileID.toUnwrapped(),u),u_image:0,u_latrange:Ot(0,n.tileID),u_light:[r.paint.get("hillshade-exaggeration"),c],u_shadow:o.toRenderColor(r.lut),u_highlight:a.toRenderColor(r.lut),u_emissive_strength:l,u_accent:s.toRenderColor(r.lut)}})(t,r,i,t.terrain?n.projMatrix:null);t.uploadCommonUniforms(l,d,n.toUnwrapped());const{tileBoundsBuffer:p,tileBoundsIndexBuffer:m,tileBoundsSegments:g}=t.getTileBoundsBuffers(r);d.draw(t,c.TRIANGLES,o,a,s,e.ag.disabled,f,i.id,p,m,g)}function Mt(t,n,r){if(!n.needsDEMTextureUpload)return;const i=t.context,o=i.gl;i.pixelStoreUnpackPremultiplyAlpha.set(!1);const a=r.stride;n.demTexture=n.demTexture||t.getTileTexture(a);const s=r.getPixels();n.demTexture?n.demTexture.update(s,{premultiply:!1}):n.demTexture=new e.T(i,s,o.R32F,{premultiply:!1}),n.needsDEMTextureUpload=!1}function Pt(t,n,r){const i=t.context,o=i.gl;if(!n.dem)return;const a=n.dem;if(i.activeTexture.set(o.TEXTURE1),Mt(t,n,a),!n.demTexture)return;n.demTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE);const s=a.dim;i.activeTexture.set(o.TEXTURE0);let l=n.hillshadeFBO;if(!l){const t=new e.T(i,{width:s,height:s,data:null},o.RGBA);t.bind(o.LINEAR,o.CLAMP_TO_EDGE),l=n.hillshadeFBO=i.createFramebuffer(s,s,!0,"renderbuffer"),l.colorAttachment.set(t.texture)}i.bindFramebuffer.set(l.framebuffer),i.viewport.set([0,0,s,s]);const{tileBoundsBuffer:c,tileBoundsIndexBuffer:u,tileBoundsSegments:h}=t.getMercatorTileBoundsBuffers(),d=[];t.linearFloatFilteringSupported()&&d.push("TERRAIN_DEM_FLOAT_FORMAT"),t.getOrCreateProgram("hillshadePrepare",{defines:d}).draw(t,o.TRIANGLES,e.af.disabled,e.ah.disabled,e.a.unblended,e.ag.disabled,((t,n)=>{const r=n.stride,i=e.ae.create();return e.ae.ortho(i,0,e.a4,-e.a4,0,0,1),e.ae.translate(i,i,[0,-e.a4,0]),{u_matrix:i,u_image:1,u_dimension:[r,r],u_zoom:t.overscaledZ}})(n.tileID,a),r.id,c,u,h),n.needsHillshadePrepare=!1}class Dt extends e.E{constructor(t,n,r,i){super(),this.id=t,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._loaded=!1,this.actor=r.getActor(),this.setEventedParent(i),this._data=n.data,this._options=e.Q({},n),this._collectResourceTiming=n.collectResourceTiming,void 0!==n.maxzoom&&(this.maxzoom=n.maxzoom),void 0!==n.minzoom&&(this.minzoom=n.minzoom),n.type&&(this.type=n.type),n.attribution&&(this.attribution=n.attribution),this.promoteId=n.promoteId;const o=e.a4/this.tileSize;this.workerOptions=e.Q({source:this.id,scope:this.scope,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*o,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*o,extent:e.a4,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?n.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,n.clusterMinPoints||2),extent:e.a4,radius:(void 0!==n.clusterRadius?n.clusterRadius:50)*o,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties,filter:n.filter,dynamic:n.dynamic},n.workerOptions)}onAdd(e){this.map=e,this.setData(this._data)}setData(e){return this._data=e,this._updateWorkerData(),this}updateData(t){if(!this._options.dynamic)return this.fire(new e.f(new Error("Can't call updateData on a GeoJSON source with dynamic set to false.")));if("string"!=typeof t&&("Feature"===t.type&&(t={type:"FeatureCollection",features:[t]}),"FeatureCollection"!==t.type))return this.fire(new e.f(new Error("Data to update should be a feature or a feature collection.")));if(this._coalesce&&"string"!=typeof t&&"string"!=typeof this._data&&"FeatureCollection"===this._data.type){const e=new Map;for(const t of this._data.features)e.set(t.id,t);for(const n of t.features)e.set(n.id,n);this._data.features=[...e.values()]}else this._data=t;return this._updateWorkerData(!0),this}getClusterExpansionZoom(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id,scope:this.scope},t),this}getClusterChildren(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id,scope:this.scope},t),this}getClusterLeaves(e,t,n,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,scope:this.scope,clusterId:e,limit:t,offset:n},r),this}_updateWorkerData(t=!1){if(this._pendingLoad)return void(this._coalesce=!0);this.fire(new e.g("dataloading",{dataType:"source"})),this._loaded=!1;const n=e.Q({append:t},this.workerOptions);n.scope=this.scope;const r=this._data;"string"==typeof r?(n.request=this.map._requestManager.transformRequest(e.e.resolveURL(r),e.R.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(r),this._pendingLoad=this.actor.send(`${this.type}.loadData`,n,((n,r)=>{if(this._loaded=!0,this._pendingLoad=null,n)this.fire(new e.f(n));else{const n={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&r&&r.resourceTiming&&r.resourceTiming[this.id]&&(n.resourceTiming=r.resourceTiming[this.id]),t&&(this._partialReload=!0),this.fire(new e.g("data",n)),this._partialReload=!1,this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(t),this._coalesce=!1)}))}loaded(){return this._loaded}loadTile(t,n){const r=t.actor?"reloadTile":"loadTile";t.actor=this.actor;const i=this.map.style?this.map.style.getLut(this.scope):null,o=this._partialReload,a={type:this.type,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,lut:i?{image:i.image.clone()}:null,scope:this.scope,pixelRatio:e.e.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,brightness:this.map.style&&this.map.style.getBrightness()||0,partial:o};t.request=this.actor.send(r,a,((e,i)=>o&&!i?(t.state="loaded",n(null)):(delete t.request,t.destroy(),t.aborted?n(null):e?n(e):(t.loadVectorData(i,this.map.painter,"reloadTile"===r),n(null)))),void 0,"loadTile"===r)}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0}unloadTile(e,t){this.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id,scope:this.scope}),e.destroy()}onRemove(e){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return e.Q({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}function jt(t,n,r,i,o){const a=function(r,i){if(r)return o(r);if(i){if(t.url&&i.tiles&&t.tiles&&delete t.tiles,i.variants){if(!Array.isArray(i.variants))return o(new Error("variants must be an array"));for(const t of i.variants){if(null==t||"object"!=typeof t||t.constructor!==Object)return o(new Error("variant must be an object"));if(!Array.isArray(t.capabilities))return o(new Error("capabilities must be an array"));if(1===t.capabilities.length&&"meshopt"===t.capabilities[0]){i=e.Q(i,t);break}}}const r=e.ai(e.Q(i,t),["tilejson","tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);i.vector_layers&&(r.vectorLayers=i.vector_layers,r.vectorLayerIds=r.vectorLayers.map((e=>e.id))),i.raster_layers&&(r.rasterLayers=i.raster_layers,r.rasterLayerIds=r.rasterLayers.map((e=>e.id))),r.tiles=n.canonicalizeTileset(r,t.url),o(null,r)}},s=function(e,t,n){if(!e)return null;if(!t&&!n)return e;n=n||e.worldview_default;const r=Object.values(e.language||{});if(0===r.length)return null;const i=Object.values(e.worldview||{});if(0===i.length)return null;const o=r.every((e=>e===t)),a=i.every((e=>e===n));return o&&a?e:t in(e.language_options||{})||n in(e.worldview_options||{})?null:e.language_options&&e.worldview_options?e:null}(t.data,r,i);return s?e.e.frame((()=>a(null,s))):t.url?e.h(n.transformRequest(n.normalizeSourceURL(t.url,null,r,i),e.R.Source),a):e.e.frame((()=>{const{data:e,...n}=t;a(null,n)}))}class Bt{constructor(t,n,r){this.bounds=e.aj.convert(this.validateBounds(t)),this.minzoom=n||0,this.maxzoom=r||24}validateBounds(e){return Array.isArray(e)&&4===e.length?[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]:[-180,-90,180,90]}contains(t){const n=Math.pow(2,t.z),r=Math.floor(e.ak(this.bounds.getWest())*n),i=Math.floor(e.al(this.bounds.getNorth())*n),o=Math.ceil(e.ak(this.bounds.getEast())*n),a=Math.ceil(e.al(this.bounds.getSouth())*n);return t.x>=r&&t.x=i&&t.y{this._tileJSONRequest=null,this._loaded=!0,n?this.fire(new e.f(n)):r&&(e.Q(this,r),r.bounds&&(this.tileBounds=new Bt(r.bounds,this.minzoom,this.maxzoom)),e.ao(r.tiles),this.fire(new e.g("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.g("data",{dataType:"source",sourceDataType:"content"}))),t&&t(n)}))}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}reload(){this.cancelTileJSONRequest();const t=e.am(this.id,this.scope);this.load((()=>this.map.style.clearSource(t)))}setTiles(e){return this._options.tiles=e,this.reload(),this}setUrl(e){return this.url=e,this._options.url=e,this.reload(),this}onRemove(e){this.cancelTileJSONRequest()}serialize(){return e.Q({},this._options)}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(t,n){const r=e.e.devicePixelRatio>=2,i=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),r,this.tileSize);t.request=e.i(this.map._requestManager.transformRequest(i,e.R.Tile),((r,i,o,a)=>(delete t.request,t.aborted?(t.state="unloaded",n(null)):r?(t.state="errored",n(r)):i?(this.map._refreshExpiredTiles&&t.setExpiryData({cacheControl:o,expires:a}),t.setTexture(i,this.map.painter),t.state="loaded",e.an(this.dispatcher),void n(null)):n(null))))}abortTile(e,t){e.request&&(e.request.cancel(),delete e.request),t&&t()}unloadTile(t,n){t.texture&&t.texture instanceof e.T?(t.destroy(!0),t.texture&&t.texture instanceof e.T&&this.map.painter.saveTileTexture(t.texture)):t.destroy(),n&&n()}hasTransition(){return!1}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}class Ft extends e.E{constructor(t,n,r,i){if(super(),this.id=t,this.dispatcher=r,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,e.Q(this,e.ai(n,["url","scheme","tileSize","promoteId"])),this._options=e.Q({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),this._tileWorkers={},this._deduped=new e.ap}load(t){this._loaded=!1,this.fire(new e.g("dataloading",{dataType:"source"}));const n=Array.isArray(this.map._language)?this.map._language.join():this.map._language,r=this.map._worldview;this._tileJSONRequest=jt(this._options,this.map._requestManager,n,r,((i,o)=>{this._tileJSONRequest=null,this._loaded=!0,i?(n&&console.warn(`Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ${n}`),r&&2!==r.length&&console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${r}`),this.fire(new e.f(i))):o&&(e.Q(this,o),o.bounds&&(this.tileBounds=new Bt(o.bounds,this.minzoom,this.maxzoom)),e.ao(o.tiles,this.map._requestManager._customAccessToken),this.fire(new e.g("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.g("data",{dataType:"source",sourceDataType:"content"}))),t&&t(i)}))}loaded(){return this._loaded}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}onAdd(e){this.map=e,this.load()}reload(){this.cancelTileJSONRequest();const t=e.am(this.id,this.scope);this.load((()=>this.map.style.clearSource(t)))}setTiles(e){return this._options.tiles=e,this.reload(),this}setUrl(e){return this.url=e,this._options.url=e,this.reload(),this}onRemove(e){this.cancelTileJSONRequest()}serialize(){return e.Q({},this._options)}loadTile(t,n){const r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme)),i=this.map._requestManager.transformRequest(r,e.R.Tile),o=this.map.style?this.map.style.getLut(this.scope):null,a={request:i,data:void 0,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,lut:o?{image:o.image.clone()}:null,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,scope:this.scope,pixelRatio:e.e.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:t.isSymbolTile,brightness:this.map.style&&this.map.style.getBrightness()||0,extraShadowCaster:t.isExtraShadowCaster,tessellationStep:this.map._tessellationStep};if(a.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state)"loading"===t.state?t.reloadCallback=n:t.request=t.actor.send("reloadTile",a,s.bind(this));else if(t.actor=this._tileWorkers[r]=this._tileWorkers[r]||this.dispatcher.getActor(),this.dispatcher.ready)t.request=t.actor.send("loadTile",a,s.bind(this),void 0,!0);else{const n=e.aq.call({deduped:this._deduped},a,((e,n)=>{e||!n?s.call(this,e):(a.data={cacheControl:n.cacheControl,expires:n.expires,rawData:n.rawData.slice(0)},t.actor&&t.actor.send("loadTile",a,s.bind(this),void 0,!0))}),!0);t.request={cancel:n}}function s(r,i){return delete t.request,t.aborted?n(null):r&&404!==r.status?n(r):(i&&i.resourceTiming&&(t.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&&i&&t.setExpiryData(i),t.loadVectorData(i,this.map.painter),e.an(this.dispatcher),n(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.type,source:this.id,scope:this.scope})}unloadTile(e,t){e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id,scope:this.scope}),e.destroy()}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}const Nt=(e,t,n)=>({u_matrix:e,u_image0:0,u_skirt_height:t,u_ground_shadow_factor:n}),_t=(e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m)=>({u_proj_matrix:Float32Array.from(e),u_globe_matrix:t,u_normalize_matrix:Float32Array.from(r),u_merc_matrix:n,u_zoom_transition:i,u_merc_center:o,u_image0:0,u_frustum_tl:a,u_frustum_tr:s,u_frustum_br:l,u_frustum_bl:c,u_globe_pos:u,u_globe_radius:h,u_viewport:d,u_grid_matrix:m?Float32Array.from(m):new Float32Array(9),u_skirt_height:f,u_far_z_cutoff:p});class zt{constructor(e=0,t=0,n=0,r=0){if(isNaN(e)||e<0||isNaN(t)||t<0||isNaN(n)||n<0||isNaN(r)||r<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=t,this.left=n,this.right=r}interpolate(t,n,r){return null!=n.top&&null!=t.top&&(this.top=e.a3(t.top,n.top,r)),null!=n.bottom&&null!=t.bottom&&(this.bottom=e.a3(t.bottom,n.bottom,r)),null!=n.left&&null!=t.left&&(this.left=e.a3(t.left,n.left,r)),null!=n.right&&null!=t.right&&(this.right=e.a3(t.right,n.right,r)),this}getCenter(t,n){const r=e.au((this.left+t-this.right)/2,0,t),i=e.au((this.top+n-this.bottom)/2,0,n);return new e.P(r,i)}equals(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}clone(){return new zt(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Vt(t,n){const r=e.ax(t,3);e.ae.fromQuat(t,n),e.aA(t,3,r)}function Ut(t,n){const r=e.aw.identity([]);return e.aw.rotateZ(r,r,-n),e.aw.rotateX(r,r,-t),r}function Ht(t,n){const r=[t[0],t[1],0],i=[n[0],n[1],0];if(e.$.length(r)>=1e-15){const t=e.$.normalize([],r);e.$.scale(i,t,e.$.dot(i,t)),n[0]=i[0],n[1]=i[1]}const o=e.$.cross([],n,t);if(e.$.len(o)<1e-15)return null;const a=Math.atan2(-o[1],o[0]);return Ut(Math.atan2(Math.sqrt(t[0]*t[0]+t[1]*t[1]),-t[2]),a)}class qt{constructor(e,t){this.position=e,this.orientation=t}get position(){return this._position}set position(t){if(t){const n=t instanceof e._?t:new e._(t[0],t[1],t[2]);this._renderWorldCopies&&(n.x=e.av(n.x,0,1)),this._position=n}else this._position=null}lookAtPoint(t,n){if(this.orientation=null,!this.position)return;const r=this.position,i=this._elevation?this._elevation.getAtPointOrZero(e._.fromLngLat(t)):0,o=e._.fromLngLat(t,i),a=[o.x-r.x,o.y-r.y,o.z-r.z];n||(n=[0,0,1]),n[2]=Math.abs(n[2]),this.orientation=Ht(a,n)}setPitchBearing(t,n){this.orientation=Ut(e.ac(t),e.ac(-n))}}class Gt{constructor(t,n){this._transform=e.ae.identity([]),this.orientation=n,this.position=t}get mercatorPosition(){const t=this.position;return new e._(t[0],t[1],t[2])}get position(){const t=e.ax(this._transform,3);return[t[0],t[1],t[2]]}set position(t){var n,r;t&&(n=this._transform,r=t,e.aA(n,3,[r[0],r[1],r[2],1]))}get orientation(){return this._orientation}set orientation(t){this._orientation=t||e.aw.identity([]),t&&Vt(this._transform,this._orientation)}getPitchBearing(){const e=this.forward(),t=this.right();return{bearing:Math.atan2(-t[1],t[0]),pitch:Math.atan2(Math.sqrt(e[0]*e[0]+e[1]*e[1]),-e[2])}}setPitchBearing(e,t){this._orientation=Ut(e,t),Vt(this._transform,this._orientation)}forward(){const t=e.ax(this._transform,2);return[-t[0],-t[1],-t[2]]}up(){const t=e.ax(this._transform,1);return[-t[0],-t[1],-t[2]]}right(){const t=e.ax(this._transform,0);return[t[0],t[1],t[2]]}getCameraToWorld(t,n){const r=new Float64Array(16);return e.ae.invert(r,this.getWorldToCamera(t,n)),r}getCameraToWorldMercator(){return this._transform}getWorldToCameraPosition(t,n,r){const i=this.position;e.$.scale(i,i,-t);const o=new Float64Array(16);return e.ae.fromScaling(o,[r,r,r]),e.ae.translate(o,o,i),o[10]*=n,o}getWorldToCamera(t,n){const r=new Float64Array(16),i=new Float64Array(4),o=this.position;return e.aw.conjugate(i,this._orientation),e.$.scale(o,o,-t),e.ae.fromQuat(r,i),e.ae.translate(r,r,o),r[1]*=-1,r[5]*=-1,r[9]*=-1,r[13]*=-1,r[8]*=n,r[9]*=n,r[10]*=n,r[11]*=n,r}getCameraToClipPerspective(t,n,r,i){const o=new Float64Array(16);return e.ae.perspective(o,t,n,r,i),o}getCameraToClipOrthographic(t,n,r,i,o,a){const s=new Float64Array(16);return e.ae.ortho(s,t,n,r,i,o,a),s}getDistanceToElevation(t,n=!1){const r=0===t?0:e.ay(t,n?e.az(this.position[1]):this.position[1]),i=this.forward();return(r-this.position[2])/i[2]}clone(){return new Gt([...this.position],[...this.orientation])}}const Yt=0,Wt=1,Qt=2,Xt=Math.tan(85*Math.PI/180);function Jt(t,n,r,i,o,a,s){const l=e.ae.create();if(r)if("globe"===a.name){const t=e.aC(o,n);e.ae.multiply(l,l,t)}else{const t=e.aD.invert([],s);l[0]=t[0],l[1]=t[1],l[4]=t[2],l[5]=t[3],i||e.ae.rotateZ(l,l,o.angle)}else e.ae.multiply(l,o.labelPlaneMatrix,t);return l}function Zt(e,t,n,r,i,o,a){const s=Jt(e,t,n,r,i,o,a);return"globe"===o.name&&n||(s[2]=s[6]=s[10]=s[14]=0),s}function Kt(t,n,r,i,o,a,s){if(r){if("globe"===a.name){const l=Jt(t,n,r,i,o,a,s);return e.ae.invert(l,l),e.ae.multiply(l,t,l),l}{const n=e.ae.clone(t),r=e.ae.identity([]);return r[0]=s[0],r[1]=s[1],r[4]=s[2],r[5]=s[3],e.ae.multiply(n,n,r),i||e.ae.rotateZ(n,n,-o.angle),n}}return o.glCoordMatrix}function $t(t,n,r,i){const o=[t,n,r,1];r?e.aB.transformMat4(o,o,i):hn(o,o,i);const a=o[3];return o[0]/=a,o[1]/=a,o[2]/=a,o}function en(e,t){return Math.min(.5+e/t*.5,1.5)}function tn(e,t){const n=e[0]/e[3],r=e[1]/e[3];return n>=-t[0]&&n<=t[0]&&r>=-t[1]&&r<=t[1]}function nn(t,n,r,i,o,a,s,l,c,u){const h=r.transform,d=i?t.textSizeData:t.iconSizeData,f=e.aE(d,r.transform.zoom),p="globe"===h.projection.name,m=[256/r.width*2+1,256/r.height*2+1],g=i?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;g.clear();let y=null;p&&(y=i?t.text.globeExtVertexArray:t.icon.globeExtVertexArray);const v=t.lineVertexArray,b=i?t.text.placedSymbolArray:t.icon.placedSymbolArray,A=r.transform.width/r.transform.height;let x,w=!1;for(let i=0;iMath.abs(r)?{useVertical:!0}:t===e.aF.vertical?i>0?{needsFlipping:!0}:null:n!==Yt&&function(e,t){return 0===e||Math.abs(t/e)>Xt}(r,i)?n===Wt?{needsFlipping:!0}:null:r<0?{needsFlipping:!0}:null}function an(t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,y,v,b){const A=n/24,x=t.lineOffsetX*A,w=t.lineOffsetY*A,{lineStartIndex:C,glyphStartIndex:S,numGlyphs:E,segment:k,writingMode:T,flipState:I}=t,O=C+t.lineLength,R=t=>{if(h){const[n,r,i]=t.up,o=u.length;e.aH(h,o+0,n,r,i),e.aH(h,o+1,n,r,i),e.aH(h,o+2,n,r,i),e.aH(h,o+3,n,r,i)}const[n,r,i]=t.point;e.aI(u,n,r,i,t.angle)};if(E>1){const e=rn(A,l,x,w,r,d,f,t,c,a,p,g,!1,y,v,b);if(!e)return{notEnoughRoom:!0};if(i&&!r){let[n,r,i]=e.first.point,[o,a,l]=e.last.point;[n,r]=$t(n,r,i,s),[o,a]=$t(o,a,l,s);const c=on(T,I,(o-n)*m,a-r);if(t.flipState=c&&c.needsFlipping?Wt:Qt,c)return c}R(e.first);for(let e=S+1;e0?a:ln(f,i,n,1,o,void 0,y,v.canonical),l=on(T,I,(s[0]-n[0])*m,s[1]-n[1]);if(t.flipState=l&&l.needsFlipping?Wt:Qt,l)return l}const n=cn(A*l.getoffsetX(S),x,w,r,d,f,k,C,O,c,a,p,g,!1,!1,y,v,b);if(!n)return{notEnoughRoom:!0};R(n)}return{}}function sn(e,t,n,r,i){const{x:o,y:a,z:s}=r.projectTilePoint(e.x,e.y,t);if(!i)return $t(o,a,s,n);const[l,c,u]=i(e);return $t(o+l,a+c,s+u,n)}function ln(t,n,r,i,o,a,s,l){const c=sn(t.sub(n)._unit()._add(t),l,o,s,a);return e.$.sub(c,r,c),e.$.normalize(c,c),e.$.scaleAndAdd(c,r,c,i)}function cn(t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,y,v){const b=i?t-n:t+n;let A=b>0?1:-1,x=0;i&&(A*=-1,x=Math.PI),A<0&&(x+=Math.PI);let w=l+s+(A>0?0:1)|0,C=o,S=o,E=0,k=0;const T=Math.abs(b),I=[],O=[];let R=a,M=R;const P=()=>ln(M,R,S,T-E+1,h,f,g,y.canonical);for(;E+k<=T;){if(w+=A,w=c)return null;if(S=C,M=R,I.push(S),p&&O.push(M),R=new e.P(u.getx(w),u.gety(w)),C=d[w],!C){const e=sn(R,y.canonical,h,g,f);C=e[3]>0?d[w]=e:P()}E+=k,k=e.$.distance(S,C)}m&&f&&(d[w]&&(C=P(),k=e.$.distance(S,C)),d[w]=C);const D=(T-E)/k,j=R.sub(M)._mult(D)._add(M),B=e.$.sub([],C,S),L=e.$.scaleAndAdd([],S,B,D);let F=[0,0,1],N=B[0],_=B[1];if(v&&(F=g.upVector(y.canonical,j.x,j.y),0!==F[0]||0!==F[1]||1!==F[2])){const t=[F[2],0,-F[0]],n=e.$.cross([],F,t);e.$.normalize(t,t),e.$.normalize(n,n),N=e.$.dot(B,t),_=e.$.dot(B,n)}if(r){const t=e.$.cross([],F,B);e.$.normalize(t,t),e.$.scaleAndAdd(L,L,t,r*A)}const z=x+Math.atan2(_,N);return I.push(L),p&&O.push(j),{point:L,angle:z,path:I,tilePath:O,up:F}}function un(e,t){const n=t.length,r=n+4*e;t.resize(r),t.float32.fill(-1/0,4*n,4*r)}function hn(e,t,n){const r=t[0],i=t[1];return e[0]=n[0]*r+n[4]*i+n[12],e[1]=n[1]*r+n[5]*i+n[13],e[3]=n[3]*r+n[7]*i+n[15],e}const dn=(e,t,n)=>(1-n)*e+n*t,fn=e=>e*e*e*e*e;class pn{constructor(t,n,r,i,o,a,s){this.tileSize=512,this._renderWorldCopies=void 0===o||o,this._minZoom=t||0,this._maxZoom=n||22,this._minPitch=null==r?0:r,this._maxPitch=null==i?60:i,this.setProjection(a),this.setMaxBounds(s),this.width=0,this.height=0,this._center=new e.aJ(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new zt,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._expandedProjMatrixCache={},this._distanceTileDataCache={},this._camera=new Gt,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._pixelsPerMercatorPixel=1,this.globeRadius=0,this.globeCenterInViewSpace=[0,0,0],this._tileCoverLift=0,this.freezeTileCoverage=!1,this._horizonShift=.1,this._orthographicProjectionAtLowPitch=!1}clone(){const e=new pn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection());return e._elevation=this._elevation,e._centerAltitude=this._centerAltitude,e._centerAltitudeValidForExaggeration=this._centerAltitudeValidForExaggeration,e.tileSize=this.tileSize,e.mercatorFromTransition=this.mercatorFromTransition,e.width=this.width,e.height=this.height,e.cameraElevationReference=this.cameraElevationReference,e._center=this._center,e._setZoom(this.zoom),e._seaLevelZoom=this._seaLevelZoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._nearZ=this._nearZ,e._farZ=this._farZ,e._averageElevation=this._averageElevation,e._orthographicProjectionAtLowPitch=this._orthographicProjectionAtLowPitch,e._unmodified=this._unmodified,e._edgeInsets=this._edgeInsets.clone(),e._camera=this._camera.clone(),e._calcMatrices(),e.freezeTileCoverage=this.freezeTileCoverage,e.frustumCorners=this.frustumCorners,e}get isOrthographic(){return"globe"!==this.projection.name&&this._orthographicProjectionAtLowPitch&&this.pitch<15}get elevation(){return this._elevation}set elevation(e){this._elevation!==e&&(this._elevation=e,this._updateCameraOnTerrain(),this._calcMatrices())}get depthOcclusionForSymbolsAndCircles(){return"globe"!==this.projection.name&&!this.isOrthographic}updateElevation(e,t=!1){const n=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForExaggeration;(null==this._seaLevelZoom||n)&&this._updateCameraOnTerrain(),(e||n)&&this._constrainCamera(t),this._calcMatrices()}getProjection(){return e.ai(this.projection,["name","center","parallels"])}setProjection(t){this.projectionOptions=t||{name:"mercator"};const n=this.projection?this.getProjection():void 0;this.projection=e.aK(this.projectionOptions);const r=this.getProjection(),i=!e.d(n,r);return i&&this._calcMatrices(),this.mercatorFromTransition=!1,i}setOrthographicProjectionAtLowPitch(e){return this._orthographicProjectionAtLowPitch!==e&&(this._orthographicProjectionAtLowPitch=e,this._calcMatrices(),!0)}setMercatorFromTransition(){const t=this.projection.name;this.mercatorFromTransition=!0,this.projectionOptions={name:"mercator"},this.projection=e.aK({name:"mercator"});const n=t!==this.projection.name;return n&&this._calcMatrices(),n}get minZoom(){return this._minZoom}set minZoom(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))}get maxZoom(){return this._maxZoom}set maxZoom(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))}get minPitch(){return this._minPitch}set minPitch(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))}get maxPitch(){return this._maxPitch}set maxPitch(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))}get renderWorldCopies(){return this._renderWorldCopies&&!0===this.projection.supportsWorldCopies}set renderWorldCopies(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e}get worldSize(){return this.tileSize*this.scale}get cameraWorldSizeForFog(){const e=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(e))}get cameraWorldSize(){const e=Math.max(this._camera.getDistanceToElevation(this._averageElevation,!0),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(e))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return e.ay(1,this.center.lat)*this.cameraWorldSizeForFog}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new e.P(this.width,this.height)}get bearing(){return e.av(this.rotation,-180,180)}set bearing(e){this.rotation=e}get rotation(){return-this.angle/Math.PI*180}set rotation(t){const n=-t*Math.PI/180;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=e.aD.create(),e.aD.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(t){const n=e.au(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())}get aspect(){return this.width/this.height}get fov(){return this._fov/Math.PI*180}get fovX(){return this._fov}get fovY(){const e=1/Math.tan(.5*this.fovX);return 2*Math.atan(1/this.aspect/e)}set fov(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=e.ac(t),this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(e){this._averageElevation=e,this._calcFogMatrices(),this._distanceTileDataCache={}}get zoom(){return this._zoom}set zoom(e){const t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._setZoom(t),this._updateSeaLevelZoom(),this._constrain(),this._calcMatrices())}_setZoom(e){this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom}get tileCoverLift(){return this._tileCoverLift}set tileCoverLift(e){this._tileCoverLift!==e&&(this._tileCoverLift=e)}_updateCameraOnTerrain(){const e=this.elevation?this.elevation.getAtPoint(this.locationCoordinate(this.center),Number.NEGATIVE_INFINITY):Number.NEGATIVE_INFINITY,t=this.elevation&&e===Number.NEGATIVE_INFINITY&&this.elevation.visibleDemTiles.length>0&&this.elevation.exaggeration()>0&&this._centerAltitudeValidForExaggeration;if(!this._elevation||e===Number.NEGATIVE_INFINITY&&(!t||!this._centerAltitude))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForExaggeration=void 0);const n=this._elevation;if(t||this._centerAltitude&&this._centerAltitudeValidForExaggeration&&n.exaggeration()&&this._centerAltitudeValidForExaggeration!==n.exaggeration()){const e=this._centerAltitudeValidForExaggeration;this._centerAltitude=this._centerAltitude/e*n.exaggeration(),this._centerAltitudeValidForExaggeration=n.exaggeration()}else this._centerAltitude=e||0,this._centerAltitudeValidForExaggeration=n.exaggeration();this._updateSeaLevelZoom()}_updateSeaLevelZoom(){if(void 0===this._centerAltitudeValidForExaggeration)return;const e=this.cameraToCenterDistance,t=(this.pixelsPerMeter*this._centerAltitude+e)/this.worldSize;this._seaLevelZoom=this._zoomFromMercatorZ(t)}sampleAverageElevation(){if(!this._elevation)return 0;const t=this._elevation,n=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],r=this.horizonLineFromTop();let i=0,o=0;for(let a=0;a{const l=e.b2(n,t,r,o,a);s.has(l)||(i.push(new e.aQ(t,n,r,o,a)),s.add(l))};for(let e=0;e0,p=s.y+10,g=i.wrap-(f?0:1),y=i.wrap+(d?0:1),v=f?s.x-1:h-1,b=d?s.x+1:0;if(o)r[0]<0?(l(c,y,s.z,b,s.y),r[1]<0&&p&&(l(c,u,s.z,s.x,s.y+1),l(c,y,s.z,b,s.y+1)),r[1]>0&&m&&(l(c,u,s.z,s.x,s.y-1),l(c,y,s.z,b,s.y-1))):r[0]>0?(l(c,g,s.z,v,s.y),r[1]<0&&p&&(l(c,u,s.z,s.x,s.y+1),l(c,g,s.z,v,s.y+1)),r[1]>0&&m&&(l(c,u,s.z,s.x,s.y-1),l(c,g,s.z,v,s.y-1))):r[1]<0&&p?l(c,u,s.z,s.x,s.y+1):m&&l(c,u,s.z,s.x,s.y-1);else{const e=i.visibleQuadrants;1&e&&(l(c,g,s.z,v,s.y),m&&(l(c,u,s.z,s.x,s.y-1),l(c,g,s.z,v,s.y-1))),2&e&&(l(c,y,s.z,b,s.y),m&&(l(c,u,s.z,s.x,s.y-1),l(c,y,s.z,b,s.y-1))),4&e&&(l(c,g,s.z,v,s.y),p&&(l(c,u,s.z,s.x,s.y+1),l(c,g,s.z,v,s.y+1))),8&e&&(l(c,y,s.z,b,s.y),p&&(l(c,u,s.z,s.x,s.y+1),l(c,y,s.z,b,s.y+1)))}}const c=[];for(const e of i)i.some((t=>e.isChildOf(t)))||c.push(e);if(i=c.filter((e=>!t.some((t=>!!(e.overscaledZ{const t=e.canonical.x+.5,n=e.canonical.y+.5,i=t-r[0],o=n-r[1];return i*i+o*ot.maxzoom&&(n=t.maxzoom);const s=this.locationCoordinate(this.center),l=this.center.lat,c=1<{const n=1/4e4,r=new e._(t.x+n,t.y,t.z),i=new e._(t.x,t.y+n,t.z),o=t.toLngLat(),a=r.toLngLat(),s=i.toLngLat(),l=this.locationCoordinate(o),c=this.locationCoordinate(a),u=this.locationCoordinate(s),h=Math.hypot(c.x-l.x,c.y-l.y),d=Math.hypot(u.x-l.x,u.y-l.y);return Math.sqrt(h*d)*C/n},E=t=>{const n=x,r=w;return{aabb:e.aR(this,c,0,0,0,t,r,n,this.projection),zoom:0,x:0,y:0,minZ:r,maxZ:n,wrap:t,fullyVisible:!1}},k=[];let T=[];const I=n,O=t.reparseOverscaled?r:n,R=(g-this._centerAltitude)*m,M=e=>{if(!this._elevation||!e.tileID||!a)return;const t=this._elevation.getMinMaxForTile(e.tileID),n=e.aabb;t?(n.min[2]=t.min,n.max[2]=t.max,n.center[2]=(n.min[2]+n.max[2])/2):(e.shouldSplit=D(e),e.shouldSplit||(n.min[2]=n.max[2]=n.center[2]=this._centerAltitude))},P=(e,t)=>{const n=.707;if(t*n{if(t.zoom=.9)return!0}else if(o&&(s=t.aabb.distanceZ(y)*m),this.projection.isReprojectedInTileSpace&&r<=5){const n=Math.pow(2,t.zoom),r=S(new e._((t.x+.5)/n,(t.y+.5)/n));c=r>.85?1:r}if(!a){const e=Math.sqrt(n*n+i*i+s*s);let r=(1<0;){const r=k.pop(),i=r.x,s=r.y;let l=r.fullyVisible;const d=()=>"globe"===this.projection.name&&(0===r.y||r.y===(1<>1),d={aabb:a?r.aabb.quadrant(t):e.aR(this,c,r.zoom+1,n,u,r.wrap,r.minZ,r.maxZ,this.projection),zoom:r.zoom+1,x:n,y:u,wrap:r.wrap,fullyVisible:l,tileID:void 0,shouldSplit:void 0,minZ:r.minZ,maxZ:r.maxZ};o&&!h&&(d.tileID=new e.aQ(r.zoom+1===I?O:r.zoom+1,r.wrap,r.zoom+1,n,u),M(d)),k.push(d)}else{const o=r.zoom===I?O:r.zoom;if(t.minzoom&&t.minzoom>o)continue;let a=0;if(!l){let n=v?r.aabb.intersectsPrecise(f):r.aabb.intersectsPreciseFlat(f);if(0===n&&d()){const t=new e.aO(r.zoom,i,s);n=e.aP(this,c,t,!0).intersectsPrecise(f)}if(0===n)continue;if(t.calculateQuadrantVisibility)if(f.containsPoint(r.aabb.center))a=15;else for(let e=0;e<4;e++)0!==r.aabb.quadrant(e).intersects(f)&&(a|=1<{const o=[0,0,0,1],a=[e.a4,e.a4,0,1],s=this.calculateFogTileMatrix(i.tileID.toUnwrapped());e.aB.transformMat4(o,o,s),e.aB.transformMat4(a,a,s);const l=e.aB.min([],o,a),c=e.aB.max([],o,a),u=e.aS(l,c);if(0===u)return!0;let h=!1;const d=this._elevation;if(d&&u>n&&0!==r){const n=this.calculateProjMatrix(i.tileID.toUnwrapped());let o;t.isTerrainDEM||(o=d.getMinMaxForTile(i.tileID)),o||(o={min:w,max:x});const a=e.b4(this.rotation),s=[a[0]*e.a4,a[1]*e.a4,o.max];e.$.transformMat4(s,s,n),h=(1-s[1])*this.height*.5e.distanceSq-t.distanceSq)).map((e=>e.tileID))}resize(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(e){return Math.pow(2,e)}scaleZoom(e){return Math.log(e)/Math.LN2}project(t){const n=e.au(t.lat,-e.aT,e.aT),r=this.projection.project(t.lng,n);return new e.P(r.x*this.worldSize,r.y*this.worldSize)}unproject(e){return this.projection.unproject(e.x/this.worldSize,e.y/this.worldSize)}get point(){return this.project(this.center)}get pointMerc(){return this.point._div(this.worldSize)}get pixelsPerMeterRatio(){return this.pixelsPerMeter/e.ay(1,this.center.lat)/this.worldSize}setLocationAtPoint(t,n){let r,i;const o=this.centerPoint;if("globe"===this.projection.name){const e=this.worldSize;r=(n.x-o.x)/e,i=(n.y-o.y)/e}else{const e=this.pointCoordinate(n),t=this.pointCoordinate(o);r=e.x-t.x,i=e.y-t.y}const a=this.locationCoordinate(t);this.setLocation(new e._(a.x-r,a.y-i))}setLocation(e){this.center=this.coordinateLocation(e),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(e){return this.projection.locationPoint(this,e)}locationPoint3D(e){return this.projection.locationPoint(this,e,!0)}pointLocation(e){return this.coordinateLocation(this.pointCoordinate(e))}pointLocation3D(e){return this.coordinateLocation(this.pointCoordinate3D(e))}locationCoordinate(t,n){const r=n?e.ay(n,t.lat):void 0,i=this.projection.project(t.lng,t.lat);return new e._(i.x,i.y,r)}coordinateLocation(e){return this.projection.unproject(e.x,e.y)}pointRayIntersection(t,n){const r=null!=n?n:this._centerAltitude,i=[t.x,t.y,0,1],o=[t.x,t.y,1,1];e.aB.transformMat4(i,i,this.pixelMatrixInverse),e.aB.transformMat4(o,o,this.pixelMatrixInverse);const a=i[3],s=o[3];e.aB.scale(i,i,1/a),e.aB.scale(o,o,1/s);const l=i[2],c=o[2];return{p0:i,p1:o,t:l===c?0:(r-l)/(c-l)}}screenPointToMercatorRay(t){const n=[t.x,t.y,0,1],r=[t.x,t.y,1,1];return e.aB.transformMat4(n,n,this.pixelMatrixInverse),e.aB.transformMat4(r,r,this.pixelMatrixInverse),e.aB.scale(n,n,1/n[3]),e.aB.scale(r,r,1/r[3]),n[2]=e.ay(n[2],this._center.lat)*this.worldSize,r[2]=e.ay(r[2],this._center.lat)*this.worldSize,e.aB.scale(n,n,1/this.worldSize),e.aB.scale(r,r,1/this.worldSize),new e.aU([n[0],n[1],n[2]],e.$.normalize([],e.$.sub([],r,n)))}rayIntersectionCoordinate(t){const{p0:n,p1:r,t:i}=t,o=e.ay(n[2],this._center.lat),a=e.ay(r[2],this._center.lat);return new e._(e.a3(n[0],r[0],i)/this.worldSize,e.a3(n[1],r[1],i)/this.worldSize,e.a3(o,a,i))}pointCoordinate(e,t=this._centerAltitude){return this.projection.pointCoordinate(this,e.x,e.y,t)}pointCoordinate3D(t){if(!this.elevation)return this.pointCoordinate(t);let n=this.projection.pointCoordinate3D(this,t.x,t.y);if(n)return new e._(n[0],n[1],n[2]);let r=0,i=this.horizonLineFromTop();if(t.y>i)return this.pointCoordinate(t);const o=.02*i,a=t.clone();for(let t=0;t<10&&i-r>o;t++){a.y=e.a3(r,i,.66);const t=this.projection.pointCoordinate3D(this,a.x,a.y);t?(i=a.y,n=t):r=a.y}return n?new e._(n[0],n[1],n[2]):this.pointCoordinate(t)}isPointAboveHorizon(e){return this.projection.isPointAboveHorizon(this,e)}isPointOnSurface(t){if(t.y<0||t.y>this.height||t.x<0||t.x>this.width)return!1;if(this.elevation||this.zoom>=e.aV)return!this.isPointAboveHorizon(t);const n=this.pointCoordinate(t);return n.y>=0&&n.y<=1}_coordinatePoint(t,n){const r=n&&this.elevation?this.elevation.getAtPointOrZero(t,this._centerAltitude):this._centerAltitude,i=[t.x*this.worldSize,t.y*this.worldSize,r+t.toAltitude(),1];return e.aB.transformMat4(i,i,this.pixelMatrix),i[3]>0?new e.P(i[0]/i[3],i[1]/i[3]):new e.P(Number.MAX_VALUE,Number.MAX_VALUE)}_getBoundsNonRectangular(){const{top:t,left:n}=this._edgeInsets,r=this.height-this._edgeInsets.bottom,i=this.width-this._edgeInsets.right,o=this.pointLocation3D(new e.P(n,t)),a=this.pointLocation3D(new e.P(i,t)),s=this.pointLocation3D(new e.P(i,r)),l=this.pointLocation3D(new e.P(n,r));let c=Math.min(o.lng,a.lng,s.lng,l.lng),u=Math.max(o.lng,a.lng,s.lng,l.lng),h=Math.min(o.lat,a.lat,s.lat,l.lat),d=Math.max(o.lat,a.lat,s.lat,l.lat);const f=Math.pow(2,-this.zoom)/16*270,p="globe"===this.projection.name?1:4,m=(t,n,r,i,o)=>{const a=(t+r)/2,s=(n+i)/2,l=new e.P(a,s),{lng:g,lat:y}=this.pointLocation3D(l),v=Math.max(0,c-g,h-y,g-u,y-d);c=Math.min(c,g),u=Math.max(u,g),h=Math.min(h,y),d=Math.max(d,y),(of)&&(m(t,n,a,s,o+1),m(a,s,r,i,o+1))};if(m(n,t,i,t,1),m(i,t,i,r,1),m(i,r,n,r,1),m(n,r,n,t,1),"globe"===this.projection.name){const[t,n]=e.aW(this);t?(d=90,u=180,c=-180):n&&(h=-90,u=180,c=-180)}return new e.aj(new e.aJ(c,h),new e.aJ(u,d))}_getBoundsRectangular(t,n){const{top:r,left:i}=this._edgeInsets,o=this.height-this._edgeInsets.bottom,a=this.width-this._edgeInsets.right,s=new e.P(i,r),l=new e.P(a,r),c=new e.P(a,o),u=new e.P(i,o);let h=this.pointCoordinate(s,t),d=this.pointCoordinate(l,t);const f=this.pointCoordinate(c,n),p=this.pointCoordinate(u,n),m=(e,t)=>(t.y-e.y)/(t.x-e.x);return h.y>1&&d.y>=0?h=new e._((1-p.y)/m(p,h)+p.x,1):h.y<0&&d.y<=1&&(h=new e._(-p.y/m(p,h)+p.x,0)),d.y>1&&h.y>=0?d=new e._((1-f.y)/m(f,d)+f.x,1):d.y<0&&h.y<=1&&(d=new e._(-f.y/m(f,d)+f.x,0)),(new e.aj).extend(this.coordinateLocation(h)).extend(this.coordinateLocation(d)).extend(this.coordinateLocation(p)).extend(this.coordinateLocation(f))}_getBoundsRectangularTerrain(){const e=this.elevation;if(!e.visibleDemTiles.length||e.isUsingMockSource())return this._getBoundsRectangular(0,0);const t=e.visibleDemTiles.reduce(((e,t)=>{if(t.dem){const n=t.dem.tree;e.min=Math.min(e.min,n.minimums[0]),e.max=Math.max(e.max,n.maximums[0])}return e}),{min:Number.MAX_VALUE,max:0});return this._getBoundsRectangular(t.min*e.exaggeration(),t.max*e.exaggeration())}getBounds(){return"mercator"===this.projection.name||"equirectangular"===this.projection.name?this._terrainEnabled()?this._getBoundsRectangularTerrain():this._getBoundsRectangular(0,0):this._getBoundsNonRectangular()}horizonLineFromTop(e=!0){const t=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))-this.centerOffset.y,n=this.height/2-t*(1-this._horizonShift);return e?Math.max(0,n):n}getMaxBounds(){return this.maxBounds}setMaxBounds(t){this.maxBounds=t,this.minLat=-e.aT,this.maxLat=e.aT,this.minLng=-180,this.maxLng=180,t&&(this.minLat=t.getSouth(),this.maxLat=t.getNorth(),this.minLng=t.getWest(),this.maxLng=t.getEast(),this.maxLngh&&(s=h-c),h-ut&&(a=t-l),t-e=15?1:this.pitch/15;((e,t,n,r)=>{for(let i=0;i<16;i++)e[i]=dn(t[i],n[i],r)})(s,s,l,fn(o))}else s=l;const c=e.ae.mul([],l,a);let u=e.ae.mul([],s,a);if(this.projection.isReprojectedInTileSpace){const t=this.locationCoordinate(this.center),n=e.ae.identity([]);e.ae.translate(n,n,[t.x*this.worldSize,t.y*this.worldSize,0]),e.ae.multiply(n,n,e.aZ(this)),e.ae.translate(n,n,[-t.x*this.worldSize,-t.y*this.worldSize,0]),e.ae.multiply(u,u,n),e.ae.multiply(c,c,n),this.inverseAdjustmentMatrix=e.a_(this)}else this.inverseAdjustmentMatrix=[1,0,0,1];if(this.mercatorMatrix=e.ae.scale([],u,[this.worldSize,this.worldSize,this.worldSize/o,1]),this.projMatrix=u,this.invProjMatrix=e.ae.invert(new Float64Array(16),this.projMatrix),n){const n=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,this._nearZ,1/0);n[8]=2*-t.x/this.width,n[9]=2*t.y/this.height,this.expandedFarZProjMatrix=e.ae.mul([],n,a)}else this.expandedFarZProjMatrix=this.projMatrix;const h=e.ae.invert([],s);this.frustumCorners=e.a$.fromInvProjectionMatrix(h,this.horizonLineFromTop(),this.height),this.cameraFrustum=e.aM.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,0,!n);const d=new Float32Array(16);e.ae.identity(d),e.ae.scale(d,d,[1,-1,1]),e.ae.rotateX(d,d,this._pitch),e.ae.rotateZ(d,d,this.angle);const f=e.ae.perspective(new Float32Array(16),this._fov,this.width/this.height,this._nearZ,this._farZ);this.starsProjMatrix=e.ae.clone(f);const p=(Math.PI/2-this._pitch)*(this.height/this._fov)*this._horizonShift;f[8]=2*-t.x/this.width,f[9]=2*(t.y+p)/this.height,this.skyboxMatrix=e.ae.multiply(d,f,d);const m=this.point,g=m.x,y=m.y,v=this.width%2/2,b=this.height%2/2,A=Math.cos(this.angle),x=Math.sin(this.angle),w=g-Math.round(g)+A*v+x*b,C=y-Math.round(y)+A*b+x*v,S=new Float64Array(u);if(e.ae.translate(S,S,[w>.5?w-1:w,C>.5?C-1:C,0]),this.alignedProjMatrix=S,u=e.ae.create(),e.ae.scale(u,u,[this.width/2,-this.height/2,1]),e.ae.translate(u,u,[1,-1,0]),this.labelPlaneMatrix=u,u=e.ae.create(),e.ae.scale(u,u,[1,-1,1]),e.ae.translate(u,u,[-1,-1,0]),e.ae.scale(u,u,[2/this.width,2/this.height,1]),this.glCoordMatrix=u,this.pixelMatrix=e.ae.multiply(new Float64Array(16),this.labelPlaneMatrix,c),this._calcFogMatrices(),this._distanceTileDataCache={},u=e.ae.invert(new Float64Array(16),this.pixelMatrix),!u)throw new Error("failed to invert matrix");if(this.pixelMatrixInverse=u,"globe"===this.projection.name||this.mercatorFromTransition){this.globeMatrix=e.b0(this);const t=[this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]];this.globeCenterInViewSpace=e.$.transformMat4(t,t,a),this.globeRadius=this.worldSize/2/Math.PI-1}else this.globeMatrix=u;this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={},this._expandedProjMatrixCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const t=this.cameraWorldSizeForFog,n=this.cameraPixelsPerMeter,r=this._camera.position,i=1/this.height/this._pixelsPerMercatorPixel,o=[t,t,n];e.$.scale(o,o,i),e.$.scale(r,r,-1),e.$.multiply(r,r,o);const a=e.ae.create();e.ae.translate(a,a,r),e.ae.scale(a,a,o),this.mercatorFogMatrix=a,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(t,n,i)}_computeCameraPosition(e){const t=(e=e||this.pixelsPerMeter)/this.pixelsPerMeter,n=this._camera.forward(),r=this.point,i=this._seaLevelZoom?this._seaLevelZoom:this._zoom,o=this._mercatorZfromZoom(i)*t-e/this.worldSize*this._centerAltitude;return[r.x/this.worldSize-n[0]*o,r.y/this.worldSize-n[1]*o,e/this.worldSize*this._centerAltitude-n[2]*o]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(t){const n=this._maxCameraBoundsDistance()*Math.cos(this._pitch),r=this._camera.position[2],i=t[2];let o=1;this.projection.wrap&&(this.center=this.center.wrap()),i>0&&(o=Math.min((n-r)/i,1)),this._camera.position=e.$.scaleAndAdd([],this._camera.position,t,o),this._updateStateFromCamera()}_updateStateFromCamera(){const t=this._camera.position,n=this._camera.forward(),{pitch:r,bearing:i}=this._camera.getPitchBearing(),o=e.ay(this._centerAltitude,this.center.lat)*this._pixelsPerMercatorPixel,a=this._mercatorZfromZoom(this._maxZoom)*Math.cos(e.ac(this._maxPitch)),s=Math.max((t[2]-o)/Math.cos(r),a),l=this._zoomFromMercatorZ(s);e.$.scaleAndAdd(t,t,n,s),this._pitch=e.au(r,e.ac(this.minPitch),e.ac(this.maxPitch)),this.angle=e.av(i,-Math.PI,Math.PI),this._setZoom(e.au(l,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new e._(t[0],t[1],t[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(e){return Math.pow(2,e)*this.tileSize}_mercatorZfromZoom(e){return this.cameraToCenterDistance/this._worldSizeFromZoom(e)}_minimumHeightOverTerrain(){const e=Math.min(null!=this._seaLevelZoom?this._seaLevelZoom:this._zoom,this._maxZoom)+4;return this._mercatorZfromZoom(e)}_zoomFromMercatorZ(e){return this.scaleZoom(this.cameraToCenterDistance/(e*this.tileSize))}zoomFromMercatorZAdjusted(t){let n=0,r=e.aV,i=0,o=1/0;for(;r-n>1e-6&&r>n;){const e=n+.5*(r-n),a=this.tileSize*Math.pow(2,e),s=this.getCameraToCenterDistance(this.projection,e,a),l=this.scaleZoom(s/(t*this.tileSize)),c=Math.abs(e-l);cc||n.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+e.b1(this.fovAboveCenter)>88||this.anyCornerOffEdge(new e.P(0,0),new e.P(this.width,this.height))}zoomDeltaToMovement(t,n){const r=e.$.length(e.$.sub([],this._camera.position,t)),i=this._zoomFromMercatorZ(r)+n;return r-this._mercatorZfromZoom(i)}getCameraPoint(){if("globe"===this.projection.name){const t=function([t,n,r],i){const o=[t,n,r,1];e.aB.transformMat4(o,o,i);const a=o[3]=Math.max(o[3],1e-6);return o[0]/=a,o[1]/=a,o[2]/=a,o}([this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]],this.pixelMatrix);return new e.P(t[0],t[1])}{const t=this._pitch,n=Math.tan(t)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.P(0,n))}}getCameraToCenterDistance(t,n=this.zoom,r=this.worldSize){const i=e.aY(t,n,this.width,this.height,1024),o=t.pixelSpaceConversion(this.center.lat,r,i);let a=.5/Math.tan(.5*this._fov)*this.height*o;if(this.isOrthographic){const e=this.pitch>=15?1:this.pitch/15;a=dn(1,a,fn(e))}return a}getWorldToCameraMatrix(){const t="meters"===this.projection.zAxisUnit?this.pixelsPerMeter:1,n=this._camera.getWorldToCamera(this.worldSize,t);return"globe"===this.projection.name&&e.ae.multiply(n,n,this.globeMatrix),n}getFrustum(t){const n="meters"===this.projection.zAxisUnit;return e.aM.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,t,n)}}const mn=5,gn=6,yn=7,vn=8,bn=9,An=10,xn=11,wn=(t,n)=>{if(n>0&&t.terrain&&e.w("Cutoff is currently disabled on terrain"),n<=0||t.terrain)return{shouldRenderCutoff:!1,uniformValues:{u_cutoff_params:[0,0,0,1]}};const r=t.transform,i=Math.max(Math.abs(r._zoom-(t.minCutoffZoom-1)),1),o=r.isLODDisabled(!1)?e.a0(60,45,r.pitch):e.a0(30,15,r.pitch),a=r._farZ-r._nearZ,s=r.cameraToCenterDistance,l=n*r.height,c=(d=s,f=r._farZ+l,((1-(p=o))*d+p*f)*i),u=(c-r._nearZ)/a,h=(c-l-r._nearZ)/a;var d,f,p;return{shouldRenderCutoff:o<1,uniformValues:{u_cutoff_params:[r._nearZ,r._farZ,u,h]}}},Cn={cascadeCount:2,normalOffset:3,shadowMapResolution:2048};class Sn{constructor(e,t){this.aabb=e,this.lastCascade=t}}class En{add(e,t){const n=this.receivers[e.key];void 0!==n?(n.aabb.min[0]=Math.min(n.aabb.min[0],t.min[0]),n.aabb.min[1]=Math.min(n.aabb.min[1],t.min[1]),n.aabb.min[2]=Math.min(n.aabb.min[2],t.min[2]),n.aabb.max[0]=Math.max(n.aabb.max[0],t.max[0]),n.aabb.max[1]=Math.max(n.aabb.max[1],t.max[1]),n.aabb.max[2]=Math.max(n.aabb.max[2],t.max[2])):this.receivers[e.key]=new Sn(t,null)}clear(){this.receivers={}}get(e){return this.receivers[e.key]}computeRequiredCascades(t,n,r){const i=e.b8.fromPoints(t.points);let o=0;for(const t in this.receivers){const a=this.receivers[t];if(!a)continue;if(!i.intersectsAabb(a.aabb))continue;a.aabb.min=i.closestPoint(a.aabb.min),a.aabb.max=i.closestPoint(a.aabb.max);const s=a.aabb.getCorners();for(let t=0;t1||a[1]<-1||a[1]>1){i=!1;break}}if(a.lastCascade=t,o=Math.max(o,t),i)break}}return o+1}}class kn{constructor(t){this.painter=t,this._enabled=!1,this._shadowLayerCount=0,this._numCascadesToRender=0,this._cascades=[],this._groundShadowTiles=[],this._receivers=new En,this._depthMode=new e.af(t.context.gl.LEQUAL,e.af.ReadWrite,[0,1]),this._uniformValues={u_light_matrix_0:new Float32Array(16),u_light_matrix_1:new Float32Array(16),u_shadow_intensity:0,u_fade_range:[0,0],u_shadow_normal_offset:[1,1,1],u_shadow_texel_size:1,u_shadow_map_resolution:1,u_shadow_direction:[0,0,1],u_shadow_bias:[36e-5,.0012,.012],u_shadowmap_0:0,u_shadowmap_1:0},this._forceDisable=!1,this.useNormalOffset=!1,t.tp.registerParameter(this,["Shadows"],"_forceDisable",{label:"forceDisable"},(()=>{this.painter.style.map.triggerRepaint()})),t.tp.registerParameter(Cn,["Shadows"],"cascadeCount",{min:1,max:2,step:1}),t.tp.registerParameter(Cn,["Shadows"],"normalOffset",{min:0,max:10,step:.05}),t.tp.registerParameter(Cn,["Shadows"],"shadowMapResolution",{min:32,max:2048,step:32}),t.tp.registerBinding(this,["Shadows"],"_numCascadesToRender",{readonly:!0,label:"numCascadesToRender"})}destroy(){for(const e of this._cascades)e.texture.destroy(),e.framebuffer.destroy();this._cascades=[]}updateShadowParameters(t,n){const r=this.painter;if(this._enabled=!1,this._shadowLayerCount=0,this._receivers.clear(),!n||!n.properties)return;const i=n.properties.get("shadow-intensity");if(!n.shadowsEnabled()||i<=0)return;if(this._shadowLayerCount=r.style.order.reduce(((e,n)=>{const i=r.style._mergedLayers[n];return e+(i.hasShadowPass()&&!i.isHidden(t.zoom)?1:0)}),0),this._enabled=this._shadowLayerCount>0,!this.enabled)return;const o=r.context,a=Cn.shadowMapResolution,s=Cn.shadowMapResolution;if(0===this._cascades.length||Cn.shadowMapResolution!==this._cascades[0].texture.size[0]){this._cascades=[];for(let t=0;te.dem)).forEach((e=>{const t=e.dem.tree;n[0]=Math.min(n[0],t.minimums[0]),n[1]=Math.max(n[1],t.maximums[0])})),1e4!==n[0]&&(l=(n[1]-n[0])*e.exaggeration())}const c=1.5*t.cameraToCenterDistance,u=3*c,h=new Float64Array(16);for(let n=0;n=0)return{};const o=function(t,n,r){const i=r/(1<0&&(e.$.add(o[1],o[1],[i[0]*a,0,0]),e.$.add(o[2],o[2],[i[0]*a,0,0])),i[1]<0?(e.$.add(o[0],o[0],[0,i[1]*a,0]),e.$.add(o[1],o[1],[0,i[1]*a,0])):i[1]>0&&(e.$.add(o[2],o[2],[0,i[1]*a,0]),e.$.add(o[3],o[3],[0,i[1]*a,0]));const s={};return s.vertices=o,s.planes=[Tn(o[1],o[0],o[4]),Tn(o[2],o[1],o[5]),Tn(o[3],o[2],o[6]),Tn(o[0],o[3],o[7])],s}addShadowReceiver(t,n,r){this._receivers.add(t,e.b8.fromTileIdAndHeight(t,n,r))}getMaxCascadeForTile(e){const t=this._receivers.get(e);return t&&t.lastCascade?t.lastCascade:0}}function Tn(t,n,r){const i=e.$.sub([],r,n),o=e.$.sub([],t,n),a=e.$.cross([],i,o),s=e.$.length(a);return 0===s?[0,0,1,0]:(e.$.scale(a,a,1/s),[a[0],a[1],a[2],-e.$.dot(a,n)])}function In(t){const n=t.properties.get("direction"),r=e.ad(n.x,n.y,n.z);r[2]=e.au(r[2],0,75);const i=e.b9([r[0],r[1],r[2]]);return e.$.fromValues(i.x,i.y,i.z)}function On(t,n,r){const i=n.properties.get("color"),o=n.properties.get("intensity"),a=n.properties.get("direction"),s=[a.x,a.y,a.z],l=r.properties.get("color"),c=r.properties.get("intensity"),u=Math.max(e.$.dot([0,0,1],s),0),h=[0,0,0];e.$.scale(h,l.toRenderColor(t.getLut(n.scope)).toArray01Linear().slice(0,3),c);const d=[0,0,0];e.$.scale(d,i.toRenderColor(t.getLut(r.scope)).toArray01Linear().slice(0,3),u*o);const f=[h[0]>0?h[0]/(h[0]+d[0]):0,h[1]>0?h[1]/(h[1]+d[1]):0,h[2]>0?h[2]/(h[2]+d[2]):0];return e.ba(f)}function Rn(t,n,r,i,o,a){const s=t.zoom,l=t.scale,c=t.worldSize,u=1/c,h=t.aspect,d=Math.sqrt(1+h*h)*Math.tan(.5*t.fovX),f=d*d,p=i-r,m=i+r;let g,y;f>p/m?(g=i,y=i*d):(g=.5*m*(1+f),y=.5*Math.sqrt(p*p+2*(i*i+r*r)*f+m*m*f*f));const v=t.projection.pixelsPerMeter(t.center.lat,c),b=t._camera.getCameraToWorldMercator(),A=[0,0,-g*u];e.$.transformMat4(A,A,b);let x=y*u;const w=t._edgeInsets;if(!(0===w.left&&0===w.top&&0===w.right&&0===w.bottom||w.left===w.right&&w.top===w.bottom)){const n="meters"===t.projection.zAxisUnit?v:1,o=t._camera.getWorldToCamera(t.worldSize,n),a=t._camera.getCameraToClipPerspective(t._fov,t.width/t.height,r,i);a[8]=2*-t.centerOffset.x/t.width,a[9]=2*t.centerOffset.y/t.height;const u=new Float64Array(16);e.ae.mul(u,a,o);const h=new Float64Array(16);e.ae.invert(h,u);const d=e.aM.fromInvProjectionMatrix(h,c,s,!0);for(const n of d.points){const r=((C=n)[0]/=l,C[1]/=l,C[2]=e.ay(C[2],t._center.lat),C);x=Math.max(x,e.$.len(e.$.subtract([],A,r)))}}var C;x*=o/(o-1);const S=Math.acos(n[2]),E=Math.atan2(-n[0],-n[1]),k=new Gt;k.position=A,k.setPitchBearing(S,E);const T=k.getWorldToCamera(c,v),I=x*c,O=Math.min(t._mercatorZfromZoom(17)*c*-2,-2*I),R=(I+a*v)/n[2],M=k.getCameraToClipOrthographic(-I,I,-I,I,O,R),P=new Float64Array(16);e.ae.multiply(P,M,T);const D=e.$.fromValues(Math.floor(1e6*A[0])/1e6*c,Math.floor(1e6*A[1])/1e6*c,0),j=.5*o,B=[0,0,0];e.$.transformMat4(B,D,P),e.$.scale(B,B,j);const L=[Math.floor(B[0]),Math.floor(B[1]),Math.floor(B[2])],F=[0,0,0];e.$.sub(F,B,L),e.$.scale(F,F,-1/j);const N=new Float64Array(16);return e.ae.identity(N),e.ae.translate(N,N,F),e.ae.multiply(P,N,P),[P,I]}function Mn(e,t){return null!=e&&null!=t&&!(!e.hasData()||!t.hasData())&&null!=e.demTexture&&null!=t.demTexture&&e.tileID.key!==t.tileID.key}const Pn=new class{constructor(){this.operations={}}newMorphing(e,t,n,r,i){if(e in this.operations){const t=this.operations[e];t.to.tileID.key!==n.tileID.key&&(t.queued=n)}else this.operations[e]={startTime:r,phase:0,duration:i,from:t,to:n,queued:null}}getMorphValuesForProxy(e){if(!(e in this.operations))return null;const t=this.operations[e];return{from:t.from,to:t.to,phase:t.phase}}update(e){for(const t in this.operations){const n=this.operations[t];for(n.phase=(e-n.startTime)/n.duration;n.phase>=1||!this._validOp(n);)if(!this._nextOp(n,e)){delete this.operations[t];break}}}_nextOp(e,t){return!!e.queued&&(e.from=e.to,e.to=e.queued,e.queued=null,e.phase=0,e.startTime=t,!0)}_validOp(e){return e.from.hasData()&&e.to.hasData()}},Dn={0:null,1:"TERRAIN_VERTEX_MORPHING"};function jn(t,n,r,i,o){if("globe"===t.transform.projection.name)!function(t,n,r,i,o){const a=t.context,s=a.gl;let l,c;const u=t.transform,h=e.bc(t,a,u),d=(e,n)=>{if(c===n)return;const r=[Dn[n],"PROJECTION_GLOBE_VIEW"];h&&r.push("CUSTOM_ANTIALIASING");const i=t.isTileAffectedByFog(e);l=t.getOrCreateProgram("globeRaster",{defines:r,overrideFog:i}),c=n},f=t.colorModeForRenderPass(),p=new e.af(s.LEQUAL,e.af.ReadWrite,t.depthRangeFor3D);Pn.update(o);const m=e.bd(u),g=[e.ak(u.center.lng),e.al(u.center.lat)],y=t.globeSharedBuffers,v=[u.width*e.e.devicePixelRatio,u.height*e.e.devicePixelRatio],b=Float32Array.from(u.globeMatrix),A={useDenormalizedUpVectorScale:!0};{const u=t.transform,h=Bn(u.zoom,n.exaggeration(),n.sourceCache._source.tileSize);c=-1;const x=s.TRIANGLES;for(const c of i){const i=r.getTile(c),w=e.ah.disabled,C=n.prevTerrainTileForTile[c.key],S=n.terrainTileForTile[c.key];Mn(C,S)&&Pn.newMorphing(c.key,C,S,o,250),a.activeTexture.set(s.TEXTURE0),i.texture&&i.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE);const E=Pn.getMorphValuesForProxy(c.key),k=E?1:0;E&&e.q(A,{morphing:{srcDemTile:E.from,dstDemTile:E.to,phase:e.bb(E.phase)}});const T=e.be(c.canonical),I=e.bf(T.getCenter().lat),O=e.bg(c.canonical,T,I,u.worldSize/u._pixelsPerMercatorPixel),R=e.bh(e.bi(c.canonical)),M=_t(u.expandedFarZProjMatrix,b,m,R,e.a2(u.zoom),g,u.frustumCorners.TL,u.frustumCorners.TR,u.frustumCorners.BR,u.frustumCorners.BL,u.globeCenterInViewSpace,u.globeRadius,v,h,u._farZ,O);if(d(c,k),l&&(n.setupElevationDraw(i,l,A),t.uploadCommonUniforms(a,l,c.toUnwrapped()),y)){const[n,r,i]=y.getGridBuffers(I,0!==h);l.draw(t,x,p,w,f,e.ag.backCCW,M,"globe_raster",n,r,i)}}}if(y&&(t.renderDefaultNorthPole||t.renderDefaultSouthPole)){const o=["GLOBE_POLES","PROJECTION_GLOBE_VIEW"];h&&o.push("CUSTOM_ANTIALIASING"),l=t.getOrCreateProgram("globeRaster",{defines:o});for(const o of i){const{x:i,y:c,z:h}=o.canonical,d=0===c,m=c===(1<n.draw(t,s.TRIANGLES,p,e.ah.disabled,f,e.ag.disabled,_t(u.expandedFarZProjMatrix,y,y,S,0,g,u.frustumCorners.TL,u.frustumCorners.TR,u.frustumCorners.BR,u.frustumCorners.BL,u.globeCenterInViewSpace,u.globeRadius,v,0,u._farZ),"globe_pole_raster",r,w,C);n.setupElevationDraw(c,l,A),t.uploadCommonUniforms(a,l,o.toUnwrapped()),d&&t.renderDefaultNorthPole&&E(l,b),m&&t.renderDefaultSouthPole&&(y=e.ae.scale(e.ae.create(),y,[1,-1,1]),E(l,x))}}}}(t,n,r,i,o);else{const a=t.context,s=a.gl;let l,c;const u=t.shadowRenderer,h=wn(t,t.longestCutoffRange),d=e=>{if(c===e)return;const n=[];n.push(Dn[e]),h.shouldRenderCutoff&&n.push("RENDER_CUTOFF"),l=t.getOrCreateProgram("terrainRaster",{defines:n}),c=e},f=t.colorModeForRenderPass(),p=new e.af(s.LEQUAL,e.af.ReadWrite,t.depthRangeFor3D);Pn.update(o);const m=t.transform,g=Bn(m.zoom,n.exaggeration(),n.sourceCache._source.tileSize);let y=[0,0,0];if(u){const e=t.style.directionalLight,n=t.style.ambientLight;e&&n&&(y=On(t.style,e,n))}{c=-1;const v=s.TRIANGLES,[b,A]=[n.gridIndexBuffer,n.gridSegments];for(const c of i){const i=r.getTile(c),x=e.ah.disabled,w=n.prevTerrainTileForTile[c.key],C=n.terrainTileForTile[c.key];Mn(w,C)&&Pn.newMorphing(c.key,w,C,o,250),a.activeTexture.set(s.TEXTURE0),i.texture&&i.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE);const S=Pn.getMorphValuesForProxy(c.key),E=S?1:0;let k;S&&(k={morphing:{srcDemTile:S.from,dstDemTile:S.to,phase:e.bb(S.phase)}});const T=Nt(c.projMatrix,Ln(c.canonical,m.renderWorldCopies)?g/10:g,y);if(d(E),!l)continue;n.setupElevationDraw(i,l,k);const I=c.toUnwrapped();u&&u.setupShadows(I,l),t.uploadCommonUniforms(a,l,I,null,h),l.draw(t,v,p,x,f,e.ag.backCCW,T,"terrain_raster",n.gridBuffer,b,A)}}}}function Bn(e,t,n){if(0===t)return 0;const r=t<1&&514===n?.25/t:1;return 6*Math.pow(1.5,22-e)*Math.max(t,1)*r}function Ln(e,t){const n=1<({u_matrix:e});function Nn(t,n,r,i,o){if(o>0){const a=e.e.now(),s=(a-t.timeAdded)/o,l=n?(a-n.timeAdded)/o:-1,c=r.getSource(),u=i.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),h=!n||Math.abs(n.tileID.overscaledZ-u)>Math.abs(t.tileID.overscaledZ-u),d=h&&t.refreshedUponExpiration?1:e.au(h?s:1-l,0,1);return t.refreshedUponExpiration&&s>=1&&(t.refreshedUponExpiration=!1),n?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}class _n extends Lt{constructor(t,n,r,i){super(t,n,r,i),this.type="raster-array",this.maxzoom=22,this._options=e.Q({type:"raster-array"},n)}triggerRepaint(e){const t=this.map.painter._terrain,n=this.map.style.getSourceCache(this.id);t&&t.enabled&&n&&t._clearRenderCacheForTile(n.id,e.tileID),this.map.triggerRepaint()}loadTile(t,n){const r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize),i=this.map._requestManager.transformRequest(r,e.R.Tile);t.requestParams=i,t.actor||(t.actor=this.dispatcher.getActor()),t.request=t.fetchHeader(void 0,((e,r,i,o)=>{if(delete t.request,t.aborted)return t.state="unloaded",n(null);if(e){if(20===e.code)return;return t.state="errored",n(e)}this.map._refreshExpiredTiles&&t.setExpiryData({cacheControl:i,expires:o}),t.state="empty",n(null)}))}unloadTile(t,n){const r=t.texture;r&&r instanceof e.T?(t.destroy(!0),this.map.painter.saveTileTexture(r)):(t.destroy(),t.flushQueues(),t._isHeaderLoaded=!1,delete t._mrt,delete t.textureDescriptor),t.fbo&&(t.fbo.destroy(),delete t.fbo),delete t.request,delete t.requestParams,delete t.neighboringTiles,t.state="unloaded"}prepareTile(t,n,r){t._isHeaderLoaded&&("empty"!==t.state&&(t.state="reloading"),t.fetchBand(n,r,((n,r)=>{if(n)return t.state="errored",this.fire(new e.f(n)),void this.triggerRepaint(t);r&&(t.setTexture(r,this.map.painter),t.state="loaded",this.triggerRepaint(t))})))}getInitialBand(e){if(!this.rasterLayers)return 0;const t=this.rasterLayers.find((({id:t})=>t===e)),n=t&&t.fields,r=n&&n.bands&&n.bands;return r?r[0]:0}getTextureDescriptor(t,n,r){if(!t)return;const i=n.sourceLayer||this.rasterLayerIds&&this.rasterLayerIds[0];if(!i)return;let o=null;n instanceof e.bm?o=n.paint.get("raster-array-band"):n instanceof e.bn&&(o=n.paint.get("raster-particle-array-band"));const a=o||this.getInitialBand(i);if(null!=a)if(t.textureDescriptor){if(!t.updateNeeded(i,a)||r)return Object.assign({},t.textureDescriptor,{texture:t.texture})}else this.prepareTile(t,i,a)}}class zn extends e.bo{constructor(e,t,n,r){super(e,t,n,r),this.roundZoom=!0,this.type="video",this.options=t}load(){this._loaded=!1;const t=this.options;this.urls=[];for(const n of t.urls)this.urls.push(this.map._requestManager.transformRequest(n,e.R.Source).url);e.bp(this.urls,((t,n)=>{this._loaded=!0,t?this.fire(new e.f(t)):n&&(this.video=n,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",(()=>{this.map.triggerRepaint()})),this.map&&this.video.play(),this._finishLoading())}))}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){const n=this.video.seekable;tn.end(0)?this.fire(new e.f(new e.V(`sources.${this.id}`,null,`Playback for this video can be set only between the ${n.start(0)} and ${n.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const t=this.map.painter.context,n=t.gl;this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new e.T(t,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._prepareData(t)}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class Vn extends e.bo{constructor(t,n,r,i){super(t,n,r,i),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.coordinates.some((e=>!Array.isArray(e)||2!==e.length||e.some((e=>"number"!=typeof e))))||this.fire(new e.f(new e.V(`sources.${t}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.f(new e.V(`sources.${t}`,null,'missing required property "coordinates"'))),n.animate&&"boolean"!=typeof n.animate&&this.fire(new e.f(new e.V(`sources.${t}`,null,'optional "animate" property must be a boolean value'))),n.canvas?"string"==typeof n.canvas||n.canvas instanceof HTMLCanvasElement||this.fire(new e.f(new e.V(`sources.${t}`,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 e.f(new e.V(`sources.${t}`,null,'missing required property "canvas"'))),this.options=n,this.animate=void 0===n.animate||n.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.f(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(e){this.pause()}prepare(){let t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),this._hasInvalidDimensions())return;if(0===Object.keys(this.tiles).length)return;const n=this.map.painter.context;this.texture?!t&&!this._playing||this.texture instanceof e.bq||this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.T(n,this.canvas,n.gl.RGBA,{premultiply:!0}),this._prepareData(n)}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}}class Un extends e.E{constructor(t,n,r,i){super(),this.id=t,this.type="custom",this._dataType="raster",this._dispatcher=r,this._implementation=n,this.setEventedParent(i),this.scheme="xyz",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this._loaded=!1,this.roundZoom=!0,this._implementation||this.fire(new e.f(new Error(`Missing implementation for ${this.id} custom source`))),this._implementation.loadTile||this.fire(new e.f(new Error(`Missing loadTile implementation for ${this.id} custom source`))),this._implementation.bounds&&(this.tileBounds=new Bt(this._implementation.bounds,this.minzoom,this.maxzoom)),n.update=this._update.bind(this),n.clearTiles=this._clearTiles.bind(this),n.coveringTiles=this._coveringTiles.bind(this),e.Q(this,e.ai(n,["dataType","scheme","minzoom","maxzoom","tileSize","attribution","minTileCacheSize","maxTileCacheSize"]))}serialize(){return e.ai(this,["type","scheme","minzoom","maxzoom","tileSize","attribution"])}load(){this._loaded=!0,this.fire(new e.g("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.g("data",{dataType:"source",sourceDataType:"content"}))}loaded(){return this._loaded}onAdd(t){this.map=t,this._loaded=!1,this.fire(new e.g("dataloading",{dataType:"source"})),this._implementation.onAdd&&this._implementation.onAdd(t),this.load()}onRemove(e){this._implementation.onRemove&&this._implementation.onRemove(e)}hasTile(e){if(this._implementation.hasTile){const{x:t,y:n,z:r}=e.canonical;return this._implementation.hasTile({x:t,y:n,z:r})}return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(e,t){const{x:n,y:r,z:i}=e.tileID.canonical,o=new AbortController,a=o.signal;e.request=Promise.resolve(this._implementation.loadTile({x:n,y:r,z:i},{signal:a})).then(function(n){if(delete e.request,e.aborted)return e.state="unloaded",t(null);if(void 0===n)return e.state="errored",t(null);if(null===n){const n={width:this.tileSize,height:this.tileSize,data:null};return this.loadTileData(e,n),e.state="loaded",t(null)}if(!function(e){return e instanceof ImageData||e instanceof HTMLCanvasElement||e instanceof ImageBitmap||e instanceof HTMLImageElement}(n))return e.state="errored",t(new Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`));this.loadTileData(e,n),e.state="loaded",t(null)}.bind(this)).catch((n=>{20!==n.code&&(e.state="errored",t(n))})),e.request.cancel=()=>o.abort()}loadTileData(e,t){e.setTexture(t,this.map.painter)}unloadTile(t,n){if(t.texture&&t.texture instanceof e.T?(t.destroy(!0),t.texture&&t.texture instanceof e.T&&this.map.painter.saveTileTexture(t.texture)):t.destroy(),this._implementation.unloadTile){const{x:e,y:n,z:r}=t.tileID.canonical;this._implementation.unloadTile({x:e,y:n,z:r})}n&&n()}abortTile(e,t){e.request&&e.request.cancel&&(e.request.cancel(),delete e.request),t&&t()}hasTransition(){return!1}_coveringTiles(){return this.map.transform.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,roundZoom:this.roundZoom}).map((e=>({x:e.canonical.x,y:e.canonical.y,z:e.canonical.z})))}_clearTiles(){const t=e.am(this.id,this.scope);this.map.style.clearSource(t)}_update(){this.fire(new e.g("data",{dataType:"source",sourceDataType:"content"}))}}class Hn extends e.E{constructor(e,t,n,r){super(),this.id=e,this.type="model",this.models=[],this._loaded=!1,this._options=t}load(){const t=[];for(const n in this._options.models){const r=this._options.models[n],i=e.l(this.map._requestManager.transformRequest(r.uri,e.R.Model).url).then((t=>{if(!t)return;const i=e.c(t),o=new e.M(n,r.position,r.orientation,i);o.computeBoundsAndApplyParent(),this.models.push(o)})).catch((t=>{this.fire(new e.f(new Error(`Could not load model ${n} from ${r.uri}: ${t.message}`)))}));t.push(i)}return Promise.allSettled(t).then((()=>{this._loaded=!0,this.fire(new e.g("data",{dataType:"source",sourceDataType:"metadata"}))})).catch((t=>{this.fire(new e.f(new Error(`Could not load models: ${t.message}`)))}))}onAdd(e){this.map=e,this.load()}hasTransition(){return!1}loaded(){return this._loaded}getModels(){return this.models}loadTile(e,t){}serialize(){return{type:"model"}}}class qn extends e.E{constructor(e,t,n,r){super(),this.type="batched-model",this.id=e,this.tileSize=512,this._options=t,this.tiles=this._options.tiles,this.maxzoom=t.maxzoom||19,this.minzoom=t.minzoom||0,this.roundZoom=!0,this.usedInConflation=!0,this.dispatcher=n,this.reparseOverscaled=!1,this.scheme="xyz",this._loaded=!1,this.setEventedParent(r)}onAdd(e){this.map=e,this.load()}load(t){this._loaded=!1,this.fire(new e.g("dataloading",{dataType:"source"}));const n=Array.isArray(this.map._language)?this.map._language.join():this.map._language,r=this.map._worldview;this._tileJSONRequest=jt(this._options,this.map._requestManager,n,r,((i,o)=>{this._tileJSONRequest=null,this._loaded=!0,i?(n&&console.warn(`Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ${n}`),r&&2!==r.length&&console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${r}`),this.fire(new e.f(i))):o&&(e.Q(this,o),o.bounds&&(this.tileBounds=new Bt(o.bounds,this.minzoom,this.maxzoom)),e.ao(o.tiles,this.map._requestManager._customAccessToken),this.fire(new e.g("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.g("data",{dataType:"source",sourceDataType:"content"}))),t&&t(i)}))}hasTransition(){return!1}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loaded(){return this._loaded}loadTile(t,n){const r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(r,e.R.Tile),data:void 0,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,scope:this.scope,showCollisionBoxes:this.map.showCollisionBoxes,isSymbolTile:t.isSymbolTile,brightness:this.map.style&&this.map.style.getBrightness()||0};if(t.actor&&"expired"!==t.state)if("loading"===t.state)t.reloadCallback=n;else{if(t.buckets){const e=Object.values(t.buckets);for(const t of e)t.dirty=!0;return void(t.state="loaded")}t.request=t.actor.send("reloadTile",i,o.bind(this))}else t.actor=this.dispatcher.getActor(),t.request=t.actor.send("loadTile",i,o.bind(this),void 0,!0);function o(e,r){return t.aborted?n(null):e&&404!==e.status?n(e):(r&&(r.resourceTiming&&(t.resourceTiming=r.resourceTiming),this.map._refreshExpiredTiles&&t.setExpiryData(r),t.buckets={...t.buckets,...r.buckets},r.featureIndex&&(t.latestFeatureIndex=r.featureIndex)),t.state="loaded",void n(null))}}serialize(){return e.Q({},this._options)}}const Gn={vector:Ft,raster:Lt,"raster-dem":class extends Lt{constructor(t,n,r,i){super(t,n,r,i),this.type="raster-dem",this.maxzoom=22,this._options=e.Q({type:"raster-dem"},n),this.encoding=n.encoding||"mapbox"}loadTile(t,n){const r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function i(e,r){e&&(t.state="errored",n(e)),r&&(t.dem=r,t.dem.onDeserialize(),t.needsHillshadePrepare=!0,t.needsDEMTextureUpload=!0,t.state="loaded",n(null))}t.request=e.i(this.map._requestManager.transformRequest(r,e.R.Tile),function(r,o,a,s){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(r)t.state="errored",n(r);else if(o){this.map._refreshExpiredTiles&&t.setExpiryData({cacheControl:a,expires:s});const n=ImageBitmap&&o instanceof ImageBitmap&&e.bk(),r=1-(o.width-e.bl(o.width))/2;r<1||t.neighboringTiles||(t.neighboringTiles=this._getNeighboringTiles(t.tileID));const l=n?o:e.e.getImageData(o,r),c={uid:t.uid,coord:t.tileID,source:this.id,scope:this.scope,rawImageData:l,encoding:this.encoding,padding:r};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",c,i.bind(this),void 0,!0))}}.bind(this))}_getNeighboringTiles(t){const n=t.canonical,r=Math.pow(2,n.z),i=(n.x-1+r)%r,o=0===n.x?t.wrap-1:t.wrap,a=(n.x+1+r)%r,s=n.x+1===r?t.wrap+1:t.wrap,l={};return l[new e.aQ(t.overscaledZ,o,n.z,i,n.y).key]={backfilled:!1},l[new e.aQ(t.overscaledZ,s,n.z,a,n.y).key]={backfilled:!1},n.y>0&&(l[new e.aQ(t.overscaledZ,o,n.z,i,n.y-1).key]={backfilled:!1},l[new e.aQ(t.overscaledZ,t.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},l[new e.aQ(t.overscaledZ,s,n.z,a,n.y-1).key]={backfilled:!1}),n.y+1{if(n[r.key]="",!this._tiles[r.key]){const n=new e.bA(r,this._source.tileSize*r.overscaleFactor(),t.tileZoom);n.state="loaded",this._tiles[r.key]=n}return n}),{});for(const e in this._tiles)e in i||(this.freeFBO(e),this._tiles[e].unloadVectorData(),delete this._tiles[e])}freeFBO(e){const t=this.proxyCachedFBO[e];if(void 0!==t){const n=Object.values(t);this.renderCachePool.push(...n),delete this.proxyCachedFBO[e]}}deallocRenderCache(){this.renderCache.forEach((e=>e.fb.destroy())),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class Xn extends e.aQ{constructor(e,t,n){super(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y),this.proxyTileKey=t,this.projMatrix=n}}class Jn extends e.bs{constructor(t,n){super(),this._debugParams={sortTilesHiZFirst:!0,disableRenderCache:!1},t.tp.registerParameter(this._debugParams,["Terrain"],"sortTilesHiZFirst",{},(()=>{this._style.map.triggerRepaint()})),t.tp.registerParameter(this._debugParams,["Terrain"],"disableRenderCache",{},(()=>{this._style.map.triggerRepaint()})),t.tp.registerButton(["Terrain"],"Invalidate Render Cache",(()=>{this.invalidateRenderCache=!0,this._style.map.triggerRepaint()})),this.painter=t,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[r,i,o]=function(t){const n=new e.bv,r=new e.bw,i=t+2;n.reserve(i*i),r.reserve((i-1)*(i-1)*2);const o=e.a4/(t-1),a=e.a4+o/2,s=a+o,l=24575;for(let t=-o;ta||t<0||t>a?l:0,o=e.au(Math.round(r),0,e.a4),s=e.au(Math.round(t),0,e.a4);n.emplaceBack(o+i,s)}const c=(i-3)*(i-3)*2,u=(e,t)=>{const n=t*i+e;r.emplaceBack(n+1,n,n+i),r.emplaceBack(n+i,n+i+1,n+1)};for(let e=1;e{for(let t=0;t{this._clearLineLayersFromRenderCache()}))}update(t,n,r){if(t&&t.terrain&&t.terrain.properties){this._style!==t&&(this.style=t,this._evaluationZoom=void 0);const i=t.terrain.properties,o=t.terrain.drapeRenderMode===Xe,a=t.terrain.isZoomDependent();this._previousUpdateTimestamp=this.enabled?this._updateTimestamp:void 0,this._updateTimestamp=e.e.now();const s=t.terrain&&t.terrain.scope,l=i.get("source"),c=o?this._mockSourceCache:t.getSourceCache(l,s);if(!c)return void e.w(`Couldn't find terrain source "${l}".`);if(this.sourceCache=c,this._exaggeration=a?this.calculateExaggeration(n):i.get("exaggeration"),!n.projection.requiresDraping&&a&&0===this._exaggeration)return void this._disable();this.enabled=!0;const u=()=>{this.sourceCache.used&&e.w(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source.\nThis leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);const t=this.getScaledDemTileSize();this.sourceCache.update(n,t,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,u(),this._initializing=!0),u(),n.updateElevation(!0,r),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(n),this._emptyDEMTextureDirty=!0,this._previousZoom=n.zoom}else this._disable()}calculateExaggeration(t){const n=this._previousCameraAltitude,r=t.getFreeCameraOptions().position.z/t.pixelsPerMeter*t.worldSize;this._previousCameraAltitude=r;const i=null!=n?r-n:Number.MAX_VALUE;if(Math.abs(i)<2)return this._exaggeration;const o=t.zoom,a=this._style.terrain;if(!this._previousUpdateTimestamp)return a.getExaggeration(o);let s=o-this._previousZoom;const l=this._previousUpdateTimestamp;let c=o;null!=this._evaluationZoom&&(c=this._evaluationZoom,Math.abs(o-c)>.5&&(s=.5*(o-c+s)),s*i<0&&(c+=s)),this._evaluationZoom=c;const u=a.getExaggeration(c),h=u===a.getExaggeration(Math.max(0,c-.1));if(h&&Math.abs(u-this._exaggeration)<.01)return u;let d=Math.min(.1,.00375*(this._updateTimestamp-l));return(h||u<.1||Math.abs(s)<1e-4)&&(d=Math.min(.2,4*d)),e.a3(this._exaggeration,u,d)}resetTileLookupCache(e){this._findCoveringTileCache[e]={}}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_onStyleDataEvent(e){e.coord&&"source"===e.dataType?this._clearRenderCacheForTile(e.sourceCacheId,e.coord):"style"===e.dataType&&(this.invalidateRenderCache=!0,this._evaluationZoom=void 0,this._previousUpdateTimestamp=void 0,this._previousCameraAltitude=void 0)}_disable(){if(this.enabled&&(this.enabled=!1,this._emptyDEMTextureDirty=!0,this._sharedDepthStencil=void 0,this._evaluationZoom=void 0,this._previousUpdateTimestamp=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const e in this._style._mergedSourceCaches)this._style._mergedSourceCaches[e].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this.pool.forEach((e=>e.fb.destroy())),this.pool=[],this.framebufferCopyTexture&&this.framebufferCopyTexture.destroy()}_source(){return this.enabled?this.sourceCache:null}isUsingMockSource(){return this.sourceCache===this._mockSourceCache}exaggeration(){return this.enabled?this._exaggeration:0}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const e=2*this.proxySourceCache.getSource().tileSize;return[e,e]}set useVertexMorphing(e){this._useVertexMorphing=e}updateTileBinding(t){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const n=this.proxySourceCache,r=this.painter.transform;this._initializing&&(this._initializing=0===r._centerAltitude&&-1===this.getAtPointOrZero(e._.fromLngLat(r.center),-1),this._emptyDEMTextureDirty=!this._initializing);const i=this.proxyCoords=n.getIds().map((e=>{const t=n.getTileByID(e).tileID;return t.projMatrix=r.calculateProjMatrix(t.toUnwrapped()),t}));!function(t,n){const r=n.transform.pointCoordinate(n.transform.getCameraPoint()),i=new e.P(r.x,r.y);t.sort(((t,n)=>{if(n.overscaledZ-t.overscaledZ)return n.overscaledZ-t.overscaledZ;const r=new e.P(t.canonical.x+(1<{this.proxyToSource[e.key]={}})),this.terrainTileForTile={};const a=this._style._mergedSourceCaches;for(const e in a){const n=a[e];if(!n.used)continue;if(n!==this.sourceCache&&this.resetTileLookupCache(n.id),this._setupProxiedCoordsForOrtho(n,t[e],o),n.usedForTerrain)continue;const r=t[e];n.getSource().reparseOverscaled&&this._assignTerrainTiles(r)}this.proxiedCoords[n.id]=i.map((e=>new Xn(e,e.key,this.orthoMatrix))),this._assignTerrainTiles(i),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(o),this.renderingToTexture=!1;const s={};this._visibleDemTiles=[];for(const e of this.proxyCoords){const t=this.terrainTileForTile[e.key];if(!t)continue;const n=t.tileID.key;n in s||(this._visibleDemTiles.push(t),s[n]=n)}}_assignTerrainTiles(e){this._initializing||e.forEach((e=>{if(this.terrainTileForTile[e.key])return;const t=this._findTileCoveringTileID(e,this.sourceCache);t&&(this.terrainTileForTile[e.key]=t)}))}_prepareDEMTextures(){const e=this.painter.context,t=e.gl;for(const n in this.terrainTileForTile){const r=this.terrainTileForTile[n],i=r.dem;!i||r.demTexture&&!r.needsDEMTextureUpload||(e.activeTexture.set(t.TEXTURE1),Mt(this.painter,r,i))}}_prepareDemTileUniforms(e,t,n,r){if(!t||null==t.demTexture)return!1;const i=e.tileID.canonical,o=t.tileID.canonical,a=Math.pow(2,o.z-i.z),s=r||"";return n[`u_dem_tl${s}`]=[i.x*a%1,i.y*a%1],n[`u_dem_scale${s}`]=a,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}_getLoadedAreaMinimum(){if(!this.enabled)return 0;let e=0;const t=this._visibleDemTiles.reduce(((t,n)=>{if(!n.dem)return t;const r=n.dem.tree.minimums[0];return r>0&&e++,t+r}),0);return e?t/e:0}_updateEmptyDEMTexture(){const t=this.painter.context,n=t.gl;t.activeTexture.set(n.TEXTURE2);const r=this._getLoadedAreaMinimum(),[i,o]=(()=>{const t=new e.bB({width:1,height:1},new Float32Array([r]));return[n.R32F,t]})();this._emptyDEMTextureDirty=!1;let a=this._emptyDEMTexture;return a?a.update(o,{premultiply:!1}):a=this._emptyDEMTexture=new e.T(t,o,i,{premultiply:!1}),a}setupElevationDraw(t,n,r){const i=this.painter.context,o=i.gl,a={u_dem:2,u_dem_prev:4,u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_depth_range_unpack:[0,1],u_occluder_half_size:16,u_occlusion_depth_offset:-1e-4,u_exaggeration:0};a.u_exaggeration=this.exaggeration();let s=null,l=null,c=1;if(r&&r.morphing&&this._useVertexMorphing){const e=r.morphing.srcDemTile,n=r.morphing.dstDemTile;c=r.morphing.phase,e&&n&&(this._prepareDemTileUniforms(t,e,a,"_prev")&&(l=e),this._prepareDemTileUniforms(t,n,a)&&(s=n))}const u=e=>e&&e.demTexture&&this.painter.linearFloatFilteringSupported()?o.LINEAR:o.NEAREST;let h=null;if(this.enabled?l&&s?(h=s.demTexture,i.activeTexture.set(o.TEXTURE4),l.demTexture.bind(u(l),o.CLAMP_TO_EDGE),a.u_dem_lerp=c):(s=this.terrainTileForTile[t.tileID.key],h=this._prepareDemTileUniforms(t,s,a)?s.demTexture:this.emptyDEMTexture):h=this.emptyDEMTexture,i.activeTexture.set(o.TEXTURE2),h&&(d=h,a.u_dem_size=1===d.size[0]?1:d.size[0]-2,h.bind(u(s),o.CLAMP_TO_EDGE)),this.painter.setupDepthForOcclusion(r&&r.useDepthForOcclusion,n,a),r&&r.useMeterToDem&&s){const t=(1<n}getMinElevationBelowMSL(){let e=0;return this._visibleDemTiles.filter((e=>e.dem)).forEach((t=>{const n=t.dem.tree;e=Math.min(e,n.minimums[0])})),0===e?e:(e-30)*this._exaggeration}raycast(e,t,n){if(!this._visibleDemTiles)return null;const r=this._visibleDemTiles.filter((e=>e.dem)).map((r=>{const i=r.tileID,o=1<(null!==e.t?e.t:Number.MAX_VALUE)-(null!==t.t?t.t:Number.MAX_VALUE)));for(const i of r){if(null==i.t)return null;const r=i.tile.dem.tree.raycast(i.minx,i.miny,i.maxx,i.maxy,e,t,n);if(null!=r)return r}return null}_createFBO(){const t=this.painter.context,n=t.gl,r=this.drapeBufferSize;t.activeTexture.set(n.TEXTURE0);const i=new e.T(t,{width:r[0],height:r[1],data:null},n.RGBA);i.bind(n.LINEAR,n.CLAMP_TO_EDGE);const o=t.createFramebuffer(r[0],r[1],!0,null);return o.colorAttachment.set(i.texture),o.depthAttachment=new ne(t,o.framebuffer),void 0===this._sharedDepthStencil?(this._sharedDepthStencil=t.createRenderbuffer(t.gl.DEPTH_STENCIL,r[0],r[1]),this._stencilRef=0,o.depthAttachment.set(this._sharedDepthStencil),t.clear({stencil:0})):o.depthAttachment.set(this._sharedDepthStencil),t.extTextureFilterAnisotropic&&n.texParameterf(n.TEXTURE_2D,t.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,t.extTextureFilterAnisotropicMax),{fb:o,tex:i,dirty:!1}}_initFBOPool(){for(;this.pool.length{const t=this._style._mergedLayers[e],n=t.isHidden(this.painter.transform.zoom);return"custom"===t.type?!n&&t.shouldRedrape():!n&&t.hasTransition()}))}_clearLineLayersFromRenderCache(){let t=!1;for(const e of this._style.getSources())if(e instanceof Ft){t=!0;break}if(!t)return;const n={};for(let t=0;te>t.end))||e.w("fill-extrusion with flood lighting and/or ground ambient occlusion should be moved to be on top of all draped layers.")}this._drapedRenderBatches=r}_setupRenderCache(e){const t=this.proxySourceCache;if(this._shouldDisableRenderCache()||this.invalidateRenderCache){if(this.invalidateRenderCache=!1,t.renderCache.length>t.renderCachePool.length){const e=Object.values(t.proxyCachedFBO);t.proxyCachedFBO={};for(let n=0;n=0;i--){const o=n[i];if(t.getTileByID(o.key),void 0!==t.proxyCachedFBO[o.key]){const n=e[o.key],i=this.proxyToSource[o.key];let a=0;for(const e in i){const t=i[e],o=n[e];if(!o||o.length!==t.length||t.some(((t,n)=>t!==o[n]||r[e]&&r[e].hasOwnProperty(t.key)))){a=-1;break}++a}for(const e in t.proxyCachedFBO[o.key])t.renderCache[t.proxyCachedFBO[o.key][e]].dirty=a<0||a!==Object.values(n).length}}const i=[...this._drapedRenderBatches];i.sort(((e,t)=>{const n=e.end-e.start;return t.end-t.start-n}));for(const e of i)for(const r of n){if(t.proxyCachedFBO[r.key])continue;let n=t.renderCachePool.pop();void 0===n&&t.renderCache.length<50&&(n=t.renderCache.length,t.renderCache.push(this._createFBO())),void 0!==n&&(t.proxyCachedFBO[r.key]={},t.proxyCachedFBO[r.key][e.start]=n,t.renderCache[n].dirty=!0)}this._tilesDirty={}}_setupStencil(e,t,n,r){if(!r||!this._sourceTilesOverlap[r.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const i=this.painter.context,o=i.gl;if(t.length<=1)return void(this._overlapStencilType=!1);let a;if(n.isTileClipped())a=t.length,this._overlapStencilMode.test={func:o.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(t[0].overscaledZ>t[t.length-1].overscaledZ))return void(this._overlapStencilType=!1);a=1,this._overlapStencilMode.test={func:o.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+a>255&&(i.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=a,this._overlapStencilMode.ref=this._stencilRef,n.isTileClipped()&&this._renderTileClippingMasks(t,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return"Clip"===this._overlapStencilType||"Mask"===this._overlapStencilType}stencilModeForRTTOverlap(t){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[t.key]),this._overlapStencilMode):e.ah.disabled}_renderTileClippingMasks(t,n){const r=this.painter,i=this.painter.context,o=i.gl;r._tileClippingMaskIDs={},i.setColorMode(e.a.disabled),i.setDepthMode(e.af.disabled);const a=r.getOrCreateProgram("clippingMask");for(const i of t){const t=r._tileClippingMaskIDs[i.key]=--n;a.draw(r,o.TRIANGLES,e.af.disabled,new e.ah({func:o.ALWAYS,mask:0},t,255,o.KEEP,o.KEEP,o.REPLACE),e.a.disabled,e.ag.disabled,Fn(i.projMatrix),"$clipping",r.tileExtentBuffer,r.quadTriangleIndexBuffer,r.tileExtentSegments)}}pointCoordinate(t){const n=this.painter.transform;if(t.x<0||t.x>n.width||t.y<0||t.y>n.height)return null;const r=[t.x,t.y,1,1];e.aB.transformMat4(r,r,n.pixelMatrixInverse),e.aB.scale(r,r,1/r[3]),r[0]/=n.worldSize,r[1]/=n.worldSize;const i=n._camera.position,o=e.ay(1,n.center.lat),a=[i[0],i[1],i[2]/o,0],s=e.$.subtract([],r.slice(0,3),a);e.$.normalize(s,s);const l=this._exaggeration,c=this.raycast(a,s,l);return null!==c&&c?(e.$.scaleAndAdd(a,a,s,c),a[3]=a[2],a[2]*=o,a):null}_setupProxiedCoordsForOrtho(t,n,r){if(t.getSource()instanceof e.bo)return this._setupProxiedCoordsForImageSource(t,n,r);this._findCoveringTileCache[t.id]=this._findCoveringTileCache[t.id]||{};const i=this.proxiedCoords[t.id]=[],o=this.proxyCoords;for(let e=0;et.overscaledZ-e.overscaledZ))}_setupProxiedCoordsForImageSource(t,n,r){if(!t.getSource().loaded())return;const i=this.proxiedCoords[t.id]=[],o=this.proxyCoords,a=t.getSource(),s=a.tileID;if(!s)return;const l=new e.P(s.x,s.y)._div(1<(e.min.x=Math.min(e.min.x,t.x-l.x),e.min.y=Math.min(e.min.y,t.y-l.y),e.max.x=Math.max(e.max.x,t.x-l.x),e.max.y=Math.max(e.max.y,t.y-l.y),e)),{min:new e.P(Number.MAX_VALUE,Number.MAX_VALUE),max:new e.P(-Number.MAX_VALUE,-Number.MAX_VALUE)}),u=(t,n)=>{const r=t.wrap+t.canonical.x/(1<a+c.max.x||i+os+c.max.y};for(let e=0;ee.key===n.tileID.key));if(e)return e}if(n.tileID.key!==t.key){const r=t.canonical.z-n.tileID.canonical.z;let o,a,s;i=e.ae.create();const l=n.tileID.wrap-t.wrap<0?(o=e.a4>>r,a=o*((n.tileID.canonical.x<=i){const r=t.canonical.z-i;n.getSource().reparseOverscaled?(s=Math.max(t.canonical.z+2,n.transform.tileZoom),a=new e.aQ(s,t.wrap,i,t.canonical.x>>r,t.canonical.y>>r)):0!==r&&(s=i,a=new e.aQ(s,t.wrap,i,t.canonical.x>>r,t.canonical.y>>r))}a.key!==t.key&&(c.push(a.key),r=n.getTile(a))}const u=e=>{c.forEach((t=>{i[t]=e})),c.length=0};for(s-=1;s>=l&&(!r||!r.hasData());s--){r&&u(r.tileID.key);const e=a.calculateScaledKey(s);if(r=n.getTileByID(e),r&&r.hasData())break;const t=i[e];if(null===t)break;void 0===t?c.push(e):r=n.getTileByID(t)}return u(r?r.tileID.key:null),r&&r.hasData()?r:null}findDEMTileFor(e){return this.enabled?this._findTileCoveringTileID(e,this.sourceCache):null}prepareDrawTile(){this.renderedToTile=!0}_clearRenderCacheForTile(e,t){let n=this._tilesDirty[e];n||(n=this._tilesDirty[e]={}),n[t.key]=!0}}function Zn(t,n,r){const i=function(t,n,r){const i=e.$.dot(n,t),o=e.$.dot(r,[.2126,.7152,.0722]),a=(e,t,n)=>(1-n)*e+n*t,s=a(1-.3*Math.min(o,1),1,Math.min(i+1,1));return a(.92,1,Math.asin(e.au(n[2],-1,1))/Math.PI+.5)*s}(t,[0,0,1],n),o=[0,0,0];e.$.scale(o,r.slice(0,3),i);const a=[0,0,0];e.$.scale(a,n.slice(0,3),t[2]);const s=[0,0,0];return e.$.add(s,o,a),e.ba(s)}const Kn=["fill","fillOutline","fillPattern","line","linePattern","background","backgroundPattern","hillshade","raster"],$n=["stars","fillExtrusion","fillExtrusionGroundEffect","model","symbolSDF","symbolIcon","symbolTextAndIcon"];class er{static cacheKey(e,t,n,r){let i=`${t}${r?r.cacheKey:""}`;for(const t of n)e.usedDefines.includes(t)&&(i+=`/${t}`);return i}constructor(t,n,r,i,o,a){const s=t.gl;this.program=s.createProgram(),this.configuration=i,this.name=n,this.fixedDefines=[...a];const l=i?i.getBinderAttributes():[],c=(r.staticAttributes||[]).concat(l);let u=i?i.defines():[];u=u.concat(a.map((e=>`#define ${e}`)));const h="#version 300 es\n";let d=h+u.concat("precision mediump float;",St,Ct.fragmentSource).join("\n");for(const e of r.fragmentIncludes)d+=`\n${xt[e]}`;d+=`\n${r.fragmentSource}`;let f=h+u.concat("precision highp float;",St,Ct.vertexSource).join("\n");for(const e of r.vertexIncludes)f+=`\n${xt[e]}`;f+=`\n${r.vertexSource}`;const p=s.createShader(s.FRAGMENT_SHADER);if(s.isContextLost())return void(this.failedToCreate=!0);s.shaderSource(p,d),s.compileShader(p),s.attachShader(this.program,p);const m=s.createShader(s.VERTEX_SHADER);if(s.isContextLost())this.failedToCreate=!0;else{s.shaderSource(m,f),s.compileShader(m),s.attachShader(this.program,m),this.attributes={},this.numAttributes=c.length;for(let e=0;e({u_dem:new e.a8(t),u_dem_prev:new e.a8(t),u_dem_tl:new e.a9(t),u_dem_scale:new e.ab(t),u_dem_tl_prev:new e.a9(t),u_dem_scale_prev:new e.ab(t),u_dem_size:new e.ab(t),u_dem_lerp:new e.ab(t),u_exaggeration:new e.ab(t),u_depth:new e.a8(t),u_depth_size_inv:new e.a9(t),u_depth_range_unpack:new e.a9(t),u_occluder_half_size:new e.ab(t),u_occlusion_depth_offset:new e.ab(t),u_meter_to_dem:new e.ab(t),u_label_plane_matrix_inv:new e.a7(t)}))(t)),a.includes("GLOBE")&&(this.globeUniforms=(t=>({u_tile_tl_up:new e.ar(t),u_tile_tr_up:new e.ar(t),u_tile_br_up:new e.ar(t),u_tile_bl_up:new e.ar(t),u_tile_up_scale:new e.ab(t)}))(t)),a.includes("FOG")&&(this.fogUniforms=(t=>({u_fog_matrix:new e.a7(t),u_fog_range:new e.a9(t),u_fog_color:new e.at(t),u_fog_horizon_blend:new e.ab(t),u_fog_vertical_limit:new e.a9(t),u_fog_temporal_offset:new e.ab(t),u_frustum_tl:new e.ar(t),u_frustum_tr:new e.ar(t),u_frustum_br:new e.ar(t),u_frustum_bl:new e.ar(t),u_globe_pos:new e.ar(t),u_globe_radius:new e.ab(t),u_globe_transition:new e.ab(t),u_is_globe:new e.a8(t),u_viewport:new e.a9(t)}))(t)),a.includes("RENDER_CUTOFF")&&(this.cutoffUniforms=(t=>({u_cutoff_params:new e.at(t)}))(t)),a.includes("LIGHTING_3D_MODE")&&(this.lightsUniforms=(t=>({u_lighting_ambient_color:new e.ar(t),u_lighting_directional_dir:new e.ar(t),u_lighting_directional_color:new e.ar(t),u_ground_radiance:new e.ar(t)}))(t)),a.includes("RENDER_SHADOWS")&&(this.shadowUniforms=(t=>({u_light_matrix_0:new e.a7(t),u_light_matrix_1:new e.a7(t),u_fade_range:new e.a9(t),u_shadow_normal_offset:new e.ar(t),u_shadow_intensity:new e.ab(t),u_shadow_texel_size:new e.ab(t),u_shadow_map_resolution:new e.ab(t),u_shadow_direction:new e.ar(t),u_shadow_bias:new e.ar(t),u_shadowmap_0:new e.a8(t),u_shadowmap_1:new e.a8(t)}))(t))}}setTerrainUniformValues(e,t){if(!this.terrainUniforms)return;const n=this.terrainUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)n[e]&&n[e].set(this.program,e,t[e])}}setGlobeUniformValues(e,t){if(!this.globeUniforms)return;const n=this.globeUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)n[e]&&n[e].set(this.program,e,t[e])}}setFogUniformValues(e,t){if(!this.fogUniforms)return;const n=this.fogUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)n[e].set(this.program,e,t[e])}}setCutoffUniformValues(e,t){if(!this.cutoffUniforms)return;const n=this.cutoffUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)n[e].set(this.program,e,t[e])}}setLightsUniformValues(e,t){if(!this.lightsUniforms)return;const n=this.lightsUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)n[e].set(this.program,e,t[e])}}setShadowUniformValues(e,t){if(this.failedToCreate||!this.shadowUniforms)return;const n=this.shadowUniforms;e.program.set(this.program);for(const e in t)n[e].set(this.program,e,t[e])}_drawDebugWireframe(t,n,r,i,o,a,s,l,c,u){const h=t.options.wireframe;if(!1===h.terrain&&!1===h.layers2D&&!1===h.layers3D)return;const d=t.context;if(!(()=>{if(h.terrain&&("terrainRaster"===this.name||"globeRaster"===this.name))return!0;const e=t._terrain&&t._terrain.renderingToTexture;return!(!h.layers2D||e||!Kn.includes(this.name))||!(!h.layers3D||!$n.includes(this.name))})())return;const f=d.gl,p=t.wireframeDebugCache.getLinesFromTrianglesBuffer(t.frameCounter,o,d);if(!p)return;const m=[...this.fixedDefines];m.push("DEBUG_WIREFRAME");const g=t.getOrCreateProgram(this.name,{config:this.configuration,defines:m});d.program.set(g.program);const y=(e,t,n)=>{if(t[e]&&n[e])for(const r in t[e])n[e][r]&&n[e][r].set(n.program,r,t[e][r].current)};c&&c.setUniforms(g.program,d,g.binderUniforms,s,{zoom:l}),y("fixedUniforms",this,g),y("terrainUniforms",this,g),y("globeUniforms",this,g),y("fogUniforms",this,g),y("lightsUniforms",this,g),y("shadowUniforms",this,g),p.bind(),d.setColorMode(new e.a([f.ONE,f.ONE_MINUS_SRC_ALPHA,f.ZERO,f.ONE],e.C.transparent,[!0,!0,!0,!1])),d.setDepthMode(new e.af(n.func===f.LESS?f.LEQUAL:n.func,e.af.ReadOnly,n.range)),d.setStencilMode(e.ah.disabled);const v=3*a.primitiveLength*2,b=3*a.primitiveOffset*2*2;u&&u>1?f.drawElementsInstanced(f.LINES,v,f.UNSIGNED_SHORT,b,u):f.drawElements(f.LINES,v,f.UNSIGNED_SHORT,b),o.bind(),d.program.set(this.program),d.setDepthMode(n),d.setStencilMode(r),d.setColorMode(i)}draw(e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m){const g=e.context,y=g.gl;if(this.failedToCreate)return;g.program.set(this.program),g.setDepthMode(n),g.setStencilMode(r),g.setColorMode(i),g.setCullFace(o);for(const e of Object.keys(this.fixedUniforms))this.fixedUniforms[e].set(this.program,e,a[e]);f&&f.setUniforms(this.program,g,this.binderUniforms,h,{zoom:d});const v={[y.POINTS]:1,[y.LINES]:2,[y.TRIANGLES]:3,[y.LINE_STRIP]:1}[t],b=m&&m>0?1:void 0;for(const o of u.get()){const a=o.vaos||(o.vaos={});(a[s]||(a[s]=new It)).bind(g,this,l,f?f.getPaintVertexBuffers():[],c,o.vertexOffset,p||[],b),m&&m>1?y.drawElementsInstanced(t,o.primitiveLength*v,y.UNSIGNED_SHORT,o.primitiveOffset*v*2,m):c?y.drawElements(t,o.primitiveLength*v,y.UNSIGNED_SHORT,o.primitiveOffset*v*2):y.drawArrays(t,o.vertexOffset,o.vertexLength),t===y.TRIANGLES&&c&&this._drawDebugWireframe(e,n,r,i,c,o,h,d,f,m)}}}function tr(t,n){const r=Math.pow(2,n.tileID.overscaledZ),i=n.tileSize*Math.pow(2,t.transform.tileZoom)/r,o=i*(n.tileID.canonical.x+n.tileID.wrap*r),a=i*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture?n.imageAtlasTexture.size:[0,0],u_tile_units_to_pixels:1/e.bD(n,1,t.transform.tileZoom),u_pixel_coord_upper:[o>>16,a>>16],u_pixel_coord_lower:[65535&o,65535&a]}}const nr=e.ae.create(),rr=(t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,y,v)=>{const b=n.style.light,A=b.properties.get("position"),x=[A.x,A.y,A.z],w=e.bE.create();"viewport"===b.properties.get("anchor")&&(e.bE.fromRotation(w,-n.transform.angle),e.$.transformMat3(x,x,w));const C=b.properties.get("color"),S=n.transform,E={u_matrix:t,u_lightpos:x,u_lightintensity:b.properties.get("intensity"),u_lightcolor:[C.r,C.g,C.b],u_vertical_gradient:+r,u_opacity:i,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:nr,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0,u_ao:o,u_edge_radius:a,u_alignment:s,u_width_scale:l,u_flood_light_color:p,u_vertical_scale:m,u_flood_light_intensity:g,u_ground_shadow_factor:y,u_emissive_strength:v};return"globe"===S.projection.name&&(E.u_tile_id=[c.canonical.x,c.canonical.y,1<({u_matrix:e,u_edge_radius:t,u_alignment:n,u_width_scale:r,u_vertical_scale:i}),or=(t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g)=>{const y=rr(t,n,r,i,o,a,s,l,c,h,d,f,p,m,g,1,[0,0,0],0),v={u_height_factor:-Math.pow(2,c.overscaledZ)/u.tileSize/8};return e.Q(y,tr(n,u),v)},ar=(e,t)=>({u_matrix:e,u_emissive_strength:t}),sr=(t,n,r,i)=>e.Q(ar(t,n),tr(r,i)),lr=(e,t,n)=>({u_matrix:e,u_world:n,u_emissive_strength:t}),cr=(t,n,r,i,o)=>e.Q(sr(t,n,r,i),{u_world:o}),ur=(t,n,r,i)=>{const o=e.a4/r.tileSize;return{u_matrix:t,u_camera_to_center_distance:n.getCameraToCenterDistance(i),u_extrude_scale:[n.pixelsToGLUnits[0]/o,n.pixelsToGLUnits[1]/o]}},hr=(e,t,n=1)=>({u_matrix:e,u_color:t.toRenderColor(null),u_overlay:0,u_overlay_scale:n}),dr=e.ae.create(),fr=(t,n,r,i,o,a,s)=>{const l=t.transform,c="globe"===l.projection.name,u=c?e.bF(l.zoom,n.canonical)*l._pixelsPerMercatorPixel:e.bD(r,1,a),h={u_matrix:n.projMatrix,u_extrude_scale:u,u_intensity:s,u_inv_rot_matrix:dr,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(c){h.u_inv_rot_matrix=i,h.u_merc_center=o,h.u_tile_id=[n.canonical.x,n.canonical.y,1<({u_matrix:t,u_normalize_matrix:n,u_globe_matrix:r,u_merc_matrix:i,u_grid_matrix:o,u_tl_parent:a,u_scale_parent:u,u_fade_t:h.mix,u_opacity:h.opacity*d.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:d.paint.get("raster-brightness-min"),u_brightness_high:d.paint.get("raster-brightness-max"),u_saturation_factor:e.bG(d.paint.get("raster-saturation")),u_contrast_factor:e.bH(d.paint.get("raster-contrast")),u_spin_weights:yr(d.paint.get("raster-hue-rotate")),u_perspective_transform:f,u_raster_elevation:p,u_zoom_transition:s,u_merc_center:l,u_cutoff_params:c,u_colorization_mix:pr(e.bI,g,v),u_colorization_offset:mr(e.bI,y,v),u_color_ramp:m,u_texture_offset:[A/(b+2*A),b/(b+2*A)],u_texture_res:[b+2*A,b+2*A],u_emissive_strength:x});function yr(e){e*=Math.PI/180;const t=Math.sin(e),n=Math.cos(e);return[(2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3]}const vr=.05,br=(e,t,n,r,i,o,a,s,l,c,u,h)=>({u_matrix:e,u_normalize_matrix:t,u_globe_matrix:n,u_merc_matrix:r,u_grid_matrix:i,u_tl_parent:o,u_scale_parent:c,u_fade_t:u.mix,u_opacity:u.opacity,u_image0:0,u_image1:1,u_raster_elevation:h,u_zoom_transition:a,u_merc_center:s,u_cutoff_params:l}),Ar=(e,t,n,r,i,o,a,s,l,c)=>({u_particle_texture:e,u_particle_texture_side_len:t,u_tile_offset:n,u_velocity:r,u_color_ramp:o,u_velocity_res:i,u_max_speed:a,u_uv_offset:s,u_data_scale:[255*l[0],255*l[1]],u_data_offset:c,u_particle_pos_scale:1.1,u_particle_pos_offset:[vr,vr]}),xr=(e,t,n,r,i,o,a,s,l,c)=>({u_particle_texture:e,u_particle_texture_side_len:t,u_velocity:n,u_velocity_res:r,u_max_speed:i,u_speed_factor:o,u_reset_rate:a,u_rand_seed:Math.random(),u_uv_offset:s,u_data_scale:[255*l[0],255*l[1]],u_data_offset:c,u_particle_pos_scale:1.1,u_particle_pos_offset:[vr,vr]}),wr=e.ae.create(),Cr=(t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,y,v)=>{const b=o.transform,A={u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:n?n.uSizeT:0,u_size:n?n.uSize:0,u_camera_to_center_distance:b.getCameraToCenterDistance(g),u_rotate_symbol:+r,u_aspect_ratio:b.width/b.height,u_fade_change:o.options.fadeDuration?o.symbolFadeChange:1,u_matrix:a,u_label_plane_matrix:s,u_coord_matrix:l,u_is_text:+c,u_pitch_with_map:+i,u_texsize:u,u_texture:0,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:wr,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:wr,u_up_vector:[0,-1,0],u_color_adj_mat:y,u_icon_transition:v||0};return"globe"===g.name&&(A.u_tile_id=[h.canonical.x,h.canonical.y,1<e.Q(Cr(t,n,r,i,o,a,s,l,c,u,d,f,p,m,g,y),{u_gamma_scale:i?o.transform.getCameraToCenterDistance(y)*Math.cos(o.terrain?0:o.transform._pitch):1,u_device_pixel_ratio:e.e.devicePixelRatio,u_is_halo:+h,undefined:void 0}),Er=(t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g)=>e.Q(Sr(t,n,r,i,o,a,s,l,!0,c,!0,h,d,f,p,m,g),{u_texsize_icon:u,u_texture_icon:1}),kr=(e,t,n,r)=>({u_matrix:e,u_emissive_strength:t,u_opacity:n,u_color:r}),Tr=(t,n,r,i,o,a,s,l)=>e.Q(function(t,n,r,i,o){const{width:a,height:s}=i.imageManager.getPixelSize(n),l=Math.pow(2,o.tileID.overscaledZ),c=o.tileSize*Math.pow(2,i.transform.tileZoom)/l,u=c*(o.tileID.canonical.x+o.tileID.wrap*l),h=c*o.tileID.canonical.y;return{u_image:0,u_pattern_tl:r.tl,u_pattern_br:r.br,u_texsize:[a,s],u_pattern_size:r.displaySize,u_tile_units_to_pixels:1/e.bD(o,1,i.transform.tileZoom),u_pixel_coord_upper:[u>>16,h>>16],u_pixel_coord_lower:[65535&u,65535&h]}}(0,a,s,i,l),{u_matrix:t,u_emissive_strength:n,u_opacity:r}),Ir=new Float32Array(e.ae.identity([])),Or=(t,n,r,i,o,a,s,l,c,u,h,d,f,p=[0,0,0],m)=>{const g=o.style.light,y=g.properties.get("position"),v=[-y.x,-y.y,y.z],b=e.bE.create();"viewport"===g.properties.get("anchor")&&(e.bE.fromRotation(b,-o.transform.angle),e.$.transformMat3(v,v,b));const A="MASK"===h.alphaMode,x=g.properties.get("color").toRenderColor(null),w=f.paint.get("model-ambient-occlusion-intensity"),C=f.paint.get("model-color").constantOr(e.C.white).toRenderColor(null),S=f.paint.get("model-color-mix-intensity").constantOr(0);return{u_matrix:t,u_lighting_matrix:n,u_normal_matrix:r,u_node_matrix:i||Ir,u_lightpos:v,u_lightintensity:g.properties.get("intensity"),u_lightcolor:[x.r,x.g,x.b],u_camera_pos:p,u_opacity:a,u_baseTextureIsAlpha:0,u_alphaMask:+A,u_alphaCutoff:h.alphaCutoff,u_baseColorFactor:[s.r,s.g,s.b,s.a],u_emissiveFactor:[l[0],l[1],l[2],1],u_metallicFactor:c,u_roughnessFactor:u,u_baseColorTexture:mn,u_metallicRoughnessTexture:gn,u_normalTexture:yn,u_occlusionTexture:vn,u_emissionTexture:bn,u_lutTexture:An,u_color_mix:[C.r,C.g,C.b,S],u_aoIntensity:w,u_emissive_strength:d,u_occlusionTextureTransform:m||[0,0,0,0]}},Rr=(e,t=Ir,n=Ir)=>({u_matrix:e,u_instance:t,u_node_matrix:n}),Mr={fillExtrusion:t=>({u_matrix:new e.a7(t),u_lightpos:new e.ar(t),u_lightintensity:new e.ab(t),u_lightcolor:new e.ar(t),u_vertical_gradient:new e.ab(t),u_opacity:new e.ab(t),u_edge_radius:new e.ab(t),u_alignment:new e.ab(t),u_width_scale:new e.ab(t),u_ao:new e.a9(t),u_tile_id:new e.ar(t),u_zoom_transition:new e.ab(t),u_inv_rot_matrix:new e.a7(t),u_merc_center:new e.a9(t),u_up_dir:new e.ar(t),u_height_lift:new e.ab(t),u_flood_light_color:new e.ar(t),u_vertical_scale:new e.ab(t),u_flood_light_intensity:new e.ab(t),u_ground_shadow_factor:new e.ar(t),u_emissive_strength:new e.ab(t)}),fillExtrusionDepth:t=>({u_matrix:new e.a7(t),u_edge_radius:new e.ab(t),u_alignment:new e.ab(t),u_width_scale:new e.ab(t),u_vertical_scale:new e.ab(t)}),fillExtrusionPattern:t=>({u_matrix:new e.a7(t),u_lightpos:new e.ar(t),u_lightintensity:new e.ab(t),u_lightcolor:new e.ar(t),u_vertical_gradient:new e.ab(t),u_height_factor:new e.ab(t),u_edge_radius:new e.ab(t),u_alignment:new e.ab(t),u_width_scale:new e.ab(t),u_ao:new e.a9(t),u_tile_id:new e.ar(t),u_zoom_transition:new e.ab(t),u_inv_rot_matrix:new e.a7(t),u_merc_center:new e.a9(t),u_up_dir:new e.ar(t),u_height_lift:new e.ab(t),u_image:new e.a8(t),u_texsize:new e.a9(t),u_pixel_coord_upper:new e.a9(t),u_pixel_coord_lower:new e.a9(t),u_tile_units_to_pixels:new e.ab(t),u_opacity:new e.ab(t)}),fillExtrusionGroundEffect:t=>({u_matrix:new e.a7(t),u_opacity:new e.ab(t),u_ao_pass:new e.ab(t),u_meter_to_tile:new e.ab(t),u_ao:new e.a9(t),u_flood_light_intensity:new e.ab(t),u_flood_light_color:new e.ar(t),u_attenuation:new e.ab(t),u_edge_radius:new e.ab(t),u_fb:new e.a8(t),u_fb_size:new e.ab(t)}),fill:t=>({u_matrix:new e.a7(t),u_emissive_strength:new e.ab(t)}),fillPattern:t=>({u_matrix:new e.a7(t),u_emissive_strength:new e.ab(t),u_image:new e.a8(t),u_texsize:new e.a9(t),u_pixel_coord_upper:new e.a9(t),u_pixel_coord_lower:new e.a9(t),u_tile_units_to_pixels:new e.ab(t)}),fillOutline:t=>({u_matrix:new e.a7(t),u_emissive_strength:new e.ab(t),u_world:new e.a9(t)}),fillOutlinePattern:t=>({u_matrix:new e.a7(t),u_emissive_strength:new e.ab(t),u_world:new e.a9(t),u_image:new e.a8(t),u_texsize:new e.a9(t),u_pixel_coord_upper:new e.a9(t),u_pixel_coord_lower:new e.a9(t),u_tile_units_to_pixels:new e.ab(t)}),circle:e.bK,collisionBox:t=>({u_matrix:new e.a7(t),u_camera_to_center_distance:new e.ab(t),u_extrude_scale:new e.a9(t)}),collisionCircle:t=>({u_matrix:new e.a7(t),u_inv_matrix:new e.a7(t),u_camera_to_center_distance:new e.ab(t),u_viewport_size:new e.a9(t)}),debug:t=>({u_color:new e.aa(t),u_matrix:new e.a7(t),u_overlay:new e.a8(t),u_overlay_scale:new e.ab(t)}),clippingMask:t=>({u_matrix:new e.a7(t)}),heatmap:t=>({u_extrude_scale:new e.ab(t),u_intensity:new e.ab(t),u_matrix:new e.a7(t),u_inv_rot_matrix:new e.a7(t),u_merc_center:new e.a9(t),u_tile_id:new e.ar(t),u_zoom_transition:new e.ab(t),u_up_dir:new e.ar(t)}),heatmapTexture:t=>({u_image:new e.a8(t),u_color_ramp:new e.a8(t),u_opacity:new e.ab(t)}),hillshade:t=>({u_matrix:new e.a7(t),u_image:new e.a8(t),u_latrange:new e.a9(t),u_light:new e.a9(t),u_shadow:new e.aa(t),u_highlight:new e.aa(t),u_emissive_strength:new e.ab(t),u_accent:new e.aa(t)}),hillshadePrepare:t=>({u_matrix:new e.a7(t),u_image:new e.a8(t),u_dimension:new e.a9(t),u_zoom:new e.ab(t)}),line:e.bL,linePattern:e.bM,raster:t=>({u_matrix:new e.a7(t),u_normalize_matrix:new e.a7(t),u_globe_matrix:new e.a7(t),u_merc_matrix:new e.a7(t),u_grid_matrix:new e.as(t),u_tl_parent:new e.a9(t),u_scale_parent:new e.ab(t),u_fade_t:new e.ab(t),u_opacity:new e.ab(t),u_image0:new e.a8(t),u_image1:new e.a8(t),u_brightness_low:new e.ab(t),u_brightness_high:new e.ab(t),u_saturation_factor:new e.ab(t),u_contrast_factor:new e.ab(t),u_spin_weights:new e.ar(t),u_perspective_transform:new e.a9(t),u_raster_elevation:new e.ab(t),u_zoom_transition:new e.ab(t),u_merc_center:new e.a9(t),u_cutoff_params:new e.at(t),u_colorization_mix:new e.at(t),u_colorization_offset:new e.ab(t),u_color_ramp:new e.a8(t),u_texture_offset:new e.a9(t),u_texture_res:new e.a9(t),u_emissive_strength:new e.ab(t)}),rasterParticle:t=>({u_matrix:new e.a7(t),u_normalize_matrix:new e.a7(t),u_globe_matrix:new e.a7(t),u_merc_matrix:new e.a7(t),u_grid_matrix:new e.as(t),u_tl_parent:new e.a9(t),u_scale_parent:new e.ab(t),u_fade_t:new e.ab(t),u_opacity:new e.ab(t),u_image0:new e.a8(t),u_image1:new e.a8(t),u_raster_elevation:new e.ab(t),u_zoom_transition:new e.ab(t),u_merc_center:new e.a9(t),u_cutoff_params:new e.at(t)}),rasterParticleTexture:t=>({u_texture:new e.a8(t),u_opacity:new e.ab(t)}),rasterParticleDraw:t=>({u_particle_texture:new e.a8(t),u_particle_texture_side_len:new e.ab(t),u_tile_offset:new e.a9(t),u_velocity:new e.a8(t),u_color_ramp:new e.a8(t),u_velocity_res:new e.a9(t),u_max_speed:new e.ab(t),u_uv_offset:new e.a9(t),u_data_scale:new e.a9(t),u_data_offset:new e.ab(t),u_particle_pos_scale:new e.ab(t),u_particle_pos_offset:new e.a9(t)}),rasterParticleUpdate:t=>({u_particle_texture:new e.a8(t),u_particle_texture_side_len:new e.ab(t),u_velocity:new e.a8(t),u_velocity_res:new e.a9(t),u_max_speed:new e.ab(t),u_speed_factor:new e.ab(t),u_reset_rate:new e.ab(t),u_rand_seed:new e.ab(t),u_uv_offset:new e.a9(t),u_data_scale:new e.a9(t),u_data_offset:new e.ab(t),u_particle_pos_scale:new e.ab(t),u_particle_pos_offset:new e.a9(t)}),symbolIcon:t=>({u_is_size_zoom_constant:new e.a8(t),u_is_size_feature_constant:new e.a8(t),u_size_t:new e.ab(t),u_size:new e.ab(t),u_camera_to_center_distance:new e.ab(t),u_rotate_symbol:new e.a8(t),u_aspect_ratio:new e.ab(t),u_fade_change:new e.ab(t),u_matrix:new e.a7(t),u_label_plane_matrix:new e.a7(t),u_coord_matrix:new e.a7(t),u_is_text:new e.a8(t),u_pitch_with_map:new e.a8(t),u_texsize:new e.a9(t),u_tile_id:new e.ar(t),u_zoom_transition:new e.ab(t),u_inv_rot_matrix:new e.a7(t),u_merc_center:new e.a9(t),u_camera_forward:new e.ar(t),u_tile_matrix:new e.a7(t),u_up_vector:new e.ar(t),u_ecef_origin:new e.ar(t),u_texture:new e.a8(t),u_icon_transition:new e.ab(t),u_color_adj_mat:new e.a7(t)}),symbolSDF:t=>({u_is_size_zoom_constant:new e.a8(t),u_is_size_feature_constant:new e.a8(t),u_size_t:new e.ab(t),u_size:new e.ab(t),u_camera_to_center_distance:new e.ab(t),u_rotate_symbol:new e.a8(t),u_aspect_ratio:new e.ab(t),u_fade_change:new e.ab(t),u_matrix:new e.a7(t),u_label_plane_matrix:new e.a7(t),u_coord_matrix:new e.a7(t),u_is_text:new e.a8(t),u_pitch_with_map:new e.a8(t),u_texsize:new e.a9(t),u_texture:new e.a8(t),u_gamma_scale:new e.ab(t),u_device_pixel_ratio:new e.ab(t),u_tile_id:new e.ar(t),u_zoom_transition:new e.ab(t),u_inv_rot_matrix:new e.a7(t),u_merc_center:new e.a9(t),u_camera_forward:new e.ar(t),u_tile_matrix:new e.a7(t),u_up_vector:new e.ar(t),u_ecef_origin:new e.ar(t),u_is_halo:new e.a8(t)}),symbolTextAndIcon:t=>({u_is_size_zoom_constant:new e.a8(t),u_is_size_feature_constant:new e.a8(t),u_size_t:new e.ab(t),u_size:new e.ab(t),u_camera_to_center_distance:new e.ab(t),u_rotate_symbol:new e.a8(t),u_aspect_ratio:new e.ab(t),u_fade_change:new e.ab(t),u_matrix:new e.a7(t),u_label_plane_matrix:new e.a7(t),u_coord_matrix:new e.a7(t),u_is_text:new e.a8(t),u_pitch_with_map:new e.a8(t),u_texsize:new e.a9(t),u_texsize_icon:new e.a9(t),u_texture:new e.a8(t),u_texture_icon:new e.a8(t),u_gamma_scale:new e.ab(t),u_device_pixel_ratio:new e.ab(t),u_is_halo:new e.a8(t)}),background:t=>({u_matrix:new e.a7(t),u_emissive_strength:new e.ab(t),u_opacity:new e.ab(t),u_color:new e.aa(t)}),backgroundPattern:t=>({u_matrix:new e.a7(t),u_emissive_strength:new e.ab(t),u_opacity:new e.ab(t),u_image:new e.a8(t),u_pattern_tl:new e.a9(t),u_pattern_br:new e.a9(t),u_texsize:new e.a9(t),u_pattern_size:new e.a9(t),u_pixel_coord_upper:new e.a9(t),u_pixel_coord_lower:new e.a9(t),u_tile_units_to_pixels:new e.ab(t)}),terrainRaster:t=>({u_matrix:new e.a7(t),u_image0:new e.a8(t),u_skirt_height:new e.ab(t),u_ground_shadow_factor:new e.ar(t)}),skybox:t=>({u_matrix:new e.a7(t),u_sun_direction:new e.ar(t),u_cubemap:new e.a8(t),u_opacity:new e.ab(t),u_temporal_offset:new e.ab(t)}),skyboxGradient:t=>({u_matrix:new e.a7(t),u_color_ramp:new e.a8(t),u_center_direction:new e.ar(t),u_radius:new e.ab(t),u_opacity:new e.ab(t),u_temporal_offset:new e.ab(t)}),skyboxCapture:t=>({u_matrix_3f:new e.as(t),u_sun_direction:new e.ar(t),u_sun_intensity:new e.ab(t),u_color_tint_r:new e.at(t),u_color_tint_m:new e.at(t),u_luminance:new e.ab(t)}),globeRaster:t=>({u_proj_matrix:new e.a7(t),u_globe_matrix:new e.a7(t),u_normalize_matrix:new e.a7(t),u_merc_matrix:new e.a7(t),u_zoom_transition:new e.ab(t),u_merc_center:new e.a9(t),u_image0:new e.a8(t),u_grid_matrix:new e.as(t),u_skirt_height:new e.ab(t),u_far_z_cutoff:new e.ab(t),u_frustum_tl:new e.ar(t),u_frustum_tr:new e.ar(t),u_frustum_br:new e.ar(t),u_frustum_bl:new e.ar(t),u_globe_pos:new e.ar(t),u_globe_radius:new e.ab(t),u_viewport:new e.a9(t)}),globeAtmosphere:t=>({u_frustum_tl:new e.ar(t),u_frustum_tr:new e.ar(t),u_frustum_br:new e.ar(t),u_frustum_bl:new e.ar(t),u_horizon:new e.ab(t),u_transition:new e.ab(t),u_fadeout_range:new e.ab(t),u_color:new e.at(t),u_high_color:new e.at(t),u_space_color:new e.at(t),u_temporal_offset:new e.ab(t),u_horizon_angle:new e.ab(t)}),model:t=>({u_matrix:new e.a7(t),u_lighting_matrix:new e.a7(t),u_normal_matrix:new e.a7(t),u_node_matrix:new e.a7(t),u_lightpos:new e.ar(t),u_lightintensity:new e.ab(t),u_lightcolor:new e.ar(t),u_camera_pos:new e.ar(t),u_opacity:new e.ab(t),u_baseColorFactor:new e.at(t),u_emissiveFactor:new e.at(t),u_metallicFactor:new e.ab(t),u_roughnessFactor:new e.ab(t),u_baseTextureIsAlpha:new e.a8(t),u_alphaMask:new e.a8(t),u_alphaCutoff:new e.ab(t),u_baseColorTexture:new e.a8(t),u_metallicRoughnessTexture:new e.a8(t),u_normalTexture:new e.a8(t),u_occlusionTexture:new e.a8(t),u_emissionTexture:new e.a8(t),u_lutTexture:new e.a8(t),u_color_mix:new e.at(t),u_aoIntensity:new e.ab(t),u_emissive_strength:new e.ab(t),u_occlusionTextureTransform:new e.at(t)}),modelDepth:t=>({u_matrix:new e.a7(t),u_instance:new e.a7(t),u_node_matrix:new e.a7(t)}),groundShadow:t=>({u_matrix:new e.a7(t),u_ground_shadow_factor:new e.ar(t)}),stars:t=>({u_matrix:new e.a7(t),u_up:new e.ar(t),u_right:new e.ar(t),u_intensity_multiplier:new e.ab(t)}),occlusion:t=>({u_matrix:new e.a7(t),u_anchorPos:new e.ar(t),u_screenSizePx:new e.a9(t),u_occluderSizePx:new e.a9(t),u_color:new e.at(t)})};function Pr(t,n,r){const i=n.createTileMatrix(t,t.worldSize,r.toUnwrapped());return e.ae.multiply(new Float32Array(16),t.projMatrix,i)}function Dr(e,t,n){if(t.projection.name===n.projection.name)return e.projMatrix;const r=n.clone();return r.setProjection(t.projection),Pr(r,t.getProjection(),e)}function jr(e,t,n){return t.name===n.projection.name?e.projMatrix:Pr(n,t,e)}let Br;function Lr(t,n,r,i,o,a,s){const l=t.context,c=l.gl,u=t.transform,h=t.getOrCreateProgram("collisionBox"),d=[];let f=0,p=0;for(let l=0;l0){const t=e.ae.create(),n=b;e.ae.mul(t,y.placementInvProjMatrix,u.glCoordMatrix),e.ae.mul(t,t,y.placementViewportMatrix),d.push({circleArray:x,circleOffset:p,transform:n,invTransform:t,projection:y.getProjection()}),f+=x.length/4,p=f}A&&(t.terrain&&t.terrain.setupElevationDraw(g,h),h.draw(t,c.LINES,e.af.disabled,e.ah.disabled,t.colorModeForRenderPass(),e.ag.disabled,ur(b,u,g,y.getProjection()),r.id,A.layoutVertexBuffer,A.indexBuffer,A.segments,null,u.zoom,null,[A.collisionVertexBuffer,A.collisionVertexBufferExt]))}if(!s||!d.length)return;const m=t.getOrCreateProgram("collisionCircle"),g=new e.bN;g.resize(4*f),g._trim();let y=0;for(const e of d)for(let t=0;t=0&&(m[A.associatedIconIndex]={x:S,y:k,z:T,angle:P})}else un(C,f)}if(h){p.clear();const n=t.icon.placedSymbolArray;for(let t=0;t{S.depthOcclusionForSymbolsAndCircles&&(r.hasInitialOcclusionOpacityProperties||t.terrain)&&(e.push("DEPTH_D24"),e.push("DEPTH_OCCLUSION"))},_=()=>{const n=E&&"point"!==r.layout.get("symbol-placement"),s=[];N(s);const c=n||M,h=r.paint.get("icon-image-cross-fade").constantOr(0);t.terrainRenderModeElevated()&&T&&s.push("PITCH_WITH_MAP_TERRAIN"),d&&(s.push("PROJECTION_GLOBE_VIEW"),c&&s.push("PROJECTED_POS_ON_VIEWPORT")),h>0&&s.push("ICON_TRANSITION"),a.icon.zOffsetVertexBuffer&&s.push("Z_OFFSET"),0===v&&0===b&&0===A&&1===x||s.push("COLOR_ADJUSTMENT");const y=a.icon.programConfigurations.get(r.id),w=t.getOrCreateProgram(a.sdfIcons?"symbolSDF":"symbolIcon",{config:y,defines:s});let k;const I=i.imageAtlasTexture?i.imageAtlasTexture.size:[0,0],O=a.iconSizeData,R=e.aE(O,S.zoom),D=T||0!==S.pitch,B=Jt(p,i.tileID.canonical,T,E,S,a.getProjection(),m),_=Kt(p,i.tileID.canonical,T,E,S,a.getProjection(),m),z=t.translatePosMatrix(_,i,l,u,!0),V=t.translatePosMatrix(p,i,l,u),U=c?Fr:B,H=E&&!T&&!n;let q=L;!j&&!S.mercatorFromTransition||E||(q=Nr(S));const G=d?q:L;if(a.sdfIcons&&!a.iconsInText)k=Sr(O.kind,R,H,T,t,V,U,z,!1,I,!0,o,f,P,F,G,a.getProjection());else{const e=r.getColorAdjustmentMatrix(v,b,A,x);k=Cr(O.kind,R,H,T,t,V,U,z,!1,I,o,f,P,F,G,a.getProjection(),e,h)}const Y=i.imageAtlasTexture?i.imageAtlasTexture:null,W=1!==r.layout.get("icon-size").constantOr(0)||a.iconsNeedLinear,Q=a.sdfIcons||t.options.rotating||t.options.zooming||W||D?C.LINEAR:C.NEAREST,X=a.sdfIcons&&0!==r.paint.get("icon-halo-width").constantOr(1),J=t.terrain&&T&&n?e.ae.invert(e.ae.create(),B):Fr;if(n&&a.icon){const e=S.elevation,n=e?e.getAtTileOffsetFunc(o,S.center.lat,S.worldSize,a.getProjection()):null,r=Zt(p,i.tileID.canonical,T,E,S,a.getProjection(),m);nn(a,p,t,!1,r,_,T,g,n,o)}return{program:w,buffers:a.icon,uniformValues:k,atlasTexture:Y,atlasTextureIcon:null,atlasInterpolation:Q,atlasInterpolationIcon:null,isSDF:a.sdfIcons,hasHalo:X,tile:i,labelPlaneMatrixInv:J}},z=()=>{const n=k&&"point"!==r.layout.get("symbol-placement"),s=[],l=n||D||M;t.terrainRenderModeElevated()&&I&&s.push("PITCH_WITH_MAP_TERRAIN"),d&&(s.push("PROJECTION_GLOBE_VIEW"),l&&s.push("PROJECTED_POS_ON_VIEWPORT")),a.text.zOffsetVertexBuffer&&s.push("Z_OFFSET"),N(s);const u=a.text.programConfigurations.get(r.id),g=t.getOrCreateProgram(a.iconsInText?"symbolTextAndIcon":"symbolSDF",{config:u,defines:s});let v,b=[0,0],A=null;const x=a.textSizeData;if(a.iconsInText){b=i.imageAtlasTexture?i.imageAtlasTexture.size:[0,0],A=i.imageAtlasTexture?i.imageAtlasTexture:null;const e=I||0!==S.pitch,n="composite"===x.kind||"camera"===x.kind;v=e||t.options.rotating||t.options.zooming||n?C.LINEAR:C.NEAREST}const w=i.glyphAtlasTexture?i.glyphAtlasTexture.size:[0,0],E=e.aE(x,S.zoom),T=Jt(p,i.tileID.canonical,I,k,S,a.getProjection(),m),O=Kt(p,i.tileID.canonical,I,k,S,a.getProjection(),m),R=t.translatePosMatrix(O,i,c,h,!0),B=t.translatePosMatrix(p,i,c,h),_=l?Fr:T,z=k&&!I&&!n;let V=L;!j&&!S.mercatorFromTransition||k||(V=Nr(S));const U=d?V:L;let H;H=a.iconsInText?Er(x.kind,E,z,I,t,B,_,R,w,b,o,f,P,F,U,a.getProjection()):Sr(x.kind,E,z,I,t,B,_,R,!0,w,!0,o,f,P,F,U,a.getProjection());const q=i.glyphAtlasTexture?i.glyphAtlasTexture:null,G=C.LINEAR,Y=0!==r.paint.get("text-halo-width").constantOr(1),W=t.terrain&&I&&n?e.ae.invert(e.ae.create(),T):Fr;if(n&&a.text){const e=S.elevation,n=e?e.getAtTileOffsetFunc(o,S.center.lat,S.worldSize,a.getProjection()):null,r=Zt(p,i.tileID.canonical,I,k,S,a.getProjection(),m);nn(a,p,t,!0,r,O,I,y,n,o)}return{program:g,buffers:a.text,uniformValues:H,atlasTexture:q,atlasTextureIcon:A,atlasInterpolation:G,atlasInterpolationIcon:v,isSDF:!0,hasHalo:Y,tile:i,labelPlaneMatrixInv:W}},V=a.icon.segments.get().length,U=a.text.segments.get().length,H=V&&!s.onlyText?_():null,q=U&&!s.onlyIcons?z():null,G=r.paint.get("icon-opacity").constantOr(1),Y=r.paint.get("text-opacity").constantOr(1);if(O&&a.canOverlap){R=!0;const t=G&&!s.onlyText?a.icon.segments.get():[],n=Y&&!s.onlyIcons?a.text.segments.get():[];for(const n of t)B.push({segments:new e.b([n]),sortKey:n.sortKey,state:H});for(const t of n)B.push({segments:new e.b([t]),sortKey:t.sortKey,state:q})}else s.onlyText||B.push({segments:G?a.icon.segments:new e.b([]),sortKey:0,state:H}),s.onlyIcons||B.push({segments:Y?a.text.segments:new e.b([]),sortKey:0,state:q})}R&&B.sort(((e,t)=>e.sortKey-t.sortKey));for(const e of B){const n=e.state;if(n){if(t.terrain){const e={useDepthForOcclusion:S.depthOcclusionForSymbolsAndCircles,labelPlaneMatrixInv:n.labelPlaneMatrixInv};t.terrain.setupElevationDraw(n.tile,n.program,e)}else t.setupDepthForOcclusion(S.depthOcclusionForSymbolsAndCircles,n.program);if(w.activeTexture.set(C.TEXTURE0),n.atlasTexture&&n.atlasTexture.bind(n.atlasInterpolation,C.CLAMP_TO_EDGE,!0),n.atlasTextureIcon&&(w.activeTexture.set(C.TEXTURE1),n.atlasTextureIcon&&n.atlasTextureIcon.bind(n.atlasInterpolationIcon,C.CLAMP_TO_EDGE,!0)),t.uploadCommonLightUniforms(t.context,n.program),n.hasHalo){const i=n.uniformValues;i.u_is_halo=1,Ur(n.buffers,e.segments,r,t,n.program,M,o,a,i,2),i.u_is_halo=0}else{if(n.isSDF){const i=n.uniformValues;n.hasHalo&&(i.u_is_halo=1,Ur(n.buffers,e.segments,r,t,n.program,M,o,a,i,1)),i.u_is_halo=0}Ur(n.buffers,e.segments,r,t,n.program,M,o,a,n.uniformValues,1)}}}}function Ur(t,n,r,i,o,a,s,l,c,u){const h=i.context.gl,d=[t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer,t.iconTransitioningVertexBuffer,t.globeExtVertexBuffer,t.zOffsetVertexBuffer];o.draw(i,h.TRIANGLES,a,s,l,e.ag.disabled,c,r.id,t.layoutVertexBuffer,t.indexBuffer,n,r.paint,i.transform.zoom,t.programConfigurations.get(r.id),d,u)}function Hr(t,n,r,i,o,a,s){const l=t.context.gl,c=r.paint.get("fill-pattern"),u=c&&c.constantOr(1);let h,d,f,p,m;s?(d=u&&!r.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",h=l.LINES):(d=u?"fillPattern":"fill",h=l.TRIANGLES);for(const g of i){const i=n.getTile(g);if(u&&!i.patternsLoaded())continue;const y=i.getBucket(r);if(!y)continue;t.prepareDrawTile();const v=y.programConfigurations.get(r.id),b=t.isTileAffectedByFog(g),A=t.getOrCreateProgram(d,{config:v,overrideFog:b});u&&(t.context.activeTexture.set(l.TEXTURE0),i.imageAtlasTexture&&i.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),v.updatePaintBuffers());const x=c.constantOr(null);if(x&&i.imageAtlas){const e=i.imageAtlas.patternPositions[x.toString()];e&&v.setConstantPatternPositions(e)}const w=t.translatePosMatrix(g.projMatrix,i,r.paint.get("fill-translate"),r.paint.get("fill-translate-anchor")),C=r.paint.get("fill-emissive-strength");if(s){p=y.indexBuffer2,m=y.segments2;const e=t.terrain&&t.terrain.renderingToTexture?t.terrain.drapeBufferSize:[l.drawingBufferWidth,l.drawingBufferHeight];f="fillOutlinePattern"===d&&u?cr(w,C,t,i,e):lr(w,C,e)}else p=y.indexBuffer,m=y.segments,f=u?sr(w,C,t,i):ar(w,C);t.uploadCommonUniforms(t.context,A,g.toUnwrapped()),A.draw(t,h,o,t.stencilModeForClipping(g),a,e.ag.disabled,f,r.id,y.layoutVertexBuffer,p,m,r.paint,t.transform.zoom,v,void 0)}}function qr(t,n,r,i,o,a,s,l){r.resetLayerRenderingStats(t);const c=t.context,u=c.gl,h=t.transform,d=r.paint.get("fill-extrusion-pattern"),f=d.constantOr(1),p=r.paint.get("fill-extrusion-opacity"),m=t.style.enable3dLights()&&!f?r.paint.get("fill-extrusion-ambient-occlusion-wall-radius"):r.paint.get("fill-extrusion-ambient-occlusion-radius"),g=[r.paint.get("fill-extrusion-ambient-occlusion-intensity"),m],y=r.layout.get("fill-extrusion-edge-radius"),v=y>0&&!r.paint.get("fill-extrusion-rounded-roof"),b=v?0:y,A="globe"===h.projection.name?e.b_():0,x="globe"===h.projection.name,w=x?e.a2(h.zoom):0,C=[e.ak(h.center.lng),e.al(h.center.lat)],S=r.paint.get("fill-extrusion-flood-light-color").toRenderColor(r.lut).toArray01().slice(0,3),E=r.paint.get("fill-extrusion-flood-light-intensity"),k=r.paint.get("fill-extrusion-vertical-scale"),T=0!==r.paint.get("fill-extrusion-line-width").constantOr(1),I=wn(t,r.paint.get("fill-extrusion-cutoff-fade-range")),O=r.paint.get("fill-extrusion-emissive-strength"),R=[];x&&R.push("PROJECTION_GLOBE_VIEW"),g[0]>0&&R.push("FAUX_AO"),v&&R.push("ZERO_ROOF_RADIUS"),l&&R.push("HAS_CENTROID"),E>0&&R.push("FLOOD_LIGHT"),I.shouldRenderCutoff&&R.push("RENDER_CUTOFF"),T&&R.push("RENDER_WALL_MODE");const M=(()=>{const t=r.paint.get("fill-extrusion-line-alignment");switch(t){case"inside":return 1;case"outside":return-1;case"center":return 0;default:return e.w(`Unsupported value for fill-extrusion-line-alignment: ${t}`),0}})();let P;const D="shadow"===t.renderPass,j=t.shadowRenderer,B=D&&!!j;t.shadowRenderer&&(t.shadowRenderer.useNormalOffset=!0);let L=[0,0,0];if(j){const e=t.style.directionalLight,n=t.style.ambientLight;e&&n&&(L=On(t.style,e,n)),P=R.concat(["SHADOWS_SINGLE_CASCADE"])}const F=B?"fillExtrusionDepth":f?"fillExtrusionPattern":"fillExtrusion",N=r.getLayerRenderingStats();for(const m of i){const i=n.getTile(m),y=i.getBucket(r);if(!y||y.projection.name!==h.projection.name)continue;let v=!1;j&&(v=0===j.getMaxCascadeForTile(m.toUnwrapped()));const B=t.isTileAffectedByFog(m),_=y.programConfigurations.get(r.id),z=t.getOrCreateProgram(F,{config:_,defines:v?P:R,overrideFog:B});if(t.terrain&&t.terrain.setupElevationDraw(i,z,{useMeterToDem:!0}),!y.centroidVertexBuffer){const e=z.attributes.a_centroid_pos;void 0!==e&&u.vertexAttrib2f(e,0,0)}!D&&j&&j.setupShadows(i.tileID.toUnwrapped(),z,"vector-tile",i.tileID.overscaledZ),f&&(t.context.activeTexture.set(u.TEXTURE0),i.imageAtlasTexture&&i.imageAtlasTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE),_.updatePaintBuffers());const V=d.constantOr(null);if(V&&i.imageAtlas){const e=i.imageAtlas.patternPositions[V.toString()];e&&_.setConstantPatternPositions(e)}const U=r.paint.get("fill-extrusion-vertical-gradient"),H=1/y.tileToMeter;let q;if(D&&j){if(Jr(i.tileID,y,t))continue;const e=j.calculateShadowPassMatrixFromTile(i.tileID.toUnwrapped());q=ir(e,b,M,H,k)}else{const e=t.translatePosMatrix(m.expandedProjMatrix,i,r.paint.get("fill-extrusion-translate"),r.paint.get("fill-extrusion-translate-anchor")),n=h.projection.createInversionMatrix(h,m.canonical);q=f?or(e,t,U,p,g,b,M,H,m,i,A,w,C,n,S,k):rr(e,t,U,p,g,b,M,H,m,A,w,C,n,S,k,E,L,O)}t.uploadCommonUniforms(c,z,m.toUnwrapped(),null,I);let G=y.segments;if("mercator"===h.projection.name&&!D&&(G=y.getVisibleSegments(i.tileID,t.terrain,t.transform.getFrustum(0)),!G.get().length))continue;if(N)if(D)for(const e of G.get())N.numRenderedVerticesInShadowPass+=e.primitiveLength;else for(const e of G.get())N.numRenderedVerticesInTransparentPass+=e.primitiveLength;const Y=[];(t.terrain||l)&&Y.push(y.centroidVertexBuffer),x&&Y.push(y.layoutVertexExtBuffer),T&&Y.push(y.wallVertexBuffer),z.draw(t,c.gl.TRIANGLES,o,a,s,e.ag.backCCW,q,r.id,y.layoutVertexBuffer,y.indexBuffer,G,r.paint,t.transform.zoom,_,Y)}t.shadowRenderer&&(t.shadowRenderer.useNormalOffset=!1)}function Gr(t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,y,v,b){const A=t.context,x=A.gl,w=t.transform,C=t.transform.zoom,S=[],E=wn(t,r.paint.get("fill-extrusion-cutoff-fade-range"));"clear"===u?(S.push("CLEAR_SUBPASS"),b&&(S.push("CLEAR_FROM_TEXTURE"),A.activeTexture.set(x.TEXTURE0),b.bind(x.LINEAR,x.CLAMP_TO_EDGE))):"sdf"===u&&S.push("SDF_SUBPASS"),y&&S.push("HAS_CENTROID"),E.shouldRenderCutoff&&S.push("RENDER_CUTOFF");const k=r.layout.get("fill-extrusion-edge-radius"),T=(e,n,i,u,v)=>{const x=n.programConfigurations.get(r.id),w=t.isTileAffectedByFog(e),T=t.getOrCreateProgram("fillExtrusionGroundEffect",{config:x,defines:S,overrideFog:w}),I=[d,f*v],O=C>=17?0:k*v,R=b?b.size[0]:0,M=((e,t,n,r,i,o,a,s,l,c,u)=>({u_matrix:t,u_opacity:n,u_ao_pass:r?1:0,u_meter_to_tile:i,u_ao:o,u_flood_light_intensity:a,u_flood_light_color:s,u_attenuation:l,u_edge_radius:c,u_fb:0,u_fb_size:u}))(0,u,h,c,v,I,p,m,g,O,R),P=[];y&&P.push(n.hiddenByLandmarkVertexBuffer),t.uploadCommonUniforms(A,T,e.toUnwrapped(),null,E),T.draw(t,A.gl.TRIANGLES,o,a,s,l,M,r.id,n.vertexBuffer,n.indexBuffer,i,r.paint,C,x,P)};for(const o of i){const i=n.getTile(o),a=i.getBucket(r);if(!a||a.projection.name!==w.projection.name||!a.groundEffect||a.groundEffect&&!a.groundEffect.hasData())continue;const s=a.groundEffect,l=1/a.tileToMeter;{const e=t.translatePosMatrix(o.projMatrix,i,r.paint.get("fill-extrusion-translate"),r.paint.get("fill-extrusion-translate-anchor")),n=s.getDefaultSegment();T(o,s,n,e,l)}if(v)for(let a=0;a<4;a++){const s=e.b$[a](o),c=n.getTile(s);if(!c)continue;const u=c.getBucket(r);if(!u||u.projection.name!==w.projection.name||!u.groundEffect||u.groundEffect&&!u.groundEffect.hasData())continue;const h=u.groundEffect;let d,f;0===a?(d=[-e.a4,0,0],f=1):1===a?(d=[e.a4,0,0],f=0):2===a?(d=[0,-e.a4,0],f=3):(d=[0,e.a4,0],f=2);const p=h.regionSegments[f];if(!p)continue;const m=new Float32Array(16);e.ae.translate(m,o.projMatrix,d),T(o,h,p,t.translatePosMatrix(m,i,r.paint.get("fill-extrusion-translate"),r.paint.get("fill-extrusion-translate-anchor")),l)}}}function Yr(t,n,r,i,o,a,s){0===i.centroidVertexArray.length&&i.createCentroidsBuffer();const l=a?a.findDEMTileFor(r):null;if(!(l&&l.dem||s))return;const c=t=>new e.P(Math.ceil((t+e.c2)*e.c3),0),u=e=>{const t=n.getSource().minzoom,r=e=>{const t=n.getTileByID(e);if(t&&t.hasData())return t.getBucket(o)},i=[0,-1,1];for(const n of i){if(e.overscaledZ+n(h[0]=Math.min(t.min.y,n.min.y),h[1]=Math.max(t.max.y,n.max.y),h[2]=e.a4-n.min.x>t.max.x?n.min.x-e.a4:t.max.x,h),f=(t,n)=>(h[0]=Math.min(t.min.x,n.min.x),h[1]=Math.max(t.max.x,n.max.x),h[2]=e.a4-n.min.y>t.max.y?n.min.y-e.a4:t.max.y,h),p=[(e,t)=>d(e,t),(e,t)=>d(t,e),(e,t)=>f(e,t),(e,t)=>f(t,e)],m=(t,n,i,o,s,c,u)=>{if(!a)return 0;const h=[[c?i:t,c?t:i,0],[c?i:n,c?n:i,0]],d=u<0?e.a4+u:u,f=[c?d:(t+n)/2,c?(t+n)/2:d,0];return 0===i&&u<0||0!==i&&u>0?a.getForTilePoints(s,[f],!0,o):h.push(f),a.getForTilePoints(r,h,!0,l),Math.max(h[0][2],h[1][2],f[2])/a.exaggeration()};for(let t=0;t<4;t++){const n=i.borderFeatureIndices[t];if(0===n.length)continue;const o=e.b$[t](r),l=u(o);if(!(l&&l instanceof e.c0))continue;if(i.borderDoneWithNeighborZ[t]===l.canonical.z)continue;0===l.centroidVertexArray.length&&l.createCentroidsBuffer();const h=a?a.findDEMTileFor(o):null;if(!(h&&h.dem||s))continue;const d=(t<2?1:5)-t,f=l.borderDoneWithNeighborZ[d]!==i.canonical.z,v=l.borderFeatureIndices[d];let b=0;if(i.canonical.z!==l.canonical.z){for(const e of n)i.showCentroid(i.featuresOnBorder[e]);if(f)for(const e of v)l.showCentroid(l.featuresOnBorder[e]);i.borderDoneWithNeighborZ[t]=l.canonical.z,l.borderDoneWithNeighborZ[d]=i.canonical.z}for(const r of n){const n=i.featuresOnBorder[r],a=i.centroidData[n.centroidDataIndex],u=n.borders[t];let f;for(;bu[0]+3||e[0]>u[0]-3)break;l.showCentroid(f),b++}if(f&&bu[1]-3)&&(A++,++b!==v.length);)f=l.featuresOnBorder[v[b]];if(f=l.featuresOnBorder[v[r]],A>1){const e=f.borders[d];Math.abs(u[0]-e[0])<3&&Math.abs(u[1]-e[1])<3&&(A=1,b=r+1)}else if(0===A){i.showCentroid(n);continue}const x=l.centroidData[f.centroidDataIndex];s&&1===A&&(y=x,((g=a).flags|y.flags)&e.c1?(g.flags|=e.c1,y.flags|=e.c1):(g.flags&=~e.c1,y.flags&=~e.c1));const w=n.intersectsCount()>1||f.intersectsCount()>1;if(A>1)b=r,a.centroidXY=x.centroidXY=new e.P(0,0);else if(h&&h.dem&&!w){const n=p[t](a,x),r=t%2?e.a4-1:0,i=m(n[0],Math.min(e.a4-1,n[1]),r,h,o,t<2,n[2]);a.centroidXY=x.centroidXY=c(i)}else w?a.centroidXY=x.centroidXY=new e.P(0,0):(a.centroidXY=i.encodeBorderCentroid(n),x.centroidXY=l.encodeBorderCentroid(f));i.writeCentroidToBuffer(a),l.writeCentroidToBuffer(x)}else i.showCentroid(n)}i.borderDoneWithNeighborZ[t]=l.canonical.z,l.borderDoneWithNeighborZ[d]=i.canonical.z}var g,y;(i.needsCentroidUpdate||!i.centroidVertexBuffer&&0!==i.centroidVertexArray.length)&&i.uploadCentroid(t)}const Wr=[1,0,0],Qr=[0,1,0],Xr=[0,0,1];function Jr(t,n,r){const i=r.transform,o=r.shadowRenderer;if(!o)return!0;const a=t.toUnwrapped(),s=i.tileSize*o._cascades[r.currentShadowCascade].scale;let l=n.maxHeight;if(i.elevation){const e=i.elevation.getMinMaxForTile(t);e&&(l+=e.max)}const c=[...o.shadowDirection];c[2]=-c[2];const u=o.computeSimplifiedTileShadowVolume(a,l,s,c);if(!u)return!1;const h=[Wr,Qr,Xr,c,[c[0],0,c[2]],[0,c[1],c[2]]],d="globe"===i.projection.name,f=i.scaleZoom(s),p=e.aM.fromInvProjectionMatrix(i.invProjMatrix,i.worldSize,f,!d),m=o.getCurrentCascadeFrustum();return 0===p.intersectsPrecise(u.vertices,u.planes,h)||0===m.intersectsPrecise(u.vertices,u.planes,h)}function Zr(t){return[t[0]*e.c4,t[1]*e.c4,t[2]*e.c4,0]}function Kr(t,n,r,i,o,a,s,l,c){const u=i.getSource(),h=r.globeSharedBuffers;if(!h)return;let d,f,p;if(n&&(d=i.getTile(n)),u instanceof e.bo?(f=u.texture,p=e.bj(0,0,r.transform)):d&&n&&(f=d.texture,p=e.bj(n.canonical.z,n.canonical.x,r.transform)),!f||!p)return;t||(p=e.ae.scale(e.ae.create(),p,[1,-1,1]));const m=r.context,g=m.gl,y="nearest"===o.paint.get("raster-resampling")?g.NEAREST:g.LINEAR,v=r.colorModeForDrapableLayerRenderPass(a),b=s.defines;b.push("GLOBE_POLES");const A=new e.af(g.LEQUAL,e.af.ReadWrite,r.depthRangeFor3D),x=Float32Array.from(r.transform.expandedFarZProjMatrix),w=Float32Array.from(e.bh(e.bi(new e.aO(0,0,0))));r.terrain&&r.terrain.prepareDrawTile(),m.activeTexture.set(g.TEXTURE0),f.bind(y,g.CLAMP_TO_EDGE),m.activeTexture.set(g.TEXTURE1),f.bind(y,g.CLAMP_TO_EDGE),f.useMipmap&&m.extTextureFilterAnisotropic&&r.transform.pitch>20&&g.texParameterf(g.TEXTURE_2D,m.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,m.extTextureFilterAnisotropicMax);const[C,S,E,k]=n?h.getPoleBuffers(n.canonical.z,!1):h.getPoleBuffers(0,!0),T=o.paint.get("raster-elevation");let I;t?(I=C,r.renderDefaultNorthPole=0!==T):(I=S,r.renderDefaultSouthPole=0!==T);const O=Zr(s.mix),R=((e,t,n,r,i,o,a,s,l,c,u,h,d)=>gr(e,t,n,new Float32Array(16),new Float32Array(9),[0,0],r,[0,0],[0,0,0,0],1,i,o,a||[0,0],s,l,c,u,h,1,0,d))(x,w,p,e.a2(r.transform.zoom),{opacity:1,mix:0},o,[0,0],T,2,O,s.offset,s.range,a),M=r.getOrCreateProgram("raster",{defines:b});r.uploadCommonUniforms(m,M,null),M.draw(r,g.TRIANGLES,A,c,v,l,R,o.id,I,E,k)}function $r(e){const t=e._nearZ,n=e.projection.farthestPixelDistance(e),r=n-t,i=.2*e.height,o=t+i;return[t,n,(o-i-t)/r,(o-t)/r]}function ei(t,n,r,i){if(t)return n instanceof _n&&t instanceof e.c5?n.getTextureDescriptor(t,r,!0):{texture:t.texture,mix:Zr(i.mix),offset:i.offset,buffer:0,tileSize:1}}function ti(t,n,r){if(!t)return null;const i=n.getTextureDescriptor(t,r,!0);if(!i)return null;let{texture:o,mix:a,offset:s,tileSize:l,buffer:c,format:u}=i;if(!o||!u)return null;let h=!1;return"uint32"===u&&(h=!0,a[3]=0,a=pr(e.c6,a,[0,r.paint.get("raster-particle-max-speed")]),s=mr(e.c6,s,[0,r.paint.get("raster-particle-max-speed")])),{texture:o,textureOffset:[c/(l+2*c),l/(l+2*c)],tileSize:l,scalarData:h,scale:a,offset:s,defines:["RASTER_ARRAY",{uint8:"DATA_FORMAT_UINT8",uint16:"DATA_FORMAT_UINT16",uint32:"DATA_FORMAT_UINT32"}[u]]}}function ni(e){const t=e._nearZ,n=e.projection.farthestPixelDistance(e),r=n-t,i=.2*e.height,o=t+i;return[t,n,(o-i-t)/r,(o-t)/r]}const ri=new e.C(1,0,0,1),ii=new e.C(0,1,0,1),oi=new e.C(0,0,1,1),ai=new e.C(1,0,1,1),si=new e.C(0,1,1,1);function li(e){const t=e.transform.padding;ui(e,e.transform.height-(t.top||0),3,ri),ui(e,t.bottom||0,3,ii),hi(e,t.left||0,3,oi),hi(e,e.transform.width-(t.right||0),3,ai);const n=e.transform.centerPoint;!function(e,t,n,r){const i=20,o=2;di(e,t-o/2,n-i/2,o,i,r),di(e,t-i/2,n-o/2,i,o,r)}(e,n.x,e.transform.height-n.y,si)}function ci(t,n,r,i,o,a,s){const l=t.context,c=t.transform,u=l.gl,h="globe"===c.projection.name,d=h?["PROJECTION_GLOBE_VIEW"]:[];let f=e.ae.clone(r.projMatrix);if(h&&e.a2(c.zoom)>0){const t=e.c7(r.canonical,c),n=e.c8(t);f=e.ae.multiply(new Float32Array(16),c.globeMatrix,n),e.ae.multiply(f,c.projMatrix,f)}const p=e.ae.create();p[12]+=2*o/(e.e.devicePixelRatio*c.width),p[13]+=2*a/(e.e.devicePixelRatio*c.height),e.ae.multiply(f,p,f);const m=t.getOrCreateProgram("debug",{defines:d}),g=n.getTileByID(r.key);t.terrain&&t.terrain.setupElevationDraw(g,m);const y=e.af.disabled,v=e.ah.disabled,b=t.colorModeForRenderPass(),A="$debug";l.activeTexture.set(u.TEXTURE0),t.emptyTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE),h?g._makeGlobeTileDebugBuffers(t.context,c):g._makeDebugTileBoundsBuffers(t.context,c.projection);const x=g._tileDebugBuffer||t.debugBuffer,w=g._tileDebugIndexBuffer||t.debugIndexBuffer,C=g._tileDebugSegments||t.debugSegments;if(m.draw(t,u.LINE_STRIP,y,v,b,e.ag.disabled,hr(f,i),A,x,w,C,null,null,null,[g._globeTileDebugBorderBuffer]),s){const e=g.latestRawTileData,n=e&&e.byteLength||0,i=Math.floor(n/1024);let o=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(o+=` => ${r.overscaledZ}`),o+=` ${g.state}`,o+=` ${i}kb`,function(e,t){e.initDebugOverlayCanvas();const n=e.debugOverlayCanvas,r=e.context.gl,i=e.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,n.width,n.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(t,5,5),i.strokeText(t,5,5),e.debugOverlayTexture.update(n),e.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(t,o)}const S=n.getTile(r).tileSize,E=512/Math.min(S,512)*(r.overscaledZ/c.zoom)*.5,k=g._tileDebugTextBuffer||t.debugBuffer,T=g._tileDebugTextIndexBuffer||t.quadTriangleIndexBuffer,I=g._tileDebugTextSegments||t.debugSegments;m.draw(t,u.TRIANGLES,y,v,e.a.alphaBlended,e.ag.disabled,hr(f,e.C.transparent,E),A,k,T,I,null,null,null,[g._globeTileDebugTextBuffer])}function ui(e,t,n,r){di(e,0,t+n/2,e.transform.width,n,r)}function hi(e,t,n,r){di(e,t-n/2,0,n,e.transform.height,r)}function di(t,n,r,i,o,a){const s=t.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(n*e.e.devicePixelRatio,r*e.e.devicePixelRatio,i*e.e.devicePixelRatio,o*e.e.devicePixelRatio),s.clear({color:a}),l.disable(l.SCISSOR_TEST)}const fi=e.c9([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:pi,size:mi,alignment:gi}=fi;function yi(e,t,n,r){e.emplaceBack(t,n,r)}class vi{constructor(t){this.vertexArray=new e.ca,this.indices=new e.bw,yi(this.vertexArray,-1,-1,1),yi(this.vertexArray,1,-1,1),yi(this.vertexArray,-1,1,1),yi(this.vertexArray,1,1,1),yi(this.vertexArray,-1,-1,-1),yi(this.vertexArray,1,-1,-1),yi(this.vertexArray,-1,1,-1),yi(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=t.createVertexBuffer(this.vertexArray,pi),this.indexBuffer=t.createIndexBuffer(this.indices),this.segment=e.b.simpleSegment(0,0,36,12)}}function bi(t,n,r,i,o,a){const s=t.context.gl,l=n.paint.get("sky-atmosphere-color"),c=n.paint.get("sky-atmosphere-halo-color"),u=n.paint.get("sky-atmosphere-sun-intensity"),h=((e,t,n,r,i)=>({u_matrix_3f:e,u_sun_direction:t,u_sun_intensity:n,u_color_tint_r:[r.r,r.g,r.b,r.a],u_color_tint_m:[i.r,i.g,i.b,i.a],u_luminance:5e-5}))(e.bE.fromMat4(e.bE.create(),i),o,u,l,c),d=s.TEXTURE_CUBE_MAP_POSITIVE_X+a;s.framebufferTexture2D(s.FRAMEBUFFER,s.COLOR_ATTACHMENT0,d,n.skyboxTexture,0),r.draw(t,s.TRIANGLES,e.af.disabled,e.ah.disabled,e.a.unblended,e.ag.frontCW,h,"skyboxCapture",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}const Ai=e.c9([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]);class xi{constructor(t){const n=new e.cb;n.emplaceBack(-1,1,1,0,0),n.emplaceBack(1,1,1,1,0),n.emplaceBack(1,-1,1,1,1),n.emplaceBack(-1,-1,1,0,1);const r=new e.bw;r.emplaceBack(0,1,2),r.emplaceBack(2,3,0),this.vertexBuffer=t.createVertexBuffer(n,Ai.members),this.indexBuffer=t.createIndexBuffer(r),this.segments=e.b.simpleSegment(0,0,4,2)}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy()}}const wi=e.c9([{type:"Float32",name:"a_pos_3f",components:3},{type:"Float32",name:"a_uv",components:2},{type:"Float32",name:"a_size_scale",components:1},{type:"Float32",name:"a_fade_opacity",components:1}]);class Ci{constructor(){this.starsCount=16e3,this.sizeMultiplier=.15,this.sizeRange=100,this.intensityRange=200}}class Si{constructor(t){this.colorModeAlphaBlendedWriteRGB=new e.a([e.cc,e.cd,e.cc,e.cd],e.C.transparent,[!0,!0,!0,!1]),this.colorModeWriteAlpha=new e.a([e.cc,e.ce,e.cc,e.ce],e.C.transparent,[!1,!1,!1,!0]),this.params=new Ci,this.updateNeeded=!0,t.tp.registerParameter(this.params,["Stars"],"starsCount",{min:100,max:16e3,step:1},(()=>{this.updateNeeded=!0})),t.tp.registerParameter(this.params,["Stars"],"sizeMultiplier",{min:.01,max:2,step:.01}),t.tp.registerParameter(this.params,["Stars"],"sizeRange",{min:0,max:200,step:1},(()=>{this.updateNeeded=!0})),t.tp.registerParameter(this.params,["Stars"],"intensityRange",{min:0,max:200,step:1},(()=>{this.updateNeeded=!0}))}update(t){const n=t.context;if(!this.atmosphereBuffer||this.updateNeeded){this.updateNeeded=!1,this.atmosphereBuffer=new xi(n);const t=this.params.sizeRange,r=this.params.intensityRange,i=function(t){const n=e.ch(30),r=[];for(let i=0;i{const l="globe"===o.projection.name?["PROJECTION_GLOBE_VIEW","FOG"]:["FOG"];n&&l.push("ALPHA_PASS");const d=t.getOrCreateProgram("globeAtmosphere",{defines:l}),p=((e,t,n,r,i,o,a,s,l,c,u,h)=>({u_frustum_tl:e,u_frustum_tr:t,u_frustum_br:n,u_frustum_bl:r,u_horizon:i,u_transition:o,u_fadeout_range:a,u_color:s,u_high_color:l,u_space_color:c,u_temporal_offset:u,u_horizon_angle:h}))(o.frustumCorners.TL,o.frustumCorners.TR,o.frustumCorners.BR,o.frustumCorners.BL,o.frustumCorners.horizon,s,f,c,u,h,m,b);t.uploadCommonUniforms(r,d);const g=this.atmosphereBuffer,y=n?this.colorModeWriteAlpha:this.colorModeAlphaBlendedWriteRGB,v=n?"atmosphere_glow_alpha":"atmosphere_glow";g&&d.draw(t,i.TRIANGLES,a,e.ah.disabled,y,e.ag.backCW,p,v,g.vertexBuffer,g.indexBuffer,g.segments)};A(!1),A(!0)}drawStars(t,n){const r=e.au(n.properties.get("star-intensity"),0,1);if(0===r)return;const i=t.context,o=i.gl,a=t.transform,s=t.getOrCreateProgram("stars"),l=e.aw.identity([]);e.aw.rotateX(l,l,-a._pitch),e.aw.rotateZ(l,l,-a.angle),e.aw.rotateX(l,l,e.ac(a._center.lat)),e.aw.rotateY(l,l,-e.ac(a._center.lng));const c=e.ae.fromQuat(new Float32Array(16),l),u=e.ae.multiply([],a.starsProjMatrix,c),h=e.bE.fromMat4([],c),d=e.bE.invert([],h),f=[0,1,0];e.$.transformMat3(f,f,d),e.$.scale(f,f,this.params.sizeMultiplier);const p=[1,0,0];e.$.transformMat3(p,p,d),e.$.scale(p,p,this.params.sizeMultiplier);const m=(g=u,y=f,v=p,b=r,{u_matrix:Float32Array.from(g),u_up:y,u_right:v,u_intensity_multiplier:b});var g,y,v,b;t.uploadCommonUniforms(i,s),this.starsVx&&this.starsIdx&&s.draw(t,o.TRIANGLES,e.af.disabled,e.ah.disabled,this.colorModeAlphaBlendedWriteRGB,e.ag.disabled,m,"atmosphere_stars",this.starsVx,this.starsIdx,this.starsSegments)}}function Ei(t,n){const r=[...t],i=n.cameraWorldSizeForFog/n.worldSize,o=e.ae.identity([]);return e.ae.scale(o,o,[i,i,1]),e.ae.multiply(r,o,r),e.ae.multiply(r,n.worldToFogMatrix,r),r}function ki(t,n,r,i,o){const a=r.material,s=i.context,{baseColorTexture:l,metallicRoughnessTexture:c}=a.pbrMetallicRoughness,{normalTexture:u,occlusionTexture:h,emissionTexture:d}=a;function f(e,n,r){if(e&&(t.push(n),s.activeTexture.set(s.gl.TEXTURE0+r),e.gfxTexture)){const{minFilter:t,magFilter:n,wrapS:r,wrapT:i}=e.sampler;e.gfxTexture.bindExtraParam(t,n,r,i)}}if(f(l,"HAS_TEXTURE_u_baseColorTexture",mn),f(c,"HAS_TEXTURE_u_metallicRoughnessTexture",gn),f(u,"HAS_TEXTURE_u_normalTexture",yn),f(h,"HAS_TEXTURE_u_occlusionTexture",vn),f(d,"HAS_TEXTURE_u_emissionTexture",bn),o&&(o.texture||(o.texture=new e.cj(i.context,o.image,[o.image.height,o.image.height,o.image.height],s.gl.RGBA)),s.activeTexture.set(s.gl.TEXTURE0+An),o.texture&&o.texture.bind(s.gl.LINEAR,s.gl.CLAMP_TO_EDGE),t.push("APPLY_LUT_ON_GPU")),r.texcoordBuffer&&(t.push("HAS_ATTRIBUTE_a_uv_2f"),n.push(r.texcoordBuffer)),r.colorBuffer){const e=12===r.colorBuffer.itemSize?"HAS_ATTRIBUTE_a_color_3f":"HAS_ATTRIBUTE_a_color_4f";t.push(e),n.push(r.colorBuffer)}r.normalBuffer&&(t.push("HAS_ATTRIBUTE_a_normal_3f"),n.push(r.normalBuffer)),r.pbrBuffer&&(t.push("HAS_ATTRIBUTE_a_pbr"),t.push("HAS_ATTRIBUTE_a_heightBasedEmissiveStrength"),n.push(r.pbrBuffer)),"OPAQUE"!==a.alphaMode&&"MASK"!==a.alphaMode||t.push("UNPREMULT_TEXTURE_IN_SHADER"),a.defined||t.push("DIFFUSE_SHADED"),t.push("USE_STANDARD_DERIVATIVES")}function Ti(t,n,r,i,o,a){const s=r.paint.get("model-opacity"),l=n.context,c=new e.af(n.context.gl.LEQUAL,e.af.ReadWrite,n.depthRangeFor3D),u=n.transform,h=t.mesh,d=h.material,f=d.pbrMetallicRoughness,p=n.style.fog;let m;m="pixels"===n.transform.projection.zAxisUnit?[...t.nodeModelMatrix]:e.ae.multiply([],i.zScaleMatrix,t.nodeModelMatrix),e.ae.multiply(m,i.negCameraPosMatrix,m);const g=e.ae.invert([],m);e.ae.transpose(g,g);const y=r.paint.get("model-emissive-strength").constantOr(0),v=Or(new Float32Array(t.worldViewProjection),new Float32Array(m),new Float32Array(g),null,n,s,f.baseColorFactor.toRenderColor(null),d.emissiveFactor,f.metallicFactor,f.roughnessFactor,d,y,r),b={defines:[]},A=[];ki(b.defines,A,h,n,r.lut);const x=n.shadowRenderer;x&&(x.useNormalOffset=!1);let w=null;if(p){const e=Ei(t.nodeModelMatrix,n.transform);if(w=new Float32Array(e),"globe"!==u.projection.name){const t=h.aabb.min,n=h.aabb.max,[r,i]=p.getOpacityForBounds(e,t[0],t[1],n[0],n[1]);b.overrideFog=r>=$e||i>=$e}}const C=wn(n,r.paint.get("model-cutoff-fade-range"));C.shouldRenderCutoff&&b.defines.push("RENDER_CUTOFF");const S=n.getOrCreateProgram("model",b);n.uploadCommonUniforms(l,S,null,w,C),"shadow"!==n.renderPass&&x&&x.setupShadowsFromMatrix(t.nodeModelMatrix,S);const E=h.material.doubleSided?e.ag.disabled:e.ag.backCCW;S.draw(n,l.gl.TRIANGLES,c,o,a,E,v,r.id,h.vertexBuffer,h.indexBuffer,h.segments,r.paint,n.transform.zoom,void 0,A)}function Ii(t,n,r,i,o,a,s){let l;l="globe"===t.projection.name?e.ck(r,t):[...r],e.ae.multiply(l,l,n.matrix);const c=e.ae.multiply([],i,l);if(n.meshes)for(const t of n.meshes){if("BLEND"!==t.material.alphaMode){const e={mesh:t,depth:0,modelIndex:o,worldViewProjection:c,nodeModelMatrix:l};s.push(e);continue}const n=e.$.transformMat4([],t.centroid,c);if(n[2]>0){const e={mesh:t,depth:n[2],modelIndex:o,worldViewProjection:c,nodeModelMatrix:l};a.push(e)}}if(n.children)for(const e of n.children)Ii(t,e,r,i,o,a,s)}function Oi(t,n,r,i){const o=r.shadowRenderer;if(!o)return;const a=o.getShadowPassDepthMode(),s=o.getShadowPassColorMode(),l=o.calculateShadowPassMatrixFromMatrix(n),c=Rr(l),u=r._shadowMapDebug?[]:["DEPTH_TEXTURE"],h=r.getOrCreateProgram("modelDepth",{defines:u}),d=r.context;h.draw(r,d.gl.TRIANGLES,a,e.ah.disabled,s,e.ag.backCCW,c,i.id,t.vertexBuffer,t.indexBuffer,t.segments,i.paint,r.transform.zoom,void 0,void 0)}function Ri(t,n,r){const i=n.updateZoomBasedPaintProperties(),o=function(t,n,r){let i,o,a,s=t.terrain?t.terrain.exaggeration():0;if(t.terrain&&s>0){const n=t.terrain,o=n.findDEMTileFor(r);o&&o.dem?i=e.cm.create(n,r,o):s=0}if(0===s&&(n.terrainElevationMin=0,n.terrainElevationMax=0),s===n.validForExaggeration&&(0===s||i&&i._demTile&&i._demTile.tileID===n.validForDEMTile.id&&i._dem._timestamp===n.validForDEMTile.timestamp))return!1;for(const e in n.instancesPerModel){const t=n.instancesPerModel[e];for(let e=0;eu&&(u=e.max)}const h=e.au(i.x,a,s)-i.x,d=e.au(i.y,l,c)-i.y,f=e.ay(u,n.center.lat)-i.z;return n._zoomFromMercatorZ(Math.sqrt(h*h+d*d+f*f))}const Di=20;function ji(t,n,r,i,o,a,s){const l=t.context,c="shadow"===t.renderPass,u=t.shadowRenderer,h=c&&u?u.getShadowPassDepthMode():new e.af(l.gl.LEQUAL,e.af.ReadWrite,t.depthRangeFor3D),d=t.isTileAffectedByFog(a);if(r.meshes)for(const f of r.meshes){const p=["MODEL_POSITION_ON_GPU"],m=[];let g,y,v;i.instancedDataArray.length>Di&&p.push("INSTANCED_ARRAYS");const b=wn(t,n.paint.get("model-cutoff-fade-range"));if(b.shouldRenderCutoff&&p.push("RENDER_CUTOFF"),c&&u)g=t.getOrCreateProgram("modelDepth",{defines:p}),y=Rr(s.shadowTileMatrix,s.shadowTileMatrix,Float32Array.from(r.matrix)),v=u.getShadowPassColorMode();else{ki(p,m,f,t,n.lut),g=t.getOrCreateProgram("model",{defines:p,overrideFog:d});const i=f.material,c=i.pbrMetallicRoughness,h=n.paint.get("model-opacity"),A=n.paint.get("model-emissive-strength").constantOr(0);y=Or(a.expandedProjMatrix,Float32Array.from(r.matrix),new Float32Array(16),null,t,h,c.baseColorFactor.toRenderColor(null),i.emissiveFactor,c.metallicFactor,c.roughnessFactor,i,A,n,o),u&&(s.shadowUniformsInitialized?g.setShadowUniformValues(l,u.getShadowUniformValues()):(u.setupShadows(a.toUnwrapped(),g,"model-tile",a.overscaledZ),s.shadowUniformsInitialized=!0)),v=b.shouldRenderCutoff||h<1||"OPAQUE"!==i.alphaMode?e.a.alphaBlended:e.a.unblended}t.uploadCommonUniforms(l,g,a.toUnwrapped(),null,b);const A=f.material.doubleSided?e.ag.disabled:e.ag.backCCW;if(i.instancedDataArray.length>Di)m.push(i.instancedDataBuffer),g.draw(t,l.gl.TRIANGLES,h,e.ah.disabled,v,A,y,n.id,f.vertexBuffer,f.indexBuffer,f.segments,n.paint,t.transform.zoom,void 0,m,i.instancedDataArray.length);else{const r=c?"u_instance":"u_normal_matrix";for(let o=0;ou[1]?l:u,s[0]=r.max[0],l=e.aB.transformMat4([],s,a),c=l[1]u[1]?l:u,s[1]=r.min[1],l=e.aB.transformMat4([],s,a),c=l[1]u[1]?l:u;const h=e.au(i[0],0,1),d=100*n.pixelsPerMeter*e.au(i[1],0,1),f=e.au(i[2],0,1),p=e.$.lerp([],c,u,h),m=Math.tan(.5*n.fovX),g=-p[2]*m;if(0===d)return p[1]<-Math.abs(g)?f:1;const y=(-Math.abs(g)-p[1])/d,v=(e,t,n)=>(1-n)*e+n*t,b=e.au(v(1,f,y),f,1);return v(1,b,e.au((n.pitch-20)/20,0,1))}class _i{}class zi{constructor(){this._storage=new Map}getLinesFromTrianglesBuffer(t,n,r){{const e=this._storage.get(n.id);if(e)return e.lastUsedFrameIdx=t,e.buf}const i=r.gl,o=i.getBufferParameter(i.ELEMENT_ARRAY_BUFFER,i.BUFFER_SIZE),a=new ArrayBuffer(o),s=new Int16Array(a);i.getBufferSubData(i.ELEMENT_ARRAY_BUFFER,0,new Int16Array(a));const l=new e.co;for(let e=0;e30&&(n.buf.destroy(),this._storage.delete(t))}destroy(){for(const[e,t]of this._storage)t.buf.destroy(),this._storage.delete(e)}}class Vi{constructor(e){this.occluderSize=30,this.depthOffset=-1e-4,e.registerParameter(this,["Occlusion"],"occluderSize",{min:1,max:100,step:1}),e.registerParameter(this,["Occlusion"],"depthOffset",{min:-.05,max:0,step:1e-5})}}const Ui={symbol:function(t,n,r,i,o){if("translucent"!==t.renderPass)return;const a=e.ah.disabled,s=t.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(t,n,r,i,o,a,s){const l=n.transform,c="map"===o,u="map"===a;for(const n of t){const t=i.getTile(n),o=t.getBucket(r);if(!o||!o.text||!o.text.segments.get().length)continue;const a=o.textSizeData,h=e.aE(a,l.zoom),d=jr(n,o.getProjection(),l),f=l.calculatePixelsToTileUnitsMatrix(t),p=Jt(d,t.tileID.canonical,u,c,l,o.getProjection(),f),m=o.hasIconTextFit()&&o.hasIconData();if(h){const r=Math.pow(2,l.zoom-t.tileID.overscaledZ);zr(o,c,u,s,e.bQ,l,p,n,r,h,m)}}}(i,t,r,n,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),o);const l=0!==r.paint.get("icon-opacity").constantOr(1),c=0!==r.paint.get("text-opacity").constantOr(1);void 0!==r.layout.get("symbol-sort-key").constantOr(1)&&(l||c)?Vr(t,n,r,i,a,s):(l&&Vr(t,n,r,i,a,s,{onlyIcons:!0}),c&&Vr(t,n,r,i,a,s,{onlyText:!0})),n.map.showCollisionBoxes&&(Lr(t,n,r,i,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),Lr(t,n,r,i,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))},circle:function(t,n,r,i){if("translucent"!==t.renderPass)return;const o=r.paint.get("circle-opacity"),a=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),l=void 0!==r.layout.get("circle-sort-key").constantOr(1),c=r.paint.get("circle-emissive-strength");if(0===o.constantOr(1)&&(0===a.constantOr(1)||0===s.constantOr(1)))return;const u=t.context,h=u.gl,d=t.transform,f=t.depthModeForSublayer(0,e.af.ReadOnly),p=e.ah.disabled,m=t.colorModeForDrapableLayerRenderPass(c),g="globe"===d.projection.name,y=[e.ak(d.center.lng),e.al(d.center.lat)],v=[];for(let o=0;oe.sortKey-t.sortKey));const b={useDepthForOcclusion:d.depthOcclusionForSymbolsAndCircles};for(const n of v){const{programConfiguration:i,program:o,layoutVertexBuffer:a,globeExtVertexBuffer:s,indexBuffer:l,uniformValues:c,tile:g}=n.state,y=n.segments;t.terrain&&t.terrain.setupElevationDraw(g,o,b),t.uploadCommonUniforms(u,o,g.tileID.toUnwrapped()),o.draw(t,h.TRIANGLES,f,p,m,e.ag.disabled,c,r.id,a,l,y,r.paint,d.zoom,i,[s])}},heatmap:function(t,n,r,i){if(0!==r.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){const o=t.context,a=o.gl,s=e.ah.disabled,l=new e.a([a.ONE,a.ONE,a.ONE,a.ONE],e.C.transparent,[!0,!0,!0,!0]);(function(e,t,n,r){const i=e.gl,o=t.width*r,a=t.height*r;e.activeTexture.set(i.TEXTURE1),e.viewport.set([0,0,o,a]);let s=n.heatmapFbo;if(!s||s&&(s.width!==o||s.height!==a)){s&&s.destroy();const t=i.createTexture();i.bindTexture(i.TEXTURE_2D,t),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),s=n.heatmapFbo=e.createFramebuffer(o,a,!0,null),function(e,t,n,r,i,o){const a=e.gl,s=e.extRenderToTextureHalfFloat?a.HALF_FLOAT:a.UNSIGNED_BYTE;a.texImage2D(a.TEXTURE_2D,0,e.extRenderToTextureHalfFloat?a.RGBA16F:a.RGBA,i,o,0,a.RGBA,s,null),r.colorAttachment.set(n)}(e,0,t,s,o,a)}else i.bindTexture(i.TEXTURE_2D,s.colorAttachment.get()),e.bindFramebuffer.set(s.framebuffer)})(o,t,r,"globe"===t.transform.projection.name?.5:.25),o.clear({color:e.C.transparent});const c=t.transform,u="globe"===c.projection.name,h=u?["PROJECTION_GLOBE_VIEW"]:[],d=u?e.ag.frontCCW:e.ag.disabled,f=[e.ak(c.center.lng),e.al(c.center.lat)];for(let p=0;p({u_image:n,u_color_ramp:r,u_opacity:t.paint.get("heatmap-opacity")}))(0,n,0,1),n.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,n.paint,t.transform.zoom)}(t,r))},line:function(t,n,r,i){if("translucent"!==t.renderPass)return;const o=r.paint.get("line-opacity"),a=r.paint.get("line-width");if(0===o.constantOr(1)||0===a.constantOr(1))return;const s=r.paint.get("line-emissive-strength"),l=r.paint.get("line-occlusion-opacity"),c=t.context,u=c.gl,h=r.layout.get("line-z-offset"),d=!h.isConstant()||!!h.constantOr(0),f=d?new e.af(t.depthOcclusion?u.GREATER:u.LEQUAL,e.af.ReadOnly,t.depthRangeFor3D):t.depthModeForSublayer(0,e.af.ReadOnly),p=t.colorModeForDrapableLayerRenderPass(s),m=t.terrain&&t.terrain.renderingToTexture,g=m?1:e.e.devicePixelRatio,y=r.paint.get("line-dasharray"),v=y.constantOr(1),b=r.layout.get("line-cap"),A=y.constantOr(null),x=b.constantOr(null),w=r.paint.get("line-pattern"),C=w.constantOr(1),S=w.constantOr(null),E=r.paint.get("line-opacity").constantOr(1);let k=!C&&1!==E||t.depthOcclusion&&l>0&&l<1;const T=r.paint.get("line-gradient"),I=C?"linePattern":"line",O=e.bV(r);let R;if(m&&t.terrain&&t.terrain.clipOrMaskOverlapStencilType()&&(k=!1),0!==l&&t.depthOcclusion){const t=r.paint._values["line-opacity"];t&&t.value&&"constant"===t.value.kind?R=t.value:e.w(`Occlusion opacity for layer ${r.id} is supported only when line-opacity isn't data-driven.`)}if(d&&(t.forceTerrainMode=!0),!d&&0!==l&&t.terrain&&!m)return void e.w(`Occlusion opacity for layer ${r.id} is supported on terrain only if the layer has non-zero line-z-offset.`);const M=k&&d?t.stencilModeFor3D():e.ah.disabled;for(const o of i){const i=n.getTile(o);if(C&&!i.patternsLoaded())continue;const a=i.getBucket(r);if(!a)continue;t.prepareDrawTile();const s=a.programConfigurations.get(r.id),h=t.isTileAffectedByFog(o),y=t.getOrCreateProgram(I,{config:s,defines:d?[...O,"ELEVATED"]:O,overrideFog:h});if(S&&i.imageAtlas){const e=i.imageAtlas.patternPositions[S.toString()];e&&s.setConstantPatternPositions(e)}if(!C&&A&&x&&i.lineAtlas){const e=i.lineAtlas.getDash(A,x);e&&s.setConstantPatternPositions(e)}let[b,w]=r.paint.get("line-trim-offset");if("round"===x||"square"===x){const e=1;b!==w&&(0===b&&(b-=e),1===w&&(w+=e))}const P=m?o.projMatrix:null,D=C?e.bW(t,i,r,P,g,[b,w]):e.bX(t,i,r,P,a.lineClipsArray.length,g,[b,w]);if(T){const i=a.gradients[r.id];let s=i.texture;if(r.gradientVersion!==i.version){let l=256;if(r.stepInterpolant){const r=n.getSource().maxzoom,i=o.canonical.z===r?Math.ceil(1<{null!=R&&(R.value=E*l),y.draw(t,u.TRIANGLES,f,n,p,e.ag.disabled,D,r.id,a.layoutVertexBuffer,a.indexBuffer,a.segments,r.paint,t.transform.zoom,s,[a.layoutVertexBuffer2,a.patternVertexBuffer,a.zOffsetVertexBuffer]),null!=R&&(R.value=E)};if(k&&!d){const n=t.stencilModeForClipping(o).ref;0===n&&m&&c.clear({stencil:0});const r={func:u.EQUAL,mask:255};D.u_alpha_discard_threshold=.8,j(new e.ah(r,n,255,u.KEEP,u.KEEP,u.INVERT)),D.u_alpha_discard_threshold=0,j(new e.ah(r,n,255,u.KEEP,u.KEEP,u.KEEP))}else k&&d&&(D.u_alpha_discard_threshold=.001),j(d?M:t.stencilModeForClipping(o))}k&&(t.resetStencilClippingMasks(),m&&c.clear({stencil:0})),0===l||t.depthOcclusion||m||t.layersWithOcclusionOpacity.push(t.currentLayer),d&&(t.forceTerrainMode=!1)},fill:function(t,n,r,i){const o=r.paint.get("fill-color"),a=r.paint.get("fill-opacity");if(0===a.constantOr(1))return;const s=r.paint.get("fill-emissive-strength"),l=t.colorModeForDrapableLayerRenderPass(s),c=r.paint.get("fill-pattern"),u=t.opaquePassEnabledForLayer()&&!c.constantOr(1)&&1===o.constantOr(e.C.transparent).a&&1===a.constantOr(0)?"opaque":"translucent";if(t.renderPass===u){const o=t.depthModeForSublayer(1,"opaque"===t.renderPass?e.af.ReadWrite:e.af.ReadOnly);Hr(t,n,r,i,o,l,!1)}if("translucent"===t.renderPass&&r.paint.get("fill-antialias")){const o=t.depthModeForSublayer(r.getPaintProperty("fill-outline-color")?2:0,e.af.ReadOnly);Hr(t,n,r,i,o,l,!0)}},"fill-extrusion":function(t,n,r,i){const o=r.paint.get("fill-extrusion-opacity"),a=t.context,s=a.gl,l=t.terrain,c=l&&l.renderingToTexture;if(0===o)return;const u=t.conflationActive&&t.style.isLayerClipped(r,n.getSource()),h=t.style.order.indexOf(r.fqid);if(u&&function(e,t,n,r,i){for(const o of r){const r=t.getTile(o).getBucket(n);r&&(r.updateReplacement(o,e.replacementSource,i),r.uploadCentroid(e.context))}}(t,n,r,i,h),l||u)for(const e of i){const i=n.getTile(e).getBucket(r);i&&Yr(t.context,n,e,i,r,l,u)}if("shadow"===t.renderPass&&t.shadowRenderer){const a=t.shadowRenderer;if(l&&o<.65&&r._transitionablePaint._values["fill-extrusion-opacity"].value.expression instanceof e.Z)return;const s=a.getShadowPassDepthMode(),c=a.getShadowPassColorMode();qr(t,n,r,i,s,e.ah.disabled,c,u)}else if("translucent"===t.renderPass){const h=!r.paint.get("fill-extrusion-pattern").constantOr(1),d=r.paint.get("fill-extrusion-color").constantOr(e.C.white);if(!c&&0!==d.a){const a=new e.af(t.context.gl.LEQUAL,e.af.ReadWrite,t.depthRangeFor3D);1===o&&h?qr(t,n,r,i,a,e.ah.disabled,e.a.unblended,u):(qr(t,n,r,i,a,e.ah.disabled,e.a.disabled,u),qr(t,n,r,i,a,t.stencilModeFor3D(),t.colorModeForRenderPass(),u),t.resetStencilClippingMasks())}const f=t.style.enable3dLights(),p=!l,m="globe"!==t.transform.projection.name;if(f&&h&&(p&&m||c)){const o=r.paint.get("fill-extrusion-opacity"),h=r.paint.get("fill-extrusion-ambient-occlusion-intensity"),d=r.paint.get("fill-extrusion-ambient-occlusion-ground-radius"),f=r.paint.get("fill-extrusion-flood-light-intensity"),p=r.paint.get("fill-extrusion-flood-light-color").toRenderColor(r.lut).toArray01().slice(0,3),m=h>0&&d>0,g=f>0,y=(e,t,n)=>(1-n)*e+n*t,v=a=>{const l=t.depthModeForSublayer(1,e.af.ReadOnly,s.LEQUAL,!0),c=a?r.paint.get("fill-extrusion-ambient-occlusion-ground-attenuation"):r.paint.get("fill-extrusion-flood-light-ground-attenuation"),m=y(.1,3,c),g=t._showOverdrawInspector;if(!g){const c=new e.ah({func:s.ALWAYS,mask:255},255,255,s.KEEP,s.KEEP,s.REPLACE),g=new e.a([s.ONE,s.ONE,s.ONE,s.ONE],e.C.transparent,[!1,!1,!1,!0],s.MIN);Gr(t,n,r,i,l,c,g,e.ag.disabled,a,"sdf",o,h,d,f,p,m,u,!1)}{const c=g?e.ah.disabled:new e.ah({func:s.EQUAL,mask:255},255,255,s.KEEP,s.DECR,s.DECR),y=g?t.colorModeForRenderPass():new e.a([s.ONE_MINUS_DST_ALPHA,s.DST_ALPHA,s.ONE,s.ONE],e.C.transparent,[!0,!0,!0,!0]);Gr(t,n,r,i,l,c,y,e.ag.disabled,a,"color",o,h,d,f,p,m,u,!1)}};if(c){const c=(a,l,c)=>{const m=t.depthModeForSublayer(1,e.af.ReadOnly,s.LEQUAL,!1),g=a?r.paint.get("fill-extrusion-ambient-occlusion-ground-attenuation"):r.paint.get("fill-extrusion-flood-light-ground-attenuation"),v=y(.1,3,g);{const c=new e.a([s.ONE,s.ONE,s.ONE,s.ONE],e.C.transparent,[!1,!1,!1,!0]);Gr(t,n,r,i,m,e.ah.disabled,c,e.ag.disabled,a,"clear",o,h,d,f,p,v,u,l)}{const c=new e.ah({func:s.ALWAYS,mask:255},255,255,s.KEEP,s.KEEP,s.REPLACE),g=new e.a([s.ONE,s.ONE,s.ONE,s.ONE],e.C.transparent,[!1,!1,!1,!0],s.MIN);Gr(t,n,r,i,m,c,g,e.ag.disabled,a,"sdf",o,h,d,f,p,v,u,l)}{const c=a?s.ZERO:s.ONE_MINUS_DST_ALPHA,g=new e.ah({func:s.EQUAL,mask:255},255,255,s.KEEP,s.DECR,s.DECR),y=new e.a([c,s.DST_ALPHA,s.ONE_MINUS_DST_ALPHA,s.ZERO],e.C.transparent,[!0,!0,!0,!0]);Gr(t,n,r,i,m,g,y,e.ag.disabled,a,"color",o,h,d,f,p,v,u,l)}{const g=a?s.ZERO:s.ONE,y=a?s.FUNC_ADD:s.MAX,b=new e.a([s.ONE,s.ONE,s.ONE,g],e.C.transparent,[!1,!1,!1,!0],y);Gr(t,n,r,i,m,e.ah.disabled,b,e.ag.disabled,a,"clear",o,h,d,f,p,v,u,l,c)}};if(m||g){let n;if(t.prepareDrawTile(),l){const t=l.drapeBufferSize[0],r=l.drapeBufferSize[1];n=l.framebufferCopyTexture,n&&(!n||n.size[0]===t&&n.size[1]===r)||(n&&n.destroy(),n=l.framebufferCopyTexture=new e.T(a,new e.j({width:t,height:r}),s.RGBA)),n.bind(s.LINEAR,s.CLAMP_TO_EDGE),s.copyTexImage2D(s.TEXTURE_2D,0,s.RGBA,0,0,t,r,0)}m&&c(!0,!1,n),g&&c(!1,!0,n)}}else m&&v(!0),g&&v(!1),(m||g)&&t.resetStencilClippingMasks()}}},hillshade:function(t,n,r,i){if("offscreen"!==t.renderPass&&"translucent"!==t.renderPass)return;if(t.style.disableElevatedTerrain)return;const o=t.context,a=t.terrain&&t.terrain.renderingToTexture,[s,l]="translucent"!==t.renderPass||a?[{},i]:t.stencilConfigForOverlap(i);for(const i of l){const o=n.getTile(i);if(o.needsHillshadePrepare&&"offscreen"===t.renderPass)Pt(t,o,r);else if("translucent"===t.renderPass){const n=t.depthModeForSublayer(0,e.af.ReadOnly),l=r.paint.get("hillshade-emissive-strength"),c=t.colorModeForDrapableLayerRenderPass(l),u=a&&t.terrain?t.terrain.stencilModeForRTTOverlap(i):s[i.overscaledZ];Rt(t,i,o,r,n,u,c)}}o.viewport.set([0,0,t.width,t.height]),t.resetStencilClippingMasks()},raster:function(t,n,r,i,o,a){if("translucent"!==t.renderPass)return;if(0===r.paint.get("raster-opacity"))return;const s="globe"===t.transform.projection.name,l=0!==r.paint.get("raster-elevation"),c=l&&s;if(t.renderElevatedRasterBackface&&!c)return;const u=t.context,h=u.gl,d=n.getSource(),f=function(t,n,r,i){const o=n.paint.get("raster-color"),a="raster-array"===t.type,s=[],l=n.paint.get("raster-resampling"),c=n.paint.get("raster-color-mix");let u=n.paint.get("raster-color-range");const h=[c[0],c[1],c[2],0],d=c[3];let f="nearest"===l?i.NEAREST:i.LINEAR;if(a&&(s.push("RASTER_ARRAY"),o||s.push("RASTER_COLOR"),"linear"===l&&s.push("RASTER_ARRAY_LINEAR"),f=i.NEAREST,!u&&t.rasterLayers)){const e=t.rasterLayers.find((({id:e})=>e===n.sourceLayer));e&&e.fields&&e.fields.range&&(u=e.fields.range)}if(u=u||[0,1],o){s.push("RASTER_COLOR"),r.activeTexture.set(i.TEXTURE2),n.updateColorRamp(u);let t=n.colorRampTexture;t||(t=n.colorRampTexture=new e.T(r,n.colorRamp,i.RGBA)),t.bind(i.LINEAR,i.CLAMP_TO_EDGE)}return{mix:h,range:u,offset:d,defines:s,resampling:f}}(d,r,u,h);if(d instanceof e.bo&&!i.length&&!s)return;const p=r.paint.get("raster-emissive-strength"),m=t.colorModeForDrapableLayerRenderPass(p),g=t.terrain&&t.terrain.renderingToTexture,y=!t.options.moving,v="nearest"===r.paint.get("raster-resampling")?h.NEAREST:h.LINEAR;if(d instanceof e.bo&&!i.length&&(d.onNorthPole||d.onSouthPole)){const i=l?t.stencilModeFor3D():e.ah.disabled;return void(d.onNorthPole?Kr(!0,null,t,n,r,p,f,e.ag.disabled,i):Kr(!1,null,t,n,r,p,f,e.ag.disabled,i))}if(!i.length)return;const[b,A]=d instanceof e.bo||g?[{},i]:t.stencilConfigForOverlap(i),x=A[A.length-1].overscaledZ;c&&f.defines.push("PROJECTION_GLOBE_VIEW"),l&&f.defines.push("RENDER_CUTOFF");const w=(i,o,A)=>{for(const w of i){const i=w.toUnwrapped(),C=n.getTile(w);if(g&&(!C||!C.hasData()))continue;u.activeTexture.set(h.TEXTURE0);const S=ei(C,d,r,f);if(!S||!S.texture)continue;const{texture:E,mix:k,offset:T,tileSize:I,buffer:O}=S;let R,M;g?(R=e.af.disabled,M=w.projMatrix):l?(R=new e.af(h.LEQUAL,e.af.ReadWrite,t.depthRangeFor3D),M=s?Float32Array.from(t.transform.expandedFarZProjMatrix):t.transform.calculateProjMatrix(i,y)):(R=t.depthModeForSublayer(w.overscaledZ-x,1===r.paint.get("raster-opacity")?e.af.ReadWrite:e.af.ReadOnly,h.LESS),M=t.transform.calculateProjMatrix(i,y));const P=t.terrain&&g?t.terrain.stencilModeForRTTOverlap(w):b[w.overscaledZ],D=a?0:r.paint.get("raster-fade-duration");C.registerFadeDuration(D);const j=n.findLoadedParent(w,0),B=Nn(C,j,n,t.transform,D);let L,F;t.terrain&&t.terrain.prepareDrawTile(),u.activeTexture.set(h.TEXTURE0),E.bind(v,h.CLAMP_TO_EDGE),u.activeTexture.set(h.TEXTURE1),j?(j.texture&&j.texture.bind(v,h.CLAMP_TO_EDGE),L=Math.pow(2,j.tileID.overscaledZ-C.tileID.overscaledZ),F=[C.tileID.canonical.x*L%1,C.tileID.canonical.y*L%1]):E.bind(v,h.CLAMP_TO_EDGE),E.useMipmap&&u.extTextureFilterAnisotropic&&t.transform.pitch>20&&h.texParameterf(h.TEXTURE_2D,u.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,u.extTextureFilterAnisotropicMax);const N=t.transform;let _;const z=l?$r(N):[0,0,0,0];let V,U,H,q,G,Y=0;if(c&&d instanceof e.bo&&d.coordinates.length>3)V=Float32Array.from(e.bh(e.bi(new e.aO(0,0,0)))),U=Float32Array.from(N.globeMatrix),H=Float32Array.from(e.bd(N)),q=[e.ak(N.center.lng),e.al(N.center.lat)],_=d.elevatedGlobePerspectiveTransform,G=d.elevatedGlobeGridMatrix||new Float32Array(9);else if(c){const t=e.be(w.canonical);Y=e.bf(t.getCenter().lat),V=Float32Array.from(e.bh(e.bi(w.canonical))),U=Float32Array.from(N.globeMatrix),H=Float32Array.from(e.bd(N)),q=[e.ak(N.center.lng),e.al(N.center.lat)],_=[0,0],G=Float32Array.from(e.bg(w.canonical,t,Y,N.worldSize/N._pixelsPerMercatorPixel))}else _=d instanceof e.bo?d.perspectiveTransform:[0,0],V=new Float32Array(16),U=new Float32Array(9),H=new Float32Array(16),q=[0,0],G=new Float32Array(9);const W=gr(M,V,U,H,G,F||[0,0],e.a2(t.transform.zoom),q,z,L||1,B,r,_,l?r.paint.get("raster-elevation"):0,2,k,T,f.range,I,O,p),Q=t.isTileAffectedByFog(w),X=t.getOrCreateProgram("raster",{defines:f.defines,overrideFog:Q});if(t.uploadCommonUniforms(u,X,i),d instanceof e.bo){const n=d.elevatedGlobeVertexBuffer,i=d.elevatedGlobeIndexBuffer;if(g||!s)d.boundsBuffer&&d.boundsSegments&&X.draw(t,h.TRIANGLES,R,e.ah.disabled,m,e.ag.disabled,W,r.id,d.boundsBuffer,t.quadTriangleIndexBuffer,d.boundsSegments);else if(n&&i){const a=N.zoom<=e.b3?d.elevatedGlobeSegments:d.getSegmentsForLongitude(N.center.lng);a&&X.draw(t,h.TRIANGLES,R,e.ah.disabled,m,o,W,r.id,n,i,a)}}else if(c){R=new e.af(h.LEQUAL,e.af.ReadOnly,t.depthRangeFor3D);const n=t.globeSharedBuffers;if(n){const[e,i,a]=n.getGridBuffers(Y,!1);X.draw(t,h.TRIANGLES,R,A||P,t.colorModeForRenderPass(),o,W,r.id,e,i,a)}}else{const{tileBoundsBuffer:n,tileBoundsIndexBuffer:i,tileBoundsSegments:o}=t.getTileBoundsBuffers(C);X.draw(t,h.TRIANGLES,R,P,m,e.ag.disabled,W,r.id,n,i,o)}}if(!(d instanceof e.bo)&&c)for(const a of i){const i=0===a.canonical.y,s=a.canonical.y===(1<>>16,2654435769),((e=Math.imul(e^e>>>16,2654435769))>>>0)/4294967296},i=.9090909090909091;for(let e=0;e({u_texture:e,u_opacity:t}))(s,l),u=t.getOrCreateProgram("rasterParticleTexture",{defines:[],overrideFog:!1});for(const s of r){const[,,r,l]=s;a.colorAttachment.set(r.targetColorTexture.texture),i.viewport.set([0,0,a.width,a.height]),i.clear({color:e.C.transparent}),l&&(r.backgroundColorTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE),u.draw(t,o.TRIANGLES,e.af.disabled,e.ah.disabled,e.a.alphaBlended,e.ag.disabled,c,n.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments))}}(t,r,h),function(t,n,r,i){const o=t.context,a=o.gl,s=r.tileFramebuffer,l="globe"===t.transform.projection.name,c=r.paint.get("raster-particle-max-speed");for(const u of i){const[i,h,d]=u;o.activeTexture.set(a.TEXTURE0+0),h.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE),s.colorAttachment.set(d.targetColorTexture.texture);const f=h.defines,p=t.getOrCreateProgram("rasterParticleDraw",{defines:f,overrideFog:!1});o.activeTexture.set(a.TEXTURE0+1);const m=h.scalarData?[]:[0,1,2,3].map((t=>e.b$[t](i)));m.push(i);const g=i.canonical.x,y=i.canonical.y;for(const o of m){const s=n.getTile(l?o.wrapped():o);if(!s)continue;const u=s.rasterParticleState;if(!u)continue;const d=o.wrap-i.wrap,f=o.canonical.x+(1<e.tileID))),d&&(l.activeTexture.set(c.TEXTURE0),t.imageManager.bind(t.context,r.scope));for(const p of A){const A=t.isTileAffectedByFog(p),x=t.getOrCreateProgram(v,{overrideFog:A}),w=p.toUnwrapped(),C=i?p.projMatrix:t.transform.calculateProjMatrix(w);t.prepareDrawTile();const S=n?n.getTile(p):b?b[p.key]:new e.bA(p,h,u.zoom,t),E=d?Tr(C,s,a,t,0,r.scope,f,{tileID:p,tileSize:h}):kr(C,s,a,o.toRenderColor(r.lut));t.uploadCommonUniforms(l,x,w);const{tileBoundsBuffer:k,tileBoundsIndexBuffer:T,tileBoundsSegments:I}=t.getTileBoundsBuffers(S);x.draw(t,c.TRIANGLES,g,m,y,e.ag.disabled,E,r.id,k,T,I)}},sky:function(t,n,r){const i=t.transform,o=t._atmosphere?e.a2(i.zoom):1,a=r.paint.get("sky-opacity")*o;if(0===a)return;const s=t.context,l=r.paint.get("sky-type"),c=new e.af(s.gl.LEQUAL,e.af.ReadOnly,[0,1]),u=t.frameCounter/1e3%1;"atmosphere"===l?"offscreen"===t.renderPass?r.needsSkyboxCapture(t)&&(function(t,n,r,i){const o=t.context,a=o.gl;let s=n.skyboxFbo;if(!s){s=n.skyboxFbo=o.createFramebuffer(r,i,!0,null),n.skyboxGeometry=new vi(o),n.skyboxTexture=o.gl.createTexture(),a.bindTexture(a.TEXTURE_CUBE_MAP,n.skyboxTexture),a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_CUBE_MAP,a.TEXTURE_MAG_FILTER,a.LINEAR);for(let e=0;e<6;++e){const t=a.TEXTURE_CUBE_MAP_POSITIVE_X+e;a.texImage2D(t,0,a.RGBA,r,i,0,a.RGBA,a.UNSIGNED_BYTE,null)}}o.bindFramebuffer.set(s.framebuffer),o.viewport.set([0,0,r,i]);const l=n.getCenter(t,!0),c=t.getOrCreateProgram("skyboxCapture"),u=new Float64Array(16);e.ae.identity(u),e.ae.rotateY(u,u,.5*-Math.PI),bi(t,n,c,u,l,0),e.ae.identity(u),e.ae.rotateY(u,u,.5*Math.PI),bi(t,n,c,u,l,1),e.ae.identity(u),e.ae.rotateX(u,u,.5*-Math.PI),bi(t,n,c,u,l,2),e.ae.identity(u),e.ae.rotateX(u,u,.5*Math.PI),bi(t,n,c,u,l,3),e.ae.identity(u),bi(t,n,c,u,l,4),e.ae.identity(u),e.ae.rotateY(u,u,Math.PI),bi(t,n,c,u,l,5),o.viewport.set([0,0,t.width,t.height])}(t,r,32,32),r.markSkyboxValid(t)):"sky"===t.renderPass&&function(t,n,r,i,o){const a=t.context,s=a.gl,l=t.transform,c=t.getOrCreateProgram("skybox");a.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_CUBE_MAP,n.skyboxTexture);const u=((e,t,n,r,i)=>({u_matrix:e,u_sun_direction:t,u_cubemap:n,u_opacity:r,u_temporal_offset:i}))(l.skyboxMatrix,n.getCenter(t,!1),0,i,o);t.uploadCommonUniforms(a,c),c.draw(t,s.TRIANGLES,r,e.ah.disabled,t.colorModeForRenderPass(),e.ag.backCW,u,"skybox",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}(t,r,c,a,u):"gradient"===l&&"sky"===t.renderPass&&function(t,n,r,i,o){const a=t.context,s=a.gl,l=t.transform,c=t.getOrCreateProgram("skyboxGradient");n.skyboxGeometry||(n.skyboxGeometry=new vi(a)),a.activeTexture.set(s.TEXTURE0);let u=n.colorRampTexture;u||(u=n.colorRampTexture=new e.T(a,n.colorRamp,s.RGBA)),u.bind(s.LINEAR,s.CLAMP_TO_EDGE);const h=((t,n,r,i,o)=>({u_matrix:t,u_color_ramp:0,u_center_direction:n,u_radius:e.ac(r),u_opacity:i,u_temporal_offset:o}))(l.skyboxMatrix,n.getCenter(t,!1),n.paint.get("sky-gradient-radius"),i,o);t.uploadCommonUniforms(a,c),c.draw(t,s.TRIANGLES,r,e.ah.disabled,t.colorModeForRenderPass(),e.ag.backCW,h,"skyboxGradient",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}(t,r,c,a,u)},debug:function(t,n,r,i,o,a){for(let s=0;s{s&&(s.useNormalOffset=!0,l||(s.enabled=!0))},u=n.getSource();if("light-beam"===t.renderPass&&"batched-model"!==u.type)return;if("vector"===u.type||"geojson"===u.type)return function(t,n,r,i,o){const a=t.transform;if("mercator"!==a.projection.name)return void e.w(`Drawing 3D models for ${a.projection.name} projection is not yet implemented`);const s=a.getFreeCameraOptions().position;if(!t.modelManager)return;const l=t.modelManager;r.modelManager=l;const c=t.shadowRenderer;if(!r._unevaluatedLayout._values.hasOwnProperty("model-id"))return;const u=r._unevaluatedLayout._values["model-id"],h={...r.layout.get("model-id").parameters},d=t.style.order.indexOf(r.fqid);for(const f of i){const i=n.getTile(f).getBucket(r);if(!i||i.projection.name!==a.projection.name)continue;const p=i.getModelUris();p&&!i.modelsRequested&&(l.addModelsFromBucket(p,o),i.modelsRequested=!0);const m=Pi(f,a);h.zoom=m;const g=u.possiblyEvaluate(h);if(Ri(t,i,f),Mi.shadowUniformsInitialized=!1,Mi.useSingleShadowCascade=!!c&&0===c.getMaxCascadeForTile(f.toUnwrapped()),"shadow"===t.renderPass&&c){if(1===t.currentShadowCascade&&i.isInsideFirstShadowMapFrustum)continue;const n=a.calculatePosMatrix(f.toUnwrapped(),a.worldSize);if(Mi.tileMatrix.set(n),Mi.shadowTileMatrix=Float32Array.from(c.calculateShadowPassMatrixFromMatrix(n)),Mi.aabb.min.fill(0),Mi.aabb.max[0]=Mi.aabb.max[1]=e.a4,Mi.aabb.max[2]=0,Li(i,Mi,t,r.scope))continue}const y=1<0&&t.style.isLayerClipped(r,n.getSource())&&i.updateReplacement(f,t.replacementSource,d,o)&&(i.uploaded=!1,i.upload(t.context));for(let e in i.instancesPerModel){const n=i.instancesPerModel[e];n.features.length>0&&(e=g.evaluate(n.features[0].feature,{}));const a=l.getModel(e,o);if(a&&a.uploaded)for(const e of a.nodes)ji(t,r,e,n,v,f,Mi)}}}(t,n,r,i,"vector"===u.type?r.scope:""),void c();if(!u.loaded())return;if("batched-model"===u.type)return function(t,n,r,i){r.resetLayerRenderingStats(t);const o=t.context,a=t.transform,s=t.style.fog,l=t.shadowRenderer;if("mercator"!==a.projection.name)return void e.w(`Drawing 3D landmark models for ${a.projection.name} projection is not yet implemented`);const c=t.transform.getFreeCameraOptions().position,u=e.$.scale([],[c.x,c.y,c.z],t.transform.worldSize);e.$.negate(u,u);const h=e.ae.identity([]),d=1/e.ci(a.center.lat,a.zoom),f=e.ae.fromScaling([],[1,1,d]);e.ae.translate(h,h,u);const p=r.paint.get("model-opacity"),m=new e.af(o.gl.LEQUAL,e.af.ReadWrite,t.depthRangeFor3D),g=new e.af(o.gl.LEQUAL,e.af.ReadOnly,t.depthRangeFor3D),y=new e.b8([1/0,1/0,1/0],[-1/0,-1/0,-1/0]),v="shadow"===t.renderPass,b=v&&l?l.getCurrentCascadeFrustum():a.getFrustum(a.scaleZoom(a.worldSize)),A=r.paint.get("model-front-cutoff"),x=A[2]<1,w=wn(t,r.paint.get("model-cutoff-fade-range")),C=r.getLayerRenderingStats(),S=function(){let c,u,d;x?(c=i.length-1,u=-1,d=-1):(c=0,u=i.length,d=1);for(let S=c;S!==u;S+=d){const c=i[S],u=n.getTile(c).getBucket(r);if(!u||!u.uploaded)continue;let d=!1;l&&(d=0===l.getMaxCascadeForTile(c.toUnwrapped()));const E=a.calculatePosMatrix(c.toUnwrapped(),a.worldSize),k=u.modelTraits,T=[];for(const n of u.getNodesInfo()){if(n.hiddenByReplacement)continue;if(!n.node.meshes)continue;const r=n.node;let i=0;t.terrain&&r.elevation&&(i=r.elevation*t.terrain.exaggeration());const o=()=>{const t=n.aabb;return y.min=[...t.min],y.max=[...t.max],y.min[2]+=i,y.max[2]+=i,e.$.transformMat4(y.min,y.min,E),e.$.transformMat4(y.max,y.max,E),y},s=n.evaluatedScale;if(s[0]<=1&&s[1]<=1&&s[2]<=1&&0===o().intersects(b))continue;const l=[...E],c=r.anchor?r.anchor[0]:0,u=r.anchor?r.anchor[1]:0;e.ae.translate(l,l,[c*(s[0]-1),u*(s[1]-1),i]),e.$.exactEquals(s,e.cl)||e.ae.scale(l,l,s);const h=e.ae.multiply([],l,r.matrix),d=e.ae.multiply([],a.expandedFarZProjMatrix,h),f=e.ae.multiply([],a.expandedFarZProjMatrix,l),m=e.aB.transformMat4([],[c,u,i,1],d)[2];r.hidden=!1;let g=p;if(v||(x&&(g*=Ni(l,a,n.aabb,A)),g*=Fi(w,m)),0===g){r.hidden=!0;continue}const C={nodeInfo:n,depth:m,opacity:g,wvpForNode:d,wvpForTile:f,nodeModelMatrix:h,tileModelMatrix:l};T.push(C)}v||T.sort(((e,t)=>!x||1===e.opacity&&1===t.opacity?e.deptht.depth?-1:1));for(const n of T){const i=n.nodeInfo,c=i.node;let u=e.ae.multiply([],f,n.tileModelMatrix);e.ae.multiply(u,h,u);const p=e.ae.invert([],u);e.ae.transpose(p,p),e.ae.scale(p,p,Bi),u=e.ae.multiply(u,u,c.matrix);const y="light-beam"===t.renderPass,b=k&e.cn.HasMapboxMeshFeatures,A=b?0:i.evaluatedRMEA[0][2];for(let h=0;h=$e||i>=$e}}const T=f.material;let I;T.occlusionTexture&&T.occlusionTexture.offsetScale&&(I=T.occlusionTexture.offsetScale,S.defines.push("OCCLUSION_TEXTURE_TRANSFORM")),!v&&l&&(l.useNormalOffset=!!f.normalBuffer);const O=t.getOrCreateProgram("model",S);!v&&l&&l.setupShadowsFromMatrix(n.tileModelMatrix,O,l.useNormalOffset),t.uploadCommonUniforms(o,O,null,k);const R=T.pbrMetallicRoughness;R.metallicFactor=.9,R.roughnessFactor=.5;const M=Or(new Float32Array(w),new Float32Array(u),new Float32Array(p),new Float32Array(c.matrix),t,n.opacity,R.baseColorFactor.toRenderColor(null),T.emissiveFactor,R.metallicFactor,R.roughnessFactor,T,A,r,[0,0,0],I);!x&&(i.hasTranslucentParts||n.opacity<1)&&O.draw(t,o.gl.TRIANGLES,m,e.ah.disabled,e.a.disabled,e.ag.backCCW,M,r.id,f.vertexBuffer,f.indexBuffer,f.segments,r.paint,t.transform.zoom,void 0,E);const P=x||n.opacity<1||i.hasTranslucentParts?e.a.alphaBlended:e.a.unblended,D=x?g:m;O.draw(t,o.gl.TRIANGLES,D,e.ah.disabled,P,e.ag.backCCW,M,r.id,f.vertexBuffer,f.indexBuffer,f.segments,r.paint,t.transform.zoom,void 0,E)}}}};(function(e,t,n,r){const i=e.terrain?e.terrain.exaggeration():0,o=e.transform.zoom;for(const a of r){const r=t.getTile(a).getBucket(n);r&&(e.conflationActive&&r.updateReplacement(a,e.replacementSource),r.evaluateScale(e,n),e.terrain&&i>0&&r.elevationUpdate(e.terrain,i,a,n.source),r.needsReEvaluation(e,o,n)&&r.evaluate(n))}})(t,n,r,i),S()}(t,n,r,i),void c();if("model"!==u.type)return;const h=u.getModels(),d=[],f=t.transform.getFreeCameraOptions().position,p=e.$.scale([],[f.x,f.y,f.z],t.transform.worldSize);e.$.negate(p,p);const m=[],g=[];let y=0;for(const n of h){const i=r.paint.get("model-rotation").constantOr(null),o=r.paint.get("model-scale").constantOr(null),a=r.paint.get("model-translation").constantOr(null);n.computeModelMatrix(t,i,o,a,!0,!0,!1);const s=e.ae.identity([]),l=1/e.ci(n.position.lat,t.transform.zoom),c=e.ae.fromScaling([],[1,1,l]);e.ae.translate(s,s,p);const u={zScaleMatrix:c,negCameraPosMatrix:s};d.push(u);for(const e of n.nodes)Ii(t.transform,e,n.matrix,t.transform.expandedFarZProjMatrix,y,m,g);y++}if(m.sort(((e,t)=>t.depth-e.depth)),"shadow"!==t.renderPass){if(1===o)for(const n of g)Ti(n,t,r,d[n.modelIndex],e.ah.disabled,t.colorModeForRenderPass());else{for(const n of g)Ti(n,t,r,d[n.modelIndex],e.ah.disabled,e.a.disabled);for(const e of g)Ti(e,t,r,d[e.modelIndex],t.stencilModeFor3D(),t.colorModeForRenderPass());t.resetStencilClippingMasks()}for(const n of m)Ti(n,t,r,d[n.modelIndex],e.ah.disabled,t.colorModeForRenderPass());c()}else{for(const e of g)Oi(e.mesh,e.nodeModelMatrix,t,r);for(const e of m)Oi(e.mesh,e.nodeModelMatrix,t,r);c()}}},Hi={model:function(e,t,n){const r=t.getSource();if(!r.loaded())return;if("vector"===r.type||"geojson"===r.type){const t="vector"===r.type?e.scope:"";return void(n.modelManager&&n.modelManager.upload(n,t))}if("batched-model"===r.type)return;if("model"!==r.type)return;const i=r.getModels();for(const e of i)e.upload(n.context)},raster:function(e,t,n){const r=t.getSource();if(!(r instanceof _n&&r.loaded()))return;const i=e.sourceLayer||r.rasterLayerIds&&r.rasterLayerIds[0];if(!i)return;const o=e.paint.get("raster-array-band")||r.getInitialBand(i);if(null==o)return;const a=t.getIds().map((e=>t.getTileByID(e)));for(const e of a)e.updateNeeded(i,o)&&r.prepareTile(e,i,o)},"raster-particle":function(e,t,n){const r=t.getSource();if(!(r instanceof _n&&r.loaded()))return;const i=e.sourceLayer||r.rasterLayerIds&&r.rasterLayerIds[0];if(!i)return;const o=e.paint.get("raster-particle-array-band")||r.getInitialBand(i);if(null==o)return;const a=t.getIds().map((e=>t.getTileByID(e)));for(const e of a)e.updateNeeded(i,o)&&r.prepareTile(e,i,o)}};class qi{constructor(t,n,r,i){this.context=new ie(t,n),this.transform=r,this._tileTextures={},this.frameCopies=[],this.loadTimeStamps=[],this.tp=i,this._timeStamp=e.e.now(),this._averageFPS=0,this._fpsHistory=[],this._dt=0,this._debugParams={showTerrainProxyTiles:!1,fpsWindow:30,continousRedraw:!1,enabledLayers:{}};const o=["fill","line","symbol","circle","heatmap","fill-extrusion","raster","raster-particle","hillshade","model","background","sky"];for(const e of o)this._debugParams.enabledLayers[e]=!0;i.registerParameter(this._debugParams,["Terrain"],"showTerrainProxyTiles",{},(()=>{this.style.map.triggerRepaint()})),i.registerParameter(this._debugParams,["FPS"],"fpsWindow",{min:1,max:100,step:1}),i.registerBinding(this._debugParams,["FPS"],"continousRedraw",{readonly:!0,label:"continuous redraw"}),i.registerBinding(this,["FPS"],"_averageFPS",{readonly:!0,label:"value"}),i.registerBinding(this,["FPS"],"_averageFPS",{readonly:!0,label:"graph",view:"graph",min:0,max:200});for(const e of o)i.registerParameter(this._debugParams.enabledLayers,["Debug","Layers"],e);this.occlusionParams=new Vi(i),this.setup(),this.numSublayers=e.bx.maxUnderzooming+e.bx.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.deferredRenderGpuTimeQueries=[],this.gpuTimers={},this.frameCounter=0,this._backgroundTiles={},this.conflationActive=!1,this.replacementSource=new e.cp,this.longestCutoffRange=0,this.minCutoffZoom=0,this._fogVisible=!1,this._cachedTileFogOpacities={},this._shadowRenderer=new kn(this),this._wireframeDebugCache=new zi,this.renderDefaultNorthPole=!0,this.renderDefaultSouthPole=!0,this.layersWithOcclusionOpacity=[];const a=new e.j({width:1,height:1},Uint8Array.of(0,0,0,0));this.emptyDepthTexture=new e.T(this.context,a,t.RGBA)}updateTerrain(e,t){const n=!!e&&!!e.terrain&&this.transform.projection.supportsTerrain;if(!(n||this._terrain&&this._terrain.enabled))return;this._terrain||(this._terrain=new Jn(this,e));const r=this._terrain;this.transform.elevation=n?r:null,r.update(e,this.transform,t),this.transform.elevation&&!r.enabled&&(this.transform.elevation=null)}_updateFog(e){const t="globe"===this.transform.projection.name,n=e.fog;if(!n||t||n.getOpacity(this.transform.pitch)<1||n.properties.get("horizon-blend")<.03)return void(this.transform.fogCullDistSq=null);const[r,i]=n.getFovAdjustedRange(this.transform._fov);if(r>i)return void(this.transform.fogCullDistSq=null);const o=r+.78*(i-r);this.transform.fogCullDistSq=o*o}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled||this._forceTerrainMode?this._terrain:null}get forceTerrainMode(){return this._forceTerrainMode}set forceTerrainMode(e){e&&!this._terrain&&(this._terrain=new Jn(this,this.style)),this._forceTerrainMode=e}get shadowRenderer(){return this._shadowRenderer&&this._shadowRenderer.enabled?this._shadowRenderer:null}get wireframeDebugCache(){return this._wireframeDebugCache}resize(t,n){if(this.width=t*e.e.devicePixelRatio,this.height=n*e.e.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const e of this.style.order)this.style._mergedLayers[e].resize()}setup(){const t=this.context,n=new e.bv;n.emplaceBack(0,0),n.emplaceBack(e.a4,0),n.emplaceBack(0,e.a4),n.emplaceBack(e.a4,e.a4),this.tileExtentBuffer=t.createVertexBuffer(n,e.bt.members),this.tileExtentSegments=e.b.simpleSegment(0,0,4,2);const r=new e.bv;r.emplaceBack(0,0),r.emplaceBack(e.a4,0),r.emplaceBack(0,e.a4),r.emplaceBack(e.a4,e.a4),this.debugBuffer=t.createVertexBuffer(r,e.bt.members),this.debugSegments=e.b.simpleSegment(0,0,4,5);const i=new e.bv;i.emplaceBack(-1,-1),i.emplaceBack(1,-1),i.emplaceBack(-1,1),i.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(i,e.bt.members),this.viewportSegments=e.b.simpleSegment(0,0,4,2);const o=new e.cq;o.emplaceBack(0,0,0,0),o.emplaceBack(e.a4,0,e.a4,0),o.emplaceBack(0,e.a4,0,e.a4),o.emplaceBack(e.a4,e.a4,e.a4,e.a4),this.mercatorBoundsBuffer=t.createVertexBuffer(o,e.cr.members),this.mercatorBoundsSegments=e.b.simpleSegment(0,0,4,2);const a=new e.bw;a.emplaceBack(0,1,2),a.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(a);const s=new e.cs;for(const e of[0,1,3,2,0])s.emplaceBack(e);this.debugIndexBuffer=t.createIndexBuffer(s),this.emptyTexture=new e.T(t,new e.j({width:1,height:1},Uint8Array.of(0,0,0,0)),t.gl.RGBA),this.identityMat=e.ae.create();const l=this.context.gl;this.stencilClearMode=new e.ah({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO),this.loadTimeStamps.push(performance.now())}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(e){return e._makeTileBoundsBuffers(this.context,this.transform.projection),e._tileBoundsBuffer?{tileBoundsBuffer:e._tileBoundsBuffer,tileBoundsIndexBuffer:e._tileBoundsIndexBuffer,tileBoundsSegments:e._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){const t=this.context.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs={},this.getOrCreateProgram("clippingMask").draw(this,t.TRIANGLES,e.af.disabled,this.stencilClearMode,e.a.disabled,e.ag.disabled,Fn(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs={})}_renderTileClippingMasks(t,n,r){if(!n||this.currentStencilSource===n.id||!t.isTileClipped()||!r||0===r.length)return;if(this._tileClippingMaskIDs&&!this.terrain){let e=!1;for(const t of r)if(void 0===this._tileClippingMaskIDs[t.key]){e=!0;break}if(!e)return}this.currentStencilSource=n.id;const i=this.context,o=i.gl;this.nextStencilID+r.length>256&&this.clearStencil(),i.setColorMode(e.a.disabled),i.setDepthMode(e.af.disabled);const a=this.getOrCreateProgram("clippingMask");this._tileClippingMaskIDs={};for(const t of r){const r=n.getTile(t),i=this._tileClippingMaskIDs[t.key]=this.nextStencilID++,{tileBoundsBuffer:s,tileBoundsIndexBuffer:l,tileBoundsSegments:c}=this.getTileBoundsBuffers(r);a.draw(this,o.TRIANGLES,e.af.disabled,new e.ah({func:o.ALWAYS,mask:0},i,255,o.KEEP,o.KEEP,o.REPLACE),e.a.disabled,e.ag.disabled,Fn(t.projMatrix),"$clipping",s,l,c)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const t=this.nextStencilID++,n=this.context.gl;return new e.ah({func:n.NOTEQUAL,mask:255},t,255,n.KEEP,n.KEEP,n.REPLACE)}stencilModeForClipping(t){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(t);const n=this.context.gl;return new e.ah({func:n.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,n.KEEP,n.KEEP,n.REPLACE)}stencilConfigForOverlap(t){const n=this.context.gl,r=t.sort(((e,t)=>t.overscaledZ-e.overscaledZ)),i=r[r.length-1].overscaledZ,o=r[0].overscaledZ-i+1;if(o>1){this.currentStencilSource=void 0,this.nextStencilID+o>256&&this.clearStencil();const t={};for(let r=0;rthis.style&&this.style.enable3dLights()&&this.terrain&&this.terrain.renderingToTexture)()&&"translucent"===this.renderPass?new e.a([n.ONE,n.ONE_MINUS_SRC_ALPHA,n.CONSTANT_ALPHA,n.ONE_MINUS_SRC_ALPHA],new e.C(0,0,0,void 0===t?0:t),[!0,!0,!0,!0]):this.colorModeForRenderPass()}depthModeForSublayer(t,n,r,i=!1){if(this.depthOcclusion)return new e.af(this.context.gl.GREATER,e.af.ReadOnly,this.depthRangeFor3D);if(!this.opaquePassEnabledForLayer()&&!i)return e.af.disabled;const o=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new e.af(r||this.context.gl.LEQUAL,n,[o,o])}opaquePassEnabledForLayer(){return this.currentLayerthis._debugParams.fpsWindow&&this._fpsHistory.splice(0,this._fpsHistory.length-this._debugParams.fpsWindow),this._averageFPS=Math.round(this._fpsHistory.reduce(((e,t)=>e+t/this._fpsHistory.length),0))}render(t,n){const r=e.e.now();this._dt=r-this._timeStamp,this._timeStamp=r,this._wireframeDebugCache.update(this.frameCounter),this._debugParams.continousRedraw=t.map.repaint,this.style=t,this.options=n;const i=this.style._mergedLayers,o=this.style.order.filter((e=>{const t=i[e];return!(t.type in this._debugParams.enabledLayers)||this._debugParams.enabledLayers[t.type]}));let a=!1,s=!1;for(const e of o){const t=i[e];"circle"===t.type&&(a=!0),"symbol"===t.type&&(t.hasInitialOcclusionOpacityProperties?s=!0:a=!0)}const l=o.map((e=>i[e])),c=this.style._mergedSourceCaches;this.imageManager=t.imageManager,this.modelManager=t.modelManager,this.symbolFadeChange=t.placement.symbolFadeChange(e.e.now()),this.imageManager.beginFrame();let u=0,h=!1;for(const e in c){const t=c[e];t.used&&(t.prepare(this.context),t.getSource().usedInConflation&&++u)}let d=!1;for(const e of l)e.isHidden(this.transform.zoom)||("clip"===e.type&&(d=!0),this.prepareLayer(e));const f={},p={},m={},g={},y={};for(const e in c){const t=c[e];f[e]=t.getVisibleCoordinates(),p[e]=f[e].slice().reverse(),m[e]=t.getVisibleCoordinates(!0).reverse(),g[e]=t.getShadowCasterCoordinates(),y[e]=t.sortCoordinatesByDistance(f[e])}const v=e=>{const t=this.style.getLayerSourceCache(e);return t&&t.used?t.getSource():null};if(u||d){const t=[],n=[];let r=0;for(const e of l)this.isSourceForClippingOrConflation(e,v(e))&&(t.push(e),n.push(r)),r++;if(t&&(d||t.length>1)){const r=[];for(let i=0;i0){const e=v(t);e&&(this.minCutoffZoom=Math.max(e.minzoom,this.minCutoffZoom)),t.minzoom&&(this.minCutoffZoom=Math.max(t.minzoom,this.minCutoffZoom))}t.is3D()&&(this.opaquePassCutoff===1/0&&(this.opaquePassCutoff=e),this._lastOcclusionLayer=e)}const b=this.style&&this.style.fog;b?(this._fogVisible=0!==b.getOpacity(this.transform.pitch),this._fogVisible&&"globe"!==this.transform.projection.name&&(this._fogVisible=b.isVisibleOnFrustum(this.transform.cameraFrustum))):this._fogVisible=!1,this._cachedTileFogOpacities={},this.terrain&&(this.terrain.updateTileBinding(m),this.opaquePassCutoff=0);const A=this._shadowRenderer;if(A){A.updateShadowParameters(this.transform,this.style.directionalLight);for(const e in c)for(const t of f[e]){let e={min:0,max:0};this.terrain&&(e=this.terrain.getMinMaxForTile(t)||e),A.addShadowReceiver(t.toUnwrapped(),e.min,e.max)}}if("globe"!==this.transform.projection.name||this.globeSharedBuffers||(this.globeSharedBuffers=new e.ct(this.context)),this.style.fog&&this.transform.projection.supportsFog?(this._atmosphere||(this._atmosphere=new Si(this)),this._atmosphere.update(this)):this._atmosphere&&(this._atmosphere.destroy(),this._atmosphere=void 0),!e.cu(this.context.gl))return;this.renderPass="offscreen";for(const e of l){const n=t.getLayerSourceCache(e);if(!e.hasOffscreenPass()||e.isHidden(this.transform.zoom))continue;const r=n?p[n.id]:void 0;("custom"===e.type||"raster"===e.type||"raster-particle"===e.type||e.isSky()||r&&r.length)&&this.renderLayer(this,n,e,r)}this.depthRangeFor3D=[0,1-(l.length+2)*this.numSublayers*this.depthEpsilon],this._shadowRenderer&&(this.renderPass="shadow",this._shadowRenderer.drawShadowPass(this.style,g)),this.context.bindFramebuffer.set(null),this.context.viewport.set([0,0,this.width,this.height]);const x="globe"===this.transform.projection.name||this.transform.isHorizonVisible(),w=(()=>{if(n.showOverdrawInspector)return e.C.black;const t=this.style.fog;if(t&&this.transform.projection.supportsFog){const n=this.style.getLut(t.scope);if(!x){const r=t.properties.get("color").toRenderColor(n).toArray01();return new e.C(...r)}if(x){const r=t.properties.get("space-color").toRenderColor(n).toArray01();return new e.C(...r)}}return e.C.transparent})();if(this.context.clear({color:w,depth:1}),this.clearStencil(),this._showOverdrawInspector=n.showOverdrawInspector,this.renderPass="opaque",this.style.fog&&this.transform.projection.supportsFog&&this._atmosphere&&!this._showOverdrawInspector&&x&&this._atmosphere.drawStars(this,this.style.fog),!this.terrain)for(this.currentLayer=o.length-1;this.currentLayer>=0;this.currentLayer--){const e=l[this.currentLayer],n=t.getLayerSourceCache(e);if(e.isSky())continue;const r=n?(e.is3D()?y:p)[n.id]:void 0;this._renderTileClippingMasks(e,n,r),this.renderLayer(this,n,e,r)}if(this.style.fog&&this.transform.projection.supportsFog&&this._atmosphere&&!this._showOverdrawInspector&&x&&this._atmosphere.drawAtmosphereGlow(this,this.style.fog),this.renderPass="sky",(!this._atmosphere||e.a2(this.transform.zoom)>0)&&("globe"===this.transform.projection.name||this.transform.isHorizonVisible()))for(this.currentLayer=0;this.currentLayer0&&e.hasShadowPass()&&0==--S&&(A.drawGroundShadows(),this.firstLightBeamLayer<=this.currentLayer)){const e=this.currentLayer;for(this.renderPass="light-beam",this.currentLayer=this.firstLightBeamLayer;this.currentLayer<=e;this.currentLayer++){const e=l[this.currentLayer];if(!e.hasLightBeamPass())continue;const n=t.getLayerSourceCache(e),r=n?p[n.id]:void 0;this.renderLayer(this,n,e,r)}this.currentLayer=e,this.renderPass="translucent"}if(this.currentLayer>=this._lastOcclusionLayer&&this.layersWithOcclusionOpacity.length>0){const e=this.currentLayer;this.depthOcclusion=!0;for(const e of this.layersWithOcclusionOpacity){this.currentLayer=e;const n=l[this.currentLayer],r=t.getLayerSourceCache(n),i=r?p[r.id]:void 0;n.is3D()||this.terrain||this._renderTileClippingMasks(n,r,r?f[r.id]:void 0),this.renderLayer(this,r,n,i)}this.depthOcclusion=!1,this.currentLayer=e,this.renderPass="translucent",this.layersWithOcclusionOpacity=[]}++this.currentLayer}}if(this.terrain&&this.terrain.postRender(),this.options.showTileBoundaries||this.options.showQueryGeometry||this.options.showTileAABBs){let n=null;l.forEach((e=>{const r=t.getLayerSourceCache(e);r&&!e.isHidden(this.transform.zoom)&&r.getVisibleCoordinates().length&&(!n||n.getSource().maxzoom0?t.pop():null}terrainRenderModeElevated(){return this.style&&!!this.style.getTerrain()&&!!this.terrain&&!this.terrain.renderingToTexture||this.forceTerrainMode}linearFloatFilteringSupported(){return null!=this.context.extTextureFloatLinear}currentGlobalDefines(e,t,n){const r=void 0===n?this.terrain&&this.terrain.renderingToTexture:n,i=[];return this.style&&this.style.enable3dLights()&&("globeRaster"===e||"terrainRaster"===e?(i.push("LIGHTING_3D_MODE"),i.push("LIGHTING_3D_ALPHA_EMISSIVENESS")):r||i.push("LIGHTING_3D_MODE")),"shadow"===this.renderPass?this._shadowMapDebug||i.push("DEPTH_TEXTURE"):this.shadowRenderer&&(this.shadowRenderer.useNormalOffset?i.push("RENDER_SHADOWS","DEPTH_TEXTURE","NORMAL_OFFSET"):i.push("RENDER_SHADOWS","DEPTH_TEXTURE")),this.terrainRenderModeElevated()&&(i.push("TERRAIN"),this.linearFloatFilteringSupported()&&i.push("TERRAIN_DEM_FLOAT_FORMAT")),"globe"===this.transform.projection.name&&i.push("GLOBE"),!this._fogVisible||r||void 0!==t&&!t||i.push("FOG","FOG_DITHERING"),r&&i.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&i.push("OVERDRAW_INSPECTOR"),i}getOrCreateProgram(e,t){this.cache=this.cache||{};const n=t&&t.defines||[],r=t&&t.config,i=t&&t.overrideFog,o=t&&t.overrideRtt,a=this.currentGlobalDefines(e,i,o).concat(n),s=er.cacheKey(Et[e],e,a,r);return this.cache[s]||(this.cache[s]=new er(this.context,e,Et[e],r,Mr[e],a)),this.cache[s]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)}initDebugOverlayCanvas(){if(null==this.debugOverlayCanvas){this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;const t=this.context.gl;this.debugOverlayTexture=new e.T(this.context,this.debugOverlayCanvas,t.RGBA)}}destroy(){this._terrain&&this._terrain.destroy(),this._atmosphere&&(this._atmosphere.destroy(),this._atmosphere=void 0),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this._wireframeDebugCache.destroy(),this.depthFBO&&(this.depthFBO.destroy(),this.depthFBO=void 0,this.depthTexture=void 0),this.emptyDepthTexture&&this.emptyDepthTexture.destroy()}prepareDrawTile(){this.terrain&&this.terrain.prepareDrawTile()}uploadCommonLightUniforms(t,n){if(this.style.enable3dLights()){const r=this.style.directionalLight,i=this.style.ambientLight;if(r&&i){const o=((t,n,r)=>{const i=t.properties.get("direction"),o=t.properties.get("color").toRenderColor(r.getLut(t.scope)).toArray01(),a=t.properties.get("intensity"),s=n.properties.get("color").toRenderColor(r.getLut(n.scope)).toArray01(),l=n.properties.get("intensity"),c=[i.x,i.y,i.z],u=e.bC(s,l),h=e.bC(o,a);return{u_lighting_ambient_color:u,u_lighting_directional_dir:c,u_lighting_directional_color:h,u_ground_radiance:Zn(c,h,u)}})(r,i,this.style);n.setLightsUniformValues(t,o)}}}uploadCommonUniforms(t,n,r,i,o){if(this.uploadCommonLightUniforms(t,n),this.terrain&&this.terrain.renderingToTexture)return;const a=this.style.fog;if(a){const o=a.getOpacity(this.transform.pitch),s=((t,n,r,i,o,a,s,l,c,u,h,d)=>{const f=t.transform,p=n.properties.get("color").toRenderColor(t.style.getLut(n.scope)).toArray01();p[3]=i;const m=t.frameCounter/1e3%1,[g,y]=n.properties.get("vertical-range");return{u_fog_matrix:r?f.calculateFogTileMatrix(r):d||t.identityMat,u_fog_range:n.getFovAdjustedRange(f._fov),u_fog_color:p,u_fog_horizon_blend:n.properties.get("horizon-blend"),u_fog_vertical_limit:[Math.min(g,y),y],u_fog_temporal_offset:m,u_frustum_tl:o,u_frustum_tr:a,u_frustum_br:s,u_frustum_bl:l,u_globe_pos:c,u_globe_radius:u,u_viewport:h,u_globe_transition:e.a2(f.zoom),u_is_globe:+("globe"===f.projection.name)}})(this,a,r,o,this.transform.frustumCorners.TL,this.transform.frustumCorners.TR,this.transform.frustumCorners.BR,this.transform.frustumCorners.BL,this.transform.globeCenterInViewSpace,this.transform.globeRadius,[this.transform.width*e.e.devicePixelRatio,this.transform.height*e.e.devicePixelRatio],i);n.setFogUniformValues(t,s)}o&&n.setCutoffUniformValues(t,o.uniformValues)}setTileLoadedFlag(e){this.tileLoaded=e}saveCanvasCopy(){const e=this.canvasCopy();e&&(this.frameCopies.push(e),this.tileLoaded=!1)}canvasCopy(){const e=this.context.gl,t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.copyTexImage2D(e.TEXTURE_2D,0,e.RGBA,0,0,e.drawingBufferWidth,e.drawingBufferHeight,0),t}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;const e=this.style&&this.style.fog;return!!e&&0!==e.getOpacity(this.transform.pitch)}getBackgroundTiles(){const t=this._backgroundTiles,n=this._backgroundTiles={},r=this.transform.coveringTiles({tileSize:512});for(const i of r)n[i.key]=t[i.key]||new e.bA(i,512,this.transform.tileZoom,this);return n}clearBackgroundTiles(){this._backgroundTiles={}}isSourceForClippingOrConflation(e,t){return!(!e.is3D()||e.minzoom&&e.minzoom>this.transform.zoom||(this.style._clipLayerIndices.length||"building"!==e.sourceLayer)&&"clip"!==e.type&&(!t||"batched-model"!==t.type))}isTileAffectedByFog(e){if(!this.style||!this.style.fog)return!1;if("globe"===this.transform.projection.name)return!0;let t=this._cachedTileFogOpacities[e.key];return t||(this._cachedTileFogOpacities[e.key]=t=this.style.fog.getOpacityForTile(e)),t[0]>=$e||t[1]>=$e}setupDepthForOcclusion(e,t,n){const r=this.context,i=r.gl,o=!!n;if(n||(n={u_dem:2,u_dem_prev:4,u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_depth_range_unpack:[0,1],u_occluder_half_size:16,u_occlusion_depth_offset:-1e-4,u_exaggeration:0}),r.activeTexture.set(i.TEXTURE3),e&&this.depthFBO&&this.depthTexture){this.depthTexture.bind(i.NEAREST,i.CLAMP_TO_EDGE),n.u_depth_size_inv=[1/this.depthFBO.width,1/this.depthFBO.height];const e=e=>[2/(e[1]-e[0]),-1-2*e[0]/(e[1]-e[0])];n.u_depth_range_unpack=e(this.depthRangeFor3D),n.u_occluder_half_size=.5*this.occlusionParams.occluderSize,n.u_occlusion_depth_offset=this.occlusionParams.depthOffset}else this.emptyDepthTexture.bind(i.NEAREST,i.CLAMP_TO_EDGE);r.activeTexture.set(i.TEXTURE0),o||t.setTerrainUniformValues(r,n)}}class Gi{constructor(e,t,n,r){this.screenBounds=e,this.cameraPoint=t,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=n,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this._bufferedScreenMercator(0,r)}static createFromScreenPoints(t,n){let r,i;if(t instanceof e.P||"number"==typeof t[0]){const o=e.P.convert(t);r=[o],i=n.isPointAboveHorizon(o)}else{const o=e.P.convert(t[0]),a=e.P.convert(t[1]);r=[o,a],i=e.cx(o,a).every((e=>n.isPointAboveHorizon(e)))}return new Gi(r,n.getCameraPoint(),i,n)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(t){return e.cx(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],t)}bufferedCameraGeometry(t){const n=this.screenBounds[0],r=1===this.screenBounds.length?this.screenBounds[0].add(new e.P(1,1)):this.screenBounds[1],i=e.cx(n,r,0,!1);return this.cameraPoint.y>r.y&&(this.cameraPoint.x>n.x&&this.cameraPoint.x=r.x?i[2]=this.cameraPoint:this.cameraPoint.x<=n.x&&(i[3]=this.cameraPoint)),e.cy(i,t)}bufferedCameraGeometryGlobe(t){const n=this.screenBounds[0],r=1===this.screenBounds.length?this.screenBounds[0].add(new e.P(1,1)):this.screenBounds[1],i=e.cx(n,r,t),o=this.cameraPoint.clone(),a=(o.x>n.x)+(o.x>r.x);switch(3*((o.y>n.y)+(o.y>r.y))+a){case 0:i[0]=o,i[4]=o.clone();break;case 1:i.splice(1,0,o);break;case 2:i[1]=o;break;case 3:i.splice(4,0,o);break;case 5:i.splice(2,0,o);break;case 6:i[3]=o;break;case 7:i.splice(3,0,o);break;case 8:i[2]=o}return i}containsTile(t,n,r,i=0){const o=t.queryPadding/n._pixelsPerMercatorPixel+1,a=r?this._bufferedCameraMercator(o,n):this._bufferedScreenMercator(o,n);let s=t.tileID.wrap+(a.unwrapped?i:0);const l=a.polygon.map((n=>e.cz(t.tileTransform,n,s)));if(!e.cA(l,0,0,e.a4,e.a4))return;s=t.tileID.wrap+(this.screenGeometryMercator.unwrapped?i:0);const c=this.screenGeometryMercator.polygon.map((n=>e.cB(t.tileTransform,n,s))),u=c.map((t=>new e.P(t[0],t[1]))),h=n.getFreeCameraOptions().position||new e._(0,0,0),d=e.cB(t.tileTransform,h,s),f=c.map((t=>{const n=e.$.sub(t,t,d);return e.$.normalize(n,n),new e.aU(d,n)})),p=e.bD(t,1,n.zoom)*n._pixelsPerMercatorPixel;return{queryGeometry:this,tilespaceGeometry:u,tilespaceRays:f,bufferedTilespaceGeometry:l,bufferedTilespaceBounds:(m=e.cC(l),m.min.x=e.au(m.min.x,0,e.a4),m.min.y=e.au(m.min.y,0,e.a4),m.max.x=e.au(m.max.x,0,e.a4),m.max.y=e.au(m.max.y,0,e.a4),m),tile:t,tileID:t.tileID,pixelToTileUnitsFactor:p};var m}_bufferedScreenMercator(e,t){const n=Qi(e);if(this._screenRaycastCache[n])return this._screenRaycastCache[n];{let r;return r="globe"===t.projection.name?this._projectAndResample(this.bufferedScreenGeometry(e),t):{polygon:this.bufferedScreenGeometry(e).map((e=>t.pointCoordinate3D(e))),unwrapped:!0},this._screenRaycastCache[n]=r,r}}_bufferedCameraMercator(e,t){const n=Qi(e);if(this._cameraRaycastCache[n])return this._cameraRaycastCache[n];{let r;return r="globe"===t.projection.name?this._projectAndResample(this.bufferedCameraGeometryGlobe(e),t):{polygon:this.bufferedCameraGeometry(e).map((e=>t.pointCoordinate3D(e))),unwrapped:!0},this._cameraRaycastCache[n]=r,r}}_projectAndResample(t,n){const r=function(t,n){const r=e.ae.multiply([],n.pixelMatrix,n.globeMatrix),i=[0,-e.cF,0,1],o=[0,e.cF,0,1],a=[0,0,0,1];e.aB.transformMat4(i,i,r),e.aB.transformMat4(o,o,r),e.aB.transformMat4(a,a,r);const s=new e.P(i[0]/i[3],i[1]/i[3]),l=new e.P(o[0]/o[3],o[1]/o[3]),c=e.cD(t,s)&&i[3]1?Yi(t.slice(0,d),n):[],m=dnew e.P(Wi(t.x),t.y))),m=m.map((t=>new e.P(Wi(t.x),t.y)));const g=[...p];0===g.length&&g.push(m[m.length-1]);const y=g[g.length-1],v=0===m.length?p[0]:m[0],b=e.a3(y.y,v.y,f);let A;return A=c?[new e.P(0,b),new e.P(0,0),new e.P(1,0),new e.P(1,b)]:[new e.P(1,b),new e.P(1,1),new e.P(0,1),new e.P(0,b)],g.push(...A),0===m.length?g.push(p[0]):g.push(...m),{polygon:g.map((t=>new e._(t.x,t.y))),unwrapped:!1}}(t,n);if(r)return r;const i=function(t,n){let r=!1,i=-1/0,o=0;for(let e=0;ei&&(i=t[e].x,o=e);for(let e=0;e.5&&(i.x{e.x-=1})),{polygon:t,unwrapped:r}}(Yi(t,n).map((t=>new e.P(Wi(t.x),t.y))),n);return{polygon:i.polygon.map((t=>new e._(t.x,t.y))),unwrapped:i.unwrapped}}}function Yi(t,n){return e.cE(t,(e=>{const t=n.pointCoordinate3D(e);e.x=t.x,e.y=t.y}),1/256)}function Wi(e){return e<0?1+e%1:e%1}function Qi(e){return 100*e|0}function Xi(t,n){const r=e.ae.identity([]);return e.ae.scale(r,r,[.5*t.width,.5*-t.height,1]),e.ae.translate(r,r,[1,-1,0]),e.ae.multiply(r,r,t.calculateProjMatrix(n.toUnwrapped())),Float32Array.from(r)}function Ji(e,t,n,r,i,o,a,s=!1){const l=e.tilesIn(r,a,s);l.sort(Ki);const c=[];for(const r of l)c.push({wrappedTileID:r.tile.tileID.wrapped().key,queryResults:r.tile.queryRenderedFeatures(t,n,e._state,r,i,o,Xi(e.transform,r.tile.tileID),s)});const u=function(e){const t={},n={};for(const r of e){const e=r.queryResults,i=r.wrappedTileID,o=n[i]=n[i]||{};for(const n in e){const r=e[n],i=o[n]=o[n]||{},a=t[n]=t[n]||[];for(const e of r)i[e.featureIndex]||(i[e.featureIndex]=!0,a.push(e))}}return t}(c);for(const t in u)u[t].forEach((t=>{const n=t.feature,r=n.layer;r&&"background"!==r.type&&"sky"!==r.type&&"slot"!==r.type&&(n.source=r.source,r["source-layer"]&&(n.sourceLayer=r["source-layer"]),n.state=void 0!==n.id?e.getFeatureState(r["source-layer"],n.id):{})}));return u}function Zi(e,t){const n=e.getRenderableIds().map((t=>e.getTileByID(t))),r=[],i={};for(let e=0;e0:"model"===n.type&&(r=!n.isHidden(e)&&n.paint.get("model-opacity")>0),this.layersGotHidden=this.layersGotHidden||!r&&t.visible,t.visible=r}}updateZOffset(e,t){this.currentBuildingBuckets=[];for(const e of this.layers){const n=e.layer,r=this.style.getLayerSourceCache(n);let i=1;"fill-extrusion"===n.type&&(i=e.visible?n.paint.get("fill-extrusion-vertical-scale"):0);let o=r?r.getTile(t):null;if(!o&&r&&t.canonical.z>r.getSource().minzoom){let e=t.scaledTo(Math.min(r.getSource().maxzoom,t.overscaledZ-1));for(;e.overscaledZ>=r.getSource().minzoom&&(o=r.getTile(e),!o&&0!==e.overscaledZ);)e=e.scaledTo(e.overscaledZ-1)}this.currentBuildingBuckets.push({bucket:o?o.getBucket(n):null,tileID:o?o.tileID:t,verticalScale:i})}e.hasAnyZOffset=!1;let n=!1;for(let r=0;r{e in n&&(r[e]=n[e])})),r}function to(e){e=e.slice();const t=Object.create(null);for(let n=0;n{e.source&&i[e.source]?r.push({command:no.removeLayer,args:[e.id]}):a.push(e)}));let s=t.terrain;s&&i[s.source]&&(r.push({command:no.setTerrain,args:[void 0]}),s=void 0),r=r.concat(o),e.d(s,n.terrain)||r.push({command:no.setTerrain,args:[n.terrain]}),function(t,n,r){n=n||[];const i=(t=t||[]).map(lo),o=n.map(lo),a=t.reduce(co,{}),s=n.reduce(co,{}),l=i.slice(),c=Object.create(null);let u,h,d,f,p,m,g;for(u=0,h=0;u0?(i-a)/s:0;return this.points[o].mult(1-l).add(this.points[n].mult(l))}}class fo{constructor(e,t,n){const r=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(e/n),this.yCellCount=Math.ceil(t/n);for(let e=0;ethis.width||r<0||t>this.height)return!i&&[];const a=[];if(e<=0&&t<=0&&this.width<=n&&this.height<=r){if(i)return!0;for(let e=0;e0:a}}_queryCircle(e,t,n,r,i){const o=e-n,a=e+n,s=t-n,l=t+n;if(a<0||o>this.width||l<0||s>this.height)return!r&&[];const c=[],u={hitTest:r,circle:{x:e,y:t,radius:n},seenUids:{box:{},circle:{}}};return this._forEachCell(o,s,a,l,this._queryCellCircle,c,u,i),r?c.length>0:c}query(e,t,n,r,i){return this._query(e,t,n,r,!1,i)}hitTest(e,t,n,r,i){return this._query(e,t,n,r,!0,i)}hitTestCircle(e,t,n,r){return this._queryCircle(e,t,n,!0,r)}_queryCell(e,t,n,r,i,o,a,s){const l=a.seenUids,c=this.boxCells[i];if(null!==c){const i=this.bboxes;for(const u of c)if(!l.box[u]){l.box[u]=!0;const c=4*u;if(e<=i[c+2]&&t<=i[c+3]&&n>=i[c+0]&&r>=i[c+1]&&(!s||s(this.boxKeys[u]))){if(a.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[u],x1:i[c],y1:i[c+1],x2:i[c+2],y2:i[c+3]})}}}const u=this.circleCells[i];if(null!==u){const i=this.circles;for(const c of u)if(!l.circle[c]){l.circle[c]=!0;const u=3*c;if(this._circleAndRectCollide(i[u],i[u+1],i[u+2],e,t,n,r)&&(!s||s(this.circleKeys[c]))){if(a.hitTest)return o.push(!0),!0;{const e=i[u],t=i[u+1],n=i[u+2];o.push({key:this.circleKeys[c],x1:e-n,y1:t-n,x2:e+n,y2:t+n})}}}}}_queryCellCircle(e,t,n,r,i,o,a,s){const l=a.circle,c=a.seenUids,u=this.boxCells[i];if(null!==u){const e=this.bboxes;for(const t of u)if(!c.box[t]){c.box[t]=!0;const n=4*t;if(this._circleAndRectCollide(l.x,l.y,l.radius,e[n+0],e[n+1],e[n+2],e[n+3])&&(!s||s(this.boxKeys[t])))return o.push(!0),!0}}const h=this.circleCells[i];if(null!==h){const e=this.circles;for(const t of h)if(!c.circle[t]){c.circle[t]=!0;const n=3*t;if(this._circlesCollide(e[n],e[n+1],e[n+2],l.x,l.y,l.radius)&&(!s||s(this.circleKeys[t])))return o.push(!0),!0}}}_forEachCell(e,t,n,r,i,o,a,s){const l=this._convertToXCellCoord(e),c=this._convertToYCellCoord(t),u=this._convertToXCellCoord(n),h=this._convertToYCellCoord(r);for(let d=l;d<=u;d++)for(let l=c;l<=h;l++){const c=this.xCellCount*l+d;if(i.call(this,e,t,n,r,c,o,a,s))return}}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,n,r,i,o){const a=r-e,s=i-t,l=n+o;return l*l>a*a+s*s}_circleAndRectCollide(e,t,n,r,i,o,a){const s=(o-r)/2,l=Math.abs(e-(r+s));if(l>s+n)return!1;const c=(a-i)/2,u=Math.abs(t-(i+c));if(u>c+n)return!1;if(l<=s||u<=c)return!0;const h=l-s,d=u-c;return h*h+d*d<=n*n}}const po=100;class mo{constructor(e,t,n=new fo(e.width+200,e.height+200,25),r=new fo(e.width+200,e.height+200,25)){this.transform=e,this.grid=n,this.ignoredGrid=r,this.pitchfactor=Math.cos(e._pitch)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+po,this.screenBottomBoundary=e.height+po,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.fogState=t}placeCollisionBox(e,t,n,r,i,o,a,s){let l=n.projectedAnchorX,c=n.projectedAnchorY,u=n.projectedAnchorZ;const h=n.elevation,d=n.tileID,f=e.getProjection();if(h&&d){const[e,t,r]=f.upVector(d.canonical,n.tileAnchorX,n.tileAnchorY),i=f.upVectorScale(d.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;l+=e*h*i,c+=t*h*i,u+=r*h*i}const p="globe"===f.name||!!h||this.transform.pitch>0,m=this.projectAndGetPerspectiveRatio(a,l,c,u,n.tileID,p,f),g=o*m.perspectiveRatio,y=(n.x1*t+r.x-n.padding)*g+m.point.x,v=(n.y1*t+r.y-n.padding)*g+m.point.y,b=(n.x2*t+r.x+n.padding)*g+m.point.x,A=(n.y2*t+r.y+n.padding)*g+m.point.y,x=m.perspectiveRatio<=.55||m.occluded;return!this.isInsideGrid(y,v,b,A)||!i&&this.grid.hitTest(y,v,b,A,s)||x?{box:[],offscreen:!1,occluded:m.occluded}:{box:[y,v,b,A],offscreen:this.isOffscreen(y,v,b,A),occluded:!1}}placeCollisionCircles(t,n,r,i,o,a,s,l,c,u,h,d,f,p,m){const g=[],y=this.transform.elevation,v=t.getProjection(),b=y?y.getAtTileOffsetFunc(m,this.transform.center.lat,this.transform.worldSize,v):null,A=new e.P(r.tileAnchorX,r.tileAnchorY);let{x,y:w,z:C}=v.projectTilePoint(A.x,A.y,m.canonical);if(b){const[e,t,n]=b(A);x+=e,w+=t,C+=n}const S="globe"===v.name,E=S||!!y||this.transform.pitch>0,k=this.projectAndGetPerspectiveRatio(s,x,w,C,m,E,v),{perspectiveRatio:T}=k,I=(h?a/T:a*T)/e.bP,O=$t(x,w,C,l),R=r.lineOffsetX*I,M=r.lineOffsetY*I,P=k.signedDistanceFromCamera>0?rn(I,o,R,M,!1,O,A,r,i,l,{},y&&!h?b:null,h&&!!y,v,m,h):null;let D=!1,j=!1,B=!0;if(P&&!k.occluded){const t=.5*f*T+p,r=new e.P(-100,-100),i=new e.P(this.screenRightBoundary,this.screenBottomBoundary),o=new ho,{first:a,last:s}=P,l=a.path.length;let h=[];for(let e=l-1;e>=1;e--)h.push(a.path[e]);for(let e=1;e(b&&!S&&(n=b(re[3]<=0))&&(h=[]));let y=[];if(h.length>0){let t=1/0,n=-1/0,o=1/0,a=-1/0;for(const e of h)t=Math.min(t,e[0]),o=Math.min(o,e[1]),n=Math.max(n,e[0]),a=Math.max(a,e[1]);n>=r.x&&t<=i.x&&a>=r.y&&o<=i.y&&(y=[h.map((t=>new e.P(t[0],t[1])))],(ti.x||oi.y)&&(y=e.cH(y,r.x,r.y,i.x,i.y)))}for(const e of y){o.reset(e,.25*t);let r=0;r=o.length<=.5*t?1:Math.ceil(o.paddedLength/m)+1;for(let e=0;e0){e.aB.transformMat4(l,l,t);const a="globe"===s.name;this.fogState&&o&&!a&&(c=function(t,n,r,i,o,a){const s=a.calculateFogTileMatrix(o),l=[n,r,i];return e.$.transformMat4(l,l,s),et(t,e.$.length(l),a.pitch,a._fov)}(this.fogState,n,r,i,o.toUnwrapped(),this.transform)>.9)}else hn(l,l,t);const u=l[3];return{point:new e.P((l[0]/u+1)/2*this.transform.width+po,(-l[1]/u+1)/2*this.transform.height+po),perspectiveRatio:Math.min(.5+this.transform.getCameraToCenterDistance(s)/u*.5,1.5),signedDistanceFromCamera:u,occluded:a&&l[2]>u||c}}isOffscreen(e,t,n,r){return n=this.screenRightBoundary||rthis.screenBottomBoundary}isInsideGrid(e,t,n,r){return n>=0&&e=0&&te.collisionGroupID===t}}return this.collisionGroups[e]}}function wo(t,n,r,i,o){const{horizontalAlign:a,verticalAlign:s}=e.bS(t),l=-(a-.5)*n,c=-(s-.5)*r,u=e.bR(t,i);return new e.P(l+u[0]*o,c+u[1]*o)}function Co(t,n,r,i,o){const a=new e.P(t,n);return r&&a._rotate(i?o:-o),a}class So{constructor(e,t,n,r,i,o){this.transform=e.clone(),this.projection=e.projection.name,this.collisionIndex=new mo(this.transform,i),this.buildingIndex=o,this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=t,this.retainedQueryData={},this.collisionGroups=new xo(n),this.collisionCircleArrays={},this.prevPlacement=r,r&&(r.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(t,n,r,i){const o=r.getBucket(n),a=r.latestFeatureIndex;if(!o||!a||n.fqid!==o.layerIds[0])return;const s=o.layers[0].layout,l=r.collisionBoxArray,c=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),u=r.tileSize/e.a4,h=r.tileID.toUnwrapped();this.transform.setProjection(o.projection);const d=(m=r.tileID,g=o.getProjection(),y=this.transform,v=this.projection,g.name===v?y.calculateProjMatrix(m.toUnwrapped()):Pr(y,g,m)),f="map"===s.get("text-pitch-alignment"),p="map"===s.get("text-rotation-alignment");var m,g,y,v;n.compileFilter();const b=n.dynamicFilter(),A=n.dynamicFilterNeedsFeature(),x=this.transform.calculatePixelsToTileUnitsMatrix(r),w=Zt(d,r.tileID.canonical,f,p,this.transform,o.getProjection(),x);let C=null;if(f){const t=Kt(d,r.tileID.canonical,f,p,this.transform,o.getProjection(),x);C=e.ae.multiply([],this.transform.labelPlaneMatrix,t)}let S=null;b&&r.latestFeatureIndex&&(S={unwrappedTileID:h,dynamicFilter:b,dynamicFilterNeedsFeature:A,featureIndex:r.latestFeatureIndex}),this.retainedQueryData[o.bucketInstanceId]=new Ao(o.bucketInstanceId,a,o.sourceLayerIndex,o.index,r.tileID);const E={bucket:o,layout:s,posMatrix:d,textLabelPlaneMatrix:w,labelToScreenMatrix:C,clippingData:S,scale:c,textPixelRatio:u,holdingForFade:r.holdingForFade(),collisionBoxArray:l,partiallyEvaluatedTextSize:e.aE(o.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:e.aE(o.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(o.sourceID)};if(i)for(const e of o.sortKeyRanges){const{sortKey:n,symbolInstanceStart:r,symbolInstanceEnd:i}=e;t.push({sortKey:n,symbolInstanceStart:r,symbolInstanceEnd:i,parameters:E})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:o.symbolInstances.length,parameters:E})}attemptAnchorPlacement(e,t,n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,y){const{textOffset0:v,textOffset1:b,crossTileID:A}=h,x=[v,b],w=wo(e,n,r,x,i),C=this.collisionIndex.placeCollisionBox(f,i,t,Co(w.x,w.y,o,a,this.transform.angle),u,s,l,c.predicate);if(m){const e=f.getSymbolInstanceIconSize(y,this.transform.zoom,h.placedIconSymbolIndex);if(0===this.collisionIndex.placeCollisionBox(f,e,m,Co(w.x,w.y,o,a,this.transform.angle),u,s,l,c.predicate).box.length)return}if(C.box.length>0){let t;return this.prevPlacement&&this.prevPlacement.variableOffsets[A]&&this.prevPlacement.placements[A]&&this.prevPlacement.placements[A].text&&(t=this.prevPlacement.variableOffsets[A].anchor),this.variableOffsets[A]={textOffset:x,width:n,height:r,anchor:e,textScale:i,prevAnchor:t},this.markUsedJustification(f,e,h,p),f.allowVerticalPlacement&&(this.markUsedOrientation(f,p,h),this.placedOrientations[A]=p),{shift:w,placedGlyphBoxes:C}}}placeLayerBucketPart(t,n,r,i){const{bucket:o,layout:a,posMatrix:s,textLabelPlaneMatrix:l,labelToScreenMatrix:c,clippingData:u,textPixelRatio:h,holdingForFade:d,collisionBoxArray:f,partiallyEvaluatedTextSize:p,partiallyEvaluatedIconSize:m,collisionGroup:g}=t.parameters,y=a.get("text-optional"),v=a.get("icon-optional"),b=a.get("text-allow-overlap"),A=a.get("icon-allow-overlap"),x="map"===a.get("text-rotation-alignment"),w="map"===a.get("text-pitch-alignment"),C="viewport-y"===a.get("symbol-z-order"),S=a.get("symbol-z-elevate");this.transform.setProjection(o.projection);let E=b&&(A||!o.hasIconData()||v),k=A&&(b||!o.hasTextData()||y);!o.collisionArrays&&f&&o.deserializeCollisionBoxes(f),r&&i&&o.updateCollisionDebugBuffers(this.transform.zoom,f);const T=(t,i,f)=>{const{crossTileID:C,numVerticalGlyphVertices:S}=t;if(u){const r={zoom:this.transform.zoom,pitch:this.transform.pitch};let i=null;if(u.dynamicFilterNeedsFeature){const e=u.featureIndex,n=this.retainedQueryData[o.bucketInstanceId];i=e.loadFeature({featureIndex:t.featureIndex,bucketIndex:n.bucketIndex,sourceLayerIndex:n.sourceLayerIndex,layoutVertexArrayOffset:0})}const a=this.retainedQueryData[o.bucketInstanceId].tileID.canonical;if(!(0,u.dynamicFilter)(r,i,a,new e.P(t.tileAnchorX,t.tileAnchorY),this.transform.calculateDistanceTileData(u.unwrappedTileID)))return this.placements[C]=new vo(!1,!1,!1,!0),void n.add(C)}if(n.has(C))return;if(d)return void(this.placements[C]=new vo(!1,!1,!1));let T=!1,I=!1,O=!0,R=!1,M=!1,P=null,D={box:null,offscreen:null,occluded:null},j={box:null,offscreen:null,occluded:null},B=null,L=null,F=null,N=0,_=0,z=0;f.textFeatureIndex?N=f.textFeatureIndex:t.useRuntimeCollisionCircles&&(N=t.featureIndex),f.verticalTextFeatureIndex&&(_=f.verticalTextFeatureIndex);const V=e=>{e.tileID=this.retainedQueryData[o.bucketInstanceId].tileID;const n=this.transform.elevation;e.elevation=t.zOffset+(n?n.getAtTileOffset(e.tileID,e.tileAnchorX,e.tileAnchorY):0)},U=f.textBox;if(U){V(U);const n=n=>{let r=e.aF.horizontal;if(o.allowVerticalPlacement&&!n&&this.prevPlacement){const e=this.prevPlacement.placedOrientations[C];e&&(this.placedOrientations[C]=e,r=e,this.markUsedOrientation(o,r,t))}return r},r=(t,n)=>{if(o.allowVerticalPlacement&&S>0&&f.verticalTextBox){for(const r of o.writingModes)if(r===e.aF.vertical?(D=n(),j=D):D=t(),D&&D.box&&D.box.length)break}else D=t()};if(a.get("text-variable-anchor")){let l=a.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[C]){const e=this.prevPlacement.variableOffsets[C];l.indexOf(e.anchor)>0&&(l=l.filter((t=>t!==e.anchor)),l.unshift(e.anchor))}const c=(e,n,r)=>{const a=o.getSymbolInstanceTextSize(p,t,this.transform.zoom,i),c=(e.x2-e.x1)*a+2*e.padding,u=(e.y2-e.y1)*a+2*e.padding,d=t.hasIconTextFit&&!A?n:null;d&&V(d);let f={box:[],offscreen:!1,occluded:!1};const y=b?2*l.length:l.length;for(let n=0;n=l.length,b=this.attemptAnchorPlacement(y,e,c,u,a,x,w,h,s,g,v,t,i,o,r,d,p,m);if(b&&(f=b.placedGlyphBoxes,f&&f.box&&f.box.length)){T=!0,P=b.shift;break}}return f};r((()=>c(U,f.iconBox,e.aF.horizontal)),(()=>{const t=f.verticalTextBox;t&&V(t);const n=D&&D.box&&D.box.length;return o.allowVerticalPlacement&&!n&&S>0&&t?c(t,f.verticalIconBox,e.aF.vertical):{box:null,offscreen:null,occluded:null}})),D&&(T=D.box,O=D.offscreen,R=D.occluded);const u=n(!(!D||!D.box));if(!T&&this.prevPlacement){const e=this.prevPlacement.variableOffsets[C];e&&(this.variableOffsets[C]=e,this.markUsedJustification(o,e.anchor,t,u))}}else{const a=(n,r)=>{const a=o.getSymbolInstanceTextSize(p,t,this.transform.zoom,i),l=this.collisionIndex.placeCollisionBox(o,a,n,new e.P(0,0),b,h,s,g.predicate);return l&&l.box&&l.box.length&&(this.markUsedOrientation(o,r,t),this.placedOrientations[C]=r),l};r((()=>a(U,e.aF.horizontal)),(()=>{const t=f.verticalTextBox;return o.allowVerticalPlacement&&S>0&&t?(V(t),a(t,e.aF.vertical)):{box:null,offscreen:null,occluded:null}})),n(!!(D&&D.box&&D.box.length))}}if(B=D,T=B&&B.box&&B.box.length>0,O=B&&B.offscreen,R=B&&B.occluded,t.useRuntimeCollisionCircles){const n=t.centerJustifiedTextSymbolIndex>=0?t.centerJustifiedTextSymbolIndex:t.verticalPlacedTextSymbolIndex,i=o.text.placedSymbolArray.get(n),u=e.aG(o.textSizeData,p,i),h=a.get("text-padding"),d=t.collisionCircleDiameter*u/e.bP;L=this.collisionIndex.placeCollisionCircles(o,b,i,o.lineVertexArray,o.glyphOffsetArray,u,s,l,c,r,w,g.predicate,d,h,this.retainedQueryData[o.bucketInstanceId].tileID),T=b||L.circles.length>0&&!L.collisionDetected,O=O&&L.offscreen,R=L.occluded}if(f.iconFeatureIndex&&(z=f.iconFeatureIndex),f.iconBox){const n=n=>{V(n);const r=t.hasIconTextFit&&P?Co(P.x,P.y,x,w,this.transform.angle):new e.P(0,0),i=o.getSymbolInstanceIconSize(m,this.transform.zoom,t.placedIconSymbolIndex);return this.collisionIndex.placeCollisionBox(o,i,n,r,A,h,s,g.predicate)};j&&j.box&&j.box.length&&f.verticalIconBox?(F=n(f.verticalIconBox),I=F.box.length>0):(F=n(f.iconBox),I=F.box.length>0),O=O&&F.offscreen,M=F.occluded}const H=y||0===t.numHorizontalGlyphVertices&&0===S,q=v||0===t.numIconVertices;if(H||q?q?H||(I=I&&T):T=I&&T:I=T=I&&T,T&&B&&B.box&&(j&&j.box&&_?this.collisionIndex.insertCollisionBox(B.box,a.get("text-ignore-placement"),o.bucketInstanceId,_,g.ID):this.collisionIndex.insertCollisionBox(B.box,a.get("text-ignore-placement"),o.bucketInstanceId,N,g.ID)),I&&F&&this.collisionIndex.insertCollisionBox(F.box,a.get("icon-ignore-placement"),o.bucketInstanceId,z,g.ID),L&&(T&&this.collisionIndex.insertCollisionCircles(L.circles,a.get("text-ignore-placement"),o.bucketInstanceId,N,g.ID),r)){const e=o.bucketInstanceId;let t=this.collisionCircleArrays[e];void 0===t&&(t=this.collisionCircleArrays[e]=new bo);for(let e=0;e=0;--e){const n=t[e];T(o.symbolInstances.get(n),n,o.collisionArrays[n])}o.hasAnyZOffset&&e.w(`${o.layerIds[0]} layer symbol-z-elevate: symbols are not sorted by elevation if symbol-z-order is evaluated to viewport-y`)}else if(o.hasAnyZOffset){const e=o.getSortedIndexesByZOffset();for(let t=0;t=0&&(t.text.placedSymbolArray.get(o).crossTileID=h>=0&&o!==h?0:c),a>=0&&(t.text.placedSymbolArray.get(a).crossTileID=h>=0&&a!==h?0:c),s>=0&&(t.text.placedSymbolArray.get(s).crossTileID=h>=0&&s!==h?0:c),l>=0&&(t.text.placedSymbolArray.get(l).crossTileID=h>=0&&l!==h?0:c)}markUsedOrientation(t,n,r){const i=n===e.aF.horizontal||n===e.aF.horizontalOnly?n:0,o=n===e.aF.vertical?n:0,{leftJustifiedTextSymbolIndex:a,centerJustifiedTextSymbolIndex:s,rightJustifiedTextSymbolIndex:l,verticalPlacedTextSymbolIndex:c}=r,u=t.text.placedSymbolArray;a>=0&&(u.get(a).placedOrientation=i),s>=0&&(u.get(s).placedOrientation=i),l>=0&&(u.get(l).placedOrientation=i),c>=0&&(u.get(c).placedOrientation=o)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;const t=this.prevPlacement;let n=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;const r=t?t.symbolFadeChange(e):1,i=t?t.opacities:{},o=t?t.variableOffsets:{},a=t?t.placedOrientations:{};for(const e in this.placements){const t=this.placements[e],o=i[e];o?(this.opacities[e]=new yo(o,r,t.text,t.icon,null,t.clipped),n=n||t.text!==o.text.placed||t.icon!==o.icon.placed):(this.opacities[e]=new yo(null,r,t.text,t.icon,t.skipFade,t.clipped),n=n||t.text||t.icon)}for(const e in i){const t=i[e];if(!this.opacities[e]){const i=new yo(t,r,!1,!1);i.isHidden()||(this.opacities[e]=i,n=n||t.text.placed||t.icon.placed)}}for(const e in o)this.variableOffsets[e]||!this.opacities[e]||this.opacities[e].isHidden()||(this.variableOffsets[e]=o[e]);for(const e in a)this.placedOrientations[e]||!this.opacities[e]||this.opacities[e].isHidden()||(this.placedOrientations[e]=a[e]);n?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t,n,r){const i=new Set;for(const o of t){const t=o.getBucket(e);t&&o.latestFeatureIndex&&e.fqid===t.layerIds[0]&&(this.updateBucketOpacities(t,i,o.collisionBoxArray,n,r,o.tileID,e.scope),t.layers[0].layout.get("symbol-z-elevate")&&this.buildingIndex&&(this.buildingIndex.updateZOffset(t,o.tileID),t.updateZOffset()))}}updateBucketOpacities(t,n,r,i,o,a,s){t.hasTextData()&&t.text.opacityVertexArray.clear(),t.hasIconData()&&t.icon.opacityVertexArray.clear(),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();const l=t.layers[0].layout,c=!!t.layers[0].dynamicFilter(),u=new yo(null,0,!1,!1,!0),h=l.get("text-allow-overlap"),d=l.get("icon-allow-overlap"),f=l.get("text-variable-anchor"),p="map"===l.get("text-rotation-alignment"),m="map"===l.get("text-pitch-alignment"),g=new yo(null,0,h&&(d||!t.hasIconData()||l.get("icon-optional")),d&&(h||!t.hasTextData()||l.get("text-optional")),!0);!t.collisionArrays&&r&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(r);const y=(e,t,n)=>{for(let r=0;r0||d>0,k=A>0,T=this.placedOrientations[b],I=T===e.aF.vertical,O=T===e.aF.horizontal||T===e.aF.horizontalOnly;!E&&!k||S.isHidden()||v++;let R=!1;if((E||k)&&o)for(const n of t.activeReplacements){if(e.cJ(n,i,e.cw.Symbol,s))continue;if(n.min.x>x||x>n.max.x||n.min.y>w||w>n.max.y)continue;const t=e.cK(x,w,a.canonical,n.footprintTileId.canonical);if(R=e.cL(t,n),R)break}if(E){const e=R?jo:Do(S.text),n=I?jo:e;y(t.text,h,n);const r=O?jo:e;y(t.text,d,r);const i=S.text.isHidden(),{leftJustifiedTextSymbolIndex:o,centerJustifiedTextSymbolIndex:a,rightJustifiedTextSymbolIndex:s,verticalPlacedTextSymbolIndex:c}=l,u=t.text.placedSymbolArray,f=i||I?1:0;o>=0&&(u.get(o).hidden=f),a>=0&&(u.get(a).hidden=f),s>=0&&(u.get(s).hidden=f),c>=0&&(u.get(c).hidden=i||O?1:0);const p=this.variableOffsets[b];p&&this.markUsedJustification(t,p.anchor,l,T);const m=this.placedOrientations[b];m&&(this.markUsedJustification(t,"left",l,m),this.markUsedOrientation(t,m,l))}if(k){const e=R?jo:Do(S.icon),{placedIconSymbolIndex:n,verticalPlacedIconSymbolIndex:r}=l,i=t.icon.placedSymbolArray,o=S.icon.isHidden()?1:0;if(n>=0){const r=I?jo:e;y(t.icon,A,r),i.get(n).hidden=o}if(r>=0){const n=O?jo:e;y(t.icon,l.numVerticalIconVertices,n),i.get(r).hidden=o}}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){const n=t.collisionArrays[r];if(n){let r=new e.P(0,0),i=!0;if(n.textBox||n.verticalTextBox){if(f){const e=this.variableOffsets[b];e?(r=wo(e.anchor,e.width,e.height,e.textOffset,e.textScale),p&&r._rotate(m?this.transform.angle:-this.transform.angle)):i=!1}c&&(i=!S.clipped),n.textBox&&Eo(t.textCollisionBox.collisionVertexArray,S.text.placed,!i||I,r.x,r.y),n.verticalTextBox&&Eo(t.textCollisionBox.collisionVertexArray,S.text.placed,!i||O,r.x,r.y)}const o=i&&Boolean(!O&&n.verticalIconBox);n.iconBox&&Eo(t.iconCollisionBox.collisionVertexArray,S.icon.placed,o,l.hasIconTextFit?r.x:0,l.hasIconTextFit?r.y:0),n.verticalIconBox&&Eo(t.iconCollisionBox.collisionVertexArray,S.icon.placed,!o,l.hasIconTextFit?r.x:0,l.hasIconTextFit?r.y:0)}}}if(t.fullyClipped=0===v,t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.bucketInstanceId in this.collisionCircleArrays){const e=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=e.invProjMatrix,t.placementViewportMatrix=e.viewportMatrix,t.collisionCircleArray=e.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}}symbolFadeChange(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTimee}setStale(){this.stale=!0}}function Eo(e,t,n,r,i){e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0)}const ko=Math.pow(2,25),To=Math.pow(2,24),Io=Math.pow(2,17),Oo=Math.pow(2,16),Ro=Math.pow(2,9),Mo=Math.pow(2,8),Po=Math.pow(2,1);function Do(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;const t=e.placed?1:0,n=Math.floor(127*e.opacity);return n*ko+t*To+n*Io+t*Oo+n*Ro+t*Mo+n*Po+t}const jo=0;class Bo{constructor(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&void 0!==e.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs=new Set,this._bucketParts=[]}continuePlacement(e,t,n,r,i){const o=this._bucketParts;for(;this._currentTileIndexe.sortKey-t.sortKey)));this._currentPartIndex{const t=e.e.now()-o;return!this._forceFullPlacement&&t>2};for(;this._currentPlacementIndex>=0;){const o=n[t[this._currentPlacementIndex]],s=this.placement.collisionIndex.transform.zoom;if("symbol"===o.type&&(!o.minzoom||o.minzoom<=s)&&(!o.maxzoom||o.maxzoom>s)){const t=o,n=t.layout.get("symbol-z-elevate"),s=this._inProgressLayer=this._inProgressLayer||new Bo(t),l=e.am(o.source,o.scope);if(s.continuePlacement(n?i[l]:r[l],this.placement,this._showCollisionBoxes,o,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}}const Fo=512/e.a4/2;class No{constructor(t,n,r){this.tileID=t,this.bucketInstanceId=r,this.index=new e.cN(n.length,16,Int32Array),this.keys=[],this.crossTileIDs=[];const i=t.canonical.x*e.a4,o=t.canonical.y*e.a4;for(let e=0;ee.overscaledZ)for(const n in i){const o=i[n];o.tileID.isChildOf(e)&&o.findMatches(t.symbolInstances,e,r)}else{const o=i[e.scaledTo(Number(n)).key];o&&o.findMatches(t.symbolInstances,e,r)}}for(let e=0;e{t[e]=!0}));for(const e in this.layerIndexes)t[e]||delete this.layerIndexes[e]}}const Uo=new e.U({data:new e.W(e.N.colorTheme.data)});const Ho=(e,t)=>Ye(e,t&&t.filter((e=>"source.canvas"!==e.identifier))),qo=e.ai(no,["addLayer","removeLayer","setLights","setPaintProperty","setLayoutProperty","setSlot","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setProjection","setCamera","addImport","removeImport","updateImport"]),Go=e.ai(no,["setCenter","setZoom","setBearing","setPitch"]),Yo={version:8,layers:[],sources:{}},Wo={duration:300,delay:0};class Qo extends e.E{constructor(t,n={}){super(),this.map=t,this.scope=n.scope||"",this.globalId=null,this.fragments=[],this.importDepth=n.importDepth||0,this.importsCache=n.importsCache||new Map,this.resolvedImports=n.resolvedImports||new Set,this.transition=e.Q({},Wo),this._buildingIndex=new $i(this),this.crossTileSymbolIndex=new Vo,this._mergedOrder=[],this._drapedFirstOrder=[],this._mergedLayers={},this._mergedSourceCaches={},this._mergedOtherSourceCaches={},this._mergedSymbolSourceCaches={},this._clipLayerIndices=[],this._has3DLayers=!1,this._hasCircleLayers=!1,this._hasSymbolLayers=!1,this._changes=n.styleChanges||new y,n.dispatcher?this.dispatcher=n.dispatcher:this.dispatcher=new e.by(e.bz(),this),n.imageManager?this.imageManager=n.imageManager:(this.imageManager=new le,this.imageManager.setEventedParent(this)),this.imageManager.createScope(this.scope),n.glyphManager?this.glyphManager=n.glyphManager:this.glyphManager=new e.cP(t._requestManager,n.localFontFamily?e.cQ.all:n.localIdeographFontFamily?e.cQ.ideographs:e.cQ.none,n.localFontFamily||n.localIdeographFontFamily),n.modelManager?this.modelManager=n.modelManager:(this.modelManager=new ae(t._requestManager),this.modelManager.setEventedParent(this)),this._layers={},this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this._loaded=!1,this._precompileDone=!1,this._shouldPrecompile=!1,this._availableImages=[],this._order=[],this._markersNeedUpdate=!1,this._styleColorTheme={lut:null,lutLoading:!1,lutLoadingCorrelationID:0,colorTheme:null},this._styleColorThemeForScope={},this.options=n.configOptions?n.configOptions:new Map,this._configDependentLayers=n.configDependentLayers?n.configDependentLayers:new Set,this._config=n.config,this._initialConfig=n.initialConfig,this.dispatcher.broadcast("setReferrer",e.cR());const r=this;this._rtlTextPluginCallback=Qo.registerForPluginStateChange((t=>{const n={pluginStatus:t.pluginStatus,pluginURL:t.pluginURL};r.dispatcher.broadcast("syncRTLPluginState",n,((t,n)=>{if(e.cS(t),n&&n.every((e=>e)))for(const e in r._sourceCaches){const t=r._sourceCaches[e],n=t.getSource().type;"vector"!==n&&"geojson"!==n||t.reload()}}))})),this.on("data",(e=>{if("source"!==e.dataType||"metadata"!==e.sourceDataType)return;const t=this.getOwnSource(e.sourceId);if(t&&t.vectorLayerIds)for(const e in this._layers){const n=this._layers[e];n.source===t.id&&this._validateLayer(n)}}))}load(e){return e?("string"==typeof e?this.loadURL(e):this.loadJSON(e),this):this}_getGlobalId(t){if(!t)return null;if("string"==typeof t){if(e.cT(t))return t;const n=e.cU(t);if(!n.startsWith("http"))try{return new URL(n,location.href).toString()}catch(e){return n}return n}return`json://${e.cV(JSON.stringify(t))}`}_diffStyle(t,n,r){this.globalId=this._getGlobalId(t);const i=(e,t)=>{try{t(null,this.setState(e,r))}catch(e){t(e,!1)}};if("string"==typeof t){const r=this.map._requestManager.normalizeStyleURL(t),o=this.map._requestManager.transformRequest(r,e.R.Style);e.h(o,((t,r)=>{t?this.fire(new e.f(t)):r&&i(r,n)}))}else"object"==typeof t&&i(t,n)}loadURL(t,n={}){this.fire(new e.g("dataloading",{dataType:"style"}));const r="boolean"==typeof n.validate?n.validate:!e.cT(t);this.globalId=this._getGlobalId(t),t=this.map._requestManager.normalizeStyleURL(t,n.accessToken),this.resolvedImports.add(t);const i=this.importsCache.get(t);if(i)return this._load(i,r);const o=this.map._requestManager.transformRequest(t,e.R.Style);this._request=e.h(o,((n,i)=>{if(this._request=null,n)this.fire(new e.f(n));else if(i)return this.importsCache.set(t,i),this._load(i,r)}))}loadJSON(t,n={}){this.fire(new e.g("dataloading",{dataType:"style"})),this.globalId=this._getGlobalId(t),this._request=e.e.frame((()=>{this._request=null,this._load(t,!1!==n.validate)}))}loadEmpty(){this.fire(new e.g("dataloading",{dataType:"style"})),this._load(Yo,!1)}_loadImports(t,n,r){if(this.importDepth>=4)return e.w("Style doesn't support nesting deeper than 5"),Promise.resolve();const i=[];for(const e of t){const t=this._createFragmentStyle(e),o=new Promise((e=>{t.once("style.import.load",e),t.once("error",e)})).then((()=>this.mergeAll()));if(i.push(o),this.resolvedImports.has(e.url)){t.loadEmpty();continue}const a=e.data||this.importsCache.get(e.url);a?(t.loadJSON(a,{validate:n}),this._isInternalStyle(a)&&(t.globalId=null)):e.url?t.loadURL(e.url,{validate:n}):t.loadEmpty();const s={style:t,id:e.id,config:e.config};if(r){const e=this.fragments.findIndex((({id:e})=>e===r));this.fragments=this.fragments.slice(0,e).concat(s).concat(this.fragments.slice(e))}else this.fragments.push(s)}return Promise.allSettled(i)}getImportGlobalIds(e=this,t=new Set){for(const n of e.fragments)n.style.globalId&&t.add(n.style.globalId),this.getImportGlobalIds(n.style,t);return[...t.values()]}_createFragmentStyle(t){const n=this.scope?e.am(t.id,this.scope):t.id;let r;const i=this._initialConfig&&this._initialConfig[n];(t.config||i)&&(r=e.Q({},t.config,i));const o=new Qo(this.map,{scope:n,styleChanges:this._changes,importDepth:this.importDepth+1,importsCache:this.importsCache,resolvedImports:new Set(this.resolvedImports),dispatcher:this.dispatcher,imageManager:this.imageManager,glyphManager:this.glyphManager,modelManager:this.modelManager,config:r,configOptions:this.options,configDependentLayers:this._configDependentLayers});return o.setEventedParent(this.map,{style:o}),o}_reloadImports(){this.mergeAll(),this._updateMapProjection(),this.updateConfigDependencies(),this.map._triggerCameraUpdate(this.camera),this.dispatcher.broadcast("setLayers",{layers:this._serializeLayers(this._order),scope:this.scope,options:this.options}),this._shouldPrecompile=this.map._precompilePrograms&&this.isRootStyle()}_isInternalStyle(e){return this.isRootStyle()&&(e.fragment||!!e.schema&&!1!==e.fragment)}_load(t,n){const r=t.schema;if(this._isInternalStyle(t)){const r={id:"basemap",data:t,url:""},i=e.Q({},Yo,{imports:[r]});return void this._load(i,n)}if(this.updateConfig(this._config,r),n&&Ho(this,je(t)))return;this._loaded=!0,this.stylesheet=e.cW(t);const i=()=>{for(const e in t.sources)this.addSource(e,t.sources[e],{validate:!1,isInitialLoad:!0});t.sprite?this._loadSprite(t.sprite):(this.imageManager.setLoaded(!0,this.scope),this.dispatcher.broadcast("spriteLoaded",{scope:this.scope,isLoaded:!0})),this.glyphManager.setURL(t.glyphs,this.scope);const r=to(this.stylesheet.layers);if(this._order=r.map((e=>e.id)),this.stylesheet.light&&e.w("The `light` root property is deprecated, prefer using `lights` with `flat` light type instead."),this.stylesheet.lights)if(1===this.stylesheet.lights.length&&"flat"===this.stylesheet.lights[0].type){const e=this.stylesheet.lights[0];this.light=new Qe(e.properties,e.id)}else this.setLights(this.stylesheet.lights);this.light||(this.light=new Qe(this.stylesheet.light)),this._layers={},this._serializedLayers={};for(const t of r){const n=e.c$(t,this.scope,this._styleColorTheme.lut,this.options);0!==n.configDependencies.size&&this._configDependentLayers.add(n.fqid),n.setEventedParent(this,{layer:{id:n.id}}),this._layers[n.id]=n,this._serializedLayers[n.id]=n.serialize();const r=this.getOwnLayerSourceCache(n),i=!!this.directionalLight&&this.directionalLight.shadowsEnabled();r&&n.canCastShadows()&&i&&(r.castsShadows=!0)}this.stylesheet.models&&this.modelManager.addModels(this.stylesheet.models,this.scope);const i=this.stylesheet.terrain;i&&(this.checkCanvasFingerprintNoise(),this.disableElevatedTerrain||this.terrainSetForDrapingOnly()||this._createTerrain(i,Je)),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this.stylesheet.transition&&this.setTransition(this.stylesheet.transition),this.fire(new e.g("data",{dataType:"style"}));const o=this.isRootStyle();t.imports?this._loadImports(t.imports,n).then((()=>{this._reloadImports(),this.fire(new e.g(o?"style.load":"style.import.load"))})):(this._reloadImports(),this.fire(new e.g(o?"style.load":"style.import.load")))},o=this.stylesheet["color-theme"];if(this._styleColorTheme.colorTheme=o,o){const t=this._evaluateColorThemeData(o);this._loadColorTheme(t).then((()=>{i()})).catch((t=>{e.w(`Couldn't load color theme from the stylesheet: ${t}`),i()}))}else this._styleColorTheme.lut=null,i()}isRootStyle(){return 0===this.importDepth}mergeAll(){let t,n,r,i,o,a,s,l;const c={};this.terrain&&this.terrain.scope!==this.scope&&delete this.terrain,this.forEachFragmentStyle((e=>{if(e.stylesheet){if(null!=e.light&&(t=e.light),e.stylesheet.lights)for(const t of e.stylesheet.lights)"ambient"===t.type&&null!=e.ambientLight&&(n=e.ambientLight),"directional"===t.type&&null!=e.directionalLight&&(r=e.directionalLight);i=this._prioritizeTerrain(i,e.terrain,e.stylesheet.terrain),e.stylesheet.fog&&null!=e.fog&&(o=e.fog),null!=e.stylesheet.camera&&(l=e.stylesheet.camera),null!=e.stylesheet.projection&&(a=e.stylesheet.projection),null!=e.stylesheet.transition&&(s=e.stylesheet.transition),c[e.scope]=e._styleColorTheme}})),this.light=t,this.ambientLight=n,this.directionalLight=r,this.fog=o,this._styleColorThemeForScope=c,null===i?delete this.terrain:this.terrain=i,this.camera=l||{"camera-projection":"perspective"},this.projection=a||{name:"mercator"},this.transition=e.Q({},Wo,s),this.mergeSources(),this.mergeLayers()}forEachFragmentStyle(e){const t=n=>{for(const e of n.fragments)t(e.style);e(n)};t(this)}_prioritizeTerrain(e,t,n){const r=e&&e.drapeRenderMode===Xe,i=t&&t.drapeRenderMode===Xe;if(null===n)return i?t:r?e:null;if(null!=t){const n=t&&t.drapeRenderMode===Je;if(!e||r||n)return t}return e}mergeTerrain(){let e;this.terrain&&this.terrain.scope!==this.scope&&delete this.terrain,this.forEachFragmentStyle((t=>{e=this._prioritizeTerrain(e,t.terrain,t.stylesheet.terrain)})),null===e?delete this.terrain:this.terrain=e}mergeProjection(){let e;this.forEachFragmentStyle((t=>{null!=t.stylesheet.projection&&(e=t.stylesheet.projection)})),this.projection=e||{name:"mercator"}}mergeSources(){const t={},n={},r={};this.forEachFragmentStyle((i=>{for(const n in i._sourceCaches){const r=e.am(n,i.scope);t[r]=i._sourceCaches[n]}for(const t in i._otherSourceCaches){const r=e.am(t,i.scope);n[r]=i._otherSourceCaches[t]}for(const t in i._symbolSourceCaches){const n=e.am(t,i.scope);r[n]=i._symbolSourceCaches[t]}})),this._mergedSourceCaches=t,this._mergedOtherSourceCaches=n,this._mergedSymbolSourceCaches=r}mergeLayers(){const t={},n=[],r={};this._mergedSlots=[],this._has3DLayers=!1,this._hasCircleLayers=!1,this._hasSymbolLayers=!1,this.forEachFragmentStyle((r=>{for(const i of r._order){const o=r._layers[i];if("slot"===o.type){const n=e.cX(i);if(t[n])continue;t[n]=[]}o.slot&&t[o.slot]?t[o.slot].push(o):n.push(o)}})),this._mergedOrder=[],this._clipLayerIndices=[];let i=0;const o=(n=[])=>{for(const a of n)if("slot"===a.type){const n=e.cX(a.id);t[n]&&o(t[n]),this._mergedSlots.push(n)}else{const t=e.am(a.id,a.scope);this._mergedOrder.push(t),r[t]=a,a.is3D()&&(this._has3DLayers=!0),"circle"===a.type&&(this._hasCircleLayers=!0),"symbol"===a.type&&(this._hasSymbolLayers=!0),"clip"===a.type&&this._clipLayerIndices.push(i),i++}};o(n),this._mergedOrder.sort(((e,t)=>{const n=r[e],i=r[t];return n.hasInitialOcclusionOpacityProperties?i.is3D()?1:0:n.is3D()&&i.hasInitialOcclusionOpacityProperties?-1:0})),this._mergedLayers=r,this.updateDrapeFirstLayers(),this._buildingIndex.processLayersChanged()}terrainSetForDrapingOnly(){return!!this.terrain&&this.terrain.drapeRenderMode===Xe}getCamera(){return this.stylesheet.camera}setCamera(t){return this.stylesheet.camera=e.Q({},this.stylesheet.camera,t),this.camera=this.stylesheet.camera,this}_evaluateColorThemeData(t){return t.data?function(t,n,r){const i=e.Q({},n);for(const t of Object.keys(e.N.colorTheme))void 0===i[t]&&(i[t]=e.N.colorTheme[t].default);const o=new e.O(Uo,t,new Map(r));return o.setTransitionOrValue(i,r),o.untransitioned().possiblyEvaluate(new e.Y(0))}(this.scope,t,this.options).get("data"):null}_loadColorTheme(t){this._styleColorTheme.lutLoading=!0,this._styleColorTheme.lutLoadingCorrelationID+=1;const n=this._styleColorTheme.lutLoadingCorrelationID;return new Promise(((r,i)=>{const o="data:image/png;base64,";if(!t||0===t.length)return this._styleColorTheme.lut=null,this._styleColorTheme.lutLoading=!1,void r();let a=t;a.startsWith(o)||(a=o+a);const s="mapbox-reserved-lut",l=new Image;l.src=a,l.onerror=()=>{this._styleColorTheme.lutLoading=!1,i(new Error("Failed to load image data"))},l.onload=()=>{if(this._styleColorTheme.lutLoadingCorrelationID!==n)return void r();this._styleColorTheme.lutLoading=!1;const{width:o,height:a,data:c}=e.e.getImageData(l);if(a>32)return void i(new Error("The height of the image must be less than or equal to 32 pixels."));if(o!==a*a)return void i(new Error("The width of the image must be equal to the height squared."));this.getImage(s)&&this.removeImage(s),this.addImage(s,{data:new e.j({width:o,height:a},c),pixelRatio:1,sdf:!1,version:0});const u=this.imageManager.getImage(s,this.scope);u?(this._styleColorTheme.lut={image:u.data,data:t},r()):i(new Error("Missing LUT image."))}}))}getLut(e){const t=this._styleColorThemeForScope[e];return t?t.lut:null}setProjection(e){e?this.stylesheet.projection=e:delete this.stylesheet.projection,this.mergeProjection(),this._updateMapProjection()}applyProjectionUpdate(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?(this.getTerrain()||this.stylesheet.terrain)&&!this.disableElevatedTerrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null,Xe))}_updateMapProjection(){this.isRootStyle()&&(this.map._useExplicitProjection?this.applyProjectionUpdate():this.map._prioritizeAndUpdateProjection(null,this.projection))}_loadSprite(t){this._spriteRequest=function(t,n,r){let i,o,a;const s=e.e.devicePixelRatio>1?"@2x":"";let l=e.h(n.transformRequest(n.normalizeSpriteURL(t,s,".json"),e.R.SpriteJSON),((e,t)=>{l=null,a||(a=e,i=t,u())})),c=e.i(n.transformRequest(n.normalizeSpriteURL(t,s,".png"),e.R.SpriteImage),((e,t)=>{c=null,a||(a=e,o=t,u())}));function u(){if(a)r(a);else if(i&&o){const t=e.e.getImageData(o),n={};for(const r in i){const{width:o,height:a,x:s,y:l,sdf:c,pixelRatio:u,stretchX:h,stretchY:d,content:f}=i[r],p=new e.j({width:o,height:a});e.j.copy(t,p,{x:s,y:l},{x:0,y:0},{width:o,height:a},null),n[r]={data:p,pixelRatio:u,sdf:c,stretchX:h,stretchY:d,content:f}}r(null,n)}}return{cancel(){l&&(l.cancel(),l=null),c&&(c.cancel(),c=null)}}}(t,this.map._requestManager,((t,n)=>{if(this._spriteRequest=null,t)this.fire(new e.f(t));else if(n)for(const e in n)this.imageManager.addImage(e,this.scope,n[e]);this.imageManager.setLoaded(!0,this.scope),this._availableImages=this.imageManager.listImages(this.scope),this.dispatcher.broadcast("setImages",{scope:this.scope,images:this._availableImages}),this.dispatcher.broadcast("spriteLoaded",{scope:this.scope,isLoaded:!0}),this.fire(new e.g("data",{dataType:"style"}))}))}_validateLayer(t){const n=this.getOwnSource(t.source);if(!n)return;const r=t.sourceLayer;r&&("geojson"===n.type||n.vectorLayerIds&&-1===n.vectorLayerIds.indexOf(r))&&this.fire(new e.f(new Error(`Source layer "${r}" does not exist on source "${n.id}" as specified by style layer "${t.id}"`)))}loaded(){if(!this._loaded)return!1;if(Object.keys(this._changes.getUpdatedSourceCaches()).length)return!1;for(const e in this._sourceCaches)if(!this._sourceCaches[e].loaded())return!1;if(!this.imageManager.isLoaded())return!1;if(!this.modelManager.isLoaded())return!1;if(this._styleColorTheme.lutLoading)return!1;for(const{style:e}of this.fragments)if(!e.loaded())return!1;return!0}_serializeImports(){if(this.stylesheet.imports)return this.stylesheet.imports.map(((e,t)=>{const n=this.fragments[t];return n&&n.style&&(e.data=n.style.serialize()),e}))}_serializeSources(){const e={};for(const t in this._sourceCaches){const n=this._sourceCaches[t].getSource();e[n.id]||(e[n.id]=n.serialize())}return e}_serializeLayers(e){const t=[];for(const n of e){const e=this._layers[n];e&&"custom"!==e.type&&t.push(e.serialize())}return t}hasLightTransitions(){return!(!this.light||!this.light.hasTransition())||!(!this.ambientLight||!this.ambientLight.hasTransition())||!(!this.directionalLight||!this.directionalLight.hasTransition())}hasFogTransition(){return!!this.fog&&this.fog.hasTransition()}hasTransitions(){if(this.hasLightTransitions())return!0;if(this.hasFogTransition())return!0;for(const e in this._sourceCaches)if(this._sourceCaches[e].hasTransition())return!0;for(const e in this._layers)if(this._layers[e].hasTransition())return!0;return!1}get order(){return this.terrain?this._drapedFirstOrder:this._mergedOrder}isLayerDraped(e){return!!this.terrain&&e.isDraped(this.getLayerSourceCache(e))}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}_checkLayer(t){const n=this.getOwnLayer(t);if(n)return n;this.fire(new e.f(new Error(`The layer '${t}' does not exist in the map's style.`)))}_checkSource(t){const n=this.getOwnSource(t);if(n)return n;this.fire(new e.f(new Error(`The source '${t}' does not exist in the map's style.`)))}precompilePrograms(e,t){const n=this.map.painter;if(n)for(let r=e.minzoom||0;r<(e.maxzoom||25.5);r++){const r=e.getProgramIds();if(r)for(const i of r){const r=e.getDefaultProgramParams(i,t.zoom,this._styleColorTheme.lut);r&&(n.style=this,this.fog&&(n._fogVisible=!0,r.overrideFog=!0,n.getOrCreateProgram(i,r)),n._fogVisible=!1,r.overrideFog=!1,n.getOrCreateProgram(i,r),(this.stylesheet.terrain||this.stylesheet.projection&&"globe"===this.stylesheet.projection.name)&&(r.overrideRtt=!0,n.getOrCreateProgram(i,r)))}}}update(t){if(!this._loaded)return;this.ambientLight&&this.ambientLight.recalculate(t),this.directionalLight&&this.directionalLight.recalculate(t);const n=this.calculateLightsBrightness();t.brightness=n||0,n!==this._brightness&&(this._brightness=n,this.dispatcher.broadcast("setBrightness",n));const r=this._changes.isDirty();let i=!1;if(this._changes.isDirty()){const e=this._changes.getLayerUpdatesByScope();for(const t in e){const{updatedIds:n,removedIds:r}=e[t];(n||r)&&(this._updateWorkerLayers(t,n,r),i=!0)}this.updateSourceCaches(),this._updateTilesForChangedImages(),this.updateLayers(t),this.light&&this.light.updateTransitions(t),this.ambientLight&&this.ambientLight.updateTransitions(t),this.directionalLight&&this.directionalLight.updateTransitions(t),this.fog&&this.fog.updateTransitions(t),this._changes.reset()}const o={};for(const e in this._mergedSourceCaches){const t=this._mergedSourceCaches[e];o[e]=t.used,t.used=!1,t.tileCoverLift=0}for(const e of this._mergedOrder){const n=this._mergedLayers[e];if(n.recalculate(t,this._availableImages),!n.isHidden(t.zoom)){const e=this.getLayerSourceCache(n);e&&(e.used=!0,e.tileCoverLift=Math.max(e.tileCoverLift,n.tileCoverLift()))}!this._precompileDone&&this._shouldPrecompile&&("requestIdleCallback"in window?requestIdleCallback((()=>{this.precompilePrograms(n,t)})):this.precompilePrograms(n,t))}this._shouldPrecompile&&(this._precompileDone=!0),this.terrain&&i&&this.mergeLayers();for(const t in o){const n=this._mergedSourceCaches[t];o[t]!==n.used&&n.getSource().fire(new e.g("data",{sourceDataType:"visibility",dataType:"source",sourceId:n.getSource().id}))}this.light&&this.light.recalculate(t),this.terrain&&this.terrain.recalculate(t),this.fog&&this.fog.recalculate(t),this.z=t.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),r&&this.fire(new e.g("data",{dataType:"style"}))}_updateTilesForChangedImages(){const e=this._changes.getUpdatedImages();if(e.length){for(const t in this._sourceCaches)this._sourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e);this._changes.resetUpdatedImages()}}_updateWorkerLayers(e,t,n){const r=this.getFragmentStyle(e);r&&this.dispatcher.broadcast("updateLayers",{layers:t?r._serializeLayers(t):[],scope:e,removedIds:n||[],options:r.options})}setState(t,n){if(this._checkLoaded(),Ho(this,je(t)))return!1;(t=e.cW(t)).layers=to(t.layers);const r=uo(this.serialize(),t).filter((e=>!(e.command in Go)));if(0===r.length)return!1;const i=r.filter((e=>!(e.command in qo)));if(i.length>0)throw new Error(`Unimplemented: ${i.map((e=>e.command)).join(", ")}.`);const o=[];return r.forEach((e=>{o.push(this[e.command].apply(this,e.args))})),n&&Promise.all(o).then(n),this.stylesheet=t,this.mergeAll(),this.dispatcher.broadcast("setLayers",{layers:this._serializeLayers(this._order),scope:this.scope,options:this.options}),!0}addImage(t,n){return this.getImage(t)?this.fire(new e.f(new Error("An image with this name already exists."))):(this.imageManager.addImage(t,this.scope,n),this._afterImageUpdated(t),this)}updateImage(e,t){this.imageManager.updateImage(e,this.scope,t)}getImage(e){return this.imageManager.getImage(e,this.scope)}removeImage(t){return this.getImage(t)?(this.imageManager.removeImage(t,this.scope),this._afterImageUpdated(t),this):this.fire(new e.f(new Error("No image with this name exists.")))}_afterImageUpdated(t){this._availableImages=this.imageManager.listImages(this.scope),this._changes.updateImage(t),this.dispatcher.broadcast("setImages",{scope:this.scope,images:this._availableImages}),this.fire(new e.g("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addModel(e,t,n={}){return this._checkLoaded(),this._validate(qe,`models.${e}`,t,null,n)||(this.modelManager.addModel(e,t,this.scope),this._changes.setDirty()),this}hasModel(e){return this.modelManager.hasModel(e,this.scope)}removeModel(t){return this.hasModel(t)?(this.modelManager.removeModel(t,this.scope),this):this.fire(new e.f(new Error("No model with this ID exists.")))}listModels(){return this._checkLoaded(),this.modelManager.listModels(this.scope)}addSource(t,n,r={}){if(this._checkLoaded(),void 0!==this.getOwnSource(t))throw new Error(`There is already a source with ID "${t}".`);if(!n.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(n).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(Be,`sources.${t}`,n,null,r))return;this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);const i=Yn(t,n,this.dispatcher,this);i.scope=this.scope,i.setEventedParent(this,(()=>({isSourceLoaded:this._isSourceCacheLoaded(i.id),source:i.serialize(),sourceId:i.id})));const o=t=>{const n=(t?"symbol:":"other:")+i.id,r=e.am(n,this.scope),o=this._sourceCaches[n]=new e.bx(r,i,t);(t?this._symbolSourceCaches:this._otherSourceCaches)[i.id]=o,o.onAdd(this.map)};o(!1),"vector"!==n.type&&"geojson"!==n.type||o(!0),i.onAdd&&i.onAdd(this.map),r.isInitialLoad||(this.mergeSources(),this._changes.setDirty())}removeSource(t){this._checkLoaded();const n=this.getOwnSource(t);if(!n)throw new Error("There is no source with this ID");for(const n in this._layers)if(this._layers[n].source===t)return this.fire(new e.f(new Error(`Source "${t}" cannot be removed while layer "${n}" is using it.`)));if(this.terrain&&this.terrain.scope===this.scope&&this.terrain.get().source===t)return this.fire(new e.f(new Error(`Source "${t}" cannot be removed while terrain is using it.`)));const r=this.getOwnSourceCaches(t);for(const t of r){const n=e.cX(t.id);delete this._sourceCaches[n],this._changes.discardSourceCacheUpdate(t.id),t.fire(new e.g("data",{sourceDataType:"metadata",dataType:"source",sourceId:t.getSource().id})),t.setEventedParent(null),t.clearTiles()}return delete this._otherSourceCaches[t],delete this._symbolSourceCaches[t],this.mergeSources(),n.setEventedParent(null),n.onRemove&&n.onRemove(this.map),this._changes.setDirty(),this}setGeoJSONSourceData(e,t){this._checkLoaded(),this.getOwnSource(e).setData(t),this._changes.setDirty()}getOwnSource(e){const t=this.getOwnSourceCache(e);return t&&t.getSource()}getOwnSources(){const e=[];for(const t in this._otherSourceCaches){const n=this.getOwnSourceCache(t);n&&e.push(n.getSource())}return e}areTilesLoaded(){const e=this._mergedSourceCaches;for(const t in e){const n=e[t]._tiles;for(const e in n){const t=n[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}}return!0}setLights(t){if(this._checkLoaded(),!t)return delete this.ambientLight,void delete this.directionalLight;const n=this._getTransitionParameters();for(const r of t){if(this._validate(Fe,"lights",r))return;switch(r.type){case"ambient":if(this.ambientLight){const e=this.ambientLight;e.set(r),e.updateTransitions(n)}else this.ambientLight=new at(r,st||(st=new e.U({color:new e.W(e.N.properties_light_ambient.color),intensity:new e.W(e.N.properties_light_ambient.intensity)})),this.scope,this.options);break;case"directional":if(this.directionalLight){const e=this.directionalLight;e.set(r),e.updateTransitions(n)}else this.directionalLight=new at(r,lt||(lt=new e.U({direction:new e.a6(e.N.properties_light_directional.direction),color:new e.W(e.N.properties_light_directional.color),intensity:new e.W(e.N.properties_light_directional.intensity),"cast-shadows":new e.W(e.N.properties_light_directional["cast-shadows"]),"shadow-intensity":new e.W(e.N.properties_light_directional["shadow-intensity"])})),this.scope,this.options)}}const r=new e.Y(this.z||0,n);this.ambientLight&&this.ambientLight.recalculate(r),this.directionalLight&&this.directionalLight.recalculate(r),this._brightness=this.calculateLightsBrightness(),this.dispatcher.broadcast("setBrightness",this._brightness)}calculateLightsBrightness(){const t=this.directionalLight,n=this.ambientLight;if(!t||!n)return;const r=e=>.2126*(e[0]<=.03928?e[0]/12.92:Math.pow((e[0]+.055)/1.055,2.4))+.7152*(e[1]<=.03928?e[1]/12.92:Math.pow((e[1]+.055)/1.055,2.4))+.0722*(e[2]<=.03928?e[2]/12.92:Math.pow((e[2]+.055)/1.055,2.4)),i=t.properties.get("color").toRenderColor(null).toArray01(),o=t.properties.get("intensity"),a=t.properties.get("direction"),s=1-e.ad(a.x,a.y,a.z)[2]/90,l=r(i)*o*s,c=n.properties.get("color").toRenderColor(null).toArray01(),u=n.properties.get("intensity");return(l+r(c)*u)/2}getBrightness(){return this._brightness}getLights(){if(!this.enable3dLights())return null;const e=[];return this.directionalLight&&e.push(this.directionalLight.get()),this.ambientLight&&e.push(this.ambientLight.get()),e}enable3dLights(){return!!this.ambientLight&&!!this.directionalLight}getFragmentStyle(t){if(!t)return this;if(e.cY(t)){const n=e.cZ(t),r=this.fragments.find((({id:e})=>e===n));if(!r)throw new Error(`Style import not found: ${t}`);const i=e.cX(t);return r.style.getFragmentStyle(i)}{const e=this.fragments.find((({id:e})=>e===t));if(!e)throw new Error(`Style import not found: ${t}`);return e.style}}getConfigProperty(t,n){const r=this.getFragmentStyle(t);if(!r)return null;const i=e.am(n,r.scope),o=r.options.get(i),a=o?o.value||o.default:null;return a?a.serialize():null}setConfigProperty(t,n,r){const i=this.getFragmentStyle(t);if(!i)return;const o=i.stylesheet.schema;if(!o||!o[n])return;const a=e.z(r);if("success"!==a.result)return void Ho(this,a.value);const s=a.value.expression,l=e.am(n,i.scope),c=i.options.get(l);if(!c)return;let u;const{minValue:h,maxValue:d,stepValue:f,type:p,values:m}=o[n],g=e.z(o[n].default);"success"===g.result&&(u=g.value.expression),u?(this.options.set(l,{...c,value:s,default:u,minValue:h,maxValue:d,stepValue:f,type:p,values:m}),this.updateConfigDependencies(n)):this.fire(new e.f(new Error(`No schema defined for the config option "${n}" in the "${t}" fragment.`)))}getConfig(t){const n=this.getFragmentStyle(t);if(!n)return null;const r=n.stylesheet.schema;if(!r)return null;const i={};for(const t in r){const r=e.am(t,n.scope),o=n.options.get(r),a=o?o.value||o.default:null;i[t]=a?a.serialize():null}return i}setConfig(e,t){const n=this.getFragmentStyle(e);if(!n)return;const r=n.stylesheet.schema;n.updateConfig(t,r),this.updateConfigDependencies()}getSchema(e){const t=this.getFragmentStyle(e);return t?t.stylesheet.schema:null}setSchema(e,t){const n=this.getFragmentStyle(e);n&&(n.stylesheet.schema=t,n.updateConfig(n._config,t),this.updateConfigDependencies())}updateConfig(t,n){if(this._config=t,t||n)if(n)for(const r in n){let i,o;const a=n[r].default,s=e.z(a);if("success"===s.result&&(i=s.value.expression),t&&void 0!==t[r]){const n=e.z(t[r]);"success"===n.result&&(o=n.value.expression)}const{minValue:l,maxValue:c,stepValue:u,type:h,values:d}=n[r];if(i){const t=e.am(r,this.scope);this.options.set(t,{default:i,value:o,minValue:l,maxValue:c,stepValue:u,type:h,values:d})}else this.fire(new e.f(new Error(`No schema defined for config option "${r}".`)))}else this.fire(new e.f(new Error("Attempting to set config for a style without schema.")))}updateConfigDependencies(e){for(const t of this._configDependentLayers){const n=this.getLayer(t);if(n){if(e&&!n.configDependencies.has(e))continue;n.possiblyEvaluateVisibility(),this._updateLayer(n)}}this.ambientLight&&this.ambientLight.updateConfig(this.options),this.directionalLight&&this.directionalLight.updateConfig(this.options),this.fog&&this.fog.updateConfig(this.options),this.forEachFragmentStyle((e=>{if(e._styleColorTheme.colorTheme){const t=e._evaluateColorThemeData(e._styleColorTheme.colorTheme);(!e._styleColorTheme.lut&&""!==t||e._styleColorTheme.lut&&t!==e._styleColorTheme.lut.data)&&e.setColorTheme(e._styleColorTheme.colorTheme)}})),this._changes.setDirty()}addLayer(t,n,r={}){this._checkLoaded();const i=t.id;if(this._layers[i])return void this.fire(new e.f(new Error(`Layer with id "${i}" already exists on this map`)));let o;if("custom"===t.type){if(Ho(this,e.c_(t)))return;o=e.c$(t,this.scope,this._styleColorTheme.lut,this.options)}else{if("object"==typeof t.source&&(this.addSource(i,t.source),t=e.cW(t),t=e.Q(t,{source:i})),this._validate(ze,`layers.${i}`,t,{arrayIndex:-1},r))return;o=e.c$(t,this.scope,this._styleColorTheme.lut,this.options),this._validateLayer(o),o.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[o.id]=o.serialize()}0!==o.configDependencies.size&&this._configDependentLayers.add(o.fqid);let a=this._order.length;if(n){const t=this._order.indexOf(n);if(-1===t)return void this.fire(new e.f(new Error(`Layer with id "${n}" does not exist on this map.`)));const r=this._layers[n];o.slot===r.slot?a=t:e.w(`Layer with id "${n}" has a different slot. Layers can only be rearranged within the same slot.`)}this._order.splice(a,0,i),this._layerOrderChanged=!0,this._layers[i]=o;const s=this.getOwnLayerSourceCache(o),l=!!this.directionalLight&&this.directionalLight.shadowsEnabled();s&&o.canCastShadows()&&l&&(s.castsShadows=!0);const c=this._changes.getRemovedLayer(o);if(c&&o.source&&s&&"custom"!==o.type){this._changes.discardLayerRemoval(o);const t=e.am(o.source,o.scope);c.type!==o.type?this._changes.updateSourceCache(t,"clear"):(this._changes.updateSourceCache(t,"reload"),s.pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map),o.scope=this.scope,this.mergeLayers()}moveLayer(t,n){this._checkLoaded();const r=this._checkLayer(t);if(!r)return;if(t===n)return;const i=this._order.indexOf(t);this._order.splice(i,1);let o=this._order.length;if(n){const t=this._order.indexOf(n);if(-1===t)return void this.fire(new e.f(new Error(`Layer with id "${n}" does not exist on this map.`)));const i=this._layers[n];r.slot===i.slot?o=t:e.w(`Layer with id "${n}" has a different slot. Layers can only be rearranged within the same slot.`)}this._order.splice(o,0,t),this._changes.setDirty(),this._layerOrderChanged=!0,this.mergeLayers()}removeLayer(e){this._checkLoaded();const t=this._checkLayer(e);if(!t)return;t.setEventedParent(null);const n=this._order.indexOf(e);this._order.splice(n,1),delete this._layers[e],delete this._serializedLayers[e],this._changes.setDirty(),this._layerOrderChanged=!0,this._configDependentLayers.delete(t.fqid),this._changes.removeLayer(t);const r=this.getOwnLayerSourceCache(t);if(r&&r.castsShadows){let e=!1;for(const n in this._layers)if(this._layers[n].source===t.source&&this._layers[n].canCastShadows()){e=!0;break}r.castsShadows=e}t.onRemove&&t.onRemove(this.map),this.mergeLayers()}getOwnLayer(e){return this._layers[e]}hasLayer(e){return e in this._mergedLayers}hasLayerType(e){for(const t in this._layers)if(this._layers[t].type===e)return!0;return!1}setLayerZoomRange(e,t,n){this._checkLoaded();const r=this._checkLayer(e);r&&(r.minzoom===t&&r.maxzoom===n||(null!=t&&(r.minzoom=t),null!=n&&(r.maxzoom=n),this._updateLayer(r)))}getSlots(){return this._checkLoaded(),this._mergedSlots}setSlot(e,t){this._checkLoaded();const n=this._checkLayer(e);n&&n.slot!==t&&(n.slot=t,this._updateLayer(n))}setFilter(t,n,r={}){this._checkLoaded();const i=this._checkLayer(t);if(i&&!e.d(i.filter,n))return null==n?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(Ve,`layers.${i.id}.filter`,n,{layerType:i.type},r)||(i.filter=e.cW(n),this._updateLayer(i)))}getFilter(t){const n=this._checkLayer(t);if(n)return e.cW(n.filter)}setLayoutProperty(t,n,r,i={}){this._checkLoaded();const o=this._checkLayer(t);if(o&&!e.d(o.getLayoutProperty(n),r)){if(null!=r&&(!i||!1!==i.validate)){if(Ho(o,He.call(je,{key:`layers.${t}.layout.${n}`,layerType:o.type,objectKey:n,value:r,styleSpec:e.N,style:{glyphs:!0,sprite:!0}})))return}o.setLayoutProperty(n,r),0!==o.configDependencies.size&&this._configDependentLayers.add(o.fqid),this._updateLayer(o)}}getLayoutProperty(e,t){const n=this._checkLayer(e);if(n)return n.getLayoutProperty(t)}setPaintProperty(t,n,r,i={}){this._checkLoaded();const o=this._checkLayer(t);if(!o)return;if(e.d(o.getPaintProperty(n),r))return;if(null!=r&&(!i||!1!==i.validate)){if(Ho(o,Ue.call(je,{key:`layers.${t}.paint.${n}`,layerType:o.type,objectKey:n,value:r,styleSpec:e.N})))return}const a=o.setPaintProperty(n,r);0!==o.configDependencies.size&&this._configDependentLayers.add(o.fqid),a&&this._updateLayer(o),this._changes.updatePaintProperties(o)}getPaintProperty(e,t){const n=this._checkLayer(e);if(n)return n.getPaintProperty(t)}setFeatureState(t,n){this._checkLoaded();const r=t.source,i=t.sourceLayer,o=this._checkSource(r);if(!o)return;const a=o.type;if("geojson"===a&&i)return void this.fire(new e.f(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===a&&!i)return void this.fire(new e.f(new Error("The sourceLayer parameter must be provided for vector source types.")));void 0===t.id&&this.fire(new e.f(new Error("The feature id parameter must be provided.")));const s=this.getOwnSourceCaches(r);for(const e of s)e.setFeatureState(i,t.id,n)}removeFeatureState(t,n){this._checkLoaded();const r=t.source,i=this._checkSource(r);if(!i)return;const o=i.type,a="vector"===o?t.sourceLayer:void 0;if("vector"===o&&!a)return void this.fire(new e.f(new Error("The sourceLayer parameter must be provided for vector source types.")));if(n&&"string"!=typeof t.id&&"number"!=typeof t.id)return void this.fire(new e.f(new Error("A feature id is required to remove its specific state property.")));const s=this.getOwnSourceCaches(r);for(const e of s)e.removeFeatureState(a,t.id,n)}getFeatureState(t){this._checkLoaded();const n=t.source,r=t.sourceLayer,i=this._checkSource(n);if(i){if("vector"!==i.type||r)return void 0===t.id&&this.fire(new e.f(new Error("The feature id parameter must be provided."))),this.getOwnSourceCaches(n)[0].getFeatureState(r,t.id);this.fire(new e.f(new Error("The sourceLayer parameter must be provided for vector source types.")))}}setTransition(t){return this.stylesheet.transition=e.Q({},this.stylesheet.transition,t),this.transition=this.stylesheet.transition,this}getTransition(){return e.Q({},this.stylesheet.transition)}serialize(){this._checkLoaded();const t=this.getTerrain(),n=t&&this.terrain&&this.terrain.scope===this.scope?t:this.stylesheet.terrain;return e.d0({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,fragment:this.stylesheet.fragment,imports:this._serializeImports(),schema:this.stylesheet.schema,camera:this.stylesheet.camera,light:this.stylesheet.light,lights:this.stylesheet.lights,terrain:n,fog:this.stylesheet.fog,center:this.stylesheet.center,"color-theme":this.stylesheet["color-theme"],zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:this._serializeSources(),layers:this._serializeLayers(this._order)},(e=>void 0!==e))}_updateLayer(t){this._changes.updateLayer(t);const n=this.getLayerSourceCache(t),r=e.am(t.source,t.scope),i=this._changes.getUpdatedSourceCaches();t.source&&!i[r]&&n&&"raster"!==n.getSource().type&&(this._changes.updateSourceCache(r,"reload"),n.pause()),t.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(e){const t=e=>"fill-extrusion"===this._mergedLayers[e].type||"model"===this._mergedLayers[e].type,n=this.order,r={},i=[];for(let o=n.length-1;o>=0;o--){const a=n[o];if(t(a)){r[a]=o;for(const t of e){const e=t[a];if(e)for(const t of e)i.push(t)}}}i.sort(((e,t)=>t.intersectionZ-e.intersectionZ));const o=[];for(let a=n.length-1;a>=0;a--){const s=n[a];if(t(s))for(let e=i.length-1;e>=0;e--){const t=i[e].feature;if(t.layer&&r[t.layer.id]{const t=this.getLayer(e);return t&&t.is3D()})):this.has3DLayers(),l=Gi.createFromScreenPoints(t,r);for(const e in this._mergedSourceCaches){const t=this._mergedSourceCaches[e].getSource();if(!t||t.scope!==n.scope)continue;const c=this._mergedSourceCaches[e].getSource().id;if(n.layers&&!i[c])continue;const u=!!this.map._showQueryGeometry;o.push(Ji(this._mergedSourceCaches[e],this._mergedLayers,a,l,n,r,s,u))}return this.placement&&o.push(function(e,t,n,r,i,o,a){const s={},l=o.queryRenderedSymbols(r),c=[];for(const e of Object.keys(l).map(Number))c.push(a[e]);c.sort(Ki);for(const n of c){const r=n.featureIndex.lookupSymbolFeatures(l[n.bucketInstanceId],t,n.bucketIndex,n.sourceLayerIndex,i.filter,i.layers,i.availableImages,e);for(const e in r){const t=s[e]=s[e]||[],i=r[e];i.sort(((e,t)=>{const r=n.featureSortOrder;if(r){const n=r.indexOf(e.featureIndex);return r.indexOf(t.featureIndex)-n}return t.featureIndex-e.featureIndex}));for(const e of i)t.push(e)}}for(const t in s)s[t].forEach((r=>{const i=r.feature,o=e[t],a=n(o);if(!a)return;const s=a.getFeatureState(i.layer["source-layer"],i.id);i.source=i.layer.source,i.layer["source-layer"]&&(i.sourceLayer=i.layer["source-layer"]),i.state=s}));return s}(this._mergedLayers,a,this.getLayerSourceCache.bind(this),l.screenGeometry,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(o)}querySourceFeatures(e,t){t&&t.filter&&this._validate(Ve,"querySourceFeatures.filter",t.filter,null,t);const n=this.getOwnSourceCaches(e);let r=[];for(const e of n)r=r.concat(Zi(e,t));return r}addSourceType(e,t,n){return Qo.getSourceType(e)?n(new Error(`A source type called "${e}" already exists.`)):(Qo.setSourceType(e,t),t.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:e,url:t.workerSourceURL},n):n(null,null))}getFlatLight(){return this.light.getLight()}setFlatLight(t,n,r={}){this._checkLoaded();const i=this.light.getLight();let o=!1;for(const n in t)if(!e.d(t[n],i[n])){o=!0;break}if(!o)return;const a=this._getTransitionParameters();this.light.setLight(t,n,r),this.light.updateTransitions(a)}getTerrain(){return this.terrain&&this.terrain.drapeRenderMode===Je?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},Xe)}checkCanvasFingerprintNoise(){void 0===this.disableElevatedTerrain&&(this.disableElevatedTerrain=e.e.hasCanvasFingerprintNoise(),this.disableElevatedTerrain&&e.w("Terrain and hillshade are disabled because of Canvas2D limitations when fingerprinting protection is enabled (e.g. in private browsing mode)."))}setTerrain(t,n=Je){if(this._checkLoaded(),!t)return this.terrainSetForDrapingOnly()||(delete this.terrain,this.map.transform.projection.requiresDraping&&this.setTerrainForDraping()),n===Xe&&delete this.terrain,null===t?this.stylesheet.terrain=null:delete this.stylesheet.terrain,this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);this.checkCanvasFingerprintNoise();let r=t;const i=null==t.source;if(n===Je){if(this.disableElevatedTerrain)return;if("object"==typeof r.source){const t="terrain-dem-src";this.addSource(t,r.source),r=e.cW(r),r=e.Q(r,{source:t})}const t=e.Q({},r),n={};if(this.terrain&&i){t.source=this.terrain.get().source;const e=this.terrain?this.getFragmentStyle(this.terrain.scope):null;e&&(n.style=e.serialize())}if(this._validate(Ne,"terrain",t,n))return}if(!this.terrain||this.terrain.scope!==this.scope&&!i||this.terrain&&n!==this.terrain.drapeRenderMode){if(!r)return;this._createTerrain(r,n),this.fire(new e.g("data",{dataType:"style"}))}else{const n=this.terrain,i=n.get();for(const t of Object.keys(e.N.terrain))!r.hasOwnProperty(t)&&e.N.terrain[t].default&&(r[t]=e.N.terrain[t].default);for(const r in t)if(!e.d(t[r],i[r])){n.set(t,this.options),this.stylesheet.terrain=t;const r=this._getTransitionParameters({duration:0});n.updateTransitions(r),this.fire(new e.g("data",{dataType:"style"}));break}}this.mergeTerrain(),this.updateDrapeFirstLayers(),this._markersNeedUpdate=!0}_createFog(e){const t=this.fog=new ot(e,this.map.transform,this.scope,this.options);this.stylesheet.fog=t.get();const n=this._getTransitionParameters({duration:0});t.updateTransitions(n)}_updateMarkersOpacity(){0!==this.map._markers.length&&this.map._requestDomTask((()=>{for(const e of this.map._markers)e._evaluateOpacity()}))}getFog(){return this.fog?this.fog.get():null}setFog(t){if(this._checkLoaded(),!t)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){const n=this.fog;if(!e.d(n.get(),t)){n.set(t,this.options),this.stylesheet.fog=n.get();const e=this._getTransitionParameters({duration:0});n.updateTransitions(e)}}else this._createFog(t);this._markersNeedUpdate=!0}setColorTheme(t){this._checkLoaded();const n=()=>{for(const e in this._layers)this._layers[e].lut=this._styleColorTheme.lut;for(const e in this._sourceCaches)this._sourceCaches[e].clearTiles()};if(this._styleColorTheme.colorTheme=t,!t)return this._styleColorTheme.lut=null,void n();const r=this._evaluateColorThemeData(t);this._loadColorTheme(r).then((()=>{this.fire(new e.g("colorthemeset")),n()})).catch((t=>{e.w(`Couldn't set color theme: ${t}`)}))}_getTransitionParameters(t){return{now:e.e.now(),transition:e.Q(this.transition,t)}}updateDrapeFirstLayers(){if(!this.terrain)return;const e=[],t=[];for(const n of this._mergedOrder){const r=this._mergedLayers[n];this.isLayerDraped(r)?e.push(n):t.push(n)}this._drapedFirstOrder=[],this._drapedFirstOrder.push(...e),this._drapedFirstOrder.push(...t)}_createTerrain(e,t){const n=this.terrain=new Ke(e,t,this.scope,this.options);t===Je&&(this.stylesheet.terrain=e),this.mergeTerrain(),this.updateDrapeFirstLayers(),this._force3DLayerUpdate();const r=this._getTransitionParameters({duration:0});n.updateTransitions(r)}_force3DLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"fill-extrusion"===t.type&&this._updateLayer(t)}}_forceSymbolLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"symbol"===t.type&&this._updateLayer(t)}}_validate(t,n,r,i,o={}){if(o&&!1===o.validate)return!1;const a=e.Q({},this.serialize());return Ho(this,t.call(je,e.Q({key:n,style:a,value:r,styleSpec:e.N},i)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),e.d1.off("pluginStateChange",this._rtlTextPluginCallback);for(const e in this._mergedLayers)this._mergedLayers[e].setEventedParent(null);for(const e in this._mergedSourceCaches)this._mergedSourceCaches[e].clearTiles(),this._mergedSourceCaches[e].setEventedParent(null);this.setEventedParent(null),delete this.fog,delete this.terrain,delete this.ambientLight,delete this.directionalLight,this.isRootStyle()&&(this.imageManager.setEventedParent(null),this.modelManager.setEventedParent(null),this.dispatcher.remove())}clearSource(e){const t=this.getSourceCaches(e);for(const e of t)e.clearTiles()}clearSources(){for(const e in this._mergedSourceCaches)this._mergedSourceCaches[e].clearTiles()}reloadSource(e){const t=this.getSourceCaches(e);for(const e of t)e.resume(),e.reload()}reloadSources(){for(const e of this.getSources())e.reload&&e.reload()}updateSources(e){let t;this.directionalLight&&(t=In(this.directionalLight));for(const n in this._mergedSourceCaches)this._mergedSourceCaches[n].update(e,void 0,void 0,t)}_generateCollisionBoxes(){for(const e in this._sourceCaches){const t=this._sourceCaches[e];t.resume(),t.reload()}}_updatePlacement(t,n,r,i,o,a,s=!1){let l=!1,c=!1;const u={},h={};for(const t of this._mergedOrder){const r=this._mergedLayers[t];if("symbol"!==r.type)continue;const i=e.am(r.source,r.scope);let o=u[i];if(!o){const e=this.getLayerSourceCache(r);if(!e)continue;const t=e.getRenderableIds(!0).map((t=>e.getTileByID(t)));h[i]=t.slice(),o=u[i]=t.sort(((e,t)=>t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1)))}const a=this.crossTileSymbolIndex.addLayer(r,o,n.center.lng,n.projection);l=l||a}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._mergedOrder),s=s||this._layerOrderChanged||0===i,this._layerOrderChanged&&this.fire(new e.g("neworder")),s||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.e.now(),n.zoom)){const e=this.fog&&n.projection.supportsFog?this.fog.state:null;this.pauseablePlacement=new Lo(n,this._mergedOrder,s,r,i,o,this.placement,e,this._buildingIndex),this._layerOrderChanged=!1}if(this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._mergedOrder,this._mergedLayers,u,h),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.e.now()),c=!0),l&&this.pauseablePlacement.placement.setStale()),c||l){this._buildingIndex.onNewFrame(n.zoom);for(let t=0;tte===t.id)))return void this.fire(new e.f(new Error(`Import with id '${t.id}' already exists in the map's style.`)));if(!n)return r.push(t),this._loadImports([t],!0);const i=r.findIndex((({id:e})=>e===n));return-1===i&&this.fire(new e.f(new Error(`Import with id "${n}" does not exist on this map.`))),this.stylesheet.imports=r.slice(0,i).concat(t).concat(r.slice(i)),this._loadImports([t],!0,n)}updateImport(t,n){this._checkLoaded();const r=this.stylesheet.imports||[],i=this.getImportIndex(t);return-1===i?this:"string"==typeof n?(this.setImportUrl(t,n),this):(n.url&&n.url!==r[i].url&&this.setImportUrl(t,n.url),e.d(n.config,r[i].config)||this.setImportConfig(t,n.config),e.d(n.data,r[i].data)||this.setImportData(t,n.data),this)}moveImport(e,t){this._checkLoaded();let n=this.stylesheet.imports||[];const r=this.getImportIndex(e);if(-1===r)return this;const i=this.getImportIndex(t);if(-1===i)return this;const o=n[r],a=this.fragments[r];return n=n.filter((({id:t})=>t!==e)),this.fragments=this.fragments.filter((({id:t})=>t!==e)),this.stylesheet.imports=n.slice(0,i).concat(o).concat(n.slice(i)),this.fragments=this.fragments.slice(0,i).concat(a).concat(this.fragments.slice(i)),this.mergeLayers(),this}setImportUrl(e,t){this._checkLoaded();const n=this.stylesheet.imports||[],r=this.getImportIndex(e);if(-1===r)return this;n[r].url=t;const i=this.fragments[r];return i.style=this._createFragmentStyle(n[r]),i.style.on("style.import.load",(()=>this.mergeAll())),i.style.loadURL(t),this}setImportData(e,t){this._checkLoaded();const n=this.getImportIndex(e),r=this.stylesheet.imports||[];return-1===n?this:t?(this.fragments[n].style.setState(t),this._reloadImports(),this):(delete r[n].data,this.setImportUrl(e,r[n].url))}setImportConfig(e,t){this._checkLoaded();const n=this.getImportIndex(e),r=this.stylesheet.imports||[];if(-1===n)return this;t?r[n].config=t:delete r[n].config;const i=this.fragments[n],o=i.style.stylesheet&&i.style.stylesheet.schema;return i.config=t,i.style.updateConfig(t,o),this.updateConfigDependencies(),this}removeImport(e){this._checkLoaded();const t=this.stylesheet.imports||[],n=this.getImportIndex(e);-1!==n&&(t.splice(n,1),this.fragments[n].style._remove(),this.fragments.splice(n,1),this._reloadImports())}getImportIndex(t){const n=(this.stylesheet.imports||[]).findIndex((e=>e.id===t));return-1===n&&this.fire(new e.f(new Error(`Import '${t}' does not exist in the map's style and cannot be updated.`))),n}getLayer(e){return this._mergedLayers[e]}getSources(){const e=[];for(const t in this._mergedOtherSourceCaches){const n=this._mergedOtherSourceCaches[t];n&&e.push(n.getSource())}return e}getSource(e,t){const n=this.getSourceCache(e,t);return n&&n.getSource()}getLayerSource(e){const t=this.getLayerSourceCache(e);return t&&t.getSource()}getSourceCache(t,n){const r=e.am(t,n);return this._mergedOtherSourceCaches[r]}getLayerSourceCache(t){const n=e.am(t.source,t.scope);return"symbol"===t.type?this._mergedSymbolSourceCaches[n]:this._mergedOtherSourceCaches[n]}getSourceCaches(e){if(null==e)return Object.values(this._mergedSourceCaches);const t=[];return this._mergedOtherSourceCaches[e]&&t.push(this._mergedOtherSourceCaches[e]),this._mergedSymbolSourceCaches[e]&&t.push(this._mergedSymbolSourceCaches[e]),t}updateSourceCaches(){const e=this._changes.getUpdatedSourceCaches();for(const t in e){const n=e[t];"reload"===n?this.reloadSource(t):"clear"===n&&this.clearSource(t)}}updateLayers(e){const t=this._changes.getUpdatedPaintProperties();for(const n of t){const t=this.getLayer(n);t&&t.updateTransitions(e)}}getImages(e,t,n){this.imageManager.getImages(t.icons,t.scope,n),this._updateTilesForChangedImages();const r=e=>{e&&e.setDependencies(t.tileID.key,t.type,t.icons)};r(this._otherSourceCaches[t.source]),r(this._symbolSourceCaches[t.source])}getGlyphs(e,t,n){this.glyphManager.getGlyphs(t.stacks,t.scope,n)}getResource(t,n,r){return e.d2(n,r)}getOwnSourceCache(e){return this._otherSourceCaches[e]}getOwnLayerSourceCache(e){return"symbol"===e.type?this._symbolSourceCaches[e.source]:this._otherSourceCaches[e.source]}getOwnSourceCaches(e){const t=[];return this._otherSourceCaches[e]&&t.push(this._otherSourceCaches[e]),this._symbolSourceCaches[e]&&t.push(this._symbolSourceCaches[e]),t}_isSourceCacheLoaded(t){const n=this.getOwnSourceCaches(t);return 0===n.length?(this.fire(new e.f(new Error(`There is no source with ID '${t}'`))),!1):n.every((e=>e.loaded()))}has3DLayers(){return this._has3DLayers}hasSymbolLayers(){return this._hasSymbolLayers}hasCircleLayers(){return this._hasCircleLayers}isLayerClipped(t,n){if(0===this._clipLayerIndices.length&&"fill-extrusion"!==t.type)return!1;const r="fill-extrusion"===t.type&&"building"===t.sourceLayer;let i=0;if(t.is3D()){if(r||n&&"batched-model"===n.type)return!0;"model"===t.type&&(i=e.cw.Model)}else"symbol"===t.type&&(i=e.cw.Symbol);for(const t of this._clipLayerIndices){const n=this._mergedLayers[this._mergedOrder[t]];if(!n)continue;const r=[];for(const t of n.layout.get("clip-layer-types"))r.push("model"===t?e.cw.Model:"symbol"===t?e.cw.Symbol:e.cw.FillExtrusion);for(const e of r)if(i&e)return!0}return!1}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.fragments.forEach((e=>{e.style._remove()})),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}function Xo(e,t){let n=!1,r=null;const i=()=>{r=null,n&&(e(),r=setTimeout(i,t),n=!1)};return()=>(n=!0,r||i(),r)}Qo.getSourceType=function(e){return Gn[e]},Qo.setSourceType=function(e,t){Gn[e]=t},Qo.registerForPluginStateChange=e.cO;class Jo{constructor(t){this._hashName=t&&encodeURIComponent(t),e.br(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=Xo(this._updateHashUnthrottled.bind(this),300)}addTo(e){return this._map=e,window.addEventListener("hashchange",this._onHashChange,!1),e.on("moveend",this._updateHash),this}remove(){return this._map?(this._map.off("moveend",this._updateHash),window.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0,this):this}getHashString(){const e=this._map;if(!e)return"";const t=Zo(e);if(this._hashName){const e=this._hashName;let n=!1;const r=location.hash.slice(1).split("&").map((r=>{const i=r.split("=")[0];return i===e?(n=!0,`${i}=${t}`):r})).filter((e=>e));return n||r.push(`${e}=${t}`),`#${r.join("&")}`}return`#${t}`}_getCurrentHash(){const e=location.hash.replace("#","");if(this._hashName){let t;return e.split("&").map((e=>e.split("="))).forEach((e=>{e[0]===this._hashName&&(t=e)})),(t&&t[1]||"").split("/")}return e.split("/")}_onHashChange(){const e=this._map;if(!e)return!1;const t=this._getCurrentHash();if(t.length>=3&&!t.some((e=>isNaN(e)))){const n=e.dragRotate.isEnabled()&&e.touchZoomRotate.isEnabled()?+(t[3]||0):e.getBearing();return e.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:n,pitch:+(t[4]||0)}),!0}return!1}_updateHashUnthrottled(){history.replaceState(history.state,"",location.href.replace(/(#.+)?$/,this.getHashString()))}}function Zo(e,t){const n=e.getCenter(),r=Math.round(100*e.getZoom())/100,i=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),o=Math.pow(10,i),a=Math.round(n.lng*o)/o,s=Math.round(n.lat*o)/o,l=e.getBearing(),c=e.getPitch();let u=t?`/${a}/${s}/${r}`:`${r}/${s}/${a}`;return(l||c)&&(u+="/"+Math.round(10*l)/10),c&&(u+=`/${Math.round(c)}`),u}const Ko={linearity:.3,easing:e.d3(0,0,.3,1)},$o=e.Q({deceleration:2500,maxSpeed:1400},Ko),ea=e.Q({deceleration:20,maxSpeed:1400},Ko),ta=e.Q({deceleration:1e3,maxSpeed:360},Ko),na=e.Q({deceleration:1e3,maxSpeed:90},Ko);class ra{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.e.now(),settings:t})}_drainInertiaBuffer(){const t=this._inertiaBuffer,n=e.e.now();for(;t.length>0&&n-t[0].time>160;)t.shift()}_onMoveEnd(t){if(this._map._prefersReducedMotion())return;if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const n={zoom:0,bearing:0,pitch:0,pan:new e.P(0,0),pinchAround:void 0,around:void 0};for(const{settings:e}of this._inertiaBuffer)n.zoom+=e.zoomDelta||0,n.bearing+=e.bearingDelta||0,n.pitch+=e.pitchDelta||0,e.panDelta&&n.pan._add(e.panDelta),e.around&&(n.around=e.around),e.pinchAround&&(n.pinchAround=e.pinchAround);const r=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,i={};if(n.pan.mag()){const o=oa(n.pan.mag(),r,e.Q({},$o,t||{}));i.offset=n.pan.mult(o.amount/n.pan.mag()),i.center=this._map.transform.center,ia(i,o)}if(n.zoom){const e=oa(n.zoom,r,ea);i.zoom=this._map.transform.zoom+e.amount,ia(i,e)}if(n.bearing){const t=oa(n.bearing,r,ta);i.bearing=this._map.transform.bearing+e.au(t.amount,-179,179),ia(i,t)}if(n.pitch){const e=oa(n.pitch,r,na);i.pitch=this._map.transform.pitch+e.amount,ia(i,e)}if(i.zoom||i.bearing){const e=void 0===n.pinchAround?n.around:n.pinchAround;i.around=e?this._map.unproject(e):this._map.getCenter()}return this.clear(),i.noMoveStart=!0,i}}function ia(e,t){(!e.duration||e.durationn.unproject(e))),s=o.reduce(((e,t,n,r)=>e.add(t.div(r.length))),new e.P(0,0));super(t,{points:o,point:s,lngLats:a,lngLat:n.unproject(s),originalEvent:r}),this._defaultPrevented=!1}}class la extends e.g{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t){super("wheel",{originalEvent:t}),this._defaultPrevented=!1}}class ca{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){this._mousedownPos=void 0}wheel(e){return this._firePreventable(new la(this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new aa(e.type,this._map,e))}mouseup(e){this._map.fire(new aa(e.type,this._map,e))}preclick(t){const n=e.Q({},t);n.type="preclick",this._map.fire(new aa(n.type,this._map,n))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||(this.preclick(e),this._map.fire(new aa(e.type,this._map,e)))}dblclick(e){return this._firePreventable(new aa(e.type,this._map,e))}mouseover(e){this._map.fire(new aa(e.type,this._map,e))}mouseout(e){this._map.fire(new aa(e.type,this._map,e))}touchstart(e){return this._firePreventable(new sa(e.type,this._map,e))}touchmove(e){this._map.fire(new sa(e.type,this._map,e))}touchend(e){this._map.fire(new sa(e.type,this._map,e))}touchcancel(e){this._map.fire(new sa(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class ua{constructor(e){this._map=e}reset(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}mousemove(e){this._map.fire(new aa(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new aa("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new aa(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class ha{constructor(e,t){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(c(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;const n=t,r=this._startPos,o=this._lastPos;if(!r||!o||o.equals(n)||!this._box&&n.dist(r){this._box&&(this._box.style.transform=`translate(${a}px,${l}px)`,this._box.style.width=s-a+"px",this._box.style.height=c-l+"px")}))}mouseupWindow(t,n){if(!this._active)return;const r=this._startPos,i=n;if(r&&0===t.button){if(this.reset(),d(),r.x!==i.x||r.y!==i.y)return this._map.fire(new e.g("boxzoomend",{originalEvent:t})),{cameraAnimation:e=>e.fitScreenCoordinates(r,i,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",t)}}keydown(e){this._active&&27===e.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",e))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),u(),delete this._startPos,delete this._lastPos}_fireEvent(t,n){return this._map.fire(new e.g(t,{originalEvent:n}))}}function da(e,t){const n={};for(let r=0;rthis.numTouches)&&(this.aborted=!0),this.aborted||(0===this.startTime&&(this.startTime=t.timeStamp),r.length===this.numTouches&&(this.centroid=function(t){const n=new e.P(0,0);for(const e of t)n._add(e);return n.div(t.length)}(n),this.touches=da(r,n)))}touchmove(e,t,n){if(this.aborted||!this.centroid)return;const r=da(n,t);for(const e in this.touches){const t=this.touches[e],n=r[e];(!n||n.dist(t)>30)&&(this.aborted=!0)}}touchend(e,t,n){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){const e=!this.aborted&&this.centroid;if(this.reset(),e)return e}}}class pa{constructor(e){this.singleTap=new fa(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,this.lastTap=void 0,this.count=0,this.singleTap.reset()}touchstart(e,t,n){this.singleTap.touchstart(e,t,n)}touchmove(e,t,n){this.singleTap.touchmove(e,t,n)}touchend(e,t,n){const r=this.singleTap.touchend(e,t,n);if(r){const t=e.timeStamp-this.lastTime<500,n=!this.lastTap||this.lastTap.dist(r)<30;if(t&&n||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}}}class ma{constructor(){this._zoomIn=new pa({numTouches:1,numTaps:2}),this._zoomOut=new pa({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,n){this._zoomIn.touchstart(e,t,n),this._zoomOut.touchstart(e,t,n)}touchmove(e,t,n){this._zoomIn.touchmove(e,t,n),this._zoomOut.touchmove(e,t,n)}touchend(e,t,n){const r=this._zoomIn.touchend(e,t,n),i=this._zoomOut.touchend(e,t,n);return r?(this._active=!0,e.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()+1,around:t.unproject(r)},{originalEvent:e})}):i?(this._active=!0,e.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(i)},{originalEvent:e})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const ga=0,ya=2,va={[ga]:1,[ya]:2};class ba{constructor(e){this.reset(),this._clickTolerance=e.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,this._lastPoint=void 0,this._eventButton=void 0}_correctButton(e,t){return!1}_move(e,t){return{}}mousedown(e,t){if(this._lastPoint)return;const n=m(e);this._correctButton(e,n)&&(this._lastPoint=t,this._eventButton=n)}mousemoveWindow(e,t){const n=this._lastPoint;if(n)if(e.preventDefault(),null!=this._eventButton&&function(e,t){const n=va[t];return void 0===e.buttons||(e.buttons&n)!==n}(e,this._eventButton))this.reset();else if(this._moved||!(t.dist(n)0&&(this._active=!0);const i=da(r,n),o=new e.P(0,0),a=new e.P(0,0);let s=0;for(const e in i){const t=i[e],n=this._touches[e];n&&(o._add(t),a._add(t.sub(n)),s++,i[e]=t)}if(this._touches=i,s{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show"),this._alertContainer.removeAttribute("role")}),500)}}class Sa{constructor(){this.reset()}reset(){this._active=!1,this._firstTwoTouches=void 0}_start(e){}_move(e,t,n){return{}}touchstart(e,t,n){this._firstTwoTouches||n.length<2||(this._firstTwoTouches=[n[0].identifier,n[1].identifier],this._start([t[0],t[1]]))}touchmove(e,t,n){const r=this._firstTwoTouches;if(!r)return;e.preventDefault();const[i,o]=r,a=Ea(n,t,i),s=Ea(n,t,o);if(!a||!s)return;const l=this._aroundCenter?null:a.add(s).div(2);return this._move([a,s],l,e)}touchend(e,t,n){if(!this._firstTwoTouches)return;const[r,i]=this._firstTwoTouches,o=Ea(n,t,r),a=Ea(n,t,i);o&&a||(this._active&&d(),this.reset())}touchcancel(){this.reset()}enable(e){this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function Ea(e,t,n){for(let r=0;rMath.abs(e.x)}class Ma extends Sa{constructor(e){super(),this._map=e}reset(){super.reset(),this._valid=void 0,this._firstMove=void 0,this._lastPoints=void 0}_start(e){this._lastPoints=e,Ra(e[0].sub(e[1]))&&(this._valid=!1)}_move(t,n,r){const i=this._lastPoints;if(!i)return;const o=t[0].sub(i[0]),a=t[1].sub(i[1]);return this._map._cooperativeGestures&&!e.d4()&&r.touches.length<3||(this._valid=this.gestureBeginsVertically(o,a,r.timeStamp),!this._valid)?void 0:(this._lastPoints=t,this._active=!0,{pitchDelta:(o.y+a.y)/2*-.5})}gestureBeginsVertically(e,t,n){if(void 0!==this._valid)return this._valid;const r=e.mag()>=2,i=t.mag()>=2;if(!r&&!i)return;if(!r||!i)return null==this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;const o=e.y>0==t.y>0;return Ra(e)&&Ra(t)&&o}}const Pa={panStep:100,bearingStep:15,pitchStep:10};class Da{constructor(){const e=Pa;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,n=0,r=0,i=0,o=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?n=-1:(e.preventDefault(),i=-1);break;case 39:e.shiftKey?n=1:(e.preventDefault(),i=1);break;case 38:e.shiftKey?r=1:(e.preventDefault(),o=-1);break;case 40:e.shiftKey?r=-1:(e.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(n=0,r=0),{cameraAnimation:a=>{const s=a.getZoom();a.easeTo({duration:300,easeId:"keyboardHandler",easing:ja,zoom:t?Math.round(s)+t*(e.shiftKey?2:1):s,bearing:a.getBearing()+n*this._bearingStep,pitch:a.getPitch()+r*this._pitchStep,offset:[-i*this._panStep,-o*this._panStep],center:a.getCenter()},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function ja(e){return e*(2-e)}const Ba=4.000244140625,La=1/450;class Fa{constructor(t,n){this._map=t,this._el=t.getCanvasContainer(),this._handler=n,this._delta=0,this._lastDelta=0,this._defaultZoomRate=.01,this._wheelZoomRate=La,e.br(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert"],this)}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around,this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(t){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(t.ctrlKey||t.metaKey||this.isZooming()||e.d4()))return void this._showBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let n=t.deltaMode===WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY;const r=e.e.now(),i=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==n&&n%Ba==0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=n,this._timeout=window.setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(i*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),t.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=t,this._delta-=n,this._active||this._start(t)),t.preventDefault()}_onTimeout(e){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)}_start(e){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const t=f(this._el,e);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:t,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId)return;if(this._frameId=null,!this.isActive())return;const t=this._map.transform;"wheel"===this._type&&t.projection.wrap&&(t._center.lng>=180||t._center.lng<=-180)&&(this._prevEase=null,this._easing=null,this._lastWheelEvent=null,this._lastWheelEventTime=0);const n=()=>t._terrainEnabled()&&this._aroundCoord?t.computeZoomRelativeTo(this._aroundCoord):t.zoom;if(0!==this._delta){const e="wheel"===this._type&&Math.abs(this._delta)>Ba?this._wheelZoomRate:this._defaultZoomRate;let r=2/(1+Math.exp(-Math.abs(this._delta*e)));this._delta<0&&0!==r&&(r=1/r);const i=n(),o=Math.pow(2,i),a="number"==typeof this._targetZoom?t.zoomScale(this._targetZoom):o;this._targetZoom=Math.min(t.maxZoom,Math.max(t.minZoom,t.scaleZoom(a*r))),"wheel"===this._type&&(this._startZoom=i,this._easing=this._smoothOutEasing(200)),this._lastDelta=this._delta,this._delta=0}const r="number"==typeof this._targetZoom?this._targetZoom:n(),i=this._startZoom,o=this._easing;let a,s=!1;if("wheel"===this._type&&i&&o){const t=Math.min((e.e.now()-this._lastWheelEventTime)/200,1),n=o(t);a=e.a3(i,r,n),t<1?this._frameId||(this._frameId=!0):s=!0}else a=r,s=!0;this._active=!0,s&&(this._active=!1,this._finishTimeout=window.setTimeout((()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout}),200));let l=a-n();return l*this._lastDelta<0&&(l=0),{noInertia:!0,needsRenderFrame:!s,zoomDelta:l,around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let n=e.d5;if(this._prevEase){const t=this._prevEase,r=(e.e.now()-t.start)/t.duration,i=t.easing(r+.01)-t.easing(r),o=.27/Math.sqrt(i*i+1e-4)*.01,a=Math.sqrt(.0729-o*o);n=e.d3(o,a,.25,1)}return this._prevEase={start:e.e.now(),duration:t,easing:n},n}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=i("div","mapboxgl-scroll-zoom-blocker",this._map._container),/(Mac|iPad)/i.test(navigator.userAgent)?this._alertContainer.textContent=this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._alertContainer.textContent=this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=window.setTimeout((()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.removeAttribute("role")}),200)}}class Na{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class _a{constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(e,t){return e.preventDefault(),{cameraAnimation:n=>{n.easeTo({duration:300,zoom:n.getZoom()+(e.shiftKey?-1:1),around:n.unproject(t)},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class za{constructor(){this._tap=new pa({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,this._swipePoint=void 0,this._swipeTouch=0,this._tapTime=0,this._tap.reset()}touchstart(e,t,n){this._swipePoint||(this._tapTime&&e.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?n.length>0&&(this._swipePoint=t[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(e,t,n))}touchmove(e,t,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;const r=t[0],i=r.y-this._swipePoint.y;return this._swipePoint=r,e.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(e,t,n)}touchend(e,t,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(e,t,n)&&(this._tapTime=e.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Va{constructor(e,t,n){this._el=e,this._mousePan=t,this._touchPan=n}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Ua{constructor(e,t,n){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=n}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Ha{constructor(e,t,n,r){this._el=e,this._touchZoom=t,this._touchRotate=n,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const qa=e=>e.zoom||e.drag||e.pitch||e.rotate;class Ga extends e.g{}class Ya{constructor(){this.constants=[1,1,.01],this.radius=0}setup(t,n){const r=e.$.sub([],n,t);r[2]<0?this.radius=e.$.length(e.$.div([],r,this.constants)):this.radius=e.$.length([r[0],r[1],0])}projectRay(t){e.$.div(t,t,this.constants),e.$.normalize(t,t),e.$.mul(t,t,this.constants);const n=e.$.scale([],t,this.radius);if(n[2]>0){const t=e.$.scale([],[0,0,1],e.$.dot(n,[0,0,1])),r=e.$.scale([],e.$.normalize([],[n[0],n[1],0]),this.radius),i=e.$.add([],n,e.$.scale([],e.$.sub([],e.$.add([],r,t),n),2));n[0]=i[0],n[1]=i[1]}return n}}function Wa(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}class Qa{constructor(t,n){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new ra(t),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new Ya,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(n),e.br(["handleEvent","handleWindowEvent"],this);const r=this._el;this._listeners=[[r,"touchstart",{passive:!0}],[r,"touchmove",{passive:!1}],[r,"touchend",void 0],[r,"touchcancel",void 0],[r,"mousedown",void 0],[r,"mousemove",void 0],[r,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[r,"mouseover",void 0],[r,"mouseout",void 0],[r,"dblclick",void 0],[r,"click",void 0],[r,"keydown",{capture:!1}],[r,"keyup",void 0],[r,"wheel",{passive:!1}],[r,"contextmenu",void 0],[window,"blur",void 0]];for(const[e,t,n]of this._listeners){const r=e===document?this.handleWindowEvent:this.handleEvent;e.addEventListener(t,r,n)}}destroy(){for(const[e,t,n]of this._listeners){const r=e===document?this.handleWindowEvent:this.handleEvent;e.removeEventListener(t,r,n)}}_addDefaultHandlers(e){const t=this._map,n=t.getCanvasContainer();this._add("mapEvent",new ca(t,e));const r=t.boxZoom=new ha(t,e);this._add("boxZoom",r);const i=new ma,o=new _a;t.doubleClickZoom=new Na(o,i),this._add("tapZoom",i),this._add("clickZoom",o);const a=new za;this._add("tapDragZoom",a);const s=t.touchPitch=new Ma(t);this._add("touchPitch",s);const l=new xa(e),c=new wa(e);t.dragRotate=new Ua(e,l,c),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",c,["mouseRotate"]);const u=new Aa(e),h=new Ca(t,e);t.dragPan=new Va(n,u,h),this._add("mousePan",u),this._add("touchPan",h,["touchZoom","touchRotate"]);const d=new Oa,f=new Ta;t.touchZoomRotate=new Ha(n,f,d,a),this._add("touchRotate",d,["touchPan","touchZoom"]),this._add("touchZoom",f,["touchPan","touchRotate"]),this._add("blockableMapEvent",new ua(t));const p=t.scrollZoom=new Fa(t,this);this._add("scrollZoom",p,["mousePan"]);const m=t.keyboard=new Da;this._add("keyboard",m);for(const n of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])e.interactive&&e[n]&&t[n].enable(e[n])}_add(e,t,n){this._handlers.push({handlerName:e,handler:t,allowed:n}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(const{handler:e}of this._handlers)e.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[],this._originalZoom=void 0}}isActive(){for(const{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!qa(this._eventsInProgress)||this.isZooming()}_isDragging(){return!!this._eventsInProgress.drag}_blockedByActive(e,t,n){for(const r in e)if(r!==n&&(!t||t.indexOf(r)<0))return!0;return!1}handleWindowEvent(e){this.handleEvent(e,`${e.type}Window`)}_getMapTouches(e){const t=[];for(const n of e){const e=n.target;this._el.contains(e)&&t.push(n)}return t}handleEvent(e,t){this._updatingCamera=!0;const n="renderFrame"===e.type,r=n?void 0:e,i={needsRenderFrame:!1},o={},a={},s=e.touches?this._getMapTouches(e.touches):void 0,l=s?p(this._el,s):n?void 0:f(this._el,e);for(const{handlerName:n,handler:c,allowed:u}of this._handlers){if(!c.isEnabled())continue;let h;this._blockedByActive(a,u,n)?c.reset():c[t||e.type]&&(h=c[t||e.type](e,l,s),this.mergeHandlerResult(i,o,h,n,r),h&&h.needsRenderFrame&&this._triggerRenderFrame()),(h||c.isActive())&&(a[n]=c)}const c={};for(const e in this._previousActiveHandlers)a[e]||(c[e]=r);this._previousActiveHandlers=a,(Object.keys(c).length||Wa(i))&&(this._changes.push([i,o,c]),this._triggerRenderFrame()),(Object.keys(a).length||Wa(i))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:u}=i;u&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],u(this._map))}mergeHandlerResult(t,n,r,i,o){if(!r)return;e.Q(t,r);const a={handlerName:i,originalEvent:r.originalEvent||o};void 0!==r.zoomDelta&&(n.zoom=a),void 0!==r.panDelta&&(n.drag=a),void 0!==r.pitchDelta&&(n.pitch=a),void 0!==r.bearingDelta&&(n.rotate=a)}_applyChanges(){const t={},n={},r={};for(const[i,o,a]of this._changes)i.panDelta&&(t.panDelta=(t.panDelta||new e.P(0,0))._add(i.panDelta)),i.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+i.zoomDelta),i.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+i.bearingDelta),i.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+i.pitchDelta),void 0!==i.around&&(t.around=i.around),void 0!==i.aroundCoord&&(t.aroundCoord=i.aroundCoord),void 0!==i.pinchAround&&(t.pinchAround=i.pinchAround),i.noInertia&&(t.noInertia=i.noInertia),e.Q(n,o),e.Q(r,a);this._updateMapTransform(t,n,r),this._changes=[]}_updateMapTransform(t,n,r){const i=this._map,o=i.transform,a=e=>[e.x,e.y,e.z];if((()=>{const e=this._eventsInProgress.drag;return e&&!this._handlersById[e.handlerName].isActive()})()&&!Wa(t)){const e=o.zoom;o.cameraElevationReference="sea",null!=this._originalZoom&&o._orthographicProjectionAtLowPitch&&"globe"!==o.projection.name&&0===o.pitch?(o.cameraElevationReference="ground",o.zoom=this._originalZoom):(o.recenterOnTerrain(),o.cameraElevationReference="ground"),e!==o.zoom&&this._map._update(!0)}if(o._isCameraConstrained&&i._stop(!0),!Wa(t))return void this._fireEvents(n,r,!0);let{panDelta:s,zoomDelta:l,bearingDelta:c,pitchDelta:u,around:h,aroundCoord:d,pinchAround:f}=t;o._isCameraConstrained&&(l>0&&(l=0),o._isCameraConstrained=!1),void 0!==f&&(h=f),(l||(e=>n[e]&&!this._eventsInProgress[e])("drag"))&&h&&(this._dragOrigin=a(o.pointCoordinate3D(h)),this._originalZoom=o.zoom,this._trackingEllipsoid.setup(o._camera.position,this._dragOrigin)),o.cameraElevationReference="sea",i._stop(!0),h=h||i.transform.centerPoint,c&&(o.bearing+=c),u&&(o.pitch+=u),o._updateCameraState();const p=[0,0,0];if(s)if("mercator"===o.projection.name){const e=this._trackingEllipsoid.projectRay(o.screenPointToMercatorRay(h).dir),t=this._trackingEllipsoid.projectRay(o.screenPointToMercatorRay(h.sub(s)).dir);p[0]=t[0]-e[0],p[1]=t[1]-e[1]}else{const t=o.pointCoordinate(h);if("globe"===o.projection.name){s=s.rotate(-o.angle);const n=o._pixelsPerMercatorPixel/o.worldSize;p[0]=-s.x*e.d6(e.az(t.y))*n,p[1]=-s.y*e.d6(o.center.lat)*n}else{const e=o.pointCoordinate(h.sub(s));t&&e&&(p[0]=e.x-t.x,p[1]=e.y-t.y)}}const m=o.zoom,g=[0,0,0];if(l){const t=a(d||o.pointCoordinate3D(h)),n={dir:e.$.normalize([],e.$.sub([],t,o._camera.position))};if(n.dir[2]<0){const r=o.zoomDeltaToMovement(t,l);e.$.scale(g,n.dir,r)}}const y=e.$.add(p,p,g);o._translateCameraConstrained(y),l&&Math.abs(o.zoom-m)>1e-4&&o.recenterOnTerrain(),o.cameraElevationReference="ground",this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(n,r,!0)}_fireEvents(t,n,r){const i=qa(this._eventsInProgress),o=qa(t),a={};for(const e in t){const{originalEvent:n}=t[e];this._eventsInProgress[e]||(a[`${e}start`]=n),this._eventsInProgress[e]=t[e]}!i&&o&&this._fireEvent("movestart",o.originalEvent);for(const e in a)this._fireEvent(e,a[e]);o&&this._fireEvent("move",o.originalEvent);for(const e in t){const{originalEvent:n}=t[e];this._fireEvent(e,n)}const s={};let l;for(const e in this._eventsInProgress){const{handlerName:t,originalEvent:r}=this._eventsInProgress[e];this._handlersById[t].isActive()||(delete this._eventsInProgress[e],l=n[t]||r,s[`${e}end`]=l)}for(const e in s)this._fireEvent(e,s[e]);const c=qa(this._eventsInProgress);if(r&&(i||o)&&!c){this._updatingCamera=!0;const t=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),n=e=>0!==e&&-this._bearingSnap{this._frameId=void 0,this.handleEvent(new Ga("renderFrame",{timeStamp:e})),this._applyChanges()}))}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}const Xa="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class Ja extends e.E{constructor(t,n){super(),this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=n.bearingSnap,this._respectPrefersReducedMotion=!1!==n.respectPrefersReducedMotion,e.br(["_renderFrameCallback"],this)}getCenter(){return new e.aJ(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}panBy(t,n,r){return t=e.P.convert(t).mult(-1),this.panTo(this.transform.center,e.Q({offset:t},n),r)}panTo(t,n,r){return this.easeTo(e.Q({center:t},n),r)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(t,n,r){return this.easeTo(e.Q({zoom:t},n),r)}zoomIn(e,t){return this.zoomTo(this.getZoom()+1,e,t),this}zoomOut(e,t){return this.zoomTo(this.getZoom()-1,e,t),this}getBearing(){return this.transform.bearing}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(t,n,r){return this.easeTo(e.Q({bearing:t},n),r)}resetNorth(t,n){return this.rotateTo(0,e.Q({duration:1e3},t),n),this}resetNorthPitch(t,n){return this.easeTo(e.Q({bearing:0,pitch:0,duration:1e3},t),n),this}snapToNorth(e,t){return Math.abs(this.getBearing())e.aspect?n/(2*Math.tan(.5*e.fovX)*e.aspect):r/(2*Math.tan(.5*e.fovY)*e.aspect)}_cameraForBoundsOnGlobe(t,n,r,i,o,a){const s=t.clone(),l=this._extendCameraOptions(a);s.bearing=i,s.pitch=o;const c=e.aJ.convert(n),u=e.aJ.convert(r),h=.5*(c.lat+u.lat),d=.5*(c.lng+u.lng),f=e.d7(h,d),p=e.$.normalize([],f),m=e.$.normalize([],e.$.cross([],p,[0,1,0])),g=e.$.cross([],m,p),y=[m[0],m[1],m[2],0,g[0],g[1],g[2],0,p[0],p[1],p[2],0,0,0,0,1],v=[f,e.d7(c.lat,c.lng),e.d7(u.lat,c.lng),e.d7(u.lat,u.lng),e.d7(c.lat,u.lng),e.d7(h,c.lng),e.d7(h,u.lng),e.d7(c.lat,d),e.d7(u.lat,d)];let b=e.b8.fromPoints(v.map((t=>[e.$.dot(m,t),e.$.dot(g,t),e.$.dot(p,t)])));const A=e.$.transformMat4([],b.center,y);0===e.$.squaredLength(A)&&e.$.set(A,0,0,1),e.$.normalize(A,A),e.$.scale(A,A,e.cF),s.center=e.d8(A);const x=s.getWorldToCameraMatrix(),w=e.ae.invert(new Float64Array(16),x);b=e.b8.applyTransform(b,e.ae.multiply([],x,y));const C=this._extendAABB(b,s,l,i);if(!C)return void e.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.");b=C,e.$.transformMat4(A,A,x);const S=.5*(b.max[2]-b.min[2]),E=this._minimumAABBFrustumDistance(s,b),k=e.$.scale([],[0,0,1],S),T=e.$.add(k,A,k),I=E+(0===s.pitch?0:e.$.distance(A,T)),O=s.globeCenterInViewSpace,R=e.$.sub([],A,[O[0],O[1],O[2]]);e.$.normalize(R,R),e.$.scale(R,R,I);const M=e.$.add([],A,R);e.$.transformMat4(M,M,w);const P=e.da/e.cF,D=e.$.length(M)*P-e.da,j=e.ay(Math.max(D,Number.EPSILON),0),B=Math.min(s.zoomFromMercatorZAdjusted(j),l.maxZoom);return B>.5*(e.b3+e.aV)?(s.setProjection({name:"mercator"}),s.zoom=B,this._cameraForBounds(s,n,r,i,o,a)):{center:s.center,zoom:B,bearing:i,pitch:o}}_extendAABB(t,n,r,i){const o=r.padding.left||0,a=r.padding.right||0,s=r.padding.bottom||0,l=.5*(o+a),c=.5*((r.padding.top||0)+s),u=c,h=l,d=l,f=c,p=n.width-(h+d),m=n.height-(u+f),g=e.$.sub([],t.max,t.min),y=p/g[0],v=m/g[1],b=Math.min(y,v),A=Math.min(n.scaleZoom(n.scale*b),r.maxZoom);if(isNaN(A))return null;const x=n.scale/n.zoomScale(A),w=new e.b8([t.min[0]-h*x,t.min[1]-f*x,t.min[2]],[t.max[0]+d*x,t.max[1]+u*x,t.max[2]]),C=("number"==typeof r.offset.x&&"number"==typeof r.offset.y?new e.P(r.offset.x,r.offset.y):e.P.convert(r.offset)).rotate(-e.ac(i));return w.center[0]-=C.x*x,w.center[1]+=C.y*x,w}queryTerrainElevation(t,n){const r=this.transform.elevation;return r?(n=e.Q({},{exaggerated:!0},n),r.getAtPoint(e._.fromLngLat(t),null,n.exaggerated)):null}_cameraForBounds(t,n,r,i,o,a){if("globe"===t.projection.name)return this._cameraForBoundsOnGlobe(t,n,r,i,o,a);const s=t.clone(),l=this._extendCameraOptions(a);s.bearing=i,s.pitch=o;const c=e.aJ.convert(n),u=e.aJ.convert(r),h=new e.aJ(c.lng,u.lat),d=new e.aJ(u.lng,c.lat),f=s.project(c),p=s.project(u),m=this.queryTerrainElevation(c),g=this.queryTerrainElevation(u),y=this.queryTerrainElevation(h),v=this.queryTerrainElevation(d),b=[[f.x,f.y,Math.min(m||0,g||0,y||0,v||0)],[p.x,p.y,Math.max(m||0,g||0,y||0,v||0)]];let A=e.b8.fromPoints(b);const x=s.getWorldToCameraMatrix(),w=e.ae.invert(new Float64Array(16),x);A=e.b8.applyTransform(A,x);const C=this._extendAABB(A,s,l,i);if(!C)return void e.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.");A=C;const S=.5*e.$.sub([],A.max,A.min)[2],E=this._minimumAABBFrustumDistance(s,A),k=[0,0,1,0];e.aB.transformMat4(k,k,x),e.aB.normalize(k,k);const T=e.$.scale([],k,E+S),I=e.$.add([],A.center,T);e.$.transformMat4(A.center,A.center,w),e.$.transformMat4(I,I,w);const O=[A.center[0],A.center[1],I[2]*s.pixelsPerMeter];e.$.scale(O,O,1/s.worldSize);const R=e.d9(O[0]),M=e.az(O[1]),P=Math.min(s._zoomFromMercatorZ(O[2]),l.maxZoom),D=new e.aJ(R,M),j=.5*(e.b3+e.aV);return s.mercatorFromTransition&&PC=>{if(b&&(r.zoom=e.a3(i,l,C)),A&&(r.bearing=e.a3(o,c,C)),x&&(r.pitch=e.a3(a,u,C)),w&&(r.interpolatePadding(s,h,C),f=r.centerPoint.add(d)),y)r.setLocationAtPoint(y,v);else{const e=r.zoomScale(r.zoom-i),t=l>i?Math.min(2,g):Math.max(.5,g),n=Math.pow(t,1-C),o=r.unproject(p.add(m.mult(C*n)).mult(e));r.setLocationAtPoint(r.renderWorldCopies?o.wrap():o,f)}return t.preloadOnly||this._fireMoveEvents(n),r};if(t.preloadOnly){const e=this._emulate(C,t.duration,r);return this._preloadTiles(e),this}const S={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=b,this._rotating=A,this._pitching=x,this._padding=w,this._easeId=t.easeId,this._prepareEase(n,t.noMoveStart,S),this._ease(C(r),(e=>{"sea"===r.cameraElevationReference&&r.recenterOnTerrain(),this._afterEase(n,e)}),t),this}_prepareEase(t,n,r={}){this._moving=!0,this.transform.cameraElevationReference="sea",this.transform._orthographicProjectionAtLowPitch&&0===this.transform.pitch&&"globe"!==this.transform.projection.name&&(this.transform.cameraElevationReference="ground"),n||r.moving||this.fire(new e.g("movestart",t)),this._zooming&&!r.zooming&&this.fire(new e.g("zoomstart",t)),this._rotating&&!r.rotating&&this.fire(new e.g("rotatestart",t)),this._pitching&&!r.pitching&&this.fire(new e.g("pitchstart",t))}_fireMoveEvents(t){this.fire(new e.g("move",t)),this._zooming&&this.fire(new e.g("zoom",t)),this._rotating&&this.fire(new e.g("rotate",t)),this._pitching&&this.fire(new e.g("pitch",t))}_afterEase(t,n){if(this._easeId&&n&&this._easeId===n)return;this._easeId=void 0,this.transform.cameraElevationReference="ground";const r=this._zooming,i=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new e.g("zoomend",t)),i&&this.fire(new e.g("rotateend",t)),o&&this.fire(new e.g("pitchend",t)),this.fire(new e.g("moveend",t))}flyTo(t,n){if(this._prefersReducedMotion(t)){const r=e.ai(t,["center","zoom","bearing","pitch","around","padding"]);return this.jumpTo(r,n)}this.stop(),t=e.Q({offset:[0,0],speed:1.2,curve:1.42,easing:e.d5},t);const r=this.transform,i=this.getZoom(),o=this.getBearing(),a=this.getPitch(),s=this.getPadding(),l="zoom"in t?e.au(+t.zoom,r.minZoom,r.maxZoom):i,c="bearing"in t?this._normalizeBearing(t.bearing,o):o,u="pitch"in t?+t.pitch:a,h=this._extendPadding(t.padding),d=r.zoomScale(l-i),f=e.P.convert(t.offset);let p=r.centerPoint.add(f);const m=r.pointLocation(p),g=e.aJ.convert(t.center||m);this._normalizeCenter(g);const y=r.project(m),v=r.project(g).sub(y);let b=t.curve;const A=Math.max(r.width,r.height),x=A/d,w=v.mag();if("minZoom"in t){const n=e.au(Math.min(t.minZoom,i,l),r.minZoom,r.maxZoom),o=A/r.zoomScale(n-i);b=Math.sqrt(o/w*2)}const C=b*b;function S(e){const t=(x*x-A*A+(e?-1:1)*C*C*w*w)/(2*(e?x:A)*C*w);return Math.log(Math.sqrt(t*t+1)-t)}function E(e){return(Math.exp(e)-Math.exp(-e))/2}function k(e){return(Math.exp(e)+Math.exp(-e))/2}const T=S(0);let I=function(e){return k(T)/k(T+b*e)},O=function(e){return A*((k(T)*(E(t=T+b*e)/k(t))-E(T))/C)/w;var t},R=(S(1)-T)/b;if(Math.abs(w)<1e-6||!isFinite(R)){if(Math.abs(A-x)<1e-6)return this.easeTo(t,n);const e=xt.maxDuration&&(t.duration=0);const M=o!==c,P=u!==a,D=!r.isPaddingEqual(h),j=r=>d=>{const m=d*R,b=1/I(m);r.zoom=1===d?l:i+r.scaleZoom(b),M&&(r.bearing=e.a3(o,c,d)),P&&(r.pitch=e.a3(a,u,d)),D&&(r.interpolatePadding(s,h,d),p=r.centerPoint.add(f));const A=1===d?g:r.unproject(y.add(v.mult(O(m))).mult(b));return r.setLocationAtPoint(r.renderWorldCopies?A.wrap():A,p),r._updateCameraOnTerrain(),t.preloadOnly||this._fireMoveEvents(n),r};if(t.preloadOnly){const e=this._emulate(j,t.duration,r);return this._preloadTiles(e),this}return this._zooming=!0,this._rotating=M,this._pitching=P,this._padding=D,this._prepareEase(n,!1),this._ease(j(r),(()=>this._afterEase(n)),t),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_requestRenderFrame(e){}_cancelRenderFrame(e){}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),this._easeFrameId=void 0,this._onEaseFrame=void 0),this._onEaseEnd){const e=this._onEaseEnd;this._onEaseEnd=void 0,e.call(this,t)}if(!e){const e=this.handlers;e&&e.stop(!1)}return this}_ease(t,n,r){!1===r.animate||0===r.duration?(t(1),n()):(this._easeStart=e.e.now(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const t=Math.min((e.e.now()-this._easeStart)/this._easeOptions.duration,1),n=this._onEaseFrame;n&&n(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(t,n){t=e.av(t,-180,180);const r=Math.abs(t-n);return Math.abs(t-360-n)180?-360:n<-180?360:0}_prefersReducedMotion(t){const n=t&&t.essential;return this._respectPrefersReducedMotion&&e.e.prefersReducedMotion&&!n}_emulate(e,t,n){const r=Math.ceil(15*t/1e3),i=[],o=e(n.clone());for(let e=0;e<=r;e++){const t=o(e/r);i.push(t.clone())}return i}_preloadTiles(e,t){}}class Za{constructor(t={}){this.options=t,e.br(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(e){const t=this.options&&this.options.compact,n=e._getUIString("AttributionControl.ToggleAttribution");this._map=e,this._container=i("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=i("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._compactButton.setAttribute("aria-label",n);const r=i("span","mapboxgl-ctrl-icon",this._compactButton);return r.setAttribute("aria-hidden","true"),r.setAttribute("title",n),this._innerContainer=i("div","mapboxgl-ctrl-attrib-inner",this._container),t&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===t&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));const n=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.db.ACCESS_TOKEN}];if(t){const r=n.reduce(((e,t,r)=>(t.value&&(e+=`${t.key}=${t.value}${re.length-t.length)),e=e.filter(((t,n)=>{for(let r=n+1;r=0)return!1;return!0})),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=[...this.options.customAttribution,...e]:e.unshift(this.options.customAttribution));const n=e.join(" | ");n!==this._attribHTML&&(this._attribHTML=n,e.length?(this._innerContainer.innerHTML=n,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class Ka{constructor(){e.br(["_updateLogo","_updateCompact"],this)}onAdd(e){this._map=e,this._container=i("div","mapboxgl-ctrl");const t=i("a","mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="proxy.php?url=https%3A%2F%2Fwww.mapbox.com%2F",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(e){e&&"metadata"!==e.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;const e=this._map.style._sourceCaches;if(0===Object.entries(e).length)return!0;for(const t in e){const n=e[t].getSource();if(n.hasOwnProperty("mapbox_logo")&&!n.mapbox_logo)return!1}return!0}_updateCompact(){const e=this._container.children;if(e.length){const t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("mapboxgl-compact"):t.classList.remove("mapboxgl-compact")}}}class $a{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){const t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){const t=this._currentlyRunning,n=t?this._queue.concat(t):this._queue;for(const t of n)if(t.id===e)return void(t.cancelled=!0)}run(e=0){const t=this._currentlyRunning=this._queue;this._queue=[];for(const n of t)if(!n.cancelled&&(n.callback(e),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function es(t,n,r){if(t=new e.aJ(t.lng,t.lat),n){const i=new e.aJ(t.lng-360,t.lat),o=new e.aJ(t.lng+360,t.lat),a=360*Math.ceil(Math.abs(t.lng-r.center.lng)/360),s=r.locationPoint(t).distSqr(n),l=n.x<0||n.y<0||n.x>r.width||n.y>r.height;r.locationPoint(i).distSqr(n)180;){const e=r.locationPoint(t);if(e.x>=0&&e.y>=0&&e.x<=r.width&&e.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t}const ts={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};class ns extends e.E{constructor(t,n){if(super(),(t instanceof HTMLElement||n)&&(t=e.Q({element:t},n)),e.br(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this),this._anchor=t&&t.anchor||"center",this._color=t&&t.color||"#3FB1CE",this._scale=t&&t.scale||1,this._draggable=t&&t.draggable||!1,this._clickTolerance=t&&t.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=t&&t.rotation||0,this._rotationAlignment=t&&t.rotationAlignment||"auto",this._pitchAlignment=t&&t.pitchAlignment&&t.pitchAlignment||"auto",this._updateMoving=()=>this._update(!0),this._occludedOpacity=t&&t.occludedOpacity||.2,t&&t.element)this._element=t.element,this._offset=e.P.convert(t&&t.offset||[0,0]);else{this._defaultMarker=!0,this._element=i("div");const n=41,r=27,a=o("svg",{display:"block",height:n*this._scale+"px",width:r*this._scale+"px",viewBox:`0 0 ${r} ${n}`},this._element),s=o("radialGradient",{id:"shadowGradient"},o("defs",{},a));o("stop",{offset:"10%","stop-opacity":.4},s),o("stop",{offset:"100%","stop-opacity":.05},s),o("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},a),o("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},a),o("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},a),o("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},a),this._offset=e.P.convert(t&&t.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.hasAttribute("role")||this._element.setAttribute("role","img"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",(e=>{e.preventDefault()})),this._element.addEventListener("mousedown",(e=>{e.preventDefault()}));const r=this._element.classList;for(const e in ts)r.remove(`mapboxgl-marker-anchor-${e}`);r.add(`mapboxgl-marker-anchor-${this._anchor}`);const a=t&&t.className?t.className.trim().split(/\s+/):[];r.add(...a),this._popup=null}addTo(e){return e===this._map||(this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._updateMoving),e.on("moveend",this._update),e.on("remove",this._clearFadeTimer),e._addMarker(this),this.setDraggable(this._draggable),this._update(),e.on("click",this._onMapClick)),this}remove(){const e=this._map;return e&&(e.off("click",this._onMapClick),e.off("move",this._updateMoving),e.off("moveend",this._update),e.off("mousedown",this._addDragHandler),e.off("touchstart",this._addDragHandler),e.off("mouseup",this._onUp),e.off("touchend",this._onUp),e.off("mousemove",this._onMove),e.off("touchmove",this._onMove),e.off("remove",this._clearFadeTimer),e._removeMarker(this),this._map=void 0),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=e.aJ.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),e){if(!("offset"in e.options)){const t=38.1,n=13.5,r=Math.sqrt(Math.pow(n,2)/2);e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-t],"bottom-left":[r,-1*(t-n+r)],"bottom-right":[-r,-1*(t-n+r)],left:[n,-1*(t-n)],right:[-n,-1*(t-n)]}:this._offset}this._popup=e,e._marker=this,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","false")}return this}_onKeyPress(e){const t=e.code,n=e.charCode||e.keyCode;"Space"!==t&&"Enter"!==t&&32!==n&&13!==n||this.togglePopup()}_onMapClick(e){const t=e.originalEvent.target,n=this._element;this._popup&&(t===n||n.contains(t))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const e=this._popup;return e?(e.isOpen()?(e.remove(),this._element.setAttribute("aria-expanded","false")):this._map&&(e.addTo(this._map),this._element.setAttribute("aria-expanded","true")),this):this}_behindTerrain(){const e=this._map,t=this._pos;if(!e||!t)return!1;const n=e.unproject(t),r=e.getFreeCameraOptions();if(!r.position)return!1;const i=r.position.toLngLat();return i.distanceTo(n)<.9*i.distanceTo(this._lngLat)}_evaluateOpacity(){const t=this._map;if(!t)return;const n=this._pos;if(!n||n.x<0||n.x>t.transform.width||n.y<0||n.y>t.transform.height)return void this._clearFadeTimer();const r=t.unproject(n);let i;t._showingGlobe()&&e.dc(t.transform,this._lngLat)?i=0:(i=1-t._queryFogOpacity(r),t.transform._terrainEnabled()&&t.getTerrain()&&this._behindTerrain()&&(i*=this._occludedOpacity)),this._element.style.opacity=`${i}`,this._element.style.pointerEvents=i>0?"auto":"none",this._popup&&this._popup._setOpacity(i),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_updateDOM(){const e=this._pos,t=this._map;if(!e||!t)return;const n=this._offset.mult(this._scale);this._element.style.transform=`\n translate(${e.x}px,${e.y}px)\n ${ts[this._anchor]}\n ${this._calculateXYTransform()} ${this._calculateZTransform()}\n translate(${n.x}px,${n.y}px)\n `}_calculateXYTransform(){const t=this._pos,n=this._map,r=this.getPitchAlignment();if(!n||!t||"map"!==r)return"";if(!n._showingGlobe()){const e=n.getPitch();return e?`rotateX(${e}deg)`:""}const i=e.b1(e.dd(n.transform,this._lngLat)),o=t.sub(e.de(n.transform)),a=Math.abs(o.x)+Math.abs(o.y);if(0===a)return"";const s=i/a,l=o.x*s;return`rotateX(${-o.y*s}deg) rotateY(${l}deg)`}_calculateZTransform(){const t=this._pos,n=this._map;if(!n||!t)return"";let r=0;const i=this.getRotationAlignment();if("map"===i)if(n._showingGlobe()){const t=n.project(new e.aJ(this._lngLat.lng,this._lngLat.lat+.001)),i=n.project(new e.aJ(this._lngLat.lng,this._lngLat.lat-.001)).sub(t);r=e.b1(Math.atan2(i.y,i.x))-90}else r=-n.getBearing();else if("horizon"===i){const i=4,o=6,a=e.a0(i,o,n.getZoom()),s=e.de(n.transform);s.y+=a*n.transform.height;const l=t.sub(s),c=e.b1(Math.atan2(l.y,l.x));r=(c>90?c-270:c+90)*(1-a)}return r+=this._rotation,r?`rotateZ(${r}deg)`:""}_update(e){cancelAnimationFrame(this._updateFrameId);const t=this._map;t&&(t.transform.renderWorldCopies&&(this._lngLat=es(this._lngLat,this._pos,t.transform)),this._pos=t.project(this._lngLat),!0===e?this._updateFrameId=requestAnimationFrame((()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())})):this._pos=this._pos.round(),t._requestDomTask((()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(t._showingGlobe()||t.getTerrain()||t.getFog())&&!this._fadeTimer&&(this._fadeTimer=window.setTimeout(this._evaluateOpacity.bind(this),60)))})))}getOffset(){return this._offset}setOffset(t){return this._offset=e.P.convert(t),this._update(),this}addClassName(e){return this._element.classList.add(e),this}removeClassName(e){return this._element.classList.remove(e),this}toggleClassName(e){return this._element.classList.toggle(e)}_onMove(t){const n=this._map;if(!n)return;const r=this._pointerdownPos,i=this._positionDelta;if(r&&i){if(!this._isDragging){const e=this._clickTolerance||n._clickTolerance;if(t.point.dist(r)t.transform.height-o,l=r.xt.transform.width-i/2;if(a)return l?"top-left":c?"top-right":"top";if(s){if(l)return"bottom-left";if(c)return"bottom-right"}return l?"left":c?"right":"bottom"}_updateClassList(){const e=this._container;if(!e)return;const t=[...this._classList];t.push("mapboxgl-popup"),this._anchor&&t.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&t.push("mapboxgl-popup-track-pointer"),e.className=t.join(" ")}_update(t){const n=this._lngLat||this._trackPointer,r=this._map,o=this._content;if(!r||!n||!o)return;let a=this._container;if(a||(a=this._container=i("div","mapboxgl-popup",r.getContainer()),this._tip=i("div","mapboxgl-popup-tip",a),a.appendChild(o)),this.options.maxWidth&&a.style.maxWidth!==this.options.maxWidth&&(a.style.maxWidth=this.options.maxWidth),r.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=es(this._lngLat,this._pos,r.transform)),!this._trackPointer||t){const n=this._pos=this._trackPointer&&t instanceof e.P?t:r.project(this._lngLat),i=as(this.options.offset),o=this._anchor=this._getAnchor(i.y),a=as(this.options.offset,o),s=n.add(a).round();r._requestDomTask((()=>{this._container&&o&&(this._container.style.transform=`${ts[o]} translate(${s.x}px,${s.y}px)`)}))}if(!this._marker&&r._showingGlobe()){const t=e.dc(r.transform,this._lngLat)?0:1;this._setOpacity(t)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const e=this._container.querySelector(is);e&&e.focus()}_onClose(){this.remove()}_setOpacity(e){this._container&&(this._container.style.opacity=`${e}`),this._content&&(this._content.style.pointerEvents=e?"auto":"none")}}function as(t=new e.P(0,0),n="bottom"){if("number"==typeof t){const r=Math.round(Math.sqrt(.5*Math.pow(t,2)));switch(n){case"top":return new e.P(0,t);case"top-left":return new e.P(r,r);case"top-right":return new e.P(-r,r);case"bottom":return new e.P(0,-t);case"bottom-left":return new e.P(r,-r);case"bottom-right":return new e.P(-r,-r);case"left":return new e.P(t,0);case"right":return new e.P(-t,0)}return new e.P(0,0)}return t instanceof e.P||Array.isArray(t)?e.P.convert(t):e.P.convert(t[n]||[0,0])}class ss{constructor(e){this.jumpTo(e)}getValue(t){if(t<=this._startTime)return this._start;if(t>=this._endTime)return this._end;const n=e.bb((t-this._startTime)/(this._endTime-this._startTime));return this._start*(1-n)+this._end*n}isEasing(e){return e>=this._startTime&&e<=this._endTime}jumpTo(e){this._startTime=-1/0,this._endTime=-1/0,this._start=e,this._end=e}easeTo(e,t,n){this._start=this.getValue(t),this._end=e,this._startTime=t,this._endTime=t+n}}const ls={"AttributionControl.ToggleAttribution":"Toggle attribution","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox homepage","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use ⌘ + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"};class cs{registerParameter(){}registerButton(){}registerBinding(){}refreshUI(){}}const us=85,hs={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:us,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,performanceMetricsCollection:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,antialias:!1,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,respectPrefersReducedMotion:!0,crossSourceCollisions:!0,collectResourceTiming:!1,testMode:!1,precompilePrograms:!0};const ds={showCompass:!0,showZoom:!0,visualizePitch:!1};class fs{constructor(t,n,r=!1){this._clickTolerance=10,this.element=n,this.mouseRotate=new xa({clickTolerance:t.dragRotate._mouseRotate._clickTolerance}),this.map=t,r&&(this.mousePitch=new wa({clickTolerance:t.dragRotate._mousePitch._clickTolerance})),e.br(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),n.addEventListener("mousedown",this.mousedown),n.addEventListener("touchstart",this.touchstart,{passive:!1}),n.addEventListener("touchmove",this.touchmove),n.addEventListener("touchend",this.touchend),n.addEventListener("touchcancel",this.reset)}down(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),c()}move(e,t){const n=this.map,r=this.mouseRotate.mousemoveWindow(e,t),i=r&&r.bearingDelta;if(i&&n.setBearing(n.getBearing()+i),this.mousePitch){const r=this.mousePitch.mousemoveWindow(e,t),i=r&&r.pitchDelta;i&&n.setPitch(n.getPitch()+i)}}off(){const e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart,{passive:!1}),e.removeEventListener("touchmove",this.touchmove),e.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){u(),window.removeEventListener("mousemove",this.mousemove),window.removeEventListener("mouseup",this.mouseup)}mousedown(t){this.down(e.Q({},t,{ctrlKey:!0,preventDefault:()=>t.preventDefault()}),f(this.element,t)),window.addEventListener("mousemove",this.mousemove),window.addEventListener("mouseup",this.mouseup)}mousemove(e){this.move(e,f(this.element,e))}mouseup(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()}touchstart(e){1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=p(this.element,e.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>e.preventDefault()},this._startPos))}touchmove(e){1!==e.targetTouches.length?this.reset():(this._lastPos=p(this.element,e.targetTouches)[0],this.move({preventDefault:()=>e.preventDefault()},this._lastPos))}touchend(e){0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this._supportsGeolocation=t,e(t)};void 0!==this._supportsGeolocation?e(this._supportsGeolocation):void 0!==navigator.permissions?navigator.permissions.query({name:"geolocation"}).then((e=>t("denied"!==e.state))).catch((()=>t())):t()}_isOutOfMapMaxBounds(e){const t=this._map.getMaxBounds(),n=e.coords;return!!t&&(n.longitudet.getEast()||n.latitudet.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.g("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._userLocationDotMarker.removeClassName("mapboxgl-user-location-dot-stale"),this.fire(new e.g("geolocate",t)),this._finish()}}_updateCamera(t){const n=new e.aJ(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,i=this._map.getBearing(),o=e.Q({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(r),o,{geolocateSource:!0})}_updateMarker(t){if(t){const n=new e.aJ(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const t=this._map.transform,n=e.ay(1,t._center.lat)*t.worldSize,r=Math.ceil(2*this._accuracy*n);this._circleElement.style.width=`${r}px`,this._circleElement.style.height=`${r}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&"number"==typeof this._heading?(this._userLocationDotMarker.setRotation(this._heading),this._userLocationDotMarker.addClassName("mapboxgl-user-location-show-heading")):(this._userLocationDotMarker.removeClassName("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(t){if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&this._noTimeout)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._userLocationDotMarker.addClassName("mapboxgl-user-location-dot-stale"),this.fire(new e.g("error",t)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(t){if(void 0!==this._map){if(this._container.addEventListener("contextmenu",(e=>e.preventDefault())),this._geolocateButton=i("button","mapboxgl-ctrl-geolocate",this._container),i("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===t){e.w("Geolocation support is not available so the GeolocateControl will be disabled.");const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",t),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",t)}else{const e=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=i("div","mapboxgl-user-location"),this._dotElement.appendChild(i("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(i("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new ns({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=i("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new ns({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",(t=>{const n=t.originalEvent&&"resize"===t.originalEvent.type;t.geolocateSource||"ACTIVE_LOCK"!==this._watchState||n||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new e.g("trackuserlocationend")))}))}}_onDeviceOrientation(e){this._userLocationDotMarker&&(e.webkitCompassHeading?this._heading=e.webkitCompassHeading:!0===e.absolute&&(this._heading=-1*e.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return e.w("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 e.g("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.g("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.g("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let e;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(e={maximumAge:6e5,timeout:0},this._noTimeout=!0):(e=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,e),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=window.setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const e=()=>{"ondeviceorientationabsolute"in window?window.addEventListener("deviceorientationabsolute",this._onDeviceOrientation):window.addEventListener("deviceorientation",this._onDeviceOrientation)};"undefined"!=typeof DeviceMotionEvent&&"function"==typeof DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then((t=>{"granted"===t&&e()})).catch(console.error):e()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),window.removeEventListener("deviceorientation",this._onDeviceOrientation),window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}}const gs={maxWidth:100,unit:"metric"},ys={kilometer:"km",meter:"m",mile:"mi",foot:"ft","nautical-mile":"nm"};return{version:e.dw,supported:t,setRTLTextPlugin:e.dy,getRTLTextPluginStatus:e.dz,Map:class extends Ja{constructor(t){e.df.mark(e.dg.create);const n=t;if(null!=(t=e.Q({},hs,t)).minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&t.maxPitch>us)throw new Error("maxPitch must be less than or equal to 85");if(t.antialias&&e.dh(window)&&(t.antialias=!1,e.w("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new pn(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies),t),this._repaint=!!t.repaint,this._interactive=t.interactive,this._minTileCacheSize=t.minTileCacheSize,this._maxTileCacheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=t.crossSourceCollisions,this._collectResourceTiming=t.collectResourceTiming,this._language=this._parseLanguage(t.language),this._worldview=t.worldview,this._renderTaskQueue=new $a,this._domRenderTaskQueue=new $a,this._controls=[],this._markers=[],this._popups=[],this._mapId=e.di(),this._locale=e.Q({},ls,t.locale),this._clickTolerance=t.clickTolerance,this._cooperativeGestures=t.cooperativeGestures,this._performanceMetricsCollection=t.performanceMetricsCollection,this._tessellationStep=t.tessellationStep,this._containerWidth=0,this._containerHeight=0,this._showParseStatus=!0,this._precompilePrograms=t.precompilePrograms,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new ss(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._frameId=0,this._requestManager=new e.dj(t.transformRequest,t.accessToken,t.testMode),this._silenceAuthErrors=!!t.testMode,t.contextCreateOptions?this._contextCreateOptions={...t.contextCreateOptions}:this._contextCreateOptions={},"string"==typeof t.container){const e=document.getElementById(t.container);if(!e)throw new Error(`Container '${t.container.toString()}' not found.`);this._container=e}else{if(!(t.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(this._container.childNodes.length>0&&e.w("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),t.maxBounds&&this.setMaxBounds(t.maxBounds),e.br(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._tp||(this._tp=new cs),this._tp.registerParameter(this,["Debug"],"showOverdrawInspector"),this._tp.registerParameter(this,["Debug"],"showTileBoundaries"),this._tp.registerParameter(this,["Debug"],"showParseStatus"),this._tp.registerParameter(this,["Debug"],"repaint"),this._tp.registerParameter(this,["Debug"],"showTileAABBs"),this._tp.registerParameter(this,["Debug"],"showPadding"),this._tp.registerParameter(this,["Debug"],"showCollisionBoxes",{noSave:!0}),this._tp.registerParameter(this.transform,["Debug"],"freezeTileCoverage",{noSave:!0},(()=>{this._update()})),this._tp.registerParameter(this,["Debug","Wireframe"],"showTerrainWireframe"),this._tp.registerParameter(this,["Debug","Wireframe"],"showLayers2DWireframe"),this._tp.registerParameter(this,["Debug","Wireframe"],"showLayers3DWireframe"),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");if(this.on("move",(()=>this._update(!1))),this.on("moveend",(()=>this._update(!1))),this.on("zoom",(()=>this._update(!0))),this._fullscreenchangeEvent="onfullscreenchange"in document?"fullscreenchange":"webkitfullscreenchange",window.addEventListener("online",this._onWindowOnline,!1),window.addEventListener("resize",this._onWindowResize,!1),window.addEventListener("orientationchange",this._onWindowResize,!1),window.addEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.addEventListener("visibilitychange",this._onVisibilityChange,!1),this.handlers=new Qa(this,t),this._localFontFamily=t.localFontFamily,this._localIdeographFontFamily=t.localIdeographFontFamily,t.style||!t.testMode){const n=t.style||e.db.DEFAULT_STYLE;this.setStyle(n,{config:t.config,localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily})}t.projection&&this.setProjection(t.projection);const r="string"==typeof t.hash&&t.hash||void 0;if(t.hash&&(this._hash=new Jo(r).addTo(this)),!this._hash||!this._hash._onHashChange()){null==n.center&&null==n.zoom||(this.transform._unmodified=!1),this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch});const r=t.bounds;r&&(this.resize(),this.fitBounds(r,e.Q({},t.fitBoundsOptions,{duration:0})))}this.resize(),t.attributionControl&&this.addControl(new Za({customAttribution:t.customAttribution})),this._logoControl=new Ka,this.addControl(this._logoControl,t.logoPosition),this.on("style.load",(()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet),this._postStyleLoadEvent()})),this.on("data",(t=>{this._update("style"===t.dataType),this.fire(new e.g(`${t.dataType}data`,t))})),this.on("dataloading",(t=>{this.fire(new e.g(`${t.dataType}dataloading`,t))}))}_getMapId(){return this._mapId}addControl(t,n){if(void 0===n&&(n=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t||!t.onAdd)return this.fire(new e.f(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const r=t.onAdd(this);this._controls.push(t);const i=this._controlPositions[n];return-1!==n.indexOf("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this}removeControl(t){if(!t||!t.onRemove)return this.fire(new e.f(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const n=this._controls.indexOf(t);return n>-1&&this._controls.splice(n,1),t.onRemove(this),this}hasControl(e){return this._controls.indexOf(e)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(t){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const n=!this._moving;return n&&this.fire(new e.g("movestart",t)).fire(new e.g("move",t)),this.fire(new e.g("resize",t)),n&&this.fire(new e.g("moveend",t)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(t){return this.transform.setMaxBounds(e.aj.convert(t)),this._update()}setMinZoom(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t?this.setZoom(t):this.fire(new e.g("zoomstart")).fire(new e.g("zoom")).fire(new e.g("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(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()us)throw new Error("maxPitch must be less than or equal to 85");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t?this.setPitch(t):this.fire(new e.g("pitchstart")).fire(new e.g("pitch")).fire(new e.g("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(e){return this.transform.renderWorldCopies=e,this.transform.renderWorldCopies||this._forceMarkerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(e){return"auto"===e?navigator.language:Array.isArray(e)?0===e.length?void 0:e.map((e=>"auto"===e?navigator.language:e)):e}setLanguage(e){const t=this._parseLanguage(e);if(!this.style||t===this._language)return this;this._language=t,this.style.reloadSources();for(const e of this._controls)e._setLanguage&&e._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(e){return this.style&&e!==this._worldview?(this._worldview=e,this.style.reloadSources(),this):this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return"globe"===this.transform.projection.name}setProjection(e){return this._lazyInitEmptyStyle(),e?"string"==typeof e&&(e={name:e}):e=null,this._useExplicitProjection=!!e,this._prioritizeAndUpdateProjection(e,this.style.projection)}_updateProjectionTransition(){if("globe"!==this.getProjection().name)return;const t=this.transform,n=t.projection.name;let r;"globe"===n&&t.zoom>=e.aV?(t.setMercatorFromTransition(),r=!0):"mercator"===n&&t.zoom=e.aV?this.transform.setMercatorFromTransition():this.transform.setProjection(t),this.style.applyProjectionUpdate(),n&&(this.painter.clearBackgroundTiles(),this.style.clearSources(),this._update(!0),this._forceMarkerAndPopupUpdate(!0)),this}project(t){return this.transform.locationPoint3D(e.aJ.convert(t))}unproject(t){return this.transform.pointLocation3D(e.P.convert(t))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_isDragging(){return this.handlers&&this.handlers._isDragging()||!1}_createDelegatedListener(e,t,n){if("mouseenter"===e||"mouseover"===e){let r=!1;const i=i=>{const o=t.filter((e=>this.getLayer(e))),a=o.length?this.queryRenderedFeatures(i.point,{layers:o}):[];a.length?r||(r=!0,n.call(this,new aa(e,this,i.originalEvent,{features:a}))):r=!1},o=()=>{r=!1};return{layers:new Set(t),listener:n,delegates:{mousemove:i,mouseout:o}}}if("mouseleave"===e||"mouseout"===e){let r=!1;const i=i=>{const o=t.filter((e=>this.getLayer(e)));(o.length?this.queryRenderedFeatures(i.point,{layers:o}):[]).length?r=!0:r&&(r=!1,n.call(this,new aa(e,this,i.originalEvent)))},o=t=>{r&&(r=!1,n.call(this,new aa(e,this,t.originalEvent)))};return{layers:new Set(t),listener:n,delegates:{mousemove:i,mouseout:o}}}{const r=e=>{const r=t.filter((e=>this.getLayer(e))),i=r.length?this.queryRenderedFeatures(e.point,{layers:r}):[];i.length&&(e.features=i,n.call(this,e),delete e.features)};return{layers:new Set(t),listener:n,delegates:{[e]:r}}}}on(e,t,n){if("function"==typeof t||void 0===n)return super.on(e,t);if(Array.isArray(t)||(t=[t]),t)for(const e of t)if(!this._isValidId(e))return this;const r=this._createDelegatedListener(e,t,n);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(r);for(const e in r.delegates)this.on(e,r.delegates[e]);return this}once(e,t,n){if("function"==typeof t||void 0===n)return super.once(e,t);if(Array.isArray(t)||(t=[t]),t)for(const e of t)if(!this._isValidId(e))return this;const r=this._createDelegatedListener(e,t,n);for(const e in r.delegates)this.once(e,r.delegates[e]);return this}off(e,t,n){if("function"==typeof t||void 0===n)return super.off(e,t);const r=new Set(Array.isArray(t)?t:[t]);for(const e of r)if(!this._isValidId(e))return this;const i=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0},o=this._delegatedListeners?this._delegatedListeners[e]:void 0;return o&&(e=>{for(let t=0;t{r?(e.w(`Unable to perform style diff: ${String(r.message||r.error||r)}. Rebuilding the style from scratch.`),this._updateStyle(t,n)):i&&this._update(!0)}),(()=>{this._postStyleLoadEvent()})),this):(this._localIdeographFontFamily=n.localIdeographFontFamily,this._localFontFamily=n.localFontFamily,this._updateStyle(t,n))}_getUIString(e){const t=this._locale[e];if(null==t)throw new Error(`Missing UI string '${e}'`);return t}_updateStyle(t,n){if(this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),t){const r=e.Q({},n);n&&n.config&&(r.initialConfig=n.config,delete r.config),this.style=new Qo(this,r).load(t),this.style.setEventedParent(this,{style:this.style})}return this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new Qo(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(e.w("There is no style added to the map."),!1)}_isValidId(t){return null==t?(this.fire(new e.f(new Error("IDs can't be empty."))),!1):!e.cY(t)||(this.fire(new e.f(new Error(`IDs can't contain special symbols: "${t}".`))),!1)}addSource(e,t){return this._isValidId(e)?(this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)):this}isSourceLoaded(e){return!!this._isValidId(e)&&!!this.style&&this.style._isSourceCacheLoaded(e)}areTilesLoaded(){return this.style.areTilesLoaded()}addSourceType(e,t,n){this._lazyInitEmptyStyle(),this.style.addSourceType(e,t,n)}removeSource(e){return this._isValidId(e)?(this.style.removeSource(e),this._updateTerrain(),this._update(!0)):this}getSource(e){return this._isValidId(e)?this.style.getOwnSource(e):null}addImage(t,n,{pixelRatio:r=1,sdf:i=!1,stretchX:o,stretchY:a,content:s}={}){this._lazyInitEmptyStyle();if(n instanceof HTMLImageElement||ImageBitmap&&n instanceof ImageBitmap){const{width:l,height:c,data:u}=e.e.getImageData(n);this.style.addImage(t,{data:new e.j({width:l,height:c},u),pixelRatio:r,stretchX:o,stretchY:a,content:s,sdf:i,version:0})}else if(void 0===n.width||void 0===n.height)this.fire(new e.f(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:l,height:c}=n,u=n,h=u.data;this.style.addImage(t,{data:new e.j({width:l,height:c},new Uint8Array(h)),pixelRatio:r,stretchX:o,stretchY:a,content:s,sdf:i,version:0,userImage:u}),u.onAdd&&u.onAdd(this,t)}}updateImage(t,n){this._lazyInitEmptyStyle();const r=this.style.getImage(t);if(!r)return void this.fire(new e.f(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const i=n instanceof HTMLImageElement||ImageBitmap&&n instanceof ImageBitmap?e.e.getImageData(n):n,{width:o,height:a,data:s}=i;if(void 0===o||void 0===a)return void this.fire(new e.f(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`")));if(o!==r.data.width||a!==r.data.height)return void this.fire(new e.f(new Error(`The width and height of the updated image (${o}, ${a})\n must be that same as the previous version of the image\n (${r.data.width}, ${r.data.height})`)));const l=!(n instanceof HTMLImageElement||ImageBitmap&&n instanceof ImageBitmap);r.data.replace(s,l),this.style.updateImage(t,r)}hasImage(t){return t?!!this.style&&!!this.style.getImage(t):(this.fire(new e.f(new Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(t,n){e.i(this._requestManager.transformRequest(t,e.R.Image),((t,r)=>{n(t,r instanceof HTMLImageElement?e.e.getImageData(r):r)}))}listImages(){return this.style.listImages()}addModel(e,t){this._lazyInitEmptyStyle(),this.style.addModel(e,t)}hasModel(t){return t?this.style.hasModel(t):(this.fire(new e.f(new Error("Missing required model id"))),!1)}removeModel(e){this.style.removeModel(e)}listModels(){return this.style.listModels()}addLayer(e,t){return this._isValidId(e.id)?(this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)):this}getSlot(e){const t=this.getLayer(e);return t&&t.slot||null}setSlot(e,t){return this.style.setSlot(e,t),this.style.mergeLayers(),this._update(!0)}addImport(e,t){return this.style.addImport(e,t),this}updateImport(e,t){return"string"!=typeof t&&t.id!==e?(this.removeImport(e),this.addImport(t)):(this.style.updateImport(e,t),this._update(!0))}removeImport(e){return this.style.removeImport(e),this}moveImport(e,t){return this.style.moveImport(e,t),this._update(!0)}moveLayer(e,t){return this._isValidId(e)?(this.style.moveLayer(e,t),this._update(!0)):this}removeLayer(e){return this._isValidId(e)?(this.style.removeLayer(e),this._update(!0)):this}getLayer(e){if(!this._isValidId(e))return null;const t=this.style.getOwnLayer(e);return t?"custom"===t.type?t.implementation:t.serialize():void 0}getSlots(){return this.style.getSlots()}setLayerZoomRange(e,t,n){return this._isValidId(e)?(this.style.setLayerZoomRange(e,t,n),this._update(!0)):this}setFilter(e,t,n={}){return this._isValidId(e)?(this.style.setFilter(e,t,n),this._update(!0)):this}getFilter(e){return this._isValidId(e)?this.style.getFilter(e):null}setPaintProperty(e,t,n,r={}){return this._isValidId(e)?(this.style.setPaintProperty(e,t,n,r),this._update(!0)):this}getPaintProperty(e,t){return this._isValidId(e)?this.style.getPaintProperty(e,t):null}setLayoutProperty(e,t,n,r={}){return this._isValidId(e)?(this.style.setLayoutProperty(e,t,n,r),this._update(!0)):this}getLayoutProperty(e,t){return this._isValidId(e)?this.style.getLayoutProperty(e,t):null}getSchema(e){return this.style.getSchema(e)}setSchema(e,t){return this.style.setSchema(e,t),this._update(!0)}getConfig(e){return this.style.getConfig(e)}setConfig(e,t){return this.style.setConfig(e,t),this._update(!0)}getConfigProperty(e,t){return this.style.getConfigProperty(e,t)}setConfigProperty(e,t,n){return this.style.setConfigProperty(e,t,n),this._update(!0)}setLights(e){if(this._lazyInitEmptyStyle(),e&&1===e.length&&"flat"===e[0].type){const t=e[0];t.properties?this.style.setFlatLight(t.properties,t.id,{}):this.style.setFlatLight({},"flat")}else this.style.setLights(e),this.painter.terrain&&(this.painter.terrain.invalidateRenderCache=!0);return this._update(!0)}getLights(){const e=this.style.getLights()||[];return 0===e.length&&e.push({id:this.style.light.id,type:"flat",properties:this.style.getFlatLight()}),e}setLight(e,t={}){return console.log("The `map.setLight` function is deprecated, prefer using `map.setLights` with `flat` light type instead."),this.setLights([{id:"flat",type:"flat",properties:e}])}getLight(){return console.log("The `map.getLight` function is deprecated, prefer using `map.getLights` instead."),this.style.getFlatLight()}setTerrain(e){return this._lazyInitEmptyStyle(),!e&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(e),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(e){return this._lazyInitEmptyStyle(),this.style.setFog(e),this._update(!0)}getFog(){return this.style?this.style.getFog():null}setColorTheme(e){return this._lazyInitEmptyStyle(),this.style.setColorTheme(e),this._update(!0)}setCamera(e){return this.style.setCamera(e),this._triggerCameraUpdate(e)}_triggerCameraUpdate(e){return this._update(this.transform.setOrthographicProjectionAtLowPitch("orthographic"===e["camera-projection"]))}getCamera(){return this.style.camera}_queryFogOpacity(t){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(e.aJ.convert(t),this.transform):0}setFeatureState(e,t){return this._isValidId(e.source)?(this.style.setFeatureState(e,t),this._update()):this}removeFeatureState(e,t){return this._isValidId(e.source)?(this.style.removeFeatureState(e,t),this._update()):this}getFeatureState(e){return this._isValidId(e.source)?this.style.getFeatureState(e):null}_updateContainerDimensions(){if(!this._container)return;const e=this._container.getBoundingClientRect().width||400,t=this._container.getBoundingClientRect().height||300;let n,r,i,o=this._container;for(;o&&(!r||!i);){const e=window.getComputedStyle(o).transform;e&&"none"!==e&&(n=e.match(/matrix.*\((.+)\)/)[1].split(", "),n[0]&&"0"!==n[0]&&"1"!==n[0]&&(r=n[0]),n[3]&&"0"!==n[3]&&"1"!==n[3]&&(i=n[3])),o=o.parentElement}this._containerWidth=r?Math.abs(e/r):e,this._containerHeight=i?Math.abs(t/i):t}_detectMissingCSS(){"rgb(250, 128, 114)"!==window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&e.w("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const e=this._container;e.classList.add("mapboxgl-map"),(this._missingCSSCanary=i("div","mapboxgl-canary",e)).style.visibility="hidden",this._detectMissingCSS();const t=this._canvasContainer=i("div","mapboxgl-canvas-container",e);this._canvas=i("canvas","mapboxgl-canvas",t),this._interactive&&(t.classList.add("mapboxgl-interactive"),this._canvas.setAttribute("tabindex","0")),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const n=this._controlContainer=i("div","mapboxgl-control-container",e),r=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((e=>{r[e]=i("div",`mapboxgl-ctrl-${e}`,n)})),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(t,n){const r=e.e.devicePixelRatio||1;this._canvas.width=r*Math.ceil(t),this._canvas.height=r*Math.ceil(n),this._canvas.style.width=`${t}px`,this._canvas.style.height=`${n}px`}_addMarker(e){this._markers.push(e)}_removeMarker(e){const t=this._markers.indexOf(e);-1!==t&&this._markers.splice(t,1)}_addPopup(e){this._popups.push(e)}_removePopup(e){const t=this._popups.indexOf(e);-1!==t&&this._popups.splice(t,1)}_setupPainter(){const n=e.Q({},t.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),r=this._canvas.getContext("webgl2",n);r?(e.dk(r,!0),this.painter=new qi(r,this._contextCreateOptions,this.transform,this._tp),this.on("data",(e=>{"source"===e.dataType&&this.painter.setTileLoadedFlag(!0)})),e.dl.testSupport(r)):this.fire(new e.f(new Error("Failed to initialize WebGL")))}_contextLost(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.g("webglcontextlost",{originalEvent:t}))}_contextRestored(t){this._setupPainter(),this.resize(),this._update(),this.fire(new e.g("webglcontextrestored",{originalEvent:t}))}_onMapScroll(e){if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}idle(){return!this.isMoving()&&this.loaded()}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}frameReady(){return this.loaded()&&!this._placementDirty}_update(e){return this.style?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_requestDomTask(e){!this.loaded()||this.loaded()&&!this.isMoving()?e():this._domRenderTaskQueue.add(e)}_render(t){let n;this.fire(new e.g("renderstart")),++this._frameId;const r=this.painter.context.extTimerQuery,i=e.e.now(),o=this.painter.context.gl;if(this.listens("gpu-timing-frame")&&(n=o.createQuery(),o.beginQuery(r.TIME_ELAPSED_EXT,n)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],performance.now())),this._renderTaskQueue.run(t),this._domRenderTaskQueue.run(t),this._removed)return;this._updateProjectionTransition();const a=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const t=this.transform.zoom,n=this.transform.pitch,r=e.e.now(),i=new e.Y(t,{now:r,fadeDuration:a,pitch:n,transition:this.style.transition});this.style.update(i)}this.style&&this.style.hasFogTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let s=!1;this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),s=this._updateAverageElevation(i),this.style.updateSources(this.transform),this._forceMarkerAndPopupUpdate()):s=this._updateAverageElevation(i);const l=this.style&&this.style._updatePlacement(this.painter,this.painter.transform,this.showCollisionBoxes,a,this._crossSourceCollisions,this.painter.replacementSource);if(l&&(this._placementDirty=l.needsRerender),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showParseStatus:this.showParseStatus,wireframe:{terrain:this.showTerrainWireframe,layers2D:this.showLayers2DWireframe,layers3D:this.showLayers3DWireframe},showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:a,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new e.g("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,e.df.mark(e.dg.load),this.fire(new e.g("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),n){const t=e.e.now()-i;o.endQuery(r.TIME_ELAPSED_EXT),setTimeout((()=>{const r=o.getQueryParameter(n,o.QUERY_RESULT)/1e6;o.deleteQuery(n),this.fire(new e.g("gpu-timing-frame",{cpuTime:t,gpuTime:r}))}),50)}if(this.listens("gpu-timing-layer")){const t=this.painter.collectGpuTimers();setTimeout((()=>{const n=this.painter.queryGpuTimers(t);this.fire(new e.g("gpu-timing-layer",{layerTimes:n}))}),50)}if(this.listens("gpu-timing-deferred-render")){const t=this.painter.collectDeferredRenderGpuQueries();setTimeout((()=>{const n=this.painter.queryGpuTimeDeferredRender(t);this.fire(new e.g("gpu-timing-deferred-render",{gpuTime:n}))}),50)}const c=this._sourcesDirty||this._styleDirty||this._placementDirty||s;if(c||this._repaint)this.triggerRepaint();else{const t=this.idle();if(t&&(s=this._updateAverageElevation(i,!0)),s)this.triggerRepaint();else if(this._triggerFrame(!1),t&&(this.fire(new e.g("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const t=this._calculateSpeedIndex();this.fire(new e.g("speedindexcompleted",{speedIndex:t})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||c||(this._fullyLoaded=!0,e.df.mark(e.dg.fullLoad),this._performanceMetricsCollection&&e.dm(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(e){for(const t of this._markers)e&&!this.getRenderWorldCopies()&&(t._lngLat=t._lngLat.wrap()),t._update();for(const t of this._popups)!e||this.getRenderWorldCopies()||t._trackPointer||(t._lngLat=t._lngLat.wrap()),t._update()}_updateAverageElevation(e,t=!1){const n=e=>(this.transform.averageElevation=e,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&n(0);const r=this.transform.elevation&&this.transform.elevation.exaggeration()!==this._averageElevationExaggeration,i=t||e-this._averageElevationLastSampledAt>500;if(r||i&&!this._averageElevation.isEasing(e)){const t=this.transform.averageElevation;let i=this.transform.sampleAverageElevation();null!=this.transform.elevation&&(this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(i)?i=0:this._averageElevationLastSampledAt=e;const o=Math.abs(t-i);if(o>1){if(this._isInitialLoad||r)return this._averageElevation.jumpTo(i),n(i);this._averageElevation.easeTo(i,e,300)}else if(o>1e-4)return this._averageElevation.jumpTo(i),n(i)}return!!this._averageElevation.isEasing(e)&&n(this._averageElevation.getValue(e))}_authenticate(){e.dn(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,(t=>{if(t&&(t.message===e.dp||401===t.status)){const t=this.painter.context.gl;e.dk(t,!1),this._logoControl instanceof Ka&&this._logoControl._updateLogo(),t&&t.clear(t.DEPTH_BUFFER_BIT|t.COLOR_BUFFER_BIT|t.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new e.f(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}})),e.dq(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,(()=>{}))}_postStyleLoadEvent(){this.style.globalId&&e.dr(this._requestManager._customAccessToken,{map:this,skuToken:this._requestManager._skuToken,style:this.style.globalId,importedStyles:this.style.getImportGlobalIds()})}_updateTerrain(){const e=this._isDragging();this.painter.updateTerrain(this.style,e)}_calculateSpeedIndex(){const e=this.painter.canvasCopy(),t=this.painter.getCanvasCopiesAndTimestamps();t.timeStamps.push(performance.now());const n=this.painter.context.gl,r=n.createFramebuffer();function i(e){n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,e,0);const t=new Uint8Array(n.drawingBufferWidth*n.drawingBufferHeight*4);return n.readPixels(0,0,n.drawingBufferWidth,n.drawingBufferHeight,n.RGBA,n.UNSIGNED_BYTE,t),t}return n.bindFramebuffer(n.FRAMEBUFFER,r),this._canvasPixelComparison(i(e),t.canvasCopies.map(i),t.timeStamps)}_canvasPixelComparison(e,t,n){let r=n[1]-n[0];const i=e.length/4;for(let o=0;o{const t=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,t&&this._render(e)})))}_preloadTiles(t){const n=this.style?this.style.getSourceCaches():[];return e.dv(n,((e,n)=>e._preloadTiles(t,n)),(()=>{this.triggerRepaint()})),this}_onWindowOnline(){this._update()}_onWindowResize(e){this._trackResize&&this.resize({originalEvent:e})._update()}_onVisibilityChange(){"hidden"===document.visibilityState&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._tp.refreshUI(),this._update())}get showParseStatus(){return!!this._showParseStatus}set showParseStatus(e){this._showParseStatus!==e&&(this._showParseStatus=e,this._tp.refreshUI(),this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(e){this._showTerrainWireframe!==e&&(this._showTerrainWireframe=e,this._tp.refreshUI(),this._update())}get showLayers2DWireframe(){return!!this._showLayers2DWireframe}set showLayers2DWireframe(e){this._showLayers2DWireframe!==e&&(this._showLayers2DWireframe=e,this._tp.refreshUI(),this._update())}get showLayers3DWireframe(){return!!this._showLayers3DWireframe}set showLayers3DWireframe(e){this._showLayers3DWireframe!==e&&(this._showLayers3DWireframe=e,this._tp.refreshUI(),this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(e){this._speedIndexTiming!==e&&(this._speedIndexTiming=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._tp.refreshUI(),this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,this._tp.refreshUI(),e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._tp.refreshUI(),this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this._tp.refreshUI(),this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(e){this._showTileAABBs!==e&&(this._showTileAABBs=e,this._tp.refreshUI(),e&&this._update())}_setCacheLimits(t,n){e.dx(t,n)}get version(){return e.dw}},NavigationControl:class{constructor(t={}){this.options=e.Q({},ds,t),this._container=i("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",(e=>e.preventDefault())),this.options.showZoom&&(e.br(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",(e=>{this._map&&this._map.zoomIn({},{originalEvent:e})})),i("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",(e=>{this._map&&this._map.zoomOut({},{originalEvent:e})})),i("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(e.br(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",(e=>{const t=this._map;t&&(this.options.visualizePitch?t.resetNorthPitch({},{originalEvent:e}):t.resetNorth({},{originalEvent:e}))})),this._compassIcon=i("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const e=this._map;if(!e)return;const t=e.getZoom(),n=t===e.getMaxZoom(),r=t===e.getMinZoom();this._zoomInButton.disabled=n,this._zoomOutButton.disabled=r,this._zoomInButton.setAttribute("aria-disabled",n.toString()),this._zoomOutButton.setAttribute("aria-disabled",r.toString())}_rotateCompassArrow(){const e=this._map;if(!e)return;const t=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(e.transform.pitch*(Math.PI/180)),.5)}) rotateX(${e.transform.pitch}deg) rotateZ(${e.transform.angle*(180/Math.PI)}deg)`:`rotate(${e.transform.angle*(180/Math.PI)}deg)`;e._requestDomTask((()=>{this._compassIcon&&(this._compassIcon.style.transform=t)}))}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),e.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&e.on("pitch",this._rotateCompassArrow),e.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new fs(e,this._compass,this.options.visualizePitch)),this._container}onRemove(){const e=this._map;e&&(this._container.remove(),this.options.showZoom&&e.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&e.off("pitch",this._rotateCompassArrow),e.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(e,t){const n=i("button",e,this._container);return n.type="button",n.addEventListener("click",t),n}_setButtonTitle(e,t){if(!this._map)return;const n=this._map._getUIString(`NavigationControl.${t}`);e.setAttribute("aria-label",n),e.firstElementChild&&e.firstElementChild.setAttribute("title",n)}},GeolocateControl:ms,AttributionControl:Za,ScaleControl:class{constructor(t={}){this.options=e.Q({},gs,t),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch(e){return!1}}(),e.br(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const e=this.options.maxWidth||100,t=this._map,n=t._containerHeight/2,r=t._containerWidth/2-e/2,i=t.unproject([r,n]),o=t.unproject([r+e,n]),a=i.distanceTo(o);if("imperial"===this.options.unit){const t=3.2808*a;if(t>5280){const n=t/5280;this._setScale(e,n,"mile")}else this._setScale(e,t,"foot")}else if("nautical"===this.options.unit){const t=a/1852;this._setScale(e,t,"nautical-mile")}else a>=1e3?this._setScale(e,a/1e3,"kilometer"):this._setScale(e,a,"meter")}_setScale(e,t,n){this._map._requestDomTask((()=>{const r=function(e){const t=Math.pow(10,`${Math.floor(e)}`.length-1);let n=e/t;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:n>=1?1:function(e){const t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(n),t*n}(t),i=r/t;this._isNumberFormatSupported&&"nautical-mile"!==n?this._container.innerHTML=new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:n}).format(r):this._container.innerHTML=`${r} ${ys[n]}`,this._container.style.width=e*i+"px"}))}onAdd(e){return this._map=e,this._language=e.getLanguage(),this._container=i("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(e){this._language=e,this._update()}setUnit(e){this.options.unit=e,this._update()}},FullscreenControl:class{constructor(t={}){this._fullscreen=!1,t&&t.container&&(t.container instanceof HTMLElement?this._container=t.container:e.w("Full screen control 'container' must be a DOM element.")),e.br(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=i("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.w("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled)}_setupUI(){const e=this._fullscreenButton=i("button","mapboxgl-ctrl-fullscreen",this._controlContainer);i("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden","true"),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",e)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(document.fullscreenElement||document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:os,Marker:ns,Style:Qo,LngLat:e.aJ,LngLatBounds:e.aj,Point:e.P,MercatorCoordinate:e._,FreeCameraOptions:qt,Evented:e.E,config:e.db,prewarm:e.dA,clearPrewarmedResources:e.dB,get accessToken(){return e.db.ACCESS_TOKEN},set accessToken(t){e.db.ACCESS_TOKEN=t},get baseApiUrl(){return e.db.API_URL},set baseApiUrl(t){e.db.API_URL=t},get workerCount(){return e.dC.workerCount},set workerCount(t){e.dC.workerCount=t},get maxParallelImageRequests(){return e.db.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.db.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage(t){e.dD(t)},get workerUrl(){return e.dE.workerUrl},set workerUrl(t){e.dE.workerUrl=t},get workerClass(){return e.dE.workerClass},set workerClass(t){e.dE.workerClass=t},get workerParams(){return e.dE.workerParams},set workerParams(t){e.dE.workerParams=t},get dracoUrl(){return e.dF()},set dracoUrl(t){e.dG(t)},get meshoptUrl(){return e.dH()},set meshoptUrl(t){e.dI(t)},setNow:e.e.setNow,restoreNow:e.e.restoreNow}})),n}()},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})},58493:(e,t,n)=>{"use strict";var r=n(96540),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})}),[e,n,t]),a((function(){return c(i)&&u({inst:i}),e((function(){c(i)&&u({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},58859:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,u=s&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,A=String.prototype.toUpperCase,x=String.prototype.toLowerCase,w=RegExp.prototype.test,C=Array.prototype.concat,S=Array.prototype.join,E=Array.prototype.slice,k=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"==typeof Symbol.iterator,M="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function j(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-k(-e):k(e);if(r!==e){var i=String(r),o=v.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var B=n(42634),L=B.custom,F=G(L)?L:null,N={__proto__:null,double:'"',single:"'"},_={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function z(e,t,n){var r=n.quoteStyle||t,i=N[r];return i+e+i}function V(e){return b.call(String(e),/"/g,""")}function U(e){return!M||!("object"==typeof e&&(M in e||void 0!==e[M]))}function H(e){return"[object Array]"===Q(e)&&U(e)}function q(e){return"[object RegExp]"===Q(e)&&U(e)}function G(e){if(R)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,i,s){var l=r||{};if(W(l,"quoteStyle")&&!W(N,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!W(l,"customInspect")||l.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var A=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return J(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return A?j(t,w):w}if("bigint"==typeof t){var k=String(t)+"n";return A?j(t,k):k}var I=void 0===l.depth?5:l.depth;if(void 0===i&&(i=0),i>=I&&I>0&&"object"==typeof t)return H(t)?"[Array]":"[Object]";var L,_=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(l,i);if(void 0===s)s=[];else if(X(s,t)>=0)return"[Circular]";function Y(t,n,r){if(n&&(s=E.call(s)).push(n),r){var o={depth:l.depth};return W(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,i+1,s)}return e(t,l,i+1,s)}if("function"==typeof t&&!q(t)){var Z=function(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),re=ne(t,Y);return"[Function"+(Z?": "+Z:" (anonymous)")+"]"+(re.length>0?" { "+S.call(re,", ")+" }":"")}if(G(t)){var ie=R?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||R?ie:K(ie)}if((L=t)&&"object"==typeof L&&("undefined"!=typeof HTMLElement&&L instanceof HTMLElement||"string"==typeof L.nodeName&&"function"==typeof L.getAttribute)){for(var oe="<"+x.call(String(t.nodeName)),ae=t.attributes||[],se=0;se"}if(H(t)){if(0===t.length)return"[]";var le=ne(t,Y);return _&&!function(e){for(var t=0;t=0)return!1;return!0}(le)?"["+te(le,_)+"]":"[ "+S.call(le,", ")+" ]"}if(function(e){return"[object Error]"===Q(e)&&U(e)}(t)){var ce=ne(t,Y);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===ce.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(ce,", ")+" }":"{ ["+String(t)+"] "+S.call(C.call("[cause]: "+Y(t.cause),ce),", ")+" }"}if("object"==typeof t&&m){if(F&&"function"==typeof t[F]&&B)return B(t,{depth:I-i});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return a&&a.call(t,(function(e,n){ue.push(Y(n,t,!0)+" => "+Y(e,t))})),ee("Map",o.call(t),ue,_)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var he=[];return u&&u.call(t,(function(e){he.push(Y(e,t))})),ee("Set",c.call(t),he,_)}if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return $("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return $("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return $("WeakRef");if(function(e){return"[object Number]"===Q(e)&&U(e)}(t))return K(Y(Number(t)));if(function(e){if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}(t))return K(Y(T.call(t)));if(function(e){return"[object Boolean]"===Q(e)&&U(e)}(t))return K(p.call(t));if(function(e){return"[object String]"===Q(e)&&U(e)}(t))return K(Y(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Q(e)&&U(e)}(t)&&!q(t)){var de=ne(t,Y),fe=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",me=!fe&&M&&Object(t)===t&&M in t?v.call(Q(t),8,-1):pe?"Object":"",ge=(fe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(me||pe?"["+S.call(C.call([],me||[],pe||[]),": ")+"] ":"");return 0===de.length?ge+"{}":_?ge+"{"+te(de,_)+"}":ge+"{ "+S.call(de,", ")+" }"}return String(t)};var Y=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return Y.call(e,t)}function Q(e){return m.call(e)}function X(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return J(v.call(e,0,t.maxStringLength),t)+r}var i=_[t.quoteStyle||"single"];return i.lastIndex=0,z(b.call(b.call(e,i,"\\$1"),/[\x00-\x1f]/g,Z),"single",t)}function Z(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+A.call(t.toString(16))}function K(e){return"Object("+e+")"}function $(e){return e+" { ? }"}function ee(e,t,n,r){return e+" ("+t+") {"+(r?te(n,r):S.call(n,", "))+"}"}function te(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function ne(e,t){var n=H(e),r=[];if(n){r.length=e.length;for(var i=0;i{"use strict";e.exports=Math.floor},59170:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{default:()=>f}),e.exports=(r=h,u(o({},"__esModule",{value:!0}),r));var d=((e,t,n)=>(n=null!=e?i(l(e)):{},u(e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(81859));class f extends d.default{isStatic;objectSize;constructor(e){super(e),this.isStatic=this.fields.every((([,e])=>"number"==typeof e.byteSize)),this.objectSize=this.isStatic?this.fields.reduce(((e,[,t])=>"number"==typeof t.byteSize?e+t.byteSize:e),0):"variable"}internalParse(e,t=0){const n={},r=new DataView(e);for(const[e,i]of this.fields){const[o,a]=i.decode(r,t);n[e]=o,t+=a}return[n,t]}parse(e){return this.internalParse(e,0)[0]}parseAtOffset(e,t){return this.internalParse(e,t)}parseAtIndex(e,t){if("number"!=typeof this.objectSize)return;const n=t>=0?this.objectSize*t:e.byteLength-this.objectSize*Math.abs(t);if(n+this.objectSize>e.byteLength||n<0)throw new Error("Index out of bounds");return this.internalParse(e,n)[0]}multiParse(e){const t=[];let n=0;for(;n{"use strict";t.__esModule=!0,t.default=function(e){var t=r.createContext(e),n=(0,o.default)(e,t),s=(0,a.default)(n,t);return{ThemeContext:t,ThemeProvider:n,withTheme:s,useTheme:function(e){var n=r.useContext(t);return r.useMemo((function(){return n&&e?(0,i.default)(n,e):n||e}),[n,e])}}};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(96540)),i=s(n(26268)),o=s(n(6781)),a=s(n(46060));function s(e){return e&&e.__esModule?e:{default:e}}},59395:e=>{"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},59719:(e,t,n)=>{"use strict";var r=n(69675),i=n(6188),o=n(68002);e.exports=function(e,t,n){if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||!(t<=n))throw new r("Assertion failed: all three arguments must be MVs, and `lower` must be `<= upper`");return o(i(t,e),n)}},59819:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(90646),i=n.n(r),o=n(8);var a=n(11603),s=n(7162).A&&void 0!==window.requestIdleCallback,l=s?window.requestIdleCallback:function(e,t){return setTimeout((()=>{var t=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})}),1)};s&&window.cancelIdleCallback;const c=l;var u=new a.A,h={Events:{interactionStart:"interactionStart",interactionComplete:"interactionComplete"},runAfterInteractions(e){var t=[],n=new Promise((n=>{b(),e&&t.push(e),t.push({run:n,name:"resolve "+(e&&e.name||"?")}),m.enqueueTasks(t)}));return{then:n.then.bind(n),done:n.then.bind(n),cancel:()=>{m.cancelTasks(t)}}},createInteractionHandle(){b();var e=++y;return f.add(e),e},clearInteractionHandle(e){i()(!!e,"Must provide a handle to clear."),b(),f.delete(e),p.add(e)},addListener:u.addListener.bind(u),setDeadline(e){v=e}},d=new Set,f=new Set,p=new Set,m=new class{constructor(e){var t=e.onMoreTasks;this._onMoreTasks=t,this._queueStack=[{tasks:[],popable:!0}]}enqueue(e){this._getCurrentQueue().push(e)}enqueueTasks(e){e.forEach((e=>this.enqueue(e)))}cancelTasks(e){this._queueStack=this._queueStack.map((t=>(0,o.A)((0,o.A)({},t),{},{tasks:t.tasks.filter((t=>-1===e.indexOf(t)))}))).filter(((e,t)=>e.tasks.length>0||0===t))}hasTasksToProcess(){return this._getCurrentQueue().length>0}processNext(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{"object"==typeof t&&t.gen?this._genPromise(t):"object"==typeof t&&t.run?t.run():(i()("function"==typeof t,"Expected Function, SimpleTask, or PromiseTask, but got:\n"+JSON.stringify(t,null,2)),t())}catch(e){throw e.message="TaskQueue: Error with task "+(t.name||"")+": "+e.message,e}}}_getCurrentQueue(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&e>0?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}_genPromise(e){var t=this._queueStack.push({tasks:[],popable:!1})-1,n=this._queueStack[t];e.gen().then((()=>{n.popable=!0,this.hasTasksToProcess()&&this._onMoreTasks()})).catch((t=>{setTimeout((()=>{throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t}),0)}))}}({onMoreTasks:b}),g=0,y=0,v=-1;function b(){g||(g=v>0?setTimeout(A):c(A))}function A(){g=0;var e=d.size;f.forEach((e=>d.add(e))),p.forEach((e=>d.delete(e)));var t=d.size;if(0!==e&&0===t?u.emit(h.Events.interactionComplete):0===e&&0!==t&&u.emit(h.Events.interactionStart),0===t)for(var n=Date.now();m.hasTasksToProcess();)if(m.processNext(),v>0&&Date.now()-n>=v){b();break}f.clear(),p.clear()}const x=h},60034:(e,t,n)=>{"use strict";var r=n(69600),i=n(9957),o=n(74462)(),a=n(36556),s=a("Function.prototype.toString"),l=a("String.prototype.match"),c=a("Object.prototype.toString"),u=/^class /,h=/\s*function\s+([^(\s]*)\s*/,d=!(0 in[,]),f=Function.prototype,p=function(){return!1};if("object"==typeof document){var m=document.all;c(m)===c(document.all)&&(p=function(e){if((d||!e)&&(void 0===e||"object"==typeof e))try{var t=c(e);return("[object HTMLAllCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=function(){if(p(this)||!function(e){if(r(e))return!1;if("function"!=typeof e)return!1;try{return!!l(s(e),u)}catch(e){}return!1}(this)&&!r(this))throw new TypeError("Function.prototype.name sham getter called on non-function");if(o&&i(this,"name"))return this.name;if(this===f)return"";var e=s(this),t=l(e,h);return t&&t[1]}},60259:(e,t,n)=>{"use strict";var r=n(9957),i=n(69675),o=n(6966),a=n(44323),s=n(92702);e.exports=function(e){if(!s(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=a(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=a(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=a(e.writable)),r(e,"get")){var n=e.get;if(void 0!==n&&!o(n))throw new i("getter must be a function");t["[[Get]]"]=n}if(r(e,"set")){var l=e.set;if(void 0!==l&&!o(l))throw new i("setter must be a function");t["[[Set]]"]=l}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},60280:(e,t,n)=>{"use strict";var r=n(69675),i=n(58859),o=n(92702),a=n(13541);e.exports=function(e,t){if(!o(e))throw new r("Assertion failed: Type(O) is not Object");if(!a(t))throw new r("Assertion failed: P is not a Property Key, got "+i(t));return e[t]}},60593:(e,t,n)=>{"use strict";var r=n(83802),i=n(90256),o=n(87842),a=n(12648);e.exports=function(e){if(e&&"object"==typeof e){if(r(e))return"Map";if(i(e))return"Set";if(o(e))return"WeakMap";if(a(e))return"WeakSet"}return!1}},60875:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(){function e(){this.responseCache=new Map,this.responsePromiseCache=new Map}return e.prototype.clearCache=function(){this.responseCache=new Map,this.responsePromiseCache=new Map},e.prototype.perform=function(e,t,n,i){return r.__awaiter(this,void 0,void 0,(function(){var o,a,s,l,c,u,h,d,f,p,m,g,y,v,b,A,x,w,C,S;return r.__generator(this,(function(r){switch(r.label){case 0:if(o=i.cacheResponseForSeconds,a=void 0===o?120:o,s=i.maxSize,l=void 0===s?100:s,c=a<=0||l<=0,u=n.path,h=n.queryParams,d=n.body,f=n.headers,p=n.streamConfig,m=n.abortSignal,g=n.responseType,y=n.isStreamingRequest,c)return[2,this.executeRequest(e,t,u,h,d,f,{abortSignal:m,responseType:g,streamConfig:p,isStreamingRequest:y})];if(v=JSON.stringify(n),b=this.responseCache.get(v),A=Date.now(),b){if(A-b.requestTimestamp<1e3*a)return this.responseCache.delete(v),this.responseCache.set(v,b),[2,b.response];this.responseCache.delete(v)}if(x=this.responsePromiseCache.get(v)){if(A-x.requestTimestamp<1e3*a)return this.responsePromiseCache.delete(v),this.responsePromiseCache.set(v,x),[2,x.responsePromise];this.responsePromiseCache.delete(v)}return w=this.executeRequest(e,t,u,h,d,f,{abortSignal:m,responseType:g,streamConfig:p,isStreamingRequest:y}),this.responsePromiseCache.set(v,{requestTimestamp:A,responsePromise:w}),[4,w];case 1:return C=r.sent(),this.responseCache.set(v,{requestTimestamp:A,response:C}),this.responseCache.size>l&&(S=this.responseCache.keys().next().value)&&this.responseCache.delete(S),this.responsePromiseCache.size>l&&(S=this.responsePromiseCache.keys().next().value)&&this.responsePromiseCache.delete(S),[2,C]}}))}))},e.prototype.executeRequest=function(e,t,n,r,i,o,a){void 0===r&&(r={});var s=e[t];switch(t){case"get":return s.call(e,n,r,{abortSignal:null==a?void 0:a.abortSignal,responseType:null==a?void 0:a.responseType,streamConfig:null==a?void 0:a.streamConfig,isStreamingRequest:null==a?void 0:a.isStreamingRequest});case"delete":return s.call(e,n,r);case"post":return s.call(e,n,i,r,o||{},{abortSignal:null==a?void 0:a.abortSignal,responseType:null==a?void 0:a.responseType,streamConfig:null==a?void 0:a.streamConfig,isStreamingRequest:null==a?void 0:a.isStreamingRequest});case"put":case"patch":return s.call(e,n,i,r);default:throw new Error("Unsupported method: ".concat(String(t)))}},e}();t.default=i},61321:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}},61356:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ensureGetImageAvailable=void 0;let r=null;try{r=n(Object(function(){var e=new Error("Cannot find module '@react-native-vector-icons/get-image'");throw e.code="MODULE_NOT_FOUND",e}()))}catch{}t.ensureGetImageAvailable=()=>{if(!r)throw new Error("Could not import @react-native-vector-icons/get-image, did you install it? It is required for getImageSource*");return r.ensureNativeModuleAvailable(),r}},61376:(e,t,n)=>{"use strict";e.exports=n(70453)},61702:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=void 0,t.formatError=function(e){return e.toJSON()},t.printError=function(e){return e.toString()};var r=n(55569),i=n(99530),o=n(40825);class a extends Error{constructor(e,...t){var n,o,l;const{nodes:c,source:u,positions:h,path:d,originalError:f,extensions:p}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=d?d:void 0,this.originalError=null!=f?f:void 0,this.nodes=s(Array.isArray(c)?c:c?[c]:void 0);const m=s(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=u?u:null==m||null===(o=m[0])||void 0===o?void 0:o.source,this.positions=null!=h?h:null==m?void 0:m.map((e=>e.start)),this.locations=h&&u?h.map((e=>(0,i.getLocation)(u,e))):null==m?void 0:m.map((e=>(0,i.getLocation)(e.source,e.start)));const g=(0,r.isObjectLike)(null==f?void 0:f.extensions)?null==f?void 0:f.extensions:void 0;this.extensions=null!==(l=null!=p?p:g)&&void 0!==l?l:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+(0,o.printLocation)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}t.GraphQLError=a},61754:(e,t,n)=>{"use strict";var r,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(l,{networksApiLiveTrafficFullSchema:()=>c}),e.exports=(r=l,((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a(t))s.call(e,n)||undefined===n||i(e,n,{get:()=>t[n],enumerable:!(r=o(t,n))||r.enumerable});return e})(i({},"__esModule",{value:!0}),r));const c=(new(n(52407).SchemaBuilder)).field("lat","float32").field("lon","float32").field("timestamp","int48",{signed:!1}).field("transponder","int16",{signed:!1}).field("heading_true","int16",{signed:!1}).field("heading_mag","int16",{signed:!1,nullable:!0}).field("alt_true","int24",{signed:!0}).field("alt_pressure","int24",{signed:!0,nullable:!0}).field("alt_indicated","int24",{signed:!0,nullable:!0}).field("alt_agl","int24",{signed:!0,nullable:!0}).field("speed_tas","int16",{signed:!0,nullable:!0}).field("speed_ias","int16",{signed:!0,nullable:!0}).field("speed_gs","int16",{signed:!0}).field("vertical_speed","int24",{signed:!0,nullable:!0}).field("bank","int16",{nullable:!0}).field("key","varstring8").field("source","flags8",{flags:["unknown","simlink","vatsim","ivao"]}).build()},62020:(e,t,n)=>{"use strict";e.exports=n.p+"a3e5baa244e35d0f891d.ttf"},62120:(e,t,n)=>{"use strict";var r=n(36556),i=r("Date.prototype.getDay"),o=r("Object.prototype.toString"),a=n(49092)();e.exports=function(e){return"object"==typeof e&&null!==e&&(a?function(e){try{return i(e),!0}catch(e){return!1}}(e):"[object Date]"===o(e))}},62626:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(87361)),o=r.__importDefault(n(69078)),a=n(14410),s=r.__importDefault(n(73629)),l=r.__importDefault(n(66582)),c=r.__importDefault(n(81104)),u=r.__importDefault(n(46821)),h=n(9459),d=function(){function e(e,t,n){this.name=e,this.apiCall=t,this.configuration=n,this.individualDocuments={},this.individualOverrides={},this.individualSynonyms={},this.name=e,this.apiCall=t,this.configuration=n,this._documents=new o.default(this.name,this.apiCall,this.configuration),this._overrides=new s.default(this.name,this.apiCall),this._synonyms=new c.default(this.name,this.apiCall)}return e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.update=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,this.apiCall.patch(this.endpointPath(),e)]}))}))},e.prototype.delete=function(e){return void 0===e&&(e={}),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,this.apiCall.delete(this.endpointPath(),e)]}))}))},e.prototype.exists=function(){return r.__awaiter(this,void 0,void 0,(function(){var e;return r.__generator(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.retrieve()];case 1:return t.sent(),[2,!0];case 2:if((e=t.sent())instanceof a.ObjectNotFound)return[2,!1];throw e;case 3:return[2]}}))}))},e.prototype.documents=function(e){return e?(void 0===this.individualDocuments[e]&&(this.individualDocuments[e]=new h.Document(this.name,e,this.apiCall)),this.individualDocuments[e]):this._documents},e.prototype.overrides=function(e){return void 0===e?this._overrides:(void 0===this.individualOverrides[e]&&(this.individualOverrides[e]=new l.default(this.name,e,this.apiCall)),this.individualOverrides[e])},e.prototype.synonyms=function(e){return void 0===e?this._synonyms:(void 0===this.individualSynonyms[e]&&(this.individualSynonyms[e]=new u.default(this.name,e,this.apiCall)),this.individualSynonyms[e])},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},e}();t.default=d},62786:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(25214)),o=r.__importDefault(n(85426)),a=function(){function e(e){this.apiCall=e,this.individualStemmingDictionaries={},this.apiCall=e,this._stemmingDictionaries=new i.default(this.apiCall)}return e.prototype.dictionaries=function(e){return void 0===e?this._stemmingDictionaries:(void 0===this.individualStemmingDictionaries[e]&&(this.individualStemmingDictionaries[e]=new o.default(e,this.apiCall)),this.individualStemmingDictionaries[e])},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/stemming"},enumerable:!1,configurable:!0}),e}();t.default=a},62792:(e,t,n)=>{"use strict";function r(e){switch(e&&e.type||null){case"FeatureCollection":return e.features=e.features.reduce((function(e,t){return e.concat(r(t))}),[]),e;case"Feature":return e.geometry?r(e.geometry).map((function(t){var n={type:"Feature",properties:JSON.parse(JSON.stringify(e.properties)),geometry:t};return void 0!==e.id&&(n.id=e.id),n})):[e];case"MultiPoint":return e.coordinates.map((function(e){return{type:"Point",coordinates:e}}));case"MultiPolygon":return e.coordinates.map((function(e){return{type:"Polygon",coordinates:e}}));case"MultiLineString":return e.coordinates.map((function(e){return{type:"LineString",coordinates:e}}));case"GeometryCollection":return e.geometries.map(r).reduce((function(e,t){return e.concat(t)}),[]);case"Point":case"Polygon":case"LineString":return[e]}}n.r(t),n.d(t,{default:()=>r})},62860:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{default:()=>f}),e.exports=(r=h,u(o({},"__esModule",{value:!0}),r));var d=((e,t,n)=>(n=null!=e?i(l(e)):{},u(e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(40295));class f extends d.default{byteSize=1;decode(e,t){const n=e.getUint8(t);return[[15&n,(240&n)>>4],1]}encode(e){return(0,d.assertValueInRange)(e[0],[0,15]),(0,d.assertValueInRange)(e[1],[0,15]),new Uint8Array([e[0]|e[1]<<4]).buffer}randomValue(){return[Math.floor(16*Math.random()),Math.floor(16*Math.random())]}}},63272:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(59819),i={centroidDimension:function(e,t,n,r){var o=e.touchBank,a=0,s=0,l=1===e.numberActiveTouches?e.touchBank[e.indexOfSingleActiveTouch]:null;if(null!==l)l.touchActive&&l.currentTimeStamp>t&&(a+=r&&n?l.currentPageX:r&&!n?l.currentPageY:!r&&n?l.previousPageX:l.previousPageY,s=1);else for(var c=0;c=t&&(a+=r&&n?u.currentPageX:r&&!n?u.currentPageY:!r&&n?u.previousPageX:u.previousPageY,s++)}return s>0?a/s:i.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,t){return i.centroidDimension(e,t,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,t){return i.centroidDimension(e,t,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,t){return i.centroidDimension(e,t,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,t){return i.centroidDimension(e,t,!1,!1)},currentCentroidX:function(e){return i.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return i.centroidDimension(e,0,!1,!0)},noCentroid:-1};const o=i;var a=o.currentCentroidXOfTouchesChangedAfter,s=o.currentCentroidYOfTouchesChangedAfter,l=o.previousCentroidXOfTouchesChangedAfter,c=o.previousCentroidYOfTouchesChangedAfter,u=o.currentCentroidX,h=o.currentCentroidY,d={_initializeGestureState(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=a(t,e._accountsForMovesUpTo),e.moveY=s(t,e._accountsForMovesUpTo);var n=e._accountsForMovesUpTo,r=l(t,n),i=a(t,n),o=c(t,n),u=s(t,n),h=e.dx+(i-r),d=e.dy+(u-o),f=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(h-e.dx)/f,e.vy=(d-e.dy)/f,e.dx=h,e.dy=d,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create(e){var t={handle:null,shouldCancelClick:!1,timeout:null},n={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:t=>null!=e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(t,n),onMoveShouldSetResponder:t=>null!=e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(t,n),onStartShouldSetResponderCapture:t=>(1===t.nativeEvent.touches.length&&d._initializeGestureState(n),n.numberActiveTouches=t.touchHistory.numberActiveTouches,null!=e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(t,n)),onMoveShouldSetResponderCapture(t){var r=t.touchHistory;return n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(d._updateGestureStateOnMove(n,r),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(t,n))},onResponderGrant:i=>(t.handle||(t.handle=r.A.createInteractionHandle()),t.timeout&&function(e){clearTimeout(e.timeout)}(t),t.shouldCancelClick=!0,n.x0=u(i.touchHistory),n.y0=h(i.touchHistory),n.dx=0,n.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(i,n),null==e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder(i,n)),onResponderReject(r){f(t,e.onPanResponderReject,r,n)},onResponderRelease(r){f(t,e.onPanResponderRelease,r,n),p(t),d._initializeGestureState(n)},onResponderStart(t){var r=t.touchHistory;n.numberActiveTouches=r.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(t,n)},onResponderMove(t){var r=t.touchHistory;n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(d._updateGestureStateOnMove(n,r),e.onPanResponderMove&&e.onPanResponderMove(t,n))},onResponderEnd(r){var i=r.touchHistory;n.numberActiveTouches=i.numberActiveTouches,f(t,e.onPanResponderEnd,r,n)},onResponderTerminate(r){f(t,e.onPanResponderTerminate,r,n),p(t),d._initializeGestureState(n)},onResponderTerminationRequest:t=>null==e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(t,n),onClickCapture:e=>{!0===t.shouldCancelClick&&(e.stopPropagation(),e.preventDefault())}},getInteractionHandle:()=>t.handle}}};function f(e,t,n,i){e.handle&&(r.A.clearInteractionHandle(e.handle),e.handle=null),t&&t(n,i)}function p(e){e.timeout=setTimeout((()=>{e.shouldCancelClick=!1}),250)}const m=d},63331:(e,t,n)=>{"use strict";var r=n(94459);e.exports=function(e){return("number"==typeof e||"bigint"==typeof e)&&!r(e)&&e!==1/0&&e!==-1/0}},63384:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(90646),i=n.n(r),o=n(7162),a={window:{fontScale:1,height:0,scale:1,width:0},screen:{fontScale:1,height:0,scale:1,width:0}},s={},l=o.A;function c(){if(o.A){var e,t,n=window;if(n.visualViewport){var r=n.visualViewport;e=Math.round(r.height*r.scale),t=Math.round(r.width*r.scale)}else{var i=n.document.documentElement;e=i.clientHeight,t=i.clientWidth}a.window={fontScale:1,height:e,scale:n.devicePixelRatio||1,width:t},a.screen={fontScale:1,height:n.screen.height,scale:n.devicePixelRatio||1,width:n.screen.width}}}function u(){c(),Array.isArray(s.change)&&s.change.forEach((e=>e(a)))}class h{static get(e){return l&&(l=!1,c()),i()(a[e],"No dimension set for key "+e),a[e]}static set(e){e&&(o.A?i()(!1,"Dimensions cannot be set in the browser"):(null!=e.screen&&(a.screen=e.screen),null!=e.window&&(a.window=e.window)))}static addEventListener(e,t){return s[e]=s[e]||[],s[e].push(t),{remove:()=>{this.removeEventListener(e,t)}}}static removeEventListener(e,t){Array.isArray(s[e])&&(s[e]=s[e].filter((e=>e!==t)))}}o.A&&(window.visualViewport?window.visualViewport.addEventListener("resize",u,!1):window.addEventListener("resize",u,!1))},64039:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(41333);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},64097:e=>{"use strict";e.exports={__proto__:null,name:{__proto__:null,$Int8Array:"INT8",$Uint8Array:"UINT8",$Uint8ClampedArray:"UINT8C",$Int16Array:"INT16",$Uint16Array:"UINT16",$Int32Array:"INT32",$Uint32Array:"UINT32",$BigInt64Array:"BIGINT64",$BigUint64Array:"BIGUINT64",$Float32Array:"FLOAT32",$Float64Array:"FLOAT64"},size:{__proto__:null,$INT8:1,$UINT8:1,$UINT8C:1,$INT16:2,$UINT16:2,$INT32:4,$UINT32:4,$BIGINT64:8,$BIGUINT64:8,$FLOAT32:4,$FLOAT64:8}}},64310:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dynamicLoader=void 0,t.dynamicLoader={isLoaded:e=>!0,loadFontAsync:async(e,t)=>{}}},64399:(e,t,n)=>{"use strict";var r=n(70453)("%Array.prototype.concat%"),i=n(10487),o=n(36556)("Array.prototype.slice"),a=n(41333)()&&Symbol.isConcatSpreadable,s=[],l=a?i.apply(r,s):null,c=a?n(64634):null;e.exports=a?function(e){for(var t=0;t{"use strict";var r,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(l,{networksApiFlightpathSchema:()=>c}),e.exports=(r=l,((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a(t))s.call(e,n)||undefined===n||i(e,n,{get:()=>t[n],enumerable:!(r=o(t,n))||r.enumerable});return e})(i({},"__esModule",{value:!0}),r));const c=(new(n(52407).SchemaBuilder)).field("lat","float32").field("lon","float32").field("alt_true","int24",{signed:!0}).field("heading_true","int16",{signed:!1}).build()},64634:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},64767:(e,t,n)=>{"use strict";var r=n(56614);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof r}},65015:(e,t,n)=>{"use strict";var r=n(69675),i=n(42491),o=n(83446),a=n(19887),s=n(13557),l=n(82475),c=n(87088),u=n(70172),h=n(34770),d=n(36039),f=n(99308),p=n(32779),m=n(28894),g=n(24751),y=n(1189),v={__proto__:null,INT8:1,UINT8:1,UINT8C:1,INT16:2,UINT16:2,INT32:4,UINT32:4,BIGINT64:8,BIGUINT64:8,FLOAT32:4,FLOAT64:8},b={__proto__:null,INT8:c,UINT8:d,UINT8C:f,INT16:s,UINT16:u,INT32:l,UINT32:h,BIGINT64:o,BIGUINT64:a};e.exports=function(e,t,n){if("string"!=typeof e||!i(v,e))throw new r("Assertion failed: `type` must be a TypedArray element type: "+y(v));if("number"!=typeof t&&"bigint"!=typeof t)throw new r("Assertion failed: `value` must be a Number or a BigInt");if("boolean"!=typeof n)throw new r("Assertion failed: `isLittleEndian` must be a Boolean");if("FLOAT32"===e)return p(t,n);if("FLOAT64"===e)return m(t,n);var o=v[e],a=(0,b[e])(t);return g(a,o,n)}},65156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=n(47353),o=function(){function e(e){this.apiCall=e}return e.prototype.upsert=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,o;return r.__generator(this,(function(r){return"object"==typeof t.value&&"searches"in t.value?(n=t.value.searches.map((function(e){return(0,i.normalizeArrayableParams)(e)})),[2,this.apiCall.put(this.endpointPath(e),{value:{searches:n}})]):(o=(0,i.normalizeArrayableParams)(t.value),[2,this.apiCall.put(this.endpointPath(e),{value:o})])}))}))},e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/presets"},enumerable:!1,configurable:!0}),e}();t.default=o},65168:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(12783)),o=function(){function e(e,t){this.id=e,this.apiCall=t}return e.prototype.update=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,this.apiCall.put(this.endpointPath(),e)]}))}))},e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},e}();t.default=o},65233:e=>{function t(e){if(!(this instanceof t))return new t(e);this._bbox=e||[1/0,1/0,-1/0,-1/0],this._valid=!!e}e.exports=t,t.prototype.include=function(e){return this._valid=!0,this._bbox[0]=Math.min(this._bbox[0],e[0]),this._bbox[1]=Math.min(this._bbox[1],e[1]),this._bbox[2]=Math.max(this._bbox[2],e[0]),this._bbox[3]=Math.max(this._bbox[3],e[1]),this},t.prototype.equals=function(e){var n;return n=e instanceof t?e.bbox():e,this._bbox[0]==n[0]&&this._bbox[1]==n[1]&&this._bbox[2]==n[2]&&this._bbox[3]==n[3]},t.prototype.center=function(e){return this._valid?[(this._bbox[0]+this._bbox[2])/2,(this._bbox[1]+this._bbox[3])/2]:null},t.prototype.union=function(e){var n;return this._valid=!0,n=e instanceof t?e.bbox():e,this._bbox[0]=Math.min(this._bbox[0],n[0]),this._bbox[1]=Math.min(this._bbox[1],n[1]),this._bbox[2]=Math.max(this._bbox[2],n[2]),this._bbox[3]=Math.max(this._bbox[3],n[3]),this},t.prototype.bbox=function(){return this._valid?this._bbox:null},t.prototype.contains=function(e){if(!e)return this._fastContains();if(!this._valid)return null;var t=e[0],n=e[1];return this._bbox[0]<=t&&this._bbox[1]<=n&&this._bbox[2]>=t&&this._bbox[3]>=n},t.prototype.intersect=function(e){return this._valid?(n=e instanceof t?e.bbox():e,!(this._bbox[0]>n[2]||this._bbox[2]n[3])):null;var n},t.prototype._fastContains=function(){if(!this._valid)return new Function("return null;");var e="return "+this._bbox[0]+"<= ll[0] &&"+this._bbox[1]+"<= ll[1] &&"+this._bbox[2]+">= ll[0] &&"+this._bbox[3]+">= ll[1]";return new Function("ll",e)},t.prototype.polygon=function(){return this._valid?{type:"Polygon",coordinates:[[[this._bbox[0],this._bbox[1]],[this._bbox[2],this._bbox[1]],[this._bbox[2],this._bbox[3]],[this._bbox[0],this._bbox[3]],[this._bbox[0],this._bbox[1]]]]}:null}},65721:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e)};var r,i=(r=n(45685))&&r.__esModule?r:{default:r}},66058:(e,t,n)=>{"use strict";var r=n(10487),i=n(82682),o=n(75795),a=n(35680),s=n(76578),l=n(99897)(),c={__proto__:null},u=Object.defineProperty;if(o){var h=function(e){return e.length};i(s,(function(e){var t=n.g[e];if("function"==typeof t||"object"==typeof t){var i=t.prototype,a=o(i,"length");if(!a){var s=l(i);a=o(s,"length")}if(a&&a.get)c["$"+e]=r(a.get);else if(u){var d=new n.g[e](2);(a=o(d,"length"))&&a.configurable&&u(d,"length",{value:3}),2===d.length&&(c["$"+e]=h)}}}))}e.exports=function(e){return!!a(e)&&function(e){var t;return i(c,(function(n){if("number"!=typeof t)try{var r=n(e);"number"==typeof r&&(t=r)}catch(e){}})),t}(e)}},66109:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Q:()=>o});var r=n(5338),i=n(93748);function o(e,t){return(0,i._)(t),(0,r.hydrateRoot)(t,e)}function a(e,t){(0,i._)(t);var n=(0,r.createRoot)(t);return n.render(e),n}},66124:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchOnlyDocuments=void 0;var r=n(31635),i=r.__importDefault(n(60875)),o=r.__importDefault(n(87361)),a=n(47353),s="/documents",l=function(){function e(e,t,n){this.collectionName=e,this.apiCall=t,this.configuration=n,this.requestWithCache=new i.default}return e.prototype.clearCache=function(){this.requestWithCache.clearCache()},e.prototype.search=function(e,t){var n=void 0===t?{}:t,i=n.cacheSearchResultsForSeconds,o=void 0===i?this.configuration.cacheSearchResultsForSeconds:i,s=n.abortSignal,l=void 0===s?null:s;return r.__awaiter(this,void 0,void 0,(function(){var t,n,i,s,c,u;return r.__generator(this,(function(h){return t={},!0===this.configuration.useServerSideSearchCache&&(t.use_cache=!0),n=(0,a.normalizeArrayableParams)(e),i=n.streamConfig,s=r.__rest(n,["streamConfig"]),c=r.__assign(r.__assign({},t),s),u=!0===c.conversation_stream,[2,this.requestWithCache.perform(this.apiCall,"get",{path:this.endpointPath("search"),queryParams:c,streamConfig:i,abortSignal:l,isStreamingRequest:u},{cacheResponseForSeconds:o})]}))}))},e.prototype.endpointPath=function(e){return"".concat(o.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(s).concat(void 0===e?"":"/"+e)},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return s},enumerable:!1,configurable:!0}),e}();t.SearchOnlyDocuments=l},66582:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(87361)),o=r.__importDefault(n(73629)),a=function(){function e(e,t,n){this.collectionName=e,this.overrideId=t,this.apiCall=n}return e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(o.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.overrideId))},e}();t.default=a},66743:(e,t,n)=>{"use strict";var r=n(89353);e.exports=Function.prototype.bind||r},66909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(r.__importDefault(n(27796)).default);t.default=i},67251:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{DataType_Int16:()=>I,DataType_Int24:()=>P,DataType_Int32:()=>L,DataType_Int40:()=>z,DataType_Int48:()=>q,DataType_Int8:()=>S,DataType_NullableInt16:()=>R,DataType_NullableInt24:()=>j,DataType_NullableInt32:()=>N,DataType_NullableInt40:()=>U,DataType_NullableInt48:()=>Y,DataType_NullableInt8:()=>k,DataType_NullableUint16:()=>M,DataType_NullableUint24:()=>B,DataType_NullableUint32:()=>_,DataType_NullableUint40:()=>H,DataType_NullableUint48:()=>W,DataType_NullableUint8:()=>T,DataType_Uint16:()=>O,DataType_Uint24:()=>D,DataType_Uint32:()=>F,DataType_Uint40:()=>V,DataType_Uint48:()=>G,DataType_Uint8:()=>E}),e.exports=(r=h,u(o({},"__esModule",{value:!0}),r));var d=((e,t,n)=>(n=null!=e?i(l(e)):{},u(e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(40295));const f=[8,16,24,32,40,48];function p(e){return f.includes(e)}const m={8:function(e){const t=e[0]??0;return t|33554430*(128&t)},16:function(e){const t=256*(e[0]??0)+(e[1]??0);return t|131070*(32768&t)},24:function(e){const t=65536*(e[0]??0)+256*(e[1]??0)+(e[2]??0);return t|510*(t&2**23)},32:function(e){return((e[0]??0)<<24)+65536*(e[1]??0)+256*(e[2]??0)+(e[3]??0)},40:function(e){return((e[0]??0)|33554430*(128&(e[0]??0)))*2**32+(e[1]??0)*2**24+65536*(e[2]??0)+256*(e[3]??0)+(e[4]??0)},48:function(e){const t=(e[1]??0)+256*(e[0]??0);return(t|131070*(32768&t))*2**32+(e[2]??0)*2**24+65536*(e[3]??0)+256*(e[4]??0)+(e[5]??0)}};function g(e,t){if(!p(e))throw new Error(`Invalid bit size: ${e}`);return m[e](t)}const y={8:function(e){return e[0]??0},16:function(e){return 256*(e[0]??0)+(e[1]??0)},24:function(e){return 65536*(e[0]??0)+256*(e[1]??0)+(e[2]??0)},32:function(e){return(e[0]??0)*2**24+65536*(e[1]??0)+256*(e[2]??0)+(e[3]??0)},40:function(e){return(e[0]??0)*2**32+(e[1]??0)*2**24+65536*(e[2]??0)+256*(e[3]??0)+(e[4]??0)},48:function(e){return(256*(e[0]??0)+(e[1]??0))*2**32+(e[2]??0)*2**24+65536*(e[3]??0)+256*(e[4]??0)+(e[5]??0)}},v={8:function(e){return new Uint8Array([e])},16:function(e){return new Uint8Array([e>>>8,e])},24:function(e){return new Uint8Array([e>>>16,e>>>8,e])},32:function(e){return new Uint8Array([e>>>24,e>>>16,e>>>8,e])},40:function(e){return new Uint8Array([Math.floor(e*2**-32),e>>24,e>>16,e>>8,e])},48:function(e){return new Uint8Array([Math.floor(e*2**-32)>>>8,Math.floor(e*2**-32),e>>24,e>>16,e>>8,e])}};function b(e,t){if(!p(e))throw new Error(`Invalid bit size: ${e}`);return v[e](t)}class A extends d.default{bitSize=8;get byteSize(){return this.bitSize/8}get limits(){return[0,2**this.bitSize-1]}get fullByteSize(){return Math.ceil(this.bitSize/8)}encode(e){return(0,d.assertValueInRange)(e,this.limits),A.encode(e,this.bitSize)}static encode(e,t){return b(t,e).buffer}decode(e,t){return[A.decode(e.buffer.slice(t,t+this.fullByteSize),this.bitSize),this.fullByteSize]}static decode(e,t){return function(e,t){if(!p(e))throw new Error(`Invalid bit size: ${e}`);return y[e](t)}(t,new Uint8Array(e))}randomValue(){throw new Error("Method not implemented.")}}class x extends d.default{bitSize=8;get byteSize(){return this.bitSize/8}get limits(){return[-(2**(this.bitSize-1)),2**(this.bitSize-1)-1]}get fullByteSize(){return Math.ceil(this.bitSize/8)}encode(e){return(0,d.assertValueInRange)(e,this.limits),x.encode(e,this.bitSize)}static encode(e,t){return b(t,e).buffer}decode(e,t){return[x.decode(e.buffer.slice(t,t+this.fullByteSize),this.bitSize),this.fullByteSize]}static decode(e,t){return g(t,new Uint8Array(e))}randomValue(){throw new Error("Method not implemented.")}}class w extends d.default{bitSize=8;get byteSize(){return this.bitSize/8}get limits(){return[0,2**(this.bitSize-1)-1]}get fullByteSize(){return Math.ceil(this.bitSize/8)}encode(e){if(null===e){const e=new Uint8Array(Math.ceil(this.bitSize/8));return e[0]=128,e.buffer}return(0,d.assertValueInRange)(e,this.limits),A.encode(Math.min(e,2**(this.bitSize-1)-1),this.bitSize)}decode(e,t){const n=e.buffer.slice(t,t+this.fullByteSize);return 128&(new Uint8Array(n)[0]??0)?[null,this.fullByteSize]:[A.decode(n,this.bitSize),this.fullByteSize]}randomValue(){throw new Error("Method not implemented.")}}class C extends d.default{bitSize=8;get byteSize(){return this.bitSize/8}get limits(){return[-(2**(this.bitSize-2)),2**(this.bitSize-2)-1]}get fullByteSize(){return Math.ceil(this.bitSize/8)}encode(e){if(null===e){const e=new Uint8Array(Math.ceil(this.bitSize/8));return e[0]=128,e.buffer}(0,d.assertValueInRange)(e,this.limits);const t=b(this.bitSize,Math.max(Math.min(e,2**(this.bitSize-2)-1),-(2**(this.bitSize-2))));return t[0]=127&(t[0]??0),t.buffer}decode(e,t){const n=e.buffer.slice(t,t+this.fullByteSize),r=new Uint8Array(n);return 128&(r[0]??0)?[null,this.fullByteSize]:(64&(r[0]??0)&&(r[0]=128|(r[0]??0)),[g(this.bitSize,r),this.fullByteSize])}randomValue(){throw new Error("Method not implemented.")}}class S extends x{bitSize=8}class E extends A{bitSize=8}class k extends C{bitsize=8}class T extends w{bitSize=8}class I extends x{bitSize=16}class O extends A{bitSize=16}class R extends C{bitSize=16}class M extends w{bitSize=16}class P extends x{bitSize=24}class D extends A{bitSize=24}class j extends C{bitSize=24}class B extends w{bitSize=24}class L extends x{bitSize=32}class F extends A{bitSize=32}class N extends C{bitSize=32}class _ extends w{bitSize=32}class z extends x{bitSize=40}class V extends A{bitSize=40}class U extends C{bitSize=40}class H extends w{bitSize=40}class q extends x{bitSize=48}class G extends A{bitSize=48}class Y extends C{bitSize=48}class W extends w{bitSize=48}},67526:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],l=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,h=l>0?a-4:a;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,c=r-i;sc?c:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},67598:(e,t,n)=>{"use strict";e.exports=n.p+"22b9da93a0f5246491ab.ttf"},67691:(e,t,n)=>{"use strict";var r=n(78965),i=n(29110),o=n(2909),a=n(20849),s=n(43917),l=n(7577),c=n(92183),u=n(38601),h=o.escapeFacetValue,d=o.unescapeFacetValue,f=n(76673);function p(e){var t={};return e.forEach((function(e,n){t[e]=n})),t}function m(e,t,n){t&&t[n]&&(e.stats=t[n])}function g(e,t,n){var o=t[0]||{};this._rawResults=t;var l=this;Object.keys(o).forEach((function(e){l[e]=o[e]}));var u=i(n,{persistHierarchicalRootCount:!1});Object.keys(u).forEach((function(e){l[e]=u[e]})),this.processingTimeMS=t.reduce((function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS}),0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map((function(){return[]})),this.facets=[];var h=e.getRefinedDisjunctiveFacets(),g=p(e.facets),y=p(e.disjunctiveFacets),v=1,b=o.facets||{};Object.keys(b).forEach((function(t){var n,r,i=b[t],c=(n=e.hierarchicalFacets,r=t,a(n,(function(e){return(e.attributes||[]).indexOf(r)>-1})));if(c){var u=c.attributes.indexOf(t),h=s(e.hierarchicalFacets,(function(e){return e.name===c.name}));l.hierarchicalFacets[h][u]={attribute:t,data:i,exhaustive:o.exhaustiveFacetsCount}}else{var d,f=-1!==e.disjunctiveFacets.indexOf(t),p=-1!==e.facets.indexOf(t);f&&(d=y[t],l.disjunctiveFacets[d]={name:t,data:i,exhaustive:o.exhaustiveFacetsCount},m(l.disjunctiveFacets[d],o.facets_stats,t)),p&&(d=g[t],l.facets[d]={name:t,data:i,exhaustive:o.exhaustiveFacetsCount},m(l.facets[d],o.facets_stats,t))}})),this.hierarchicalFacets=r(this.hierarchicalFacets),h.forEach((function(n){var r=t[v],a=r&&r.facets?r.facets:{},u=e.getHierarchicalFacetByName(n);Object.keys(a).forEach((function(t){var n,h=a[t];if(u){n=s(e.hierarchicalFacets,(function(e){return e.name===u.name}));var f=s(l.hierarchicalFacets[n],(function(e){return e.attribute===t}));if(-1===f)return;l.hierarchicalFacets[n][f].data=l.persistHierarchicalRootCount?c(l.hierarchicalFacets[n][f].data,h):i(h,l.hierarchicalFacets[n][f].data)}else{n=y[t];var p=o.facets&&o.facets[t]||{};l.disjunctiveFacets[n]={name:t,data:c(p,h),exhaustive:r.exhaustiveFacetsCount},m(l.disjunctiveFacets[n],r.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach((function(r){!l.disjunctiveFacets[n].data[r]&&e.disjunctiveFacetsRefinements[t].indexOf(d(r))>-1&&(l.disjunctiveFacets[n].data[r]=0)}))}})),v++})),e.getRefinedHierarchicalFacets().forEach((function(n){var r=e.getHierarchicalFacetByName(n),o=e._getHierarchicalFacetSeparator(r),a=e.getHierarchicalRefinement(n);0===a.length||a[0].split(o).length<2||t.slice(v).forEach((function(t){var n=t&&t.facets?t.facets:{};Object.keys(n).forEach((function(t){var c=n[t],u=s(e.hierarchicalFacets,(function(e){return e.name===r.name})),h=s(l.hierarchicalFacets[u],(function(e){return e.attribute===t}));if(-1!==h){var d={};if(a.length>0&&!l.persistHierarchicalRootCount){var f=a[0].split(o)[0];d[f]=l.hierarchicalFacets[u][h].data[f]}l.hierarchicalFacets[u][h].data=i(d,c,l.hierarchicalFacets[u][h].data)}})),v++}))})),Object.keys(e.facetsExcludes).forEach((function(t){var n=e.facetsExcludes[t],r=g[t];l.facets[r]={name:t,data:b[t],exhaustive:o.exhaustiveFacetsCount},n.forEach((function(e){l.facets[r]=l.facets[r]||{name:t},l.facets[r].data=l.facets[r].data||{},l.facets[r].data[e]=0}))})),this.hierarchicalFacets=this.hierarchicalFacets.map(f(e)),this.facets=r(this.facets),this.disjunctiveFacets=r(this.disjunctiveFacets),this._state=e}function y(e,t){function n(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var r=a(e.facets,n);return r?Object.keys(r.data).map((function(n){var i=h(n);return{name:n,escapedValue:i,count:r.data[n],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,n)}})):[]}if(e._state.isDisjunctiveFacet(t)){var i=a(e.disjunctiveFacets,n);return i?Object.keys(i.data).map((function(n){var r=h(n);return{name:n,escapedValue:r,count:i.data[n],isRefined:e._state.isDisjunctiveFacetRefined(t,r)}})):[]}if(e._state.isHierarchicalFacet(t)){var o=a(e.hierarchicalFacets,n);if(!o)return o;var s=e._state.getHierarchicalFacetByName(t),l=e._state._getHierarchicalFacetSeparator(s),c=d(e._state.getHierarchicalRefinement(t)[0]||"");0===c.indexOf(s.rootPath)&&(c=c.replace(s.rootPath+l,""));var u=c.split(l);return u.unshift(t),v(o,u,0),o}}function v(e,t,n){e.isRefined=e.name===(t[n]&&t[n].trim()),e.data&&e.data.forEach((function(e){v(e,t,n+1)}))}function b(e,t,n,r){if(r=r||0,Array.isArray(t))return e(t,n[r]);if(!t.data||0===t.data.length)return t;var o=t.data.map((function(t){return b(e,t,n,r+1)})),a=e(o,n[r]);return i({data:a},t)}function A(e,t){var n=a(e,(function(e){return e.name===t}));return n&&n.stats}function x(e,t,n,r,i){var o=a(i,(function(e){return e.name===n})),s=o&&o.data&&o.data[r]?o.data[r]:0,l=o&&o.exhaustive||!1;return{type:t,attributeName:n,name:r,count:s,exhaustive:l}}g.prototype.getFacetByName=function(e){function t(t){return t.name===e}return a(this.facets,t)||a(this.disjunctiveFacets,t)||a(this.hierarchicalFacets,t)},g.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],g.prototype.getFacetValues=function(e,t){var n=y(this,e);if(n){var r=i(t,{sortBy:g.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),o=this;return b((function(e,t){if(r.facetOrdering){var n=function(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}(o,t);if(n)return function(e,t){var n=[],r=[],i=t.hide||[],o=(t.order||[]).reduce((function(e,t,n){return e[t]=n,e}),{});e.forEach((function(e){var t=e.path||e.name,a=i.indexOf(t)>-1;a||void 0===o[t]?a||r.push(e):n[o[t]]=e})),n=n.filter((function(e){return e}));var a,s=t.sortRemainingBy;return"hidden"===s?n:(a="alpha"===s?[["path","name"],["asc","asc"]]:[["count"],["desc"]],n.concat(u(r,a[0],a[1])))}(e,n)}if(Array.isArray(r.sortBy)){var i=l(r.sortBy,g.DEFAULT_SORT);return u(e,i[0],i[1])}if("function"==typeof r.sortBy)return function(e,t){return t.sort(e)}(r.sortBy,e);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")}),n,Array.isArray(n)?[e]:o._state.getHierarchicalFacetByName(n.name).attributes)}},g.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?A(this.facets,e):this._state.isDisjunctiveFacet(e)?A(this.disjunctiveFacets,e):void 0},g.prototype.getRefinements=function(){var e=this._state,t=this,n=[];return Object.keys(e.facetsRefinements).forEach((function(r){e.facetsRefinements[r].forEach((function(e){n.push(x(0,"facet",r,e,t.facets))}))})),Object.keys(e.facetsExcludes).forEach((function(r){e.facetsExcludes[r].forEach((function(e){n.push(x(0,"exclude",r,e,t.facets))}))})),Object.keys(e.disjunctiveFacetsRefinements).forEach((function(r){e.disjunctiveFacetsRefinements[r].forEach((function(e){n.push(x(0,"disjunctive",r,e,t.disjunctiveFacets))}))})),Object.keys(e.hierarchicalFacetsRefinements).forEach((function(r){e.hierarchicalFacetsRefinements[r].forEach((function(i){n.push(function(e,t,n,r){var i=e.getHierarchicalFacetByName(t),o=e._getHierarchicalFacetSeparator(i),s=n.split(o),l=a(r,(function(e){return e.name===t})),c=s.reduce((function(e,t){var n=e&&a(e.data,(function(e){return e.name===t}));return void 0!==n?n:e}),l),u=c&&c.count||0,h=c&&c.exhaustive||!1,d=c&&c.path||"";return{type:"hierarchical",attributeName:t,name:d,count:u,exhaustive:h}}(e,r,i,t.hierarchicalFacets))}))})),Object.keys(e.numericRefinements).forEach((function(t){var r=e.numericRefinements[t];Object.keys(r).forEach((function(e){r[e].forEach((function(r){n.push({type:"numeric",attributeName:t,name:r,numericValue:r,operator:e})}))}))})),e.tagRefinements.forEach((function(e){n.push({type:"tag",attributeName:"_tags",name:e})})),n},e.exports=g},67862:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={OS:"web",select:e=>"web"in e?e.web:e.default,get isTesting(){return!1}}},68002:e=>{"use strict";e.exports=Math.min},68013:(e,t,n)=>{"use strict";var r=n(38452).supportsDescriptors,i=n(74462)(),o=n(92747),a=Object.defineProperty,s=TypeError;e.exports=function(){var e=o();if(i)return e;if(!r)throw new s("Shimming Function.prototype.name support requires ES5 property descriptor support.");var t=Function.prototype;return a(t,"name",{configurable:!0,enumerable:!1,get:function(){var n=e.call(this);return this!==t&&a(this,"name",{configurable:!0,enumerable:!1,value:n,writable:!1}),n}}),e}},68206:(e,t,n)=>{"use strict";var r=n(5388),i=n(24810),o=n(36556)("String.prototype.replace"),a=/^\s$/.test("᠎"),s=a?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,l=a?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=i(r(this));return o(o(e,s,""),l,"")}},68213:(e,t,n)=>{"use strict";var r=n(58968);e.exports=function(e){for(var t,n="";e>0;)n=(t=e/2)===(e=r(t))?"0"+n:"1"+n;return n}},68697:(e,t,n)=>{"use strict";n.d(t,{Aw:()=>s,CD:()=>c,DY:()=>o,Fh:()=>i,Gs:()=>r,eO:()=>u,k2:()=>l,l3:()=>a});var r={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},i={"aria-activedescendant":!0,"aria-atomic":!0,"aria-autocomplete":!0,"aria-busy":!0,"aria-checked":!0,"aria-colcount":!0,"aria-colindex":!0,"aria-colspan":!0,"aria-controls":!0,"aria-current":!0,"aria-describedby":!0,"aria-details":!0,"aria-disabled":!0,"aria-errormessage":!0,"aria-expanded":!0,"aria-flowto":!0,"aria-haspopup":!0,"aria-hidden":!0,"aria-invalid":!0,"aria-keyshortcuts":!0,"aria-label":!0,"aria-labelledby":!0,"aria-level":!0,"aria-live":!0,"aria-modal":!0,"aria-multiline":!0,"aria-multiselectable":!0,"aria-orientation":!0,"aria-owns":!0,"aria-placeholder":!0,"aria-posinset":!0,"aria-pressed":!0,"aria-readonly":!0,"aria-required":!0,role:!0,"aria-roledescription":!0,"aria-rowcount":!0,"aria-rowindex":!0,"aria-rowspan":!0,"aria-selected":!0,"aria-setsize":!0,"aria-sort":!0,"aria-valuemax":!0,"aria-valuemin":!0,"aria-valuenow":!0,"aria-valuetext":!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},o={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},a={onBlur:!0,onFocus:!0},s={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},l={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},c={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},u={style:!0}},69078:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=n(14410),o=n(66124),a=null!={env:{}}.versions&&null!={env:{}}.versions.node,s=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return r.__extends(t,e),t.prototype.create=function(e,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){if(!e)throw new Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),e,t)]}))}))},t.prototype.upsert=function(e,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){if(!e)throw new Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),e,Object.assign({},t,{action:"upsert"}))]}))}))},t.prototype.update=function(e,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){if(!e)throw new Error("No document provided");return null!=t.filter_by?[2,this.apiCall.patch(this.endpointPath(),e,Object.assign({},t))]:[2,this.apiCall.post(this.endpointPath(),e,Object.assign({},t,{action:"update"}))]}))}))},t.prototype.delete=function(e){return void 0===e&&(e={}),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,this.apiCall.delete(this.endpointPath(),e)]}))}))},t.prototype.createMany=function(e,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){return this.configuration.logger.warn("createMany is deprecated and will be removed in a future version. Use import instead, which now takes both an array of documents or a JSONL string of documents"),[2,this.import(e,t)]}))}))},t.prototype.import=function(e,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,(function(){var n,o,s,l;return r.__generator(this,(function(r){switch(r.label){case 0:if(Array.isArray(e)){if(0===e.length)throw new i.RequestMalformed("No documents provided");try{n=e.map((function(e){return JSON.stringify(e)})).join("\n")}catch(e){if(e instanceof RangeError&&e.message.includes("Too many properties to enumerate"))throw new Error("".concat(e,"\n It looks like you have reached a Node.js limit that restricts the number of keys in an Object: https://stackoverflow.com/questions/9282869/are-there-limits-to-the-number-of-properties-in-a-javascript-object\n\n Please try reducing the number of keys in your document, or using CURL to import your data.\n "));throw new Error(e)}}else if(null==(c=n=e)||""===c||0===c.length)throw new i.RequestMalformed("No documents provided");return[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:t,bodyParameters:n,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0,enableKeepAlive:!!a})];case 1:if(o=r.sent(),Array.isArray(e)){if(s=o.split("\n").map((function(e){return JSON.parse(e)})),(l=s.filter((function(e){return!1===e.success}))).length>0)throw new i.ImportError("".concat(s.length-l.length," documents imported successfully, ").concat(l.length," documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document."),s,{documentsInJSONLFormat:n,options:t,failedItems:l,successCount:s.length-l.length});return[2,s]}return[2,o]}var c}))}))},t.prototype.importStream=function(e,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,(function(){var n,o,s;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:t,bodyParameters:e,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0,enableKeepAlive:!!a})];case 1:if(n=r.sent(),o=n.split("\n").map((function(e){return JSON.parse(e)})),(s=o.filter((function(e){return!1===e.success}))).length>0)throw new i.ImportError("".concat(o.length-s.length," documents imported successfully, ").concat(s.length," documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document."),o,{documentsInJSONLFormat:e,options:t,failedItems:s,successCount:o.length-s.length});return[2,o]}}))}))},t.prototype.export=function(e){return void 0===e&&(e={}),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,this.apiCall.get(this.endpointPath("export"),e)]}))}))},t.prototype.exportStream=function(e){return void 0===e&&(e={}),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,this.apiCall.get(this.endpointPath("export"),e,{responseType:"stream"})]}))}))},t}(o.SearchOnlyDocuments);t.default=s},69165:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringLines=function(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let t=0;t0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,o+1)},t.isPrintableAsBlockString=function(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o1&&i.slice(1).every((e=>0===e.length||(0,r.isWhiteSpace)(e.charCodeAt(0)))),s=n.endsWith('\\"""'),l=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=l||c,h=!(null!=t&&t.minimize)&&(!o||e.length>70||u||a||s);let d="";const f=o&&(0,r.isWhiteSpace)(e.charCodeAt(0));return(h&&!f||a)&&(d+="\n"),d+=n,(h||u)&&(d+="\n"),'"""'+d+'"""'};var r=n(3932);function i(e){let t=0;for(;t{"use strict";var r=n(9957),i=n(35680),o=n(11087);e.exports=function(e){return!!e&&"object"==typeof e&&r(e,"[[Object]]")&&r(e,"[[CachedBufferByteLength]]")&&(o(e["[[CachedBufferByteLength]]"])&&e["[[CachedBufferByteLength]]"]>=0||"DETACHED"===e["[[CachedBufferByteLength]]"])&&i(e["[[Object]]"])}},69383:e=>{"use strict";e.exports=Error},69524:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});let r=function(e){return e.dns="6ba7b810-9dad-11d1-80b4-00c04fd430c8",e.url="6ba7b811-9dad-11d1-80b4-00c04fd430c8",e.oid="6ba7b812-9dad-11d1-80b4-00c04fd430c8",e.x500="6ba7b814-9dad-11d1-80b4-00c04fd430c8",e}({})},69550:(e,t,n)=>{"use strict";var r=n(64767);e.exports=function e(t,n,i){var o;void 0===n&&(n=""),void 0===i&&(i=r);var a=new Map;function s(e,t){var n=a.get(t);n?n.push.apply(n,e):a.set(t,e)}if(i(t))o=null,s([n],t);else{var l=n?n+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)o=Array.prototype.map.call(t,(function(e,t){return s([""+l+t],e),null}));else if(Array.isArray(t))o=t.map((function(t,n){var r=e(t,""+l+n,i);return r.files.forEach(s),r.clone}));else if(t&&t.constructor===Object)for(var c in o={},t){var u=e(t[c],""+l+c,i);u.files.forEach(s),o[c]=u.clone}else o=t}return{clone:o,files:a}}},69582:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h=(e,t,n)=>(n=null!=e?i(l(e)):{},u(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{Decoder:()=>m.default,Encoder:()=>p.default,makeDecoder:()=>f.makeDecoder,makeEncoder:()=>f.makeEncoder}),e.exports=(r=d,u(o({},"__esModule",{value:!0}),r));var f=n(27671),p=h(n(92990)),m=h(n(59170))},69597:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}var a,s,l={};function c(e,t,n){n||(n=Error);var a=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(u,n);var a,s,l,c=(s=u,l=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(e){return!1}}(),function(){var e,t=o(s);if(l){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function u(n,r,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),o=c.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i)),o.code=e,o}return a=u,Object.defineProperty(a,"prototype",{writable:!1}),a}(n);l[e]=a}function u(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,s,l,c,h;if(void 0===a&&(a=n(94148)),a("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(0,4)===s)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))l="The ".concat(e," ").concat(o," ").concat(u(t,"type"));else{var d=("number"!=typeof h&&(h=0),h+1>(c=e).length||-1===c.indexOf(".",h)?"argument":"property");l='The "'.concat(e,'" ').concat(d," ").concat(o," ").concat(u(t,"type"))}return l+". Received type ".concat(r(i))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=n(40537));var i=s.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=l},69600:e=>{"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(e){e!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(h=function(e){if((u||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(h(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&s(e)}:function(e){if(h(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return s(e);if(a(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},69675:e=>{"use strict";e.exports=TypeError},69691:(e,t,n)=>{"use strict";var r=n(26673),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,u=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var h=0;n.depth>0&&null!==(s=a.exec(o))&&h=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=i:"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,h),f=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(g=o(g)?[g]:g),i.call(c,m)?c[m]=r.combine(c[m],g):c[m]=g}return c}(e,n):e,h=n.plainObjects?Object.create(null):{},d=Object.keys(u),f=0;f{"use strict";e.exports=n(4477)},69996:(e,t)=>{"use strict";t.A=function(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]}},70079:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n{"use strict";var r=n(54224),i=n(8410),o=n(41003),a=n(63331);e.exports=function(e){var t=i(e);if(!a(t)||0===t)return 0;var n=o(t),s=r(n,65536);return 0===s?0:s}},70414:e=>{"use strict";e.exports=Math.round},70453:(e,t,n)=>{"use strict";var r,i=n(79612),o=n(69383),a=n(41237),s=n(79290),l=n(79538),c=n(58068),u=n(69675),h=n(35345),d=n(71514),f=n(58968),p=n(6188),m=n(68002),g=n(75880),y=n(70414),v=n(73093),b=Function,A=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},x=n(75795),w=n(30655),C=function(){throw new u},S=x?function(){try{return C}catch(e){try{return x(arguments,"callee").get}catch(e){return C}}}():C,E=n(64039)(),k=n(93628),T=n(71064),I=n(48648),O=n(11002),R=n(10076),M={},P="undefined"!=typeof Uint8Array&&k?k(Uint8Array):r,D={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":E&&k?k([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":M,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&k?k(k([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&E&&k?k((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&E&&k?k((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&k?k(""[Symbol.iterator]()):r,"%Symbol%":E?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":P,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":h,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":R,"%Function.prototype.apply%":O,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":T,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":v,"%Reflect.getPrototypeOf%":I};if(k)try{null.error}catch(e){var j=k(k(e));D["%Error.prototype%"]=j}var B=function e(t){var n;if("%AsyncFunction%"===t)n=A("async function () {}");else if("%GeneratorFunction%"===t)n=A("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=A("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&k&&(n=k(i.prototype))}return D[t]=n,n},L={__proto__:null,"%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"]},F=n(66743),N=n(9957),_=F.call(R,Array.prototype.concat),z=F.call(O,Array.prototype.splice),V=F.call(R,String.prototype.replace),U=F.call(R,String.prototype.slice),H=F.call(R,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,Y=function(e,t){var n,r=e;if(N(L,r)&&(r="%"+(n=L[r])[0]+"%"),N(D,r)){var i=D[r];if(i===M&&(i=B(r)),void 0===i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===H(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=U(e,0,1),n=U(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return V(e,q,(function(e,t,n,i){r[r.length]=n?V(i,G,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=Y("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],z(n,_([0,1],l)));for(var h=1,d=!0;h=n.length){var g=x(a,f);a=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[f]}else d=N(a,f),a=a[f];d&&!s&&(D[o]=a)}}return a}},70585:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,o.visit)(e,a)};var r=n(69165),i=n(7583),o=n(9111);const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>s(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=c("(",s(e.variableDefinitions,", "),")"),n=s([e.operation,s([e.name,t]),s(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+c(" = ",n)+c(" ",s(r," "))},SelectionSet:{leave:({selections:e})=>l(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=c("",e,": ")+t;let a=o+c("(",s(n,", "),")");return a.length>80&&(a=o+c("(\n",u(s(n,"\n")),"\n)")),s([a,s(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+c(" ",s(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>s(["...",c("on ",e),s(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${c("(",s(n,", "),")")} on ${t} ${c("",s(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,r.printBlockString)(e):(0,i.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+s(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+s(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+c("(",s(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>c("",e,"\n")+s(["schema",s(t," "),l(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>c("",e,"\n")+s(["scalar",t,s(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>c("",e,"\n")+s(["type",t,c("implements ",s(n," & ")),s(r," "),l(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>c("",e,"\n")+t+(h(n)?c("(\n",u(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+": "+r+c(" ",s(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>c("",e,"\n")+s([t+": "+n,c("= ",r),s(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>c("",e,"\n")+s(["interface",t,c("implements ",s(n," & ")),s(r," "),l(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>c("",e,"\n")+s(["union",t,s(n," "),c("= ",s(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>c("",e,"\n")+s(["enum",t,s(n," "),l(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>c("",e,"\n")+s([t,s(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>c("",e,"\n")+s(["input",t,s(n," "),l(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>c("",e,"\n")+"directive @"+t+(h(n)?c("(\n",u(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>s(["extend schema",s(e," "),l(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>s(["extend scalar",e,s(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend type",e,c("implements ",s(t," & ")),s(n," "),l(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend interface",e,c("implements ",s(t," & ")),s(n," "),l(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>s(["extend union",e,s(t," "),c("= ",s(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>s(["extend enum",e,s(t," "),l(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>s(["extend input",e,s(t," "),l(n)]," ")}};function s(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function l(e){return c("{\n",u(s(e,"\n")),"\n}")}function c(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function u(e){return c(" ",e.replace(/\n/g,"\n "))}function h(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}},70657:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get("/metrics.json")]}))}))},e}();t.default=i},71064:(e,t,n)=>{"use strict";var r=n(79612);e.exports=r.getPrototypeOf||null},71217:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(98587),i=n(9176),o=n(96540),a=["colors","enabled","onRefresh","progressBackgroundColor","progressViewOffset","refreshing","size","tintColor","title","titleColor"];const s=function(e){e.colors,e.enabled,e.onRefresh,e.progressBackgroundColor,e.progressViewOffset,e.refreshing,e.size,e.tintColor,e.title,e.titleColor;var t=(0,r.A)(e,a);return o.createElement(i.A,t)}},71261:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(78285),i=n(8),o=n(98587),a=n(43999),s=n(4078),l=["aria-activedescendant","accessibilityActiveDescendant","aria-atomic","accessibilityAtomic","aria-autocomplete","accessibilityAutoComplete","aria-busy","accessibilityBusy","aria-checked","accessibilityChecked","aria-colcount","accessibilityColumnCount","aria-colindex","accessibilityColumnIndex","aria-colspan","accessibilityColumnSpan","aria-controls","accessibilityControls","aria-current","accessibilityCurrent","aria-describedby","accessibilityDescribedBy","aria-details","accessibilityDetails","aria-disabled","accessibilityDisabled","aria-errormessage","accessibilityErrorMessage","aria-expanded","accessibilityExpanded","aria-flowto","accessibilityFlowTo","aria-haspopup","accessibilityHasPopup","aria-hidden","accessibilityHidden","aria-invalid","accessibilityInvalid","aria-keyshortcuts","accessibilityKeyShortcuts","aria-label","accessibilityLabel","aria-labelledby","accessibilityLabelledBy","aria-level","accessibilityLevel","aria-live","accessibilityLiveRegion","aria-modal","accessibilityModal","aria-multiline","accessibilityMultiline","aria-multiselectable","accessibilityMultiSelectable","aria-orientation","accessibilityOrientation","aria-owns","accessibilityOwns","aria-placeholder","accessibilityPlaceholder","aria-posinset","accessibilityPosInSet","aria-pressed","accessibilityPressed","aria-readonly","accessibilityReadOnly","aria-required","accessibilityRequired","role","accessibilityRole","aria-roledescription","accessibilityRoleDescription","aria-rowcount","accessibilityRowCount","aria-rowindex","accessibilityRowIndex","aria-rowspan","accessibilityRowSpan","aria-selected","accessibilitySelected","aria-setsize","accessibilitySetSize","aria-sort","accessibilitySort","aria-valuemax","accessibilityValueMax","aria-valuemin","accessibilityValueMin","aria-valuenow","accessibilityValueNow","aria-valuetext","accessibilityValueText","dataSet","focusable","id","nativeID","pointerEvents","style","tabIndex","testID"],c={},u=Object.prototype.hasOwnProperty,h=Array.isArray,d=/[A-Z]/g;function f(e){return"-"+e.toLowerCase()}function p(e){return h(e)?e.join(" "):e}var m=a.A.create({auto:{pointerEvents:"auto"},"box-none":{pointerEvents:"box-none"},"box-only":{pointerEvents:"box-only"},none:{pointerEvents:"none"}});var g=n(96540),y=n(11420);const v=(e,t,n)=>{var h;e&&e.constructor===String&&(h=r.A.propsToAccessibilityComponent(t));var v=h||e,b=((e,t,n)=>{t||(t=c);var h=t,g=h["aria-activedescendant"],y=h.accessibilityActiveDescendant,v=h["aria-atomic"],b=h.accessibilityAtomic,A=h["aria-autocomplete"],x=h.accessibilityAutoComplete,w=h["aria-busy"],C=h.accessibilityBusy,S=h["aria-checked"],E=h.accessibilityChecked,k=h["aria-colcount"],T=h.accessibilityColumnCount,I=h["aria-colindex"],O=h.accessibilityColumnIndex,R=h["aria-colspan"],M=h.accessibilityColumnSpan,P=h["aria-controls"],D=h.accessibilityControls,j=h["aria-current"],B=h.accessibilityCurrent,L=h["aria-describedby"],F=h.accessibilityDescribedBy,N=h["aria-details"],_=h.accessibilityDetails,z=h["aria-disabled"],V=h.accessibilityDisabled,U=h["aria-errormessage"],H=h.accessibilityErrorMessage,q=h["aria-expanded"],G=h.accessibilityExpanded,Y=h["aria-flowto"],W=h.accessibilityFlowTo,Q=h["aria-haspopup"],X=h.accessibilityHasPopup,J=h["aria-hidden"],Z=h.accessibilityHidden,K=h["aria-invalid"],$=h.accessibilityInvalid,ee=h["aria-keyshortcuts"],te=h.accessibilityKeyShortcuts,ne=h["aria-label"],re=h.accessibilityLabel,ie=h["aria-labelledby"],oe=h.accessibilityLabelledBy,ae=h["aria-level"],se=h.accessibilityLevel,le=h["aria-live"],ce=h.accessibilityLiveRegion,ue=h["aria-modal"],he=h.accessibilityModal,de=h["aria-multiline"],fe=h.accessibilityMultiline,pe=h["aria-multiselectable"],me=h.accessibilityMultiSelectable,ge=h["aria-orientation"],ye=h.accessibilityOrientation,ve=h["aria-owns"],be=h.accessibilityOwns,Ae=h["aria-placeholder"],xe=h.accessibilityPlaceholder,we=h["aria-posinset"],Ce=h.accessibilityPosInSet,Se=h["aria-pressed"],Ee=h.accessibilityPressed,ke=h["aria-readonly"],Te=h.accessibilityReadOnly,Ie=h["aria-required"],Oe=h.accessibilityRequired,Re=(h.role,h.accessibilityRole,h["aria-roledescription"]),Me=h.accessibilityRoleDescription,Pe=h["aria-rowcount"],De=h.accessibilityRowCount,je=h["aria-rowindex"],Be=h.accessibilityRowIndex,Le=h["aria-rowspan"],Fe=h.accessibilityRowSpan,Ne=h["aria-selected"],_e=h.accessibilitySelected,ze=h["aria-setsize"],Ve=h.accessibilitySetSize,Ue=h["aria-sort"],He=h.accessibilitySort,qe=h["aria-valuemax"],Ge=h.accessibilityValueMax,Ye=h["aria-valuemin"],We=h.accessibilityValueMin,Qe=h["aria-valuenow"],Xe=h.accessibilityValueNow,Je=h["aria-valuetext"],Ze=h.accessibilityValueText,Ke=h.dataSet,$e=h.focusable,et=h.id,tt=h.nativeID,nt=h.pointerEvents,rt=h.style,it=h.tabIndex,ot=h.testID,at=(0,o.A)(h,l),st=z||V,lt=r.A.propsToAriaRole(t),ct=null!=g?g:y;null!=ct&&(at["aria-activedescendant"]=ct);var ut=null!=v?g:b;null!=ut&&(at["aria-atomic"]=ut);var ht=null!=A?A:x;null!=ht&&(at["aria-autocomplete"]=ht);var dt=null!=w?w:C;null!=dt&&(at["aria-busy"]=dt);var ft=null!=S?S:E;null!=ft&&(at["aria-checked"]=ft);var pt=null!=k?k:T;null!=pt&&(at["aria-colcount"]=pt);var mt=null!=I?I:O;null!=mt&&(at["aria-colindex"]=mt);var gt=null!=R?R:M;null!=gt&&(at["aria-colspan"]=gt);var yt=null!=P?P:D;null!=yt&&(at["aria-controls"]=p(yt));var vt=null!=j?j:B;null!=vt&&(at["aria-current"]=vt);var bt=null!=L?L:F;null!=bt&&(at["aria-describedby"]=p(bt));var At=null!=N?N:_;null!=At&&(at["aria-details"]=At),!0===st&&(at["aria-disabled"]=!0,"button"!==e&&"form"!==e&&"input"!==e&&"select"!==e&&"textarea"!==e||(at.disabled=!0));var xt=null!=U?U:H;null!=xt&&(at["aria-errormessage"]=xt);var wt=null!=q?q:G;null!=wt&&(at["aria-expanded"]=wt);var Ct=null!=Y?Y:W;null!=Ct&&(at["aria-flowto"]=p(Ct));var St=null!=Q?Q:X;null!=St&&(at["aria-haspopup"]=St);var Et=null!=J?J:Z;!0===Et&&(at["aria-hidden"]=Et);var kt=null!=K?K:$;null!=kt&&(at["aria-invalid"]=kt);var Tt=null!=ee?ee:te;null!=Tt&&(at["aria-keyshortcuts"]=p(Tt));var It=null!=ne?ne:re;null!=It&&(at["aria-label"]=It);var Ot=null!=ie?ie:oe;null!=Ot&&(at["aria-labelledby"]=p(Ot));var Rt=null!=ae?ae:se;null!=Rt&&(at["aria-level"]=Rt);var Mt=null!=le?le:ce;null!=Mt&&(at["aria-live"]="none"===Mt?"off":Mt);var Pt=null!=ue?ue:he;null!=Pt&&(at["aria-modal"]=Pt);var Dt=null!=de?de:fe;null!=Dt&&(at["aria-multiline"]=Dt);var jt=null!=pe?pe:me;null!=jt&&(at["aria-multiselectable"]=jt);var Bt=null!=ge?ge:ye;null!=Bt&&(at["aria-orientation"]=Bt);var Lt=null!=ve?ve:be;null!=Lt&&(at["aria-owns"]=p(Lt));var Ft=null!=Ae?Ae:xe;null!=Ft&&(at["aria-placeholder"]=Ft);var Nt=null!=we?we:Ce;null!=Nt&&(at["aria-posinset"]=Nt);var _t=null!=Se?Se:Ee;null!=_t&&(at["aria-pressed"]=_t);var zt=null!=ke?ke:Te;null!=zt&&(at["aria-readonly"]=zt,"input"!==e&&"select"!==e&&"textarea"!==e||(at.readOnly=!0));var Vt=null!=Ie?Ie:Oe;null!=Vt&&(at["aria-required"]=Vt,"input"!==e&&"select"!==e&&"textarea"!==e||(at.required=Oe)),null!=lt&&(at.role="none"===lt?"presentation":lt);var Ut=null!=Re?Re:Me;null!=Ut&&(at["aria-roledescription"]=Ut);var Ht=null!=Pe?Pe:De;null!=Ht&&(at["aria-rowcount"]=Ht);var qt=null!=je?je:Be;null!=qt&&(at["aria-rowindex"]=qt);var Gt=null!=Le?Le:Fe;null!=Gt&&(at["aria-rowspan"]=Gt);var Yt=null!=Ne?Ne:_e;null!=Yt&&(at["aria-selected"]=Yt);var Wt=null!=ze?ze:Ve;null!=Wt&&(at["aria-setsize"]=Wt);var Qt=null!=Ue?Ue:He;null!=Qt&&(at["aria-sort"]=Qt);var Xt=null!=qe?qe:Ge;null!=Xt&&(at["aria-valuemax"]=Xt);var Jt=null!=Ye?Ye:We;null!=Jt&&(at["aria-valuemin"]=Jt);var Zt=null!=Qe?Qe:Xe;null!=Zt&&(at["aria-valuenow"]=Zt);var Kt=null!=Je?Je:Ze;if(null!=Kt&&(at["aria-valuetext"]=Kt),null!=Ke)for(var $t in Ke)if(u.call(Ke,$t)){var en=$t.replace(d,f),tn=Ke[$t];null!=tn&&(at["data-"+en]=tn)}0===it||"0"===it||-1===it||"-1"===it?at.tabIndex=it:(!1===$e&&(at.tabIndex="-1"),"a"===e||"button"===e||"input"===e||"select"===e||"textarea"===e?!1!==$e&&!0!==V||(at.tabIndex="-1"):"button"===lt||"checkbox"===lt||"link"===lt||"radio"===lt||"textbox"===lt||"switch"===lt?!1!==$e&&(at.tabIndex="0"):!0===$e&&(at.tabIndex="0")),null!=nt&&(0,s.m)("pointerEvents","props.pointerEvents is deprecated. Use style.pointerEvents");var nn=(0,a.A)([rt,nt&&m[nt]],(0,i.A)({writingDirection:"ltr"},n)),rn=nn[0],on=nn[1];rn&&(at.className=rn),on&&(at.style=on);var an=null!=et?et:tt;return null!=an&&(at.id=an),null!=ot&&(at["data-testid"]=ot),null==at.type&&"button"===e&&(at.type="button"),at})(v,t,n),A=g.createElement(v,b);return b.dir?g.createElement(y.YO,{children:A,direction:b.dir,locale:b.lang}):A}},71354:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},71514:e=>{"use strict";e.exports=Math.abs},72208:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},72267:e=>{"use strict";function t(e,n,r,i){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,t.prototype),o.expected=n,o.found=r,o.location=i,o.name="SyntaxError",o}function n(e,t,n){return n=n||" ",e.length>t?e:(t-=e.length,e+(n+=n.repeat(t)).slice(0,t))}!function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(t,Error),t.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var r,i=null;for(r=0;r0){for(t=1,n=1;t{Array.isArray(e[1])?n.push(...e[1]):n.push(e[1])})),n},W=function(e,t,n,r,i,o,a,s,l){return{matrix:[e,t,n,r,i,o,a,s,l]}},Q=function(e,t){return null==t?{translate:e}:{translate:[e,t]}},X=function(e,t){return null==t?{scale:e}:[{scaleX:e},{scaleY:t}]},J=function(e,t){return null!==t?{rotate:`${e}deg`}:[{rotate:`${e}deg`}]},Z=function(e,t){return[e,t]},K=function(e){return[{skewX:`${e}deg`}]},$=function(e){return[{skewY:`${e}deg`}]},ee=function(){return parseFloat(e.substring(ne,te))},te=0|n.peg$currPos,ne=te,re=[{line:1,column:1}],ie=te,oe=n.peg$maxFailExpected||[],ae=0|n.peg$silentFails;if(n.startRule){if(!(n.startRule in a))throw new Error("Can't start parsing from rule \""+n.startRule+'".');s=a[n.startRule]}function se(e,t){return{type:"literal",text:e,ignoreCase:t}}function le(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function ce(e){return{type:"other",description:e}}function ue(t){var n,r=re[t];if(r)return r;if(t>=re.length)n=re.length-1;else for(n=t;!re[--n];);for(r={line:(r=re[n]).line,column:r.column};nie&&(ie=te,oe=[]),oe.push(e))}function fe(){var e;return ae++,e=function(){var e,t,n,r,o,a;if(ae++,e=te,(t=pe())!==i){for(n=[],r=te,o=ge(),(a=pe())!==i?r=o=[o,a]:(te=r,r=i);r!==i;)n.push(r),r=te,o=ge(),(a=pe())!==i?r=o=[o,a]:(te=r,r=i);ne=e,e=Y(t,n)}else te=e,e=i;return ae--,e===i&&(t=i,0===ae&&de(w)),e}(),ae--,e===i&&0===ae&&de(x),e}function pe(){var t;return ae++,(t=function(){var t,n,r,o,a,s,u,h,d,f,p,m;return ae++,t=te,ge(),e.substr(te,7)===l?(n=l,te+=7):(n=i,0===ae&&de(E)),n!==i?(ge(),(r=ye())!==i?(me(),(o=ye())!==i?(me(),(a=ye())!==i?(me(),(s=ye())!==i?(me(),(u=ye())!==i?(me(),(h=ye())!==i?(me(),(d=ye())!==i?(me(),(f=ye())!==i?(me(),(p=ye())!==i?(ge(),41===e.charCodeAt(te)?(m=c,te++):(m=i,0===ae&&de(k)),m!==i?(ge(),ne=t,t=W(r,o,a,s,u,h,d,f,p)):(te=t,t=i)):(te=t,t=i)):(te=t,t=i)):(te=t,t=i)):(te=t,t=i)):(te=t,t=i)):(te=t,t=i)):(te=t,t=i)):(te=t,t=i)):(te=t,t=i)):(te=t,t=i),ae--,t===i&&0===ae&&de(S),t}())===i&&(t=function(){var t,n,r,o,a;return ae++,t=te,ge(),e.substr(te,10)===u?(n=u,te+=10):(n=i,0===ae&&de(I)),n!==i?(ge(),(r=ye())!==i?(me(),(o=ye())===i&&(o=null),ge(),41===e.charCodeAt(te)?(a=c,te++):(a=i,0===ae&&de(k)),a!==i?(ge(),ne=t,t=Q(r,o)):(te=t,t=i)):(te=t,t=i)):(te=t,t=i),ae--,t===i&&0===ae&&de(T),t}())===i&&(t=function(){var t,n,r,o,a;return ae++,t=te,ge(),e.substr(te,6)===h?(n=h,te+=6):(n=i,0===ae&&de(R)),n!==i?(ge(),(r=ye())!==i?(me(),(o=ye())===i&&(o=null),ge(),41===e.charCodeAt(te)?(a=c,te++):(a=i,0===ae&&de(k)),a!==i?(ge(),ne=t,t=X(r,o)):(te=t,t=i)):(te=t,t=i)):(te=t,t=i),ae--,t===i&&0===ae&&de(O),t}())===i&&(t=function(){var t,n,r,o,a;return ae++,t=te,ge(),e.substr(te,7)===d?(n=d,te+=7):(n=i,0===ae&&de(P)),n!==i?(ge(),(r=ye())!==i?(o=function(){var e,t,n;return ae++,e=te,me(),(t=ye())!==i?(me(),(n=ye())!==i?(ne=e,e=Z(t,n)):(te=e,e=i)):(te=e,e=i),ae--,e===i&&0===ae&&de(D),e}(),o===i&&(o=null),ge(),41===e.charCodeAt(te)?(a=c,te++):(a=i,0===ae&&de(k)),a!==i?(ge(),ne=t,t=J(r,o)):(te=t,t=i)):(te=t,t=i)):(te=t,t=i),ae--,t===i&&0===ae&&de(M),t}())===i&&(t=function(){var t,n,r,o;return ae++,t=te,ge(),e.substr(te,6)===f?(n=f,te+=6):(n=i,0===ae&&de(B)),n!==i?(ge(),(r=ye())!==i?(ge(),41===e.charCodeAt(te)?(o=c,te++):(o=i,0===ae&&de(k)),o!==i?(ge(),ne=t,t=K(r)):(te=t,t=i)):(te=t,t=i)):(te=t,t=i),ae--,t===i&&0===ae&&de(j),t}())===i&&(t=function(){var t,n,r,o;return ae++,t=te,ge(),e.substr(te,6)===p?(n=p,te+=6):(n=i,0===ae&&de(F)),n!==i?(ge(),(r=ye())!==i?(ge(),41===e.charCodeAt(te)?(o=c,te++):(o=i,0===ae&&de(k)),o!==i?(ge(),ne=t,t=$(r)):(te=t,t=i)):(te=t,t=i)):(te=t,t=i),ae--,t===i&&0===ae&&de(L),t}()),ae--,t===i&&0===ae&&de(C),t}function me(){var t,n;for(ae++,t=[],n=e.charAt(te),y.test(n)?te++:(n=i,0===ae&&de(_));n!==i;)t.push(n),n=e.charAt(te),y.test(n)?te++:(n=i,0===ae&&de(_));return ae--,n=i,0===ae&&de(N),t}function ge(){var t,n;for(ae++,t=[],n=e.charAt(te),v.test(n)?te++:(n=i,0===ae&&de(V));n!==i;)t.push(n),n=e.charAt(te),v.test(n)?te++:(n=i,0===ae&&de(V));return ae--,n=i,0===ae&&de(z),t}function ye(){var t,n,r,o,a,s,l,c;for(t=te,n=e.charAt(te),b.test(n)?te++:(n=i,0===ae&&de(U)),n===i&&(n=null),r=te,o=[],a=e.charAt(te),A.test(a)?te++:(a=i,0===ae&&de(H));a!==i;)o.push(a),a=e.charAt(te),A.test(a)?te++:(a=i,0===ae&&de(H));if(46===e.charCodeAt(te)?(a=m,te++):(a=i,0===ae&&de(q)),a!==i){if(s=[],l=e.charAt(te),A.test(l)?te++:(l=i,0===ae&&de(H)),l!==i)for(;l!==i;)s.push(l),l=e.charAt(te),A.test(l)?te++:(l=i,0===ae&&de(H));else s=i;s!==i?r=o=[o,a,s]:(te=r,r=i)}else te=r,r=i;if(r===i)if(r=[],o=e.charAt(te),A.test(o)?te++:(o=i,0===ae&&de(H)),o!==i)for(;o!==i;)r.push(o),o=e.charAt(te),A.test(o)?te++:(o=i,0===ae&&de(H));else r=i;if(r!==i){if(o=te,101===e.charCodeAt(te)?(a=g,te++):(a=i,0===ae&&de(G)),a!==i){if(s=e.charAt(te),b.test(s)?te++:(s=i,0===ae&&de(U)),s===i&&(s=null),l=[],c=e.charAt(te),A.test(c)?te++:(c=i,0===ae&&de(H)),c!==i)for(;c!==i;)l.push(c),c=e.charAt(te),A.test(c)?te++:(c=i,0===ae&&de(H));else l=i;l!==i?o=a=[a,s,l]:(te=o,o=i)}else te=o,o=i;o===i&&(o=null),ne=t,t=ee()}else te=t,t=i;return t}if(r=s(),n.peg$library)return{peg$result:r,peg$currPos:te,peg$FAILED:i,peg$maxFailExpected:oe,peg$maxFailPos:ie};if(r!==i&&te===e.length)return r;throw r!==i&&te{"use strict";var r=n(82682),i=n(10487),o=n(99897)(),a=n(39209)(),s={__proto__:null},l=n(75795),c=Object.defineProperty;if(l){var u=function(e){return e.byteOffset};r(a,(function(e){if("function"==typeof n.g[e]||"object"==typeof n.g[e]){var t=n.g[e].prototype,r=l(t,"byteOffset");if(!r){var a=o(t);r=l(a,"byteOffset")}if(r&&r.get)s[e]=i(r.get);else if(c){var h=new n.g[e](2);(r=l(h,"byteOffset"))&&r.configurable&&c(h,"length",{value:3}),2===h.length&&(s[e]=u)}}}))}var h=n(35680);e.exports=function(e){return!!h(e)&&function(e){var t;return r(s,(function(n){if("number"!=typeof t)try{var r=n(e);"number"==typeof r&&(t=r)}catch(e){}})),t}(e)}},72733:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,o,a,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(i(o=this._events[e]))return!1;if(n(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),o.apply(this,s)}else if(r(o))for(s=Array.prototype.slice.call(arguments,1),a=(c=o.slice()).length,l=0;l0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,o,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(i=this._events[e]).length,o=-1,i===t||n(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(r(i)){for(s=a;s-- >0;)if(i[s]===t||i[s].listener&&i[s].listener===t){o=s;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},73014:e=>{"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},73038:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.TokenKind=n,function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(n||(t.TokenKind=n={}))},73055:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o=0&&t<=h.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?d+=":"+e:"symbol"==typeof e&&(d=void 0),h.name=e,h.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},h.methodFactory=n||u,h.getLevel=function(){return null!=c?c:null!=s?s:a},h.setLevel=function(e,n){return c=p(e),!1!==n&&function(e){var n=(r[e]||"silent").toUpperCase();if(typeof window!==t&&d){try{return void(window.localStorage[d]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"="+n+";"}catch(e){}}}(c),l.call(h)},h.setDefaultLevel=function(e){s=p(e),f()||h.setLevel(e,!1)},h.resetLevel=function(){c=null,function(){if(typeof window!==t&&d){try{window.localStorage.removeItem(d)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),l.call(h)},h.enableAll=function(e){h.setLevel(h.levels.TRACE,e)},h.disableAll=function(e){h.setLevel(h.levels.SILENT,e)},h.rebuild=function(){if(o!==h&&(a=p(o.getLevel())),l.call(h),o===h)for(var e in i)i[e].rebuild()},a=p(o?o.getLevel():"WARN");var m=f();null!=m&&(c=p(m)),l.call(h)}(o=new h).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=i[e];return t||(t=i[e]=new h(e,o.methodFactory)),t};var d=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=d),o},o.getLoggers=function(){return i},o.default=o,o},void 0===(i=r.call(t,n,t,e))||(e.exports=i)}()},73093:(e,t,n)=>{"use strict";var r=n(94459);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},73126:(e,t,n)=>{"use strict";var r=n(66743),i=n(69675),o=n(10076),a=n(13144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(r,o,e)}},73176:(e,t)=>{"use strict";t.P=void 0;var n=new WeakMap;function r(e){var t,r,i;return null!=e&&(t=!0===e.disableCache,r=!0===e.disableMix,i=e.transform),function(){for(var e=[],o="",a=null,s=t?null:n,l=new Array(arguments.length),c=0;c0;){var u=l.pop();if(null!=u&&!1!==u)if(Array.isArray(u))for(var h=0;h{var e,t,n,r,i;e=L.Polyline.prototype.onAdd,t=L.Polyline.prototype.onRemove,n=L.Polyline.prototype._updatePath,r=L.Polyline.prototype.bringToFront,i={onAdd:function(t){e.call(this,t),this._textRedraw()},onRemove:function(e){(e=e||this._map)&&this._textNode&&e._renderer._container&&e._renderer._container.removeChild(this._textNode),t.call(this,e)},bringToFront:function(){r.call(this),this._textRedraw()},_updatePath:function(){n.call(this),this._textRedraw()},_textRedraw:function(){var e=this._text,t=this._textOptions;e&&this.setText(null).setText(e,t)},setText:function(e,t){if(this._text=e,this._textOptions=t,!L.Browser.svg||void 0===this._map)return this;if(t=L.Util.extend({repeat:!1,fillColor:"black",attributes:{},below:!1},t),!e)return this._textNode&&this._textNode.parentNode&&(this._map._renderer._container.removeChild(this._textNode),delete this._textNode),this;e=e.replace(/ /g," ");var n="pathdef-"+L.Util.stamp(this),r=this._map._renderer._container;if(this._path.setAttribute("id",n),t.repeat){var i=L.SVG.create("text");for(var o in t.attributes)i.setAttribute(o,t.attributes[o]);i.appendChild(document.createTextNode(e)),r.appendChild(i);var a=i.getComputedTextLength();r.removeChild(i),e=new Array(Math.ceil(isNaN(this._path.getTotalLength()/a)?0:this._path.getTotalLength()/a)).join(e)}var s=L.SVG.create("text"),l=L.SVG.create("textPath"),c=t.offset||this._path.getAttribute("stroke-width");for(var o in l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+n),s.setAttribute("dy",c),t.attributes)s.setAttribute(o,t.attributes[o]);if(l.appendChild(document.createTextNode(e)),s.appendChild(l),this._textNode=s,t.below?r.insertBefore(s,r.firstChild):r.appendChild(s),t.center){var u=s.getComputedTextLength(),h=this._path.getTotalLength();s.setAttribute("dx",h/2-u/2)}if(t.orientation){var d=0;switch(t.orientation){case"flip":d=180;break;case"perpendicular":d=90;break;default:d=t.orientation}var f=s.getBBox().x+s.getBBox().width/2,p=s.getBBox().y+s.getBBox().height/2;s.setAttribute("transform","rotate("+d+" "+f+" "+p+")")}if(this.options.interactive){!L.Browser.svg&&L.Browser.vml||l.setAttribute("class","leaflet-interactive");for(var m=["click","dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"],g=0;g{},73629:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(87361)),o=function(){function e(e,t){this.collectionName=e,this.apiCall=t}return e.prototype.upsert=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){return[2,this.apiCall.put(this.endpointPath(e),t)]}))}))},e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.endpointPath=function(t){return"".concat(i.default.RESOURCEPATH,"/").concat(this.collectionName).concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/overrides"},enumerable:!1,configurable:!0}),e}();t.default=o},73710:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FullWindowOverlay:()=>Y,InnerScreen:()=>g,Screen:()=>A,ScreenContainer:()=>M,ScreenContentWrapper:()=>L,ScreenContext:()=>b,ScreenFooter:()=>V,ScreenStack:()=>P,ScreenStackHeaderBackButtonImage:()=>C,ScreenStackHeaderCenterView:()=>k,ScreenStackHeaderConfig:()=>I,ScreenStackHeaderLeftView:()=>E,ScreenStackHeaderRightView:()=>S,ScreenStackHeaderSearchBarView:()=>T,ScreenStackHeaderSubview:()=>O,ScreenStackItem:()=>q,SearchBar:()=>R,compatibilityFlags:()=>J,enableFreeze:()=>c,enableScreens:()=>s,executeNativeBackPress:()=>X,freezeEnabled:()=>h,isSearchBarAvailableForCurrentPlatform:()=>Q,screensEnabled:()=>u,useTransitionProgress:()=>K});var r=n(67862),i=n(8683);const o="ios"===r.A.OS||"android"===r.A.OS||"windows"===r.A.OS;let a=o;function s(e=!0){a=e,o&&a&&!i.A.getViewManagerConfig("RNSScreen")&&console.error("Screen native module hasn't been linked. Please check the react-native-screens README for more details")}let l=!1;function c(e=!0){o&&(l=e)}function u(){return a}function h(){return l}var d=n(9176),f=n(94678),p=n(96540);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(d.A,null,p.createElement(x.A,w({resizeMode:"center",fadeDuration:0},e))),S=e=>p.createElement(d.A,e),E=e=>p.createElement(d.A,e),k=e=>p.createElement(d.A,e),T=e=>p.createElement(d.A,e),I=e=>p.createElement(d.A,e),O=d.A,R=d.A,M=d.A,P=d.A;var D=n(43999),j=n(4909),B=n.n(j);const L=d.A;function F(e){return p.createElement(L,e)}const N=p.createContext(null),_=d.A,z=d.A,V=_;function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;tf.current));const g="android"!==r.A.OS&&"push"!==o&&!1===t?.hidden,y=p.useRef(t?.hidden);p.useEffect((()=>{B()("android"!==r.A.OS&&"push"!==o&&y.current!==t?.hidden,"Dynamically changing header's visibility in modals will result in remounting the screen and losing all local state."),y.current=t?.hidden}),[t?.hidden,o]);const v=p.createElement(p.Fragment,null,p.createElement(F,{style:["formSheet"===o?"ios"===r.A.OS?G.absolute:"fitToContents"===a?null:G.container:G.container,s],stackPresentation:o??"push"},e),p.createElement(I,t),"formSheet"===o&&u&&p.createElement(z,null,u()));let b;if("formSheet"===o&&s){const e=D.A.flatten(s);b={backgroundColor:e?.backgroundColor}}return p.createElement(A,U({ref:e=>{if(f.current=e,null===m)return void console.warn("Looks like RNSScreensRefContext is missing. Make sure the ScreenStack component is wrapped in it");const t=m.current;null===e?delete t[c]:t[c]={current:e}},enabled:!0,isNativeStack:!0,activityState:n,shouldFreeze:i,stackPresentation:o,hasLargeHeader:t?.largeTitle??!1,sheetAllowedDetents:a,style:[l,b]},h),g?p.createElement(P,{style:G.container},p.createElement(A,{enabled:!0,isNativeStack:!0,activityState:n,shouldFreeze:i,hasLargeHeader:t?.largeTitle??!1,style:D.A.absoluteFill},v)):v)}const q=p.forwardRef(H),G=D.A.create({container:{flex:1},absolute:{position:"absolute",top:0,start:0,end:0}}),Y=d.A;var W=n(89742);const Q=["ios","android"].includes(r.A.OS);function X(){return W.A.exitApp(),!0}const J={isNewBackTitleImplementation:!0,usesHeaderFlexboxImplementation:!0},Z=p.createContext(void 0);function K(){const e=p.useContext(Z);if(void 0===e)throw new Error("Couldn't find values for transition progress. Are you inside a screen in Native Stack?");return e}},73738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},74103:(e,t,n)=>{"use strict";var r=n(36571),i=n(19127),o=n(42223),a=n(33371),s=n(67691);function l(e,t,n,i){return new r(e,t,n,i)}l.version=n(16938),l.AlgoliaSearchHelper=r,l.SearchParameters=a,l.RecommendParameters=i,l.SearchResults=s,l.RecommendResults=o,e.exports=l},74372:(e,t,n)=>{"use strict";var r=n(69675),i=n(36556)("TypedArray.prototype.buffer",!0),o=n(35680);e.exports=i||function(e){if(!o(e))throw new r("Not a Typed Array");return e.buffer}},74462:e=>{"use strict";var t=function(){return"string"==typeof function(){}.name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(e){n=null}t.functionsHaveConfigurableNames=function(){if(!t()||!n)return!1;var e=n((function(){}),"name");return!!e&&!!e.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof r&&""!==function(){}.bind().name},e.exports=t},74647:(e,t,n)=>{"use strict";e.exports=n.p+"a41b925faf940d267b62.ttf"},74848:(e,t,n)=>{"use strict";e.exports=n(29698)},74895:(e,t,n)=>{"use strict";var r=n(68206);e.exports=function(){return String.prototype.trim&&"​"==="​".trim()&&"᠎"==="᠎".trim()&&"_᠎"==="_᠎".trim()&&"᠎_"==="᠎_".trim()?String.prototype.trim:r}},74945:(e,t,n)=>{var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g,i=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},i="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,a="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,l="ArrayBuffer"in r;if(l)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function h(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():l&&a&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=m(this);if(e)return e;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(){if(this._bodyArrayBuffer)return m(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(a)return this.blob().then(y);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,o=m(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,n=g(t=new FileReader),i=(r=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?r[1]:"utf-8",t.readAsText(e,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function C(e,t){if(!(this instanceof C))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},b.call(x.prototype),b.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var S=[301,302,303,307,308];C.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,n){return new Promise((function(i,o){var s=new x(e,n);if(s.signal&&s.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function u(){c.abort()}if(c.onload=function(){var e,t,n={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(e){console.warn("Response "+e.message)}}})),t)};0===s.url.indexOf("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout((function(){i(new C(r,n))}),0)},c.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request timed out"))}),0)},c.onabort=function(){setTimeout((function(){o(new t.DOMException("Aborted","AbortError"))}),0)},c.open(s.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?c.withCredentials=!0:"omit"===s.credentials&&(c.withCredentials=!1),"responseType"in c&&(a?c.responseType="blob":l&&(c.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof p||r.Headers&&n.headers instanceof r.Headers)){var f=[];Object.getOwnPropertyNames(n.headers).forEach((function(e){f.push(h(e)),c.setRequestHeader(e,d(n.headers[e]))})),s.headers.forEach((function(e,t){-1===f.indexOf(t)&&c.setRequestHeader(t,e)}))}else s.headers.forEach((function(e,t){c.setRequestHeader(t,e)}));s.signal&&(s.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&s.signal.removeEventListener("abort",u)}),c.send(void 0===s._bodyInit?null:s._bodyInit)}))}E.polyfill=!0,r.fetch||(r.fetch=E,r.Headers=p,r.Request=x,r.Response=C),t.Headers=p,t.Request=x,t.Response=C,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=r.fetch?r:i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},74955:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get("/stats.json")]}))}))},e}();t.default=i},75128:(e,t,n)=>{"use strict";var r=n(36556),i=r("Boolean.prototype.toString"),o=r("Object.prototype.toString"),a=n(49092)();e.exports=function(e){return"boolean"==typeof e||null!==e&&"object"==typeof e&&(a?function(e){try{return i(e),!0}catch(e){return!1}}(e):"[object Boolean]"===o(e))}},75486:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);na,camelCaseProperty:()=>h,cssifyDeclaration:()=>p,cssifyObject:()=>m,hyphenateProperty:()=>f,isPrefixedProperty:()=>y,isPrefixedValue:()=>b,isUnitlessProperty:()=>R,normalizeProperty:()=>D,resolveArrayValue:()=>j,unprefixProperty:()=>P,unprefixValue:()=>L});var s=/-([a-z])/g,l=/^Ms/g,c={};function u(e){return e[1].toUpperCase()}function h(e){if(c.hasOwnProperty(e))return c[e];var t=e.replace(s,u).replace(l,"ms");return c[e]=t,t}var d=n(45685);function f(e){return(0,d.default)(e)}function p(e,t){return f(e)+":"+t}function m(e){var t="";for(var n in e){var r=e[n];"string"!=typeof r&&"number"!=typeof r||(t&&(t+=";"),t+=p(n,r))}return t}var g=/^(Webkit|Moz|O|ms)/;function y(e){return g.test(e)}var v=/-webkit-|-moz-|-ms-/;function b(e){return"string"==typeof e&&v.test(e)}var A={borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},x=["animationIterationCount","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","order"],w=["Webkit","ms","Moz","O"];function C(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}for(var S=0,E=x.length;S{"use strict";n.d(t,{A:()=>g});var r=n(58168),i=n(98587),o=n(96540),a=n(11804),s=n(86533),l=n(43999),c=n(9176),u=["activeOpacity","children","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onHideUnderlay","onLongPress","onPress","onPressIn","onPressOut","onShowUnderlay","rejectResponderTermination","style","testOnly_pressed","underlayColor"];function h(e,t){return{child:{opacity:null!=e?e:.85},underlay:{backgroundColor:void 0===t?"black":t}}}function d(e){return null!=e.onPress||null!=e.onPressIn||null!=e.onPressOut||null!=e.onLongPress}function f(e,t){var n=e.activeOpacity,l=e.children,f=e.delayPressIn,m=e.delayPressOut,g=e.delayLongPress,y=e.disabled,v=e.focusable,b=e.onHideUnderlay,A=e.onLongPress,x=e.onPress,w=e.onPressIn,C=e.onPressOut,S=e.onShowUnderlay,E=e.rejectResponderTermination,k=e.style,T=e.testOnly_pressed,I=e.underlayColor,O=(0,i.A)(e,u),R=(0,o.useRef)(null),M=(0,a.A)(t,R),P=(0,o.useState)(!0===T?h(n,I):null),D=P[0],j=P[1],B=(0,o.useCallback)((()=>{d(e)&&(j(h(n,I)),null!=S&&S())}),[n,S,e,I]),L=(0,o.useCallback)((()=>{!0!==T&&d(e)&&(j(null),null!=b&&b())}),[b,e,T]),F=(0,o.useMemo)((()=>({cancelable:!E,disabled:y,delayLongPress:g,delayPressStart:f,delayPressEnd:m,onLongPress:A,onPress:x,onPressStart(e){B(),null!=w&&w(e)},onPressEnd(e){L(),null!=C&&C(e)}})),[g,f,m,y,A,x,w,C,E,B,L]),N=(0,s.A)(R,F),_=o.Children.only(l);return o.createElement(c.A,(0,r.A)({},O,N,{accessibilityDisabled:y,focusable:!y&&!1!==v,pointerEvents:y?"box-none":void 0,ref:M,style:[p.root,k,!y&&p.actionable,D&&D.underlay]}),o.cloneElement(_,{style:[_.props.style,D&&D.child]}))}var p=l.A.create({root:{userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),m=o.memo(o.forwardRef(f));m.displayName="TouchableHighlight";const g=m},75617:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(51747),i=n(7162),o={},a=!i.A||null!=window.CSS&&null!=window.CSS.supports&&(window.CSS.supports("text-decoration-line","none")||window.CSS.supports("-webkit-text-decoration-line","none")),s='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif',l={borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderBlockColor:["borderTopColor","borderBottomColor"],borderInlineColor:["borderRightColor","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderStyle:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderInlineStyle:["borderRightStyle","borderLeftStyle"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderInlineWidth:["borderRightWidth","borderLeftWidth"],insetBlock:["top","bottom"],insetInline:["left","right"],marginBlock:["marginTop","marginBottom"],marginInline:["marginRight","marginLeft"],paddingBlock:["paddingTop","paddingBottom"],paddingInline:["paddingRight","paddingLeft"],overflow:["overflowX","overflowY"],overscrollBehavior:["overscrollBehaviorX","overscrollBehaviorY"],borderBlockStartColor:["borderTopColor"],borderBlockStartStyle:["borderTopStyle"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndColor:["borderBottomColor"],borderBlockEndStyle:["borderBottomStyle"],borderBlockEndWidth:["borderBottomWidth"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],insetBlockEnd:["bottom"],insetBlockStart:["top"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"]};const c=(e,t)=>{if(!e)return o;var n={},i=function(){var i=e[c];if(null==i)return"continue";if("backgroundClip"===c)"text"===i&&(n.backgroundClip=i,n.WebkitBackgroundClip=i);else if("flex"===c)-1===i?(n.flexGrow=0,n.flexShrink=1,n.flexBasis="auto"):n.flex=i;else if("font"===c)n[c]=i.replace("System",s);else if("fontFamily"===c)if(i.indexOf("System")>-1){var o=i.split(/,\s*/);o[o.indexOf("System")]=s,n[c]=o.join(",")}else n[c]="monospace"===i?"monospace,monospace":i;else if("textDecorationLine"===c)a?n.textDecorationLine=i:n.textDecoration=i;else if("writingDirection"===c)n.direction=i;else{var u=(0,r.A)(e[c],c),h=l[c];t&&"inset"===c?(null==e.insetInline&&(n.left=u,n.right=u),null==e.insetBlock&&(n.top=u,n.bottom=u)):t&&"margin"===c?(null==e.marginInline&&(n.marginLeft=u,n.marginRight=u),null==e.marginBlock&&(n.marginTop=u,n.marginBottom=u)):t&&"padding"===c?(null==e.paddingInline&&(n.paddingLeft=u,n.paddingRight=u),null==e.paddingBlock&&(n.paddingTop=u,n.paddingBottom=u)):h?h.forEach(((t,r)=>{null==e[t]&&(n[t]=u)})):n[c]=u}};for(var c in e)i();return n}},75767:(e,t,n)=>{"use strict";function r(e){return e.unmount(),!0}n.d(t,{A:()=>r})},75795:(e,t,n)=>{"use strict";var r=n(6549);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},75880:e=>{"use strict";e.exports=Math.pow},76257:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0,t.isNode=function(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&o.has(t)};class n{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=n;class r{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=r;const i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=i;const o=new Set(Object.keys(i));var a;t.OperationTypeNode=a,function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(a||(t.OperationTypeNode=a={}))},76314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},76578:e=>{"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},76642:(e,t,n)=>{"use strict";var r=n(13003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},76673:(e,t,n)=>{"use strict";e.exports=function(e){return function(t,n){var r=e.hierarchicalFacets[n],c=e.hierarchicalFacetsRefinements[r.name]&&e.hierarchicalFacetsRefinements[r.name][0]||"",u=e._getHierarchicalFacetSeparator(r),h=e._getHierarchicalRootPath(r),d=e._getHierarchicalShowParentLevel(r),f=o(e._getHierarchicalFacetSortBy(r)),p=t.every((function(e){return e.exhaustive})),m=function(e,t,n,r,o){return function(c,u,h){var d=c;if(h>0){var f=0;for(d=c;f{"use strict";var r=n(96540),i=n(18705);e.exports=function(e){var t=r.useRef(e),n=r.useRef((function(){for(var e=[],n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},77147:(e,t)=>{t.n=function(e){if("number"!=typeof e){const t=Array.isArray(e)?"array":typeof e;throw new Error(`ERROR! Number of edges has to be a number but was: ${t}`)}if(e<3)throw new Error(`ERROR! Number of edges has to be at least 3 but was: ${e}`)}},77247:(e,t,n)=>{"use strict";e.exports=n.p+"fc45da4c3e5b90c232a2.ttf"},77440:(e,t,n)=>{"use strict";var r=n(71514),i=n(58968),o=n(94459),a=n(63331);e.exports=function(e){if("number"!=typeof e||o(e)||!a(e))return!1;var t=r(e);return i(t)===t}},77596:e=>{const t={getUserAgent:function(){return window.navigator.userAgent},userAgentContains:function(e){return e=e.toLowerCase(),this.getUserAgent().toLowerCase().indexOf(e)>-1},isOSX:function(){return this.userAgentContains("Macintosh")},isFirefox:function(){return this.userAgentContains("firefox")},isInternetExplorer:function(){return this.userAgentContains("trident")},isIE:function(){var e=this.getUserAgent().toLowerCase();return e.indexOf("msie")>0||e.indexOf("trident/")>0},isEdge:function(){return this.getUserAgent().toLowerCase().indexOf("edge")>0},isChrome:function(){const e=window.chrome,t=window.navigator,n=t.vendor,r=void 0!==window.opr,i=t.userAgent.indexOf("Edge")>-1,o=t.userAgent.match("CriOS");return null!=e&&"Google Inc."===n&&!1===r&&!1===i||o},isOpera:function(){return this.userAgentContains(" OPR/")}};let n;const r=(e,t,n)=>e.addEventListener?(e.addEventListener(t,n),{remove:function(){e.removeEventListener(t,n)}}):(e.attachEvent(t,n),{remove:function(){e.detachEvent(t,n)}}),i=(e,t)=>{let n=document.createElement("iframe");return n.src=t,n.id="hiddenIframe",n.style.display="none",e.appendChild(n),n},o=(e,t,o)=>{const a=setTimeout((function(){t(),l.remove()}),n);let s=document.querySelector("#hiddenIframe");s||(s=i(document.body,"about:blank"));const l=r(window,"blur",(()=>{clearTimeout(a),l.remove(),o()}));s.contentWindow.location.href=e};e.exports=(e,a,s,l=2e3,c)=>{const u=()=>{a&&a()},h=()=>{s&&s()},d=()=>{t.isFirefox()?(()=>{const e=window.navigator.userAgent;let t,n=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?(t=/\brv[ :]+(\d+)/g.exec(e)||[],parseFloat(t[1])||""):"Chrome"===n[1]&&(t=e.match(/\b(OPR|Edge)\/(\d+)/),null!=t)?parseFloat(t[2]):(n=n[2]?[n[1],n[2]]:[window.navigator.appName,window.navigator.appVersion,"-?"],null!=(t=e.match(/version\/(\d+)/i))&&n.splice(1,1,t[1]),parseFloat(n[1]))})()>=64?o(e,u,h):((e,t,n)=>{let r=document.querySelector("#hiddenIframe");r||(r=i(document.body,"about:blank"));try{r.contentWindow.location.href=e,n()}catch(e){"NS_ERROR_UNKNOWN_PROTOCOL"==e.name&&t()}})(e,u,h):t.isChrome()?((e,t,i)=>{const o=setTimeout((function(){t(),s.remove()}),n);let a=window;for(;a.parent&&a!=a.parent;)a=a.parent;const s=r(a,"blur",(()=>{clearTimeout(o),s.remove(),i()}));window.location.href=e})(e,u,h):t.isOSX()?o(e,u,h):c&&c()};if(l&&(n=l),t.isEdge()||t.isIE())((e,t,n)=>{navigator.msLaunchUri(e,n,t)})(e,a,s);else if(document.hasFocus())d();else{let e=r(window,"focus",(()=>{e.remove(),d()}))}}},77659:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},77736:(e,t,n)=>{var r=n(73738).default,i=n(89045);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},78280:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(r.__importDefault(n(27796)).default);t.default=i},78285:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r={adjustable:"slider",button:"button",header:"heading",image:"img",imagebutton:null,keyboardkey:null,label:null,link:"link",none:"presentation",search:"search",summary:"region",text:null};const i=e=>{var t=e.accessibilityRole,n=e.role||t;if(n){var i=r[n];if(null!==i)return i||n}};var o={article:"article",banner:"header",blockquote:"blockquote",button:"button",code:"code",complementary:"aside",contentinfo:"footer",deletion:"del",emphasis:"em",figure:"figure",insertion:"ins",form:"form",list:"ul",listitem:"li",main:"main",navigation:"nav",paragraph:"p",region:"section",strong:"strong"},a={};const s={isDisabled:e=>e.disabled||Array.isArray(e.accessibilityStates)&&e.accessibilityStates.indexOf("disabled")>-1,propsToAccessibilityComponent:function(e){if(void 0===e&&(e=a),"label"===(e.role||e.accessibilityRole))return"label";var t=i(e);if(t){if("heading"===t){var n=e.accessibilityLevel||e["aria-level"];return null!=n?"h"+n:"h1"}return o[t]}},propsToAriaRole:i}},78506:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(8),i=n(98587),o=n(96540),a=n(71261),s=n(68697),l=n(40254),c=n(92008),u=n(11804),h=n(96177),d=n(33098),f=n(43999),p=n(85243),m=n(11420),g=["hrefAttrs","numberOfLines","onClick","onLayout","onPress","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","selectable"],y=Object.assign({},s.Gs,s.Fh,s.DY,s.l3,s.Aw,s.k2,s.CD,s.eO,{href:!0,lang:!0,pointerEvents:!0}),v=o.forwardRef(((e,t)=>{var n=e.hrefAttrs,r=e.numberOfLines,s=e.onClick,f=e.onLayout,v=e.onPress,b=e.onMoveShouldSetResponder,x=e.onMoveShouldSetResponderCapture,w=e.onResponderEnd,C=e.onResponderGrant,S=e.onResponderMove,E=e.onResponderReject,k=e.onResponderRelease,T=e.onResponderStart,I=e.onResponderTerminate,O=e.onResponderTerminationRequest,R=e.onScrollShouldSetResponder,M=e.onScrollShouldSetResponderCapture,P=e.onSelectionChangeShouldSetResponder,D=e.onSelectionChangeShouldSetResponderCapture,j=e.onStartShouldSetResponder,B=e.onStartShouldSetResponderCapture,L=e.selectable,F=(0,i.A)(e,g),N=o.useContext(p.A),_=o.useRef(null),z=(0,m.PZ)().direction;(0,c.A)(_,f),(0,d.A)(_,{onMoveShouldSetResponder:b,onMoveShouldSetResponderCapture:x,onResponderEnd:w,onResponderGrant:C,onResponderMove:S,onResponderReject:E,onResponderRelease:k,onResponderStart:T,onResponderTerminate:I,onResponderTerminationRequest:O,onScrollShouldSetResponder:R,onScrollShouldSetResponderCapture:M,onSelectionChangeShouldSetResponder:P,onSelectionChangeShouldSetResponderCapture:D,onStartShouldSetResponder:j,onStartShouldSetResponderCapture:B});var V=o.useCallback((e=>{null!=s?s(e):null!=v&&(e.stopPropagation(),v(e))}),[s,v]),U=N?"span":"div",H=null!=e.lang?(0,m.il)(e.lang):null,q=e.dir||H,G=q||z,Y=(e=>(0,l.A)(e,y))(F);if(Y.dir=q,N||(Y.dir=null!=q?q:"auto"),(s||v)&&(Y.onClick=V),Y.style=[null!=r&&r>1&&{WebkitLineClamp:r},!0===N?A.textHasAncestor$raw:A.text$raw,1===r&&A.textOneLine,null!=r&&r>1&&A.textMultiLine,e.style,!0===L&&A.selectable,!1===L&&A.notSelectable,v&&A.pressable],null!=e.href&&(U="a",null!=n)){var W=n.download,Q=n.rel,X=n.target;null!=W&&(Y.download=W),null!=Q&&(Y.rel=Q),"string"==typeof X&&(Y.target="_"!==X.charAt(0)?"_"+X:X)}var J=(0,h.A)(Y),Z=(0,u.A)(_,J,t);Y.ref=Z;var K=(0,a.A)(U,Y,{writingDirection:G});return N?K:o.createElement(p.A.Provider,{value:!0},K)}));v.displayName="Text";var b={backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",color:"black",display:"inline",font:"14px System",listStyle:"none",margin:0,padding:0,position:"relative",textAlign:"start",textDecoration:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},A=f.A.create({text$raw:b,textHasAncestor$raw:(0,r.A)((0,r.A)({},b),{},{color:"inherit",font:"inherit",textAlign:"inherit",whiteSpace:"inherit"}),textOneLine:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"},textMultiLine:{display:"-webkit-box",maxWidth:"100%",overflow:"clip",textOverflow:"ellipsis",WebkitBoxOrient:"vertical"},notSelectable:{userSelect:"none"},selectable:{userSelect:"text"},pressable:{cursor:"pointer"}});const x=v},78618:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{default:()=>f}),e.exports=(r=h,u(o({},"__esModule",{value:!0}),r));var d=((e,t,n)=>(n=null!=e?i(l(e)):{},u(e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(40295));class f extends d.default{size=0;get byteSize(){return this.size}dataViewGet(e,t){return e.getUint8(t)}decode(e,t){return[this.dataViewGet(e,t),this.size]}dataViewSet(e,t){e.setUint8(0,t)}encode(e){const t=new ArrayBuffer(this.size),n=new DataView(t);return this.dataViewSet(n,e),t}randomValue(){const e=new Uint8Array(this.size);for(let t=0;t{!function(){function t(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function n(e){this.g=document.createElement("div"),this.g.setAttribute("aria-hidden","true"),this.g.appendChild(document.createTextNode(e)),this.h=document.createElement("span"),this.i=document.createElement("span"),this.m=document.createElement("span"),this.j=document.createElement("span"),this.l=-1,this.h.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.i.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.j.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.m.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.h.appendChild(this.m),this.i.appendChild(this.j),this.g.appendChild(this.h),this.g.appendChild(this.i)}function r(e,t){e.g.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+t+";"}function i(e){var t=e.g.offsetWidth,n=t+100;return e.j.style.width=n+"px",e.i.scrollLeft=n,e.h.scrollLeft=e.h.scrollWidth+100,e.l!==t&&(e.l=t,!0)}function o(e,n){function r(){var e=o;i(e)&&null!==e.g.parentNode&&n(e.l)}var o=e;t(e.h,r),t(e.i,r),i(e)}function a(e,t,n){t=t||{},n=n||window,this.family=e,this.style=t.style||"normal",this.weight=t.weight||"normal",this.stretch=t.stretch||"normal",this.context=n}var s=null,l=null,c=null,u=null;function h(e){return null===u&&(u=!!e.document.fonts),u}function d(e,t){var n=e.style,r=e.weight;if(null===c){var i=document.createElement("div");try{i.style.font="condensed 100px sans-serif"}catch(e){}c=""!==i.style.font}return[n,r,c?e.stretch:"","100px",t].join(" ")}a.prototype.load=function(e,t){var i=this,a=e||"BESbswy",c=0,u=t||3e3,f=(new Date).getTime();return new Promise((function(e,t){if(h(i.context)&&!function(e){return null===l&&(h(e)&&/Apple/.test(window.navigator.vendor)?(e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent),l=!!e&&603>parseInt(e[1],10)):l=!1),l}(i.context)){var p=new Promise((function(e,t){!function n(){(new Date).getTime()-f>=u?t(Error(u+"ms timeout exceeded")):i.context.document.fonts.load(d(i,'"'+i.family+'"'),a).then((function(t){1<=t.length?e():setTimeout(n,25)}),t)}()})),m=new Promise((function(e,t){c=setTimeout((function(){t(Error(u+"ms timeout exceeded"))}),u)}));Promise.race([m,p]).then((function(){clearTimeout(c),e(i)}),t)}else!function(e){document.body?e():document.addEventListener?document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t),e()})):document.attachEvent("onreadystatechange",(function t(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",t),e())}))}((function(){function l(){var t;(t=-1!=g&&-1!=y||-1!=g&&-1!=v||-1!=y&&-1!=v)&&((t=g!=y&&g!=v&&y!=v)||(null===s&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),s=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=s&&(g==b&&y==b&&v==b||g==A&&y==A&&v==A||g==x&&y==x&&v==x)),t=!t),t&&(null!==w.parentNode&&w.parentNode.removeChild(w),clearTimeout(c),e(i))}var h=new n(a),p=new n(a),m=new n(a),g=-1,y=-1,v=-1,b=-1,A=-1,x=-1,w=document.createElement("div");w.dir="ltr",r(h,d(i,"sans-serif")),r(p,d(i,"serif")),r(m,d(i,"monospace")),w.appendChild(h.g),w.appendChild(p.g),w.appendChild(m.g),i.context.document.body.appendChild(w),b=h.g.offsetWidth,A=p.g.offsetWidth,x=m.g.offsetWidth,function e(){if((new Date).getTime()-f>=u)null!==w.parentNode&&w.parentNode.removeChild(w),t(Error(u+"ms timeout exceeded"));else{var n=i.context.document.hidden;!0!==n&&void 0!==n||(g=h.g.offsetWidth,y=p.g.offsetWidth,v=m.g.offsetWidth,l()),c=setTimeout(e,50)}}(),o(h,(function(e){g=e,l()})),r(h,d(i,'"'+i.family+'",sans-serif')),o(p,(function(e){y=e,l()})),r(p,d(i,'"'+i.family+'",serif')),o(m,(function(e){v=e,l()})),r(m,d(i,'"'+i.family+'",monospace'))}))}))},e.exports=a}()},78965:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},79290:e=>{"use strict";e.exports=RangeError},79377:(e,t,n)=>{"use strict";var r=n(30592)(),i=n(30041),o=n(74895);e.exports=function(){var e=o();return String.prototype.trim!==e&&(r?i(String.prototype,"trim",e,!0):i(String.prototype,"trim",e)),e}},79384:(e,t,n)=>{"use strict";e.exports=n.p+"6cecad786ead3ee71218.ttf"},79527:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instanceOf=void 0;var r=n(29657);const i=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=(0,r.inspect)(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};t.instanceOf=i},79538:e=>{"use strict";e.exports=ReferenceError},79612:e=>{"use strict";e.exports=Object},79901:(e,t,n)=>{"use strict";var r=n(70453),i=n(58068),o=n(69675),a=n(36556),s=n(77440),l=r("%Uint8Array%",!0),c=a("Array.prototype.slice"),u=n(25910),h=n(86167),d=n(84670),f=n(37070),p=n(64399),m=n(64097),g=n(45100);e.exports=function(e,t,n,r,a){var y=f(e);if(!d(e)&&!y)throw new o("Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer");if(!s(t))throw new o("Assertion failed: `byteIndex` must be an integer");if("string"!=typeof n||"number"!=typeof m.size["$"+n])throw new o("Assertion failed: `type` must be a Typed Array element type");if("boolean"!=typeof r)throw new o("Assertion failed: `isTypedArray` must be a boolean");if("SEQ-CST"!==a&&"UNORDERED"!==a)throw new o("Assertion failed: `order` must be either `SEQ-CST` or `UNORDERED`");if(arguments.length>5&&"boolean"!=typeof arguments[5])throw new o("Assertion failed: `isLittleEndian` must be a boolean, if present");if(u(e))throw new o("Assertion failed: `arrayBuffer` is detached");if(t<0)throw new o("Assertion failed: `byteIndex` must be non-negative");var v,b=m.size["$"+n];if(!b)throw new o('Assertion failed: `type` must be one of "INT8", "UINT8", "UINT8C", "INT16", "UINT16", "INT32", "UINT32", "BIGINT64", "BIGUINT64", "FLOAT32", or "FLOAT64"');if(y)throw new i("SharedArrayBuffer is not supported by this implementation");v=c(new l(e,t),0,b);var A=arguments.length>5?arguments[5]:"little"===g,x=A?c(p([0,0,0,0,0,0,0,0],v),-b):c(p(v,[0,0,0,0,0,0,0,0]),0,b);return h(n,x,A)}},80326:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=n(73529),o=n(47353),a="/keys",s=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.create=function(t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){return[2,this.apiCall.post(e.RESOURCEPATH,t)]}))}))},e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(a)]}))}))},e.prototype.generateScopedSearchKey=function(e,t){var n=(0,o.normalizeArrayableParams)(t),r=JSON.stringify(n),a=Buffer.from((0,i.createHmac)("sha256",e).update(r).digest("base64")),s=e.substr(0,4),l="".concat(a).concat(s).concat(r);return Buffer.from(l).toString("base64")},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return a},enumerable:!1,configurable:!0}),e}();t.default=s},80639:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.SearchRequestAdapter=void 0;var i=r(n(54756)),o=r(n(91847)),a=r(n(29293)),s=r(n(85715)),l=r(n(17383)),c=r(n(34579)),u=["q","conversation","conversation_id","conversation_model_id"];t.SearchRequestAdapter=function(){return(0,c.default)((function e(t,n,r){(0,l.default)(this,e),this.instantsearchRequests=t,this.typesenseClient=n,this.configuration=r,this.additionalSearchParameters=r.additionalSearchParameters,this.collectionSpecificSearchParameters=r.collectionSpecificSearchParameters}),[{key:"_shouldUseExactMatchForField",value:function(e,t){var n,r;return!1!==(null===(n=this.configuration.collectionSpecificFilterByOptions)||void 0===n||null===(n=n[t])||void 0===n||null===(n=n[e])||void 0===n?void 0:n.exactMatch)&&!1!==(null===(r=this.configuration.filterByOptions)||void 0===r||null===(r=r[e])||void 0===r?void 0:r.exactMatch)}},{key:"_adaptFacetFilters",value:function(e,t){var n=this,r="";return e?r=e.map((function(e){if(Array.isArray(e)){var r={};e.forEach((function(e){var t=n._parseFacetFilter(e),i=t.fieldName,o=t.fieldValue;r[i]=r[i]||[],r[i].push(o)})),Object.keys(r).length>1&&console.error("[Typesense-Instantsearch-Adapter] Typesense does not support cross-field ORs at the moment. The adapter could not OR values between these fields: ".concat(Object.keys(r).join(",")));var i=Object.keys(r)[0],o=r[i].reduce((function(e,t){return t.startsWith("-")&&!n._isNumber(t)?e[0].push(t.substring(1)):e[1].push(t),e}),[[],[]]),a=(0,s.default)(o,2),l=a[0],c=a[1],u=[];if(c.length>0){var h=n._shouldUseExactMatchForField(i,t)?":=":":";u.push("".concat(i).concat(h,"[").concat(c.map((function(e){return n._escapeFacetValue(e)})).join(","),"]"))}if(l.length>0){var d=n._shouldUseExactMatchForField(i,t)?":!=":":!";u.push("".concat(i).concat(d,"[").concat(l.map((function(e){return n._escapeFacetValue(e)})).join(","),"]"))}return u.filter((function(e){return e})).join(" && ")}var f,p=n._parseFacetFilter(e),m=p.fieldName,g=p.fieldValue;if(g.startsWith("-")&&!n._isNumber(g)){var y=n._shouldUseExactMatchForField(m,t)?":!=":":!";f="".concat(m).concat(y,"[").concat(n._escapeFacetValue(g.substring(1)),"]")}else{var v=n._shouldUseExactMatchForField(m,t)?":=":":";f="".concat(m).concat(v,"[").concat(n._escapeFacetValue(g),"]")}return f})).join(" && "):r}},{key:"_parseFacetFilter",value:function(e){var t,n,r,i,o;if((null===(t=this.configuration.facetableFieldsWithSpecialCharacters)||void 0===t?void 0:t.length)>0){var a=this.configuration.facetableFieldsWithSpecialCharacters.flat().map((function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}));if(n=new RegExp("^(".concat(a.join("|"),"):(.*)$")),null!=(r=e.match(n)))return{fieldName:i="".concat(r[1]),fieldValue:o="".concat(r[2])}}return n=this.constructor.DEFAULT_FACET_FILTER_STRING_MATCHING_REGEX,null==(r=e.match(n))?console.error("[Typesense-Instantsearch-Adapter] Parsing failed for a facet filter `".concat(e,"` with the Regex `").concat(n,"`. If you have field names with special characters, be sure to add them to a parameter called `facetableFieldsWithSpecialCharacters` when instantiating the adapter.")):(i="".concat(r[1]).concat(r[2]),o="".concat(r[3])),{fieldName:i,fieldValue:o}}},{key:"_escapeFacetValue",value:function(e){return"boolean"==typeof e||"true"===e||"false"===e||this._isNumber(e)?e:"`".concat(e,"`")}},{key:"_isNumber",value:function(e){return Number.isInteger(e%1)||!!(e%1)}},{key:"_adaptNumericFilters",value:function(e){var t=this,n="";if(!e)return n;var r={};e.forEach((function(e){var n=t._parseNumericFilter(e),i=n.fieldName,o=n.operator,a=n.fieldValue;r[i]=r[i]||{},r[i][o]=a}));var i=[];return Object.keys(r).forEach((function(e){null!=r[e]["<="]&&null!=r[e][">="]?i.push("".concat(e,":=[").concat(r[e][">="],"..").concat(r[e]["<="],"]")):null!=r[e]["<="]?i.push("".concat(e,":<=").concat(r[e]["<="])):null!=r[e][">="]?i.push("".concat(e,":>=").concat(r[e][">="])):null!=r[e]["="]?i.push("".concat(e,":=").concat(r[e]["="])):console.warn("[Typesense-Instantsearch-Adapter] Unsupported operator found ".concat(JSON.stringify(r[e])))})),i.join(" && ")}},{key:"_parseNumericFilter",value:function(e){var t,n,r,i,o,a;if((null===(t=this.configuration.facetableFieldsWithSpecialCharacters)||void 0===t?void 0:t.length)>0){var l=this.configuration.facetableFieldsWithSpecialCharacters.map((function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}));if(n=new RegExp("^(".concat(l.join("|"),")(<=|>=|>|<|=)(.*)$")),null!=(r=e.match(n))){var c=r,u=(0,s.default)(c,4);return{fieldName:i=u[1],operator:o=u[2],fieldValue:a=u[3]}}}if(n=this.constructor.DEFAULT_NUMERIC_FILTER_STRING_MATCHING_REGEX,null==(r=e.match(n)))console.error("[Typesense-Instantsearch-Adapter] Parsing failed for a numeric filter `".concat(e,"` with the Regex `").concat(n,"`. If you have field names with special characters, be sure to add them to a parameter called `facetableFieldsWithSpecialCharacters` when instantiating the adapter."));else{var h=r,d=(0,s.default)(h,4);i=d[1],o=d[2],a=d[3]}return{fieldName:i,operator:o,fieldValue:a}}},{key:"_adaptGeoFilter",value:function(e){var t=e.insideBoundingBox,n=e.aroundRadius,r=e.aroundLatLng,i=e.insidePolygon;if(t){var o,a,l,c;if(Array.isArray(t)){var u=t.flat(),h=(0,s.default)(u,4);o=h[0],a=h[1],l=h[2],c=h[3]}else{var d=t.split(","),f=(0,s.default)(d,4);o=f[0],a=f[1],l=f[2],c=f[3]}return"".concat(this.configuration.geoLocationField,":(").concat(o,", ").concat(a,", ").concat(o,", ").concat(c,", ").concat(l,", ").concat(c,", ").concat(l,", ").concat(a,")")}if(r||n){if(!n||"all"===n)throw new Error("[Typesense-Instantsearch-Adapter] In Typesense, geo-filtering around a lat/lng also requires a numerical radius. So the `aroundRadius` parameter is required when `aroundLatLng` is used. If you intend to just geo-sort around a lat/long, you want to use the sortBy InstantSearch widget (or a virtual sortBy custom widget).");var p="".concat(parseFloat(n)/1e3," km");return"".concat(this.configuration.geoLocationField,":(").concat(r,", ").concat(p,")")}if(i){var m=i;return Array.isArray(i)&&(m=i.flat().join(",")),"".concat(this.configuration.geoLocationField,":(").concat(m,")")}}},{key:"_adaptFilters",value:function(e,t){var n=[];return e.filters&&n.push(e.filters),n.push(this._adaptFacetFilters(e.facetFilters,t)),n.push(this._adaptNumericFilters(e.numericFilters)),n.push(this._adaptGeoFilter(e)),n.filter((function(e){return e&&""!==e})).join(" && ")}},{key:"_adaptIndexName",value:function(e){return e.match(this.constructor.INDEX_NAME_MATCHING_REGEX)[1]}},{key:"_adaptSortBy",value:function(e){return e.match(this.constructor.INDEX_NAME_MATCHING_REGEX)[3]}},{key:"_adaptFacetBy",value:function(e,t){var n=this;return[e].flat().map((function(e){var r;return null!==(r=n.configuration.collectionSpecificFacetByOptions)&&void 0!==r&&null!==(r=r[t])&&void 0!==r&&r[e]?"".concat(e).concat(n.configuration.collectionSpecificFacetByOptions[t][e]):n.configuration.facetByOptions[e]?"".concat(e).concat(n.configuration.facetByOptions[e]):e})).join(",")}},{key:"_adaptRulesContextsToOverrideTags",value:function(e){return e.join(",")}},{key:"_buildSearchParameters",value:function(e){for(var t,n,r=e.params,i=e.indexName,o=this._adaptIndexName(i),a={},l=0,c=Object.entries(this.additionalSearchParameters);l0&&(v.override_tags=this._adaptRulesContextsToOverrideTags(r.ruleContexts)),r.typesenseVectorQuery&&(v.vector_query=r.typesenseVectorQuery);var A=(null===(t=this.configuration.collectionSpecificSortByOptions)||void 0===t||null===(t=t[o])||void 0===t?void 0:t[v.sort_by])||(null===(n=this.configuration.sortByOptions)||void 0===n?void 0:n[v.sort_by]);return null!=(null==A?void 0:A.enable_overrides)&&(v.enable_overrides=A.enable_overrides),Object.fromEntries(Object.entries(v).filter((function(e){var t=(0,s.default)(e,2),n=(t[0],t[1]);return null!=n&&""!==n})))}},{key:"_camelToSnakeCase",value:function(e){return e.split(/(?=[A-Z])/).join("_").toLowerCase()}},{key:"request",value:(e=(0,a.default)(i.default.mark((function e(){var t,n,r,a,s,l,c,h,d,f=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.instantsearchRequests.map((function(e){return f._buildSearchParameters(e)})),a={},!0!==(null===(t=r[0])||void 0===t?void 0:t.conversation)&&"true"!==(null===(n=r[0])||void 0===n?void 0:n.conversation)||(s=r[0],l=s.q,c=s.conversation,h=s.conversation_id,d=s.conversation_model_id,a={q:l,conversation:c,conversation_id:h,conversation_model_id:d},r=r.map((function(e){return e.q,e.conversation,e.conversation_id,e.conversation_model_id,(0,o.default)(e,u)}))),e.abrupt("return",this.typesenseClient.multiSearch.perform({searches:r},a));case 4:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})}],[{key:"INDEX_NAME_MATCHING_REGEX",get:function(){return new RegExp("^(.+?)(?=(/sort/(.*))|$)")}},{key:"DEFAULT_FACET_FILTER_STRING_MATCHING_REGEX",get:function(){return new RegExp("(.*)((?!:).):(?!:)(.*)")}},{key:"DEFAULT_NUMERIC_FILTER_STRING_MATCHING_REGEX",get:function(){return new RegExp("(.*?)(<=|>=|>|<|=)(.*)")}}]);var e}()},81018:()=>{},81104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(87361)),o=function(){function e(e,t){this.collectionName=e,this.apiCall=t}return e.prototype.upsert=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){return[2,this.apiCall.put(this.endpointPath(e),t)]}))}))},e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.endpointPath=function(t){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/synonyms"},enumerable:!1,configurable:!0}),e}();t.default=o},81135:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},81156:e=>{e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},81261:(e,t,n)=>{"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("cross-fade("))return o.map((function(e){return t.replace(i,e+"cross-fade(")}))};var r=n(75486),i=/cross-fade\(/g,o=["-webkit-",""]},81350:(e,t,n)=>{"use strict";var r=n(58968);e.exports=function(e,t){var n=e%t;return r(n>=0?n:n+t)}},81539:(e,t,n)=>{"use strict";var r=n(4761),i=n(21703),o=n(75128),a=n(93612),s=n(39803);e.exports=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e?null:r(e)?"String":i(e)?"Number":o(e)?"Boolean":a(e)?"Symbol":s(e)?"BigInt":void 0}},81859:(e,t,n)=>{"use strict";var r,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(l,{default:()=>u}),e.exports=(r=l,((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a(t))s.call(e,n)||undefined===n||i(e,n,{get:()=>t[n],enumerable:!(r=o(t,n))||r.enumerable});return e})(i({},"__esModule",{value:!0}),r));var c=n(92011);class u{static dataTypes={"2int4":c.DataType_2Uint4,bool:c.DataType_Boolean,flags8:c.DataType_Flags8,float32:c.DataType_Float32,int16:c.DataType_Int16,int24:c.DataType_Int24,int32:c.DataType_Int32,int40:c.DataType_Int40,int48:c.DataType_Int48,int8:c.DataType_Int8,nullable_int16:c.DataType_NullableInt16,nullable_int24:c.DataType_NullableInt24,nullable_int32:c.DataType_NullableInt32,nullable_int40:c.DataType_NullableInt40,nullable_int48:c.DataType_NullableInt48,nullable_int8:c.DataType_NullableInt8,nullable_uint16:c.DataType_NullableUint16,nullable_uint24:c.DataType_NullableUint24,nullable_uint32:c.DataType_NullableUint32,nullable_uint40:c.DataType_NullableUint40,nullable_uint48:c.DataType_NullableUint48,nullable_uint8:c.DataType_NullableUint8,nullstring:c.DataType_Nullstring,string32:c.DataType_String32,uint16_enum:c.DataType_Uint16_Enum,uint16:c.DataType_Uint16,uint24:c.DataType_Uint24,uint32:c.DataType_Uint32,uint40:c.DataType_Uint40,uint48:c.DataType_Uint48,uint8_enum:c.DataType_Uint8_Enum,uint8:c.DataType_Uint8,varstring32:c.DataType_Varstring32,varstring8:c.DataType_Varstring8,varuint:c.DataType_Varuint};fields;constructor(e){this.fields=e.map((([e,t])=>{const n=u.dataTypes[t];if(!n)throw new Error(`Unexpected type: ${t} for field ${e}`);const r=new n(e);return[r.name,r]}))}}},82112:(e,t,n)=>{"use strict";var r,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(l,{networksApiLiveTrafficDiffSchema:()=>c}),e.exports=(r=l,((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a(t))s.call(e,n)||undefined===n||i(e,n,{get:()=>t[n],enumerable:!(r=o(t,n))||r.enumerable});return e})(i({},"__esModule",{value:!0}),r));const c=(new(n(52407).SchemaBuilder)).field("type","enum8",{values:["upsert","remove"]}).field("lat","float32").field("lon","float32").field("alt_true","int24",{signed:!0}).field("heading_true","int16",{signed:!1}).field("key","varstring8").field("source","flags8",{flags:["unknown","simlink","vatsim","ivao"]}).build()},82124:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{default:()=>f}),e.exports=(r=h,u(o({},"__esModule",{value:!0}),r));var d=((e,t,n)=>(n=null!=e?i(l(e)):{},u(e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(40295));class f extends d.default{byteSize=1;randomValue(){throw new Error("Method not implemented.")}decode(e,t){return[0!==e.getUint8(t),1]}encode(e){const t=new ArrayBuffer(1);return new DataView(t).setUint8(0,e?1:0),t}}},82284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},82299:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||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(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function D(e){return Object.keys(e).filter(P).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function j(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i{"use strict";var r=n(54224),i=n(8410),o=n(41003),a=n(63331),s=4294967296;e.exports=function(e){var t=i(e);if(!a(t)||0===t)return 0;var n=o(t),l=r(n,s),c=l>=2147483648?l-s:l;return 0===c?0:c}},82682:(e,t,n)=>{"use strict";var r=n(69600),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a,s;arguments.length>=3&&(a=n),s=e,"[object Array]"===i.call(s)?function(e,t,n){for(var r=0,i=e.length;r{"use strict";var r=n(70453),i={__proto__:null,$Int8Array:r("%Int8Array%",!0),$Uint8Array:r("%Uint8Array%",!0),$Uint8ClampedArray:r("%Uint8ClampedArray%",!0),$Int16Array:r("%Int16Array%",!0),$Uint16Array:r("%Uint16Array%",!0),$Int32Array:r("%Int32Array%",!0),$Uint32Array:r("%Uint32Array%",!0),$BigInt64Array:r("%BigInt64Array%",!0),$BigUint64Array:r("%BigUint64Array%",!0),$Float32Array:r("%Float32Array%",!0),$Float64Array:r("%Float64Array%",!0)};e.exports=function(e){return i["$"+e]}},83185:(e,t,n)=>{"use strict";n.d(t,{A:()=>U});var r=n(98587),i=n(8),o=n(78285),a=(n(90646),function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)}),s=function(e){var t=this;e.destructor(),t.instancePool.length{var t=e.touches,n=e.changedTouches,r=t&&t.length>0,i=n&&n.length>0;return!r&&i?n[0]:r?t[0]:e},C="NOT_RESPONDER",S="RESPONDER_INACTIVE_PRESS_IN",E="RESPONDER_INACTIVE_PRESS_OUT",k="RESPONDER_ACTIVE_PRESS_IN",T="RESPONDER_ACTIVE_PRESS_OUT",I="RESPONDER_ACTIVE_LONG_PRESS_IN",O="RESPONDER_ACTIVE_LONG_PRESS_OUT",R="ERROR",M={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},P=(0,i.A)((0,i.A)({},M),{},{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),D=(0,i.A)((0,i.A)({},M),{},{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),j=(0,i.A)((0,i.A)({},M),{},{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),B="RESPONDER_RELEASE",L="RESPONDER_TERMINATED",F="LONG_PRESS_DETECTED",N={NOT_RESPONDER:{DELAY:R,RESPONDER_GRANT:S,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:R,LEAVE_PRESS_RECT:R,LONG_PRESS_DETECTED:R},RESPONDER_INACTIVE_PRESS_IN:{DELAY:k,RESPONDER_GRANT:R,RESPONDER_RELEASE:C,RESPONDER_TERMINATED:C,ENTER_PRESS_RECT:S,LEAVE_PRESS_RECT:E,LONG_PRESS_DETECTED:R},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:T,RESPONDER_GRANT:R,RESPONDER_RELEASE:C,RESPONDER_TERMINATED:C,ENTER_PRESS_RECT:S,LEAVE_PRESS_RECT:E,LONG_PRESS_DETECTED:R},RESPONDER_ACTIVE_PRESS_IN:{DELAY:R,RESPONDER_GRANT:R,RESPONDER_RELEASE:C,RESPONDER_TERMINATED:C,ENTER_PRESS_RECT:k,LEAVE_PRESS_RECT:T,LONG_PRESS_DETECTED:I},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:R,RESPONDER_GRANT:R,RESPONDER_RELEASE:C,RESPONDER_TERMINATED:C,ENTER_PRESS_RECT:k,LEAVE_PRESS_RECT:T,LONG_PRESS_DETECTED:R},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:R,RESPONDER_GRANT:R,RESPONDER_RELEASE:C,RESPONDER_TERMINATED:C,ENTER_PRESS_RECT:I,LEAVE_PRESS_RECT:O,LONG_PRESS_DETECTED:I},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:R,RESPONDER_GRANT:R,RESPONDER_RELEASE:C,RESPONDER_TERMINATED:C,ENTER_PRESS_RECT:I,LEAVE_PRESS_RECT:O,LONG_PRESS_DETECTED:R},error:{DELAY:C,RESPONDER_GRANT:S,RESPONDER_RELEASE:C,RESPONDER_TERMINATED:C,ENTER_PRESS_RECT:C,LEAVE_PRESS_RECT:C,LONG_PRESS_DETECTED:C}},_={componentDidMount:function(){(0,x.m)("TouchableMixin","TouchableMixin is deprecated. Please use Pressable.");var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&(this._touchableBlurListener=e=>{this._isTouchableKeyboardActive&&(this.state.touchable.touchState&&this.state.touchable.touchState!==C&&this.touchableHandleResponderTerminate({nativeEvent:e}),this._isTouchableKeyboardActive=!1)},e.addEventListener("blur",this._touchableBlurListener))},componentWillUnmount:function(){var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&e.removeEventListener("blur",this._touchableBlurListener),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressInLocation=null,this.state.touchable.responderID=null},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(e){var t=e.currentTarget;e.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=C,this.state.touchable.responderID=t,this._receiveSignal("RESPONDER_GRANT",e);var n=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(n=isNaN(n)?130:n)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,e),n):this._handleDelay(e);var r=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;r=isNaN(r)?370:r,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,e),r+n)},touchableHandleResponderRelease:function(e){this.pressInLocation=null,this._receiveSignal(B,e)},touchableHandleResponderTerminate:function(e){this.pressInLocation=null,this._receiveSignal(L,e)},touchableHandleResponderMove:function(e){if(this.state.touchable.positionOnActivate){var t=this.state.touchable.positionOnActivate,n=this.state.touchable.dimensionsOnActivate,r=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},i=r.left,o=r.top,a=r.right,s=r.bottom,l=this.touchableGetHitSlop?this.touchableGetHitSlop():null;l&&(i+=l.left||0,o+=l.top||0,a+=l.right||0,s+=l.bottom||0);var c=w(e.nativeEvent),u=c&&c.pageX,h=c&&c.pageY;if(this.pressInLocation&&this._getDistanceBetweenPoints(u,h,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout(),u>t.left-i&&h>t.top-o&&u{this.touchableHandleActivePressOut(e)}),this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(e))},touchableHandleKeyEvent:function(e){var t=e.type,n=e.key;"Enter"!==n&&" "!==n||("keydown"===t?this._isTouchableKeyboardActive||this.state.touchable.touchState&&this.state.touchable.touchState!==C||(this.touchableHandleResponderGrant(e),this._isTouchableKeyboardActive=!0):"keyup"===t&&this._isTouchableKeyboardActive&&this.state.touchable.touchState&&this.state.touchable.touchState!==C&&(this.touchableHandleResponderRelease(e),this._isTouchableKeyboardActive=!1),e.stopPropagation(),"Enter"===n&&"link"===o.A.propsToAriaRole(this.props)||e.preventDefault())},withoutDefaultFocusAndBlur:{}},z=(_.touchableHandleFocus,_.touchableHandleBlur,(0,r.A)(_,["touchableHandleFocus","touchableHandleBlur"]));_.withoutDefaultFocusAndBlur=z;var V={Mixin:_,TOUCH_TARGET_DEBUG:!1,renderDebugView:e=>{var t=e.color,n=e.hitSlop;if(!V.TOUCH_TARGET_DEBUG)return null;var r={};for(var o in n=n||{top:0,bottom:0,left:0,right:0})r[o]=-n[o];var a=p()(t);if("number"!=typeof a)return null;var s="#"+("00000000"+a.toString(16)).substr(-8);return v.createElement(A.A,{pointerEvents:"none",style:(0,i.A)({position:"absolute",borderColor:s.slice(0,-2)+"55",borderWidth:1,borderStyle:"dashed",backgroundColor:s.slice(0,-2)+"0F"},r)})}};const U=V},83446:(e,t,n)=>{"use strict";var r=n(70453)("%BigInt%",!0),i=n(75880),o=n(22964),a=n(99969),s=n(40122),l=r&&BigInt(i(2,32))*BigInt(i(2,31)),c=r&&BigInt(i(2,32))*BigInt(i(2,32));e.exports=function(e){var t=o(e),n=s(a,t,c);return n>=l?n-c:n}},83496:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},83684:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(){function e(e){this.apiCall=e}return e.prototype.perform=function(e,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){return[2,this.apiCall.post("".concat("/operations","/").concat(e),{},t)]}))}))},e}();t.default=i},83802:e=>{"use strict";var t,n="function"==typeof Map&&Map.prototype?Map:null,r="function"==typeof Set&&Set.prototype?Set:null;n||(t=function(e){return!1});var i=n?Map.prototype.has:null,o=r?Set.prototype.has:null;t||i||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(i.call(e),o)try{o.call(e)}catch(e){return!0}return e instanceof n}catch(e){}return!1}},84561:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";var r=n(10487),i=n(36556),o=n(70453)("%ArrayBuffer%",!0),a=i("ArrayBuffer.prototype.byteLength",!0),s=i("Object.prototype.toString"),l=!!o&&!a&&new o(0).slice,c=!!l&&r(l);e.exports=a||c?function(e){if(!e||"object"!=typeof e)return!1;try{return a?a(e):c(e,0),!0}catch(e){return!1}}:o?function(e){return"[object ArrayBuffer]"===s(e)}:function(e){return!1}},84769:(e,t,n)=>{"use strict";var r=n(30592),i=n(30655),o=r.hasArrayLengthDefineBug(),a=o&&n(21412),s=n(36556)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,r,l,c){if(!i){if(!e(c))return!1;if(!c["[[Configurable]]"]||!c["[[Writable]]"])return!1;if(l in r&&s(r,l)!==!!c["[[Enumerable]]"])return!1;var u=c["[[Value]]"];return r[l]=u,t(r[l],u)}return o&&"length"===l&&"[[Value]]"in c&&a(r)&&r.length!==c["[[Value]]"]?(r.length=c["[[Value]]"],r.length===c["[[Value]]"]):(i(r,l,n(c)),!0)}},84963:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=new Map;return{setValue:(t,r)=>e.set(t,{type:n,data:r}),setError:(t,n)=>e.set(t,{type:r,data:n}),has:t=>e.has(t),get:t=>{const n=e.get(t);if(!n)return;const{type:i,data:o}=n;if(i===r)throw o;return o}}};const n="value",r="error"},85072:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r{"use strict";t.A=function(e,t){if(r.hasOwnProperty(e)&&i.hasOwnProperty(t))return n.map((function(e){return e+t}))};var n=["-webkit-","-moz-",""],r={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},i={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0}},85243:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(96540).createContext)(!1)},85426:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(25214)),o=function(){function e(e,t){this.id=e,this.apiCall=t}return e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},e}();t.default=o},85462:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{default:()=>f}),e.exports=(r=h,u(o({},"__esModule",{value:!0}),r));var d=((e,t,n)=>(n=null!=e?i(l(e)):{},u(e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(40295));class f extends d.default{byteSize="variable";randomValue(){const e=new Uint8Array(Math.floor(256*Math.random()));for(let t=0;t255)throw new d.EncodeError(`Byte size "${t.byteLength}" not in range [0..255]`);const n=new ArrayBuffer(1+t.byteLength),r=new DataView(n);r.setUint8(0,t.byteLength);for(let e=0;e{var r=n(92987),i=n(81156),o=n(17122),a=n(47752);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},85960:(e,t,n)=>{"use strict";var r=n(32229),i=n(69691),o=n(52376);e.exports={formats:o,parse:i,stringify:r}},85978:()=>{},86152:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(58168),i=n(98587),o=n(67862),a=n(96540),s=n(3098),l=n(8),c=n(9176),u=n(5963),h=n(56074),d=n(90646),f=n.n(d),p=["ItemSeparatorComponent","SectionSeparatorComponent","renderItem","renderSectionFooter","renderSectionHeader","sections","stickySectionHeadersEnabled"];class m extends a.PureComponent{constructor(){super(...arguments),this._keyExtractor=(e,t)=>{var n=this._subExtractor(t);return n&&n.key||String(t)},this._convertViewable=e=>{var t;f()(null!=e.index,"Received a broken ViewToken");var n=this._subExtractor(e.index);if(!n)return null;var r=n.section.keyExtractor,i=this.props.keyExtractor||h.It,o=null!=r?r(e.item,n.index):i(e.item,null!==(t=n.index)&&void 0!==t?t:0);return(0,l.A)((0,l.A)({},e),{},{index:n.index,key:o,section:n.section})},this._onViewableItemsChanged=e=>{var t=e.viewableItems,n=e.changed,r=this.props.onViewableItemsChanged;null!=r&&r({viewableItems:t.map(this._convertViewable,this).filter(Boolean),changed:n.map(this._convertViewable,this).filter(Boolean)})},this._renderItem=e=>t=>{var n=t.item,r=t.index,i=this._subExtractor(r);if(!i)return null;var o=i.index;if(null==o){var s=i.section;if(!0===i.header){var l=this.props.renderSectionHeader;return l?l({section:s}):null}var c=this.props.renderSectionFooter;return c?c({section:s}):null}var u=i.section.renderItem||this.props.renderItem,h=this._getSeparatorComponent(r,i,e);return f()(u,"no renderItem!"),a.createElement(g,{SeparatorComponent:h,LeadingSeparatorComponent:0===o?this.props.SectionSeparatorComponent:void 0,cellKey:i.key,index:o,item:n,leadingItem:i.leadingItem,leadingSection:i.leadingSection,prevCellKey:(this._subExtractor(r-1)||{}).key,setSelfHighlightCallback:this._setUpdateHighlightFor,setSelfUpdatePropsCallback:this._setUpdatePropsFor,updateHighlightFor:this._updateHighlightFor,updatePropsFor:this._updatePropsFor,renderItem:u,section:i.section,trailingItem:i.trailingItem,trailingSection:i.trailingSection,inverted:!!this.props.inverted})},this._updatePropsFor=(e,t)=>{var n=this._updatePropsMap[e];null!=n&&n(t)},this._updateHighlightFor=(e,t)=>{var n=this._updateHighlightMap[e];null!=n&&n(t)},this._setUpdateHighlightFor=(e,t)=>{null!=t?this._updateHighlightMap[e]=t:delete this._updateHighlightFor[e]},this._setUpdatePropsFor=(e,t)=>{null!=t?this._updatePropsMap[e]=t:delete this._updatePropsMap[e]},this._updateHighlightMap={},this._updatePropsMap={},this._captureRef=e=>{this._listRef=e}}scrollToLocation(e){for(var t=e.itemIndex,n=0;n0&&this.props.stickySectionHeadersEnabled&&(r+=this._listRef.__getFrameMetricsApprox(t-e.itemIndex,this._listRef.props).length);var i=(0,l.A)((0,l.A)({},e),{},{viewOffset:r,index:t});this._listRef.scrollToIndex(i)}}getListRef(){return this._listRef}render(){for(var e,t=this.props,n=(t.ItemSeparatorComponent,t.SectionSeparatorComponent,t.renderItem,t.renderSectionFooter,t.renderSectionHeader,t.sections,t.stickySectionHeadersEnabled,(0,i.A)(t,p)),o=this.props.ListHeaderComponent?1:0,l=this.props.stickySectionHeadersEnabled?[]:void 0,c=0,h=(0,s.A)(this.props.sections);!(e=h()).done;){var d=e.value;null!=l&&l.push(c+o),c+=2,c+=this.props.getItemCount(d.data)}var f=this._renderItem(c);return a.createElement(u.A,(0,r.A)({},n,{keyExtractor:this._keyExtractor,stickyHeaderIndices:l,renderItem:f,data:this.props.sections,getItem:(e,t)=>this._getItem(this.props,e,t),getItemCount:()=>c,onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}_getItem(e,t,n){if(!t)return null;for(var r=n-1,i=0;i=i(c)+1))return-1===t?{section:l,key:u+":header",index:null,header:!0,trailingSection:a[s+1]}:t===i(c)?{section:l,key:u+":footer",index:null,header:!1,trailingSection:a[s+1]}:{section:l,key:u+":"+(l.keyExtractor||o||h.It)(r(c,t),t),index:t,leadingItem:r(c,t-1),leadingSection:a[s-1],trailingItem:r(c,t+1),trailingSection:a[s+1]};t-=i(c)+1}}_getSeparatorComponent(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var r=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,i=this.props.SectionSeparatorComponent,o=e===n-1,a=t.index===this.props.getItemCount(t.section.data)-1;return i&&a?i:!r||a||o?null:r}}function g(e){var t=e.LeadingSeparatorComponent,n=e.SeparatorComponent,i=e.cellKey,o=e.prevCellKey,s=e.setSelfHighlightCallback,u=e.updateHighlightFor,h=e.setSelfUpdatePropsCallback,d=e.updatePropsFor,f=e.item,p=e.index,m=e.section,g=e.inverted,y=a.useState(!1),v=y[0],b=y[1],A=a.useState(!1),x=A[0],w=A[1],C=a.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),S=C[0],E=C[1],k=a.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),T=k[0],I=k[1];a.useEffect((()=>(s(i,w),h(i,I),()=>{h(i,null),s(i,null)})),[i,s,I,h]);var O={highlight:()=>{b(!0),w(!0),null!=o&&u(o,!0)},unhighlight:()=>{b(!1),w(!1),null!=o&&u(o,!1)},updateProps:(e,r)=>{"leading"===e?null!=t?E((0,l.A)((0,l.A)({},S),r)):null!=o&&d(o,(0,l.A)((0,l.A)({},S),r)):"trailing"===e&&null!=n&&I((0,l.A)((0,l.A)({},T),r))}},R=e.renderItem({item:f,index:p,section:m,separators:O}),M=null!=t&&a.createElement(t,(0,r.A)({highlighted:v},S)),P=null!=n&&a.createElement(n,(0,r.A)({highlighted:x},T));return M||P?a.createElement(c.A,null,!1===g?M:P,R,!1===g?P:M):R}const y=m;var v=["stickySectionHeadersEnabled"];class b extends a.PureComponent{constructor(){super(...arguments),this._captureRef=e=>{this._wrapperListRef=e}}scrollToLocation(e){null!=this._wrapperListRef&&this._wrapperListRef.scrollToLocation(e)}recordInteraction(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.recordInteraction()}flashScrollIndicators(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.flashScrollIndicators()}getScrollResponder(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollResponder()}getScrollableNode(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollableNode()}render(){var e=this.props,t=e.stickySectionHeadersEnabled,n=(0,i.A)(e,v),s=null!=t?t:"ios"===o.A.OS;return a.createElement(y,(0,r.A)({},n,{stickySectionHeadersEnabled:s,ref:this._captureRef,getItemCount:e=>e.length,getItem:(e,t)=>e[t]}))}}const A=b},86167:(e,t,n)=>{"use strict";var r=n(70453),i=n(36556),o=n(79290),a=n(58068),s=n(69675),l=r("%BigInt%",!0),c=n(42491),u=n(10533),h=n(27881),d=n(49373),f=n(4915),p=n(18968),m=n(96570),g=n(44138),y=n(52158),v=i("Array.prototype.reverse"),b=i("Array.prototype.slice"),A=n(1189),x={__proto__:null,INT8:1,UINT8:1,UINT8C:1,INT16:2,UINT16:2,INT32:4,UINT32:4,BIGINT64:8,BIGUINT64:8,FLOAT32:4,FLOAT64:8};e.exports=function(e,t,n){if(!c(x,e))throw new s("Assertion failed: `type` must be a TypedArray element type: "+A(x));if(!u(t)||!g(t,y))throw new s("Assertion failed: `rawBytes` must be an Array of bytes");if("boolean"!=typeof n)throw new s("Assertion failed: `isLittleEndian` must be a Boolean");var r=x[e];if(t.length!==r)throw new o("Assertion failed: `rawBytes` must have a length of "+r+" for type "+e);var i=h(e);if(i&&!l)throw new a("this environment does not support BigInts");return t=b(t,0,r),n||v(t),"FLOAT32"===e?f(t):"FLOAT64"===e?p(t):m(t,r,d(e),i)}},86425:(e,t,n)=>{"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,{iterator:a,toStringTag:s}=Symbol,l=(c=Object.create(null),e=>{const t=i.call(e);return c[t]||(c[t]=t.slice(8,-1).toLowerCase())});var c;const u=e=>(e=e.toLowerCase(),t=>l(t)===e),h=e=>t=>typeof t===e,{isArray:d}=Array,f=h("undefined"),p=u("ArrayBuffer"),m=h("string"),g=h("function"),y=h("number"),v=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==l(e))return!1;const t=o(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||s in e||a in e)},A=u("Date"),x=u("File"),w=u("Blob"),C=u("FileList"),S=u("URLSearchParams"),[E,k,T,I]=["ReadableStream","Request","Response","Headers"].map(u);function O(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),d(e))for(r=0,i=e.length;r0;)if(r=n[i],t===r.toLowerCase())return r;return null}const M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,P=e=>!f(e)&&e!==M,D=(j="undefined"!=typeof Uint8Array&&o(Uint8Array),e=>j&&e instanceof j);var j;const B=u("HTMLFormElement"),L=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),F=u("RegExp"),N=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};O(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},_=u("AsyncFunction"),z=(V="function"==typeof setImmediate,U=g(M.postMessage),V?setImmediate:U?(H=`axios@${Math.random()}`,q=[],M.addEventListener("message",(({source:e,data:t})=>{e===M&&t===H&&q.length&&q.shift()()}),!1),e=>{q.push(e),M.postMessage(H,"*")}):e=>setTimeout(e));var V,U,H,q;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(M):{env:{}}.nextTick||z;var Y={isArray:d,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||g(e.append)&&("formdata"===(t=l(e))||"object"===t&&g(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:m,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:v,isPlainObject:b,isReadableStream:E,isRequest:k,isResponse:T,isHeaders:I,isUndefined:f,isDate:A,isFile:x,isBlob:w,isRegExp:F,isFunction:g,isStream:e=>v(e)&&g(e.pipe),isURLSearchParams:S,isTypedArray:D,isFileList:C,forEach:O,merge:function e(){const{caseless:t}=P(this)&&this||{},n={},r=(r,i)=>{const o=t&&R(n,i)||i;b(n[o])&&b(r)?n[o]=e(n[o],r):b(r)?n[o]=e({},r):d(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e(O(t,((t,i)=>{n&&g(t)?e[i]=r(t,n):e[i]=t}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,a,s;const l={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],r&&!r(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==n&&o(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:u,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[a]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:B,hasOwnProperty:L,hasOwnProp:L,reduceDescriptors:N,freezeMethods:e=>{N(e,((t,n)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];g(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return d(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:R,global:M,isContextDefined:P,isSpecCompliantForm:function(e){return!!(e&&g(e.append)&&"FormData"===e[s]&&e[a])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(v(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=d(e)?[]:{};return O(e,((e,t)=>{const o=n(e,r+1);!f(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:_,isThenable:e=>e&&(v(e)||g(e))&&g(e.then)&&g(e.catch),setImmediate:z,asap:G,isIterable:e=>null!=e&&g(e[a])};function W(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Y.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});const Q=W.prototype,X={};function J(e){return Y.isPlainObject(e)||Y.isArray(e)}function Z(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function K(e,t,n){return e?e.concat(t).map((function(e,t){return e=Z(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{X[e]={value:e}})),Object.defineProperties(W,X),Object.defineProperty(Q,"isAxiosError",{value:!0}),W.from=(e,t,n,r,i,o)=>{const a=Object.create(Q);return Y.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),W.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const $=Y.toFlatObject(Y,{},null,(function(e){return/^is[A-Z]/.test(e)}));function ee(e,t,n){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Y.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Y.isDate(e))return e.toISOString();if(!s&&Y.isBlob(e))throw new W("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(e)||Y.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(Y.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Y.isArray(e)&&function(e){return Y.isArray(e)&&!e.some(J)}(e)||(Y.isFileList(e)||Y.endsWith(n,"[]"))&&(s=Y.toArray(e)))return n=Z(n),s.forEach((function(e,r){!Y.isUndefined(e)&&null!==e&&t.append(!0===a?K([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!J(e)||(t.append(K(i,n,o),l(e)),!1)}const u=[],h=Object.assign($,{defaultVisitor:c,convertValue:l,isVisitable:J});if(!Y.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Y.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Y.forEach(n,(function(n,o){!0===(!(Y.isUndefined(n)||null===n)&&i.call(t,n,Y.isString(o)?o.trim():o,r,h))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t}function te(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ne(e,t){this._pairs=[],e&&ee(e,this,t)}const re=ne.prototype;function ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oe(e,t,n){if(!t)return e;const r=n&&n.encode||ie;Y.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(o=i?i(t,n):Y.isURLSearchParams(t)?t.toString():new ne(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}re.append=function(e,t){this._pairs.push([e,t])},re.toString=function(e){const t=e?function(t){return e.call(this,t,te)}:te;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ae=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Y.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},se={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},le={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ce="undefined"!=typeof window&&"undefined"!=typeof document,ue="object"==typeof navigator&&navigator||void 0,he=ce&&(!ue||["ReactNative","NativeScript","NS"].indexOf(ue.product)<0),de="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fe=ce&&window.location.href||"http://localhost";var pe={...Object.freeze({__proto__:null,hasBrowserEnv:ce,hasStandardBrowserWebWorkerEnv:de,hasStandardBrowserEnv:he,navigator:ue,origin:fe}),...le};function me(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;return o=!o&&Y.isArray(r)?r.length:o,s?(Y.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&Y.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&Y.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r{t(function(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ge={transitional:se,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=Y.isObject(e);if(i&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return r?JSON.stringify(me(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ee(e,new pe.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return pe.isNode&&Y.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=Y.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ee(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e){if(Y.isString(e))try{return(0,JSON.parse)(e),Y.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ge.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw W.from(e,W.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],(e=>{ge.headers[e]={}}));var ye=ge;const ve=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),be=Symbol("internals");function Ae(e){return e&&String(e).trim().toLowerCase()}function xe(e){return!1===e||null==e?e:Y.isArray(e)?e.map(xe):String(e)}function we(e,t,n,r,i){return Y.isFunction(r)?r.call(this,t,n):(i&&(t=n),Y.isString(t)?Y.isString(r)?-1!==t.indexOf(r):Y.isRegExp(r)?r.test(t):void 0:void 0)}class Ce{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Ae(t);if(!i)throw new Error("header name must be a non-empty string");const o=Y.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=xe(e))}const o=(e,t)=>Y.forEach(e,((e,n)=>i(e,n,t)));if(Y.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(Y.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&ve[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Y.isObject(e)&&Y.isIterable(e)){let n,r,i={};for(const t of e){if(!Y.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[r=t[0]]=(n=i[r])?Y.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=Ae(e)){const n=Y.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Y.isFunction(t))return t.call(this,e,n);if(Y.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ae(e)){const n=Y.findKey(this,e);return!(!n||void 0===this[n]||t&&!we(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Ae(e)){const i=Y.findKey(n,e);!i||t&&!we(0,n[i],i,t)||(delete n[i],r=!0)}}return Y.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!we(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return Y.forEach(this,((r,i)=>{const o=Y.findKey(n,i);if(o)return t[o]=xe(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=xe(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Y.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Y.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[be]=this[be]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ae(e);t[r]||(function(e,t){const n=Y.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return Y.isArray(e)?e.forEach(r):r(e),this}}Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(Ce.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Y.freezeMethods(Ce);var Se=Ce;function Ee(e,t){const n=this||ye,r=t||n,i=Se.from(r.headers);let o=r.data;return Y.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function ke(e){return!(!e||!e.__CANCEL__)}function Te(e,t,n){W.call(this,null==e?"canceled":e,W.ERR_CANCELED,t,n),this.name="CanceledError"}function Ie(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Y.inherits(Te,W,{__CANCEL__:!0});const Oe=(e,t,n=3)=>{let r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];i||(i=l),n[o]=s,r[o]=l;let u=a,h=0;for(;u!==o;)h+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),o-s)))},()=>n&&a(n)]}((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Re=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Me=e=>(...t)=>Y.asap((()=>e(...t)));var Pe=pe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,pe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(pe.origin),pe.navigator&&/(msie|trident)/i.test(pe.navigator.userAgent)):()=>!0,De=pe.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];Y.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&a.push("path="+r),Y.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function je(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Be=e=>e instanceof Se?{...e}:e;function Le(e,t){t=t||{};const n={};function r(e,t,n,r){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:r},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function i(e,t,n,i){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!Y.isUndefined(t))return r(void 0,t)}function a(e,t){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(Be(e),Be(t),0,!0)};return Y.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,a=o(e[r],t[r],r);Y.isUndefined(a)&&o!==s||(n[r]=a)})),n}var Fe=e=>{const t=Le({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Se.from(s),t.url=oe(je(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Y.isFormData(r))if(pe.hasStandardBrowserEnv||pe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(pe.hasStandardBrowserEnv&&(i&&Y.isFunction(i)&&(i=i(t)),i||!1!==i&&Pe(t.url))){const e=o&&a&&De.read(a);e&&s.set(o,e)}return t},Ne="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Fe(e);let i=r.data;const o=Se.from(r.headers).normalize();let a,s,l,c,u,{responseType:h,onUploadProgress:d,onDownloadProgress:f}=r;function p(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Se.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ie((function(e){t(e),p()}),(function(e){n(e),p()}),{data:h&&"text"!==h&&"json"!==h?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new W("Request aborted",W.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new W("Network Error",W.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||se;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new W(t,i.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&Y.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),Y.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),h&&"json"!==h&&(m.responseType=r.responseType),f&&([l,u]=Oe(f,!0),m.addEventListener("progress",l)),d&&m.upload&&([s,c]=Oe(d),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Te(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===pe.protocols.indexOf(y)?n(new W("Unsupported protocol "+y+":",W.ERR_BAD_REQUEST,e)):m.send(i||null)}))},_e=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof W?t:new Te(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,i(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))}),t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=r;return s.unsubscribe=()=>Y.asap(a),s}};const ze=function*(e,t){let n=e.byteLength;if(!t||n{const i=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*ze(n,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},Ue="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,He=Ue&&"function"==typeof ReadableStream,qe=Ue&&("function"==typeof TextEncoder?(Ge=new TextEncoder,e=>Ge.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ge;const Ye=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},We=He&&Ye((()=>{let e=!1;const t=new Request(pe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Qe=He&&Ye((()=>Y.isReadableStream(new Response("").body))),Xe={stream:Qe&&(e=>e.body)};var Je;Ue&&(Je=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Xe[e]&&(Xe[e]=Y.isFunction(Je[e])?t=>t[e]():(t,n)=>{throw new W(`Response type '${e}' is not supported`,W.ERR_NOT_SUPPORT,n)})})));const Ze={http:null,xhr:Ne,fetch:Ue&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:h="same-origin",fetchOptions:d}=Fe(e);c=c?(c+"").toLowerCase():"text";let f,p=_e([i,o&&o.toAbortSignal()],a);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(l&&We&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=Y.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e)){const t=new Request(pe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Y.isArrayBufferView(e)||Y.isArrayBuffer(e)?e.byteLength:(Y.isURLSearchParams(e)&&(e+=""),Y.isString(e)?(await qe(e)).byteLength:void 0)})(t):n})(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Y.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Re(g,Oe(Me(l)));r=Ve(n.body,65536,e,t)}}Y.isString(h)||(h=h?"include":"omit");const i="credentials"in Request.prototype;f=new Request(t,{...d,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:i?h:void 0});let o=await fetch(f);const a=Qe&&("stream"===c||"response"===c);if(Qe&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Y.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&Re(t,Oe(Me(s),!0))||[];o=new Response(Ve(o.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let y=await Xe[Y.findKey(Xe,c)||"text"](o,e);return!a&&m&&m(),await new Promise(((t,n)=>{Ie(t,n,{data:y,headers:Se.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:f})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,e,f),{cause:t.cause||t});throw W.from(t,t&&t.code,e,f)}})};Y.forEach(Ze,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ke=e=>`- ${e}`,$e=e=>Y.isFunction(e)||null===e||!1===e;var et=e=>{e=Y.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new W("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ke).join("\n"):" "+Ke(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function tt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Te(null,e)}function nt(e){return tt(e),e.headers=Se.from(e.headers),e.data=Ee.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),et(e.adapter||ye.adapter)(e).then((function(t){return tt(e),t.data=Ee.call(e,e.transformResponse,t),t.headers=Se.from(t.headers),t}),(function(t){return ke(t)||(tt(e),t&&t.response&&(t.response.data=Ee.call(e,e.transformResponse,t.response),t.response.headers=Se.from(t.response.headers))),Promise.reject(t)}))}const rt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{rt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const it={};rt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.9.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new W(r(i," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!it[i]&&(it[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},rt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var ot={assertOptions:function(e,t,n){if("object"!=typeof e)throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new W("option "+o+" must be "+n,W.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new W("Unknown option "+o,W.ERR_BAD_OPTION)}},validators:rt};const at=ot.validators;class st{constructor(e){this.defaults=e||{},this.interceptors={request:new ae,response:new ae}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Le(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&ot.assertOptions(n,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),null!=r&&(Y.isFunction(r)?t.paramsSerializer={serialize:r}:ot.assertOptions(r,{encode:at.function,serialize:at.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ot.assertOptions(t,{baseUrl:at.spelling("baseURL"),withXsrfToken:at.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&Y.merge(i.common,i[t.method]);i&&Y.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Se.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,h=0;if(!s){const e=[nt.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);h{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Te(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ct((function(t){e=t})),cancel:e}}}var ut=ct;const ht={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ht).forEach((([e,t])=>{ht[t]=e}));var dt=ht;const ft=function e(t){const n=new lt(t),i=r(lt.prototype.request,n);return Y.extend(i,lt.prototype,n,{allOwnKeys:!0}),Y.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(Le(t,n))},i}(ye);ft.Axios=lt,ft.CanceledError=Te,ft.CancelToken=ut,ft.isCancel=ke,ft.VERSION="1.9.0",ft.toFormData=ee,ft.AxiosError=W,ft.Cancel=ft.CanceledError,ft.all=function(e){return Promise.all(e)},ft.spread=function(e){return function(t){return e.apply(null,t)}},ft.isAxiosError=function(e){return Y.isObject(e)&&!0===e.isAxiosError},ft.mergeConfig=Le,ft.AxiosHeaders=Se,ft.formToJSON=e=>me(Y.isHTMLForm(e)?new FormData(e):e),ft.getAdapter=et,ft.HttpStatusCode=dt,ft.default=ft,e.exports=ft},86533:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r="DELAY",i="ERROR",o="LONG_PRESS_DETECTED",a="NOT_RESPONDER",s="RESPONDER_ACTIVE_LONG_PRESS_START",l="RESPONDER_ACTIVE_PRESS_START",c="RESPONDER_INACTIVE_PRESS_START",u="RESPONDER_RELEASE",h="RESPONDER_TERMINATED",d=Object.freeze({NOT_RESPONDER:{DELAY:i,RESPONDER_GRANT:c,RESPONDER_RELEASE:i,RESPONDER_TERMINATED:i,LONG_PRESS_DETECTED:i},RESPONDER_INACTIVE_PRESS_START:{DELAY:l,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:i},RESPONDER_ACTIVE_PRESS_START:{DELAY:i,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:s},RESPONDER_ACTIVE_LONG_PRESS_START:{DELAY:i,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:s},ERROR:{DELAY:a,RESPONDER_GRANT:c,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:a}}),f=e=>e.getAttribute("role"),p=e=>e.tagName.toLowerCase(),m=e=>e===l||e===s,g=e=>"button"===f(e),y=e=>e===c||e===l||e===s,v=e=>{var t=e.key,n=e.target,r=" "===t||"Spacebar"===t,i="button"===p(n)||g(n);return"Enter"===t||r&&i};class b{constructor(e){this._eventHandlers=null,this._isPointerTouch=!1,this._longPressDelayTimeout=null,this._longPressDispatched=!1,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._touchState=a,this._responderElement=null,this.configure(e)}configure(e){this._config=e}reset(){this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout()}getEventHandlers(){return null==this._eventHandlers&&(this._eventHandlers=this._createEventHandlers()),this._eventHandlers}_createEventHandlers(){var e=(e,t)=>{e.persist(),this._cancelPressOutDelayTimeout(),this._longPressDispatched=!1,this._selectionTerminated=!1,this._touchState=a,this._isPointerTouch="touchstart"===e.nativeEvent.type,this._receiveSignal("RESPONDER_GRANT",e);var n=A(this._config.delayPressStart,0,50);!1!==t&&n>0?this._pressDelayTimeout=setTimeout((()=>{this._receiveSignal(r,e)}),n):this._receiveSignal(r,e);var i=A(this._config.delayLongPress,10,450);this._longPressDelayTimeout=setTimeout((()=>{this._handleLongPress(e)}),i+n)},t=e=>{this._receiveSignal(u,e)},n=e=>{var r=this._config.onPress,i=e.target;if(this._touchState!==a&&v(e)){t(e),document.removeEventListener("keyup",n);var o=i.getAttribute("role"),s=p(i),l="link"===o||"a"===s||"button"===s||"input"===s||"select"===s||"textarea"===s,c=this._responderElement===i;null!=r&&!l&&c&&r(e),this._responderElement=null}};return{onStartShouldSetResponder:e=>{var t=this._config.disabled;return t&&g(e.currentTarget)&&e.stopPropagation(),null==t||!t},onKeyDown:t=>{var r=this._config.disabled,i=t.key,o=t.target;if(!r&&v(t)){this._touchState===a&&(e(t,!1),this._responderElement=o,document.addEventListener("keyup",n));var s=" "===i||"Spacebar"===i,l=f(o);s&&("button"===l||"menuitem"===l)&&"button"!==p(o)&&t.preventDefault(),t.stopPropagation()}},onResponderGrant:t=>e(t),onResponderMove:e=>{null!=this._config.onPressMove&&this._config.onPressMove(e);var t=x(e);if(null!=this._touchActivatePosition){var n=this._touchActivatePosition.pageX-t.pageX,r=this._touchActivatePosition.pageY-t.pageY;Math.hypot(n,r)>10&&this._cancelLongPressDelayTimeout()}},onResponderRelease:e=>t(e),onResponderTerminate:e=>{"selectionchange"===e.nativeEvent.type&&(this._selectionTerminated=!0),this._receiveSignal(h,e)},onResponderTerminationRequest:e=>{var t=this._config,n=t.cancelable,r=t.disabled,i=t.onLongPress;return!(!r&&null!=i&&this._isPointerTouch&&"contextmenu"===e.nativeEvent.type)&&(null==n||n)},onClick:e=>{var t=this._config,n=t.disabled,r=t.onPress;n?g(e.currentTarget)&&e.stopPropagation():(e.stopPropagation(),this._longPressDispatched||this._selectionTerminated?e.preventDefault():null!=r&&!1===e.altKey&&r(e))},onContextMenu:e=>{var t=this._config,n=t.disabled,r=t.onLongPress;n?g(e.currentTarget)&&e.stopPropagation():null!=r&&this._isPointerTouch&&!e.defaultPrevented&&(e.preventDefault(),e.stopPropagation())}}}_receiveSignal(e,t){var n=this._touchState,r=null;null!=d[n]&&(r=d[n][e]),this._touchState===a&&e===u||(null==r||r===i?console.error("PressResponder: Invalid signal "+e+" for state "+n+" on responder"):n!==r&&(this._performTransitionSideEffects(n,r,e,t),this._touchState=r))}_performTransitionSideEffects(e,t,n,r){if((e=>e===h||e===u)(n)&&(setTimeout((()=>{this._isPointerTouch=!1}),0),this._touchActivatePosition=null,this._cancelLongPressDelayTimeout()),y(e)&&n===o){var i=this._config.onLongPress;null!=i&&null==r.nativeEvent.key&&(i(r),this._longPressDispatched=!0)}var a=m(e),l=m(t);if(!a&&l?this._activate(r):a&&!l&&this._deactivate(r),y(e)&&n===u){var c=this._config,d=c.onLongPress;null!=c.onPress&&(null!=d&&e===s||l||a||(this._activate(r),this._deactivate(r)))}this._cancelPressDelayTimeout()}_activate(e){var t=this._config,n=t.onPressChange,r=t.onPressStart,i=x(e);this._touchActivatePosition={pageX:i.pageX,pageY:i.pageY},null!=r&&r(e),null!=n&&n(!0)}_deactivate(e){var t=this._config,n=t.onPressChange,r=t.onPressEnd;function i(){null!=r&&r(e),null!=n&&n(!1)}var o=A(this._config.delayPressEnd);o>0?this._pressOutDelayTimeout=setTimeout((()=>{i()}),o):i()}_handleLongPress(e){this._touchState!==l&&this._touchState!==s||this._receiveSignal(o,e)}_cancelLongPressDelayTimeout(){null!=this._longPressDelayTimeout&&(clearTimeout(this._longPressDelayTimeout),this._longPressDelayTimeout=null)}_cancelPressDelayTimeout(){null!=this._pressDelayTimeout&&(clearTimeout(this._pressDelayTimeout),this._pressDelayTimeout=null)}_cancelPressOutDelayTimeout(){null!=this._pressOutDelayTimeout&&(clearTimeout(this._pressOutDelayTimeout),this._pressOutDelayTimeout=null)}}function A(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),Math.max(t,null!=e?e:n)}function x(e){var t=e.nativeEvent,n=t.changedTouches,r=t.touches;return null!=r&&r.length>0?r[0]:null!=n&&n.length>0?n[0]:e.nativeEvent}var w=n(96540);function C(e,t){var n=(0,w.useRef)(null);null==n.current&&(n.current=new b(t));var r=n.current;return(0,w.useEffect)((()=>{r.configure(t)}),[t,r]),(0,w.useEffect)((()=>()=>{r.reset()}),[r]),(0,w.useDebugValue)(t),r.getEventHandlers()}},86600:e=>{"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},86610:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2901);const i=function(e,t){if(void 0===t&&(t=1),null!=e){if("string"==typeof e&&(e=>"currentcolor"===e||"currentColor"===e||"inherit"===e||0===e.indexOf("var("))(e))return e;var n=(0,r.A)(e);if(null!=n)return"rgba("+(n>>16&255)+","+(n>>8&255)+","+(255&n)+","+((n>>24&255)/255*t).toFixed(2)+")"}}},86663:(e,t,n)=>{"use strict";const r=n(24280),i=n(30454),o=n(528),a=n(73055),s=Symbol("encodeFragmentIdentifier");function l(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function h(e){return Array.isArray(e)?e.sort():"object"==typeof e?h(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function d(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=d(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&u(n,e).includes(e.arrayFormatSeparator);n=o?u(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?u(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],o):r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=p(n[e],t);else r[e]=p(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=h(n):e[t]=n,e}),Object.create(null))}t.extract=f,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",i,"]"].join("")]:[...n,[c(t,e),"[",c(i,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),":list="].join("")]:[...n,[c(t,e),":list=",c(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[c(n,e),t,c(i,e)].join("")]:[[r,c(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?c(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?c(n,t)+"[]":i.reduce(r(n),[]).join("&"):c(n,t)+"="+c(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:m(f(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=d(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let l=t.stringify(a,n);l&&(l=`?${l}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[s]?c(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${l}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:l}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:l},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},86681:(e,t,n)=>{"use strict";var r=n(69675),i=n(27149),o=n(25910),a=n(35680),s=n(74372);e.exports=function(e,t){if(!a(e))throw new r("Assertion failed: `obj` must be a Typed Array");if("SEQ-CST"!==t&&"UNORDERED"!==t)throw new r("Assertion failed: `order` must be ~SEQ-CST~ or ~UNORDERED~");var n=s(e);return{"[[Object]]":e,"[[CachedBufferByteLength]]":o(n)?"DETACHED":i(n,t)}}},87050:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var r=n(71354),i=n.n(r),o=n(76314),a=n.n(o),s=n(4417),l=n.n(s),c=new URL(n(38233),n.b),u=new URL(n(11518),n.b),h=new URL(n(22102),n.b),d=new URL(n(62020),n.b),f=new URL(n(26785),n.b),p=new URL(n(74647),n.b),m=new URL(n(23117),n.b),g=new URL(n(77247),n.b),y=new URL(n(23984),n.b),v=new URL(n(67598),n.b),b=new URL(n(79384),n.b),A=new URL(n(47009),n.b),x=a()(i()),w=l()(c),C=l()(u),S=l()(h),E=l()(d),k=l()(f),T=l()(p),I=l()(m),O=l()(g),R=l()(y),M=l()(v),P=l()(b),D=l()(A);x.push([e.id,`html,\nbody {\n height: 100%;\n overflow: hidden;\n}\n\n#root {\n height: 100%;\n display: flex;\n -webkit-font-smoothing: antialiased;\n -moz-font-smoothing: antialiased;\n -o-font-smoothing: antialiased;\n}\n\n@supports (-webkit-touch-callout: none) {\n\n html,\n body,\n #root {\n height: -webkit-fill-available !important;\n }\n}\n\n.mapboxgl-popup-content {\n background: transparent !important;\n border-radius: 5px !important;\n border: 2px solid #6a6a6d;\n padding: 0 !important;\n}\n\n.mapboxgl-ctrl-top-right .mapboxgl-ctrl-group,\n.leaflet-mapboxgl-ctrl {\n display: flex;\n box-sizing: border-box;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 40px;\n margin: 8px 8px 0 0 !important;\n background: #222f42;\n border: 1px solid #2e3f59;\n border-radius: 10px;\n padding: 4px;\n gap: 4px;\n}\n\n.mapboxgl-ctrl-top-right .mapboxgl-ctrl-group button,\n.leaflet-mapboxgl-ctrl button {\n box-sizing: border-box;\n background: #333f52;\n border: 1px solid #374458;\n box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);\n border-radius: 8px;\n width: 32px;\n height: 32px;\n}\n\n@supports not (gap: 4px) {\n .leaflet-mapboxgl-ctrl button:not(:last-child) {\n margin-bottom: 4px;\n }\n}\n\n.mapboxgl-ctrl-scale,\n.leaflet-control-scale-line {\n font-weight: 600;\n font-size: 9px;\n line-height: 11.7px;\n border-bottom: 0px;\n color: #000;\n text-align: center;\n padding: 1px 6px 1px 6px;\n}\n\n.mapboxgl-ctrl-icon {\n display: block;\n width: 100%;\n height: 100%;\n background-repeat: no-repeat;\n background-position: 50%;\n}\n\n.mapboxgl-ctrl-group:not(:empty) {\n box-shadow: none;\n}\n\n.mapboxgl-ctrl-group button:focus:last-child {\n border-radius: 8px;\n}\n\n.mapboxgl-ctrl-group button:focus:first-child {\n border-radius: 8px;\n}\n\n.mapboxgl-ctrl-bottom-right,\n.leaflet-control-container .leaflet-bottom.leaflet-right {\n margin-bottom: 22px;\n}\n\n.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon {\n background-image: url(${w}) !important;\n}\n\n.mapboxgl-ctrl-zoom-in:hover {\n background: #1d5995 !important;\n}\n\n.mapboxgl-ctrl-zoom-in:active {\n background: #1f5f9e !important;\n}\n\n.mapboxgl-ctrl-zoom-out {\n border-top: none !important;\n}\n\n.mapboxgl-ctrl-zoom-out:hover {\n background: #1d5995 !important;\n}\n\n.mapboxgl-ctrl-zoom-out:active {\n background: #1f5f9e !important;\n}\n\n.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon {\n background-image: url(${C}) !important;\n}\n\n.mapboxgl-ctrl-compass {\n border-top: none !important;\n}\n\n.mapboxgl-ctrl-compass:hover {\n background: #1d5995 !important;\n}\n\n.mapboxgl-ctrl-compass:active {\n background: #1f5f9e !important;\n}\n\n.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon {\n background-image: url(${S}) !important;\n}\n\n.mapboxgl-ctrl,\n.leaflet-control-scale-line {\n font-family: Inter, sans-serif;\n}\n\n.react-simple-keyboard {\n background-color: #27364d !important;\n}\n\n.hg-button {\n color: #fff !important;\n}\n\n.hg-standardBtn {\n background-color: #374458 !important;\n}\n\n.hg-standardBtn:hover {\n background-color: #3b495e !important;\n}\n\n.hg-functionBtn {\n background-color: #3f4e64 !important;\n}\n\n.hg-functionBtn:hover {\n background-color: #43536b !important;\n}\n\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 400;\n src: url(${E}) format("truetype");\n}\n\n@font-face {\n font-family: "Inter-Regular";\n font-style: normal;\n font-weight: 400;\n src: url(${E}) format("truetype");\n}\n\n@font-face {\n font-family: "Inter-Medium";\n font-style: normal;\n font-weight: 500;\n src: url(${k}) format("truetype");\n}\n\n@font-face {\n font-family: "Inter-SemiBold";\n font-style: normal;\n font-weight: 600;\n src: url(${T}) format("truetype");\n}\n\n@font-face {\n font-family: "Inter-Bold";\n font-style: bold;\n font-weight: 700;\n src: url(${I}) format("truetype");\n}\n\n@font-face {\n font-family: "FiraCode";\n font-style: normal;\n font-weight: 400;\n src: url(${O}) format("truetype");\n}\n\n@font-face {\n font-family: "FiraCode-Regular";\n font-style: normal;\n font-weight: 400;\n src: url(${O}) format("truetype");\n}\n\n@font-face {\n font-family: "FiraCode-Medium";\n font-style: normal;\n font-weight: 500;\n src: url(${R}) format("truetype");\n}\n\n@font-face {\n font-family: "FiraCode-SemiBold";\n font-style: normal;\n font-weight: 600;\n src: url(${M}) format("truetype");\n}\n\n@font-face {\n font-family: "Metropolis-SemiBold";\n font-style: normal;\n font-weight: 600;\n src: url(${P}) format("truetype");\n}\n\n@font-face {\n font-family: "Metropolis-Bold";\n font-style: normal;\n font-weight: 700;\n src: url(${D}) format("truetype");\n}\n\n\n\n::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n border-radius: 11px;\n background: #2e3f59;\n /* Dark/Background/200 */\n}\n\n::-webkit-scrollbar:hover {\n box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.4);\n}\n\n/* Handle */\n::-webkit-scrollbar-thumb {\n background: #2369af;\n /* Dark/Blue/100 */\n border: 1px solid #287bcc;\n /* Dark/Blue/ 25 */\n border-radius: 12px;\n box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.35);\n}\n\n* {\n scrollbar-color: #2369af #2e3f59;\n /* Dark/Blue/100 */\n scrollbar-width: thin;\n}\n\n*:hover::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n background: #2e3f59;\n /* Dark/Background/200 */\n box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.4);\n}\n\ninput,\ntextarea,\nbutton {\n outline-width: 0px;\n outline: 0;\n}\n\n.map-container {\n height: 100%;\n flex: 1;\n}\n\n.map-container.night .mapboxgl-ctrl-scale {\n background-color: hsla(0, 0%, 0%, 0.6);\n color: #ddd;\n border: 2px solid #ddd;\n border-top: #ddd;\n}\n\n.map-container.mobile .mapboxgl-ctrl-bottom-right {\n margin-bottom: 36px;\n}\n\n.map-container.mobile .mapboxgl-ctrl-bottom-left {\n margin-bottom: 15px;\n}\n\na {\n margin: 0.22rem;\n text-decoration: none;\n color: #2064a6;\n}\n\n.non-scaled-wrapper {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n}\n\n.small-key {\n flex: 0 0 50px;\n max-width: 50px;\n min-width: 50px;\n padding: 0 6px;\n}`,"",{version:3,sources:["webpack://./web/global.css"],names:[],mappings:"AAAA;;EAEE,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,YAAY;EACZ,aAAa;EACb,mCAAmC;EACnC,gCAAgC;EAChC,8BAA8B;AAChC;;AAEA;;EAEE;;;IAGE,yCAAyC;EAC3C;AACF;;AAEA;EACE,kCAAkC;EAClC,6BAA6B;EAC7B,yBAAyB;EACzB,qBAAqB;AACvB;;AAEA;;EAEE,aAAa;EACb,sBAAsB;EACtB,sBAAsB;EACtB,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,8BAA8B;EAC9B,mBAAmB;EACnB,yBAAyB;EACzB,mBAAmB;EACnB,YAAY;EACZ,QAAQ;AACV;;AAEA;;EAEE,sBAAsB;EACtB,mBAAmB;EACnB,yBAAyB;EACzB,2CAA2C;EAC3C,kBAAkB;EAClB,WAAW;EACX,YAAY;AACd;;AAEA;EACE;IACE,kBAAkB;EACpB;AACF;;AAEA;;EAEE,gBAAgB;EAChB,cAAc;EACd,mBAAmB;EACnB,kBAAkB;EAClB,WAAW;EACX,kBAAkB;EAClB,wBAAwB;AAC1B;;AAEA;EACE,cAAc;EACd,WAAW;EACX,YAAY;EACZ,4BAA4B;EAC5B,wBAAwB;AAC1B;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;;EAEE,mBAAmB;AACrB;;AAEA;EACE,oEAA8sB;AAChtB;;AAEA;EACE,8BAA8B;AAChC;;AAEA;EACE,8BAA8B;AAChC;;AAEA;EACE,2BAA2B;AAC7B;;AAEA;EACE,8BAA8B;AAChC;;AAEA;EACE,8BAA8B;AAChC;;AAEA;EACE,oEAA4hB;AAC9hB;;AAEA;EACE,2BAA2B;AAC7B;;AAEA;EACE,8BAA8B;AAChC;;AAEA;EACE,8BAA8B;AAChC;;AAEA;EACE,oEAA8lB;AAChmB;;AAEA;;EAEE,8BAA8B;AAChC;;AAEA;EACE,oCAAoC;AACtC;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,oCAAoC;AACtC;;AAEA;EACE,oCAAoC;AACtC;;AAEA;EACE,oCAAoC;AACtC;;AAEA;EACE,oCAAoC;AACtC;;AAEA;EACE,oBAAoB;EACpB,kBAAkB;EAClB,gBAAgB;EAChB,+DAAoE;AACtE;;AAEA;EACE,4BAA4B;EAC5B,kBAAkB;EAClB,gBAAgB;EAChB,+DAAoE;AACtE;;AAEA;EACE,2BAA2B;EAC3B,kBAAkB;EAClB,gBAAgB;EAChB,+DAAmE;AACrE;;AAEA;EACE,6BAA6B;EAC7B,kBAAkB;EAClB,gBAAgB;EAChB,+DAAqE;AACvE;;AAEA;EACE,yBAAyB;EACzB,gBAAgB;EAChB,gBAAgB;EAChB,+DAAiE;AACnE;;AAEA;EACE,uBAAuB;EACvB,kBAAkB;EAClB,gBAAgB;EAChB,+DAAuE;AACzE;;AAEA;EACE,+BAA+B;EAC/B,kBAAkB;EAClB,gBAAgB;EAChB,+DAAuE;AACzE;;AAEA;EACE,8BAA8B;EAC9B,kBAAkB;EAClB,gBAAgB;EAChB,+DAAsE;AACxE;;AAEA;EACE,gCAAgC;EAChC,kBAAkB;EAClB,gBAAgB;EAChB,+DAAwE;AAC1E;;AAEA;EACE,kCAAkC;EAClC,kBAAkB;EAClB,gBAAgB;EAChB,gEAA0E;AAC5E;;AAEA;EACE,8BAA8B;EAC9B,kBAAkB;EAClB,gBAAgB;EAChB,gEAAsE;AACxE;;;;AAIA;EACE,UAAU;EACV,WAAW;EACX,mBAAmB;EACnB,mBAAmB;EACnB,wBAAwB;AAC1B;;AAEA;EACE,8CAA8C;AAChD;;AAEA,WAAW;AACX;EACE,mBAAmB;EACnB,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,mBAAmB;EACnB,+CAA+C;AACjD;;AAEA;EACE,gCAAgC;EAChC,kBAAkB;EAClB,qBAAqB;AACvB;;AAEA;EACE,UAAU;EACV,WAAW;EACX,mBAAmB;EACnB,wBAAwB;EACxB,8CAA8C;AAChD;;AAEA;;;EAGE,kBAAkB;EAClB,UAAU;AACZ;;AAEA;EACE,YAAY;EACZ,OAAO;AACT;;AAEA;EACE,sCAAsC;EACtC,WAAW;EACX,sBAAsB;EACtB,gBAAgB;AAClB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,eAAe;EACf,qBAAqB;EACrB,cAAc;AAChB;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,WAAW;EACX,YAAY;AACd;;AAEA;EACE,cAAc;EACd,eAAe;EACf,eAAe;EACf,cAAc;AAChB",sourcesContent:["html,\nbody {\n height: 100%;\n overflow: hidden;\n}\n\n#root {\n height: 100%;\n display: flex;\n -webkit-font-smoothing: antialiased;\n -moz-font-smoothing: antialiased;\n -o-font-smoothing: antialiased;\n}\n\n@supports (-webkit-touch-callout: none) {\n\n html,\n body,\n #root {\n height: -webkit-fill-available !important;\n }\n}\n\n.mapboxgl-popup-content {\n background: transparent !important;\n border-radius: 5px !important;\n border: 2px solid #6a6a6d;\n padding: 0 !important;\n}\n\n.mapboxgl-ctrl-top-right .mapboxgl-ctrl-group,\n.leaflet-mapboxgl-ctrl {\n display: flex;\n box-sizing: border-box;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 40px;\n margin: 8px 8px 0 0 !important;\n background: #222f42;\n border: 1px solid #2e3f59;\n border-radius: 10px;\n padding: 4px;\n gap: 4px;\n}\n\n.mapboxgl-ctrl-top-right .mapboxgl-ctrl-group button,\n.leaflet-mapboxgl-ctrl button {\n box-sizing: border-box;\n background: #333f52;\n border: 1px solid #374458;\n box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);\n border-radius: 8px;\n width: 32px;\n height: 32px;\n}\n\n@supports not (gap: 4px) {\n .leaflet-mapboxgl-ctrl button:not(:last-child) {\n margin-bottom: 4px;\n }\n}\n\n.mapboxgl-ctrl-scale,\n.leaflet-control-scale-line {\n font-weight: 600;\n font-size: 9px;\n line-height: 11.7px;\n border-bottom: 0px;\n color: #000;\n text-align: center;\n padding: 1px 6px 1px 6px;\n}\n\n.mapboxgl-ctrl-icon {\n display: block;\n width: 100%;\n height: 100%;\n background-repeat: no-repeat;\n background-position: 50%;\n}\n\n.mapboxgl-ctrl-group:not(:empty) {\n box-shadow: none;\n}\n\n.mapboxgl-ctrl-group button:focus:last-child {\n border-radius: 8px;\n}\n\n.mapboxgl-ctrl-group button:focus:first-child {\n border-radius: 8px;\n}\n\n.mapboxgl-ctrl-bottom-right,\n.leaflet-control-container .leaflet-bottom.leaflet-right {\n margin-bottom: 22px;\n}\n\n.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon {\n background-image: url(\"data:image/svg+xml;charset=UTF-8,%3csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17.5 10.5C17.5 10.2239 17.7239 10 18 10C18.2761 10 18.5 10.2239 18.5 10.5V17.5C18.5 17.7761 18.2761 18 18 18C17.7239 18 17.5 17.7761 17.5 17.5V10.5Z' fill='white'/%3e%3cpath d='M21.5 13.5C21.7761 13.5 22 13.7239 22 14C22 14.2761 21.7761 14.5 21.5 14.5L14.5 14.5C14.2239 14.5 14 14.2761 14 14C14 13.7239 14.2239 13.5 14.5 13.5L21.5 13.5Z' fill='white'/%3e%3crect x='12.3259' y='18.5298' width='2' height='8.94612' rx='1' transform='rotate(45 12.3259 18.5298)' fill='white'/%3e%3ccircle cx='18' cy='14' r='7.5' stroke='white'/%3e%3c/svg%3e \") !important;\n}\n\n.mapboxgl-ctrl-zoom-in:hover {\n background: #1d5995 !important;\n}\n\n.mapboxgl-ctrl-zoom-in:active {\n background: #1f5f9e !important;\n}\n\n.mapboxgl-ctrl-zoom-out {\n border-top: none !important;\n}\n\n.mapboxgl-ctrl-zoom-out:hover {\n background: #1d5995 !important;\n}\n\n.mapboxgl-ctrl-zoom-out:active {\n background: #1f5f9e !important;\n}\n\n.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon {\n background-image: url(\"data:image/svg+xml;charset=UTF-8,%3csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='12.3259' y='18.5298' width='2' height='8.94612' rx='1' transform='rotate(45 12.3259 18.5298)' fill='white'/%3e%3ccircle cx='18' cy='14' r='7.5' stroke='white'/%3e%3cpath d='M21.5 13.5C21.7761 13.5 22 13.7239 22 14C22 14.2761 21.7761 14.5 21.5 14.5L14.5 14.5C14.2239 14.5 14 14.2761 14 14C14 13.7239 14.2239 13.5 14.5 13.5L21.5 13.5Z' fill='white'/%3e%3c/svg%3e \") !important;\n}\n\n.mapboxgl-ctrl-compass {\n border-top: none !important;\n}\n\n.mapboxgl-ctrl-compass:hover {\n background: #1d5995 !important;\n}\n\n.mapboxgl-ctrl-compass:active {\n background: #1f5f9e !important;\n}\n\n.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon {\n background-image: url(\"data:image/svg+xml;charset=UTF-8,%3csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M15.6306 7.22001C15.7761 6.92666 16.2239 6.92666 16.3694 7.22001L19.962 14.4623C20.0866 14.7133 19.8896 15 19.5926 15H12.4074C12.1104 15 11.9134 14.7133 12.038 14.4623L15.6306 7.22001Z' fill='%23EF2A2A'/%3e%3cpath d='M16.3694 24.78C16.2239 25.0733 15.7761 25.0733 15.6306 24.78L12.038 17.5377C11.9134 17.2867 12.1104 17 12.4074 17L19.5926 17C19.8896 17 20.0866 17.2867 19.962 17.5377L16.3694 24.78Z' fill='white'/%3e%3c/svg%3e \") !important;\n}\n\n.mapboxgl-ctrl,\n.leaflet-control-scale-line {\n font-family: Inter, sans-serif;\n}\n\n.react-simple-keyboard {\n background-color: #27364d !important;\n}\n\n.hg-button {\n color: #fff !important;\n}\n\n.hg-standardBtn {\n background-color: #374458 !important;\n}\n\n.hg-standardBtn:hover {\n background-color: #3b495e !important;\n}\n\n.hg-functionBtn {\n background-color: #3f4e64 !important;\n}\n\n.hg-functionBtn:hover {\n background-color: #43536b !important;\n}\n\n@font-face {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 400;\n src: url(\"../src/assets/fonts/Inter-Regular.ttf\") format(\"truetype\");\n}\n\n@font-face {\n font-family: \"Inter-Regular\";\n font-style: normal;\n font-weight: 400;\n src: url(\"../src/assets/fonts/Inter-Regular.ttf\") format(\"truetype\");\n}\n\n@font-face {\n font-family: \"Inter-Medium\";\n font-style: normal;\n font-weight: 500;\n src: url(\"../src/assets/fonts/Inter-Medium.ttf\") format(\"truetype\");\n}\n\n@font-face {\n font-family: \"Inter-SemiBold\";\n font-style: normal;\n font-weight: 600;\n src: url(\"../src/assets/fonts/Inter-SemiBold.ttf\") format(\"truetype\");\n}\n\n@font-face {\n font-family: \"Inter-Bold\";\n font-style: bold;\n font-weight: 700;\n src: url(\"../src/assets/fonts/Inter-Bold.ttf\") format(\"truetype\");\n}\n\n@font-face {\n font-family: \"FiraCode\";\n font-style: normal;\n font-weight: 400;\n src: url(\"../src/assets/fonts/FiraCode-Regular.ttf\") format(\"truetype\");\n}\n\n@font-face {\n font-family: \"FiraCode-Regular\";\n font-style: normal;\n font-weight: 400;\n src: url(\"../src/assets/fonts/FiraCode-Regular.ttf\") format(\"truetype\");\n}\n\n@font-face {\n font-family: \"FiraCode-Medium\";\n font-style: normal;\n font-weight: 500;\n src: url(\"../src/assets/fonts/FiraCode-Medium.ttf\") format(\"truetype\");\n}\n\n@font-face {\n font-family: \"FiraCode-SemiBold\";\n font-style: normal;\n font-weight: 600;\n src: url(\"../src/assets/fonts/FiraCode-SemiBold.ttf\") format(\"truetype\");\n}\n\n@font-face {\n font-family: \"Metropolis-SemiBold\";\n font-style: normal;\n font-weight: 600;\n src: url(\"../src/assets/fonts/Metropolis-SemiBold.ttf\") format(\"truetype\");\n}\n\n@font-face {\n font-family: \"Metropolis-Bold\";\n font-style: normal;\n font-weight: 700;\n src: url(\"../src/assets/fonts/Metropolis-Bold.ttf\") format(\"truetype\");\n}\n\n\n\n::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n border-radius: 11px;\n background: #2e3f59;\n /* Dark/Background/200 */\n}\n\n::-webkit-scrollbar:hover {\n box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.4);\n}\n\n/* Handle */\n::-webkit-scrollbar-thumb {\n background: #2369af;\n /* Dark/Blue/100 */\n border: 1px solid #287bcc;\n /* Dark/Blue/ 25 */\n border-radius: 12px;\n box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.35);\n}\n\n* {\n scrollbar-color: #2369af #2e3f59;\n /* Dark/Blue/100 */\n scrollbar-width: thin;\n}\n\n*:hover::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n background: #2e3f59;\n /* Dark/Background/200 */\n box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.4);\n}\n\ninput,\ntextarea,\nbutton {\n outline-width: 0px;\n outline: 0;\n}\n\n.map-container {\n height: 100%;\n flex: 1;\n}\n\n.map-container.night .mapboxgl-ctrl-scale {\n background-color: hsla(0, 0%, 0%, 0.6);\n color: #ddd;\n border: 2px solid #ddd;\n border-top: #ddd;\n}\n\n.map-container.mobile .mapboxgl-ctrl-bottom-right {\n margin-bottom: 36px;\n}\n\n.map-container.mobile .mapboxgl-ctrl-bottom-left {\n margin-bottom: 15px;\n}\n\na {\n margin: 0.22rem;\n text-decoration: none;\n color: #2064a6;\n}\n\n.non-scaled-wrapper {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n}\n\n.small-key {\n flex: 0 0 50px;\n max-width: 50px;\n min-width: 50px;\n padding: 0 6px;\n}"],sourceRoot:""}]);const j=x},87068:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(93116);const i={isVisible:()=>!1,addListener:()=>({remove:()=>{}}),dismiss(){(0,r.A)()},removeAllListeners(){},removeListener(){}}},87088:(e,t,n)=>{"use strict";var r=n(54224),i=n(8410),o=n(41003),a=n(63331);e.exports=function(e){var t=i(e);if(!a(t)||0===t)return 0;var n=o(t),s=r(n,256);return s>=128?s-256:s}},87361:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i="/collections",o=function(){function e(e){this.apiCall=e}return e.prototype.create=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){return[2,this.apiCall.post(i,e,t)]}))}))},e.prototype.retrieve=function(e){return void 0===e&&(e={}),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,this.apiCall.get(i,e)]}))}))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return i},enumerable:!1,configurable:!0}),e}();t.default=o},87731:(e,t,n)=>{var r=n(89624).c,i=n(10419).X,o=n(77147).n,a=n(95711).t,s=n(19603).h;t.validateCenter=r,t.validateRadius=i,t.validateNumberOfEdges=o,t.validateEarthRadius=a,t.validateBearing=s,t.validateInput=function({center:e,radius:t,numberOfEdges:n,earthRadius:l,bearing:c}){r(e),i(t),o(n),a(l),s(c)}},87842:e=>{"use strict";var t,n="function"==typeof WeakMap&&WeakMap.prototype?WeakMap:null,r="function"==typeof WeakSet&&WeakSet.prototype?WeakSet:null;n||(t=function(e){return!1});var i=n?n.prototype.has:null,o=r?r.prototype.has:null;t||i||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(i.call(e,i),o)try{o.call(e,o)}catch(e){return!0}return e instanceof n}catch(e){}return!1}},88050:(e,t,n)=>{"use strict";t.A=void 0;var r,i=n(51230),o=(r=n(44061))&&r.__esModule?r:{default:r};const a=(0,i.createIconSet)(o.default,{postScriptName:"MaterialDesignIcons",fontFileName:"MaterialDesignIcons.ttf",fontSource:n(45247)});t.A=a},88137:(e,t,n)=>{const r=n(10920),i=n(98584),o={};Object.keys(r).forEach((e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});const t=i(e);Object.keys(t).forEach((n=>{const r=t[n];o[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},88231:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get("/health")]}))}))},e}();t.default=i},88313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(8700)),o=function(){function e(e,t){this.id=e,this.apiCall=t}return e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.update=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,this.apiCall.put(this.endpointPath(),e)]}))}))},e.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},e}();t.default=o},88425:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(96540);const i=n(7162).A?r.useLayoutEffect:r.useEffect},89045:(e,t,n)=>{var r=n(73738).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},89211:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},89353:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r{t.c=function(e){if(!Array.isArray(e)||![2,3].includes(e.length))throw new Error("ERROR! Center has to be an array of length two or three");var[t,n]=e;if("number"!=typeof t||"number"!=typeof n)throw new Error(`ERROR! Longitude and Latitude has to be numbers but where ${typeof t} and ${typeof n}`);if(t>180||t<-180)throw new Error(`ERROR! Longitude has to be between -180 and 180 but was ${t}`);if(n>90||n<-90)throw new Error(`ERROR! Latitude has to be between -90 and 90 but was ${n}`)}},89742:(e,t,n)=>{"use strict";function r(){}n.d(t,{A:()=>i});const i={exitApp:r,addEventListener:()=>(console.error("BackHandler is not supported on web and should not be used."),{remove:r}),removeEventListener:r}},90162:e=>{"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},90256:e=>{"use strict";var t,n="function"==typeof Map&&Map.prototype?Map:null,r="function"==typeof Set&&Set.prototype?Set:null;r||(t=function(e){return!1});var i=n?Map.prototype.has:null,o=r?Set.prototype.has:null;t||o||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(o.call(e),i)try{i.call(e)}catch(e){return!0}return e instanceof r}catch(e){}return!1}},90646:e=>{"use strict";e.exports=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i{"use strict";var r=n(24994);t.A=void 0;var i=r(n(54756)),o=r(n(29293)),a=r(n(17383)),s=r(n(34579)),l=n(40121),c=n(38567),u=n(80639),h=n(48345),d=n(37260);t.A=function(){return(0,s.default)((function e(t){var n=this;(0,a.default)(this,e),this.updateConfiguration(t),this.searchClient={clearCache:function(){return n.clearCache()},search:function(e){return n.searchTypesenseAndAdapt(e)},searchForFacetValues:function(e){return n.searchTypesenseForFacetValuesAndAdapt(e)}}}),[{key:"searchTypesenseAndAdapt",value:(n=(0,o.default)(i.default.mark((function e(t){var n,r,o=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._adaptAndPerformTypesenseRequest(t);case 3:return n=e.sent,r=n.results.map((function(e,r){return o._validateTypesenseResult(e),new h.SearchResponseAdapter(e,t[r],o.configuration,n.results,n).adapt()})),e.abrupt("return",{results:r});case 8:throw e.prev=8,e.t0=e.catch(0),console.error(e.t0),e.t0;case 12:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(e){return n.apply(this,arguments)})},{key:"searchTypesenseForFacetValuesAndAdapt",value:(t=(0,o.default)(i.default.mark((function e(t){var n,r,o=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._adaptAndPerformTypesenseRequest(t);case 3:return n=e.sent,r=n.results.map((function(e,n){return o._validateTypesenseResult(e),new d.FacetSearchResponseAdapter(e,t[n],o.configuration).adapt()})),e.abrupt("return",r);case 8:throw e.prev=8,e.t0=e.catch(0),console.error(e.t0),e.t0;case 12:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(e){return t.apply(this,arguments)})},{key:"_adaptAndPerformTypesenseRequest",value:(e=(0,o.default)(i.default.mark((function e(t){var n,r;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new u.SearchRequestAdapter(t,this.typesenseClient,this.configuration),e.next=3,n.request();case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"clearCache",value:function(){return this.typesenseClient=new c.SearchClient(this.configuration.server),this.searchClient}},{key:"updateConfiguration",value:function(e){return this.configuration=new l.Configuration(e),this.configuration.validate(),this.typesenseClient=new c.SearchClient(this.configuration.server),!0}},{key:"_validateTypesenseResult",value:function(e){if(e.error)throw new Error("".concat(e.code," - ").concat(e.error));if(!e.hits&&!e.grouped_hits)throw new Error("Did not find any hits. ".concat(e.code," - ").concat(e.error))}}]);var e,t,n}()},90842:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{default:()=>f}),e.exports=(r=h,u(o({},"__esModule",{value:!0}),r));var d=((e,t,n)=>(n=null!=e?i(l(e)):{},u(e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(40295));class f extends d.default{size=32;get byteSize(){return this.size}randomValue(){const e=new Uint8Array(this.size);for(let t=0;t32)throw new d.EncodeError(`Byte size "${t.byteLength}" not in range [0..32]`);const n=new ArrayBuffer(this.size),r=new DataView(n);for(let e=0;e{"use strict";var r=n(69675),i=n(55701),o=n(84769),a=n(17030),s=n(28131),l=n(13541),c=n(52875),u=n(60259),h=n(92702);e.exports=function(e,t,n){if(!h(e))throw new r("Assertion failed: Type(O) is not Object");if(!l(t))throw new r("Assertion failed: P is not a Property Key");var d=i(n)?n:u(n);if(!i(d))throw new r("Assertion failed: Desc is not a valid Property Descriptor");return o(s,c,a,e,t,d)}},91509:(e,t,n)=>{"use strict";var r=n(69675),i=n(45291),o=n(86681),a=n(92702),s=n(35680);e.exports=function(e,t){if("SEQ-CST"!==t&&"UNORDERED"!==t)throw new r("Assertion failed: `order` must be ~SEQ-CST~ or ~UNORDERED~");if(!a(e))throw new r("Assertion failed: `O` must be an Object");if(!s(e))throw new r("Assertion failed: `O` must be a Typed Array");var n=o(e,t);if(i(n))throw new r("`O` must be in-bounds and backed by a non-detached buffer");return n}},91515:e=>{"use strict";function t(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function n(e,n,r){const i=r<.5?r*(1+n):r+n-r*n,o=2*r-i,a=t(o,i,e+1/3),s=t(o,i,e),l=t(o,i,e-1/3);return Math.round(255*a)<<24|Math.round(255*s)<<16|Math.round(255*l)<<8}const r="[-+]?\\d*\\.?\\d+",i=r+"%";function o(...e){return"\\(\\s*("+e.join(")\\s*,?\\s*(")+")\\s*\\)"}function a(...e){return"\\(\\s*("+e.slice(0,e.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+e[e.length-1]+")\\s*\\)"}function s(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}let l;function c(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function u(e){return(parseFloat(e)%360+360)%360/360}function h(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function d(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}e.exports=function(e){if("number"==typeof e)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if("string"!=typeof e)return null;const f=(void 0===l&&(l={rgb:new RegExp("rgb"+o(r,r,r)),rgba:new RegExp("rgba("+s(r,r,r,r)+"|"+a(r,r,r,r)+")"),hsl:new RegExp("hsl"+o(r,i,i)),hsla:new RegExp("hsla("+s(r,i,i,r)+"|"+a(r,i,i,r)+")"),hwb:new RegExp("hwb"+o(r,i,i)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),l);let p;if(p=f.hex6.exec(e))return parseInt(p[1]+"ff",16)>>>0;const m=function(e){switch(e){case"transparent":return 0;case"aliceblue":return 4042850303;case"antiquewhite":return 4209760255;case"aqua":case"cyan":return 16777215;case"aquamarine":return 2147472639;case"azure":return 4043309055;case"beige":return 4126530815;case"bisque":return 4293182719;case"black":return 255;case"blanchedalmond":return 4293643775;case"blue":return 65535;case"blueviolet":return 2318131967;case"brown":return 2771004159;case"burlywood":return 3736635391;case"burntsienna":return 3934150143;case"cadetblue":return 1604231423;case"chartreuse":return 2147418367;case"chocolate":return 3530104575;case"coral":return 4286533887;case"cornflowerblue":return 1687547391;case"cornsilk":return 4294499583;case"crimson":return 3692313855;case"darkblue":return 35839;case"darkcyan":return 9145343;case"darkgoldenrod":return 3095792639;case"darkgray":case"darkgrey":return 2846468607;case"darkgreen":return 6553855;case"darkkhaki":return 3182914559;case"darkmagenta":return 2332068863;case"darkolivegreen":return 1433087999;case"darkorange":return 4287365375;case"darkorchid":return 2570243327;case"darkred":return 2332033279;case"darksalmon":return 3918953215;case"darkseagreen":return 2411499519;case"darkslateblue":return 1211993087;case"darkslategray":case"darkslategrey":return 793726975;case"darkturquoise":return 13554175;case"darkviolet":return 2483082239;case"deeppink":return 4279538687;case"deepskyblue":return 12582911;case"dimgray":case"dimgrey":return 1768516095;case"dodgerblue":return 512819199;case"firebrick":return 2988581631;case"floralwhite":return 4294635775;case"forestgreen":return 579543807;case"fuchsia":case"magenta":return 4278255615;case"gainsboro":return 3705462015;case"ghostwhite":return 4177068031;case"gold":return 4292280575;case"goldenrod":return 3668254975;case"gray":case"grey":return 2155905279;case"green":return 8388863;case"greenyellow":return 2919182335;case"honeydew":return 4043305215;case"hotpink":return 4285117695;case"indianred":return 3445382399;case"indigo":return 1258324735;case"ivory":return 4294963455;case"khaki":return 4041641215;case"lavender":return 3873897215;case"lavenderblush":return 4293981695;case"lawngreen":return 2096890111;case"lemonchiffon":return 4294626815;case"lightblue":return 2916673279;case"lightcoral":return 4034953471;case"lightcyan":return 3774873599;case"lightgoldenrodyellow":return 4210742015;case"lightgray":case"lightgrey":return 3553874943;case"lightgreen":return 2431553791;case"lightpink":return 4290167295;case"lightsalmon":return 4288707327;case"lightseagreen":return 548580095;case"lightskyblue":return 2278488831;case"lightslategray":case"lightslategrey":return 2005441023;case"lightsteelblue":return 2965692159;case"lightyellow":return 4294959359;case"lime":return 16711935;case"limegreen":return 852308735;case"linen":return 4210091775;case"maroon":return 2147483903;case"mediumaquamarine":return 1724754687;case"mediumblue":return 52735;case"mediumorchid":return 3126187007;case"mediumpurple":return 2473647103;case"mediumseagreen":return 1018393087;case"mediumslateblue":return 2070474495;case"mediumspringgreen":return 16423679;case"mediumturquoise":return 1221709055;case"mediumvioletred":return 3340076543;case"midnightblue":return 421097727;case"mintcream":return 4127193855;case"mistyrose":return 4293190143;case"moccasin":return 4293178879;case"navajowhite":return 4292783615;case"navy":return 33023;case"oldlace":return 4260751103;case"olive":return 2155872511;case"olivedrab":return 1804477439;case"orange":return 4289003775;case"orangered":return 4282712319;case"orchid":return 3664828159;case"palegoldenrod":return 4008225535;case"palegreen":return 2566625535;case"paleturquoise":return 2951671551;case"palevioletred":return 3681588223;case"papayawhip":return 4293907967;case"peachpuff":return 4292524543;case"peru":return 3448061951;case"pink":return 4290825215;case"plum":return 3718307327;case"powderblue":return 2967529215;case"purple":return 2147516671;case"rebeccapurple":return 1714657791;case"red":return 4278190335;case"rosybrown":return 3163525119;case"royalblue":return 1097458175;case"saddlebrown":return 2336560127;case"salmon":return 4202722047;case"sandybrown":return 4104413439;case"seagreen":return 780883967;case"seashell":return 4294307583;case"sienna":return 2689740287;case"silver":return 3233857791;case"skyblue":return 2278484991;case"slateblue":return 1784335871;case"slategray":case"slategrey":return 1887473919;case"snow":return 4294638335;case"springgreen":return 16744447;case"steelblue":return 1182971135;case"tan":return 3535047935;case"teal":return 8421631;case"thistle":return 3636451583;case"tomato":return 4284696575;case"turquoise":return 1088475391;case"violet":return 4001558271;case"wheat":return 4125012991;case"white":return 4294967295;case"whitesmoke":return 4126537215;case"yellow":return 4294902015;case"yellowgreen":return 2597139199}return null}(e);return null!=m?m:(p=f.rgb.exec(e))?(c(p[1])<<24|c(p[2])<<16|c(p[3])<<8|255)>>>0:(p=f.rgba.exec(e))?void 0!==p[6]?(c(p[6])<<24|c(p[7])<<16|c(p[8])<<8|h(p[9]))>>>0:(c(p[2])<<24|c(p[3])<<16|c(p[4])<<8|h(p[5]))>>>0:(p=f.hex3.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+"ff",16)>>>0:(p=f.hex8.exec(e))?parseInt(p[1],16)>>>0:(p=f.hex4.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+p[4]+p[4],16)>>>0:(p=f.hsl.exec(e))?(255|n(u(p[1]),d(p[2]),d(p[3])))>>>0:(p=f.hsla.exec(e))?void 0!==p[6]?(n(u(p[6]),d(p[7]),d(p[8]))|h(p[9]))>>>0:(n(u(p[2]),d(p[3]),d(p[4]))|h(p[5]))>>>0:(p=f.hwb.exec(e))?(255|function(e,n,r){if(n+r>=1){const e=Math.round(255*n/(n+r));return e<<24|e<<16|e<<8}const i=t(0,1,e+1/3)*(1-n-r)+n,o=t(0,1,e)*(1-n-r)+n,a=t(0,1,e-1/3)*(1-n-r)+n;return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*a)<<8}(u(p[1]),d(p[2]),d(p[3])))>>>0:null}},91579:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _lib_sha1__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(45465),_lib_v35__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(42986),_uuid_types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(69524);function uuidv4(){return"undefined"==typeof crypto&&"undefined"==typeof window?eval("require")("node:crypto").randomUUID():crypto.randomUUID()}const uuid={v4:uuidv4,v5:(0,_lib_v35__WEBPACK_IMPORTED_MODULE_1__.A)("v5",80,_lib_sha1__WEBPACK_IMPORTED_MODULE_0__.A),namespace:_uuid_types__WEBPACK_IMPORTED_MODULE_2__.s},__WEBPACK_DEFAULT_EXPORT__=uuid},91599:(e,t,n)=>{"use strict";var r=n(57003);e.exports=r;var i=u(!0),o=u(!1),a=u(null),s=u(void 0),l=u(0),c=u("");function u(e){var t=new r(r._61);return t._65=1,t._55=e,t}r.resolve=function(e){if(e instanceof r)return e;if(null===e)return a;if(void 0===e)return s;if(!0===e)return i;if(!1===e)return o;if(0===e)return l;if(""===e)return c;if("object"==typeof e||"function"==typeof e)try{var t=e.then;if("function"==typeof t)return new r(t.bind(e))}catch(e){return new r((function(t,n){n(e)}))}return u(e)},r.all=function(e){var t=Array.prototype.slice.call(e);return new r((function(e,n){if(0===t.length)return e([]);var i=t.length;function o(a,s){if(s&&("object"==typeof s||"function"==typeof s)){if(s instanceof r&&s.then===r.prototype.then){for(;3===s._65;)s=s._55;return 1===s._65?o(a,s._55):(2===s._65&&n(s._55),void s.then((function(e){o(a,e)}),n))}var l=s.then;if("function"==typeof l)return void new r(l.bind(s)).then((function(e){o(a,e)}),n)}t[a]=s,0==--i&&e(t)}for(var a=0;a{var r=n(54893);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i{"use strict";n.d(t,{A:()=>l});var r=n(88425),i=n(8683),o=n(7162),a="__reactLayoutHandler",s=(o.A,null);function l(e,t){var n=(o.A&&void 0!==window.ResizeObserver&&null==s&&(s=new window.ResizeObserver((function(e){e.forEach((e=>{var t=e.target,n=t[a];"function"==typeof n&&i.A.measure(t,((t,r,i,o,a,s)=>{var l={nativeEvent:{layout:{x:t,y:r,width:i,height:o,left:a,top:s}},timeStamp:Date.now()};Object.defineProperty(l.nativeEvent,"target",{enumerable:!0,get:()=>e.target}),n(l)}))}))}))),s);(0,r.A)((()=>{var n=e.current;null!=n&&(n[a]=t)}),[e,t]),(0,r.A)((()=>{var t=e.current;return null!=t&&null!=n&&("function"==typeof t[a]?n.observe(t):n.unobserve(t)),()=>{null!=t&&null!=n&&n.unobserve(t)}}),[e,n])}},92011:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h=(e,t,n)=>(n=null!=e?i(l(e)):{},u(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{DataType:()=>f.default,DataType_2Uint4:()=>p.default,DataType_BaseNumber:()=>m.default,DataType_Boolean:()=>g.default,DataType_Flags8:()=>y.default,DataType_Float32:()=>v.default,DataType_Nullstring:()=>b.default,DataType_String32:()=>A.default,DataType_Uint16_Enum:()=>x.default,DataType_Uint8_Enum:()=>w.default,DataType_Varstring32:()=>C.default,DataType_Varstring8:()=>S.default,DataType_Varuint:()=>E.default}),e.exports=(r=d,u(o({},"__esModule",{value:!0}),r));var f=h(n(40295)),p=h(n(62860)),m=h(n(78618)),g=h(n(82124)),y=h(n(8747)),v=h(n(22535)),b=h(n(1038)),A=h(n(90842)),x=h(n(5257)),w=h(n(95746)),C=h(n(40525)),S=h(n(85462)),E=h(n(56061));((e,t,n)=>{u(e,t,"default"),n&&u(n,t,"default")})(d,n(67251),e.exports)},92051:(e,t,n)=>{var r;!function(){"use strict";function i(e,t){if(!(this instanceof i))return new i(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function o(e,t){e.bbox=a(e,0,e.children.length,t)}function a(e,t,n,r){for(var i,o=[1/0,1/0,-1/0,-1/0],a=t;a=e[0]&&t[3]>=e[1]}function p(e,t,n,r,i){for(var o,a=[t,n];a.length;)(n=a.pop())-(t=a.pop())<=r||(m(e,t,n,o=t+Math.ceil((n-t)/r/2)*r,i),a.push(t,o,o,n))}function m(e,t,n,r,i){for(var o,a,s,l,c,u,h;n>t;){for(n-t>600&&(o=n-t+1,a=r-t+1,s=Math.log(o),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(o-l)/o)*(a-o/2<0?-1:1),m(e,Math.max(t,Math.floor(r-a*l/o+c)),Math.min(n,Math.floor(r+(o-a)*l/o+c)),r,i)),u=e[r],a=t,h=n,g(e,t,r),i(e[n],u)>0&&g(e,t,n);a0;)h--}0===i(e[t],u)?g(e,t,h):g(e,++h,n),h<=r&&(t=h+1),r<=h&&(n=h-1)}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}i.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,n=[],r=this.toBBox;if(!f(e,t.bbox))return n;for(var i,o,a,s,l=[];t;){for(i=0,o=t.children.length;i=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(i,o,t)},_split:function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var a=this._chooseSplitIndex(n,i,r),s={children:n.children.splice(a,n.children.length-a),height:n.height,bbox:null,leaf:!1};n.leaf&&(s.leaf=!0),o(n,this.toBBox),o(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},_splitRoot:function(e,t){this.data={children:[e,t],height:e.height+1,bbox:null,leaf:!1},o(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,n){var r,i,o,s,l,c,h,d,f,p,m,g,y,v;for(c=h=1/0,r=t;r<=n-t;r++)f=i=a(e,0,r,this.toBBox),p=o=a(e,r,n,this.toBBox),void 0,void 0,void 0,void 0,m=Math.max(f[0],p[0]),g=Math.max(f[1],p[1]),y=Math.min(f[2],p[2]),v=Math.min(f[3],p[3]),s=Math.max(0,y-m)*Math.max(0,v-g),l=u(i)+u(o),s=t;i--)o=e.children[i],s(u,e.leaf?l(o):o.bbox),d+=h(u);return d},_adjustParentBBoxes:function(e,t,n){for(var r=n;r>=0;r--)s(t[r].bbox,e)},_condense:function(e){for(var t,n=e.length-1;n>=0;n--)0===e[n].children.length?n>0?(t=e[n-1].children).splice(t.indexOf(e[n]),1):this.clear():o(e[n],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return [a"+e.join(", a")+"];")}},void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},92056:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABVCAQAAAChx3/YAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElNRQfkAQMKHDc9iQjuAAACmUlEQVRo3r3ZS2sUQRAH8M5zklwWg0K8mKBB/AIqXhTEi1cTPQe9iH4AUXBNjh79EooKgggSHyCICIIQL7NV1T2bze6EFS/xoms0ie0hs+sa9zE901U79/3R8+iu+pdSnn/VfbCAz/Um2r+XV8AO0jH9pP3vvSN2COdhGX8xInbIzNMKbv1PeEPsiLmEn2i7E+EJsSN4Az+UtjoTXpBwlG7CGnQlPCA2oFtQxZ3uRG7EBnAvjHsTOREbwB2s9bpRuZHKGCzCer9V5ELi8ehuOiIzYkejBUTYTkNkREyAV5DgdzoiE2ICuoYaUxMZEBPQdYpdCGfkzbA+rUsugDNiAnOGwJVwQipj0XlCd8IBscN0wv1GOSEmCE9qyEakREyAZ4myEqkQE+hzupydSIHE4+aUjvIQfZH6hL6QbxV9kfqEnqP1vEQPxA6YA3hReyB6IOUC3vZDdEXKBVPUG36ILkhlihbxqy+iI1KZogf4xW0zd0TWDuJD+AYWLRuyOo2P0DOxB6nM4Fv87pv4B1mdxhfY8E+0IeaIfok/OIgWEs3q97DJQyTI5xn9FBpcBFqlVDgLz6CBlu9S8SS9JlYCraKlTv2qb+QdN4FWYV0AEVkJLQH/M4kn9Sv2t0vkOxH64pt7F9f22LYLVw8D9y4sdJ40T0bgPRmVUqp+iP2MF6pWkrrrPnPdJVRB7tbCVMQNZkSkqlfKDtD+kLs/Eem0xHpGoe631cdHzIhIIiGUrSQp0XHmlEgo7xJK7loZZMiMJGlqjTVNbebCRKy5cPJsLjMn3EJZvdDUQWh+krwCReZJUHOmVaqxzrSEpnNCc0ahiWlz9ksrrLNfoSn27sgf5mCZfrIiStnB8lF8rHdYEaWU+ljQV/dW0X8Ac6zWpmDZsO8AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDEtMDNUMTA6Mjg6NTIrMDA6MDD7fVVWAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTAxLTAzVDEwOjI4OjUyKzAwOjAwiiDt6gAAAABJRU5ErkJggg=="},92183:e=>{"use strict";e.exports=function(){return Array.prototype.slice.call(arguments).reduceRight((function(e,t){return Object.keys(Object(t)).forEach((function(n){var r="number"==typeof e[n]?e[n]:0,i=t[n];void 0!==i&&i>=r&&(void 0!==e[n]&&delete e[n],e[n]=i)})),e}),{})}},92187:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7162).A&&null!=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null,i=new WeakMap;const o={getColorScheme:()=>r&&r.matches?"dark":"light",addChangeListener(e){var t=i.get(e);return t||(t=t=>{var n=t.matches;e({colorScheme:n?"dark":"light"})},i.set(e,t)),r&&r.addListener(t),{remove:function(){var t=i.get(e);r&&t&&r.removeListener(t),i.delete(e)}}}}},92464:(e,t,n)=>{"use strict";var r=n(38452),i=n(76642);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},92702:e=>{"use strict";e.exports=function(e){return!!e&&("function"==typeof e||"object"==typeof e)}},92703:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(r.__importDefault(n(27796)).default);t.default=i},92747:(e,t,n)=>{"use strict";var r=n(60034);e.exports=function(){return r}},92810:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAAQCAYAAAAGeBHHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFxSURBVHgB7dhNSsNAGAbgbzKTppE02qZgSf3Jsu7cWVwFBK+hFxCPYF259gRuPIDeROjOjaKhoARslTZNmkmdaFMQ/yp22s33bDKLyWZe5v1gCPyBU6s7HOBMLF1AU0EAGmSSjY7jLiV6eCR+OdB041EvWC1A/8c5ffLvNtlv+9Y2tg45BI2cVoh0o9RUKOWApmN0lt+GIKrHTauHMs1aMEv3lOUDQFJ8CiHr/aFCtw2zfKtqC9eApBqHkPV+Ino//977TUAz8RYC9v58sdVafZ9Q9aSwWL7B3p8PZfQdElASQHNBn33vyizZrSh42eV8sMyYGhAF62hW+t22TdNFGkSxvHIZxwN7EPZccTGA5fJdQNKNQ0i1fa8twrgoWtXzKOqvi5uxQwjhTNVwTkj0IYRMFoZpVb04Ctw4Dm3Gcj2sKDm+DCGTVlTH906NYuUB54U8P4aQwXkhT8I5C3udykSvqJnRk0ZDLPcATYUI4PgV5/yg0B+gJAMAAAAASUVORK5CYII="},92869:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(58168),i=n(98587),o=n(96540),a=n(43999),s=n(9176),l=["animating","color","hidesWhenStopped","size","style"],c=e=>o.createElement("circle",{cx:"16",cy:"16",fill:"none",r:"14",strokeWidth:"4",style:e}),u=o.forwardRef(((e,t)=>{var n=e.animating,a=void 0===n||n,u=e.color,f=void 0===u?"#1976D2":u,p=e.hidesWhenStopped,m=void 0===p||p,g=e.size,y=void 0===g?"small":g,v=e.style,b=(0,i.A)(e,l),A=o.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},c({stroke:f,opacity:.2}),c({stroke:f,strokeDasharray:80,strokeDashoffset:60}));return o.createElement(s.A,(0,r.A)({},b,{"aria-valuemax":1,"aria-valuemin":0,ref:t,role:"progressbar",style:[h.container,v]}),o.createElement(s.A,{children:A,style:["number"==typeof y?{height:y,width:y}:d[y],h.animation,!a&&h.animationPause,!a&&m&&h.hidesWhenStopped]}))}));u.displayName="ActivityIndicator";var h=a.A.create({container:{alignItems:"center",justifyContent:"center"},hidesWhenStopped:{visibility:"hidden"},animation:{animationDuration:"0.75s",animationKeyframes:[{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"},animationPause:{animationPlayState:"paused"}}),d=a.A.create({small:{width:20,height:20},large:{width:36,height:36}});const f=u},92987:e=>{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},92990:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{EncoderError:()=>p,FieldError:()=>m,default:()=>g}),e.exports=(r=h,u(o({},"__esModule",{value:!0}),r));var d=((e,t,n)=>(n=null!=e?i(l(e)):{},u(e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(81859)),f=n(40295);class p extends Error{constructor(e,t){super("Failed with errors"),this.entryIndex=e,this.fieldErrors=t}}class m extends Error{constructor(e,t){super(t+` (field: ${e})`),this.fieldName=e}}class g extends d.default{make(e){const t=[],n=[];for(const[r,i]of this.fields)try{n.push(i.encode(e[r]))}catch(e){if(!(e instanceof f.EncodeError))throw e;t.push(new m(r,e.message))}if(t.length>0)throw new p(0,t);const r=new Uint8Array(n.reduce(((e,t)=>e+t.byteLength),0));let i=0;for(const e of n){const t=new Uint8Array(e);for(let e=0;ee+t.byteLength),0)),o=new DataView(i);let a=0;for(const e of r){const t=new DataView(e);for(let n=0;n({...e,[t]:n.randomValue()})),{}))}}},93028:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.devAssert=function(e,t){if(!Boolean(e))throw new Error(t)}},93116:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(38865);const i=()=>{r.A.blurTextInput(r.A.currentlyFocusedField())}},93268:(e,t,n)=>{"use strict";t.ReactNativeFile=n(56614),t.extractFiles=n(69550),t.isExtractableFile=n(64767)},93612:(e,t,n)=>{"use strict";var r=n(36556),i=r("Object.prototype.toString"),o=n(64039)(),a=n(99721);if(o){var s=r("Symbol.prototype.toString"),l=a(/^Symbol\(.*\)$/);e.exports=function(e){if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||"[object Symbol]"!==i(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&l(s(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},93628:(e,t,n)=>{"use strict";var r=n(48648),i=n(71064),o=n(7176);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},93748:(e,t,n)=>{"use strict";n.d(t,{_:()=>m});var r=n(7162);function i(e,t,n){if(r.A){var i=null!=t?t:document,o=i.getElementById(e);if(null==o)if((o=document.createElement("style")).setAttribute("id",e),"string"==typeof n&&o.appendChild(document.createTextNode(n)),i instanceof ShadowRoot)i.insertBefore(o,i.firstChild);else{var a=i.head;a&&a.insertBefore(o,a.firstChild)}return o.sheet}return null}var o=Array.prototype.slice;function a(e){var t,n={},r={};function i(e,t,r){var i=l(n),o=i.indexOf(t)+1,a=i[o],s=null!=a&&null!=n[a].start?n[a].start:e.cssRules.length,c=function(e,t,n){try{return e.insertRule(t,n),!0}catch(e){return!1}}(e,r,s);if(c){null==n[t].start&&(n[t].start=s);for(var u=o;u{var o=e.cssText;if(o.indexOf("stylesheet-group")>-1)t=function(e){return Number(e.selectorText.split(s)[1])}(e),n[t]={start:i,rules:[o]};else{var a=u(o);null!=a&&(r[a]=!0,n[t].rules.push(o))}}));var a={getTextContent:()=>l(n).map((e=>{var t=n[e].rules,r=t.shift();return t.sort(),t.unshift(r),t.join("\n")})).join("\n"),insert(t,o){var a=Number(o);if(null==n[a]){var s=function(e){return'[stylesheet-group="'+e+'"]{}'}(a);n[a]={start:null,rules:[s]},null!=e&&i(e,a,s)}var l=u(t);null!=l&&null==r[l]&&(r[l]=!0,n[a].rules.push(t),null!=e&&(i(e,a,t)||n[a].rules.pop()))}};return a}var s=/["']/g;function l(e){return Object.keys(e).map(Number).sort(((e,t)=>e>t?1:-1))}var c=/\s*([,])\s*/g;function u(e){var t=e.split("{")[0].trim();return""!==t?t.replace(c,"$1"):null}var h="react-native-stylesheet",d=new WeakMap,f=[],p=["html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}","body{margin:0;}","button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}","input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}"];function m(e,t){var n;if(void 0===t&&(t=h),r.A){var o=null!=e?e.getRootNode():document;if(0===f.length)n=a(i(t)),p.forEach((e=>{n.insert(e,0)})),d.set(o,f.length),f.push(n);else{var s=d.get(o);if(null==s){var l=f[0],c=null!=l?l.getTextContent():"";n=a(i(t,o,c)),d.set(o,f.length),f.push(n)}else n=f[s]}}else 0===f.length?(n=a(i(t)),p.forEach((e=>{n.insert(e,0)})),f.push(n)):n=f[0];return{getTextContent:()=>n.getTextContent(),id:t,insert(e,t){f.forEach((n=>{n.insert(e,t)}))}}}},93777:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(65156)),o=function(){function e(e,t){this.presetId=e,this.apiCall=t}return e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.presetId))},e}();t.default=o},93870:e=>{"use strict";const t=async function(){}.constructor;e.exports=()=>t},94129:(e,t,n)=>{"use strict";n.d(t,{A:()=>te});var r=n(58168),i=n(98587),o=n(96540),a=n(11804),s=n(7162),l=()=>{},c=function(){var e=!1;if(s.A)try{var t={};Object.defineProperty(t,"passive",{get:()=>(e=!0,!1)}),window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function u(){return this.cancelBubble}function h(){return this.defaultPrevented}function d(e,t,n,r){var i=function(e){return null!=e&&(c?e:Boolean(e.capture))}(r),o=e=>{return n(((t=e).nativeEvent=t,t.persist=l,t.isDefaultPrevented=h,t.isPropagationStopped=u,t));var t};return e.addEventListener(t,o,i),function(){null!=e&&e.removeEventListener(t,o,i)}}var f,p,m="keyboard",g="keyboard",y=!1,v=new Set,b="keyboard",A="mouse",x="touch",w="contextmenu",C="mousedown",S="mousemove",E="mouseup",k="pointerdown",T="pointermove",I="scroll",O="selectionchange",R="touchcancel",M="touchmove",P="touchstart",D={passive:!0},j={capture:!0,passive:!0};function B(){null==f&&null==p||(null!=f&&(g=f,f=null),null!=p&&(m=p,p=null),F())}function L(e){var t=e.type;if("undefined"!=typeof window&&null!=window.PointerEvent){if(t===k)return void(m!==e.pointerType&&(g=e.pointerType,m=e.pointerType,F()));if(t===T)return void(g!==e.pointerType&&(g=e.pointerType,F()))}else{if(y||(t===C&&m!==A&&(g=A,m=A,F()),t===S&&g!==A&&(g=A,F())),t===P)return y=!0,e.touches&&e.touches.length>1&&(y=!1),void(m!==x&&(g=x,m=x,F()));t!==w&&t!==E&&t!==O&&t!==I&&t!==R&&t!==M||(y=!1)}}function F(){var e={activeModality:m,modality:g};v.forEach((t=>{t(e)}))}s.A&&(d(window,"blur",(function(){f=g,p=m,m=b,g=b,F(),y=!1}),D),d(window,"focus",(function(){B()}),D),d(document,"keydown",(function(e){e.metaKey||e.altKey||e.ctrlKey||g!==b&&(g=b,m=b,F())}),j),d(document,"visibilitychange",(function(){"hidden"!==document.visibilityState&&B()}),j),d(document,k,L,j),d(document,T,L,j),d(document,w,L,j),d(document,C,L,j),d(document,S,L,j),d(document,E,L,j),d(document,R,L,j),d(document,M,L,j),d(document,P,L,j),d(document,O,L,j),d(document,I,L,j));var N=n(88425),_=n(99241);function z(e,t){var n=(0,_.A)((()=>new Map)),r=(0,_.A)((()=>(r,i)=>{var o=n.get(r);null!=o&&o(),null==i&&(n.delete(r),i=()=>{});var a=d(r,e,i,t);return n.set(r,a),a}));return(0,N.A)((()=>()=>{n.forEach((e=>{e()})),n.clear()}),[n]),r}var V={},U={passive:!0},H="react-gui:hover:lock",q="react-gui:hover:unlock";function G(e,t,n){var r=document.createEvent("CustomEvent"),i=n||V,o=i.bubbles,a=void 0===o||o,s=i.cancelable,l=void 0===s||s,c=i.detail;r.initCustomEvent(t,a,l,c),e.dispatchEvent(r)}function Y(e){var t=e.pointerType;return null!=t?t:g}var W=n(86533),Q=n(43999),X=n(9176),J=["children","delayLongPress","delayPressIn","delayPressOut","disabled","onBlur","onContextMenu","onFocus","onHoverIn","onHoverOut","onKeyDown","onLongPress","onPress","onPressMove","onPressIn","onPressOut","style","tabIndex","testOnly_hovered","testOnly_pressed"];function Z(e,t){var n=e.children,s=e.delayLongPress,l=e.delayPressIn,c=e.delayPressOut,u=e.disabled,h=e.onBlur,d=e.onContextMenu,f=e.onFocus,p=e.onHoverIn,m=e.onHoverOut,g=e.onKeyDown,y=e.onLongPress,v=e.onPress,b=e.onPressMove,A=e.onPressIn,x=e.onPressOut,w=e.style,C=e.tabIndex,S=e.testOnly_hovered,E=e.testOnly_pressed,k=(0,i.A)(e,J),T=K(!0===S),I=T[0],O=T[1],R=K(!1),M=R[0],P=R[1],D=K(!0===E),j=D[0],B=D[1],L=(0,o.useRef)(null),F=(0,a.A)(t,L),_=(0,o.useMemo)((()=>({delayLongPress:s,delayPressStart:l,delayPressEnd:c,disabled:u,onLongPress:y,onPress:v,onPressChange:B,onPressStart:A,onPressMove:b,onPressEnd:x})),[s,l,c,u,y,v,A,b,x,B]),V=(0,W.A)(L,_),Q=V.onContextMenu,Z=V.onKeyDown;!function(e,t){var n=t.contain,r=t.disabled,i=t.onHoverStart,o=t.onHoverChange,a=t.onHoverUpdate,s=t.onHoverEnd,l=!("undefined"==typeof window||null==window.PointerEvent),c=z(l?"pointermove":"mousemove",U),u=z(l?"pointerenter":"mouseenter",U),h=z(l?"pointerleave":"mouseleave",U),d=z(H,U),f=z(q,U);(0,N.A)((()=>{var t=e.current;if(null!==t){var l=function(e){null!=s&&s(e),null!=o&&o(!1),c(t,null),h(t,null)},p=function(t){var r=e.current;null!=r&&"touch"!==Y(t)&&(n&&G(r,q),l(t))},m=function(e){"touch"!==Y(e)&&null!=a&&(null==e.x&&(e.x=e.clientX),null==e.y&&(e.y=e.clientY),a(e))},g=function(e){null!=i&&i(e),null!=o&&o(!0),null!=a&&c(t,r?null:m),h(t,r?null:p)};u(t,r?null:function(t){var i=e.current;null!=i&&"touch"!==Y(t)&&(n&&G(i,H),g(t),d(i,r?null:function(e){e.target!==i&&l(t)}),f(i,r?null:function(e){e.target!==i&&g(t)}))})}}),[u,c,h,d,f,n,r,i,o,a,s,e])}(L,{contain:!0,disabled:u,onHoverChange:O,onHoverStart:p,onHoverEnd:m});var ee,te={hovered:I,focused:M,pressed:j},ne=o.useCallback((e=>{e.nativeEvent.target===L.current&&(P(!1),null!=h&&h(e))}),[L,P,h]),re=o.useCallback((e=>{e.nativeEvent.target===L.current&&(P(!0),null!=f&&f(e))}),[L,P,f]),ie=o.useCallback((e=>{null!=Q&&Q(e),null!=d&&d(e)}),[d,Q]),oe=o.useCallback((e=>{null!=Z&&Z(e),null!=g&&g(e)}),[g,Z]);return ee=void 0!==C?C:u?-1:0,o.createElement(X.A,(0,r.A)({},k,V,{"aria-disabled":u,onBlur:ne,onContextMenu:ie,onFocus:re,onKeyDown:oe,ref:F,style:[u?$.disabled:$.active,"function"==typeof w?w(te):w],tabIndex:ee}),"function"==typeof n?n(te):n)}function K(e){var t=(0,o.useState)(!1);return[t[0]||e,t[1]]}var $=Q.A.create({active:{cursor:"pointer",touchAction:"manipulation"},disabled:{pointerEvents:"box-none"}}),ee=(0,o.memo)((0,o.forwardRef)(Z));ee.displayName="Pressable";const te=ee},94148:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},94531:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseBatchRequestsExtendedArgs=t.parseRawRequestExtendedArgs=t.parseRequestExtendedArgs=t.parseBatchRequestArgs=t.parseRawRequestArgs=t.parseRequestArgs=void 0,t.parseRequestArgs=function(e,t,n){return e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0}},t.parseRawRequestArgs=function(e,t,n){return e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0}},t.parseBatchRequestArgs=function(e,t){return e.documents?e:{documents:e,requestHeaders:t,signal:void 0}},t.parseRequestExtendedArgs=function(e,t,n,r){return e.document?e:{url:e,document:t,variables:n,requestHeaders:r,signal:void 0}},t.parseRawRequestExtendedArgs=function(e,t,n,r){return e.query?e:{url:e,query:t,variables:n,requestHeaders:r,signal:void 0}},t.parseBatchRequestsExtendedArgs=function(e,t,n){return e.documents?e:{url:e,documents:t,requestHeaders:n,signal:void 0}}},94648:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC"},94678:(e,t,n)=>{"use strict";n.d(t,{A:()=>rt});var r=n(8),i=n(67862),o=n(58168),a=n(96540),s=n(57061),l=n(98587),c=n(3098),u=n(90646),h=n.n(u),d=n(44139);const f=i.A,p=()=>!1,m=()=>!1;var g,y=("ios"===f.OS&&n.g.RN$Bridgeless,null),v=1,b=1,A=new Set,x=!1,w=[];"android"===f.OS&&null!=y&&y.queueAndExecuteBatchedOperations&&m();var C=null,S=y,E={getValue:function(e,t){h()(S,"Native animated module is not available"),E.queueOperation(S.getValue,e,t)},setWaitingForIdentifier:function(e){A.add(e),x=!0,p()&&C&&clearTimeout(C)},unsetWaitingForIdentifier:function(e){A.delete(e),0===A.size&&(x=!1,E.disableQueue())},disableQueue:function(){h()(S,"Native animated module is not available"),p()?(clearImmediate(C),C=setImmediate(E.flushQueue)):E.flushQueue()},flushQueue:function(){},queueOperation:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re(...n))):e(...n)},createAnimatedNode:function(e,t){h()(S,"Native animated module is not available"),E.queueOperation(S.createAnimatedNode,e,t)},updateAnimatedNodeConfig:function(e,t){h()(S,"Native animated module is not available")},startListeningToAnimatedNodeValue:function(e){h()(S,"Native animated module is not available"),E.queueOperation(S.startListeningToAnimatedNodeValue,e)},stopListeningToAnimatedNodeValue:function(e){h()(S,"Native animated module is not available"),E.queueOperation(S.stopListeningToAnimatedNodeValue,e)},connectAnimatedNodes:function(e,t){h()(S,"Native animated module is not available"),E.queueOperation(S.connectAnimatedNodes,e,t)},disconnectAnimatedNodes:function(e,t){h()(S,"Native animated module is not available"),E.queueOperation(S.disconnectAnimatedNodes,e,t)},startAnimatingNode:function(e,t,n,r){h()(S,"Native animated module is not available"),E.queueOperation(S.startAnimatingNode,e,t,n,r)},stopAnimation:function(e){h()(S,"Native animated module is not available"),E.queueOperation(S.stopAnimation,e)},setAnimatedNodeValue:function(e,t){h()(S,"Native animated module is not available"),E.queueOperation(S.setAnimatedNodeValue,e,t)},setAnimatedNodeOffset:function(e,t){h()(S,"Native animated module is not available"),E.queueOperation(S.setAnimatedNodeOffset,e,t)},flattenAnimatedNodeOffset:function(e){h()(S,"Native animated module is not available"),E.queueOperation(S.flattenAnimatedNodeOffset,e)},extractAnimatedNodeOffset:function(e){h()(S,"Native animated module is not available"),E.queueOperation(S.extractAnimatedNodeOffset,e)},connectAnimatedNodeToView:function(e,t){h()(S,"Native animated module is not available"),E.queueOperation(S.connectAnimatedNodeToView,e,t)},disconnectAnimatedNodeFromView:function(e,t){h()(S,"Native animated module is not available"),E.queueOperation(S.disconnectAnimatedNodeFromView,e,t)},restoreDefaultValues:function(e){h()(S,"Native animated module is not available"),null!=S.restoreDefaultValues&&E.queueOperation(S.restoreDefaultValues,e)},dropAnimatedNode:function(e){h()(S,"Native animated module is not available"),E.queueOperation(S.dropAnimatedNode,e)},addAnimatedEventToView:function(e,t,n){h()(S,"Native animated module is not available"),E.queueOperation(S.addAnimatedEventToView,e,t,n)},removeAnimatedEventFromView(e,t,n){h()(S,"Native animated module is not available"),E.queueOperation(S.removeAnimatedEventFromView,e,t,n)}},k={backgroundColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderRightColor:!0,borderStartColor:!0,borderTopColor:!0,color:!0,tintColor:!0},T=(0,r.A)((0,r.A)({},k),{},{borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,opacity:!0,transform:!0,zIndex:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0}),I={translateX:!0,translateY:!0,scale:!0,scaleX:!0,scaleY:!0,rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,perspective:!0},O={inputRange:!0,outputRange:!0,extrapolate:!0,extrapolateRight:!0,extrapolateLeft:!0};function R(e){return T.hasOwnProperty(e)}function M(e){return I.hasOwnProperty(e)}function P(e){return O.hasOwnProperty(e)}function D(){return b++}var j=!1;function B(e){return null==e.useNativeDriver&&console.warn("Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`"),!0!==e.useNativeDriver||y?e.useNativeDriver||!1:(j||(console.warn("Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`. Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md"),j=!0),!1)}const L={API:E,isSupportedColorStyleProp:function(e){return k.hasOwnProperty(e)},isSupportedStyleProp:R,isSupportedTransformProp:M,isSupportedInterpolationParam:P,addWhitelistedStyleProp:function(e){T[e]=!0},addWhitelistedTransformProp:function(e){I[e]=!0},addWhitelistedInterpolationParam:function(e){O[e]=!0},validateStyles:function(e){for(var t in e)if(!R(t))throw new Error("Style property '"+t+"' is not supported by native animated module")},validateTransform:function(e){e.forEach((e=>{if(!M(e.property))throw new Error("Property '"+e.property+"' is not supported by native animated module")}))},validateInterpolation:function(e){for(var t in e)if(!P(t))throw new Error("Interpolation property '"+t+"' is not supported by native animated module")},generateNewNodeTag:function(){return v++},generateNewAnimationId:D,assertNativeAnimatedModule:function(){h()(y,"Native animated module is not available")},shouldUseNativeDriver:B,transformDataType:function(e){return"string"!=typeof e?e:/deg$/.test(e)?(parseFloat(e)||0)*Math.PI/180:e},get nativeEventEmitter(){return g||(g=new d.A("ios"!==f.OS?null:y)),g}};var F=L.API,N=1;const _=class{__attach(){}__detach(){this.__isNative&&null!=this.__nativeTag&&(L.API.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}__getValue(){}__getAnimatedValue(){return this.__getValue()}__addChild(e){}__removeChild(e){}__getChildren(){return[]}constructor(){this._listeners={}}__makeNative(e){if(!this.__isNative)throw new Error('This node cannot be made a "native" animated node');this._platformConfig=e,this.hasListeners()&&this._startListeningToNativeValueUpdates()}addListener(e){var t=String(N++);return this._listeners[t]=e,this.__isNative&&this._startListeningToNativeValueUpdates(),t}removeListener(e){delete this._listeners[e],this.__isNative&&!this.hasListeners()&&this._stopListeningForNativeValueUpdates()}removeAllListeners(){this._listeners={},this.__isNative&&this._stopListeningForNativeValueUpdates()}hasListeners(){return!!Object.keys(this._listeners).length}_startListeningToNativeValueUpdates(){this.__nativeAnimatedValueListener&&!this.__shouldUpdateListenersForNewNativeTag||(this.__shouldUpdateListenersForNewNativeTag&&(this.__shouldUpdateListenersForNewNativeTag=!1,this._stopListeningForNativeValueUpdates()),F.startListeningToAnimatedNodeValue(this.__getNativeTag()),this.__nativeAnimatedValueListener=L.nativeEventEmitter.addListener("onAnimatedValueUpdate",(e=>{e.tag===this.__getNativeTag()&&this.__onAnimatedValueUpdateReceived(e.value)})))}__onAnimatedValueUpdateReceived(e){this.__callListeners(e)}__callListeners(e){for(var t in this._listeners)this._listeners[t]({value:e})}_stopListeningForNativeValueUpdates(){this.__nativeAnimatedValueListener&&(this.__nativeAnimatedValueListener.remove(),this.__nativeAnimatedValueListener=null,F.stopListeningToAnimatedNodeValue(this.__getNativeTag()))}__getNativeTag(){var e;L.assertNativeAnimatedModule(),h()(this.__isNative,'Attempt to get native tag from node not marked as "native"');var t=null!==(e=this.__nativeTag)&&void 0!==e?e:L.generateNewNodeTag();if(null==this.__nativeTag){this.__nativeTag=t;var n=this.__getNativeConfig();this._platformConfig&&(n.platformConfig=this._platformConfig),L.API.createAnimatedNode(t,n),this.__shouldUpdateListenersForNewNativeTag=!0}return t}__getNativeConfig(){throw new Error("This JS animated node type cannot be used as native animated node")}toJSON(){return this.__getValue()}__getPlatformConfig(){return this._platformConfig}__setPlatformConfig(e){this._platformConfig=e}},z=class extends _{constructor(){super(),this._children=[]}__makeNative(e){if(!this.__isNative){this.__isNative=!0;for(var t,n=(0,c.A)(this._children);!(t=n()).done;){var r=t.value;r.__makeNative(e),L.API.connectAnimatedNodes(this.__getNativeTag(),r.__getNativeTag())}}super.__makeNative(e)}__addChild(e){0===this._children.length&&this.__attach(),this._children.push(e),this.__isNative&&(e.__makeNative(this.__getPlatformConfig()),L.API.connectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()))}__removeChild(e){var t=this._children.indexOf(e);-1!==t?(this.__isNative&&e.__isNative&&L.API.disconnectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()),this._children.splice(t,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")}__getChildren(){return this._children}__callListeners(e){if(super.__callListeners(e),!this.__isNative)for(var t,n=(0,c.A)(this._children);!(t=n()).done;){var r=t.value;r.__getValue&&r.__callListeners(r.__getValue())}}};var V=n(91515),U=n.n(V),H=e=>e;function q(e){if(e.outputRange&&"string"==typeof e.outputRange[0])return function(e){var t=e.outputRange;h()(t.length>=2,"Bad output range"),function(e){for(var t=e[0].replace(Y,""),n=1;n[]));t.forEach((e=>{e.match(Y).forEach(((e,t)=>{n[t].push(+e)}))}));var i,o=t[0].match(Y).map(((t,i)=>q((0,r.A)((0,r.A)({},e),{},{outputRange:n[i]})))),a="string"==typeof(i=t[0])&&i.startsWith("rgb");return e=>{var n=0;return t[0].replace(Y,(()=>{var t=+o[n++](e);return a&&(t=n<4?Math.round(t):Math.round(1e3*t)/1e3),String(t)}))}}(e);var t=e.outputRange,n=e.inputRange,i=e.easing||H,o="extend";void 0!==e.extrapolateLeft?o=e.extrapolateLeft:void 0!==e.extrapolate&&(o=e.extrapolate);var a="extend";return void 0!==e.extrapolateRight?a=e.extrapolateRight:void 0!==e.extrapolate&&(a=e.extrapolate),e=>{h()("number"==typeof e,"Cannot interpolation an input which is not a number");var r=function(e,t){var n;for(n=1;n=e);++n);return n-1}(e,n);return function(e,t,n,r,i,o,a,s){var l=e;if(ln){if("identity"===s)return l;"clamp"===s&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}(e,n[r],n[r+1],t[r],t[r+1],i,o,a)}}function G(e){var t=U()(e);return null===t||"number"!=typeof t?e:"rgba("+((4278190080&(t=t||0))>>>24)+", "+((16711680&t)>>>16)+", "+((65280&t)>>>8)+", "+(255&t)/255+")"}var Y=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;class W extends z{constructor(e,t){super(),this._parent=e,this._config=t,this._interpolation=q(t)}__makeNative(e){this._parent.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._parent.__getValue();return h()("number"==typeof e,"Cannot interpolate an input which is not a number."),this._interpolation(e)}interpolate(e){return new W(this,e)}__attach(){this._parent.__addChild(this)}__detach(){this._parent.__removeChild(this),super.__detach()}__transformDataType(e){return e.map(L.transformDataType)}__getNativeConfig(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||"extend",extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||"extend",type:"interpolation"}}}W.__createInterpolation=q;const Q=W;var X=n(59819),J=L.API;const Z=class extends z{constructor(e,t){if(super(),"number"!=typeof e)throw new Error("AnimatedValue: Attempting to set value to undefined");this._startingValue=this._value=e,this._offset=0,this._animation=null,t&&t.useNativeDriver&&this.__makeNative()}__detach(){this.__isNative&&J.getValue(this.__getNativeTag(),(e=>{this._value=e-this._offset})),this.stopAnimation(),super.__detach()}__getValue(){return this._value+this._offset}setValue(e){var t,n;this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(e,!this.__isNative),this.__isNative&&(t=this.__getNativeTag().toString(),n=()=>J.setAnimatedNodeValue(this.__getNativeTag(),e),J.setWaitingForIdentifier(t),n(),J.unsetWaitingForIdentifier(t))}setOffset(e){this._offset=e,this.__isNative&&J.setAnimatedNodeOffset(this.__getNativeTag(),e)}flattenOffset(){this._value+=this._offset,this._offset=0,this.__isNative&&J.flattenAnimatedNodeOffset(this.__getNativeTag())}extractOffset(){this._offset+=this._value,this._value=0,this.__isNative&&J.extractAnimatedNodeOffset(this.__getNativeTag())}stopAnimation(e){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,e&&(this.__isNative?J.getValue(this.__getNativeTag(),e):e(this.__getValue()))}resetAnimation(e){this.stopAnimation(e),this._value=this._startingValue,this.__isNative&&J.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}__onAnimatedValueUpdateReceived(e){this._updateValue(e,!1)}interpolate(e){return new Q(this,e)}animate(e,t){var n=null;e.__isInteraction&&(n=X.A.createInteractionHandle());var r=this._animation;this._animation&&this._animation.stop(),this._animation=e,e.start(this._value,(e=>{this._updateValue(e,!0)}),(e=>{this._animation=null,null!==n&&X.A.clearInteractionHandle(n),t&&t(e)}),r,this)}stopTracking(){this._tracking&&this._tracking.__detach(),this._tracking=null}track(e){this.stopTracking(),this._tracking=e,this._tracking&&this._tracking.update()}_updateValue(e,t){if(void 0===e)throw new Error("AnimatedValue: Attempting to set value to undefined");var n;this._value=e,t&&(n=new Set,function e(t){"function"==typeof t.update?n.add(t):t.__getChildren().forEach(e)}(this),n.forEach((e=>e.update()))),super.__callListeners(this.__getValue())}__getNativeConfig(){return{type:"value",value:this._value,offset:this._offset}}};function K(e,t,n){var r=[],i=(e,t)=>{if(e instanceof Z)e.__makeNative(),r.push({nativeEventPath:t,animatedValueTag:e.__getNativeTag()});else if("object"==typeof e)for(var n in e)i(e[n],t.concat(n))};return h()(n[0]&&n[0].nativeEvent,"Native driven events only support animated values contained inside `nativeEvent`."),i(n[0].nativeEvent,[]),null!=e&&r.forEach((n=>{L.API.addAnimatedEventToView(e,t,n)})),{detach(){null!=e&&r.forEach((n=>{L.API.removeAnimatedEventFromView(e,t,n.animatedValueTag)}))}}}class ${constructor(e,t){this._listeners=[],this._argMapping=e,null==t&&(console.warn("Animated.event now requires a second argument for options"),t={useNativeDriver:!1}),t.listener&&this.__addListener(t.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=B(t)}__addListener(e){this._listeners.push(e)}__removeListener(e){this._listeners=this._listeners.filter((t=>t!==e))}__attach(e,t){h()(this.__isNative,"Only native driven events need to be attached."),this._attachedEvent=K(e,t,this._argMapping)}__detach(e,t){h()(this.__isNative,"Only native driven events need to be detached."),this._attachedEvent&&this._attachedEvent.detach()}__getHandler(){var e=this;return this.__isNative?this._callListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r{if(e instanceof Z)"number"==typeof t&&e.setValue(t);else if("object"==typeof e)for(var r in e)i(e[r],t[r],r)};e._argMapping.forEach(((e,t)=>{i(e,n[t],"arg"+t)})),e._callListeners(...n)}}_callListeners(){for(var e=arguments.length,t=new Array(e),n=0;ne(...t)))}}const ee=class extends z{constructor(e){super(),this._transforms=e}__makeNative(){this._transforms.forEach((e=>{for(var t in e){var n=e[t];n instanceof _&&n.__makeNative()}})),super.__makeNative()}__getValue(){return this._transforms.map((e=>{var t={};for(var n in e){var r=e[n];t[n]=r instanceof _?r.__getValue():r}return t}))}__getAnimatedValue(){return this._transforms.map((e=>{var t={};for(var n in e){var r=e[n];t[n]=r instanceof _?r.__getAnimatedValue():r}return t}))}__attach(){this._transforms.forEach((e=>{for(var t in e){var n=e[t];n instanceof _&&n.__addChild(this)}}))}__detach(){this._transforms.forEach((e=>{for(var t in e){var n=e[t];n instanceof _&&n.__removeChild(this)}})),super.__detach()}__getNativeConfig(){var e=[];return this._transforms.forEach((t=>{for(var n in t){var r=t[n];r instanceof _?e.push({type:"animated",property:n,nodeTag:r.__getNativeTag()}):e.push({type:"static",property:n,value:L.transformDataType(r)})}})),L.validateTransform(e),{type:"transform",transforms:e}}};var te=n(43999).A.flatten;function ne(e){var t=te(e),n={};for(var r in t){var i=t[r];"transform"===r&&Array.isArray(i)?n[r]=new ee(i):i instanceof _?n[r]=i:i&&!Array.isArray(i)&&"object"==typeof i&&(n[r]=ne(i))}return n}const re=class extends z{constructor(e){super(),this._inputStyle=e,this._style=ne(e)}_walkStyleAndGetValues(e){var t={};for(var n in e){var r=e[n];r instanceof _?r.__isNative||(t[n]=r.__getValue()):r&&!Array.isArray(r)&&"object"==typeof r?t[n]=this._walkStyleAndGetValues(r):t[n]=r}return t}__getValue(){return[this._inputStyle,this._walkStyleAndGetValues(this._style)]}_walkStyleAndGetAnimatedValues(e){var t={};for(var n in e){var r=e[n];r instanceof _?t[n]=r.__getAnimatedValue():r&&!Array.isArray(r)&&"object"==typeof r&&(t[n]=this._walkStyleAndGetAnimatedValues(r))}return t}__getAnimatedValue(){return this._walkStyleAndGetAnimatedValues(this._style)}__attach(){for(var e in this._style){var t=this._style[e];t instanceof _&&t.__addChild(this)}}__detach(){for(var e in this._style){var t=this._style[e];t instanceof _&&t.__removeChild(this)}super.__detach()}__makeNative(){for(var e in this._style){var t=this._style[e];t instanceof _&&t.__makeNative()}super.__makeNative()}__getNativeConfig(){var e={};for(var t in this._style)if(this._style[t]instanceof _){var n=this._style[t];n.__makeNative(),e[t]=n.__getNativeTag()}return L.validateStyles(e),{type:"style",style:e}}},ie=class extends _{constructor(e,t){super(),e.style&&(e=(0,r.A)((0,r.A)({},e),{},{style:new re(e.style)})),this._props=e,this._callback=t,this.__attach()}__getValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof _?(!n.__isNative||n instanceof re)&&(e[t]=n.__getValue()):e[t]=n instanceof $?n.__getHandler():n}return e}__getAnimatedValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof _&&(e[t]=n.__getAnimatedValue())}return e}__attach(){for(var e in this._props){var t=this._props[e];t instanceof _&&t.__addChild(this)}}__detach(){for(var e in this.__isNative&&this._animatedView&&this.__disconnectAnimatedView(),this._props){var t=this._props[e];t instanceof _&&t.__removeChild(this)}super.__detach()}update(){this._callback()}__makeNative(){if(!this.__isNative){for(var e in this.__isNative=!0,this._props){var t=this._props[e];t instanceof _&&t.__makeNative()}this._animatedView&&this.__connectAnimatedView()}}setNativeView(e){this._animatedView!==e&&(this._animatedView=e,this.__isNative&&this.__connectAnimatedView())}__connectAnimatedView(){h()(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;h()(null!=e,"Unable to locate attached view in the native tree"),L.API.connectAnimatedNodeToView(this.__getNativeTag(),e)}__disconnectAnimatedView(){h()(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;h()(null!=e,"Unable to locate attached view in the native tree"),L.API.disconnectAnimatedNodeFromView(this.__getNativeTag(),e)}__restoreDefaultValues(){this.__isNative&&L.API.restoreDefaultValues(this.__getNativeTag())}__getNativeConfig(){var e={};for(var t in this._props){var n=this._props[t];n instanceof _&&(n.__makeNative(),e[t]=n.__getNativeTag())}return{type:"props",props:e}}};var oe=n(88425);function ae(e){return(0,r.A)((0,r.A)({},e.__getValue()),{},{collapsable:!1})}var se=["style"];function le(e){return a.forwardRef(((t,n)=>{var r=function(e){var t=(0,a.useReducer)((e=>e+1),0)[1],n=(0,a.useRef)(null),r=(0,a.useMemo)((()=>new ie(e,(()=>null==n.current?void 0:n.current()))),[e]);!function(e){var t=(0,a.useRef)(null),n=(0,a.useRef)(!1);(0,a.useEffect)((()=>{L.API.flushQueue()})),(0,oe.A)((()=>(n.current=!1,()=>{n.current=!0})),[]),(0,oe.A)((()=>{if(e.__attach(),null!=t.current){var r=t.current;r.__restoreDefaultValues(),r.__detach(),t.current=null}return()=>{n.current?e.__detach():t.current=e}}),[e])}(r);var i,o,s=(0,a.useCallback)((i=>{r.setNativeView(i),n.current=()=>{t()};var o=function(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e.getScrollableNode)?e.getScrollableNode():e}(i),a=[];for(var s in e){var l=e[s];l instanceof $&&l.__isNative&&(l.__attach(o,s),a.push([s,l]))}return()=>{n.current=null;for(var e=0,t=a;e{o.current&&(o.current(),o.current=void 0),null!=e&&(o.current=i(e))}),[i]));return[ae(r),l]}(t),i=r[0],s=function(){for(var e=arguments.length,t=new Array(e),n=0;n{for(var n=0,r=t;na.createElement(s.A,(0,o.A)({scrollEventThrottle:1e-4},e,{ref:t}))))),ue=le(n(50728).A);var he=n(34951);const de=le(a.forwardRef(((e,t)=>a.createElement(he.A,(0,o.A)({scrollEventThrottle:1e-4},e,{ref:t})))));var fe=n(86152);const pe=le(a.forwardRef(((e,t)=>a.createElement(fe.A,(0,o.A)({scrollEventThrottle:1e-4},e,{ref:t}))))),me=le(n(78506).A),ge=le(n(9176).A),ye=class extends z{constructor(e,t){super(),this._a="number"==typeof e?new Z(e):e,this._b="number"==typeof t?new Z(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()+this._b.__getValue()}interpolate(e){return new Q(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"addition",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},ve=class extends z{constructor(e,t,n){super(),this._a=e,this._min=t,this._max=n,this._value=this._lastValue=this._a.__getValue()}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}interpolate(e){return new Q(this,e)}__getValue(){var e=this._a.__getValue(),t=e-this._lastValue;return this._lastValue=e,this._value=Math.min(Math.max(this._value+t,this._min),this._max),this._value}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"diffclamp",input:this._a.__getNativeTag(),min:this._min,max:this._max}}},be=class extends z{constructor(e,t){super(),this._warnedAboutDivideByZero=!1,(0===t||t instanceof _&&0===t.__getValue())&&console.error("Detected potential division by zero in AnimatedDivision"),this._a="number"==typeof e?new Z(e):e,this._b="number"==typeof t?new Z(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._a.__getValue(),t=this._b.__getValue();return 0===t?(this._warnedAboutDivideByZero||(console.error("Detected division by zero in AnimatedDivision"),this._warnedAboutDivideByZero=!0),0):(this._warnedAboutDivideByZero=!1,e/t)}interpolate(e){return new Q(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"division",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},Ae=class extends z{constructor(e,t){super(),this._a=e,this._modulus=t}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}__getValue(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}interpolate(e){return new Q(this,e)}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"modulus",input:this._a.__getNativeTag(),modulus:this._modulus}}},xe=class extends z{constructor(e,t){super(),this._a="number"==typeof e?new Z(e):e,this._b="number"==typeof t?new Z(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()*this._b.__getValue()}interpolate(e){return new Q(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"multiplication",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},we=class extends z{constructor(e,t){super(),this._a="number"==typeof e?new Z(e):e,this._b="number"==typeof t?new Z(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()-this._b.__getValue()}interpolate(e){return new Q(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"subtraction",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},Ce=class extends _{constructor(e,t,n,r,i){super(),this._value=e,this._parent=t,this._animationClass=n,this._animationConfig=r,this._useNativeDriver=B(r),this._callback=i,this.__attach()}__makeNative(){this.__isNative=!0,this._parent.__makeNative(),super.__makeNative(),this._value.__makeNative()}__getValue(){return this._parent.__getValue()}__attach(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}__detach(){this._parent.__removeChild(this),super.__detach()}update(){this._value.animate(new this._animationClass((0,r.A)((0,r.A)({},this._animationConfig),{},{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}__getNativeConfig(){var e=new this._animationClass((0,r.A)((0,r.A)({},this._animationConfig),{},{toValue:void 0})).__getNativeAnimationConfig();return{type:"tracking",animationId:D(),animationConfig:e,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}};var Se=1;const Ee=class extends z{constructor(e){super();var t=e||{x:0,y:0};"number"==typeof t.x&&"number"==typeof t.y?(this.x=new Z(t.x),this.y=new Z(t.y)):(h()(t.x instanceof Z&&t.y instanceof Z,"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),this.x=t.x,this.y=t.y),this._listeners={}}setValue(e){this.x.setValue(e.x),this.y.setValue(e.y)}setOffset(e){this.x.setOffset(e.x),this.y.setOffset(e.y)}flattenOffset(){this.x.flattenOffset(),this.y.flattenOffset()}extractOffset(){this.x.extractOffset(),this.y.extractOffset()}__getValue(){return{x:this.x.__getValue(),y:this.y.__getValue()}}resetAnimation(e){this.x.resetAnimation(),this.y.resetAnimation(),e&&e(this.__getValue())}stopAnimation(e){this.x.stopAnimation(),this.y.stopAnimation(),e&&e(this.__getValue())}addListener(e){var t=String(Se++),n=t=>{t.value,e(this.__getValue())};return this._listeners[t]={x:this.x.addListener(n),y:this.y.addListener(n)},t}removeListener(e){this.x.removeListener(this._listeners[e].x),this.y.removeListener(this._listeners[e].y),delete this._listeners[e]}removeAllListeners(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}getLayout(){return{left:this.x,top:this.y}}getTranslateTransform(){return[{translateX:this.x},{translateY:this.y}]}};var ke=1;const Te=class{start(e,t,n,r,i){}stop(){this.__nativeId&&L.API.stopAnimation(this.__nativeId)}__getNativeAnimationConfig(){throw new Error("This animation type cannot be offloaded to native")}__debouncedOnEnd(e){var t=this.__onEnd;this.__onEnd=null,t&&t(e)}__startNativeAnimation(e){var t=ke+":startAnimation";ke+=1,L.API.setWaitingForIdentifier(t);try{var n=this.__getNativeAnimationConfig();e.__makeNative(n.platformConfig),this.__nativeId=L.generateNewAnimationId(),L.API.startAnimatingNode(this.__nativeId,e.__getNativeTag(),n,this.__debouncedOnEnd.bind(this))}catch(e){throw e}finally{L.API.unsetWaitingForIdentifier(t)}}},Ie=class extends Te{constructor(e){var t,n,r;super(),this._deceleration=null!==(t=e.deceleration)&&void 0!==t?t:.998,this._velocity=e.velocity,this._useNativeDriver=B(e),this.__isInteraction=null!==(n=e.isInteraction)&&void 0!==n?n:!this._useNativeDriver,this.__iterations=null!==(r=e.iterations)&&void 0!==r?r:1}__getNativeAnimationConfig(){return{type:"decay",deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations}}start(e,t,n,r,i){this.__active=!0,this._lastValue=e,this._fromValue=e,this._onUpdate=t,this.__onEnd=n,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(i):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}onUpdate(){var e=Date.now(),t=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(e-this._startTime)));this._onUpdate(t),Math.abs(this._lastValue-t)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=t,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}stop(){super.stop(),this.__active=!1,n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}};function Oe(e){return 3.62*(e-30)+194}function Re(e){return 3*(e-8)+25}const Me=function(e,t){return{stiffness:Oe(e),damping:Re(t)}},Pe=function(e,t){function n(e,t,n){return(e-t)/(n-t)}function r(e,t,n){return t+e*(n-t)}var i=n(e/1.7,0,20);i=r(i,0,.8);var o,a,s,l=r(n(t/1.7,0,20),.5,200),c=function(e,t){return.01*e+(1-e)*t}(2*(o=i)-o*o,(a=l)<=18?(s=a,7e-4*Math.pow(s,3)-.031*Math.pow(s,2)+.64*s+1.28):a>18&&a<=44?function(e){return 44e-6*Math.pow(e,3)-.006*Math.pow(e,2)+.36*e+2}(a):function(e){return 45e-8*Math.pow(e,3)-332e-6*Math.pow(e,2)+.1078*e+5.84}(a));return{stiffness:Oe(l),damping:Re(c)}};class De extends Te{constructor(e){var t,n,r,i,o,a,s,l,c,u,d;if(super(),this._overshootClamping=null!==(t=e.overshootClamping)&&void 0!==t&&t,this._restDisplacementThreshold=null!==(n=e.restDisplacementThreshold)&&void 0!==n?n:.001,this._restSpeedThreshold=null!==(r=e.restSpeedThreshold)&&void 0!==r?r:.001,this._initialVelocity=null!==(i=e.velocity)&&void 0!==i?i:0,this._lastVelocity=null!==(o=e.velocity)&&void 0!==o?o:0,this._toValue=e.toValue,this._delay=null!==(a=e.delay)&&void 0!==a?a:0,this._useNativeDriver=B(e),this._platformConfig=e.platformConfig,this.__isInteraction=null!==(s=e.isInteraction)&&void 0!==s?s:!this._useNativeDriver,this.__iterations=null!==(l=e.iterations)&&void 0!==l?l:1,void 0!==e.stiffness||void 0!==e.damping||void 0!==e.mass)h()(void 0===e.bounciness&&void 0===e.speed&&void 0===e.tension&&void 0===e.friction,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one"),this._stiffness=null!==(c=e.stiffness)&&void 0!==c?c:100,this._damping=null!==(u=e.damping)&&void 0!==u?u:10,this._mass=null!==(d=e.mass)&&void 0!==d?d:1;else if(void 0!==e.bounciness||void 0!==e.speed){var f,p;h()(void 0===e.tension&&void 0===e.friction&&void 0===e.stiffness&&void 0===e.damping&&void 0===e.mass,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one");var m=Pe(null!==(f=e.bounciness)&&void 0!==f?f:8,null!==(p=e.speed)&&void 0!==p?p:12);this._stiffness=m.stiffness,this._damping=m.damping,this._mass=1}else{var g,y,v=Me(null!==(g=e.tension)&&void 0!==g?g:40,null!==(y=e.friction)&&void 0!==y?y:7);this._stiffness=v.stiffness,this._damping=v.damping,this._mass=1}h()(this._stiffness>0,"Stiffness value must be greater than 0"),h()(this._damping>0,"Damping value must be greater than 0"),h()(this._mass>0,"Mass value must be greater than 0")}__getNativeAnimationConfig(){var e;return{type:"spring",overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!==(e=this._initialVelocity)&&void 0!==e?e:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(e,t,n,r,i){if(this.__active=!0,this._startPosition=e,this._lastPosition=this._startPosition,this._onUpdate=t,this.__onEnd=n,this._lastTime=Date.now(),this._frameTime=0,r instanceof De){var o=r.getInternalState();this._lastPosition=o.lastPosition,this._lastVelocity=o.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=o.lastTime}var a=()=>{this._useNativeDriver?this.__startNativeAnimation(i):this.onUpdate()};this._delay?this._timeout=setTimeout(a,this._delay):a()}getInternalState(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}onUpdate(){var e=Date.now();e>this._lastTime+64&&(e=this._lastTime+64);var t=(e-this._lastTime)/1e3;this._frameTime+=t;var n=this._damping,r=this._mass,i=this._stiffness,o=-this._initialVelocity,a=n/(2*Math.sqrt(i*r)),s=Math.sqrt(i/r),l=s*Math.sqrt(1-a*a),c=this._toValue-this._startPosition,u=0,h=0,d=this._frameTime;if(a<1){var f=Math.exp(-a*s*d);u=this._toValue-f*((o+a*s*c)/l*Math.sin(l*d)+c*Math.cos(l*d)),h=a*s*f*(Math.sin(l*d)*(o+a*s*c)/l+c*Math.cos(l*d))-f*(Math.cos(l*d)*(o+a*s*c)-l*c*Math.sin(l*d))}else{var p=Math.exp(-s*d);u=this._toValue-p*(c+(o+s*c)*d),h=p*(o*(d*s-1)+d*c*(s*s))}if(this._lastTime=e,this._lastPosition=u,this._lastVelocity=h,this._onUpdate(u),this.__active){var m=!1;this._overshootClamping&&0!==this._stiffness&&(m=this._startPositionthis._toValue:u{0!==this._duration||this._useNativeDriver?(this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(i):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))):(this._onUpdate(this._toValue),this.__debouncedOnEnd({finished:!0}))};this._delay?this._timeout=setTimeout(o,this._delay):o()}onUpdate(){var e=Date.now();if(e>=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((e-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}};var Ne=L.API,_e={r:0,g:0,b:0,a:1},ze=1;function Ve(e){if(null==e)return null;if(Ue(e))return e;var t=U()(e);if(null==t)return null;if("object"==typeof t){if(null!=t)return t}else if("number"==typeof t)return{r:(4278190080&t)>>>24,g:(16711680&t)>>>16,b:(65280&t)>>>8,a:(255&t)/255};return null}function Ue(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}class He extends z{constructor(e,t){super(),this._listeners={};var n=null!=e?e:_e;if(function(e){return e&&e.r instanceof Z&&e.g instanceof Z&&e.b instanceof Z&&e.a instanceof Z}(n)){var r=n;this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a}else{var i,o=null!==(i=Ve(n))&&void 0!==i?i:_e,a=_e;Ue(o)?a=o:this.nativeColor=o,this.r=new Z(a.r),this.g=new Z(a.g),this.b=new Z(a.b),this.a=new Z(a.a)}(this.nativeColor||t&&t.useNativeDriver)&&this.__makeNative()}setValue(e){var t,n=!1;if(this.__isNative){var r=this.__getNativeTag();Ne.setWaitingForIdentifier(r.toString())}var i=null!==(t=Ve(e))&&void 0!==t?t:_e;if(Ue(i)){var o=i;this.r.setValue(o.r),this.g.setValue(o.g),this.b.setValue(o.b),this.a.setValue(o.a),null!=this.nativeColor&&(this.nativeColor=null,n=!0)}else{var a=i;this.nativeColor!==a&&(this.nativeColor=a,n=!0)}if(this.__isNative){var s=this.__getNativeTag();n&&Ne.updateAnimatedNodeConfig(s,this.__getNativeConfig()),Ne.unsetWaitingForIdentifier(s.toString())}}setOffset(e){this.r.setOffset(e.r),this.g.setOffset(e.g),this.b.setOffset(e.b),this.a.setOffset(e.a)}flattenOffset(){this.r.flattenOffset(),this.g.flattenOffset(),this.b.flattenOffset(),this.a.flattenOffset()}extractOffset(){this.r.extractOffset(),this.g.extractOffset(),this.b.extractOffset(),this.a.extractOffset()}addListener(e){var t=String(ze++),n=t=>{t.value,e(this.__getValue())};return this._listeners[t]={r:this.r.addListener(n),g:this.g.addListener(n),b:this.b.addListener(n),a:this.a.addListener(n)},t}removeListener(e){this.r.removeListener(this._listeners[e].r),this.g.removeListener(this._listeners[e].g),this.b.removeListener(this._listeners[e].b),this.a.removeListener(this._listeners[e].a),delete this._listeners[e]}removeAllListeners(){this.r.removeAllListeners(),this.g.removeAllListeners(),this.b.removeAllListeners(),this.a.removeAllListeners(),this._listeners={}}stopAnimation(e){this.r.stopAnimation(),this.g.stopAnimation(),this.b.stopAnimation(),this.a.stopAnimation(),e&&e(this.__getValue())}resetAnimation(e){this.r.resetAnimation(),this.g.resetAnimation(),this.b.resetAnimation(),this.a.resetAnimation(),e&&e(this.__getValue())}__getValue(){return null!=this.nativeColor?this.nativeColor:"rgba("+this.r.__getValue()+", "+this.g.__getValue()+", "+this.b.__getValue()+", "+this.a.__getValue()+")"}__attach(){this.r.__addChild(this),this.g.__addChild(this),this.b.__addChild(this),this.a.__addChild(this),super.__attach()}__detach(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),super.__detach()}__makeNative(e){this.r.__makeNative(e),this.g.__makeNative(e),this.b.__makeNative(e),this.a.__makeNative(e),super.__makeNative(e)}__getNativeConfig(){return{type:"color",r:this.r.__getNativeTag(),g:this.g.__getNativeTag(),b:this.b.__getNativeTag(),a:this.a.__getNativeTag(),nativeColor:this.nativeColor}}}var qe=function(e,t){return e&&t.onComplete?function(){t.onComplete&&t.onComplete(...arguments),e&&e(...arguments)}:e||t.onComplete},Ge=function(e,t,n){if(e instanceof Ee){var i=(0,r.A)({},t),o=(0,r.A)({},t);for(var a in t){var s=t[a],l=s.x,c=s.y;void 0!==l&&void 0!==c&&(i[a]=l,o[a]=c)}var u=n(e.x,i),h=n(e.y,o);return Qe([u,h],{stopTogether:!1})}if(e instanceof He){var d=(0,r.A)({},t),f=(0,r.A)({},t),p=(0,r.A)({},t),m=(0,r.A)({},t);for(var g in t){var y=t[g],v=y.r,b=y.g,A=y.b,x=y.a;void 0!==v&&void 0!==b&&void 0!==A&&void 0!==x&&(d[g]=v,f[g]=b,p[g]=A,m[g]=x)}var w=n(e.r,d),C=n(e.g,f),S=n(e.b,p),E=n(e.a,m);return Qe([w,C,S,E],{stopTogether:!1})}return null},Ye=function e(t,n){var i=function(e,t,n){n=qe(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof _?r.track(new Ce(r,t.toValue,Fe,i,n)):r.animate(new Fe(i),n)};return Ge(t,n,e)||{start:function(e){i(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var o=(0,r.A)((0,r.A)({},n),{},{iterations:e});i(t,o)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},We=function(e){var t=0;return{start:function(n){0===e.length?n&&n({finished:!0}):e[t].start((function r(i){i.finished&&++t!==e.length?e[t].start(r):n&&n(i)}))},stop:function(){t{n<=t&&e.reset()})),t=0},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.sequence animations")},_isUsingNativeDriver:function(){return!1}}},Qe=function(e,t){var n=0,r={},i=!(t&&!1===t.stopTogether),o={start:function(t){n!==e.length?e.forEach(((a,s)=>{var l=function(a){if(r[s]=!0,++n===e.length)return n=0,void(t&&t(a));!a.finished&&i&&o.stop()};a?a.start(l):l({finished:!0})})):t&&t({finished:!0})},stop:function(){e.forEach(((e,t)=>{!r[t]&&e.stop(),r[t]=!0}))},reset:function(){e.forEach(((e,t)=>{e.reset(),r[t]=!1,n=0}))},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.parallel animations")},_isUsingNativeDriver:function(){return!1}};return o},Xe=function(e){return Ye(new Z(0),{toValue:0,delay:e,duration:0,useNativeDriver:!1})};const Je={Value:Z,ValueXY:Ee,Color:He,Interpolation:Q,Node:_,decay:function e(t,n){var i=function(e,t,n){n=qe(n,t);var r=e,i=t;r.stopTracking(),r.animate(new Ie(i),n)};return Ge(t,n,e)||{start:function(e){i(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var o=(0,r.A)((0,r.A)({},n),{},{iterations:e});i(t,o)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},timing:Ye,spring:function e(t,n){var i=function(e,t,n){n=qe(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof _?r.track(new Ce(r,t.toValue,je,i,n)):r.animate(new je(i),n)};return Ge(t,n,e)||{start:function(e){i(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var o=(0,r.A)((0,r.A)({},n),{},{iterations:e});i(t,o)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},add:function(e,t){return new ye(e,t)},subtract:function(e,t){return new we(e,t)},divide:function(e,t){return new be(e,t)},multiply:function(e,t){return new xe(e,t)},modulo:function(e,t){return new Ae(e,t)},diffClamp:function(e,t,n){return new ve(e,t,n)},delay:Xe,sequence:We,parallel:Qe,stagger:function(e,t){return Qe(t.map(((t,n)=>We([Xe(e*n),t]))))},loop:function(e,t){var n=void 0===t?{}:t,r=n.iterations,i=void 0===r?-1:r,o=n.resetBeforeIteration,a=void 0===o||o,s=!1,l=0;return{start:function(t){e&&0!==i?e._isUsingNativeDriver()?e._startNativeLoop(i):function n(r){void 0===r&&(r={finished:!0}),s||l===i||!1===r.finished?t&&t(r):(l++,a&&e.reset(),e.start(n))}():t&&t({finished:!0})},stop:function(){s=!0,e.stop()},reset:function(){l=0,s=!1,e.reset()},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.loop animations")},_isUsingNativeDriver:function(){return e._isUsingNativeDriver()}}},event:function(e,t){var n=new $(e,t);return n.__isNative?n:n.__getHandler()},createAnimatedComponent:le,attachNativeEvent:K,forkEvent:function(e,t){return e?e instanceof $?(e.__addListener(t),e):function(){"function"==typeof e&&e(...arguments),t(...arguments)}:t},unforkEvent:function(e,t){e&&e instanceof $&&e.__removeListener(t)},Event:$};var Ze=!1;function Ke(e){return t=>{var n=null==t?t:function(){if(Ze)console.warn("Ignoring recursive animation callback when running mock animations");else{Ze=!0;try{t(...arguments)}finally{Ze=!1}}};e(n)}}var $e={start:()=>{},stop:()=>{},reset:()=>{},_startNativeLoop:()=>{},_isUsingNativeDriver:()=>!1},et=e=>(0,r.A)((0,r.A)({},$e),{},{start:Ke((t=>{e.forEach((e=>e.start())),null==t||t({finished:!0})}))});const tt={Value:Z,ValueXY:Ee,Color:He,Interpolation:Q,Node:_,decay:function(e,t){return $e},timing:function(e,t){var n=e;return(0,r.A)((0,r.A)({},$e),{},{start:Ke((e=>{n.setValue(t.toValue),null==e||e({finished:!0})}))})},spring:function(e,t){var n=e;return(0,r.A)((0,r.A)({},$e),{},{start:Ke((e=>{n.setValue(t.toValue),null==e||e({finished:!0})}))})},add:Je.add,subtract:Je.subtract,divide:Je.divide,multiply:Je.multiply,modulo:Je.modulo,diffClamp:Je.diffClamp,delay:function(e){return $e},sequence:function(e){return et(e)},parallel:function(e,t){return et(e)},stagger:function(e,t){return et(t)},loop:function(e,t){return(void 0===t?{}:t).iterations,$e},event:Je.event,createAnimatedComponent:le,attachNativeEvent:K,forkEvent:Je.forkEvent,unforkEvent:Je.unforkEvent,Event:$};var nt=i.A.isTesting?tt:Je;const rt=(0,r.A)({FlatList:ce,Image:ue,ScrollView:de,SectionList:pe,Text:me,View:ge},nt)},95300:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(10612)),o=function(){function e(e,t){this.name=e,this.apiCall=t}return e.prototype.retrieve=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},e}();t.default=o},95437:(e,t,n)=>{"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=n(90162),o=n(69600),a=n(62120),s=n(93612);e.exports=function(e){if(i(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=function(e,t){var n=e[t];if(null!=n){if(!o(n))throw new TypeError(n+" returned for property "+String(t)+" of object "+e+" is not a function");return n}}(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var l=t.call(e,n);if(i(l))return l;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||s(e))&&(n="string"),function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a{"use strict";function r(){return new Promise(((e,t)=>{e(!0)}))}n.d(t,{A:()=>s});var i=n(7162).A&&"function"==typeof window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)"):null,o={},a={isScreenReaderEnabled:r,isReduceMotionEnabled:function(){return new Promise(((e,t)=>{e(!i||i.matches)}))},fetch:r,addEventListener:function(e,t){if("reduceMotionChanged"===e){if(!i)return;var n=e=>{t(e.matches)};r=n,null!=i&&(null!=i.addEventListener?i.addEventListener("change",r):i.addListener(r)),o[t]=n}var r;return{remove:()=>a.removeEventListener(e,t)}},setAccessibilityFocus:function(e){},announceForAccessibility:function(e){},removeEventListener:function(e,t){if("reduceMotionChanged"===e){var n=o[t];if(!n||!i)return;r=n,null!=i&&(null!=i.removeEventListener?i.removeEventListener("change",r):i.removeListener(r))}var r}};const s=a},95641:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importDefault(n(45706)),o=r.__importDefault(n(5996)),a=r.__importDefault(n(87361)),s=r.__importDefault(n(62626)),l=r.__importDefault(n(10612)),c=r.__importDefault(n(95300)),u=r.__importDefault(n(80326)),h=r.__importDefault(n(2275)),d=r.__importDefault(n(53343)),f=r.__importDefault(n(70657)),p=r.__importDefault(n(74955)),m=r.__importDefault(n(88231)),g=r.__importDefault(n(83684)),y=r.__importDefault(n(18621)),v=r.__importDefault(n(65156)),b=r.__importDefault(n(93777)),A=r.__importDefault(n(10800)),x=r.__importDefault(n(3533)),w=r.__importDefault(n(24646)),C=r.__importDefault(n(8700)),S=r.__importDefault(n(88313)),E=r.__importDefault(n(62786)),k=function(){function e(e){var t;e.sendApiKeyAsQueryParam=null!==(t=e.sendApiKeyAsQueryParam)&&void 0!==t&&t,this.configuration=new i.default(e),this.apiCall=new o.default(this.configuration),this.debug=new d.default(this.apiCall),this.metrics=new f.default(this.apiCall),this.stats=new p.default(this.apiCall),this.health=new m.default(this.apiCall),this.operations=new g.default(this.apiCall),this.multiSearch=new y.default(this.apiCall,this.configuration),this._collections=new a.default(this.apiCall),this.individualCollections={},this._aliases=new l.default(this.apiCall),this.individualAliases={},this._keys=new u.default(this.apiCall),this.individualKeys={},this._presets=new v.default(this.apiCall),this.individualPresets={},this._stopwords=new x.default(this.apiCall),this.individualStopwords={},this.analytics=new A.default(this.apiCall),this.stemming=new E.default(this.apiCall),this._conversations=new C.default(this.apiCall),this.individualConversations={}}return e.prototype.collections=function(e){return void 0===e?this._collections:(void 0===this.individualCollections[e]&&(this.individualCollections[e]=new s.default(e,this.apiCall,this.configuration)),this.individualCollections[e])},e.prototype.aliases=function(e){return void 0===e?this._aliases:(void 0===this.individualAliases[e]&&(this.individualAliases[e]=new c.default(e,this.apiCall)),this.individualAliases[e])},e.prototype.keys=function(e){return void 0===e?this._keys:(void 0===this.individualKeys[e]&&(this.individualKeys[e]=new h.default(e,this.apiCall)),this.individualKeys[e])},e.prototype.presets=function(e){return void 0===e?this._presets:(void 0===this.individualPresets[e]&&(this.individualPresets[e]=new b.default(e,this.apiCall)),this.individualPresets[e])},e.prototype.stopwords=function(e){return void 0===e?this._stopwords:(void 0===this.individualStopwords[e]&&(this.individualStopwords[e]=new w.default(e,this.apiCall)),this.individualStopwords[e])},e.prototype.conversations=function(e){return void 0===e?this._conversations:(void 0===this.individualConversations[e]&&(this.individualConversations[e]=new S.default(e,this.apiCall)),this.individualConversations[e])},e}();t.default=k},95711:(e,t)=>{t.t=function(e){if("number"!=typeof e){const t=Array.isArray(e)?"array":typeof e;throw new Error(`ERROR! Earth radius has to be a number but was: ${t}`)}if(e<=0)throw new Error(`ERROR! Earth radius has to be a positive number but was: ${e}`)}},95715:function(e){e.exports=function(){"use strict";class e{constructor(e={resolution:2}){this.options=e,this.version="0.1.0",this._R2D=180/Math.PI,this._D2R=Math.PI/180;var t=this._compute(this.options.time);return this._toGeoJSON(t)}setTime(e){this.options.time=e;var t=this._compute(e);return this._toGeoJSON(t)}_toGeoJSON(e){return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[...e.map((e=>[e[1],e[0]])),[e[0][1],e[0][0]]].slice().reverse()]}}]}}_sunEclipticPosition(e){var t=e-2451545,n=280.46+.9856474*t,r=357.528+.9856003*t;return r%=360,{lambda:(n%=360)+1.915*Math.sin(r*this._D2R)+.02*Math.sin(2*r*this._D2R),R:1.00014-.01671*Math.cos(r*this._D2R)-.0014*Math.cos(2*r*this._D2R)}}_eclipticObliquity(e){var t=(e-2451545)/36525;return 23.43929111-t*(46.836769/3600-t*(1831e-7/3600+t*(5.565e-7-t*(1.6e-10-4.34e-8*t/3600))))}_sunEquatorialPosition(e,t){var n=Math.atan(Math.cos(t*this._D2R)*Math.tan(e*this._D2R))*this._R2D,r=Math.asin(Math.sin(t*this._D2R)*Math.sin(e*this._D2R))*this._R2D;return{alpha:n+=90*Math.floor(e/90)-90*Math.floor(n/90),delta:r}}_hourAngle(e,t,n){return 15*(n+e/15)-t.alpha}_latitude(e,t){return Math.atan(-Math.cos(e*this._D2R)/Math.tan(t.delta*this._D2R))*this._R2D}_compute(e){for(var t=(e?new Date(e):new Date)/864e5+2440587.5,n=function(e){return(18.697374558+24.06570982441908*(e-2451545))%24}(t),r=[],i=-360,o=this._sunEclipticPosition(t),a=this._eclipticObliquity(t),s=this._sunEquatorialPosition(o.lambda,a),l=0;l<=720*this.options.resolution;l++){var c=i+l/this.options.resolution,u=this._hourAngle(c,s,n);r[l+1]=[this._latitude(u,s),c]}return s.delta<0?(r[0]=[90,i],r[r.length]=[90,360]):(r[0]=[-90,i],r[r.length]=[-90,360]),r}}return function(t){return new e(t)}}()},95746:(e,t,n)=>{"use strict";var r,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{default:()=>f}),e.exports=(r=h,u(o({},"__esModule",{value:!0}),r));var d=((e,t,n)=>(n=null!=e?i(l(e)):{},u(e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(40295));class f extends d.default{size=1;name;values;get byteSize(){return this.size}constructor(e){super(e);const[,t,n]=/^(.+?)\[(.+,?)+\]$/.exec(e)??[];if(!t)throw new Error(`Invalid field name: ${e}`);if(!n)throw new Error(`Invalid field values: ${e}`);this.name=t,this.values=n.split(",")}decode(e,t){return[this.values[e.getUint8(t)]??"",this.size]}encode(e){const t=this.values.indexOf(e);if(-1===t)throw new d.EncodeError(`Value "${e}" not in allowed values: ${this.values.join(", ")}`);const n=new ArrayBuffer(this.size);return new DataView(n).setUint8(0,t),n}randomValue(){return this.values[Math.floor(Math.random()*this.values.length)]??""}}},95784:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={allowRTL(){},forceRTL(){},getConstants:()=>({isRTL:!1})}},96177:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8683),i=n(99241);function o(e){return e.pointerEvents,e.style,(0,i.A)((()=>e=>{null!=e&&(e.measure=t=>r.A.measure(e,t),e.measureLayout=(t,n,i)=>r.A.measureLayout(e,t,i,n),e.measureInWindow=t=>r.A.measureInWindow(e,t))}))}},96540:(e,t,n)=>{"use strict";e.exports=n(29869)},96570:(e,t,n)=>{"use strict";var r=n(70453),i=n(75880),o=r("%Number%"),a=r("%BigInt%",!0);e.exports=function(e,t,n,r){for(var s=r?a:o,l=s(0),c=0;c{"use strict";n.d(t,{A:()=>f});var r,i=.1,o="function"==typeof Float32Array;function a(e,t){return 1-3*t+3*e}function s(e,t){return 3*t-6*e}function l(e){return 3*e}function c(e,t,n){return((a(t,n)*e+s(t,n))*e+l(t))*e}function u(e,t,n){return 3*a(t,n)*e*e+2*s(t,n)*e+l(t)}function h(e,t,n,r){if(!(e>=0&&e<=1&&n>=0&&n<=1))throw new Error("bezier x values must be in [0, 1] range");var a=o?new Float32Array(11):new Array(11);if(e!==t||n!==r)for(var s=0;s<11;++s)a[s]=c(s*i,e,n);return function(o){return e===t&&n===r?o:0===o?0:1===o?1:c(function(t){for(var r=0,o=1;10!==o&&a[o]<=t;++o)r+=i;--o;var s=r+(t-a[o])/(a[o+1]-a[o])*i,l=u(s,e,n);return l>=.001?function(e,t,n,r){for(var i=t,o=0;o<4;++o){var a=u(i,n,r);if(0===a)return i;i-=(c(i,n,r)-e)/a}return i}(t,s,e,n):0===l?s:function(e,t,n,r,i){var o,a,s=0,l=t,u=n;do{(o=c(a=l+(u-l)/2,r,i)-e)>0?u=a:l=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+i,e,n)}(o),t,r)}}class d{static step0(e){return e>0?1:0}static step1(e){return e>=1?1:0}static linear(e){return e}static ease(e){return r||(r=d.bezier(.42,0,1,1)),r(e)}static quad(e){return e*e}static cubic(e){return e*e*e}static poly(e){return t=>Math.pow(t,e)}static sin(e){return 1-Math.cos(e*Math.PI/2)}static circle(e){return 1-Math.sqrt(1-e*e)}static exp(e){return Math.pow(2,10*(e-1))}static elastic(e){void 0===e&&(e=1);var t=e*Math.PI;return e=>1-Math.pow(Math.cos(e*Math.PI/2),3)*Math.cos(e*t)}static back(e){return void 0===e&&(e=1.70158),t=>t*t*((e+1)*t-e)}static bounce(e){if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){var t=e-1.5/2.75;return 7.5625*t*t+.75}if(e<2.5/2.75){var n=e-2.25/2.75;return 7.5625*n*n+.9375}var r=e-2.625/2.75;return 7.5625*r*r+.984375}static bezier(e,t,n,r){return h(e,t,n,r)}static in(e){return e}static out(e){return t=>1-e(1-t)}static inOut(e){return t=>t<.5?e(2*t)/2:1-e(2*(1-t))/2}}const f=d},96897:(e,t,n)=>{"use strict";var r=n(70453),i=n(30041),o=n(30592)(),a=n(75795),s=n(69675),l=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},97576:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=()=>{};function i(){return null}i.setBackgroundColor=r,i.setBarStyle=r,i.setHidden=r,i.setNetworkActivityIndicatorVisible=r,i.setTranslucent=r;const o=i},97825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},97887:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAAAQCAYAAAD59vZgAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAI2SURBVHgB7Zm7bhNBFIZn9uJdry/aXCDECmRFFTokCiKqSDxBSip4ART5CZJI9MATBBrq0FC7w0JCdGDRsJJRkEksY2/2vjvDGTCWZcdmo3Tr80mjlWZnul8z35xDySW4ubX9BD77MCyC5BEbxmG71XyVdQPNssja2t5JITiKqt3TS+YPVTMcguSOOPQqnnNmpSz5rHC6a7ea9v/2zA0QBMeC4BxJkvwAgnOiGdUuQXJP6PdXArdfY2n6RoYTaV6QLgyQZe2YTA/2iCQ91fRypBlmR5LllCALhe90a4E3WIeQHEiEvL4oSFMBunXn/h6HDQWtEhXLyycYnMWGpXHBP+/VosAV2jLlR6MADT3nCDxnxagut2VF9wmCDBFBcvunVhKHXUJZvf3lw7GYp+OeY1RXbRRkZB6TfkThaf6tWDYVvbTUIQiSEd/tXYfRlf7eYZQTBMkInD4KT9KCxKkpL61uvI2iYDPynYeU0hQcCN0HmYm4wrzB6e0kDj7BFbY7kugNkGhJuJCirpXAhWRV9wiCDIlDvxK4vXWQ6I9wXR1+bzUbYn7qGS/aFTC5r+qlShGqzpJSCAmysLAk0tzB2WYKry/OaL399f3x+P+ZlWg4kUTx6DEGaTERnhOc925E4UBjnL5UAv2FbTd+Ta7L0so4gCf+I2hjdKCd8ZMguUYEJ/T610LfWWOcPZsVnH9kbaaOgoQ9sfwyqvGw5J3Maf3KzdRJ/og2pc8553cJkkca44Kchd/pwgFBSJ4nLQAAAABJRU5ErkJggg=="},98017:e=>{"use strict";e.exports=function(e){return 0===e&&1/e==-1/0}},98584:(e,t,n)=>{const r=n(10920);function i(e,t){return function(n){return t(e(n))}}function o(e,t){const n=[t[e].parent,e];let o=r[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)n.unshift(t[a].parent),o=i(r[t[a].parent][a],o),a=t[a].parent;return o.conversion=n,o}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},98599:(e,t,n)=>{"use strict";var r=n(38452),i=n(93628),o=n(52521);e.exports=function(){if("function"==typeof Uint8Array){var e=o(),t=i(Uint8Array.prototype);r(t,{slice:e},{slice:function(){return t.slice!==e}})}return e}},99154:e=>{"use strict";var t=1075;e.exports=function(e){var n="";if(0===e)return n;for(var r,i=t,o=0;o=1?(e=r-1,n+="1",i===t&&(i=o)):(e=r,n+="0"),1===r||o-i>54)return n;return n}},99241:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(96540),i="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():Object.freeze({});function o(e){var t=r.useRef(i);return t.current===i&&(t.current=e()),t.current}},99271:(e,t,n)=>{"use strict";var r=n(69675),i=n(55986),o=n(6575),a=n(45291),s=n(4742),l=n(69346),c=n(74372),u=n(72308),h=n(66058);e.exports=function(e){if(!l(e))throw new r("Assertion failed: `taRecord` must be a TypedArray With Buffer Witness Record");if(a(e))throw new r("Assertion failed: `taRecord` is out of bounds");var t=e["[[Object]]"],n=h(t);if("AUTO"!==n)return n;if(o(c(t)))throw new r("Assertion failed: array buffer is not fixed length");var d=u(t),f=s(t),p=e["[[CachedBufferByteLength]]"];if("DETACHED"===p)throw new r("Assertion failed: typed array is detached");return i((p-d)/f)}},99291:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},99308:(e,t,n)=>{"use strict";var r=n(59719),i=n(8410),o=n(55986),a=n(94459);e.exports=function(e){var t=i(e);if(a(t))return 0;var n=r(t,0,255),s=o(n);return ns+.5?s+1:s%2==0?s:s+1}},99518:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(63384);class i{static get(){return r.A.get("window").scale}static getFontScale(){return r.A.get("window").fontScale||i.get()}static getPixelSizeForLayoutSize(e){return Math.round(e*i.get())}static roundToNearestPixel(e){var t=i.get();return Math.round(e*t)/t}}},99530:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){let n=0,o=1;for(const a of e.body.matchAll(i)){if("number"==typeof a.index||(0,r.invariant)(!1),a.index>=t)break;n=a.index+a[0].length,o+=1}return{line:o,column:t+1-n}};var r=n(61321);const i=/\r\n|[\n\r]/g},99721:(e,t,n)=>{"use strict";var r=n(36556),i=n(14035),o=r("RegExp.prototype.exec"),a=n(69675);e.exports=function(e){if(!i(e))throw new a("`regex` must be a RegExp");return function(t){return null!==o(e,t)}}},99897:(e,t,n)=>{"use strict";var r=n(36268),i=n(93628);e.exports=function(){return"object"==typeof Reflect&&Reflect&&Reflect.getPrototypeOf?Reflect.getPrototypeOf:i?function(e){return i(e)}:r}},99969:(e,t,n)=>{"use strict";var r=n(70453)("%BigInt%",!0),i=n(79290),o=n(69675),a=r&&r(0);e.exports=function(e,t){if("bigint"!=typeof e||"bigint"!=typeof t)throw new o("Assertion failed: `n` and `d` arguments must be BigInts");if(t===a)throw new i("Division by zero");return e===a?a:e%t}}},__webpack_module_cache__={},leafPrototypes,getProto;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);__webpack_require__.r(n);var r={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var i=2&t&&e;("object"==typeof i||"function"==typeof i)&&!~leafPrototypes.indexOf(i);i=getProto(i))Object.getOwnPropertyNames(i).forEach((t=>r[t]=()=>e[t]));return r.default=()=>e,__webpack_require__.d(n,r),n},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),__webpack_require__.p="./",__webpack_require__.b=document.baseURI||self.location.href,__webpack_require__.nc=void 0;var __webpack_exports__={};(()=>{"use strict";var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasBrowserEnv:()=>XD,hasStandardBrowserEnv:()=>ZD,hasStandardBrowserWebWorkerEnv:()=>KD,navigator:()=>JD,origin:()=>$D});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{goBack:()=>F_,navigate:()=>N_,reset:()=>__,setParams:()=>z_});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{applyToPoint:()=>IH,applyToPoints:()=>RH,compose:()=>AH,rotate:()=>SH,rotateDEG:()=>kH,scale:()=>PH,transform:()=>vH,translate:()=>wH});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{applyToPoint:()=>tq,applyToPoints:()=>nq,compose:()=>fq,decomposeTSR:()=>jq,flipOrigin:()=>Fq,flipX:()=>Bq,flipY:()=>Lq,fromDefinition:()=>Oq,fromObject:()=>rq,fromOneMovingPoint:()=>Nq,fromString:()=>oq,fromTransformAttribute:()=>Dq,fromTriangles:()=>Iq,fromTwoMovingPoints:()=>_q,identity:()=>aq,inverse:()=>sq,isAffineMatrix:()=>uq,rotate:()=>yq,rotateDEG:()=>vq,scale:()=>bq,shear:()=>Aq,skew:()=>wq,skewDEG:()=>Cq,smoothMatrix:()=>Tq,toCSS:()=>Sq,toSVG:()=>Eq,toString:()=>kq,transform:()=>dq,translate:()=>hq});var i={};__webpack_require__.r(i),__webpack_require__.d(i,{Decoder:()=>vce,Encoder:()=>gce,PacketType:()=>mce,protocol:()=>pce});var o=__webpack_require__(5338),a=__webpack_require__(36998),s=__webpack_require__(29697);const l={UNDETERMINED:0,FAILED:1,BEGAN:2,CANCELLED:3,ACTIVE:4,END:5},c={UNDETERMINED:0,TOUCHES_DOWN:1,TOUCHES_MOVE:2,TOUCHES_UP:3,TOUCHES_CANCELLED:4};var u=__webpack_require__(96540),h=__webpack_require__.t(u,2);function d(){return e=__webpack_require__.g,Object.prototype.hasOwnProperty.call(e,"process")&&!1;var e}function f(e){return`[react-native-gesture-handler] ${e}`}function p(){var e;return!(null===(e=__webpack_require__.g)||void 0===e||!e.nativeFabricUIManager)}function m(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null===e||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n)if(!r.includes(i)||!m(e[i],t[i]))return!1;return!0}const g=2**31-1,y={},v=new Map,b=new Map,A=new Map;function x(e,t,n){v.set(e,t),d()&&n&&A.set(n,e)}function w(e,t){v.delete(e),d()&&t&&A.delete(t)}class C{static getHandler(e){if(e in this.gestures)return this.gestures[e];throw new Error(`No handler for tag ${e}`)}static createGestureHandler(e,t){if(e in this.gestures)throw new Error(`Handler with tag ${e} already exists. Please ensure that no Gesture instance is used across multiple GestureDetectors.`);this.gestures[e]=t,this.gestures[e].handlerTag=e}static dropGestureHandler(e){e in this.gestures&&(this.gestures[e].onDestroy(),delete this.gestures[e])}static get nodes(){return Object.assign({},this.gestures)}}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(C,"gestures",{});const S={create:e=>({begin:()=>{C.getHandler(e).begin()},activate:()=>{C.getHandler(e).activate(!0)},fail:()=>{C.getHandler(e).fail()},end:()=>{C.getHandler(e).end()}})};let E=null,k=null;const T=new Map,I=[];function O(e){return null!=e.oldState}function R(e){var t,n,r,i,o,a,s,u;const h=function(e){return v.get(e)}(e.handlerTag);if(h){var d,f;if(O(e))if(e.oldState===l.UNDETERMINED&&e.state===l.BEGAN)null===(d=(f=h.handlers).onBegin)||void 0===d||d.call(f,e);else if(e.oldState!==l.BEGAN&&e.oldState!==l.UNDETERMINED||e.state!==l.ACTIVE){if(e.oldState!==e.state&&e.state===l.END){var p,m,g,y;e.oldState===l.ACTIVE&&(null===(g=(y=h.handlers).onEnd)||void 0===g||g.call(y,e,!0)),null===(p=(m=h.handlers).onFinalize)||void 0===p||p.call(m,e,!0),I[h.handlers.handlerTag]=void 0}else if((e.state===l.FAILED||e.state===l.CANCELLED)&&e.oldState!==e.state){var A,x,w,C;e.oldState===l.ACTIVE&&(null===(w=(C=h.handlers).onEnd)||void 0===w||w.call(C,e,!1)),null===(A=(x=h.handlers).onFinalize)||void 0===A||A.call(x,e,!1),T.delete(e.handlerTag),I[h.handlers.handlerTag]=void 0}}else{var E,k;null===(E=(k=h.handlers).onStart)||void 0===E||E.call(k,e),I[h.handlers.handlerTag]=e}else if(function(e){return null!=e.eventType}(e)){T.has(e.handlerTag)||T.set(e.handlerTag,S.create(e.handlerTag));const l=T.get(e.handlerTag);switch(e.eventType){case c.TOUCHES_DOWN:null===(t=h.handlers)||void 0===t||null===(n=t.onTouchesDown)||void 0===n||n.call(t,e,l);break;case c.TOUCHES_MOVE:null===(r=h.handlers)||void 0===r||null===(i=r.onTouchesMove)||void 0===i||i.call(r,e,l);break;case c.TOUCHES_UP:null===(o=h.handlers)||void 0===o||null===(a=o.onTouchesUp)||void 0===a||a.call(o,e,l);break;case c.TOUCHES_CANCELLED:null===(s=h.handlers)||void 0===s||null===(u=s.onTouchesCancelled)||void 0===u||u.call(s,e,l)}}else{var R,M,P,D,j,B;null===(R=(M=h.handlers).onUpdate)||void 0===R||R.call(M,e),h.handlers.onChange&&h.handlers.changeEventCalculator&&(null===(P=(D=h.handlers).onChange)||void 0===P||P.call(D,null===(j=(B=h.handlers).changeEventCalculator)||void 0===j?void 0:j.call(B,e,I[h.handlers.handlerTag])),I[h.handlers.handlerTag]=e)}}else{const t=function(e){return b.get(e)}(e.handlerTag);if(t){const n={nativeEvent:e};return void(O(e)?t.onGestureStateChange(n):t.onGestureEvent(n))}}}let M=!0,P=!1;function D(){return P=!0,M}let j,B,F,N;function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.DOWN=0]="DOWN",e[e.ADDITIONAL_POINTER_DOWN=1]="ADDITIONAL_POINTER_DOWN",e[e.UP=2]="UP",e[e.ADDITIONAL_POINTER_UP=3]="ADDITIONAL_POINTER_UP",e[e.MOVE=4]="MOVE",e[e.ENTER=5]="ENTER",e[e.LEAVE=6]="LEAVE",e[e.CANCEL=7]="CANCEL"}(j||(j={})),function(e){e[e.UNDETERMINED=0]="UNDETERMINED",e[e.DOWN=1]="DOWN",e[e.MOVE=2]="MOVE",e[e.UP=3]="UP",e[e.CANCELLED=4]="CANCELLED"}(B||(B={})),function(e){e[e.UNDETERMINED=0]="UNDETERMINED",e[e.MOUSE=1]="MOUSE",e[e.TOUCHPAD=2]="TOUCHPAD"}(F||(F={})),function(e){e[e.TOUCH=0]="TOUCH",e[e.STYLUS=1]="STYLUS",e[e.MOUSE=2]="MOUSE",e[e.KEY=3]="KEY",e[e.OTHER=4]="OTHER"}(N||(N={}));class z{constructor(e){_(this,"capacity",void 0),_(this,"buffer",void 0),_(this,"index",void 0),_(this,"_size",void 0),this.capacity=e,this.buffer=new Array(e),this.index=0,this._size=0}push(e){this.buffer[this.index]=e,this.index=(this.index+1)%this.capacity,this._size=Math.min(this.size+1,this.capacity)}get(e){if(this._size===this.capacity){let t=(this.index+e)%this.capacity;return t<0&&(t+=this.capacity),this.buffer[t]}return this.buffer[e]}clear(){this.buffer=new Array(this.capacity),this.index=0,this._size=0}get size(){return this._size}}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class U{constructor(e){V(this,"offset",void 0),V(this,"length",void 0),V(this,"elements",void 0),this.offset=0,this.length=e,this.elements=new Array(e)}static fromVOL(e,t,n){const r=new U(0);return r.offset=t,r.length=n,r.elements=e,r}get(e){return this.elements[this.offset+e]}set(e,t){this.elements[this.offset+e]=t}dot(e){let t=0;for(let n=0;nthis.x.length)return null;const t=new q(e),n=this.x.length,r=e+1,i=new H(r,n);for(let e=0;e=0;e-=1){t.coefficients[e]=o.getRow(e).dot(s);for(let n=r-1;n>e;n-=1)t.coefficients[e]-=a.get(e,n)*t.coefficients[n];t.coefficients[e]/=a.get(e,e)}return t}}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class W{constructor(){Y(this,"assumePointerMoveStoppedMilliseconds",40),Y(this,"historySize",20),Y(this,"horizonMilliseconds",300),Y(this,"minSampleSize",3),Y(this,"samples",void 0),this.samples=new z(this.historySize)}add(e){this.samples.push(e)}getVelocityEstimate(){const e=[],t=[],n=[],r=[];let i=0,o=this.samples.size-1;const a=this.samples.get(o);if(!a)return null;let s=a;for(;ithis.horizonMilliseconds||u>this.assumePointerMoveStoppedMilliseconds)break;e.push(l.x),t.push(l.y),n.push(1),r.push(-c),i++,o--}if(i>=this.minSampleSize){const i=new G(r,e,n).solve(2);if(null!==i){const e=new G(r,t,n).solve(2);if(null!==e)return[1e3*i.coefficients[1],1e3*e.coefficients[1]]}}return null}get velocity(){const e=this.getVelocityEstimate();return null!==e?e:[0,0]}reset(){this.samples.clear()}}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class X{constructor(){Q(this,"velocityTracker",new W),Q(this,"_trackedPointers",new Map),Q(this,"touchEventsIds",new Map),Q(this,"lastMovedPointerId",void 0),Q(this,"cachedAbsoluteAverages",{x:0,y:0}),Q(this,"cachedRelativeAverages",{x:0,y:0}),this.lastMovedPointerId=NaN;for(let e=0;e<20;++e)this.touchEventsIds.set(e,NaN)}addToTracker(e){if(this.trackedPointers.has(e.pointerId))return;this.lastMovedPointerId=e.pointerId;const t={abosoluteCoords:{x:e.x,y:e.y},relativeCoords:{x:e.offsetX,y:e.offsetY},timestamp:e.time,velocityX:0,velocityY:0};this.trackedPointers.set(e.pointerId,t),this.mapTouchEventId(e.pointerId),this.cachedAbsoluteAverages=this.getAbsoluteCoordsAverage(),this.cachedRelativeAverages=this.getRelativeCoordsAverage()}removeFromTracker(e){this.trackedPointers.delete(e),this.removeMappedTouchId(e)}track(e){const t=this.trackedPointers.get(e.pointerId);if(!t)return;this.lastMovedPointerId=e.pointerId,this.velocityTracker.add(e);const[n,r]=this.velocityTracker.velocity;t.velocityX=n,t.velocityY=r,t.abosoluteCoords={x:e.x,y:e.y},t.relativeCoords={x:e.offsetX,y:e.offsetY},this.trackedPointers.set(e.pointerId,t),this.cachedAbsoluteAverages=this.getAbsoluteCoordsAverage(),this.cachedRelativeAverages=this.getRelativeCoordsAverage()}mapTouchEventId(e){for(const[t,n]of this.touchEventsIds)if(isNaN(n)){this.touchEventsIds.set(t,e);break}}removeMappedTouchId(e){const t=this.getMappedTouchEventId(e);isNaN(t)||this.touchEventsIds.set(t,NaN)}getMappedTouchEventId(e){for(const[t,n]of this.touchEventsIds.entries())if(n===e)return t;return NaN}getVelocity(e){var t,n;return{x:null===(t=this.trackedPointers.get(e))||void 0===t?void 0:t.velocityX,y:null===(n=this.trackedPointers.get(e))||void 0===n?void 0:n.velocityY}}getLastAbsoluteCoords(e){var t;return null===(t=this.trackedPointers.get(null!=e?e:this.lastMovedPointerId))||void 0===t?void 0:t.abosoluteCoords}getLastRelativeCoords(e){var t;return null===(t=this.trackedPointers.get(null!=e?e:this.lastMovedPointerId))||void 0===t?void 0:t.relativeCoords}getAbsoluteCoordsAverage(){const e=this.getAbsoluteCoordsSum(),t=e.x/this.trackedPointers.size,n=e.y/this.trackedPointers.size;return{x:isNaN(t)?this.cachedAbsoluteAverages.x:t,y:isNaN(n)?this.cachedAbsoluteAverages.y:n}}getRelativeCoordsAverage(){const e=this.getRelativeCoordsSum(),t=e.x/this.trackedPointers.size,n=e.y/this.trackedPointers.size;return{x:isNaN(t)?this.cachedRelativeAverages.x:t,y:isNaN(n)?this.cachedRelativeAverages.y:n}}getAbsoluteCoordsSum(e){const t={x:0,y:0};return this.trackedPointers.forEach(((n,r)=>{r!==e&&(t.x+=n.abosoluteCoords.x,t.y+=n.abosoluteCoords.y)})),t}getRelativeCoordsSum(e){const t={x:0,y:0};return this.trackedPointers.forEach(((n,r)=>{r!==e&&(t.x+=n.relativeCoords.x,t.y+=n.relativeCoords.y)})),t}resetTracker(){this.velocityTracker.reset(),this.trackedPointers.clear(),this.lastMovedPointerId=NaN;for(let e=0;e<20;++e)this.touchEventsIds.set(e,NaN)}static shareCommonPointers(e,t){return e.some((e=>t.includes(e)))}get trackedPointersCount(){return this.trackedPointers.size}get trackedPointersIDs(){const e=[];return this.trackedPointers.forEach(((t,n)=>{e.push(n)})),e}get trackedPointers(){return this._trackedPointers}}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Z{constructor(){J(this,"gestureHandlers",[]),J(this,"awaitingHandlers",[]),J(this,"awaitingHandlersTags",new Set),J(this,"handlingChangeSemaphore",0),J(this,"activationIndex",0)}scheduleFinishedHandlersCleanup(){0===this.handlingChangeSemaphore&&this.cleanupFinishedHandlers()}cleanHandler(e){e.reset(),e.active=!1,e.awaiting=!1,e.activationIndex=Number.MAX_VALUE}removeHandlerFromOrchestrator(e){const t=this.gestureHandlers.indexOf(e),n=this.awaitingHandlers.indexOf(e);t>=0&&this.gestureHandlers.splice(t,1),n>=0&&(this.awaitingHandlers.splice(n,1),this.awaitingHandlersTags.delete(e.handlerTag))}cleanupFinishedHandlers(){const e=new Set;for(let t=this.gestureHandlers.length-1;t>=0;--t){const n=this.gestureHandlers[t];this.isFinished(n.state)&&!n.awaiting&&(this.cleanHandler(n),e.add(n))}this.gestureHandlers=this.gestureHandlers.filter((t=>!e.has(t)))}hasOtherHandlerToWaitFor(e){return this.gestureHandlers.some((t=>!this.isFinished(t.state)&&this.shouldHandlerWaitForOther(e,t)))}shouldBeCancelledByFinishedHandler(e){return this.gestureHandlers.some((t=>this.shouldHandlerWaitForOther(e,t)&&t.state===l.END))}tryActivate(e){if(this.shouldBeCancelledByFinishedHandler(e))return void e.cancel();if(this.hasOtherHandlerToWaitFor(e))return void this.addAwaitingHandler(e);const t=e.state;t!==l.CANCELLED&&t!==l.FAILED&&(this.shouldActivate(e)?this.makeActive(e):t!==l.ACTIVE?t===l.BEGAN&&e.cancel():e.fail())}shouldActivate(e){return!this.gestureHandlers.some((t=>this.shouldHandlerBeCancelledBy(e,t)))}cleanupAwaitingHandlers(e){const t=t=>!t.awaiting&&this.shouldHandlerWaitForOther(t,e);for(const e of this.awaitingHandlers)t(e)&&(this.cleanHandler(e),this.awaitingHandlersTags.delete(e.handlerTag));this.awaitingHandlers=this.awaitingHandlers.filter((e=>this.awaitingHandlersTags.has(e.handlerTag)))}onHandlerStateChange(e,t,n,r){if(e.enabled||r){if(this.handlingChangeSemaphore+=1,this.isFinished(t))for(const n of this.awaitingHandlers)this.shouldHandlerWaitForOther(n,e)&&this.awaitingHandlersTags.has(n.handlerTag)&&(t===l.END?(n.cancel(),n.state===l.END&&n.sendEvent(l.CANCELLED,l.BEGAN),n.awaiting=!1):this.tryActivate(n));t===l.ACTIVE?this.tryActivate(e):n===l.ACTIVE||n===l.END?e.active?e.sendEvent(t,n):n!==l.ACTIVE||t!==l.CANCELLED&&t!==l.FAILED||e.sendEvent(t,l.BEGAN):n===l.UNDETERMINED&&t===l.CANCELLED||e.sendEvent(t,n),this.handlingChangeSemaphore-=1,this.scheduleFinishedHandlersCleanup(),this.awaitingHandlers.includes(e)||this.cleanupAwaitingHandlers(e)}}makeActive(e){const t=e.state;e.active=!0,e.shouldResetProgress=!0,e.activationIndex=this.activationIndex++;for(let t=this.gestureHandlers.length-1;t>=0;--t)this.shouldHandlerBeCancelledBy(this.gestureHandlers[t],e)&&this.gestureHandlers[t].cancel();for(const t of this.awaitingHandlers)this.shouldHandlerBeCancelledBy(t,e)&&(t.awaiting=!1);e.sendEvent(l.ACTIVE,l.BEGAN),t!==l.ACTIVE&&(e.sendEvent(l.END,l.ACTIVE),t!==l.END&&e.sendEvent(l.UNDETERMINED,l.END)),e.awaiting&&(e.awaiting=!1,this.awaitingHandlers=this.awaitingHandlers.filter((t=>t!==e)))}addAwaitingHandler(e){this.awaitingHandlers.includes(e)||(this.awaitingHandlers.push(e),this.awaitingHandlersTags.add(e.handlerTag),e.awaiting=!0,e.activationIndex=this.activationIndex++)}recordHandlerIfNotPresent(e){this.gestureHandlers.includes(e)||(this.gestureHandlers.push(e),e.active=!1,e.awaiting=!1,e.activationIndex=Number.MAX_SAFE_INTEGER)}shouldHandlerWaitForOther(e,t){return e!==t&&(e.shouldWaitForHandlerFailure(t)||t.shouldRequireToWaitForFailure(e))}canRunSimultaneously(e,t){return e===t||e.shouldRecognizeSimultaneously(t)||t.shouldRecognizeSimultaneously(e)}shouldHandlerBeCancelledBy(e,t){if(this.canRunSimultaneously(e,t))return!1;if(e.awaiting||e.state===l.ACTIVE)return e.shouldBeCancelledByOther(t);const n=e.getTrackedPointersID(),r=t.getTrackedPointersID();return!(!X.shareCommonPointers(n,r)&&e.delegate.view!==t.delegate.view)||this.checkOverlap(e,t)}checkOverlap(e,t){return e.getTrackedPointersID().some((n=>{const r=e.tracker.getLastAbsoluteCoords(n);return e.delegate.isPointerInBounds(r)&&t.delegate.isPointerInBounds(r)}))}isFinished(e){return e===l.END||e===l.FAILED||e===l.CANCELLED}cancelMouseAndPenGestures(e){this.gestureHandlers.forEach((t=>{t.pointerType!==N.MOUSE&&t.pointerType!==N.STYLUS||(t!==e?t.cancel():t.tracker.resetTracker())}))}static get instance(){return Z._instance||(Z._instance=new Z),Z._instance}}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}J(Z,"_instance",void 0);class ${constructor(){K(this,"waitForRelations",new Map),K(this,"simultaneousRelations",new Map),K(this,"blocksHandlersRelations",new Map)}configureInteractions(e,t){if(this.dropRelationsForHandlerWithTag(e.handlerTag),t.waitFor){const n=[];t.waitFor.forEach((e=>{"number"==typeof e?n.push(e):n.push(e.handlerTag)})),this.waitForRelations.set(e.handlerTag,n)}if(t.simultaneousHandlers){const n=[];t.simultaneousHandlers.forEach((e=>{"number"==typeof e?n.push(e):n.push(e.handlerTag)})),this.simultaneousRelations.set(e.handlerTag,n)}if(t.blocksHandlers){const n=[];t.blocksHandlers.forEach((e=>{"number"==typeof e?n.push(e):n.push(e.handlerTag)})),this.blocksHandlersRelations.set(e.handlerTag,n)}}shouldWaitForHandlerFailure(e,t){const n=this.waitForRelations.get(e.handlerTag);return void 0!==(null==n?void 0:n.find((e=>e===t.handlerTag)))}shouldRecognizeSimultaneously(e,t){const n=this.simultaneousRelations.get(e.handlerTag);return void 0!==(null==n?void 0:n.find((e=>e===t.handlerTag)))}shouldRequireHandlerToWaitForFailure(e,t){const n=this.blocksHandlersRelations.get(e.handlerTag);return void 0!==(null==n?void 0:n.find((e=>e===t.handlerTag)))}shouldHandlerBeCancelledBy(e,t){var n;const r="NativeViewGestureHandler"===t.constructor.name,i=t.active,o=!0===(null===(n=t.isButton)||void 0===n?void 0:n.call(t));return r&&i&&!o}dropRelationsForHandlerWithTag(e){this.waitForRelations.delete(e),this.simultaneousRelations.delete(e),this.blocksHandlersRelations.delete(e)}reset(){this.waitForRelations.clear(),this.simultaneousRelations.clear(),this.blocksHandlersRelations.clear()}static get instance(){return this._instance||(this._instance=new $),this._instance}}K($,"_instance",void 0);const ee=["id","enabled","shouldCancelWhenOutside","hitSlop","cancelsTouchesInView","userSelect","activeCursor","mouseButton","enableContextMenu","touchAction"],te=[...ee,"waitFor","simultaneousHandlers","blocksHandlers","onBegan","onFailed","onCancelled","onActivated","onEnded","onGestureEvent","onHandlerStateChange"],ne=[...ee,"needsPointerData","manualActivation"];let re;!function(e){e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.MIDDLE=4]="MIDDLE",e[e.BUTTON_4=8]="BUTTON_4",e[e.BUTTON_5=16]="BUTTON_5",e[e.ALL=31]="ALL"}(re||(re={}));const ie=["enabled"];function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ae{constructor(e){oe(this,"lastSentState",null),oe(this,"_state",l.UNDETERMINED),oe(this,"_shouldCancelWhenOutside",!1),oe(this,"hasCustomActivationCriteria",!1),oe(this,"_enabled",!1),oe(this,"viewRef",void 0),oe(this,"propsRef",void 0),oe(this,"_handlerTag",void 0),oe(this,"_config",{enabled:!1}),oe(this,"_tracker",new X),oe(this,"_activationIndex",0),oe(this,"_awaiting",!1),oe(this,"_active",!1),oe(this,"_shouldResetProgress",!1),oe(this,"_pointerType",N.MOUSE),oe(this,"_delegate",void 0),oe(this,"sendEvent",((e,t)=>{const{onGestureHandlerEvent:n,onGestureHandlerStateChange:r}=this.propsRef.current,i=this.transformEventData(e,t);this.lastSentState!==e&&(this.lastSentState=e,se(r,i)),this.state===l.ACTIVE&&(i.nativeEvent.oldState=void 0,se(n,i))})),this._delegate=e}init(e,t){this.propsRef=t,this.viewRef=e,this.state=l.UNDETERMINED,this.delegate.init(e,this)}attachEventManager(e){e.setOnPointerDown(this.onPointerDown.bind(this)),e.setOnPointerAdd(this.onPointerAdd.bind(this)),e.setOnPointerUp(this.onPointerUp.bind(this)),e.setOnPointerRemove(this.onPointerRemove.bind(this)),e.setOnPointerMove(this.onPointerMove.bind(this)),e.setOnPointerEnter(this.onPointerEnter.bind(this)),e.setOnPointerLeave(this.onPointerLeave.bind(this)),e.setOnPointerCancel(this.onPointerCancel.bind(this)),e.setOnPointerOutOfBounds(this.onPointerOutOfBounds.bind(this)),e.setOnPointerMoveOver(this.onPointerMoveOver.bind(this)),e.setOnPointerMoveOut(this.onPointerMoveOut.bind(this)),e.setOnWheel(this.onWheel.bind(this)),e.registerListeners()}onCancel(){}onReset(){}resetProgress(){}reset(){this.tracker.resetTracker(),this.onReset(),this.resetProgress(),this.delegate.reset(),this.state=l.UNDETERMINED}moveToState(e,t){if(this.state===e)return;const n=this.state;this.state=e,this.tracker.trackedPointersCount>0&&this.config.needsPointerData&&this.isFinished()&&this.cancelTouches(),Z.instance.onHandlerStateChange(this,e,n,t),this.onStateChange(e,n),!this.enabled&&this.isFinished()&&(this.state=l.UNDETERMINED)}onStateChange(e,t){}begin(){this.checkHitSlop()&&this.state===l.UNDETERMINED&&this.moveToState(l.BEGAN)}fail(e){this.state!==l.ACTIVE&&this.state!==l.BEGAN||(this.delegate.onFail(),this.moveToState(l.FAILED,e)),this.resetProgress()}cancel(e){this.state!==l.ACTIVE&&this.state!==l.UNDETERMINED&&this.state!==l.BEGAN||(this.onCancel(),this.delegate.onCancel(),this.moveToState(l.CANCELLED,e))}activate(e=!1){!0===this.config.manualActivation&&!e||this.state!==l.UNDETERMINED&&this.state!==l.BEGAN||(this.delegate.onActivate(),this.moveToState(l.ACTIVE))}end(){this.state!==l.BEGAN&&this.state!==l.ACTIVE||(this.delegate.onEnd(),this.moveToState(l.END)),this.resetProgress()}getShouldResetProgress(){return this.shouldResetProgress}setShouldResetProgress(e){this.shouldResetProgress=e}shouldWaitForHandlerFailure(e){return e!==this&&$.instance.shouldWaitForHandlerFailure(this,e)}shouldRequireToWaitForFailure(e){return e!==this&&$.instance.shouldRequireHandlerToWaitForFailure(this,e)}shouldRecognizeSimultaneously(e){return e===this||$.instance.shouldRecognizeSimultaneously(this,e)}shouldBeCancelledByOther(e){return e!==this&&$.instance.shouldHandlerBeCancelledBy(this,e)}onPointerDown(e){Z.instance.recordHandlerIfNotPresent(this),this.pointerType=e.pointerType,this.pointerType===N.TOUCH&&Z.instance.cancelMouseAndPenGestures(this)}onPointerAdd(e){this.tryToSendTouchEvent(e)}onPointerUp(e){this.tryToSendTouchEvent(e)}onPointerRemove(e){this.tryToSendTouchEvent(e)}onPointerMove(e){this.tryToSendMoveEvent(!1,e)}onPointerLeave(e){if(this.shouldCancelWhenOutside)switch(this.state){case l.ACTIVE:this.cancel();break;case l.BEGAN:this.fail()}else this.tryToSendTouchEvent(e)}onPointerEnter(e){this.tryToSendTouchEvent(e)}onPointerCancel(e){this.tryToSendTouchEvent(e),this.cancel(),this.reset()}onPointerOutOfBounds(e){this.tryToSendMoveEvent(!0,e)}onPointerMoveOver(e){}onPointerMoveOut(e){}onWheel(e){}tryToSendMoveEvent(e,t){e&&this.shouldCancelWhenOutside||!this.enabled||(this.active&&this.sendEvent(this.state,this.state),this.tryToSendTouchEvent(t))}tryToSendTouchEvent(e){this.config.needsPointerData&&this.sendTouchEvent(e)}sendTouchEvent(e){if(!this.enabled)return;const{onGestureHandlerEvent:t}=this.propsRef.current,n=this.transformTouchEvent(e);n&&se(t,n)}transformEventData(e,t){return{nativeEvent:Object.assign({numberOfPointers:this.tracker.trackedPointersCount,state:e,pointerInside:this.delegate.isPointerInBounds(this.tracker.getAbsoluteCoordsAverage())},this.transformNativeEvent(),{handlerTag:this.handlerTag,target:this.viewRef,oldState:e!==t?t:void 0,pointerType:this.pointerType}),timeStamp:Date.now()}}transformTouchEvent(e){const t=this.delegate.measureView(),n=[],r=[],i=this.tracker.trackedPointers;if(0===i.size||!i.has(e.pointerId))return;i.forEach(((e,r)=>{const i=this.tracker.getMappedTouchEventId(r);n.push({id:i,x:e.abosoluteCoords.x-t.pageX,y:e.abosoluteCoords.y-t.pageY,absoluteX:e.abosoluteCoords.x,absoluteY:e.abosoluteCoords.y})})),e.eventType!==j.CANCEL?r.push({id:this.tracker.getMappedTouchEventId(e.pointerId),x:e.x-t.pageX,y:e.y-t.pageY,absoluteX:e.x,absoluteY:e.y}):i.forEach(((e,n)=>{const i=this.tracker.getMappedTouchEventId(n);r.push({id:i,x:e.abosoluteCoords.x-t.pageX,y:e.abosoluteCoords.y-t.pageY,absoluteX:e.abosoluteCoords.x,absoluteY:e.abosoluteCoords.y})}));let o=B.UNDETERMINED;switch(e.eventType){case j.DOWN:case j.ADDITIONAL_POINTER_DOWN:o=B.DOWN;break;case j.UP:case j.ADDITIONAL_POINTER_UP:o=B.UP;break;case j.MOVE:o=B.MOVE;break;case j.CANCEL:o=B.CANCELLED}let a=n.length;return e.eventType!==j.UP&&e.eventType!==j.ADDITIONAL_POINTER_UP||--a,{nativeEvent:{handlerTag:this.handlerTag,state:this.state,eventType:o,changedTouches:r,allTouches:n,numberOfTouches:a,pointerType:this.pointerType},timeStamp:Date.now()}}cancelTouches(){const e=this.delegate.measureView(),t=[],n=[],r=this.tracker.trackedPointers;if(0===r.size)return;r.forEach(((r,i)=>{const o=this.tracker.getMappedTouchEventId(i);t.push({id:o,x:r.abosoluteCoords.x-e.pageX,y:r.abosoluteCoords.y-e.pageY,absoluteX:r.abosoluteCoords.x,absoluteY:r.abosoluteCoords.y}),n.push({id:o,x:r.abosoluteCoords.x-e.pageX,y:r.abosoluteCoords.y-e.pageY,absoluteX:r.abosoluteCoords.x,absoluteY:r.abosoluteCoords.y})}));const i={nativeEvent:{handlerTag:this.handlerTag,state:this.state,eventType:B.CANCELLED,changedTouches:n,allTouches:t,numberOfTouches:t.length,pointerType:this.pointerType},timeStamp:Date.now()},{onGestureHandlerEvent:o}=this.propsRef.current;se(o,i)}transformNativeEvent(){const e=this.tracker.getAbsoluteCoordsAverage(),t=this.tracker.getRelativeCoordsAverage();return{x:t.x,y:t.y,absoluteX:e.x,absoluteY:e.y}}updateGestureConfig(e){let{enabled:t=!0}=e,n=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,ie);if(this._config=Object.assign({enabled:t},n),this.enabled=t,this.delegate.onEnabledChange(t),void 0!==this.config.shouldCancelWhenOutside&&(this.shouldCancelWhenOutside=this.config.shouldCancelWhenOutside),this.validateHitSlops(),!this.enabled)switch(this.state){case l.ACTIVE:this.fail(!0);break;case l.UNDETERMINED:Z.instance.removeHandlerFromOrchestrator(this);break;default:this.cancel(!0)}}checkCustomActivationCriteria(e){for(const t in this.config)e.indexOf(t)>=0&&(this.hasCustomActivationCriteria=!0)}validateHitSlops(){if(this.config.hitSlop){if(void 0!==this.config.hitSlop.left&&void 0!==this.config.hitSlop.right&&void 0!==this.config.hitSlop.width)throw new Error("HitSlop Error: Cannot define left, right and width at the same time");if(void 0!==this.config.hitSlop.width&&void 0===this.config.hitSlop.left&&void 0===this.config.hitSlop.right)throw new Error("HitSlop Error: When width is defined, either left or right has to be defined");if(void 0!==this.config.hitSlop.height&&void 0!==this.config.hitSlop.top&&void 0!==this.config.hitSlop.bottom)throw new Error("HitSlop Error: Cannot define top, bottom and height at the same time");if(void 0!==this.config.hitSlop.height&&void 0===this.config.hitSlop.top&&void 0===this.config.hitSlop.bottom)throw new Error("HitSlop Error: When height is defined, either top or bottom has to be defined")}}checkHitSlop(){if(!this.config.hitSlop)return!0;const{width:e,height:t}=this.delegate.measureView();let n=0,r=0,i=e,o=t;void 0!==this.config.hitSlop.horizontal&&(n-=this.config.hitSlop.horizontal,i+=this.config.hitSlop.horizontal),void 0!==this.config.hitSlop.vertical&&(r-=this.config.hitSlop.vertical,o+=this.config.hitSlop.vertical),void 0!==this.config.hitSlop.left&&(n=-this.config.hitSlop.left),void 0!==this.config.hitSlop.right&&(i=e+this.config.hitSlop.right),void 0!==this.config.hitSlop.top&&(r=-this.config.hitSlop.top),void 0!==this.config.hitSlop.bottom&&(o=e+this.config.hitSlop.bottom),void 0!==this.config.hitSlop.width&&(void 0!==this.config.hitSlop.left?i=n+this.config.hitSlop.width:void 0!==this.config.hitSlop.right&&(n=i-this.config.hitSlop.width)),void 0!==this.config.hitSlop.height&&(void 0!==this.config.hitSlop.top?o=r+this.config.hitSlop.height:void 0!==this.config.hitSlop.bottom&&(r=o-this.config.hitSlop.height));const a=this.delegate.measureView(),{x:s,y:l}=this.tracker.getLastAbsoluteCoords(),c=s-a.pageX,u=l-a.pageY;return c>=n&&c<=i&&u>=r&&u<=o}isButtonInConfig(e){return!e||!this.config.mouseButton&&e===re.LEFT||this.config.mouseButton&&e&this.config.mouseButton}resetConfig(){}onDestroy(){this.delegate.destroy(this.config)}get handlerTag(){return this._handlerTag}set handlerTag(e){this._handlerTag=e}get config(){return this._config}get delegate(){return this._delegate}get tracker(){return this._tracker}get state(){return this._state}set state(e){this._state=e}get shouldCancelWhenOutside(){return this._shouldCancelWhenOutside}set shouldCancelWhenOutside(e){this._shouldCancelWhenOutside=e}get enabled(){return this._enabled}set enabled(e){this._enabled=e}get pointerType(){return this._pointerType}set pointerType(e){this._pointerType=e}get active(){return this._active}set active(e){this._active=e}get awaiting(){return this._awaiting}set awaiting(e){this._awaiting=e}get activationIndex(){return this._activationIndex}set activationIndex(e){this._activationIndex=e}get shouldResetProgress(){return this._shouldResetProgress}set shouldResetProgress(e){this._shouldResetProgress=e}getTrackedPointersID(){return this.tracker.trackedPointersIDs}isFinished(){return this.state===l.END||this.state===l.FAILED||this.state===l.CANCELLED}}function se(e,t){if(!e)return;if("function"==typeof e)return void e(t);if("__getHandler"in e&&"function"==typeof e.__getHandler)return void se(e.__getHandler(),t);if(!("__nodeConfig"in e))return;const{argMapping:n}=e.__nodeConfig;if(Array.isArray(n))for(const[r,[i,o]]of n.entries()){if(!(i in t.nativeEvent))continue;const n=t.nativeEvent[i];null!=o&&o.setValue?o.setValue(n):e.__nodeConfig.argMapping[r]=[i,n]}}const le=["enabled"];function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ue=["enabled"];function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const de=["enabled"];function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class me{constructor(e){pe(this,"onScaleBegin",void 0),pe(this,"onScale",void 0),pe(this,"onScaleEnd",void 0),pe(this,"_focusX",void 0),pe(this,"_focusY",void 0),pe(this,"_currentSpan",void 0),pe(this,"prevSpan",void 0),pe(this,"initialSpan",void 0),pe(this,"currentTime",void 0),pe(this,"prevTime",void 0),pe(this,"inProgress",!1),pe(this,"spanSlop",void 0),pe(this,"minSpan",void 0),this.onScaleBegin=e.onScaleBegin,this.onScale=e.onScale,this.onScaleEnd=e.onScaleEnd,this.spanSlop=30,this.minSpan=0}onTouchEvent(e,t){this.currentTime=e.time;const n=e.eventType,r=t.trackedPointersCount,i=n===j.UP||n===j.ADDITIONAL_POINTER_UP||n===j.CANCEL;if((n===j.DOWN||i)&&(this.inProgress&&(this.onScaleEnd(this),this.inProgress=!1,this.initialSpan=0),i))return!0;const o=n===j.DOWN||n===j.ADDITIONAL_POINTER_UP||n===j.ADDITIONAL_POINTER_DOWN,a=n===j.ADDITIONAL_POINTER_UP,s=a?e.pointerId:void 0,l=a?r-1:r,c=t.getAbsoluteCoordsSum(),u=c.x/l,h=c.y/l;let d=0,f=0;t.trackedPointers.forEach(((e,t)=>{t!==s&&(d+=Math.abs(e.abosoluteCoords.x-u),f+=Math.abs(e.abosoluteCoords.y-h))}));const p=d/l*2,m=f/l*2,g=Math.hypot(p,m),y=this.inProgress;return this._focusX=u,this._focusY=h,this.inProgress&&(g=this.minSpan&&(y||Math.abs(g-this.initialSpan)>this.spanSlop)&&(this.prevSpan=this._currentSpan=g,this.prevTime=this.currentTime,this.inProgress=this.onScaleBegin(this)),n!==j.MOVE||(this._currentSpan=g,this.inProgress&&!this.onScale(this)||(this.prevSpan=this.currentSpan,this.prevTime=this.currentTime),!0)}calculateScaleFactor(e){return e<2?1:this.prevSpan>0?this.currentSpan/this.prevSpan:1}get currentSpan(){return this._currentSpan}get focusX(){return this._focusX}get focusY(){return this._focusY}get timeDelta(){return this.currentTime-this.prevTime}}function ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ve{constructor(e){ye(this,"onRotationBegin",void 0),ye(this,"onRotation",void 0),ye(this,"onRotationEnd",void 0),ye(this,"currentTime",0),ye(this,"previousTime",0),ye(this,"previousAngle",0),ye(this,"_rotation",0),ye(this,"_anchorX",0),ye(this,"_anchorY",0),ye(this,"isInProgress",!1),ye(this,"keyPointers",[NaN,NaN]),this.onRotationBegin=e.onRotationBegin,this.onRotation=e.onRotation,this.onRotationEnd=e.onRotationEnd}updateCurrent(e,t){this.previousTime=this.currentTime,this.currentTime=e.time;const[n,r]=this.keyPointers,i=t.getLastAbsoluteCoords(n),o=t.getLastAbsoluteCoords(r),a=o.x-i.x,s=o.y-i.y;this._anchorX=(i.x+o.x)/2,this._anchorY=(i.y+o.y)/2;const l=-Math.atan2(s,a);this._rotation=Number.isNaN(this.previousAngle)?0:this.previousAngle-l,this.previousAngle=l,this.rotation>Math.PI?this._rotation-=Math.PI:this.rotation<-Math.PI&&(this._rotation+=Math.PI),this.rotation>Math.PI/2?this._rotation-=Math.PI:this.rotation<-Math.PI/2&&(this._rotation+=Math.PI)}finish(){this.isInProgress&&(this.isInProgress=!1,this.keyPointers=[NaN,NaN],this.onRotationEnd(this))}setKeyPointers(e){if(this.keyPointers[0]&&this.keyPointers[1])return;const t=e.trackedPointers.keys();this.keyPointers[0]=t.next().value,this.keyPointers[1]=t.next().value}onTouchEvent(e,t){switch(e.eventType){case j.DOWN:this.isInProgress=!1;break;case j.ADDITIONAL_POINTER_DOWN:if(this.isInProgress)break;this.isInProgress=!0,this.previousTime=e.time,this.previousAngle=NaN,this.setKeyPointers(t),this.updateCurrent(e,t),this.onRotationBegin(this);break;case j.MOVE:if(!this.isInProgress)break;this.updateCurrent(e,t),this.onRotation(this);break;case j.ADDITIONAL_POINTER_UP:if(!this.isInProgress)break;this.keyPointers.indexOf(e.pointerId)>=0&&this.finish();break;case j.UP:this.isInProgress&&this.finish()}return!0}reset(){this.keyPointers=[NaN,NaN],this.isInProgress=!1}get anchorX(){return this._anchorX}get anchorY(){return this._anchorY}get rotation(){return this._rotation}get timeDelta(){return this.currentTime+this.previousTime}}function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ae=Math.PI/36,xe={RIGHT:1,LEFT:2,UP:4,DOWN:8},we={UP_RIGHT:5,DOWN_RIGHT:9,UP_LEFT:6,DOWN_LEFT:10};function Ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Se{constructor(e,t){Ce(this,"x",void 0),Ce(this,"y",void 0),Ce(this,"unitX",void 0),Ce(this,"unitY",void 0),Ce(this,"_magnitude",void 0),this.x=e,this.y=t,this._magnitude=Math.hypot(this.x,this.y);const n=this._magnitude>.1;this.unitX=n?this.x/this._magnitude:0,this.unitY=n?this.y/this._magnitude:0}static fromDirection(e){var t;return null!==(t=Ee.get(e))&&void 0!==t?t:new Se(0,0)}static fromVelocity(e,t){const n=e.getVelocity(t);return new Se(n.x,n.y)}get magnitude(){return this._magnitude}computeSimilarity(e){return this.unitX*e.unitX+this.unitY*e.unitY}isSimilar(e,t){return this.computeSimilarity(e)>t}}const Ee=new Map([[xe.LEFT,new Se(-1,0)],[xe.RIGHT,new Se(1,0)],[xe.UP,new Se(0,-1)],[xe.DOWN,new Se(0,1)],[we.UP_RIGHT,new Se(1,-1)],[we.DOWN_RIGHT,new Se(1,1)],[we.UP_LEFT,new Se(-1,-1)],[we.DOWN_LEFT,new Se(-1,1)]]);function ke(e,{x:t,y:n}){const r=e.getBoundingClientRect();return t>=r.left&&t<=r.right&&n>=r.top&&n<=r.bottom}const Te=new Map([["mouse",N.MOUSE],["touch",N.TOUCH],["pen",N.STYLUS],["none",N.OTHER]]),Ie=e=>Math.cos((e=>e*Math.PI/180)(e/2));function Oe(e){if(Te.get(e.pointerType)!==N.STYLUS)return;const t=e.azimuthAngle,n=e.altitudeAngle;if(0===e.tiltX&&0===e.tiltY){if(void 0===t||void 0===n)return{tiltX:0,tiltY:0,azimuthAngle:Math.PI/2,altitudeAngle:Math.PI/2,pressure:e.pressure};const{tiltX:r,tiltY:i}=function(e,t){const n=180/Math.PI;let r=0,i=0;if(0===e&&(0!==t&&t!==2*Math.PI||(r=Math.PI/2),t===Math.PI/2&&(i=Math.PI/2),t===Math.PI&&(r=-Math.PI/2),t===3*Math.PI/2&&(i=-Math.PI/2),t>0&&tMath.PI/2&&tMath.PI&&t<3*Math.PI/2&&(r=-Math.PI/2,i=-Math.PI/2),t>3*Math.PI/2&&t<2*Math.PI&&(r=Math.PI/2,i=-Math.PI/2)),0!==e){const n=Math.tan(e);r=Math.atan(Math.cos(t)/n),i=Math.atan(Math.sin(t)/n)}return{tiltX:Math.round(r*n),tiltY:Math.round(i*n)}}(n,t);return{tiltX:r,tiltY:i,azimuthAngle:t,altitudeAngle:n,pressure:e.pressure}}const{altitudeAngle:r,azimuthAngle:i}=function(e,t){const n=e*Math.PI/180,r=t*Math.PI/180;let i=0;if(0===e)t>0?i=Math.PI/2:t<0&&(i=3*Math.PI/2);else if(0===t)e<0&&(i=Math.PI);else if(90===Math.abs(e)||90===Math.abs(t))i=0;else{const e=Math.tan(n),t=Math.tan(r);i=Math.atan2(t,e),i<0&&(i+=2*Math.PI)}let o=0;return o=90===Math.abs(e)||90===Math.abs(t)?0:0===e?Math.PI/2-Math.abs(r):0===t?Math.PI/2-Math.abs(n):Math.atan(1/Math.sqrt(Math.pow(Math.tan(n),2)+Math.pow(Math.tan(r),2))),{altitudeAngle:o,azimuthAngle:i}}(e.tiltX,e.tiltY);return{tiltX:e.tiltX,tiltY:e.tiltY,azimuthAngle:i,altitudeAngle:r,pressure:e.pressure}}const Re=new Set(["Circle","ClipPath","Ellipse","ForeignObject","G","Image","Line","Marker","Mask","Path","Pattern","Polygon","Polyline","Rect","Svg","Symbol","TSpan","Text","TextPath","Use"]),Me=["enabled"];function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const De=xe.RIGHT,je=Ie(30),Be=Ie(60),Le=["enabled"];function Fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ne extends ae{constructor(...e){super(...e),Fe(this,"buttonRole",void 0),Fe(this,"shouldActivateOnStart",!1),Fe(this,"disallowInterruption",!1),Fe(this,"startX",0),Fe(this,"startY",0),Fe(this,"minDistSq",225)}init(e,t){super.init(e,t),this.shouldCancelWhenOutside=!0;const n=this.delegate.view;this.restoreViewStyles(n),this.buttonRole="button"===n.getAttribute("role")}updateGestureConfig(e){let{enabled:t=!0}=e,n=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,Le);super.updateGestureConfig(Object.assign({enabled:t},n)),void 0!==this.config.shouldActivateOnStart&&(this.shouldActivateOnStart=this.config.shouldActivateOnStart),void 0!==this.config.disallowInterruption&&(this.disallowInterruption=this.config.disallowInterruption);const r=this.delegate.view;this.restoreViewStyles(r)}restoreViewStyles(e){e&&(e.style.touchAction="proxy.php?url=https%3A%2F%2Fcharts.navigraph.com%2Fauto",e.style.WebkitTouchCallout="auto")}onPointerDown(e){this.tracker.addToTracker(e),super.onPointerDown(e),this.newPointerAction(),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e),this.newPointerAction()}newPointerAction(){const e=this.tracker.getAbsoluteCoordsAverage();if(this.startX=e.x,this.startY=e.y,this.state!==l.UNDETERMINED)return;this.begin();const t=this.delegate.view.hasAttribute("rnghtext");(this.buttonRole||t)&&this.activate()}onPointerMove(e){this.tracker.track(e);const t=this.tracker.getAbsoluteCoordsAverage(),n=this.startX-t.x,r=this.startY-t.y;n*n+r*r>=this.minDistSq&&(this.buttonRole&&this.state===l.ACTIVE?this.cancel():this.buttonRole||this.state!==l.BEGAN||this.activate())}onPointerLeave(){this.state!==l.BEGAN&&this.state!==l.ACTIVE||this.cancel()}onPointerUp(e){super.onPointerUp(e),this.onUp(e)}onPointerRemove(e){super.onPointerRemove(e),this.onUp(e)}onUp(e){this.tracker.removeFromTracker(e.pointerId),0===this.tracker.trackedPointersCount&&(this.state===l.ACTIVE?this.end():this.fail())}shouldRecognizeSimultaneously(e){if(super.shouldRecognizeSimultaneously(e))return!0;if(e instanceof Ne&&e.state===l.ACTIVE&&e.disallowsInterruption())return!1;const t=!this.disallowInterruption;return(this.state!==l.ACTIVE||e.state!==l.ACTIVE||!t)&&this.state===l.ACTIVE&&t&&e.handlerTag>0}shouldBeCancelledByOther(e){return!this.disallowInterruption}disallowsInterruption(){return this.disallowInterruption}isButton(){return this.buttonRole}}function _e(){return _e=Object.assign||function(e){for(var t=1;t-1}var mt=function(){function e(e,t){this.manager=e,this.set(t)}var t=e.prototype;return t.set=function(e){e===Ke&&(e=this.compute()),Ze&&this.manager.element.style&&it[e]&&(this.manager.element.style[Je]=e),this.actions=e.toLowerCase().trim()},t.update=function(){this.set(this.manager.options.touchAction)},t.compute=function(){var e=[];return dt(this.manager.recognizers,(function(t){ft(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(pt(e,tt))return tt;var t=pt(e,nt),n=pt(e,rt);return t&&n?tt:t||n?t?nt:rt:pt(e,et)?et:$e}(e.join(" "))},t.preventDefaults=function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=pt(r,tt)&&!it[tt],o=pt(r,rt)&&!it[rt],a=pt(r,nt)&&!it[nt];if(i){var s=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(s&&l&&c)return}if(!a||!o)return i||o&&6&n||a&&24&n?this.preventSrc(t):void 0}},t.preventSrc=function(e){this.manager.session.prevented=!0,e.preventDefault()},e}();function gt(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function yt(e){var t=e.length;if(1===t)return{x:Ye(e[0].clientX),y:Ye(e[0].clientY)};for(var n=0,r=0,i=0;i=We(t)?e<0?2:4:t<0?8:16}function wt(e,t,n){return{x:t/e||0,y:n/e||0}}function Ct(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&t&&r-i==0,a=12&t&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=vt(t)),i>1&&!n.firstMultiple?n.firstMultiple=vt(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=t.center=yt(r);t.timeStamp=Qe(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=At(s,l),t.distance=bt(s,l),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=xt(t.deltaX,t.deltaY);var c,u,h=wt(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=h.x,t.overallVelocityY=h.y,t.overallVelocity=We(h.x)>We(h.y)?h.x:h.y,t.scale=a?(c=a.pointers,bt((u=r)[0],u[1],ht)/bt(c[0],c[1],ht)):1,t.rotation=a?function(e,t){return At(t[1],t[0],ht)+At(e[1],e[0],ht)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,a=e.lastInterval||t,s=t.timeStamp-a.timeStamp;if(8!==t.eventType&&(s>25||void 0===a.velocity)){var l=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,u=wt(s,l,c);r=u.x,i=u.y,n=We(u.x)>We(u.y)?u.x:u.y,o=xt(l,c),e.lastInterval=t}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var d,f=e.element,p=t.srcEvent;gt(d=p.composedPath?p.composedPath()[0]:p.path?p.path[0]:p.target,f)&&(f=d),t.target=f}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function St(e){return e.trim().split(/\s+/g)}function Et(e,t,n){dt(St(t),(function(t){e.addEventListener(t,n,!1)}))}function kt(e,t,n){dt(St(t),(function(t){e.removeEventListener(t,n,!1)}))}function Tt(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||window}var It=function(){function e(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){ft(e.options.enable,[e])&&n.handler(t)},this.init()}var t=e.prototype;return t.handler=function(){},t.init=function(){this.evEl&&Et(this.element,this.evEl,this.domHandler),this.evTarget&&Et(this.target,this.evTarget,this.domHandler),this.evWin&&Et(Tt(this.element),this.evWin,this.domHandler)},t.destroy=function(){this.evEl&&kt(this.element,this.evEl,this.domHandler),this.evTarget&&kt(this.target,this.evTarget,this.domHandler),this.evWin&&kt(Tt(this.element),this.evWin,this.domHandler)},e}();function Ot(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;rn[t]})):r.sort()),r}var Ft={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Nt=function(e){function t(){var n;return t.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=e.apply(this,arguments)||this).targetIds={},n}return ze(t,e),t.prototype.handler=function(e){var t=Ft[e.type],n=_t.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:lt,srcEvent:e})},t}(It);function _t(e,t){var n,r,i=Bt(e.touches),o=this.targetIds;if(3&t&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=Bt(e.changedTouches),s=[],l=this.target;if(r=i.filter((function(e){return gt(e.target,l)})),1===t)for(n=0;n-1&&r.splice(e,1)}),2500)}}function Ht(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,Ut.call(this,t)):12&e&&Ut.call(this,t)}function qt(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(t,1),this},t.hasRequireFailures=function(){return this.requireFail.length>0},t.canRecognizeWith=function(e){return!!this.simultaneous[e.id]},t.emit=function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+Jt(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Jt(n))},t.tryEmit=function(e){if(this.canEmit())return this.emit(e);this.state=Wt},t.canEmit=function(){for(var e=0;et.threshold&&i&t.direction},n.attrTest=function(e){return $t.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},n.emit=function(t){this.pX=t.deltaX,this.pY=t.deltaY;var n=en(t.direction);n&&(t.additionalEvent=this.options.event+n),e.prototype.emit.call(this,t)},t}($t),nn=function(e){function t(t){return void 0===t&&(t={}),e.call(this,_e({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},t))||this}ze(t,e);var n=t.prototype;return n.getTouchAction=function(){return tn.prototype.getTouchAction.call(this)},n.attrTest=function(t){var n,r=this.options.direction;return 30&r?n=t.overallVelocity:6&r?n=t.overallVelocityX:24&r&&(n=t.overallVelocityY),e.prototype.attrTest.call(this,t)&&r&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers===this.options.pointers&&We(n)>this.options.velocity&&4&t.eventType},n.emit=function(e){var t=en(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)},t}($t),rn=function(e){function t(t){return void 0===t&&(t={}),e.call(this,_e({event:"pinch",threshold:0,pointers:2},t))||this}ze(t,e);var n=t.prototype;return n.getTouchAction=function(){return[tt]},n.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},n.emit=function(t){if(1!==t.scale){var n=t.scale<1?"in":"out";t.additionalEvent=this.options.event+n}e.prototype.emit.call(this,t)},t}($t),on=function(e){function t(t){return void 0===t&&(t={}),e.call(this,_e({event:"rotate",threshold:0,pointers:2},t))||this}ze(t,e);var n=t.prototype;return n.getTouchAction=function(){return[tt]},n.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)},t}($t),an=function(e){function t(t){var n;return void 0===t&&(t={}),(n=e.call(this,_e({event:"press",pointers:1,time:251,threshold:9},t))||this)._timer=null,n._input=null,n}ze(t,e);var n=t.prototype;return n.getTouchAction=function(){return[$e]},n.process=function(e){var t=this,n=this.options,r=e.pointers.length===n.pointers,i=e.distancen.time;if(this._input=e,!i||!r||12&e.eventType&&!o)this.reset();else if(1&e.eventType)this.reset(),this._timer=setTimeout((function(){t.state=8,t.tryEmit()}),n.time);else if(4&e.eventType)return 8;return Wt},n.reset=function(){clearTimeout(this._timer)},n.emit=function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=Qe(),this.manager.emit(this.options.event,this._input)))},t}(Zt),sn={domEvents:!1,touchAction:Ke,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},ln=[[on,{enable:!1}],[rn,{enable:!1},["rotate"]],[nn,{direction:6}],[tn,{direction:6},["swipe"]],[Kt],[Kt,{event:"doubletap",taps:2},["tap"]],[an]];function cn(e,t){var n,r=e.element;r.style&&(dt(e.options.cssProps,(function(i,o){n=Xe(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}var un=function(){function e(e,t){var n=this;this.options=He({},sn,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new(this.options.inputClass||(at?jt:st?Nt:ot?Gt:Vt))(this,Ct),this.touchAction=new mt(this,this.options.touchAction),cn(this,!0),dt(this.options.recognizers,(function(e){var t=n.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}var t=e.prototype;return t.set=function(e){return He(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},t.stop=function(e){this.session.stopped=e?2:1},t.recognize=function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(t.curRecognizer=null,i=null);for(var o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),e.apply(this,arguments)}}var mn=pn((function(e,t,n){for(var r=Object.keys(t),i=0;i{if(Array.isArray(this.config.waitFor))for(const e of this.config.waitFor)e.removePendingGesture(this.id)})),Tn(this,"destroy",(()=>{this.clearSelfAsPending(),this.hammer&&(this.hammer.stop(!1),this.hammer.destroy()),this.hammer=null})),Tn(this,"isPointInView",(({x:e,y:t})=>{const n=this.view.getBoundingClientRect();return e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom})),Tn(this,"sendEvent",(e=>{const{onGestureHandlerEvent:t,onGestureHandlerStateChange:n}=this.propsRef.current,r=this.transformEventData(e);On(t,r),this.lastSentState!==r.nativeEvent.state&&(this.lastSentState=r.nativeEvent.state,On(n,r))})),Tn(this,"sync",(()=>{const e=this.hammer.get(this.name);if(!e)return;const t=this.getHammerConfig();e.set(Object.assign({},t,{enable:(e,t)=>{if(!this.config.enabled)return this.isGestureRunning=!1,this.hasGestureFailed=!1,!1;if(!t||!e.options||void 0===t.maxPointers)return this.shouldEnableGestureOnSetup;if(this.hasGestureFailed)return!1;if(!this.isDiscrete){if(this.isGestureRunning)return!0;if(this._stillWaiting=this._getPendingGestures(),this._stillWaiting.length){for(const e of this._stillWaiting)if(!e.isDiscrete&&e.isGestureRunning)return this.hasGestureFailed=!0,this.isGestureRunning=!1,!1;return!1}}if(!this.hasCustomActivationCriteria)return!0;const n=null==this.initialRotation?0:t.rotation-this.initialRotation,{success:r,failed:i}=this.isGestureEnabledForEvent(this.getConfig(),e,Object.assign({},t,{deltaRotation:n}));return i&&(this.simulateCancelEvent(t),this.hasGestureFailed=!0),r}}))})),this.gestureInstance=In++,this.hasCustomActivationCriteria=!1}getConfig(){return this.config}onWaitingEnded(e){}removePendingGesture(e){delete this.pendingGestures[e]}addPendingGesture(e){this.pendingGestures[e.id]=e}isGestureEnabledForEvent(e,t,n){return{success:!0}}get NativeGestureClass(){throw new Error("Must override GestureHandler.NativeGestureClass")}updateHasCustomActivationCriteria(e){return!0}updateGestureConfig(e){let{enabled:t=!0}=e,n=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,kn);if(this.clearSelfAsPending(),this.config=this.ensureConfig(Object.assign({enabled:t},n)),this.hasCustomActivationCriteria=this.updateHasCustomActivationCriteria(this.config),Array.isArray(this.config.waitFor))for(const e of this.config.waitFor)e.addPendingGesture(this);return this.hammer&&this.sync(),this.config}getState(e){return 0==e?0:wn[e]}transformEventData(e){const{eventType:t,maxPointers:n}=e,r=e.changedPointers[0],i=this.isPointInView({x:r.clientX,y:r.clientY}),o=this.getState(t),a=o!==this.previousState;return a&&(this.oldState=this.previousState,this.previousState=o),{nativeEvent:Object.assign({numberOfPointers:n,state:o,pointerInside:i},this.transformNativeEvent(e),{handlerTag:this.handlerTag,target:this.ref,oldState:a||4!==o?this.oldState:void 0}),timeStamp:Date.now()}}transformNativeEvent(e){return{}}cancelPendingGestures(e){for(const t of Object.values(this.pendingGestures))t&&t.isGestureRunning&&(t.hasGestureFailed=!0,t.cancelEvent(e))}notifyPendingGestures(){for(const e of Object.values(this.pendingGestures))e&&e.onWaitingEnded(this)}onGestureEnded(e){this.isGestureRunning=!1,this.cancelPendingGestures(e)}forceInvalidate(e){this.isGestureRunning&&(this.hasGestureFailed=!0,this.cancelEvent(e))}cancelEvent(e){this.notifyPendingGestures(),this.sendEvent(Object.assign({},e,{eventType:An.INPUT_CANCEL,isFinal:!0})),this.onGestureEnded(e)}onRawEvent({isFirst:e}){e&&(this.hasGestureFailed=!1)}shouldUseTouchEvents(e){var t,n;return null!==(t=null===(n=e.simultaneousHandlers)||void 0===n?void 0:n.some((e=>e.isNative)))&&void 0!==t&&t}setView(e,t){if(null==e)return this.destroy(),void(this.view=null);const n="ontouchstart"in window;this.propsRef=t,this.ref=e,this.view=e,this.hammer=n&&this.shouldUseTouchEvents(this.config)?new An.Manager(this.view,{inputClass:An.TouchInput}):new An.Manager(this.view),this.oldState=l.UNDETERMINED,this.previousState=l.UNDETERMINED,this.lastSentState=null;const{NativeGestureClass:r}=this,i=new r(this.getHammerConfig());this.hammer.add(i),this.hammer.on("hammer.input",(e=>{if(!this.config.enabled)return this.hasGestureFailed=!1,void(this.isGestureRunning=!1);this.onRawEvent(e),null===this.initialRotation&&0!==e.rotation&&(this.initialRotation=e.rotation),e.isFinal&&setTimeout((()=>{this.initialRotation=null,this.hasGestureFailed=!1}))})),this.setupEvents(),this.sync()}setupEvents(){this.isDiscrete||(this.hammer.on(`${this.name}start`,(e=>this.onStart(e))),this.hammer.on(`${this.name}end ${this.name}cancel`,(e=>{this.onGestureEnded(e)}))),this.hammer.on(this.name,(e=>this.onGestureActivated(e)))}onStart({deltaX:e,deltaY:t,rotation:n}){this.oldState=l.UNDETERMINED,this.previousState=l.UNDETERMINED,this.lastSentState=null,this.isGestureRunning=!0,this.__initialX=e,this.__initialY=t,this.initialRotation=n}onGestureActivated(e){this.sendEvent(e)}onSuccess(){}_getPendingGestures(){return Array.isArray(this.config.waitFor)&&this.config.waitFor.length?this.config.waitFor.filter((({hasGestureFailed:e})=>!1===e)):[]}getHammerConfig(){return{pointers:this.config.minPointers===this.config.maxPointers?this.config.minPointers:0}}simulateCancelEvent(e){}ensureConfig(e){const t=Object.assign({},e);if("minDist"in e&&(t.minDist=e.minDist,t.minDistSq=t.minDist*t.minDist),"minVelocity"in e&&(t.minVelocity=e.minVelocity,t.minVelocitySq=t.minVelocity*t.minVelocity),"maxDist"in e&&(t.maxDist=e.maxDist,t.maxDistSq=e.maxDist*e.maxDist),t.waitFor="waitFor"in e?Rn(e.waitFor).map((e=>Sn("number"==typeof e?e:e.handlerTag))).filter((e=>e)):null,"simultaneousHandlers"in e){const n=this.shouldUseTouchEvents(this.config);t.simultaneousHandlers=Rn(e.simultaneousHandlers).map((e=>Sn("number"==typeof e?e:e.handlerTag))).filter((e=>e)),n!==this.shouldUseTouchEvents(t)&&En((()=>{this.destroy(),this.setView(this.ref,this.propsRef)}))}else t.simultaneousHandlers=null;return["minPointers","maxPointers","minDist","maxDist","maxDistSq","minVelocitySq","minDistSq","minVelocity","failOffsetXStart","failOffsetYStart","failOffsetXEnd","failOffsetYEnd","activeOffsetXStart","activeOffsetXEnd","activeOffsetYStart","activeOffsetYEnd"].forEach((e=>{void 0===t[e]&&(t[e]=Number.NaN)})),t}},Pn=e=>Number.isNaN(e),Dn=e=>"number"==typeof e&&!Number.isNaN(e),jn=(e,t)=>!Pn(t)&&(t<0&&e<=t||t>=0&&e>=t),Bn=({x:e=0,y:t=0}={})=>e*e+t*t,Ln=(e,t)=>!Pn(t)&&(t<0&&e=0&&e>t);function Fn(e,t){return t?setTimeout((()=>e()),t):(e(),null)}const Nn=class extends Mn{get isDiscrete(){return!0}get shouldEnableGestureOnSetup(){return!0}shouldFailUnderCustomCriteria({x:e,y:t,deltaX:n,deltaY:r},{maxDeltaX:i,maxDeltaY:o,maxDistSq:a,shouldCancelWhenOutside:s}){return!(!s||this.isPointInView({x:e,y:t}))||Ln(Math.abs(n),i)||Ln(Math.abs(r),o)||Ln(Math.abs(r*r+n*n),a)}transformNativeEvent({center:{x:e,y:t}}){const n=this.view.getBoundingClientRect();return{absoluteX:e,absoluteY:t,x:e-n.left,y:t-n.top}}isGestureEnabledForEvent({minPointers:e,maxPointers:t,maxDeltaX:n,maxDeltaY:r,maxDistSq:i,shouldCancelWhenOutside:o},a,{maxPointers:s,center:l,deltaX:c,deltaY:u}){const h=s>=e&&s<=t;return this.shouldFailUnderCustomCriteria(Object.assign({},l,{deltaX:c,deltaY:u}),{maxDeltaX:n,maxDeltaY:r,maxDistSq:i,shouldCancelWhenOutside:o})||!h&&this.isGestureRunning?{failed:!0}:{success:h}}},_n=["shouldActivateOnStart","disallowInterruption","shouldCancelWhenOutside","minDurationMs","maxDist","minPointers","maxPointers"];function zn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vn=class extends Nn{constructor(...e){super(...e),zn(this,"visualFeedbackTimer",void 0),zn(this,"initialEvent",null),zn(this,"shouldDelayTouches",!0)}get name(){return"press"}get minDurationMs(){return Pn(this.config.minDurationMs)?5:this.config.minDurationMs}get maxDist(){return Pn(this.config.maxDist)?9:this.config.maxDist}get NativeGestureClass(){return An.Press}simulateCancelEvent(e){this.hasGestureFailed=!0,this.cancelEvent(e)}updateHasCustomActivationCriteria({shouldCancelWhenOutside:e,maxDistSq:t}){return e||!Dn(t)}getState(e){return{[An.INPUT_START]:l.BEGAN,[An.INPUT_MOVE]:l.ACTIVE,[An.INPUT_END]:l.END,[An.INPUT_CANCEL]:l.CANCELLED}[e]}getConfig(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{time:this.minDurationMs})}onGestureActivated(e){this.onGestureStart(e)}shouldDelayTouchForEvent({pointerType:e}){return this.shouldDelayTouches&&"touch"===e}onGestureStart(e){this.isGestureRunning=!0,clearTimeout(this.visualFeedbackTimer),this.initialEvent=e,this.visualFeedbackTimer=Fn((()=>{this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null}),this.shouldDelayTouchForEvent(e)&&240)}sendGestureStartedEvent(e){clearTimeout(this.visualFeedbackTimer),this.visualFeedbackTimer=null,this.sendEvent(Object.assign({},e,{eventType:An.INPUT_MOVE,isFirst:!0}))}forceInvalidate(e){super.forceInvalidate(e),clearTimeout(this.visualFeedbackTimer),this.visualFeedbackTimer=null,this.initialEvent=null}onRawEvent(e){if(super.onRawEvent(e),this.isGestureRunning)if(e.isFinal){let t;this.visualFeedbackTimer&&(t=50,this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null),Fn((()=>{this.sendEvent(Object.assign({},e,{eventType:An.INPUT_END,isFinal:!0})),this.onGestureEnded()}),t)}else this.sendEvent(Object.assign({},e,{eventType:An.INPUT_MOVE,isFinal:!1}))}updateGestureConfig(e){let{shouldActivateOnStart:t=!1,disallowInterruption:n=!1,shouldCancelWhenOutside:r=!0,minDurationMs:i=Number.NaN,maxDist:o=Number.NaN,minPointers:a=1,maxPointers:s=1}=e,l=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,_n);return super.updateGestureConfig(Object.assign({shouldActivateOnStart:t,disallowInterruption:n,shouldCancelWhenOutside:r,minDurationMs:i,maxDist:o,minPointers:a,maxPointers:s},l))}};var Un=__webpack_require__(99518);const Hn=class extends Mn{get shouldEnableGestureOnSetup(){return!0}transformNativeEvent({deltaX:e,deltaY:t,velocityX:n,velocityY:r,center:{x:i,y:o}}){const a=this.view.getBoundingClientRect(),s=Un.A.get();return{translationX:e-(this.__initialX||0),translationY:t-(this.__initialY||0),absoluteX:i,absoluteY:o,velocityX:n*s,velocityY:r*s,x:i-a.left,y:o-a.top}}},qn=["shouldCancelWhenOutside","maxDeltaX","maxDeltaY","numberOfTaps","minDurationMs","maxDelayMs","maxDurationMs","maxDist","minPointers","maxPointers"];function Gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yn=["minPointers","maxPointers"],Wn=class extends Mn{get shouldEnableGestureOnSetup(){return!1}updateGestureConfig(e){let{minPointers:t=2,maxPointers:n=2}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,Yn);return super.updateGestureConfig(Object.assign({minPointers:t,maxPointers:n},r))}isGestureEnabledForEvent({minPointers:e,maxPointers:t},n,{maxPointers:r}){return r>t?{failed:!0}:{success:r>=e}}};class Qn extends Error{constructor(e,t,n){super(`Invalid property \`${e}: ${t}\` expected \`${n}\``)}}const Xn=["numberOfPointers","direction"],Jn={NativeViewGestureHandler:Ne,PanGestureHandler:class extends ae{constructor(...e){super(...e),ce(this,"customActivationProperties",["activeOffsetXStart","activeOffsetXEnd","failOffsetXStart","failOffsetXEnd","activeOffsetYStart","activeOffsetYEnd","failOffsetYStart","failOffsetYEnd","minVelocityX","minVelocityY","minVelocity"]),ce(this,"velocityX",0),ce(this,"velocityY",0),ce(this,"minDistSq",225),ce(this,"activeOffsetXStart",-Number.MAX_SAFE_INTEGER),ce(this,"activeOffsetXEnd",Number.MIN_SAFE_INTEGER),ce(this,"failOffsetXStart",Number.MIN_SAFE_INTEGER),ce(this,"failOffsetXEnd",Number.MAX_SAFE_INTEGER),ce(this,"activeOffsetYStart",Number.MAX_SAFE_INTEGER),ce(this,"activeOffsetYEnd",Number.MIN_SAFE_INTEGER),ce(this,"failOffsetYStart",Number.MIN_SAFE_INTEGER),ce(this,"failOffsetYEnd",Number.MAX_SAFE_INTEGER),ce(this,"minVelocityX",Number.MAX_SAFE_INTEGER),ce(this,"minVelocityY",Number.MAX_SAFE_INTEGER),ce(this,"minVelocitySq",Number.MAX_SAFE_INTEGER),ce(this,"minPointers",1),ce(this,"maxPointers",10),ce(this,"startX",0),ce(this,"startY",0),ce(this,"offsetX",0),ce(this,"offsetY",0),ce(this,"lastX",0),ce(this,"lastY",0),ce(this,"stylusData",void 0),ce(this,"activateAfterLongPress",0),ce(this,"activationTimeout",0),ce(this,"enableTrackpadTwoFingerGesture",!1),ce(this,"endWheelTimeout",0),ce(this,"wheelDevice",F.UNDETERMINED)}updateGestureConfig(e){let{enabled:t=!0}=e,n=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,le);this.resetConfig(),super.updateGestureConfig(Object.assign({enabled:t},n)),this.checkCustomActivationCriteria(this.customActivationProperties),void 0!==this.config.minDist?this.minDistSq=this.config.minDist*this.config.minDist:this.hasCustomActivationCriteria&&(this.minDistSq=Number.MAX_SAFE_INTEGER),void 0!==this.config.minPointers&&(this.minPointers=this.config.minPointers),void 0!==this.config.maxPointers&&(this.maxPointers=this.config.maxPointers),void 0!==this.config.minVelocity&&(this.minVelocityX=this.config.minVelocity,this.minVelocityY=this.config.minVelocity),void 0!==this.config.minVelocityX&&(this.minVelocityX=this.config.minVelocityX),void 0!==this.config.minVelocityY&&(this.minVelocityY=this.config.minVelocityY),void 0!==this.config.activateAfterLongPress&&(this.activateAfterLongPress=this.config.activateAfterLongPress),void 0!==this.config.activeOffsetXStart&&(this.activeOffsetXStart=this.config.activeOffsetXStart,void 0===this.config.activeOffsetXEnd&&(this.activeOffsetXEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.activeOffsetXEnd&&(this.activeOffsetXEnd=this.config.activeOffsetXEnd,void 0===this.config.activeOffsetXStart&&(this.activeOffsetXStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.failOffsetXStart&&(this.failOffsetXStart=this.config.failOffsetXStart,void 0===this.config.failOffsetXEnd&&(this.failOffsetXEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.failOffsetXEnd&&(this.failOffsetXEnd=this.config.failOffsetXEnd,void 0===this.config.failOffsetXStart&&(this.failOffsetXStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.activeOffsetYStart&&(this.activeOffsetYStart=this.config.activeOffsetYStart,void 0===this.config.activeOffsetYEnd&&(this.activeOffsetYEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.activeOffsetYEnd&&(this.activeOffsetYEnd=this.config.activeOffsetYEnd,void 0===this.config.activeOffsetYStart&&(this.activeOffsetYStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.failOffsetYStart&&(this.failOffsetYStart=this.config.failOffsetYStart,void 0===this.config.failOffsetYEnd&&(this.failOffsetYEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.failOffsetYEnd&&(this.failOffsetYEnd=this.config.failOffsetYEnd,void 0===this.config.failOffsetYStart&&(this.failOffsetYStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.enableTrackpadTwoFingerGesture&&(this.enableTrackpadTwoFingerGesture=this.config.enableTrackpadTwoFingerGesture)}resetConfig(){super.resetConfig(),this.activeOffsetXStart=-Number.MAX_SAFE_INTEGER,this.activeOffsetXEnd=Number.MIN_SAFE_INTEGER,this.failOffsetXStart=Number.MIN_SAFE_INTEGER,this.failOffsetXEnd=Number.MAX_SAFE_INTEGER,this.activeOffsetYStart=Number.MAX_SAFE_INTEGER,this.activeOffsetYEnd=Number.MIN_SAFE_INTEGER,this.failOffsetYStart=Number.MIN_SAFE_INTEGER,this.failOffsetYEnd=Number.MAX_SAFE_INTEGER,this.minVelocityX=Number.MAX_SAFE_INTEGER,this.minVelocityY=Number.MAX_SAFE_INTEGER,this.minVelocitySq=Number.MAX_SAFE_INTEGER,this.minDistSq=225,this.minPointers=1,this.maxPointers=10,this.activateAfterLongPress=0}transformNativeEvent(){const e=this.getTranslationX(),t=this.getTranslationY();return Object.assign({},super.transformNativeEvent(),{translationX:isNaN(e)?0:e,translationY:isNaN(t)?0:t,velocityX:this.velocityX,velocityY:this.velocityY,stylusData:this.stylusData})}getTranslationX(){return this.lastX-this.startX+this.offsetX}getTranslationY(){return this.lastY-this.startY+this.offsetY}clearActivationTimeout(){clearTimeout(this.activationTimeout)}onPointerDown(e){if(!this.isButtonInConfig(e.button))return;this.tracker.addToTracker(e),this.stylusData=e.stylusData,super.onPointerDown(e);const t=this.tracker.getAbsoluteCoordsAverage();this.lastX=t.x,this.lastY=t.y,this.startX=this.lastX,this.startY=this.lastY,this.tryBegin(e),this.checkBegan(),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e),this.tryBegin(e),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY;const t=this.tracker.getAbsoluteCoordsAverage();this.lastX=t.x,this.lastY=t.y,this.startX=this.lastX,this.startY=this.lastY,this.tracker.trackedPointersCount>this.maxPointers?this.state===l.ACTIVE?this.cancel():this.fail():this.checkBegan()}onPointerUp(e){if(this.stylusData=e.stylusData,super.onPointerUp(e),this.state===l.ACTIVE){const e=this.tracker.getAbsoluteCoordsAverage();this.lastX=e.x,this.lastY=e.y}this.tracker.removeFromTracker(e.pointerId),0===this.tracker.trackedPointersCount&&this.clearActivationTimeout(),this.state===l.ACTIVE?this.end():(this.resetProgress(),this.fail())}onPointerRemove(e){super.onPointerRemove(e),this.tracker.removeFromTracker(e.pointerId),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY;const t=this.tracker.getAbsoluteCoordsAverage();this.lastX=t.x,this.lastY=t.y,this.startX=this.lastX,this.startY=this.lastY,this.state===l.ACTIVE&&this.tracker.trackedPointersCount{this.state===l.ACTIVE&&(this.end(),this.tracker.removeFromTracker(e.pointerId),this.state=l.UNDETERMINED),this.wheelDevice=F.UNDETERMINED}),30)}onWheel(e){if(this.wheelDevice===F.MOUSE||!this.enableTrackpadTwoFingerGesture)return;if(this.state===l.UNDETERMINED){if(this.wheelDevice=e.wheelDeltaY%120!=0?F.TOUCHPAD:F.MOUSE,this.wheelDevice===F.MOUSE)return void this.scheduleWheelEnd(e);this.tracker.addToTracker(e);const t=this.tracker.getAbsoluteCoordsAverage();this.lastX=t.x,this.lastY=t.y,this.startX=this.lastX,this.startY=this.lastY,this.begin(),this.activate()}this.tracker.track(e);const t=this.tracker.getAbsoluteCoordsAverage();this.lastX=t.x,this.lastY=t.y;const n=this.tracker.getVelocity(e.pointerId);this.velocityX=n.x,this.velocityY=n.y,this.tryToSendMoveEvent(!1,e),this.scheduleWheelEnd(e)}shouldActivate(){const e=this.getTranslationX();if(this.activeOffsetXStart!==Number.MAX_SAFE_INTEGER&&ethis.activeOffsetXEnd)return!0;const t=this.getTranslationY();if(this.activeOffsetYStart!==Number.MAX_SAFE_INTEGER&&tthis.activeOffsetYEnd)return!0;const n=e*e+t*t;if(this.minDistSq!==Number.MAX_SAFE_INTEGER&&n>=this.minDistSq)return!0;const r=this.velocityX;if(this.minVelocityX!==Number.MAX_SAFE_INTEGER&&(this.minVelocityX<0&&r<=this.minVelocityX||this.minVelocityX>=0&&this.minVelocityX<=r))return!0;const i=this.velocityY;if(this.minVelocityY!==Number.MAX_SAFE_INTEGER&&(this.minVelocityY<0&&i<=this.minVelocityY||this.minVelocityY>=0&&this.minVelocityY<=i))return!0;const o=r*r+i*i;return this.minVelocitySq!==Number.MAX_SAFE_INTEGER&&o>=this.minVelocitySq}shouldFail(){const e=this.getTranslationX(),t=this.getTranslationY(),n=e*e+t*t;return this.activateAfterLongPress>0&&n>225?(this.clearActivationTimeout(),!0):this.failOffsetXStart!==Number.MIN_SAFE_INTEGER&&ethis.failOffsetXEnd||this.failOffsetYStart!==Number.MIN_SAFE_INTEGER&&tthis.failOffsetYEnd}tryBegin(e){if(this.state===l.UNDETERMINED&&this.tracker.trackedPointersCount>=this.minPointers)this.resetProgress(),this.offsetX=0,this.offsetY=0,this.velocityX=0,this.velocityY=0,this.begin(),this.activateAfterLongPress>0&&(this.activationTimeout=setTimeout((()=>{this.activate()}),this.activateAfterLongPress));else{const t=this.tracker.getVelocity(e.pointerId);this.velocityX=t.x,this.velocityY=t.y}}checkBegan(){this.state===l.BEGAN&&(this.shouldFail()?this.fail():this.shouldActivate()&&this.activate())}activate(e=!1){this.state!==l.ACTIVE&&this.resetProgress(),super.activate(e)}onCancel(){this.clearActivationTimeout()}onReset(){this.clearActivationTimeout()}resetProgress(){this.state!==l.ACTIVE&&(this.startX=this.lastX,this.startY=this.lastY)}},TapGestureHandler:class extends ae{constructor(...e){super(...e),he(this,"maxDeltaX",Number.MIN_SAFE_INTEGER),he(this,"maxDeltaY",Number.MIN_SAFE_INTEGER),he(this,"maxDistSq",Number.MIN_SAFE_INTEGER),he(this,"maxDurationMs",500),he(this,"maxDelayMs",500),he(this,"numberOfTaps",1),he(this,"minNumberOfPointers",1),he(this,"currentMaxNumberOfPointers",1),he(this,"startX",0),he(this,"startY",0),he(this,"offsetX",0),he(this,"offsetY",0),he(this,"lastX",0),he(this,"lastY",0),he(this,"waitTimeout",void 0),he(this,"delayTimeout",void 0),he(this,"tapsSoFar",0)}updateGestureConfig(e){let{enabled:t=!0}=e,n=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,ue);super.updateGestureConfig(Object.assign({enabled:t},n)),void 0!==this.config.numberOfTaps&&(this.numberOfTaps=this.config.numberOfTaps),void 0!==this.config.maxDurationMs&&(this.maxDurationMs=this.config.maxDurationMs),void 0!==this.config.maxDelayMs&&(this.maxDelayMs=this.config.maxDelayMs),void 0!==this.config.maxDeltaX&&(this.maxDeltaX=this.config.maxDeltaX),void 0!==this.config.maxDeltaY&&(this.maxDeltaY=this.config.maxDeltaY),void 0!==this.config.maxDist&&(this.maxDistSq=this.config.maxDist*this.config.maxDist),void 0!==this.config.minPointers&&(this.minNumberOfPointers=this.config.minPointers)}resetConfig(){super.resetConfig(),this.maxDeltaX=Number.MIN_SAFE_INTEGER,this.maxDeltaY=Number.MIN_SAFE_INTEGER,this.maxDistSq=Number.MIN_SAFE_INTEGER,this.maxDurationMs=500,this.maxDelayMs=500,this.numberOfTaps=1,this.minNumberOfPointers=1}clearTimeouts(){clearTimeout(this.waitTimeout),clearTimeout(this.delayTimeout)}startTap(){this.clearTimeouts(),this.waitTimeout=setTimeout((()=>this.fail()),this.maxDurationMs)}endTap(){this.clearTimeouts(),++this.tapsSoFar===this.numberOfTaps&&this.currentMaxNumberOfPointers>=this.minNumberOfPointers?this.activate():this.delayTimeout=setTimeout((()=>this.fail()),this.maxDelayMs)}onPointerDown(e){this.isButtonInConfig(e.button)&&(this.tracker.addToTracker(e),super.onPointerDown(e),this.trySettingPosition(e),this.startX=e.x,this.startY=e.y,this.lastX=e.x,this.lastY=e.y,this.updateState(e),this.tryToSendTouchEvent(e))}onPointerAdd(e){super.onPointerAdd(e),this.tracker.addToTracker(e),this.trySettingPosition(e),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY;const t=this.tracker.getAbsoluteCoordsAverage();this.lastX=t.x,this.lastY=t.y,this.startX=t.x,this.startY=t.y,this.updateState(e)}onPointerUp(e){super.onPointerUp(e);const t=this.tracker.getAbsoluteCoordsAverage();this.lastX=t.x,this.lastY=t.y,this.tracker.removeFromTracker(e.pointerId),this.updateState(e)}onPointerRemove(e){super.onPointerRemove(e),this.tracker.removeFromTracker(e.pointerId),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY=this.startY;const t=this.tracker.getAbsoluteCoordsAverage();this.lastX=t.x,this.lastY=t.y,this.startX=this.lastX,this.startY=this.lastY,this.updateState(e)}onPointerMove(e){this.trySettingPosition(e),this.tracker.track(e);const t=this.tracker.getAbsoluteCoordsAverage();this.lastX=t.x,this.lastY=t.y,this.updateState(e),super.onPointerMove(e)}onPointerOutOfBounds(e){this.trySettingPosition(e),this.tracker.track(e);const t=this.tracker.getAbsoluteCoordsAverage();this.lastX=t.x,this.lastY=t.y,this.updateState(e),super.onPointerOutOfBounds(e)}updateState(e){if(this.currentMaxNumberOfPointersthis.maxDeltaX)return!0;const t=this.lastY-this.startY+this.offsetY;if(this.maxDeltaY!==Number.MIN_SAFE_INTEGER&&Math.abs(t)>this.maxDeltaY)return!0;const n=t*t+e*e;return this.maxDistSq!==Number.MIN_SAFE_INTEGER&&n>this.maxDistSq}activate(){super.activate(),this.end()}onCancel(){this.resetProgress(),this.clearTimeouts()}resetProgress(){this.clearTimeouts(),this.tapsSoFar=0,this.currentMaxNumberOfPointers=0}},LongPressGestureHandler:class extends ae{constructor(...e){super(...e),fe(this,"minDurationMs",500),fe(this,"defaultMaxDistSq",100),fe(this,"maxDistSq",this.defaultMaxDistSq),fe(this,"numberOfPointers",1),fe(this,"startX",0),fe(this,"startY",0),fe(this,"startTime",0),fe(this,"previousTime",0),fe(this,"activationTimeout",void 0)}init(e,t){void 0===this.config.enableContextMenu&&(this.config.enableContextMenu=!1),super.init(e,t)}transformNativeEvent(){return Object.assign({},super.transformNativeEvent(),{duration:Date.now()-this.startTime})}updateGestureConfig(e){let{enabled:t=!0}=e,n=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,de);super.updateGestureConfig(Object.assign({enabled:t},n)),void 0!==this.config.minDurationMs&&(this.minDurationMs=this.config.minDurationMs),void 0!==this.config.maxDist&&(this.maxDistSq=this.config.maxDist*this.config.maxDist),void 0!==this.config.numberOfPointers&&(this.numberOfPointers=this.config.numberOfPointers)}resetConfig(){super.resetConfig(),this.minDurationMs=500,this.maxDistSq=this.defaultMaxDistSq}onStateChange(e,t){clearTimeout(this.activationTimeout)}onPointerDown(e){this.isButtonInConfig(e.button)&&(this.tracker.addToTracker(e),super.onPointerDown(e),this.startX=e.x,this.startY=e.y,this.tryBegin(),this.tryActivate(),this.tryToSendTouchEvent(e))}onPointerAdd(e){if(super.onPointerAdd(e),this.tracker.addToTracker(e),this.tracker.trackedPointersCount>this.numberOfPointers)return void this.fail();const t=this.tracker.getAbsoluteCoordsAverage();this.startX=t.x,this.startY=t.y,this.tryActivate()}onPointerMove(e){super.onPointerMove(e),this.tracker.track(e),this.checkDistanceFail()}onPointerOutOfBounds(e){super.onPointerOutOfBounds(e),this.tracker.track(e),this.checkDistanceFail()}onPointerUp(e){super.onPointerUp(e),this.tracker.removeFromTracker(e.pointerId),this.state===l.ACTIVE?this.end():this.fail()}onPointerRemove(e){super.onPointerRemove(e),this.tracker.removeFromTracker(e.pointerId),this.tracker.trackedPointersCount0?this.activationTimeout=setTimeout((()=>{this.activate()}),this.minDurationMs):0===this.minDurationMs&&this.activate())}checkDistanceFail(){const e=this.tracker.getAbsoluteCoordsAverage(),t=e.x-this.startX,n=e.y-this.startY;t*t+n*n<=this.maxDistSq||(this.state===l.ACTIVE?this.cancel():this.fail())}},PinchGestureHandler:class extends ae{constructor(...e){super(...e),ge(this,"scale",1),ge(this,"velocity",0),ge(this,"startingSpan",0),ge(this,"spanSlop",15),ge(this,"scaleDetectorListener",{onScaleBegin:e=>(this.startingSpan=e.currentSpan,!0),onScale:e=>{const t=this.scale;this.scale*=e.calculateScaleFactor(this.tracker.trackedPointersCount);const n=e.timeDelta;return n>0&&(this.velocity=(this.scale-t)/n),Math.abs(this.startingSpan-e.currentSpan)>=this.spanSlop&&this.state===l.BEGAN&&this.activate(),!0},onScaleEnd:e=>{}}),ge(this,"scaleGestureDetector",new me(this.scaleDetectorListener))}init(e,t){super.init(e,t),this.shouldCancelWhenOutside=!1}transformNativeEvent(){return{focalX:this.scaleGestureDetector.focusX,focalY:this.scaleGestureDetector.focusY,velocity:this.velocity,scale:this.scale}}onPointerDown(e){this.tracker.addToTracker(e),super.onPointerDown(e),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e),this.tryBegin(),this.scaleGestureDetector.onTouchEvent(e,this.tracker)}onPointerUp(e){super.onPointerUp(e),this.tracker.removeFromTracker(e.pointerId),this.state===l.ACTIVE&&(this.scaleGestureDetector.onTouchEvent(e,this.tracker),this.state===l.ACTIVE?this.end():this.fail())}onPointerRemove(e){super.onPointerRemove(e),this.scaleGestureDetector.onTouchEvent(e,this.tracker),this.tracker.removeFromTracker(e.pointerId),this.state===l.ACTIVE&&this.tracker.trackedPointersCount<2&&this.end()}onPointerMove(e){this.tracker.trackedPointersCount<2||(this.tracker.track(e),this.scaleGestureDetector.onTouchEvent(e,this.tracker),super.onPointerMove(e))}onPointerOutOfBounds(e){this.tracker.trackedPointersCount<2||(this.tracker.track(e),this.scaleGestureDetector.onTouchEvent(e,this.tracker),super.onPointerOutOfBounds(e))}tryBegin(){this.state===l.UNDETERMINED&&(this.resetProgress(),this.begin())}activate(e){this.state!==l.ACTIVE&&this.resetProgress(),super.activate(e)}onReset(){this.resetProgress()}resetProgress(){this.state!==l.ACTIVE&&(this.velocity=0,this.scale=1)}},RotationGestureHandler:class extends ae{constructor(...e){super(...e),be(this,"rotation",0),be(this,"velocity",0),be(this,"cachedAnchorX",0),be(this,"cachedAnchorY",0),be(this,"rotationGestureListener",{onRotationBegin:e=>!0,onRotation:e=>{const t=this.rotation;this.rotation+=e.rotation;const n=e.timeDelta;return n>0&&(this.velocity=(this.rotation-t)/n),Math.abs(this.rotation)>=Ae&&this.state===l.BEGAN&&this.activate(),!0},onRotationEnd:e=>{this.end()}}),be(this,"rotationGestureDetector",new ve(this.rotationGestureListener))}init(e,t){super.init(e,t),this.shouldCancelWhenOutside=!1}transformNativeEvent(){return{rotation:this.rotation?this.rotation:0,anchorX:this.getAnchorX(),anchorY:this.getAnchorY(),velocity:this.velocity?this.velocity:0}}getAnchorX(){return this.rotationGestureDetector.anchorX||this.cachedAnchorX}getAnchorY(){return this.rotationGestureDetector.anchorY||this.cachedAnchorY}onPointerDown(e){this.tracker.addToTracker(e),super.onPointerDown(e),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e),this.tryBegin(),this.rotationGestureDetector.onTouchEvent(e,this.tracker)}onPointerMove(e){this.tracker.trackedPointersCount<2||(this.getAnchorX()&&(this.cachedAnchorX=this.getAnchorX()),this.getAnchorY()&&(this.cachedAnchorY=this.getAnchorY()),this.tracker.track(e),this.rotationGestureDetector.onTouchEvent(e,this.tracker),super.onPointerMove(e))}onPointerOutOfBounds(e){this.tracker.trackedPointersCount<2||(this.getAnchorX()&&(this.cachedAnchorX=this.getAnchorX()),this.getAnchorY()&&(this.cachedAnchorY=this.getAnchorY()),this.tracker.track(e),this.rotationGestureDetector.onTouchEvent(e,this.tracker),super.onPointerOutOfBounds(e))}onPointerUp(e){super.onPointerUp(e),this.tracker.removeFromTracker(e.pointerId),this.rotationGestureDetector.onTouchEvent(e,this.tracker),this.state===l.ACTIVE&&(this.state===l.ACTIVE?this.end():this.fail())}onPointerRemove(e){super.onPointerRemove(e),this.rotationGestureDetector.onTouchEvent(e,this.tracker),this.tracker.removeFromTracker(e.pointerId)}tryBegin(){this.state===l.UNDETERMINED&&this.begin()}onReset(){this.state!==l.ACTIVE&&(this.rotation=0,this.velocity=0,this.rotationGestureDetector.reset())}},FlingGestureHandler:class extends ae{constructor(...e){super(...e),Pe(this,"numberOfPointersRequired",1),Pe(this,"direction",De),Pe(this,"maxDurationMs",800),Pe(this,"minVelocity",700),Pe(this,"delayTimeout",void 0),Pe(this,"maxNumberOfPointersSimultaneously",0),Pe(this,"keyPointer",NaN)}updateGestureConfig(e){let{enabled:t=!0}=e,n=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,Me);super.updateGestureConfig(Object.assign({enabled:t},n)),this.config.direction&&(this.direction=this.config.direction),this.config.numberOfPointers&&(this.numberOfPointersRequired=this.config.numberOfPointers)}startFling(){this.begin(),this.maxNumberOfPointersSimultaneously=1,this.delayTimeout=setTimeout((()=>this.fail()),this.maxDurationMs)}tryEndFling(){const e=Se.fromVelocity(this.tracker,this.keyPointer),t=(t,n)=>(t&this.direction)===t&&e.isSimilar(Se.fromDirection(t),n),n=Object.values(xe),r=Object.values(we),i=n.map((e=>t(e,je))),o=r.map((e=>t(e,Be))),a=i.some(Boolean)||o.some(Boolean),s=e.magnitude>this.minVelocity;return!(this.maxNumberOfPointersSimultaneously!==this.numberOfPointersRequired||!a||!s||(clearTimeout(this.delayTimeout),this.activate(),0))}endFling(){this.tryEndFling()||this.fail()}onPointerDown(e){this.isButtonInConfig(e.button)&&(this.tracker.addToTracker(e),this.keyPointer=e.pointerId,super.onPointerDown(e),this.newPointerAction(),this.tryToSendTouchEvent(e))}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e),this.newPointerAction()}newPointerAction(){this.state===l.UNDETERMINED&&this.startFling(),this.state===l.BEGAN&&(this.tryEndFling(),this.tracker.trackedPointersCount>this.maxNumberOfPointersSimultaneously&&(this.maxNumberOfPointersSimultaneously=this.tracker.trackedPointersCount))}pointerMoveAction(e){this.tracker.track(e),this.state===l.BEGAN&&this.tryEndFling()}onPointerMove(e){this.pointerMoveAction(e),super.onPointerMove(e)}onPointerOutOfBounds(e){this.pointerMoveAction(e),super.onPointerOutOfBounds(e)}onPointerUp(e){super.onPointerUp(e),this.onUp(e),this.keyPointer=NaN}onPointerRemove(e){super.onPointerRemove(e),this.onUp(e)}onUp(e){this.state===l.BEGAN&&this.endFling(),this.tracker.removeFromTracker(e.pointerId)}activate(e){super.activate(e),this.end()}resetConfig(){super.resetConfig(),this.numberOfPointersRequired=1,this.direction=De}},ManualGestureHandler:class extends ae{onPointerDown(e){this.tracker.addToTracker(e),super.onPointerDown(e),this.begin(),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e)}onPointerMove(e){this.tracker.track(e),super.onPointerMove(e)}onPointerOutOfBounds(e){this.tracker.track(e),super.onPointerOutOfBounds(e)}onPointerUp(e){super.onPointerUp(e),this.tracker.removeFromTracker(e.pointerId)}onPointerRemove(e){super.onPointerRemove(e),this.tracker.removeFromTracker(e.pointerId)}},HoverGestureHandler:class extends ae{constructor(...e){super(...e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"stylusData",void 0)}transformNativeEvent(){return Object.assign({},super.transformNativeEvent(),{stylusData:this.stylusData})}onPointerMoveOver(e){Z.instance.recordHandlerIfNotPresent(this),this.tracker.addToTracker(e),this.stylusData=e.stylusData,super.onPointerMoveOver(e),this.state===l.UNDETERMINED&&(this.begin(),this.activate())}onPointerMoveOut(e){this.tracker.removeFromTracker(e.pointerId),this.stylusData=e.stylusData,super.onPointerMoveOut(e),this.end()}onPointerMove(e){this.tracker.track(e),this.stylusData=e.stylusData,super.onPointerMove(e)}onPointerCancel(e){super.onPointerCancel(e),this.reset()}}},Zn={NativeViewGestureHandler:class extends Vn{get isNative(){return!0}onRawEvent(e){if(super.onRawEvent(e),!e.isFinal&&jn(Bn({x:e.deltaX,y:e.deltaY}),10)&&this.config.disallowInterruption){const t=Object.values(Object.assign({},Cn)).filter((e=>{const{handlerTag:t,view:n,isGestureRunning:r}=e;return t!==this.handlerTag&&r&&e instanceof Nn&&n&&this.view.contains(n)}));for(const n of t)n.forceInvalidate(e)}}},PanGestureHandler:class extends Hn{get name(){return"pan"}get NativeGestureClass(){return An.Pan}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{direction:this.getDirection()})}getState(e){const t=super.getState(e);return this.previousState===l.UNDETERMINED&&t===l.ACTIVE?l.BEGAN:t}getDirection(){const e=this.getConfig(),{activeOffsetXStart:t,activeOffsetXEnd:n,activeOffsetYStart:r,activeOffsetYEnd:i,minDist:o}=e;let a=[],s=[];if(!Pn(o))return An.DIRECTION_ALL;Pn(t)||s.push(An.DIRECTION_LEFT),Pn(n)||s.push(An.DIRECTION_RIGHT),2===s.length&&(s=[An.DIRECTION_HORIZONTAL]),a=a.concat(s);let l=[];return Pn(r)||l.push(An.DIRECTION_UP),Pn(i)||l.push(An.DIRECTION_DOWN),2===l.length&&(l=[An.DIRECTION_VERTICAL]),a=a.concat(l),a.length?a[0]===An.DIRECTION_HORIZONTAL&&a[1]===An.DIRECTION_VERTICAL||s.length&&l.length?An.DIRECTION_ALL:a[0]:An.DIRECTION_NONE}getConfig(){return this.hasCustomActivationCriteria?this.config:{minDistSq:10}}shouldFailUnderCustomCriteria({deltaX:e,deltaY:t},n){return!Pn(n.failOffsetXStart)&&en.failOffsetXEnd||!Pn(n.failOffsetYStart)&&tn.failOffsetYEnd}shouldActivateUnderCustomCriteria({deltaX:e,deltaY:t,velocity:n},r){return!Pn(r.activeOffsetXStart)&&er.activeOffsetXEnd||!Pn(r.activeOffsetYStart)&&tr.activeOffsetYEnd||jn(Bn({x:e,y:t}),r.minDistSq)||jn(n.x,r.minVelocityX)||jn(n.y,r.minVelocityY)||jn(Bn(n),r.minVelocitySq)}shouldMultiFingerPanFail({pointerLength:e,scale:t,deltaRotation:n}){if(e<=1)return!1;const r=Math.abs(t-1),i=Math.abs(n);return r>.1||i>7}updateHasCustomActivationCriteria(e){return Dn(e.minDistSq)||Dn(e.minVelocityX)||Dn(e.minVelocityY)||Dn(e.minVelocitySq)||Dn(e.activeOffsetXStart)||Dn(e.activeOffsetXEnd)||Dn(e.activeOffsetYStart)||Dn(e.activeOffsetYEnd)}isGestureEnabledForEvent(e,t,n){if(this.shouldFailUnderCustomCriteria(n,e))return{failed:!0};const r={x:n.velocityX,y:n.velocityY};return this.hasCustomActivationCriteria&&this.shouldActivateUnderCustomCriteria({deltaX:n.deltaX,deltaY:n.deltaY,velocity:r},e)?this.shouldMultiFingerPanFail({pointerLength:n.maxPointers,scale:n.scale,deltaRotation:n.deltaRotation})?{failed:!0}:{success:!0}:{success:!1}}},TapGestureHandler:class extends Nn{constructor(...e){super(...e),Gn(this,"_shouldFireEndEvent",null),Gn(this,"_timer",void 0),Gn(this,"_multiTapTimer",void 0),Gn(this,"onSuccessfulTap",(e=>{this._getPendingGestures().length?this._shouldFireEndEvent=e:(e.eventType===An.INPUT_END&&this.sendEvent(Object.assign({},e,{eventType:An.INPUT_MOVE})),this.sendEvent(Object.assign({},e,{isFinal:!0})),this.onGestureEnded(e))}))}get name(){return"tap"}get NativeGestureClass(){return An.Tap}get maxDelayMs(){return Pn(this.config.maxDelayMs)?300:this.config.maxDelayMs}simulateCancelEvent(e){this.isGestureRunning&&this.cancelEvent(e)}onGestureActivated(e){this.isGestureRunning&&this.onSuccessfulTap(e)}onRawEvent(e){if(super.onRawEvent(e),!this.hasGestureFailed&&!this.isGestureRunning&&!e.isFinal){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(clearTimeout(this._multiTapTimer),this.onStart(e),this.sendEvent(e))}if(e.isFinal&&e.maxPointers>1&&setTimeout((()=>{this.isGestureRunning&&this.cancelEvent(e)})),!this.hasGestureFailed)if(e.isFinal)e.maxPointers>1&&setTimeout((()=>{this.isGestureRunning&&this.cancelEvent(e)})),clearTimeout(this._timer),this._timer=setTimeout((()=>{this.hasGestureFailed=!0,this.cancelEvent(e)}),this.maxDelayMs);else if(!this.hasGestureFailed&&!this.isGestureRunning){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(clearTimeout(this._multiTapTimer),this.onStart(e),this.sendEvent(e))}}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{event:this.name,taps:Pn(this.config.numberOfTaps)?1:this.config.numberOfTaps,interval:this.maxDelayMs,time:Pn(this.config.maxDurationMs)||null==this.config.maxDurationMs?250:this.config.maxDurationMs})}updateGestureConfig(e){let{shouldCancelWhenOutside:t=!0,maxDeltaX:n=Number.NaN,maxDeltaY:r=Number.NaN,numberOfTaps:i=1,minDurationMs:o=525,maxDelayMs:a=Number.NaN,maxDurationMs:s=Number.NaN,maxDist:l=2,minPointers:c=1,maxPointers:u=1}=e,h=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,qn);return super.updateGestureConfig(Object.assign({shouldCancelWhenOutside:t,numberOfTaps:i,maxDeltaX:n,maxDeltaY:r,minDurationMs:o,maxDelayMs:a,maxDist:l,minPointers:c,maxPointers:u},h))}onGestureEnded(...e){clearTimeout(this._timer),super.onGestureEnded(...e)}onWaitingEnded(e){this._shouldFireEndEvent&&(this.onSuccessfulTap(this._shouldFireEndEvent),this._shouldFireEndEvent=null)}},LongPressGestureHandler:class extends Vn{get minDurationMs(){return Pn(this.config.minDurationMs)?251:this.config.minDurationMs}get maxDist(){return Pn(this.config.maxDist)?9:this.config.maxDist}updateHasCustomActivationCriteria({maxDistSq:e}){return!Dn(e)}getConfig(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{time:this.minDurationMs})}getState(e){return{[An.INPUT_START]:l.ACTIVE,[An.INPUT_MOVE]:l.ACTIVE,[An.INPUT_END]:l.END,[An.INPUT_CANCEL]:l.FAILED}[e]}},PinchGestureHandler:class extends Wn{get name(){return"pinch"}get NativeGestureClass(){return An.Pinch}transformNativeEvent({scale:e,velocity:t,center:n}){return{focalX:n.x,focalY:n.y,velocity:t,scale:e}}},RotationGestureHandler:class extends Wn{get name(){return"rotate"}get NativeGestureClass(){return An.Rotate}transformNativeEvent({rotation:e,velocity:t,center:n}){var r;return{rotation:(e-(null!==(r=this.initialRotation)&&void 0!==r?r:0))*xn,anchorX:n.x,anchorY:n.y,velocity:t}}},FlingGestureHandler:class extends Hn{get name(){return"swipe"}get NativeGestureClass(){return An.Swipe}onGestureActivated(e){this.sendEvent(Object.assign({},e,{eventType:An.INPUT_MOVE,isFinal:!1,isFirst:!0})),this.isGestureRunning=!1,this.hasGestureFailed=!1,this.sendEvent(Object.assign({},e,{eventType:An.INPUT_END,isFinal:!0}))}onRawEvent(e){if(super.onRawEvent(e),!this.hasGestureFailed)if(e.isFinal)setTimeout((()=>{this.isGestureRunning&&this.cancelEvent(e)}));else if(!this.hasGestureFailed&&!this.isGestureRunning){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(this.onStart(e),this.sendEvent(e))}}getHammerConfig(){return{pointers:this.config.numberOfPointers,direction:this.getDirection()}}getTargetDirections(e){const t=[];return 1&e&&t.push(An.DIRECTION_RIGHT),2&e&&t.push(An.DIRECTION_LEFT),4&e&&t.push(An.DIRECTION_UP),8&e&&t.push(An.DIRECTION_DOWN),t}getDirection(){const{direction:e}=this.getConfig();let t=[];return 1&e&&t.push(An.DIRECTION_HORIZONTAL),2&e&&t.push(An.DIRECTION_HORIZONTAL),4&e&&t.push(An.DIRECTION_VERTICAL),8&e&&t.push(An.DIRECTION_VERTICAL),t=[...new Set(t)],0===t.length?An.DIRECTION_NONE:1===t.length?t[0]:An.DIRECTION_ALL}isGestureEnabledForEvent({numberOfPointers:e},t,{maxPointers:n}){const r=n===e;return!r&&this.isGestureRunning?{failed:!0}:{success:r}}updateGestureConfig(e){let{numberOfPointers:t=1,direction:n}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,Xn);if(Pn(n)||"number"!=typeof n)throw new Qn("direction",n,"number");return super.updateGestureConfig(Object.assign({numberOfPointers:t,direction:n},r))}}};var Kn=__webpack_require__(57061);function $n(e){if(e instanceof Kn.A)return e._listRef._scrollRef.firstChild;if(void 0!==(null==e?void 0:e.viewTag))return $n(e.viewTag);if(e instanceof Element)return"contents"===e.style.display?$n(e.firstChild):e;if(function(e){const t=Object.getPrototypeOf(e).constructor.name;return Re.has(t)&&Object.hasOwn(e,"elementRef")}(e))return e.elementRef.current;let t=null==e?void 0:e.current;for(;t&&"contents"===t.style.display;)t=t.firstChild;return t}function er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class tr{constructor(e){er(this,"view",void 0),er(this,"pointersInBounds",[]),er(this,"activePointersCounter",void 0),this.view=e,this.activePointersCounter=0}onPointerDown(e){}onPointerAdd(e){}onPointerUp(e){}onPointerRemove(e){}onPointerMove(e){}onPointerLeave(e){}onPointerEnter(e){}onPointerCancel(e){}onPointerOutOfBounds(e){}onPointerMoveOver(e){}onPointerMoveOut(e){}onWheel(e){}setOnPointerDown(e){this.onPointerDown=e}setOnPointerAdd(e){this.onPointerAdd=e}setOnPointerUp(e){this.onPointerUp=e}setOnPointerRemove(e){this.onPointerRemove=e}setOnPointerMove(e){this.onPointerMove=e}setOnPointerLeave(e){this.onPointerLeave=e}setOnPointerEnter(e){this.onPointerEnter=e}setOnPointerCancel(e){this.onPointerCancel=e}setOnPointerOutOfBounds(e){this.onPointerOutOfBounds=e}setOnPointerMoveOver(e){this.onPointerMoveOver=e}setOnPointerMoveOut(e){this.onPointerMoveOut=e}setOnWheel(e){this.onWheel=e}markAsInBounds(e){this.pointersInBounds.indexOf(e)>=0||this.pointersInBounds.push(e)}markAsOutOfBounds(e){const t=this.pointersInBounds.indexOf(e);t<0||this.pointersInBounds.splice(t,1)}resetManager(){this.activePointersCounter=0,this.pointersInBounds=[]}}function nr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rr=new Set(["SELECT","INPUT"]);class ir extends tr{constructor(e){super(e),nr(this,"trackedPointers",new Set),nr(this,"mouseButtonsMapper",new Map),nr(this,"lastPosition",void 0),nr(this,"pointerDownCallback",(e=>{if(!ke(this.view,{x:e.clientX,y:e.clientY}))return;const t=this.mapEvent(e,j.DOWN),n=e.target;rr.has(n.tagName)||n.setPointerCapture(t.pointerId),this.markAsInBounds(t.pointerId),this.trackedPointers.add(t.pointerId),++this.activePointersCounter>1?(t.eventType=j.ADDITIONAL_POINTER_DOWN,this.onPointerAdd(t)):this.onPointerDown(t)})),nr(this,"pointerUpCallback",(e=>{if(0===this.activePointersCounter)return;const t=this.mapEvent(e,j.UP),n=e.target;rr.has(n.tagName)||n.releasePointerCapture(t.pointerId),this.markAsOutOfBounds(t.pointerId),this.trackedPointers.delete(t.pointerId),--this.activePointersCounter>0?(t.eventType=j.ADDITIONAL_POINTER_UP,this.onPointerRemove(t)):this.onPointerUp(t)})),nr(this,"pointerMoveCallback",(e=>{const t=this.mapEvent(e,j.MOVE),n=e.target;n.hasPointerCapture(e.pointerId)||rr.has(n.tagName)||n.setPointerCapture(e.pointerId);const r=ke(this.view,{x:t.x,y:t.y}),i=this.pointersInBounds.indexOf(t.pointerId);r?i<0?(t.eventType=j.ENTER,this.onPointerEnter(t),this.markAsInBounds(t.pointerId)):this.onPointerMove(t):i>=0?(t.eventType=j.LEAVE,this.onPointerLeave(t),this.markAsOutOfBounds(t.pointerId)):this.onPointerOutOfBounds(t),this.lastPosition.x=e.x,this.lastPosition.y=e.y})),nr(this,"pointerCancelCallback",(e=>{const t=this.mapEvent(e,j.CANCEL);this.onPointerCancel(t),this.markAsOutOfBounds(t.pointerId),this.activePointersCounter=0,this.trackedPointers.clear()})),nr(this,"pointerEnterCallback",(e=>{const t=this.mapEvent(e,j.ENTER);this.onPointerMoveOver(t)})),nr(this,"pointerLeaveCallback",(e=>{const t=this.mapEvent(e,j.LEAVE);this.onPointerMoveOut(t)})),nr(this,"lostPointerCaptureCallback",(e=>{const t=this.mapEvent(e,j.CANCEL);this.trackedPointers.has(t.pointerId)&&(this.onPointerCancel(t),this.activePointersCounter=0,this.trackedPointers.clear())})),this.mouseButtonsMapper.set(0,re.LEFT),this.mouseButtonsMapper.set(1,re.MIDDLE),this.mouseButtonsMapper.set(2,re.RIGHT),this.mouseButtonsMapper.set(3,re.BUTTON_4),this.mouseButtonsMapper.set(4,re.BUTTON_5),this.lastPosition={x:-1/0,y:-1/0}}registerListeners(){this.view.addEventListener("pointerdown",this.pointerDownCallback),this.view.addEventListener("pointerup",this.pointerUpCallback),this.view.addEventListener("pointermove",this.pointerMoveCallback),this.view.addEventListener("pointercancel",this.pointerCancelCallback),this.view.addEventListener("pointerenter",this.pointerEnterCallback),this.view.addEventListener("pointerleave",this.pointerLeaveCallback),this.view.addEventListener("lostpointercapture",this.lostPointerCaptureCallback)}unregisterListeners(){this.view.removeEventListener("pointerdown",this.pointerDownCallback),this.view.removeEventListener("pointerup",this.pointerUpCallback),this.view.removeEventListener("pointermove",this.pointerMoveCallback),this.view.removeEventListener("pointercancel",this.pointerCancelCallback),this.view.removeEventListener("pointerenter",this.pointerEnterCallback),this.view.removeEventListener("pointerleave",this.pointerLeaveCallback),this.view.removeEventListener("lostpointercapture",this.lostPointerCaptureCallback)}mapEvent(e,t){var n;const r=this.view.getBoundingClientRect(),{scaleX:i,scaleY:o}=function(e){var t;const n=getComputedStyle(e),r={scaleX:1,scaleY:1};if(void 0!==n.scale&&"none"!==n.scale){const e=n.scale.split(" ");e[0]&&(r.scaleX=parseFloat(e[0])),r.scaleY=e[1]?parseFloat(e[1]):parseFloat(e[0])}const i=null===(t=new RegExp(/matrix\((.+)\)/).exec(n.transform))||void 0===t?void 0:t[1];if(i){const e=i.split(", ");r.scaleX*=parseFloat(e[0]),r.scaleY*=parseFloat(e[3])}return r}(this.view);return{x:e.clientX,y:e.clientY,offsetX:(e.clientX-r.left)/i,offsetY:(e.clientY-r.top)/o,pointerId:e.pointerId,eventType:t,pointerType:null!==(n=Te.get(e.pointerType))&&void 0!==n?n:N.OTHER,button:this.mouseButtonsMapper.get(e.button),time:e.timeStamp,stylusData:Oe(e)}}resetManager(){super.resetManager(),this.trackedPointers.clear()}}function or(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ar extends tr{constructor(...e){super(...e),or(this,"activationKeys",["Enter"," "]),or(this,"cancelationKeys",["Tab"]),or(this,"isPressed",!1),or(this,"keyDownCallback",(e=>{-1!==this.cancelationKeys.indexOf(e.key)&&this.isPressed?this.dispatchEvent(e,j.CANCEL):-1!==this.activationKeys.indexOf(e.key)&&this.dispatchEvent(e,j.DOWN)})),or(this,"keyUpCallback",(e=>{-1!==this.activationKeys.indexOf(e.key)&&this.isPressed&&this.dispatchEvent(e,j.UP)}))}dispatchEvent(e,t){if(!(e.target instanceof HTMLElement))return;const n=this.mapEvent(e,t);switch(t){case j.UP:this.isPressed=!1,this.onPointerUp(n);break;case j.DOWN:this.isPressed=!0,this.onPointerDown(n);break;case j.CANCEL:this.isPressed=!1,this.onPointerCancel(n)}}registerListeners(){this.view.addEventListener("keydown",this.keyDownCallback),this.view.addEventListener("keyup",this.keyUpCallback)}unregisterListeners(){this.view.removeEventListener("keydown",this.keyDownCallback),this.view.removeEventListener("keyup",this.keyUpCallback)}mapEvent(e,t){const n=e.target.getBoundingClientRect(),r={x:(null==n?void 0:n.x)+(null==n?void 0:n.width)/2,y:(null==n?void 0:n.y)+(null==n?void 0:n.height)/2},i={x:(null==n?void 0:n.width)/2,y:(null==n?void 0:n.height)/2};return{x:r.x,y:r.y,offsetX:i.x,offsetY:i.y,pointerId:0,eventType:t,pointerType:N.KEY,time:e.timeStamp}}}function sr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class lr extends tr{constructor(...e){super(...e),sr(this,"wheelDelta",{x:0,y:0}),sr(this,"resetDelta",(e=>{this.wheelDelta={x:0,y:0}})),sr(this,"wheelCallback",(e=>{this.wheelDelta.x+=e.deltaX,this.wheelDelta.y+=e.deltaY;const t=this.mapEvent(e);this.onWheel(t)}))}registerListeners(){this.view.addEventListener("pointermove",this.resetDelta),this.view.addEventListener("wheel",this.wheelCallback)}unregisterListeners(){this.view.removeEventListener("pointermove",this.resetDelta),this.view.removeEventListener("wheel",this.wheelCallback)}mapEvent(e){return{x:e.clientX+this.wheelDelta.x,y:e.clientY+this.wheelDelta.y,offsetX:e.offsetX-e.deltaX,offsetY:e.offsetY-e.deltaY,pointerId:-1,eventType:j.MOVE,pointerType:N.OTHER,time:e.timeStamp,wheelDeltaY:e.wheelDeltaY}}resetManager(){super.resetManager()}}function cr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ur{constructor(){cr(this,"isInitialized",!1),cr(this,"_view",void 0),cr(this,"gestureHandler",void 0),cr(this,"eventManagers",[]),cr(this,"defaultViewStyles",{userSelect:"",touchAction:""})}init(e,t){if(!e)throw new Error(`Cannot find HTML Element for handler ${t.handlerTag}`);this.isInitialized=!0,this.gestureHandler=t,this.view=$n(e),this.defaultViewStyles={userSelect:this.view.style.userSelect,touchAction:this.view.style.touchAction};const n=t.config;this.setUserSelect(n.enabled),this.setTouchAction(n.enabled),this.setContextMenu(n.enabled),this.eventManagers.push(new ir(this.view)),this.eventManagers.push(new ar(this.view)),this.eventManagers.push(new lr(this.view)),this.eventManagers.forEach((e=>this.gestureHandler.attachEventManager(e)))}isPointerInBounds({x:e,y:t}){return ke(this.view,{x:e,y:t})}measureView(){const e=this.view.getBoundingClientRect();return{pageX:e.left,pageY:e.top,width:e.width,height:e.height}}reset(){this.eventManagers.forEach((e=>e.resetManager()))}tryResetCursor(){const e=this.gestureHandler.config;e.activeCursor&&"auto"!==e.activeCursor&&this.gestureHandler.state===l.ACTIVE&&(this.view.style.cursor="auto")}shouldDisableContextMenu(e){return void 0===e.enableContextMenu&&this.gestureHandler.isButtonInConfig(re.RIGHT)||!1===e.enableContextMenu}addContextMenuListeners(e){this.shouldDisableContextMenu(e)?this.view.addEventListener("contextmenu",this.disableContextMenu):e.enableContextMenu&&this.view.addEventListener("contextmenu",this.enableContextMenu)}removeContextMenuListeners(e){this.shouldDisableContextMenu(e)?this.view.removeEventListener("contextmenu",this.disableContextMenu):e.enableContextMenu&&this.view.removeEventListener("contextmenu",this.enableContextMenu)}disableContextMenu(e){e.preventDefault()}enableContextMenu(e){e.stopPropagation()}setUserSelect(e){const{userSelect:t}=this.gestureHandler.config;this.view.style.userSelect=e?null!=t?t:"none":this.defaultViewStyles.userSelect,this.view.style.webkitUserSelect=e?null!=t?t:"none":this.defaultViewStyles.userSelect}setTouchAction(e){const{touchAction:t}=this.gestureHandler.config;this.view.style.touchAction=e?null!=t?t:"none":this.defaultViewStyles.touchAction,this.view.style.WebkitTouchCallout=e?null!=t?t:"none":this.defaultViewStyles.touchAction}setContextMenu(e){const t=this.gestureHandler.config;e?this.addContextMenuListeners(t):this.removeContextMenuListeners(t)}onEnabledChange(e){this.isInitialized&&(this.setUserSelect(e),this.setTouchAction(e),this.setContextMenu(e),e?this.eventManagers.forEach((e=>{e.registerListeners()})):this.eventManagers.forEach((e=>{e.unregisterListeners()})))}onBegin(){}onActivate(){const e=this.gestureHandler.config;this.view.style.cursor&&"auto"!==this.view.style.cursor||!e.activeCursor||(this.view.style.cursor=e.activeCursor)}onEnd(){this.tryResetCursor()}onCancel(){this.tryResetCursor()}onFail(){this.tryResetCursor()}destroy(e){this.removeContextMenuListeners(e),this.eventManagers.forEach((e=>{e.unregisterListeners()}))}get view(){return this._view}set view(e){this._view=e}}let hr=!1;const dr={handleSetJSResponder(e,t){console.warn("handleSetJSResponder: ",e,t)},handleClearJSResponder(){console.warn("handleClearJSResponder: ")},createGestureHandler(e,t,n){if(D()){if(!(e in Jn))throw new Error(`react-native-gesture-handler: ${e} is not supported on web.`);const r=Jn[e];C.createGestureHandler(t,new r(new ur)),$.instance.configureInteractions(C.getHandler(t),n)}else{if(!(e in Zn))throw new Error(`react-native-gesture-handler: ${e} is not supported on web.`);!function(e,t){if(e in Cn)throw new Error(`Handler with tag ${e} already exists`);Cn[e]=t,Cn[e].handlerTag=e}(t,new(0,Zn[e]))}this.updateGestureHandler(t,n)},attachGestureHandler(e,t,n,r){if(!(t instanceof Element||t instanceof u.Component)){hr=!0;const t=(D()?C.getHandler(e):Sn(e)).constructor.name;throw new Error(`${t} with tag ${e} received child that is not valid HTML element.`)}D()?C.getHandler(e).init(t,r):Sn(e).setView(t,r)},updateGestureHandler(e,t){D()?(C.getHandler(e).updateGestureConfig(t),$.instance.configureInteractions(C.getHandler(e),t)):Sn(e).updateGestureConfig(t)},getGestureHandlerNode:e=>D()?C.getHandler(e):Sn(e),dropGestureHandler(e){hr||(D()?C.dropGestureHandler(e):function(e){e in Cn&&(Sn(e).destroy(),delete Cn[e])}(e))},flushOperations(){}};var fr=__webpack_require__(43999),pr=(__webpack_require__(4146),__webpack_require__(9176));const mr=u.createContext(!1),gr=["style"];function yr(){return yr=Object.assign||function(e){for(var t=1;te)).filter((e=>e));var t}let Er=!1;function kr(){Er||(Er=!0,En((()=>{dr.flushOperations(),Er=!1})))}function Tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ir{static addMountListener(e){return this.mountListeners.add(e),()=>{this.mountListeners.delete(e)}}static addUnmountListener(e){return this.unmountListeners.add(e),()=>{this.unmountListeners.delete(e)}}static gestureHandlerWillMount(e){this.mountListeners.forEach((t=>t(e)))}static gestureHandlerWillUnmount(e){this.unmountListeners.forEach((t=>t(e)))}static gestureWillMount(e){this.mountListeners.forEach((t=>t(e)))}static gestureWillUnmount(e){this.unmountListeners.forEach((t=>t(e)))}}var Or;function Rr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Tr(Ir,"mountListeners",new Set),Tr(Ir,"unmountListeners",new Set);const Mr=Ar.A,Pr=Object.assign({onGestureHandlerEvent:{registrationName:"onGestureHandlerEvent"},onGestureHandlerStateChange:{registrationName:"onGestureHandlerStateChange"}},p()&&!1);Mr.genericDirectEventTypes=Object.assign({},Mr.genericDirectEventTypes,Pr);const Dr=null===(Or=Mr.getViewManagerConfig)||void 0===Or?void 0:Or.call(Mr,"getConstants");Dr&&(Dr.genericDirectEventTypes=Object.assign({},Dr.genericDirectEventTypes,Pr));const{setJSResponder:jr=()=>{},clearJSResponder:Br=()=>{}}=Mr;Mr.setJSResponder=(e,t)=>{dr.handleSetJSResponder(e,t),jr(e,t)},Mr.clearJSResponder=()=>{dr.handleClearJSResponder(),Br()};function Lr(e){const t=e=>Array.isArray(e)?e.some((e=>e&&null===e.current)):e&&null===e.current;return t(e.simultaneousHandlers)||t(e.waitFor)}const Fr={[l.UNDETERMINED]:void 0,[l.BEGAN]:"onBegan",[l.FAILED]:"onFailed",[l.CANCELLED]:"onCancelled",[l.ACTIVE]:"onActivated",[l.END]:"onEnded"};function Nr({name:e,allowedProps:t=[],config:n={},transformProps:r,customNativeProps:i=[]}){class o extends u.Component{constructor(t){if(super(t),Rr(this,"handlerTag",-1),Rr(this,"config",void 0),Rr(this,"propsRef",void 0),Rr(this,"isMountedRef",void 0),Rr(this,"viewNode",void 0),Rr(this,"viewTag",void 0),Rr(this,"inspectorToggleListener",void 0),Rr(this,"onGestureHandlerEvent",(e=>{var t,n,r,i;e.nativeEvent.handlerTag===this.handlerTag?"function"==typeof this.props.onGestureEvent&&(null===(t=(n=this.props).onGestureEvent)||void 0===t||t.call(n,e)):null===(r=(i=this.props).onGestureHandlerEvent)||void 0===r||r.call(i,e)})),Rr(this,"onGestureHandlerStateChange",(e=>{if(e.nativeEvent.handlerTag===this.handlerTag){var t,n;"function"==typeof this.props.onHandlerStateChange&&(null===(t=(n=this.props).onHandlerStateChange)||void 0===t||t.call(n,e));const r=e.nativeEvent.state,i=Fr[r],o=i&&this.props[i];o&&"function"==typeof o&&o(e)}else{var r,i;null===(r=(i=this.props).onGestureHandlerStateChange)||void 0===r||r.call(i,e)}})),Rr(this,"refHandler",(e=>{var t;this.viewNode=e;const n=u.Children.only(this.props.children),r=u.version.startsWith("19.")?null===(t=n.props)||void 0===t?void 0:t.ref:null==n?void 0:n.ref;r&&("function"==typeof r?r(e):r.current=e)})),Rr(this,"createGestureHandler",(t=>{this.handlerTag=wr(),this.config=t,dr.createGestureHandler(e,this.handlerTag,t)})),Rr(this,"attachGestureHandler",(e=>{this.viewTag=e,dr.attachGestureHandler(this.handlerTag,e,3,this.propsRef),kr(),En((()=>{Ir.gestureHandlerWillMount(this)}))})),Rr(this,"updateGestureHandler",(e=>{this.config=e,dr.updateGestureHandler(this.handlerTag,e),kr()})),this.config={},this.propsRef=u.createRef(),this.isMountedRef=u.createRef(),this.state={allowTouches:true},t.id){if(void 0!==y[t.id])throw new Error(`Handler with ID "${t.id}" already registered`);y[t.id]=this.handlerTag}}componentDidMount(){const e=this.props;if(this.isMountedRef.current=!0,Lr(e)&&En((()=>{this.update(1)})),this.createGestureHandler(Cr(r?r(this.props):this.props,[...t,...i],n)),!this.viewNode)throw new Error(`[Gesture Handler] Failed to obtain view for ${o.displayName}. Note that old API doesn't support functional components.`);this.attachGestureHandler($n(this.viewNode))}componentDidUpdate(){const e=$n(this.viewNode);this.viewTag!==e&&this.attachGestureHandler(e),this.update(1)}componentWillUnmount(){var e;null===(e=this.inspectorToggleListener)||void 0===e||e.remove(),this.isMountedRef.current=!1,dr.dropGestureHandler(this.handlerTag),kr();const t=this.props.id;t&&delete y[t],Ir.gestureHandlerWillUnmount(this)}update(e){if(this.isMountedRef.current)if(Lr(this.props)&&e>0)En((()=>{this.update(e-1)}));else{const e=Cr(r?r(this.props):this.props,[...t,...i],n);m(this.config,e)||this.updateGestureHandler(e)}}setNativeProps(e){const o=Object.assign({},this.props,e),a=Cr(r?r(o):o,[...t,...i],n);this.updateGestureHandler(a)}render(){var t;let n=this.onGestureHandlerEvent;const{onGestureEvent:r,onGestureHandlerEvent:i}=this.props;if(r&&"function"!=typeof r){if(i)throw new Error("Nesting touch handlers with native animated driver is not supported yet");n=r}else if(i&&"function"!=typeof i)throw new Error("Nesting touch handlers with native animated driver is not supported yet");let o=this.onGestureHandlerStateChange;const{onHandlerStateChange:a,onGestureHandlerStateChange:s}=this.props;if(a&&"function"!=typeof a){if(s)throw new Error("Nesting touch handlers with native animated driver is not supported yet");o=a}else if(s&&"function"!=typeof s)throw new Error("Nesting touch handlers with native animated driver is not supported yet");const l={onGestureHandlerEvent:this.state.allowTouches?n:void 0,onGestureHandlerStateChange:this.state.allowTouches?o:void 0};this.propsRef.current=l;let c=null;try{c=u.Children.only(this.props.children)}catch(t){throw new Error(f(`${e} got more than one view as a child. If you want the gesture to work on multiple views, wrap them with a common parent and attach the gesture to that view.`))}let h=c.props.children;return u.cloneElement(c,Object.assign({ref:this.refHandler,collapsable:!1},d()?{handlerType:e,handlerTag:this.handlerTag,enabled:this.props.enabled}:{},{testID:null!==(t=this.props.testID)&&void 0!==t?t:c.props.testID},l),h)}}return Rr(o,"displayName",e),Rr(o,"contextType",mr),o}const _r=["maxDurationMs","maxDelayMs","numberOfTaps","maxDeltaX","maxDeltaY","maxDist","minPointers"],zr=Nr({name:"TapGestureHandler",allowedProps:[...te,..._r],config:{shouldCancelWhenOutside:!0}}),Vr={get forceTouchAvailable(){return!1}},Ur=["minForce","maxForce","feedbackOnActivation"];class Hr extends u.Component{componentDidMount(){console.warn(f("ForceTouchGestureHandler is not available on this platform. Please use ForceTouchGestureHandler.forceTouchAvailable to conditionally render other components that would provide a fallback behavior specific to your usecase"))}render(){return this.props.children}}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(Hr,"forceTouchAvailable",!1),(null!=Vr&&Vr.forceTouchAvailable?Nr({name:"ForceTouchGestureHandler",allowedProps:[...te,...Ur],config:{}}):Hr).forceTouchAvailable=(null==Vr?void 0:Vr.forceTouchAvailable)||!1;const qr=["minDurationMs","maxDist","numberOfPointers"],Gr=(Nr({name:"LongPressGestureHandler",allowedProps:[...te,...qr],config:{shouldCancelWhenOutside:!0}}),["activeOffsetY","activeOffsetX","failOffsetY","failOffsetX","minDist","minVelocity","minVelocityX","minVelocityY","minPointers","maxPointers","avgTouches","enableTrackpadTwoFingerGesture","activateAfterLongPress"]),Yr=["activeOffsetYStart","activeOffsetYEnd","activeOffsetXStart","activeOffsetXEnd","failOffsetYStart","failOffsetYEnd","failOffsetXStart","failOffsetXEnd"],Wr=Nr({name:"PanGestureHandler",allowedProps:[...te,...Gr],config:{},transformProps:function(e){return function(e){const t=Object.assign({},e);return void 0!==e.activeOffsetX&&(delete t.activeOffsetX,Array.isArray(e.activeOffsetX)?(t.activeOffsetXStart=e.activeOffsetX[0],t.activeOffsetXEnd=e.activeOffsetX[1]):e.activeOffsetX<0?t.activeOffsetXStart=e.activeOffsetX:t.activeOffsetXEnd=e.activeOffsetX),void 0!==e.activeOffsetY&&(delete t.activeOffsetY,Array.isArray(e.activeOffsetY)?(t.activeOffsetYStart=e.activeOffsetY[0],t.activeOffsetYEnd=e.activeOffsetY[1]):e.activeOffsetY<0?t.activeOffsetYStart=e.activeOffsetY:t.activeOffsetYEnd=e.activeOffsetY),void 0!==e.failOffsetX&&(delete t.failOffsetX,Array.isArray(e.failOffsetX)?(t.failOffsetXStart=e.failOffsetX[0],t.failOffsetXEnd=e.failOffsetX[1]):e.failOffsetX<0?t.failOffsetXStart=e.failOffsetX:t.failOffsetXEnd=e.failOffsetX),void 0!==e.failOffsetY&&(delete t.failOffsetY,Array.isArray(e.failOffsetY)?(t.failOffsetYStart=e.failOffsetY[0],t.failOffsetYEnd=e.failOffsetY[1]):e.failOffsetY<0?t.failOffsetYStart=e.failOffsetY:t.failOffsetYEnd=e.failOffsetY),t}(e)},customNativeProps:Yr});Nr({name:"PinchGestureHandler",allowedProps:te,config:{}}),Nr({name:"RotationGestureHandler",allowedProps:te,config:{}});const Qr=["numberOfPointers","direction"],Xr=(Nr({name:"FlingGestureHandler",allowedProps:[...te,...Qr],config:{}}),["shouldActivateOnStart","disallowInterruption"]),Jr=[...te,...Xr],Zr=Nr({name:"NativeViewGestureHandler",allowedProps:Jr,config:{}});function Kr(){return Kr=Object.assign||function(e){for(var t=1;t{const{gestureHandlerProps:i,childProps:o}=Object.keys(n).reduce(((e,t)=>($r.includes(t)?e.gestureHandlerProps[t]=n[t]:e.childProps[t]=n[t],e)),{gestureHandlerProps:Object.assign({},t),childProps:{enabled:n.enabled,hitSlop:n.hitSlop,testID:n.testID}}),a=(0,u.useRef)(null),s=(0,u.useRef)(null);return(0,u.useImperativeHandle)(r,(()=>{const e=s.current;return a.current&&e?(a.current.handlerTag=e.handlerTag,a.current):null}),[a,s]),u.createElement(Zr,Kr({},i,{ref:s}),u.createElement(e,Kr({},o,{ref:a})))}));return r.displayName=(null==e?void 0:e.displayName)||(null==e||null===(n=e.render)||void 0===n?void 0:n.name)||"string"==typeof e&&e||"ComponentWrapper",r}function ti(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ni={UNDEFINED:0,BEGAN:1,START:2,UPDATE:3,CHANGE:4,END:5,FINALIZE:6,TOUCHES_DOWN:7,TOUCHES_MOVE:8,TOUCHES_UP:9,TOUCHES_CANCELLED:10};class ri{}let ii=0;class oi extends ri{constructor(){super(),ti(this,"gestureId",-1),ti(this,"handlerTag",-1),ti(this,"handlerName",""),ti(this,"config",{}),ti(this,"handlers",{gestureId:-1,handlerTag:-1,isWorklet:[]}),this.gestureId=ii++,this.handlers.gestureId=this.gestureId}addDependency(e,t){const n=this.config[e];this.config[e]=n?Array().concat(n,t):[t]}withRef(e){return this.config.ref=e,this}isWorklet(e){return void 0!==e.__workletHash}onBegin(e){return this.handlers.onBegin=e,this.handlers.isWorklet[ni.BEGAN]=this.isWorklet(e),this}onStart(e){return this.handlers.onStart=e,this.handlers.isWorklet[ni.START]=this.isWorklet(e),this}onEnd(e){return this.handlers.onEnd=e,this.handlers.isWorklet[ni.END]=this.isWorklet(e),this}onFinalize(e){return this.handlers.onFinalize=e,this.handlers.isWorklet[ni.FINALIZE]=this.isWorklet(e),this}onTouchesDown(e){return this.config.needsPointerData=!0,this.handlers.onTouchesDown=e,this.handlers.isWorklet[ni.TOUCHES_DOWN]=this.isWorklet(e),this}onTouchesMove(e){return this.config.needsPointerData=!0,this.handlers.onTouchesMove=e,this.handlers.isWorklet[ni.TOUCHES_MOVE]=this.isWorklet(e),this}onTouchesUp(e){return this.config.needsPointerData=!0,this.handlers.onTouchesUp=e,this.handlers.isWorklet[ni.TOUCHES_UP]=this.isWorklet(e),this}onTouchesCancelled(e){return this.config.needsPointerData=!0,this.handlers.onTouchesCancelled=e,this.handlers.isWorklet[ni.TOUCHES_CANCELLED]=this.isWorklet(e),this}enabled(e){return this.config.enabled=e,this}shouldCancelWhenOutside(e){return this.config.shouldCancelWhenOutside=e,this}hitSlop(e){return this.config.hitSlop=e,this}activeCursor(e){return this.config.activeCursor=e,this}mouseButton(e){return this.config.mouseButton=e,this}runOnJS(e){return this.config.runOnJS=e,this}simultaneousWithExternalGesture(...e){for(const t of e)this.addDependency("simultaneousWith",t);return this}requireExternalGestureToFail(...e){for(const t of e)this.addDependency("requireToFail",t);return this}blocksExternalGesture(...e){for(const t of e)this.addDependency("blocksHandlers",t);return this}withTestId(e){return this.config.testId=e,this}cancelsTouchesInView(e){return this.config.cancelsTouchesInView=e,this}initialize(){this.handlerTag=wr(),this.handlers=Object.assign({},this.handlers,{handlerTag:this.handlerTag}),this.config.ref&&(this.config.ref.current=this)}toGestureArray(){return[this]}prepare(){}get shouldUseReanimated(){return!0!==this.config.runOnJS&&!this.handlers.isWorklet.includes(!1)&&!function(){const e=__webpack_require__.g;return!(e.nativeCallSyncHook&&!e.__REMOTEDEV__||e.RN$Bridgeless)}()}}class ai extends oi{onUpdate(e){return this.handlers.onUpdate=e,this.handlers.isWorklet[ni.UPDATE]=this.isWorklet(e),this}onChange(e){return this.handlers.onChange=e,this.handlers.isWorklet[ni.CHANGE]=this.isWorklet(e),this}manualActivation(e){return this.config.manualActivation=e,this}}var si;let li;try{li=__webpack_require__(42306)}catch(gOe){li=void 0}null!==(si=li)&&void 0!==si&&si.useSharedValue||(li=void 0);const ci={code:"function reactNativeGestureHandler_reanimatedWrapperJs1(){const{tagMessage}=this.__closure;console.warn(tagMessage('Please use newer version of react-native-reanimated in order to control state of the gestures.'));}"};void 0===li||li.setGestureState||(li.setGestureState=function(){const e=function(){console.warn(f("Please use newer version of react-native-reanimated in order to control state of the gestures."))};return e.__closure={tagMessage:f},e.__workletHash=7298969188432,e.__initData=ci,e}());const ui={code:"function getHandler_reactNativeGestureHandler_useAnimatedGestureJs1(type,gesture){const{CALLBACK_TYPE}=this.__closure;switch(type){case CALLBACK_TYPE.BEGAN:return gesture.onBegin;case CALLBACK_TYPE.START:return gesture.onStart;case CALLBACK_TYPE.UPDATE:return gesture.onUpdate;case CALLBACK_TYPE.CHANGE:return gesture.onChange;case CALLBACK_TYPE.END:return gesture.onEnd;case CALLBACK_TYPE.FINALIZE:return gesture.onFinalize;case CALLBACK_TYPE.TOUCHES_DOWN:return gesture.onTouchesDown;case CALLBACK_TYPE.TOUCHES_MOVE:return gesture.onTouchesMove;case CALLBACK_TYPE.TOUCHES_UP:return gesture.onTouchesUp;case CALLBACK_TYPE.TOUCHES_CANCELLED:return gesture.onTouchesCancelled;}}"},hi=function(){const e=function(e,t){switch(e){case ni.BEGAN:return t.onBegin;case ni.START:return t.onStart;case ni.UPDATE:return t.onUpdate;case ni.CHANGE:return t.onChange;case ni.END:return t.onEnd;case ni.FINALIZE:return t.onFinalize;case ni.TOUCHES_DOWN:return t.onTouchesDown;case ni.TOUCHES_MOVE:return t.onTouchesMove;case ni.TOUCHES_UP:return t.onTouchesUp;case ni.TOUCHES_CANCELLED:return t.onTouchesCancelled}};return e.__closure={CALLBACK_TYPE:ni},e.__workletHash=4317557963300,e.__initData=ui,e}(),di={code:"function touchEventTypeToCallbackType_reactNativeGestureHandler_useAnimatedGestureJs2(eventType){const{TouchEventType,CALLBACK_TYPE}=this.__closure;switch(eventType){case TouchEventType.TOUCHES_DOWN:return CALLBACK_TYPE.TOUCHES_DOWN;case TouchEventType.TOUCHES_MOVE:return CALLBACK_TYPE.TOUCHES_MOVE;case TouchEventType.TOUCHES_UP:return CALLBACK_TYPE.TOUCHES_UP;case TouchEventType.TOUCHES_CANCELLED:return CALLBACK_TYPE.TOUCHES_CANCELLED;}return CALLBACK_TYPE.UNDEFINED;}"},fi=function(){const e=function(e){switch(e){case c.TOUCHES_DOWN:return ni.TOUCHES_DOWN;case c.TOUCHES_MOVE:return ni.TOUCHES_MOVE;case c.TOUCHES_UP:return ni.TOUCHES_UP;case c.TOUCHES_CANCELLED:return ni.TOUCHES_CANCELLED}return ni.UNDEFINED};return e.__closure={TouchEventType:c,CALLBACK_TYPE:ni},e.__workletHash=2039840524711,e.__initData=di,e}(),pi={code:"function runWorklet_reactNativeGestureHandler_useAnimatedGestureJs3(type,gesture,event,...args){const{getHandler,tagMessage}=this.__closure;const handler=getHandler(type,gesture);if(gesture.isWorklet[type]){handler===null||handler===void 0?void 0:handler(event,...args);}else if(handler){console.warn(tagMessage('Animated gesture callback must be a worklet'));}}"},mi=function(){const e=function(e,t,n,...r){const i=hi(e,t);t.isWorklet[e]?null==i||i(n,...r):i&&console.warn(f("Animated gesture callback must be a worklet"))};return e.__closure={getHandler:hi,tagMessage:f},e.__workletHash=0xfd590d2cb89,e.__initData=pi,e}(),gi={code:"function isStateChangeEvent_reactNativeGestureHandler_useAnimatedGestureJs4(event){return event.oldState!=null;}"},yi=function(){const e=function(e){return null!=e.oldState};return e.__closure={},e.__workletHash=7889847699524,e.__initData=gi,e}(),vi={code:"function isTouchEvent_reactNativeGestureHandler_useAnimatedGestureJs5(event){return event.eventType!=null;}"},bi=function(){const e=function(e){return null!=e.eventType};return e.__closure={},e.__workletHash=0xbe72c4143d5,e.__initData=vi,e}(),Ai={code:"function reactNativeGestureHandler_useAnimatedGestureJs6(event){const{sharedHandlersCallbacks,isStateChangeEvent,State,runWorklet,CALLBACK_TYPE,lastUpdateEvent,isTouchEvent,stateControllers,GestureStateManager,TouchEventType,touchEventTypeToCallbackType}=this.__closure;const currentCallback=sharedHandlersCallbacks.value;if(!currentCallback){return;}for(let i=0;ie>0)))&&void 0!==t?t:[]}function Ii(e){return{waitFor:Ti(e.config.requireToFail),simultaneousHandlers:Ti(e.config.simultaneousWith),blocksHandlers:Ti(e.config.blocksHandlers)}}function Oi({preparedGesture:e,gestureConfig:t,gesturesToAttach:n,viewTag:r,webEventHandlersRef:i}){t.initialize(),En((()=>{e.isMounted&&t.prepare()}));for(const e of n)dr.createGestureHandler(e.handlerName,e.handlerTag,Cr(e.config,Ei)),x(e.handlerTag,e,e.config.testId);En((()=>{if(e.isMounted){for(const e of n)dr.updateGestureHandler(e.handlerTag,Cr(e.config,Ei,Ii(e)));kr()}}));for(const e of n)e.shouldUseReanimated,dr.attachGestureHandler(e.handlerTag,r,3,i),Ir.gestureWillMount(e);if(e.attachedGestures=n,e.animatedHandlers){const t=e=>e.shouldUseReanimated;e.animatedHandlers.value=n.filter(t).map((e=>e.handlers))}}function Ri(e,t){if(t.length!==e.attachedGestures.length)return!0;for(let n=0;n{try{const a=u.Children.only(e);return null!==(r=(n=a).ref)&&void 0!==r&&r.rngh||"WebShape"!==(null===(i=Object.getPrototypeOf(null==n?void 0:n.type))||void 0===i?void 0:i.name)&&!Re.has(null==n||null===(o=n.type)||void 0===o?void 0:o.displayName)?u.createElement("div",{ref:t,style:{display:"contents"}},a):u.cloneElement(a,{ref:t},a.props.children)}catch(e){throw new Error(f("GestureDetector got more than one view as a child. If you want the gesture to work on multiple views, wrap them with a common parent and attach the gesture to that view."))}var n,r,i,o})),Di=Pi;function ji(e,t){if(void 0===e)return!1;for(const n of Sr(e))if(n===t.handlerTag)return!0;return!1}const Bi=e=>{(0,u.useContext)(mr);const t=e.gesture;!function(e,t){const n=["userSelect","enableContextMenu","touchAction"];for(const r of n){const n=e[r];if(void 0!==n)for(const e of t.toGestureArray())e.config[r]=n}}(e,t);const n=(0,u.useMemo)((()=>t.toGestureArray()),[t]),r=n.some((e=>e.shouldUseReanimated)),i=(0,u.useRef)({onGestureHandlerEvent:e=>{R(e.nativeEvent)},onGestureHandlerStateChange:D()?e=>{R(e.nativeEvent)}:void 0}),o=(0,u.useRef)({firstRender:!0,viewRef:null,previousViewTag:-1,forceRebuildReanimatedEvent:!1}).current,a=u.useRef({attachedGestures:[],animatedEventHandler:null,animatedHandlers:null,shouldUseReanimated:r,isMounted:!1}).current,s=function(e,t,n,r,i){const o=function(){const[e,t]=(0,u.useState)(!1);return(0,u.useCallback)((()=>{t(!e)}),[e,t])}(),a=(0,u.useCallback)((a=>{const s=$n(e.viewRef),l=s!==e.previousViewTag;l||Ri(t,n)?(e.viewRef,Mi(t),Oi({preparedGesture:t,gestureConfig:r,gesturesToAttach:n,webEventHandlersRef:i,viewTag:s}),l&&(e.previousViewTag=s,e.forceRebuildReanimatedEvent=!0,o())):a||function(e,t,n){t.prepare();for(let t=0;t{if(!e.isMounted)return;if(r!==e.attachedGestures)return;let t=r.length!==n.length;for(let e=0;ee.shouldUseReanimated)).map((e=>e.handlers));e.animatedHandlers.value=t}kr()}))}(t,r,n)}),[o,r,n,t,e,i]);return a}(o,a,n,t,i),h=function(e,t){const n=(0,u.useCallback)((n=>{null!==n&&(e.viewRef=n,-1===e.previousViewTag&&(e.previousViewTag=$n(e.viewRef)),e.firstRender||t(!0))}),[e,t]);return n}(o,s),d=o.firstRender||o.forceRebuildReanimatedEvent||Ri(a,n);return o.forceRebuildReanimatedEvent=!1,function(e,t){if(!li)return;const n=li.useSharedValue(null),r=li.useSharedValue([]),i=[],o=function(){const e=function(e){const t=n.value;if(t)for(let n=0;n{const e=$n(o.viewRef);return a.isMounted=!0,Oi({preparedGesture:a,gestureConfig:t,gesturesToAttach:n,webEventHandlersRef:i,viewTag:e}),()=>{a.isMounted=!1,Mi(a)}}),[]),(0,u.useEffect)((()=>{o.firstRender?o.firstRender=!1:s()}),[e]),function(e,t){(0,u.useEffect)((()=>Ir.addMountListener((n=>{for(const r of t.attachedGestures){const t=r.config.blocksHandlers,i=r.config.requireToFail,o=r.config.simultaneousWith;if(ji(t,n)||ji(i,n)||ji(o,n))return void e()}}))),[e,t])}(s,a),r?u.createElement(Di,{ref:h,onGestureHandlerEvent:a.animatedEventHandler},e.children):u.createElement(Pi,{ref:h},e.children)};class Li extends oi{constructor(){super(),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"config",{}),this.handlerName="FlingGestureHandler"}numberOfPointers(e){return this.config.numberOfPointers=e,this}direction(e){return this.config.direction=e,this}}const Fi={code:"function changeEventCalculator_reactNativeGestureHandler_forceTouchGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={forceChange:current.force};}else{changePayload={forceChange:current.force-previous.force};}return{...current,...changePayload};}"};!function(){const e=function(e,t){let n;return n=void 0===t?{forceChange:e.force}:{forceChange:e.force-t.force},Object.assign({},e,n)};e.__closure={},e.__workletHash=6555184671956,e.__initData=Fi}();function Ni(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _i(e,t){return void 0===e?[...t]:[...e,...t]}class zi extends ri{constructor(...e){super(),Ni(this,"gestures",[]),Ni(this,"simultaneousGestures",[]),Ni(this,"requireGesturesToFail",[]),this.gestures=e}prepareSingleGesture(e,t,n){if(e instanceof oi){const r=Object.assign({},e.config);r.simultaneousWith=_i(r.simultaneousWith,t),r.requireToFail=_i(r.requireToFail,n),e.config=r}else e instanceof zi&&(e.simultaneousGestures=t,e.requireGesturesToFail=n,e.prepare())}prepare(){for(const e of this.gestures)this.prepareSingleGesture(e,this.simultaneousGestures,this.requireGesturesToFail)}initialize(){for(const e of this.gestures)e.initialize()}toGestureArray(){return this.gestures.flatMap((e=>e.toGestureArray()))}}class Vi extends zi{prepare(){const e=this.gestures.map((e=>this.gestures.filter((t=>t!==e)).flatMap((e=>e.toGestureArray()))));for(let t=0;te.toGestureArray()));let t=[];for(let n=0;nnew Zi,to=()=>new Yi,no=()=>new Xi,ro=()=>new Li,io=()=>new Hi,oo=()=>new Ki,ao=()=>new Si,so=(...e)=>new zi(...e),lo=(...e)=>new Vi(...e),co=(...e)=>new Ui(...e);var uo=__webpack_require__(94678),ho=__webpack_require__(2901);function fo(){return fo=Object.assign||function(e){for(var t=1;tu.createElement(pr.A,fo({ref:t,accessibilityRole:"button"},e)))),mo=["rippleColor","style"],go=["children","style"],yo=["children","style","innerRef"];function vo(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function bo(){return bo=Object.assign||function(e){for(var t=1;t{const{state:t,oldState:n,pointerInside:r}=e,i=r&&t===l.ACTIVE;i!==this.lastActive&&this.props.onActiveStateChange&&this.props.onActiveStateChange(i),!this.longPressDetected&&n===l.ACTIVE&&t!==l.CANCELLED&&this.lastActive&&this.props.onPress&&this.props.onPress(r),!this.lastActive&&t===l.ACTIVE&&r?(this.longPressDetected=!1,this.props.onLongPress&&(this.longPressTimeout=setTimeout(this.onLongPress,this.props.delayLongPress))):(t!==l.ACTIVE||r||void 0===this.longPressTimeout)&&(void 0===this.longPressTimeout||t!==l.END&&t!==l.CANCELLED&&t!==l.FAILED)||(clearTimeout(this.longPressTimeout),this.longPressTimeout=void 0),this.lastActive=i})),Ao(this,"onLongPress",(()=>{var e,t;this.longPressDetected=!0,null===(e=(t=this.props).onLongPress)||void 0===e||e.call(t)})),Ao(this,"onHandlerStateChange",(e=>{var t,n;null===(t=(n=this.props).onHandlerStateChange)||void 0===t||t.call(n,e),this.handleEvent(e)})),Ao(this,"onGestureEvent",(e=>{var t,n;null===(t=(n=this.props).onGestureEvent)||void 0===t||t.call(n,e),this.handleEvent(e)})),this.lastActive=!1,this.longPressDetected=!1}render(){const e=this.props,{rippleColor:t,style:n}=e,r=vo(e,mo);null===wo&&(wo=p());const i=wo?t:(0,ho.A)(null!=t?t:void 0);return u.createElement(xo,bo({ref:this.props.innerRef,rippleColor:i,style:[n,!1]},r,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange}))}}Ao(Co,"defaultProps",{delayLongPress:600});const So=uo.A.createAnimatedComponent(Co),Eo=u.forwardRef(((e,t)=>u.createElement(Co,bo({innerRef:t},e)))),ko=u.forwardRef(((e,t)=>u.createElement(So,bo({innerRef:t},e)))),To=fr.A.create({underlay:{position:"absolute",left:0,right:0,bottom:0,top:0}});class Io extends u.Component{constructor(e){super(e),Ao(this,"opacity",void 0),Ao(this,"onActiveStateChange",(e=>{var t,n;this.opacity.setValue(e?this.props.activeOpacity:0),null===(t=(n=this.props).onActiveStateChange)||void 0===t||t.call(n,e)})),this.opacity=new uo.A.Value(0)}render(){const e=this.props,{children:t,style:n}=e,r=vo(e,go),i=fr.A.flatten(null!=n?n:{});return u.createElement(Eo,bo({},r,{ref:this.props.innerRef,style:i,onActiveStateChange:this.onActiveStateChange}),u.createElement(uo.A.View,{style:[To.underlay,{opacity:this.opacity,backgroundColor:this.props.underlayColor,borderRadius:i.borderRadius,borderTopLeftRadius:i.borderTopLeftRadius,borderTopRightRadius:i.borderTopRightRadius,borderBottomLeftRadius:i.borderBottomLeftRadius,borderBottomRightRadius:i.borderBottomRightRadius}]}),t)}}Ao(Io,"defaultProps",{activeOpacity:.105,underlayColor:"black"}),u.forwardRef(((e,t)=>u.createElement(Io,bo({innerRef:t},e))));class Oo extends u.Component{constructor(e){super(e),Ao(this,"opacity",void 0),Ao(this,"onActiveStateChange",(e=>{var t,n;this.opacity.setValue(e?this.props.activeOpacity:1),null===(t=(n=this.props).onActiveStateChange)||void 0===t||t.call(n,e)})),this.opacity=new uo.A.Value(1)}render(){const e=this.props,{children:t,style:n,innerRef:r}=e,i=vo(e,yo);return u.createElement(ko,bo({},i,{innerRef:r,onActiveStateChange:this.onActiveStateChange,style:[n,!1]}),t)}}function Ro(){return Ro=Object.assign||function(e){for(var t=1;tu.createElement(Oo,bo({innerRef:t},e))));class Po extends u.Component{constructor(...e){super(...e),Mo(this,"pressInTimeout",void 0),Mo(this,"pressOutTimeout",void 0),Mo(this,"longPressTimeout",void 0),Mo(this,"longPressDetected",!1),Mo(this,"pointerInside",!0),Mo(this,"STATE",0),Mo(this,"onGestureEvent",(({nativeEvent:{pointerInside:e}})=>{this.pointerInside!==e&&(e?this.onMoveIn():this.onMoveOut()),this.pointerInside=e})),Mo(this,"onHandlerStateChange",(({nativeEvent:e})=>{const{state:t}=e;if(t===l.CANCELLED||t===l.FAILED)this.moveToState(0);else if(t===l.ACTIVE&&0===this.STATE)this.handlePressIn();else if(t===l.END){const e=!this.longPressDetected&&2!==this.STATE&&null===this.pressOutTimeout;var n,r;this.handleGoToUndetermined(),e&&(null===(n=(r=this.props).onPress)||void 0===n||n.call(r))}})),Mo(this,"onLongPressDetected",(()=>{var e,t;this.longPressDetected=!0,null===(e=(t=this.props).onLongPress)||void 0===e||e.call(t)}))}handlePressIn(){if(this.props.delayPressIn?this.pressInTimeout=setTimeout((()=>{this.moveToState(1),this.pressInTimeout=null}),this.props.delayPressIn):this.moveToState(1),this.props.onLongPress){const e=(this.props.delayPressIn||0)+(this.props.delayLongPress||0);this.longPressTimeout=setTimeout(this.onLongPressDetected,e)}}handleMoveOutside(){this.props.delayPressOut?this.pressOutTimeout=this.pressOutTimeout||setTimeout((()=>{this.moveToState(2),this.pressOutTimeout=null}),this.props.delayPressOut):this.moveToState(2)}handleGoToUndetermined(){clearTimeout(this.pressOutTimeout),this.props.delayPressOut?this.pressOutTimeout=setTimeout((()=>{0===this.STATE&&this.moveToState(1),this.moveToState(0),this.pressOutTimeout=null}),this.props.delayPressOut):(0===this.STATE&&this.moveToState(1),this.moveToState(0))}componentDidMount(){this.reset()}reset(){this.longPressDetected=!1,this.pointerInside=!0,clearTimeout(this.pressInTimeout),clearTimeout(this.pressOutTimeout),clearTimeout(this.longPressTimeout),this.pressOutTimeout=null,this.longPressTimeout=null,this.pressInTimeout=null}moveToState(e){var t,n;if(e!==this.STATE){var r,i;if(1===e)null===(r=(i=this.props).onPressIn)||void 0===r||r.call(i);else if(2===e){var o,a;null===(o=(a=this.props).onPressOut)||void 0===o||o.call(a)}else if(0===e){var s,l;this.reset(),1===this.STATE&&(null===(s=(l=this.props).onPressOut)||void 0===s||s.call(l))}null===(t=(n=this.props).onStateChange)||void 0===t||t.call(n,this.STATE,e),this.STATE=e}}componentWillUnmount(){this.reset()}onMoveIn(){2===this.STATE&&this.moveToState(1)}onMoveOut(){clearTimeout(this.longPressTimeout),this.longPressTimeout=null,1===this.STATE&&this.handleMoveOutside()}render(){var e,t;const n=null!==(e="number"==typeof this.props.hitSlop?{top:this.props.hitSlop,left:this.props.hitSlop,bottom:this.props.hitSlop,right:this.props.hitSlop}:this.props.hitSlop)&&void 0!==e?e:void 0,r={accessible:!1!==this.props.accessible,accessibilityLabel:this.props.accessibilityLabel,accessibilityHint:this.props.accessibilityHint,accessibilityRole:this.props.accessibilityRole,accessibilityState:this.props.accessibilityState,accessibilityActions:this.props.accessibilityActions,onAccessibilityAction:this.props.onAccessibilityAction,nativeID:this.props.nativeID,onLayout:this.props.onLayout};return u.createElement(Eo,Ro({style:this.props.containerStyle,onHandlerStateChange:this.props.disabled?void 0:this.onHandlerStateChange,onGestureEvent:this.onGestureEvent,hitSlop:n,userSelect:this.props.userSelect,shouldActivateOnStart:this.props.shouldActivateOnStart,disallowInterruption:this.props.disallowInterruption,testID:this.props.testID,touchSoundDisabled:null!==(t=this.props.touchSoundDisabled)&&void 0!==t&&t,enabled:!this.props.disabled},this.props.extraButtonProps),u.createElement(uo.A.View,Ro({},r,{style:this.props.style}),this.props.children))}}Mo(Po,"defaultProps",{delayLongPress:600,extraButtonProps:{rippleColor:"transparent",exclusive:!0}});const Do=["delayLongPress","extraButtonProps"];function jo(){return jo=Object.assign||function(e){for(var t=1;t{let{delayLongPress:n=600,extraButtonProps:r={rippleColor:"transparent",exclusive:!0}}=e,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,Do);return u.createElement(Po,jo({ref:t,delayLongPress:n,extraButtonProps:r},i))})),Lo=Bo;var Fo=__webpack_require__(96693);const No=["style"];function _o(){return _o=Object.assign||function(e){for(var t=1;t{const e=fr.A.flatten(this.props.style)||{};return null==e.opacity?1:e.opacity.valueOf()})),zo(this,"opacity",new uo.A.Value(this.getChildStyleOpacityWithDefault())),zo(this,"setOpacityTo",((e,t)=>{var n;uo.A.timing(this.opacity,{toValue:e,duration:t,easing:Fo.A.inOut(Fo.A.quad),useNativeDriver:null===(n=this.props.useNativeAnimations)||void 0===n||n}).start()})),zo(this,"onStateChange",((e,t)=>{1===t?this.setOpacityTo(this.props.activeOpacity,0):0!==t&&2!==t||this.setOpacityTo(this.getChildStyleOpacityWithDefault(),150)}))}render(){const e=this.props,{style:t={}}=e,n=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,No);return u.createElement(Po,_o({},n,{style:[t,{opacity:this.opacity}],onStateChange:this.onStateChange}),this.props.children?this.props.children:u.createElement(pr.A,null))}}zo(Vo,"defaultProps",Object.assign({},Po.defaultProps,{activeOpacity:.2}));const Uo=["style"];function Ho(){return Ho=Object.assign||function(e){for(var t=1;t{var e,t;this.hasPressHandler()&&(this.setState({extraChildStyle:{opacity:this.props.activeOpacity},extraUnderlayStyle:{backgroundColor:this.props.underlayColor}}),null===(e=(t=this.props).onShowUnderlay)||void 0===e||e.call(t))})),qo(this,"hasPressHandler",(()=>this.props.onPress||this.props.onPressIn||this.props.onPressOut||this.props.onLongPress)),qo(this,"hideUnderlay",(()=>{var e,t;this.setState({extraChildStyle:null,extraUnderlayStyle:null}),null===(e=(t=this.props).onHideUnderlay)||void 0===e||e.call(t)})),qo(this,"onStateChange",((e,t)=>{1===t?this.showUnderlay():0!==t&&2!==t||this.hideUnderlay()})),this.state={extraChildStyle:null,extraUnderlayStyle:null}}renderChildren(){if(!this.props.children)return u.createElement(pr.A,null);const e=u.Children.only(this.props.children);return u.cloneElement(e,{style:fr.A.compose(e.props.style,this.state.extraChildStyle)})}render(){const e=this.props,{style:t={}}=e,n=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,Uo),{extraUnderlayStyle:r}=this.state;return u.createElement(Po,Ho({},n,{style:[t,r],onStateChange:this.onStateChange}),this.renderChildren())}}qo(Go,"defaultProps",Object.assign({},Po.defaultProps,{activeOpacity:.85,delayPressOut:100,underlayColor:"black"}));var Yo=__webpack_require__(37043),Wo=__webpack_require__(15782),Qo=__webpack_require__(34951);function Xo(){return Xo=Object.assign||function(e){for(var t=1;tu.createElement(Kn.A,Xo({ref:t},e,{renderScrollComponent:e=>u.createElement(Jo,e)}))));var Ko=__webpack_require__(78506);const $o=["onPress","onLongPress"];function ea(){return ea=Object.assign||function(e){for(var t=1;t{const{onPress:n,onLongPress:r}=e,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,$o),o=(0,u.useRef)(null),a=oo().runOnJS(!0),s=e=>{o.current=e,null!==t&&("function"==typeof t?t(e):t.current=e)};return s.rngh=!0,(0,u.useEffect)((()=>{const e=t?t.current:o.current;null==e||e.setAttribute("rnghtext","true")}),[]),n||r?u.createElement(Bi,{gesture:a},u.createElement(Ko.A,ea({onPress:n,onLongPress:r,ref:s},i))):u.createElement(Ko.A,ea({ref:t},i))}));var ta=__webpack_require__(95784);function na(){return na=Object.assign||function(e){for(var t=1;t{const{friction:n,overshootFriction:r}=e,{dragX:i,rowTranslation:o,leftWidth:a=0,rowWidth:s=0}=t,{rightOffset:l=s}=t,c=Math.max(0,s-l),{overshootLeft:u=a>0,overshootRight:h=c>0}=e,d=uo.A.add(o,i.interpolate({inputRange:[0,n],outputRange:[0,1]})).interpolate({inputRange:[-c-1,-c,a,a+1],outputRange:[-c-(h?1/r:0),-c,a,a+(u?1/r:0)]});this.transX=d,this.showLeftAction=a>0?d.interpolate({inputRange:[-1,0,a],outputRange:[0,0,1]}):new uo.A.Value(0),this.leftActionTranslate=this.showLeftAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:"clamp"}),this.showRightAction=c>0?d.interpolate({inputRange:[-c,0,1],outputRange:[1,0,0]}):new uo.A.Value(0),this.rightActionTranslate=this.showRightAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:"clamp"})})),ra(this,"onTapHandlerStateChange",(({nativeEvent:e})=>{e.oldState===l.ACTIVE&&this.close()})),ra(this,"onHandlerStateChange",(e=>{if(e.nativeEvent.oldState===l.ACTIVE&&this.handleRelease(e),e.nativeEvent.state===l.ACTIVE){const{velocityX:o,translationX:a}=e.nativeEvent,{rowState:s}=this.state,{friction:l}=this.props,c=-1===s?"right":1===s||(a+.05*o)/l>0?"left":"right";var t,n,r,i;0===s?null===(t=(n=this.props).onSwipeableOpenStartDrag)||void 0===t||t.call(n,c):null===(r=(i=this.props).onSwipeableCloseStartDrag)||void 0===r||r.call(i,c)}})),ra(this,"handleRelease",(e=>{const{velocityX:t,translationX:n}=e.nativeEvent,{leftWidth:r=0,rowWidth:i=0,rowState:o}=this.state,{rightOffset:a=i}=this.state,s=i-a,{friction:l,leftThreshold:c=r/2,rightThreshold:u=s/2}=this.props,h=this.currentOffset()+n/l,d=(n+.05*t)/l;let f=0;0===o?d>c?f=r:d<-u&&(f=-s):1===o?d>-c&&(f=r):d{const{dragX:r,rowTranslation:i}=this.state;var o,a,s,l;if(r.setValue(0),i.setValue(e),this.setState({rowState:Math.sign(t)}),uo.A.spring(i,Object.assign({restSpeedThreshold:1.7,restDisplacementThreshold:.4,velocity:n,bounciness:0,toValue:t,useNativeDriver:this.props.useNativeAnimations},this.props.animationOptions)).start((({finished:n})=>{var r,i,o,a;if(n)if(t>0)null===(r=(i=this.props).onSwipeableLeftOpen)||void 0===r||r.call(i),null===(o=(a=this.props).onSwipeableOpen)||void 0===o||o.call(a,"left",this);else if(t<0){var s,l,c,u;null===(s=(l=this.props).onSwipeableRightOpen)||void 0===s||s.call(l),null===(c=(u=this.props).onSwipeableOpen)||void 0===c||c.call(u,"right",this)}else{var h,d;const t=e>0?"left":"right";null===(h=(d=this.props).onSwipeableClose)||void 0===h||h.call(d,t,this)}})),t>0)null===(o=(a=this.props).onSwipeableLeftWillOpen)||void 0===o||o.call(a),null===(s=(l=this.props).onSwipeableWillOpen)||void 0===s||s.call(l,"left");else if(t<0){var c,u,h,d;null===(c=(u=this.props).onSwipeableRightWillOpen)||void 0===c||c.call(u),null===(h=(d=this.props).onSwipeableWillOpen)||void 0===h||h.call(d,"right")}else{var f,p;const t=e>0?"left":"right";null===(f=(p=this.props).onSwipeableWillClose)||void 0===f||f.call(p,t)}})),ra(this,"onRowLayout",(({nativeEvent:e})=>{this.setState({rowWidth:e.layout.width})})),ra(this,"currentOffset",(()=>{const{leftWidth:e=0,rowWidth:t=0,rowState:n}=this.state,{rightOffset:r=t}=this.state;return 1===n?e:-1===n?-(t-r):0})),ra(this,"close",(()=>{this.animateRow(this.currentOffset(),0)})),ra(this,"openLeft",(()=>{const{leftWidth:e=0}=this.state;this.animateRow(this.currentOffset(),e)})),ra(this,"openRight",(()=>{const{rowWidth:e=0}=this.state,{rightOffset:t=e}=this.state,n=e-t;this.animateRow(this.currentOffset(),-n)})),ra(this,"reset",(()=>{const{dragX:e,rowTranslation:t}=this.state;e.setValue(0),t.setValue(0),this.setState({rowState:0})}));const t=new uo.A.Value(0);this.state={dragX:t,rowTranslation:new uo.A.Value(0),rowState:0,leftWidth:void 0,rightOffset:void 0,rowWidth:void 0},this.updateAnimatedEvent(e,this.state),this.onGestureEvent=uo.A.event([{nativeEvent:{translationX:t}}],{useNativeDriver:e.useNativeAnimations})}shouldComponentUpdate(e,t){return this.props.friction===e.friction&&this.props.overshootLeft===e.overshootLeft&&this.props.overshootRight===e.overshootRight&&this.props.overshootFriction===e.overshootFriction&&this.state.leftWidth===t.leftWidth&&this.state.rightOffset===t.rightOffset&&this.state.rowWidth===t.rowWidth||this.updateAnimatedEvent(e,t),!0}render(){const{rowState:e}=this.state,{children:t,renderLeftActions:n,renderRightActions:r,dragOffsetFromLeftEdge:i=10,dragOffsetFromRightEdge:o=10}=this.props,a=n&&u.createElement(uo.A.View,{style:[oa.leftActions,{transform:[{translateX:this.leftActionTranslate}]}]},n(this.showLeftAction,this.transX,this),u.createElement(pr.A,{onLayout:({nativeEvent:e})=>this.setState({leftWidth:e.layout.x})})),s=r&&u.createElement(uo.A.View,{style:[oa.rightActions,{transform:[{translateX:this.rightActionTranslate}]}]},r(this.showRightAction,this.transX,this),u.createElement(pr.A,{onLayout:({nativeEvent:e})=>this.setState({rightOffset:e.layout.x})}));return u.createElement(Wr,na({activeOffsetX:[-o,i],touchAction:"pan-y"},this.props,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange}),u.createElement(uo.A.View,{onLayout:this.onRowLayout,style:[oa.container,this.props.containerStyle]},a,s,u.createElement(zr,{enabled:0!==e,touchAction:"pan-y",onHandlerStateChange:this.onTapHandlerStateChange},u.createElement(uo.A.View,{pointerEvents:0===e?"auto":"box-only",style:[{transform:[{translateX:this.transX}]},this.props.childrenContainerStyle]},t))))}}ra(ia,"defaultProps",{friction:1,overshootFriction:1,useNativeAnimations:!0});const oa=fr.A.create({container:{overflow:"hidden"},leftActions:Object.assign({},fr.A.absoluteFillObject,{flexDirection:ta.A.isRTL?"row-reverse":"row"}),rightActions:Object.assign({},fr.A.absoluteFillObject,{flexDirection:ta.A.isRTL?"row":"row-reverse"})});var aa=__webpack_require__(67862);const sa=e=>({left:e,right:e,top:e,bottom:e}),la=(e,t,n)=>({identifier:e.id,locationX:e.x,locationY:e.y,pageX:e.absoluteX,pageY:e.absoluteY,target:n,timestamp:t,touches:[],changedTouches:[]}),ca=e=>{const t=Date.now(),n=((e,t)=>({identifier:e.handlerTag,locationX:e.x,locationY:e.y,pageX:e.absoluteX,pageY:e.absoluteY,target:0,timestamp:t,touches:[],changedTouches:[]}))(e,t);return{nativeEvent:{touches:[n],changedTouches:[n],identifier:n.identifier,locationX:e.x,locationY:e.y,pageX:e.absoluteX,pageY:e.absoluteY,target:0,timestamp:t,force:void 0}}},ua=e=>{var t,n,r,i,o,a,s,l;const c=Date.now();return{nativeEvent:{touches:e.allTouches.map((e=>la(e,c,0))),changedTouches:e.changedTouches.map((e=>la(e,c,0))),identifier:e.handlerTag,locationX:null!==(t=null===(n=e.allTouches.at(0))||void 0===n?void 0:n.x)&&void 0!==t?t:-1,locationY:null!==(r=null===(i=e.allTouches.at(0))||void 0===i?void 0:i.y)&&void 0!==r?r:-1,pageX:null!==(o=null===(a=e.allTouches.at(0))||void 0===a?void 0:a.absoluteX)&&void 0!==o?o:-1,pageY:null!==(s=null===(l=e.allTouches.at(0))||void 0===l?void 0:l.absoluteY)&&void 0!==s?s:-1,target:0,timestamp:c,force:void 0}}},ha=["testOnly_pressed","hitSlop","pressRetentionOffset","delayHoverIn","onHoverIn","delayHoverOut","onHoverOut","delayLongPress","unstable_pressDelay","onPress","onPressIn","onPressOut","onLongPress","style","children","android_disableSound","android_ripple","disabled","accessible"];function da(){return da=Object.assign||function(e){for(var t=1;tevent.changedTouches.length){return;}pressOutHandler(gestureTouchToPressableEvent(event));}"},va={code:"function reactNativeGestureHandler_PressableJs4(event){const{handlingOnTouchesDown,onEndHandlingTouchesDown,pressOutHandler,gestureTouchToPressableEvent,deferredEventPayload,shouldPreventNativeEffects}=this.__closure;if(handlingOnTouchesDown.current){onEndHandlingTouchesDown.current=function(){return pressOutHandler(gestureTouchToPressableEvent(event));};return;}if(deferredEventPayload.current!==null){shouldPreventNativeEffects.current=true;}pressOutHandler(gestureTouchToPressableEvent(event));}"},ba={code:"function reactNativeGestureHandler_PressableJs5(event){const{handlingOnTouchesDown,pressableRef,measureCallback,innerPressableRef}=this.__closure;handlingOnTouchesDown.current=true;if(pressableRef){var _current;(_current=pressableRef.current)===null||_current===void 0?void 0:_current.measure(function(_x,_y,width,height){measureCallback(width,height,event);});}else{var _innerPressableRef$cu;(_innerPressableRef$cu=innerPressableRef.current)===null||_innerPressableRef$cu===void 0?void 0:_innerPressableRef$cu.measure(function(_x,_y,width,height){measureCallback(width,height,event);});}}"},Aa={code:"function reactNativeGestureHandler_PressableJs6(){const{Platform,isTouchPropagationAllowed,deferredEventPayload,hasPassedBoundsChecks,pressInHandler,pressOutHandler,shouldPreventNativeEffects,handlingOnTouchesDown}=this.__closure;if(Platform.OS==='web'){isTouchPropagationAllowed.current=true;}if(Platform.OS!=='ios'){return;}if(deferredEventPayload.current){isTouchPropagationAllowed.current=true;if(hasPassedBoundsChecks.current){pressInHandler(deferredEventPayload.current);deferredEventPayload.current=null;}else{pressOutHandler(deferredEventPayload.current);isTouchPropagationAllowed.current=false;}return;}if(hasPassedBoundsChecks.current){isTouchPropagationAllowed.current=true;return;}if(shouldPreventNativeEffects.current){shouldPreventNativeEffects.current=false;if(!handlingOnTouchesDown.current){return;}}isTouchPropagationAllowed.current=true;}"},xa={code:"function reactNativeGestureHandler_PressableJs7(){const{Platform,isTouchPropagationAllowed}=this.__closure;if(Platform.OS==='android'||Platform.OS==='macos'){isTouchPropagationAllowed.current=true;}}"};(0,u.forwardRef)(((e,t)=>{var n;const{testOnly_pressed:r,hitSlop:i,pressRetentionOffset:o,delayHoverIn:a,onHoverIn:s,delayHoverOut:l,onHoverOut:c,delayLongPress:h,unstable_pressDelay:d,onPress:f,onPressIn:m,onPressOut:y,onLongPress:v,style:b,children:A,android_disableSound:x,android_ripple:w,disabled:C,accessible:S}=e,E=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,ha),[k,T]=(0,u.useState)(null!=r&&r),I=(0,u.useRef)(!0),O=(0,u.useRef)(!1),R=(0,u.useRef)(!1),M=(0,u.useMemo)((()=>"number"==typeof i?sa(i):null!=i?i:{}),[i]),P=(0,u.useMemo)((()=>"number"==typeof o?sa(o):null!=o?o:{}),[o]),D=(0,u.useRef)(null),j=(0,u.useRef)(null),B=(0,u.useMemo)((()=>ao().manualActivation(!0).cancelsTouchesInView(!1).onBegin(function(){const e=function(e){j.current&&clearTimeout(j.current),a?D.current=setTimeout((()=>null==s?void 0:s(ca(e))),a):null==s||s(ca(e))};return e.__closure={hoverOutTimeout:j,clearTimeout,delayHoverIn:a,hoverInTimeout:D,setTimeout,onHoverIn:s,gestureToPressableEvent:ca},e.__workletHash=0xb52c8fcefa6,e.__initData=ga,e}()).onFinalize(function(){const e=function(e){D.current&&clearTimeout(D.current),l?j.current=setTimeout((()=>null==c?void 0:c(ca(e))),l):null==c||c(ca(e))};return e.__closure={hoverInTimeout:D,clearTimeout,delayHoverOut:l,hoverOutTimeout:j,setTimeout,onHoverOut:c,gestureToPressableEvent:ca},e.__workletHash=0xc02ba20a8ec,e.__initData=ma,e}())),[a,l,s,c]),L=(0,u.useRef)(null),F=(0,u.useRef)(!1),N=(0,u.useRef)(null),_=(0,u.useCallback)((e=>{V.current&&(N.current=e),F.current&&(N.current=null,null==m||m(e),I.current=!0,L.current=null,T(!0))}),[m]),z=(0,u.useCallback)((e=>{if(!F.current)return O.current=!1,I.current=!0,N.current=null,G.current&&(clearTimeout(G.current),G.current=null),void(L.current&&(clearTimeout(L.current),L.current=null));!O.current||e.nativeEvent.touches.length>e.nativeEvent.changedTouches.length||(d&&null!==L.current&&(clearTimeout(L.current),_(e)),N.current&&(null==m||m(N.current),N.current=null),null==y||y(e),I.current&&(null==f||f(e)),G.current&&(clearTimeout(G.current),G.current=null),F.current=!1,O.current=!1,I.current=!0,T(!1))}),[f,m,y,_,d]),V=(0,u.useRef)(!1),U=(0,u.useRef)(null),H=(0,u.useRef)(!1),q=(0,u.useCallback)((e=>{F.current&&(O.current&&(null==v||v(ua(e)),I.current=!1),G.current&&(clearTimeout(G.current),G.current=null))}),[v]),G=(0,u.useRef)(null),Y=(null!=h?h:500)+(null!=d?d:0),W=(0,u.useRef)(null),Q=(0,u.useCallback)(((e,t,n)=>{var r,i,o,a,s,l,c,u,h,f,p,m;if(i={width:e,height:t},o=M,!((null!==(s=null==(a=n.changedTouches.at(-1))?void 0:a.x)&&void 0!==s?s:0)<(null!==(l=o.right)&&void 0!==l?l:0)+i.width&&(null!==(c=null==a?void 0:a.y)&&void 0!==c?c:0)<(null!==(u=o.bottom)&&void 0!==u?u:0)+i.height&&(null!==(h=null==a?void 0:a.x)&&void 0!==h?h:0)>-(null!==(f=o.left)&&void 0!==f?f:0)&&(null!==(p=null==a?void 0:a.y)&&void 0!==p?p:0)>-(null!==(m=o.top)&&void 0!==m?m:0))||O.current||H.current)return H.current=!1,U.current=null,void(V.current=!1);O.current=!0,null===G.current&&(G.current=setTimeout((()=>q(n)),Y)),d?L.current=setTimeout((()=>{_(ua(n))}),d):_(ua(n)),null===(r=U.current)||void 0===r||r.call(U),U.current=null,V.current=!1}),[q,Y,M,_,d]),X=(0,u.useMemo)((()=>io().minDuration(g).maxDistance(g).cancelsTouchesInView(!1).onTouchesDown(function(){const e=function(e){var n,r;V.current=!0,t?null===(n=t.current)||void 0===n||n.measure(((t,n,r,i)=>{Q(r,i,e)})):null===(r=W.current)||void 0===r||r.measure(((t,n,r,i)=>{Q(r,i,e)}))};return e.__closure={handlingOnTouchesDown:V,pressableRef:t,measureCallback:Q,innerPressableRef:W},e.__workletHash=4769117753108,e.__initData=ba,e}()).onTouchesUp(function(){const e=function(e){V.current?U.current=()=>z(ua(e)):(null!==N.current&&(R.current=!0),z(ua(e)))};return e.__closure={handlingOnTouchesDown:V,onEndHandlingTouchesDown:U,pressOutHandler:z,gestureTouchToPressableEvent:ua,deferredEventPayload:N,shouldPreventNativeEffects:R},e.__workletHash=0xf0686e7b785,e.__initData=va,e}()).onTouchesCancelled(function(){const e=function(e){if(I.current=!1,V.current)return H.current=!0,void(U.current=()=>z(ua(e)));!O.current||e.allTouches.length>e.changedTouches.length||z(ua(e))};return e.__closure={isPressCallbackEnabled:I,handlingOnTouchesDown:V,cancelledMidPress:H,onEndHandlingTouchesDown:U,pressOutHandler:z,gestureTouchToPressableEvent:ua,hasPassedBoundsChecks:O},e.__workletHash=6752300585029,e.__initData=ya,e}())),[t,Q,z]),J=(0,u.useMemo)((()=>oo().onBegin(function(){const e=function(){};return e.__closure={Platform:aa.A,isTouchPropagationAllowed:F},e.__workletHash=9256909370777,e.__initData=xa,e}()).onStart(function(){const e=function(){F.current=!0};return e.__closure={Platform:aa.A,isTouchPropagationAllowed:F,deferredEventPayload:N,hasPassedBoundsChecks:O,pressInHandler:_,pressOutHandler:z,shouldPreventNativeEffects:R,handlingOnTouchesDown:V},e.__workletHash=9266572672870,e.__initData=Aa,e}())),[_,z]),Z=(te=P,{left:(null!==(ne=(ee=M).left)&&void 0!==ne?ne:0)+(null!==(re=te.left)&&void 0!==re?re:0),right:(null!==(ie=ee.right)&&void 0!==ie?ie:0)+(null!==(oe=te.right)&&void 0!==oe?oe:0),top:(null!==(ae=ee.top)&&void 0!==ae?ae:0)+(null!==(se=te.top)&&void 0!==se?se:0),bottom:(null!==(le=ee.bottom)&&void 0!==le?le:0)+(null!==(ce=te.bottom)&&void 0!==ce?ce:0)}),K=!0!==C,$=[J,X,B];var ee,te,ne,re,ie,oe,ae,se,le,ce;for(const e of $)e.enabled(K),e.runOnJS(!0),e.hitSlop(Z),e.shouldCancelWhenOutside(!1);J.hitSlop(M);const ue=lo(...$),he="function"==typeof b?b({pressed:k}):b,de="function"==typeof A?A({pressed:k}):A,fe=(0,u.useMemo)((()=>{var e;null===pa&&(pa=p());const t=w?void 0:"transparent",n=null!==(e=null==w?void 0:w.color)&&void 0!==e?e:t;return pa?n:(0,ho.A)(n)}),[w]);return u.createElement(Bi,{gesture:ue},u.createElement(po,da({},E,{ref:null!=t?t:W,accessible:!1!==S,hitSlop:Z,enabled:K,touchSoundDisabled:null!=x?x:void 0,rippleColor:fe,rippleRadius:null!==(n=null==w?void 0:w.radius)&&void 0!==n?n:void 0,style:[{cursor:"pointer"},he],testOnly_onPress:fa?f:void 0,testOnly_onPressIn:fa?m:void 0,testOnly_onPressOut:fa?y:void 0,testOnly_onLongPress:fa?v:void 0}),de,null))}));var wa=__webpack_require__(20311),Ca=__webpack_require__.n(wa),Sa=__webpack_require__(87068),Ea=__webpack_require__(97576);function ka(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ta="Idle",Ia="Dragging",Oa="Settling";class Ra extends u.Component{constructor(e){super(e),ka(this,"openValue",void 0),ka(this,"onGestureEvent",void 0),ka(this,"accessibilityIsModalView",u.createRef()),ka(this,"pointerEventsView",u.createRef()),ka(this,"panGestureHandler",u.createRef()),ka(this,"drawerShown",!1),ka(this,"updateAnimatedEvent",((e,t)=>{const{drawerPosition:n,drawerWidth:r,drawerType:i}=e,{dragX:o,touchX:a,drawerTranslation:s,containerWidth:l}=t;let c=o,u=a;"left"!==n?(c=uo.A.multiply(new uo.A.Value(-1),o),u=uo.A.add(new uo.A.Value(l),uo.A.multiply(new uo.A.Value(-1),a)),a.setValue(l)):a.setValue(0);let h=c;if("front"===i){const e=uo.A.add(u,uo.A.multiply(new uo.A.Value(-1),c)).interpolate({inputRange:[r-1,r,r+1],outputRange:[0,0,1]});h=uo.A.add(c,e)}this.openValue=uo.A.add(h,s).interpolate({inputRange:[0,r],outputRange:[0,1],extrapolate:"clamp"});const d={useNativeDriver:e.useNativeAnimations};this.props.onDrawerSlide&&(d.listener=e=>{var t,n;const r=Math.floor(Math.abs(e.nativeEvent.translationX))/this.state.containerWidth;null===(t=(n=this.props).onDrawerSlide)||void 0===t||t.call(n,r)}),this.onGestureEvent=uo.A.event([{nativeEvent:{translationX:o,x:a}}],d)})),ka(this,"handleContainerLayout",(({nativeEvent:e})=>{this.setState({containerWidth:e.layout.width})})),ka(this,"emitStateChanged",((e,t)=>{var n,r;null===(n=(r=this.props).onDrawerStateChanged)||void 0===n||n.call(r,e,t)})),ka(this,"openingHandlerStateChange",(({nativeEvent:e})=>{e.oldState===l.ACTIVE?this.handleRelease({nativeEvent:e}):e.state===l.ACTIVE&&(this.emitStateChanged(Ia,!1),this.setState({drawerState:Ia}),"on-drag"===this.props.keyboardDismissMode&&Sa.A.dismiss(),this.props.hideStatusBar&&Ea.A.setHidden(!0,this.props.statusBarAnimation||"slide"))})),ka(this,"onTapHandlerStateChange",(({nativeEvent:e})=>{this.drawerShown&&e.oldState===l.ACTIVE&&"locked-open"!==this.props.drawerLockMode&&this.closeDrawer()})),ka(this,"handleRelease",(({nativeEvent:e})=>{const{drawerWidth:t,drawerPosition:n,drawerType:r}=this.props,{containerWidth:i}=this.state;let{translationX:o,velocityX:a,x:s}=e;"left"!==n&&(o=-o,s=i-s,a=-a);const l=s-o;let c=0;"front"===r&&(c=l>t?l-t:0);const u=o+c+(this.drawerShown?t:0);u+.05*a>t/2?this.animateDrawer(u,t,a):this.animateDrawer(u,0,a)})),ka(this,"updateShowing",(e=>{var t,n,r;this.drawerShown=e,null===(t=this.accessibilityIsModalView.current)||void 0===t||t.setNativeProps({accessibilityViewIsModal:e}),null===(n=this.pointerEventsView.current)||void 0===n||n.setNativeProps({pointerEvents:e?"auto":"none"});const{drawerPosition:i,minSwipeDistance:o,edgeWidth:a}=this.props,s="left"===i,l=(s?1:-1)*(this.drawerShown?-1:1),c=s?{left:0,width:e?void 0:a}:{right:0,width:e?void 0:a};null===(r=this.panGestureHandler.current)||void 0===r||r.setNativeProps({hitSlop:c,activeOffsetX:l*o})})),ka(this,"animateDrawer",((e,t,n,r)=>{if(this.state.dragX.setValue(0),this.state.touchX.setValue("left"===this.props.drawerPosition?0:this.state.containerWidth),null!=e){let r=e;this.props.useNativeAnimations&&(e0?r=Math.min(e+n/60,t):e>t&&n<0&&(r=Math.max(e+n/60,t))),this.state.drawerTranslation.setValue(r)}const i=0!==t;this.updateShowing(i),this.emitStateChanged(Oa,i),this.setState({drawerState:Oa}),this.props.hideStatusBar&&Ea.A.setHidden(i,this.props.statusBarAnimation||"slide"),uo.A.spring(this.state.drawerTranslation,{velocity:n,bounciness:0,toValue:t,useNativeDriver:this.props.useNativeAnimations,speed:null!=r?r:void 0}).start((({finished:e})=>{var t,n,r,o;e&&(this.emitStateChanged(Ta,i),this.setState({drawerOpened:i}),this.state.drawerState!==Ia&&this.setState({drawerState:Ta}),i?null===(t=(n=this.props).onDrawerOpen)||void 0===t||t.call(n):null===(r=(o=this.props).onDrawerClose)||void 0===r||r.call(o))}))})),ka(this,"openDrawer",((e={})=>{this.animateDrawer(void 0,this.props.drawerWidth,e.velocity?e.velocity:0,e.speed),this.forceUpdate()})),ka(this,"closeDrawer",((e={})=>{this.animateDrawer(void 0,0,e.velocity?e.velocity:0,e.speed),this.forceUpdate()})),ka(this,"renderOverlay",(()=>{let e;Ca()(this.openValue,"should be set"),e=this.state.drawerState!==Ta?this.openValue:this.state.drawerOpened?1:0;const t={opacity:e,backgroundColor:this.props.overlayColor};return u.createElement(zr,{onHandlerStateChange:this.onTapHandlerStateChange},u.createElement(uo.A.View,{pointerEvents:this.drawerShown?"auto":"none",ref:this.pointerEventsView,style:[Ma.overlay,t]}))})),ka(this,"renderDrawer",(()=>{const{drawerBackgroundColor:e,drawerWidth:t,drawerPosition:n,drawerType:r,drawerContainerStyle:i,contentContainerStyle:o}=this.props,a="left"===n,s="back"!==r,l="front"!==r,c=ta.A.isRTL?a:!a,h={backgroundColor:e,width:t},d=this.openValue;let f;Ca()(d,"should be set"),l&&(f={transform:[{translateX:d.interpolate({inputRange:[0,1],outputRange:a?[0,t]:[0,-t],extrapolate:"clamp"})}]});let p=0;if(s){const e=a?-t:t;p=this.state.drawerState!==Ta?d.interpolate({inputRange:[0,1],outputRange:[e,0],extrapolate:"clamp"}):this.state.drawerOpened?0:e}const m={transform:[{translateX:p}],flexDirection:c?"row-reverse":"row"};return u.createElement(uo.A.View,{style:Ma.main,onLayout:this.handleContainerLayout},u.createElement(uo.A.View,{style:["front"===r?Ma.containerOnBack:Ma.containerInFront,f,o],importantForAccessibility:this.drawerShown?"no-hide-descendants":"yes"},"function"==typeof this.props.children?this.props.children(this.openValue):this.props.children,this.renderOverlay()),u.createElement(uo.A.View,{pointerEvents:"box-none",ref:this.accessibilityIsModalView,accessibilityViewIsModal:this.drawerShown,style:[Ma.drawerContainer,m,i]},u.createElement(pr.A,{style:h},this.props.renderNavigationView(this.openValue))))})),ka(this,"setPanGestureRef",(e=>{var t,n;this.panGestureHandler.current=e,null===(t=(n=this.props).onGestureRef)||void 0===t||t.call(n,e)}));const t=new uo.A.Value(0),n=new uo.A.Value(0),r=new uo.A.Value(0);this.state={dragX:t,touchX:n,drawerTranslation:r,containerWidth:0,drawerState:Ta,drawerOpened:!1},this.updateAnimatedEvent(e,this.state)}shouldComponentUpdate(e,t){return this.props.drawerPosition===e.drawerPosition&&this.props.drawerWidth===e.drawerWidth&&this.props.drawerType===e.drawerType&&this.state.containerWidth===t.containerWidth||this.updateAnimatedEvent(e,t),!0}render(){const{drawerPosition:e,drawerLockMode:t,edgeWidth:n,minSwipeDistance:r}=this.props,i="left"===e,o=(i?1:-1)*(this.drawerShown?-1:1),a=i?{left:0,width:this.drawerShown?void 0:n}:{right:0,width:this.drawerShown?void 0:n};return u.createElement(Wr,{userSelect:this.props.userSelect,activeCursor:this.props.activeCursor,mouseButton:this.props.mouseButton,enableContextMenu:this.props.enableContextMenu,ref:this.setPanGestureRef,hitSlop:a,activeOffsetX:o*r,failOffsetY:[-15,15],onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.openingHandlerStateChange,enableTrackpadTwoFingerGesture:this.props.enableTrackpadTwoFingerGesture,enabled:"locked-closed"!==t&&"locked-open"!==t},this.renderDrawer())}}ka(Ra,"defaultProps",{drawerWidth:200,drawerPosition:"left",useNativeAnimations:!0,drawerType:"front",edgeWidth:20,minSwipeDistance:3,overlayColor:"rgba(0, 0, 0, 0.7)",drawerLockMode:"unlocked",enableTrackpadTwoFingerGesture:!1}),ka(Ra,"positions",{Left:"left",Right:"right"});const Ma=fr.A.create({drawerContainer:Object.assign({},fr.A.absoluteFillObject,{zIndex:1001,flexDirection:"row"}),containerInFront:Object.assign({},fr.A.absoluteFillObject,{zIndex:1002}),containerOnBack:Object.assign({},fr.A.absoluteFillObject),main:{flex:1,zIndex:0,overflow:"hidden"},overlay:Object.assign({},fr.A.absoluteFillObject,{zIndex:1e3})});E&&(E.remove(),E=null),k&&(k.remove(),k=null),E=s.A.addListener("onGestureHandlerEvent",R),k=s.A.addListener("onGestureHandlerStateChange",R);const Pa=["default","desktop","panel"],Da={OS:window.isElectron?"desktop":aa.A.OS,select:e=>{const t=Object.assign({},e,{default:"default"in e?e.default:void 0}),{default:n,desktop:r,panel:i}=t,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(t,Pa);if(window.isElectron&&void 0!==r)return r;const a=aa.A.select(o);return void 0!==a?a:n}},ja=JSON.parse('{"UU":"navigraph-charts"}');var Ba=__webpack_require__(52837),La=__webpack_require__(41266),Fa=__webpack_require__.n(La);const Na={palette:{primary100:"rgba(255, 255, 255, 1)",primary99:"rgba(255, 251, 254, 1)",primary95:"rgba(246, 237, 255, 1)",primary90:"rgba(234, 221, 255, 1)",primary80:"rgba(208, 188, 255, 1)",primary70:"rgba(182, 157, 248, 1)",primary60:"rgba(154, 130, 219, 1)",primary50:"rgba(127, 103, 190, 1)",primary40:"rgba(103, 80, 164, 1)",primary30:"rgba(79, 55, 139, 1)",primary20:"rgba(56, 30, 114, 1)",primary10:"rgba(33, 0, 93, 1)",primary0:"rgba(0, 0, 0, 1)",secondary100:"rgba(255, 255, 255, 1)",secondary99:"rgba(255, 251, 254, 1)",secondary95:"rgba(246, 237, 255, 1)",secondary90:"rgba(232, 222, 248, 1)",secondary80:"rgba(204, 194, 220, 1)",secondary70:"rgba(176, 167, 192, 1)",secondary60:"rgba(149, 141, 165, 1)",secondary50:"rgba(122, 114, 137, 1)",secondary40:"rgba(98, 91, 113, 1)",secondary30:"rgba(74, 68, 88, 1)",secondary20:"rgba(51, 45, 65, 1)",secondary10:"rgba(29, 25, 43, 1)",secondary0:"rgba(0, 0, 0, 1)",tertiary100:"rgba(255, 255, 255, 1)",tertiary99:"rgba(255, 251, 250, 1)",tertiary95:"rgba(255, 236, 241, 1)",tertiary90:"rgba(255, 216, 228, 1)",tertiary80:"rgba(239, 184, 200, 1)",tertiary70:"rgba(210, 157, 172, 1)",tertiary60:"rgba(181, 131, 146, 1)",tertiary50:"rgba(152, 105, 119, 1)",tertiary40:"rgba(125, 82, 96, 1)",tertiary30:"rgba(99, 59, 72, 1)",tertiary20:"rgba(73, 37, 50, 1)",tertiary10:"rgba(49, 17, 29, 1)",tertiary0:"rgba(0, 0, 0, 1)",neutral100:"rgba(255, 255, 255, 1)",neutral99:"rgba(255, 251, 254, 1)",neutral95:"rgba(244, 239, 244, 1)",neutral90:"rgba(230, 225, 229, 1)",neutral80:"rgba(201, 197, 202, 1)",neutral70:"rgba(174, 170, 174, 1)",neutral60:"rgba(147, 144, 148, 1)",neutral50:"rgba(120, 117, 121, 1)",neutral40:"rgba(96, 93, 98, 1)",neutral30:"rgba(72, 70, 73, 1)",neutral20:"rgba(49, 48, 51, 1)",neutral10:"rgba(28, 27, 31, 1)",neutral0:"rgba(0, 0, 0, 1)",neutralVariant100:"rgba(255, 255, 255, 1)",neutralVariant99:"rgba(255, 251, 254, 1)",neutralVariant95:"rgba(245, 238, 250, 1)",neutralVariant90:"rgba(231, 224, 236, 1)",neutralVariant80:"rgba(202, 196, 208, 1)",neutralVariant70:"rgba(174, 169, 180, 1)",neutralVariant60:"rgba(147, 143, 153, 1)",neutralVariant50:"rgba(121, 116, 126, 1)",neutralVariant40:"rgba(96, 93, 102, 1)",neutralVariant30:"rgba(73, 69, 79, 1)",neutralVariant20:"rgba(50, 47, 55, 1)",neutralVariant10:"rgba(29, 26, 34, 1)",neutralVariant0:"rgba(0, 0, 0, 1)",error100:"rgba(255, 255, 255, 1)",error99:"rgba(255, 251, 249, 1)",error95:"rgba(252, 238, 238, 1)",error90:"rgba(249, 222, 220, 1)",error80:"rgba(242, 184, 181, 1)",error70:"rgba(236, 146, 142, 1)",error60:"rgba(228, 105, 98, 1)",error50:"rgba(220, 54, 46, 1)",error40:"rgba(179, 38, 30, 1)",error30:"rgba(140, 29, 24, 1)",error20:"rgba(96, 20, 16, 1)",error10:"rgba(65, 14, 11, 1)",error0:"rgba(0, 0, 0, 1)"},typeface:{brandRegular:aa.A.select({web:'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',ios:"System",default:"sans-serif"}),weightRegular:"400",plainMedium:aa.A.select({web:'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',ios:"System",default:"sans-serif-medium"}),weightMedium:"500"},opacity:{level1:.08,level2:.12,level3:.16,level4:.38}},_a={fontFamily:Na.typeface.brandRegular,letterSpacing:0,fontWeight:Na.typeface.weightRegular},za={fontFamily:Na.typeface.plainMedium,letterSpacing:.15,fontWeight:Na.typeface.weightMedium},Va={displayLarge:{..._a,lineHeight:64,fontSize:57},displayMedium:{..._a,lineHeight:52,fontSize:45},displaySmall:{..._a,lineHeight:44,fontSize:36},headlineLarge:{..._a,lineHeight:40,fontSize:32},headlineMedium:{..._a,lineHeight:36,fontSize:28},headlineSmall:{..._a,lineHeight:32,fontSize:24},titleLarge:{..._a,lineHeight:28,fontSize:22},titleMedium:{...za,lineHeight:24,fontSize:16},titleSmall:{...za,letterSpacing:.1,lineHeight:20,fontSize:14},labelLarge:{...za,letterSpacing:.1,lineHeight:20,fontSize:14},labelMedium:{...za,letterSpacing:.5,lineHeight:16,fontSize:12},labelSmall:{...za,letterSpacing:.5,lineHeight:16,fontSize:11},bodyLarge:{...za,fontWeight:Na.typeface.weightRegular,fontFamily:Na.typeface.brandRegular,lineHeight:24,fontSize:16},bodyMedium:{...za,fontWeight:Na.typeface.weightRegular,fontFamily:Na.typeface.brandRegular,letterSpacing:.25,lineHeight:20,fontSize:14},bodySmall:{...za,fontWeight:Na.typeface.weightRegular,fontFamily:Na.typeface.brandRegular,letterSpacing:.4,lineHeight:16,fontSize:12},default:{..._a}},Ua={md:{ref:Na,sys:{typescale:Va}}},Ha=Na.palette,qa={web:{regular:{fontFamily:'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',fontWeight:"400"},medium:{fontFamily:'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',fontWeight:"500"},light:{fontFamily:'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',fontWeight:"300"},thin:{fontFamily:'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',fontWeight:"100"}},ios:{regular:{fontFamily:"System",fontWeight:"400"},medium:{fontFamily:"System",fontWeight:"500"},light:{fontFamily:"System",fontWeight:"300"},thin:{fontFamily:"System",fontWeight:"100"}},default:{regular:{fontFamily:"sans-serif",fontWeight:"normal"},medium:{fontFamily:"sans-serif-medium",fontWeight:"normal"},light:{fontFamily:"sans-serif-light",fontWeight:"normal"},thin:{fontFamily:"sans-serif-thin",fontWeight:"normal"}}};function Ga(e){const{isV3:t=!0,config:n}=e||{};return t?function(e){return e?Object.keys(e).every((t=>"object"!=typeof e[t]))?Object.fromEntries(Object.entries(Va).map((([t,n])=>[t,{...n,...e}]))):Object.assign({},Va,...Object.entries(e).map((([e,t])=>({[e]:{...Va[e],...t}})))):Va}(n):function(e){return aa.A.select({...qa,...e})}(n)}const{palette:Ya,opacity:Wa}=Ua.md.ref,Qa={dark:!1,roundness:4,version:3,isV3:!0,colors:{primary:Ya.primary40,primaryContainer:Ya.primary90,secondary:Ya.secondary40,secondaryContainer:Ya.secondary90,tertiary:Ya.tertiary40,tertiaryContainer:Ya.tertiary90,surface:Ya.neutral99,surfaceVariant:Ya.neutralVariant90,surfaceDisabled:Fa()(Ya.neutral10).alpha(Wa.level2).rgb().string(),background:Ya.neutral99,error:Ya.error40,errorContainer:Ya.error90,onPrimary:Ya.primary100,onPrimaryContainer:Ya.primary10,onSecondary:Ya.secondary100,onSecondaryContainer:Ya.secondary10,onTertiary:Ya.tertiary100,onTertiaryContainer:Ya.tertiary10,onSurface:Ya.neutral10,onSurfaceVariant:Ya.neutralVariant30,onSurfaceDisabled:Fa()(Ya.neutral10).alpha(Wa.level4).rgb().string(),onError:Ya.error100,onErrorContainer:Ya.error10,onBackground:Ya.neutral10,outline:Ya.neutralVariant50,outlineVariant:Ya.neutralVariant80,inverseSurface:Ya.neutral20,inverseOnSurface:Ya.neutral95,inversePrimary:Ya.primary80,shadow:Ya.neutral0,scrim:Ya.neutral0,backdrop:Fa()(Ha.neutralVariant20).alpha(.4).rgb().string(),elevation:{level0:"transparent",level1:"rgb(247, 243, 249)",level2:"rgb(243, 237, 246)",level3:"rgb(238, 232, 244)",level4:"rgb(236, 230, 243)",level5:"rgb(233, 227, 241)"}},fonts:Ga(),animation:{scale:1}},Xa="#000000",Ja="#ffffff",Za={dark:!1,roundness:4,version:2,isV3:!1,colors:{primary:"#6200ee",accent:"#03dac4",background:"#f6f6f6",surface:Ja,error:"#B00020",text:Xa,onSurface:"#000000",disabled:Fa()(Xa).alpha(.26).rgb().string(),placeholder:Fa()(Xa).alpha(.54).rgb().string(),backdrop:Fa()(Xa).alpha(.5).rgb().string(),notification:"#f50057",tooltip:"rgba(28, 27, 31, 1)"},fonts:Ga({isV3:!1}),animation:{scale:1}},Ka={...Za,dark:!0,mode:"adaptive",version:2,isV3:!1,colors:{...Za.colors,primary:"#BB86FC",accent:"#03dac6",background:"#121212",surface:"#121212",error:"#CF6679",onSurface:"#FFFFFF",text:Ja,disabled:Fa()(Ja).alpha(.38).rgb().string(),placeholder:Fa()(Ja).alpha(.54).rgb().string(),backdrop:Fa()(Xa).alpha(.5).rgb().string(),notification:"#ff80ab",tooltip:"rgba(230, 225, 229, 1)"},fonts:Ga({isV3:!1})},{palette:$a,opacity:es}=Ua.md.ref,ts={...Qa,dark:!0,mode:"adaptive",version:3,isV3:!0,colors:{primary:$a.primary80,primaryContainer:$a.primary30,secondary:$a.secondary80,secondaryContainer:$a.secondary30,tertiary:$a.tertiary80,tertiaryContainer:$a.tertiary30,surface:$a.neutral10,surfaceVariant:$a.neutralVariant30,surfaceDisabled:Fa()($a.neutral90).alpha(es.level2).rgb().string(),background:$a.neutral10,error:$a.error80,errorContainer:$a.error30,onPrimary:$a.primary20,onPrimaryContainer:$a.primary90,onSecondary:$a.secondary20,onSecondaryContainer:$a.secondary90,onTertiary:$a.tertiary20,onTertiaryContainer:$a.tertiary90,onSurface:$a.neutral90,onSurfaceVariant:$a.neutralVariant80,onSurfaceDisabled:Fa()($a.neutral90).alpha(es.level4).rgb().string(),onError:$a.error20,onErrorContainer:$a.error80,onBackground:$a.neutral90,outline:$a.neutralVariant60,outlineVariant:$a.neutralVariant30,inverseSurface:$a.neutral90,inverseOnSurface:$a.neutral20,inversePrimary:$a.primary40,shadow:$a.neutral0,scrim:$a.neutral0,backdrop:Fa()(Ha.neutralVariant20).alpha(.4).rgb().string(),elevation:{level0:"transparent",level1:"rgb(37, 35, 42)",level2:"rgb(44, 40, 49)",level3:"rgb(49, 44, 56)",level4:"rgb(51, 46, 58)",level5:"rgb(52, 49, 63)"}}},{ThemeProvider:ns,withTheme:rs,useTheme:is}=(0,Ba.J)(Qa);function os(e){return is(e)}const as=e=>is(e),ss={2:{light:Za,dark:Ka},3:{light:Qa,dark:ts}};var ls=__webpack_require__(94129);const cs=ls.A,us=({theme:e,calculatedRippleColor:t,underlayColor:n})=>null!=n?n:e.isV3?Fa()(t).rgb().string():Fa()(t).fade(.5).rgb().string();function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t{try{return __webpack_require__(88050).A}catch(e){try{return __webpack_require__(26352).A}catch(e){try{return Object(function(){var e=new Error("Cannot find module 'react-native-vector-icons/MaterialCommunityIcons'");throw e.code="MODULE_NOT_FOUND",e}())}catch(e){return null}}}})()||(({name:e,color:t,size:n,...r})=>(console.warn(`Tried to use the icon '${e}' in a component from 'react-native-paper', but none of the required icon libraries are installed.`,"To fix this, please install one of the following:\n- @expo/vector-icons\n- @react-native-vector-icons/material-design-icons\n- react-native-vector-icons\n\nYou can also use another method to specify icon: https://callstack.github.io/react-native-paper/docs/guides/icons"),u.createElement(Ko.A,hs({},r,{style:[ps.icon,{color:t,fontSize:n}],selectable:!1}),"□"))),ps=fr.A.create({icon:{backgroundColor:"transparent"}}),ms=({name:e,color:t=Xa,size:n,direction:r,allowFontScaling:i,testID:o})=>u.createElement(fs,hs({allowFontScaling:i,name:e,color:t,size:n,style:[{transform:[{scaleX:"rtl"===r?-1:1}],lineHeight:n},ps.icon],pointerEvents:"none",selectable:!1,testID:o},ds)),gs=u.createContext({icon:ms,rippleEffectEnabled:!0}),{Provider:ys,Consumer:vs}=gs,bs=u.forwardRef,As=["onPress","onLongPress","onPressIn","onPressOut"];function xs(e){return As.some((t=>Boolean(e[t])))}function ws(){return ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const h=as(s),{calculatedRippleColor:d}=(({theme:e,rippleColor:t,underlayColor:n})=>{const r=(({theme:e,rippleColor:t})=>t||(e.isV3?Fa()(e.colors.onSurface).alpha(.12).rgb().string():e.dark?Fa()(e.colors.text).alpha(.32).rgb().string():Fa()(e.colors.text).alpha(.2).rgb().string()))({theme:e,rippleColor:t});return{calculatedRippleColor:r,calculatedUnderlayColor:us({theme:e,calculatedRippleColor:r,underlayColor:n})}})({theme:h,rippleColor:i}),f=Fa()(d).fade(.5).rgb().string(),{rippleEffectEnabled:p}=u.useContext(gs),{onPress:m,onLongPress:g,onPressIn:y,onPressOut:v}=l,b=u.useCallback((e=>{if(null==y||y(e),p){const{centered:t}=l,n=e.currentTarget,r=window.getComputedStyle(n),i=n.getBoundingClientRect();let o,a;const{changedTouches:s,touches:c}=e.nativeEvent,u=(null==c?void 0:c[0])??(null==s?void 0:s[0]);t||!u?(o=i.width/2,a=i.height/2):(o=u.locationX??e.pageX,a=u.locationY??e.pageY);const h=t?1.5*Math.min(i.width,i.height):2*Math.max(i.width,i.height),f=document.createElement("span");f.setAttribute("data-paper-ripple",""),Object.assign(f.style,{position:"absolute",pointerEvents:"none",top:"0",left:"0",right:"0",bottom:"0",borderTopLeftRadius:r.borderTopLeftRadius,borderTopRightRadius:r.borderTopRightRadius,borderBottomRightRadius:r.borderBottomRightRadius,borderBottomLeftRadius:r.borderBottomLeftRadius,overflow:t?"visible":"hidden"});const p=document.createElement("span");Object.assign(p.style,{position:"absolute",pointerEvents:"none",backgroundColor:d,borderRadius:"50%",transitionProperty:"transform opacity",transitionDuration:`${Math.min(1.5*h,350)}ms`,transitionTimingFunction:"linear",transformOrigin:"center",transform:"translate3d(-50%, -50%, 0) scale3d(0.1, 0.1, 0.1)",opacity:"0.5",left:`${o}px`,top:`${a}px`,width:`${h}px`,height:`${h}px`}),f.appendChild(p),n.appendChild(f),requestAnimationFrame((()=>{requestAnimationFrame((()=>{Object.assign(p.style,{transform:"translate3d(-50%, -50%, 0) scale3d(1, 1, 1)",opacity:"1"})}))}))}}),[y,l,p,d]),A=u.useCallback((e=>{if(null==v||v(e),p){const t=e.currentTarget.querySelectorAll("[data-paper-ripple]");requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.forEach((e=>{const t=e.firstChild;Object.assign(t.style,{transitionDuration:"250ms",opacity:0}),setTimeout((()=>{const{parentNode:t}=e;t&&t.removeChild(e)}),500)}))}))}))}}),[v,p]),x=xs({onPress:m,onLongPress:g,onPressIn:y,onPressOut:v}),w=r||!x;return u.createElement(cs,ws({},l,{ref:c,onPressIn:b,onPressOut:A,disabled:w,style:t=>[Ss.touchable,n&&Ss.borderless,t.hovered&&{backgroundColor:f},w&&Ss.disabled,"function"==typeof e?e(t):e]}),(e=>u.Children.only("function"==typeof a?a(e):a)))};Cs.supported=!0;const Ss=fr.A.create({touchable:{position:"relative",..."web"===aa.A.OS&&{cursor:"pointer",transition:"150ms background-color"}},disabled:{..."web"===aa.A.OS&&{cursor:"auto"}},borderless:{overflow:"hidden"}}),Es=bs(Cs);function ks(){return ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var i,o;const a=u.useRef(null),s=as(t);return u.useImperativeHandle(r,(()=>({setNativeProps:e=>{var t;return null===(t=a.current)||void 0===t?void 0:t.setNativeProps(e)}}))),u.createElement(Ko.A,Rs({},n,{ref:a,style:[{...!s.isV3&&(null===(i=s.fonts)||void 0===i?void 0:i.regular),color:s.isV3?null===(o=s.colors)||void 0===o?void 0:o.onSurface:s.colors.text},Ms.text,e]}))}));function Ds(){return Ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var o,a;const s=as(r),l=Fa()(s.isV3?s.colors.onSurface:null===(o=s.colors)||void 0===o?void 0:o.text).alpha(e).rgb().string(),c=ta.A.getConstants().isRTL?"rtl":"ltr";return u.createElement(Ps,Ds({},i,{style:[js.text,{color:l,...!s.isV3&&(null===(a=s.fonts)||void 0===a?void 0:a[t]),writingDirection:c},n]}))};function Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const o=u.useRef(null),a=as(n),s=ta.A.getConstants().isRTL?"rtl":"ltr";if(u.useImperativeHandle(i,(()=>({setNativeProps:e=>{var t;return null===(t=o.current)||void 0===t?void 0:t.setNativeProps(e)}}))),a.isV3&&t){let n=a.fonts[t],i=[n,e];if(u.isValidElement(r.children)&&(r.children.type===Ns||r.children.type===Os||r.children.type===Bs)){const{props:t}=r.children;t.variant&&(n=a.fonts[t.variant],i=[e,n]),t.variant||(i=[e,t.style])}if("object"!=typeof n)throw new Error(`Variant ${t} was not provided properly. Valid variants are ${Object.keys(a.fonts).join(", ")}.`);return u.createElement(Ko.A,Ls({ref:o,style:[Fs.text,{writingDirection:s,color:a.colors.onSurface},i]},r))}{var l,c;const t={...a.isV3?a.fonts.default:null===(l=a.fonts)||void 0===l?void 0:l.regular,color:a.isV3?null===(c=a.colors)||void 0===c?void 0:c.onSurface:a.colors.text};return u.createElement(Ko.A,Ls({},r,{ref:o,style:[Fs.text,t,{writingDirection:s},e]}))}})),_s=Ns;var zs=__webpack_require__(50728);function Vs(){return Vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t"object"==typeof e&&null!==e&&Object.prototype.hasOwnProperty.call(e,"uri")&&"string"==typeof e.uri||"number"==typeof e||"web"===aa.A.OS&&"string"==typeof e&&(e.startsWith("data:image")||/\.(bmp|jpg|jpeg|png|gif|svg)$/.test(e)),Hs=e=>"object"==typeof e&&null!==e&&Object.prototype.hasOwnProperty.call(e,"uri")&&"string"==typeof e.uri?e.uri:e,qs=({source:e,color:t,size:n,theme:r,testID:i,...o})=>{const a=as(r),s="object"==typeof e&&e.direction&&e.source?"auto"===e.direction?ta.A.getConstants().isRTL?"rtl":"ltr":e.direction:null,l="object"==typeof e&&e.direction&&e.source?e.source:e,c=t||(a.isV3?a.colors.onSurface:a.colors.text);return Us(l)?u.createElement(zs.A,Vs({},o,{testID:i,source:l,style:[{transform:[{scaleX:"rtl"===s?-1:1}]},{width:n,height:n,tintColor:t,resizeMode:"contain"}]},ds,{accessibilityIgnoresInvertColors:!0})):"string"==typeof l?u.createElement(vs,null,(({icon:e})=>null==e?void 0:e({name:l,color:c,size:n,direction:s,testID:i}))):"function"==typeof l?l({color:c,size:n,direction:s,testID:i}):null},Gs=e=>e instanceof uo.A.Value;function Ys(e,t=(e=>null===(e=Ka.colors)||void 0===e?void 0:e.surface)()){if(Gs(e)){const n=[0,1,2,3,8,24];return e.interpolate({inputRange:n,outputRange:n.map((e=>Ws(t,e)))})}return Ws(t,e)}function Ws(e,t=1){let n;return n=t>=1&&t<=24?Qs[t]:t>24?Qs[24]:Qs[1],Fa()(e).mix(Fa()("white"),.01*n).hex()}const Qs={1:5,2:7,3:8,4:9,5:10,6:11,7:11.5,8:12,9:12.5,10:13,11:13.5,12:14,13:14.25,14:14.5,15:14.75,16:15,17:15.12,18:15.24,19:15.36,20:15.48,21:15.6,22:15.72,23:15.84,24:16};var Xs=__webpack_require__(2520),Js=__webpack_require__.n(Xs);const Zs=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"];function Ks(e){const t=(0,u.useRef)(e);return t.current=e,t}function $s(){const e=os();return e.isV3?e.colors.surface:e.dark&&"adaptive"===e.mode?Ys(4,e.colors.surface):e.colors.primary}function el(){const e=os(),t=function(){const e=os(),t=e.dark&&"adaptive"===e.mode?e.colors.surface:e.colors.primary;return Js()(t).isLight()}();return e.isV3?e.colors.onSurfaceVariant:t?"#000":"#fff"}function tl(){const e=os(),t=!Js()(e.colors.primary).isLight();return e.isV3?t&&e.dark?e.colors.onSurface:e.colors.onPrimary:t?"#fff":"#000"}function nl(e,t){return!(t&&t.some((t=>t===e)))}function rl(e){return Math.trunc(e.getTime()/1e3)}function il(e,t){let n=e.getDate(),r=new Date(e.getTime());return r.setDate(1),r.setMonth(r.getMonth()+t),r.setDate(Math.min(n,ol({year:r.getFullYear(),month:r.getMonth()}))),r}function ol({year:e,month:t}){return[31,cl({year:e})?29:28,31,30,31,30,31,31,30,31,30,31][t]}function al({year:e,month:t,startWeekOnMonday:n}){let r=new Date(e,t,1).getDay();return n&&(r=(r+6)%7),r}function sl(e){const t=e?.startDate,n=e?.endDate,r=t instanceof Date?rl(function(e){const t=new Date(e);return t.setUTCHours(0,0,0,0),t}(t)):void 0,i=n instanceof Date?rl(yl(n)):void 0,o=Ks(e?.disabledDates),a=(0,u.useCallback)((e=>function(e,{startUnix:t,endUnix:n}){const r=rl(e);return!(t&&rn)}(e,{startUnix:r,endUnix:i})),[r,i]);return{isDisabled:(0,u.useCallback)((e=>!!o.current&&o.current.some((t=>ll(t,e)))),[o]),isWithinValidRange:a,validStart:t,validEnd:n}}function ll(e,t){return!!t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function cl({year:e}){return e%4==0&&e%100!=0||e%400==0}const ul=46,hl=1200,dl=432e3,fl=new Array(2400);function pl(e,t){const n=fl[e];if(n)return n;const r=function(e,t){const n=e.getFullYear(),r=e.getMonth(),i=ol({year:n,month:r}),o=al({year:n,month:r,startWeekOnMonday:t});return Math.ceil((i+o)/7)}(il(new Date,ml(e)),t);return fl[e]=r,r}function ml(e){return e-hl}function gl(e){if(!e)return hl;const t=vl(new Date,e);return hl+t}function yl(e){const t=new Date(e);return t.setUTCHours(23,59,59,999),t}function vl(e,t){let n=12*(t.getFullYear()-e.getFullYear());return n-=e.getMonth(),n+=t.getMonth(),n}const bl=fr.A.create({flexDirectionRow:{flexDirection:"row"},opacity0:{opacity:0},opacity1:{opacity:1},overflowHidden:{overflow:"hidden"},root:{flex:1}});var Al=__webpack_require__(74848);const xl=fr.A.create({leftRadius:{borderBottomLeftRadius:23,borderTopLeftRadius:23},rightRadius:{borderBottomRightRadius:23,borderTopRightRadius:23},rangeRootBoth:{borderRadius:23}}),wl=(0,u.memo)((function({leftCrop:e,rightCrop:t,inRange:n,selectColor:r}){const i=n&&e&&t,o=n&&(e||t)&&!(e&&t);return n||o?(0,Al.jsx)(pr.A,{pointerEvents:"none",style:[fr.A.absoluteFill,bl.flexDirectionRow,i&&xl.rangeRootBoth,n&&!o?{backgroundColor:r}:null],children:o&&(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsx)(pr.A,{style:[bl.root,t?{backgroundColor:r}:null]}),(0,Al.jsx)(pr.A,{style:[{backgroundColor:r,minWidth:ul,minHeight:ul},e?xl.leftRadius:null,t?xl.rightRadius:null]}),(0,Al.jsx)(pr.A,{style:[bl.root,e?{backgroundColor:r}:null]})]})}):null})),Cl=(0,u.memo)((function(){return(0,Al.jsx)(pr.A,{style:Sl.empty})})),Sl=fr.A.create({button:{width:ul,height:ul,overflow:"hidden",borderRadius:23},day:{flexBasis:0,flex:1,borderRadius:23,width:ul,height:ul,justifyContent:"center",alignItems:"center",borderWidth:1,borderColor:"transparent"},disabled:{opacity:.3},empty:{flex:1,flexBasis:0},root:{flexBasis:0,flex:1,justifyContent:"center",alignItems:"center",position:"relative"}}),El=(0,u.memo)((function(e){const{day:t,month:n,year:r,selected:i,inRange:o,leftCrop:a,rightCrop:s,onPressDate:l,primaryColor:c,selectColor:h,isToday:d,disabled:f,textColorOnPrimary:p,theme:m}=e,g=m.dark?"#fff":"#000",y=i||o&&m.dark?p:g,v=m.isV3?m.colors.primary:y,b=(0,u.useCallback)((()=>{l(new Date(r,n,t))}),[l,r,n,t]);let A,x;m.isV3?(A=i?m.colors.onPrimary:o&&m.dark?m.colors.onPrimaryContainer:m.colors.onSurface,x=d?i?A:m.colors.primary:A):((i||o&&m.dark)&&(A=p),x=A);let w=m?.isV3?m.fonts.bodySmall:m.fonts.medium;return(0,Al.jsxs)(pr.A,{style:[Sl.root,f&&Sl.disabled],children:[(0,Al.jsx)(wl,{inRange:o,leftCrop:a,rightCrop:s,selectColor:h}),(0,Al.jsx)(Es,{testID:`react-native-paper-dates-day-${r}-${n}-${t}`,disabled:f,borderless:!0,onPress:f?void 0:b,style:[Sl.button,{backgroundColor:o?h:void 0}],accessibilityRole:"button",children:(0,Al.jsx)(pr.A,{style:[Sl.day,d?{borderColor:v}:null,i?{backgroundColor:c}:null],children:(0,Al.jsx)(_s,{maxFontSizeMultiplier:1.5,style:[A?{color:x}:void 0,Object.assign({},w)],selectable:!1,children:t})})})]})})),kl=({theme:e,disabled:t})=>{if(e.isV3)return t?e.colors.surfaceDisabled:e.colors.outline},Tl=({theme:e,isMode:t,disabled:n,selected:r,customContainerColor:i})=>{if(e.isV3){if(n&&(t("contained")||t("contained-tonal")))return e.colors.surfaceDisabled;if(void 0!==i)return i;if(t("contained"))return r?e.colors.primary:e.colors.surfaceVariant;if(t("contained-tonal"))return r?e.colors.secondaryContainer:e.colors.surfaceVariant;if(t("outlined")&&r)return e.colors.inverseSurface}if(void 0!==i)return i},Il=({theme:e,iconColor:t,customRippleColor:n})=>n||(e.isV3?Fa()(t).alpha(.12).rgb().string():Fa()(t).alpha(.32).rgb().string());function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var s;const l=as(o),{current:c}=u.useRef(new uo.A.Value(0)),{current:h}=u.useRef(new uo.A.Value(!e&&n?0:1)),d=u.useRef(void 0),{animation:{scale:f}}=l,p=u.useCallback((()=>{uo.A.timing(h,{duration:200*f,toValue:1,isInteraction:!1,useNativeDriver:!0}).start(),d.current&&(c.setValue(0),uo.A.loop(d.current).start())}),[f,h,c]),m=()=>{d.current&&d.current.stop()};u.useEffect((()=>{void 0===d.current&&(d.current=uo.A.timing(c,{duration:2400,easing:Fo.A.linear,useNativeDriver:"web"!==aa.A.OS,toValue:1,isInteraction:!1})),e?p():n?uo.A.timing(h,{duration:200*f,toValue:0,useNativeDriver:!0,isInteraction:!1}).start(m):m()}),[e,h,n,p,f,c]);const g=t||(null===(s=l.colors)||void 0===s?void 0:s.primary),y="string"==typeof r?"small"===r?24:48:r||24,v=Fo.A.bezier(.4,0,.7,1),b={width:y,height:y/2,overflow:"hidden"};return u.createElement(pr.A,Ol({style:[Rl.container,i]},a,{accessible:!0,accessibilityRole:"progressbar",accessibilityState:{busy:e}}),u.createElement(uo.A.View,{style:[{width:y,height:y,opacity:h}],collapsable:!1},[0,1].map((e=>{const t=Array.from(new Array(144),((e,t)=>t/143)),n=Array.from(new Array(144),((t,n)=>{let r=2*n/143;const i=e?345:-165;return r>1&&(r=2-r),`${150*(e?-1:1)*v(r)+i}deg`})),r={width:y,height:y,transform:[{rotate:c.interpolate({inputRange:[0,1],outputRange:["45deg","765deg"]})}]},i={width:y,height:y,transform:[{translateY:e?-y/2:0},{rotate:c.interpolate({inputRange:t,outputRange:n})}]},o=e?{top:y/2}:null,a={width:y,height:y,borderColor:g,borderWidth:y/10,borderRadius:y/2};return u.createElement(uo.A.View,{key:e,style:[Rl.layer]},u.createElement(uo.A.View,{style:r},u.createElement(uo.A.View,{style:[b,o],collapsable:!1},u.createElement(uo.A.View,{style:i},u.createElement(uo.A.View,{style:b,collapsable:!1},u.createElement(uo.A.View,{style:a}))))))}))))},Pl=({color:e,size:t,source:n,theme:r,testID:i="cross-fade-icon"})=>{const o=as(r),[a,s]=u.useState((()=>n)),[l,c]=u.useState(null),{current:h}=u.useRef(new uo.A.Value(1)),{scale:d}=o.animation;a!==n&&(c((()=>a)),s((()=>n))),u.useEffect((()=>{var e,t;(e=>"string"==typeof e||"function"==typeof e||Us(e))(l)&&((e=l)!==(t=a)&&Hs(e)!==Hs(t))&&(h.setValue(1),uo.A.timing(h,{duration:200*d,toValue:0,useNativeDriver:!0}).start())}),[a,l,h,d]);const f=h,p=l?h.interpolate({inputRange:[0,1],outputRange:[1,0]}):1,m=h.interpolate({inputRange:[0,1],outputRange:["-90deg","0deg"]}),g=l?h.interpolate({inputRange:[0,1],outputRange:["0deg","-180deg"]}):"0deg";return u.createElement(pr.A,{style:[Dl.content,{height:t,width:t}]},l?u.createElement(uo.A.View,{style:[Dl.icon,{opacity:f,transform:[{rotate:m}]}],testID:`${i}-previous`},u.createElement(qs,{source:l,size:t,color:e,theme:o})):null,u.createElement(uo.A.View,{style:[Dl.icon,{opacity:p,transform:[{rotate:g}]}],testID:`${i}-current`},u.createElement(qs,{source:a,size:t,color:e,theme:o})))},Dl=fr.A.create({content:{alignItems:"center",justifyContent:"center"},icon:{position:"absolute",top:0,left:0,right:0,bottom:0}}),jl=Xa,Bl=Ha.primary0;function Ll(e=0,t=!1){return t?function(e=0){const t=[0,1,2,3,4,5],n=[0,1,2,4,6,8],r=[0,3,6,8,10,12];return e instanceof uo.A.Value?{shadowColor:Bl,shadowOffset:{width:new uo.A.Value(0),height:e.interpolate({inputRange:t,outputRange:n})},shadowOpacity:e.interpolate({inputRange:[0,1],outputRange:[0,.3],extrapolate:"clamp"}),shadowRadius:e.interpolate({inputRange:t,outputRange:r})}:{shadowColor:Bl,shadowOpacity:e?.3:0,shadowOffset:{width:0,height:n[e]},shadowRadius:r[e]}}(e):function(e=0){if(e instanceof uo.A.Value){const t=[0,1,2,3,8,24];return{shadowColor:jl,shadowOffset:{width:new uo.A.Value(0),height:e.interpolate({inputRange:t,outputRange:[0,.5,.75,2,7,23]})},shadowOpacity:e.interpolate({inputRange:[0,1],outputRange:[0,.24],extrapolate:"clamp"}),shadowRadius:e.interpolate({inputRange:t,outputRange:[0,.75,1.5,3,8,24]})}}{if(0===e)return{};let t,n;switch(e){case 1:t=.5,n=.75;break;case 2:t=.75,n=1.5;break;default:t=e-1,n=e}return{shadowColor:jl,shadowOffset:{width:0,height:t},shadowOpacity:.24,shadowRadius:n}}}(e)}function Fl(e,...t){const n=t.map((()=>[])),r=[];e:for(const i of Object.entries(e)){for(let e=0;eObject.fromEntries(e)))}function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{elevation:i=4}=fr.A.flatten(e)||{},{dark:o,mode:a,colors:s}=as(t);return u.createElement(uo.A.View,Nl({ref:r},n,{style:[{backgroundColor:o&&"adaptive"===a?Ys(i,null==s?void 0:s.surface):null==s?void 0:s.surface},i?Ll(i):null,e]}))})),zl=["position","alignSelf","top","right","bottom","left","start","end","flex","flexShrink","flexGrow","width","height","transform","opacity"],Vl="#000",Ul=[{shadowOpacity:.15,height:[0,1,2,4,6,8],shadowRadius:[0,3,6,8,10,12]},{shadowOpacity:.3,height:[0,1,1,1,2,4],shadowRadius:[0,1,2,3,3,4]}],Hl=[0,1,2,3,4,5];function ql(e,t){return Gs(e)?{shadowColor:Vl,shadowOpacity:e.interpolate({inputRange:[0,1],outputRange:[0,Ul[t].shadowOpacity],extrapolate:"clamp"}),shadowOffset:{width:0,height:e.interpolate({inputRange:Hl,outputRange:Ul[t].height})},shadowRadius:e.interpolate({inputRange:Hl,outputRange:Ul[t].shadowRadius})}:{shadowColor:Vl,shadowOpacity:e?Ul[t].shadowOpacity:0,shadowOffset:{width:0,height:Ul[t].height[e]},shadowRadius:Ul[t].shadowRadius[e]}}const Gl=bs((({elevation:e,style:t,backgroundColor:n,testID:r,children:i,mode:o="elevated",...a},s)=>{const[l,c]=u.useMemo((()=>{const r=fr.A.flatten(t)||{},[i,a,s]=Fl(r,(e=>zl.includes(e)||e.startsWith("margin")),(e=>e.startsWith("border")&&e.endsWith("Radius"))),l=r.backgroundColor||n,c="elevated"===o;return[{...c&&ql(e,0),...a,...s,backgroundColor:l},{...c&&ql(e,1),...i,...s,flex:r.height||r.flex?1:void 0,backgroundColor:l}]}),[t,e,n,o]);return u.createElement(uo.A.View,{ref:s,style:l,testID:`${r}-outer-layer`},u.createElement(uo.A.View,Nl({},a,{style:c,testID:r}),i))})),Yl=bs((({elevation:e=1,children:t,theme:n,style:r,testID:i="surface",mode:o="elevated",...a},s)=>{const l=as(n);if(!l.isV3)return u.createElement(_l,Nl({},a,{theme:l,style:r,ref:s}),t);const{colors:c}=l,h=[0,1,2,3,4,5],d=Gs(e)?e.interpolate({inputRange:h,outputRange:h.map((e=>{var t;return null===(t=c.elevation)||void 0===t?void 0:t[`level${e}`]}))}):null===(f=c.elevation)||void 0===f?void 0:f[`level${e}`];var f;const p="elevated"===o;if("web"===aa.A.OS){const{pointerEvents:n="auto"}=a;return u.createElement(uo.A.View,Nl({},a,{pointerEvents:n,ref:s,testID:i,style:[{backgroundColor:d},e&&p?Ll(e,l.isV3):null,r]}),t)}if("android"===aa.A.OS){const n=[0,3,6,9,12,15],o=()=>Gs(e)?e.interpolate({inputRange:h,outputRange:n}):n[e],{margin:l,padding:c,transform:f,borderRadius:m}=fr.A.flatten(r)||{},g={margin:l,padding:c,transform:f,borderRadius:m},y=[{backgroundColor:d},r];return u.createElement(uo.A.View,Nl({},a,{testID:i,ref:s,style:[{backgroundColor:d,transform:f},g,y,p&&{elevation:o()}]}),t)}return u.createElement(Gl,Nl({},a,{ref:s,elevation:e,backgroundColor:d,style:r,testID:i,mode:o}),t)})),Wl=Yl;function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const b=as(f),{isV3:A}=b,x=c?Pl:qs,{iconColor:w,rippleColor:C,backgroundColor:S,borderColor:E}=(({theme:e,disabled:t,mode:n,selected:r,customIconColor:i,customContainerColor:o,customRippleColor:a})=>{const s={theme:e,isMode:e=>n===e,disabled:t,selected:r},l=(({theme:e,isMode:t,disabled:n,selected:r,customIconColor:i})=>e.isV3?n?e.colors.onSurfaceDisabled:void 0!==i?i:t("contained")?r?e.colors.onPrimary:e.colors.primary:t("contained-tonal")?r?e.colors.onSecondaryContainer:e.colors.onSurfaceVariant:t("outlined")?r?e.colors.inverseOnSurface:e.colors.onSurfaceVariant:r?e.colors.primary:e.colors.onSurfaceVariant:void 0!==i?i:e.colors.text)({...s,customIconColor:i});return{iconColor:l,backgroundColor:Tl({...s,customContainerColor:o}),rippleColor:Il({theme:e,iconColor:l,customRippleColor:a}),borderColor:kl({theme:e,disabled:t})}})({theme:b,disabled:a,selected:l,mode:h,customIconColor:t,customContainerColor:n,customRippleColor:r}),k=A?i+16:1.5*i,{borderWidth:T=(A&&"outlined"===h&&!l?1:0),borderRadius:I=k/2}=fr.A.flatten(d)||{},O={borderWidth:T,borderRadius:I,borderColor:E};return u.createElement(Wl,Ql({ref:v,testID:`${p}-container`,style:[{backgroundColor:S,width:k,height:k},Jl.container,O,!A&&a&&Jl.disabled,d]},A&&{elevation:0}),u.createElement(Es,Ql({borderless:!0,centered:!0,onPress:s,rippleColor:C,accessibilityLabel:o,style:[Jl.touchable,g],accessibilityTraits:a?["button","disabled"]:"button",accessibilityComponentType:"button",accessibilityRole:"button",accessibilityState:{disabled:a},disabled:a,hitSlop:Es.supported?{top:10,left:10,bottom:10,right:10}:{top:6,left:6,bottom:6,right:6},testID:p},y),m?u.createElement(Ml,{size:i,color:w}):u.createElement(x,{color:w,source:e,size:i})))})),Jl=fr.A.create({container:{overflow:"hidden",margin:6,elevation:0},touchable:{flexGrow:1,justifyContent:"center",alignItems:"center"},disabled:{opacity:.32}}),Zl=Xl,Kl=fr.A.create({dayName:{alignItems:"center",flex:1},dayNameLabel:{fontSize:14,opacity:.7}}),$l=(0,u.memo)((function({label:e}){const t=os();let n=t?.isV3?t.fonts.bodySmall:t.fonts.medium;return(0,Al.jsx)(pr.A,{style:Kl.dayName,children:(0,Al.jsx)(_s,{maxFontSizeMultiplier:1.5,style:[Kl.dayNameLabel,Object.assign({},n,{color:t.colors.onSurface})],selectable:!1,children:e})})})),ec=fr.A.create({dayNames:{alignItems:"center",backgroundColor:"#fff",flexDirection:"row",height:44}}),tc=(0,u.memo)((function({disableWeekDays:e,locale:t,startWeekOnMonday:n}){const r=os(),i=(0,u.useMemo)((()=>{const e=[new Date(2020,7,2),new Date(2020,7,3),new Date(2020,7,4),new Date(2020,7,5),new Date(2020,7,6),new Date(2020,7,7),new Date(2020,7,8)];n&&e.push(e.shift());const r=new Intl.DateTimeFormat(t,{weekday:"narrow"});return e.map((e=>r.format(e)))}),[t,n]);return(0,Al.jsx)(pr.A,{style:[ec.dayNames,{backgroundColor:r.colors.surface}],pointerEvents:"none",children:i.filter(((t,n)=>nl(n,e))).map(((e,t)=>(0,Al.jsx)($l,{label:e},`${e}_${t}`)))})}));let nc={};function rc(e,t,n){const r=e||"en";if(!nc[r])return console.warn(`[react-native-paper-dates] The locale ${e} is not registered, see README!, key: ${t}`),n||t;const i=nc[r][t];return i||console.warn(`[react-native-paper-dates] The locale ${e} is registered, but ${t} is missing`),i||n||t}const ic=fr.A.create({datePickerHeader:{position:"absolute",top:0,right:0,left:0,zIndex:10},buttonContainer:{height:56,marginTop:4,marginBottom:8,flexDirection:"row",alignItems:"center"}}),oc=(0,u.memo)((function({scrollMode:e,onPrev:t,onNext:n,disableWeekDays:r,locale:i,startWeekOnMonday:o}){const a="horizontal"===e,s=os();return(0,Al.jsxs)(pr.A,{style:ic.datePickerHeader,pointerEvents:"box-none",children:[a?(0,Al.jsxs)(pr.A,{style:ic.buttonContainer,pointerEvents:"box-none",children:[(0,Al.jsx)(pr.A,{style:bl.root,pointerEvents:"box-none"}),(0,Al.jsx)(pr.A,{style:{backgroundColor:s.colors.surface},children:(0,Al.jsx)(Zl,{icon:"chevron-left",accessibilityLabel:rc(i,"previous"),onPress:t})}),(0,Al.jsx)(pr.A,{style:{backgroundColor:s.colors.surface},children:(0,Al.jsx)(Zl,{icon:"chevron-right",accessibilityLabel:rc(i,"next"),onPress:n})})]}):null,(0,Al.jsx)(tc,{disableWeekDays:r,locale:i,startWeekOnMonday:o})]})})),ac=fr.A.create({iconWrapper:{padding:8},monthHeader:{height:56,justifyContent:"center",overflow:"hidden"},monthLabel:{fontSize:14,opacity:.7},week:{flexDirection:"row",marginBottom:6,height:ul},yearButton:{alignSelf:"flex-start",marginLeft:6},yearButtonInner:{paddingLeft:16,flexDirection:"row",alignItems:"center"}});function sc(e,t){const n=function(e){return e>hl?e-hl:-(hl-e)}(e),r=function(e,t){if(e===hl)return 0;let n=0;if(e>hl)for(let r=0;r{const e=il(new Date,w),t=e.getFullYear(),n=e.getMonth();return{monthName:new Intl.DateTimeFormat(g,{month:"long"}).format(e),month:n,year:t}}),[w,g]),I=(0,u.useMemo)((()=>{const e=new Date,s=ol({year:T,month:k}),l=al({year:T,month:k,startWeekOnMonday:v});return((e,t)=>Array(pl(e,t)).fill(null).map(((e,t)=>({weekGrid:t,days:Array(7).fill(null)}))))(t,v).map((({days:t,weekGrid:c})=>({weekIndex:c,generatedDays:t.map(((t,u)=>{const h=0===c&&l-u>0,d=7*c+u-l+1,f=d>s,p=new Date(T,k,d),m=ll(p,e);let g=!1,y=C(p),v=!1,b=1===d,A=d===s;const x=1===d,w=d===s;if("range"===n){const e=ll(p,o),t=ll(p,a);v=e||t,g=function(e,{startDate:t,endDate:n}){return!(!t||!n)&&e<=n&&e>=t}(p,{startDate:o,endDate:a}),e&&(b=!0),t&&(A=!0),0!==u||e||(b=!1),6!==u||t||(A=!1),(x&&t||w&&e)&&(g=!1)}else if("multiple"===n){const e=i||[];v=e.some((e=>ll(p,e)));const t=new Date(T,k,d-1),n=new Date(T,k,d+1),r=e.some((e=>ll(e,t))),o=e.some((e=>ll(e,n)));v&&(o&&r&&(g=!0),o&&!r&&(g=!0,b=!0),r&&!o&&(g=!0,A=!0),x&&!o&&(g=!1),w&&!r&&(g=!1),!g||b||A||(v=!1))}else"single"===n&&(v=ll(p,r));return g&&!y&&(y=!1),S(p)||(y=!0),{beforeWeekDay:h,afterWeekDay:f,year:T,month:k,dayOfMonth:d,dayIndex:u,mode:n,selected:v,inRange:g,leftCrop:b,rightCrop:A,isToday:m,disabled:y}}))})))}),[T,k,t,C,n,S,o,a,i,r,v]);let O=A?.isV3?A.fonts.titleSmall:A.fonts.medium;const R=A.isV3?A.colors.onSurfaceVariant:A.colors.onSurface,M=l?"menu-up":"menu-down",P=l?"chevron-up":"chevron-down",D=A.isV3?M:P;return(0,Al.jsxs)(pr.A,{style:{height:lc(h,t,v)},children:[(0,Al.jsx)(pr.A,{style:[ac.monthHeader,b?{marginTop:4,marginBottom:64}:null],children:(0,Al.jsx)(Es,{disabled:!b,onPress:b?()=>s(T):void 0,accessibilityRole:"button",accessibilityLabel:`${E} ${T}`,style:[ac.yearButton,{borderRadius:p}],children:(0,Al.jsxs)(pr.A,{style:[ac.yearButtonInner,{borderRadius:p}],children:[(0,Al.jsxs)(_s,{maxFontSizeMultiplier:1.5,style:[ac.monthLabel,Object.assign({},O,{color:A.isV3?A.colors.onSurfaceVariant:A.colors.onSurface})],selectable:!1,children:[E," ",T]}),(0,Al.jsx)(pr.A,{style:[ac.iconWrapper,b?bl.opacity1:bl.opacity0],children:(0,Al.jsx)(qs,{size:24,color:R,source:D})})]})})}),I.map((({weekIndex:e,generatedDays:t})=>(0,Al.jsx)(pr.A,{style:ac.week,children:t.filter((e=>nl(e.dayIndex,m))).map((e=>e.beforeWeekDay||e.afterWeekDay?(0,Al.jsx)(Cl,{},e.dayIndex):(0,Al.jsx)(El,{theme:A,day:e.dayOfMonth,month:e.month,year:e.year,selected:e.selected,inRange:e.inRange,leftCrop:e.leftCrop,rightCrop:e.rightCrop,onPressDate:c,isToday:e.isToday,selectColor:f,primaryColor:d,disabled:e.disabled,textColorOnPrimary:x},e.dayIndex)))},e)))]})}));function uc({children:e}){const[t,n]=(0,u.useState)(null),r=(0,u.useCallback)((e=>{const r=e.nativeEvent.layout;t&&t.width===r.width&&t.height===r.height||n({width:r.width,height:r.height})}),[t,n]),i=t&&t.height>0&&t.width>0;return(0,Al.jsx)(pr.A,{onLayout:r,style:[bl.overflowHidden,bl.root,i&&t],children:i?e(t):null})}const hc="undefined"!=typeof window?u.useLayoutEffect:u.useEffect,dc=e=>[e-2,e-1,e,e+1,e+2];function fc({width:e,height:t,initialIndex:n,estimatedHeight:r,renderItem:i,startWeekOnMonday:o}){const[a,s]=(0,u.useState)(dc(n)),l=(0,u.useRef)(n),c=(0,u.useRef)(null);hc((()=>{const e=c.current;if(!e)return;const t=sc(l.current,o)-56;e.scrollTo({top:t})}),[c,l]);const h=function(e){const t=(0,u.useRef)(!0),n=(0,u.useRef)(null),r=Ks(e);return(0,u.useEffect)((()=>()=>{t.current=!1,n.current&&window.cancelAnimationFrame(n.current)}),[t,n]),(0,u.useCallback)((e=>{n.current&&window.cancelAnimationFrame(n.current),n.current=window.requestAnimationFrame((function(){t.current&&r.current(e)}))}),[t,n,r])}(s),d=(0,u.useCallback)((e=>{const t=e.currentTarget?.scrollTop;if(0===t)return;const n=function(e,t){let n=hl+Math.ceil(e/360);const r=(sc(n,t)-dl-e)/360;return(r>=1||r<=-1)&&(n-=Math.floor(r)),n}(t-dl,o);l.current!==n&&(l.current=n,h(dc(n)))}),[h,o]);return(0,Al.jsx)("div",{ref:c,style:{height:t,width:e,overflow:"auto"},onScroll:d,children:(0,Al.jsx)("div",{style:{height:2400*r,position:"relative"},children:[0,1,2,3,4].map((e=>(0,Al.jsx)("div",{style:{willChange:"transform",transform:`translateY(${sc(a[e],o)}px)`,left:0,right:0,position:"absolute",height:lc("vertical",a[e],o)},children:i({index:a[e],onPrev:pc,onNext:pc})},e)))})})}const pc=()=>null,mc=(0,u.memo)((function({scrollMode:e,renderItem:t,renderHeader:n,renderFooter:r,selectedYear:i,initialIndex:o,startWeekOnMonday:a}){const s="horizontal"===e,[l,c]=(0,u.useState)(o),h=(0,u.useCallback)((()=>{c((e=>e-1))}),[c]),d=(0,u.useCallback)((()=>{c((e=>e+1))}),[c]),f={index:l,onPrev:h,onNext:d};return function(e,{selectedYear:t,currentIndexRef:n}){const r=Ks(e);(0,u.useEffect)((()=>{if(t){const e=n.current||0,i=il(new Date,ml(e));i.setFullYear(t);const o=vl(new Date,i),a=hl+o;e!==a&&r.current(a)}}),[n,r,t])}((e=>{e&&c(e)}),{selectedYear:i,currentIndexRef:Ks(l)}),(0,Al.jsxs)(Al.Fragment,{children:[n&&n(f),s?(0,Al.jsx)(pr.A,{style:bl.root,children:t({index:l,onPrev:h,onNext:d})}):(0,Al.jsx)(uc,{children:({width:e,height:n})=>(0,Al.jsx)(fc,{width:e,height:n,initialIndex:o,estimatedHeight:360,renderItem:t,startWeekOnMonday:a})}),r&&r(f)]})}));function gc({selectedYear:e,selectingYear:t,onPressYear:n,startYear:r,endYear:i}){const o=os(),a=(0,u.useRef)(null),s=(l=isNaN(r)?1800:r,c=isNaN(i)?2200:i,Array(c-l+1).fill(null).map(((e,t)=>l+t)));var l,c;return(0,u.useEffect)((()=>{if(a.current&&e){const t=e-r;a.current.scrollToOffset({offset:t/3*62-62,animated:!1})}}),[a,e,r]),(0,Al.jsx)(pr.A,{style:[fr.A.absoluteFill,yc.root,{backgroundColor:o.colors.surface},t?bl.opacity1:bl.opacity0],pointerEvents:t?"auto":"none",children:(0,Al.jsx)(Kn.A,{ref:a,style:bl.root,data:s,renderScrollComponent:e=>(0,Al.jsx)(Qo.A,Object.assign({},e)),renderItem:({item:t})=>(0,Al.jsx)(vc,{year:t,selected:e===t,onPressYear:n}),keyExtractor:e=>`${e}`,numColumns:3})})}const yc=fr.A.create({root:{flex:1,top:56,zIndex:100},year:{flex:1,marginLeft:16,marginRight:16,height:62,justifyContent:"center"},yearButton:{borderRadius:23,overflow:"hidden"},yearInner:{borderRadius:23,height:46,alignItems:"center",justifyContent:"center"},yearLabel:{fontSize:16}}),vc=(0,u.memo)((function({year:e,selected:t,onPressYear:n}){const r=os();let i=r?.isV3?r.fonts.bodyLarge:r.fonts.medium;return(0,Al.jsx)(pr.A,{style:yc.year,children:(0,Al.jsx)(Es,{onPress:()=>n(e),accessibilityRole:"button",accessibilityLabel:String(e),style:yc.yearButton,children:(0,Al.jsx)(pr.A,{style:[yc.yearInner,t?{backgroundColor:r.colors.primary}:null],children:(0,Al.jsx)(_s,{maxFontSizeMultiplier:1.5,style:[yc.yearLabel,t?{color:r.isV3?r.colors.onPrimary:"#fff"}:{color:r.isV3?r.colors.onSurfaceVariant:r.colors.onSurface},Object.assign({},i)],selectable:!1,children:e})})})})})),bc=(0,u.memo)((function(e){const{locale:t,mode:n,onChange:r,startDate:i,endDate:o,date:a,disableWeekDays:s,startYear:l,endYear:c,dates:h,validRange:d,dateMode:f,startWeekOnMonday:p}=e,m="range"===n||"multiple"===n?"vertical":"horizontal",g=i||a||h?.[0],y=os(),[v,b]=(0,u.useState)(void 0),[A,x]=(0,u.useState)(!1),w=Ks(i),C=Ks(o),S=Ks(r),E=Ks(h),k=(0,u.useCallback)((e=>{b(e),x((e=>!e))}),[x]),T=(0,u.useCallback)((e=>{if("single"===n)S.current({date:"start"===f?e:yl(e)});else if("range"===n){const t=w.current,n=C.current;let r=!0;t&&!n&&rl(e)>=rl(t)&&(r=!1),S.current({startDate:r?e:t,endDate:r?void 0:yl(e)})}else if("multiple"===n){E.current=E.current||[];const t=E.current.some((t=>ll(t,e))),n=t?E.current.filter((t=>!ll(t,e))):[...E.current,e];n.sort(((e,t)=>e.getTime()-t.getTime())),S.current({dates:n,datePressed:e,change:t?"removed":"added"})}}),[n,f,S,w,C,E]),I=(0,u.useMemo)((()=>y.isV3?y.colors.primaryContainer:y.dark?function(e){const t=e.lightness();return e.lightness(t-.1*t)}(Js()(y.colors.primary)).hex():function(e){const t=e.lightness();return e.lightness(t+.9*(100-t))}(Js()(y.colors.primary)).hex()),[y]);return(0,Al.jsxs)(pr.A,{style:bl.root,children:[(0,Al.jsx)(mc,{initialIndex:gl(g),selectedYear:v,scrollMode:m,startWeekOnMonday:p||!1,renderItem:({index:e})=>(0,Al.jsx)(cc,{locale:t,mode:n,validRange:d,index:e,startDate:i,endDate:o,date:a,dates:h,onPressYear:k,selectingYear:A,onPressDate:T,scrollMode:m,primaryColor:y.colors.primary,selectColor:I,roundness:y.roundness,disableWeekDays:s,startWeekOnMonday:p||!1},e),renderHeader:({onPrev:e,onNext:n})=>(0,Al.jsx)(oc,{locale:t,onPrev:e,onNext:n,scrollMode:m,disableWeekDays:s,startWeekOnMonday:p||!1})}),"horizontal"===m?(0,Al.jsx)(gc,{selectedYear:v,selectingYear:A,onPressYear:k,startYear:l||1800,endYear:c||2200}):null]})}));var Ac=__webpack_require__(36430),xc=__webpack_require__(29359),wc=__webpack_require__(32773);function Cc({collapsed:e,calendar:t,calendarEdit:n}){const r=os(),i=(0,u.useRef)(new uo.A.Value(e?1:0));return(0,u.useEffect)((()=>{uo.A.timing(i.current,{toValue:e?1:0,duration:250,useNativeDriver:!0}).start()}),[e]),(0,Al.jsxs)(pr.A,{style:bl.root,children:[(0,Al.jsx)(uo.A.View,{pointerEvents:e?"auto":"none",style:[bl.root,{opacity:i.current,transform:[{scaleY:i.current.interpolate({inputRange:[0,1],outputRange:[.85,1]})},{scaleX:i.current.interpolate({inputRange:[0,1],outputRange:[.95,1]})}]}],children:t}),(0,Al.jsx)(uo.A.View,{pointerEvents:e?"none":"auto",style:[Sc.calendarEdit,{backgroundColor:r.colors.surface,opacity:i.current.interpolate({inputRange:[0,1],outputRange:[1,0]}),transform:[{scale:i.current.interpolate({inputRange:[0,1],outputRange:[1,.95]})}]}],children:n})]})}const Sc=fr.A.create({calendarEdit:{position:"absolute",left:0,right:0}}),Ec=["borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],kc=(e,t,n,r)=>{const{isV3:i,dark:o,mode:a,colors:s}=e,l="adaptive"===a;return n||(i?r?e.colors.elevation.level2:s.surface:o&&l?Ys(t,null==s?void 0:s.surface):s.primary)},Tc=({color:e,isDark:t,isV3:n})=>void 0!==e?e:t?Ja:n?void 0:Xa,Ic=56,Oc={small:64,medium:112,large:152,"center-aligned":64},Rc={small:"titleLarge",medium:"headlineSmall",large:"headlineMedium","center-aligned":"titleLarge"},Mc=(e,t=!1)=>u.Children.toArray(e).filter((e=>!!u.isValidElement(e)&&(t?e.props.isLeading:!e.props.isLeading))),Pc=({children:e,isDark:t,shouldCenterContent:n=!1,isV3:r,renderOnly:i,renderExcept:o,mode:a="small",theme:s})=>u.Children.toArray(e).filter((e=>null!=e&&"boolean"!=typeof e)).filter((e=>o?!o.includes(e.type.displayName):e)).filter((e=>i?i.includes(e.type.displayName):e)).map(((e,i)=>{if(!u.isValidElement(e)||!["Appbar.Content","Appbar.Action","Appbar.BackAction","Tooltip"].includes(e.type.displayName))return e;const o={theme:s,color:Tc({color:e.props.color,isDark:t,isV3:r})};return"Appbar.Content"===e.type.displayName&&(o.mode=a,o.style=[r?0===i&&!n&&Dc.v3Spacing:0!==i&&Dc.v2Spacing,n&&Dc.centerAlignedContent,e.props.style],o.color),u.cloneElement(e,o)})),Dc=fr.A.create({centerAlignedContent:{alignItems:"center"},v2Spacing:{marginLeft:8},v3Spacing:{marginLeft:12}});function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const m=as(d),{isV3:g,colors:y}=m,v=e||(g?y.onSurface:Ja),b=Fa()(v).alpha(.7).rgb().string(),A={small:Lc.v3DefaultContainer,medium:Lc.v3MediumContainer,large:Lc.v3LargeContainer,"center-aligned":Lc.v3DefaultContainer},x=Rc[h],w={pointerEvents:"box-none",style:[Lc.container,g&&A[h],o],testID:f,...p},C=u.createElement(u.Fragment,null,"string"==typeof l?u.createElement(_s,jc({},g&&{variant:x},{ref:a,style:[{color:v,...g?m.fonts[x]:"ios"===aa.A.OS?m.fonts.regular:m.fonts.medium},!g&&Lc.title,s],numberOfLines:1,accessible:!0,accessibilityRole:r?"none":"web"===aa.A.OS?"heading":"header",accessibilityTraits:"header",testID:`${f}-title-text`,maxFontSizeMultiplier:c}),l):l,!g&&t?u.createElement(_s,{style:[Lc.subtitle,{color:b},n],numberOfLines:1},t):null);return r?u.createElement(ls.A,jc({accessibilityRole:Fc,accessibilityTraits:Fc,accessibilityComponentType:"button",accessbilityState:i?"disabled":null,onPress:r,disabled:i},w),C):u.createElement(pr.A,w,C)};Bc.displayName="Appbar.Content";const Lc=fr.A.create({container:{flex:1,paddingHorizontal:12},v3DefaultContainer:{paddingHorizontal:0},v3MediumContainer:{paddingHorizontal:0,justifyContent:"flex-end",paddingBottom:24},v3LargeContainer:{paddingHorizontal:0,paddingTop:36,justifyContent:"flex-end",paddingBottom:28},title:{fontSize:"ios"===aa.A.OS?17:20},subtitle:{fontSize:"ios"===aa.A.OS?11:14}}),Fc="button",Nc=Bc;function _c(){return _c=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const l=as(a),{isV3:c}=l,h=fr.A.flatten(n),{backgroundColor:d,elevation:f=(c?i?2:0:4),...p}=h||{},m=kc(l,f,d,i),g=e=>c&&r===e;let y=!1;"boolean"==typeof t?y=t:c||(y="transparent"!==m&&("string"!=typeof m||!Fa()(m).isLight()));const v=c&&g("center-aligned");let b=!1,A=!1,x=!1;if(!c&&"ios"===aa.A.OS||v){let t=!1,n=0,r=0;u.Children.forEach(e,(e=>{if(u.isValidElement(e)){const i=!0===e.props.isLeading;e.type===Nc?t=!0:i||!t?n++:r++}})),b=t&&n<2&&r<(c?3:2),A=b&&0===n,x=b&&0===r}const w=c?Vc.v3Spacing:Vc.spacing,C={paddingBottom:null==o?void 0:o.bottom,paddingTop:null==o?void 0:o.top,paddingLeft:null==o?void 0:o.left,paddingRight:null==o?void 0:o.right};return u.createElement(Wl,_c({style:[{backgroundColor:m},Vc.appbar,{height:c?Oc[r]:Ic},C,p,!l.isV3&&{elevation:f}],elevation:f},s),A?u.createElement(pr.A,{style:w}):null,(!c||g("small")||g("center-aligned"))&&u.createElement(u.Fragment,null,Pc({children:e,isDark:y,theme:l,isV3:c,renderOnly:["Appbar.BackAction"],shouldCenterContent:v||b}),Pc({children:[...Mc(e,!0),...Mc(e)],isDark:y,theme:l,isV3:c,renderExcept:["Appbar.BackAction"],shouldCenterContent:v||b})),(g("medium")||g("large"))&&u.createElement(pr.A,{style:[Vc.columnContainer,g("center-aligned")&&Vc.centerAlignedContainer]},u.createElement(pr.A,{style:Vc.controlsRow},Pc({children:e,isDark:y,isV3:c,renderOnly:["Appbar.BackAction"],mode:r}),Pc({children:Mc(e,!0),isDark:y,isV3:c,renderOnly:["Appbar.Action"],mode:r}),u.createElement(pr.A,{style:Vc.rightActionControls},Pc({children:Mc(e),isDark:y,isV3:c,renderExcept:["Appbar","Appbar.BackAction","Appbar.Content","Appbar.Header"],mode:r}))),Pc({children:e,isDark:y,isV3:c,renderOnly:["Appbar.Content"],mode:r})),x?u.createElement(pr.A,{style:w}):null)},Vc=fr.A.create({appbar:{flexDirection:"row",alignItems:"center",paddingHorizontal:4},spacing:{width:48},v3Spacing:{width:52},controlsRow:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},rightActionControls:{flexDirection:"row",flex:1,justifyContent:"flex-end"},columnContainer:{flexDirection:"column",flex:1,paddingTop:8},centerAlignedContainer:{paddingTop:0}}),Uc=zc;function Hc(){return Hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const d=as(s),f=t||(d.isV3?a?d.colors.onSurface:d.colors.onSurfaceVariant:Fa()(Xa).alpha(.54).rgb().string());return u.createElement(Zl,Hc({size:e,onPress:i,iconColor:f,icon:n,disabled:r,accessibilityLabel:o,animated:!0,ref:h,rippleColor:l},c))}));qc.displayName="Appbar.Action";const Gc=qc,Yc=fr.A.create({wrapper:{alignItems:"center",justifyContent:"center"},icon:{resizeMode:"contain"}}),Wc=({size:e,color:t})=>{const n=e-3;return"ios"===aa.A.OS?u.createElement(pr.A,{style:[Yc.wrapper,{width:e,height:e,transform:[{scaleX:ta.A.getConstants().isRTL?-1:1}]}]},u.createElement(zs.A,{source:__webpack_require__(23079),style:[Yc.icon,{tintColor:t,width:n,height:n}],accessibilityIgnoresInvertColors:!0})):u.createElement(ms,{name:"arrow-left",color:t,size:e,direction:ta.A.getConstants().isRTL?"rtl":"ltr"})};function Qc(){return Qc=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.createElement(Gc,Qc({accessibilityLabel:e},t,{icon:Wc,isLeading:!0,ref:n}))));Xc.displayName="Appbar.BackAction";const Jc=Xc;var Zc=__webpack_require__(63384);const Kc={WebkitTransition:"webkitTransitionEnd",Transition:"transitionEnd",MozTransition:"transitionend",MSTransition:"msTransitionEnd",OTransition:"oTransitionEnd"};function $c({children:e,style:t,onInsetsChange:n}){return u.useEffect((()=>{if("undefined"==typeof document)return;const e=function(){const e=document.createElement("div"),{style:t}=e;return t.position="fixed",t.left="0",t.top="0",t.width="0",t.height="0",t.zIndex="-1",t.overflow="hidden",t.visibility="hidden",t.transitionDuration="0.05s",t.transitionProperty="padding",t.transitionDelay="0s",t.paddingTop=ru("top"),t.paddingBottom=ru("bottom"),t.paddingLeft=ru("left"),t.paddingRight=ru("right"),e}();document.body.appendChild(e);const t=()=>{const{paddingTop:t,paddingBottom:r,paddingLeft:i,paddingRight:o}=window.getComputedStyle(e),a={top:t?parseInt(t,10):0,bottom:r?parseInt(r,10):0,left:i?parseInt(i,10):0,right:o?parseInt(o,10):0},s={x:0,y:0,width:document.documentElement.offsetWidth,height:document.documentElement.offsetHeight};n({nativeEvent:{insets:a,frame:s}})};return e.addEventListener(tu(),t),t(),()=>{document.body.removeChild(e),e.removeEventListener(tu(),t)}}),[n]),u.createElement(pr.A,{style:t},e)}let eu=null;function tu(){if(null!=eu)return eu;const e=document.createElement("invalidtype");eu=Kc.Transition;for(const t in Kc)if(void 0!==e.style[t]){eu=Kc[t];break}return eu}let nu=null;function ru(e){return`${function(){if(null!==nu)return nu;const{CSS:e}=window;return nu=e&&e.supports&&e.supports("top: constant(safe-area-inset-top)")?"constant":"env",nu}()}(safe-area-inset-${e})`}function iu(){return iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{nativeEvent:{frame:t,insets:n}}=e;h((e=>!t||t.height===e.height&&t.width===e.width&&t.x===e.x&&t.y===e.y?e:t)),l((e=>e&&n.bottom===e.bottom&&n.left===e.left&&n.right===e.right&&n.top===e.top?e:n))}),[]);return u.createElement($c,iu({style:[lu.fill,r],onInsetsChange:d},i),null!=s?u.createElement(au.Provider,{value:c},u.createElement(ou.Provider,{value:s},e)):null)}const lu=fr.A.create({fill:{flex:1}}),cu="No safe area value available. Make sure you are rendering `` at the top of your app.";function uu(){const e=u.useContext(ou);if(null==e)throw new Error(cu);return e}function hu(){return hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const l=as(o),{isV3:c}=l,h=fr.A.flatten(t),{height:d=(c?Oc[r]:Ic),elevation:f=(c?i?2:0:4),backgroundColor:p,zIndex:m=(c&&i?1:0),...g}=h||{},y=(e=>{const t={};for(const n of Ec){const r=e[n];r&&(t[n]=r)}return t})(g),v=kc(l,f,p,i),{top:b,left:A,right:x}=uu();return u.createElement(pr.A,{testID:`${a}-root-layer`,style:[{backgroundColor:v,zIndex:m,elevation:f,paddingTop:e??b,paddingHorizontal:Math.max(A,x)},y,Ll(f)]},u.createElement(zc,hu({testID:a,style:[{height:d,backgroundColor:v},fu.appbar,g],dark:n},c&&{mode:r},s,{theme:l})))};du.displayName="Appbar.Header";const fu=fr.A.create({appbar:{elevation:0}}),pu=du,mu=Object.assign(Uc,{Content:Nc,Action:Gc,BackAction:Jc,Header:pu}),gu=({dark:e,backgroundColor:t})=>"boolean"==typeof e?e:"transparent"!==t&&"transparent"!==t&&!Fa()(t).isLight(),yu=(e,t=0)=>{if(!e)return{};const n={},[,r]=Fl(e,(e=>e.startsWith("border")&&e.endsWith("Radius")));return Object.keys(r).forEach((r=>{const i=e[r];if("number"==typeof i){const e=i>0?i-t:0;n[r]=e}})),n};function vu(){return vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var P;const D=as(x),j=u.useCallback((e=>n===e),[n]),{roundness:B,isV3:L,animation:F}=D,N=w??!D.isV3,_="web"===aa.A.OS,z=xs({onPress:m,onPressIn:g,onPressOut:y,onLongPress:v}),V=!e&&j(L?"elevated":"contained"),U=L?1:2,H=L?2:8,{current:q}=u.useRef(new uo.A.Value(V?U:0));u.useEffect((()=>{uo.A.timing(q,{toValue:V?U:0,duration:0,useNativeDriver:!0})}),[V,q,U]);const G=fr.A.flatten(A)||{},[,Y]=Fl(G,(e=>e.startsWith("border")&&e.endsWith("Radius"))),W=(L?5:1)*B,Q=L?18:16,{backgroundColor:X,borderColor:J,textColor:Z,borderWidth:K}=(({theme:e,mode:t,customButtonColor:n,customTextColor:r,disabled:i,dark:o})=>{const a=e=>t===e,s=(({isMode:e,theme:t,disabled:n,customButtonColor:r})=>{if(r&&!n)return r;if(t.isV3){if(n)return e("outlined")||e("text")?"transparent":t.colors.surfaceDisabled;if(e("elevated"))return t.colors.elevation.level1;if(e("contained"))return t.colors.primary;if(e("contained-tonal"))return t.colors.secondaryContainer}return e("contained")?n?Fa()(t.dark?Ja:Xa).alpha(.12).rgb().string():t.colors.primary:"transparent"})({isMode:a,theme:e,disabled:i,customButtonColor:n}),l=(({isMode:e,theme:t,disabled:n,customTextColor:r,backgroundColor:i,dark:o})=>{if(r&&!n)return r;if(t.isV3){if(n)return t.colors.onSurfaceDisabled;if("boolean"==typeof o&&(e("contained")||e("contained-tonal")||e("elevated")))return gu({dark:o,backgroundColor:i})?Ja:Xa;if(e("outlined")||e("text")||e("elevated"))return t.colors.primary;if(e("contained"))return t.colors.onPrimary;if(e("contained-tonal"))return t.colors.onSecondaryContainer}return n?Fa()(t.dark?Ja:Xa).alpha(.32).rgb().string():e("contained")?gu({dark:o,backgroundColor:i})?Ja:Xa:t.colors.primary})({isMode:a,theme:e,disabled:i,customTextColor:r,backgroundColor:s,dark:o}),c=(({isMode:e,disabled:t,theme:n})=>{if(n.isV3){if(t&&e("outlined"))return n.colors.surfaceDisabled;if(e("outlined"))return n.colors.outline}return e("outlined")?Fa()(n.dark?Ja:Xa).alpha(.29).rgb().string():"transparent"})({isMode:a,theme:e,disabled:i}),u=(({isMode:e,theme:t})=>t.isV3&&e("outlined")?1:e("outlined")?fr.A.hairlineWidth:0)({isMode:a,theme:e});return{backgroundColor:s,borderColor:c,textColor:l,borderWidth:u}})({customButtonColor:a,customTextColor:s,theme:D,mode:n,disabled:e,dark:r}),$=l||Fa()(Z).alpha(.12).rgb().string(),ee={...Y,borderRadius:Y.borderRadius??W},te={backgroundColor:X,borderColor:J,borderWidth:K,...ee},{color:ne,fontSize:re}=fr.A.flatten(S)||{},ie={color:Z,...L?D.fonts.labelLarge:D.fonts.medium},oe="row-reverse"===(null===(P=fr.A.flatten(C))||void 0===P?void 0:P.flexDirection)?[bu.iconReverse,L&&bu["md3IconReverse"+(t?"Compact":"")],L&&j("text")&&bu["md3IconReverseTextMode"+(t?"Compact":"")]]:[bu.icon,L&&bu["md3Icon"+(t?"Compact":"")],L&&j("text")&&bu["md3IconTextMode"+(t?"Compact":"")]];return u.createElement(Wl,vu({},R,{ref:M,testID:`${E}-container`,style:[bu.button,t&&bu.compact,te,A,!L&&!e&&{elevation:q}]},L&&{elevation:q}),u.createElement(Es,{borderless:!0,background:T,onPress:m,onLongPress:v,onPressIn:z?e=>{if(null==g||g(e),j(L?"elevated":"contained")){const{scale:e}=F;uo.A.timing(q,{toValue:H,duration:200*e,useNativeDriver:_||aa.A.constants.reactNativeVersion.minor<=72}).start()}}:void 0,onPressOut:z?e=>{if(null==y||y(e),j(L?"elevated":"contained")){const{scale:e}=F;uo.A.timing(q,{toValue:U,duration:150*e,useNativeDriver:_||aa.A.constants.reactNativeVersion.minor<=72}).start()}}:void 0,delayLongPress:b,accessibilityLabel:h,accessibilityHint:d,accessibilityRole:f,accessibilityState:{disabled:e},accessible:k,hitSlop:p,disabled:e,rippleColor:$,style:yu(ee,K),testID:E,theme:D,ref:O},u.createElement(pr.A,{style:[bu.content,C]},o&&!0!==i?u.createElement(pr.A,{style:oe,testID:`${E}-icon-container`},u.createElement(qs,{source:o,size:re??Q,color:"string"==typeof ne?ne:Z})):null,i?u.createElement(Ml,{size:re??Q,color:"string"==typeof ne?ne:Z,style:oe}):null,u.createElement(_s,{variant:"labelLarge",selectable:!1,numberOfLines:1,testID:`${E}-text`,style:[bu.label,!L&&bu.md2Label,L&&(j("text")?o||i?bu.md3LabelTextAddons:bu.md3LabelText:bu.md3Label),t&&bu.compactLabel,N&&bu.uppercaseLabel,ie,S],maxFontSizeMultiplier:I},c))))}));function xu(e){const{locale:t,closeIcon:n="close"}=e,r=e.saveLabel||rc(t,"save"),i=el(),o=uu(),a=os();return(0,Al.jsx)(Al.Fragment,{children:(0,Al.jsx)(uo.A.View,{style:[wu.animated,{paddingLeft:o.left,paddingRight:o.right}],children:(0,Al.jsxs)(mu,{style:wu.appbarHeader,children:[(0,Al.jsx)(mu.Action,{icon:n,accessibilityLabel:rc(t,"close"),onPress:e.onDismiss,color:i,testID:"react-native-paper-dates-close"}),(0,Al.jsx)(Au,{textColor:a.isV3?a.colors.primary:i,onPress:e.onSave,disabled:e.saveLabelDisabled??!1,uppercase:e.uppercase??!0,contentStyle:wu.buttonStyle,mode:"text",labelStyle:wu.buttonLabel,testID:"react-native-paper-dates-save",children:r})]})})})}const wu=fr.A.create({animated:{elevation:4},appbarHeader:{elevation:0,backgroundColor:"transparent",justifyContent:"space-between"},buttonStyle:{paddingHorizontal:8},buttonLabel:{flexGrow:1}});function Cu(e){const{onToggle:t,collapsed:n,mode:r,moreLabel:i,uppercase:o,editIcon:a,calendarIcon:s,allowEditing:l}=e,c=os(),u=function(e,t,n){return n||("range"===t?rc(e,"selectRange"):"multiple"===t?rc(e,"selectMultiple"):"single"===t?rc(e,"selectSingle"):"...?")}(e.locale,e.mode,e.label),h=el(),d=l&&"multiple"!==r,f=c.isV3?c.colors.onSurfaceVariant:h,p=c?.isV3?c.fonts.labelMedium:c.fonts.medium,m=c.isV3?"pencil-outline":"pencil",g=c.isV3?"calendar-blank":"calendar",y=a??m,v=s??g;return(0,Al.jsxs)(pr.A,{style:Tu.header,children:[(0,Al.jsxs)(pr.A,{children:[(0,Al.jsx)(_s,{maxFontSizeMultiplier:1.5,style:[Tu.label,Object.assign({color:f},p)],children:o?u.toUpperCase():u}),(0,Al.jsxs)(pr.A,{style:Tu.headerContentContainer,children:["range"===r?(0,Al.jsx)(ku,Object.assign({},e,{color:h})):null,"single"===r?(0,Al.jsx)(Su,Object.assign({},e,{color:h})):null,"multiple"===r?(0,Al.jsx)(Eu,Object.assign({},e,{color:h,moreLabel:i})):null]})]}),(0,Al.jsx)(pr.A,{style:bl.root}),d?(0,Al.jsx)(Zl,{icon:n?y:v,accessibilityLabel:rc(e.locale,n?"typeInDate":"pickDateFromCalendar"),iconColor:c.isV3?c.colors.onSurface:h,onPress:t}):null]})}function Su({state:e,emptyLabel:t=" ",color:n,locale:r}){const i=os(),o=Js()(n).fade(.5).rgb().toString(),a=e.date?i.isV3?i.colors.onSurface:n:o,s=(0,u.useMemo)((()=>new Intl.DateTimeFormat(r,{month:"short",day:"numeric"})),[r]);return(0,Al.jsx)(_s,{maxFontSizeMultiplier:1.5,style:[Tu.text,{color:a}],children:e.date?s.format(e.date):t})}function Eu({state:e,emptyLabel:t=" ",moreLabel:n="more",color:r,locale:i}){const o=os(),a=e.dates?.length||0,s=Js()(r).fade(.5).rgb().toString(),l=a?o.isV3?o.colors.onSurface:r:s,c=(0,u.useMemo)((()=>new Intl.DateTimeFormat(i,{month:"short",day:"numeric"})),[i]);let h=t;return a&&(h=a<=2?e.dates.map((e=>c.format(e))).join(", "):c.format(e.dates[0])+` (+ ${a-1} ${n})`),(0,Al.jsx)(_s,{maxFontSizeMultiplier:1.5,style:[Tu.text,{color:l}],children:h})}function ku({locale:e,state:t,headerSeparator:n="-",startLabel:r="Start",endLabel:i="End",color:o}){const a=os(),s=Js()(o).fade(.5).rgb().toString(),l=a.isV3?a.colors.onSurface:o,c=a.isV3?a.colors.onSurface:o,h=t.startDate?l:s,d=t.endDate?c:s,f=(0,u.useMemo)((()=>new Intl.DateTimeFormat(e,{month:"short",day:"numeric"})),[e]);return(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsx)(_s,{maxFontSizeMultiplier:1.5,style:[Tu.text,{color:h}],children:t.startDate?f.format(t.startDate):r}),(0,Al.jsx)(_s,{maxFontSizeMultiplier:1.5,style:[Tu.headerSeparator,{color:o}],children:n}),(0,Al.jsx)(_s,{maxFontSizeMultiplier:1.5,style:[Tu.text,{color:d}],children:t.endDate?f.format(t.endDate):i})]})}const Tu=fr.A.create({header:{height:75,alignItems:"center",flexDirection:"row",paddingLeft:24,paddingRight:12},headerContentContainer:{flexDirection:"row",marginTop:5},headerSeparator:{color:"rgba(255,255,255,1)",fontSize:25,paddingLeft:6,paddingRight:6},label:{color:"#fff",fontSize:13,letterSpacing:1},text:{color:"#fff",fontSize:25}});let Iu=function(e){return e.Icon="icon",e.Affix="affix",e}({}),Ou=function(e){return e.Right="right",e.Left="left",e}({}),Ru=function(e){return e.Outlined="outlined",e.Flat="flat",e}({});const Mu=24,Pu=(e,t=0,n=0)=>{const r=t>0?t:0;return Math.floor((r-e)/2+n)},Du=(e,t=0,n)=>{const r=t>0?t:e;return t>0?t:r{const{height:t,multiline:n=!1}=e;let r=0;return n&&(r=t&&n?Bu(e):Lu(e)),Math.max(0,r)},Bu=e=>{const{dense:t}=e;return t?10:20},Lu=({topPosition:e,fontSize:t,multiline:n,scale:r,dense:i,offset:o,isAndroid:a})=>{const s=r*t;let l=Math.floor(e/2);return l=l+Math.floor((s-t)/2)-(r<1?o/2:0),n&&a&&(l=Math.min(i?o/2:o,l)),l};function Fu({height:e,paddingTop:t,paddingBottom:n,affixHeight:r}){return t+(e-t-n-r)/2}function Nu({height:e,affixHeight:t,labelYOffset:n}){return(e-t+n)/2}const _u=({theme:e,textColor:t,disabled:n})=>t||(e.isV3?n?e.colors.onSurfaceDisabled:e.colors.onSurface:n?Fa()(e.colors.text).alpha(.54).rgb().string():e.colors.text),zu=({theme:e,disabled:t,error:n,activeUnderlineColor:r,activeOutlineColor:i,mode:o})=>{const a="flat"===o?r:i;return n?e.colors.error:a||(t?e.isV3?e.colors.onSurfaceDisabled:Fa()(e.colors.text).alpha(.54).rgb().string():e.colors.primary)},Vu=({theme:e,disabled:t})=>e.isV3?t?e.colors.onSurfaceDisabled:e.colors.onSurfaceVariant:t?e.colors.disabled:e.colors.placeholder,Uu=({activeColor:e,customSelectionColor:t})=>void 0!==t?t:"android"===aa.A.OS?Fa()(e).alpha(.54).rgb().string():e,Hu=({theme:e,disabled:t})=>{var n,r;return e.isV3?t?Fa()(e.colors.onSurface).alpha(.04).rgb().string():e.colors.surfaceVariant:t?void 0:e.dark?Fa()(null===(n=e.colors)||void 0===n?void 0:n.background).lighten(.24).rgb().string():Fa()(null===(r=e.colors)||void 0===r?void 0:r.background).darken(.06).rgb().string()},qu=({theme:e,disabled:t,underlineColor:n})=>!t&&n?n:e.isV3?t?e.colors.onSurfaceDisabled:e.colors.onSurfaceVariant:t?"transparent":e.colors.disabled,Gu=({theme:e,disabled:t,customOutlineColor:n})=>{const r=0===Fa()(n).alpha();return!t&&n?n:e.isV3?t?e.dark?"transparent":e.colors.surfaceDisabled:e.colors.outline:t?r?n:e.colors.disabled:e.colors.placeholder},Yu=e=>{let t,n,r,i,o,a,s,l,c;return e?(t=16,n=16,r=26,i=16,o=16,a=56,s=16,l=16,c=16):(t=12,n=12,r=30,i=12,o=8,a=64,s=14,l=12,c=8),{AFFIX_OFFSET:t,ICON_OFFSET:n,LABEL_PADDING_TOP:r,LABEL_PADDING_HORIZONTAL:i,FLAT_INPUT_OFFSET:o,MIN_HEIGHT:a,INPUT_PADDING_HORIZONTAL:s,ADORNMENT_OFFSET:l,OUTLINED_INPUT_OFFSET:c,MIN_WIDTH:100}},Wu=u.createContext({textStyle:{fontFamily:"",color:""},topPosition:null,side:Ou.Left}),Qu=({affix:e,side:t,textStyle:n,topPosition:r,onLayout:i,visible:o,paddingHorizontal:a,maxFontSizeMultiplier:s,testID:l,disabled:c})=>u.createElement(Wu.Provider,{value:{side:t,textStyle:n,topPosition:r,onLayout:i,visible:o,paddingHorizontal:a,maxFontSizeMultiplier:s,testID:l,disabled:c}},e),Xu=({text:e,textStyle:t,theme:n,onLayout:r,onPress:i,accessibilityLabel:o=e})=>{const a=as(n),{AFFIX_OFFSET:s}=Yu(a.isV3),{textStyle:l,onLayout:c,topPosition:h,side:d,visible:f,paddingHorizontal:p,maxFontSizeMultiplier:m,testID:g,disabled:y}=u.useContext(Wu),v="number"==typeof p?p:s,b={top:h,[d]:v},A=function({theme:e,disabled:t}){var n;return e.isV3?t?e.colors.onSurfaceDisabled:e.colors.onSurfaceVariant:Fa()(null===(n=e.colors)||void 0===n?void 0:n.text).alpha(e.dark?.7:.54).rgb().string()}({theme:a,disabled:y}),x=u.createElement(Ko.A,{maxFontSizeMultiplier:m,style:[{color:A},l,t],onLayout:r,testID:`${g}-text`},e);return u.createElement(uo.A.View,{style:[Ju.container,b,{opacity:(null==f?void 0:f.interpolate({inputRange:[0,1],outputRange:[1,0]}))||1}],onLayout:c,testID:g},i?u.createElement(ls.A,{onPress:i,accessibilityRole:"button",accessibilityLabel:o},x):x)};Xu.displayName="TextInput.Affix";const Ju=fr.A.create({container:{position:"absolute",justifyContent:"center",alignItems:"center"}}),Zu=Xu;function Ku(){return Ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t{},testID:""}),eh=({icon:e,topPosition:t,side:n,isTextInputFocused:r,forceFocus:i,testID:o,theme:a,disabled:s})=>{const{isV3:l}=as(a),{ICON_OFFSET:c}=Yu(l),h={style:{top:t,[n]:c},isTextInputFocused:r,forceFocus:i,testID:o,disabled:s};return u.createElement($u.Provider,{value:h},e)},th=({icon:e,onPress:t,forceTextInputFocus:n=!0,color:r,theme:i,rippleColor:o,...a})=>{const{style:s,isTextInputFocused:l,forceFocus:c,testID:h,disabled:d}=u.useContext($u),f=u.useCallback((e=>{n&&!l&&c(),null==t||t(e)}),[n,c,l,t]),p=function({theme:e,isTextInputFocused:t,disabled:n,customColor:r}){return"function"==typeof r?r(t):r||(e.isV3?n?e.colors.onSurfaceDisabled:e.colors.onSurfaceVariant:e.colors.text)}({theme:as(i),disabled:d,isTextInputFocused:l,customColor:r});return u.createElement(pr.A,{style:[nh.container,s]},u.createElement(Zl,Ku({icon:e,style:nh.iconButton,size:24,onPress:f,iconColor:p,testID:h,theme:i,rippleColor:o},a)))};th.displayName="TextInput.Icon";const nh=fr.A.create({container:{position:"absolute",width:24,height:24,justifyContent:"center",alignItems:"center"},iconButton:{margin:0}}),rh=th,ih=({parentState:e,error:t,colors:n,activeColor:r,underlineColorCustom:i,hasActiveOutline:o,style:a,theme:s})=>{const{isV3:l}=as(s);let c=e.focused?r:i;t&&(c=null==n?void 0:n.error);const h=l?2:1;return u.createElement(uo.A.View,{testID:"text-input-underline",style:[oh.underline,l&&oh.md3Underline,{backgroundColor:c,transform:[{scaleY:(l?o:e.focused)?h:.5}]},a]})},oh=fr.A.create({underline:{position:"absolute",left:0,right:0,bottom:0,height:2,zIndex:1},md3Underline:{height:1}});function ah(){return ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(t&&u.isValidElement(t)){let r;t.type===Zu?r=Iu.Affix:t.type===rh&&(r=Iu.Icon),n.push({side:e,type:r})}})),n}function lh({adornmentConfig:e,leftAffixWidth:t,rightAffixWidth:n,paddingHorizontal:r,inputOffset:i=0,mode:o,isV3:a}){const{OUTLINED_INPUT_OFFSET:s,ADORNMENT_OFFSET:l}=Yu(a);return e.length?e.map((({type:e,side:a})=>{const c=a===Ou.Left,u=o===Ru.Outlined?l+s:l,h=`padding${ch(a)}`,d=(c?t:n)+("number"==typeof r?r:u),f=e===Iu.Affix,p=`margin${ch(a)}`;return{[p]:f?0:d,[h]:f?d:i}})).reduce(((e,t)=>({...e,...t})),{}):[{}]}const ch=e=>e.charAt(0).toUpperCase()+e.slice(1),uh=({adornmentConfig:e,left:t,right:n,onAffixChange:r,textStyle:i,visible:o,topPosition:a,isTextInputFocused:s,forceFocus:l,paddingHorizontal:c,maxFontSizeMultiplier:h,theme:d,disabled:f})=>e.length?u.createElement(u.Fragment,null,e.map((({type:e,side:p})=>{let m;p===Ou.Left?m=t:p===Ou.Right&&(m=n);const g={side:p,testID:`${p}-${e}-adornment`,isTextInputFocused:s,paddingHorizontal:c,disabled:f};return e===Iu.Icon?u.createElement(eh,ah({},g,{theme:d,key:p,icon:m,topPosition:a[Iu.Icon],forceFocus:l})):e===Iu.Affix?u.createElement(Qu,ah({},g,{key:p,topPosition:a[Iu.Affix][p],affix:m,textStyle:i,onLayout:r[p],visible:o,maxFontSizeMultiplier:h})):null}))):null,hh=e=>{const{labeled:t,wiggle:n,error:r,focused:i,opacity:o,labelLayoutWidth:a,labelLayoutHeight:s,labelBackground:l,label:c,labelError:h,onLayoutAnimatedText:d,onLabelTextLayout:f,hasActiveOutline:p,activeColor:m,placeholderStyle:g,baseLabelTranslateX:y,baseLabelTranslateY:v,font:b,fontSize:A,lineHeight:x,fontWeight:w,placeholderOpacity:C,wiggleOffsetX:S,labelScale:E,topPosition:k,paddingLeft:T,paddingRight:I,backgroundColor:O,roundness:R,placeholderColor:M,errorColor:P,labelTranslationXOffset:D,maxFontSizeMultiplier:j,testID:B,isV3:L,inputContainerLayout:F,scaledLabel:N}=e,{INPUT_PADDING_HORIZONTAL:_}=Yu(L),{width:z}=(0,wc.A)(),V="web"===aa.A.OS,U=T&&I?{paddingLeft:T,paddingRight:I}:{},H={transform:[{translateX:t.interpolate({inputRange:[0,1],outputRange:[y,D||0]})}]},q={...b,fontSize:A,lineHeight:x,fontWeight:w,opacity:t.interpolate({inputRange:[0,1],outputRange:[p?1:0,0]}),transform:[{translateX:n?r.interpolate({inputRange:[0,.5,1],outputRange:[0,S,0]}):0},{translateY:0!==v?t.interpolate({inputRange:[0,1],outputRange:[v,0]}):0},{scale:0!==E?t.interpolate({inputRange:[0,1],outputRange:[E,1]}):t}],...!V&&aa.A.constants.reactNativeVersion.minor>=73&&{transformOrigin:"left"}},G=(F.width+_/2)/(N?E:1),Y=[g,{top:k},{maxWidth:G},q,U||{}],W=h&&P?P:M;return u.createElement(pr.A,{pointerEvents:"none",style:[fr.A.absoluteFill,dh.overflow,dh.labelContainer]},u.createElement(uo.A.View,{pointerEvents:"none",style:[fr.A.absoluteFill,!V&&{width:z},{opacity:o},(V||aa.A.constants.reactNativeVersion.minor<=72)&&H]},u.createElement(pr.A,{style:{width:G}},null==l?void 0:l({labeled:t,labelLayoutWidth:a,labelLayoutHeight:s,labelStyle:q,placeholderStyle:g,baseLabelTranslateX:y,topPosition:k,label:c,backgroundColor:O,roundness:R,maxFontSizeMultiplier:j,testID:B}),u.createElement(Os,{variant:"bodySmall",onLayout:d,onTextLayout:f,style:[Y,{color:m}],numberOfLines:1,maxFontSizeMultiplier:j,testID:`${B}-label-active`},c),u.createElement(Os,{variant:i?"bodyLarge":"bodySmall",style:[Y,{color:W,opacity:C}],numberOfLines:1,maxFontSizeMultiplier:j,testID:`${B}-label-inactive`},c))))},dh=fr.A.create({overflow:{overflow:"hidden"},labelContainer:{zIndex:3}}),fh=u.memo(hh);function ph(){return ph=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.createElement(Wo.A,e),multiline:m=!1,parentState:g,innerRef:y,onFocus:v,forceFocus:b,onBlur:A,onChangeText:x,onLayoutAnimatedText:w,onLabelTextLayout:C,onLeftAffixLayoutChange:S,onRightAffixLayoutChange:E,onInputLayout:k,left:T,right:I,placeholderTextColor:O,testID:R="text-input-flat",contentStyle:M,scaledLabel:P,...D})=>{const j="android"===aa.A.OS,{colors:B,isV3:L,roundness:F}=f,N=L?f.fonts.bodyLarge:f.fonts.regular,_=g.focused||r,{LABEL_PADDING_TOP:z,FLAT_INPUT_OFFSET:V,MIN_HEIGHT:U,MIN_WIDTH:H}=Yu(L),{fontSize:q,lineHeight:G,fontWeight:Y,height:W,paddingHorizontal:Q,textAlign:X,...J}=fr.A.flatten(d)||{},Z=q||16,K=G||("web"===aa.A.OS?1.2*Z:void 0),$=void 0!==Q&&"number"==typeof Q,ee=sh({left:T,right:I});let{paddingLeft:te,paddingRight:ne}=(({adornmentConfig:e,isV3:t})=>{const{LABEL_PADDING_HORIZONTAL:n,ADORNMENT_OFFSET:r,FLAT_INPUT_OFFSET:i}=Yu(t);let o=n,a=n;return e.forEach((({type:e,side:t})=>{e===Iu.Icon&&t===Ou.Left?o=Mu+r+i:t===Ou.Right&&(e===Iu.Affix||e===Iu.Icon)&&(a=Mu+r+i)})),{paddingLeft:o,paddingRight:a}})({adornmentConfig:ee,isV3:L});$&&(te=Q,ne=Q);const{leftLayout:re,rightLayout:ie}=g,oe=lh({adornmentConfig:ee,rightAffixWidth:I&&ie.width||Mu,leftAffixWidth:T&&re.width||Mu,paddingHorizontal:Q,inputOffset:V,mode:Ru.Flat,isV3:L}),{inputTextColor:ae,activeColor:se,underlineColorCustom:le,placeholderColor:ce,errorColor:ue,backgroundColor:he,selectionColor:de}=(({underlineColor:e,activeUnderlineColor:t,customSelectionColor:n,textColor:r,disabled:i,error:o,theme:a})=>{const s={theme:a,disabled:i},l=zu({...s,error:o,activeUnderlineColor:t,mode:"flat"});return{inputTextColor:_u({...s,textColor:r}),activeColor:l,underlineColorCustom:qu({...s,underlineColor:e}),placeholderColor:Vu(s),selectionColor:Uu({activeColor:l,customSelectionColor:n}),errorColor:a.colors.error,backgroundColor:Hu(s)}})({underlineColor:a,activeUnderlineColor:l,customSelectionColor:i,textColor:c,disabled:e,error:r,theme:f}),fe={backgroundColor:he,borderTopLeftRadius:f.roundness,borderTopRightRadius:f.roundness},pe=12/Z,me=16/Z,ge=g.labelLayout.width,ye=g.labelLayout.height,ve=ge/2,be=ye/2,Ae=(ta.A.getConstants().isRTL?1:-1)*(ve-pe*ge/2)+(1-pe)*(ta.A.getConstants().isRTL?-1:1)*te,xe=h?(n?52:40)-24:U-z,we=Du(ye,W,xe),Ce=Pu(ye,we,m&&W||W?0:xe/2);W&&"number"!=typeof W&&console.warn("Currently we support only numbers in height prop");const Se={height:W?+W:null,labelHalfHeight:be,offset:V,multiline:m||null,dense:h||null,topPosition:Ce,fontSize:Z,lineHeight:K,label:n,scale:me,isAndroid:j,styles:fr.A.flatten(h?gh.inputFlatDense:gh.inputFlat)},Ee=ju(Se),ke=(({pad:e,scale:t,multiline:n,label:r,height:i,offset:o,dense:a,fontSize:s,isAndroid:l,styles:c})=>{let u=e,h=u,d=u;const{paddingTop:f,paddingBottom:p}=c,m=t*s;if(!n)return r?{paddingTop:f,paddingBottom:p}:{paddingTop:u,paddingBottom:u};if(r)h=f,d=p,l||(a&&(h+=Math.min(u,m*t)-u/2),a||(h+=t<1?Math.min(o/2,m*t):Math.min(u,m*t)-o/2)),h=Math.floor(h);else{if(i)return{paddingTop:Math.max(0,(i-s)/2),paddingBottom:Math.max(0,(i-s)/2)};l||(a&&(u+=t<1?Math.min(o/2,s/2*t):Math.min(o/2,t)),a||(u+=t<1?Math.min(o,s*t):Math.min(s,o/2*t)),u=Math.floor(u),h=u,d=u)}return{paddingTop:Math.max(0,h),paddingBottom:Math.max(0,d)}})({...Se,pad:Ee}),Te=-be-(Ce+-18),{current:Ie}=u.useRef([new uo.A.Value(0),new uo.A.Value(1)]),Oe=_?g.labeled:Ie[g.labelLayout.measured?1:0],Re=g.displayPlaceholder?O??ce:"transparent",Me=W||(h?n?52:40:U),Pe=we+(W?0:h?24:z),De=(Pe-Mu)/2,je=re.height?Fu({height:Pe,...ke,affixHeight:re.height}):null,Be=ie.height?Fu({height:Pe,...ke,affixHeight:ie.height}):null,Le={label:n,onLayoutAnimatedText:w,onLabelTextLayout:C,placeholderOpacity:Oe,labelError:r,placeholderStyle:gh.placeholder,baseLabelTranslateY:Te,baseLabelTranslateX:Ae,font:N,fontSize:Z,lineHeight:K,fontWeight:Y,labelScale:pe,wiggleOffsetX:4,topPosition:Ce,paddingLeft:j&&ta.A.isRTL?ne:te,paddingRight:j&&ta.A.isRTL?te:ne,hasActiveOutline:_,activeColor:se,placeholderColor:ce,errorColor:ue,roundness:F,maxFontSizeMultiplier:D.maxFontSizeMultiplier,testID:R,contentStyle:M,inputContainerLayout:g.inputContainerLayout,labelTextLayout:g.labelTextLayout,opacity:g.value||g.focused?g.labelLayout.measured?1:0:1,isV3:L},Fe={[Ou.Left]:je,[Ou.Right]:Be},Ne={[Ou.Left]:S,[Ou.Right]:E};let _e={paddingHorizontal:Q,adornmentConfig:ee,forceFocus:b,topPosition:{[Iu.Affix]:Fe,[Iu.Icon]:De},onAffixChange:Ne,isTextInputFocused:g.focused,maxFontSizeMultiplier:D.maxFontSizeMultiplier,disabled:e};return ee.length&&(_e={..._e,left:T,right:I,textStyle:{...N,fontSize:Z,lineHeight:K,fontWeight:Y},visible:g.labeled}),u.createElement(pr.A,{style:[fe,J]},u.createElement(ih,{style:s,hasActiveOutline:_,parentState:g,underlineColorCustom:le,error:r,colors:B,activeColor:se,theme:f}),u.createElement(pr.A,{onLayout:k,style:[gh.labelContainer,{minHeight:Me}]},!j&&m&&!!n&&!e&&u.createElement(pr.A,{testID:"patch-container",pointerEvents:"none",style:[fr.A.absoluteFill,h?gh.densePatchContainer:gh.patchContainer,{backgroundColor:J.backgroundColor||fe.backgroundColor,left:te,right:ne}]}),n?u.createElement(fh,ph({labeled:g.labeled,error:g.error,focused:g.focused,scaledLabel:P,wiggle:Boolean(g.value&&Le.labelError),labelLayoutMeasured:g.labelLayout.measured,labelLayoutWidth:g.labelLayout.width,labelLayoutHeight:g.labelLayout.height},Le)):null,null==p?void 0:p({...D,ref:y,onChangeText:x,placeholder:D.placeholder,editable:!e&&t,selectionColor:de,cursorColor:void 0===o?se:o,placeholderTextColor:Re,onFocus:v,onBlur:A,underlineColorAndroid:"transparent",multiline:m,style:[gh.input,m&&W?{height:Pe}:{},ke,{paddingLeft:te,paddingRight:ne,...N,fontSize:Z,lineHeight:K,fontWeight:Y,color:ae,textAlignVertical:m?"top":"center",textAlign:X||(ta.A.getConstants().isRTL?"right":"left"),minWidth:Math.min(g.labelTextLayout.width+2*V,H)},"web"===aa.A.OS?{outline:"none"}:void 0,oe,M],testID:R})),u.createElement(uh,_e))},gh=fr.A.create({placeholder:{position:"absolute",left:0},labelContainer:{paddingTop:0,paddingBottom:0,flexGrow:1},input:{margin:0,flexGrow:1},inputFlat:{paddingTop:24,paddingBottom:4},inputFlatDense:{paddingTop:22,paddingBottom:2},patchContainer:{height:24,zIndex:2},densePatchContainer:{height:22,zIndex:2}}),yh=({isV3:e,label:t,activeColor:n,backgroundColor:r,hasActiveOutline:i,focused:o,outlineColor:a,roundness:s,style:l})=>u.createElement(pr.A,{testID:"text-input-outline",pointerEvents:"none",style:[vh.outline,!t&&vh.noLabelOutline,{backgroundColor:r,borderRadius:s,borderWidth:(e?i:o)?2:1,borderColor:i?n:a},l]}),vh=fr.A.create({outline:{position:"absolute",left:0,right:0,top:6,bottom:0},noLabelOutline:{top:0}}),bh=({labeled:e,labelLayoutWidth:t,labelLayoutHeight:n,placeholderStyle:r,baseLabelTranslateX:i,topPosition:o,backgroundColor:a,roundness:s,labelStyle:l,maxFontSizeMultiplier:c,testID:h})=>{const d="web"===aa.A.OS,f=e.interpolate({inputRange:[0,.6],outputRange:[1,0]}),p={translateX:e.interpolate({inputRange:[0,1],outputRange:[-i,0]})},m={scaleY:e.interpolate({inputRange:[0,1],outputRange:[.2,1]})},g=[...l.transform,m];return[s>6?u.createElement(uo.A.View,{key:"labelBackground-view",pointerEvents:"none",style:[fr.A.absoluteFill,Ah.view,{backgroundColor:a,maxHeight:Math.max(s/3,2),bottom:Math.max(s,2),opacity:f},(d||aa.A.constants.reactNativeVersion.minor<=72)&&{transform:[p]}]}):null,u.createElement(Os,{key:"labelBackground-text",testID:`${h}-label-background`,style:[r,l,Ah.outlinedLabel,{top:o+1,width:t-r.paddingHorizontal,height:n,backgroundColor:a,opacity:f,transform:g}],numberOfLines:1,maxFontSizeMultiplier:c})]},Ah=fr.A.create({view:{position:"absolute",top:6,left:10,width:12},outlinedLabel:{position:"absolute",left:8,paddingHorizontal:0,color:"transparent"}});function xh(){return xh=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.createElement(Wo.A,e),multiline:g=!1,parentState:y,innerRef:v,onFocus:b,forceFocus:A,onBlur:x,onChangeText:w,onLayoutAnimatedText:C,onLabelTextLayout:S,onLeftAffixLayoutChange:E,onRightAffixLayoutChange:k,onInputLayout:T,onLayout:I,left:O,right:R,placeholderTextColor:M,testID:P="text-input-outlined",contentStyle:D,scaledLabel:j,...B})=>{const L=sh({left:O,right:R}),{colors:F,isV3:N,roundness:_}=p,z=N?p.fonts.bodyLarge:p.fonts.regular,V=y.focused||r,{INPUT_PADDING_HORIZONTAL:U,MIN_HEIGHT:H,ADORNMENT_OFFSET:q,MIN_WIDTH:G}=Yu(N),{fontSize:Y,fontWeight:W,lineHeight:Q,height:X,backgroundColor:J=(null==F?void 0:F.background),textAlign:Z,...K}=fr.A.flatten(f)||{},$=Y||16,ee=Q||("web"===aa.A.OS?1.2*$:void 0),{inputTextColor:te,activeColor:ne,outlineColor:re,placeholderColor:ie,errorColor:oe,selectionColor:ae}=(({activeOutlineColor:e,customOutlineColor:t,customSelectionColor:n,textColor:r,disabled:i,error:o,theme:a})=>{const s={theme:a,disabled:i},l=zu({...s,error:o,activeOutlineColor:e,mode:"outlined"});return{inputTextColor:_u({...s,textColor:r}),activeColor:l,outlineColor:Gu({...s,customOutlineColor:t}),placeholderColor:Vu(s),selectionColor:Uu({activeColor:l,customSelectionColor:n}),errorColor:a.colors.error}})({activeOutlineColor:l,customOutlineColor:s,customSelectionColor:i,textColor:h,disabled:e,error:r,theme:p}),se=n?24:0,le=n?8:0,ce=n?-6:0,ue=12/$,he=16/$,de=y.labelLayout.width,fe=y.labelLayout.height,pe=de/2,me=fe/2,ge=(ta.A.getConstants().isRTL?1:-1)*(pe-ue*de/2-($-12)*ue);let ye=0;const ve=L.some((({side:e,type:t})=>e===Ou.Left&&t===Iu.Icon)),be=L.some((({side:e,type:t})=>e===Ou.Right&&t===Iu.Icon));ve&&(ye=(ta.A.getConstants().isRTL?-1:1)*(Mu+q-(N?0:8)));const Ae=Du(fe,X,(d?48:H)-le),xe=Pu(fe,Ae,le);X&&"number"!=typeof X&&console.warn("Currently we support only numbers in height prop");const we={height:X?+X:null,labelHalfHeight:me,offset:le,multiline:g||null,dense:d||null,topPosition:xe,fontSize:$,lineHeight:ee,label:n,scale:he,isAndroid:"android"===aa.A.OS,styles:fr.A.flatten(d?Ch.inputOutlinedDense:Ch.inputOutlined)},Ce=ju(we),Se=(({pad:e,multiline:t,label:n,scale:r,height:i,fontSize:o,lineHeight:a,dense:s,offset:l,isAndroid:c})=>{const u=a??o,h=r*o;let d=e;return c||!i||t?(!c&&t&&(s&&(d+=n&&r<1?Math.min(l,h/2*r):0),s||(d+=n?r<1?Math.min(l,h*r):Math.min(l/2,h*r):r<1?Math.min(l/2,h*r):0),d=Math.floor(d)),{paddingTop:d,paddingBottom:d}):{paddingTop:Math.max(0,(i-u)/2),paddingBottom:Math.max(0,(i-u)/2)}})({...we,pad:Ce}),Ee=-me-(xe+ce),{current:ke}=u.useRef([new uo.A.Value(0),new uo.A.Value(1)]),Te=V?y.labeled:ke[y.labelLayout.measured?1:0],Ie={position:"absolute",left:0,paddingHorizontal:U},Oe=y.displayPlaceholder?M??ie:"transparent",Re={label:n,onLayoutAnimatedText:C,onLabelTextLayout:S,placeholderOpacity:Te,labelError:r,placeholderStyle:Ie,baseLabelTranslateY:Ee,baseLabelTranslateX:ge,font:z,fontSize:$,lineHeight:ee,fontWeight:W,labelScale:ue,wiggleOffsetX:4,topPosition:xe,hasActiveOutline:V,activeColor:ne,placeholderColor:ie,backgroundColor:"transparent"===J?p.colors.background:J,errorColor:oe,labelTranslationXOffset:ye,roundness:_,maxFontSizeMultiplier:B.maxFontSizeMultiplier,testID:P,contentStyle:D,inputContainerLayout:{width:y.inputContainerLayout.width+(be||ve?U:0)},opacity:y.value||y.focused?y.labelLayout.measured?1:0:1,isV3:N},Me=u.useCallback((e=>{T(e),null==I||I(e)}),[I,T]),Pe=X||(d?48:H),De=Ae+(d?se/2:le),{leftLayout:je,rightLayout:Be}=y,Le=Nu({height:De,affixHeight:je.height||0,labelYOffset:-ce}),Fe=Nu({height:De,affixHeight:Be.height||0,labelYOffset:-ce}),Ne=Nu({height:De,affixHeight:Mu,labelYOffset:-ce}),_e=lh({adornmentConfig:L,rightAffixWidth:R&&Be.width||Mu,leftAffixWidth:O&&je.width||Mu,mode:"outlined",isV3:N}),ze={[Ou.Left]:Le,[Ou.Right]:Fe},Ve={[Ou.Left]:E,[Ou.Right]:k};let Ue={adornmentConfig:L,forceFocus:A,topPosition:{[Iu.Icon]:Ne,[Iu.Affix]:ze},onAffixChange:Ve,isTextInputFocused:y.focused,maxFontSizeMultiplier:B.maxFontSizeMultiplier,disabled:e};return L.length&&(Ue={...Ue,left:O,right:R,textStyle:{...z,fontSize:$,lineHeight:ee,fontWeight:W},visible:y.labeled}),u.createElement(pr.A,{style:K},u.createElement(yh,{isV3:N,style:c,label:n,roundness:_,hasActiveOutline:V,focused:y.focused,activeColor:ne,outlineColor:re,backgroundColor:J}),u.createElement(pr.A,{style:[Ch.labelContainer,{paddingTop:le,minHeight:Pe}]},n?u.createElement(fh,xh({labeled:y.labeled,error:y.error,focused:y.focused,scaledLabel:j,wiggle:Boolean(y.value&&Re.labelError),labelLayoutMeasured:y.labelLayout.measured,labelLayoutWidth:y.labelLayout.width,labelLayoutHeight:y.labelLayout.height},Re,{labelBackground:bh,maxFontSizeMultiplier:B.maxFontSizeMultiplier})):null,null==m?void 0:m({...B,ref:v,onLayout:Me,onChangeText:w,placeholder:B.placeholder,editable:!e&&t,selectionColor:ae,cursorColor:void 0===o?ne:o,placeholderTextColor:Oe,onFocus:b,onBlur:x,underlineColorAndroid:"transparent",multiline:g,style:[Ch.input,!g||g&&X?{height:Ae}:{},Se,{...z,fontSize:$,lineHeight:ee,fontWeight:W,color:te,textAlignVertical:g?"top":"center",textAlign:Z||(ta.A.getConstants().isRTL?"right":"left"),paddingHorizontal:U,minWidth:Math.min(y.labelTextLayout.width+2*U,G)},"web"===aa.A.OS?{outline:"none"}:void 0,_e,D],testID:P})),u.createElement(uh,Ue))},Ch=fr.A.create({labelContainer:{paddingBottom:0,flexGrow:1},input:{margin:0,flexGrow:1},inputOutlined:{paddingTop:8,paddingBottom:8},inputOutlinedDense:{paddingTop:4,paddingBottom:4}}),Sh=e=>Math.round(1e3*e)/1e3;function Eh(){return Eh=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.createElement(Wo.A,e),Th=bs((({mode:e="flat",dense:t=!1,disabled:n=!1,error:r=!1,multiline:i=!1,editable:o=!0,contentStyle:a,render:s=kh,theme:l,...c},h)=>{const d=as(l),f=void 0!==c.value,p=f?c.value:c.defaultValue,{current:m}=u.useRef(new uo.A.Value(p?0:1)),{current:g}=u.useRef(new uo.A.Value(r?1:0)),[y,v]=u.useState(!1),[b,A]=u.useState(!1),[x,w]=u.useState(p),C=f?c.value:x,[S,E]=u.useState({width:33}),[k,T]=u.useState({width:65}),[I,O]=u.useState({measured:!1,width:0,height:0}),[R,M]=u.useState({width:null,height:null}),[P,D]=u.useState({width:null,height:null}),j=u.useRef(void 0),B=u.useRef(null),{scale:L}=d.animation;u.useImperativeHandle(h,(()=>({focus:()=>{var e;return null===(e=B.current)||void 0===e?void 0:e.focus()},clear:()=>{var e;return null===(e=B.current)||void 0===e?void 0:e.clear()},setNativeProps:e=>{var t;return null===(t=B.current)||void 0===t?void 0:t.setNativeProps(e)},isFocused:()=>{var e;return(null===(e=B.current)||void 0===e?void 0:e.isFocused())||!1},blur:()=>{var e;return null===(e=B.current)||void 0===e?void 0:e.blur()},forceFocus:()=>{var e;return null===(e=B.current)||void 0===e?void 0:e.focus()},setSelection:(e,t)=>{var n;return null===(n=B.current)||void 0===n?void 0:n.setSelection(e,t)}}))),u.useEffect((()=>{r?uo.A.timing(g,{toValue:1,duration:150*L,useNativeDriver:!0}).start():uo.A.timing(g,{toValue:0,duration:180*L,useNativeDriver:!0}).start()}),[r,L,g]),u.useEffect((()=>(y||!c.label?c.placeholder&&(j.current=setTimeout((()=>A(!0)),50)):A(!1),()=>{j.current&&clearTimeout(j.current)})),[y,c.label,c.placeholder]),u.useEffect((()=>{m.stopAnimation(),C||y?uo.A.timing(m,{toValue:0,duration:180*L,useNativeDriver:!0}).start():uo.A.timing(m,{toValue:1,duration:150*L,useNativeDriver:!0}).start()}),[y,C,m,L]);const F=u.useCallback((e=>{const t=Sh(e.nativeEvent.layout.height),n=Sh(e.nativeEvent.layout.width);n===R.width&&t===R.height||M({width:n,height:t})}),[R.height,R.width]),N=u.useCallback((e=>{const t=Sh(e.nativeEvent.layout.width),n=Sh(e.nativeEvent.layout.height);t===P.width&&n===P.height||D({width:t,height:n})}),[P.height,P.width]),_=e=>{var t;!n&&o&&(v(!0),null===(t=c.onFocus)||void 0===t||t.call(c,e))},z=e=>{var t;o&&(v(!1),null===(t=c.onBlur)||void 0===t||t.call(c,e))},V=e=>{var t;o&&!n&&(f||w(e),null===(t=c.onChangeText)||void 0===t||t.call(c,e))},U=u.useCallback((e=>{const t=Sh(e.nativeEvent.layout.width),n=Sh(e.nativeEvent.layout.height);t===I.width&&n===I.height||O({width:t,height:n,measured:!0})}),[I.height,I.width]),H=u.useCallback((({nativeEvent:e})=>{E({width:e.lines.reduce(((e,t)=>e+Math.ceil(t.width)),0)})}),[]),q=u.useCallback((({nativeEvent:{layout:e}})=>{T({width:e.width})}),[]),G=u.useCallback((()=>{var e;return null===(e=B.current)||void 0===e?void 0:e.focus()}),[]),{maxFontSizeMultiplier:Y=1.5}=c,W=!(!C&&!y);return"outlined"===e?u.createElement(wh,Eh({dense:t,disabled:n,error:r,multiline:i,editable:o,render:s},c,{theme:d,value:C,parentState:{labeled:m,error:g,focused:y,displayPlaceholder:b,value:C,labelTextLayout:S,labelLayout:I,leftLayout:R,rightLayout:P,inputContainerLayout:k},innerRef:e=>{B.current=e},onFocus:_,forceFocus:G,onBlur:z,onChangeText:V,onLayoutAnimatedText:U,onInputLayout:q,onLabelTextLayout:H,onLeftAffixLayoutChange:F,onRightAffixLayoutChange:N,maxFontSizeMultiplier:Y,contentStyle:a,scaledLabel:W})):u.createElement(mh,Eh({dense:t,disabled:n,error:r,multiline:i,editable:o,render:s},c,{theme:d,value:C,parentState:{labeled:m,error:g,focused:y,displayPlaceholder:b,value:C,labelTextLayout:S,labelLayout:I,leftLayout:R,rightLayout:P,inputContainerLayout:k},innerRef:e=>{B.current=e},onFocus:_,forceFocus:G,onBlur:z,onInputLayout:q,onChangeText:V,onLayoutAnimatedText:U,onLabelTextLayout:H,onLeftAffixLayoutChange:F,onRightAffixLayoutChange:N,maxFontSizeMultiplier:Y,contentStyle:a,scaledLabel:W}))}));Th.Icon=rh,Th.Affix=Zu;const Ih=Th,Oh=["inputButton","onChangeText","onChange","value","mask","disabled"],Rh=["-","/",".","年"," "],Mh=(0,u.forwardRef)((function(e,t){let{inputButton:n,onChangeText:r,onChange:i,value:o,mask:a,disabled:s}=e,l=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,Oh);const[c,h]=(0,u.useState)(o||"");return(0,u.useEffect)((()=>{h(o||"")}),[o]),(0,Al.jsx)(Ih,Object.assign({ref:t},l,{disabled:s,value:c,onChangeText:e=>{const t=function(e){return Rh.find((t=>e.includes(t)))||""}(a),n=a.split(t);let i=e.trim();const o=n[0].toLowerCase()+t+n[1].toLowerCase()+t+n[2].toLowerCase(),s=new RegExp(o.replace(/(\w+)\W(\w+)\W(\w+)/,"^\\s*($1)\\W*($2)?\\W*($3)?([0-9]*).*").replace(/m|d|y/g,"\\d")),l=o.match(/\W/),u=`$1${t}$2${t}$3$4`.replace(new RegExp(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(t),"g"),l??"");c.length>i.length||(i=i.replace(/(^|\W)(?=\d\W)/g,"$10").replace(s,u).replace(/(\W)+/g,"$1")),i.length===a.length&&r&&r(i),h(i)},onChange:e=>{i&&i(e)},maxLength:10,right:n}))}));function Ph(){return Ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const l=as(r),{current:c}=u.useRef(new uo.A.Value(n?1:0));let{current:h}=u.useRef(0);const{scale:d}=l.animation,{maxFontSizeMultiplier:f=1.5}=s;u.useEffect((()=>{n?uo.A.timing(c,{toValue:1,duration:150*d,useNativeDriver:!0}).start():uo.A.timing(c,{toValue:0,duration:180*d,useNativeDriver:!0}).start()}),[n,d,c]);const p=function({theme:e,disabled:t,type:n}){var r;const{colors:i,dark:o}=e;return"error"===n?null==i?void 0:i.error:e.isV3?t?e.colors.onSurfaceDisabled:e.colors.onSurfaceVariant:Fa()(null==e||null===(r=e.colors)||void 0===r?void 0:r.text).alpha(o?.7:.54).rgb().string()}({theme:l,disabled:a,type:t});return u.createElement(Os,Ph({onLayout:e=>{null==i||i(e),h=e.nativeEvent.layout.height},style:[Dh.text,"none"!==o?Dh.padding:{},{color:p,opacity:c,transform:n&&"error"===t?[{translateY:c.interpolate({inputRange:[0,1],outputRange:[-h/2,0]})}]:[]},e],maxFontSizeMultiplier:f},s),s.children)};const Bh=["label","value","onChange","style","locale","validRange","inputMode","withDateFormatInLabel","hasError","hideValidationErrors","onValidationError","modal","inputButton","saveLabel","saveLabelDisabled","uppercase","startYear","endYear","onChangeText","inputEnabled","disableStatusBarPadding","startWeekOnMonday"];function Lh({withDateFormatInLabel:e,inputFormat:t,label:n}){return e?n?`${n} (${t})`:t:n||""}const Fh=fr.A.create({root:{flex:1,flexGrow:1,justifyContent:"center",alignItems:"flex-start",width:"100%"},inputContainer:{flexGrow:1,flexDirection:"row",alignItems:"center",justifyContent:"flex-start",width:"100%"},input:{flexGrow:1,width:"100%"}}),Nh=(0,u.forwardRef)((function(e,t){let{label:n,value:r,onChange:i,style:o,locale:a,validRange:s,inputMode:l,withDateFormatInLabel:c=!0,hasError:h,hideValidationErrors:d,onValidationError:f,modal:p,inputButton:m,saveLabel:g,saveLabelDisabled:y,uppercase:v,startYear:b,endYear:A,onChangeText:x,inputEnabled:w,disableStatusBarPadding:C,startWeekOnMonday:S}=e,E=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,Bh);const k=os(),{formattedValue:T,inputFormat:I,onChangeText:O,error:R}=function({locale:e,value:t,validRange:n,inputMode:r,onChange:i,onValidationError:o}){const a=function({locale:e}){return(0,u.useMemo)((()=>new Intl.DateTimeFormat(e,{month:"2-digit",day:"2-digit",year:"numeric"})),[e])}({locale:e}),s=function({formatter:e,locale:t}){return(0,u.useMemo)((()=>{const n=e.format(new Date(2020,9,1));return n.includes("٢٠٢٠")?n.replace("٢٠٢٠","YYYY").replace("١٠","MM").replace("٠١","DD"):n.replace("2020","pt"===t?"AAAA":"YYYY").replace("10","MM").replace("01","DD")}),[e,t])}({formatter:a,locale:e}),l=t?a.format(t):"",[c,h]=(0,u.useState)(null),{isDisabled:d,isWithinValidRange:f,validStart:p,validEnd:m}=sl(n);return{onChange:i,error:c,formattedValue:l,onChangeText:t=>{const n=s.indexOf("DD"),l=s.indexOf("MM"),c="pt"===e?s.indexOf("AAAA"):s.indexOf("YYYY"),u=Number(t.slice(n,n+2)),g=Number(t.slice(c,c+4)),y=Number(t.slice(l,l+2));if(Number.isNaN(u)||Number.isNaN(g)||Number.isNaN(y)){const t=rc(e,"notAccordingToDateFormat",(()=>"notAccordingToDateFormat"))(s);return h(t),void(o&&o(t))}const v="end"===r?new Date(g,y-1,u,23,59,59):new Date(g,y-1,u);if(d(v)){const t=rc(e,"dateIsDisabled");return h(t),void(o&&o(t))}if(!f(v)){let t=p&&m?[`${rc(e,"mustBeBetween",(()=>"mustBeBetween"))(a.format(p),a.format(m))}`]:[p?rc(e,"mustBeHigherThan",(()=>"mustBeHigherThan"))(a.format(p)):"",m?rc(e,"mustBeLowerThan",(()=>"mustBeLowerThan"))(a.format(m)):""];const n=t.filter((e=>e)).join(" ");return h(t.filter((e=>e)).join(" ")),void(o&&o(n))}h(null),o&&o(null),i(v)},inputFormat:s}}({locale:a,value:r,validRange:s,inputMode:l,onChange:i,onValidationError:f});let M;return void 0!==w&&(M=!w),E.disabled&&(M=E.disabled),(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsxs)(pr.A,{style:Fh.root,children:[(0,Al.jsx)(pr.A,{style:Fh.inputContainer,children:(0,Al.jsx)(Mh,Object.assign({},E,{ref:t,label:Lh({label:n,inputFormat:I,withDateFormatInLabel:c}),value:T,keyboardType:E.keyboardType??"number-pad",mask:I,disabled:M,onChangeText:O,onChange:e=>x&&x(e.nativeEvent.text),keyboardAppearance:E.keyboardAppearance??(k.dark?"dark":"default"),error:!!R&&!d||!!h,style:[Fh.input,o],inputButton:m}))}),R&&!d?(0,Al.jsx)(jh,{type:"error",visible:!!R,children:R}):null]}),p?.({value:r,locale:a,inputMode:l,validRange:s,saveLabel:g,saveLabelDisabled:y,uppercase:v,startYear:b,endYear:A,inputEnabled:w,disableStatusBarPadding:C,startWeekOnMonday:S})]})})),_h=fr.A.create({root:{padding:12},separator:{width:12}}),zh=(0,u.memo)((function({mode:e,state:t,label:n="",startLabel:r="Start",endLabel:i="End",collapsed:o,onChange:a,validRange:s,locale:l,inputEnabled:c,withDateFormatInLabel:h,placeholder:d}){const f=(0,u.useRef)(null),p=(0,u.useRef)(null),m=(0,u.useRef)(null);(0,u.useEffect)((()=>{o&&Sa.A.dismiss();const e=[f.current,p.current].filter((e=>e)),t=[f.current,p.current,m.current].filter((e=>e));o?t.forEach((e=>e.blur())):e.forEach((e=>e.focus()))}),[e,p,m,f,o]);const g=(0,u.useCallback)((()=>{m.current&&m.current.focus()}),[m]),y=(0,u.useCallback)((()=>{}),[]),v=(0,u.useCallback)((()=>{}),[]);return(0,Al.jsxs)(pr.A,{style:_h.root,children:["single"===e?(0,Al.jsx)(Nh,{inputMode:"start",ref:f,label:n,value:t.date,onChange:e=>a(Object.assign({},t,{date:e})),onSubmitEditing:v,validRange:s,locale:l,withModal:!1,autoComplete:"off",inputEnabled:c,withDateFormatInLabel:h,placeholder:d}):null,"range"===e?(0,Al.jsxs)(pr.A,{style:bl.flexDirectionRow,children:[(0,Al.jsx)(Nh,{inputMode:"start",ref:p,label:r,value:t.startDate,onChange:e=>a(Object.assign({},t,{startDate:e})),returnKeyType:"next",onSubmitEditing:g,validRange:s,locale:l,withModal:!1,autoComplete:"off",inputEnabled:c,withDateFormatInLabel:h,placeholder:d}),(0,Al.jsx)(pr.A,{style:_h.separator}),(0,Al.jsx)(Nh,{inputMode:"end",ref:m,label:i,value:t.endDate,onChange:e=>a(Object.assign({},t,{endDate:e})),onSubmitEditing:y,validRange:s,locale:l,withModal:!1,autoComplete:"off",inputEnabled:c,withDateFormatInLabel:h,placeholder:d})]}):null]})}));function Vh({children:e}){const t=$s(),n=uu();return(0,Al.jsx)(uo.A.View,{style:[Uh.animated,{backgroundColor:t,paddingLeft:n.left,paddingRight:n.right}],children:e})}const Uh=fr.A.create({animated:{elevation:4}}),Hh=(0,u.memo)((function({disableSafeTop:e,disableStatusBar:t,statusBarOnTopOfBackdrop:n}){const r=uu(),i=$s(),o=Js()(i).isDark()||n?"light-content":"dark-content",a=n?"transparent":i;return(0,Al.jsxs)(Al.Fragment,{children:[!e&&!n&&(0,Al.jsx)(uo.A.View,{style:[{backgroundColor:a,height:r.top||Ea.A.currentHeight}]}),!t&&(0,Al.jsx)(Ea.A,{barStyle:o,translucent:!0,backgroundColor:"transparent"})]})})),qh=(0,u.memo)((function(e){const{mode:t,onChange:n,onConfirm:r,onDismiss:i,disableSafeTop:o,disableStatusBar:a,disableWeekDays:s,locale:l,validRange:c,dateMode:h,startYear:d,endYear:f,statusBarOnTopOfBackdrop:p,startWeekOnMonday:m}=e,g=os(),y=e,v=!g.isV3,[b,A]=(0,u.useState)({date:y.date,startDate:y.startDate,endDate:y.endDate,dates:y.dates}),[x,w]=(0,u.useState)(!0);(0,u.useEffect)((()=>{A({date:y.date,startDate:y.startDate,endDate:y.endDate,dates:y.dates})}),[y.date,y.startDate,y.endDate,y.dates]);const C=(0,u.useCallback)((e=>{n&&n(e),A((t=>Object.assign({},t,e)))}),[n,A]),S=(0,u.useCallback)((()=>{"single"===t?r({date:b.date}):"range"===t?r({startDate:b.startDate,endDate:b.endDate}):"multiple"===t&&r({dates:b.dates||[]})}),[b,t,r]),E=(0,u.useCallback)((()=>{w((e=>!e))}),[w]);return(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsxs)(Vh,{children:[(0,Al.jsx)(Hh,{disableSafeTop:!!o,disableStatusBar:!!a,statusBarOnTopOfBackdrop:!!p}),(0,Al.jsx)(xu,{locale:l,onSave:S,onDismiss:i,saveLabel:e.saveLabel,saveLabelDisabled:e.saveLabelDisabled??!1,uppercase:e.uppercase??v,closeIcon:e.closeIcon}),(0,Al.jsx)(Cu,{state:b,mode:t,collapsed:x,onToggle:E,headerSeparator:e.headerSeparator,emptyLabel:e.emptyLabel,label:e.label,moreLabel:e.moreLabel,startLabel:e.startLabel,endLabel:e.endLabel,uppercase:e.uppercase??v,locale:l,editIcon:e?.editIcon,calendarIcon:e.calendarIcon,allowEditing:e.allowEditing??!0})]}),(0,Al.jsx)(Cc,{collapsed:x,calendar:(0,Al.jsx)(bc,{locale:l,mode:t,startDate:b.startDate,endDate:b.endDate,date:b.date,onChange:C,disableWeekDays:s,dates:b.dates,validRange:c,dateMode:h,startYear:d,endYear:f,startWeekOnMonday:m}),calendarEdit:(0,Al.jsx)(zh,{mode:t,state:b,label:e.label,startLabel:e.startLabel,endLabel:e.endLabel,collapsed:x,onChange:C,validRange:c,locale:l,inputEnabled:e.inputEnabled,withDateFormatInLabel:e.withDateFormatInLabel,placeholder:e.placeholder})})]})})),Gh=["visible","animationType","disableStatusBar","disableStatusBarPadding","inputEnabled","presentationStyle","statusBarOnTopOfBackdrop"],Yh=fr.A.create({modalContent:{flex:1,width:"100%"},modalContentBig:{maxWidth:400,maxHeight:600,borderRadius:10,width:"100%",overflow:"hidden"},modalRoot:{justifyContent:"center",alignItems:"center",flex:1}}),Wh=(0,u.memo)((function(e){const{visible:t,animationType:n,disableStatusBar:r,disableStatusBarPadding:i,inputEnabled:o,presentationStyle:a,statusBarOnTopOfBackdrop:s}=e,l=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,Gh),c=n||"none",u="pageSheet"===a&&!1,h=os(),d=(0,wc.A)();return(0,Al.jsx)(pr.A,{style:fr.A.absoluteFill,pointerEvents:"box-none",children:(0,Al.jsxs)(Ac.A,{animationType:c,transparent:!u,visible:t,onRequestClose:l.onDismiss,presentationStyle:u?"pageSheet":"overFullScreen",supportedOrientations:Zs,statusBarTranslucent:!0,children:[(0,Al.jsx)(xc.A,{onPress:l.onDismiss,children:(0,Al.jsx)(pr.A,{style:[fr.A.absoluteFill,bl.root,{backgroundColor:h.colors.backdrop}]})}),(0,Al.jsx)(pr.A,{style:[fr.A.absoluteFill,Yh.modalRoot],pointerEvents:"box-none",children:(0,Al.jsx)(pr.A,{style:[Yh.modalContent,{backgroundColor:h.colors.surface},d.width>650?Yh.modalContentBig:null],children:(0,Al.jsx)(qh,Object.assign({},l,{inputEnabled:o,disableSafeTop:i,disableStatusBar:r,statusBarOnTopOfBackdrop:u||s,withDateFormatInLabel:e.withDateFormatInLabel,placeholder:e.placeholder}))})})]})})}));var Qh=__webpack_require__(25470);const Xh=256,Jh="am",Zh="pm",Kh="keyboard",$h="picker",ed={keyboard:"picker",picker:"keyboard"},td={keyboard:"keyboard-outline",picker:"clock-outline"},nd=(e,t)=>t?.[ed[e]]||td?.[ed[e]],rd="minutes",id="hours",od=Math.PI/6,ad=Math.PI/30,sd=2*Math.PI,ld=Math.PI/2;function cd(e,t){let n=e;for(;n<0;)n+=sd;let r=n%t;return r<=t/2?e-r:e-r+t}function ud(e,t){return t?24===e?0:e:e>12?e-12:0===e?e+12:e}function hd(e,t,n){return n?e:0===t&&0!==e?e-12<0?e:e-12:t>=12&&e<12?e+12:e}var dd=__webpack_require__(63272);const fd=fr.A.create({hourInner:{borderRadius:24},hourRoot:{position:"absolute",justifyContent:"center",alignItems:"center",zIndex:20,width:48,height:48,marginLeft:-24,marginTop:-24,borderRadius:24}});function pd(e,t,n,r){let i=0,o=2*Math.PI/n,a=t/(e?4:2.5);return i=-90*Math.PI/180+Math.PI/6,Array(r).fill(!0).map((()=>{let e=Math.round(t/2+a*Math.cos(i)),n=Math.round(t/2+a*Math.sin(i));return i+=o,[e,n]}))}const md=(0,u.memo)((function({is24Hour:e,hours:t}){const n=pd(!1,Xh,12,12),r=pd(!0,Xh,12,12),i=tl();return(0,Al.jsxs)(Al.Fragment,{children:[n.map(((n,r)=>(0,Al.jsx)(pr.A,{pointerEvents:"none",style:[fd.hourRoot,{top:n[1]||0,left:n[0]||0}],children:(0,Al.jsx)(pr.A,{style:fd.hourInner,children:(0,Al.jsx)(_s,{maxFontSizeMultiplier:1.5,style:!e&&r+1===t||t===r+1&&12!==t||r+1===12&&0===t?{color:i}:null,variant:"bodyLarge",selectable:!1,children:e&&r+1===12?"00":r+1})})},r))),e?r.map(((e,n)=>(0,Al.jsx)(pr.A,{pointerEvents:"none",style:[fd.hourRoot,{top:e[1]||0,left:e[0]||0}],children:(0,Al.jsx)(pr.A,{style:fd.hourInner,children:(0,Al.jsx)(_s,{maxFontSizeMultiplier:1.5,selectable:!1,style:[n+13===t||n+13===24&&12===t?{color:i}:null],variant:"bodyLarge",children:n+13===24?"12":n+13})})},n))):null]})}));function gd({focused:e,hours:t,minutes:n}){const r=e===id,i=(0,u.useRef)(new uo.A.Value(r?1:0));return(0,u.useEffect)((()=>{uo.A.timing(i.current,{toValue:r?1:0,duration:250,useNativeDriver:!0}).start()}),[r]),(0,Al.jsxs)(pr.A,{style:fr.A.absoluteFill,children:[(0,Al.jsx)(uo.A.View,{pointerEvents:r?"auto":"none",style:[fr.A.absoluteFill,{opacity:i.current,transform:[{scale:i.current.interpolate({inputRange:[0,1],outputRange:[.95,1]})}]}],children:t}),(0,Al.jsx)(uo.A.View,{pointerEvents:r?"none":"auto",style:[fr.A.absoluteFill,{opacity:i.current.interpolate({inputRange:[0,1],outputRange:[1,0]}),transform:[{scale:i.current.interpolate({inputRange:[0,1],outputRange:[1,.95]})}]}],children:n})]})}const yd=fr.A.create({outerHourRoot:{position:"absolute",justifyContent:"center",alignItems:"center",zIndex:20,width:48,height:48,marginLeft:-24,marginTop:-24,borderRadius:24},outerHourInner:{borderRadius:24}}),vd=(0,u.memo)((function({minutes:e}){const t=function(){let e=0,t=2*Math.PI/12;return e=e=-90*Math.PI/180,Array(12).fill(!0).map((()=>{let n=Math.round(128+102.4*Math.cos(e)),r=Math.round(128+102.4*Math.sin(e));return e+=t,[n,r]}))}(),n=tl();return(0,Al.jsx)(Al.Fragment,{children:t.map(((t,r)=>{const i=5*r,o=0===i;let a=i-1<=e&&i+1>=e;return o&&(a=e>=59||i+1>=e),(0,Al.jsx)(pr.A,{pointerEvents:"none",style:[yd.outerHourRoot,{top:t[1]||0,left:t[0]||0}],children:(0,Al.jsx)(pr.A,{style:yd.outerHourInner,children:(0,Al.jsx)(_s,{maxFontSizeMultiplier:1.5,style:a?{color:n}:void 0,selectable:!1,variant:"bodyLarge",children:o?"00":i})})},r)}))})})),bd=(0,u.createContext)({mode:"AM",setMode:()=>{}});function Ad(){return!0}const xd=fr.A.create({center:{alignItems:"center",justifyContent:"center"},clock:{alignItems:"center",borderRadius:128,height:Xh,justifyContent:"center",position:"relative",width:Xh},endPoint:{borderRadius:24,bottom:-23,height:48,position:"absolute",right:0,width:48},line:{borderRadius:4,height:2,position:"absolute"},middlePoint:{borderRadius:4,height:8,width:8}}),wd=(0,u.memo)((function({hours:e,minutes:t,focused:n,is24Hour:r,onChange:i}){const o=e>=12&&r,a=os(),{mode:s}=(0,u.useContext)(bd),l=(0,u.useRef)(null),c=Ks(e),h=Ks(i),d=Ks(t),f=Ks(n),p=Ks(r),m=Ks(s),g=(0,u.useCallback)(((e,t)=>{let n=e.nativeEvent.locationX,r=e.nativeEvent.locationY,i=function(e,t){const n=128-e,r=128-t;let i=n?Math.atan(r/n):r<0?-ld:ld;return n<0&&(i=2*(ld+i)-i),i}(n,r);if(f.current===id){let e=p.current,o=function(e){return e>=0&&e<=12?Jh:e>12&&e<=24?Zh:void 0}(c.current),a=function(e,t){e=cd(e,od);let n=parseInt(((e-ld)%sd/od).toFixed(),10);return n<0&&(n+=12),n>=12&&(n-=12),t===Jh&&(n<=0?n+=12:n>=12&&(n-=12)),t===Zh&&(n<=0?n+=12:n>12&&(n-=12)),n}(i,o),s=!e&&"PM"===m.current,l=function(e,t){const n=128-e,r=128-t;return Math.sqrt(n*n+r*r)>94?Jh:Zh}(n,r);(s||e&&l===Zh)&&(a+=12),"AM"!==m.current&&!e||12!==a||(a=0),e||"AM"!==m.current||12!==a||(a=0),24===a&&(a=12),(c.current!==a||t)&&h.current({hours:a,minutes:d.current,focused:t?rd:void 0})}else if(f.current===rd){let e=function(e){e=cd(e,ad);let t=parseInt(((e-ld)%sd/ad).toFixed(),10);for(;t<0;)t+=60;for(;t>=60;)t-=60;return t}(i);d.current!==e&&h.current({hours:c.current,minutes:e})}}),[f,p,c,h,d,m]),y=(0,u.useRef)(dd.A.create({onPanResponderGrant:e=>g(e,!1),onPanResponderMove:e=>g(e,!1),onPanResponderRelease:e=>g(e,!0),onStartShouldSetPanResponder:Ad,onStartShouldSetPanResponderCapture:()=>!1,onMoveShouldSetPanResponder:Ad,onMoveShouldSetPanResponderCapture:Ad,onPanResponderTerminationRequest:Ad,onShouldBlockNativeResponder:Ad})).current,v=n===id&&o?33:0,b=n===id?e:t,A=n===id?30:6,x=a.colors.surfaceVariant,w=a.dark?Js()(a.colors.surface).lighten(1.4).hex():Js()(a.colors.surface).darken(.1).hex();return(0,Al.jsxs)(pr.A,Object.assign({ref:l},y.panHandlers,{style:[xd.clock,{backgroundColor:a.isV3?x:w}],cursor:"pointer",children:[(0,Al.jsx)(pr.A,{style:[xd.line,{backgroundColor:a.colors.primary,transform:[{rotate:b*A-90+"deg"},{translateX:64-(n===id&&b>=0&&b<13?0:4)+(n===rd?4:0)-v/2}],width:124-v}],pointerEvents:"none",children:(0,Al.jsx)(pr.A,{style:[xd.endPoint,{backgroundColor:a.colors.primary}]})}),(0,Al.jsx)(pr.A,{style:[fr.A.absoluteFill,xd.center],pointerEvents:"none",children:(0,Al.jsx)(pr.A,{style:[xd.middlePoint,{backgroundColor:a.colors.primary}]})}),(0,Al.jsx)(gd,{focused:n,hours:(0,Al.jsx)(md,{is24Hour:r,hours:e}),minutes:(0,Al.jsx)(vd,{minutes:t})})]}))})),Cd=["value","clockType","pressed","onPress","onChanged","inputType","inputFontSize"],Sd=fr.A.create({root:{alignItems:"center",justifyContent:"center",width:96},input:{width:96}}),Ed=(0,u.forwardRef)((function(e,t){let{value:n,clockType:r,pressed:i,onPress:o,onChanged:a,inputType:s,inputFontSize:l=57}=e,c=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,Cd);const h=os(),[d,f]=(0,u.useState)(!1),[p,m]=(0,u.useState)(`${n}`),g=s===$h?i:d,{color:y,backgroundColor:v}=function(e){const t=os(),n=(0,u.useMemo)((()=>t.dark?e?t.isV3?t.colors.primaryContainer:Js()(t.colors.primary).hex():t.isV3?t.colors.surfaceVariant:Js()(t.colors.surface).lighten(1.4).hex():e?t.isV3?t.colors.secondaryContainer:Js()(t.colors.primary).lighten(1).hex():t.isV3?t.colors.surfaceVariant:Js()(t.colors.surface).darken(.1).hex()),[e,t]),r=(0,u.useMemo)((()=>{if(t.isV3)return e?t.isV3?t.colors.onPrimaryContainer:t.colors.onBackground:t.isV3?t.colors.onSurface:t.colors.onBackground;{const r=t;if(e&&!t.dark){const e=Js()(r.colors.primary);return Js()(n).isDark()&&e.isDark()?"#ffffffff":r.colors.primary}return t.colors.text}}),[e,t,n]);return{backgroundColor:n,color:r}}(g);(0,u.useEffect)((()=>{m(`${n}`)}),[n]);let b=p;return d||(b=1===p.length?`0${p}`:`${p}`),(0,Al.jsxs)(pr.A,{style:[Sd.root,{backgroundColor:v,borderRadius:2*h.roundness,borderColor:h.isV3&&g?h.colors.onPrimaryContainer:void 0,borderWidth:h.isV3&&g?2:0,height:s===Kh?72:80}],children:[(0,Al.jsx)(Wo.A,Object.assign({ref:t,textAlign:"center",style:[Sd.input,{color:y,fontFamily:h?.isV3?h.fonts.titleMedium.fontFamily:h.fonts.medium.fontFamily,fontSize:l,lineHeight:void 0,paddingTop:void 0,paddingBottom:void 0,textAlign:"center"}],maxFontSizeMultiplier:1.5,value:b,maxLength:2,onFocus:()=>f(!0),onBlur:()=>f(!1),keyboardAppearance:h.dark?"dark":"default",keyboardType:"number-pad",onChangeText:e=>{return t=Number(e),m(`${t}`),void(t>=0&&a(Number(t)));var t}},c)),o&&s===$h?(0,Al.jsx)(Es,{style:[fr.A.absoluteFill,bl.overflowHidden,{borderRadius:h.roundness}],rippleColor:Js()(h.colors.onSurface).fade(.7).hex(),onPress:()=>o(r),borderless:!0,children:(0,Al.jsx)(pr.A,{})}):null]})}));function kd({onChange:e,hours:t,inputType:n}){const r=os(),{setMode:i,mode:o}=(0,u.useContext)(bd),a=(0,u.useMemo)((()=>r.isV3?r.colors.outline:Js()(r.dark?Js()(r.colors.surface).lighten(1.2).hex():r.colors.surface).darken(.1).hex()),[r]),s="AM"===o;return(0,Al.jsxs)(pr.A,{style:[Id.root,{borderColor:a,borderRadius:2*r.roundness,height:n===Kh?72:80,marginBottom:"keyboard"===n?16:0}],children:[(0,Al.jsx)(Td,{label:"AM",onPress:()=>{i("AM"),t-12>=0&&e(t-12)},selected:s,disabled:s}),(0,Al.jsx)(pr.A,{style:[Id.switchSeparator,{backgroundColor:a}]}),(0,Al.jsx)(Td,{label:"PM",onPress:()=>{i("PM"),t+12<=24&&e(t+12)},selected:!s,disabled:!s})]})}function Td({label:e,onPress:t,selected:n,disabled:r}){const i=os(),{backgroundColor:o,color:a}=function(e){const t=os();return{backgroundColor:(0,u.useMemo)((()=>t.dark?e?t.isV3?t.colors.tertiaryContainer:Js()(t.colors.primary).hex():t.colors.backdrop:e?t.isV3?t.colors.primaryContainer:Js()(t.colors.primary).lighten(1).hex():t.colors.surface),[e,t]),color:(0,u.useMemo)((()=>e&&!t.dark?t.isV3?t.colors.onSurfaceVariant:t.colors.primary:e&&t.dark?t.isV3?t.colors.onTertiaryContainer:t.colors.background:t.isV3?t.colors.onSurfaceVariant:t.colors.placeholder),[e,t])}}(n);let s=i?.isV3?i.fonts.titleMedium:i.fonts.medium;return(0,Al.jsx)(Es,{onPress:t,style:bl.root,accessibilityLabel:e,accessibilityTraits:r?["button","disabled"]:"button",accessibilityComponentType:"button",accessibilityRole:"button",accessibilityState:{disabled:r},disabled:r,children:(0,Al.jsx)(pr.A,{style:[Id.switchButtonInner,{backgroundColor:o}],children:(0,Al.jsx)(_s,{maxFontSizeMultiplier:1.5,selectable:!1,style:[Object.assign({},s,{color:a})],children:e})})})}const Id=fr.A.create({root:{width:52,borderWidth:1,overflow:"hidden"},switchSeparator:{height:1,width:52},switchButtonInner:{flex:1,alignItems:"center",justifyContent:"center"}}),Od=fr.A.create({betweenDot:{height:12},column:{flexDirection:"column"},dot:{width:7,height:7,borderRadius:3.5},hoursAndMinutesSeparator:{fontSize:65,width:24,alignItems:"center"},inputContainer:{flexDirection:"row",alignItems:"center"},spaceBetweenInputsAndSwitcher:{width:12}}),Rd=(0,u.memo)((function({hours:e,minutes:t,onFocusInput:n,focused:r,inputType:i,onChange:o,is24Hour:a,inputFontSize:s,locale:l}){const c=os(),h=(0,u.useRef)(null),d=(0,u.useRef)(null),f=(0,wc.A)(),p=f.width>f.height,m=Ks(t),g=(0,u.useCallback)((()=>{d.current&&d.current.focus()}),[d]),y=(0,u.useCallback)((()=>{}),[]),v=(0,u.useCallback)((e=>{o({hours:e,minutes:m.current,focused:id})}),[o,m]);return(0,Al.jsxs)(pr.A,{style:[Od.inputContainer,p&&bl.root],children:[(0,Al.jsxs)(pr.A,{style:Od.column,children:[(0,Al.jsx)(Ed,{ref:h,inputFontSize:s,placeholder:"00",value:ud(e,a),clockType:id,pressed:r===id,onPress:n,inputType:i,maxFontSizeMultiplier:1.2,selectionColor:c.dark?Js()(c.colors.primary).darken(.2).hex():c.colors.primary,returnKeyType:"next",onSubmitEditing:g,blurOnSubmit:!1,onChanged:n=>{let r=hd(n,e,a);n>24&&(r=24),o({hours:r,minutes:t})}}),"keyboard"===i?(0,Al.jsx)(_s,{maxFontSizeMultiplier:1.5,variant:"bodySmall",children:rc(l,"hour","Hour")}):null]}),(0,Al.jsxs)(pr.A,{style:[Od.hoursAndMinutesSeparator,{marginBottom:"keyboard"===i?16:0}],children:[(0,Al.jsx)(pr.A,{style:bl.root}),(0,Al.jsx)(pr.A,{style:[Od.dot,{backgroundColor:c?.isV3?c.colors.onSurface:c.colors.text}]}),(0,Al.jsx)(pr.A,{style:Od.betweenDot}),(0,Al.jsx)(pr.A,{style:[Od.dot,{backgroundColor:c?.isV3?c.colors.onSurface:c.colors.text}]}),(0,Al.jsx)(pr.A,{style:bl.root})]}),(0,Al.jsxs)(pr.A,{style:Od.column,children:[(0,Al.jsx)(Ed,{ref:d,inputFontSize:s,placeholder:"00",value:t,clockType:rd,pressed:r===rd,onPress:n,inputType:i,maxFontSizeMultiplier:1.2,selectionColor:c.dark?Js()(c.colors.primary).darken(.2).hex():c.colors.primary,onSubmitEditing:y,onChanged:t=>{let n=t;t>59&&(n=59),o({hours:e,minutes:n})}}),"keyboard"===i?(0,Al.jsx)(_s,{maxFontSizeMultiplier:1.5,variant:"bodySmall",children:rc(l,"minute","Minute")}):null]}),!a&&(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsx)(pr.A,{style:Od.spaceBetweenInputsAndSwitcher}),(0,Al.jsx)(kd,{hours:e,onChange:v,inputType:i})]})]})})),Md=fr.A.create({clockContainer:{paddingTop:36,paddingLeft:12,paddingRight:12},rootLandscape:{flexDirection:"row",alignItems:"center",justifyContent:"center"},rootPortrait:{alignItems:"center",justifyContent:"center"}}),Pd=(0,u.memo)((function({hours:e,minutes:t,onFocusInput:n,focused:r,inputType:i,onChange:o,locale:a,use24HourClock:s,inputFontSize:l}){const c=(0,wc.A)(),h=c.width>c.height,[d,f]=(0,u.useState)(void 0),p=(0,u.useMemo)((()=>void 0!==s?s:new Intl.DateTimeFormat(a,{hour:"2-digit",minute:"2-digit",timeZone:"UTC"}).format(new Date(Date.UTC(2020,1,1,23))).includes("23")),[a,s]);(0,u.useEffect)((()=>{f(e>=12?"PM":"AM")}),[]);const m=(0,u.useCallback)((t=>{t.hours=hd(t.hours,e,p),o(t)}),[o,e,p]);return(0,Al.jsx)(bd.Provider,{value:{mode:d,setMode:f},children:(0,Al.jsxs)(pr.A,{style:h?[Md.rootLandscape,{width:316+(i===$h?Xh:-256)}]:Md.rootPortrait,children:[(0,Al.jsx)(Rd,{inputType:i,inputFontSize:l,hours:e,minutes:t,is24Hour:p,onChange:o,onFocusInput:n,focused:r,locale:a}),i===$h?(0,Al.jsx)(pr.A,{style:Md.clockContainer,children:(0,Al.jsx)(wd,{hours:ud(e,p),minutes:t,focused:r,is24Hour:p,onChange:m})}):null]})})}));function Dd(e){return null==e?(new Date).getMinutes():e}function jd(e){return null==e?(new Date).getHours():e}const Bd=fr.A.create({bottom:{flexDirection:"row",alignItems:"center",padding:8},center:{justifyContent:"center",alignItems:"center",flex:1},inputTypeToggle:{margin:4},labelContainer:{justifyContent:"flex-end",paddingLeft:24,paddingRight:24,paddingTop:16},label:{letterSpacing:1,fontSize:13},modalContent:{shadowColor:"#000",shadowOffset:{width:0,height:5},shadowOpacity:.34,shadowRadius:6.27,elevation:3,minWidth:287,paddingVertical:8},timePickerContainer:{paddingLeft:24,paddingTop:20,paddingBottom:16,paddingRight:24}}),Ld=((0,u.memo)((function({visible:e,onDismiss:t,onConfirm:n,hours:r,minutes:i,label:o="Select time",uppercase:a,cancelLabel:s="Cancel",confirmLabel:l="Ok",animationType:c="none",locale:h,keyboardIcon:d="keyboard-outline",clockIcon:f="clock-outline",use24HourClock:p,inputFontSize:m,defaultInputType:g}){const y=os(),[v,b]=(0,u.useState)(g||$h),[A,x]=(0,u.useState)(id),[w,C]=(0,u.useState)(jd(r)),[S,E]=(0,u.useState)(Dd(i));(0,u.useEffect)((()=>{C(jd(r))}),[C,r]),(0,u.useEffect)((()=>{E(Dd(i))}),[E,i]);const k=(0,u.useCallback)((e=>x(e)),[]),T=(0,u.useCallback)((e=>{e.focused&&x(e.focused),C(e.hours),E(e.minutes)}),[x,C,E]),I=!y.isV3,O=a??I;let R,M,P=o;return R=y.isV3?y.fonts.labelMedium:y?.fonts.medium,v!==Kh||o||(P="Enter time"),M=y.isV3?y.dark?y.colors.elevation.level3:y.colors.surface:y.dark?Ys(10,y.colors.surface):y.colors.surface,(0,Al.jsx)(Ac.A,{animationType:c,transparent:!0,visible:e,onRequestClose:t,presentationStyle:"overFullScreen",supportedOrientations:Zs,statusBarTranslucent:!0,children:(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsx)(xc.A,{onPress:t,children:(0,Al.jsx)(pr.A,{style:[fr.A.absoluteFill,bl.root,{backgroundColor:y.colors?.backdrop}]})}),(0,Al.jsx)(pr.A,{style:[fr.A.absoluteFill,Bd.center],pointerEvents:"box-none",children:(0,Al.jsx)(Qh.A,{style:Bd.center,behavior:"padding",children:(0,Al.jsxs)(uo.A.View,{style:[Bd.modalContent,{backgroundColor:M,borderRadius:y.isV3?28:void 0}],children:[(0,Al.jsx)(pr.A,{style:Bd.labelContainer,children:(0,Al.jsx)(Ko.A,{maxFontSizeMultiplier:1.5,style:[Bd.label,Object.assign({},R,{color:y?.isV3?y.colors.onSurfaceVariant:y.colors.text})],children:O?P.toUpperCase():P})}),(0,Al.jsx)(pr.A,{style:Bd.timePickerContainer,children:(0,Al.jsx)(Pd,{locale:h,inputType:v,use24HourClock:p,inputFontSize:m,focused:A,hours:w,minutes:S,onChange:T,onFocusInput:k})}),(0,Al.jsxs)(pr.A,{style:Bd.bottom,children:[(0,Al.jsx)(Zl,{iconColor:y?.isV3?y.colors.onBackground:y.colors.text,icon:nd(v,{keyboard:d,picker:f}),onPress:()=>{Sa.A.dismiss(),b(ed[v])},size:24,style:Bd.inputTypeToggle,accessibilityLabel:"toggle keyboard"}),(0,Al.jsx)(pr.A,{style:bl.root}),(0,Al.jsx)(Au,{onPress:t,uppercase:O,children:s}),(0,Al.jsx)(Au,{onPress:()=>n({hours:w,minutes:S}),uppercase:O,children:l})]})]})})})]})})})),["withModal","calendarIcon","animationType","presentationStyle"]);(0,u.forwardRef)((function(e,t){let{withModal:n=!0,calendarIcon:r="calendar",animationType:i="none",presentationStyle:o="overFullScreen"}=e,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,Ld);const[s,l]=(0,u.useState)(!1),c=Ks(a.onChange),h=(0,u.useCallback)((()=>{l(!1)}),[l]),d=(0,u.useCallback)((({date:e})=>{l(!1),c.current(e)}),[l,c]);return(0,Al.jsx)(Nh,Object.assign({ref:t},a,{inputButton:n?(0,Al.jsx)(Ih.Icon,{size:a.iconSize??24,icon:r,color:a.iconColor??void 0,forceTextInputFocus:!1,disabled:a.disabled,onPress:()=>l(!0),style:a.iconStyle,testID:`${a.testID||"date-picker"}-icon-button`}):null,modal:({value:e,locale:t,inputMode:r,validRange:l,saveLabel:c,saveLabelDisabled:u,uppercase:f,startYear:p,endYear:m,inputEnabled:g,disableStatusBarPadding:y,startWeekOnMonday:v})=>n?(0,Al.jsx)(Wh,{date:e,mode:"single",visible:s,onDismiss:h,onConfirm:d,locale:t,dateMode:r,validRange:l,saveLabel:c,saveLabelDisabled:u??!1,uppercase:f,startYear:p??1800,endYear:m??2200,inputEnabled:g,disableStatusBarPadding:y??!1,animationType:i,presentationStyle:o,label:a.label,startWeekOnMonday:v,withDateFormatInLabel:a.withDateFormatInLabel,placeholder:a.placeholder}):null}))}));function Fd(e){return e&&e.ownerDocument||document}function Nd(e,t){return function(e){var t=Fd(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}var _d=/([A-Z])/g,zd=/^ms-/;function Vd(e){return function(e){return e.replace(_d,"-$1").toLowerCase()}(e).replace(zd,"-ms-")}var Ud=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const Hd=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(Vd(t))||Nd(e).getPropertyValue(Vd(t));Object.keys(t).forEach((function(i){var o=t[i];o||0===o?function(e){return!(!e||!Ud.test(e))}(i)?r+=i+"("+o+") ":n+=Vd(i)+": "+o+";":e.style.removeProperty(Vd(i))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function qd(e){var t="pageXOffset"===e?"scrollLeft":"scrollTop";return function(n,r){var i=function(e){return"window"in e&&e.window===e?e:"nodeType"in(t=e)&&t.nodeType===document.DOCUMENT_NODE&&e.defaultView||!1;var t}(n);if(void 0===r)return i?i[e]:n[t];i?i.scrollTo(i[e],r):n[t]=r}}const Gd=qd("pageXOffset"),Yd=qd("pageYOffset");function Wd(e){var t=Fd(e),n={top:0,left:0,height:0,width:0},r=t&&t.documentElement;return r&&function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}(r,e)?(void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),n={top:n.top+Yd(r)-(r.clientTop||0),left:n.left+Gd(r)-(r.clientLeft||0),width:n.width,height:n.height}):n}var Qd=__webpack_require__(58168);function Xd(e,t){var n,r={top:0,left:0};if("fixed"===Hd(e,"position"))n=e.getBoundingClientRect();else{var i=t||function(e){for(var t,n=Fd(e),r=e&&e.offsetParent;(t=r)&&"offsetParent"in t&&"HTML"!==r.nodeName&&"static"===Hd(r,"position");)r=r.offsetParent;return r||n.documentElement}(e);n=Wd(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(i)&&(r=Wd(i));var o=String(Hd(i,"borderTopWidth")||0);r.top+=parseInt(o,10)-Yd(i)||0;var a=String(Hd(i,"borderLeftWidth")||0);r.left+=parseInt(a,10)-Gd(i)||0}var s=String(Hd(e,"marginTop")||0),l=String(Hd(e,"marginLeft")||0);return(0,Qd.A)({},n,{top:n.top-r.top-(parseInt(s,10)||0),left:n.left-r.left-(parseInt(l,10)||0)})}const Jd={top:"top",bottom:"top",left:"left",right:"left"},Zd={top:"bottom",bottom:"top",left:"right",right:"left"},Kd={top:"left",left:"top"},$d={top:"height",left:"width"},ef={};let tf="undefined"!=typeof window&&window.visualViewport;function nf(e,t,n,r,i){let o=r.scroll[e],a=r[$d[e]],s=t-i-o,l=t+i-o+n;return s<0?-s:l>a?Math.max(a-l,-s):0}function rf(e){if(ef[e])return ef[e];let[t,n]=e.split(" "),r=Jd[t]||"right",i=Kd[r];Jd[n]||(n="center");let o=$d[r],a=$d[i];return ef[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},ef[e]}function of(e,t,n,r,i,o,a,s){let{placement:l,crossPlacement:c,axis:u,crossAxis:h,size:d,crossSize:f}=r,p={};if(p[h]=e[h],"center"===c?p[h]+=(e[f]-n[f])/2:c!==h&&(p[h]+=e[f]-n[f]),p[h]+=o,l===u){const n=s?a[d]:t[d];p[Zd[u]]=Math.floor(n-e[u]+i)}else p[u]=Math.floor(e[u]+e[d]+i);return p}function af(e,t,n,r,i,o){let{placement:a,axis:s,size:l}=o;return a===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[Zd[s]]-i):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-r[s]-r[Zd[s]]-i)}function sf(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:c,shouldOverlapWithTrigger:u}=e,h=r.offsetParent||document.body,d="BODY"===h.tagName;const f=window.getComputedStyle(h).position;let p=!!f&&"static"!==f,m=d?Wd(n):Xd(n,h);d||(m.top+=parseInt(Hd(n,"marginTop"),10)||0,m.left+=parseInt(Hd(n,"marginLeft"),10)||0);let g=Wd(r);const y=Nd(r).getPropertyValue("transform").match(/matrix\((-?\d*\.?\d+),\s*(-?\d*\.?\d+),\s*(-?\d*\.?\d+),\s*(-?\d*\.?\d+),\s*(-?\d*\.?\d+),\s*(-?\d*\.?\d+)\)/);let v=1,b=1;y&&(v=parseFloat(y[1]),b=parseFloat(y[4]),v&&Number.isFinite(v)||(v=1),b&&Number.isFinite(b)||(b=1));let A=function(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(r);g.width+=A.left+A.right,g.height+=A.top+A.bottom,v&&(g.width=g.width/v),b&&(g.height=g.height/b);let x={top:(w=i).scrollTop,left:w.scrollLeft,width:w.scrollWidth,height:w.scrollHeight};var w;let C=function(e){let t=0,n=0,r=0,i=0,o={};return"BODY"===e.tagName?(t=(null==tf?void 0:tf.width)??document.documentElement.clientWidth,n=(null==tf?void 0:tf.height)??document.documentElement.clientHeight,o.top=Yd(Fd(e).documentElement)||Yd(e),o.left=Gd(Fd(e).documentElement)||Gd(e)):(({width:t,height:n,top:r,left:i}=Wd(e)),o.top=Yd(e),o.left=Gd(e)),{width:t,height:n,scroll:o,top:r,left:i}}(s);return function(e,t,n,r,i,o,a,s,l,c,u,h,d){let f=rf(e),{size:p,crossAxis:m,crossSize:g,placement:y,crossPlacement:v,axis:b}=f,A=of(t,s,n,f,c,u,l,h),x=!1,w=c,C=af(s,l,t,i,o+c,f);if(a&&r[p]>C){let e=rf(`${Zd[y]} ${v}`),r=of(t,s,n,e,c,u,l,h);af(s,l,t,i,o+c,e)>C?(x=!0,f=e,A=r,w=c):x=!1}else x=!1;let S=nf(m,A[m],n[g],s,o);A[m]+=S;let E=function(e,t,n,r,i,o){return null!=e.top?Math.max(0,t.height+t.top+t.scroll.top-(n.top+e.top)-(i.top+i.bottom+o)):Math.max(0,r.top+n.top-(t.top+t.scroll.top)-(i.top+i.bottom+o))}(A,s,l,t,i,o);n.height=Math.min(n.height,E),A=of(t,s,n,f,w,u,l,h),S=nf(m,A[m],n[g],s,o),A[m]+=S;let k={};return k[m]=t[m]-A[m]+t[g]/2,d&&(A[Zd[f.placement]]=A[Zd[f.placement]]-t[p]),{position:A,maxHeight:E,arrowOffsetLeft:k.left,arrowOffsetTop:k.top,placement:f.placement,isFlipped:x}}(t,m,g,x,A,o,a,C,"BODY"===s.tagName?Wd(h):Xd(h,s),l,c,p,u)}const lf=new WeakMap,cf="undefined"!=typeof document?u.useLayoutEffect:()=>{};let uf="undefined"!=typeof window&&window.visualViewport;function hf(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const df=u.createContext(null);let ff=0;const pf=function(e){const[t,n]=u.useState([]);return u.createElement(df.Provider,{value:{items:t,setOverlayItem:e=>{const t=++ff;return n((n=>n.concat([{id:t,node:e}]))),t},removeOverlayItem:e=>{n((t=>t.filter((t=>t.id!==e))))},updateOverlayItem:(e,t)=>{n((n=>n.find((t=>t.id==e))?n.map((n=>n.id===e?{id:e,node:t}:n)):n.concat([{id:e,node:t}])))},isSSR:null==e?void 0:e.isSSR}},e.children,t.map((e=>u.createElement(u.Fragment,{key:e.id},e.node))))};var mf=__webpack_require__(42306);const gf=({width:e,breakpoints:t})=>{const n=[...t].reverse().find((t=>e>=t));let r=t.findIndex((e=>n===e));return r=-1===r?0:r+1,r},yf=(0,u.createContext)(null),vf=()=>(0,u.useContext)(yf),bf=(0,u.createContext)(0),Af=()=>(0,u.useContext)(bf),xf=[576,768,992,1200];function wf({children:e}){const t=(()=>{const e=(()=>{const e=vf(),t=e?.theme?.breakpoints;return(0,u.useMemo)((()=>(t||xf).map((e=>"string"==typeof e&&e.endsWith("px")?Number(e.replace("px","")):("number"!=typeof e&&console.error('[dripsy] Invalid breakpoints passed to theme.breakpoints. Expected an array of numbers, or strings ending with "px", but got this: \n',JSON.stringify(t),"\nPlease turn these into numbers, or remove the breakpoints array from your theme."),Number(e))))),[t])})(),[t,n]=(0,u.useState)((()=>gf({width:Zc.A.get("window").width,breakpoints:e}))),r=(0,u.useRef)(t);return(0,u.useEffect)((()=>{r.current=t}),[t]),(0,u.useEffect)((()=>{const t=({window:{width:t}})=>{const i=gf({width:t,breakpoints:e});i!==r.current&&n(i)},i=Zc.A.addEventListener("change",t);return t({window:Zc.A.get("window"),screen:Zc.A.get("screen")}),()=>{i?.remove?i.remove():Zc.A.removeEventListener("change",t)}}),[e]),t})();return(0,Al.jsx)(bf.Provider,{value:t,children:e})}function Cf(e){const{ssrPlaceholder:t=null,ssr:n,theme:r,children:i}=e,{ready:o}=(({ssr:e=!1})=>{const[t,n]=(0,u.useState)((()=>!e)),r=(0,u.useRef)(e);return(0,u.useEffect)((()=>{r.current&&n(!0)}),[]),{ready:t}})({ssr:n}),a=(0,u.useMemo)((()=>({theme:r})),[r]);return o?(0,Al.jsx)(yf.Provider,{value:a,children:(0,Al.jsx)(wf,{children:i})}):(0,Al.jsx)(Al.Fragment,{children:t})}let Sf=(e=21)=>{let t="",n=0|e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t};var Ef;!function(e){e[e.REGISTER_HOST=0]="REGISTER_HOST",e[e.DEREGISTER_HOST=1]="DEREGISTER_HOST",e[e.ADD_UPDATE_PORTAL=2]="ADD_UPDATE_PORTAL",e[e.REMOVE_PORTAL=3]="REMOVE_PORTAL"}(Ef||(Ef={}));const kf={},Tf=(0,u.createContext)(null),If=(0,u.createContext)(null),Of=(e="root")=>{const t=(0,u.useContext)(If);if(null===t)throw new Error("'PortalDispatchContext' cannot be null, please add 'PortalProvider' to the root component.");const n=(0,u.useCallback)((()=>{t({type:Ef.REGISTER_HOST,hostName:e})}),[]),r=(0,u.useCallback)((()=>{t({type:Ef.DEREGISTER_HOST,hostName:e})}),[]),i=(0,u.useCallback)(((n,r)=>{t({type:Ef.ADD_UPDATE_PORTAL,hostName:e,portalName:n,node:r})}),[]);return{registerHost:n,deregisterHost:r,addPortal:i,updatePortal:i,removePortal:(0,u.useCallback)((n=>{t({type:Ef.REMOVE_PORTAL,hostName:e,portalName:n})}),[])}},Rf=({name:e,hostName:t,handleOnMount:n,handleOnUnmount:r,handleOnUpdate:i,children:o})=>{const{addPortal:a,removePortal:s}=Of(t),l=(0,u.useMemo)((()=>e||Sf()),[e]),c=(0,u.useRef)(),h=(0,u.useRef)(),d=(0,u.useRef)(),f=(0,u.useCallback)((()=>{n?n((()=>a(l,o))):a(l,o)}),[n,a]);c.current=f;const p=(0,u.useCallback)((()=>{r?r((()=>s(l))):s(l)}),[r,s]);h.current=p;const m=(0,u.useCallback)((()=>{i?i((()=>a(l,o))):a(l,o)}),[i,a,o]);return d.current=m,(0,u.useEffect)((()=>{var e;return null===(e=c.current)||void 0===e||e.call(c),()=>{var e;null===(e=h.current)||void 0===e||e.call(h),c.current=void 0,h.current=void 0,d.current=void 0}}),[]),(0,u.useEffect)((()=>{var e;null===(e=d.current)||void 0===e||e.call(d)}),[o]),null},Mf=(0,u.memo)(Rf);Mf.displayName="Portal";const Pf=({name:e})=>{const t=(e=>{const t=(0,u.useContext)(Tf);if(null===t)throw new Error("'PortalStateContext' cannot be null, please add 'PortalProvider' to the root component.");return t[e]||[]})(e),{registerHost:n,deregisterHost:r}=Of(e);return(0,u.useEffect)((()=>(n(),()=>{r()})),[]),u.createElement(u.Fragment,null,t.map((e=>e.node)))},Df=(0,u.memo)(Pf);Df.displayName="PortalHost";const jf=Boolean(!1);let Bf=()=>{};jf&&(Bf=({component:e,method:t,params:n})=>{}),Object.freeze(Bf);const Lf=(e,t)=>(t in e||(e[t]=[]),e),Ff=(e,t,n)=>{if(!(t in e))return Bf({component:Nf.name,method:Ff.name,params:"Failed to remove portal '".concat(n,"', '").concat(t,"' was not registered!")}),e;const r=e[t].findIndex((e=>e.name===n));return-1!==r&&e[t].splice(r,1),e},Nf=(e,t)=>{const{type:n}=t;let r={...e};switch(n){case Ef.REGISTER_HOST:return Lf(r,t.hostName);case Ef.DEREGISTER_HOST:return((e,t)=>(delete e[t],e))(r,t.hostName);case Ef.ADD_UPDATE_PORTAL:return((e,t,n,r)=>{t in e||(e=Lf(e,t));const i=e[t].findIndex((e=>e.name===n));return-1!==i?e[t][i].node=r:e[t].push({name:n,node:r}),e})(r,t.hostName,t.portalName,t.node);case Ef.REMOVE_PORTAL:return Ff(r,t.hostName,t.portalName);default:return e}},_f=({rootHostName:e="root",shouldAddRootHost:t=!0,children:n})=>{const[r,i]=(0,u.useReducer)(Nf,kf);return u.createElement(If.Provider,{value:i},u.createElement(Tf.Provider,{value:r},n,t&&u.createElement(Df,{name:e})))},zf=(0,u.memo)(_f);zf.displayName="PortalProvider";const Vf="10.12.0",Uf=globalThis;function Hf(){return qf(Uf),Uf}function qf(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Vf,t[Vf]=t[Vf]||{}}function Gf(e,t,n=Uf){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[Vf]=r[Vf]||{};return i[e]||(i[e]=t())}const Yf="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Wf=Object.prototype.toString;function Qf(e){switch(Wf.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return ip(e,Error)}}function Xf(e,t){return Wf.call(e)===`[object ${t}]`}function Jf(e){return Xf(e,"ErrorEvent")}function Zf(e){return Xf(e,"DOMError")}function Kf(e){return Xf(e,"String")}function $f(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function ep(e){return null===e||$f(e)||"object"!=typeof e&&"function"!=typeof e}function tp(e){return Xf(e,"Object")}function np(e){return"undefined"!=typeof Event&&ip(e,Event)}function rp(e){return Boolean(e?.then&&"function"==typeof e.then)}function ip(e,t){try{return e instanceof t}catch{return!1}}function op(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function ap(e){return"undefined"!=typeof Request&&ip(e,Request)}const sp=Uf;function lp(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let o=0,a=0;const s=" > ",l=s.length;let c;const u=Array.isArray(t)?t:t.keyAttrs,h=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++1&&a+i.length*l+c.length>=h));)i.push(c),a+=c.length,n=n.parentNode;return i.reverse().join(s)}catch{return""}}function cp(e,t){const n=e,r=[];if(!n?.tagName)return"";if(sp.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=t?.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(i?.length)i.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&Kf(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const o=["aria-label","type","name","title","alt"];for(const e of o){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}function up(){try{return sp.document.location.href}catch{return""}}const hp=["debug","info","warn","error","log","assert","trace"],dp={};function fp(e){if(!("console"in Uf))return e();const t=Uf.console,n={},r=Object.keys(dp);r.forEach((e=>{const r=dp[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function pp(){return gp().enabled}function mp(e,...t){Yf&&pp()&&fp((()=>{Uf.console[e](`Sentry Logger [${e}]:`,...t)}))}function gp(){return Yf?Gf("loggerSettings",(()=>({enabled:!1}))):{enabled:!1}}const yp=function(){gp().enabled=!0},vp=function(...e){mp("log",...e)},bp=function(...e){mp("warn",...e)},Ap=function(...e){mp("error",...e)};function xp(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function wp(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;tCp(e,t,n)))}function Ep(e,t,n){if(!(t in e))return;const r=e[t];if("function"!=typeof r)return;const i=n(r);"function"==typeof i&&Tp(i,r);try{e[t]=i}catch{Yf&&vp(`Failed to replace method "${t}" in object`,e)}}function kp(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Yf&&vp(`Failed to add non-enumerable property "${t}" to object`,e)}}function Tp(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,kp(e,"__sentry_original__",t)}catch{}}function Ip(e){return e.__sentry_original__}function Op(e){if(Qf(e))return{message:e.message,name:e.name,stack:e.stack,...Mp(e)};if(np(e)){const t={type:e.type,target:Rp(e.target),currentTarget:Rp(e.currentTarget),...Mp(e)};return"undefined"!=typeof CustomEvent&&ip(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Rp(e){try{return"undefined"!=typeof Element&&ip(e,Element)?lp(e):Object.prototype.toString.call(e)}catch{return""}}function Mp(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Pp(e){return Dp(e,new Map)}function Dp(e,t){if(null===e||"object"!=typeof e)return e;const n=t.get(e);if(void 0!==n)return n;if(Array.isArray(e)){const n=[];return t.set(e,n),e.forEach((e=>{n.push(Dp(e,t))})),n}if(function(e){const t=e.constructor;return t===Object||void 0===t}(e)){const n={};return t.set(e,n),Object.keys(e).forEach((r=>{const i=e[r];void 0!==i&&(n[r]=Dp(i,t))})),n}return e}function jp(e=function(){const e=Uf;return e.crypto||e.msCrypto}()){let t=()=>16*Math.random();try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&t())>>e/4).toString(16)))}function Bp(e){return e.exception?.values?.[0]}function Lp(e){const{message:t,event_id:n}=e;if(t)return t;const r=Bp(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function Fp(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function Np(e,t){const n=Bp(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r?.data,...t.data};n.mechanism.data=e}}function _p(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{kp(e,"__sentry_captured__",!0)}catch{}return!1}function zp(){return Date.now()/1e3}let Vp,Up;function Hp(){return(Vp??(Vp=function(){const{performance:e}=Uf;if(!e?.now||!e.timeOrigin)return zp;const t=e.timeOrigin;return()=>(t+e.now())/1e3}()))()}function qp(){return Up||(Up=function(){const{performance:e}=Uf;if(!e?.now)return[void 0,"none"];const t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Yp(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Yp(r[e],t[e],n-1));return r}function Wp(){return jp()}function Qp(){return jp().substring(16)}const Xp="_sentrySpan";function Jp(e,t){t?kp(e,Xp,t):delete e[Xp]}function Zp(e){return e[Xp]}class Kp{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Wp(),sampleRand:Math.random()}}clone(){const e=new Kp;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,Jp(e,Zp(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Gp(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,n=t instanceof Kp?t.getScopeData():tp(t)?e:void 0,{tags:r,extra:i,user:o,contexts:a,level:s,fingerprint:l=[],propagationContext:c}=n||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),s&&(this._level=s),l.length&&(this._fingerprint=l),c&&(this._propagationContext=c),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,Jp(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Wp(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:zp(),...e,message:e.message?xp(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Zp(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Yp(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t?.event_id||jp();if(!this._client)return Yf&&bp("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n?.event_id||jp();if(!this._client)return Yf&&bp("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t?.event_id||jp();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Yf&&bp("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}class $p{constructor(e,t){let n,r;n=e||new Kp,r=t||new Kp,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return rp(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function em(){const e=qf(Hf());return e.stack=e.stack||new $p(Gf("defaultCurrentScope",(()=>new Kp)),Gf("defaultIsolationScope",(()=>new Kp)))}function tm(e){return em().withScope(e)}function nm(e,t){const n=em();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function rm(e){return em().withScope((()=>e(em().getIsolationScope())))}function im(e){const t=qf(e);return t.acs?t.acs:{withIsolationScope:rm,withScope:tm,withSetScope:nm,withSetIsolationScope:(e,t)=>rm(t),getCurrentScope:()=>em().getScope(),getIsolationScope:()=>em().getIsolationScope()}}function om(){return im(Hf()).getCurrentScope()}function am(){return im(Hf()).getIsolationScope()}function sm(){return Gf("globalScope",(()=>new Kp))}function lm(...e){const t=im(Hf());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function cm(){return om().getClient()}function um(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=t,o={trace_id:n,span_id:i||Qp()};return r&&(o.parent_span_id=r),o}const hm="production";function dm(e){return new pm((t=>{t(e)}))}function fm(e){return new pm(((t,n)=>{n(e)}))}class pm{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new pm(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new pm(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)}))}_runExecutor(e){const t=(e,t)=>{0===this._state&&(rp(t)?t.then(n,r):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(1,e)},r=e=>{t(2,e)};try{e(n,r)}catch(e){r(e)}}}function mm(e,t,n,r=0){try{const i=gm(t,n,e,r);return rp(i)?i:dm(i)}catch(e){return fm(e)}}function gm(e,t,n,r){const i=n[r];if(!e||!i)return e;const o=i({...e},t);return Yf&&null===o&&vp(`Event processor "${i.id||"?"}" dropped event`),rp(o)?o.then((e=>gm(e,t,n,r+1))):gm(o,t,n,r+1)}const ym="sentry.source",vm="sentry.sample_rate",bm="sentry.op",Am="sentry.origin",xm="sentry.idle_span_finish_reason",wm="sentry.measurement_unit",Cm="sentry.measurement_value",Sm="sentry.custom_span_name",Em="sentry.profile_id",km="sentry.exclusive_time",Tm="sentry-",Im=/^sentry-/;function Om(e){return e.split(",").map((e=>e.split("=").map((e=>{try{return decodeURIComponent(e.trim())}catch{return}})))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}const Rm=/^o(\d+)\./,Mm=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Pm(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function Dm(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function jm(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=function(e){const t=e.match(Rm);return t?.[1]}(n)),r}function Bm(e){const t="string"==typeof e?function(e){const t=Mm.exec(e);if(!t)return void fp((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,i="",o="",a="",s=""]=t.slice(1);let l="",c=s;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return Dm({host:o,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:r})}(e):Dm(e);if(t&&function(e){if(!Yf)return!0;const{port:t,projectId:n,protocol:r}=e,i=["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(Ap(`Invalid Sentry Dsn: ${t} missing`),!0)));return!(i||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(Ap(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Ap(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(Ap(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}function Lm(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||cm()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}function Fm(e,t){e.setAttribute("http.response.status_code",t);const n=function(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}const Nm="_sentryScope",_m="_sentryIsolationScope";function zm(e){return{scope:e[Nm],isolationScope:e[_m]}}const Vm=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Um(e=Wp(),t=Qp(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Hm(e=Wp(),t=Qp(),n){return`00-${e}-${t}-${n?"01":"00"}`}let qm=!1;function Gm(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,origin:s,links:l}=Jm(e);return{parent_span_id:o,span_id:t,trace_id:n,data:r,op:i,status:a,origin:s,links:l}}function Ym(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:Jm(e).parent_span_id,o=zm(e).scope;return{parent_span_id:i,span_id:r?o?.getPropagationContext().propagationSpanId||Qp():t,trace_id:n}}function Wm(e){return e&&e.length>0?e.map((({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:1===n,attributes:i,...r}))):void 0}function Qm(e){return"number"==typeof e?Xm(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Xm(e.getTime()):Hp()}function Xm(e){return e>9999999999?e/1e3:e}function Jm(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:i,name:o,endTime:a,status:s,links:l}=e;return{span_id:t,trace_id:n,data:r,description:o,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:Qm(i),timestamp:Qm(a)||void 0,status:Km(s),op:r[bm],origin:r[Am],links:Wm(l)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Zm(e){const{traceFlags:t}=e.spanContext();return 1===t}function Km(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}const $m="_sentryChildSpans",eg="_sentryRootSpan";function tg(e,t){const n=e[eg]||e;kp(t,eg,n),e[$m]?e[$m].add(t):kp(e,$m,new Set([t]))}function ng(e){const t=new Set;return function e(n){if(!t.has(n)&&Zm(n)){t.add(n);const r=n[$m]?Array.from(n[$m]):[];for(const t of r)e(t)}}(e),Array.from(t)}function rg(e){return e[eg]||e}function ig(){const e=im(Hf());return e.getActiveSpan?e.getActiveSpan():Zp(om())}function og(){qm||(fp((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")})),qm=!0)}const ag="_frozenDsc";function sg(e,t){kp(e,ag,t)}function lg(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||hm,release:n.release,public_key:r,trace_id:e,org_id:jm(t)};return t.emit("createDsc",i),i}function cg(e,t){const n=t.getPropagationContext();return n.dsc||lg(n.traceId,e)}function ug(e){const t=cm();if(!t)return{};const n=rg(e),r=Jm(n),i=r.data,o=n.spanContext().traceState,a=o?.get("sentry.sample_rate")??i[vm]??i["sentry.previous_trace_sample_rate"];function s(e){return"number"!=typeof a&&"string"!=typeof a||(e.sample_rate=`${a}`),e}const l=n[ag];if(l)return s(l);const c=o?.get("sentry.dsc"),u=c&&function(e){const t=function(e){if(e&&(Kf(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=Om(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):Om(e)}(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(Im)&&(e[t.slice(7)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(c);if(u)return s(u);const h=lg(e.spanContext().traceId,t),d=i[ym],f=r.description;return"url"!==d&&f&&(h.transaction=f),Lm()&&(h.sampled=String(Zm(n)),h.sample_rand=o?.get("sentry.sample_rand")??zm(n).scope?.getPropagationContext().sampleRand.toString()),s(h),t.emit("createDsc",h,n),h}function hg(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:h,propagationContext:d,transactionName:f,span:p}=t;dg(e,"extra",n),dg(e,"tags",r),dg(e,"user",i),dg(e,"contexts",o),e.sdkProcessingMetadata=Yp(e.sdkProcessingMetadata,s,2),a&&(e.level=a),f&&(e.transactionName=f),p&&(e.span=p),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),h.length&&(e.attachments=[...e.attachments,...h]),e.propagationContext={...e.propagationContext,...d}}function dg(e,t,n){e[t]=Yp(e[t],n,1)}let fg,pg,mg;const gg="?",yg=/\(error: (.*)\)/,vg=/captureMessage|captureException/;function bg(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0,r=0)=>{const i=[],o=e.split("\n");for(let e=n;e1024&&(n=n.slice(0,1024));const a=yg.test(n)?n.replace(yg,"$1"):n;if(!a.match(/\S*Error: /)){for(const e of t){const t=e(a);if(t){i.push(t);break}}if(i.length>=50+r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Ag(t).function||"")&&t.pop(),t.reverse(),vg.test(Ag(t).function||"")&&(t.pop(),vg.test(Ag(t).function||"")&&t.pop()),t.slice(0,50).map((e=>({...e,filename:e.filename||Ag(t).filename,function:e.function||gg})))}(i.slice(r))}}function Ag(e){return e[e.length-1]||{}}const xg="";function wg(e){try{return e&&"function"==typeof e&&e.name||xg}catch{return xg}}function Cg(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch{return}}}function Sg(e,t=100,n=1/0){try{return kg("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Eg(e,t=3,n=102400){const r=Sg(e,t);return function(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}(r)>n?Eg(e,t-1,n):r}function kg(e,t,n=1/0,r=1/0,i=function(){const e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){const[o,a]=i;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const s=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(op(t))return"[VueViewModel]";if(tp(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${wg(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}var n}(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const l="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===l)return s.replace("object ","");if(o(t))return"[Circular ~]";const c=t;if(c&&"function"==typeof c.toJSON)try{return kg("",c.toJSON(),l-1,r,i)}catch{}const u=Array.isArray(t)?[]:{};let h=0;const d=Op(t);for(const e in d){if(!Object.prototype.hasOwnProperty.call(d,e))continue;if(h>=r){u[e]="[MaxProperties ~]";break}const t=d[e];u[e]=kg(e,t,l-1,r,i),h++}return a(t),u}function Tg(e,t,n,r,i,o){const{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||n.event_id||jp(),timestamp:t.timestamp||zp()},c=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;e.environment=e.environment||n||hm,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);const a=e.request;a?.url&&(a.url=xp(a.url,o))}(l,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(l,c),i&&i.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=function(e){const t=Uf._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return mg&&n.length===pg||(pg=n.length,mg=n.reduce(((n,r)=>{fg||(fg={});const i=fg[r];if(i)n[i[0]]=i[1];else{const i=e(r);for(let e=i.length-1;e>=0;e--){const o=i[e],a=o?.filename,s=t[r];if(a&&s){n[a]=s,fg[r]=[a,s];break}}}return n}),{})),mg}(t);e.exception?.values?.forEach((e=>{e.stacktrace?.frames?.forEach((e=>{e.filename&&(e.debug_id=n[e.filename])}))}))}(l,e.stackParser);const u=function(e,t){if(!t)return e;const n=e?e.clone():new Kp;return n.update(t),n}(r,n.captureContext);n.mechanism&&Np(l,n.mechanism);const h=i?i.getEventProcessors():[],d=sm().getScopeData();o&&hg(d,o.getScopeData()),u&&hg(d,u.getScopeData());const f=[...n.attachments||[],...d.attachments];return f.length&&(n.attachments=f),function(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;!function(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(o).length&&(e.contexts={...o,...e.contexts}),a&&(e.level=a),s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:Ym(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ug(t),...e.sdkProcessingMetadata};const n=Jm(rg(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,o)}(l,d),mm([...h,...d.eventProcessors],l,n).then((e=>(e&&function(e){const t={};if(e.exception?.values?.forEach((e=>{e.stacktrace?.frames?.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))})),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}(e),"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Sg(e.data,t,n)}})))},...e.user&&{user:Sg(e.user,t,n)},...e.contexts&&{contexts:Sg(e.contexts,t,n)},...e.extra&&{extra:Sg(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Sg(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:Sg(e.data,t,n)}})))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Sg(e.contexts.flags,3,n)),r}(e,a,s):e)))}const Ig=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Og(e,t){return om().captureException(e,function(e){if(e)return function(e){return e instanceof Kp||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>Ig.includes(e)))}(e)?{captureContext:e}:e}(t))}function Rg(e,t){const n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return om().captureMessage(e,n,r)}function Mg(e,t){return om().captureEvent(e,t)}function Pg(e){const t=am(),n=om(),{userAgent:r}=Uf.navigator||{},i=function(e){const t=Hp(),n={sid:jp(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}(n)};return e&&Gp(n,e),n}({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),o=t.getSession();return"ok"===o?.status&&Gp(o,{status:"exited"}),Dg(),t.setSession(i),i}function Dg(){const e=am(),t=om().getSession()||e.getSession();t&&function(e){let t={};"ok"===e.status&&(t={status:"exited"}),Gp(e,t)}(t),jg(),e.setSession()}function jg(){const e=am(),t=cm(),n=e.getSession();n&&t&&t.captureSession(n)}function Bg(e=!1){e?Dg():jg()}const Lg={};function Fg(){var e;try{return null===(e=Lg.Devtools)||void 0===e?void 0:e.getDevServer()}catch(e){}}function Ng(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}new RegExp(["ReactNativeRenderer-dev\\.js$","MessageQueue\\.js$"].join("|"));var _g=__webpack_require__(7697);function zg(e){const t={};if("string"==typeof e.type&&(t.type=e.type),"string"==typeof e.level&&(t.level=Ng(e.level)),"string"==typeof e.event_id&&(t.event_id=e.event_id),"string"==typeof e.category&&(t.category=e.category),"string"==typeof e.message&&(t.message=e.message),"object"==typeof e.data&&null!==e.data&&(t.data=e.data),"string"==typeof e.timestamp){const n=Date.parse(e.timestamp)/1e3;isNaN(n)||(t.timestamp=n)}return t}class Vg extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}var Ug=__webpack_require__(57947);function Hg(e){var t;const n="string"!=typeof e&&"exception"in e&&(null===(t=e.exception)||void 0===t?void 0:t.values)?e.exception.values:[];for(const e of n)if(e.mechanism&&!1===e.mechanism.handled&&"onerror"===e.mechanism.type)return!0;return!1}const qg=()=>{const e=Hf(),t=e.__SENTRY__=e.__SENTRY__||{};return t[Vf]=t[Vf]||{}},Gg=Uf,Yg=[];for(let yOe=0,vOe=64;yOe>18&63]+Yg[o>>12&63]+Yg[o>>6&63]+Yg[63&o]);var o;return i.join("")}const Qg=()=>{const e=qg();Gg.TextEncoder?e.encodePolyfill=Xg(Gg.TextEncoder):e.encodePolyfill=Jg},Xg=e=>t=>(new e).encode(t),Jg=e=>{const t=new Uint8Array(function(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}(e));return t};function Zg(e){const t=qg();return t.encodePolyfill||Qg(),t.encodePolyfill(e)}function Kg(){var e,t,n;return null!==(n=null===(t=null===(e=Gg.expo)||void 0===e?void 0:e.modules)||void 0===t?void 0:t.ExponentConstants)&&void 0!==n?n:void 0}function $g(){var e,t,n;return null!==(n=null===(t=null===(e=Gg.expo)||void 0===e?void 0:e.modules)||void 0===t?void 0:t.ExpoDevice)&&void 0!==n?n:void 0}function ey(){return!!Gg.HermesInternal}function ty(){return!0===Gg.RN$Bridgeless||null!=Gg.__turboModuleProxy}function ny(){return null!=Gg.nativeFabricUIManager}function ry(){if(!Lg.ReactNativeVersion)return;const e=Lg.ReactNativeVersion.version;return`${e.major}.${e.minor}.${e.patch}${null!=e.prerelease?`-${e.prerelease}`:""}`}function iy(){return null!=Gg.expo}function oy(){var e,t,n;return!!(null!==(n=null===(t=null===(e=Gg.expo)||void 0===e?void 0:e.modules)||void 0===t?void 0:t.ExpoGo)&&void 0!==n?n:void 0)}const ay="value";function sy(e){const t=Sg(e);return null===t||"object"!=typeof t||Array.isArray(t)||t.constructor!==Object?{[ay]:t}:t}var ly=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},cy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ia?a:t+o));return 1===r?(t=e[n-1],i.push(`${Yg[t>>2]+Yg[t<<4&63]}==`)):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(`${Yg[t>>10]+Yg[t>>4&63]+Yg[t<<2&63]}=`)),i.join("")}(i),{hardCrashed:o})}))},initNativeSdk(e){var t,n;return ly(this,void 0,void 0,(function*(){const r=Object.assign({enableNative:!0,autoInitializeNativeSdk:!0},e);if(!r.enableNative)return r.enableNativeNagger&&bp("Note: Native Sentry SDK is disabled."),this.enableNative=!1,!1;if(!r.autoInitializeNativeSdk)return r.enableNativeNagger&&bp("Note: Native Sentry SDK was not initialized automatically, you will need to initialize it manually. If you wish to disable the native SDK and get rid of this warning, pass enableNative: false"),this.enableNative=!0,!1;if(!r.dsn)return bp("Warning: No DSN was provided. The Sentry SDK will be disabled. Native SDK will also not be initalized."),this.enableNative=!1,!1;if(!this._isModuleLoaded(uy))throw this._NativeClientError;const i=null===(t=r.ignoreErrors)||void 0===t?void 0:t.filter((e=>"string"==typeof e)),o=null===(n=r.ignoreErrors)||void 0===n?void 0:n.filter((e=>e instanceof RegExp)).map((e=>e.source));i&&i.length>0&&(r.ignoreErrorsStr=i),o&&o.length>0&&(r.ignoreErrorsRegex=o);const{beforeSend:a,beforeBreadcrumb:s,beforeSendTransaction:l,integrations:c,ignoreErrors:u}=r,h=cy(r,["beforeSend","beforeBreadcrumb","beforeSendTransaction","integrations","ignoreErrors"]),d=yield uy.initNativeSdk(h);return this.nativeIsReady=d,this.enableNative=!0,d}))},fetchNativeLogAttributes(){return ly(this,void 0,void 0,(function*(){if(!this.enableNative)throw this._DisabledNativeError;if(!this._isModuleLoaded(uy))throw this._NativeClientError;return uy.fetchNativeLogAttributes()}))},fetchNativeRelease(){return ly(this,void 0,void 0,(function*(){if(!this.enableNative)throw this._DisabledNativeError;if(!this._isModuleLoaded(uy))throw this._NativeClientError;return uy.fetchNativeRelease()}))},fetchNativeSdkInfo(){return ly(this,void 0,void 0,(function*(){if(!this.enableNative)throw this._DisabledNativeError;if(!this._isModuleLoaded(uy))throw this._NativeClientError;return uy.fetchNativeSdkInfo()}))},fetchNativeDeviceContexts(){return ly(this,void 0,void 0,(function*(){if(!this.enableNative)throw this._DisabledNativeError;if(!this._isModuleLoaded(uy))throw this._NativeClientError;return uy.fetchNativeDeviceContexts()}))},fetchNativeAppStart(){return ly(this,void 0,void 0,(function*(){return this.enableNative?this._isModuleLoaded(uy)?uy.fetchNativeAppStart():(Ap(this._NativeClientError),null):(bp(this._DisabledNativeError),null)}))},fetchNativeFrames(){return ly(this,void 0,void 0,(function*(){if(!this.enableNative)throw this._DisabledNativeError;if(!this._isModuleLoaded(uy))throw this._NativeClientError;return uy.fetchNativeFrames()}))},nativeCrash(){if(this.enableNative){if(!this._isModuleLoaded(uy))throw this._NativeClientError;uy.crash()}},setUser(e){if(!this.enableNative)return;if(!this._isModuleLoaded(uy))throw this._NativeClientError;let t=null,n=null;if(e){const{id:r,ip_address:i,email:o,username:a,segment:s}=e,l=cy(e,["id","ip_address","email","username","segment"]),c={id:r,ip_address:i,email:o,username:a,segment:s};t=this._serializeObject(c),n=this._serializeObject(l)}uy.setUser(t,n)},setTag(e,t){if(!this.enableNative)return;if(!this._isModuleLoaded(uy))throw this._NativeClientError;const n="string"==typeof t?t:JSON.stringify(t);uy.setTag(e,n)},setExtra(e,t){if(!this.enableNative)return;if(!this._isModuleLoaded(uy))throw this._NativeClientError;if("string"==typeof t)return uy.setExtra(e,t);if(void 0===t)return uy.setExtra(e,"undefined");let n;try{const e=Sg(t);n=JSON.stringify(e)}catch(e){Ap("Extra for key ${key} not passed to native SDK, because it contains non-stringifiable values",e)}return"string"==typeof n?uy.setExtra(e,n):uy.setExtra(e,"**non-stringifiable**")},addBreadcrumb(e){if(this.enableNative){if(!this._isModuleLoaded(uy))throw this._NativeClientError;uy.addBreadcrumb(Object.assign(Object.assign({},e),{level:e.level?this._processLevel(e.level):void 0}))}},clearBreadcrumbs(){if(this.enableNative){if(!this._isModuleLoaded(uy))throw this._NativeClientError;uy.clearBreadcrumbs()}},setContext(e,t){if(!this.enableNative)return;if(!this._isModuleLoaded(uy))throw this._NativeClientError;if(null===t)return uy.setContext(e,null);let n;try{n=sy(t)}catch(e){Ap("Context for key ${key} not passed to native SDK, because it contains non-serializable values",e)}n?uy.setContext(e,n):uy.setContext(e,{error:"**non-serializable**"})},closeNativeSdk(){return ly(this,void 0,void 0,(function*(){if(this.enableNative&&this._isModuleLoaded(uy))return uy.closeNativeSdk().then((()=>{this.enableNative=!1}))}))},disableNativeFramesTracking(){this.enableNative&&this._isModuleLoaded(uy)&&uy.disableNativeFramesTracking()},enableNativeFramesTracking(){this.enableNative&&this._isModuleLoaded(uy)&&uy.enableNativeFramesTracking()},isNativeAvailable(){return this._isModuleLoaded(uy)},captureScreenshot(){return ly(this,void 0,void 0,(function*(){if(!this.enableNative)return bp(this._DisabledNativeError),null;if(!this._isModuleLoaded(uy))return Ap(this._NativeClientError),null;let e;try{e=yield uy.captureScreenshot()}catch(e){bp("Failed to capture screenshot",e)}return e?e.map((e=>Object.assign(Object.assign({},e),{data:new Uint8Array(e.data)}))):null}))},fetchViewHierarchy(){return ly(this,void 0,void 0,(function*(){if(!this.enableNative)throw this._DisabledNativeError;if(!this._isModuleLoaded(uy))throw this._NativeClientError;const e=yield uy.fetchViewHierarchy();return e?new Uint8Array(e):null}))},startProfiling(e){if(!this.enableNative)throw this._DisabledNativeError;if(!this._isModuleLoaded(uy))throw this._NativeClientError;const{started:t,error:n}=uy.startProfiling(e);return t?vp("[NATIVE] Start Profiling"):Ap("[NATIVE] Start Profiling Failed",n),!!t},stopProfiling(){if(!this.enableNative)throw this._DisabledNativeError;if(!this._isModuleLoaded(uy))throw this._NativeClientError;const{profile:e,nativeProfile:t,androidProfile:n,error:r}=uy.stopProfiling();if(!e||r)return Ap("[NATIVE] Stop Profiling Failed",r),null;try{return{hermesProfile:JSON.parse(e),nativeProfile:t,androidProfile:n}}catch(e){return Ap("[NATIVE] Failed to parse Hermes Profile JSON",e),null}},fetchNativePackageName(){return this.enableNative&&this._isModuleLoaded(uy)&&uy.fetchNativePackageName()||null},fetchNativeStackFramesBy(e){return this.enableNative&&this._isModuleLoaded(uy)&&uy.fetchNativeStackFramesBy(e)||null},initNativeReactNavigationNewFrameTracking(){return ly(this,void 0,void 0,(function*(){if(this.enableNative&&this._isModuleLoaded(uy))return uy.initNativeReactNavigationNewFrameTracking()}))},captureReplay(e){return ly(this,void 0,void 0,(function*(){return this.enableNative?this._isModuleLoaded(uy)?(yield uy.captureReplay(e))||null:(bp(`[NATIVE] \`${this.captureReplay.name}\` is not available when native is not available.`),Promise.resolve(null)):(bp(`[NATIVE] \`${this.captureReplay.name}\` is not available when native is disabled.`),Promise.resolve(null))}))},getCurrentReplayId(){return this.enableNative?this._isModuleLoaded(uy)?uy.getCurrentReplayId()||null:(bp(`[NATIVE] \`${this.getCurrentReplayId.name}\` is not available when native is not available.`),null):(bp(`[NATIVE] \`${this.getCurrentReplayId.name}\` is not available when native is disabled.`),null)},crashedLastRun(){return ly(this,void 0,void 0,(function*(){if(!this.enableNative)return null;if(!this._isModuleLoaded(uy))return null;const e=yield uy.crashedLastRun();return"boolean"==typeof e?e:null}))},getNewScreenTimeToDisplay(){return this.enableNative&&this._isModuleLoaded(uy)?uy.getNewScreenTimeToDisplay():Promise.resolve(null)},getDataFromUri(e){return ly(this,void 0,void 0,(function*(){if(!this.enableNative||!this._isModuleLoaded(uy))return null;try{const t=yield uy.getDataFromUri(e);return new Uint8Array(t)}catch(e){return Ap("Error:",e),null}}))},popTimeToDisplayFor(e){if(!this.enableNative||!this._isModuleLoaded(uy))return Promise.resolve(null);try{return uy.popTimeToDisplayFor(e)}catch(e){return Ap("Error:",e),Promise.resolve(null)}},setActiveSpanId(e){if(this.enableNative&&this._isModuleLoaded(uy))try{uy.setActiveSpanId(e)}catch(e){return void Ap("Error:",e)}},encodeToBase64(e){return ly(this,void 0,void 0,(function*(){if(!this.enableNative||!this._isModuleLoaded(uy))return Promise.resolve(null);try{const t=Array.from(e);return(yield uy.encodeToBase64(t))||null}catch(e){return Ap("Error:",e),Promise.resolve(null)}}))},primitiveProcessor:function(e){return e},_processItem(e){const[t,n]=e;if("event"==t.type||"transaction"==t.type){const e=this._processLevels(n);return"android"===fy.platform&&"message"in e&&(e.message={message:e.message}),[t,e]}return e},_serializeObject(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];t[n]="string"==typeof r?r:JSON.stringify(r)})),t},_processLevels(e){var t;return Object.assign(Object.assign({},e),{level:e.level?this._processLevel(e.level):void 0,breadcrumbs:null===(t=e.breadcrumbs)||void 0===t?void 0:t.map((e=>Object.assign(Object.assign({},e),{level:e.level?this._processLevel(e.level):void 0})))})},_processLevel:e=>"log"==e?"debug":e,_isModuleLoaded:e=>!!e,_setPrimitiveProcessor:function(e){this.primitiveProcessor=e},_DisabledNativeError:new Vg("Native is disabled"),_NativeClientError:new Vg("Native Client is not available, can't start on native."),enableNative:!0,nativeIsReady:!1,platform:"web"};function py(e,t,n){var r,i,o,a,s,l;return o=this,a=void 0,l=function*(){let t=null;try{t=yield fy.fetchNativeDeviceContexts()}catch(e){vp(`Failed to get device context from native: ${e}`)}if(!t)return e;const o=t.user;!e.user&&o&&(e.user=o);let a=t.contexts;"unknown"!==_g.A.currentState&&(a=a||{},a.app=Object.assign(Object.assign({},a.app),{in_foreground:"active"===_g.A.currentState})),a&&(e.contexts=Object.assign(Object.assign({},a),e.contexts),a.app&&(e.contexts.app=Object.assign(Object.assign({},a.app),e.contexts.app)));const s=t.tags;s&&(e.tags=Object.assign(Object.assign({},s),e.tags));const l=t.extra;l&&(e.extra=Object.assign(Object.assign({},l),e.extra));const c=t.fingerprint;c&&(e.fingerprint=(null!==(r=e.fingerprint)&&void 0!==r?r:[]).concat(c.filter((t=>{var n;return(null!==(n=e.fingerprint)&&void 0!==n?n:[]).indexOf(t)<0}))));const u="string"==typeof t.level?Ng(t.level):void 0;!e.level&&u&&(e.level=u);const h=t.environment;!e.environment&&h&&(e.environment=h);const d=Array.isArray(t.breadcrumbs)?t.breadcrumbs.map(zg):void 0;if(d){const t=null!==(i=null==n?void 0:n.getOptions().maxBreadcrumbs)&&void 0!==i?i:100;e.breadcrumbs=d.concat(e.breadcrumbs||[]).sort(((e,t)=>{var n,r;return(null!==(n=e.timestamp)&&void 0!==n?n:0)-(null!==(r=t.timestamp)&&void 0!==r?r:0)})).slice(-t)}return e},new((s=void 0)||(s=Promise))((function(e,t){function n(e){try{i(l.next(e))}catch(e){t(e)}}function r(e){try{i(l.throw(e))}catch(e){t(e)}}function i(t){t.done?e(t.value):function(e){return e instanceof s?e:new s((function(t){t(e)}))}(t.value).then(n,r)}i((l=l.apply(o,a||[])).next())}))}const my={},gy={};function yy(e,t){my[e]=my[e]||[],my[e].push(t)}function vy(e,t){if(!gy[e]){gy[e]=!0;try{t()}catch(t){Yf&&Ap(`Error while instrumenting ${e}`,t)}}}function by(e,t){const n=e&&my[e];if(n)for(const r of n)try{r(t)}catch(t){Yf&&Ap(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${wg(r)}\nError:`,t)}}let Ay=null;function xy(){Ay=Uf.onunhandledrejection,Uf.onunhandledrejection=function(e){return by("unhandledrejection",e),!Ay||Ay.apply(this,arguments)},Uf.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function wy(e,t){const n=Sy(e,t),r={type:Ty(t),value:Iy(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Cy(e,t){return{exception:{values:[wy(e,t)]}}}function Sy(e,t){const n=t.stacktrace||t.stack||"",r=function(e){return e&&Ey.test(e.message)?1:0}(t),i=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(n,r,i)}catch{}return[]}const Ey=/Minified React error #\d+;/i;function ky(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function Ty(e){const t=e?.name;return!t&&ky(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}function Iy(e){const t=e?.message;return ky(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Oy(e,t,n,r,i){let o;if(Jf(t)&&t.error)return Cy(e,t.error);if(Zf(t)||Xf(t,"DOMException")){const i=t;if("stack"in t)o=Cy(e,t);else{const t=i.name||(Zf(i)?"DOMError":"DOMException"),a=i.message?`${t}: ${i.message}`:t;o=Ry(e,a,n,r),Fp(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return Qf(t)?Cy(e,t):tp(t)||np(t)?(o=function(e,t,n,r){const i=cm(),o=i?.getOptions().normalizeDepth,a=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(t),s={__serialized__:Eg(t,o)};if(a)return{exception:{values:[wy(e,a)]},extra:s};const l={exception:{values:[{type:np(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:My(t,{isUnhandledRejection:r})}]},extra:s};if(n){const t=Sy(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,i),Np(o,{synthetic:!0}),o):(o=Ry(e,t,n,r),Fp(o,`${t}`,void 0),Np(o,{synthetic:!0}),o)}function Ry(e,t,n,r){const i={};if(r&&n){const r=Sy(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),Np(i,{synthetic:!0})}if($f(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function My(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(Op(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return xp(r,t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:xp(r,t)}return""}(e),r=t?"promise rejection":"exception";return Jf(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:np(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Py(e,t,n){var r,i,o,a,s,l;return o=this,a=void 0,l=function*(){const t=n.getOptions();if("string"==typeof(null===(r=e.extra)||void 0===r?void 0:r.__sentry_release)?e.release=`${e.extra.__sentry_release}`:"string"==typeof(null==t?void 0:t.release)&&(e.release=t.release),"string"==typeof(null===(i=e.extra)||void 0===i?void 0:i.__sentry_dist)?e.dist=`${e.extra.__sentry_dist}`:"string"==typeof(null==t?void 0:t.dist)&&(e.dist=t.dist),e.release&&e.dist)return e;try{const t=yield fy.fetchNativeRelease();t&&(e.release||(e.release=`${t.id}@${t.version}+${t.build}`),e.dist||(e.dist=`${t.build}`))}catch(e){}return e},new((s=void 0)||(s=Promise))((function(e,t){function n(e){try{i(l.next(e))}catch(e){t(e)}}function r(e){try{i(l.throw(e))}catch(e){t(e)}}function i(t){t.done?e(t.value):function(e){return e instanceof s?e:new s((function(t){t(e)}))}(t.value).then(n,r)}i((l=l.apply(o,a||[])).next())}))}const Dy="7.2.0";var jy=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const By={name:"sentry.javascript.react-native",packages:[{name:"npm:@sentry/react-native",version:Dy}],version:Dy},Ly=()=>{const e=()=>Promise.resolve(null);return{name:"SdkInfo",setupOnce:()=>{},processEvent:t=>function(e,t){return jy(this,void 0,void 0,(function*(){const n=yield t();return e.platform=e.platform||"javascript",e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||By.name,e.sdk.version=e.sdk.version||By.version,e.sdk.packages=[...e.sdk.packages||[],...n&&[n]||[]],e}))}(t,e)}};function Fy(e,t){const n=(null==t?void 0:t.originalException)?null==t?void 0:t.originalException:void 0,r={turbo_module:ty(),fabric:ny(),react_native_version:ry(),expo:iy()};if(ey()){r.js_engine="hermes";const t=function(){var e,t;return null===(t=null===(e=Gg.HermesInternal)||void 0===e?void 0:e.getRuntimeProperties)||void 0===t?void 0:t.call(e)["OSS Release Version"]}();t&&(r.hermes_version=t),r.hermes_debug_info=!function(e){var t,n,r;for(const i of(null===(t=e.exception)||void 0===t?void 0:t.values)||(null===(n=e.threads)||void 0===n?void 0:n.values)||[])for(const e of(null===(r=i.stacktrace)||void 0===r?void 0:r.frames)||[])if(void 0===e.platform&&1===e.lineno)return!0;return!1}(e)}else(null==n?void 0:n.jsEngine)&&(r.js_engine=n.jsEngine);"hermes"===r.js_engine&&(e.tags=Object.assign({hermes:!0},e.tags)),(null==n?void 0:n.componentStack)&&(r.component_stack=n.componentStack);const i=function(){const e=Kg();return"string"==typeof(null==e?void 0:e.expoVersion)?e.expoVersion:void 0}();i&&(r.expo_go_version=i);const o=function(){var e;const t=Kg(),[,n]="string"==typeof(null===(e=null==t?void 0:t.manifest)||void 0===e?void 0:e.runtimeVersion)?t.manifest.runtimeVersion.split(":"):[];return n}();return o&&(r.expo_sdk_version=o),e.contexts=Object.assign({react_native_context:r},e.contexts),e}function Ny(){let e=!1,t=null;return n=>{return r=this,i=void 0,a=function*(){if(!e){try{t=yield fy.fetchModules()}catch(e){vp(`Failed to get modules from native: ${e}`)}e=!0}return t&&(n.modules=Object.assign(Object.assign({},t),n.modules)),n},new((o=void 0)||(o=Promise))((function(e,t){function n(e){try{l(a.next(e))}catch(e){t(e)}}function s(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof o?e:new o((function(t){t(e)}))}(t.value).then(n,s)}l((a=a.apply(r,i||[])).next())}));var r,i,o,a}}function _y(e,t=[]){return[e,t]}function zy(e,t){const[n,r]=e;return[n,[...r,t]]}function Vy(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function Uy(e){const t=qf(Uf);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function Hy(e){const[t,n]=e;let r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[Uy(r),e]:r.push("string"==typeof e?Uy(e):e)}for(const e of n){const[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(Sg(n))}i(e)}}return"string"==typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}function qy(e){return[{type:"span"},e]}function Gy(e){const t="string"==typeof e.data?Uy(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const Yy={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function Wy(e){return Yy[e]}function Qy(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Xy(e,t){if(!t?.length||!e.description)return!1;for(const n of t){if(Zy(n)){if(Cp(e.description,n))return!0;continue}if(!n.name&&!n.op)continue;const t=!n.name||Cp(e.description,n.name),r=!n.op||e.op&&Cp(e.op,n.op);if(t&&r)return!0}return!1}function Jy(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function Zy(e){return"string"==typeof e||e instanceof RegExp}function Ky(e){if(!e||0===e.length)return;const t={};return e.forEach((e=>{const n=e.attributes||{},r=n[wm],i=n[Cm];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})})),t}class $y{constructor(e={}){this._traceId=e.traceId||Wp(),this._spanId=e.spanId||Qp(),this._startTime=e.startTimestamp||Hp(),this._links=e.links,this._attributes={},this.setAttributes({[Am]:"manual",[bm]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?1:0}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}updateStartTime(e){this._startTime=Qm(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(ym,"custom"),this}end(e){this._endTime||(this._endTime=Qm(e),function(e){if(!Yf)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Jm(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${rg(e)===e?"root ":""}span "${t}" with ID ${r}`;vp(i)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[bm],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Km(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Am],profile_id:this._attributes[Em],exclusive_time:this._attributes[km],measurements:Ky(this._events),is_segment:this._isStandaloneSpan&&rg(this)===this||void 0,segment_id:this._isStandaloneSpan?rg(this).spanContext().spanId:void 0,links:Wm(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){Yf&&vp("[Tracing] Adding an event to span:",e);const r=ev(t)?t:n||Hp(),i=ev(t)?{}:t||{},o={name:e,time:Qm(r),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=cm();if(e&&e.emit("spanEnd",this),!this._isStandaloneSpan&&this!==rg(this))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=cm();if(!t)return;const n=e[1];n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){const n=ug(e[0]),r=t?.getDsn(),i=t?.getOptions().tunnel,o={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!i&&r&&{dsn:Pm(r)}},{beforeSendSpan:a,ignoreSpans:s}=t?.getOptions()||{},l=s?.length?e.filter((e=>!Xy(Jm(e),s))):e,c=e.length-l.length;c&&t?.recordDroppedEvent("before_send","span",c);const u=a?e=>{const t=Jm(e);return a(t)||(og(),t)}:Jm,h=[];for(const e of l){const t=u(e);t&&h.push(qy(t))}return _y(o,h)}([this],e)):(Yf&&vp("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();t&&(zm(this).scope||om()).captureEvent(t)}_convertSpanToTransaction(){if(!tv(Jm(this)))return;this._name||(Yf&&bp("Transaction has no name, falling back to ``."),this._name="");const{scope:e,isolationScope:t}=zm(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const r=ng(this).filter((e=>e!==this&&!function(e){return e instanceof $y&&e.isStandaloneSpan()}(e))).map((e=>Jm(e))).filter(tv),i=this._attributes[ym];delete this._attributes[Sm],r.forEach((e=>{delete e.data[Sm]}));const o={contexts:{trace:Gm(this)},spans:r.length>1e3?r.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:ug(this)},request:n,...i&&{transaction_info:{source:i}}},a=Ky(this._events);return a&&Object.keys(a).length&&(Yf&&vp("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),o.measurements=a),o}}function ev(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function tv(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}function nv(e){return e===rg(e)}const rv=function(){let e=[],t={};return{add(n,r){for(;e.length>=20;){const n=e.shift();void 0!==n&&delete t[n]}t[n]&&this.delete(n),e.push(n),t[n]=r},clear(){t={},e=[]},get:e=>t[e],size:()=>e.length,delete(n){if(!t[n])return!1;delete t[n];for(let t=0;tn(t,r,e)))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}Yf&&vp(`Integration installed: ${t.name}`)}}const sv=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function lv(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){const r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}(t.split("/").filter((e=>!!e)),!n).join("/"),(n?"/":"")+t||"."}function cv(e){let t=0;for(;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}const uv=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in Uf&&!!Uf.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),o=/^\//.test(r.filename);if(e){if(t){const e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||o){const e=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,o=t?function(e,t){e=lv(e).slice(1),t=lv(t).slice(1);const n=cv(e.split("/")),r=cv(t.split("/")),i=Math.min(n.length,r.length);let o=i;for(let e=0;e1024?`${e.slice(-1024)}`:e,n=sv.exec(t);return n?n.slice(1):[]}(e)[2]||"";return t}(e);r.filename=`${n}${o}`}return r}}({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map((e=>{return{...e,...e.stacktrace&&{stacktrace:(t=e.stacktrace,{...t,frames:t?.frames?.map((e=>i(e)))})}};var t}))}}}catch{return e}}(t)),t}}},hv=void 0;function dv(e){if("JavaScript"!==e.category)return"[root]"===e.name?{function:e.name,in_app:!1}:{function:e.name};if(void 0!==e.funcVirtAddr&&void 0!==e.offset)return{function:e.name,abs_path:hv,lineno:1,colno:Number(e.funcVirtAddr)+Number(e.offset)+1};const t=e.name.indexOf("(");return{function:-1!==t?e.name.substring(0,t)||void 0:e.name,abs_path:hv,lineno:void 0!==e.line?Number(e.line):void 0,colno:void 0!==e.column?Number(e.column):void 0}}const fv=1e6,pv={platformProfilers:!0},mv=(e=pv)=>{var t;const n=null===(t=e.platformProfilers)||void 0===t||t;let r,i,o=!1;const a=e=>{nv(e)&&(u(),s(e)&&(i=setTimeout(u,3e4),l(e)))},s=e=>{var t;if(!Zm(e))return vp("[Profiling] Transaction is not sampled, skipping profiling"),!1;const n=cm(),r=null===(t=null==n?void 0:n.getOptions)||void 0===t?void 0:t.call(n),i=r&&"number"==typeof r.profilesSampleRate?r.profilesSampleRate:void 0;return void 0===i?(vp("[Profiling] Profiling disabled, enable it by setting `profilesSampleRate` option to SDK init call."),!1):!(Math.random()>i&&(vp("[Profiling] Skip profiling transaction due to sampling."),1))},l=e=>{const t=(i=n,fy.startProfiling(i)?Date.now()*fv:null);var i;t&&(r={span_id:e.spanContext().spanId,profile_id:jp(),startTimestampNs:t},e.setAttribute("profile_id",r.profile_id),vp("[Profiling] started profiling: ",r.profile_id))},c=e=>{nv(e)&&(e.spanContext().spanId===(null==r?void 0:r.span_id)?u():vp(`[Profiling] Span (${e.spanContext().spanId}) ended is not the currently profiled span (${null==r?void 0:r.span_id}). Not stopping profiling.`))},u=()=>{if(d(),void 0===r)return;const e=function(e){const t=fy.stopProfiling();if(!t)return null;const n=Date.now()*fv,r=function(e){if(0===e.samples.length)return bp("[Profiling] No samples found in profile."),null;const{samples:t,hermesStacks:n,jsThreads:r}=function(e,t=3e10){const n=[],r=new Set,i=new Set,o=e[0];if(!o)return bp("[Profiling] No samples found in profile."),{samples:n,hermesStacks:i,jsThreads:r};const a=Number(o.ts);for(const o of e){r.add(o.tid),i.add(o.sf);const e=1e3*(Number(o.ts)-a);if(e>=t){bp(`[Profiling] Sample has elapsed time since start ${e}ns greater than the max elapsed time ${t}ns.`);break}n.push({stack_id:o.sf,thread_id:o.tid,elapsed_since_start_ns:e.toFixed(0)})}return{samples:n,hermesStacks:i,jsThreads:r}}(e.samples),{frames:i,hermesStackFrameIdToSentryFrameIdMap:o}=function(e){const t=[],n=new Map;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r];i&&(n.set(Number(r),t.length),t.push(dv(i)))}return{frames:t,hermesStackFrameIdToSentryFrameIdMap:n}}(e.stackFrames),{stacks:a,hermesStackToSentryStackMap:s}=function(e,t,n){var r;const i=new Map,o=[];for(const a of e){const e=o.length;i.set(a,e);const s=[];let l=a;for(;void 0!==l;){const e=n.get(l);void 0!==e&&s.push(e),l=null===(r=t[l])||void 0===r?void 0:r.parent}o.push(s)}return{stacks:o,hermesStackToSentryStackMap:i}}(n,e.stackFrames,o);for(const e of t){const t=s.get(e.stack_id);void 0===t?(Ap(`[Profiling] Hermes Stack ID ${e.stack_id} not found when mapping to Sentry Stack ID.`),e.stack_id=-1):e.stack_id=t}const l={};for(const e of r)l[e]={name:"JavaScriptThread",priority:1};return{samples:t,frames:i,stacks:a,thread_metadata:l,active_thread_id:Object.keys(l)[0]||"0"}}(t.hermesProfile);if(!r)return null;const i=function(e){return{platform:"javascript",version:"1",profile:e,transaction:{active_thread_id:e.active_thread_id}}}(r);if(!i)return null;if(t.androidProfile){const r=n-e;return function(e,t,n){return Object.assign(Object.assign({},t),{platform:"android",js_profile:e.profile,duration_ns:n.toString(10),active_thread_id:e.transaction.active_thread_id})}(i,t.androidProfile,r)}return t.nativeProfile?function(e,t){var n;return Object.assign(Object.assign(Object.assign(Object.assign({},e),{profile:gv(e.profile,t.profile,e.transaction.active_thread_id)}),(null===(n=t.debug_meta)||void 0===n?void 0:n.images)?{debug_meta:{images:t.debug_meta.images}}:{}),{measurements:t.measurements})}(i,t.nativeProfile):i}(r.startTimestampNs);if(!e)return bp("[Profiling] Stop failed. Cleaning up..."),void(r=void 0);rv.add(r.profile_id,e),vp("[Profiling] finished profiling: ",r.profile_id),r=void 0},h=e=>{var t,n,r,i,o,a;const s=null===(r=null===(n=null===(t=null==e?void 0:e.contexts)||void 0===t?void 0:t.trace)||void 0===n?void 0:n.data)||void 0===r?void 0:r.profile_id;if("string"!=typeof s)return vp("[Profiling] cannot find profile for a transaction without a profile context"),null;(null===(a=null===(o=null===(i=null==e?void 0:e.contexts)||void 0===i?void 0:i.trace)||void 0===o?void 0:o.data)||void 0===a?void 0:a.profile_id)&&delete e.contexts.trace.data.profile_id;const l=rv.get(s);if(rv.delete(s),!l)return vp(`[Profiling] cannot find profile ${s} for transaction ${e.event_id}`),null;const c=function(e,t,n){var r,i,o,a,s,l,c,u,h,d,f,p,m,g,y,v,b,A,x;if("js_profile"in t)return function(e,t,n){var r,i,o,a,s,l,c,u,h,d,f,p,m,g,y;return Object.assign(Object.assign({},t),{debug_meta:{images:[]},build_id:t.build_id||"",device_cpu_frequencies:[],device_is_emulator:(null===(i=null===(r=n.contexts)||void 0===r?void 0:r.device)||void 0===i?void 0:i.simulator)||!1,device_locale:(null===(o=n.contexts)||void 0===o?void 0:o.device)&&n.contexts.device.locale||"",device_manufacturer:(null===(s=null===(a=n.contexts)||void 0===a?void 0:a.device)||void 0===s?void 0:s.manufacturer)||"",device_model:(null===(c=null===(l=n.contexts)||void 0===l?void 0:l.device)||void 0===c?void 0:c.model)||"",device_os_name:(null===(h=null===(u=n.contexts)||void 0===u?void 0:u.os)||void 0===h?void 0:h.name)||"",device_os_version:(null===(f=null===(d=n.contexts)||void 0===d?void 0:d.os)||void 0===f?void 0:f.version)||"",device_physical_memory_bytes:(null===(m=null===(p=n.contexts)||void 0===p?void 0:p.device)||void 0===m?void 0:m.memory_size)&&Number(n.contexts.device.memory_size).toString(10)||"",environment:n.environment||"production",profile_id:e,timestamp:n.start_timestamp?new Date(1e3*n.start_timestamp).toISOString():(new Date).toISOString(),release:n.release||"",dist:n.dist||"",transaction_id:n.event_id||"",transaction_name:n.transaction||"",trace_id:(null===(y=null===(g=n.contexts)||void 0===g?void 0:g.trace)||void 0===y?void 0:y.trace_id)||"",version_name:n.release||"",version_code:n.dist||""})}(e,t,n);if(!t.profile||!function(e){return!(e.samples.length<=1)}(t.profile))return null;const w=(null===(i=null===(r=n.contexts)||void 0===r?void 0:r.trace)||void 0===i?void 0:i.trace_id)||"";return null==w||w.length,Object.assign(Object.assign({},t),{event_id:e,runtime:{name:"hermes",version:""},timestamp:n.start_timestamp?new Date(1e3*n.start_timestamp).toISOString():(new Date).toISOString(),release:n.release||"",environment:n.environment||"production",os:{name:(null===(a=null===(o=n.contexts)||void 0===o?void 0:o.os)||void 0===a?void 0:a.name)||"",version:(null===(l=null===(s=n.contexts)||void 0===s?void 0:s.os)||void 0===l?void 0:l.version)||"",build_number:(null===(u=null===(c=n.contexts)||void 0===c?void 0:c.os)||void 0===u?void 0:u.build)||""},device:{locale:(null===(h=n.contexts)||void 0===h?void 0:h.device)&&n.contexts.device.locale||"",model:(null===(f=null===(d=n.contexts)||void 0===d?void 0:d.device)||void 0===f?void 0:f.model)||"",manufacturer:(null===(m=null===(p=n.contexts)||void 0===p?void 0:p.device)||void 0===m?void 0:m.manufacturer)||"",architecture:(null===(y=null===(g=n.contexts)||void 0===g?void 0:g.device)||void 0===y?void 0:y.arch)||"",is_emulator:(null===(b=null===(v=n.contexts)||void 0===v?void 0:v.device)||void 0===b?void 0:b.simulator)||!1},transaction:{name:n.transaction||"",id:n.event_id||"",trace_id:w,active_thread_id:(null===(A=t.transaction)||void 0===A?void 0:A.active_thread_id)||""},debug_meta:{images:[...(null===(x=t.debug_meta)||void 0===x?void 0:x.images)||[]]}})}(s,l,e);return vp(`[Profiling] Created profile ${s} for transaction ${e.event_id}`),c},d=()=>{void 0!==i&&clearTimeout(i),i=void 0};return{name:"HermesProfiling",setupOnce:()=>{if(o)return;if(o=!0,!ey())return void vp("[Profiling] Hermes is not enabled, not adding profiling integration.");const e=cm();e&&"function"==typeof e.on&&((()=>{if(r)return;const e=ig();e&&a(e)})(),e.on("spanStart",a),e.on("spanEnd",c),e.on("beforeEnvelope",(e=>{if(!rv.size())return;const t=function(e){const t=[];return Vy(e,((e,n)=>{var r,i,o;if("transaction"===n)for(let n=1;ne.map((e=>e+r))))],e.samples=[...e.samples||[],...(t.samples||[]).filter((e=>e.thread_id!==n)).map((e=>Object.assign(Object.assign({},e),{stack_id:i+e.stack_id})))],e}function yv(e,t,n){var r,i,o,a,s,l,c;return a=this,s=void 0,c=function*(){if(!((null===(r=e.exception)||void 0===r?void 0:r.values)&&e.exception.values.length>0)||!1===(null===(o=(i=n.getOptions()).beforeScreenshot)||void 0===o?void 0:o.call(i,e,t)))return e;const a=yield fy.captureScreenshot();return a&&a.length>0&&(t.attachments=[...a,...(null==t?void 0:t.attachments)||[]]),e},new((l=void 0)||(l=Promise))((function(e,t){function n(e){try{i(c.next(e))}catch(e){t(e)}}function r(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){t.done?e(t.value):function(e){return e instanceof l?e:new l((function(t){t(e)}))}(t.value).then(n,r)}i((c=c.apply(a,s||[])).next())}))}function vv(e,t){var n,r,i,o,a;return r=this,i=void 0,a=function*(){if(!((null===(n=e.exception)||void 0===n?void 0:n.values)&&e.exception.values.length>0))return e;let r=null;try{r=yield fy.fetchViewHierarchy()}catch(e){Ap("Failed to get view hierarchy from native.",e)}return r&&(t.attachments=[{filename:"view-hierarchy.json",contentType:"application/json",attachmentType:"event.view_hierarchy",data:r},...(null==t?void 0:t.attachments)||[]]),e},new((o=void 0)||(o=Promise))((function(e,t){function n(e){try{l(a.next(e))}catch(e){t(e)}}function s(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof o?e:new o((function(t){t(e)}))}(t.value).then(n,s)}l((a=a.apply(r,i||[])).next())}))}const bv="ota_updates";const Av="http://localhost:8969/stream";function xv(){var e,t;try{const{url:n}=null!==(t=null===(e=Lg.Devtools)||void 0===e?void 0:e.getDevServer())&&void 0!==t?t:{};return n?`http://${function(e){const t=e.match(/^(?:\w+:)?\/\/([^/:]+)(:\d+)?(.*)$/);return(null==t?void 0:t[1])?t[1]:null}(n)}:8969/stream`:Av}catch(e){}return Av}const wv="MobileReplay";const Cv="MobileFeedback",Sv=()=>{var e;return null===(e=cm())||void 0===e?void 0:e.getIntegrationByName(Cv)};function Ev(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}class kv{constructor(e={}){this._traceId=e.traceId||Wp(),this._spanId=e.spanId||Qp()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}const Tv="__SENTRY_SUPPRESS_TRACING__";function Iv(e){const t=Rv();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=function(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=Qm(e.startTime),delete n.startTime,n}return t}(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>lm(e.scope,t):void 0!==i?e=>Ov(i,e):e=>e())((()=>{const t=om(),o=function(e,t){if(t)return t;if(null===t)return;const n=Zp(e);if(!n)return;const r=cm();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?rg(n):n}(t,i);return e.onlyIfParent&&!o?new kv:function({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Lm()){const r=new kv;return!n&&e||sg(r,{sampled:"false",sample_rate:"0",transaction:t.name,...ug(r)}),r}const i=am();let o;if(e&&!n)o=function(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[Tv]&&Zm(e),a=o?new $y({...n,parentSpanId:r,traceId:i,sampled:o}):new kv({traceId:i});tg(e,a);const s=cm();return s&&(s.emit("spanStart",a),n.endTimestamp&&s.emit("spanEnd",a)),a}(e,r,t),tg(e,o);else if(e){const n=ug(e),{traceId:i,spanId:a}=e.spanContext(),s=Zm(e);o=Mv({traceId:i,parentSpanId:a,...t},r,s),sg(o,n)}else{const{traceId:e,dsc:n,parentSpanId:a,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};o=Mv({traceId:e,parentSpanId:a,...t},r,s),n&&sg(o,n)}return function(e){if(!Yf)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Jm(e),{spanId:i}=e.spanContext(),o=Zm(e),a=rg(e),s=a===e,l=`[Tracing] Starting ${o?"sampled":"unsampled"} ${s?"root ":""}span`,c=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&c.push(`parent ID: ${r}`),!s){const{op:e,description:t}=Jm(a);c.push(`root ID: ${a.spanContext().spanId}`),e&&c.push(`root op: ${e}`),t&&c.push(`root description: ${t}`)}vp(`${l}\n ${c.join("\n ")}`)}(o),function(e,t,n){e&&(kp(e,_m,n),kp(e,Nm,t))}(o,r,i),o}({parentSpan:o,spanArguments:n,forceTransaction:r,scope:t})}))}function Ov(e,t){const n=Rv();return n.withActiveSpan?n.withActiveSpan(e,t):lm((n=>(Jp(n,e||void 0),t(n))))}function Rv(){return im(Hf())}function Mv(e,t,n){const r=cm(),i=r?.getOptions()||{},{name:o=""}=e,a={spanAttributes:{...e.attributes},spanName:o,parentSampled:n};r?.emit("beforeSampling",a,{decision:!1});const s=a.parentSampled??n,l=a.spanAttributes,c=t.getPropagationContext(),[u,h,d]=t.getScopeData().sdkProcessingMetadata[Tv]?[!1]:function(e,t,n){if(!Lm(e))return[!1];let r,i;"function"==typeof e.tracesSampler?(i=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),r=!0):void 0!==t.parentSampled?i=t.parentSampled:void 0!==e.tracesSampleRate&&(i=e.tracesSampleRate,r=!0);const o=Ev(i);if(void 0===o)return Yf&&bp(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!o)return Yf&&vp("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,o,r];const a=n{const r=cm();if(!r)return bp("[startIdleSpan] Can't create idle span, missing client."),new kv;if("background"===_g.A.currentState)return vp(`[startIdleSpan] App is already in background, not starting span for ${e.name}`),new kv;om().setPropagationContext({traceId:Wp(),sampleRand:Math.random()});const i=function(e,t={}){const n=new Map;let r,i=!1,o="externalFinish",a=!t.disableAutoFinish;const s=[],{idleTimeout:l=Vv.idleTimeout,finalTimeout:c=Vv.finalTimeout,childSpanTimeout:u=Vv.childSpanTimeout,beforeSpanEnd:h}=t,d=cm();if(!d||!Lm()){const e=new kv;return sg(e,{sample_rate:"0",sampled:"false",...ug(e)}),e}const f=om(),p=ig(),m=function(e){const t=Iv(e);return Jp(om(),t),Yf&&vp("[Tracing] Started span is an idle span"),t}(e);function g(){r&&(clearTimeout(r),r=void 0)}function y(e){g(),r=setTimeout((()=>{!i&&0===n.size&&a&&(o="idleTimeout",m.end(e))}),l)}function v(e){r=setTimeout((()=>{!i&&a&&(o="heartbeatFailed",m.end(e))}),u)}function b(e){i=!0,n.clear(),s.forEach((e=>e())),Jp(f,p);const t=Jm(m),{start_timestamp:r}=t;if(!r)return;t.data[xm]||m.setAttribute(xm,o),vp(`[Tracing] Idle span "${t.op}" finished`);const a=ng(m).filter((e=>e!==m));let u=0;a.forEach((t=>{t.isRecording()&&(t.setStatus({code:2,message:"cancelled"}),t.end(e),Yf&&vp("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=Jm(t),{timestamp:r=0,start_timestamp:i=0}=n,o=i<=e,a=r-i<=(c+l)/1e3;if(Yf){const e=JSON.stringify(t,void 0,2);o?a||vp("[Tracing] Discarding span since it finished after idle span final timeout",e):vp("[Tracing] Discarding span since it happened after idle span was finished",e)}a&&o||(function(e,t){e[$m]&&e[$m].delete(t)}(m,t),u++)})),u>0&&m.setAttribute("sentry.idle_span_discarded_spans",u)}return m.end=new Proxy(m.end,{apply(e,t,n){if(h&&h(m),t instanceof kv)return;const[r,...i]=n,o=Qm(r||Hp()),a=ng(m).filter((e=>e!==m));if(!a.length)return b(o),Reflect.apply(e,t,[o,...i]);const s=a.map((e=>Jm(e).timestamp)).filter((e=>!!e)),l=s.length?Math.max(...s):void 0,u=Jm(m).start_timestamp,d=Math.min(u?u+c/1e3:1/0,Math.max(u||-1/0,Math.min(o,l||1/0)));return b(d),Reflect.apply(e,t,[d,...i])}}),s.push(d.on("spanStart",(e=>{var t;i||e===m||Jm(e).timestamp||e instanceof $y&&e.isStandaloneSpan()||ng(m).includes(e)&&(t=e.spanContext().spanId,g(),n.set(t,!0),v(Hp()+u/1e3))}))),s.push(d.on("spanEnd",(e=>{var t;i||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&y(Hp()+l/1e3))}))),s.push(d.on("idleSpanEnableAutoFinish",(e=>{e===m&&(a=!0,y(),n.size&&v())}))),t.disableAutoFinish||y(),setTimeout((()=>{i||(m.setStatus({code:2,message:"deadline_exceeded"}),o="finalTimeout",m.end())}),c),m}(e,{finalTimeout:t,idleTimeout:n});return((e,t)=>{const n=_g.A.addEventListener("change",(e=>{"background"===e&&(vp(`Setting ${Jm(t).op} transaction to cancelled because the app is in the background.`),t.setStatus({code:2,message:"cancelled"}),t.end())}));n&&e.on("spanEnd",(e=>{var r;e===t&&(vp(`Removing AppState listener for ${Jm(t).op} transaction.`),null===(r=null==n?void 0:n.remove)||void 0===r||r.call(n))}))})(r,i),i};const Hv="thread.name",qv="javascript";function Gv(e){return e.data=e.data||{},e.data[Hv]="main",e}function Yv(e,t,n,r){e.addEvent(t,{[Cm]:n,[wm]:r})}function Wv(){const e=Gg.__BUNDLE_START_TIME__;if(e)return Gg.nativePerformanceNow?Date.now()-Gg.nativePerformanceNow()+e:e;bp("Missing the bundle start time on the global object.")}function Qv(e){return Pp(Object.assign(Object.assign({status:"ok"},e),{span_id:e.span_id?e.span_id:jp().substring(16),trace_id:e.trace_id?e.trace_id:jp(),data:Pp(Object.assign({[bm]:e.op,[Am]:e.origin},e.data?e.data:{}))}))}function Xv(e,t){return Qv(Object.assign({op:e.op,trace_id:e.trace_id,parent_span_id:e.span_id,origin:e.origin||"manual"},t))}Date.now();var Jv=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};let Zv;const Kv=({standalone:e=!1}={})=>{let t,n,r=!0,i=!1,o=!1;const a=e=>{n||nv(e)&&s(e.spanContext().spanId)},s=e=>{n=e,vp("[AppStart] First started active root span id recorded.",n)};function l(e){var t;return Jv(this,void 0,void 0,(function*(){if(i)return;if(!n)return void bp("[AppStart] No first started active root span id recorded. Can not attach app start.");if(!(null===(t=e.contexts)||void 0===t?void 0:t.trace))return void bp("[AppStart] Transaction event is missing trace context. Can not attach app start.");if(n!==e.contexts.trace.span_id)return void bp("[AppStart] First started active root span id does not match the transaction event span id. Can not attached app start.");const r=yield fy.fetchNativeAppStart();if(!r)return void bp("[AppStart] Failed to retrieve the app start metrics from the native layer.");if(r.has_fetched)return void bp("[AppStart] Measured app start metrics were already reported from the native layer.");const o=r.app_start_timestamp_ms;if(!o)return void bp("[AppStart] App start timestamp could not be loaded from the native layer.");const a=(null==Zv?void 0:Zv.timestampMs)||Wv();if(!a)return void bp("[AppStart] Javascript failed to record app start end. `_setAppStartEndData` was not called nor could the bundle start be found.");if(!(e.start_timestamp&&o>=1e3*e.start_timestamp-6e4))return void bp("[AppStart] App start timestamp is too far in the past to be used for app start span.");const s=a-o;if(s>=6e4)return void bp("[AppStart] App start duration is over a minute long, not adding app start span.");if(s<0)return void bp("[AppStart] Last recorded app start end timestamp is before the app start timestamp.","This is usually caused by missing `Sentry.wrap(RootComponent)` call.");i=!0,e.contexts.trace.data=e.contexts.trace.data||{},e.contexts.trace.data[bm]=jv,e.contexts.trace.op=jv;const l=_v;e.contexts.trace.data[Am]=l,e.contexts.trace.origin=l;const c=o/1e3;e.start_timestamp=c,e.spans=e.spans||[];const u=e.spans,h=u.find((({op:e})=>"ui.load.initial_display"===e));h&&(h.start_timestamp=c,$v(e,"time_to_initial_display",h));const d=u.find((({op:e})=>"ui.load.full_display"===e));d&&(d.start_timestamp=c,$v(e,"time_to_full_display",d));const f=a/1e3;e.timestamp&&e.timestampe.start_timestamp_ms/1e3>=b.start_timestamp)).map((e=>"UIKit init"===e.description?Gv(function(e,t){const n=Wv();return n&&n{t=e;const{enableAppStartTracking:n}=e.getOptions();n||(r=!1,bp("[AppStart] App start tracking is disabled.")),e.on("spanStart",a)},afterAllSetup:e=>{var t;o||(o=!0,null===(t=((e=cm())=>{if(e)return e.getIntegrationByName(Dv)})(e))||void 0===t||t.onRunApplication((()=>{i?(vp("[AppStartIntegration] Resetting app start data flushed flag based on runApplication call."),i=!1,n=void 0):vp("[AppStartIntegration] Waiting for initial app start was flush, before updating based on runApplication call.")})))},processEvent:t=>Jv(void 0,void 0,void 0,(function*(){return!r||e||"transaction"!==t.type||(yield l(t)),t})),captureStandaloneAppStart:function(){return Jv(this,void 0,void 0,(function*(){if(!t)return void console.warn("[AppStart] Could not capture App Start, missing client, call `Sentry.init` first.");if(!e)return void vp("[AppStart] App start tracking is enabled. App start will be added to the first transaction as a child span.");if(vp("[AppStart] App start tracking standalone root span (transaction)."),!(null==Zv?void 0:Zv.endFrames)&&fy.enableNative)try{const e=yield fy.fetchNativeFrames();vp("[AppStart] Captured end frames for standalone app start.",e);const t=(null==Zv?void 0:Zv.timestampMs)||1e3*Hp();n={timestampMs:t,endFrames:e},Zv&&bp("Overwriting already set app start end data."),Zv=n}catch(e){vp("[AppStart] Failed to capture frames for standalone app start.",e)}var n;const r=Iv({forceTransaction:!0,name:"App Start",op:jv});if(r instanceof kv)return;!function(e,t){e._endTime=t}(r,Hp()),t.emit("spanEnd",r);const i=function(e){var t,n;return null===(n=(t=e)._convertSpanToTransaction)||void 0===n?void 0:n.call(t)}(r);i?(yield l(i),i.spans&&0!==i.spans.length&&(zm(r).scope||om()).captureEvent(i)):bp("[AppStart] Failed to convert App Start span to transaction.")}))},setFirstStartedActiveRootSpanId:s}};function $v(e,t,n){n.timestamp&&n.start_timestamp?(e.measurements=e.measurements||{},e.measurements[t]={value:1e3*(n.timestamp-n.start_timestamp),unit:"millisecond"}):bp("Span is missing start or end timestamp. Cam not set measurement on transaction event.")}class eb{constructor({cleanupInterval:e=5e3,ttl:t=2e3}={}){this._ttl=t,this._map=new Map,this._cleanupIntervalMs=e,this.startCleanup()}set(e,t){if(this._cleanupInterval||this.startCleanup(),"object"!=typeof t||!t||!("then"in t))return void this._map.set(e,{value:t,expiresAt:Date.now()+this._ttl,promise:null});const n={value:void 0,expiresAt:null,promise:t};this._map.set(e,n),t.then((e=>{n.value=e,n.expiresAt=Date.now()+this._ttl,n.promise=null}),(()=>{n.expiresAt=Date.now()+this._ttl,n.promise=null}))}pop(e){const t=this.get(e);return this._map.delete(e),t}get(e){const t=this._map.get(e);if(t)return t.promise?t.promise:(t.expiresAt&&t.expiresAt<=Date.now()&&this._map.delete(e),t.value)}has(e){const t=this._map.get(e);return!(!t||!t.promise&&t.expiresAt&&t.expiresAt<=Date.now()&&(this._map.delete(e),1))}ttl(e){const t=this._map.get(e);if(null==t?void 0:t.expiresAt){const e=t.expiresAt-Date.now();return e>0?e:0}}cleanup(){const e=Date.now();for(const[t,n]of this._map.entries())n.expiresAt&&n.expiresAt<=e&&this._map.delete(t);this._map.size||this.stopCleanup()}clear(){this._cleanupInterval&&clearInterval(this._cleanupInterval),this._map.clear()}stopCleanup(){this._cleanupInterval&&clearInterval(this._cleanupInterval)}startCleanup(){this._cleanupInterval=setInterval((()=>this.cleanup()),this._cleanupIntervalMs)}}const tb="NativeFrames",nb=()=>{let e=null;const t=new eb({ttl:6e4}),n=new eb({ttl:2e3}),r=e=>{if(!nv(e))return;const n=e.spanContext().spanId;vp(`[${tb}] Fetching frames for root span start (${n}).`),t.set(n,new Promise((e=>{rb().then((t=>e(t))).then(void 0,(t=>{vp(`[${tb}] Error while fetching native frames.`,t),e(null)}))})))},i=r=>{const i=Hp(),o=r.spanContext().spanId;if(nv(r)){if(!t.has(o))return;return vp(`[${tb}] Fetch frames for root span end (${o}).`),void n.set(o,new Promise((e=>{rb().then((t=>{e({timestamp:i,nativeFrames:t})})).then(void 0,(t=>{vp(`[${tb}] Error while fetching native frames.`,t),e(null)}))})))}vp(`[${tb}] Fetch frames for child span end (${o}).`),rb().then((t=>{e={timestamp:i,nativeFrames:t}})).catch((e=>vp(`[${tb}] Error while fetching native frames.`,e)))};return{name:tb,setup:e=>{fy.enableNative?(fy.enableNativeFramesTracking(),e.on("spanStart",r),e.on("spanEnd",i)):bp(`[${tb}] This is not available on the Web, Expo Go and other platforms without native modules.`)},processEvent:r=>{return i=void 0,o=void 0,s=function*(){var i;if(!("transaction"===r.type&&r.transaction&&r.contexts&&r.contexts.trace&&r.timestamp&&r.contexts.trace.span_id))return r;const o=r.contexts.trace.op,a=r.contexts.trace.span_id,s=yield t.pop(a);if(!s)return bp(`[${tb}] Start frames of transaction ${r.transaction} (eventId, ${r.event_id}) are missing, but the transaction already ended.`),r;const l=yield n.pop(a);let c;if(l&&ib(l.timestamp,r.timestamp))vp(`[${tb}] Using frames from root span end (spanId, ${a}).`),c=l.nativeFrames;else{if(!e||!ib(e.timestamp,r.timestamp))return bp(`[${tb}] Frames were collected within larger than margin of error delay for spanId (${a}). Dropping the inaccurate values.`),r;vp(`[${tb}] Using native frames from last child span end (spanId, ${a}).`),c=e.nativeFrames}const u={frames_total:{value:c.totalFrames-s.totalFrames,unit:"none"},frames_frozen:{value:c.frozenFrames-s.frozenFrames,unit:"none"},frames_slow:{value:c.slowFrames-s.slowFrames,unit:"none"}};return u.frames_frozen.value<=0&&u.frames_slow.value<=0&&u.frames_total.value<=0?(bp(`[${tb}] Detected zero slow or frozen frames. Not adding measurements to spanId (${a}).`),r):(vp(`[${tb}] Adding measurements to ${o} transaction ${r.transaction}: ${JSON.stringify(u,void 0,2)}`),r.measurements=Object.assign(Object.assign({},null!==(i=r.measurements)&&void 0!==i?i:{}),u),r)},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function r(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof a?e:new a((function(t){t(e)}))}(t.value).then(n,r)}l((s=s.apply(i,o||[])).next())}));var i,o,a,s}}};function rb(){return new Promise(((e,t)=>{fy.fetchNativeFrames().then((n=>{n?e(n):t("Native frames response is null.")})).then(void 0,(e=>{t(e)})),setTimeout((()=>{t("Fetching native frames took too long. Dropping frames.")}),2e3)}))}function ib(e,t){return Math.abs(e-t)<.05}const ob=Uf;function ab(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function sb(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in ob))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}())return!1;if(ab(ob.fetch))return!0;let e=!1;const t=ob.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=ab(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){Yf&&bp("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function lb(e,t){const n="fetch";yy(n,e),vy(n,(()=>cb(void 0,t)))}function cb(e,t=!1){t&&!sb()||Ep(Uf,"fetch",(function(t){return function(...n){const r=new Error,{method:i,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:db(t),method:hb(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:db(t),method:hb(t,"method")?String(t.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:i,url:o},startTimestamp:1e3*Hp(),virtualError:r,headers:fb(n)};return e||by("fetch",{...a}),t.apply(Uf,n).then((async t=>(e?e(t):by("fetch",{...a,endTimestamp:1e3*Hp(),response:t}),t)),(e=>{if(by("fetch",{...a,endTimestamp:1e3*Hp(),error:e}),Qf(e)&&void 0===e.stack&&(e.stack=r.stack,kp(e,"framesToPop",1)),e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(a.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e}))}}))}function ub(e){let t;try{t=e.clone()}catch{return}!async function(t){if(t?.body){const n=t.body,r=n.getReader(),i=setTimeout((()=>{n.cancel().then(null,(()=>{}))}),9e4);let o=!0;for(;o;){let t;try{t=setTimeout((()=>{n.cancel().then(null,(()=>{}))}),5e3);const{done:i}=await r.read();clearTimeout(t),i&&(by("fetch-body-resolved",{endTimestamp:1e3*Hp(),response:e}),o=!1)}catch{o=!1}finally{clearTimeout(t)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,(()=>{}))}}(t)}function hb(e,t){return!!e&&"object"==typeof e&&!!e[t]}function db(e){return"string"==typeof e?e:e?hb(e,"url")?e.url:e.toString?e.toString():"":""}function fb(e){const[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(ap(t))return new Headers(t.headers)}catch{}}function pb(e={}){const t=e.client||cm();if(!function(){const e=cm();return!1!==e?.getOptions().enabled&&!!e?.getTransport()}()||!t)return{};const n=im(Hf());if(n.getTraceData)return n.getTraceData(e);const r=e.scope||om(),i=e.span||ig(),o=i?function(e){const{traceId:t,spanId:n}=e.spanContext();return Um(t,n,Zm(e))}(i):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Um(t,r,n)}(r),a=function(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(((e,[t,n],r)=>{const i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,o=0===r?i:`${e},${i}`;return o.length>8192?(Yf&&bp(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${Tm}${t}`]=n),e)),{}))}(i?ug(i):cg(t,r));if(!Vm.test(o))return bp("Invalid sentry-trace data. Cannot generate trace data"),{};const s={"sentry-trace":o,baggage:a};if(e.propagateTraceparent){const e=i?function(e){const{traceId:t,spanId:n}=e.spanContext();return Hm(t,n,Zm(e))}(i):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Hm(t,r,n)}(r);e&&(s.traceparent=e)}return s}function mb(e){return"isRelative"in e}function gb(e,t){const n=e.indexOf("://")<=0&&0!==e.indexOf("//"),r=t??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;const t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function yb(e){if(mb(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function vb(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function bb(e){return e.split(",").some((e=>e.trim().startsWith(Tm)))}function Ab(e,t,n,r){const i={url:e,type:"fetch","http.method":n,[Am]:r,[bm]:"http.client"};return t&&(mb(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}const xb=Uf,wb="__sentry_xhr_v3__";function Cb(e){yy("xhr",e),vy("xhr",Sb)}function Sb(){if(!xb.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const r=new Error,i=1e3*Hp(),o=Kf(n[0])?n[0].toUpperCase():void 0,a=function(e){if(Kf(e))return e;try{return e.toString()}catch{}}(n[1]);if(!o||!a)return e.apply(t,n);t[wb]={method:o,url:a,request_headers:{}},"POST"===o&&a.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const s=()=>{const e=t[wb];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}by("xhr",{endTimestamp:1e3*Hp(),startTimestamp:i,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(s(),e.apply(t,n))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,i]=n,o=t[wb];return o&&Kf(r)&&Kf(i)&&(o.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const r=t[wb];return r?(void 0!==n[0]&&(r.body=n[0]),by("xhr",{startTimestamp:1e3*Hp(),xhr:t}),e.apply(t,n)):e.apply(t,n)}})}const Eb="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,kb={},Tb={};function Ib(e,t){return function(e,t){kb[e]=kb[e]||[],kb[e].push(t)}(e,t),Tb[e]||(function(e){const t={};"event"===e&&(t.durationThreshold=0),((e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe({type:e,buffered:!0,...n}),r}}catch{}})(e,(t=>{!function(e,t){const n=kb[e];if(n?.length)for(const r of n)try{r(t)}catch(t){Eb&&Ap(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${wg(r)}\nError:`,t)}}(e,{entries:t})}),t)}(e),Tb[e]=!0),function(e,t,n){return()=>{n&&n();const r=kb[e];if(!r)return;const i=r.indexOf(t);-1!==i&&r.splice(i,1)}}(e,t)}function Ob(e=0){return((qp()||performance.timeOrigin)+e)/1e3}const Rb=Uf;let Mb=0;function Pb(){return Mb>0}function Db(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(Ip(e))return e}catch{return e}const n=function(...n){try{const r=n.map((e=>Db(e,t)));return e.apply(this,r)}catch(e){throw Mb++,setTimeout((()=>{Mb--})),lm((r=>{r.addEventProcessor((e=>(t.mechanism&&(Fp(e,void 0,void 0),Np(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),Og(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}Tp(n,e),kp(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}const jb=new WeakMap,Bb=new Map,Lb={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Fb(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:a,tracePropagationTargets:s,onRequestSpanStart:l}={...Lb,...t},c="function"==typeof o?o:e=>!0,u=e=>function(e,t){const n=up();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const o=r.origin===i;return t?Sp(r.toString(),t)||o&&Sp(r.pathname,t):o}{const n=!!e.match(/^\/(?!\/)/);return t?Sp(e,t):n}}(e,s),h={},d=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor((e=>("transaction"===e.type&&e.spans&&e.spans.forEach((e=>{if("http.client"===e.op){const t=Bb.get(e.span_id);t&&(e.timestamp=t/1e3,Bb.delete(e.span_id))}})),e))),i&&function(){const e="fetch-body-resolved";yy(e,(e=>{if(e.response){const t=jb.get(e.response);t&&e.endTimestamp&&Bb.set(t,e.endTimestamp)}})),vy(e,(()=>cb(ub)))}(),lb((e=>{const t=function(e,t,n,r,i){if(!e.fetchData)return;const{method:o,url:a}=e.fetchData,s=Lm()&&t(a);if(e.endTimestamp&&s){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(function(e,t){if(t.response){Fm(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}(n,e),delete r[t]))}const{spanOrigin:l="auto.http.browser",propagateTraceparent:c=!1}="object"==typeof i?i:{spanOrigin:i},u=!!ig(),h=s&&u?Iv(function(e,t,n){const r=gb(e);return{name:r?`${t} ${yb(r)}`:t,attributes:Ab(e,r,t,n)}}(a,o,l)):new kv;if(e.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h,n(e.fetchData.url)){const t=e.args[0],n=e.args[1]||{},r=function(e,t,n,r){const i=pb({span:n,propagateTraceparent:r}),o=i["sentry-trace"],a=i.baggage,s=i.traceparent;if(!o)return;const l=t.headers||(ap(e)?e.headers:void 0);if(l){if(function(e){return"undefined"!=typeof Headers&&ip(e,Headers)}(l)){const e=new Headers(l);if(e.get("sentry-trace")||e.set("sentry-trace",o),r&&s&&!e.get("traceparent")&&e.set("traceparent",s),a){const t=e.get("baggage");t?bb(t)||e.set("baggage",`${t},${a}`):e.set("baggage",a)}return e}if(Array.isArray(l)){const e=[...l];l.find((e=>"sentry-trace"===e[0]))||e.push(["sentry-trace",o]),r&&s&&!l.find((e=>"traceparent"===e[0]))&&e.push(["traceparent",s]);const t=l.find((e=>"baggage"===e[0]&&bb(e[1])));return a&&!t&&e.push(["baggage",a]),e}{const e="sentry-trace"in l?l["sentry-trace"]:void 0,t="traceparent"in l?l.traceparent:void 0,n="baggage"in l?l.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],c=n&&(Array.isArray(n)?n.find((e=>bb(e))):bb(n));a&&!c&&i.push(a);const u={...l,"sentry-trace":e??o,baggage:i.length>0?i.join(","):void 0};return r&&s&&!t&&(u.traceparent=s),u}}return{...i}}(t,n,Lm()&&u?h:void 0,c);r&&(e.args[1]=n,n.headers=r)}const d=cm();if(d){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};d.emit("beforeOutgoingRequestSpan",h,t)}return h}(e,c,u,h,{propagateTraceparent:d});if(e.response&&e.fetchData.__span&&jb.set(e.response,e.fetchData.__span),t){const n=_b(e.fetchData.url),r=n?vb(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r}),a&&Nb(t),l?.(t,{headers:e.headers})}}))),r&&Cb((e=>{const t=function(e,t,n,r,i){const o=e.xhr,a=o?.[wb];if(!o||o.__sentry_own_request__||!a)return;const{url:s,method:l}=a,c=Lm()&&t(s);if(e.endTimestamp&&c){const e=o.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==a.status_code&&(Fm(t,a.status_code),t.end(),delete r[e]))}const u=_b(s),h=vb(u||s),d=s.split(/[?#]/,1)[0],f=!!ig(),p=c&&f?Iv({name:`${l} ${d}`,attributes:{url:s,type:"xhr","http.method":l,"http.url":u,"server.address":h?.host,[Am]:"auto.http.browser",[bm]:"http.client",...h?.search&&{"http.query":h?.search},...h?.hash&&{"http.fragment":h?.hash}}}):new kv;o.__sentry_xhr_span_id__=p.spanContext().spanId,r[o.__sentry_xhr_span_id__]=p,n(s)&&function(e,t,n){const{"sentry-trace":r,baggage:i,traceparent:o}=pb({span:t,propagateTraceparent:n});r&&function(e,t,n,r){const i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),r&&!i?.traceparent&&e.setRequestHeader("traceparent",r),n){const t=i?.baggage;t&&t.split(",").some((e=>e.trim().startsWith("sentry-")))||e.setRequestHeader("baggage",n)}}catch{}}(e,r,i,o)}(o,Lm()&&f?p:void 0,i);const m=cm();return m&&m.emit("beforeOutgoingRequestSpan",p,e),p}(e,c,u,h,d);if(t){let n;a&&Nb(t);try{n=new Headers(e.xhr.__sentry_xhr_v3__?.request_headers)}catch{}l?.(t,{headers:n})}}))}function Nb(e){const{url:t}=Jm(e).data;if(!t||"string"!=typeof t)return;const n=Ib("resource",(({entries:r})=>{r.forEach((r=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(r)&&r.name.endsWith(t)&&(e.setAttributes(function(e){const t={};if(null!=e.nextHopProtocol){const{name:n,version:r}=function(e){let t="unknown",n="unknown",r="";for(const i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return qp()||(xb.addEventListener&&xb.performance)?.timeOrigin?{...t,"http.request.redirect_start":Ob(e.redirectStart),"http.request.redirect_end":Ob(e.redirectEnd),"http.request.worker_start":Ob(e.workerStart),"http.request.fetch_start":Ob(e.fetchStart),"http.request.domain_lookup_start":Ob(e.domainLookupStart),"http.request.domain_lookup_end":Ob(e.domainLookupEnd),"http.request.connect_start":Ob(e.connectStart),"http.request.secure_connection_start":Ob(e.secureConnectionStart),"http.request.connection_end":Ob(e.connectEnd),"http.request.request_start":Ob(e.requestStart),"http.request.response_start":Ob(e.responseStart),"http.request.response_end":Ob(e.responseEnd),"http.request.time_to_first_byte":(e.responseStart??0)/1e3}:t}(r)),setTimeout(n))}))}))}function _b(e){try{return new URL(e,Rb.location.origin).href}catch{return}}const zb="ReactNativeTracing",Vb={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};const Ub="UserInteraction";const Hb=new eb({ttl:6e4});var qb=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const Gb="TimeToDisplay",Yb=e=>e>3e4,Wb=()=>{let e=!1;return{name:Gb,afterAllSetup(t){var n,r;e=null!==(r=null===(n=function(e){return e.getIntegrationByName("ReactNavigation")}(t))||void 0===n?void 0:n.options.enableTimeToInitialDisplayForPreloadedRoutes)&&void 0!==r&&r},processEvent:t=>qb(void 0,void 0,void 0,(function*(){var n,r,i,o,a;if("transaction"!==t.type)return t;const s=null===(r=null===(n=t.contexts)||void 0===n?void 0:n.trace)||void 0===r?void 0:r.span_id;if(!s)return bp(`[${Gb}] No root span id found in transaction.`),t;const l=t.start_timestamp;if(!l)return bp(`[${Gb}] No transaction start timestamp found in transaction.`),t;t.spans=t.spans||[],t.measurements=t.measurements||{};const c=yield function({event:e,rootSpanId:t,transactionStartTimestampSeconds:n,enableTimeToInitialDisplayForPreloadedRoutes:r}){var i;return qb(this,void 0,void 0,(function*(){const o=yield fy.popTimeToDisplayFor(`ttid-${t}`);e.spans=e.spans||[];let a=null===(i=e.spans)||void 0===i?void 0:i.find((e=>e.op===Bv));return!a||void 0!==a.status&&"ok"!==a.status||o?o?(null==a?void 0:a.status)&&"ok"!==a.status?(a.status="ok",a.timestamp=o,vp(`[${Gb}] Updated existing ttid span.`,a),a):(a=Qv({op:Bv,description:"Time To Initial Display",start_timestamp:n,timestamp:o,origin:zv,parent_span_id:t,data:{[Hv]:qv}}),vp(`[${Gb}] Added ttid span to transaction.`,a),e.spans.push(a),a):(vp(`[${Gb}] No manual ttid end timestamp found for span ${t}.`),function({event:e,rootSpanId:t,transactionStartTimestampSeconds:n,enableTimeToInitialDisplayForPreloadedRoutes:r}){var i,o,a,s,l,c;return qb(this,void 0,void 0,(function*(){const u=yield fy.popTimeToDisplayFor(`ttid-navigation-${t}`),h=yield(g=t,d=void 0,f=void 0,p=void 0,m=function*(){return Hb.get(g)},new(p||(p=Promise))((function(e,t){function n(e){try{i(m.next(e))}catch(e){t(e)}}function r(e){try{i(m.throw(e))}catch(e){t(e)}}function i(t){t.done?e(t.value):function(e){return e instanceof p?e:new p((function(t){t(e)}))}(t.value).then(n,r)}i((m=m.apply(d,f||[])).next())})));var d,f,p,m,g;if((null===(a=null===(o=null===(i=e.contexts)||void 0===i?void 0:i.trace)||void 0===o?void 0:o.data)||void 0===a?void 0:a["route.has_been_seen"])&&!r)return void vp(`[${Gb}] Route has been seen and time to initial display is disabled for preloaded routes.`);const y=null!=u?u:h;if(!y)return void vp(`[${Gb}] No automatic ttid end timestamp found for span ${t}.`);const v=null===(l=null===(s=e.contexts)||void 0===s?void 0:s.app)||void 0===l?void 0:l.view_names,b=Array.isArray(v)?v[0]:v,A=Qv({op:Bv,description:b?`${b} initial display`:"Time To Initial Display",start_timestamp:n,timestamp:y,origin:"auto.ui.time_to_display",parent_span_id:t,data:{[Hv]:qv}});return e.spans=null!==(c=e.spans)&&void 0!==c?c:[],e.spans.push(A),A}))}({event:e,rootSpanId:t,transactionStartTimestampSeconds:n,enableTimeToInitialDisplayForPreloadedRoutes:r})):(vp(`[${Gb}] Ttid span already exists and is ok.`,a),a)}))}({event:t,rootSpanId:s,transactionStartTimestampSeconds:l,enableTimeToInitialDisplayForPreloadedRoutes:e}),u=yield function({event:e,rootSpanId:t,transactionStartTimestampSeconds:n,ttidSpan:r}){var i;return qb(this,void 0,void 0,(function*(){const o=yield fy.popTimeToDisplayFor(`ttfd-${t}`);if(!r||!o)return;e.spans=e.spans||[];let a=null===(i=e.spans)||void 0===i?void 0:i.find((e=>e.op===Lv)),s=o;r.timestamp&&oi(a,t))):a;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,o))}function Zb(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}let Kb,$b,eA,tA;function nA(){if(!xb.document)return;const e=by.bind(null,"dom"),t=rA(e,!0);xb.document.addEventListener("click",t,!1),xb.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=xb,r=n[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Ep(r,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=rA(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch{}return t.call(this,n,r,i)}})),Ep(r,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}})))}))}function rA(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch{return null}}(n);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;kp(n,"_sentryCaptured",!0),r&&!r._sentryId&&kp(r,"_sentryId",jp());const i="keypress"===n.type?"input":n.type;(function(e){if(e.type!==$b)return!1;try{if(!e.target||e.target._sentryId!==eA)return!1}catch{}return!0})(n)||(e({event:n,name:i,global:t}),$b=n.type,eA=r?r._sentryId:void 0),clearTimeout(Kb),Kb=xb.setTimeout((()=>{eA=void 0,$b=void 0}),1e3)}}function iA(e){const t="history";yy(t,e),vy(t,oA)}function oA(){function e(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const r=tA,i=function(e){try{return new URL(e,xb.location.origin).toString()}catch{return e}}(String(n));if(tA=i,r===i)return e.apply(this,t);by("history",{from:r,to:i})}return e.apply(this,t)}}xb.addEventListener("popstate",(()=>{const e=xb.location.href,t=tA;tA=e,t!==e&&by("history",{from:t,to:e})})),"history"in ob&&ob.history&&(Ep(xb.history,"pushState",e),Ep(xb.history,"replaceState",e))}const aA="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function sA(e){if(null===e)return"";switch(typeof e){case"string":default:return e;case"boolean":return 1==e?"True":"False";case"number":case"bigint":return`${e}`;case"undefined":return;case"symbol":return e.toString()}}const lA=()=>({name:"LogEnricher",setup(e){e.on("afterInit",(()=>{(function(){var e,t,n,r,i,o,a,s,l,c;return a=this,s=void 0,c=function*(){try{const a=yield fy.fetchNativeLogAttributes();cA=Object.assign(Object.assign(Object.assign({},(null===(e=null==a?void 0:a.contexts)||void 0===e?void 0:e.device)&&{brand:null===(t=a.contexts.device)||void 0===t?void 0:t.brand,model:null===(n=a.contexts.device)||void 0===n?void 0:n.model,family:null===(r=a.contexts.device)||void 0===r?void 0:r.family}),(null===(i=null==a?void 0:a.contexts)||void 0===i?void 0:i.os)&&{os:a.contexts.os.name,version:a.contexts.os.version}),(null===(o=null==a?void 0:a.contexts)||void 0===o?void 0:o.release)&&{release:a.contexts.release})}catch(e){return Promise.reject(`[LOGS]: Failed to prepare attributes from Native Layer: ${e}`)}return Promise.resolve()},new((l=void 0)||(l=Promise))((function(e,t){function n(e){try{i(c.next(e))}catch(e){t(e)}}function r(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){t.done?e(t.value):function(e){return e instanceof l?e:new l((function(t){t(e)}))}(t.value).then(n,r)}i((c=c.apply(a,s||[])).next())}))})().then((()=>{e.on("beforeCaptureLog",(t=>{!function(e,t){var n;if(void 0===cA)return;const r=null!==(n=e.attributes)&&void 0!==n?n:{};uA(r,"device.brand",cA.brand),uA(r,"device.model",cA.model),uA(r,"device.family",cA.family),uA(r,"os.name",cA.os),uA(r,"os.version",cA.version),uA(r,"sentry.release",cA.release);const i=t.getIntegrationByName("MobileReplay");uA(r,"sentry.replay_id",null==i?void 0:i.getReplayId()),e.attributes=r}(t,e)}))}),(e=>{vp(e)}))}))}});let cA;function uA(e,t,n,r=!0){!n||e[t]&&!r||(e[t]=n)}const hA=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],dA=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&Ep(Rb,"setTimeout",fA),t.setInterval&&Ep(Rb,"setInterval",fA),t.requestAnimationFrame&&Ep(Rb,"requestAnimationFrame",pA),t.XMLHttpRequest&&"XMLHttpRequest"in Rb&&Ep(XMLHttpRequest.prototype,"send",mA);const e=t.eventTarget;e&&(Array.isArray(e)?e:hA).forEach((e=>function(e,t){const n=Rb,r=n[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Ep(r,"addEventListener",(function(n){return function(r,i,o){try{"function"==typeof i.handleEvent&&(i.handleEvent=Db(i.handleEvent,{mechanism:{data:{handler:wg(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&function(e,t,n){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,n)}(this,r,i),n.apply(this,[r,Db(i,{mechanism:{data:{handler:wg(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}})),Ep(r,"removeEventListener",(function(e){return function(t,n,r){try{const i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}})))}(e,t)))}}};function fA(e){return function(...t){const n=t[0];return t[0]=Db(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${wg(e)}`}}),e.apply(this,t)}}function pA(e){return function(t){return e.apply(this,[Db(t,{mechanism:{data:{handler:wg(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function mA(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Ep(n,e,(function(t){const n={mechanism:{data:{handler:wg(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Ip(t);return r&&(n.mechanism.data.handler=wg(r)),Db(t,n)}))})),e.apply(this,t)}}function gA(e,t){let n=Cg(e),r=Cg(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e({name:"FunctionToString",setupOnce(){bA=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Ip(this),n=AA.has(cm())&&void 0!==t?t:this;return bA.apply(n,e)}}catch{}},setup(e){AA.set(e,!0)}});let wA=null;function CA(){wA=Uf.onerror,Uf.onerror=function(e,t,n,r,i){return by("error",{column:r,error:i,line:n,msg:e,url:t}),!!wA&&wA.apply(this,arguments)},Uf.onerror.__SENTRY_INSTRUMENTED__=!0}const SA=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){!function(){const t="error";yy(t,(t=>{const{stackParser:n,attachStacktrace:r}=kA();if(cm()!==e||Pb())return;const{msg:i,url:o,line:a,column:s,error:l}=t,c=function(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=r,u=n,h=function(e){if(Kf(e)&&0!==e.length){if(e.startsWith("data:")){const t=e.match(/^data:([^;]+)/);return``}return e.slice(0,1024)}}(t)??up();return 0===l.length&&l.push({colno:c,filename:h,function:gg,in_app:!0,lineno:u}),e}(Oy(n,l||i,void 0,r,!1),o,a,s);c.level="error",Mg(c,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})),vy(t,CA)}()}(e),EA("onerror")),t.onunhandledrejection&&(function(e){!function(e){const t="unhandledrejection";yy(t,e),vy(t,xy)}((t=>{const{stackParser:n,attachStacktrace:r}=kA();if(cm()!==e||Pb())return;const i=function(e){if(ep(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),o=ep(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Oy(n,i,void 0,r,!0);o.level="error",Mg(o,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}))}(e),EA("onunhandledrejection"))}}};function EA(e){aA&&vp(`Global Handler attached: ${e}`)}function kA(){const e=cm();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function TA(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function IA(e,t){const n=function(e){const t={};return e.forEach(((e,n)=>{t[n]=e})),t}(t.headers);let r;try{const t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=RA(t))}catch{}return[n,r]}function OA(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function RA(e){return e.split("; ").reduce(((e,t)=>{const[n,r]=t.split("=");return n&&r&&(e[n]=r),e}),{})}function MA(e,t,n){return function(e,t){return e.some((e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1]))}(e.failedRequestStatusCodes,t)&&(r=e.failedRequestTargets,i=n,r.some((e=>"string"==typeof e?i.includes(e):e.test(i))))&&!function(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return function(e,t){const n=gb(e);return!(!n||mb(n))&&!!t&&n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search)}(e,n)||function(e,t){return!!t&&TA(e)===TA(t)}(e,r)}(n,cm());var r,i}function PA(e){const t=cm(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,o={message:i,exception:{values:[{type:"Error",value:i,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:OA(e.responseHeaders)}}};return Np(o,{type:`auto.http.client.${e.type}`,handled:!1}),o}function DA(){const e=cm();return!!e&&Boolean(e.getOptions().sendDefaultPii)}function jA(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}const BA=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],LA=(e={})=>{let t;return{name:"EventFilters",setup(n){const r=n.getOptions();t=FA(e,r)},processEvent(n,r,i){if(!t){const n=i.getOptions();t=FA(e,n)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;const n=e.transaction;return!!n&&Sp(n,t)}(e,t.ignoreTransactions))return Yf&&bp(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Lp(e)}`),!0}else{if(function(e,t){return!!t?.length&&jA(e).some((e=>Sp(e,t)))}(e,t.ignoreErrors))return Yf&&bp(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Lp(e)}`),!0;if(function(e){return!!e.exception?.values?.length&&(!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)))}(e))return Yf&&bp(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${Lp(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const n=NA(e);return!!n&&Sp(n,t)}(e,t.denyUrls))return Yf&&bp(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Lp(e)}.\nUrl: ${NA(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const n=NA(e);return!n||Sp(n,t)}(e,t.allowUrls))return Yf&&bp(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Lp(e)}.\nUrl: ${NA(e)}`),!0}return!1}(n,t)?null:n}}};function FA(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:BA],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function NA(e){try{const t=[...e.exception?.values??[]].reverse().find((e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length)),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return Yf&&Ap(`Cannot extract url for event ${Lp(e)}`),null}}function _A(e,t,n,r,i,o){if(!i.exception?.values||!o||!ip(o.originalException,Error))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=zA(e,t,r,o.originalException,n,i.exception.values,a,0))}function zA(e,t,n,r,i,o,a,s){if(o.length>=n+1)return o;let l=[...o];if(ip(r[i],Error)){VA(a,s);const o=e(t,r[i]),c=l.length;UA(o,i,c,s),l=zA(e,t,n,r[i],i,[o,...l],o,c)}return Array.isArray(r.errors)&&r.errors.forEach(((r,o)=>{if(ip(r,Error)){VA(a,s);const c=e(t,r),u=l.length;UA(c,`errors[${o}]`,u,s),l=zA(e,t,n,r,i,[c,...l],c,u)}})),l}function VA(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function UA(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const HA="Not capturing exception because it's already been captured.",qA="Discarded session because of missing or non-string release",GA=Symbol.for("SentryInternalError"),YA=Symbol.for("SentryDoNotSendEventError");function WA(e){return{message:e,[GA]:!0}}function QA(e){return{message:e,[YA]:!0}}function XA(e){return!!e&&"object"==typeof e&&GA in e}function JA(e){return!!e&&"object"==typeof e&&YA in e}class ZA{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Bm(e.dsn):Yf&&bp("No DSN provided, client will not send events."),this._dsn){const i=(t=this._dsn,n=e.tunnel,r=e._metadata?e._metadata.sdk:void 0,n||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(t)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(t,r)}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:i})}var t,n,r}captureException(e,t,n){const r=jp();if(_p(e))return Yf&&vp(HA),r;const i={event_id:r,...t};return this._process(this.eventFromException(e,i).then((e=>this._captureEvent(e,i,n)))),i.event_id}captureMessage(e,t,n,r){const i={event_id:jp(),...n},o=$f(e)?e:String(e),a=ep(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(a.then((e=>this._captureEvent(e,i,r)))),i.event_id}captureEvent(e,t,n){const r=jp();if(t?.originalException&&_p(t.originalException))return Yf&&vp(HA),r;const i={event_id:r,...t},o=e.sdkProcessingMetadata||{},a=o.capturedSpanScope,s=o.capturedSpanIsolationScope;return this._process(this._captureEvent(e,i,a||n,s)),i.event_id}captureSession(e){this.sendSession(e),Gp(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):dm(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((({name:e})=>e.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];av(this,e,this._integrations),t||ov(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const i=Qy(n),o=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return e;const n=e.sdk||{};e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,n?.sdk);const a=function(e,t,n,r){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Pm(r)},...i&&{trace:i}}}(e,i,r,t);return delete e.sdkProcessingMetadata,_y(a,[[{type:o},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=zy(n,Gy(e));this.sendEnvelope(n).then((t=>this.emit("afterSendEvent",e,t)))}sendSession(e){const{release:t,environment:n=hm}=this._options;if("aggregates"in e){const r=e.attrs||{};if(!r.release&&!t)return void(Yf&&bp(qA));r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t)return void(Yf&&bp(qA));e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const r=function(e,t,n,r){const i=Qy(n);return _y({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Pm(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const r=`${e}:${t}`;Yf&&vp(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach((e=>e(...t)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(Yf&&Ap("Error while sending envelope:",e),{}))):(Yf&&Ap("Transport disabled"),dm({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&av(e,t,n)})),n}(this,e),ov(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;const i=t.exception?.values;if(i){r=!0;for(const e of i){const t=e.mechanism;if(!1===t?.handled){n=!0;break}}}const o="ok"===e.status;(o&&0===e.errors||o&&n)&&(Gp(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new pm((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){const i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o?.length&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Tg(i,e,t,n,this,r).then((e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:um(n),...e.contexts};const r=cg(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:r,...e.sdkProcessingMetadata},e}))}_captureEvent(e,t={},n=om(),r=am()){return Yf&&KA(e)&&vp(`Captured error event \`${jA(e)[0]||""}\``),this._processEvent(e,t,n,r).then((e=>e.event_id),(e=>{Yf&&(JA(e)?vp(e.message):XA(e)?bp(e.message):bp(e))}))}_processEvent(e,t,n,r){const i=this.getOptions(),{sampleRate:o}=i,a=$A(e),s=KA(e),l=e.type||"error",c=`before send for type \`${l}\``,u=void 0===o?void 0:Ev(o);if(s&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error"),fm(QA(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const h="replay_event"===l?"replay":l;return this._prepareEvent(e,t,n,r).then((e=>{if(null===e)throw this.recordDroppedEvent("event_processor",h),QA("An event processor returned `null`, will not send event.");if(t.data&&!0===t.data.__sentry__)return e;const n=function(e,t,n,r){const{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:a,ignoreSpans:s}=t;let l=n;if(KA(l)&&i)return i(l,r);if($A(l)){if(a||s){const t=function(e){const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:o,data:a,op:s}=e.contexts?.trace??{};return{data:a??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:a?.[Em],exclusive_time:a?.[km],measurements:e.measurements,is_segment:!0}}(l);if(s?.length&&Xy(t,s))return null;if(a){const e=a(t);e?l=Yp(n,{type:"transaction",timestamp:(c=e).timestamp,start_timestamp:c.start_timestamp,transaction:c.description,contexts:{trace:{trace_id:c.trace_id,span_id:c.span_id,parent_span_id:c.parent_span_id,op:c.op,status:c.status,origin:c.origin,data:{...c.data,...c.profile_id&&{[Em]:c.profile_id},...c.exclusive_time&&{[km]:c.exclusive_time}}}},measurements:c.measurements}):og()}if(l.spans){const t=[],n=l.spans;for(const e of n)if(s?.length&&Xy(e,s))Jy(n,e);else if(a){const n=a(e);n?t.push(n):(og(),t.push(e))}else t.push(e);const r=l.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),l.spans=t}}if(o){if(l.spans){const e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(l,r)}}var c;return l}(this,i,e,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(rp(e))return e.then((e=>{if(!tp(e)&&null!==e)throw WA(n);return e}),(e=>{throw WA(`${t} rejected with ${e}`)}));if(!tp(e)&&null!==e)throw WA(n);return e}(n,c)})).then((i=>{if(null===i){if(this.recordDroppedEvent("before_send",h),a){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw QA(`${c} returned \`null\`, will not send event.`)}const o=n.getSession()||r.getSession();if(s&&o&&this._updateSessionFromEvent(o,i),a){const e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const l=i.transaction_info;if(a&&l&&i.transaction!==e.transaction){const e="custom";i.transaction_info={...l,source:e}}return this.sendEvent(i,t),i})).then(null,(e=>{if(JA(e)||XA(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),WA(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}}))}_flushOutcomes(){Yf&&vp("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(Yf&&vp("No outcomes to send"));if(!this._dsn)return void(Yf&&vp("No dsn provided, will not send outcomes"));Yf&&vp("Sending outcomes:",e);const t=(n=e,_y((r=this._options.tunnel&&Pm(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:zp(),discarded_events:n}]]));var n,r;this.sendEnvelope(t)}}function KA(e){return void 0===e.type}function $A(e){return"transaction"===e.type}function ex(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}const tx={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function nx(e,t,n,r=!0){!n||e[t]&&!r||(e[t]=n)}function rx(e,t){const n=sx(),r=ax(e);void 0===r?n.set(e,[t]):(n.set(e,[...r,t]),r.length>=100&&ox(e,r))}function ix(e,t=cm(),n=om(),r=rx){if(!t)return void(Yf&&bp("No client available to capture log."));const{release:i,environment:o,enableLogs:a=!1,beforeSendLog:s}=t.getOptions();if(!a)return void(Yf&&bp("logging option not enabled, log will not be captured."));const[,l]=function(e,t){return t?lm(t,(()=>{const n=ig(),r=n?Ym(n):um(t);return[n?ug(n):cg(e,t),r]})):[void 0,void 0]}(t,n),c={...e.attributes},{user:{id:u,email:h,username:d}}=function(e){const t=sm().getScopeData();return hg(t,am().getScopeData()),hg(t,e.getScopeData()),t}(n);nx(c,"user.id",u,!1),nx(c,"user.email",h,!1),nx(c,"user.name",d,!1),nx(c,"sentry.release",i),nx(c,"sentry.environment",o);const{name:f,version:p}=t.getSdkMetadata()?.sdk??{};nx(c,"sentry.sdk.name",f),nx(c,"sentry.sdk.version",p);const m=t.getIntegrationByName("Replay");nx(c,"sentry.replay_id",m?.getReplayId());const g=e.message;if($f(g)){const{__sentry_template_string__:e,__sentry_template_values__:t=[]}=g;t?.length&&(c["sentry.message.template"]=e),t.forEach(((e,t)=>{c[`sentry.message.parameter.${t}`]=e}))}const y=Zp(n);nx(c,"sentry.trace.parent_span_id",y?.spanContext().spanId);const v={...e,attributes:c};t.emit("beforeCaptureLog",v);const b=s?fp((()=>s(v))):v;if(!b)return t.recordDroppedEvent("before_send","log_item",1),void(Yf&&bp("beforeSendLog returned null, log will not be captured."));const{level:A,message:x,attributes:w={},severityNumber:C}=b,S={timestamp:Hp(),level:A,body:x,trace_id:l?.trace_id,severity_number:C??tx[A],attributes:Object.keys(w).reduce(((e,t)=>(e[t]=function(e){switch(typeof e){case"number":return Number.isInteger(e)?{value:e,type:"integer"}:{value:e,type:"double"};case"boolean":return{value:e,type:"boolean"};case"string":return{value:e,type:"string"};default:{let t="";try{t=JSON.stringify(e)??""}catch{}return{value:t,type:"string"}}}}(w[t]),e)),{})};r(t,S),t.emit("afterCaptureLog",b)}function ox(e,t){const n=t??ax(e)??[];if(0===n.length)return;const r=e.getOptions(),i=function(e,t,n,r){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Pm(r)),_y(i,[(o=e,[{type:"log",item_count:o.length,content_type:"application/vnd.sentry.items.log+json"},{items:o}])]);var o}(n,r._metadata,r.tunnel,e.getDsn());sx().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function ax(e){return sx().get(e)}function sx(){return Gf("clientToLogBufferMap",(()=>new WeakMap))}var lx=__webpack_require__(52338);class cx extends ZA{constructor(e){var t,n,r;(r=null===(t=Lg.ReactNativeVersion)||void 0===t?void 0:t.version)&&0===r.major&&r.minor<70&&lx.A.ignoreLogs(["Require cycle:"]),e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||By,(null===(n=e._metadata)||void 0===n?void 0:n.sdk)&&(e._metadata.sdk.settings=Object.assign({infer_ip:e.sendDefaultPii?"auto":"never"},e._metadata.sdk.settings)),e.parentSpanIsAlwaysRootSpan=void 0===e.parentSpanIsAlwaysRootSpan||e.parentSpanIsAlwaysRootSpan,super(e),this._outcomesBuffer=[],!0===e.sendDefaultPii&&this.on("beforeSendSession",ex),e.enableLogs&&(this.on("flush",(()=>{ox(this)})),this.on("afterCaptureLog",(()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout((()=>{ox(this)}),5e3)})))}eventFromException(e,t={}){return function(e,t,n,r){const i=Oy(e,t,n?.syntheticException||void 0,r);return Np(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),dm(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t,n){return function(e,t,n="info",r,i){const o=Ry(e,t,r?.syntheticException||void 0,i);return o.level=n,r?.event_id&&(o.event_id=r.event_id),dm(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}nativeCrash(){fy.nativeCrash()}close(){return super.close().then((e=>fy.closeNativeSdk().then((()=>e))))}captureUserFeedback(e){const t=function(e,{metadata:t,tunnel:n,dsn:r}){const i=Object.assign(Object.assign({event_id:e.event_id,sent_at:(new Date).toISOString()},(null==t?void 0:t.sdk)&&{sdk:{name:t.sdk.name,version:t.sdk.version}}),!!n&&!!r&&{dsn:Pm(r)}),o=function(e){return[{type:"user_report"},e]}(e);return _y(i,[o])}(e,{metadata:this._options._metadata,dsn:this.getDsn(),tunnel:void 0});this.sendEnvelope(t)}sendEnvelope(e){const t=this._clearOutcomes();this._outcomesBuffer=function(...e){const t=new Map,n=e=>{const n=`${e.reason}:${e.category}`,r=t.get(n);r?r.quantity+=e.quantity:t.set(n,e)};return e.forEach((e=>e.forEach(n))),[...t.values()]}(this._outcomesBuffer,t),this._options.sendClientReports&&this._attachClientReportTo(this._outcomesBuffer,e);let n=!0;return this._isEnabled()&&this._transport&&this._dsn?(this.emit("beforeEnvelope",e),this._transport.send(e).then(null,(e=>{e instanceof Vg?(n=!1,Ap("SentryError while sending event, keeping outcomes buffer:",e)):Ap("Error while sending event:",e)}))):Ap("Transport disabled"),n&&(this._outcomesBuffer=[]),Promise.resolve({})}init(){super.init(),this._initNativeSdk()}on(e,t){return super.on(e,t)}emit(e,...t){super.emit(e,...t)}_initNativeSdk(){var e;fy.initNativeSdk(Object.assign(Object.assign({},this._options),{defaultSidecarUrl:xv(),devServerUrl:(null===(e=Fg())||void 0===e?void 0:e.url)||"",mobileReplayOptions:this._integrations[wv]&&"options"in this._integrations[wv]?this._integrations[wv].options:void 0})).then((e=>e),(()=>(this._showCannotConnectDialog(),!1))).then((e=>{var t,n;null===(n=(t=this._options).onReady)||void 0===n||n.call(t,{didCallNativeInit:e}),this.emit("afterInit")})).then(void 0,(e=>{Ap("The OnReady callback threw an error: ",e)}))}_showCannotConnectDialog(){}_attachClientReportTo(e,t){if(e.length>0){const n=[{type:"client_report"},{timestamp:zp(),discarded_events:e}];t[1].push(n)}}}const ux=Symbol.for("SentryBufferFullError");function hx(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new pm(((n,r)=>{let i=t.length;if(!i)return n(!0);const o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{dm(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}function dx(e,t,n=hx(e.bufferSize||64)){let r={};return{send:function(i){const o=[];if(Vy(i,((t,n)=>{const i=Wy(n);!function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)?o.push(t):e.recordDroppedEvent("ratelimit_backoff",i)})),0===o.length)return dm({});const a=_y(i[0],o),s=t=>{Vy(a,((n,r)=>{e.recordDroppedEvent(t,Wy(r))}))};return n.add((()=>t({body:Hy(a)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Yf&&bp(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n?.["x-sentry-rate-limits"],a=n?.["retry-after"];if(o)for(const e of o.trim().split(",")){const[t,n,,,o]=e.split(":",5),a=parseInt(t,10),s=1e3*(isNaN(a)?60:a);if(n)for(const e of n.split(";"))"metric_bucket"===e&&o&&!o.split(";").includes("custom")||(i[e]=r+s);else i.all=r+s}else a?i.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}(r,e),e)),(e=>{throw s("network_error"),Yf&&Ap("Encountered error running transport request:",e),e})))).then((e=>e),(e=>{if(e===ux)return Yf&&Ap("Skipped sending event because buffer is full."),s("queue_overflow"),dm({});throw e}))},flush:e=>n.drain(e)}}const fx={};function px(e,t=function(e){const t=fx[e];if(t)return t;let n=xb[e];if(ab(n))return fx[e]=n.bind(xb);const r=xb.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){Eb&&bp(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?fx[e]=n.bind(xb):n}("fetch")){let n=0,r=0;return dx(e,(async function(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const n=await t(e.url,a);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw fx.fetch=void 0,e}finally{n-=o,r--}}))}function mx(e,t,n,r){const i={filename:e,function:""===t?gg:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const gx=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,yx=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,vx=/\((\S*)(?::(\d+))(?::(\d+))\)/,bx=/at (.+?) ?\(data:(.+?),/,Ax=[30,e=>{const t=e.match(bx);if(t)return{filename:``,function:t[1]};const n=gx.exec(e);if(n){const[,e,t,r]=n;return mx(e,gg,+t,+r)}const r=yx.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){const e=vx.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}const[e,t]=Ex(r[1]||gg,r[2]);return mx(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],xx=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,wx=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Cx=[50,e=>{const t=xx.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=wx.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||gg;return[n,e]=Ex(n,e),mx(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Sx=bg(Ax,Cx),Ex=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:gg,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class kx extends u.Component{constructor(e){super(e);const{name:t,disabled:n=!1}=this.props;n||(this._mountSpan=Iv({name:`<${t}>`,onlyIfParent:!0,op:"ui.react.mount",attributes:{[Am]:"auto.ui.react.profiler","ui.component_name":t}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){const t=Object.keys(e).filter((t=>e[t]!==this.props.updateProps[t]));if(t.length>0){const e=Hp();this._updateSpan=Ov(this._mountSpan,(()=>Iv({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[Am]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":t}})))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const e=Hp(),{name:t,includeRender:n=!0}=this.props;if(this._mountSpan&&n){const n=Jm(this._mountSpan).timestamp;Ov(this._mountSpan,(()=>{const r=Iv({onlyIfParent:!0,name:`<${t}>`,op:"ui.react.render",startTime:n,attributes:{[Am]:"auto.ui.react.profiler","ui.component_name":t}});r&&r.end(e)}))}}render(){return this.props.children}}Object.assign(kx,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});var Tx=__webpack_require__(92187),Ix=__webpack_require__(46413),Ox=__webpack_require__(54081);const Rx=(e,t)=>{void 0!==Gg.alert?Gg.alert(`${e}\n${t}`):Ox.A.alert(e,t)},Mx={onFormOpen:()=>{},onFormClose:()=>{},onAddScreenshot:e=>{},onSubmitSuccess:()=>{},onSubmitError:()=>{},onFormSubmitted:()=>{},showBranding:!0,isEmailRequired:!1,shouldValidateEmail:!0,isNameRequired:!1,showEmail:!0,showName:!0,enableScreenshot:!1,enableTakeScreenshot:!1,cancelButtonLabel:"Cancel",emailLabel:"Email",emailPlaceholder:"your.email@example.org",formTitle:"Report a Bug",isRequiredLabel:"(required)",messageLabel:"Description",messagePlaceholder:"What's the bug? What did you expect?",nameLabel:"Name",namePlaceholder:"Your Name",submitButtonLabel:"Send Bug Report",errorTitle:"Error",formError:"Please fill out all required fields.",emailError:"Please enter a valid email address.",captureScreenshotError:"Error capturing screenshot. Please try again.",successMessageText:"Thank you for your report!",addScreenshotButtonLabel:"Add a screenshot",removeScreenshotButtonLabel:"Remove screenshot",captureScreenshotButtonLabel:"Take a screenshot",genericError:"Unable to send feedback due to an unexpected error."},Px={triggerLabel:"Report a Bug",triggerAriaLabel:""},Dx={triggerLabel:"Take Screenshot",triggerAriaLabel:""},jx=e=>({triggerButton:{position:"absolute",bottom:30,right:30,backgroundColor:e.background,padding:15,borderRadius:40,justifyContent:"center",alignItems:"center",elevation:5,shadowColor:e.border,shadowOffset:{width:1,height:2},shadowOpacity:.5,shadowRadius:3,flexDirection:"row",borderWidth:1,borderColor:e.border},triggerText:{color:e.foreground,fontSize:18},triggerIcon:{width:24,height:24,padding:2,marginEnd:6,tintColor:e.sentryLogo}}),Bx=jx,Lx={position:"absolute",top:0,left:0,right:0,bottom:0},Fx=e=>({backgroundColor:e.background,borderTopLeftRadius:16,borderTopRightRadius:16,overflow:"hidden",alignSelf:"stretch",shadowColor:"#000",shadowOffset:{width:0,height:-3},shadowOpacity:.1,shadowRadius:4,elevation:5,flex:1}),Nx={height:64};function _x(){const e=(()=>{const e=Sv();return(null==e?void 0:e.colorScheme)?e.colorScheme:"system"})(),t="system"===e?Tx.A.getColorScheme():e,n=Object.assign(Object.assign({},zx),(()=>{const e=Sv();return e?e.themeLight:{}})()),r=Object.assign(Object.assign({},Vx),(()=>{const e=Sv();return e?e.themeDark:{}})());return"dark"===t?r:n}const zx={accentBackground:"rgba(88, 74, 192, 1)",accentForeground:"#ffffff",foreground:"#2b2233",background:"#ffffff",border:"rgba(41, 35, 47, 0.13)",feedbackIcon:"rgba(54, 45, 89, 1)",sentryLogo:"rgba(54, 45, 89, 1)"},Vx={accentBackground:"rgba(88, 74, 192, 1)",accentForeground:"#ffffff",foreground:"#ebe6ef",background:"#29232f",border:"rgba(235, 230, 239, 0.15)",feedbackIcon:"#ffffff",sentryLogo:"#ffffff"};function Ux(){var e,t;(null===(e=cm())||void 0===e?void 0:e.getIntegrationByName(Cv))||null===(t=cm())||void 0===t||t.addIntegration(((e={})=>{const{buttonOptions:t,screenshotButtonOptions:n,colorScheme:r,themeLight:i,themeDark:o}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{};class Gx{static get _feedbackComponentName(){throw new Error("Subclasses must override feedbackComponentName")}static initialize(e){this._setVisibility=e}static reset(){this._isVisible=!1,this._setVisibility=qx}static show(){this._setVisibility!==qx?(this._isVisible=!0,this._setVisibility(!0)):console.warn(`[Sentry] ${this._feedbackComponentName} requires 'Sentry.wrap(RootComponent)' to be called before 'show${this._feedbackComponentName}()'.`)}static hide(){this._setVisibility!==qx?(this._isVisible=!1,this._setVisibility(!1)):console.warn(`[Sentry] ${this._feedbackComponentName} requires 'Sentry.wrap(RootComponent)' before interacting with the widget.`)}static isFormVisible(){return this._isVisible}}Gx._isVisible=!1;class Yx extends Gx{static get _feedbackComponentName(){return"FeedbackWidget"}}class Wx extends Gx{static get _feedbackComponentName(){return"FeedbackButton"}}class Qx extends Gx{static get _feedbackComponentName(){return"ScreenshotButton"}}const Xx=()=>{!function(){var e,t;(null===(e=cm())||void 0===e?void 0:e.getIntegrationByName(Hx))||null===(t=cm())||void 0===t||t.addIntegration({name:Hx})}(),Yx.show()};class Jx extends u.Component{constructor(e){super(e),Ux()}componentDidMount(){this._themeListener=Tx.A.addChangeListener((()=>{this.forceUpdate()}))}componentWillUnmount(){this._themeListener&&this._themeListener.remove()}render(){var e,t,n;const r=_x(),i=Object.assign(Object.assign({},Px),this.props),o={triggerButton:Object.assign(Object.assign({},jx(r).triggerButton),null===(e=this.props.styles)||void 0===e?void 0:e.triggerButton),triggerText:Object.assign(Object.assign({},jx(r).triggerText),null===(t=this.props.styles)||void 0===t?void 0:t.triggerText),triggerIcon:Object.assign(Object.assign({},jx(r).triggerIcon),null===(n=this.props.styles)||void 0===n?void 0:n.triggerIcon)};return u.createElement(Ix.A,{style:o.triggerButton,onPress:Xx,accessibilityLabel:i.triggerAriaLabel},u.createElement(zs.A,{source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAAAk1BMVEUAAAAqIDEqIjMmIDArIjIrIjMoHjErITMrIjMqITIqITIqITIqIjIqITIqITIhHi4qITIqITIeAConHi8rITMqITIqITIcHCopITIpIDEpIDIlGC8qITIqITIpIDIpHjAqITIqIDIqIDEqIDAqITInHjAqIDIqIDEqITIqITIqIDIiFCgpIDEqITIoHS8qIDIrIjMN1S0HAAAAMHRSTlMAhnknzMQy1zyF6/H55PYQ0rIGGPudjAmUTEQUv7p2K6lmWDZxHV9S36J+DD7bI208pRBPAAAGrUlEQVR42uzd6XLaMBSG4Y/YhuAVbAwx+xp2eu7/6tq0nfaHIAizSNbR+5vJJM8EG45lGfrm7EZRSNL5bvcAg1oM6fZaBQxp/0HlylOY0PuRyjbco/L1unRHbVS9RYPuaoxKlzY7dF9xhgpXb9Hd1VDddiHdX4SqNnHpIU1QzcYhPaY5qpjj0aNaooL9iOlhvaFynYZEnAFmAXEGWI2IOAN8BsQZIGsTcQaY+0SMAQZT+hVfgLVPX3EFSLb0J6YARUR/YwmQ5PQvjgD9DcmWJ7hUraoANwy9owIwDuCGofc2gXEANwy9/TVgHMANQ+/pAMYBpLUOSebPAeMAbhh6tzOYByA/9A4+AeMAbhh6j1YwD0B+6B3MAOMAbhh6D09QAdCvtT33ecUkWfwDeD1Ab+yTHnknKABYHEmPwjGgAKAISY/cCVQAvGvy94c7QAVAEpEWtepQA/BBOtRppngYwDaDfAMt3gCNBVAeQKzxUciC/iAN6vZwJ4BYsC0gU5uUd3wHHgAgFu0yXE39IfCjhwcBiHWmE1yJFLfpA+UBJJpOtAbI93gwgFieaQsQFcDzAShYagqwTfAUADF3oiGAvwZeBUDxUjuA6QBPBBAbDbQC8OfAawFoU9cIoJ3h5QAUz3UBCD4BBQBESz0ARisoAqCmBgDBDFAGQB/KAaYrqASgrlKAVtcB1ALQThJgXX94px4A5QD0KQfgQP/KAYQH5gDkZ8wByOMOQE3DAfJZHtF3dd7NBngDsKh9Z9BIjQf41dyjizU5AACHFl0odFgAADOfztdmAoBsROfrMwEAxh06l8cGAEVM5+qzAcDCpzMN+QBgEtCZ6nwAcAhJbMsIAHMSixNGAPggsRkngF6DhDxOAKiHJJRxAjj3JvjBCmAgngvbrACwE88DKSuARPxIfGAFgFx8JS+AungQ4AUAYUAUMQMQ79pNeAH0hZe+8wJIY+FKKS8AuMLFcmYAubBihBnAUliwwgxgLQwGmQEIpwGXGcBCWLXEDGAiXCZmBlDn/h9w4H4MKIS5KDOAmfB9mBmA8HUwZwYgLBaoMQOIhItDvAAccZEAL4Cl8NIVLwDhEBDwmgmKeyV4vADG4v0jvACO4m0hrAAKEspYAYjrZl1WV4c/SajGCWAfkdCCE0BOQhtOa4TWJNZlBLDySczhA5A0SMzjs1I0HdKZ5mwAem06U8RmtXji0bmWXACcBp3L7zEBuPQcpyWPW2ayKZ1vk3IASMcBXWjN4La5/exIlxqZf+fopBvQxeKT2QD7fvdI3zU2++7xgK40NHz/gGsFK+YABfMtNJrMd5GZQgpgE4RR47F50/FEPYDXU7qXmFsoBmglKAGg316KZQEaGcoBaLWZanmAVqZ8O72vtokiAC/RYEPFr6K+EoB2T48tNb/66L0eoKnRrrJEjcWLAYK1VvsKE3V2LwVwHd12lhZ+pzIA8toa7i1OFC9fBODW9dxdnmi4egGAP8M3dahMemwyLQUQ1BJ8l/KnrLUHzwQIatd+vEeq84unARyXCa7VJPXl+2cAxNM+JJqQBm0Ojwbwp+se5BqRDnXTBwK0xnXIV++QDrXqT7k2WJmnjRGFb88CqMgD94i8kyIAjEmP4pkiALy3SI9GmRoAoL/dkA75czUAXyUnx3HpfHPnWjmdz/nTW0iSTRMFAFc/GL+X/mVuf/J+1DcSAGn3hoGhiQDAYSM/MDQSAPv8hqfwmggArH35JwQaCYBBW35gaCQA8BnIDwyNBMBqKD8wNBIAWMbyA0MjATBx5QeGRgIgbXbkB4YmAgCLI91flQHQ+z+H4QkA9CP6E1cAJFP6HVsAYO7TrxgD/HkMEGcAYBYzB8DJYw4AvIXMAVBvMQdA2mUOABw2zAHEgWH5xpUEAAqfHtO8ogDCwLBsk6oCCAPDckWoLoAwMCxTt8oAwsDw9uJVtQHguPeeBCsOIAwMb2uEygMAiwaVbZiYAFB+YJinMAIAWAzp9loFYAoA4OxGUUjS+W73AJgEUCILYAEsgAWwABbAAlgAC2ABLIAFsAAWwAJYAAtgASyABbAAFsACWAALYAEsgAWwABbAAlgAC2ABLIAFsAAWwAKUANg2r+WZDSCRBbAAFsAC/GyfXlIYhIIgitYgGHhoiMmDSPyAgqKz2v/qxIkL0JoU9NlB3+6OABEgAkSACBABnAP0FMvwslGsgpeBYjW8FBQbYeZNqbKFmYlSDex0FEp2BwB8V8rkPwwViSJ5gaX5QYlkuf/DZ0i8rWwM///0m7bni5flqh5dxt8BPG/wrQSMUX8AAAAASUVORK5CYII="},style:o.triggerIcon}),u.createElement(Ko.A,{style:o.triggerText,testID:"sentry-feedback-button"},i.triggerLabel))}}var Zx=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};let Kx;const $x=()=>Zx(void 0,void 0,void 0,(function*(){Qx.hide(),setTimeout((()=>Zx(void 0,void 0,void 0,(function*(){const e=yield fy.captureScreenshot();Kx=e&&e.length>0?e[0]:"ErrorCapturingScreenshot",Xx()}))),100)}));class ew extends u.Component{constructor(e){super(e),Ux()}componentDidMount(){this._themeListener=Tx.A.addChangeListener((()=>{this.forceUpdate()}))}componentWillUnmount(){this._themeListener&&this._themeListener.remove()}render(){var e,t,n;const r=_x(),i=Object.assign(Object.assign({},Dx),this.props),o={triggerButton:Object.assign(Object.assign({},Bx(r).triggerButton),null===(e=this.props.styles)||void 0===e?void 0:e.triggerButton),triggerText:Object.assign(Object.assign({},Bx(r).triggerText),null===(t=this.props.styles)||void 0===t?void 0:t.triggerText),triggerIcon:Object.assign(Object.assign({},Bx(r).triggerIcon),null===(n=this.props.styles)||void 0===n?void 0:n.triggerIcon)};return u.createElement(Ix.A,{style:o.triggerButton,onPress:$x,accessibilityLabel:i.triggerAriaLabel},u.createElement(zs.A,{source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAADwCAYAAAA+VemSAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAhGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAEgAAAABAAAASAAAAAEAA6ABAAMAAAABAAEAAKACAAQAAAABAAAA8KADAAQAAAABAAAA8AAAAAAm0kfIAAAACXBIWXMAAAsTAAALEwEAmpwYAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgoZXuEHAAAh3klEQVR4Ae2dB7RlVXnHjcBQpFepMzh0HMqAHWNBNGBBjSV2Y6LG2KIus6LR2BJTLdhQ0ayFsFDJYmGwLYwFBKX3GdrAFAZmpFdRQWJ+v5m3J5fHO+/de+7d++w7831r/d49795z9v72/+xvt3PuPY96VFgoEAqEAqFAKBAKhAKhQCgQCgygwB8NsG+JXWeRySawPujbxpBsPTbS/w+wfT/8DtzvbngQajf932gCy7kh/AFKmDr9FtQtaXUn2/8LNVuqB+qmfmI9UbffgP4/BJZNc//fg+W0nqzVZqDUZPvhzJNge7ByHwL6aIXbuuf/a9k+B64GA+EEWAQ1mxXvCXAAzJ/YtrxWvl7rDWgro//7mqz3/7Sdjmnaz2MfDQvgXFgK/v9VuA1qti1wzjqhbgfBE2EPMDgvBAPVMlwGNvIbwE1gOa+Atdp6T3gXBfXkvAiOgseBwbgZeBKsYJtCqsS+Z1BrVvp7wJNny/wN+BwshWTpuPR/V6+W50/gpXAgWKbHQConm8XMhlDdHLkY9MdOcAevNVjvOdsOh6wbL4THg+de7dTNQNXsda0L9rj3gceL5bsX7KFPBgN6JZwJvdabX+/7Y7NtAUqaQXgw2BM9FnaA+WDLmk4KmwPbco44D86B88HW15PaxQnqzfNQfDBwnwdWQod+NZmjFnX7JajZJaD1lmH1O/n/pjzV6DBQt2fCvmBj3tYs453gNMty/gJs+G+G6yBsBgU8MVuCJ+JV8C2wdbQHGAXOgXrTOZX/nw42Fl2ZedswOTJwqNfrX43b+ngczIMup1UG7+Hwfcil049J+zvwEdgawmZQYEc+fx38FBzS5DoxvekaxLbiXdmBZHwiTG5cen2sbdvh9dfBkUJX9iwyzhm8vZovJa+/hW3BHn6YXp7D105zaGzL7hDGYUuvgLm3P0V+pVtYRxvayyF3+XKk/3v8fi84z+zCPkCmOco1VZo2WLeC06/Pw+SGK51LPqrXhpl3Ti5Vb4F348Oj4a3wfHAIXXpI64LYbXA5lDRHHG8A5/njZvZCG4OVelEB53vrjCvLb4J9CuRrFpbVOrI5mPcuE9vb82r5XRzr9Y9/135zdfXZ8Bm4ClLL18VQ0t7EFUh7kxInwsZwNnwcrodU9nF7tWf6NFjBS+jmvHc/+ALcBKX1SnXTgLXR+hEcBRvBOmX2sC+FM6D0SWjKz0bEBsVeJbeZh8PPZaA/qWI0+Vbz+z/D//kwyhEayU1pXon4JNwFtehmEB8J1duwK4620Iqu/QO8FuZALWZQHQAXgwtoOU0dnOeLVqL3Wp3T6P9uRZL7Q4nphw3dr8HzswXUoNsR+KHp2+mrtir94zCpraXgdajxEXgVzIGazOGzC2kbFnDK3sr5m/P9cbftKMA8GKZ+9KuB9cchdIlRUr8+ud9h8FFwYS2NRGpoXHBndObw532wEuyBasN58JUwG3KbvccvwTxr02FQf5wP/gRKzAP3JZ/FUJNu9rxJsxvYfgc4KtHWqiB+OwXyDpdU2Jpe00mwYuwJuW1rMrgFatJgGF+WUpYSvaIjpGH8LHHs7fhoXS8xkiOb/m2YIdKLyMbrnZv3n13RPVNLme6EKpG5K7hri5UqiwFoY1uz2Th/EP6mNicHCeAUEJbB4H0PHOY/Fdvv8M2FGF9zmz39Akhfa8udX870LcNCMLhym4tXniMb2pptJ5x7ATwPemOhU58HCWBPpvOAPwWD92ng5L7ESSabVubw/jwoEVTOG13tdrg17uaaxoVgmXKbq/YXgSvRtZtfTnk37AWDxE62cg3qxK548jp4Jnjd1+CtpjXCl8nmMPBGsHfMbeZxKdyRO6MC6dsrroASjXMK4HT5rUDxWmWhFi7qPQeOBlfqO7dBA9ivAO4NKSBqDl7FtSLqa4mKaG91GbiQNe6mbiV6X3UycC8BR0s1W29dfz2OGgdjZQ4fjgeDYRy4Aj/fBd7e2Ss+/2a1fyF1K+M4aDSVj+fg+2shXftkM7vNIocT4D6Yyqca3zsOXw+ATm2Qk/TnePo2GPburVIF/m8y+mcoPbdywWw3KHHpimxGbseSopUzjbJGnsEUCdrbm583dOw8xec1vuX5tcE5F5yqdWL9DqG3wbungnMAW8PaTWG9qaJ08KqLJ9TG41b/GTO7GX/VzRXhkqMWZfoxfB/u9Z8xsM3w8Ug4oktfZ+qBPYlO1u15nbxvBaVPLFkOZAbv1+C70EUQeU3TrzHa0NmjbALjYCtx8otwBjgFKG32wK7gO5x+PLhIWrt5951+/gD0vzpzOPMx8OTWOA+Z7JPBewzMha5tRxz4BFgpJ/tZ2/+e3w/DttC17YMDXwaHpbXpNJU/V+PnU8DRaXGbqQfeHI8OgcOgEwf7VMR554/h0/AtWAaK3aU5fF8Ep8J14OjFmwFqsntw5jT4DOhnDSvo9v4L4b/gJtgBamhYcGNKswd21OB1c/Usak0LUg6TDYBN4dmwIdRkLnrcCPYcVjpvBDgDFDFdT0xl4K1OTP2WT3AVr3fA28Gh1tawK3jiS5oNnUGxYgL1OgMuA+e9XZvnzJ73+gmu5dWG8A0Tr9vz6gKh+9VizoVfCI78iltTAKfe62A8svftyrweaYB6J5VzS0+mPi8Bb5q4EgwOW+zJlsow+f3S/1vZ9PvbYJBYQeeA2u4JNkYlzAVLA8JgXQBqtxhqst5zpm63wYkTr9aFvUDdZoMNoesLBpC9oOUzwEub+Xp/RCejhOlasqfi1HvgZdCF3U+mF8NXwIrm/wZtWCiQFJjHxpNhZ3CU6GKrC0td2LvI9CS4vYvMp8rzUN48AWwVS3If+Z0CrwB7qM3B+fcsCAsFehWwTmwF9rw7gPXlfXAFlKyz5nUWPBeqsTfiyQrILYRD45THJWx/AA6CjSEsFBhUgS05wLWGKyHVq946lt7L8fpXgzo77P5Nc2DTnQ87DptBH8c7jHceqOBfhJPgfggLBQZVwLp0F1iHDNB3wh4wXT3n45GZQ/kqbB+8OBlytFJTpXk5eb0JXIwICwWGUSCt6ziCc068CKaqczneO568bDCKmStoU9n+vFmqNXGh6vPgfPtBCAsFhlHAwNRctf5P+BncCyVsNpnsWyKjlEdTALuiV6o3PJO8vgERvOmsxOuoFPC6tzeEXDSqBGdIx3hab4Z9RvpxUwB7ja3E9cmbycfVO4UOCwVyKGAPbB0rYS6guSJezJoC2Avkue++cqhzGlxXrLSR0bqogJ3RuXBBgcLvRB5zC+SzJoumAH48e+yyZq98Gy40lBqq5ytFpFy7At4y6lA6t3m5qsTIdU05mgLY3lFym9/k8FbJsFAgpwLWZYMrt9nbF13LaQrg3XBkm8ylVVQXF27KnE8kHwrcjgTLC8jg3WDGTjFrCuDH4cF6kLMX9nrdDZnzIPmwUGBV77sksw7GivE0J3M+D0u+KYDTqrBBlssc0pS6QyZXGSLd8VEgd11LseI3zopZUwBfhQd+BS6X2UBcCl5sDwsFSihgfV4AOQPML+JcU6IwKY+mAF7IDjemnTK8WtDzIGcjkcHtSHKMFfBuLO/6y9lpLCb9K0pq1BTAtlQ5F5ccPv8Kiq7YlRQ28qpOATsNF01z98D+CEExawpgvxm0LKMXd5O23zjKuUiW0f1IegwVMIDtgf22Ui6zl0/rR7ny6Dtdv9vorY4G2Sixd38XeLdXWChQUgHr3DfBQBtlnTat78JzoBrzG0lfg1EX9ATS9A6ssFCgCwVeSKb2xNZrp3LD1O/e419JWmklms3uzeH1UeDdUqmQvQ6n9wZ5vYe03gphoUAXChhg9sKfAKdxg9Tdyfv2xoILV7uDVjSIvVmjyXTYCbkrxXNhWxjGOYctX4fvwK0QFgp0oYALp9Y/v6zjKLPtvfgpFgzeY6Day6IW9G3Q2xNPbo1m+t8FBAtpQxAWCtSggL86cyy4Kj1T/W363OD9C8h9kwhZDGf2vnvB6+F0mKpAvUOK9Lkrct+HN8AcmK7H5+OwUKCYArPIaTYcDB+GqTqoqeq0dXsFfAmOgM2hM+u35XAoLddNvBqIj4HNYM7EtkMKC7cUvIa8ErzudjY4vEg3baT9eCssFOhEAeugPe+yCZZP/P9qXh0t7gRzwP00p3/ucyMsAW9COgeuBYO8M0sO9uOA+xqg2tHg3MFfHzgA9gZbtGXgsMLWTK6CsFCgZgVSvfb778+E34KjzQPB9xxFWo9lIXiPhJdXw0KBUCAUCAVCgVAgFAgFQoFQIBQIBUKBUCAUCAVCgVAgFAgFQoFQIBQIBUKBUCAUCAVCgVAgFAgFQoFQIBQIBUKBUCAUCAVCgVAgFAgFQoFQIBQIBUKBUCAUCAVCgVAgFAgFQoFQIBQIBUKBUCAUCAVCgVAgFAgFQoFQIBQIBUKBUCAUCAVCgVAgFAgFQoFQIBQIBUKBUCAUCAVCgZEqMMiPx48040gsFFjbFWgbXD5WZcsJtuJ1C/BxpD6W4g7wMaI+fsVnyNwPYaFA7QoYC6kuW5+3Buv5Q3A3WK99SsPv4QaowgYJYAPUoLRwT4CDYP4Ej+NVuxPOBR8/YeFPgF9CWChQqwLWaev27vAUmAc+LuiJYF3XFsH5cCvYOR0DBvRYmYX5M/gB+OAyWyUfWObzVn1mktha/QYspO+fBIdArw3SaPQeF9uhwKgU6K2Ddj4fggvBOm3dtQ5bl1O9ti5b133fB5x9EFJws1mn9RbSHvdzcA04JE4Fm+nVJxr6FLevwkthY9B60179TvwNBcookOqeI8RXwfdgOfQG7Ez1ejH7/wQ+Cr0dVEqbt+uwjXBDB48HW6CZCtb7+eRnqzqUfjlsCmGhQJcK2Hu+Bi6A3jo76LYxcRw45F4fqrO5eHQiOISwcJODctACG8QvhrBQoEsFHA0OG7wpFhxWfx327LJATXk/jQ8GDdKZ9rdB2K0pw3g/FCiggItQM9XTQT53Zfot4JWZoubqW5P5lPIXNn04xPtP5tiXDXF8HBoKDKpA79zU+ueQd5TmSvYr4cBRJjpMWg4H/hGWwiAtUb/7/g/p2kBM14DwcVgoMDIFXHs5HE4BLwH1W1f73c9e2NVpg7mYNQWQQ2fnqrMzebI36T4JXAkMCwVKKLAVmbwAjgK3DcxRmoF7MOw3ykRnSqspgB/gQFfYctksEvZGkHRZKVc+kW4okBRw0ckFp1Sve4fVaZ9hXx1V7jNsIoMc3xTA9pA6k8s2IWHnIRHAuRSOdCcr4GjPOaqXRnPZLiRcdDW6KYDtHXUmlzkfiSF0LnUj3akU2Hyiztl55DKvrngrZjFrCuAdM3vg8MU8HEqHhQIlFNiQTLaBHENn/U9z6h38p5Q1BbA3buS2dCE8dz6RfiigAinAcqmRGgZXo4tZUwAXcyAyCgVCgfYKRAC31y6ODAU6VyACuPNTEA6EAu0ViABur10cGQp0rkAEcOenIBwIBdorEAHcXrs4MhToXIEI4M5PQTgQCrRXIAK4vXZxZCjQuQIRwJ2fgnAgFGivQARwe+3iyFCgcwUigDs/BeFAKNBegQjg9trFkaFA5wpEAHd+CsKBUKC9AhHA7bWLI0OBzhWIAO78FIQDoUB7BSKA22sXR4YCnSsQAdz5KQgHQoH2CkQAt9cujgwFOlcgArjzUxAOhALtFYgAbq9dHBkKdK5ABHDnpyAcCAXaKxAB3F67ODIU6FyBCODOT0E4EAq0VyACuL12cWQo0LkCTQFc4hGJTXl3Lko4EAoMoUDRet2UmU9xy23m4dMZwkKBEgpY1x4qkNFvC+SxJoumAF7AHnet2Wv0GwbvRXD/6JOOFEOBKRW4l3cvht9N+elo3vTB4VeOJqn+UmkK4Ks4/Kb+kmi1130cdQFEALeSLw5qoYDPBb4Uco4ul5L+QihmTQFsD7wigxfpAVPrk7YtYokhTYZiRJJjqID1zVFfzgf3+WCz9ADxIhI1BbCtyKIMHvgENwu5GJZDTjFJPiwUWKOAo74L4eY174x2w57den3raJNtn9prJxyy1xwlDp1f1d6tODIUaK2AI7+vwu0wyjptWifAIVCNzcWTz8CoC3pcNSUMR9Y1BRwBPgPOAeu1K9PD1O/e448irersmXh0LqRC9jqc3hvk1YWxN0BYKNCVAhuQ8fvBNZ5B6u7kfVMs+HoWzAEtPeh79X+Z/643Q/q38bnDjV1gJ2iaM/PRjKZgx8L3IOclqhkdiR3WaQUMuJVgQO4Lj4E2ltZzfsHBjlS9fJTzElUbH9cc80q2fg4PgBeqJ7dGTf+7yiw3wIdge9CKtlKrs4y/ocDDFNiZ/z4By8EFKBdUm+rx5PddiPW9n8FLoHrbBA83hWfBt2FygZr+v5t9T4TnwlYQgYsIYVUo4OhzC9gG3gxeYmqqx5PfX8S+H4UDwYWxzqzfzNMNF2fgqT2whTeotwaHIZuDZkGvgutgKZwPCrMMbOXCQoFaFHBkaAejnQR2Lq8Gr+PuDtbrZHeyYdDK1WC9dsjstNAheWc2SI/ovgao9gww+A3gvWAOuDjg3OJaWAJLJ+AlLBSoVoFUr53eHQrOY2fD3rADOG20Pl8/wWJeDeiwUCAUqESBQTqySlwON0KBUCAUCAVCgVAgFAgFQoFQIBQIBUKBUCAUCAVCgVAgFAgFQoFQIBQIBUKBUCAUCAVCgVAgFAgFQoFQIBQIBUKBUCAUCAVCgVAgFAgFQoFQIBQIBUKBUCAUCAVCgVAgFAgFQoFQIBQIBUKBUCAUCAVCgVAgFAgFQoFQIBQIBUKBUCAUCAVCgVAgFAgFQoFQIBQIBUKBKRWI39ydUpZ4MxQYXoG2weWjVB4LO8JO4C/Y+7iVO+BG8CnlPqnBx1DcC2GhwDgoYH22LsvO4PO8fJDZr+Am8LErPqlhIVRhgwSwAboZWLAnwrwJDuDVx1JoPpbiYrgGfGzj8fAD+AOEhQI1KrAhTtkh+SykJ0+87sfrfEjPDvORQZfA7eDzlD4FS2GsbBe8fQdcCLZCBqUPdvK1F99L7/+Q7SMgLBSoUQED1ED9HCyDVKdT/Z1cr/0/BfActqu23t75OXh6MvjA799Cb8Gm23b4vAR+DG8Ge3CtN+3V78TfUKCMAqnuOTy2Q7oIfFiZQ+Xp6nL6zOC+Ba6Dr8MzIFlKO/3f+eumeHA4fBccHqdC9PM6uRVz3vBW2BbCQoEuFXD95p3gVK+futy0jzFxCvwxzILqzEeHpjmshZgclE0Fa3p/AWm8vrpShkPrmgKvo8DXQlM97ef9FAv23KeCa0HV2XPxqJ/CDLLPaaS5f3UlDYfWJQW+RmEHqbP97Pt+0nT1uqg9eprc7H1fMs3nbT86mANf3vbgOC4UaKFA79z0SI53lXnU9goStG5XYT6p/Fjwem4/rc+g+5xFuo+DtEzPZlgokFWBLUndIPsp3AeD1tl+9v846W4MxaypB7aFOgxyLTjNIe0nwiYQFgqUUMAF2SeB13q9R8GAHLXNI8EcvXujn00B7JDDa725zIvnXn+LAM6lcKQ7lQIG7W8mPugdVk+1b5v3duEgbwgpZk0BbCviHVe5zMC1tSo63MhVmEh3LBTYDC/tNHLWOWNmz5JqNAXwgTiRc0XNIYxDaF/DQoESChjA1rmcAbwj6T++RGFSHk0BnOa+OeYJKe+t00a8hgIFFNiAPEp0GN7hVcyaAviOCQ9yzBNS4bwQ7k3kYaFACQVydka9/ntjRzFrCuAFeHBbZi9sHLx7JXrizEJH8muvAk0BXKrEfjHiwVKZRT6hwNqmQFMAe4OF3//NbX7LaW7uTCL9UGBtVaApgB0+5/4lDYfQR4MX1sNCgVCghQJNAXw1aa1okd6gh3h3zFPA+67DQoFQYEAFmgJ4FumUuk/5j8nr+QP6HbuHAqEACjQF8PV8dnMhheaQz4vAe6+T5bx8lfKI11Bg7BVo6mUvoWTLC5TOa3MG66HwXrBBORdy3odN8mGhwNqhQFMP7OWdGwsU0eA1iJ0L+93j90AsaiFCWCjQjwJNPbDHuoh1E+T8UoP59A6XX8z/BrR3aZ0NYaFAKDCNAtNd6/UHu9IN4NMkMfKPdiLFZ8Hh4Ahhf/De7LtAn5qstyFo2ifef6QC64pujvLe/sjij/wdr+CcNPJUGxKc6eT50zcnNxyb4+00J05pn8+G790JS8BRgY3OrbAMbgFvUr8Mfg2Wx/1rte1wzAbKUc2u4De+HG3kNnURnzCgbt7r7v8XwUMT2zXrpmaJ3djeZsJvXvoyp4R7wZv72nu4nVwAPg6sl/2a58Lz4Ij3Brgf/N7y5aD5+ZTnxw+mM+ejZ8F0Q+3pjs/1mT3xpaBYfrdYwU4HRajNPJF+Q2VPUM99wFHFPLBXKGn3kJm6ub7huT8GUiPJZlXmjz54n7xaqdveoHZ+1XWQ4GD3YmaQzRRT0zmzkg8NWs+TndOnYAm0NiuZAWxroHO18kN8ex5o9tDDiLgqkRH90Y/94BNgY1Obfg71ngRa04Lm6k/L/p1Fdl6Z+DzYK9WmWwl/7qbcBvBc0FqdH1vAN8HtoNMO90o4P2ge9+GXrdfP4S3wGNC6COSUp6OWV8OZ4G2pD8Kg5cq9v5VkBXwfXgbJUhnS/yVeU55bkNk7wJGCuvn1vNw61Ji+o0njztHSN+AZ0Mr8nZ+zwQRrLOhknxbi51vB+WZX5hzN4HV4WmujN1k3z/HLocvvaO9I/u+Ea2Cyf+vy/87hT4Gnw8OmDw43ZzLH41bIvWDLmXbu8HNPsK24gbs72CNfAV2YP93yMXAYqE/JNzars+Sbi0M21teBw/0u7AVk+ndgXQtbrYDnx9HcHmAcOkd2EXeV9RPAjr2XwzxwPlerGSjJtp/YsDdeU9j0YYHXo8nDqUeyXt/Se7W89vq2K07ZYF8Fd3XgoCOnIzvIt+Ys0/kxVvcFG9fF8Gvo6zu/tgDOlRwKevnDlnocbDOcdDneeXFJeyqZvQZcMR1H2wqnHb1cXNj5o8jPIfy41K/C8qzKzlhMvfAS3+mnB151JH+Meu1psCGklsH3ajTncjY6Z4Ktlds5bRaJHw7vgiPA/8fRrCD2vjZ8zr1ym+fJEcu74QnwsDke/4f9vwLGnNfDr4UL4fcOj/sxD/Ta60/htH4OqGSf3fHDSrFRAX9sDJ1iOO/1+q6t5biac9CDod/6MUw5/ZnXA2E+uD3OuuF+ETuAXFaN8Po9QUlUr8mdCMuKuDl8JlYIK4YjhhLmYsMDExnZ6I2r2QsbVP3Wj2HKqU42fqm3H2fdhtFhkGNns/PeHjDoCVJku+4vwzgEsT2hi28lAtjgtdey8o+7bUsBvANq0PrRptybcJCNbLp23yaNde2Y3SjwXAvd5gTdw3FfgZ9D7nklWQxlLmSVGkIbwIdAzZfa+hXThaxSQ2gD2MtuEcD9np1HPcrr5a5Itwpgh9N3w6fhePBOmRotDfu9pOQQLbc59LPn0lLeq/8br7/Jd8tSYjhrw7fFeEnUqbfp/KzqKNr0wHrvib0UPgOnwr1Qm6XKdzOOPVTAOYVN15xT3gWyHXkWyXfLkirLyDPpSdAOwFXvsP4USOfnTndvG8DpxF5BGu8Bh9M1ngQblgsgLZCwmc2siK4PrBI2Wy5lEr6DbC6GElMkL/GdD76G9afACnbzZpvWAdybzUr+eQv8Gyzp/aCCbQPYilgigO3lF8DaEMC3UI7LoEQA/4Z8LgdvugnrTwHjzPvFRxLAnmRbhK+Bi1uLoWtLIwRXn0tUQstrD+y0wvWBcbWk2ywKUEo3A9hG9nfjKloHfrums+r8tB1CT+Wzc6bj4auwFByGpQrBZlFznpCGZpewXaJyGMBWxEUwrqZuNkDnwUIoEcTpPC0jv7DpFTCeHB2dC4vddZSrs578+8DbvByy3gZeh90a/Ky0OS//VzgdHiyQueI6DHTV27tkLPc42ndw+j/ASlKiAbaRcNqxO3htc3MIm1oBtbKD/DxcM/Uuw79rr74xeHngFXAOWBESOpG2c77+E/l0YVZCRc5Ztpxpv7EL0cjTG26+BznLtjakPb/3/IyyB07pKpLDSQPVWy9/AWeBvaCtrPOrHGa+qad3+PcNyNZKTVMAexPLvgfsPLFfr28Tb1Xz0uvbL/HqRPC8lTaHhtaNvWG70plXnF86P8bPqXAyONJdZTkCOKVtMDmU/hV4uekGSCfmHrZHPcRMwWten4WfgvOrLszK6BRilwmSb134MlOe+uYK+tnwabgISqzak80jzIbDc+YoZttHfLpuvuH5caHvNDgGloId5CrLGcApj/S6gg0XthbA1bAD2FPpnBVoQ2hrHm+r5ILVsfBN8Lp0F4FjngbAVWBD5XRCfH+YMnL4yM1WXd0cIX0BbOH1vSvdDF5HTdYJb4O1fkquURtJV22eCy+FGrxfBEezBm8X54dsV2ecMvfE/DV8BAw4hwptWcKx/w7Oo5yD12KprE/GoW9D2/LlOu5KfPp7cLhfkyXdjsSpH0Gu8tecrsF7DrwZdoIpLQk15YcF3tyGPDYAeyad3A8OAldy7R0UeH9wZdIV7R1As3CXghXwanDF1JbbXvcBqM3U+SnwTrBcs+FgsJcpaV4iuhwcBamdui0FdVszLGO7FrORfz68Eeyd94T5YJ2p0ayvw8SUo9SF4Pmxfl8ATkE9b45WH2HDZPaIxEbwhhV6VzBYdVhBdgSHoCnIPanOL5fDSrCAN0OtpsaWw0p3EDjct+GynDZUU54Y3h+16Yc63QRWFLVzSlOrJd1svG3YbfjUS93UTx37NYfk+4Ajvty2iAy+BJ7vfuPL/SyP56UXpzdhFSjQ74mswNWqXBilbvtSMhvS3HyvpII1zRdLlrt0XlaasMEVGKVuWw2efasjZrU6quVBEcAthYvDQoEaFIgAruEshA+hQEsFIoBbCheHhQI1KBABXMNZCB9CgZYKRAC3FC4OCwVqUCACuIazED6EAi0ViABuKVwcFgrUoEAEcA1nIXwIBVoqEAHcUrg4LBSoQYEI4BrOQvgQCrRUIAK4pXBx2NgpMMr7qqcqfLrtc/2pPsz1XgRwLmUj3doU8NtMOb/dkxqIot/wigCurZqFP7kU8NdRzof7c2VAun4V0O/yFrMI4GJSR0YdK+APAvhjBv4YRC67gYT9gYliFgFcTOrIqGMFHD77m2mD/BDAoC77oxNFLQK4qNyRWYcK+ONw58HSTD74yzBnwpWZ0o9kQ4FQAAU+CTfCqH+Z41OkOQfCQoFQIJMCrhTPg9Nh1AHsjxYWN38gLiwUWJcUuIXCOlfdE7YbouA2ADYI/pqnv6d9CvjrkUUtArio3JFZJQo4hHZVei5s2+NTCsqetxo3DV5/7fI0+CxcB8V/mjcCGNXD1ikFDDyD159/dWV6IzBw/TG6fleRvRR1O3wX/AnZX4DBa9phoUAoUFiB55FfegKEgeilpvS75Aa32+k9g/9s+EtIDxpgsxtbv5tsI9dQoCoFDF574jvBAPVH4A8Ff5xdWwneBHLZBD4xwbm0+3Zq0eV3Kn9kXpECW+CLc2J74O3AR/1sCd5DbbD6VAuv9frq0DssFAgFKlEgOrJKTkS4EQqsUwr8H4DFXUwZwWxSAAAAAElFTkSuQmCC"},style:o.triggerIcon}),u.createElement(Ko.A,{style:o.triggerText,testID:"sentry-feedback-screenshot-button"},i.triggerLabel))}}var tw=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};class nw extends u.Component{constructor(e){var t,n,r,i,o,a;super(e),this._didSubmitForm=!1,this.handleFeedbackSubmit=()=>{const{name:e,email:t,description:n}=this.state,{onSubmitSuccess:r,onSubmitError:i,onFormSubmitted:o}=this.props,a=this.props,s=null==e?void 0:e.trim(),l=null==t?void 0:t.trim(),c=null==n?void 0:n.trim();if(this.props.isNameRequired&&!s||this.props.isEmailRequired&&!l||!c)return void Rx(a.errorTitle,a.formError);if(this.props.shouldValidateEmail&&(this.props.isEmailRequired||l.length>0)&&!(e=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e))(l))return void Rx(a.errorTitle,a.emailError);const u=this.state.filename&&this.state.attachment?[{filename:this.state.filename,data:this.state.attachment}]:void 0,h={message:c,name:s,email:l,associatedEventId:am().lastEventId()};try{o||this.setState({isVisible:!1}),function(e,t={},n=om()){const{message:r,name:i,email:o,url:a,source:s,associatedEventId:l,tags:c}=e,u={contexts:{feedback:{contact_email:o,name:i,message:r,url:a,source:s,associated_event_id:l}},type:"feedback",level:"info",tags:c},h=n?.getClient()||cm();h&&h.emit("beforeSendFeedback",u,t),n.captureEvent(u,t)}(h,u?{attachments:u}:void 0),r({name:s,email:l,message:c,attachments:u}),Rx(a.successMessageText,""),o(),this._didSubmitForm=!0}catch(e){i(new Error(`Feedback form submission failed: ${e}`)),Rx(a.errorTitle,a.genericError),Ap(`Feedback form submission failed: ${e}`)}},this.onScreenshotButtonPress=()=>tw(this,void 0,void 0,(function*(){var e,t,n;if(this._hasScreenshot())this.setState({filename:void 0,attachment:void 0,attachmentUri:void 0});else{const{imagePicker:r}=this.props;if(r){const i=r.launchImageLibraryAsync?()=>{var e;return null===(e=r.launchImageLibraryAsync)||void 0===e?void 0:e.call(r,{mediaTypes:["images"],base64:!0})}:r.launchImageLibrary?()=>{var e;return null===(e=r.launchImageLibrary)||void 0===e?void 0:e.call(r,{mediaType:"photo",includeBase64:!0})}:null;if(!i)return void bp("No compatible image picker library found. Please provide a valid image picker library.");const o=yield i();if((null==o?void 0:o.assets)&&o.assets.length>0){const r=null===(e=o.assets[0])||void 0===e?void 0:e.fileName,i=null===(t=o.assets[0])||void 0===t?void 0:t.uri,a=null===(n=o.assets[0])||void 0===n?void 0:n.base64,s=a?(e=>{if("function"!=typeof atob)throw new Error("atob is not available in this environment.");const t=atob(e);return new Uint8Array([...t].map((e=>e.charCodeAt(0))))})(a):void 0;s?this.setState({filename:r,attachment:s,attachmentUri:i}):Ap("Failed to read image data on the web")}}else{const{onAddScreenshot:e}=Object.assign(Object.assign({},Mx),this.props);e((e=>{(function(e){return ly(this,void 0,void 0,(function*(){return fy.getDataFromUri(e)}))})(e).then((t=>{null!=t?this.setState({filename:"feedback_screenshot",attachment:t,attachmentUri:e}):(this._showImageRetrievalDevelopmentNote(),Ap("Failed to read image data from uri:",e))})).catch((t=>{this._showImageRetrievalDevelopmentNote(),Ap("Failed to read image data from uri:",e,"error: ",t)}))}))}}})),this._setCapturedScreenshot=e=>{null!=e.data?(vp("Setting captured screenshot:",e.filename),fy.encodeToBase64(e.data).then((t=>{if(null!=t){const n=`data:${e.contentType};base64,${t}`;this.setState({filename:e.filename,attachment:e.data,attachmentUri:n})}else Ap("Failed to read image data from:",e.filename)})).catch((t=>{Ap("Failed to read image data from:",e.filename,"error: ",t)}))):Ap("Failed to read image data from:",e.filename)},this._saveFormState=()=>{nw._savedState=Object.assign({},this.state)},this._clearFormState=()=>{nw._savedState={name:"",email:"",description:"",filename:void 0,attachment:void 0,attachmentUri:void 0}},this._hasScreenshot=()=>void 0!==this.state.filename&&void 0!==this.state.attachment&&void 0!==this.state.attachmentUri,this._getUser=()=>{const e=om().getUser();if(e)return e;return am().getUser()||sm().getUser()},this._showImageRetrievalDevelopmentNote=()=>{oy()&&Rx("Development note","The feedback widget cannot retrieve image data in Expo Go. Please build your app to test this functionality.")};const s={useSentryUser:{email:(null===(n=null===(t=this.props)||void 0===t?void 0:t.useSentryUser)||void 0===n?void 0:n.email)||(null===(r=this._getUser())||void 0===r?void 0:r.email)||"",name:(null===(o=null===(i=this.props)||void 0===i?void 0:i.useSentryUser)||void 0===o?void 0:o.name)||(null===(a=this._getUser())||void 0===a?void 0:a.name)||""}};this.state={isVisible:!0,name:nw._savedState.name||s.useSentryUser.name,email:nw._savedState.email||s.useSentryUser.email,description:nw._savedState.description||"",filename:nw._savedState.filename||void 0,attachment:nw._savedState.attachment||void 0,attachmentUri:nw._savedState.attachmentUri||void 0},Ux()}static reset(){nw._savedState={name:"",email:"",description:"",filename:void 0,attachment:void 0,attachmentUri:void 0}}componentDidMount(){this._themeListener=Tx.A.addChangeListener((()=>{this.forceUpdate()}))}componentWillUnmount(){this._didSubmitForm?(this._clearFormState(),this._didSubmitForm=!1):this._saveFormState(),this._themeListener&&this._themeListener.remove()}render(){const e=_x(),{name:t,email:n,description:r}=this.state,{onFormClose:i}=this.props,o=this.props,a=this.props,s=this.props,l=Object.assign(Object.assign({},(e=>({container:{flex:1,padding:20,backgroundColor:e.background},title:{fontSize:24,fontWeight:"bold",marginBottom:20,textAlign:"left",flex:1,color:e.foreground},label:{marginBottom:4,fontSize:16,color:e.foreground},input:{height:50,borderColor:e.border,borderWidth:1,borderRadius:5,paddingHorizontal:10,marginBottom:15,fontSize:16,color:e.foreground},textArea:{height:100,textAlignVertical:"top",color:e.foreground},screenshotButton:{backgroundColor:e.background,padding:15,borderRadius:5,alignItems:"center",flex:1,borderWidth:1,borderColor:e.border},screenshotContainer:{flexDirection:"row",alignItems:"center",width:"100%",marginBottom:20},screenshotThumbnail:{width:50,height:50,borderRadius:5,marginRight:10},screenshotText:{color:e.foreground,fontSize:16},takeScreenshotButton:{backgroundColor:e.background,padding:15,borderRadius:5,alignItems:"center",borderWidth:1,borderColor:e.border,marginTop:-10,marginBottom:20},takeScreenshotText:{color:e.foreground,fontSize:16},submitButton:{backgroundColor:e.accentBackground,paddingVertical:15,borderRadius:5,alignItems:"center",marginBottom:10},submitText:{color:e.accentForeground,fontSize:18},cancelButton:{backgroundColor:e.background,padding:15,borderRadius:5,alignItems:"center",borderWidth:1,borderColor:e.border},cancelText:{color:e.foreground,fontSize:16},titleContainer:{flexDirection:"row",width:"100%"},sentryLogo:{width:40,height:40,tintColor:e.sentryLogo}}))(e)),this.props.styles);if(!this.state.isVisible)return null;const c=(()=>{const e=Kx;return Kx=void 0,e})();return"ErrorCapturingScreenshot"===c?setTimeout((()=>tw(this,void 0,void 0,(function*(){Rx(s.errorTitle,s.captureScreenshotError)}))),100):c&&this._setCapturedScreenshot(c),u.createElement(xc.A,{onPress:void 0,accessible:!1,accessibilityElementsHidden:!1},u.createElement(pr.A,{style:l.container},u.createElement(pr.A,{style:l.titleContainer},u.createElement(Ko.A,{style:l.title,testID:"sentry-feedback-form-title"},s.formTitle),o.showBranding&&u.createElement(zs.A,{source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAC4BAMAAABUVL5sAAAAD1BMVEUAAAA2Llo3LVk4LFg2LVmgcvrUAAAABHRSTlMAgL9ARyeO/QAAA7pJREFUeNrtWltynDAQFBIHIFUcgCQ6AIk5AAjd/0ypxFk3ouUCNJofl/rHy75a09MzI7Q2DQ0NDQ0NDQ0NDQ0N9eF+xPh9MKpwPv6FLss7R9yMImz8j8nowb9IglFDF6N+KCNIdqMFcGjpBbVUXdzHqKsXUhJGNb2g1vz6azRgX8XulUwMtVZjFsWkvFz10s0ooEO+9Vpxj/6rp9eI5VsdE6eJcDCxilqICiZWMHBSMkBVA2vq1SVrVyr6Ea5VMjHqjytTwcAgRVJ0DAy9VoWUTNT3tQysZGIYmGNTKHfK0q6oFkysYWCuHB0DaxX9yHLx5JKrhVC0TGwjWNRMvNAuW6PoR4TCepnqLLuiicEyKJq4g2C6Rc+hsInlgtHCF41OrD65INisObksbKy2/YJg9U08sGBTbRN3YaBQQu2i74/mcQil6vZr5C0dQpGbGKJvdOA1VDVxd5LHooPR5BJPdwql5vaLeq9FQZKJpa1kOoUSKpq45+m+ZK93aUpSwRyuafslUguCIZRZamKoBYQT80QmlqnF38p6bSIDcyg2q5fw/uo8dx0upZMLLdadQ1kgkNDEOOGiYYXjVKGJ8V00rEggcErurxAKCwQTi9RCAW7UFcUm5vPAOFNXFBY9DggQyp76jnIkOyBwaeqtyMScEu7w4JRNLnyQOjyvACcWpR145g6PV1fp9mvE0jMd3tWZXDR3/Ud2cSXZfmHhvNpEoFlgYsjFHX4AJc3kXXSTyEfDTrz94ptE1qvS9ouG1Ud2sQT5PVcHg3FL78FIYUpqxWK1yLzMxNzhHVaLzItMzB0eB/S4CDRHC+AzFTjhAiSSHx9tpgJXqnmhXi7VizM/F5v4V5oVqOIp81PpEW4Xt7PUA0kEe5WZ2PLt7ZopDg8Seue9GpxoU0WrHyFPgYlzmyrKPDxcpFeX3YRS5mGvxybmsC2tPhLJQxPzdsfliwMeLjAx9wcujoFIaEAX/KSYXz0s+9TE/E7LX0yF8lQvitl99sVjSgITl/yk6Lk48JjfGadnanHml8xjMvFTA+eL42CRwDKEZwbm4rBMyAmdH6UEz8HDTPj4d4ie1EJxJCQg56DXaxKOl0iGz0jcdebZluzhbFSA1yEZ2JzbHZKQe3I/EK4CErTHbwn84ZP+8Poxqrd/+I2cXJAw0v9VAkBiI3DhLryZEe6SXNeJk5HcHFu+Aom5wiIn2a7niZiE1WKMUhIOhNFJSQZzh0VG8tPcQufLSQI46sO9vcM0NDQ0NDQ0NDQ0NHxF/AFGJOBYBWrb5gAAAABJRU5ErkJggg=="},style:l.sentryLogo,testID:"sentry-logo"})),o.showName&&u.createElement(u.Fragment,null,u.createElement(Ko.A,{style:l.label},s.nameLabel,o.isNameRequired&&` ${s.isRequiredLabel}`),u.createElement(Wo.A,{style:l.input,testID:"sentry-feedback-name-input",placeholder:s.namePlaceholder,value:t,onChangeText:e=>this.setState({name:e})})),o.showEmail&&u.createElement(u.Fragment,null,u.createElement(Ko.A,{style:l.label},s.emailLabel,o.isEmailRequired&&` ${s.isRequiredLabel}`),u.createElement(Wo.A,{style:l.input,testID:"sentry-feedback-email-input",placeholder:s.emailPlaceholder,keyboardType:"email-address",value:n,onChangeText:e=>this.setState({email:e})})),u.createElement(Ko.A,{style:l.label},s.messageLabel,` ${s.isRequiredLabel}`),u.createElement(Wo.A,{style:[l.input,l.textArea],testID:"sentry-feedback-message-input",placeholder:s.messagePlaceholder,value:r,onChangeText:e=>this.setState({description:e}),multiline:!0}),(o.enableScreenshot||a.imagePicker||this._hasScreenshot())&&u.createElement(pr.A,{style:l.screenshotContainer},this.state.attachmentUri&&u.createElement(zs.A,{source:{uri:this.state.attachmentUri},style:l.screenshotThumbnail}),u.createElement(Ix.A,{style:l.screenshotButton,onPress:this.onScreenshotButtonPress},u.createElement(Ko.A,{style:l.screenshotText},this._hasScreenshot()?s.removeScreenshotButtonLabel:s.addScreenshotButtonLabel))),!1,u.createElement(Ix.A,{style:l.submitButton,onPress:this.handleFeedbackSubmit},u.createElement(Ko.A,{style:l.submitText,testID:"sentry-feedback-submit-button"},s.submitButtonLabel)),u.createElement(Ix.A,{style:l.cancelButton,onPress:()=>{i?i():this.setState({isVisible:!1})}},u.createElement(Ko.A,{style:l.cancelText},s.cancelButtonLabel))))}}nw.defaultProps=Mx,nw._savedState={name:"",email:"",description:"",filename:void 0,attachment:void 0,attachmentUri:void 0};const rw=function(){var e;const{major:t,minor:n}=(null===(e=Lg.ReactNativeVersion)||void 0===e?void 0:e.version)||{};return t&&t>0||n&&n>=69||!1}();class iw extends u.Component{constructor(e){super(e),this.state={isButtonVisible:!1,isScreenshotButtonVisible:!1,isVisible:!1,backgroundOpacity:new uo.A.Value(0),panY:new uo.A.Value(Zc.A.get("screen").height),isScrollAtTop:!0},this._panResponder=dd.A.create({onStartShouldSetPanResponder:(e,t)=>!1,onMoveShouldSetPanResponder:(e,t)=>!1,onPanResponderMove:(e,t)=>{t.dy>0&&this.state.panY.setValue(t.dy)},onPanResponderRelease:(e,t)=>{t.dy>200?uo.A.timing(this.state.panY,{toValue:Zc.A.get("screen").height,duration:200,useNativeDriver:!0}).start((()=>{this._handleClose()})):uo.A.spring(this.state.panY,{toValue:0,useNativeDriver:!0}).start()}}),this._handleScroll=e=>{this.setState({isScrollAtTop:e.nativeEvent.contentOffset.y<=0})},this._setVisibilityFunction=e=>{const t=()=>{this.setState({isVisible:e})};e?t():uo.A.parallel([uo.A.timing(this.state.panY,{toValue:Zc.A.get("screen").height,duration:200,useNativeDriver:!0,easing:Fo.A.out(Fo.A.quad)}),uo.A.timing(this.state.backgroundOpacity,{toValue:0,duration:200,useNativeDriver:rw,easing:Fo.A.out(Fo.A.quad)})]).start((()=>{t()}))},this._setButtonVisibilityFunction=e=>{this.setState({isButtonVisible:e})},this._setScreenshotButtonVisibilityFunction=e=>{this.setState({isScreenshotButtonVisible:e})},this._handleClose=()=>{Yx.hide()},Wx.initialize(this._setButtonVisibilityFunction),Qx.initialize(this._setScreenshotButtonVisibilityFunction),Yx.initialize(this._setVisibilityFunction)}componentDidMount(){this._themeListener=Tx.A.addChangeListener((()=>{this.forceUpdate()}))}componentWillUnmount(){this._themeListener&&this._themeListener.remove()}componentDidUpdate(e,t){!t.isVisible&&this.state.isVisible?uo.A.parallel([uo.A.timing(this.state.backgroundOpacity,{toValue:1,duration:200,useNativeDriver:rw,easing:Fo.A.in(Fo.A.quad)}),uo.A.timing(this.state.panY,{toValue:0,duration:200,useNativeDriver:!0,easing:Fo.A.in(Fo.A.quad)})]).start((()=>{vp("FeedbackWidgetProvider componentDidUpdate")})):t.isVisible&&!this.state.isVisible&&this.state.backgroundOpacity.setValue(0)}render(){if(!function(){var e;const{major:t,minor:n}=(null===(e=Lg.ReactNativeVersion)||void 0===e?void 0:e.version)||{};return!(ny()&&0===t&&n&&n<71)}())return Ap("FeedbackWidget Modal is not supported in React Native < 0.71 with Fabric renderer."),u.createElement(u.Fragment,null,this.props.children);const e=_x(),{isButtonVisible:t,isScreenshotButtonVisible:n,isVisible:r,backgroundOpacity:i}=this.state,o=i.interpolate({inputRange:[0,1],outputRange:["rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0.9)"]});return u.createElement(u.Fragment,null,this.props.children,t&&u.createElement(Jx,Object.assign({},(()=>{const e=Sv();return e?e.buttonOptions:{}})())),n&&u.createElement(ew,Object.assign({},(()=>{const e=Sv();return e?e.screenshotButtonOptions:{}})())),r&&u.createElement(uo.A.View,{style:[Lx,{backgroundColor:o}]},u.createElement(Ac.A,{visible:r,transparent:!0,animationType:"none",onRequestClose:this._handleClose,testID:"feedback-form-modal"},u.createElement(pr.A,{style:Nx}),u.createElement(uo.A.View,Object.assign({style:[Fx(e),{transform:[{translateY:this.state.panY}]}]},this._panResponder.panHandlers),u.createElement(Qo.A,{bounces:!1,keyboardShouldPersistTaps:"handled",automaticallyAdjustKeyboardInsets:!1,onScroll:this._handleScroll},u.createElement(nw,Object.assign({},(()=>{const e=Sv();return e?e.options:{}})(),{onFormClose:this._handleClose,onFormSubmitted:this._handleClose})))))))}}function ow(e){var t,n;const r=[];r.push(dA()),r.push(SA()),r.push(((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){_A(wy,i.getOptions().stackParser,n,t,e,r)}}})()),e.enableAutoSessionTracking&&r.push({name:"BrowserSession",setupOnce(){void 0!==Rb.document?(Pg({ignoreDuration:!0}),Bg(),iA((({from:e,to:t})=>{void 0!==e&&e!==t&&(Pg({ignoreDuration:!0}),Bg())}))):aA&&bp("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}),r.push(((e={})=>({...LA(e),name:"InboundFilters"}))()),r.push(xA()),r.push(((e={})=>{var t,n,r;return((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){const t="console";yy(t,e),vy(t,Qb)}(function(e){return function(t){if(cm()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:Ng(t.level),message:wp(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${wp(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}Jb(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(cm()!==e)return;let r,i,o="object"==typeof t?t.serializeAttribute:void 0,a="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>1024&&(aA&&bp(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof o&&(o=[o]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=lp(t,{keyAttrs:o,maxStringLength:a}),i=function(e){if(!sp.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}(t)}catch{r=""}if(0===r.length)return;const s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),Jb(s,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),yy("dom",n),vy("dom",nA)),t.xhr&&Cb(function(e){return function(t){if(cm()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[wb];if(!n||!r||!i)return;const{method:o,url:a,status_code:s,body:l}=i,c={method:o,url:a,status_code:s},u={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r},h={category:"xhr",data:c,type:"http",level:Zb(s)};e.emit("beforeOutgoingRequestBreadcrumb",h,u),Jb(h,u)}}(e)),t.fetch&&lb(function(e){return function(t){if(cm()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.fetchData.method,t.fetchData.url,t.error){const i=t.fetchData,o={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,o),Jb(a,o)}else{const i=t.response,o={...t.fetchData,status_code:i?.status};t.fetchData.request_body_size,t.fetchData.response_body_size;const a={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:"fetch",data:o,type:"http",level:Zb(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",s,a),Jb(s,a)}}}(e)),t.history&&iA(function(e){return function(t){if(cm()!==e)return;let n=t.from,r=t.to;const i=vb(Rb.location.href);let o=n?vb(n):void 0;const a=vb(r);o?.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Jb({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){cm()===e&&Jb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Lp(t)},{event:t})}}(e))}}})(Object.assign(Object.assign({xhr:!0,console:!0,sentry:!0},e),{fetch:null===(t=e.fetch)||void 0===t||t,dom:null===(n=e.dom)||void 0===n||n,history:null===(r=e.history)||void 0===r||r}))})()),r.push((()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){return!(!t||!function(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!yA(e,t)||!gA(e,t))}(e,t)&&!function(e,t){const n=vA(t),r=vA(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&yA(e,t)&&gA(e,t))}(e,t))}(t,e))return Yf&&bp("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}})()),r.push({name:"HttpContext",preprocessEvent(e){if(!Rb.navigator&&!Rb.location&&!Rb.document)return;const t=function(){const e=up(),{referrer:t}=Rb.document||{},{userAgent:n}=Rb.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),r.push({name:"Release",setupOnce:()=>{},processEvent:Py}),r.push({name:"EventOrigin",setupOnce:()=>{},processEvent:e=>{var t;return e.tags=null!==(t=e.tags)&&void 0!==t?t:{},e.tags["event.origin"]="javascript",e.tags["event.environment"]="javascript",e}}),r.push(Ly()),r.push({name:"ReactNativeInfo",setupOnce:()=>{},processEvent:Fy}),r.push(uv({iteratee:e=>{if("java"===e.platform||"cocoa"===e.platform)return e;if(!e.filename)return e;if(delete e.abs_path,e.filename=e.filename.replace(/^file:\/\//,"").replace(/^address at /,"").replace(/^.*\/[^.]+(\.app|CodePush|.*(?=\/))/,""),"[native code]"===e.filename||"native"===e.filename)return e;ey()&&1===e.lineno&&void 0!==e.colno&&(e.colno+=1),iy(),iy();const t="app://";return"/InternalBytecode.js"===e.filename&&(e.in_app=!1),e.filename=0===e.filename.indexOf("/")?`${t}${e.filename}`:`${t}/${e.filename}`,e}})),e.enableNative&&(r.push({name:"DeviceContext",setupOnce:()=>{},processEvent:py}),r.push({name:"ModulesLoader",setupOnce:()=>{},processEvent:Ny()}),e.enableLogs&&r.push(lA()),e.attachScreenshot&&r.push({name:"Screenshot",setupOnce:()=>{},processEvent:yv}),e.attachViewHierarchy&&r.push({name:"ViewHierarchy",setupOnce:()=>{},processEvent:vv}),"number"==typeof e.profilesSampleRate&&r.push(mv()));const i="number"==typeof e.tracesSampleRate||"function"==typeof e.tracesSampler;i&&e.enableAppStartTracking&&e.enableNative&&r.push(Kv());const o=(e=>{if(e||!fy.enableNative)return nb();fy.disableNativeFramesTracking()})(i&&e.enableNativeFramesTracking&&e.enableNative);if(o&&r.push(o),i&&e.enableStallTracking&&r.push((({minimumStallThresholdMs:e=50}={})=>{const t=new Map,n={isTracking:!1,timeout:null,isBackground:!1,lastIntervalMs:0,totalStallTime:0,stallCount:0,backgroundEventListener:e=>{"active"===e?(n.isBackground=!1,null!=n.timeout&&(n.lastIntervalMs=1e3*Hp(),n.iteration())):(n.isBackground=!0,null!==n.timeout&&clearTimeout(n.timeout))},iteration:()=>{var r;const i=1e3*Hp(),o=i-n.lastIntervalMs;if(o>=50+e){const e=o-50;n.stallCount+=1,n.totalStallTime+=e;for(const[n,i]of t.entries()){const o=Math.max(null!==(r=i.longestStallTime)&&void 0!==r?r:0,e);t.set(n,Object.assign(Object.assign({},i),{longestStallTime:o}))}}n.lastIntervalMs=i,n.isTracking&&!n.isBackground&&(n.timeout=setTimeout(n.iteration,50))}},r=e=>{nv(e)&&(t.has(e)?Ap("[StallTracking] Tried to start stall tracking on a transaction already being tracked. Measurements might be lost."):(l(),t.set(e,{longestStallTime:0,atTimestamp:null,atStart:s(e)}),h()))},i=e=>{if(!nv(e))return o(e);const n=t.get(e);if(!n)return vp("[StallTracking] Stall measurements were not added to transaction due to exceeding the max count."),t.delete(e),void c();const r=Jm(e).timestamp;let i;if((a=r)&&Math.abs(Hp()-a)<=.05)i=s(e);else{const t=function(e){const t=ng(e).map((e=>Jm(e).timestamp)).filter((e=>!!e));return t.length?Math.max(...t):void 0}(e);t!==r&&vp("[StallTracking] Stall measurements not added due to a custom `endTimestamp` (root end is not equal to the latest child span end)."),n.atTimestamp||vp("[StallTracking] Stall measurements not added due to `endTimestamp` not being close to now. And no previous stats from child end were found."),t===r&&n.atTimestamp&&(i=n.atTimestamp.stats)}var a;t.delete(e),c(),i?(Yv(e,"stall_count",i.stall_count.value-n.atStart.stall_count.value,n.atStart.stall_count.unit),Yv(e,"stall_total_time",i.stall_total_time.value-n.atStart.stall_total_time.value,n.atStart.stall_total_time.unit),Yv(e,"stall_longest_time",i.stall_longest_time.value,i.stall_longest_time.unit)):void 0!==r&&vp("[StallTracking] Stall measurements not added due to `endTimestamp` not being close to now.","endTimestamp",r,"now",Hp())},o=e=>{const t=rg(e),n=Jm(e).timestamp;n&&a(t,n)},a=(e,n)=>{const r=t.get(e);r&&(Math.abs(Hp()-n)>.02?(vp("[StallTracking] Span end not logged due to end timestamp being outside the margin of error from now."),r.atTimestamp&&r.atTimestamp.timestamp{var r,i;return{stall_count:{value:n.stallCount,unit:"none"},stall_total_time:{value:n.totalStallTime,unit:"millisecond"},stall_longest_time:{value:null!==(i=null===(r=t.get(e))||void 0===r?void 0:r.longestStallTime)&&void 0!==i?i:0,unit:"millisecond"}}},l=()=>{n.isTracking||(n.isTracking=!0,n.lastIntervalMs=Math.floor(1e3*Hp()),n.iteration())},c=()=>{0===t.size&&(n.isTracking=!1,null!==n.timeout&&(clearTimeout(n.timeout),n.timeout=null),u())},u=()=>{n.stallCount=0,n.totalStallTime=0,n.lastIntervalMs=0,t.clear()},h=()=>{if(t.size>10){let e=0;const n=t.size-10,r=t.keys();for(const i of r){if(e>=n)break;e+=1,t.delete(i)}}};return(null===_g.A||void 0===_g.A?void 0:_g.A.isAvailable)&&_g.A.addEventListener("change",n.backgroundEventListener),{name:"StallTracking",setup:e=>{e.on("spanStart",r),e.on("spanEnd",i)},_internalState:n}})()),i&&e.enableUserInteractionTracing&&r.push({name:Ub}),i&&e.enableAutoPerformanceTracing&&(r.push((()=>{const e=[];return{name:Dv,setupOnce:()=>{},onRunApplication:t=>{e.includes(t)?vp("[AppRegistryIntegration] Callback already registered."):e.push(t)}}})()),r.push(((e={})=>{var t,n,r,i;const o={currentRoute:void 0},a=Object.assign(Object.assign(Object.assign({},Vb),e),{beforeStartSpan:null!==(t=e.beforeStartSpan)&&void 0!==t?t:e=>e,finalTimeoutMs:null!==(n=e.finalTimeoutMs)&&void 0!==n?n:6e5,idleTimeoutMs:null!==(r=e.idleTimeoutMs)&&void 0!==r?r:1e3}),s=a.shouldCreateSpanForRequest,l=null===(i=Fg())||void 0===i?void 0:i.url,c=void 0===l?s:e=>!e.startsWith(l)&&(!s||s(e));return a.shouldCreateSpanForRequest=c,{name:zb,setup:e=>{!function(e){e.on("spanStart",(e=>{Jm(e).op||e.setAttribute(bm,"default")}))}(e),function(e){e.on("spanStart",(e=>{var t;(null===(t=Jm(e).data)||void 0===t?void 0:t[Hv])||e.setAttribute(Hv,qv)}))}(e),Fb(e,{traceFetch:a.traceFetch,traceXHR:a.traceXHR,shouldCreateSpanForRequest:a.shouldCreateSpanForRequest,tracePropagationTargets:e.getOptions().tracePropagationTargets||void 0})},processEvent:e=>(e.contexts&&o.currentRoute&&(e.contexts.app=Object.assign({view_names:[o.currentRoute]},e.contexts.app)),e),options:a,state:o,setCurrentRoute:e=>{o.currentRoute=e}}})())),i&&r.push(Wb()),e.enableCaptureFailedRequests&&r.push(((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){sb()&&lb((n=>{if(cm()!==e)return;const{response:r,args:i,error:o,virtualError:a}=n,[s,l]=i;r&&function(e,t,n,r,i){if(MA(e,n.status,n.url)){const e=function(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}(t,r);let o,a,s,l;DA()&&([o,s]=IA("Cookie",e),[a,l]=IA("Set-Cookie",n)),Mg(PA({url:e.url,method:e.method,status:n.status,requestHeaders:o,responseHeaders:a,requestCookies:s,responseCookies:l,error:i,type:"fetch"}))}}(t,s,r,l,o||a)}),!1)}(e,t),function(e,t){"XMLHttpRequest"in Uf&&Cb((n=>{if(cm()!==e)return;const{error:r,virtualError:i}=n,o=n.xhr,a=o[wb];if(!a)return;const{method:s,request_headers:l}=a;try{!function(e,t,n,r,i){if(MA(e,t.status,t.responseURL)){let e,o,a;if(DA()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(o=RA(e))}catch{}try{a=function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return n&&r&&(e[n]=r),e}),{}):{}}(t)}catch{}e=r}Mg(PA({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:a,responseCookies:o,error:i,type:"xhr"}))}}(t,o,s,l,r||i)}catch(e){aA&&bp("Error while extracting response event form XHR response",e)}}))}(e,t)}}})()),r.push((()=>{let e;function t(){return e||(e=function(){const e=function(){var e,t,n;return null!==(n=null===(t=null===(e=Gg.expo)||void 0===e?void 0:e.modules)||void 0===t?void 0:t.ExpoUpdates)&&void 0!==n?n:void 0}();if(!e)return{is_enabled:!1};const t={is_enabled:!!e.isEnabled,is_embedded_launch:!!e.isEmbeddedLaunch,is_emergency_launch:!!e.isEmergencyLaunch,is_using_embedded_assets:!!e.isUsingEmbeddedAssets};return"string"==typeof e.updateId&&e.updateId&&(t.update_id=e.updateId.toLowerCase()),"string"==typeof e.channel&&e.channel&&(t.channel=e.channel.toLowerCase()),"string"==typeof e.runtimeVersion&&e.runtimeVersion&&(t.runtime_version=e.runtimeVersion.toLowerCase()),"string"==typeof e.checkAutomatically&&e.checkAutomatically&&(t.check_automatically=e.checkAutomatically.toLowerCase()),"string"==typeof e.emergencyLaunchReason&&e.emergencyLaunchReason&&(t.emergency_launch_reason=e.emergencyLaunchReason),"number"==typeof e.launchDuration&&(t.launch_duration=e.launchDuration),e.createdAt instanceof Date&&(t.created_at=e.createdAt.toISOString()),t}())}return{name:"ExpoContext",setup:function(e){e.on("afterInit",(()=>{e.getOptions().enableNative&&function(){if(!iy()||oy())return;const e=t();try{fy.setContext(bv,e)}catch(e){Ap("Error setting Expo updates context:",e)}}()}))},processEvent:function(e){return iy()?(function(e){if(!oy())return;const t=function(){const e=$g();if(e)return{name:e.deviceName,simulator:!(null==e?void 0:e.isDevice),model:e.modelName,manufacturer:e.manufacturer,memory_size:e.totalMemory}}();t&&(e.contexts=e.contexts||{},e.contexts.device=Object.assign(Object.assign({},t),e.contexts.device));const n=function(){const e=$g();if(e)return{build:e.osBuildId,version:e.osVersion,name:e.osName}}();n&&(e.contexts=e.contexts||{},e.contexts.os=Object.assign(Object.assign({},n),e.contexts.os))}(e),function(e){e.contexts=e.contexts||{},e.contexts[bv]=Object.assign({},t())}(e),e):e}}})()),e.spotlight){const t="string"==typeof e.spotlight?e.spotlight:void 0;r.push(function({sidecarUrl:e=xv()}={}){return vp("[Spotlight] Using Sidecar URL",e),{name:"Spotlight",setupOnce(){},setup(t){!function(e,t){!function(e,t){e.on&&e.on("beforeEnvelope",(e=>{const n=[...e],r=[...e[1]].filter((e=>"string"!=typeof e[0].content_type||!e[0].content_type.startsWith("image")));n[1]=r;const i=function(e=Gg){if(!e.XMLHttpRequest)return null;const t=new e.XMLHttpRequest;return t.open.__sentry_original__&&(t.open=t.open.__sentry_original__),t.send.__sentry_original__&&(t.send=t.send.__sentry_original__),t}();i?(i.open("POST",t,!0),i.setRequestHeader("Content-Type","application/x-sentry-envelope"),i.onreadystatechange=function(){if(4===i.readyState){const e=i.status;0===e||e>=200&&e<400||Ap("[Spotlight] Sentry SDK can't connect to Spotlight is it running? See https://spotlightjs.com to download it.",new Error(i.statusText))}},i.send(Hy(n))):Ap("[Spotlight] Sentry SDK can not create XHR object")}))}(e,t)}(t,e)}}}({sidecarUrl:t}))}const a="number"==typeof e.replaysOnErrorSampleRate||"number"==typeof e.replaysSessionSampleRate,s=e._experiments&&"number"==typeof e._experiments.replaysOnErrorSampleRate||e._experiments&&"number"==typeof e._experiments.replaysSessionSampleRate;return!a&&s&&(e.replaysOnErrorSampleRate=null===(t=e._experiments)||void 0===t?void 0:t.replaysOnErrorSampleRate,e.replaysSessionSampleRate=null===(n=e._experiments)||void 0===n?void 0:n.replaysSessionSampleRate),r.push({name:"PrimitiveTagIntegration",setup(e){e.on("beforeSendEvent",(e=>{e.tags&&Object.keys(e.tags).forEach((t=>{e.tags[t]=sA(e.tags[t])}))}))},afterAllSetup(){fy.enableNative&&fy._setPrimitiveProcessor((e=>sA(e)))}}),r}Ar.A.hasViewManagerConfig&&Ar.A.hasViewManagerConfig("RNSentryOnDrawReporter"),u.Component,new WeakMap,new WeakMap;const aw=new WeakMap;function sw(e){aw.has(e)||(aw.set(e,!0),Pv(e,"setUser",(t=>n=>(fy.setUser(n),t.call(e,n)))),Pv(e,"setTag",(t=>(n,r)=>(fy.setTag(n,fy.primitiveProcessor(r)),t.call(e,n,r)))),Pv(e,"setTags",(t=>n=>(Object.keys(n).forEach((e=>{fy.setTag(e,fy.primitiveProcessor(n[e]))})),t.call(e,n)))),Pv(e,"setExtras",(t=>n=>(Object.keys(n).forEach((e=>{fy.setExtra(e,n[e])})),t.call(e,n)))),Pv(e,"setExtra",(t=>(n,r)=>(fy.setExtra(n,r),t.call(e,n,r)))),Pv(e,"addBreadcrumb",(t=>(n,r)=>{const i=Object.assign(Object.assign({},n),{level:n.level||"info",data:n.data?sy(n.data):void 0});t.call(e,i,r);const o=e.getLastBreadcrumb();return o?fy.addBreadcrumb(o):function(e,t,n,r){ix({level:e,message:t,attributes:n,severityNumber:r})}("warn","[ScopeSync] Last created breadcrumb is undefined. Skipping sync to native.",undefined),e})),Pv(e,"clearBreadcrumbs",(t=>()=>(fy.clearBreadcrumbs(),t.call(e)))),Pv(e,"setContext",(t=>(n,r)=>(fy.setContext(n,r),t.call(e,n,r)))))}const lw=fr.A.create({wrapperView:{flex:1}}),cw="sentry-label",uw="data-sentry-component",hw="data-sentry-element",dw="data-sentry-source-file";class fw extends u.Component{constructor(){super(...arguments),this.name="TouchEventBoundary"}componentDidMount(){var e;const t=cm();null===(e=null==t?void 0:t.addIntegration)||void 0===e||e.call(t,function(e,t=()=>{}){return{name:e,setupOnce:t}}(this.name))}render(){return u.createElement(pr.A,{style:lw.wrapperView,onTouchStart:this._onTouchStart.bind(this)},this.props.children)}_logTouchEvent(e,t){const n=e[0];if(!n)return void bp("[TouchEvents] No root component found in touch path.");const r=t||`${n.name}${n.file?` (${n.file})`:""}`,i={category:this.props.breadcrumbCategory,data:{path:e},level:"info",message:`Touch event within element: ${r}`,type:this.props.breadcrumbType};Jb(i),vp(`[TouchEvents] ${i.message}`)}_isNameIgnored(e){let t=this.props.ignoreNames||[];return this.props.ignoredDisplayNames&&(t=[...t,...this.props.ignoredDisplayNames]),t.some((t=>"string"==typeof t&&e===t||t instanceof RegExp&&e.match(t)))}_onTouchStart(e){var t,n;if(!e._targetInst)return;let r=e._targetInst;const i=[];for(;r&&this.props.maxComponentTreeSize&&i.lengthe.label)))||void 0===n?void 0:n.label;i.length>0&&this._logTouchEvent(i,o);const a=(e=>{const t=cm();if(!t)return;const n=function(){const e=cm();if(e)return function(e){return e.getIntegrationByName(zb)}(e)}();if(!n)return void vp(`[${Ub}] Tracing integration is not available. Can not start user interaction span.`);const r=t.getOptions(),{elementId:i,op:o}=e;if(!r.enableUserInteractionTracing)return void vp(`[${Ub}] User Interaction Tracing is disabled.`);if(!i)return void vp(`[${Ub}] User Interaction Tracing can not create transaction with undefined elementId.`);if(!n.state.currentRoute)return void vp(`[${Ub}] User Interaction Tracing can not create transaction without a current route.`);const a=ig(),s=a&&!function(e){return[Fv,Nv].includes(Jm(e).origin||"")}(a);if(a&&s)return void bp(`[${Ub}] Did not create ${o} transaction because active transaction ${Jm(a).description} exists on the scope.`);const l=`${n.state.currentRoute}.${i}`;if(a&&Jm(a).description===l&&Jm(a).op===o)return void bp(`[${Ub}] Did not create ${o} transaction because it the same transaction ${Jm(a).description} already exists on the scope.`);const c=om(),u={name:l,op:o,scope:c};!function(e){delete e._sentrySpan}(c);const h=Uv(u,{idleTimeout:n.options.idleTimeoutMs,finalTimeout:n.options.finalTimeoutMs});return h.setAttribute(Am,Nv),((e,t)=>{nv(t)&&function(e){return e instanceof $y}(t)?e.on("spanEnd",(e=>{e===t&&ng(t).length<=1&&(vp(`Not sampling as ${Jm(t).op} transaction has no child spans.`),t._sampled=!1)})):bp("Not sampling childless spans only works for Sentry Transactions (Root Spans).")})(t,h),vp(`[${Ub}] User Interaction Tracing Created ${o} transaction ${l}.`),h})({elementId:o,op:"ui.action.touch"});a&&a.setAttribute(Am,Fv)}_pushIfNotIgnored(e,t){return!(!t||!t.name&&!t.label||t.name&&this._isNameIgnored(t.name)||t.label&&this._isNameIgnored(t.label)||e.length>0&&JSON.stringify(e[e.length-1])===JSON.stringify(t)||(e.push(t),0))}}function pw(e,t){var n;const r=null===(n=e.elementType)||void 0===n?void 0:n.displayName,i=e.memoizedProps;return i?Pp({name:mw(i)||r,element:gw(i),file:yw(i),label:vw(i,t)}):r?{name:r}:void 0}function mw(e){return"string"==typeof e[uw]&&e[uw].length>0&&"unknown"!==e[uw]&&e[uw]||void 0}function gw(e){return"string"==typeof e[hw]&&e[hw].length>0&&"unknown"!==e[hw]&&e[hw]||void 0}function yw(e){return"string"==typeof e[dw]&&e[dw].length>0&&"unknown"!==e[dw]&&e[dw]||void 0}function vw(e,t){return"string"==typeof e[cw]&&e[cw].length>0?e[cw]:"string"==typeof t&&"string"==typeof e[t]&&e[t].length>0?e[t]:void 0}fw.displayName="__Sentry.TouchEventBoundary",fw.defaultProps={breadcrumbCategory:"touch",breadcrumbType:"user",ignoreNames:[],maxComponentTreeSize:20};class bw{constructor(e={}){this._buffer=hx(e.bufferSize||30)}send(e){return this._buffer.add((()=>fy.sendEnvelope(e))).then((()=>({})))}flush(e){return this._buffer.drain(e)}}function Aw(e={}){return new bw(e)}function xw({enableNative:e}){return e&&fy.isNativeAvailable()?Aw:null}function ww(e,t={}){return"function"==typeof e?(...n)=>{try{return e(...n)}catch(r){return Ap(t.loggerMessage?t.loggerMessage:`The ${e.name} callback threw an error`,r),n[0]}}:e}const Cw={enableNativeCrashHandling:!0,enableNativeNagger:!0,autoInitializeNativeSdk:!0,enableAutoPerformanceTracing:!0,enableWatchdogTerminationTracking:!0,patchGlobalPromise:!0,sendClientReports:!0,maxQueueSize:30,attachStacktrace:!0,enableCaptureFailedRequests:!1,enableNdk:!0,enableAppStartTracking:!0,enableNativeFramesTracking:!0,enableStallTracking:!0,enableUserInteractionTracing:!1},Sw="undefined"==typeof window||"Deno"in window;function Ew(){}function kw(e){return"number"==typeof e&&e>=0&&e!==1/0}function Tw(e,t){return e.filter((e=>!t.includes(e)))}function Iw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ow(e,t,n){return Uw(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Rw(e,t,n){return Uw(e)?[{...t,queryKey:e},n]:[e||{},t]}function Mw(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(Uw(a))if(r){if(t.queryHash!==Dw(a,t.options))return!1}else if(!Bw(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof s&&t.isStale()!==s||void 0!==i&&i!==t.state.fetchStatus||o&&!o(t))}function Pw(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(Uw(o)){if(!t.options.mutationKey)return!1;if(n){if(jw(t.options.mutationKey)!==jw(o))return!1}else if(!Bw(t.options.mutationKey,o))return!1}return!("boolean"==typeof r&&"loading"===t.state.status!==r||i&&!i(t))}function Dw(e,t){return((null==t?void 0:t.queryKeyHashFn)||jw)(e)}function jw(e){return JSON.stringify(e,((e,t)=>zw(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Bw(e,t){return Lw(e,t)}function Lw(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Lw(e[n],t[n])))}function Fw(e,t){if(e===t)return e;const n=_w(e)&&_w(t);if(n||zw(e)&&zw(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{};let s=0;for(let r=0;r{setTimeout(t,e)}))}function qw(e){Hw(0).then(e)}function Gw(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Fw(e,t):t}const Yw=console,Ww=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const i=r=>{t?e.push(r):qw((()=>{n(r)}))};return{batch:i=>{let o;t++;try{o=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&qw((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return o},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class Qw{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Xw=new class extends Qw{constructor(){super(),this.setup=e=>{if(!Sw&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},Jw=["online","offline"],Zw=new class extends Qw{constructor(){super(),this.setup=e=>{if(!Sw&&window.addEventListener){const t=()=>e();return Jw.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{Jw.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function Kw(e){return Math.min(1e3*2**e,3e4)}function $w(e){return"online"!==(null!=e?e:"online")||Zw.isOnline()}class eC{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function tC(e){return e instanceof eC}function nC(e){let t,n,r,i=!1,o=0,a=!1;const s=new Promise(((e,t)=>{n=e,r=t})),l=()=>!Xw.isFocused()||"always"!==e.networkMode&&!Zw.isOnline(),c=r=>{a||(a=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},u=n=>{a||(a=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},h=()=>new Promise((n=>{t=e=>{const t=a||!l();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,a||null==e.onContinue||e.onContinue()})),d=()=>{if(a)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(c).catch((t=>{var n,r;if(a)return;const s=null!=(n=e.retry)?n:3,c=null!=(r=e.retryDelay)?r:Kw,f="function"==typeof c?c(o,t):c,p=!0===s||"number"==typeof s&&o{if(l())return h()})).then((()=>{i?u(t):d()}))):u(t)}))};return $w(e.networkMode)?d():h().then(d),{promise:s,cancel:t=>{a||(u(new eC(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}class rC{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kw(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Sw?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class iC extends rC{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Yw,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=Gw(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(Ew).catch(Ew):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Iw(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const o=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};s(a);const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var c;s(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=l.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(c=l.fetchOptions)?void 0:c.meta});const u=e=>{var t,n,r,i;tC(e)&&e.silent||this.dispatch({type:"error",error:e}),tC(e)||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=nC({fn:l.fetchFn,abort:null==o?void 0:o.abort.bind(o),onSuccess:e=>{var t,n,r,i;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):u(new Error(this.queryHash+" data is undefined"))},onError:u,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:$w(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return tC(i)&&i.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Ww.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class oC extends Qw{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const i=t.queryKey,o=null!=(r=t.queryHash)?r:Dw(i,t);let a=this.get(o);return a||(a=new iC({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){Ww.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Rw(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>Mw(n,e)))}findAll(e,t){const[n]=Rw(e,t);return Object.keys(n).length>0?this.queries.filter((e=>Mw(n,e))):this.queries}notify(e){Ww.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){Ww.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){Ww.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class aC extends rC{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Yw,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=nC({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,i,o,a,s,l,c;if(!t){var u,h,d,f;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(u=(h=this.mutationCache.config).onMutate)?void 0:u.call(h,this.state.variables,this));const e=await(null==(d=(f=this.options).onMutate)?void 0:d.call(f,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const p=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,p,this.state.variables,this.state.context,this)),await(null==(i=(o=this.options).onSuccess)?void 0:i.call(o,p,this.state.variables,this.state.context)),await(null==(a=(s=this.mutationCache.config).onSettled)?void 0:a.call(s,p,null,this.state.variables,this.state.context,this)),await(null==(l=(c=this.options).onSettled)?void 0:l.call(c,p,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:p}),p}catch(e){try{var p,m,g,y,v,b,A,x;throw await(null==(p=(m=this.mutationCache.config).onError)?void 0:p.call(m,e,this.state.variables,this.state.context,this)),await(null==(g=(y=this.options).onError)?void 0:g.call(y,e,this.state.variables,this.state.context)),await(null==(v=(b=this.mutationCache.config).onSettled)?void 0:v.call(b,void 0,e,this.state.variables,this.state.context,this)),await(null==(A=(x=this.options).onSettled)?void 0:A.call(x,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!$w(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),Ww.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}class sC extends Qw{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new aC({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){Ww.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>Pw(e,t)))}findAll(e){return this.mutations.filter((t=>Pw(e,t)))}notify(e){Ww.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return Ww.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(Ew)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function lC(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,o,a;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,c=null==l?void 0:l.pageParam,u="forward"===(null==l?void 0:l.direction),h="backward"===(null==l?void 0:l.direction),d=(null==(o=e.state.data)?void 0:o.pages)||[],f=(null==(a=e.state.data)?void 0:a.pageParams)||[];let p=f,m=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,r)=>(p=r?[t,...p]:[...p,t],r?[n,...e]:[...e,n]),v=(t,n,r,i)=>{if(m)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const o={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var a;a=o,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{m=!0})),e.signal}});const s=g(o);return Promise.resolve(s).then((e=>y(t,r,e,i)))};let b;if(d.length)if(u){const t=void 0!==c,n=t?c:cC(e.options,d);b=v(d,t,n)}else if(h){const t=void 0!==c,n=t?c:uC(e.options,d);b=v(d,t,n,!0)}else{p=[];const t=void 0===e.options.getNextPageParam;b=s&&d[0]&&!s(d[0],0,d)?Promise.resolve(y([],f[0],d[0])):v([],t,f[0]);for(let n=1;n{if(!s||!d[n]||s(d[n],n,d)){const i=t?f[n]:cC(e.options,r);return v(r,t,i)}return Promise.resolve(y(r,f[n],d[n]))}))}else b=v([]);return b.then((e=>({pages:e,pageParams:p})))}}}}function cC(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function uC(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}function hC(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=cC(e,t);return null!=n&&!1!==n}}function dC(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=uC(e,t);return null!=n&&!1!==n}}const fC=u.createContext(void 0),pC=u.createContext(!1);function mC(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=fC),window.ReactQueryClientContext):fC)}const gC=({context:e}={})=>{const t=u.useContext(mC(e,u.useContext(pC)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},yC=({client:e,children:t,context:n,contextSharing:r=!1})=>{u.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]);const i=mC(n,r);return u.createElement(pC.Provider,{value:!n&&r},u.createElement(i.Provider,{value:e},t))};function vC(){return null}const bC=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,AC=e=>"init"in e,xC=e=>!!e.write,wC=e=>"v"in e||"e"in e,CC=e=>{if("e"in e)throw e.e;if(!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},SC=new WeakMap,EC=e=>{var t;return TC(e)&&!!(null==(t=SC.get(e))?void 0:t[0])},kC=(e,t)=>{let n=SC.get(e);if(!n){n=[!0,new Set],SC.set(e,n);const t=()=>{n[0]=!1};e.then(t,t)}n[1].add(t)},TC=e=>"function"==typeof(null==e?void 0:e.then),IC=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then((()=>{n.p.delete(e)}),(()=>{n.p.delete(e)})))},OC=(e,t,n)=>{const r=n(e),i="v"in r,o=r.v;if(TC(t))for(const i of r.d.keys())IC(e,t,n(i));r.v=t,delete r.e,i&&Object.is(o,r.v)||(++r.n,TC(o)&&(e=>{const t=SC.get(e);(null==t?void 0:t[0])&&(t[0]=!1,t[1].forEach((e=>e())))})(o))},RC=(e,t,n)=>{var r;const i=new Set;for(const t of(null==(r=n.get(e))?void 0:r.t)||[])n.has(t)&&i.add(t);for(const e of t.p)i.add(e);return i},MC=()=>{const e={},t=new WeakMap,n=n=>{var r,i;null==(r=t.get(e))||r.forEach((e=>e(n))),null==(i=t.get(n))||i.forEach((e=>e()))};return n.add=(n,r)=>{const i=n||e,o=(t.has(i)?t:t.set(i,new Set)).get(i);return o.add(r),()=>{null==o||o.delete(r),o.size||t.delete(i)}},n},PC=Symbol(),DC=kC;let jC,BC=0;function LC(e,t){const n="atom"+ ++BC,r={toString(){return this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?r.read=e:(r.init=e,r.read=FC,r.write=NC),t&&(r.write=t),r}function FC(e){return e(this)}function NC(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}function _C(){return(()=>{let e=0;const t=(e=>(e.c||(e.c=MC()),e.m||(e.m=MC()),e.u||(e.u=MC()),e.f||(e.f=(()=>{const e=new Set,t=()=>{e.forEach((e=>e()))};return t.add=t=>(e.add(t),()=>{e.delete(t)}),t})()),e))({}),n=new WeakMap,r=new WeakMap,i=((e=new WeakMap,t=new WeakMap,n=new WeakMap,r=new Set,i=new Set,o=new Set,a={},s=(e,...t)=>e.read(...t),l=(e,...t)=>e.write(...t),c=(e,t)=>{var n;return null==(n=e.unstable_onInit)?void 0:n.call(e,t)},u=(e,t)=>{var n;return null==(n=e.onMount)?void 0:n.call(e,t)},...h)=>{const d=h[0]||(t=>{if(!t)throw new Error("Atom is undefined or null");let n=e.get(t);return n||(n={d:new Map,p:new Set,n:0},e.set(t,n),null==c||c(t,w)),n}),f=h[1]||(()=>{const e=[],n=t=>{try{t()}catch(t){e.push(t)}};do{a.f&&n(a.f);const e=new Set,s=e.add.bind(e);r.forEach((e=>{var n;return null==(n=t.get(e))?void 0:n.l.forEach(s)})),r.clear(),o.forEach(s),o.clear(),i.forEach(s),i.clear(),e.forEach(n),r.size&&p()}while(r.size||o.size||i.size);if(e.length)throw new AggregateError(e)}),p=h[2]||(()=>{const e=[],i=new WeakSet,o=new WeakSet,a=Array.from(r);for(;a.length;){const r=a[a.length-1],s=d(r);if(o.has(r))a.pop();else if(i.has(r)){if(n.get(r)===s.n)e.push([r,s]);else if(n.has(r))throw new Error("[Bug] invalidated atom exists");o.add(r),a.pop()}else{i.add(r);for(const e of RC(r,s,t))i.has(e)||a.push(e)}}for(let t=e.length-1;t>=0;--t){const[i,o]=e[t];let a=!1;for(const e of o.d.keys())if(e!==i&&r.has(e)){a=!0;break}a&&(m(i),v(i)),n.delete(i)}}),m=h[3]||(e=>{var i;const o=d(e);if(wC(o)){if(t.has(e)&&n.get(e)!==o.n)return o;if(Array.from(o.d).every((([e,t])=>m(e).n===t)))return o}o.d.clear();let l=!0;const c=()=>{t.has(e)&&(v(e),p(),f())},u=n=>{var r;if(bC(e,n)){const e=d(n);if(!wC(e)){if(!AC(n))throw new Error("no atom init");OC(n,n.init,d)}return CC(e)}const i=m(n);try{return CC(i)}finally{o.d.set(n,i.n),EC(o.v)&&IC(e,o.v,i),null==(r=t.get(n))||r.t.add(e),l||c()}};let h,g;const b={get signal(){return h||(h=new AbortController),h.signal},get setSelf(){return xC(e)||console.warn("setSelf function cannot be used with read-only atom"),!g&&xC(e)&&(g=(...t)=>{if(l&&console.warn("setSelf function cannot be called in sync"),!l)try{return y(e,...t)}finally{p(),f()}}),g}},A=o.n;try{const t=s(e,u,b);return OC(e,t,d),TC(t)&&(kC(t,(()=>null==h?void 0:h.abort())),t.then(c,c)),o}catch(e){return delete o.v,o.e=e,++o.n,o}finally{l=!1,A!==o.n&&n.get(e)===A&&(n.set(e,o.n),r.add(e),null==(i=a.c)||i.call(a,e))}}),g=h[4]||(e=>{const r=[e];for(;r.length;){const e=r.pop(),i=d(e);for(const o of RC(e,i,t)){const e=d(o);n.set(o,e.n),r.push(o)}}}),y=h[5]||((e,...t)=>{let n=!0;const i=e=>CC(m(e)),o=(t,...i)=>{var o;const s=d(t);try{if(bC(e,t)){if(!AC(t))throw new Error("atom not writable");const e=s.n,n=i[0];return OC(t,n,d),v(t),void(e!==s.n&&(r.add(t),null==(o=a.c)||o.call(a,t),g(t)))}return y(t,...i)}finally{n||(p(),f())}};try{return l(e,i,o,...t)}finally{n=!1}}),v=h[6]||(e=>{var n;const i=d(e),o=t.get(e);if(o&&!EC(i.v)){for(const[t,s]of i.d)if(!o.d.has(t)){const i=d(t);b(t).t.add(e),o.d.add(t),s!==i.n&&(r.add(t),null==(n=a.c)||n.call(a,t),g(t))}for(const t of o.d||[])if(!i.d.has(t)){o.d.delete(t);const n=A(t);null==n||n.t.delete(e)}}}),b=h[7]||(e=>{var n;const r=d(e);let o=t.get(e);if(!o){m(e);for(const t of r.d.keys())b(t).t.add(e);if(o={l:new Set,d:new Set(r.d.keys()),t:new Set},t.set(e,o),null==(n=a.m)||n.call(a,e),xC(e)){const t=()=>{let t=!0;const n=(...n)=>{try{return y(e,...n)}finally{t||(p(),f())}};try{const r=u(e,n);r&&(o.u=()=>{t=!0;try{r()}finally{t=!1}})}finally{t=!1}};i.add(t)}}return o}),A=h[8]||(e=>{var n;const r=d(e);let i=t.get(e);if(!i||i.l.size||Array.from(i.t).some((n=>{var r;return null==(r=t.get(n))?void 0:r.d.has(e)})))return i;i.u&&o.add(i.u),i=void 0,t.delete(e),null==(n=a.u)||n.call(a,e);for(const t of r.d.keys()){const n=A(t);null==n||n.t.delete(e)}}),x=[e,t,n,r,i,o,a,s,l,c,u,d,f,p,m,g,y,v,b,A],w={get:e=>CC(m(e)),set:(e,...t)=>{try{return y(e,...t)}finally{p(),f()}},sub:(e,t)=>{const n=b(e).l;return n.add(t),f(),()=>{n.delete(t),A(e),f()}}};return Object.defineProperty(w,PC,{value:x}),w})(n,r,void 0,void 0,void 0,void 0,t,void 0,((t,n,r,...i)=>e?r(t,...i):t.write(n,r,...i))),o=new Set;t.m.add(void 0,(e=>{o.add(e),n.get(e).m=r.get(e)})),t.u.add(void 0,(e=>{o.delete(e),delete n.get(e).m}));const a={dev4_get_internal_weak_map:()=>(console.log("Deprecated: Use devstore from the devtools library"),n),dev4_get_mounted_atoms:()=>o,dev4_restore_atoms:t=>{const n={read:()=>null,write:(n,r)=>{++e;try{for(const[e,n]of t)"init"in e&&r(e,n)}finally{--e}}};i.set(n)}};return Object.assign(i,a)})()}const zC=(0,u.createContext)(void 0);function VC(e){const t=(0,u.useContext)(zC);return(null==e?void 0:e.store)||t||(jC||(jC=_C(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=jC),globalThis.__JOTAI_DEFAULT_STORE__!==jC&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),jC)}const UC=e=>"function"==typeof(null==e?void 0:e.then),HC=e=>{e.status||(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})))},qC=u.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(HC(e),e)}),GC=new WeakMap,YC=(e,t)=>{let n=GC.get(e);return n||(n=new Promise(((r,i)=>{let o=e;const a=e=>t=>{o===e&&r(t)},s=e=>t=>{o===e&&i(t)},l=()=>{try{const e=t();UC(e)?(GC.set(e,n),o=e,e.then(a(e),s(e)),DC(e,l)):r(e)}catch(e){i(e)}};e.then(a(e),s(e)),DC(e,l)})),GC.set(e,n)),n};function WC(e,t){const{delay:n,unstable_promiseStatus:r=!u.use}=t||{},i=VC(t),[[o,a,s],l]=(0,u.useReducer)((t=>{const n=i.get(e);return Object.is(t[0],n)&&t[1]===i&&t[2]===e?t:[n,i,e]}),void 0,(()=>[i.get(e),i,e]));let c=o;if(a===i&&s===e||(l(),c=i.get(e)),(0,u.useEffect)((()=>{const t=i.sub(e,(()=>{if(r)try{const t=i.get(e);UC(t)&&HC(YC(t,(()=>i.get(e))))}catch(e){}"number"!=typeof n?l():setTimeout(l,n)}));return l(),t}),[i,e,n,r]),(0,u.useDebugValue)(c),UC(c)){const t=YC(c,(()=>i.get(e)));return r&&HC(t),qC(t)}return c}function QC(e,t){const n=VC(t);return(0,u.useCallback)(((...t)=>{if(!("write"in e))throw new Error("not writable atom");return n.set(e,...t)}),[n,e])}function XC(e,t){return[WC(e,t),QC(e,t)]}var JC=__webpack_require__(4992);class ZC{static _Listeners={count:0,refs:{}};static addEventListener(e,t){ZC._Listeners.count++;const n="l"+ZC._Listeners.count.toString();return ZC._Listeners.refs[n]={name:e,callback:t},()=>ZC.rm(n)}static removeEventListener(e){return delete ZC._Listeners.refs[e]}static removeAllListeners(){let e=!1;return Object.keys(ZC._Listeners.refs).forEach((t=>{const n=delete ZC._Listeners.refs[t];e=e||!n})),!e}static on(e,t){return ZC.addEventListener(e,t)}static rm(e){return ZC.removeEventListener(e)}static rmAll(){return ZC.removeAllListeners()}static emit(e,...t){Object.keys(ZC._Listeners.refs).forEach((n=>{ZC._Listeners.refs[n]&&e===ZC._Listeners.refs[n].name&&ZC._Listeners.refs[n].callback(...t)}))}}const KC=["amdb","openid","userinfo","charts","email","offline_access","navdata","userdata","fmsdata","tiles","simbrief"],$C=(()=>{try{const e=JSON.parse("{}");if("object"==typeof e&&null!==e&&!Array.isArray(e))return e}catch(e){}return{}})(),eS=(()=>{try{return __webpack_require__(Object(function(){var e=new Error("Cannot find module './FEATURE_FLAG_OVERRIDE.json'");throw e.code="MODULE_NOT_FOUND",e}()))}catch(e){}return{}})(),tS={production:!1,domain:"navigraph.com",origin:"https://charts.navigraph.com",chartsAPIUrl:"https://charts.api-v2.navigraph.com",enrouteChartsAPIUrl:"https://enroute.charts.api-v2.navigraph.com",enrouteRasterChartsAPIUrl:"https://enroute-bitmap.charts.api-v2.navigraph.com",navdataAPIUrl:"https://navdata.api.navigraph.com",trafficAPIUrl:"https://traffic.api.navigraph.com",networksAPIUrl:"https://networks.api.navigraph.com",amdbAPIUrl:"https://amdb.api.navigraph.com",userdataAPIUrl:"https://userdata.api.navigraph.com",fmsdataAPIUrl:"https://fmsdata.api.navigraph.com",weatherAPIUrl:"https://wx.api.navigraph.com",weatherTilesUrl:"https://tiles.wx.api.navigraph.com",identityAPIUrl:"https://identity.api.navigraph.com",searchAPIHost:"search.api.navigraph.com",staticWebAssetsUrl:"https://static.navigraph.com",clientCredentials:{android:{clientId:"charts-rn-android",clientSecret:"2mbRVC5g3PBDBnIKqkMLDmKhABUY30q4",scopes:KC},desktop:{clientId:"charts-rn-desktop",clientSecret:"igljsnfBunGqI706JnQRIkQuJB65iscC",scopes:KC},ios:{clientId:"charts-rn-ios",clientSecret:"pjsw3rQsmI2a8IU0Q6RnXJjMLmT0gmYL",scopes:KC},web:{clientId:"charts-rn-web",clientSecret:"VM9qMEQ7kM6PEoW4qCmduyb7GTsqGDKT",scopes:KC},panel:{clientId:"charts-rn-panel",clientSecret:"L4IQ1qTTs73jlGi0DrfsH47Hku6PgkOu",scopes:KC}},logSettings:{logRocketToken:"9dm8mc/charts-production",logLevel:"err",telemetry:!0,excludeEndpoints:["https://s3.amazonaws.com/elevation-tiles-prod","https://enroute.charts.api-v2.navigraph.com","https://api.mapbox.com/v4/mapbox.satellite"]},electronSettings:{autoUpdateUrl:"https://dl.navigraph-cdn.com/software/charts"},featureFlags:(nS=["allow-small-screens","scratchpads","extended-runway-centerlines-and-approach-feathers","measurement-tool"],function(e,t){const n=[...e];for(const[e,r]of Object.entries(t))if(r&&!n.includes(e))n.push(e);else if(!r&&n.includes(e)){const t=n.indexOf(e);n.splice(t,1)}return n}(nS,Object.assign({},$C,eS))),appleAppId:"999805677",googlePackageName:"com.navigraph.chartsrn",useSentry:!0,openweathermapApiKey:"de4ca74d1a6eaf28794e59fcdff99807"};var nS;const rS=tS,iS=["emerg","alert","crit","err","warning","notice","info","debug"],oS=new class{level=rS.logSettings.logLevel;_log(e,...t){if(!(iS.indexOf(this.level){this.removeListener(e,t)}}}removeListener(e,t){const n=this.listeners?.get(e)?.delete(t);0===this.listenerCount(e)&&n&&this.stopObserving(e)}removeAllListeners(e){const t=this.listenerCount(e);this.listeners?.get(e)?.clear(),t>0&&this.stopObserving(e)}emit(e,...t){new Set(this.listeners?.get(e)).forEach((e=>{try{e(...t)}catch(e){console.error(e)}}))}listenerCount(e){return this.listeners?.get(e)?.size??0}startObserving(e){}stopObserving(e){}}class sS extends aS{}class lS extends aS{release(){}}class cS extends lS{nativeRefType="unknown"}var uS=__webpack_require__(91579);function hS(){globalThis.expo||(globalThis.expo={EventEmitter:aS,NativeModule:sS,SharedObject:lS,SharedRef:cS,modules:globalThis.ExpoDomWebView?.expoModulesProxy??{},uuidv4:uS.A.v4,uuidv5:uS.A.v5,getViewConfig:()=>{throw new Error("Method not implemented.")},reloadAppAsync:async()=>{window.location.reload()}})}function dS(){if(!globalThis.expo)try{hS()}catch(e){console.error(`Unable to install Expo modules: ${e}`)}}hS(),dS();const fS=globalThis.expo.NativeModule;function pS(e,t){if(dS(),!(t=t??e.name))throw new Error("Web module implementation is missing a name - it is either not a class or has been minified. Pass the name as a second argument to the `registerWebModule` function.");return globalThis?.expo?.modules||(globalThis.expo.modules={}),globalThis.expo.modules[t]||(globalThis.expo.modules[t]=new e),globalThis.expo.modules[t]}pS(class extends fS{},"NgClickOutsideModule");const mS=["ref"];function gS(e){let{ref:t}=e,n=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,mS);const r=u.useRef({isInsideWeb:(e,t)=>{try{return Promise.resolve(function(e,t){if(!e)return!1;const n=function(e){const t=new Set;for(const n of e)n&&t.add(n);return t}(t);if(0===n.size)return!1;if(n.has(e))return!0;let r=e.parentElement;for(;r;){if(n.has(r))return!0;r=r.parentElement}return!1}(e,t))}catch(e){return Promise.resolve(!1)}}});return u.useImperativeHandle(t,(()=>r.current),[]),(0,Al.jsx)(pr.A,Object.assign({},n))}const yS=["children"];function vS(e){let{children:t}=e,n=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,yS);const r=(0,u.useRef)([]),i=(0,u.useRef)((()=>{}));(0,u.useEffect)((()=>ZC.on("registerClickOutsideView",(({refs:e,callback:t})=>{r.current=e,i.current=t}))),[]),(0,u.useEffect)((()=>ZC.on("clearClickOutsideView",(()=>{r.current=[],i.current=()=>{}}))),[]);const o=(0,u.useRef)(null);return(0,Al.jsx)(gS,{ref:o,style:{flex:1},children:(0,Al.jsx)(pr.A,Object.assign({onStartShouldSetResponderCapture:e=>{if(0===r.current.length)return!1;if("web"===Da.OS||"desktop"===Da.OS||"panel"===Da.OS)return o.current?.isInsideWeb?.(e.target,r.current.map((e=>e.current)).filter((e=>null!==e))).then((e=>{e||i.current()})).catch((e=>oS.err(e))),!1;const t=(0,JC.A)(e.target);if(null===t)return!1;const n=r.current.map((e=>(0,JC.A)(e.current))).filter((e=>null!==e));return o.current?.isInside?.(t,n).then((e=>{e||i.current()})).catch((e=>oS.err(e))),!1}},n,{children:t}))})}const bS={Real:"real-world",IVAO:"ivao",PilotEdge:"pilotedge",VATSIM:"vatsim","SayIntentions.AI":"sayintentions"},AS=Object.keys(bS),xS=Object.values(bS),wS=__webpack_require__(6864).bind({concatArrays:!0,ignoreUndefined:!0});function CS(e,t){return new Promise(((n,r)=>{try{const r=e();t?.(null,r),n(r)}catch(e){t?.(e),r(e)}}))}function SS(e,t,n){return Promise.all(e).then((e=>{const r=n?.(e)??null;return t?.(null,r),Promise.resolve(r)}),(e=>(t?.(e),Promise.reject(e))))}const ES={getItem:(e,t)=>CS((()=>window.localStorage.getItem(e)),t),setItem:(e,t,n)=>CS((()=>window.localStorage.setItem(e,t)),n),removeItem:(e,t)=>CS((()=>window.localStorage.removeItem(e)),t),mergeItem:(e,t,n)=>CS((()=>function(e,t){const n=window.localStorage.getItem(e);if(n){const r=JSON.parse(n),i=JSON.parse(t),o=JSON.stringify(wS(r,i));window.localStorage.setItem(e,o)}else window.localStorage.setItem(e,t)}(e,t)),n),clear:e=>CS((()=>window.localStorage.clear()),e),getAllKeys:e=>CS((()=>{const e=window.localStorage.length,t=[];for(let n=0;n{},multiGet:(e,t)=>SS(e.map((e=>ES.getItem(e))),t,(t=>t.map(((t,n)=>[e[n],t])))),multiSet:(e,t)=>SS(e.map((e=>ES.setItem(e[0],e[1]))),t),multiRemove:(e,t)=>SS(e.map((e=>ES.removeItem(e))),t),multiMerge:(e,t)=>SS(e.map((e=>ES.mergeItem(e[0],e[1]))),t)},kS=ES,TS=(e,t=parent,{targetOrigin:n=(rS.production?"coui://html_ui":"*"),transfer:r=[]}={})=>new Promise(((i,o)=>{t&&t.postMessage||o(new Error("Invalid target"));const{port1:a,port2:s}=new MessageChannel;t.postMessage(e,n,[s,...r]),a.onmessage=({data:e})=>i(e),setTimeout(i,1e3)})),IS=e=>TS({action:"GET_VALUE",payload:{key:e}}).then((e=>"string"==typeof e&&""!==e?e:null)).catch((()=>(oS.err("Failed to get storage from panel"),null))),OS=(e,t)=>{TS({action:"SET_VALUE",payload:{key:e,value:t}}).catch((()=>oS.err("Failed to set storage in panel")))},RS={getItem:async e=>await kS.getItem(e)||null,setItem:async(e,t)=>kS.setItem(e,t),removeItem:async e=>kS.removeItem(e)},MS=RS;function PS(e,t,n=e=>e){const r=LC((e=>e(t)),((n,r,i)=>{const o="function"==typeof i?i(n(t)):i;r(t,o),null==o?MS.removeItem(e).catch((t=>{oS.err(`Failed to remove atom from storage: ${e}. Reason: ${t}`)})):MS.setItem(e,JSON.stringify(o)).catch((t=>{oS.err(`Failed to save atom to storage: ${e}. Reason: ${t}`)}))}));return r.onMount=t=>{MS.getItem(e).then((e=>{null!==e&&t(n(JSON.parse(e)))})).catch((()=>{oS.err(`Failed to load atom from storage: ${e}`)}))},r}var DS,jS=Object.defineProperty,BS=(e=>(e.CHARTS="charts",e.FMSDATA="fmsdata",e.TILES="tiles",e.AMDB="amdb",e))(BS||{}),LS=class extends Error{constructor(e){super(e?`[${e}] Navigraph app is not initialized.`:"Navigraph app is not initialized."),this.name="NotInitializedError"}},FS=class extends Error{constructor(){super("Authentication failed. User denied access."),this.name="UserDeniedAccessError"}},NS=class extends Error{constructor(){super("Authentication failed. Device flow token expired."),this.name="DeviceFlowTokenExpiredError"}},_S=class extends Error{constructor(e){super("Authentication failed. Invalid scope "+(e?": "+e:"provided.")),this.name="InvalidScopeError"}},zS=class extends Error{constructor(){super("Unable to sign in with device flow. The client is likely incorrectly configured."),this.name="InvalidClientError"}},VS=class extends Error{constructor(){super("Unable to sign in with device flow. The authentication was aborted."),this.name="AuthenticationAborted"}},US=(Error,Error,Error,["emerg","alert","crit","err","warning","notice","info","debug"]),HS=new class{constructor(){((e,t,n)=>{((e,t,n)=>{t in e?jS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n)})(this,"level","notice")}_log(e,...t){if(!(US.indexOf(this.level)DS;const GS=Symbol("RESET");!function(e=()=>{try{return window.localStorage}catch(e){return void("undefined"!=typeof window&&console.warn(e))}},t){var n;let r,i;const o={getItem:(n,o)=>{var a,s;const l=e=>{if(r!==(e=e||"")){try{i=JSON.parse(e,null==t?void 0:t.reviver)}catch(e){return o}r=e}return i},c=null!=(s=null==(a=e())?void 0:a.getItem(n))?s:null;return"function"==typeof(null==(u=c)?void 0:u.then)?c.then(l):l(c);var u},setItem:(n,r)=>{var i;return null==(i=e())?void 0:i.setItem(n,JSON.stringify(r,null==t?void 0:t.replacer))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let a;try{a=null==(n=e())?void 0:n.subscribe}catch(e){}var s;!a&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(a=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),a&&(o.subscribe=(s=a,(e,t,n)=>s(e,(e=>{let r;try{r=JSON.parse(e||"")}catch(e){r=n}t(r)}))))}();const YS=new WeakMap,WS={state:"loading"};function QS(e,t){const n=LC(MS.getItem(e).then((e=>null!=e?JSON.parse(e):t)).catch((()=>t))),r=LC((e=>e(n)),(async(r,i,o)=>{if(o===GS){try{await MS.removeItem(e)}catch{}return void i(n,t)}const a=r(n),s=a instanceof Promise?await a:a,l="function"==typeof o?o(s):o;i(n,l);try{await MS.setItem(e,JSON.stringify(l))}catch(e){HS.err("Failed to persist value to storage:",e)}}));return r}const XS={navigation:{categoryEnabled:!1,NDBNavaids:!1,terminalNDBNavaids:!1,waypoints:!1,terminalWaypoints:!1,VHFNavaids:!1,userWaypoints:!1,airways:!1,holdingPatterns:!1},VFRNavigation:{categoryEnabled:!1,flightpath:!1,holdingPatterns:!1,waypoints:!1,trafficPatterns:!1,extendedCenterlines:!1},general:{categoryEnabled:!1,mora:!1,grid:!1,countryBorders:!1,lowWarnings:!1,highPoints:!1,waterwayLabels:!1,landCover:!1,magneticVariation:!1,terminator:!1},airspaces:{categoryEnabled:!1,controlledAirspaces:!1,restrictiveAirspaces:!1,FIRUIR:!1,VFRAirspaces:!1},infrastructure:{categoryEnabled:!1,roads:!1,railways:!1,powerlines:!1,obstacles:!1,populatedAreas:!1},airports:{categoryEnabled:!1,IFRAirports:!1,VFRAirports:!1,helipads:!1},FAACharts:{categoryEnabled:!1,vfrSectionals:!1,ifrHigh:!1,ifrLow:!1,helicopter:!1},base:{categoryEnabled:!1,terrain:!1,satellite:!1,continents:!1},rogers:{categoryEnabled:!1,rogersEnabled:!0}},JS=Object.assign({},XS,{navigation:Object.assign({},XS.navigation,{categoryEnabled:!0,NDBNavaids:!0,waypoints:!0,VHFNavaids:!0,userWaypoints:!0,airways:!1,holdingPatterns:!1}),VFRNavigation:Object.assign({},XS.VFRNavigation,{categoryEnabled:!0,flightpath:!0,holdingPatterns:!0,waypoints:!0,trafficPatterns:!0,extendedCenterlines:!0}),airspaces:Object.assign({},XS.airspaces,{categoryEnabled:!0,controlledAirspaces:!0,restrictiveAirspaces:!0,FIRUIR:!0,VFRAirspaces:!0}),infrastructure:Object.assign({},XS.infrastructure,{categoryEnabled:!0,roads:!0,railways:!0,powerlines:!0,obstacles:!0,populatedAreas:!0}),airports:Object.assign({},XS.airports,{categoryEnabled:!0,IFRAirports:!0,VFRAirports:!0,helipads:!0}),general:Object.assign({},XS.general,{categoryEnabled:!0,mora:!0,grid:!0,lowWarnings:!0,highPoints:!0,waterwayLabels:!0,landCover:!0}),FAACharts:Object.assign({},XS.FAACharts,{categoryEnabled:!1,vfrSectionals:!0}),base:Object.assign({},XS.base,{categoryEnabled:!0,terrain:!0})}),ZS=Object.assign({},XS,{navigation:Object.assign({},XS.navigation,{NDBNavaids:!0,waypoints:!0,VHFNavaids:!0,userWaypoints:!0,airways:!0,holdingPatterns:!0}),VFRNavigation:Object.assign({},XS.VFRNavigation,{flightpath:!0,holdingPatterns:!0,waypoints:!0,trafficPatterns:!0,extendedCenterlines:!0}),airspaces:Object.assign({},XS.airspaces,{categoryEnabled:!1,controlledAirspaces:!0,restrictiveAirspaces:!0,FIRUIR:!0,VFRAirspaces:!0}),infrastructure:Object.assign({},XS.infrastructure,{categoryEnabled:!0,roads:!0,railways:!0,powerlines:!0,populatedAreas:!0}),airports:Object.assign({},XS.airports,{categoryEnabled:!0,IFRAirports:!0,VFRAirports:!0,helipads:!0}),FAACharts:Object.assign({},XS.FAACharts,{categoryEnabled:!1,vfrSectionals:!0}),general:Object.assign({},XS.general,{categoryEnabled:!0,grid:!0,countryBorders:!0,lowWarnings:!0,highPoints:!0,waterwayLabels:!0,landCover:!0}),base:Object.assign({},XS.base,{categoryEnabled:!0,terrain:!0})}),KS=Object.assign({},XS,{navigation:Object.assign({},XS.navigation,{categoryEnabled:!0,NDBNavaids:!0,waypoints:!0,VHFNavaids:!0,userWaypoints:!0,airways:!0,holdingPatterns:!0}),VFRNavigation:Object.assign({},XS.VFRNavigation,{categoryEnabled:!1,flightpath:!0,holdingPatterns:!0,waypoints:!0,trafficPatterns:!0,extendedCenterlines:!0}),airspaces:Object.assign({},XS.airspaces,{categoryEnabled:!0,controlledAirspaces:!0,restrictiveAirspaces:!0,FIRUIR:!0}),infrastructure:Object.assign({},XS.infrastructure,{categoryEnabled:!1,roads:!0,railways:!0,powerlines:!0,obstacles:!0,populatedAreas:!0}),airports:Object.assign({},XS.airports,{categoryEnabled:!0,IFRAirports:!0,VFRAirports:!0}),FAACharts:Object.assign({},XS.FAACharts,{categoryEnabled:!1,ifrLow:!0}),general:Object.assign({},XS.general,{categoryEnabled:!0,mora:!0,grid:!0}),base:Object.assign({},XS.base,{categoryEnabled:!0,continents:!0})}),$S=Object.assign({},XS,{navigation:Object.assign({},XS.navigation,{categoryEnabled:!0,NDBNavaids:!0,waypoints:!0,VHFNavaids:!0,userWaypoints:!0,airways:!0,holdingPatterns:!0}),VFRNavigation:Object.assign({},XS.VFRNavigation,{categoryEnabled:!1,flightpath:!0,holdingPatterns:!0,waypoints:!0,trafficPatterns:!0,extendedCenterlines:!0}),airspaces:Object.assign({},XS.airspaces,{categoryEnabled:!0,controlledAirspaces:!0,restrictiveAirspaces:!0,FIRUIR:!0}),infrastructure:Object.assign({},XS.infrastructure,{categoryEnabled:!1,roads:!0,railways:!0,powerlines:!0,obstacles:!0,populatedAreas:!0}),airports:Object.assign({},XS.airports,{categoryEnabled:!0,IFRAirports:!0,VFRAirports:!0}),FAACharts:Object.assign({},XS.FAACharts,{categoryEnabled:!1,ifrHigh:!0}),general:Object.assign({},XS.general,{categoryEnabled:!0,mora:!0,grid:!0}),base:Object.assign({},XS.base,{categoryEnabled:!0,continents:!0})}),eE=Object.assign({},ZS,{infrastructure:Object.assign({},ZS.infrastructure,{populatedAreas:!1}),base:Object.assign({},ZS.base,{satellite:!0,terrain:!1})}),tE=Object.assign({},JS,{infrastructure:Object.assign({},JS.infrastructure,{categoryEnabled:!1,roads:!0,railways:!0,powerlines:!0,obstacles:!0,populatedAreas:!0}),FAACharts:Object.assign({},XS.FAACharts,{categoryEnabled:!0,vfrSectionals:!0}),airspaces:Object.assign({},JS.airspaces,{categoryEnabled:!1,controlledAirspaces:!0,restrictiveAirspaces:!0,FIRUIR:!0,VFRAirspaces:!0}),navigation:Object.assign({},JS.navigation,{categoryEnabled:!0,waypoints:!1}),VFRNavigation:Object.assign({},JS.VFRNavigation,{categoryEnabled:!0,flightpath:!1,holdingPatterns:!1,waypoints:!0,trafficPatterns:!1}),general:Object.assign({},JS.general,{categoryEnabled:!1})}),nE=Object.assign({},$S,{FAACharts:Object.assign({},XS.FAACharts,{ifrHigh:!0,categoryEnabled:!0})}),rE=Object.assign({},KS,{FAACharts:Object.assign({},XS.FAACharts,{ifrLow:!0,categoryEnabled:!0})}),iE=Object.assign({},JS,{infrastructure:Object.assign({},JS.infrastructure,{categoryEnabled:!1}),FAACharts:Object.assign({},JS.FAACharts,{categoryEnabled:!0,vfrSectionals:!1,helicopter:!0})}),oE=Object.assign({},XS,{general:Object.assign({},XS.general,{categoryEnabled:!1,mora:!0,grid:!0,lowWarnings:!0,highPoints:!0,waterwayLabels:!0,landCover:!0}),FAACharts:Object.assign({},XS.FAACharts,{categoryEnabled:!1,ifrHigh:!1}),navigation:Object.assign({},XS.navigation,{categoryEnabled:!0,NDBNavaids:!0,waypoints:!1,userWaypoints:!0,VHFNavaids:!0}),VFRNavigation:Object.assign({},XS.VFRNavigation,{categoryEnabled:!0,flightpath:!1,holdingPatterns:!1,waypoints:!0,trafficPatterns:!1}),base:Object.assign({},XS.base,{categoryEnabled:!0,terrain:!0}),airports:Object.assign({},XS.airports,{categoryEnabled:!0,IFRAirports:!0,VFRAirports:!0,helipads:!0}),rogers:Object.assign({},XS.rogers,{categoryEnabled:!0,rogersEnabled:!0}),airspaces:Object.assign({},XS.airspaces,{categoryEnabled:!1,controlledAirspaces:!0,restrictiveAirspaces:!0,FIRUIR:!0,VFRAirspaces:!0}),infrastructure:Object.assign({},XS.infrastructure,{categoryEnabled:!1,roads:!0,railways:!0,powerlines:!0,obstacles:!0,populatedAreas:!0})}),aE=["IFR HIGH","IFR LOW","VFR","WORLD","SATELLITE","FAA VFR","FAA IFR HIGH","FAA IFR LOW","FAA HEL","ROGERS"],sE={"IFR HIGH":$S,"IFR LOW":KS,VFR:JS,WORLD:ZS,SATELLITE:eE,"FAA VFR":tE,"FAA IFR HIGH":nE,"FAA IFR LOW":rE,"FAA HEL":iE,ROGERS:oE};function lE(e,t){const n={};for(const[r,i]of Object.entries(e)){n[r]=Object.assign({},e[r]);for(const[e,o]of Object.entries(i))n[r][e]=void 0!==t?.[r]?.[e]?t[r]?.[e]:o}return n}const cE=LC(null),uE=LC(null),hE=PS("mapLastLocZoomLevel",LC(null)),dE=LC([]),fE=LC(new Map),pE=LC(null),mE=PS("mapProjection",LC("mercator")),gE=LC(!1),yE=LC(!1),vE=LC(0),bE=LC(0),AE=(LC(0),LC([0,0]),LC(!1)),xE=LC(void 0),wE=LC(null),CE=PS("overlayedChartOpacity",LC(.7)),SE=PS("displayFiltersState",LC(sE),(e=>({"IFR HIGH":lE($S,e["IFR HIGH"]),"IFR LOW":lE(KS,e["IFR LOW"]),VFR:lE(JS,e.VFR),WORLD:lE(ZS,e.WORLD),SATELLITE:lE(eE,e.SATELLITE),"FAA VFR":lE(tE,e["FAA VFR"]),"FAA IFR LOW":lE(rE,e["FAA IFR LOW"]),"FAA IFR HIGH":lE(nE,e["FAA IFR HIGH"]),"FAA HEL":lE(iE,e["FAA HEL"]),ROGERS:lE(oE,e.ROGERS)}))),EE=PS("autoChangeLowHighIFR",LC(!1)),kE=LC("IFR HIGH"),TE=PS("displayFilterPreset",LC("IFR HIGH")),IE=LC(null),OE=LC(null),RE=PS("rasterSizeState",LC("2x")),ME=LC(null),PE=(LC(null),LC(null),PS("widgetControlExpandState",LC(!0))),DE=LC(!1),jE=LC(!1),BE=LC((e=>({initialized:e(gE),area:e(cE),center:e(uE),highlight:e(pE),projection:e(mE),heading:e(vE)}))),LE=LC((e=>e(SE)[e(TE)]),((e,t,n)=>{const r=e(SE),i=e(TE),o="function"==typeof n?n(r[i]):n;t(SE,Object.assign({},r,{[i]:o}))})),FE=100,NE=PS("settingsThemeState",LC("DAY")),_E=LC((e=>{const t=e(LE);return t.base.categoryEnabled&&t.base.satellite?"NIGHT":e(NE)})),zE=LC(!1),VE=PS("settingsAlwaysOnTopState",LC((e=>e(zE)),((e,t,n)=>{t(zE,n),window.electronAPI?.setAlwaysOnTop(n)}))),UE=PS("settingsMapZoom",LC(FE)),HE=QS("settingsAutoStartState",!0),qE=QS("settingsAutoFollowState",!0),GE=QS("settingsAutoZoomState",!1),YE=QS("settingsGreatCircleReferenceState",!1),WE=PS("settingsDisableAutoLockState",LC(!0)),QE=LC(1),XE=PS("settingsUIScaleState",LC(1)),JE=PS("useVirtualKeyboard",LC(!0)),ZE=PS("settingsRunwayLengthUnit",LC("ft")),KE=PS("settingsMovingMapsAnchorPoint",LC("tip")),$E=PS("settingsMapTiltState",LC(!0)),ek=PS("settingsATISRunwayStatusPriorityState",LC("Real")),tk=PS("settingsATISRunwayStatusEnabledState",LC([...xS]));function nk(){return WC(WE),null}const rk=["children"];function ik({resolvedTheme:e}){const[t,n]=(0,u.useState)((window.outerWidth-10)/window.innerWidth),r=(0,u.useCallback)((()=>{n((window.outerWidth-10)/window.innerWidth)}),[n]);return(0,u.useEffect)((()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r))),[r]),(0,Al.jsx)(ok,{children:(0,Al.jsx)(pr.A,{style:{height:("darwin"===window.electronPlatform?28:32)/t,backgroundColor:e.colors["Background/800"],WebkitAppRegion:"drag",justifyContent:"center"},children:(0,Al.jsx)(Ko.A,{style:{fontFamily:e.customFonts.Inter[500],fontWeight:"500",fontSize:e.fontSizes.m/t,lineHeight:e.text.m.lineHeight,color:e.colors.White,textAlign:"center"},children:"Navigraph Charts"})})})}function ok(e){let{children:t}=e,n=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,rk);const r="darwin"===window.electronPlatform;return r?(0,Al.jsx)(zr,{onHandlerStateChange:e=>{r&&e.nativeEvent.state===l.END&&window.electronAPI.macTitleBarDoubleClicked()},numberOfTaps:2,children:(0,Al.jsx)(pr.A,Object.assign({},n,{children:t}))}):(0,Al.jsx)(pr.A,Object.assign({},n,{children:t}))}var ak=__webpack_require__(15539),sk=__webpack_require__(48287);Math.PI,__webpack_require__(47310),__webpack_require__(72267);const lk=e=>e.onPress||e.onPressIn||e.onPressOut||e.onLongPress;function ck(e){const t=[];return null!=e.translate&&t.push(`translate(${e.translate})`),null==e.translateX&&null==e.translateY||t.push(`translate(${e.translateX||0}, ${e.translateY||0})`),null!=e.scale&&t.push(`scale(${e.scale})`),null==e.scaleX&&null==e.scaleY||t.push(`scale(${e.scaleX||1}, ${e.scaleY||1})`),null!=e.rotation&&t.push(`rotate(${e.rotation})`),null!=e.skewX&&t.push(`skewX(${e.skewX})`),null!=e.skewY&&t.push(`skewY(${e.skewY})`),t}function uk(e,t){const n=[];if(t&&n.push(...ck(t)),Array.isArray(e))if("number"==typeof e[0])n.push(`matrix(${e.join(" ")})`);else{const t=function(e){const t={};return null==e||e.forEach((e=>{const n=Object.keys(e);1!==n.length&&console.error("You must specify exactly one property per transform object.");const r=n[0],i=e[r];t[r]=i})),t}(e);n.push(...ck(t))}else"string"==typeof e&&n.push(e);return n.length?n.join(" "):void 0}const hk=e=>{if(e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect)return e.getBoundingClientRect();throw new Error("Can not get boundingClientRect of "+e||0)};function dk(){const e=this.state.touchable.responderID;null!==e&&((e,t)=>{const n=null==e?void 0:e.parentNode;n&&setTimeout((()=>{const r=hk(n),{height:i,left:o,top:a,width:s}=hk(e),l=o-r.left,c=a-r.top;t(l,c,s,i,o,a)}),0)})(e,this._handleQueryLayout)}var fk=__webpack_require__(71261),pk=__webpack_require__(19703);const mk=/^(data:image\/svg\+xml;utf8,)(.*)/,gk=(e,t=e.props)=>{const{transform:n,origin:r,originX:i,originY:o,fontFamily:a,fontSize:s,fontWeight:l,fontStyle:c,style:u,forwardedRef:h,gradientTransform:d,patternTransform:f,onPress:p,...m}=t,g={...lk(t)?{onStartShouldSetResponder:e.touchableHandleStartShouldSetResponder,onResponderTerminationRequest:e.touchableHandleResponderTerminationRequest,onResponderGrant:e.touchableHandleResponderGrant,onResponderMove:e.touchableHandleResponderMove,onResponderRelease:e.touchableHandleResponderRelease,onResponderTerminate:e.touchableHandleResponderTerminate}:null,...m};null!=r?g["transform-origin"]=r.toString().replace(","," "):null==i&&null==o||(g["transform-origin"]=`${i||0} ${o||0}`);const y=uk(n,t);y&&(g.transform=y);const v=uk(d);v&&(g.gradientTransform=v);const b=uk(f);b&&(g.patternTransform=b),g.ref=t=>{e.elementRef.current=t,"function"==typeof h?h(t):h&&(h.current=t)};const A={};var x,w,C;return null!=a&&(A.fontFamily=a),null!=s&&(A.fontSize=s),null!=l&&(A.fontWeight=l),null!=c&&(A.fontStyle=c),g.style=(w=A,(x=u)?fr.A?[x,w]:x[Symbol.iterator]?Object.assign({},...x,w):Object.assign({},x,w):w),null!==p&&(g.onClick=t.onPress),null!==t.href&&void 0!==t.href&&(g.href=null===(C=function(e){let t={};if("number"==typeof e){const n=(0,pk.getAssetByID)(e);if(null==n)throw new Error(`Image: asset with ID "${e}" could not be found. Please check the image source or packager.`);if(t={width:n.width,height:n.height,scale:n.scales[0]},n.scales.length>1){const e=Un.A.get();t.scale=n.scales.reduce(((t,n)=>Math.abs(n-e)>16&255},${e>>8&255},${255&e},${((e>>24&255)/255).toFixed(2)})`}var vk=__webpack_require__(83185);const bk={top:20,left:20,right:20,bottom:30},{Mixin:Ak}=vk.A,{touchableHandleStartShouldSetResponder:xk,touchableHandleResponderTerminationRequest:wk,touchableHandleResponderGrant:Ck,touchableHandleResponderMove:Sk,touchableHandleResponderRelease:Ek,touchableHandleResponderTerminate:kk,touchableGetInitialState:Tk}=Ak,Ik={...Ak,touchableHandleStartShouldSetResponder(e){const{onStartShouldSetResponder:t}=this.props;return t?t(e):xk.call(this,e)},touchableHandleResponderTerminationRequest(e){const{onResponderTerminationRequest:t}=this.props;return t?t(e):wk.call(this,e)},touchableHandleResponderGrant(e){const{onResponderGrant:t}=this.props;return t?t(e):Ck.call(this,e)},touchableHandleResponderMove(e){const{onResponderMove:t}=this.props;return t?t(e):Sk.call(this,e)},touchableHandleResponderRelease(e){const{onResponderRelease:t}=this.props;return t?t(e):Ek.call(this,e)},touchableHandleResponderTerminate(e){const{onResponderTerminate:t}=this.props;return t?t(e):kk.call(this,e)},touchableHandlePress(e){const{onPress:t}=this.props;t&&t(e)},touchableHandleActivePressIn(e){const{onPressIn:t}=this.props;t&&t(e)},touchableHandleActivePressOut(e){const{onPressOut:t}=this.props;t&&t(e)},touchableHandleLongPress(e){const{onLongPress:t}=this.props;t&&t(e)},touchableGetPressRectOffset(){const{pressRetentionOffset:e}=this.props;return e||bk},touchableGetHitSlop(){const{hitSlop:e}=this.props;return e},touchableGetHighlightDelayMS(){const{delayPressIn:e}=this.props;return e||0},touchableGetLongPressDelayMS(){const{delayLongPress:e}=this.props;return 0===e?0:e||500},touchableGetPressOutDelayMS(){const{delayPressOut:e}=this.props;return e||0}},Ok=Object.keys(Ik),Rk=Ok.map((e=>Ik[e])),Mk=Ok.length;class Pk extends u.Component{prepareProps(e){return e}elementRef=u.createRef();lastMergedProps={};setNativeProps(e){const t=Object.assign({},this.props,this.lastMergedProps,e.style);this.lastMergedProps=t;const n=gk(this,this.prepareProps(t)),r=this.elementRef.current;if(r)for(const e of Object.keys(n)){const t=n[e];switch(e){case"ref":case"children":break;case"style":for(const e of[].concat(n.style??[]))Object.assign(r.style,e);break;case"fill":if(t&&"object"==typeof t){const e=t;r.setAttribute("fill",yk(e.payload))}break;case"stroke":if(t&&"object"==typeof t){const e=t;r.setAttribute("stroke",yk(e.payload))}break;default:r.setAttribute(e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),t)}}}constructor(e){super(e),lk(e)&&(e=>{for(let t=0;t{const t=document.createElement("canvas");t.width=i,t.height=o;const n=t.getContext("2d");null==n||n.drawImage(s,0,0),e(t.toDataURL().replace("data:image/png;base64,",""))},s.src=`data:image/svg+xml;utf8,${l=(new window.XMLSerializer).serializeToString(a),l.replace("/g,"%3E").replace(/\s+/g," ")}`}};console.error.bind(console);const Qk=u.memo((function({size:e=42}){return(0,Al.jsxs)(Wk,{width:e*(179/42),height:e,viewBox:"0 0 179 42",fill:"none",children:[(0,Al.jsx)(Vk,{d:"M107.583 14.5131H104.263V28.5841H107.583V14.5131Z",fill:"white"}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M86.9888 14.5131H90.4998L94.5822 24.7465L98.5831 14.5131H102.121L96.1608 28.5841H93.0309L86.9888 14.5131Z",fill:"white"}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M157.777 14.2037C159.002 14.2037 160.118 14.5031 161.098 15.1291C162.077 15.7551 162.839 16.626 163.411 17.7419C163.955 18.8577 164.227 20.1369 164.227 21.5522C164.227 22.9674 163.955 24.2466 163.411 25.3625C162.839 26.4784 162.077 27.3493 161.098 27.9753C160.118 28.6285 159.002 28.9279 157.777 28.9279C156.743 28.9279 155.818 28.7101 154.974 28.2475C154.13 27.812 153.45 27.186 152.878 26.3695V33.2825H149.558V14.5303H151.79L152.878 16.7621C153.45 15.9456 154.13 15.3196 154.974 14.8569C155.818 14.4215 156.743 14.2037 157.777 14.2037ZM157.151 26.0973C158.321 26.0973 159.301 25.6619 160.063 24.8182C160.825 23.9745 161.206 22.8858 161.206 21.5522C161.206 20.2186 160.825 19.1571 160.063 18.2862C159.301 17.4697 158.321 17.0342 157.151 17.0342C155.981 17.0342 155.028 17.4697 154.293 18.2862C153.531 19.1571 153.178 20.2186 153.178 21.5522C153.178 22.8858 153.531 23.9745 154.293 24.8182C155.028 25.6619 155.981 26.0973 157.151 26.0973Z",fill:"white"}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M141.392 14.2037C143.243 14.2037 144.713 14.7481 145.801 15.8095C146.89 16.8982 147.434 18.3406 147.434 20.1369V28.6013H145.039L144.195 26.9138C143.678 27.5398 143.025 28.0297 142.236 28.3835C141.419 28.7646 140.603 28.9279 139.759 28.9279C138.752 28.9279 137.854 28.7374 137.065 28.3563C136.275 28.0025 135.649 27.4582 135.187 26.7778C134.724 26.0973 134.506 25.3353 134.506 24.4371C134.506 23.539 134.779 22.7225 135.296 22.0149C135.813 21.3072 136.493 20.7629 137.364 20.3547C138.235 19.9464 139.188 19.7559 140.249 19.7559C141.555 19.7559 142.862 20.0008 144.195 20.518V20.1369C144.195 19.2388 143.923 18.4767 143.379 17.8507C142.807 17.2248 141.936 16.9254 140.739 16.9254C139.623 16.9254 138.344 17.2792 136.929 17.9868V15.6734C137.827 14.8297 139.65 14.2037 141.392 14.2037ZM140.494 26.5056C141.338 26.5056 142.127 26.2879 142.862 25.8796C143.569 25.4714 144.005 24.8998 144.195 24.1922V22.6136C143.134 22.2598 141.991 22.0693 140.739 22.0693C139.895 22.0693 139.188 22.287 138.616 22.6953C138.045 23.1307 137.745 23.6751 137.745 24.3283C137.745 24.9815 137.99 25.4986 138.534 25.9068C139.052 26.3151 139.705 26.5056 140.494 26.5056Z",fill:"white"}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M129.794 17.2389C130.255 16.2904 130.906 15.5587 131.8 15.0167C132.667 14.4747 133.67 14.2037 134.808 14.2037V17.0221C133.317 17.0221 132.098 17.4286 131.177 18.2416C130.255 19.0546 129.794 20.1385 129.794 21.4664V28.5394H126.488V14.5289H128.494L129.794 17.2389Z",fill:"white"}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M124.172 14.5303V27.1044C124.172 28.3019 123.872 29.3633 123.246 30.3159C122.62 31.2413 121.75 31.9761 120.634 32.4932C119.518 33.0103 118.239 33.2825 116.823 33.2825C115.653 33.2825 114.537 33.1192 113.476 32.7654C112.387 32.4116 111.516 31.9761 110.781 31.4046L111.979 28.9823C112.469 29.445 113.122 29.7988 113.911 30.071C114.7 30.3159 115.49 30.452 116.333 30.452C117.721 30.452 118.81 30.1526 119.627 29.5266C120.443 28.9007 120.851 28.0569 120.851 26.9955V25.172C120.28 25.934 119.599 26.5328 118.783 26.9411C117.939 27.3493 117.041 27.567 116.034 27.567C114.837 27.567 113.748 27.2677 112.795 26.6961C111.815 26.1246 111.053 25.3353 110.509 24.3283C109.965 23.3213 109.693 22.1509 109.693 20.8718C109.693 19.5926 109.965 18.4223 110.509 17.4153C111.053 16.4083 111.815 15.619 112.795 15.0474C113.748 14.4759 114.837 14.2037 116.034 14.2037C117.041 14.2037 117.966 14.4215 118.81 14.8569C119.654 15.2924 120.334 15.8911 120.851 16.626L121.886 14.5303H124.172ZM116.551 24.7365C117.667 24.7365 118.592 24.3827 119.327 23.6479C120.035 22.913 120.416 21.9876 120.416 20.8718C120.416 19.7559 120.035 18.8305 119.327 18.0957C118.592 17.3881 117.667 17.0342 116.551 17.0342C115.435 17.0342 114.51 17.3881 113.802 18.0957C113.067 18.8305 112.714 19.7559 112.714 20.8718C112.714 21.9876 113.067 22.913 113.775 23.6479C114.483 24.3827 115.408 24.7365 116.551 24.7365Z",fill:"white"}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M80.4268 14.2037C82.2775 14.2037 83.7472 14.7481 84.8359 15.8095C85.9245 16.8982 86.4689 18.3406 86.4689 20.1369V28.6013H84.0738L83.2301 26.9138C82.713 27.5398 82.0598 28.0297 81.2705 28.3835C80.454 28.7646 79.6375 28.9279 78.7938 28.9279C77.7868 28.9279 76.8886 28.7374 76.0994 28.3563C75.3101 28.0025 74.6841 27.4582 74.2214 26.7778C73.7587 26.0973 73.541 25.3353 73.541 24.4371C73.541 23.539 73.8132 22.7225 74.3303 22.0149C74.8474 21.3072 75.5278 20.7629 76.3988 20.3547C77.2697 19.9464 78.2223 19.7559 79.2837 19.7559C80.5901 19.7559 81.8965 20.0008 83.2301 20.518V20.1369C83.2301 19.2388 82.9579 18.4767 82.4136 17.8507C81.8421 17.2248 80.9711 16.9254 79.7736 16.9254C78.6577 16.9254 77.3785 17.2792 75.9633 17.9868V15.6734C76.8614 14.8297 78.6849 14.2037 80.4268 14.2037ZM79.5287 26.5056C80.3724 26.5056 81.1616 26.2879 81.8965 25.8796C82.6041 25.4714 83.0396 24.8998 83.2301 24.1922V22.6136C82.1687 22.2598 81.0256 22.0693 79.7736 22.0693C78.9299 22.0693 78.2223 22.287 77.6507 22.6953C77.0792 23.1307 76.7798 23.6751 76.7798 24.3283C76.7798 24.9815 77.0247 25.4986 77.5691 25.9068C78.0862 26.3151 78.7394 26.5056 79.5287 26.5056Z",fill:"white"}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M55.2823 9.90042H58.6844L68.0469 23.046V9.90042H71.4218V28.5982H68.0469L58.6844 15.4526V28.5982H55.2823V9.90042Z",fill:"white"}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M173.774 14.1897C174.781 14.1897 175.707 14.4075 176.496 14.8701C177.285 15.3328 177.884 15.986 178.347 16.8025C178.782 17.6462 179 18.5716 179 19.633V28.5873H175.788V20.2862C175.788 19.3336 175.516 18.5444 174.972 17.9184C174.4 17.3196 173.693 17.0202 172.822 17.0202C171.869 17.0202 171.08 17.3196 170.4 17.9184C169.719 18.5172 169.393 19.2248 169.393 20.0685V28.5873H166.072V9.56291H169.393V16.4487C169.828 15.7683 170.427 15.1967 171.216 14.7885C172.005 14.3802 172.849 14.1897 173.774 14.1897Z",fill:"white"}),(0,Al.jsx)(Vk,{d:"M105.923 12.2361C106.84 12.2361 107.583 11.4928 107.583 10.576C107.583 9.65922 106.84 8.916 105.923 8.916C105.006 8.916 104.263 9.65922 104.263 10.576C104.263 11.4928 105.006 12.2361 105.923 12.2361Z",fill:"white"}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M21.0352 19.4971C21.4548 19.4963 27.0103 14.0407 27.0103 13.5222C27.0103 12.576 22.0809 0 21.0352 0C19.9417 6.49475 19.7202 12.993 21.0352 19.4971Z",fill:"#DF362C"}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M21.035 0C20.1574 0 16.4699 8.85944 15.3076 12.2658C15.085 12.9179 14.9551 13.3701 14.9551 13.5222C14.9551 14.0413 20.6153 19.4978 21.035 19.4971V0Z",fill:"#A6302B"}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5023 21.0416C22.5031 21.4612 27.9589 27.0167 28.4774 27.0167C29.4236 27.0167 42 22.0873 42 21.0416C35.5051 19.9481 29.0066 19.7266 22.5023 21.0416Z",fill:"#9BA2AA"}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M42 21.041C42 20.1634 33.1403 16.4758 29.7339 15.3135C29.0817 15.091 28.6295 14.9611 28.4774 14.9611C27.9582 14.9611 22.5016 20.6213 22.5023 21.041H42Z",fill:"#D7DADF"}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M20.9578 22.5029C20.5382 22.5037 14.9827 27.9593 14.9827 28.4778C14.9827 29.424 19.9121 42 20.9578 42C22.0512 35.5053 22.2728 29.007 20.9578 22.5029Z",fill:"#9BA2AA"}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M20.9579 42C21.8355 42 25.5231 33.1406 26.6854 29.7342C26.9079 29.0821 27.0378 28.6299 27.0378 28.4778C27.0378 27.9587 21.3776 22.5022 20.9579 22.5029L20.9579 42Z",fill:"#D7DADF"}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4977 20.9635C19.4969 20.5439 14.0411 14.9884 13.5226 14.9884C12.5764 14.9884 0 19.9178 0 20.9635C6.49494 22.057 12.9934 22.2785 19.4977 20.9635Z",fill:"#D7DADF"}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M0 20.9641C0 21.8418 8.85971 25.5293 12.2661 26.6916C12.9183 26.9142 13.3705 27.0441 13.5226 27.0441C14.0418 27.0441 19.4984 21.3838 19.4977 20.9641H0Z",fill:"#9BA2AA"})]})})),Xk=["size","color"],Jk=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,Xk);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,{d:"M16.7888 16.0035L8.85335 16.0035M8.85335 16.0035L12.821 12.0358M8.85335 16.0035L12.821 19.9712",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Al.jsx)(Vk,{d:"M8.95994 16.0034L22.9399 16.0034M22.9399 16.0034L18.9722 19.9711M22.9399 16.0034L18.9722 12.0357",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Al.jsx)(Vk,Object.assign({d:"M4.9762 24.06V21.405C4.97622 20.9926 5.31051 20.6583 5.72286 20.6583C6.13522 20.6583 6.4695 20.9926 6.46953 21.405V24.06C6.46953 24.8721 7.12785 25.5306 7.93995 25.5306H10.5949C11.0073 25.5306 11.3416 25.8649 11.3416 26.2773C11.3416 26.6896 11.0073 27.0239 10.5949 27.0239H7.93995C6.3031 27.0239 4.9762 25.6968 4.9762 24.06ZM25.5304 24.06V21.405C25.5304 20.9926 25.8647 20.6583 26.277 20.6583C26.6893 20.6584 27.0237 20.9927 27.0237 21.405V24.06C27.0237 25.6969 25.6966 27.0239 24.0597 27.0239H21.4047C20.9924 27.0239 20.6581 26.6896 20.6581 26.2773C20.6581 25.8649 20.9924 25.5306 21.4047 25.5306H24.0597C24.8719 25.5306 25.5304 24.8721 25.5304 24.06ZM4.9762 10.5952V7.94019C4.97624 6.30338 6.30313 4.97649 7.93995 4.97644H10.5949C11.0073 4.97644 11.3416 5.31073 11.3416 5.72311C11.3416 6.13548 11.0073 6.46977 10.5949 6.46977H7.93995C7.12788 6.46982 6.46958 7.12812 6.46953 7.94019V10.5952C6.46953 11.0076 6.13524 11.3419 5.72286 11.3419C5.31049 11.3419 4.9762 11.0076 4.9762 10.5952ZM25.5304 10.5952V7.94019C25.5303 7.12809 24.8718 6.46977 24.0597 6.46977H21.4047C20.9924 6.46975 20.6581 6.13546 20.6581 5.72311C20.6581 5.31075 20.9924 4.97647 21.4047 4.97644H24.0597C25.6966 4.97644 27.0236 6.30335 27.0237 7.94019V10.5952C27.0237 11.0075 26.6894 11.3418 26.277 11.3419C25.8647 11.3419 25.5304 11.0076 25.5304 10.5952Z"},i))]}))})),Zk=["size","color"],Kk=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,Zk);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,{d:"M8.41511 16.1413C8.42885 15.4645 8.52971 14.7785 8.72554 14.0972C9.9409 9.86896 14.3538 7.42655 18.582 8.64192C22.8103 9.85728 25.2527 14.2702 24.0373 18.4984C23.0697 21.8647 20.0753 24.0991 16.761 24.2568",stroke:i.fill,strokeWidth:"1.5",strokeLinecap:"round"}),(0,Al.jsx)(Vk,{d:"M11.221 15.0352L8.96408 17.3081C8.70842 17.5656 8.29245 17.567 8.03498 17.3114L5.76208 15.0544",stroke:i.fill,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))})),$k=["size","color"],eT=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,$k);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M18 10C17.5858 10 17.25 10.3358 17.25 10.75V13.25H14.75C14.3358 13.25 14 13.5858 14 14C14 14.4142 14.3358 14.75 14.75 14.75H17.25V17.25C17.25 17.6642 17.5858 18 18 18C18.4142 18 18.75 17.6642 18.75 17.25V14.75H21.25C21.6642 14.75 22 14.4142 22 14C22 13.5858 21.6642 13.25 21.25 13.25H18.75V10.75C18.75 10.3358 18.4142 10 18 10Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M11.9901 18.6071C12.3806 18.2166 13.0138 18.2166 13.4043 18.6071C13.7949 18.9976 13.7949 19.6308 13.4043 20.0213L7.74748 25.6782C7.35696 26.0687 6.72379 26.0687 6.33327 25.6782C5.94274 25.2876 5.94274 24.6545 6.33327 24.264L11.9901 18.6071Z"},i)),(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M18 20.5C21.5898 20.5 24.5 17.5899 24.5 14C24.5 10.4101 21.5898 7.5 18 7.5C14.4101 7.5 11.5 10.4101 11.5 14C11.5 17.5899 14.4101 20.5 18 20.5ZM18 22C22.4183 22 26 18.4183 26 14C26 9.58172 22.4183 6 18 6C13.5817 6 9.99999 9.58172 9.99999 14C9.99999 18.4183 13.5817 22 18 22Z"},i))]}))})),tT=["size","color"],nT=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,tT);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,Object.assign({d:"M21.25 13.25C21.6642 13.25 22 13.5858 22 14C22 14.4142 21.6642 14.75 21.25 14.75L14.75 14.75C14.3358 14.75 14 14.4142 14 14C14 13.5858 14.3358 13.25 14.75 13.25L21.25 13.25Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M11.9901 18.6071C12.3806 18.2166 13.0138 18.2166 13.4043 18.6071C13.7949 18.9976 13.7949 19.6308 13.4043 20.0213L7.74748 25.6782C7.35696 26.0687 6.72379 26.0687 6.33327 25.6782C5.94274 25.2876 5.94274 24.6545 6.33327 24.264L11.9901 18.6071Z"},i)),(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M18 20.5C21.5898 20.5 24.5 17.5899 24.5 14C24.5 10.4101 21.5898 7.5 18 7.5C14.4101 7.5 11.5 10.4101 11.5 14C11.5 17.5899 14.4101 20.5 18 20.5ZM18 22C22.4183 22 26 18.4183 26 14C26 9.58172 22.4183 6 18 6C13.5817 6 9.99999 9.58172 9.99999 14C9.99999 18.4183 13.5817 22 18 22Z"},i))]}))})),rT=["size","color"],iT=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,rT);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,{d:"M10.89 6.72046H20.9896C21.6927 6.72046 22.2629 7.2899 22.2631 7.99292V10.8445H9.61755V7.99292C9.61776 7.29003 10.1871 6.72066 10.89 6.72046Z",stroke:i.fill,strokeWidth:"1.49333"}),(0,Al.jsx)(Vk,Object.assign({d:"M4.83057 12.2855C4.83058 11.1701 5.73474 10.2662 6.8501 10.266L25.0298 10.266C26.1453 10.2661 27.0493 11.17 27.0493 12.2855L27.0493 18.392C27.0493 19.4891 26.1735 20.3858 25.0767 20.4115L21.9409 20.4847L21.9409 17.141L9.93896 17.141L9.93896 20.3656L6.8501 20.3656C5.73473 20.3654 4.83057 19.4605 4.83057 18.3451L4.83057 12.2855ZM22.8198 13.7308C22.82 14.2019 23.2022 14.5834 23.6733 14.5834C24.1445 14.5833 24.5266 14.2019 24.5269 13.7308C24.5269 13.2596 24.1446 12.8774 23.6733 12.8773C23.2021 12.8773 22.8198 13.2596 22.8198 13.7308Z"},i)),(0,Al.jsx)(Vk,{d:"M22.2631 17.1204V24.7004C22.2629 25.4035 21.6927 25.9729 20.9896 25.9729H10.89C10.1871 25.9727 9.61776 25.4033 9.61755 24.7004V17.1204H22.2631Z",stroke:i.fill,strokeWidth:"1.49333"}),(0,Al.jsx)(Vk,{d:"M12.7336 20.158H19.1466",stroke:i.fill,strokeWidth:"1.49333",strokeLinecap:"round"}),(0,Al.jsx)(Vk,{d:"M12.7336 22.9354H19.1466",stroke:i.fill,strokeWidth:"1.49333",strokeLinecap:"round"})]}))})),oT=["size","color"],aT=u.memo((function(e){let{size:t=32,color:n="#FFF"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,oT);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M18 11.5H8a.5.5 0 00-.5.5v14a.5.5 0 00.5.5h10a.5.5 0 00.5-.5V12a.5.5 0 00-.5-.5zM8 10a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 002-2V12a2 2 0 00-2-2H8z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M14 5.5h10a.5.5 0 01.5.5v14a.5.5 0 01-.5.5h-2v1c0 .171-.017.338-.05.5H24a2 2 0 002-2V6a2 2 0 00-2-2H14a2 2 0 00-2 2v2h1.5V6a.5.5 0 01.5-.5z"},i))]}))})),sT=["size","color"],lT=u.memo((function(e){let{size:t=32,color:n="#FFF"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,sT);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M8 10C6.89543 10 6 10.8954 6 12V26C6 27.1046 6.89543 28 8 28H18C19.1046 28 20 27.1046 20 26V12C20 10.8954 19.1046 10 18 10H8ZM8.75 14C8.33579 14 8 14.3358 8 14.75C8 15.1642 8.33579 15.5 8.75 15.5H17.25C17.6642 15.5 18 15.1642 18 14.75C18 14.3358 17.6642 14 17.25 14H8.75ZM8.75 17C8.33579 17 8 17.3358 8 17.75C8 18.1642 8.33579 18.5 8.75 18.5H17.25C17.6642 18.5 18 18.1642 18 17.75C18 17.3358 17.6642 17 17.25 17H8.75ZM8 20.75C8 20.3358 8.33579 20 8.75 20H17.25C17.6642 20 18 20.3358 18 20.75C18 21.1642 17.6642 21.5 17.25 21.5H8.75C8.33579 21.5 8 21.1642 8 20.75ZM8.75 23C8.33579 23 8 23.3358 8 23.75C8 24.1642 8.33579 24.5 8.75 24.5H17.25C17.6642 24.5 18 24.1642 18 23.75C18 23.3358 17.6642 23 17.25 23H8.75Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M14 4C12.8954 4 12 4.89543 12 6V8H19.5C20.8807 8 22 9.11929 22 10.5V21.5C22 21.6712 21.9828 21.8384 21.95 22H24C25.1046 22 26 21.1046 26 20V6C26 4.89543 25.1046 4 24 4H14Z"},i))]}))})),cT=["size","color"],uT=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,cT);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M16.9946 5.00052L25.9946 5.00052C26.5469 5.00052 26.9946 5.44823 26.9946 6.00052L26.9946 15.0005C26.9946 15.5528 26.5469 16.0005 25.9946 16.0005C25.4423 16.0005 24.9946 15.5528 24.9946 15.0005L24.9946 8.41473L15.3837 18.0257C14.9932 18.4162 14.36 18.4162 13.9695 18.0257C13.5789 17.6352 13.5789 17.002 13.9695 16.6115L23.5804 7.00052L16.9946 7.00052C16.4423 7.00052 15.9946 6.5528 15.9946 6.00052C15.9946 5.44823 16.4423 5.00052 16.9946 5.00052Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M11.0017 7.00991C11.5521 6.99939 12 7.44837 12 7.99889C12 8.00762 12 8.01198 12 8.01387C11.9979 8.56174 11.5715 8.99679 11.0238 9.0098C11.0219 9.00984 11.0142 9.01 10.9988 9.0103C10.5679 9.0189 10.2019 9.03398 9.87887 9.06037C9.1688 9.11839 8.84387 9.22099 8.63803 9.32587C8.07354 9.61349 7.6146 10.0724 7.32698 10.6369C7.2221 10.8428 7.11949 11.1677 7.06148 11.8778C7.00156 12.6112 7 13.5658 7 14.9989V18.9989C7 20.432 7.00156 21.3866 7.06148 22.12C7.11949 22.8301 7.2221 23.155 7.32698 23.3609C7.6146 23.9254 8.07354 24.3843 8.63803 24.6719C8.84387 24.7768 9.1688 24.8794 9.87887 24.9374C10.6123 24.9973 11.5669 24.9989 13 24.9989H17C18.4331 24.9989 19.3877 24.9973 20.1211 24.9374C20.8312 24.8794 21.1561 24.7768 21.362 24.6719C21.9265 24.3843 22.3854 23.9254 22.673 23.3609C22.7779 23.155 22.8805 22.8301 22.9385 22.12C22.9649 21.797 22.98 21.431 22.9886 21.0001C22.9889 20.9847 22.989 20.977 22.9891 20.9751C23.0021 20.4274 23.4372 20.001 23.985 19.9989C23.9869 19.9989 23.9913 19.9989 24 19.9989C24.5505 19.9989 24.9995 20.4467 24.989 20.9972C24.9596 22.5374 24.8516 23.4906 24.455 24.2688C23.9757 25.2097 23.2108 25.9746 22.27 26.4539C21.2004 26.9989 19.8003 26.9989 17 26.9989H13C10.1997 26.9989 8.79961 26.9989 7.73005 26.4539C6.78924 25.9746 6.02433 25.2097 5.54497 24.2688C5 23.1993 5 21.7992 5 18.9989V14.9989C5 12.1986 5 10.7985 5.54497 9.72894C6.02433 8.78813 6.78924 8.02323 7.73005 7.54386C8.50827 7.14734 9.46149 7.03933 11.0017 7.00991Z"},i))]}))})),hT=(e,t)=>Object.entries(e).reduce(((e,[n,r])=>(Object.assign(e,{[`${t}${n}`]:r}),e)),{}),dT=hT({900:"#0E131B",800:"#111721",700:"#151D29",600:"#192230",500:"#1D2838",400:"#222F42",300:"#27364D",200:"#2E3F59",100:"#324562",50:"#374C6C",25:"#3D5476"},"Background/"),fT=hT({900:"#113355",800:"#133B62",700:"#16426F",600:"#184A7B",500:"#1B5288",400:"#1D5995",300:"#1F5F9E",200:"#2064A6",100:"#2369AF",50:"#2571BB",25:"#287BCC",5:"#3788D7"},"Blue/"),pT=hT({900:"#115555",800:"#136262",700:"#166F6F",600:"#187B7B",500:"#1B8888",400:"#1D9595",300:"#1F9E9E",200:"#22AFAF",100:"#24B7B7"},"Teal/"),mT=hT({900:"#1B0E21",800:"#25132E",700:"#30193B",600:"#3A1E47",500:"#442454",400:"#4F2961",300:"#552C68",200:"#5B2F6F",100:"#633479",50:"#6C3984",25:"#753D8F",5:"#7E429A"},"Purple/"),gT=hT({900:"#27313F",800:"#2B3645",700:"#2F3B4B",600:"#333F52",500:"#374458",400:"#3B495E",300:"#3F4E64",200:"#43536B",100:"#475871",50:"#4D5F7A"},"BlueGray/"),yT=hT({900:"#5A6068",800:"#666D75",700:"#727982",600:"#7F868F",500:"#8E949C",400:"#9AA0A7",300:"#A8ADB3",200:"#B6BABF",100:"#C3C7CB",50:"#D1D3D7",25:"#DEE0E2",5:"#ECEDEE"},"Gray/"),vT=hT({900:"#BA3476",800:"#C34080",700:"#CB4C8B",600:"#D45895",500:"#DC649F",400:"#E075A9",300:"#E485B4",200:"#E796BE",100:"#E99EC3"},"Charts/SID/"),bT=hT({900:"#6CA550",800:"#78B15A",700:"#82BA67",600:"#8DC273",500:"#98CA7F",400:"#A4D08D",300:"#AFD69C",200:"#BBDCAA",100:"#C1DFB1"},"Charts/STAR/"),AT=hT({900:"#EC7B2C",800:"#EE8842",700:"#F09354",600:"#F19F67",500:"#F3AC7A",400:"#F5B78D",300:"#F6C3A0",200:"#F8CEB2",100:"#F9D4BC"},"Charts/APP/"),xT=hT({900:"#7E1F16",800:"#8F2319",700:"#A0271C",600:"#B22C1F",500:"#C33022",400:"#D43425",300:"#DB4133",200:"#DE5145",100:"#E16256",50:"#E47267",25:"#E78279"},"Red/"),wT=hT({900:"#794006",800:"#8D4A07",700:"#A05408",600:"#B35E09",500:"#C7690A",400:"#D8720B",300:"#ED7D0C",200:"#F3871B",100:"#F4912F",50:"#F59C42"},"Orange/"),CT=hT({900:"#A48B0A",800:"#B79B0B",700:"#CAAB0C",600:"#DEBC0D",500:"#F1CC0E",400:"#F2D021",300:"#F3D435",200:"#F4D848",100:"#F5DC5B"},"Yellow/"),ST=hT({900:"#1AADEC",800:"#22B1EF",700:"#32B9F3",600:"#41C1F8",500:"#51C9FD",400:"#65CFFD",300:"#79D5FD",200:"#8EDCFE",100:"#98DFFE"},"Charts/RWY/");function ET(e){switch(e){case"DISCO":case"RTE":default:return mT["Purple/5"];case"SID":case"DISCO_SID":return vT["Charts/SID/500"];case"STAR":case"DISCO_STAR":return bT["Charts/STAR/500"];case"APP":case"DISCO_APP":return AT["Charts/APP/500"]}}function kT(e){switch(e){case"SID":return ET("SID");case"STAR":return ET("STAR");case"APP":return ET("APP");default:return fT["Blue/300"]}}const TT=Object.assign({},dT,fT,pT,mT,gT,yT,vT,bT,AT,{"Charts/REF":"#B17EDE"},{"Charts/TAXI":"#549DC1"},xT,{White:"#FFFFFF"},{Black:"#000000"},ST,wT,CT),IT=["children","Icon","iconStyle","isSmallScreen"];class OT extends u.Component{constructor(e){super(e),this.state={hasError:!1,copyError:!1,copySuccess:!1,isSmallScreen:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){oS.err(e,t.componentStack)}render(){return this.state.hasError?(0,Al.jsxs)(pr.A,{style:{flex:1,alignItems:"center",justifyContent:"center",paddingHorizontal:40,backgroundColor:TT["Background/400"]},children:[(0,Al.jsx)(pr.A,{style:{position:"absolute",top:40,left:40},children:(0,Al.jsx)(Qk,{})}),(0,Al.jsxs)(pr.A,{style:{maxWidth:671},children:[(0,Al.jsx)(pr.A,{style:{backgroundColor:TT["Yellow/500"],height:70},children:(0,Al.jsx)(Ko.A,{style:{color:TT["Background/600"],fontFamily:"Metropolis-Bold",fontSize:56,lineHeight:67,letterSpacing:1.12,marginTop:5.5,textAlign:"center"},children:"INOP"})}),(0,Al.jsx)(Ko.A,{style:{color:"white",fontSize:this.state.isSmallScreen?24:48,fontFamily:"Metropolis-SemiBold",lineHeight:this.state.isSmallScreen?24*1.2:48*1.2,letterSpacing:this.state.isSmallScreen?.48:.96,marginTop:16,textAlign:"center"},children:"An Unexpected Occurrence"}),(0,Al.jsx)(Ko.A,{style:{color:"white",fontSize:15,lineHeight:19.5,fontFamily:"Inter-Medium",fontWeight:"500",textAlign:"center",marginTop:16},children:"Please try to reload Navigraph Charts. If the problem still persists visit our forum for support."}),(0,Al.jsxs)(pr.A,{style:{marginTop:32},children:[this.state.copyError&&(0,Al.jsx)(pr.A,{style:{backgroundColor:TT["Background/700"],borderColor:TT["Background/500"],borderWidth:1,borderRadius:12,padding:16},children:(0,Al.jsx)(Ko.A,{style:{color:TT["Red/500"],fontSize:15,lineHeight:19.5,fontFamily:"Inter-Medium",fontWeight:"500",textAlign:"center"},children:"Failed to copy log to Clipboard."})}),(0,Al.jsxs)(pr.A,{style:{flexDirection:this.state.isSmallScreen?"column":"row",justifyContent:"center",marginTop:this.state.copyError?this.state.isSmallScreen?16:32:0},children:[("web"===Da.OS||"desktop"===Da.OS||"panel"===Da.OS)&&(0,Al.jsx)(RT,{Icon:Kk,iconStyle:{transform:[{rotateY:"180deg"}]},isSmallScreen:this.state.isSmallScreen,onPress:()=>{window.location.href=rS.origin},children:"Reload"}),"desktop"===Da.OS&&(0,Al.jsx)(RT,{disabled:this.state.copyError,isSmallScreen:this.state.isSmallScreen,onPress:async()=>{try{await window.electronAPI.copyLogToClipboard(),this.setState((e=>Object.assign({},e,{copySuccess:!0}))),setTimeout((()=>{this.setState((e=>Object.assign({},e,{copySuccess:!1})))}),5e3)}catch(e){HS.err(e),this.setState((e=>Object.assign({},e,{copyError:!0}))),setTimeout((()=>{this.setState((e=>Object.assign({},e,{copyError:!1})))}),5e3)}},Icon:this.state.copySuccess?lT:aT,children:"Copy to Clipboard"}),(0,Al.jsx)(RT,{Icon:uT,onPress:()=>ak.A.openURL("https://forum.navigraph.com/"),isSmallScreen:this.state.isSmallScreen,children:"Open Forum"})]})]})]})]}):this.props.children}}function RT(e){let{children:t,Icon:n,iconStyle:r,isSmallScreen:i}=e,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,IT);return(0,Al.jsx)(ls.A,Object.assign({style:{marginRight:i?0:16,marginTop:i?16:0}},o,{children:({hovered:e,pressed:i})=>(0,Al.jsxs)(pr.A,{style:{height:40,flexDirection:"row",justifyContent:"center",alignItems:"center",backgroundColor:o.disabled?TT["BlueGray/900"]:e?TT["BlueGray/300"]:i?TT["BlueGray/200"]:TT["BlueGray/600"],paddingLeft:24,paddingRight:24,borderRadius:8,borderWidth:1,borderColor:o.disabled?TT["BlueGray/800"]:e?TT["BlueGray/200"]:i?TT["BlueGray/100"]:TT["BlueGray/400"],shadowColor:"Black",shadowOffset:{width:0,height:4},shadowOpacity:.2,shadowRadius:6,elevation:5},children:[void 0!==n&&(0,Al.jsx)(pr.A,{style:{marginRight:2,width:24,height:24},children:(0,Al.jsx)(pr.A,{style:{position:"absolute",top:0,left:0,marginLeft:-3},children:(0,Al.jsx)(n,{size:24,color:o.disabled?TT["Gray/900"]:TT.White,style:r||void 0})})}),(0,Al.jsx)(Ko.A,{style:{color:o.disabled?TT["Gray/900"]:TT.White,fontWeight:"600",fontFamily:"Inter-SemiBold",fontSize:15,lineHeight:19.5},selectable:!1,children:t})]})}))}const MT=["allow-small-screens","scratchpads","extended-runway-centerlines-and-approach-feathers","measurement-tool"];function PT(e){return rS.featureFlags?.includes(e)??!1}function DT(e,t,n){return PT(e)?t:n}function jT(){const[e,t]=(0,u.useState)(!0);return(0,u.useEffect)((()=>{const e=setTimeout((()=>t(!1)),1e4);return()=>clearTimeout(e)}),[]),e?(0,Al.jsx)(pr.A,{testID:"FeatureFlagOverlay",style:{position:"absolute",bottom:0,right:0,top:0,left:0,backgroundColor:"rgba(0,0,0,0.5)"},children:(0,Al.jsx)(ls.A,{testID:"FeatureFlagOverlayButton",style:{width:"100%",height:"100%",justifyContent:"center",alignItems:"center"},onPress:()=>t(!1),children:(0,Al.jsxs)(pr.A,{style:{padding:20},children:[(0,Al.jsx)(Ko.A,{style:{color:"white",fontSize:16,fontWeight:"bold"},children:"Feature Flags"}),0===MT.length&&(0,Al.jsx)(Ko.A,{style:{color:"white",fontSize:14,fontStyle:"italic"},children:"No feature flags defined"}),MT.map((e=>(0,Al.jsxs)(Ko.A,{style:{color:"white",fontSize:14},children:["-"," ",(0,Al.jsx)(Ko.A,{style:{color:rS.featureFlags?.includes(e)?"lime":"#ff7f7f",fontWeight:"bold",textShadowColor:"black",textShadowRadius:2},children:rS.featureFlags?.includes(e)?"ENABLED":"DISABLED"})," ",e]},e)))]})})}):null}function BT(){return BT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const o=uu(),a=u.useMemo((()=>null==n?LT:Array.isArray(n)?n.reduce(((e,t)=>(e[t]="additive",e)),{}):n),[n]),s=u.useMemo((()=>{const n=fr.A.flatten(e);if("margin"===t){const{margin:t=0,marginVertical:r=t,marginHorizontal:i=t,marginTop:s=r,marginRight:l=i,marginBottom:c=r,marginLeft:u=i}=n,h={marginTop:FT(o.top,s,a.top),marginRight:FT(o.right,l,a.right),marginBottom:FT(o.bottom,c,a.bottom),marginLeft:FT(o.left,u,a.left)};return[e,h]}{const{padding:t=0,paddingVertical:r=t,paddingHorizontal:i=t,paddingTop:s=r,paddingRight:l=i,paddingBottom:c=r,paddingLeft:u=i}=n,h={paddingTop:FT(o.top,s,a.top),paddingRight:FT(o.right,l,a.right),paddingBottom:FT(o.bottom,c,a.bottom),paddingLeft:FT(o.left,u,a.left)};return[e,h]}}),[a.bottom,a.left,a.right,a.top,o.bottom,o.left,o.right,o.top,t,e]);return u.createElement(pr.A,BT({style:s},r,{ref:i}))}));function _T(e,t,n,r,i){const o=t&&"string"==typeof t?t.split("."):[t];for(r=0;r{if("number"!=typeof t||t>=0){if("string"==typeof t&&t.startsWith("-")){const n=t.substring(1),r=_T(e,n,n);return-1*Number(r)}return _T(e,t,t)}const n=Math.abs(t),r=_T(e,n,n);return"string"==typeof r?"-"+r:-1*Number(r)},GT=(["margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","top","bottom","left","right"].reduce(((e,t)=>Object.assign({},e,{[t]:qT})),{}),(e={},t)=>(n={})=>{let{themeKey:r,fontFamily:i}=n,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(n,UT),a=HT;a="theme"in o?Object.assign({},a,o.theme):Object.assign({},a,o);let s={};const l=((e,{breakpoint:t}={})=>n=>{const r={};for(const i in e){const o="function"==typeof e[i]?e[i](n):e[i];if(null==o)continue;if(!Array.isArray(o)){r[i]=o;continue}if("transform"===i||"fontVariant"===i){r[i]=o;continue}const a=e=>e<=0||"number"!=typeof e?0:null==o[e]?a(e-1):e,s=a(t);r[i]=o[s]}return r})(((e={})=>e)("function"==typeof e?e(a):e),{breakpoint:t})(a);for(const e in l){const n=l[e],o="function"==typeof n?n(a):n;if("variant"==e){const e=GT(_T(a,r+"."+o,_T(a,o)),t)({theme:a});Object.assign(s,e);continue}if("transform"==e){s[e]=o;continue}if("textShadow"==e&&o&&a.textShadows?.[o]){const e=GT(a.textShadows[o],t)(a);Object.assign(s,e);continue}if("boxShadow"==e&&o&&a.shadows?.[o]){const e=GT(a.shadows[o],t)(a);Object.assign(s,e);continue}if(""===o){console.error(`[dripsy] Invalid style. You passed an empty string ('') for ${e}. Please fix this.`);continue}if(o&&"object"==typeof o){s[e]=GT(o,t)(a);continue}if("boolean"==typeof o)continue;let c=zT;a.aliases&&(c=Object.assign({},c,a.aliases));const u=e in c?c[e]:e,h=_T(a,u in VT?VT[u]:void 0,_T(a,u,{})),d=_T(h,o,o);if("fontFamily"===e){if(s?.fontFamily)continue;if("root"===d&&!a?.fonts?.root)continue}if("fontWeight"==e&&l?.fontWeight){const e=l?.fontFamily??i,t=a?.fonts?.root;if(e||t){const n=d;let r;if(e?r=a?.fonts?.[e]??e:t&&(r=t),r){if("string"!=typeof r){console.error("[dripsy] error. Passed font family name that was not a string. This value should either be a string which corresponds to a key of your theme.fonts, or, it should be a string that corresponds to a raw font name. Your font will not be applied, please resolve this.");continue}const e=a?.customFonts?.[r]?.[n];if(e){s.fontFamily=e;continue}}}}"size"==e?(s.width=d,s.height=d):s[u]=d}return s}),YT=new WeakMap;let WT=0;function QT(e){const t=typeof e,n=e&&e.constructor,r=n==Date;let i,o;if(Object(e)!==e||r||n==RegExp)i=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(i=YT.get(e),i)return i;if(i=++WT+"~",YT.set(e,i),n==Array){for(i="@",o=0;ofunction(e,t){const{themeKey:n,defaultStyle:r,defaultVariant:i,defaultVariants:o=[]}=t,{breakpoint:a,sx:s,theme:l,variant:c,style:u,variants:h}=e;let d=[...o,i];h?.length&&(d=[...d,...h]),c&&(d=[...d,c]),d=d.filter(Boolean);const f=_T(l,n+"."+c,_T(l,c||i));let{fontFamily:p}=f||{};p=p||r?.fontFamily;const m=GT(r,a)({theme:l,fontFamily:p,themeKey:n}),g=d.map((e=>GT(_T(l,n+"."+e,_T(l,e)),a)({theme:l,fontFamily:p,themeKey:n}))).reduce(((e={},t={})=>Object.assign({},e,t)),{}),y=GT(s,a)({theme:l,fontFamily:p,themeKey:n}),v=e=>fr.A.create({style:e}).style,b=v(Object.assign({},m,g)),A=v(y);let x=[b,...Array.isArray(u)?u:[u],A];return"function"==typeof u&&(x=e=>[b,u(e),A]),{styles:x}}({theme:p,breakpoint:g,variant:s,sx:m,style:l,variants:h},Object.assign({},r,{themeKey:c??r.themeKey,defaultStyle:f})),b=[p,g,s,m,l,h,c,f],(0,u.useMemo)(v,[QT(b)]));var v,b;const A=a||e;return(0,Al.jsx)(A,Object.assign({},d,{ref:i,style:y,variant:s||r.defaultVariant}))}));return i.displayName=`Dripsy.${e?.displayName??"NoNameComponent"}`,i}function $T(e,{themeKey:t,defaultVariant:n}={}){return function(r){return KT(e,{defaultVariant:n,themeKey:t,defaultStyle:r})}}const eI=$T(pr.A)(),tI=$T(ls.A)((({showCursor:e})=>Object.assign({},{cursor:e?"pointer":"default"}))),nI=u.forwardRef((function(e,t){return(0,Al.jsx)(tI,Object.assign({showCursor:!(!e.onPress&&"link"!==e.accessibilityRole&&e.disabled)},e,{ref:t,children:e.children}))})),rI={fontFamily:"root"},iI=$T(Ko.A,{themeKey:"text",defaultVariant:"body"})(rI);var oI=__webpack_require__(77596),aI=__webpack_require__.n(oI);function sI(){return(0,Al.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"420",height:"398",viewBox:"0 0 420 398",fill:"none",children:[(0,Al.jsxs)("g",{filter:"url(#filter0_dii_9162_53508)",children:[(0,Al.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M309.199 265.601C317.769 268.706 322.054 270.258 325.477 269.464C328.472 268.769 331.081 266.939 332.754 264.36C334.666 261.412 334.666 256.855 334.666 247.74V81.0809C334.666 76.4975 334.666 74.2058 333.934 72.2177C333.286 70.4607 332.232 68.8819 330.857 67.6102C329.302 66.171 327.185 65.2925 322.952 63.5354L287.612 48.8669C278.824 45.2191 274.43 43.3952 270.896 44.0963C267.806 44.7093 265.086 46.5251 263.335 49.1439C261.333 52.1393 261.333 56.897 261.333 66.4124V234.939C261.333 239.738 261.333 242.138 262.123 244.195C262.822 246.012 263.956 247.629 265.426 248.904C267.09 250.348 269.347 251.165 273.86 252.8L309.199 265.601Z",fill:"url(#paint0_linear_9162_53508)"}),(0,Al.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M185.67 60.7882C181.222 62.453 178.998 63.2854 177.359 64.7286C175.911 66.0035 174.796 67.612 174.109 69.4149C173.332 71.4558 173.332 73.8305 173.332 78.5798V247.24C173.332 256.502 173.332 261.132 175.278 264.098C176.98 266.693 179.63 268.518 182.661 269.182C186.126 269.943 190.452 268.291 199.105 264.988L234.445 251.496C238.853 249.814 241.057 248.972 242.68 247.53C244.114 246.255 245.218 244.652 245.897 242.858C246.666 240.826 246.666 238.467 246.666 233.749V65.353C246.666 56.1481 246.666 51.5457 244.733 48.5866C243.042 45.998 240.408 44.1712 237.39 43.4948C233.941 42.7216 229.631 44.3348 221.01 47.5614L185.67 60.7882Z",fill:"url(#paint1_linear_9162_53508)"}),(0,Al.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M110.679 46.9496C102.143 43.9217 97.8745 42.4078 94.4678 43.215C91.4866 43.9213 88.8939 45.7527 87.2316 48.3262C85.332 51.2671 85.332 55.796 85.332 64.8537V233.096C85.332 237.771 85.332 240.108 86.0892 242.125C86.7581 243.908 87.8459 245.503 89.2607 246.777C90.862 248.219 93.0377 249.072 97.3892 250.78L132.729 264.648C141.426 268.061 145.774 269.768 149.261 269.026C152.311 268.378 154.984 266.556 156.702 263.954C158.666 260.978 158.666 256.307 158.666 246.964V77.3886C158.666 72.5569 158.666 70.141 157.867 68.0745C157.161 66.2492 156.015 64.6267 154.53 63.3513C152.85 61.9074 150.573 61.0998 146.019 59.4846L110.679 46.9496Z",fill:"url(#paint2_linear_9162_53508)"})]}),(0,Al.jsxs)("defs",{children:[(0,Al.jsxs)("filter",{id:"filter0_dii_9162_53508",x:"-0.00130463",y:"0.333332",width:"420.001",height:"397.336",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,Al.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,Al.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,Al.jsx)("feOffset",{dy:"42.6667"}),(0,Al.jsx)("feGaussianBlur",{stdDeviation:"42.6667"}),(0,Al.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0"}),(0,Al.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_9162_53508"}),(0,Al.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_9162_53508",result:"shape"}),(0,Al.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,Al.jsx)("feOffset",{dy:"10.6667"}),(0,Al.jsx)("feGaussianBlur",{stdDeviation:"3.33333"}),(0,Al.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,Al.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0"}),(0,Al.jsx)("feBlend",{mode:"normal",in2:"shape",result:"effect2_innerShadow_9162_53508"}),(0,Al.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,Al.jsx)("feOffset",{dy:"-8"}),(0,Al.jsx)("feGaussianBlur",{stdDeviation:"3.33333"}),(0,Al.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,Al.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0"}),(0,Al.jsx)("feBlend",{mode:"normal",in2:"effect2_innerShadow_9162_53508",result:"effect3_innerShadow_9162_53508"})]}),(0,Al.jsxs)("linearGradient",{id:"paint0_linear_9162_53508",x1:"209.999",y1:"43",x2:"209.999",y2:"269.669",gradientUnits:"userSpaceOnUse",children:[(0,Al.jsx)("stop",{stopColor:"#2B81D6"}),(0,Al.jsx)("stop",{offset:"1",stopColor:"#1E6BB7"})]}),(0,Al.jsxs)("linearGradient",{id:"paint1_linear_9162_53508",x1:"209.999",y1:"43",x2:"209.999",y2:"269.669",gradientUnits:"userSpaceOnUse",children:[(0,Al.jsx)("stop",{stopColor:"#2B81D6"}),(0,Al.jsx)("stop",{offset:"1",stopColor:"#1E6BB7"})]}),(0,Al.jsxs)("linearGradient",{id:"paint2_linear_9162_53508",x1:"209.999",y1:"43",x2:"209.999",y2:"269.669",gradientUnits:"userSpaceOnUse",children:[(0,Al.jsx)("stop",{stopColor:"#2B81D6"}),(0,Al.jsx)("stop",{offset:"1",stopColor:"#1E6BB7"})]})]})]})}const lI=["size","backgroundColor","borderColor","children","sx","Icon","textSx","buttonSx","textVariant"],cI=(0,u.forwardRef)((function(e,t){return(0,Al.jsx)(fI,Object.assign({ref:t,backgroundColor:"Blue/400",borderColor:"Blue/200"},e))})),uI=(0,u.forwardRef)((function(e,t){return(0,Al.jsx)(fI,Object.assign({ref:t,backgroundColor:"BlueGray/600",borderColor:"BlueGray/400"},e))})),hI=(0,u.forwardRef)((function(e,t){return(0,Al.jsx)(fI,Object.assign({ref:t,backgroundColor:"Red/500",borderColor:"Red/300"},e))})),dI=(0,u.forwardRef)((function(e,t){return(0,Al.jsx)(fI,Object.assign({ref:t,backgroundColor:"Orange/500",borderColor:"Orange/300"},e))})),fI=(0,u.forwardRef)((function(e,t){let{size:n="large",backgroundColor:r,borderColor:i,children:o,sx:a,Icon:s,textSx:l,buttonSx:c,textVariant:u}=e,h=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,lI);const d={micro:16,small:24,medium:32,large:40}[n],f={micro:8,small:16,medium:20,large:24}[n],p=u||{micro:"xs",small:"s",medium:"m",large:"l"}[n],m={micro:"xs",small:"xs",medium:"s",large:"m"}[n],g={micro:6,small:4,medium:6,large:8}[n],y={micro:"sm",small:"sm",medium:"md",large:"md"}[n];return(0,Al.jsx)(nI,Object.assign({ref:t,sx:Object.assign({width:"full",flexShrink:1},a)},h,{children:({hovered:e,pressed:t})=>(0,Al.jsxs)(eI,{sx:Object.assign({height:d,borderWidth:1,borderRadius:g,justifyContent:"center",boxShadow:y,px:m,backgroundColor:r,borderColor:i,shadowOpacity:t||h.disabled?0:.2},c),children:[(0,Al.jsxs)(eI,{sx:{flexDirection:"row",alignItems:"center",justifyContent:"center"},children:[s&&(0,Al.jsx)(eI,{sx:{transform:[{translateX:-2.5}]},children:(0,Al.jsx)(s,{size:f})}),(0,Al.jsx)(iI,{variant:p,sx:Object.assign({fontWeight:"600",textAlign:"center"},l),selectable:!1,numberOfLines:1,ellipsizeMode:"tail",children:o})]}),(0,Al.jsx)(eI,{sx:{position:"absolute",left:-1,top:-1,right:-1,bottom:-1,borderRadius:g,backgroundColor:h.disabled?"rgba(0, 0, 0, 0.32)":e&&!t?"rgba(255, 255, 255, 0.08)":"transparent"}})]})}))}));function pI(){const{theme:e}=vf(),t=Af(),n=(0,u.useRef)(new Map);return(r,{themeKey:i}={})=>{const o=GT(r,t)({theme:e,themeKey:i}),a=QT(o);return n.current.has(a)||n.current.set(a,o),n.current.get(a)}}const mI={code:"function useResolveColorTs1(color){const{theme}=this.__closure;if(color in theme.colors){return theme.colors[color];}return color;}"};function gI(){const{theme:e}=vf();return(0,u.useCallback)(function(){const t=function(t){return t in e.colors?e.colors[t]:t};return t.__closure={theme:e},t.__workletHash=6729379622874,t.__initData=mI,t}(),[e])}const yI=["activated"],vI=["activated","editable","editing"],bI=["size","variant","children","disabled","badge","comboVariant","backgroundColor","borderColor","innerBorderColor","iconColor","Icon","showMoreCorner","showMoreCornerPosition"];function AI(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}const xI=u.forwardRef((function(e,t){return(0,Al.jsx)(EI,Object.assign({ref:t,backgroundColor:"BlueGray/600",borderColor:"BlueGray/400",iconColor:"White"},e))})),wI=u.forwardRef((function(e,t){let{activated:n}=e,r=AI(e,yI);return(0,Al.jsx)(EI,Object.assign({ref:t,backgroundColor:n?"Blue/400":"BlueGray/600",borderColor:n?"Blue/200":"BlueGray/400",iconColor:"White"},r))})),CI=u.forwardRef((function(e,t){let n=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return(0,Al.jsx)(EI,Object.assign({ref:t,backgroundColor:"Red/500",borderColor:"Red/300",iconColor:"White"},n))})),SI=u.forwardRef((function(e,t){let{activated:n,editable:r,editing:i}=e,o=AI(e,vI);const{backgroundColor:a,borderColor:s,innerBorderColor:l,iconColor:c}=function({activated:e,editable:t,editing:n}){return e&&n?{backgroundColor:"Orange/500",innerBorderColor:"Orange/300",borderColor:"Blue/200",iconColor:"White"}:n?{backgroundColor:"Orange/500",borderColor:"Orange/300",iconColor:"White"}:e&&t?{backgroundColor:"BlueGray/600",innerBorderColor:"BlueGray/400",borderColor:"Blue/200",iconColor:"Orange/300"}:e?{backgroundColor:"Blue/400",borderColor:"Blue/200",iconColor:"White"}:t?{backgroundColor:"BlueGray/600",borderColor:"BlueGray/400",iconColor:"Orange/300"}:{backgroundColor:"BlueGray/600",borderColor:"BlueGray/400",iconColor:"White"}}({activated:n,editable:r,editing:i});return(0,Al.jsx)(EI,Object.assign({ref:t,backgroundColor:a,borderColor:s,innerBorderColor:l,iconColor:c},o))})),EI=(0,u.forwardRef)((function(e,t){let{size:n=32,variant:r,children:i,disabled:o,badge:a,comboVariant:s,backgroundColor:l,borderColor:c,innerBorderColor:h,iconColor:d,Icon:f,showMoreCorner:p,showMoreCornerPosition:m="bottom-right"}=e,g=AI(e,bI);const y=pI(),v=gI(),b=Boolean(h),A=(0,u.useMemo)((()=>n),[n]),x=(0,u.useMemo)((()=>"thin"===r?24:n),[n,r]),w=(0,u.useMemo)((()=>A/2-10),[A]),C=(0,u.useMemo)((()=>(A-4)/2-10),[A]),S=(0,u.useMemo)((()=>v(d)),[d,v]),E=(0,u.useMemo)((()=>{switch(m){case"bottom-right":return{bottom:3,right:3};case"bottom-left":return{bottom:3,left:3,transform:[{rotateZ:"90deg"}]};case"top-left":return{top:3,left:3,transform:[{rotateZ:"-180deg"}]};case"top-right":return{top:3,right:3,transform:[{rotateZ:"-90deg"}]}}}),[m]);return(0,Al.jsxs)(Al.Fragment,{children:[("center"===s||"end"===s)&&(0,Al.jsx)(eI,{style:[y({width:1,backgroundColor:"rgba(0, 0, 0, 0.45)"}),{height:x}]}),"end-vertical"===s&&(0,Al.jsx)(eI,{sx:{height:1,backgroundColor:"rgba(0, 0, 0, 0.45)",width:A}}),(0,Al.jsx)(nI,Object.assign({ref:t},g,{disabled:o,children:({hovered:e,pressed:t})=>(0,Al.jsxs)(eI,{style:[y(Object.assign({justifyContent:"center",alignItems:"center",borderWidth:1,boxShadow:t||o?void 0:"sm"},"start"===s?{borderTopRightRadius:0,borderBottomRightRadius:0}:{},"end"===s?{borderTopLeftRadius:0,borderBottomLeftRadius:0,borderLeftWidth:0}:{},"center"===s?{borderTopRightRadius:0,borderTopLeftRadius:0,borderBottomRightRadius:0,borderBottomLeftRadius:0,borderLeftWidth:0}:{},"start-vertical"===s?{borderBottomLeftRadius:0,borderBottomRightRadius:0}:{},"end-vertical"===s?{borderTopLeftRadius:0,borderTopRightRadius:0,borderTopWidth:0}:{})),{width:A,height:x,backgroundColor:b?"transparent":v(l),borderColor:v(c),borderRadius:w}],children:[(0,Al.jsx)(eI,{style:[{position:"absolute",borderWidth:1},{width:A-4,height:x-4,backgroundColor:b?v(l):"transparent",borderColor:h?v(h):"transparent",borderRadius:C}]}),(0,Al.jsxs)(eI,{children:[f?(0,Al.jsx)(f,{color:S}):"function"==typeof i?i({hovered:e??!1,pressed:t}):u.Children.map(i,(e=>e?(0,u.cloneElement)(e,{color:o?"rgba(255, 255, 255, 0.12)":v(d)}):e)),p&&(0,Al.jsx)(eI,{sx:Object.assign({position:"absolute"},E),children:(0,Al.jsx)(Wk,{width:"5",height:"5",viewBox:"0 0 5 5",fill:"none",children:(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.95617 4.22195C4.95618 4.35061 4.8518 4.5382 4.69045 4.69955C4.52909 4.86091 4.34151 4.96528 4.21284 4.96528C3.26518 4.96532 1.60717 4.96538 0.417846 4.96542C0.276601 4.96542 0.237291 4.83998 0.320714 4.6557C0.404175 4.47141 0.591055 4.27095 0.782219 4.1607C2.21098 3.33908 3.33087 2.20855 4.15122 0.77852C4.26129 0.587281 4.46182 0.400145 4.64622 0.316525C4.83066 0.232889 4.95624 0.272165 4.95624 0.413472C4.95629 1.60369 4.95623 3.27068 4.95617 4.22195Z",fill:"white"})})})]}),(0,Al.jsx)(eI,{style:[{position:"absolute",top:b?1:s&&["end-vertical"].includes(s)?0:-1,left:b?1:s&&["center","end"].includes(s)?0:-1},Object.assign({width:b?A-4:A,height:b?x-4:x,backgroundColor:o?"rgba(0, 0, 0, 0.32)":e&&!t?"rgba(255, 255, 255, 0.08)":"transparent",borderRadius:b?C:w},"start"===s?{borderTopRightRadius:0,borderBottomRightRadius:0}:{},"end"===s?{borderTopLeftRadius:0,borderBottomLeftRadius:0}:{},"center"===s?{borderTopRightRadius:0,borderTopLeftRadius:0,borderBottomRightRadius:0,borderBottomLeftRadius:0}:{},"start-vertical"===s?{borderBottomLeftRadius:0,borderBottomRightRadius:0}:{},"end-vertical"===s?{borderTopLeftRadius:0,borderTopRightRadius:0}:{})]})]})})),a&&a>0?(0,Al.jsx)(eI,{sx:{position:"absolute",top:-8,right:-8,backgroundColor:"Charts/RWY/900",borderColor:"Charts/RWY/600",boxShadow:"0px 0px 2px rgba(81, 201, 253, 0.8)",borderWidth:1,width:16,height:16,justifyContent:"center",borderRadius:10,zIndex:2},children:(0,Al.jsx)(iI,{variant:"s",sx:{fontWeight:"600",textAlign:"center"},children:a})}):null]})})),kI=["size","color"],TI=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,kI);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,viewBox:"0 0 32 32",fill:"none",stroke:"none"},r,{children:[(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M24.1429 24.677C24.7678 24.9235 25.0802 25.0467 25.3299 24.9837C25.5483 24.9285 25.7385 24.7832 25.8605 24.5784C26 24.3443 26 23.9824 26 23.2586V10.024C26 9.66006 26 9.47808 25.9466 9.3202C25.8993 9.18068 25.8225 9.05531 25.7222 8.95431C25.6088 8.84003 25.4545 8.77027 25.1458 8.63073L22.5687 7.46589C21.9279 7.17622 21.6075 7.03138 21.3497 7.08706C21.1244 7.13573 20.9261 7.27993 20.7984 7.48789C20.6524 7.72576 20.6524 8.10357 20.6524 8.8592V22.242C20.6524 22.6232 20.6524 22.8137 20.7101 22.9771C20.761 23.1213 20.8437 23.2497 20.9509 23.351C21.0723 23.4657 21.2368 23.5306 21.5659 23.6604L24.1429 24.677Z"},i)),(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M14.2259 8.41258C13.9015 8.54478 13.7394 8.61088 13.6199 8.72549C13.5143 8.82673 13.4329 8.95446 13.3829 9.09763C13.3262 9.2597 13.3262 9.44828 13.3262 9.82543V23.2189C13.3262 23.9544 13.3262 24.3221 13.4681 24.5576C13.5922 24.7636 13.7855 24.9085 14.0065 24.9613C14.2591 25.0217 14.5746 24.8906 15.2056 24.6282L17.7826 23.5569C18.104 23.4233 18.2647 23.3564 18.3831 23.2419C18.4877 23.1407 18.5682 23.0134 18.6177 22.8709C18.6738 22.7096 18.6738 22.5222 18.6738 22.1475V8.77507C18.6738 8.04411 18.6738 7.67862 18.5328 7.44364C18.4095 7.23807 18.2174 7.09301 17.9974 7.03929C17.7459 6.97789 17.4316 7.106 16.8029 7.36222L14.2259 8.41258Z"},i)),(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M7.84837 7.31364C7.22587 7.0732 6.91462 6.95297 6.66619 7.01707C6.4488 7.07316 6.25973 7.21859 6.13852 7.42296C6 7.6565 6 8.01614 6 8.73542V22.0957C6 22.4669 6 22.6525 6.05521 22.8127C6.10399 22.9542 6.18331 23.0809 6.28648 23.1821C6.40325 23.2966 6.56191 23.3644 6.87923 23.5L9.45626 24.6013C10.0904 24.8723 10.4075 25.0078 10.6618 24.9489C10.8842 24.8975 11.0791 24.7528 11.2044 24.5461C11.3476 24.3098 11.3476 23.9389 11.3476 23.197V9.73083C11.3476 9.34714 11.3476 9.15529 11.2893 8.99118C11.2379 8.84624 11.1543 8.7174 11.046 8.61612C10.9235 8.50145 10.7575 8.43732 10.4254 8.30905L7.84837 7.31364Z"},i))]}))}));function II({onPress:e,target:t}){const{theme:n}=vf(),r=n.colors.White;return(0,Al.jsx)(xI,{onPress:e,title:`Show ${t} ${"airport"===t?"charts":"chart"}`,children:(0,Al.jsx)(TI,{color:r})})}u.forwardRef((function({size:e=24,children:t,onPress:n,disabled:r},i){const o=(e,t)=>r?["BlueGray/900","BlueGray/800"]:t?["Blue/200","Blue/100"]:e?["Blue/300","Blue/200"]:["Blue/400","Blue/300"];return(0,Al.jsx)(nI,{ref:i,onPress:n,disabled:r,children:({hovered:n,pressed:i})=>(0,Al.jsx)(eI,{sx:{width:e,height:e,justifyContent:"center",alignItems:"center",backgroundColor:o(n,i)[0],borderColor:o(n,i)[1],borderRadius:23,borderWidth:1,boxShadow:r?"none":"sm"},children:t})})}));const OI=["size","color"],RI=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,OI);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Vk,Object.assign({d:"M21.2892 9.34211C21.5808 9.05088 22.0534 9.0508 22.3449 9.34211C22.6361 9.63373 22.6364 10.1073 22.3449 10.3987L16.8996 15.8441L22.3449 21.2894C22.636 21.5809 22.6362 22.0536 22.3449 22.345C22.0534 22.6363 21.5798 22.6364 21.2883 22.345L15.843 16.8997L10.3986 22.345C10.1071 22.6365 9.63359 22.6362 9.34198 22.345C9.0507 22.0535 9.05081 21.5809 9.34198 21.2894L14.7873 15.8441L9.34198 10.3987C9.05047 10.1072 9.05064 9.63372 9.34198 9.34211C9.63349 9.0508 10.1061 9.05088 10.3976 9.34211L15.843 14.7874L21.2892 9.34211Z"},i))}))}));function MI({onPress:e,size:t=24}){const n=pI();return(0,Al.jsx)(nI,{onPress:e,children:({hovered:e,pressed:r})=>(0,Al.jsxs)(eI,{style:[n({backgroundColor:"BlueGray/600",borderWidth:1,borderColor:"BlueGray/400",width:t,height:t,borderRadius:t/2,alignItems:"center",justifyContent:"center",boxShadow:r?void 0:"sm"})],children:[(0,Al.jsx)(RI,{size:t}),(0,Al.jsx)(eI,{style:[{position:"absolute",left:-1,top:-1,bottom:-1,right:-1,borderRadius:t/2},{backgroundColor:e&&!r?"rgba(255, 255, 255, 0.08)":"transparent"}]})]})})}const PI=["size","color"],DI=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,PI);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M16 26C21.5228 26 26 21.5228 26 16C26 10.4772 21.5228 6 16 6C10.4772 6 6 10.4772 6 16C6 21.5228 10.4772 26 16 26ZM16 28C22.6274 28 28 22.6274 28 16C28 9.37258 22.6274 4 16 4C9.37258 4 4 9.37258 4 16C4 22.6274 9.37258 28 16 28Z"},i)),(0,Al.jsx)(Hk,Object.assign({x:"15",y:"14",width:"2",height:"8",rx:"1"},i)),(0,Al.jsx)(Hk,Object.assign({x:"15",y:"10",width:"2",height:"2",rx:"1"},i))]}))}));function jI({onPress:e,target:t}){const{theme:n}=vf();return(0,Al.jsx)(xI,{onPress:e,title:`Show ${t} information`,children:(0,Al.jsx)(DI,{size:32,color:n.colors.White})})}const{height:BI,width:LI}=Zc.A.get("window"),{height:FI,width:NI}=Zc.A.get("screen");var _I,zI,VI,UI=function(e){return e[e.UNDETERMINED=0]="UNDETERMINED",e[e.SCROLLABLE=1]="SCROLLABLE",e[e.HANDLE=2]="HANDLE",e[e.CONTENT=3]="CONTENT",e}(UI||{}),HI=((VI=HI||{})[VI.CLOSED=0]="CLOSED",VI[VI.OPENED=1]="OPENED",VI[VI.EXTENDED=2]="EXTENDED",VI[VI.OVER_EXTENDED=3]="OVER_EXTENDED",VI[VI.FILL_PARENT=4]="FILL_PARENT",VI),qI=((zI=qI||{})[zI.LOCKED=0]="LOCKED",zI[zI.UNLOCKED=1]="UNLOCKED",zI[zI.UNDETERMINED=2]="UNDETERMINED",zI),GI=function(e){return e[e.UNDETERMINED=0]="UNDETERMINED",e[e.VIEW=1]="VIEW",e[e.FLATLIST=2]="FLATLIST",e[e.SCROLLVIEW=3]="SCROLLVIEW",e[e.SECTIONLIST=4]="SECTIONLIST",e[e.VIRTUALIZEDLIST=5]="VIRTUALIZEDLIST",e}(GI||{}),YI=((_I=YI||{})[_I.UNDETERMINED=0]="UNDETERMINED",_I[_I.RUNNING=1]="RUNNING",_I[_I.STOPPED=2]="STOPPED",_I[_I.INTERRUPTED=3]="INTERRUPTED",_I),WI=function(e){return e[e.NONE=0]="NONE",e[e.MOUNT=1]="MOUNT",e[e.GESTURE=2]="GESTURE",e[e.USER=3]="USER",e[e.CONTAINER_RESIZE=4]="CONTAINER_RESIZE",e[e.SNAP_POINT_CHANGE=5]="SNAP_POINT_CHANGE",e[e.KEYBOARD=6]="KEYBOARD",e}(WI||{}),QI=function(e){return e[e.TIMING=0]="TIMING",e[e.SPRING=1]="SPRING",e}(QI||{}),XI=function(e){return e[e.UNDETERMINED=0]="UNDETERMINED",e[e.SHOWN=1]="SHOWN",e[e.HIDDEN=2]="HIDDEN",e}(XI||{}),JI=function(e){return e[e.PROVIDED=0]="PROVIDED",e[e.DYNAMIC=1]="DYNAMIC",e}(JI||{});const ZI={duration:250,easing:mf.Easing.out(mf.Easing.exp)},KI={[qI.UNDETERMINED]:0,[qI.LOCKED]:0,[qI.UNLOCKED]:1},$I={interactive:"interactive",extend:"extend",fillParent:"fillParent"},eO={none:"none",restore:"restore"},tO={adjustPan:"adjustPan",adjustResize:"adjustResize"},nO=(0,u.createContext)(null),rO=nO.Provider,iO=(0,u.createContext)(null),oO=iO.Provider,aO=(0,u.createContext)(null),sO=(0,u.createContext)(null),lO=(0,u.createContext)(null).Provider,cO=(0,u.createContext)(null),uO=cO.Provider,hO=()=>(0,u.useContext)(nO);function dO(e){const t=(0,u.useContext)(iO);if(!0!==e&&null===t)throw"'useBottomSheetInternal' cannot be used out of the BottomSheet!";return t}function fO(e){const t=(0,u.useContext)(cO);if(!0!==e&&null===t)throw"'BottomSheetModalInternalContext' cannot be null!";return t}const pO={code:"function gorhom_useGestureHandlerJs1(event){const{state,State,gestureSource,source,onStart}=this.__closure;state.value=State.BEGAN;gestureSource.value=source;onStart(source,event);return;}"},mO={code:"function gorhom_useGestureHandlerJs2(event){const{gestureSource,source,state,onChange}=this.__closure;if(gestureSource.value!==source){return;}state.value=event.state;onChange(source,event);}"},gO={code:"function gorhom_useGestureHandlerJs3(event){const{gestureSource,source,state,GESTURE_SOURCE,onEnd}=this.__closure;if(gestureSource.value!==source){return;}state.value=event.state;gestureSource.value=GESTURE_SOURCE.UNDETERMINED;onEnd(source,event);}"},yO={code:"function gorhom_useGestureHandlerJs4(event){const{gestureSource,source,state,GESTURE_SOURCE,onFinalize}=this.__closure;if(gestureSource.value!==source){return;}state.value=event.state;gestureSource.value=GESTURE_SOURCE.UNDETERMINED;onFinalize(source,event);}"},vO=(e,t,n,r,i,o,a)=>({handleOnStart:(0,mf.useWorkletCallback)(function(){const i=function(i){t.value=l.BEGAN,n.value=e,r(e,i)};return i.__closure={state:t,State:l,gestureSource:n,source:e,onStart:r},i.__workletHash=0xaabe9cc33be,i.__initData=pO,i}(),[t,n,e,r]),handleOnChange:(0,mf.useWorkletCallback)(function(){const r=function(r){n.value===e&&(t.value=r.state,i(e,r))};return r.__closure={gestureSource:n,source:e,state:t,onChange:i},r.__workletHash=1847669127082,r.__initData=mO,r}(),[t,n,e,i]),handleOnEnd:(0,mf.useWorkletCallback)(function(){const r=function(r){n.value===e&&(t.value=r.state,n.value=UI.UNDETERMINED,o(e,r))};return r.__closure={gestureSource:n,source:e,state:t,GESTURE_SOURCE:UI,onEnd:o},r.__workletHash=0xa5ea1b9c7e2,r.__initData=gO,r}(),[t,n,e,o]),handleOnFinalize:(0,mf.useWorkletCallback)(function(){const r=function(r){n.value===e&&(t.value=r.state,n.value=UI.UNDETERMINED,a(e,r))};return r.__closure={gestureSource:n,source:e,state:t,GESTURE_SOURCE:UI,onFinalize:a},r.__workletHash=0xca803ad4b65,r.__initData=yO,r}(),[t,n,e,a])}),bO={code:"function gorhom_clampJs1(value,lowerBound,upperBound){return Math.min(Math.max(lowerBound,value),upperBound);}"},AO=function(){const e=function(e,t,n){return Math.min(Math.max(t,e),n)};return e.__closure={},e.__workletHash=0xd0dad694159,e.__initData=bO,e}(),xO={code:"function gorhom_snapPointJs1(value,velocity,points){const point=value+0.2*velocity;const deltas=points.map(function(p){return Math.abs(point-p);});const minDelta=Math.min.apply(null,deltas);return points.filter(function(p){return Math.abs(point-p)===minDelta;})[0];}"},wO=function(){const e=function(e,t,n){const r=e+.2*t,i=n.map((e=>Math.abs(r-e))),o=Math.min.apply(null,i);return n.filter((e=>Math.abs(r-e)===o))[0]};return e.__closure={},e.__workletHash=0xcc0b83f1a86,e.__initData=xO,e}(),CO={initialPosition:0,initialTranslationY:0,initialKeyboardState:XI.UNDETERMINED,isScrollablePositionLocked:!1},SO=(0,mf.runOnJS)(Sa.A.dismiss),EO={code:"function gorhom_useGestureEventsHandlersDefaultWebJs1(context){Object.keys(context).map(function(key){context[key]=undefined;});}"},kO=function(){const e=function(e){Object.keys(e).map((t=>{e[t]=void 0}))};return e.__closure={},e.__workletHash=7965796126744,e.__initData=EO,e}(),TO={code:"function handleOnStart_Gorhom_useGestureEventsHandlersDefaultWebJs2(__,{translationY:translationY}){const{stopAnimation,context,animatedPosition,animatedKeyboardState,animatedScrollableContentOffsetY}=this.__closure;stopAnimation();context.value={...context.value,initialPosition:animatedPosition.value,initialKeyboardState:animatedKeyboardState.value,initialTranslationY:translationY};if(animatedScrollableContentOffsetY.value>0){context.value.isScrollablePositionLocked=true;}}"},IO={code:"function handleOnChange_Gorhom_useGestureEventsHandlersDefaultWebJs3(source,{translationY:translationY}){const{animatedHighestSnapPoint,context,isInTemporaryPosition,KEYBOARD_STATE,enablePanDownToClose,animatedContainerHeight,animatedSnapPoints,GESTURE_SOURCE,isScrollableRefreshable,animatedPosition,animatedScrollableContentOffsetY,clamp,enableOverDrag,animatedScrollableType,SCROLLABLE_TYPE,overDragResistanceFactor}=this.__closure;let highestSnapPoint=animatedHighestSnapPoint.value;translationY=translationY-context.value.initialTranslationY;if(isInTemporaryPosition.value&&context.value.initialKeyboardState===KEYBOARD_STATE.SHOWN){highestSnapPoint=context.value.initialPosition;}if(isInTemporaryPosition.value&&context.value.initialPositionlowestSnapPoint){const resistedPosition=lowestSnapPoint+Math.sqrt(1+(draggedPosition-lowestSnapPoint))*overDragResistanceFactor;animatedPosition.value=resistedPosition;return;}if(source===GESTURE_SOURCE.CONTENT&&draggedPosition+negativeScrollableContentOffset>lowestSnapPoint){const resistedPosition=lowestSnapPoint+Math.sqrt(1+(draggedPosition+negativeScrollableContentOffset-lowestSnapPoint))*overDragResistanceFactor;animatedPosition.value=resistedPosition;return;}}animatedPosition.value=clampedPosition;}"},OO={code:"function handleOnEnd_Gorhom_useGestureEventsHandlersDefaultWebJs4(source,{translationY:translationY,absoluteY:absoluteY,velocityY:velocityY}){const{animatedHighestSnapPoint,animatedPosition,GESTURE_SOURCE,isScrollableRefreshable,isInTemporaryPosition,context,animateToPosition,ANIMATION_SOURCE,animatedScrollableType,SCROLLABLE_TYPE,KEYBOARD_STATE,Platform,WINDOW_HEIGHT,animatedKeyboardHeight,dismissKeyboardOnJs,animatedSnapPoints,enablePanDownToClose,animatedClosedPosition,snapPoint,animatedScrollableContentOffsetY}=this.__closure;const highestSnapPoint=animatedHighestSnapPoint.value;const isSheetAtHighestSnapPoint=animatedPosition.value===highestSnapPoint;if(source===GESTURE_SOURCE.CONTENT&&isScrollableRefreshable.value&&isSheetAtHighestSnapPoint){return;}if(isInTemporaryPosition.value&&context.value.initialPosition>=animatedPosition.value){if(context.value.initialPosition>animatedPosition.value){animateToPosition(context.value.initialPosition,ANIMATION_SOURCE.GESTURE,velocityY/2);}return;}const isScrollable=animatedScrollableType.value!==SCROLLABLE_TYPE.UNDETERMINED&&animatedScrollableType.value!==SCROLLABLE_TYPE.VIEW;if(context.value.initialKeyboardState===KEYBOARD_STATE.SHOWN&&animatedPosition.value>context.value.initialPosition){if(!(Platform.OS==='ios'&&isScrollable&&absoluteY>WINDOW_HEIGHT-animatedKeyboardHeight.value)){dismissKeyboardOnJs();}}if(isInTemporaryPosition.value){isInTemporaryPosition.value=false;}const snapPoints=animatedSnapPoints.value.slice();if(enablePanDownToClose){snapPoints.unshift(animatedClosedPosition.value);}const destinationPoint=snapPoint(translationY+context.value.initialPosition,velocityY,snapPoints);if(destinationPoint===animatedPosition.value){return;}const wasGestureHandledByScrollView=source===GESTURE_SOURCE.CONTENT&&animatedScrollableContentOffsetY.value>0;if(wasGestureHandledByScrollView&&isSheetAtHighestSnapPoint){return;}animateToPosition(destinationPoint,ANIMATION_SOURCE.GESTURE,velocityY/2);}"},RO={code:"function handleOnFinalize_Gorhom_useGestureEventsHandlersDefaultWebJs5(){const{resetContext,context}=this.__closure;resetContext(context);}"},MO=()=>{const{animatedPosition:e,animatedSnapPoints:t,animatedKeyboardState:n,animatedKeyboardHeight:r,animatedContainerHeight:i,animatedScrollableType:o,animatedHighestSnapPoint:a,animatedClosedPosition:s,animatedScrollableContentOffsetY:l,enableOverDrag:c,enablePanDownToClose:u,overDragResistanceFactor:h,isInTemporaryPosition:d,isScrollableRefreshable:f,animateToPosition:p,stopAnimation:m}=dO(),g=(0,mf.useSharedValue)(Object.assign({},CO));return{handleOnStart:(0,mf.useWorkletCallback)(function(){const t=function(t,{translationY:r}){m(),g.value=Object.assign({},g.value,{initialPosition:e.value,initialKeyboardState:n.value,initialTranslationY:r}),l.value>0&&(g.value.isScrollablePositionLocked=!0)};return t.__closure={stopAnimation:m,context:g,animatedPosition:e,animatedKeyboardState:n,animatedScrollableContentOffsetY:l},t.__workletHash=0xe085e68eb5c,t.__initData=TO,t}(),[m,e,n,l]),handleOnChange:(0,mf.useWorkletCallback)(function(){const n=function(n,{translationY:r}){let s=a.value;r-=g.value.initialTranslationY,d.value&&g.value.initialKeyboardState===XI.SHOWN&&(s=g.value.initialPosition),d.value&&g.value.initialPositionp){const t=p+Math.sqrt(y-p+1)*h;return void(e.value=t)}if(n===UI.CONTENT&&y+m>p){const t=p+Math.sqrt(y+m-p+1)*h;return void(e.value=t)}}e.value=v};return n.__closure={animatedHighestSnapPoint:a,context:g,isInTemporaryPosition:d,KEYBOARD_STATE:XI,enablePanDownToClose:u,animatedContainerHeight:i,animatedSnapPoints:t,GESTURE_SOURCE:UI,isScrollableRefreshable:f,animatedPosition:e,animatedScrollableContentOffsetY:l,clamp:AO,enableOverDrag:c,animatedScrollableType:o,SCROLLABLE_TYPE:GI,overDragResistanceFactor:h},n.__workletHash=7494501883602,n.__initData=IO,n}(),[c,u,h,d,f,a,i,t,e,o,l]),handleOnEnd:(0,mf.useWorkletCallback)(function(){const n=function(n,{translationY:r,absoluteY:i,velocityY:c}){const h=a.value,m=e.value===h;if(n===UI.CONTENT&&f.value&&m)return;if(d.value&&g.value.initialPosition>=e.value)return void(g.value.initialPosition>e.value&&p(g.value.initialPosition,WI.GESTURE,c/2));o.value!==GI.UNDETERMINED&&(o.value,GI.VIEW),g.value.initialKeyboardState===XI.SHOWN&&e.value>g.value.initialPosition&&SO(),d.value&&(d.value=!1);const y=t.value.slice();u&&y.unshift(s.value);const v=wO(r+g.value.initialPosition,c,y);v!==e.value&&(n===UI.CONTENT&&l.value>0&&m||p(v,WI.GESTURE,c/2))};return n.__closure={animatedHighestSnapPoint:a,animatedPosition:e,GESTURE_SOURCE:UI,isScrollableRefreshable:f,isInTemporaryPosition:d,context:g,animateToPosition:p,ANIMATION_SOURCE:WI,animatedScrollableType:o,SCROLLABLE_TYPE:GI,KEYBOARD_STATE:XI,Platform:aa.A,WINDOW_HEIGHT:BI,animatedKeyboardHeight:r,dismissKeyboardOnJs:SO,animatedSnapPoints:t,enablePanDownToClose:u,animatedClosedPosition:s,snapPoint:wO,animatedScrollableContentOffsetY:l},n.__workletHash=0xae6263f6352,n.__initData=OO,n}(),[u,d,f,s,a,r,e,o,t,l,p]),handleOnFinalize:(0,mf.useWorkletCallback)(function(){const e=function(){kO(g)};return e.__closure={resetContext:kO,context:g},e.__workletHash=0xa03df80158e,e.__initData=RO,e}(),[g])}},PO={code:"function gorhom_useKeyboardJs1(state,height,duration,easing){const{KEYBOARD_STATE,shouldHandleKeyboardEvents,temporaryCachedKeyboardEvent,keyboardHeight,keyboardAnimationDuration,keyboardAnimationEasing,keyboardState}=this.__closure;if(state===KEYBOARD_STATE.SHOWN&&!shouldHandleKeyboardEvents.value){temporaryCachedKeyboardEvent.value=[state,height,duration,easing];return;}keyboardHeight.value=state===KEYBOARD_STATE.SHOWN?height:height===0?keyboardHeight.value:height;keyboardAnimationDuration.value=duration;keyboardAnimationEasing.value=easing;keyboardState.value=state;temporaryCachedKeyboardEvent.value=[];}"},DO={code:"function gorhom_useKeyboardJs2(){const{shouldHandleKeyboardEvents}=this.__closure;return shouldHandleKeyboardEvents.value;}"},jO={code:"function gorhom_useKeyboardJs3(result){const{temporaryCachedKeyboardEvent,handleKeyboardEvent}=this.__closure;const params=temporaryCachedKeyboardEvent.value;if(result&¶ms.length>0){handleKeyboardEvent(params[0],params[1],params[2],params[3]);}}"},BO=2.5,LO=!0,FO=!0,NO=!1,_O=!0,zO=!0,VO=$I.interactive,UO=eO.none,HO=tO.adjustPan,qO=Number.NEGATIVE_INFINITY,GO=-999,YO=-999,WO={top:0,bottom:0,left:0,right:0},QO=-999,XO=FI,JO=!0,ZO="Bottom Sheet",KO="adjustable",$O={code:"function gorhom_normalizeSnapPointJs1(snapPoint,containerHeight){let normalizedSnapPoint=snapPoint;if(typeof normalizedSnapPoint==='string'){normalizedSnapPoint=Number(normalizedSnapPoint.split('%')[0])*containerHeight/100;}return Math.max(0,containerHeight-normalizedSnapPoint);}"},eR=function(){const e=function(e,t){let n=e;return"string"==typeof n&&(n=Number(n.split("%")[0])*t/100),Math.max(0,t-n)};return e.__closure={},e.__workletHash=0xfbb63d007ca,e.__initData=$O,e}(),tR={code:"function gorhom_animateJs1({point:point,configs:configs,velocity=0,overrideReduceMotion:overrideReduceMotion,onComplete:onComplete}){const{ANIMATION_CONFIGS,ANIMATION_METHOD,withTiming,withSpring}=this.__closure;if(!configs){configs=ANIMATION_CONFIGS;}if(overrideReduceMotion){configs.reduceMotion=overrideReduceMotion;}const type='duration'in configs||'easing'in configs?ANIMATION_METHOD.TIMING:ANIMATION_METHOD.SPRING;if(type===ANIMATION_METHOD.TIMING){return withTiming(point,configs,onComplete);}return withSpring(point,Object.assign({velocity:velocity},configs),onComplete);}"},nR=function(){const e=function({point:e,configs:t,velocity:n=0,overrideReduceMotion:r,onComplete:i}){return t||(t=ZI),r&&(t.reduceMotion=r),("duration"in t||"easing"in t?QI.TIMING:QI.SPRING)===QI.TIMING?(0,mf.withTiming)(e,t,i):(0,mf.withSpring)(e,Object.assign({velocity:n},t),i)};return e.__closure={ANIMATION_CONFIGS:ZI,ANIMATION_METHOD:QI,withTiming:mf.withTiming,withSpring:mf.withSpring},e.__workletHash=0x9b0385805f4,e.__initData=tR,e}(),rR={code:"function gorhom_getKeyboardAnimationConfigsJs1(easing,duration){const{Easing}=this.__closure;switch(easing){case'easeIn':return{easing:Easing.in(Easing.ease),duration:duration};case'easeOut':return{easing:Easing.out(Easing.ease),duration:duration};case'easeInEaseOut':return{easing:Easing.inOut(Easing.ease),duration:duration};case'linear':return{easing:Easing.linear,duration:duration};case'keyboard':return{damping:500,stiffness:1000,mass:3,overshootClamping:true,restDisplacementThreshold:10,restSpeedThreshold:10};}}"},iR=function(){const e=function(e,t){switch(e){case"easeIn":return{easing:mf.Easing.in(mf.Easing.ease),duration:t};case"easeOut":return{easing:mf.Easing.out(mf.Easing.ease),duration:t};case"easeInEaseOut":return{easing:mf.Easing.inOut(mf.Easing.ease),duration:t};case"linear":return{easing:mf.Easing.linear,duration:t};case"keyboard":return{damping:500,stiffness:1e3,mass:3,overshootClamping:!0,restDisplacementThreshold:10,restSpeedThreshold:10}}};return e.__closure={Easing:mf.Easing},e.__workletHash=1514685003181,e.__initData=rR,e}();let oR=()=>{};Object.freeze(oR);const aR={code:"function gorhom_noopJs1(){}"},sR=(function(){const e=function(){};e.__closure={},e.__workletHash=0xab6d90b975b,e.__initData=aR}(),{code:"function gorhom_useAnimatedSnapPointsJs1(){const{containerHeight,INITIAL_CONTAINER_HEIGHT,INITIAL_SNAP_POINT,snapPoints,normalizeSnapPoint,enableDynamicSizing,handleHeight,INITIAL_HANDLE_HEIGHT,contentHeight,footerHeight,maxDynamicContentSize,dynamicSnapPointIndex}=this.__closure;const isContainerLayoutReady=containerHeight.value!==INITIAL_CONTAINER_HEIGHT;if(!isContainerLayoutReady){return[INITIAL_SNAP_POINT];}const _snapPoints=snapPoints?'value'in snapPoints?snapPoints.value:snapPoints:[];let _normalizedSnapPoints=_snapPoints.map(function(snapPoint){return normalizeSnapPoint(snapPoint,containerHeight.value);});if(!enableDynamicSizing){return _normalizedSnapPoints;}if(handleHeight.value===INITIAL_HANDLE_HEIGHT){return[INITIAL_SNAP_POINT];}if(contentHeight.value===INITIAL_CONTAINER_HEIGHT){return[INITIAL_SNAP_POINT];}const dynamicSnapPoint=containerHeight.value-Math.min(contentHeight.value+handleHeight.value+footerHeight.value,maxDynamicContentSize!==undefined?maxDynamicContentSize:containerHeight.value);if(!_normalizedSnapPoints.includes(dynamicSnapPoint)){_normalizedSnapPoints.push(dynamicSnapPoint);}_normalizedSnapPoints=_normalizedSnapPoints.sort(function(a,b){return b-a;});dynamicSnapPointIndex.value=_normalizedSnapPoints.indexOf(dynamicSnapPoint);return _normalizedSnapPoints;}"}),lR={code:"function gorhom_useAnimatedSnapPointsJs2(){const{enableDynamicSizing,snapPoints}=this.__closure;if(enableDynamicSizing){return true;}const _snapPoints=snapPoints?'value'in snapPoints?snapPoints.value:snapPoints:[];if(_snapPoints.length&&_snapPoints.find(function(snapPoint){return typeof snapPoint==='string';})){return true;}return false;}"},cR=e=>{const t=(0,u.useRef)(null),n=(0,u.useRef)(null);return e&&"object"==typeof e&&"value"in e||(null===n.current?(t.current=e,n.current="object"==typeof e?(0,mf.makeMutable)(Object.assign({},e)):(0,mf.makeMutable)(e)):t.current!==e&&(n.current.value=e)),(0,u.useEffect)((()=>()=>{n.current&&(0,mf.cancelAnimation)(n.current)}),[]),n.current??e},uR=()=>{const e=(0,u.useContext)(aO);if(null===e)throw"'useBottomSheetGestureHandlers' cannot be used out of the BottomSheet!";return e},hR=fr.A.create({container:{position:"absolute",top:0,left:0,right:0,bottom:0}}),dR=(0,u.memo)((({animatedIndex:e,animatedPosition:t,backdropComponent:n})=>n?u.createElement(n,{animatedIndex:e,animatedPosition:t,style:hR.container}):null));dR.displayName="BottomSheetBackdropContainer";const fR=dR,pR=fr.A.create({container:{backgroundColor:"white",borderRadius:15}}),mR=(0,u.memo)((({pointerEvents:e,style:t})=>u.createElement(pr.A,{pointerEvents:e,accessible:!0,accessibilityRole:"adjustable",accessibilityLabel:"Bottom Sheet",style:[pR.container,t]})));mR.displayName="BottomSheetBackground";const gR=mR,yR=fr.A.create({container:{position:"absolute",top:0,left:0,right:0,bottom:0}}),vR=(0,u.memo)((({animatedIndex:e,animatedPosition:t,backgroundComponent:n,backgroundStyle:r})=>{const i=n||gR,o=(0,u.useMemo)((()=>fr.A.flatten([yR.container,r])),[r]);return null===n?null:u.createElement(i,{pointerEvents:"none",animatedIndex:e,animatedPosition:t,style:o})}));vR.displayName="BottomSheetBackgroundContainer";const bR=vR,AR=fr.A.create({container:{position:"absolute",left:0,right:0,bottom:0,top:0}}),xR=(0,u.memo)((function({containerHeight:e,containerOffset:t,topInset:n=0,bottomInset:r=0,shouldCalculateHeight:i=!0,detached:o,style:a,children:s}){const l=(0,u.useRef)(null),c=(0,u.useMemo)((()=>[a,AR.container,{top:n,bottom:r,overflow:o?"visible":"hidden"}]),[a,o,n,r]),h=(0,u.useCallback)((function({nativeEvent:{layout:{height:n}}}){e.value=n,l.current?.measure(((e,r,i,o,a,s)=>{t.value&&(t.value={top:s??0,left:0,right:0,bottom:Math.max(0,BI-((s??0)+n+(Ea.A.currentHeight??0)))})})),xR.displayName}),[e,t]);return u.createElement(pr.A,{ref:l,pointerEvents:"box-none",onLayout:i?h:void 0,style:c},s)}));xR.displayName="BottomSheetContainer";const wR=xR,CR=["nativeGestureRef","refreshControlGestureRef","style","children"];function SR(){return SR=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{nativeGestureRef:t,refreshControlGestureRef:n,style:r,children:i}=e,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,CR);const{enableContentPanningGesture:a,simultaneousHandlers:s,waitFor:l,activeOffsetX:c,activeOffsetY:h,failOffsetX:d,failOffsetY:f}=dO(),{contentPanGestureHandler:p}=uR(),m=(0,u.useMemo)((()=>{const e=[];return t&&e.push(t),n&&e.push(n),s&&(Array.isArray(s)?e.push(...s):e.push(s)),e}),[s,t,n]),g=(0,u.useMemo)((()=>{let e=to().enabled(a).shouldCancelWhenOutside(!1).runOnJS(!1).onStart(p.handleOnStart).onChange(p.handleOnChange).onEnd(p.handleOnEnd).onFinalize(p.handleOnFinalize);return l&&(e=e.requireExternalGestureToFail(l)),m&&(e=e.simultaneousWithExternalGesture(m)),c&&(e=e.activeOffsetX(c)),h&&(e=e.activeOffsetY(h)),d&&(e=e.failOffsetX(d)),f&&(e=e.failOffsetY(f)),e}),[c,h,a,d,f,m,l,p.handleOnChange,p.handleOnEnd,p.handleOnFinalize,p.handleOnStart]);return u.createElement(Bi,{gesture:g},u.createElement(sO.Provider,{value:g},u.createElement(mf.default.View,SR({style:r},o),i)))}));ER.displayName="BottomSheetDraggableView";const kR=ER,TR={code:"function gorhom_BottomSheetFooterContainerJs1(){const{animatedKeyboardHeightInContainer,animatedContainerHeight,animatedPosition,animatedKeyboardState,KEYBOARD_STATE,animatedFooterHeight,animatedHandleHeight}=this.__closure;const keyboardHeight=animatedKeyboardHeightInContainer.value;let footerTranslateY=Math.max(0,animatedContainerHeight.value-animatedPosition.value);if(animatedKeyboardState.value===KEYBOARD_STATE.SHOWN){footerTranslateY=footerTranslateY-keyboardHeight;}footerTranslateY=footerTranslateY-animatedFooterHeight.value-animatedHandleHeight.value;return footerTranslateY;}"},IR=(0,u.memo)((({footerComponent:e})=>{const{animatedContainerHeight:t,animatedHandleHeight:n,animatedFooterHeight:r,animatedPosition:i,animatedKeyboardState:o,animatedKeyboardHeightInContainer:a}=dO(),s=(0,mf.useDerivedValue)(function(){const e=function(){const e=a.value;let s=Math.max(0,t.value-i.value);return o.value===XI.SHOWN&&(s-=e),s=s-r.value-n.value,s};return e.__closure={animatedKeyboardHeightInContainer:a,animatedContainerHeight:t,animatedPosition:i,animatedKeyboardState:o,KEYBOARD_STATE:XI,animatedFooterHeight:r,animatedHandleHeight:n},e.__workletHash=0xae9573f2153,e.__initData=TR,e}(),[a,t,i,o,r,n]);return u.createElement(e,{animatedFooterPosition:s})}));IR.displayName="BottomSheetFooterContainer";const OR=IR,RR=({gestureEventsHandlersHook:e=MO,children:t})=>{const n=(0,mf.useSharedValue)(UI.UNDETERMINED),{animatedContentGestureState:r,animatedHandleGestureState:i}=dO(),{handleOnStart:o,handleOnChange:a,handleOnEnd:s,handleOnFinalize:l}=e(),c=vO(UI.CONTENT,r,n,o,a,s,l),h=vO(UI.HANDLE,i,n,o,a,s,l),d=(0,u.useMemo)((()=>({contentPanGestureHandler:c,handlePanGestureHandler:h,animatedGestureSource:n})),[c,h,n]);return u.createElement(aO.Provider,{value:d},t)},MR=fr.A.create({container:{padding:10},indicator:{alignSelf:"center",width:7.5*LI/100,height:4,borderRadius:4,backgroundColor:"rgba(0, 0, 0, 0.75)"}}),PR=(0,u.memo)((({style:e,indicatorStyle:t,children:n,accessible:r=!0,accessibilityRole:i="adjustable",accessibilityLabel:o="Bottom sheet handle",accessibilityHint:a="Drag up or down to extend or minimize the bottom sheet"})=>{const s=(0,u.useMemo)((()=>[MR.container,Array.isArray(e)?e:[e]]),[e]),l=(0,u.useMemo)((()=>[MR.indicator,Array.isArray(t)?t:[t]]),[t]);return u.createElement(mf.default.View,{style:s,accessible:r??void 0,accessibilityRole:i??void 0,accessibilityLabel:o??void 0,accessibilityHint:a??void 0},u.createElement(mf.default.View,{style:l}),n)}));PR.displayName="BottomSheetHandle";const DR=PR,jR=fr.A.create({container:{cursor:"grab"}}),BR=(0,u.memo)((function({animatedIndex:e,animatedPosition:t,simultaneousHandlers:n,enableHandlePanningGesture:r=!0,handleHeight:i,handleComponent:o,handleStyle:a,handleIndicatorStyle:s}){const{activeOffsetX:l,activeOffsetY:c,failOffsetX:h,failOffsetY:d,waitFor:f,simultaneousHandlers:p}=dO(),{handlePanGestureHandler:m}=uR(),g=(0,u.useMemo)((()=>{const e=[];return n&&e.push(n),p&&(Array.isArray(p)?e.push(...p):e.push(p)),e}),[p,n]),y=(0,u.useMemo)((()=>{let e=to().enabled(r).shouldCancelWhenOutside(!1).runOnJS(!1).onStart(m.handleOnStart).onChange(m.handleOnChange).onEnd(m.handleOnEnd).onFinalize(m.handleOnFinalize);return f&&(e=e.requireExternalGestureToFail(f)),g&&(e=e.simultaneousWithExternalGesture(g)),l&&(e=e.activeOffsetX(l)),c&&(e=e.activeOffsetY(c)),h&&(e=e.failOffsetX(h)),d&&(e=e.failOffsetY(d)),e}),[l,c,r,h,d,g,f,m.handleOnChange,m.handleOnEnd,m.handleOnFinalize,m.handleOnStart]),v=(0,u.useCallback)((function({nativeEvent:{layout:{height:e}}}){i.value=e}),[i]),b=void 0===o?DR:o;return null!==b?u.createElement(Bi,{gesture:y},u.createElement(mf.default.View,{key:"BottomSheetHandleContainer",onLayout:v,style:jR.container},u.createElement(b,{animatedIndex:e,animatedPosition:t,style:a,indicatorStyle:s}))):null}));BR.displayName="BottomSheetHandleContainer";const LR=BR,FR=fr.A.create({container:{flexDirection:"column-reverse",position:"absolute",top:0,left:0,right:0},contentContainer:{},contentMaskContainer:{overflow:"hidden"}});mf.default.addWhitelistedUIProps({decelerationRate:!0});const NR={code:"function gorhom_BottomSheetJs1(){const{topInset,bottomInset,$modal,_animatedContainerHeight}=this.__closure;const verticalInset=topInset+bottomInset;return $modal?_animatedContainerHeight.value-verticalInset:_animatedContainerHeight.value;}"},_R={code:"function gorhom_BottomSheetJs2(){const{animatedSnapPoints}=this.__closure;return animatedSnapPoints.value[animatedSnapPoints.value.length-1];}"},zR={code:"function gorhom_BottomSheetJs3(){const{animatedContainerHeight,$modal,detached,bottomInset}=this.__closure;let closedPosition=animatedContainerHeight.value;if($modal||detached){closedPosition=animatedContainerHeight.value+bottomInset;}return closedPosition;}"},VR={code:"function gorhom_BottomSheetJs4(){const{animatedContainerHeight,animatedHighestSnapPoint}=this.__closure;return animatedContainerHeight.value-animatedHighestSnapPoint.value;}"},UR={code:"function gorhom_BottomSheetJs5(){const{_providedContainerHeight,animatedContainerHeight,INITIAL_CONTAINER_HEIGHT,handleComponent,animatedHandleHeight,INITIAL_HANDLE_HEIGHT,animatedSnapPoints,INITIAL_SNAP_POINT}=this.__closure;let isContainerHeightCalculated=false;if(_providedContainerHeight!==null||_providedContainerHeight!==undefined){isContainerHeightCalculated=true;}if(animatedContainerHeight.value!==INITIAL_CONTAINER_HEIGHT){isContainerHeightCalculated=true;}let isHandleHeightCalculated=false;if(handleComponent===null){animatedHandleHeight.value=0;isHandleHeightCalculated=true;}if(animatedHandleHeight.value!==INITIAL_HANDLE_HEIGHT){isHandleHeightCalculated=true;}let isSnapPointsNormalized=false;if(animatedSnapPoints.value[0]!==INITIAL_SNAP_POINT){isSnapPointsNormalized=true;}return isContainerHeightCalculated&&isHandleHeightCalculated&&isSnapPointsNormalized;}"},HR={code:"function gorhom_BottomSheetJs6(){const{animatedPosition,animatedClosedPosition,SHEET_STATE,animatedContainerHeight,animatedSheetHeight,animatedKeyboardHeightInContainer,keyboardBehavior,KEYBOARD_BEHAVIOR,isInTemporaryPosition}=this.__closure;if(animatedPosition.value>=animatedClosedPosition.value){return SHEET_STATE.CLOSED;}const extendedPosition=animatedContainerHeight.value-animatedSheetHeight.value;if(animatedPosition.value===extendedPosition){return SHEET_STATE.EXTENDED;}const keyboardHeightInContainer=animatedKeyboardHeightInContainer.value;const extendedPositionWithKeyboard=Math.max(0,animatedContainerHeight.value-(animatedSheetHeight.value+keyboardHeightInContainer));if(keyboardBehavior===KEYBOARD_BEHAVIOR.interactive&&isInTemporaryPosition.value&&animatedPosition.value===extendedPositionWithKeyboard){return SHEET_STATE.EXTENDED;}if(animatedPosition.value===0){return SHEET_STATE.FILL_PARENT;}if(animatedPosition.valueanimatedContainerHeight.value){contentHeight=animatedContainerHeight.value-keyboardHeightInContainer-handleHeight;}}else if(contentWithKeyboardHeight+handleHeight>animatedContainerHeight.value){contentHeight=animatedContainerHeight.value-handleHeight;}else{contentHeight=contentWithKeyboardHeight;}}return Math.max(contentHeight,0);}"},YR={code:"function gorhom_BottomSheetJs9(){const{animatedSnapPoints,animatedContainerHeight,isLayoutCalculated,interpolate,animatedPosition,Extrapolation,android_keyboardInputMode,KEYBOARD_INPUT_MODE,animatedAnimationSource,ANIMATION_SOURCE,animatedAnimationState,ANIMATION_STATE,isInTemporaryPosition,animatedCurrentIndex,animatedNextPositionIndex}=this.__closure;const adjustedSnapPoints=animatedSnapPoints.value.slice().reverse();const adjustedSnapPointsIndexes=animatedSnapPoints.value.slice().map(function(_,index){return index;}).reverse();adjustedSnapPoints.push(animatedContainerHeight.value);adjustedSnapPointsIndexes.push(-1);const currentIndex=isLayoutCalculated.value?interpolate(animatedPosition.value,adjustedSnapPoints,adjustedSnapPointsIndexes,Extrapolation.CLAMP):-1;if(android_keyboardInputMode===KEYBOARD_INPUT_MODE.adjustResize&&animatedAnimationSource.value===ANIMATION_SOURCE.KEYBOARD&&animatedAnimationState.value===ANIMATION_STATE.RUNNING&&isInTemporaryPosition.value){return Math.max(animatedCurrentIndex.value,currentIndex);}if(animatedAnimationSource.value===ANIMATION_SOURCE.SNAP_POINT_CHANGE&&animatedAnimationState.value===ANIMATION_STATE.RUNNING){return animatedNextPositionIndex.value;}return currentIndex;}"},WR={code:"function gorhom_BottomSheetJs10(){const{cancelAnimation,animatedPosition,animatedAnimationSource,ANIMATION_SOURCE,animatedAnimationState,ANIMATION_STATE}=this.__closure;cancelAnimation(animatedPosition);animatedAnimationSource.value=ANIMATION_SOURCE.NONE;animatedAnimationState.value=ANIMATION_STATE.STOPPED;}"},QR={code:"function animateToPositionCompleted_Gorhom_BottomSheetJs11(isFinished){const animateToPositionCompleted_Gorhom_BottomSheetJs11=this._recur;const{__DEV__,runOnJS,print,BottomSheet,animatedCurrentIndex,animatedNextPosition,animatedNextPositionIndex,animatedAnimationSource,ANIMATION_SOURCE,isAnimatedOnMount,isForcedClosing,animatedAnimationState,ANIMATION_STATE,INITIAL_VALUE,animatedContainerHeightDidChange}=this.__closure;if(!isFinished){return;}if(__DEV__){runOnJS(print)({component:BottomSheet.name,method:animateToPositionCompleted_Gorhom_BottomSheetJs11.name,params:{animatedCurrentIndex:animatedCurrentIndex.value,animatedNextPosition:animatedNextPosition.value,animatedNextPositionIndex:animatedNextPositionIndex.value}});}if(animatedAnimationSource.value===ANIMATION_SOURCE.MOUNT){isAnimatedOnMount.value=true;}isForcedClosing.value=false;animatedAnimationSource.value=ANIMATION_SOURCE.NONE;animatedAnimationState.value=ANIMATION_STATE.STOPPED;animatedNextPosition.value=INITIAL_VALUE;animatedNextPositionIndex.value=INITIAL_VALUE;animatedContainerHeightDidChange.value=false;}"},XR={code:"function animateToPosition_Gorhom_BottomSheetJs12(position,source,velocity=0,configs){const animateToPosition_Gorhom_BottomSheetJs12=this._recur;const{__DEV__,runOnJS,print,BottomSheet,animatedPosition,animatedAnimationState,ANIMATION_STATE,animatedNextPosition,stopAnimation,animatedAnimationSource,animatedKeyboardState,KEYBOARD_STATE,animatedKeyboardHeightInContainer,animatedNextPositionIndex,animatedSnapPoints,handleOnAnimate,animate,_providedAnimationConfigs,_providedOverrideReduceMotion,animateToPositionCompleted}=this.__closure;if(__DEV__){runOnJS(print)({component:BottomSheet.name,method:animateToPosition_Gorhom_BottomSheetJs12.name,params:{currentPosition:animatedPosition.value,nextPosition:position}});}if(position===animatedPosition.value||position===undefined||animatedAnimationState.value===ANIMATION_STATE.RUNNING&&position===animatedNextPosition.value){return;}if(animatedAnimationState.value===ANIMATION_STATE.RUNNING){stopAnimation();}animatedAnimationState.value=ANIMATION_STATE.RUNNING;animatedAnimationSource.value=source;animatedNextPosition.value=position;let offset=0;if(animatedKeyboardState.value===KEYBOARD_STATE.SHOWN){offset=animatedKeyboardHeightInContainer.value;}animatedNextPositionIndex.value=animatedSnapPoints.value.indexOf(position+offset);runOnJS(handleOnAnimate)(animatedNextPositionIndex.value);animatedPosition.value=animate({point:position,configs:configs||_providedAnimationConfigs,velocity:velocity,overrideReduceMotion:_providedOverrideReduceMotion,onComplete:animateToPositionCompleted});}"},JR={code:"function setToPosition_Gorhom_BottomSheetJs13(targetPosition){const setToPosition_Gorhom_BottomSheetJs13=this._recur;const{animatedPosition,animatedAnimationState,ANIMATION_STATE,animatedNextPosition,__DEV__,runOnJS,print,BottomSheet,animatedNextPositionIndex,animatedSnapPoints,stopAnimation,animatedContainerHeightDidChange}=this.__closure;if(targetPosition===animatedPosition.value||targetPosition===undefined||animatedAnimationState.value===ANIMATION_STATE.RUNNING&&targetPosition===animatedNextPosition.value){return;}if(__DEV__){runOnJS(print)({component:BottomSheet.name,method:setToPosition_Gorhom_BottomSheetJs13.name,params:{currentPosition:animatedPosition.value,targetPosition:targetPosition}});}animatedNextPosition.value=targetPosition;animatedNextPositionIndex.value=animatedSnapPoints.value.indexOf(targetPosition);stopAnimation();animatedPosition.value=targetPosition;animatedContainerHeightDidChange.value=false;}"},ZR={code:"function getEvaluatedPosition_Gorhom_BottomSheetJs14(source){const{animatedCurrentIndex,animatedSnapPoints,animatedKeyboardState,animatedHighestSnapPoint,ANIMATION_SOURCE,keyboardBlurBehavior,KEYBOARD_BLUR_BEHAVIOR,KEYBOARD_STATE,animatedContentGestureState,State,animatedHandleGestureState,isInTemporaryPosition,keyboardBehavior,KEYBOARD_BEHAVIOR,Platform,android_keyboardInputMode,animatedKeyboardHeightInContainer,animatedPosition,isAnimatedOnMount,_providedIndex,animatedClosedPosition}=this.__closure;const currentIndex=animatedCurrentIndex.value;const snapPoints=animatedSnapPoints.value;const keyboardState=animatedKeyboardState.value;const highestSnapPoint=animatedHighestSnapPoint.value;if(source===ANIMATION_SOURCE.KEYBOARD&&keyboardBlurBehavior===KEYBOARD_BLUR_BEHAVIOR.restore&&keyboardState===KEYBOARD_STATE.HIDDEN&&animatedContentGestureState.value!==State.ACTIVE&&animatedHandleGestureState.value!==State.ACTIVE){isInTemporaryPosition.value=false;const nextPosition=snapPoints[currentIndex];return nextPosition;}if(keyboardBehavior===KEYBOARD_BEHAVIOR.extend&&keyboardState===KEYBOARD_STATE.SHOWN){return highestSnapPoint;}if(keyboardBehavior===KEYBOARD_BEHAVIOR.fillParent&&keyboardState===KEYBOARD_STATE.SHOWN){isInTemporaryPosition.value=true;return 0;}if(keyboardBehavior===KEYBOARD_BEHAVIOR.interactive&&keyboardState===KEYBOARD_STATE.SHOWN&&!(Platform.OS==='android'&&android_keyboardInputMode==='adjustResize')){isInTemporaryPosition.value=true;const keyboardHeightInContainer=animatedKeyboardHeightInContainer.value;return Math.max(0,highestSnapPoint-keyboardHeightInContainer);}if(isInTemporaryPosition.value){return animatedPosition.value;}if(!isAnimatedOnMount.value){return _providedIndex===-1?animatedClosedPosition.value:snapPoints[_providedIndex];}return snapPoints[currentIndex];}"},KR={code:"function evaluatePosition_Gorhom_BottomSheetJs15(source,animationConfigs){const{isForcedClosing,ANIMATION_SOURCE,isLayoutCalculated,getEvaluatedPosition,isAnimatedOnMount,animateOnMount,animateToPosition,setToPosition,animatedAnimationState,ANIMATION_STATE,animatedNextPositionIndex,isInTemporaryPosition,animatedClosedPosition,animatedCurrentIndex,animatedSnapPoints,reduceMotion,animatedIndex,animatedPosition,animatedContainerHeightDidChange}=this.__closure;if(isForcedClosing.value&&source!==ANIMATION_SOURCE.USER){return;}if(!isLayoutCalculated.value){return;}const proposedPosition=getEvaluatedPosition(source);if(!isAnimatedOnMount.value){if(animateOnMount){animateToPosition(proposedPosition,ANIMATION_SOURCE.MOUNT,undefined,animationConfigs);}else{setToPosition(proposedPosition);isAnimatedOnMount.value=true;}return;}if(animatedAnimationState.value===ANIMATION_STATE.RUNNING){if(animatedNextPositionIndex.value===-1&&!isInTemporaryPosition.value){setToPosition(animatedClosedPosition.value);return;}if(animatedNextPositionIndex.value!==animatedCurrentIndex.value){animateToPosition(animatedSnapPoints.value[animatedNextPositionIndex.value],source,undefined,animationConfigs);return;}}if(animatedAnimationState.value!==ANIMATION_STATE.RUNNING&&animatedCurrentIndex.value===-1){if(reduceMotion&&animatedSnapPoints.value[animatedIndex.value]!==animatedPosition.value){return;}setToPosition(animatedClosedPosition.value);return;}if(animatedContainerHeightDidChange.value){setToPosition(proposedPosition);return;}animateToPosition(proposedPosition,source,undefined,animationConfigs);}"},$R={code:"function handleSnapToPosition_Gorhom_BottomSheetJs16(position,animationConfigs){const handleSnapToPosition_Gorhom_BottomSheetJs16=this._recur;const{__DEV__,print,BottomSheet,normalizeSnapPoint,animatedContainerHeight,isLayoutCalculated,animatedNextPosition,isForcedClosing,isInTemporaryPosition,runOnUI,animateToPosition,ANIMATION_SOURCE}=this.__closure;if(__DEV__){print({component:BottomSheet.name,method:handleSnapToPosition_Gorhom_BottomSheetJs16.name,params:{position:position}});}const nextPosition=normalizeSnapPoint(position,animatedContainerHeight.value);if(!isLayoutCalculated||nextPosition===animatedNextPosition.value||isForcedClosing.value){return;}isInTemporaryPosition.value=true;runOnUI(animateToPosition)(nextPosition,ANIMATION_SOURCE.USER,0,animationConfigs);}"},eM={code:"function gorhom_BottomSheetJs17(){const{Platform,animatedIndex,animatedPosition}=this.__closure;return{opacity:Platform.OS==='android'&&animatedIndex.value===-1?0:1,transform:[{translateY:animatedPosition.value}]};}"},tM={code:"function gorhom_BottomSheetJs18(){const{enableDynamicSizing,animatedContentHeight,INITIAL_CONTAINER_HEIGHT,animate,animatedContentHeightMax,_providedAnimationConfigs,_providedOverrideReduceMotion}=this.__closure;if(enableDynamicSizing&&animatedContentHeight.value===INITIAL_CONTAINER_HEIGHT){return{};}return{height:animate({point:animatedContentHeightMax.value,configs:_providedAnimationConfigs,overrideReduceMotion:_providedOverrideReduceMotion}),overflow:'hidden'};}"},nM={code:"function gorhom_BottomSheetJs19(){const{detached,animatedContainerHeight}=this.__closure;if(detached){return{overflow:'visible'};}return{paddingBottom:animatedContainerHeight.value};}"},rM={code:"function gorhom_BottomSheetJs20(){const{animatedContainerHeight}=this.__closure;return animatedContainerHeight.value;}"},iM={code:"function gorhom_BottomSheetJs21(result,previous){const{INITIAL_CONTAINER_HEIGHT,animatedContainerHeightDidChange}=this.__closure;if(result===INITIAL_CONTAINER_HEIGHT){return;}animatedContainerHeightDidChange.value=result!==previous;}"},oM={code:"function gorhom_BottomSheetJs22(){const{animatedSnapPoints}=this.__closure;return animatedSnapPoints.value;}"},aM={code:"function gorhom_BottomSheetJs23(result,previous){const{isAnimatedOnMount,isLayoutCalculated,__DEV__,runOnJS,print,BottomSheet,evaluatePosition,ANIMATION_SOURCE}=this.__closure;if(JSON.stringify(result)===JSON.stringify(previous)&&isAnimatedOnMount.value){return;}if(!isLayoutCalculated.value){return;}if(__DEV__){runOnJS(print)({component:BottomSheet.name,method:'useAnimatedReaction::OnSnapPointChange',category:'effect',params:{result:result}});}evaluatePosition(ANIMATION_SOURCE.SNAP_POINT_CHANGE);}"},sM={code:"function gorhom_BottomSheetJs24(){const{animatedKeyboardState,animatedKeyboardHeight}=this.__closure;return{_keyboardState:animatedKeyboardState.value,_keyboardHeight:animatedKeyboardHeight.value};}"},lM={code:"function gorhom_BottomSheetJs25(result,_previousResult){const{KEYBOARD_STATE,animatedAnimationState,ANIMATION_STATE,animatedAnimationSource,ANIMATION_SOURCE,__DEV__,runOnJS,print,BottomSheet,animatedKeyboardHeightInContainer,$modal,bottomInset,animatedContainerOffset,Platform,android_keyboardInputMode,KEYBOARD_INPUT_MODE,keyboardBehavior,KEYBOARD_BEHAVIOR,animatedContentGestureState,State,animatedHandleGestureState,keyboardBlurBehavior,KEYBOARD_BLUR_BEHAVIOR,getKeyboardAnimationConfigs,keyboardAnimationEasing,keyboardAnimationDuration,evaluatePosition}=this.__closure;const{_keyboardState:_keyboardState,_keyboardHeight:_keyboardHeight}=result;const _previousKeyboardState=_previousResult===null||_previousResult===void 0?void 0:_previousResult._keyboardState;const _previousKeyboardHeight=_previousResult===null||_previousResult===void 0?void 0:_previousResult._keyboardHeight;if(_keyboardState===_previousKeyboardState&&_keyboardHeight===_previousKeyboardHeight){return;}if(_keyboardState===KEYBOARD_STATE.UNDETERMINED){return;}if(_keyboardState===KEYBOARD_STATE.HIDDEN&&animatedAnimationState.value===ANIMATION_STATE.RUNNING&&animatedAnimationSource.value===ANIMATION_SOURCE.GESTURE){return;}if(__DEV__){runOnJS(print)({component:BottomSheet.name,method:'useAnimatedReaction::OnKeyboardStateChange',category:'effect',params:{keyboardState:_keyboardState,keyboardHeight:_keyboardHeight}});}animatedKeyboardHeightInContainer.value=_keyboardHeight===0?0:$modal?Math.abs(_keyboardHeight-Math.abs(bottomInset-animatedContainerOffset.value.bottom)):Math.abs(_keyboardHeight-animatedContainerOffset.value.bottom);if(Platform.OS==='android'&&android_keyboardInputMode===KEYBOARD_INPUT_MODE.adjustResize){animatedKeyboardHeightInContainer.value=0;if(keyboardBehavior===KEYBOARD_BEHAVIOR.interactive){return;}}const hasActiveGesture=animatedContentGestureState.value===State.ACTIVE||animatedContentGestureState.value===State.BEGAN||animatedHandleGestureState.value===State.ACTIVE||animatedHandleGestureState.value===State.BEGAN;if(hasActiveGesture){return;}if(_keyboardState===KEYBOARD_STATE.HIDDEN&&keyboardBlurBehavior===KEYBOARD_BLUR_BEHAVIOR.none){return;}const animationConfigs=getKeyboardAnimationConfigs(keyboardAnimationEasing.value,keyboardAnimationDuration.value);evaluatePosition(ANIMATION_SOURCE.KEYBOARD,animationConfigs);}"},cM={code:"function gorhom_BottomSheetJs26(){const{animatedPosition}=this.__closure;return animatedPosition.value;}"},uM={code:"function gorhom_BottomSheetJs27(_animatedPosition){const{_providedAnimatedPosition,topInset}=this.__closure;if(_providedAnimatedPosition){_providedAnimatedPosition.value=_animatedPosition+topInset;}}"},hM={code:"function gorhom_BottomSheetJs28(){const{animatedIndex}=this.__closure;return animatedIndex.value;}"},dM={code:"function gorhom_BottomSheetJs29(_animatedIndex){const{_providedAnimatedIndex}=this.__closure;if(_providedAnimatedIndex){_providedAnimatedIndex.value=_animatedIndex;}}"},fM={code:"function gorhom_BottomSheetJs30(){const{animatedIndex,animatedPosition,animatedAnimationState,animatedContentGestureState,animatedHandleGestureState}=this.__closure;return{_animatedIndex:animatedIndex.value,_animatedPosition:animatedPosition.value,_animationState:animatedAnimationState.value,_contentGestureState:animatedContentGestureState.value,_handleGestureState:animatedHandleGestureState.value};}"},pM={code:"function gorhom_BottomSheetJs31({_animatedIndex:_animatedIndex,_animatedPosition:_animatedPosition,_animationState:_animationState,_contentGestureState:_contentGestureState,_handleGestureState:_handleGestureState}){const{ANIMATION_STATE,animatedNextPosition,INITIAL_VALUE,animatedNextPositionIndex,State,reduceMotion,animatedCurrentIndex,animatedSnapPoints,__DEV__,runOnJS,print,BottomSheet,handleOnChange,_providedOnClose}=this.__closure;if(_animationState!==ANIMATION_STATE.STOPPED){return;}if(animatedNextPosition.value!==INITIAL_VALUE&&animatedNextPositionIndex.value!==INITIAL_VALUE&&(_animatedPosition!==animatedNextPosition.value||_animatedIndex!==animatedNextPositionIndex.value)){return;}if(_animatedIndex%1!==0){return;}const hasNoActiveGesture=(_contentGestureState===State.END||_contentGestureState===State.UNDETERMINED||_contentGestureState===State.CANCELLED)&&(_handleGestureState===State.END||_handleGestureState===State.UNDETERMINED||_handleGestureState===State.CANCELLED);if(!hasNoActiveGesture){return;}if(reduceMotion&&_animatedIndex===animatedCurrentIndex.value&&animatedSnapPoints.value[_animatedIndex]!==_animatedPosition){return;}if(_animatedIndex!==animatedCurrentIndex.value){if(__DEV__){runOnJS(print)({component:BottomSheet.name,method:'useAnimatedReaction::OnChange',category:'effect',params:{animatedCurrentIndex:animatedCurrentIndex.value,animatedIndex:_animatedIndex}});}animatedCurrentIndex.value=_animatedIndex;runOnJS(handleOnChange)(_animatedIndex,_animatedPosition);}if(_animatedIndex===-1&&_providedOnClose){if(__DEV__){runOnJS(print)({component:BottomSheet.name,method:'useAnimatedReaction::onClose',category:'effect',params:{animatedCurrentIndex:animatedCurrentIndex.value,animatedIndex:_animatedIndex}});}runOnJS(_providedOnClose)();}}"},mM=(0,u.forwardRef)((function e(t,n){const{animationConfigs:r,index:i=0,snapPoints:o,animateOnMount:a=_O,enableContentPanningGesture:s=LO,enableHandlePanningGesture:c,enableOverDrag:h=FO,enablePanDownToClose:d=NO,enableDynamicSizing:f=zO,overDragResistanceFactor:p=BO,overrideReduceMotion:m,style:g,containerStyle:y,backgroundStyle:v,handleStyle:b,handleIndicatorStyle:A,gestureEventsHandlersHook:x,keyboardBehavior:w=VO,keyboardBlurBehavior:C=UO,android_keyboardInputMode:S=HO,containerHeight:E,containerOffset:k,topInset:T=0,bottomInset:I=0,maxDynamicContentSize:O,animatedPosition:R,animatedIndex:M,simultaneousHandlers:P,waitFor:D,activeOffsetX:j,activeOffsetY:B,failOffsetX:L,failOffsetY:F,onChange:N,onClose:_,onAnimate:z,$modal:V=!1,detached:U=!1,handleComponent:H,backdropComponent:q,backgroundComponent:G,footerComponent:Y,children:W,accessible:Q=JO,accessibilityLabel:X=ZO,accessibilityRole:J=KO}=t,Z=cR(E??YO),K=(0,mf.useDerivedValue)(function(){const e=function(){const e=T+I;return V?Z.value-e:Z.value};return e.__closure={topInset:T,bottomInset:I,$modal:V,_animatedContainerHeight:Z},e.__workletHash=2988404258748,e.__initData=NR,e}(),[T,I,V,Z]),$=cR(k??WO),ee=cR(QO),te=(0,mf.useSharedValue)(0),ne=(0,mf.useSharedValue)(YO),[re,ie]=((e,t,n,r,i,o,a)=>{const s=(0,mf.useSharedValue)(-1),l=(0,mf.useDerivedValue)(function(){const l=function(){if(t.value===YO)return[GO];let l=(e?"value"in e?e.value:e:[]).map((e=>eR(e,t.value)));if(!o)return l;if(r.value===QO)return[GO];if(n.value===YO)return[GO];const c=t.value-Math.min(n.value+r.value+i.value,void 0!==a?a:t.value);return l.includes(c)||l.push(c),l=l.sort(((e,t)=>t-e)),s.value=l.indexOf(c),l};return l.__closure={containerHeight:t,INITIAL_CONTAINER_HEIGHT:YO,INITIAL_SNAP_POINT:GO,snapPoints:e,normalizeSnapPoint:eR,enableDynamicSizing:o,handleHeight:r,INITIAL_HANDLE_HEIGHT:QO,contentHeight:n,footerHeight:i,maxDynamicContentSize:a,dynamicSnapPointIndex:s},l.__workletHash=0xd2b98ea6563,l.__initData=sR,l}(),[e,t,r,n,i,o,a,s]),c=(0,mf.useDerivedValue)(function(){const t=function(){if(o)return!0;const t=e?"value"in e?e.value:e:[];return!(!t.length||!t.find((e=>"string"==typeof e)))};return t.__closure={enableDynamicSizing:o,snapPoints:e},t.__workletHash=0xfcf9fd50853,t.__initData=lR,t}());return[l,s,c]})(o,K,ne,ee,te,f,O),oe=(0,mf.useDerivedValue)(function(){const e=()=>re.value[re.value.length-1];return e.__closure={animatedSnapPoints:re},e.__workletHash=738809220271,e.__initData=_R,e}(),[re]),ae=(0,mf.useDerivedValue)(function(){const e=function(){let e=K.value;return(V||U)&&(e=K.value+I),e};return e.__closure={animatedContainerHeight:K,$modal:V,detached:U,bottomInset:I},e.__workletHash=0xe18adadac14,e.__initData=zR,e}(),[K,V,U,I]),se=(0,mf.useDerivedValue)(function(){const e=()=>K.value-oe.value;return e.__closure={animatedContainerHeight:K,animatedHighestSnapPoint:oe},e.__workletHash=0xb7e2bae95ac,e.__initData=VR,e}(),[K,oe]),le=cR(a?-1:i),ce=(0,mf.useSharedValue)(XO),ue=(0,mf.useSharedValue)(qO),he=(0,mf.useSharedValue)(qO),de=(0,mf.useSharedValue)(!1),fe=(0,mf.useSharedValue)(!1),pe=(0,mf.useDerivedValue)(function(){const e=function(){let e=!1;null===E&&void 0===E||(e=!0),K.value!==YO&&(e=!0);let t=!1;null===H&&(ee.value=0,t=!0),ee.value!==QO&&(t=!0);let n=!1;return re.value[0]!==GO&&(n=!0),e&&t&&n};return e.__closure={_providedContainerHeight:E,animatedContainerHeight:K,INITIAL_CONTAINER_HEIGHT:YO,handleComponent:H,animatedHandleHeight:ee,INITIAL_HANDLE_HEIGHT:QO,animatedSnapPoints:re,INITIAL_SNAP_POINT:GO},e.__workletHash=8020831667178,e.__initData=UR,e}(),[E,K,ee,re,H]),me=(0,mf.useSharedValue)(!1),ge=(0,mf.useSharedValue)(!1),ye=(0,mf.useSharedValue)(!1),ve=(0,mf.useSharedValue)(l.UNDETERMINED),be=(0,mf.useSharedValue)(l.UNDETERMINED),{animatedScrollableType:Ae,animatedScrollableContentOffsetY:xe,animatedScrollableOverrideState:we,isScrollableRefreshable:Ce,setScrollableRef:Se,removeScrollableRef:Ee}=(()=>{const e=(0,u.useRef)(null),t=(0,u.useRef)(null),n=(0,mf.useSharedValue)(GI.UNDETERMINED),r=(0,mf.useSharedValue)(0),i=(0,mf.useSharedValue)(qI.UNDETERMINED),o=(0,mf.useSharedValue)(!1),a=(0,u.useCallback)((n=>{(e.current?.id??null)!==n.id&&(e.current&&(t.current=e.current),e.current=n)}),[]),s=(0,u.useCallback)((n=>{let r;try{r=(0,JC.A)(n.current)}catch{return}r===(e.current?.id??null)&&(e.current=t.current)}),[]);return{scrollableRef:e,animatedScrollableType:n,animatedScrollableContentOffsetY:r,animatedScrollableOverrideState:i,isScrollableRefreshable:o,setScrollableRef:a,removeScrollableRef:s}})(),{state:ke,height:Te,animationDuration:Ie,animationEasing:Oe,shouldHandleKeyboardEvents:Re}=(()=>{const e=(0,mf.useSharedValue)(!1),t=(0,mf.useSharedValue)(XI.UNDETERMINED),n=(0,mf.useSharedValue)(0),r=(0,mf.useSharedValue)("keyboard"),i=(0,mf.useSharedValue)(500),o=(0,mf.useSharedValue)([]),a=(0,mf.useWorkletCallback)(function(){const a=function(a,s,l,c){a!==XI.SHOWN||e.value?(n.value=a===XI.SHOWN?s:0===s?n.value:s,i.value=l,r.value=c,t.value=a,o.value=[]):o.value=[a,s,l,c]};return a.__closure={KEYBOARD_STATE:XI,shouldHandleKeyboardEvents:e,temporaryCachedKeyboardEvent:o,keyboardHeight:n,keyboardAnimationDuration:i,keyboardAnimationEasing:r,keyboardState:t},a.__workletHash=5520565908230,a.__initData=PO,a}(),[]);return(0,u.useEffect)((()=>{const e=Sa.A.addListener("",(e=>{(0,mf.runOnUI)(a)(XI.SHOWN,e.endCoordinates.height,e.duration,e.easing)})),t=Sa.A.addListener("",(e=>{(0,mf.runOnUI)(a)(XI.HIDDEN,e.endCoordinates.height,e.duration,e.easing)}));return()=>{e.remove(),t.remove()}}),[a]),(0,mf.useAnimatedReaction)(function(){const t=()=>e.value;return t.__closure={shouldHandleKeyboardEvents:e},t.__workletHash=2952635767360,t.__initData=DO,t}(),function(){const e=function(e){const t=o.value;e&&t.length>0&&a(t[0],t[1],t[2],t[3])};return e.__closure={temporaryCachedKeyboardEvent:o,handleKeyboardEvent:a},e.__workletHash=0xed7805319d,e.__initData=jO,e}(),[]),{state:t,height:n,animationEasing:r,animationDuration:i,shouldHandleKeyboardEvents:e}})(),Me=(0,mf.useSharedValue)(0),Pe=(0,mf.useReducedMotion)(),De=(0,u.useMemo)((()=>m&&m!==mf.ReduceMotion.System?m===mf.ReduceMotion.Always:Pe),[Pe,m]),je=(0,mf.useSharedValue)(YI.UNDETERMINED),Be=(0,mf.useSharedValue)(WI.MOUNT),Le=(0,mf.useDerivedValue)(function(){const e=function(){if(ce.value>=ae.value)return HI.CLOSED;const e=K.value-se.value;if(ce.value===e)return HI.EXTENDED;const t=Me.value,n=Math.max(0,K.value-(se.value+t));return w===$I.interactive&&me.value&&ce.value===n?HI.EXTENDED:0===ce.value?HI.FILL_PARENT:ce.valueK.value&&(n=K.value-e-t):n=r+t>K.value?K.value-t:r}return Math.max(n,0)};return e.__closure={animatedKeyboardHeightInContainer:Me,animatedHandleHeight:ee,animatedSheetHeight:se,keyboardBehavior:w,KEYBOARD_BEHAVIOR:$I,animatedKeyboardState:ke,KEYBOARD_STATE:XI,isInTemporaryPosition:me,animatedContainerHeight:K},e.__workletHash=0xf63e448e2ab,e.__initData=GR,e}(),[K,ee,Me,ke,se,me,w]),_e=(0,mf.useDerivedValue)(function(){const e=function(){const e=re.value.slice().reverse(),t=re.value.slice().map(((e,t)=>t)).reverse();e.push(K.value),t.push(-1);const n=pe.value?(0,mf.interpolate)(ce.value,e,t,mf.Extrapolation.CLAMP):-1;return S===tO.adjustResize&&Be.value===WI.KEYBOARD&&je.value===YI.RUNNING&&me.value?Math.max(le.value,n):Be.value===WI.SNAP_POINT_CHANGE&&je.value===YI.RUNNING?he.value:n};return e.__closure={animatedSnapPoints:re,animatedContainerHeight:K,isLayoutCalculated:pe,interpolate:mf.interpolate,animatedPosition:ce,Extrapolation:mf.Extrapolation,android_keyboardInputMode:S,KEYBOARD_INPUT_MODE:tO,animatedAnimationSource:Be,ANIMATION_SOURCE:WI,animatedAnimationState:je,ANIMATION_STATE:YI,isInTemporaryPosition:me,animatedCurrentIndex:le,animatedNextPositionIndex:he},e.__workletHash=8508457295777,e.__initData=YR,e}(),[S,Be,je,K,le,he,ce,re,me,pe]),ze=(0,u.useCallback)((function(e,t){N&&N(e,t,e===ie.value?JI.DYNAMIC:JI.PROVIDED)}),[N,le,ie]),Ve=(0,u.useCallback)((function(e){z&&e!==le.value&&z(le.value,e)}),[z,le]),Ue=(0,mf.useWorkletCallback)(function(){const e=function(){(0,mf.cancelAnimation)(ce),Be.value=WI.NONE,je.value=YI.STOPPED};return e.__closure={cancelAnimation:mf.cancelAnimation,animatedPosition:ce,animatedAnimationSource:Be,ANIMATION_SOURCE:WI,animatedAnimationState:je,ANIMATION_STATE:YI},e.__workletHash=7076664499612,e.__initData=WR,e}(),[ce,je,Be]),He=(0,mf.useWorkletCallback)(function(){const t=function(e){e&&(Be.value===WI.MOUNT&&(de.value=!0),ge.value=!1,Be.value=WI.NONE,je.value=YI.STOPPED,ue.value=qO,he.value=qO,ye.value=!1)};return t.__closure={__DEV__:!1,runOnJS:mf.runOnJS,print:oR,BottomSheet:e,animatedCurrentIndex:le,animatedNextPosition:ue,animatedNextPositionIndex:he,animatedAnimationSource:Be,ANIMATION_SOURCE:WI,isAnimatedOnMount:de,isForcedClosing:ge,animatedAnimationState:je,ANIMATION_STATE:YI,INITIAL_VALUE:qO,animatedContainerHeightDidChange:ye},t.__workletHash=7295246234433,t.__initData=QR,t}()),qe=(0,mf.useWorkletCallback)(function(){const t=function(e,t,n=0,i){if(e===ce.value||void 0===e||je.value===YI.RUNNING&&e===ue.value)return;je.value===YI.RUNNING&&Ue(),je.value=YI.RUNNING,Be.value=t,ue.value=e;let o=0;ke.value===XI.SHOWN&&(o=Me.value),he.value=re.value.indexOf(e+o),(0,mf.runOnJS)(Ve)(he.value),ce.value=nR({point:e,configs:i||r,velocity:n,overrideReduceMotion:m,onComplete:He})};return t.__closure={__DEV__:!1,runOnJS:mf.runOnJS,print:oR,BottomSheet:e,animatedPosition:ce,animatedAnimationState:je,ANIMATION_STATE:YI,animatedNextPosition:ue,stopAnimation:Ue,animatedAnimationSource:Be,animatedKeyboardState:ke,KEYBOARD_STATE:XI,animatedKeyboardHeightInContainer:Me,animatedNextPositionIndex:he,animatedSnapPoints:re,handleOnAnimate:Ve,animate:nR,_providedAnimationConfigs:r,_providedOverrideReduceMotion:m,animateToPositionCompleted:He},t.__workletHash=9654306264719,t.__initData=XR,t}(),[Ve,r,m]),Ge=(0,mf.useWorkletCallback)(function(){const t=function(e){e===ce.value||void 0===e||je.value===YI.RUNNING&&e===ue.value||(ue.value=e,he.value=re.value.indexOf(e),Ue(),ce.value=e,ye.value=!1)};return t.__closure={animatedPosition:ce,animatedAnimationState:je,ANIMATION_STATE:YI,animatedNextPosition:ue,__DEV__:!1,runOnJS:mf.runOnJS,print:oR,BottomSheet:e,animatedNextPositionIndex:he,animatedSnapPoints:re,stopAnimation:Ue,animatedContainerHeightDidChange:ye},t.__workletHash=0xc612581871e,t.__initData=JR,t}(),[]),Ye=(0,mf.useWorkletCallback)(function(){const e=function(e){const t=le.value,n=re.value,r=ke.value,o=oe.value;if(e===WI.KEYBOARD&&C===eO.restore&&r===XI.HIDDEN&&ve.value!==l.ACTIVE&&be.value!==l.ACTIVE)return me.value=!1,n[t];if(w===$I.extend&&r===XI.SHOWN)return o;if(w===$I.fillParent&&r===XI.SHOWN)return me.value=!0,0;if(w===$I.interactive&&r===XI.SHOWN){me.value=!0;const e=Me.value;return Math.max(0,o-e)}return me.value?ce.value:de.value?n[t]:-1===i?ae.value:n[i]};return e.__closure={animatedCurrentIndex:le,animatedSnapPoints:re,animatedKeyboardState:ke,animatedHighestSnapPoint:oe,ANIMATION_SOURCE:WI,keyboardBlurBehavior:C,KEYBOARD_BLUR_BEHAVIOR:eO,KEYBOARD_STATE:XI,animatedContentGestureState:ve,State:l,animatedHandleGestureState:be,isInTemporaryPosition:me,keyboardBehavior:w,KEYBOARD_BEHAVIOR:$I,Platform:aa.A,android_keyboardInputMode:S,animatedKeyboardHeightInContainer:Me,animatedPosition:ce,isAnimatedOnMount:de,_providedIndex:i,animatedClosedPosition:ae},e.__workletHash=0xf913e104611,e.__initData=ZR,e}(),[ve,le,be,oe,Me,ke,ce,re,me,de,w,C,i]),We=(0,mf.useWorkletCallback)(function(){const e=function(e,t){if(ge.value&&e!==WI.USER)return;if(!pe.value)return;const n=Ye(e);if(de.value){if(je.value===YI.RUNNING){if(-1===he.value&&!me.value)return void Ge(ae.value);if(he.value!==le.value)return void qe(re.value[he.value],e,void 0,t)}if(je.value===YI.RUNNING||-1!==le.value)ye.value?Ge(n):qe(n,e,void 0,t);else{if(De&&re.value[_e.value]!==ce.value)return;Ge(ae.value)}}else a?qe(n,WI.MOUNT,void 0,t):(Ge(n),de.value=!0)};return e.__closure={isForcedClosing:ge,ANIMATION_SOURCE:WI,isLayoutCalculated:pe,getEvaluatedPosition:Ye,isAnimatedOnMount:de,animateOnMount:a,animateToPosition:qe,setToPosition:Ge,animatedAnimationState:je,ANIMATION_STATE:YI,animatedNextPositionIndex:he,isInTemporaryPosition:me,animatedClosedPosition:ae,animatedCurrentIndex:le,animatedSnapPoints:re,reduceMotion:De,animatedIndex:_e,animatedPosition:ce,animatedContainerHeightDidChange:ye},e.__workletHash=3275900165174,e.__initData=KR,e}(),[Ye,qe,Ge,De]),Qe=(0,u.useCallback)((function(e,t){const n=re.value;Ca()(e>=-1&&e<=n.length-1,"'index' was provided but out of the provided snap points range! expected value to be between -1, "+(n.length-1));const r=n[e];pe.value&&e!==he.value&&r!==ue.value&&!ge.value&&(me.value=!1,(0,mf.runOnUI)(qe)(r,WI.USER,0,t))}),[qe,pe,me,ge,re,ue,he]),Xe=(0,mf.useWorkletCallback)(function(){const t=function(e,t){const n=eR(e,K.value);pe&&n!==ue.value&&!ge.value&&(me.value=!0,(0,mf.runOnUI)(qe)(n,WI.USER,0,t))};return t.__closure={__DEV__:!1,print:oR,BottomSheet:e,normalizeSnapPoint:eR,animatedContainerHeight:K,isLayoutCalculated:pe,animatedNextPosition:ue,isForcedClosing:ge,isInTemporaryPosition:me,runOnUI:mf.runOnUI,animateToPosition:qe,ANIMATION_SOURCE:WI},t.__workletHash=9228723521840,t.__initData=$R,t}(),[qe,I,T,pe,ge,K,ce]),Je=(0,u.useCallback)((function(e){const t=ae.value;pe.value&&t!==ue.value&&!ge.value&&(me.value=!1,(0,mf.runOnUI)(qe)(t,WI.USER,0,e))}),[qe,ge,pe,me,ue,ae]),Ze=(0,u.useCallback)((function(e){const t=ae.value;t===ue.value||ge.value||(me.value=!1,ge.value=!0,(0,mf.runOnUI)(qe)(t,WI.USER,0,e))}),[qe,ge,me,ue,ae]),Ke=(0,u.useCallback)((function(e){const t=re.value,n=t[t.length-1];pe.value&&t.length-1!==he.value&&n!==ue.value&&!ge.value&&(me.value=!1,(0,mf.runOnUI)(qe)(n,WI.USER,0,e))}),[qe,me,pe,ge,re,ue,he]),$e=(0,u.useCallback)((function(e){const t=re.value[0];pe&&0!==he.value&&t!==ue.value&&!ge.value&&(me.value=!1,(0,mf.runOnUI)(qe)(t,WI.USER,0,e))}),[qe,ge,pe,me,re,ue,he]);(0,u.useImperativeHandle)(n,(()=>({snapToIndex:Qe,snapToPosition:Xe,expand:Ke,collapse:$e,close:Je,forceClose:Ze})));const et=(0,u.useMemo)((()=>({enableContentPanningGesture:s,enableDynamicSizing:f,overDragResistanceFactor:p,enableOverDrag:h,enablePanDownToClose:d,animatedAnimationState:je,animatedSheetState:Le,animatedScrollableState:Fe,animatedScrollableOverrideState:we,animatedContentGestureState:ve,animatedHandleGestureState:be,animatedKeyboardState:ke,animatedScrollableType:Ae,animatedIndex:_e,animatedPosition:ce,animatedContentHeight:ne,animatedClosedPosition:ae,animatedHandleHeight:ee,animatedFooterHeight:te,animatedKeyboardHeight:Te,animatedKeyboardHeightInContainer:Me,animatedContainerHeight:K,animatedSnapPoints:re,animatedHighestSnapPoint:oe,animatedScrollableContentOffsetY:xe,isInTemporaryPosition:me,isContentHeightFixed:fe,isScrollableRefreshable:Ce,shouldHandleKeyboardEvents:Re,simultaneousHandlers:P,waitFor:D,activeOffsetX:j,activeOffsetY:B,failOffsetX:L,failOffsetY:F,animateToPosition:qe,stopAnimation:Ue,setScrollableRef:Se,removeScrollableRef:Ee})),[_e,ce,ne,Ae,ve,be,ae,te,K,ee,je,ke,Te,Me,Le,oe,Fe,we,re,Re,xe,Ce,fe,me,s,p,h,d,f,P,D,j,B,L,F,Se,Ee,qe,Ue]),tt=(0,u.useMemo)((()=>({animatedIndex:_e,animatedPosition:ce,snapToIndex:Qe,snapToPosition:Xe,expand:Ke,collapse:$e,close:Je,forceClose:Ze})),[_e,ce,Qe,Xe,Ke,$e,Je,Ze]),nt=(0,mf.useAnimatedStyle)(function(){const e=()=>({opacity:1,transform:[{translateY:ce.value}]});return e.__closure={Platform:aa.A,animatedIndex:_e,animatedPosition:ce},e.__workletHash=4810238628564,e.__initData=eM,e}(),[ce,_e]),rt=(0,u.useMemo)((()=>[g,FR.container,nt]),[g,nt]),it=(0,mf.useAnimatedStyle)(function(){const e=function(){return f&&ne.value===YO?{}:{height:nR({point:Ne.value,configs:r,overrideReduceMotion:m}),overflow:"hidden"}};return e.__closure={enableDynamicSizing:f,animatedContentHeight:ne,INITIAL_CONTAINER_HEIGHT:YO,animate:nR,animatedContentHeightMax:Ne,_providedAnimationConfigs:r,_providedOverrideReduceMotion:m},e.__workletHash=0x98995041c93,e.__initData=tM,e}(),[f,ne,Ne,m,r]),ot=(0,u.useMemo)((()=>[FR.contentContainer,it]),[it]),at=(0,mf.useAnimatedStyle)(function(){const e=function(){return U?{overflow:"visible"}:{paddingBottom:K.value}};return e.__closure={detached:U,animatedContainerHeight:K},e.__workletHash=0xac0876622cd,e.__initData=nM,e}(),[K,U]),st=(0,u.useMemo)((()=>[FR.contentMaskContainer,at]),[at]);(0,mf.useAnimatedReaction)(function(){const e=()=>K.value;return e.__closure={animatedContainerHeight:K},e.__workletHash=3099863546334,e.__initData=rM,e}(),function(){const e=function(e,t){e!==YO&&(ye.value=e!==t)};return e.__closure={INITIAL_CONTAINER_HEIGHT:YO,animatedContainerHeightDidChange:ye},e.__workletHash=7676050900164,e.__initData=iM,e}()),(0,mf.useAnimatedReaction)(function(){const e=()=>re.value;return e.__closure={animatedSnapPoints:re},e.__workletHash=6616685050300,e.__initData=oM,e}(),function(){const t=function(e,t){JSON.stringify(e)===JSON.stringify(t)&&de.value||pe.value&&We(WI.SNAP_POINT_CHANGE)};return t.__closure={isAnimatedOnMount:de,isLayoutCalculated:pe,__DEV__:!1,runOnJS:mf.runOnJS,print:oR,BottomSheet:e,evaluatePosition:We,ANIMATION_SOURCE:WI},t.__workletHash=4779728816306,t.__initData=aM,t}(),[pe,re]),(0,mf.useAnimatedReaction)(function(){const e=()=>({_keyboardState:ke.value,_keyboardHeight:Te.value});return e.__closure={animatedKeyboardState:ke,animatedKeyboardHeight:Te},e.__workletHash=0xe3a7e065ad1,e.__initData=sM,e}(),function(){const t=function(e,t){const{_keyboardState:n,_keyboardHeight:r}=e,i=t?._keyboardState,o=t?._keyboardHeight;if(n===i&&r===o)return;if(n===XI.UNDETERMINED)return;if(n===XI.HIDDEN&&je.value===YI.RUNNING&&Be.value===WI.GESTURE)return;if(Me.value=0===r?0:V?Math.abs(r-Math.abs(I-$.value.bottom)):Math.abs(r-$.value.bottom),ve.value===l.ACTIVE||ve.value===l.BEGAN||be.value===l.ACTIVE||be.value===l.BEGAN)return;if(n===XI.HIDDEN&&C===eO.none)return;const a=iR(Oe.value,Ie.value);We(WI.KEYBOARD,a)};return t.__closure={KEYBOARD_STATE:XI,animatedAnimationState:je,ANIMATION_STATE:YI,animatedAnimationSource:Be,ANIMATION_SOURCE:WI,__DEV__:!1,runOnJS:mf.runOnJS,print:oR,BottomSheet:e,animatedKeyboardHeightInContainer:Me,$modal:V,bottomInset:I,animatedContainerOffset:$,Platform:aa.A,android_keyboardInputMode:S,KEYBOARD_INPUT_MODE:tO,keyboardBehavior:w,KEYBOARD_BEHAVIOR:$I,animatedContentGestureState:ve,State:l,animatedHandleGestureState:be,keyboardBlurBehavior:C,KEYBOARD_BLUR_BEHAVIOR:eO,getKeyboardAnimationConfigs:iR,keyboardAnimationEasing:Oe,keyboardAnimationDuration:Ie,evaluatePosition:We},t.__workletHash=2093715192048,t.__initData=lM,t}(),[V,I,w,C,S,$,Ye]),(0,mf.useAnimatedReaction)(function(){const e=()=>ce.value;return e.__closure={animatedPosition:ce},e.__workletHash=0xd83f3604fb8,e.__initData=cM,e}(),function(){const e=function(e){R&&(R.value=e+T)};return e.__closure={_providedAnimatedPosition:R,topInset:T},e.__workletHash=0xe5b6710c1af,e.__initData=uM,e}(),[]),(0,mf.useAnimatedReaction)(function(){const e=()=>_e.value;return e.__closure={animatedIndex:_e},e.__workletHash=0x95eddd3dc96,e.__initData=hM,e}(),function(){const e=function(e){M&&(M.value=e)};return e.__closure={_providedAnimatedIndex:M},e.__workletHash=8731955433889,e.__initData=dM,e}(),[]),(0,mf.useAnimatedReaction)(function(){const e=()=>({_animatedIndex:_e.value,_animatedPosition:ce.value,_animationState:je.value,_contentGestureState:ve.value,_handleGestureState:be.value});return e.__closure={animatedIndex:_e,animatedPosition:ce,animatedAnimationState:je,animatedContentGestureState:ve,animatedHandleGestureState:be},e.__workletHash=6365729821785,e.__initData=fM,e}(),function(){const t=function({_animatedIndex:e,_animatedPosition:t,_animationState:n,_contentGestureState:r,_handleGestureState:i}){n===YI.STOPPED&&(ue.value===qO||he.value===qO||t===ue.value&&e===he.value)&&e%1==0&&!(r!==l.END&&r!==l.UNDETERMINED&&r!==l.CANCELLED||i!==l.END&&i!==l.UNDETERMINED&&i!==l.CANCELLED)&&(De&&e===le.value&&re.value[e]!==t||(e!==le.value&&(le.value=e,(0,mf.runOnJS)(ze)(e,t)),-1===e&&_&&(0,mf.runOnJS)(_)()))};return t.__closure={ANIMATION_STATE:YI,animatedNextPosition:ue,INITIAL_VALUE:qO,animatedNextPositionIndex:he,State:l,reduceMotion:De,animatedCurrentIndex:le,animatedSnapPoints:re,__DEV__:!1,runOnJS:mf.runOnJS,print:oR,BottomSheet:e,handleOnChange:ze,_providedOnClose:_},t.__workletHash=4172643376364,t.__initData=pM,t}(),[De,ze,_]),(0,u.useEffect)((()=>{de.value&&Qe(i)}),[i,de,Qe]);const lt=s?kR:mf.default.View;return u.createElement(rO,{value:tt},u.createElement(oO,{value:et},u.createElement(RR,{gestureEventsHandlersHook:x},u.createElement(fR,{key:"BottomSheetBackdropContainer",animatedIndex:_e,animatedPosition:ce,backdropComponent:q}),u.createElement(wR,{key:"BottomSheetContainer",shouldCalculateHeight:!V,containerHeight:Z,containerOffset:$,topInset:T,bottomInset:I,detached:U,style:y},u.createElement(mf.default.View,{style:rt},u.createElement(bR,{key:"BottomSheetBackgroundContainer",animatedIndex:_e,animatedPosition:ce,backgroundComponent:G,backgroundStyle:v}),u.createElement(mf.default.View,{pointerEvents:"box-none",style:st,accessible:Q??void 0,accessibilityRole:J??void 0,accessibilityLabel:X??void 0},u.createElement(lt,{key:"BottomSheetRootDraggableView",style:ot},W),Y&&u.createElement(OR,{footerComponent:Y})),u.createElement(LR,{key:"BottomSheetHandleContainer",animatedIndex:_e,animatedPosition:ce,handleHeight:ee,enableHandlePanningGesture:c,enableOverDrag:h,enablePanDownToClose:d,overDragResistanceFactor:p,keyboardBehavior:w,handleComponent:H,handleStyle:b,handleIndicatorStyle:A}))))))})),gM=(0,u.memo)(mM);gM.displayName="BottomSheet";const yM=gM;let vM=0;const bM="switch",AM=!0,xM=["name","stackBehavior","enableDismissOnClose","onDismiss","onAnimate","index","snapPoints","enablePanDownToClose","animateOnMount","containerComponent","onChange","children"];function wM(){return wM=Object.assign?Object.assign.bind():function(e){for(var t=1;tn||`bottom-sheet-modal-${vM=(vM+1)%Number.MAX_SAFE_INTEGER,vM}`),[n]),D=(0,u.useCallback)((function(){k.current=-1,I.current=-1,O.current=!1,M.current=!1,R.current=!1}),[]),j=(0,u.useCallback)((function(){const e=M.current;D(),w(P),S(P),e&&v(CM),o&&o()}),[P,D,w,S,o]),B=(0,u.useCallback)(((...e)=>{O.current||E.current?.snapToIndex(...e)}),[]),L=(0,u.useCallback)(((...e)=>{O.current||E.current?.snapToPosition(...e)}),[]),F=(0,u.useCallback)(((...e)=>{O.current||E.current?.expand(...e)}),[]),N=(0,u.useCallback)(((...e)=>{O.current||E.current?.collapse(...e)}),[]),_=(0,u.useCallback)(((...e)=>{O.current||E.current?.close(...e)}),[]),z=(0,u.useCallback)(((...e)=>{O.current||E.current?.forceClose(...e)}),[]),V=(0,u.useCallback)((function(e){requestAnimationFrame((()=>{v({mount:!0,data:e}),x(P,t,r)}))}),[P,r,x]),U=(0,u.useCallback)((function(e){const t=null!=T.current;(-1!==k.current||!1!==O.current||t)&&(t||!(O.current||-1===k.current&&c)?(C(P),R.current=!0,E.current?.forceClose(e)):j())}),[C,j,P,c]),H=(0,u.useCallback)((function(){O.current||(O.current=!0,-1===k.current?I.current=s:I.current=k.current,E.current?.close())}),[s]),q=(0,u.useCallback)((function(){O.current&&!R.current&&(O.current=!1,E.current?.snapToIndex(I.current))}),[]),G=(0,u.useCallback)((function(){-1===k.current&&!1===O.current||(M.current=!1,R.current=!0,O.current?j():(C(P),E.current?.close()))}),[P,j,C]),Y=(0,u.useCallback)((function(e){M.current&&e()}),[]),W=(0,u.useCallback)((function(e,t,n){k.current=e,T.current=null,f&&f(e,t,n)}),[f]),Q=(0,u.useCallback)(((e,t)=>{T.current=t,a&&a(e,t)}),[a]),X=(0,u.useCallback)((function(){O.current||i&&j()}),[i,j]);return(0,u.useImperativeHandle)(t,(()=>({snapToIndex:B,snapToPosition:L,expand:F,collapse:N,close:_,forceClose:z,dismiss:U,present:V,minimize:H,restore:q}))),g?u.createElement(Mf,{key:P,name:P,handleOnMount:Y,handleOnUpdate:Y,handleOnUnmount:G},u.createElement(d,{key:P},u.createElement(yM,wM({},m,{ref:E,key:P,index:s,snapPoints:l,enablePanDownToClose:c,animateOnMount:h,containerHeight:b,containerOffset:A,onChange:W,onClose:X,onAnimate:Q,$modal:!0}),"function"==typeof p?u.createElement(p,{data:y}):p))):null})),EM=(0,u.memo)(SM);EM.displayName="BottomSheetModal";const kM=EM,TM=({children:e})=>{const t=(0,mf.useSharedValue)(YO),n=(0,mf.useSharedValue)(WO),r=(0,u.useRef)([]),i=(0,u.useCallback)(((e,t,n)=>{const i=r.current.slice(),o=i.findIndex((t=>t.key===e)),a=o===i.length-1;if(-1!==o&&a)return;const s=i[i.length-1];s&&!s.willUnmount&&("replace"===n?s.ref?.current?.dismiss():"switch"===n&&s.ref?.current?.minimize()),-1!==o&&(i.splice(o,1),t?.current?.restore()),i.push({key:e,ref:t,willUnmount:!1}),r.current=i}),[]),o=(0,u.useCallback)((e=>{const t=r.current.slice(),n=t.findIndex((t=>t.key===e)),i=n===t.length-1;t.splice(n,1),r.current=t;const o=r.current.length>0,a=r.current[r.current.length-1];i&&o&&a&&!a.willUnmount&&r.current[r.current.length-1].ref?.current?.restore()}),[]),a=(0,u.useCallback)((e=>{const t=r.current.slice(),n=t.findIndex((t=>t.key===e)),i=n===t.length-1;-1!==n&&(t[n].willUnmount=!0);const o=t.length>1;i&&o&&t[t.length-2].ref?.current?.restore(),r.current=t}),[]),s=(0,u.useCallback)((e=>{const t=e?r.current.find((t=>t.key===e)):r.current[r.current.length-1];return!!t&&(t.ref?.current?.dismiss(),!0)}),[]),l=(0,u.useCallback)((()=>{r.current.map((e=>{e.ref?.current?.dismiss()}))}),[]),c=(0,u.useMemo)((()=>({dismiss:s,dismissAll:l})),[s,l]),h=(0,u.useMemo)((()=>({containerHeight:t,containerOffset:n,mountSheet:i,unmountSheet:o,willUnmountSheet:a})),[t,n,i,o,a]);return u.createElement(lO,{value:c},u.createElement(uO,{value:h},u.createElement(wR,{containerOffset:n,containerHeight:t}),u.createElement(zf,null,e)))};function IM({scrollableGesture:e,children:t}){return e?u.createElement(Bi,{gesture:e},t):t}const OM=["nativeGesture","ScrollableComponent","animatedProps","setContentSize","onLayout"];function RM(){return RM=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.createElement(mf.default.ScrollView,RM({},e,{animatedProps:i}))),[i]),h=(0,u.useCallback)((e=>{if(a&&a(e),!l.current){if(l.current=!0,!(navigator.userAgent.indexOf("Safari")>-1))return;window.requestAnimationFrame((()=>{o(e.nativeEvent.target.clientHeight)}))}}),[a,o]);return u.createElement(IM,{scrollableGesture:n},u.createElement(r,RM({ref:t},s,{onLayout:h,renderScrollComponent:c})))})),PM=["focusHook","scrollEventsHandlersHook","enableFooterMarginAdjustment","overScrollMode","keyboardDismissMode","showsVerticalScrollIndicator","style","refreshing","onRefresh","progressViewOffset","refreshControl","onScroll","onScrollBeginDrag","onScrollEndDrag","onContentSizeChange"];function DM(){return DM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{focusHook:i,scrollEventsHandlersHook:o,enableFooterMarginAdjustment:a=!1,overScrollMode:s="never",keyboardDismissMode:l="interactive",showsVerticalScrollIndicator:c=!0,style:h,refreshing:d,onRefresh:f,progressViewOffset:p,refreshControl:m,onScroll:g,onScrollBeginDrag:y,onScrollEndDrag:v,onContentSizeChange:b}=n,A=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(n,PM),x=(0,u.useContext)(sO),{scrollableRef:w,scrollableContentOffsetY:C,scrollHandler:S}=((e,t)=>{const n=(0,u.useRef)(null),r=(0,mf.useSharedValue)(0),{animatedScrollableState:i,animatedAnimationState:o,animatedScrollableContentOffsetY:a}=dO();return(0,u.useEffect)((()=>{const e=(0,JC.A)(n.current);let t=0,s=!1,l=!1,c=0,u=0;function h(n){1===n.touches.length&&(u=e.scrollTop,c=n.touches[0].clientY,l=t<=0)}function d(e){return i.value===qI.LOCKED?e.preventDefault():!(l&&(l=!1,e.touches[0].clientY-c>0))||e.preventDefault()}function f(){if(i.value===qI.LOCKED){const t=0;return e.scroll({top:0,left:0,behavior:"instant"}),void(r.value=t)}}function p(n){return t=e.scrollTop,o.value!==YI.RUNNING&&(r.value=Math.max(0,t),a.value=Math.max(0,t)),!(t<=0&&(n.preventDefault(),n.stopPropagation(),1))}try{window.addEventListener("test",null,{get passive(){s=!0}})}catch(e){}return e.addEventListener("touchstart",h,!!s&&{passive:!0}),e.addEventListener("touchmove",d,!!s&&{passive:!1}),e.addEventListener("touchend",f,!!s&&{passive:!1}),e.addEventListener("scroll",p,!!s&&{passive:!1}),()=>{window.removeEventListener("test",null),e.removeEventListener("touchstart",h),e.removeEventListener("touchmove",d),e.removeEventListener("touchend",f),e.removeEventListener("scroll",p)}}),[o,a,i,r]),{scrollHandler:t,scrollableRef:n,scrollableContentOffsetY:r}})(0,g),{animatedFooterHeight:E,animatedScrollableState:k,enableContentPanningGesture:T}=dO(),{setContentSize:I}=function(){const{enableDynamicSizing:e,animatedContentHeight:t}=dO();return{setContentSize:(0,u.useCallback)((n=>{e&&(t.value=n)}),[e,t])}}();if(!x&&T)throw"'Scrollable' cannot be used out of the BottomSheet!";const O=(0,mf.useAnimatedProps)(function(){const e=()=>({decelerationRate:KI[k.value],showsVerticalScrollIndicator:c?k.value===qI.UNLOCKED:c});return e.__closure={SCROLLABLE_DECELERATION_RATE_MAPPER:KI,animatedScrollableState:k,showsVerticalScrollIndicator:c,SCROLLABLE_STATE:qI},e.__workletHash=0xdb9c63c0b4f,e.__initData=jM,e}(),[k,c]),R=(0,u.useMemo)((()=>x?oo().simultaneousWithExternalGesture(x).shouldCancelWhenOutside(!1):void 0),[x]),M=(e=>{const t=(0,u.useRef)(),n=(0,u.useCallback)(((...e)=>t.current&&t.current(...e)),[]);return(0,u.useEffect)((()=>(t.current=e,()=>{t.current=void 0}))),n})(((e,t)=>{I(t),b&&b(e,t)})),P=(0,mf.useAnimatedStyle)(function(){const e=()=>({marginBottom:a?E.value:0});return e.__closure={enableFooterMarginAdjustment:a,animatedFooterHeight:E},e.__workletHash=0x9e969a11556,e.__initData=BM,e}(),[E,a]),D=(0,u.useMemo)((()=>a?[...h?"length"in h?h:[h]:[],P]:h),[a,h,P]);return(0,u.useImperativeHandle)(r,(()=>w.current)),((e,t,n,r,i=u.useEffect)=>{const{animatedScrollableType:o,animatedScrollableContentOffsetY:a,isContentHeightFixed:s,isScrollableRefreshable:l,setScrollableRef:c,removeScrollableRef:h}=dO();i((0,u.useCallback)((()=>{a.value=n.value,o.value=t,l.value=r,s.value=!1;const i=(0,JC.A)(e.current);return i?c({id:i,node:e}):console.warn("Couldn't find the scrollable node handle id!"),()=>{h(e)}}),[e,t,r,o,a,n,l,s,c,h]))})(w,e,C,void 0!==f,i),u.createElement(MM,DM({ref:w,nativeGesture:R,animatedProps:O,overScrollMode:s,keyboardDismissMode:l,refreshing:d,scrollEventThrottle:16,progressViewOffset:p,style:D,onRefresh:f,onScroll:S,onContentSizeChange:M,setContentSize:I,ScrollableComponent:t,refreshControl:m},A))}))}var FM=__webpack_require__(86152);const NM=mf.default.createAnimatedComponent(FM.A),_M=LM(GI.SECTIONLIST,NM);(0,u.memo)(_M).displayName="BottomSheetSectionList";const zM=mf.default.createAnimatedComponent(Kn.A),VM=LM(GI.FLATLIST,zM);(0,u.memo)(VM).displayName="BottomSheetFlatList";const UM=mf.default.createAnimatedComponent(Qo.A),HM=LM(GI.SCROLLVIEW,UM),qM=(0,u.memo)(HM);qM.displayName="BottomSheetScrollView";const GM=qM;var YM=__webpack_require__(38510);const WM=mf.default.createAnimatedComponent(YM.A),QM=LM(GI.VIRTUALIZEDLIST,WM);(0,u.memo)(QM).displayName="BottomSheetVirtualizedList";const XM=["focusHook","scrollEventsHandlersHook","enableFooterMarginAdjustment"],JM=["data"];function ZM(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function KM(){return KM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{focusHook:n,scrollEventsHandlersHook:r,enableFooterMarginAdjustment:i}=e,o=ZM(e,XM);(0,u.useMemo)((()=>{if(!$M)throw"You need to install FlashList first, `yarn install @shopify/flash-list`"}),[]);const a=(0,u.useMemo)((()=>(0,u.forwardRef)(((e,t)=>{let o=ZM(e,JM);return u.createElement(GM,KM({ref:t},o,{focusHook:n,scrollEventsHandlersHook:r,enableFooterMarginAdjustment:i}))}))),[n,r,i]);return u.createElement($M.FlashList,KM({ref:t,renderScrollComponent:a},o))})),tP=(fr.A.create({container:{flex:1,overflow:"visible"}}),(0,u.memo)(eP),["focusHook","enableFooterMarginAdjustment","onLayout","style","children"]);function nP(){return nP=Object.assign?Object.assign.bind():function(e){for(var t=1;tfr.A.flatten(i)),[i]),p=(0,mf.useAnimatedStyle)(function(){const e=function(){if(!n)return f??{};const e="number"==typeof f?.marginBottom?f.marginBottom:0;return Object.assign({},f??{},{marginBottom:e+c.value})};return e.__closure={enableFooterMarginAdjustment:n,flattenStyle:f,animatedFooterHeight:c},e.__workletHash=3676907916412,e.__initData=rP,e}(),[f,n,c]),m=(0,u.useCallback)((()=>{s.value=0,l.value=GI.VIEW}),[s,l]),g=(0,u.useCallback)((e=>{h&&(d.value=e.nativeEvent.layout.height),r&&r(e)}),[r,d,h]);return t(m),u.createElement(mf.default.View,nP({},a,{onLayout:g,style:p}),o)}));iP.displayName="BottomSheetView";const oP=["onFocus","onBlur"];function aP(){return aP=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{onFocus:n,onBlur:r}=e,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,oP);const{shouldHandleKeyboardEvents:o}=dO(),a=(0,u.useCallback)((e=>{o.value=!0,n&&n(e)}),[n,o]),s=(0,u.useCallback)((e=>{o.value=!1,r&&r(e)}),[r,o]);return(0,u.useEffect)((()=>()=>{o.value=!1}),[o]),u.createElement(Zo,aP({ref:t,onFocus:a,onBlur:s},i))}));(0,u.memo)(sP).displayName="BottomSheetTextInput";const lP=fr.A.create({container:{backgroundColor:"black"}}),cP={code:"function gorhom_BottomSheetBackdropJs1(){const{runOnJS,handleOnPress}=this.__closure;runOnJS(handleOnPress)();}"},uP={code:"function gorhom_BottomSheetBackdropJs2(){const{interpolate,animatedIndex,disappearsOnIndex,appearsOnIndex,opacity,Extrapolation}=this.__closure;return{opacity:interpolate(animatedIndex.value,[-1,disappearsOnIndex,appearsOnIndex],[0,0,opacity],Extrapolation.CLAMP),flex:1};}"},hP={code:"function gorhom_BottomSheetBackdropJs3(){const{animatedIndex,disappearsOnIndex}=this.__closure;return animatedIndex.value<=disappearsOnIndex;}"},dP={code:"function gorhom_BottomSheetBackdropJs4(shouldDisableTouchability,previous){const{runOnJS,handleContainerTouchability}=this.__closure;if(shouldDisableTouchability===previous){return;}runOnJS(handleContainerTouchability)(shouldDisableTouchability);}"},fP=(0,u.memo)((({animatedIndex:e,opacity:t,appearsOnIndex:n,disappearsOnIndex:r,enableTouchThrough:i,pressBehavior:o="close",onPress:a,style:s,children:l,accessible:c=!0,accessibilityRole:h="button",accessibilityLabel:d="Bottom sheet backdrop",accessibilityHint:f="Tap to close the bottom sheet"})=>{const{snapToIndex:p,close:m}=hO(),g=(0,u.useRef)(!1),y=t??.5,v=n??1,b=r??0,A=i??!1,[x,w]=(0,u.useState)(A?"none":"auto"),C=(0,u.useCallback)((()=>{a?.(),"close"===o?m():"collapse"===o?p(b):"number"==typeof o&&p(o)}),[p,m,b,o,a]),S=(0,u.useCallback)((e=>{g.current&&w(e?"none":"auto")}),[]),E=(0,u.useMemo)((()=>eo().onEnd(function(){const e=function(){(0,mf.runOnJS)(C)()};return e.__closure={runOnJS:mf.runOnJS,handleOnPress:C},e.__workletHash=0xf33f721580c,e.__initData=cP,e}())),[C]),k=(0,mf.useAnimatedStyle)(function(){const t=()=>({opacity:(0,mf.interpolate)(e.value,[-1,b,v],[0,0,y],mf.Extrapolation.CLAMP),flex:1});return t.__closure={interpolate:mf.interpolate,animatedIndex:e,disappearsOnIndex:b,appearsOnIndex:v,opacity:y,Extrapolation:mf.Extrapolation},t.__workletHash=0xdb8f771a439,t.__initData=uP,t}(),[e,v,b,y]),T=(0,u.useMemo)((()=>[lP.container,s,k]),[s,k]);(0,mf.useAnimatedReaction)(function(){const t=()=>e.value<=b;return t.__closure={animatedIndex:e,disappearsOnIndex:b},t.__workletHash=8387671218592,t.__initData=hP,t}(),function(){const e=function(e,t){e!==t&&(0,mf.runOnJS)(S)(e)};return e.__closure={runOnJS:mf.runOnJS,handleContainerTouchability:S},e.__workletHash=0x9c959d3f2fb,e.__initData=dP,e}(),[b]),(0,u.useEffect)((()=>(g.current=!0,()=>{g.current=!1})),[]);const I=u.createElement(mf.default.View,{style:T,pointerEvents:x,accessible:c??void 0,accessibilityRole:h??void 0,accessibilityLabel:d??void 0,accessibilityHint:f||`Tap to ${"string"==typeof o?o:"move"} the Bottom Sheet`},l);return"none"!==o?u.createElement(Bi,{gesture:E},I):I}));fP.displayName="BottomSheetBackdrop";const pP=fr.A.create({container:{position:"absolute",top:0,left:0,right:0,zIndex:9999,pointerEvents:"box-none"}}),mP={code:"function gorhom_BottomSheetFooterJs1(){const{animatedFooterPosition,animatedKeyboardState,KEYBOARD_STATE,bottomInset}=this.__closure;let footerTranslateY=animatedFooterPosition.value;if(animatedKeyboardState.value!==KEYBOARD_STATE.SHOWN){footerTranslateY=footerTranslateY-bottomInset;}return{transform:[{translateY:Math.max(0,footerTranslateY)}]};}"},gP=(0,u.memo)((function({animatedFooterPosition:e,bottomInset:t=0,style:n,children:r}){const{animatedFooterHeight:i,animatedKeyboardState:o}=dO(),a=(0,mf.useAnimatedStyle)(function(){const n=function(){let n=e.value;return o.value!==XI.SHOWN&&(n-=t),{transform:[{translateY:Math.max(0,n)}]}};return n.__closure={animatedFooterPosition:e,animatedKeyboardState:o,KEYBOARD_STATE:XI,bottomInset:t},n.__workletHash=4126112676409,n.__initData=mP,n}(),[t,o,e]),s=(0,u.useMemo)((()=>[pP.container,n,a]),[n,a]),l=(0,u.useCallback)((({nativeEvent:{layout:{height:e}}})=>{i.value=e}),[i]);return null!==r?u.createElement(mf.default.View,{onLayout:l,style:s},r):null}));gP.displayName="BottomSheetFooter";const yP={TouchableOpacity:Vo,TouchableHighlight:Go,TouchableWithoutFeedback:Lo},{TouchableHighlight:vP,TouchableOpacity:bP,TouchableWithoutFeedback:AP}=yP;class xP extends Qw{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),wP(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return CP(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return CP(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),Nw(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&SP(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){return!n.keepPreviousData&&(void 0!==n.placeholderData?t.isPlaceholderData:!Nw(e.getCurrentResult(),t))}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(Ew)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Sw||this.currentResult.isStale||!kw(this.options.staleTime))return;const e=Iw(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!Sw&&!1!==this.options.enabled&&kw(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||Xw.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,i=this.currentResult,o=this.currentResultState,a=this.currentResultOptions,s=e!==n,l=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:u}=e;let h,{dataUpdatedAt:d,error:f,errorUpdatedAt:p,fetchStatus:m,status:g}=u,y=!1,v=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&&wP(e,t),a=i&&SP(e,n,t,r);(o||a)&&(m=$w(e.options.networkMode)?"fetching":"paused",d||(g="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}if(t.keepPreviousData&&!u.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==g)h=c.data,d=c.dataUpdatedAt,g=c.status,y=!0;else if(t.select&&void 0!==u.data)if(i&&u.data===(null==o?void 0:o.data)&&t.select===this.selectFn)h=this.selectResult;else try{this.selectFn=t.select,h=t.select(u.data),h=Gw(null==i?void 0:i.data,h,t),this.selectResult=h,this.selectError=null}catch(e){this.selectError=e}else h=u.data;if(void 0!==t.placeholderData&&void 0===h&&"loading"===g){let e;if(null!=i&&i.isPlaceholderData&&t.placeholderData===(null==a?void 0:a.placeholderData))e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(g="success",h=Gw(null==i?void 0:i.data,e,t),v=!0)}this.selectError&&(f=this.selectError,h=this.selectResult,p=Date.now(),g="error");const b="fetching"===m,A="loading"===g,x="error"===g;return{status:g,fetchStatus:m,isLoading:A,isSuccess:"success"===g,isError:x,isInitialLoading:A&&b,data:h,dataUpdatedAt:d,error:f,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!A,isLoadingError:x&&0===u.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:v,isPreviousData:y,isRefetchError:x&&0!==u.dataUpdatedAt,isStale:EP(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Nw(n,t))return;this.currentResult=n;const r={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||tC(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){Ww.batch((()=>{var t,n,r,i;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(i=this.options).onSettled)||r.call(i,this.currentResult.data,null);else if(e.onError){var o,a,s,l;null==(o=(a=this.options).onError)||o.call(a,this.currentResult.error),null==(s=(l=this.options).onSettled)||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function wP(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&CP(e,t,t.refetchOnMount)}function CP(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&EP(e,t)}return!1}function SP(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&EP(e,n)}function EP(e,t){return e.isStaleByTime(t.staleTime)}var kP=__webpack_require__(19888);const TP=kP.useSyncExternalStore;const IP=u.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),OP=()=>u.useContext(IP),RP=u.createContext(!1),MP=()=>u.useContext(RP);function PP(e,t){return"function"==typeof e?e(...t):!!e}RP.Provider;const DP=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},jP=e=>{u.useEffect((()=>{e.clearReset()}),[e])},BP=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&PP(n,[e.error,r]),LP=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},FP=(e,t)=>e.isLoading&&e.isFetching&&!t,NP=(e,t,n)=>(null==e?void 0:e.suspense)&&FP(t,n),_P=(e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}));function zP(e,t){const n=gC({context:e.context}),r=MP(),i=OP(),o=n.defaultQueryOptions(e);o._optimisticResults=r?"isRestoring":"optimistic",o.onError&&(o.onError=Ww.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=Ww.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=Ww.batchCalls(o.onSettled)),LP(o),DP(o,i),jP(i);const[a]=u.useState((()=>new t(n,o))),s=a.getOptimisticResult(o);if(TP(u.useCallback((e=>{const t=r?()=>{}:a.subscribe(Ww.batchCalls(e));return a.updateResult(),t}),[a,r]),(()=>a.getCurrentResult()),(()=>a.getCurrentResult())),u.useEffect((()=>{a.setOptions(o,{listeners:!1})}),[o,a]),NP(o,s,r))throw _P(o,a,i);if(BP({result:s,errorResetBoundary:i,useErrorBoundary:o.useErrorBoundary,query:a.getCurrentQuery()}))throw s.error;return o.notifyOnChangeProps?s:a.trackResult(s)}function VP(e,t,n){return zP(Ow(e,t,n),xP)}function UP(e,t){return function(){return e.apply(t,arguments)}}const{toString:HP}=Object.prototype,{getPrototypeOf:qP}=Object,{iterator:GP,toStringTag:YP}=Symbol,WP=(e=>t=>{const n=HP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),QP=e=>(e=e.toLowerCase(),t=>WP(t)===e),XP=e=>t=>typeof t===e,{isArray:JP}=Array,ZP=XP("undefined"),KP=QP("ArrayBuffer"),$P=XP("string"),eD=XP("function"),tD=XP("number"),nD=e=>null!==e&&"object"==typeof e,rD=e=>{if("object"!==WP(e))return!1;const t=qP(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||YP in e||GP in e)},iD=QP("Date"),oD=QP("File"),aD=QP("Blob"),sD=QP("FileList"),lD=QP("URLSearchParams"),[cD,uD,hD,dD]=["ReadableStream","Request","Response","Headers"].map(QP);function fD(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),JP(e))for(r=0,i=e.length;r0;)if(r=n[i],t===r.toLowerCase())return r;return null}const mD="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,gD=e=>!ZP(e)&&e!==mD,yD=(vD="undefined"!=typeof Uint8Array&&qP(Uint8Array),e=>vD&&e instanceof vD);var vD;const bD=QP("HTMLFormElement"),AD=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xD=QP("RegExp"),wD=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};fD(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},CD=QP("AsyncFunction"),SD=(ED="function"==typeof setImmediate,kD=eD(mD.postMessage),ED?setImmediate:kD?(TD=`axios@${Math.random()}`,ID=[],mD.addEventListener("message",(({source:e,data:t})=>{e===mD&&t===TD&&ID.length&&ID.shift()()}),!1),e=>{ID.push(e),mD.postMessage(TD,"*")}):e=>setTimeout(e));var ED,kD,TD,ID;const OD="undefined"!=typeof queueMicrotask?queueMicrotask.bind(mD):{env:{}}.nextTick||SD,RD={isArray:JP,isArrayBuffer:KP,isBuffer:function(e){return null!==e&&!ZP(e)&&null!==e.constructor&&!ZP(e.constructor)&&eD(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||eD(e.append)&&("formdata"===(t=WP(e))||"object"===t&&eD(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&KP(e.buffer),t},isString:$P,isNumber:tD,isBoolean:e=>!0===e||!1===e,isObject:nD,isPlainObject:rD,isReadableStream:cD,isRequest:uD,isResponse:hD,isHeaders:dD,isUndefined:ZP,isDate:iD,isFile:oD,isBlob:aD,isRegExp:xD,isFunction:eD,isStream:e=>nD(e)&&eD(e.pipe),isURLSearchParams:lD,isTypedArray:yD,isFileList:sD,forEach:fD,merge:function e(){const{caseless:t}=gD(this)&&this||{},n={},r=(r,i)=>{const o=t&&pD(n,i)||i;rD(n[o])&&rD(r)?n[o]=e(n[o],r):rD(r)?n[o]=e({},r):JP(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e(fD(t,((t,r)=>{n&&eD(t)?e[r]=UP(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&qP(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:WP,kindOfTest:QP,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(JP(e))return e;let t=e.length;if(!tD(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[GP]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:bD,hasOwnProperty:AD,hasOwnProp:AD,reduceDescriptors:wD,freezeMethods:e=>{wD(e,((t,n)=>{if(eD(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];eD(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return JP(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:pD,global:mD,isContextDefined:gD,isSpecCompliantForm:function(e){return!!(e&&eD(e.append)&&"FormData"===e[YP]&&e[GP])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(nD(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=JP(e)?[]:{};return fD(e,((e,t)=>{const o=n(e,r+1);!ZP(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:CD,isThenable:e=>e&&(nD(e)||eD(e))&&eD(e.then)&&eD(e.catch),setImmediate:SD,asap:OD,isIterable:e=>null!=e&&eD(e[GP])};function MD(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}RD.inherits(MD,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:RD.toJSONObject(this.config),code:this.code,status:this.status}}});const PD=MD.prototype,DD={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{DD[e]={value:e}})),Object.defineProperties(MD,DD),Object.defineProperty(PD,"isAxiosError",{value:!0}),MD.from=(e,t,n,r,i,o)=>{const a=Object.create(PD);return RD.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),MD.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const jD=MD;function BD(e){return RD.isPlainObject(e)||RD.isArray(e)}function LD(e){return RD.endsWith(e,"[]")?e.slice(0,-2):e}function FD(e,t,n){return e?e.concat(t).map((function(e,t){return e=LD(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ND=RD.toFlatObject(RD,{},null,(function(e){return/^is[A-Z]/.test(e)})),_D=function(e,t,n){if(!RD.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=RD.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!RD.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&RD.isSpecCompliantForm(t);if(!RD.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(RD.isDate(e))return e.toISOString();if(!s&&RD.isBlob(e))throw new jD("Blob is not supported. Use a Buffer instead.");return RD.isArrayBuffer(e)||RD.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(RD.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(RD.isArray(e)&&function(e){return RD.isArray(e)&&!e.some(BD)}(e)||(RD.isFileList(e)||RD.endsWith(n,"[]"))&&(s=RD.toArray(e)))return n=LD(n),s.forEach((function(e,r){!RD.isUndefined(e)&&null!==e&&t.append(!0===a?FD([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!BD(e)||(t.append(FD(i,n,o),l(e)),!1)}const u=[],h=Object.assign(ND,{defaultVisitor:c,convertValue:l,isVisitable:BD});if(!RD.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!RD.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),RD.forEach(n,(function(n,o){!0===(!(RD.isUndefined(n)||null===n)&&i.call(t,n,RD.isString(o)?o.trim():o,r,h))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t};function zD(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function VD(e,t){this._pairs=[],e&&_D(e,this,t)}const UD=VD.prototype;UD.append=function(e,t){this._pairs.push([e,t])},UD.toString=function(e){const t=e?function(t){return e.call(this,t,zD)}:zD;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const HD=VD;function qD(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function GD(e,t,n){if(!t)return e;const r=n&&n.encode||qD;RD.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(o=i?i(t,n):RD.isURLSearchParams(t)?t.toString():new HD(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const YD=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){RD.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},WD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},QD={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:HD,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},XD="undefined"!=typeof window&&"undefined"!=typeof document,JD="object"==typeof navigator&&navigator||void 0,ZD=XD&&(!JD||["ReactNative","NativeScript","NS"].indexOf(JD.product)<0),KD="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,$D=XD&&window.location.href||"http://localhost",ej={...e,...QD},tj=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;return o=!o&&RD.isArray(r)?r.length:o,s?(RD.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&RD.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&RD.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r{t(function(e){return RD.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},nj={transitional:WD,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=RD.isObject(e);if(i&&RD.isHTMLForm(e)&&(e=new FormData(e)),RD.isFormData(e))return r?JSON.stringify(tj(e)):e;if(RD.isArrayBuffer(e)||RD.isBuffer(e)||RD.isStream(e)||RD.isFile(e)||RD.isBlob(e)||RD.isReadableStream(e))return e;if(RD.isArrayBufferView(e))return e.buffer;if(RD.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return _D(e,new ej.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ej.isNode&&RD.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=RD.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return _D(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e){if(RD.isString(e))try{return(0,JSON.parse)(e),RD.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||nj.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(RD.isResponse(e)||RD.isReadableStream(e))return e;if(e&&RD.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw jD.from(e,jD.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ej.classes.FormData,Blob:ej.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};RD.forEach(["delete","get","head","post","put","patch"],(e=>{nj.headers[e]={}}));const rj=nj,ij=RD.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),oj=Symbol("internals");function aj(e){return e&&String(e).trim().toLowerCase()}function sj(e){return!1===e||null==e?e:RD.isArray(e)?e.map(sj):String(e)}function lj(e,t,n,r,i){return RD.isFunction(r)?r.call(this,t,n):(i&&(t=n),RD.isString(t)?RD.isString(r)?-1!==t.indexOf(r):RD.isRegExp(r)?r.test(t):void 0:void 0)}class cj{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=aj(t);if(!i)throw new Error("header name must be a non-empty string");const o=RD.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=sj(e))}const o=(e,t)=>RD.forEach(e,((e,n)=>i(e,n,t)));if(RD.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(RD.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&ij[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(RD.isObject(e)&&RD.isIterable(e)){let n,r,i={};for(const t of e){if(!RD.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[r=t[0]]=(n=i[r])?RD.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=aj(e)){const n=RD.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(RD.isFunction(t))return t.call(this,e,n);if(RD.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=aj(e)){const n=RD.findKey(this,e);return!(!n||void 0===this[n]||t&&!lj(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=aj(e)){const i=RD.findKey(n,e);!i||t&&!lj(0,n[i],i,t)||(delete n[i],r=!0)}}return RD.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!lj(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return RD.forEach(this,((r,i)=>{const o=RD.findKey(n,i);if(o)return t[o]=sj(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=sj(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return RD.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&RD.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[oj]=this[oj]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=aj(e);t[r]||(function(e,t){const n=RD.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return RD.isArray(e)?e.forEach(r):r(e),this}}cj.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),RD.reduceDescriptors(cj.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),RD.freezeMethods(cj);const uj=cj;function hj(e,t){const n=this||rj,r=t||n,i=uj.from(r.headers);let o=r.data;return RD.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function dj(e){return!(!e||!e.__CANCEL__)}function fj(e,t,n){jD.call(this,null==e?"canceled":e,jD.ERR_CANCELED,t,n),this.name="CanceledError"}RD.inherits(fj,jD,{__CANCEL__:!0});const pj=fj;function mj(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new jD("Request failed with status code "+n.status,[jD.ERR_BAD_REQUEST,jD.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const gj=(e,t,n=3)=>{let r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];i||(i=l),n[o]=s,r[o]=l;let u=a,h=0;for(;u!==o;)h+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),o-s)))},()=>n&&a(n)]}((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},yj=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},vj=e=>(...t)=>RD.asap((()=>e(...t))),bj=ej.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ej.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ej.origin),ej.navigator&&/(msie|trident)/i.test(ej.navigator.userAgent)):()=>!0,Aj=ej.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];RD.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),RD.isString(r)&&a.push("path="+r),RD.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function xj(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const wj=e=>e instanceof uj?{...e}:e;function Cj(e,t){t=t||{};const n={};function r(e,t,n,r){return RD.isPlainObject(e)&&RD.isPlainObject(t)?RD.merge.call({caseless:r},e,t):RD.isPlainObject(t)?RD.merge({},t):RD.isArray(t)?t.slice():t}function i(e,t,n,i){return RD.isUndefined(t)?RD.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!RD.isUndefined(t))return r(void 0,t)}function a(e,t){return RD.isUndefined(t)?RD.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(wj(e),wj(t),0,!0)};return RD.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,a=o(e[r],t[r],r);RD.isUndefined(a)&&o!==s||(n[r]=a)})),n}const Sj=e=>{const t=Cj({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=uj.from(s),t.url=GD(xj(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),RD.isFormData(r))if(ej.hasStandardBrowserEnv||ej.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ej.hasStandardBrowserEnv&&(i&&RD.isFunction(i)&&(i=i(t)),i||!1!==i&&bj(t.url))){const e=o&&a&&Aj.read(a);e&&s.set(o,e)}return t},Ej="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Sj(e);let i=r.data;const o=uj.from(r.headers).normalize();let a,s,l,c,u,{responseType:h,onUploadProgress:d,onDownloadProgress:f}=r;function p(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=uj.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());mj((function(e){t(e),p()}),(function(e){n(e),p()}),{data:h&&"text"!==h&&"json"!==h?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new jD("Request aborted",jD.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new jD("Network Error",jD.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||WD;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new jD(t,i.clarifyTimeoutError?jD.ETIMEDOUT:jD.ECONNABORTED,e,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&RD.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),RD.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),h&&"json"!==h&&(m.responseType=r.responseType),f&&([l,u]=gj(f,!0),m.addEventListener("progress",l)),d&&m.upload&&([s,c]=gj(d),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new pj(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===ej.protocols.indexOf(y)?n(new jD("Unsupported protocol "+y+":",jD.ERR_BAD_REQUEST,e)):m.send(i||null)}))},kj=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof jD?t:new pj(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,i(new jD(`timeout ${t} of ms exceeded`,jD.ETIMEDOUT))}),t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=r;return s.unsubscribe=()=>RD.asap(a),s}},Tj=function*(e,t){let n=e.byteLength;if(!t||n{const i=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Tj(n,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},Oj="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Rj=Oj&&"function"==typeof ReadableStream,Mj=Oj&&("function"==typeof TextEncoder?(Pj=new TextEncoder,e=>Pj.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Pj;const Dj=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},jj=Rj&&Dj((()=>{let e=!1;const t=new Request(ej.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Bj=Rj&&Dj((()=>RD.isReadableStream(new Response("").body))),Lj={stream:Bj&&(e=>e.body)};var Fj;Oj&&(Fj=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Lj[e]&&(Lj[e]=RD.isFunction(Fj[e])?t=>t[e]():(t,n)=>{throw new jD(`Response type '${e}' is not supported`,jD.ERR_NOT_SUPPORT,n)})})));const Nj=Oj&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:h="same-origin",fetchOptions:d}=Sj(e);c=c?(c+"").toLowerCase():"text";let f,p=kj([i,o&&o.toAbortSignal()],a);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(l&&jj&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=RD.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(RD.isBlob(e))return e.size;if(RD.isSpecCompliantForm(e)){const t=new Request(ej.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return RD.isArrayBufferView(e)||RD.isArrayBuffer(e)?e.byteLength:(RD.isURLSearchParams(e)&&(e+=""),RD.isString(e)?(await Mj(e)).byteLength:void 0)})(t):n})(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(RD.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=yj(g,gj(vj(l)));r=Ij(n.body,65536,e,t)}}RD.isString(h)||(h=h?"include":"omit");const i="credentials"in Request.prototype;f=new Request(t,{...d,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:i?h:void 0});let o=await fetch(f);const a=Bj&&("stream"===c||"response"===c);if(Bj&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=RD.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&yj(t,gj(vj(s),!0))||[];o=new Response(Ij(o.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let y=await Lj[RD.findKey(Lj,c)||"text"](o,e);return!a&&m&&m(),await new Promise(((t,n)=>{mj(t,n,{data:y,headers:uj.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:f})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new jD("Network Error",jD.ERR_NETWORK,e,f),{cause:t.cause||t});throw jD.from(t,t&&t.code,e,f)}}),_j={http:null,xhr:Ej,fetch:Nj};RD.forEach(_j,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const zj=e=>`- ${e}`,Vj=e=>RD.isFunction(e)||null===e||!1===e,Uj=e=>{e=RD.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(zj).join("\n"):" "+zj(e[0]):"as no adapter specified";throw new jD("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Hj(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pj(null,e)}function qj(e){return Hj(e),e.headers=uj.from(e.headers),e.data=hj.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Uj(e.adapter||rj.adapter)(e).then((function(t){return Hj(e),t.data=hj.call(e,e.transformResponse,t),t.headers=uj.from(t.headers),t}),(function(t){return dj(t)||(Hj(e),t&&t.response&&(t.response.data=hj.call(e,e.transformResponse,t.response),t.response.headers=uj.from(t.response.headers))),Promise.reject(t)}))}const Gj={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Gj[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Yj={};Gj.transitional=function(e,t,n){function r(e,t){return"[Axios v1.9.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new jD(r(i," has been removed"+(t?" in "+t:"")),jD.ERR_DEPRECATED);return t&&!Yj[i]&&(Yj[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},Gj.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Wj={assertOptions:function(e,t,n){if("object"!=typeof e)throw new jD("options must be an object",jD.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new jD("option "+o+" must be "+n,jD.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new jD("Unknown option "+o,jD.ERR_BAD_OPTION)}},validators:Gj},Qj=Wj.validators;class Xj{constructor(e){this.defaults=e||{},this.interceptors={request:new YD,response:new YD}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Cj(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&Wj.assertOptions(n,{silentJSONParsing:Qj.transitional(Qj.boolean),forcedJSONParsing:Qj.transitional(Qj.boolean),clarifyTimeoutError:Qj.transitional(Qj.boolean)},!1),null!=r&&(RD.isFunction(r)?t.paramsSerializer={serialize:r}:Wj.assertOptions(r,{encode:Qj.function,serialize:Qj.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Wj.assertOptions(t,{baseUrl:Qj.spelling("baseURL"),withXsrfToken:Qj.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&RD.merge(i.common,i[t.method]);i&&RD.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=uj.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,h=0;if(!s){const e=[qj.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);h{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new pj(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Zj((function(t){e=t})),cancel:e}}}const Kj=Zj,$j={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($j).forEach((([e,t])=>{$j[t]=e}));const eB=$j,tB=function e(t){const n=new Jj(t),r=UP(Jj.prototype.request,n);return RD.extend(r,Jj.prototype,n,{allOwnKeys:!0}),RD.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Cj(t,n))},r}(rj);tB.Axios=Jj,tB.CanceledError=pj,tB.CancelToken=Kj,tB.isCancel=dj,tB.VERSION="1.9.0",tB.toFormData=_D,tB.AxiosError=jD,tB.Cancel=tB.CanceledError,tB.all=function(e){return Promise.all(e)},tB.spread=function(e){return function(t){return e.apply(null,t)}},tB.isAxiosError=function(e){return RD.isObject(e)&&!0===e.isAxiosError},tB.mergeConfig=Cj,tB.AxiosHeaders=uj,tB.formToJSON=e=>tj(RD.isHTMLForm(e)?new FormData(e):e),tB.getAdapter=Uj,tB.HttpStatusCode=eB,tB.default=tB;const nB=tB;function rB(e){return null!=e&&("string"==typeof e?""!==e:"number"==typeof e||(Array.isArray(e)?0!==e.length:0!==Object.keys(e).length))}let iB=function(e){return e.accessToken="accessToken",e.refreshToken="refreshToken",e.idToken="idToken",e}({});function oB(e){return e.extensions?.statusCode||e.extensions?.response?.statusCode||e.message?.toLowerCase().includes("unauthorized")&&401||e.message?.toLowerCase().includes("forbidden")&&403||null}class aB extends Error{constructor(e){super(),this.original_status=e.status;const t=(n=e.data.errors).find((e=>[403,401].includes(oB(e)??0)))??n.find((e=>null!==oB(e)))??n[0];var n;this.status=oB(t)??e.status,this.message=t?.message??e.statusText,e.status=this.status,this.response=e,this.request=e.request,this.config=e.config}}const{Axios:sB,AxiosError:lB,CanceledError:cB,isCancel:uB,CancelToken:hB,VERSION:dB,all:fB,Cancel:pB,isAxiosError:mB,spread:gB,toFormData:yB,AxiosHeaders:vB,HttpStatusCode:bB,formToJSON:AB,getAdapter:xB,mergeConfig:wB}=nB;async function CB(){try{return(await jB.get(rS.identityAPIUrl+"/connect/userinfo")).data}catch(e){return Promise.reject("Could not fetch user profile: "+JSON.stringify(e,null,2))}}async function SB(){await kS.removeItem(iB.accessToken),await kS.removeItem(iB.refreshToken),await kS.removeItem(iB.idToken)}function EB(e){return JSON.parse(sk.hp.from(e.split(".")[1],"base64").toString())}function kB(){const[e,t]=(0,u.useState)(null);return(0,u.useEffect)((()=>(async function(){t(await kS.getItem(iB.accessToken))}(),ZC.on("accessTokenUpdated",(async()=>{t(await kS.getItem(iB.accessToken))})))),[]),(0,u.useMemo)((()=>e?EB(e):null),[e])}const TB=e=>{const{clientId:t,clientSecret:n}=Da.select({ios:rS.clientCredentials.ios,android:rS.clientCredentials.android,desktop:rS.clientCredentials.desktop,panel:rS.clientCredentials.panel,default:rS.clientCredentials.web});return new URLSearchParams({client_id:t,client_secret:n,grant_type:"refresh_token",refresh_token:e})},IB=[`${rS.weatherTilesUrl}/forecast/weather.json`];async function OB(e,t){const n=e.config;if(n)switch(e.response?.status){case 401:try{if(n.NG_retryCount&&n.NG_retryCount>=3)throw new Error("Max retry count reached");const t=await RB.getToken(),{subscriptions:r}=EB(t);if(!r||!r.includes("charts"))return HS.info("Refreshed access token is missing required subscriptions"),e.response;n.headers.Authorization=`Bearer ${t}`,n.NG_retryCount=0}catch(e){throw oS.err("Failed to handle api error.",e),e}return n.NG_retryCount=(n.NG_retryCount||0)+1,t(n);case 403:n.url&&!IB.includes(n.url)&&(oS.err("Missing access to API. Forcing signout."),ZC.emit("logout"))}throw e}const RB={getTokenPromise:null,getToken(){return this.getTokenPromise||(oS.debug("Token request created & buffered!"),this.getTokenPromise=async function(){try{const e=await MS.getItem(iB.refreshToken),t=await MS.getItem(iB.accessToken);if(!e)return Promise.reject("No refresh token found");const n=TB(e),r=await nB.post(rS.identityAPIUrl+"/connect/token",n.toString(),{headers:{"Content-Type":"application/x-www-form-urlencoded"},withCredentials:!0}),i={accessToken:r.data.access_token,refreshToken:r.data.refresh_token,idToken:r.data.id_token};return await MS.setItem(iB.accessToken,i.accessToken),await MS.setItem(iB.refreshToken,i.refreshToken),await MS.setItem(iB.idToken,i.idToken),ZC.emit("accessTokenUpdated",{wasExpired:!!t&&1e3*EB(t).exp!!mB(e)&&!(!e.response?.data||!("error"in e.response.data)))(e)&&"invalid_grant"===e.response?.data?.error?Promise.reject("invalid_grant"):Promise.reject(e)}}().then((({accessToken:e})=>e)).catch((e=>{throw oS.err(e),"string"==typeof e&&e.includes("invalid_grant")&&(oS.err("Failed to refresh tokens. Forcing signout."),ZC.emit("logout")),e})).finally((()=>{this.getTokenPromise=null}))),oS.debug("Token request already in progress, waiting for response."),this.getTokenPromise}},MB=nB.create(),PB=nB.create();async function DB(e){const t=await MS.getItem(iB.accessToken);return t&&(e.headers.Authorization=`Bearer ${t}`),e}MB.interceptors.request.use(DB,void 0),MB.interceptors.response.use(void 0,(e=>OB(e,MB))),PB.interceptors.request.use(DB,void 0),PB.interceptors.response.use((e=>rB(e.data.errors)?OB(new aB(e),PB):e),(e=>OB(e,PB)));const jB=MB,BB=PB;function LB(e){return"string"==typeof e?e:`${e.icao_airport_identifier}/${e.index_number}/${/_CAO$/.test(e.id)?"CAO":"STD"}`}const FB=async(e,t=!0)=>{const n=t?e.image_day_url:e.image_night_url,r=await jB.get(n,{responseType:"blob"});return new File([r.data],`${e.id}.png`)},NB=(e,t)=>VP(["charts-image",e,t],(()=>e?FB(e,t):null),{enabled:null!=e});class _B extends Qw{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),Nw(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=this.currentMutation)||e.removeObserver(this)}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){Ww.batch((()=>{var t,n,r,i;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(i=this.mutateOptions).onSettled)||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var o,a,s,l;null==(o=(a=this.mutateOptions).onError)||o.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(l=this.mutateOptions).onSettled)||s.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}}function zB(e,t,n){const r=function(e,t,n){return Uw(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),i=gC({context:r.context}),[o]=u.useState((()=>new _B(i,r)));u.useEffect((()=>{o.setOptions(r)}),[o,r]);const a=TP(u.useCallback((e=>o.subscribe(Ww.batchCalls(e))),[o]),(()=>o.getCurrentResult()),(()=>o.getCurrentResult())),s=u.useCallback(((e,t)=>{o.mutate(e,t).catch(VB)}),[o]);if(a.error&&PP(o.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}function VB(){}var UB=__webpack_require__(94531);const HB=UB.gql` fragment flightFragment on Flight { id simbriefId title rules chartMode routestring cruisingAltitude alternates originAlternates routeAlternates createdAt updatedAt isFavorite pinboard { id title charts { airport id name indexNumber isGeoReferenced category } scratchpads { id template createdAt updatedAt } createdAt updatedAt } } `;let qB=function(e){return e.IFR="IFR",e.VFR="VFR",e}({}),GB=function(e){return e.STD="STD",e.CAO="CAO",e}({});async function YB(e){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation NewFlight($input: CreateFlightInput!) { createFlight(flight: $input) { ...flightFragment } } ${HB} `,variables:{input:{rules:e?.rules||qB.IFR,title:e?.title||"New Flight",routestring:e?.routestring||"",cruisingAltitude:e?.cruisingAltitude||38e3,chartMode:e?.chartMode,alternates:e?.alternates??[],originAlternates:e?.originAlternates??[],routeAlternates:e?.routeAlternates??[],simbriefId:e?.simbriefId}}},{headers:{"Content-Type":"application/json"}})).data.data.createFlight}function WB(){const e=gC();return zB(YB,{onSuccess:async()=>{await e.invalidateQueries(["flights"])}})}async function QB({filename:e,content:t}){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation ImportFlight($input: ImportFlightInput!) { importFlight(file: $input) { ...flightFragment } } ${HB} `,variables:{input:{filename:e,content:t}}},{headers:{"Content-Type":"application/json"}})).data.data.importFlight}async function XB(e){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation CreatePinboard($input: CreatePinboardInput!) { createPinboard(pinboard: $input) { id title charts { airport id name indexNumber isGeoReferenced category } createdAt updatedAt } } `,variables:{input:{title:e.title,charts:e.charts,flight:e.flight}}},{headers:{"Content-Type":"application/json"}})).data.data.createPinboard}function JB(){const e=gC();return zB(XB,{onSuccess:async()=>{await e.invalidateQueries(["pinboards"])}})}async function ZB(e){await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation DeleteFlights($ids: [String!]!) { deleteFlights(ids: $ids) { id } } `,variables:{ids:Array.from(e)}})}async function KB(e){await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation DeletePinboards($ids: [String!]!) { deletePinboards(ids: $ids) { id } } `,variables:{ids:e}})}class $B extends xP{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:lC()},t)}getOptimisticResult(e){return e.behavior=lC(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var n,r,i,o,a,s;const{state:l}=e,c=super.createResult(e,t),{isFetching:u,isRefetching:h}=c,d=u&&"forward"===(null==(n=l.fetchMeta)||null==(r=n.fetchMore)?void 0:r.direction),f=u&&"backward"===(null==(i=l.fetchMeta)||null==(o=i.fetchMore)?void 0:o.direction);return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:hC(t,null==(a=l.data)?void 0:a.pages),hasPreviousPage:dC(t,null==(s=l.data)?void 0:s.pages),isFetchingNextPage:d,isFetchingPreviousPage:f,isRefetching:h&&!d&&!f}}}function eL(e,t,n){return zP(Ow(e,t,n),$B)}async function tL({pageParam:e=0,search:t,orderBy:n="updatedAt",orderDirection:r="desc",favoritesOnly:i=!1,lastUpdatedStart:o,lastUpdatedEnd:a}){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` query Flights($params: SearchParams!) { flights(params: $params) { ...flightFragment } } ${HB} `,variables:{params:{skip:e,take:100,orderBy:`${"asc"===r?"":"-"}${n}`,search:t,favoritesOnly:i,lastUpdatedStart:o,lastUpdatedEnd:a}}},{headers:{"Content-Type":"application/json"}})).data.data.flights}async function nL({pageParam:e=0,search:t=""}){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` query Pinboards($params: SearchParams!) { pinboards(params: $params) { id title charts { airport id name indexNumber isGeoReferenced category } scratchpads { id template createdAt updatedAt } createdAt updatedAt } } `,variables:{params:{skip:e,take:100,orderBy:"-updatedAt",search:t}}},{headers:{"Content-Type":"application/json"}})).data.data.pinboards}const rL=()=>VP(["settings"],(()=>async function(){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` query Settings { settings { chartMode flightAwarenessMetrics } } `},{headers:{"Content-Type":"application/json"}})).data.data.settings}()));async function iL(e){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation UpdateSettings($input: SettingsInput!) { saveSettings(settings: $input) { chartMode flightAwarenessMetrics } } `,variables:{input:{chartMode:e.chartMode,flightAwarenessMetrics:e.flightAwarenessMetrics}}},{headers:{"Content-Type":"application/json"}})).data.data.saveSettings}function oL(){const e=gC();return zB(iL,{onMutate:async t=>(await e.cancelQueries({queryKey:["settings"]}),{previousSettings:e.getQueryData(["settings"]),newSettings:t}),onError:(t,n,r)=>{e.setQueryData(["settings"],r?.previousSettings)},onSuccess:t=>{e.setQueryData(["settings"],t)}})}async function aL(e){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation UpdateFlight($input: UpdateFlightInput!) { updateFlight(flight: $input) { ...flightFragment } } ${HB} `,variables:{input:{title:e.title,rules:e.rules,chartMode:e.chartMode,routestring:e.routestring,cruisingAltitude:e.cruisingAltitude,alternates:e.alternates??[],originAlternates:e.originAlternates??[],routeAlternates:e.routeAlternates??[],id:e.id}}},{headers:{"Content-Type":"application/json"}})).data.data.updateFlight}function sL(){const e=gC();return zB(aL,{onSuccess:async t=>{const n=e.getQueriesData(["flights"]);for(const[r,i]of n)i&&e.setQueryData(r,Object.assign({},i,{pages:i.pages.map((e=>e.map((e=>e.id===t.id?Object.assign({},e,t):e))))}));await e.invalidateQueries(["flights"],{refetchType:"inactive"},{throwOnError:!1})}})}async function lL(e){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation UpdatePinboard($input: UpdatePinboardInput!) { updatePinboard(pinboard: $input) { id title charts { airport id name indexNumber isGeoReferenced category } createdAt updatedAt } } `,variables:{input:{title:e.title,charts:e.charts,id:e.id}}},{headers:{"Content-Type":"application/json"}})).data.data.updatePinboard}function cL(){const e=gC();return zB(lL,{mutationKey:["activePinboard"],onSuccess:()=>e.invalidateQueries(["pinboards"],{refetchType:"inactive"},{throwOnError:!1}),onMutate:t=>{const n=e.getQueriesData(["pinboards"]);if(0!==n.length)for(const[r,i]of n)i&&e.setQueryData(r,Object.assign({},i,{pages:i.pages.map((e=>e.map((e=>e.id===t.id?Object.assign({},e,t):e))))}))}})}const uL=UB.gql` fragment exportedFlightFragment on ExportedFlight { filename content mimeType } `;async function hL(e,t){return oS.debug("Requesting export for",t),(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` query ExportFlight($id: String!, $type: String!) { exportFlight(id: $id, type: $type) { ...exportedFlightFragment } } ${uL} `,variables:{id:t,type:e}},{headers:{"Content-Type":"application/json"}})).data.data.exportFlight}async function dL({type:e,ident:t}){await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation Mutation($favorites: FavoriteInput!) { saveFavoritesToCollection(favorites: $favorites) { __typename } } `,variables:{favorites:{flights:[],navaids:[],airports:[],[e]:[t]}}},{headers:{"Content-Type":"application/json"}})}function fL(){return zB(dL)}async function pL({type:e,ident:t}){await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation Mutation($favorites: FavoriteInput!) { deleteFavoritesFromCollection(favorites: $favorites) { __typename } } `,variables:{favorites:{flights:[],navaids:[],airports:[],[e]:[t]}}},{headers:{"Content-Type":"application/json"}})}function mL(){const e=gC();return zB(pL,{onMutate:async t=>{if("airports"===t.type){await e.cancelQueries({queryKey:["favorites","airportIsFavorite"]}),await e.cancelQueries(["airportIsFavorite",t.ident]);const n=e.getQueryData(["favorites"]);return e.setQueryData(["favorites"],(e=>[...e?.filter((e=>e.icaoIdentifier!==t.ident))??[]])),e.setQueryData(["airportIsFavorite",t.ident],(()=>!1)),{previousFavorites:n,favorite:t}}},onError:(t,n,r)=>{r?.previousFavorites&&"airports"===n.type&&(e.setQueryData(["favorites"],r.previousFavorites),e.setQueryData(["airportIsFavorite",r.favorite],(()=>!0)))},onSuccess:async(t,n)=>{"airports"===n.type&&(await e.invalidateQueries(["airportIsFavorite"]),await e.invalidateQueries(["favorites",n.ident]))}})}async function gL(e){await BB.post(rS.userdataAPIUrl,{query:UB.gql` mutation UpdateFlightLastUsed($id: String!) { updateFlightLastUsed(id: $id) { id } } `,variables:{id:e}})}async function yL(e){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation CreateCustomWaypoint($input: CreateCustomWaypointInput!) { createCustomWaypoint(customWaypoint: $input) { id title description geom createdAt updatedAt flight { id } } } `,variables:{input:{title:e.title,description:e.description,latitude:e.latitude,longitude:e.longitude,flight:e.flight?{id:e.flight}:void 0}}},{headers:{"Content-Type":"application/json"}})).data.data.createCustomWaypoint}const vL=UB.gql` fragment customWaypointFragment on CustomWaypoint { id title description geom createdAt updatedAt flight { id } } `;async function bL(e){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation UpdateCustomWaypoint($params: UpdateCustomWaypointInput!) { updateCustomWaypoint(customWaypoint: $params) { ...customWaypointFragment } } ${vL} `,variables:{params:e}},{headers:{"Content-Type":"application/json"}})).data.data.updateCustomWaypoint}async function AL(e){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` query CustomWaypoints($params: CustomWaypointSearchParams!) { customWaypoints(params: $params) { id title description geom createdAt updatedAt flight { id } } } `,variables:{params:{bounds:e.bounds,circleBounds:e.circleBounds,coordinates:e.coordinates,limit:e.limit,orderBy:e.orderBy,search:e.search,flightId:e.flightId,skip:e.pageParam||0,take:100}}},{headers:{"Content-Type":"application/json"}})).data.data.customWaypoints}const xL=e=>VP(["custom-waypoint",e],(()=>async function(e){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` query CustomWaypoint($id: String!) { customWaypoint(id: $id) { id title description geom createdAt updatedAt flight { id } } } `,variables:{id:e}},{headers:{"Content-Type":"application/json"}})).data.data.customWaypoint}(e)));async function wL(e){await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation DeleteCustomWaypoints($ids: [String!]!) { deleteCustomWaypoints(ids: $ids) { id } } `,variables:{ids:e}})}async function CL(e){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` query Annotation($input: GetAnnotationInput!) { annotation(input: $input) { data { type props } } } `,variables:{input:e}},{headers:{"Content-Type":"application/json"}})).data.data.annotation.data}const SL=UB.gql` fragment annotationFragment on Annotation { id type flight { id } chartId pinboard { id } data { type props } } `;async function EL(e){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation SaveAnnotation($params: AnnotationInput!) { saveAnnotation(annotation: $params) { ...annotationFragment } } ${SL} `,variables:{params:Object.assign({},e)}},{headers:{"Content-Type":"application/json"}})).data.data.saveAnnotation}const kL=UB.gql` fragment ScratchpadFragment on Scratchpad { id data { type props } template title createdAt updatedAt } `;async function TL(e){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation CreateScratchpad($input: CreateScratchpadInput!) { createScratchpad(scratchpad: $input) { ...ScratchpadFragment } } ${kL} `,variables:{input:e}},{headers:{"Content-Type":"application/json"}})).data.data.createScratchpad}function IL(){return zB(TL)}async function OL(e){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation UpdateScratchpad($input: UpdateScratchpadInput!) { updateScratchpad(scratchpad: $input) { ...ScratchpadFragment } } ${kL} `,variables:{input:e}},{headers:{"Content-Type":"application/json"}})).data.data.updateScratchpad}function RL(){return zB(OL)}async function ML(e){await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation DeleteScratchpad($id: String!) { deleteScratchpad(id: $id) { id } } `,variables:{id:e}},{headers:{"Content-Type":"application/json"}})}function PL(){return zB(ML)}async function DL(e){await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation DeleteScratchpads($ids: [String!]!) { deleteScratchpads(ids: $ids) { id } } `,variables:{ids:e}},{headers:{"Content-Type":"application/json"}})}function jL(e){return VP(["scratchpad",e],(()=>null!==e?async function(e){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` query Scratchpad($id: String!) { scratchpad(id: $id) { ...ScratchpadFragment } } ${kL} `,variables:{id:e}},{headers:{"Content-Type":"application/json"}})).data.data.scratchpad}(e):void 0),{enabled:Boolean(e),cacheTime:0})}const BL=LC(null),LL=PS("flightSelectedFlight",LC((e=>e(BL)),((e,t,n)=>{t(BL,n)})));BL.onMount=e=>{const t=ZC.on("logout",(()=>e(null)));return()=>t()},LC(null);const FL=LC({}),NL=LC(null),_L=LC(null),zL=LC(null),VL=LC({name:"",sortBy:"Date",sortDirection:"desc",favoritesOnly:!1,lastUpdated:null}),UL=(e,t)=>{const n=WC(LL),r=rL();return t=void 0!==t?t:null!==n?n.chartMode:r.data?.chartMode,VP(["charts-index",e,t],(()=>e?(async(e,t="STD")=>(await jB.get(`${rS.chartsAPIUrl}/charts/${e}`,{params:{version:t,rules:"ANY"}})).data.charts)(e,t):null),{enabled:rB(e)&&void 0!==t})},HL=(e,t)=>{const{data:n,status:r}=UL(e);return{data:n?.find((e=>e.id===t)),status:r}};function qL(e){const t=vf(),n="function"==typeof e?e(t?.theme):e,r=Af();return n[r>=n.length?n.length-1:r]}const GL={dark:!1,colors:{primary:"rgb(0, 122, 255)",background:"rgb(242, 242, 242)",card:"rgb(255, 255, 255)",text:"rgb(28, 28, 30)",border:"rgb(216, 216, 216)",notification:"rgb(255, 59, 48)"}},YL={main:"NAVIGATION_STATE",info:"INFO_NAVIGATION_STATE"},WL=Object.assign({},GL,{colors:Object.assign({},GL.colors,{background:"transparent"})}),QL={Search:{path:"search/:query?"},Flights:{screens:{List:{path:"flights"},SimBriefImport:{path:"flights/simbrief-import"},SimBriefInstantImport:{path:"flights/simbrief-instant-import"},InstantImport:{path:"flights/import"},Filters:{path:"flights/filters"},Details:{path:"flights/current"},AirportSelect:{path:"flights/current/airport-select"},RunwaySelect:{path:"flights/current/runway-select"},ProcedureSelect:{path:"flights/current/procedure-select"}}},Airports:{screens:{Detail:"airport/:icao",Find:"airport",Edit:"airport/edit"}},Pinboards:{path:"pinboards"},UserWaypoints:{path:"user-waypoints"},Settings:{path:"settings"}},XL=(e,t)=>{const n=LC(!1);return LC((e=>e(n)),((r,i,o)=>{const a="function"==typeof o?o(r(n)):o;i(n,a),ZC.emit("menu",{menu:e,isOpen:a}),!a&&t&&t()}))},JL=XL("main"),ZL=XL("info",(()=>{kS.setItem(YL.info,"")})),KL=PS("compactMenuShortcutState",LC("Pinboards")),$L=LC((e=>e(JL)||e(ZL))),eF=LC({isConnectedToFlight:!1,pinboard:null}),tF=PS("isSyncEnabledState",LC(!0)),nF=LC(!0),rF=LC(!0),iF=LC(!1),oF=LC(0),aF=LC(0),sF=LC({TS:!0,VA:!0,ICE:!0,TURB:!0,MTW:!0,IFR:!0,"MTN OBSCN":!0}),lF=LC({}),cF=LC([22e3,"FL220"]),uF=PS("weatherCategoryInspectingState",LC(0)),hF=PS("weatherCategoryStateV2",LC(["RAD"])),dF=LC(!1);function fF(){const e=WC(eF),t=WC(nF),n=WC(rF),r=WC(iF),i=qL([!0,!1]),o=["android","ios"].includes(Da.OS),a=null!==e.pinboard&&e.pinboard.charts.length>0,s=null!==e.pinboard&&0===e.pinboard.charts.length;return!n||i&&r?0:a&&!t?o?82:90:a&&t?o?52:60:s?34:0}function pF(){const e=(0,wc.A)(),t=WC($L),n=WC(JL),r=qL([!0,!1]),i=fF();return(0,u.useMemo)((()=>({bottom:r&&t?Math.max(0,e.height/2-50+(n?50:0)-i):0,left:t&&!r?340:0})),[t,n,r,i,e.height])}const mF=LC(null),gF=LC([]),yF=LC(null),vF=LC("path"),bF=LC("drawing"),AF=LC(15),xF=(LC("chart"),["#DE2020AF","#DEDE20AF","#20DE20AF","#20DEDEAF","#2020DEAF","#DE20DEAF"]),wF=LC(xF[0]),CF=LC(2),SF=["outlined","filled"],EF=LC("filled"),kF=LC(null),TF=LC(!1);let IF;const OF=LC((e=>e(TF)),((e,t,n)=>{e(TF)!==n&&oS.debug("Annotations stylus mode:",n),t(TF,n),clearTimeout(IF),IF=setTimeout((()=>{e(TF)&&oS.debug("Annotations stylus mode:",!1),t(TF,!1)}),6e5)}));var RF=__webpack_require__(92869),MF=__webpack_require__(25858),PF=__webpack_require__.n(MF);const DF=["size","color"],jF=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,DF);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,viewBox:"0 0 32 32"},r,{pointerEvents:"none",children:(0,Al.jsx)(Vk,Object.assign({d:"M22.83 20.496c-2.405 4.307-7.732 5.783-11.899 3.296a8.796 8.796 0 01-2.816-2.685.689.689 0 01.318-1.019c4.04-.803 6.012-1.871 7.031-3.885 1.074-2.118 1.385-4.939-.372-8.367a.697.697 0 01.131-.592.635.635 0 01.538-.243 8.47 8.47 0 013.882 1.195c4.167 2.486 5.594 7.994 3.188 12.3z"},i))}))})),BF=["size","color"],LF=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,BF);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,viewBox:"0 0 32 32"},r,{pointerEvents:"none",children:[(0,Al.jsx)(Dk,Object.assign({cx:16,cy:16,r:4},i)),(0,Al.jsx)(Hk,Object.assign({x:15,y:6,width:2,height:4,rx:1},i)),(0,Al.jsx)(Hk,Object.assign({x:8,y:9.82,width:2,height:4,rx:1,transform:"rotate(-45 8 9.82)"},i)),(0,Al.jsx)(Hk,Object.assign({width:2,height:4,rx:1,transform:"scale(1 -1) rotate(-45 -22.774 -20.747)"},i)),(0,Al.jsx)(Hk,Object.assign({width:2,height:4,rx:1,transform:"scale(-1 1) rotate(-45 -.147 33.88)"},i)),(0,Al.jsx)(Hk,Object.assign({x:24,y:22.18,width:2,height:4,rx:1,transform:"rotate(135 24 22.18)"},i)),(0,Al.jsx)(Hk,Object.assign({width:2,height:4,rx:1,transform:"matrix(1 0 0 -1 15 26)"},i)),(0,Al.jsx)(Hk,Object.assign({x:26,y:15,width:2,height:4,rx:1,transform:"rotate(90 26 15)"},i)),(0,Al.jsx)(Hk,Object.assign({width:2,height:4,rx:1,transform:"matrix(0 1 1 0 6 15)"},i))]}))}));function FF({sx:e}){const[t,n]=XC(NE);return(0,Al.jsx)(eI,{sx:e,children:(0,Al.jsx)(xI,{title:`Switch to ${"DAY"===t?"night":"day"} mode`,onPress:()=>n((e=>"DAY"===e?"NIGHT":"DAY")),children:"DAY"===t?(0,Al.jsx)(LF,{}):(0,Al.jsx)(jF,{})})})}function NF(){return(0,Al.jsx)(eI,{sx:{width:3,height:24,backgroundColor:"Background/800",borderColor:"Background/300",borderLeftWidth:1,borderRightWidth:1}})}const _F=["size","color"],zF=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,_F);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Dk,Object.assign({cx:"16",cy:"16",r:"8"},i)),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M16 26.5C21.799 26.5 26.5 21.799 26.5 16C26.5 10.201 21.799 5.5 16 5.5C10.201 5.5 5.5 10.201 5.5 16C5.5 21.799 10.201 26.5 16 26.5ZM16 28C22.6274 28 28 22.6274 28 16C28 9.37258 22.6274 4 16 4C9.37258 4 4 9.37258 4 16C4 22.6274 9.37258 28 16 28Z",fill:"url(#paint0_linear_9922_79895)"}),(0,Al.jsx)(Bk,{children:(0,Al.jsxs)(_k,{id:"paint0_linear_9922_79895",x1:"4",y1:"15.5",x2:"28",y2:"15.5",gradientUnits:"userSpaceOnUse",children:[(0,Al.jsx)(qk,{stopColor:"#D74545"}),(0,Al.jsx)(qk,{offset:"0.187814",stopColor:"#DFA44B"}),(0,Al.jsx)(qk,{offset:"0.494792",stopColor:"#43B197"}),(0,Al.jsx)(qk,{offset:"0.806293",stopColor:"#9050E1"}),(0,Al.jsx)(qk,{offset:"1",stopColor:"#E162AE"})]})})]}))}));function VF({callback:e,refs:t,enable:n}){(0,u.useEffect)((()=>{if(n)return ZC.emit("registerClickOutsideView",{refs:t,callback:e}),()=>{ZC.emit("clearClickOutsideView")}}),[e,n,t])}function UF({Icon:e,children:t,onTrigger:n=()=>!0,triggerAlwaysActive:r=!1,showMoreCorner:i=!1,disabled:o=!1,title:a}){const s=pI(),[l,c]=(0,u.useState)(!1),h=(0,u.useCallback)((()=>c(!1)),[]),d=(0,u.useRef)(null),f=(0,u.useRef)(null);return VF({refs:[f,d],callback:h,enable:l}),(0,Al.jsxs)(eI,{sx:{alignItems:"center"},children:[(0,Al.jsx)(wI,{title:a,ref:d,disabled:o,showMoreCorner:i,activated:l||r,onPress:()=>{l?c(!1):n()&&c(!0)},children:(0,Al.jsx)(e,{})}),l&&(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsx)(eI,{ref:f,style:[s({backgroundColor:"Background/400",borderRadius:10,borderColor:"Background/300",borderWidth:1,position:"absolute",top:45,p:"xxs",boxShadow:"Control on Map/Drop Shadow"})],children:t({closeSelf:h})}),(0,Al.jsx)(eI,{style:[s({position:"absolute",top:36,left:7})],children:(0,Al.jsxs)(Wk,{width:"18",height:"11",viewBox:"0 0 18 11",fill:"none",children:[(0,Al.jsx)(Vk,{d:"M8.56297 0.69815C8.78796 0.439158 9.21985 0.439158 9.44484 0.69815L16.382 8.68372C16.6368 8.97712 16.4629 9.50391 15.941 9.50391H2.06678C1.54496 9.50391 1.37097 8.97712 1.62584 8.68372L8.56297 0.69815Z",fill:"#222F42",stroke:"#27364D"}),(0,Al.jsx)(Hk,{x:"16.9961",y:"9.00391",width:"1",height:"16",transform:"rotate(90 16.9961 9.00391)",fill:"#222F42"})]})})]})]})}function HF(){const[e,t]=XC(wF),n=WC(bF),r=WC(kF),i=gI();return(0,Al.jsx)(UF,{title:"drawing"===n?"Set drawing color":"Change color of selected annotation",Icon:()=>(0,Al.jsx)(zF,{color:e.slice(0,7)}),disabled:"editing"===n&&null===r,children:({closeSelf:n})=>(0,Al.jsx)(eI,{sx:{width:64,flexDirection:"row",flexWrap:"wrap"},children:xF.map((r=>(0,Al.jsx)(eI,{sx:{p:"xxs"},children:(0,Al.jsx)(nI,{onPress:()=>{t(r),n()},children:(0,Al.jsxs)(Wk,{width:24,height:24,children:[(0,Al.jsx)(Dk,{cx:12,cy:12,r:12,fill:r.slice(0,7)}),r===e&&(0,Al.jsx)(Dk,{cx:12,cy:12,r:9,fill:"none",stroke:i("Background/400"),strokeWidth:2})]})})},r)))})})}const qF=["size","color"],GF=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,qF);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M16 26C21.5228 26 26 21.5228 26 16C26 10.4772 21.5228 6 16 6C10.4772 6 6 10.4772 6 16C6 21.5228 10.4772 26 16 26ZM16 28C22.6274 28 28 22.6274 28 16C28 9.37258 22.6274 4 16 4C9.37258 4 4 9.37258 4 16C4 22.6274 9.37258 28 16 28Z"},i)),(0,Al.jsx)(Hk,Object.assign({x:"19.5355",y:"11.0503",width:"2",height:"12",rx:"1",transform:"rotate(45 19.5355 11.0503)"},i)),(0,Al.jsx)(Hk,Object.assign({x:"11.0502",y:"12.4645",width:"2",height:"12",rx:"1",transform:"rotate(-45 11.0502 12.4645)"},i))]}))})),YF=["size","color"],WF=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,YF);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Dk,{cx:"16",cy:"16",r:"12",fill:n}),(0,Al.jsx)(Hk,{x:"15",y:"14",width:"2",height:"8",rx:"1",fill:"#fff"}),(0,Al.jsx)(Hk,{x:"15",y:"10",width:"2",height:"2",rx:"1",fill:"#fff"})]}))})),QF=["size","color"],XF=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,QF);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M16 26C21.5228 26 26 21.5228 26 16C26 10.4772 21.5228 6 16 6C10.4772 6 6 10.4772 6 16C6 21.5228 10.4772 26 16 26ZM16 28C22.6274 28 28 22.6274 28 16C28 9.37258 22.6274 4 16 4C9.37258 4 4 9.37258 4 16C4 22.6274 9.37258 28 16 28Z"},i)),(0,Al.jsx)(Hk,Object.assign({x:"15",y:"10",width:"2",height:"8",rx:"1"},i)),(0,Al.jsx)(Hk,Object.assign({x:"15",y:"20",width:"2",height:"2",rx:"1"},i))]}))}));function JF({title:e,content:t,onPressRightButton:n,rightButtonTitle:r,IconRightButton:i=DI,sx:o,titleSx:a,contentSx:s}){const{theme:l}=vf();return(0,Al.jsxs)(eI,{sx:Object.assign({paddingX:"s",paddingY:"xs",flexDirection:"row",alignItems:"center",backgroundColor:"Background/400"},o),children:[(0,Al.jsxs)(eI,{sx:{flex:1},children:[(0,Al.jsx)(iI,{selectable:!1,variant:"m",sx:Object.assign({fontWeight:"600",color:"Gray/300",mb:2},a),children:e}),"string"==typeof t&&(0,Al.jsx)(iI,{variant:"m",sx:Object.assign({fontWeight:"400"},s),children:t}),"string"!=typeof t&&t]}),n&&(0,Al.jsx)(xI,{title:r,onPress:n,children:(0,Al.jsx)(i,{size:32,color:l.colors.White})})]})}function ZF(e){const t=QC(JL);return(0,Al.jsxs)(eI,{sx:{flexDirection:"row",alignItems:"center",width:"full",minHeight:32,px:"xs",pt:"xs",zIndex:1},children:[(0,Al.jsx)(eI,{children:(e.leftOnPress||e.leftTitle)&&("edit"===e.leftTitle?.toLocaleLowerCase()?(0,Al.jsx)(dI,{size:"small",onPress:e.leftOnPress,sx:{width:"auto"},testID:"MenuHeaderEditButton",children:e.leftTitle}):(0,Al.jsx)(uI,{size:"small",onPress:e.leftOnPress,sx:{width:"auto"},testID:"MenuHeaderLeftButton",children:e.leftTitle}))}),(0,Al.jsx)(eI,{sx:{flex:1,alignItems:"flex-end"},children:e.rightComponent&&(0,Al.jsx)(e.rightComponent,{setIsOpen:t})})]})}const KF=["sx"],$F=e=>{let{sx:t={}}=e,n=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,KF);return(0,Al.jsx)(eI,Object.assign({sx:Object.assign({pb:"s",px:"s",borderBottomWidth:1,alignItems:"center",borderColor:"Background/600",justifyContent:"center",backgroundColor:"Background/400",shadowColor:"Black",shadowOpacity:.25,shadowRadius:4,shadowOffset:{width:0,height:4},zIndex:1},t)},n))},eN=(0,u.forwardRef)((({spacing:e=0,separator:t,sx:n,direction:r="column",children:i,childrenSize:o="auto"},a)=>{const s=u.Children.toArray(i).filter((e=>u.isValidElement(e)));return(0,Al.jsx)(eI,{ref:a,sx:Object.assign({flexDirection:r},n),children:u.Children.map(s,((n,i)=>(0,Al.jsxs)(Al.Fragment,{children:[i>0&&it(!e),children:({hovered:t})=>(0,Al.jsx)(eI,{sx:Object.assign({borderWidth:1,borderColor:"Background/600",borderRadius:10,height:20,backgroundColor:e?"Blue/400":"Background/500"},r),children:(0,Al.jsx)(eI,{sx:{flex:1,borderRadius:10,backgroundColor:t?"rgba(255, 255, 255, 0.08)":"transparent"},children:(0,Al.jsx)(eI,{sx:{backgroundColor:"White",borderColor:"Gray/5",borderWidth:1,boxShadow:"sm",width:16,height:16,borderRadius:16,position:"absolute",top:1,left:1,transform:[{translateX:e?20:0}]}})})})})}var rN=__webpack_require__(40961);const iN=KT(Wo.A,{themeKey:"forms",defaultVariant:"input",defaultStyle:rI}),oN={selectionColor:!0,underlineColorAndroid:!0,placeholderTextColor:!0},aN=(0,u.forwardRef)((function(e,t){let n=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));const{theme:r}=vf();return Object.keys(oN).forEach((e=>{n[e]&&r?.colors&&(n[e]=_T(r.colors,n[e])??n[e])})),(0,Al.jsx)(iN,Object.assign({},n,{ref:t}))}));__webpack_require__(40278);const sN=["size","color"],lN=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,sN);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,Object.assign({d:"M6 25C6 24.4477 6.44772 24 7 24H25C25.5523 24 26 24.4477 26 25C26 25.5523 25.5523 26 25 26H7C6.44772 26 6 25.5523 6 25Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M20.9602 7.35355C21.1554 7.15829 21.472 7.15829 21.6673 7.35355L23.0815 8.76777C23.2767 8.96303 23.2767 9.27961 23.0815 9.47487L13.1786 19.3778C13.1407 19.4157 13.0969 19.4473 13.049 19.4713L10.3038 20.8468C9.87804 21.0601 9.42336 20.6139 9.62863 20.1842L10.963 17.3911C10.9875 17.3399 11.0205 17.2932 11.0606 17.2531L20.9602 7.35355Z"},i))]}))})),cN=["size","color"],uN=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,cN);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32",testID:"SearchIcon"},r,{children:[(0,Al.jsx)(Vk,Object.assign({d:"M11.9901 18.6071C12.3806 18.2166 13.0138 18.2166 13.4043 18.6071C13.7949 18.9976 13.7949 19.6308 13.4043 20.0213L7.74748 25.6782C7.35696 26.0687 6.72379 26.0687 6.33327 25.6782C5.94274 25.2876 5.94274 24.6545 6.33327 24.264L11.9901 18.6071Z"},i)),(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M18 20.5C21.5898 20.5 24.5 17.5899 24.5 14C24.5 10.4101 21.5898 7.5 18 7.5C14.4101 7.5 11.5 10.4101 11.5 14C11.5 17.5899 14.4101 20.5 18 20.5ZM18 22C22.4183 22 26 18.4183 26 14C26 9.58172 22.4183 6 18 6C13.5817 6 9.99999 9.58172 9.99999 14C9.99999 18.4183 13.5817 22 18 22Z"},i))]}))}));function hN(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}const dN=["value","placeholder","onBlur","onFocus","onChangeText","icon","sx","canClear","fontFamily","numeric"],fN=(0,u.forwardRef)((function(e,t){let{value:n,placeholder:r,onBlur:i,onFocus:o,onChangeText:a,icon:s,sx:l,canClear:c=!1,fontFamily:h="root",numeric:d=!1}=e,f=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,dN);const[p,m]=(0,u.useState)(!1),{theme:g}=vf(),y=(0,u.useRef)(null),[v,b]=((0,u.useRef)(null),(0,u.useState)(s?g.space.xs+26+g.space.xxs:"xs")),A=WC(JE),x=fO(!0),w=hO(),C=(0,u.useRef)(!1),S=WC(ZL),[E,k]=(0,u.useState)({start:0,end:0}),T=(0,u.useCallback)((e=>{null!==w&&null!==x&&0===w.animatedIndex.value&&(w.expand(),C.current=!0),m(!0),o?.(e)}),[x,w,o]),I=(0,u.useCallback)((e=>{null!==w&&null!==x&&C.current&&!S&&(w.snapToIndex(0),C.current=!1),m(!1),i?.(e)}),[w,x,C,S,i]);return(0,u.useCallback)((()=>{y.current?.blur()}),[y]),(0,u.useEffect)((()=>()=>{}),[]),(0,Al.jsxs)(eI,{sx:Object.assign({justifyContent:"center",width:"full"},l),children:[A&&!1,(0,Al.jsx)(aN,Object.assign({onLayout:()=>b(s?g.space.xs+26+g.space.xxs:"xs"),ref:hN([t,y]),onSelectionChange:({nativeEvent:{selection:e}})=>k(e),selection:E,sx:{height:f.multiline?void 0:32,maxHeight:100,py:"xs",pl:v,pr:c?g.space.xxs+26:"xs",backgroundColor:"Background/500",borderWidth:1,borderColor:p?"Blue/100":"Background/600",borderRadius:6,color:"White",fontFamily:h,fontWeight:"400",fontSize:g.fontSizes.m,textAlignVertical:"top"},value:n,onChangeText:a,placeholder:r,placeholderTextColor:p||""!==n?g.colors.White:g.colors["Gray/300"],onFocus:T,onBlur:I},f)),"search"===s&&(0,Al.jsx)(uN,{size:26,color:p||""!==n?g.colors.White:g.colors["Gray/300"],style:{position:"absolute",left:g.space.xxs}}),"edit"===s&&(0,Al.jsx)(lN,{size:26,color:p||""!==n?g.colors.White:g.colors["Gray/300"],style:{position:"absolute",left:g.space.xxs}}),c&&""!==n&&(0,Al.jsx)(nI,{sx:{position:"absolute",right:g.space.xxs,top:3},onPress:()=>{a?.(""),y.current?.focus()},children:({hovered:e,pressed:t})=>(0,Al.jsx)(GF,{size:26,color:e||t?g.colors["Blue/25"]:g.colors.White})})]})}));function pN({isOn:e,setIsOn:t}){const n=pI(),r=gI();return(0,Al.jsx)(nI,{onPress:()=>t(!e),children:({hovered:t})=>(0,Al.jsxs)(eI,{style:[n({borderRadius:12,width:24,height:24,alignItems:"center",justifyContent:"center"}),{backgroundColor:r(e?"Blue/400":"Background/500")}],children:[(0,Al.jsx)(eI,{style:{opacity:e||t?1:0},children:(0,Al.jsx)(mN,{})}),(0,Al.jsx)(eI,{style:[{position:"absolute",left:0,top:0,right:0,bottom:0,borderRadius:12},{backgroundColor:t?"rgba(255, 255, 255, 0.08)":"transparent"}]})]})})}const mN=u.memo((function(){return(0,Al.jsxs)(Wk,{width:12,height:9,viewBox:"0 0 12 9",fill:"none",children:[(0,Al.jsx)(Vk,{d:"M1.85485 3.64513C1.46433 3.2546 0.831165 3.2546 0.44064 3.64513C0.050116 4.03565 0.050116 4.66882 0.44064 5.05934L1.85485 3.64513ZM0.44064 5.05934L4.19064 8.80934L5.60485 7.39513L1.85485 3.64513L0.44064 5.05934Z",fill:"white"}),(0,Al.jsx)(Nk,{x1:"4.5",y1:"7.08579",x2:"10.5858",y2:"1",stroke:"white",strokeWidth:"2",strokeLinecap:"round"})]})}));function gN({isActive:e,setIsActive:t,Icon:n,title:r,checkbox:i=!0,sx:o,disabled:a=!1}){return(0,Al.jsx)(nI,{disabled:a,onPress:()=>t(!e),children:(0,Al.jsxs)(eI,{sx:Object.assign({opacity:a?.2:1,flexDirection:"row",alignItems:"center",px:"xs",py:"xxs",backgroundColor:e?"Blue/500":null,borderBottomColor:"Background/600",borderBottomWidth:1},o),children:[n&&(0,Al.jsx)(eI,{sx:{p:"xxs",backgroundColor:"Background/500",borderColor:"Background/600",borderBottomWidth:1,borderRadius:8},children:(0,Al.jsx)(n,{size:32})}),(0,Al.jsx)(eI,{sx:{mx:"xs",flex:1},children:"string"==typeof r?(0,Al.jsx)(iI,{children:r}):r}),i&&(0,Al.jsx)(eI,{children:(0,Al.jsx)(pN,{isOn:e,setIsOn:t})})]})})}const yN=["size","color"],vN=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,yN);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Hk,Object.assign({x:"6",y:"10",width:"20",height:"12",rx:"6"},i))}))})),bN=["size","color"],AN=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,bN);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Hk,Object.assign({x:"6",y:"13",width:"20",height:"6",rx:"3"},i))}))})),xN=["size","color"],wN=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,xN);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Hk,Object.assign({x:"6",y:"14",width:"20",height:"4",rx:"2"},i))}))})),CN=["size","color"],SN=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,CN);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Hk,Object.assign({x:"6",y:"6",width:"20",height:"20",rx:"4"},i))}))})),EN=["size","color"],kN=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,EN);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Hk,Object.assign({x:"6",y:"15",width:"20",height:"2",rx:"1"},i))}))})),TN={0:kN,1:wN,2:AN,3:vN,4:SN},IN=["Small","Medium","Large","Extra Large"];function ON(){const[e,t]=XC(CF),n=WC(bF),r=TN[e];return(0,Al.jsx)(UF,{title:"Pen Size",Icon:r,disabled:"drawing"!==n,children:({closeSelf:n})=>(0,Al.jsx)(tN,{spacing:"xxs",children:Object.entries(TN).map((([r,i])=>(0,Al.jsx)(wI,{title:IN[parseInt(r,10)],activated:parseInt(r,10)===e,onPress:()=>{t(parseInt(r,10)),n()},children:(0,Al.jsx)(i,{})},r)))})})}const RN=["size","color"],MN=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,RN);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M16 24.5C20.6944 24.5 24.5 20.6944 24.5 16C24.5 11.3056 20.6944 7.5 16 7.5C11.3056 7.5 7.5 11.3056 7.5 16C7.5 20.6944 11.3056 24.5 16 24.5ZM16 26C21.5228 26 26 21.5228 26 16C26 10.4772 21.5228 6 16 6C10.4772 6 6 10.4772 6 16C6 21.5228 10.4772 26 16 26Z"},i))}))})),PN=["size","color"],DN=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,PN);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Vk,Object.assign({d:"M16.2255 8.87958C18.2834 7.38866 20.9163 9.76612 19.6421 11.9647L15.4 19.2841C15.3484 19.3734 15.3476 19.4376 15.3569 19.4828C15.3681 19.5372 15.4023 19.599 15.4607 19.6502C15.5189 19.7011 15.5842 19.7264 15.6394 19.7304C15.6855 19.7337 15.7498 19.7248 15.8317 19.6616L20.8256 15.8072C22.3241 14.6506 24.3367 16.3655 23.4324 18.0283L21.612 21.3732C21.5685 21.4533 21.5712 21.5074 21.5795 21.5435C21.5899 21.5884 21.6188 21.6416 21.671 21.6853C21.7233 21.729 21.7811 21.7491 21.8271 21.7514C21.8641 21.7531 21.9176 21.7455 21.9886 21.6885L22.9501 20.9149C23.273 20.6556 23.7455 20.7079 24.0049 21.0307C24.2639 21.3536 24.212 21.8252 23.8893 22.0845L22.9281 22.8572C21.4376 24.0547 19.3811 22.3367 20.2944 20.6572L22.115 17.3113C22.1577 17.2327 22.1552 17.1793 22.147 17.1429C22.1369 17.098 22.1086 17.0453 22.0575 17.0017C22.0063 16.958 21.9494 16.938 21.9034 16.9351C21.8662 16.9328 21.813 16.9393 21.7421 16.994L16.7481 20.8484C15.1923 22.0492 13.1173 20.2323 14.1022 18.532L18.3443 11.2125C18.8062 10.4155 17.8522 9.55395 17.1062 10.0942L8.04104 16.6612C7.70561 16.9042 7.237 16.8293 6.99398 16.4939C6.75104 16.1584 6.82591 15.6898 7.1613 15.4468L16.2255 8.87958Z"},i))}))})),jN=["size","color"],BN=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,jN);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32",testID:"PlaneIcon"},r,{children:[(0,Al.jsx)(Hk,Object.assign({x:"5",y:"24",width:"22",height:"2",rx:"1"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M27.9824 10.5571C27.8114 9.95224 26.1962 9.67099 25.5566 9.87801C23.2306 10.6297 20.9043 11.3817 18.5778 12.1337L10.5026 9.00003L9.65047 9.88265L13.106 13.9154C10.8786 14.6636 6.79898 16.0452 6.05858 16.2843C5.42112 16.4906 10.1778 17.1465 11.2684 16.9703C11.2684 16.9703 19.6473 14.3146 23.3519 13.1168C24.3041 12.809 25.2569 12.5013 26.2091 12.1933C26.8463 11.9874 28.168 11.2134 27.9824 10.5571Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M4.61587 14L4.00003 14.46L5.63325 16L8.00003 15.3262L4.61587 14Z"},i))]}))})),LN=["size","color"],FN=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,LN);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M24.5 9.5C24.5 8.39543 23.6046 7.5 22.5 7.5H9.5C8.39543 7.5 7.5 8.39543 7.5 9.5V22.5C7.5 23.6046 8.39543 24.5 9.5 24.5H22.5C23.6046 24.5 24.5 23.6046 24.5 22.5V9.5ZM8 6C6.89543 6 6 6.89543 6 8V24C6 25.1046 6.89543 26 8 26H24C25.1046 26 26 25.1046 26 24V8C26 6.89543 25.1046 6 24 6H8Z"},i))}))})),NN=["size","color"],_N=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,NN);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M22.9884 11.2727C23.3407 11.2727 23.7415 11.3158 24.1886 11.3997C24.654 11.4813 25.1001 11.6517 25.5285 11.9084C25.9758 12.1739 26.343 12.5718 26.63 13.093C26.9238 13.6268 27.0636 14.3282 27.0636 15.1829V21.7131C27.0634 22.0427 26.7965 22.3095 26.4669 22.3098H25.6398C25.3418 22.3096 25.1007 22.0678 25.1007 21.7698V21.6799C25.1007 21.6023 25.0538 21.5434 24.9806 21.5168C24.9058 21.4897 24.8198 21.5037 24.7599 21.5647C24.4842 21.8452 24.1229 22.0791 23.6818 22.2688C23.2286 22.4637 22.6839 22.5569 22.0538 22.5569C21.3631 22.5569 20.7313 22.4268 20.1613 22.1633C19.6607 21.9278 19.2463 21.6004 18.924 21.1819L18.7912 20.9963C18.4489 20.4781 18.2815 19.8573 18.2814 19.1428C18.2814 18.5168 18.4044 17.9906 18.6652 17.5793C18.9192 17.1743 19.2598 16.8563 19.6837 16.6272C20.0972 16.4039 20.5521 16.2386 21.047 16.1301L21.4162 16.051C21.7851 15.9764 22.1559 15.9151 22.5275 15.8665C23.1687 15.784 23.6896 15.7214 24.09 15.6799C24.4873 15.6348 24.7524 15.5622 24.9044 15.4749L24.9054 15.4739C25.0271 15.4056 25.1006 15.2881 25.1007 15.0735V15.0178C25.1007 14.3714 24.9242 13.8923 24.5929 13.5569L24.5919 13.5559C24.269 13.2251 23.7645 13.0442 23.0441 13.0442C22.2929 13.0442 21.7266 13.2084 21.3263 13.5168C21.0282 13.7466 20.7971 13.9844 20.629 14.2278C20.4696 14.4589 20.1656 14.6038 19.8703 14.4983L19.1242 14.2317C18.8051 14.1175 18.6291 13.7459 18.8029 13.428C19.0579 12.9614 19.3727 12.5791 19.7492 12.2854C20.2292 11.9099 20.754 11.6465 21.3224 11.4983C21.8855 11.3481 22.4412 11.2727 22.9884 11.2727ZM24.8195 17.303C24.5336 17.3348 24.2014 17.3741 24.048 17.3997H24.046C23.747 17.4457 23.4545 17.4878 23.1691 17.5247H23.1662L22.4884 17.6067C22.077 17.6604 21.6939 17.7477 21.339 17.8674L21.3371 17.8684C20.9987 17.9799 20.7314 18.1461 20.5294 18.3645C20.3459 18.5634 20.2453 18.8434 20.2453 19.2249C20.2453 19.7384 20.4307 20.1087 20.7941 20.3616C21.1807 20.6221 21.6806 20.759 22.3019 20.759C22.9213 20.759 23.431 20.6373 23.839 20.4036L23.84 20.4026C24.2604 20.1641 24.5709 19.8599 24.7785 19.4915L24.7794 19.4905C24.9944 19.1165 25.1007 18.7262 25.1007 18.3176V17.5559C25.1007 17.4038 24.9689 17.2863 24.8195 17.303Z",fill:n}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5421 7.89087C11.7926 7.89088 12.0163 8.0474 12.1027 8.28247L16.9591 21.5071C17.1019 21.8968 16.8128 22.3098 16.3976 22.3098H15.5236C15.2707 22.3098 15.0447 22.1506 14.9601 21.9124L13.7462 18.4934C13.7099 18.3914 13.6133 18.3235 13.505 18.3235H8.41518C8.30684 18.3235 8.21024 18.3913 8.17397 18.4934L6.9601 21.9124C6.87551 22.1506 6.64947 22.3098 6.39662 22.3098H5.5226C5.10733 22.3098 4.81903 21.8969 4.96205 21.5071L9.81752 8.28247C9.90385 8.04743 10.1277 7.89096 10.3781 7.89087H11.5421ZM11.1984 11.4495C11.1165 11.2253 10.7997 11.2253 10.7179 11.4495L9.01869 16.1262C8.95819 16.2931 9.08234 16.47 9.2599 16.47H12.6603C12.8378 16.47 12.962 16.2931 12.9015 16.1262L11.1984 11.4495Z",fill:n})]}))}));function zN(){const[e,t]=XC(bF),[n,r]=XC(vF),i=(0,u.useMemo)((()=>{switch(n){case"path":return DN;case"rect":return FN;case"ellipse":return MN;case"text":return _N;default:return BN}}),[n]),o=Da.select({web:!0,default:!1});return(0,Al.jsx)(UF,{Icon:i,onTrigger:()=>"drawing"===e||(t("drawing"),!1),showMoreCorner:"drawing"===e,triggerAlwaysActive:"drawing"===e,children:({closeSelf:e})=>(0,Al.jsxs)(tN,{spacing:"xxs",children:[(0,Al.jsx)(wI,{activated:"path"===n,onPress:()=>{t("drawing"),r("path"),e()},children:(0,Al.jsx)(DN,{})}),(0,Al.jsx)(wI,{activated:"rect"===n,onPress:()=>{t("drawing"),r("rect"),e()},children:(0,Al.jsx)(FN,{})}),(0,Al.jsx)(wI,{activated:"ellipse"===n,onPress:()=>{t("drawing"),r("ellipse"),e()},children:(0,Al.jsx)(MN,{})}),o&&(0,Al.jsx)(wI,{activated:"text"===n,onPress:()=>{t("drawing"),r("text"),e()},children:(0,Al.jsx)(_N,{})})]})})}function VN({children:e,sx:t}){const n=window.visualViewport,[r,i]=(0,u.useState)(Zc.A.get("window").height-(n?n.height:Zc.A.get("window").height));return(0,u.useEffect)((()=>{if(!n)return;const e=PF()((()=>{i(Zc.A.get("window").height-n.height)}),100);return n.addEventListener("resize",e),()=>n.removeEventListener("resize",e)}),[n]),(0,Al.jsx)(eI,{sx:Object.assign({},t,{pb:r}),children:e})}function UN({children:e}){pI();return(0,Al.jsx)(VN,{sx:{height:"full",flex:1,alignItems:"center",justifyContent:"center"},children:e})}function HN({children:e,sx:t,width:n=248,backdrop:r=!0,animationType:i,visible:o=!0}){WC(JE);const a=t||{backgroundColor:"Background/400",width:n,maxHeight:"90%",borderWidth:1,borderColor:"Background/200",borderRadius:8,p:"s",boxShadow:"md",mb:"none"};return(0,Al.jsx)(Ac.A,{visible:o,transparent:!0,supportedOrientations:["portrait","portrait-upside-down","landscape"],animationType:i,children:(0,Al.jsx)(eI,{sx:{position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:r?"rgba(0, 0, 0, 0.64)":"transparent"},children:(0,Al.jsx)(UN,{children:(0,Al.jsx)(eI,{sx:a,children:e})})})})}async function qN({fromId:e,toId:t}){return(await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` mutation MergePinboards($params: MergePinboardsInput!) { mergePinboards(params: $params) { id title charts { airport id name indexNumber isGeoReferenced category } scratchpads { id template createdAt updatedAt } createdAt updatedAt } } `,variables:{params:{fromId:e,toId:t}}},{headers:{"Content-Type":"application/json"}})).data.data.mergePinboards}function GN(e,t){const n=e.getQueriesData(["flights"]);for(const[r,i]of n)i&&e.setQueryData(r,Object.assign({},i,{pages:i.pages.map((e=>e.map((e=>e.id===t.id?Object.assign({},e,t):e))))}))}function YN(){const e=cL(),t=IL(),n=PL(),r=zB(DL),i=zB({mutationFn:qN}),o=function(e,t,n){const[r,i={}]=function(e,t,n){return Uw(e)?[{...t,mutationKey:e},n]:[e||{},t]}(e,t,n),o=gC({context:i.context}),a=o.getMutationCache();return TP(u.useCallback((e=>a.subscribe(Ww.batchCalls(e))),[a]),(()=>o.isMutating(r)),(()=>o.isMutating(r)))}(["activePinboard"])>0,[a,s]=XC(eF),l=QC(LL),c=gC(),h=(0,u.useCallback)((t=>{if(!a.pinboard)return;const n=Object.assign({},a.pinboard,{charts:[...t.map((e=>"icao_airport_identifier"in e?{id:e.id,airport:e.icao_airport_identifier,name:e.name,indexNumber:e.index_number,isGeoReferenced:e.is_georeferenced,category:e.category}:e))]});s(Object.assign({},a,{pinboard:n})),a.isConnectedToFlight&&l((e=>{const t=e?Object.assign({},e,{pinboard:n}):e;return t&&GN(c,t),t})),e.mutate(n)}),[a,s,l,e,c]),d=(0,u.useCallback)((e=>{if(!a.pinboard)return void oS.warning("Unable to pin charts when no pinboard is active");const t=e.filter((e=>-1===a.pinboard?.charts.findIndex((t=>t.id===e.id))));0!==t.length&&h([...a.pinboard.charts,...t])}),[a.pinboard,h]),f=(0,u.useCallback)((t=>{if(!a.pinboard)return void oS.warning("Unable to unpin charts when no pinboard is active");const n=a.pinboard.charts.findIndex((e=>e.id===t.id));if(-1!==n){const t=[...a.pinboard.charts];t.splice(n,1),s(Object.assign({},a,{pinboard:Object.assign({},a.pinboard,{charts:t})})),a.isConnectedToFlight&&l((e=>{const n=e?Object.assign({},e,{pinboard:e.pinboard?Object.assign({},e.pinboard,{charts:t}):null}):e;return n&&GN(c,n),n})),e.mutate(Object.assign({},a.pinboard,{charts:t}))}}),[a,s,l,e,c]),p=(0,u.useCallback)((e=>d([e])),[d]),m=(0,u.useCallback)(((e,t=!1)=>{s({pinboard:e,isConnectedToFlight:t})}),[s]),g=(0,u.useCallback)((()=>{s({pinboard:null,isConnectedToFlight:!1})}),[s]),[y,v]=XC(tF),b=(0,u.useCallback)((async e=>{if(a.pinboard)return await t.mutateAsync({pinboardId:a.pinboard.id,template:e,data:[]},{onSuccess:e=>{if(!a.pinboard)return;const t=Object.assign({},a.pinboard,{scratchpads:[...a.pinboard.scratchpads??[],e]});s(Object.assign({},a,{pinboard:t})),a.isConnectedToFlight&&l((e=>{const n=e?Object.assign({},e,{pinboard:t}):e;return n&&GN(c,n),n}))}})}),[a,t,s,l,c]),A=(0,u.useCallback)((async e=>{await n.mutateAsync(e,{onSuccess:()=>{a.pinboard&&s(Object.assign({},a,{pinboard:Object.assign({},a.pinboard,{scratchpads:(a.pinboard.scratchpads??[]).filter((t=>t.id!==e))})}))}})}),[a,n,s]),x=(0,u.useCallback)((t=>{if(!a.pinboard)return;let n=Object.assign({},a.pinboard);switch(t){case"charts":n=Object.assign({},a.pinboard,{charts:[]});break;case"scratchpads":n=Object.assign({},a.pinboard,{scratchpads:[]}),a.pinboard.scratchpads?.length&&r.mutate(a.pinboard.scratchpads.map((e=>e.id??"")));break;default:n=Object.assign({},a.pinboard,{charts:[],scratchpads:[]}),a.pinboard.scratchpads?.length&&r.mutate(a.pinboard.scratchpads.map((e=>e.id??"")))}s(Object.assign({},a,{pinboard:n})),a.isConnectedToFlight&&l((e=>{const t=e?Object.assign({},e,{pinboard:n}):e;return t&&GN(c,t),t})),e.mutate(n)}),[a,s,l,e,r,c]),w=(0,u.useCallback)((async e=>{if(!a.pinboard)return;const t=await i.mutateAsync({fromId:e.id,toId:a.pinboard.id});s(Object.assign({},a,{pinboard:t})),a.isConnectedToFlight&&l((e=>{const n=e?Object.assign({},e,{pinboard:t}):e;return n&&GN(c,n),n}))}),[a,i,s,l,c]);return(0,u.useMemo)((()=>({setCharts:h,pinChart:p,pinCharts:d,unpinChart:f,isMutating:o,close:g,open:m,isSyncEnabled:y,setIsSyncEnabled:v,addScratchpad:b,deleteScratchpad:A,clear:x,merge:w})),[h,p,d,f,o,g,m,y,v,b,A,x,w])}const WN=["size","color"],QN=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,WN);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,{d:"M18.4277 18.6104C18.8419 18.6104 19.1777 18.9461 19.1777 19.3604C19.1776 19.7744 18.8418 20.1104 18.4277 20.1104H12.7139C12.3 20.1101 11.964 19.7743 11.9639 19.3604C11.9639 18.9463 12.2998 18.6106 12.7139 18.6104H18.4277Z",fill:n}),(0,Al.jsx)(Vk,{d:"M18.4277 15.7305C18.8419 15.7305 19.1777 16.0663 19.1777 16.4805C19.1775 16.8945 18.8418 17.2305 18.4277 17.2305H12.7139C12.3 17.2302 11.9641 16.8943 11.9639 16.4805C11.9639 16.0664 12.2998 15.7307 12.7139 15.7305H18.4277Z",fill:n}),(0,Al.jsx)(Vk,{d:"M18.4277 12.8496C18.8418 12.8496 19.1775 13.1856 19.1777 13.5996C19.1777 14.0138 18.8419 14.3496 18.4277 14.3496H12.7139C12.2998 14.3494 11.9639 14.0137 11.9639 13.5996C11.9641 13.1857 12.3 12.8498 12.7139 12.8496H18.4277Z",fill:n}),(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3809 3.25C19.795 3.25 20.1308 3.58584 20.1309 4V4.20996H22.0098C23.6021 4.21009 24.8925 5.50144 24.8926 7.09375V17.1191C25.5121 16.9996 26.1787 17.1856 26.6494 17.6758L27.793 18.8652C28.5191 19.6217 28.507 20.821 27.7656 21.5625L20.3369 28.9893L20.335 28.9873C19.9882 29.3406 19.5349 29.4999 19.1143 29.5H17.708C16.6949 29.5 15.9768 28.6664 15.9766 27.7598V26.8301H9.13379C7.54137 26.8301 6.25 25.5387 6.25 23.9463V7.09375C6.25003 5.50136 7.54139 4.20996 9.13379 4.20996H11.0117V4C11.0118 3.5859 11.3476 3.2501 11.7617 3.25C12.1759 3.25 12.5117 3.58584 12.5117 4V4.20996H14.8213V4C14.8214 3.58589 15.1572 3.25007 15.5713 3.25C15.9855 3.25 16.3212 3.58584 16.3213 4V4.20996H18.6309V4C18.6309 3.58587 18.9667 3.25005 19.3809 3.25ZM25.5674 18.7148C25.4018 18.5424 25.127 18.539 24.958 18.708L17.5459 26.123C17.4996 26.1712 17.4766 26.2295 17.4766 26.2969V27.7598C17.4768 27.8776 17.5549 27.9731 17.6611 27.9951L17.708 28H19.1143C19.1743 27.9999 19.2348 27.9757 19.2764 27.9277L26.7051 20.502C26.8485 20.3584 26.8682 20.1368 26.7637 19.9717L26.7109 19.9043L25.5674 18.7148ZM23.3926 10.4785C23.328 10.4967 23.2608 10.5098 23.1904 10.5098H7.75V23.9463C7.75 24.7103 8.36979 25.3301 9.13379 25.3301H16.2676C16.3253 25.2433 16.3909 25.1609 16.4648 25.084L16.4746 25.0732L23.3926 18.1523V10.4785ZM9.13379 5.70996C8.36982 5.70996 7.75003 6.32978 7.75 7.09375V9.00977H23.1904C23.2608 9.00977 23.328 9.0229 23.3926 9.04102V7.09375C23.3925 6.32987 22.7736 5.71009 22.0098 5.70996H20.1309V6.87988C20.1309 7.2941 19.7951 7.62988 19.3809 7.62988C18.9667 7.62983 18.6309 7.29407 18.6309 6.87988V5.70996H16.3213V6.87988C16.3213 7.2941 15.9855 7.62988 15.5713 7.62988C15.1571 7.62981 14.8213 7.29405 14.8213 6.87988V5.70996H12.5117V6.87988C12.5117 7.2941 12.1759 7.62988 11.7617 7.62988C11.3476 7.62978 11.0117 7.29404 11.0117 6.87988V5.70996H9.13379Z",fill:n})]}))})),XN=["size","color"],JN=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,XN);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,Object.assign({d:"M7.99945 25.5996V9.81349C7.99945 8.92983 8.71638 8.2129 9.60004 8.2129H11.9467V9.70705H9.60004C9.54112 9.70705 9.49359 9.75458 9.49359 9.81349V25.5996C9.49359 25.6585 9.54113 25.707 9.60004 25.707H22.6127C22.6716 25.707 22.7202 25.6585 22.7202 25.5996V9.81349C22.7202 9.75458 22.6716 9.70705 22.6127 9.70705H20.3735V8.2129H22.6127C23.4964 8.2129 24.2133 8.92983 24.2133 9.81349V25.5996C24.2133 26.4833 23.4964 27.2002 22.6127 27.2002H9.60004C8.71638 27.2002 7.99945 26.4833 7.99945 25.5996Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M12.5868 8.00063C12.2922 8.00063 12.0536 8.23928 12.0536 8.53383V9.38637C12.0536 9.68092 12.2922 9.91957 12.5868 9.91957H19.6268L19.7343 9.90883C19.9767 9.85897 20.1591 9.6444 20.1591 9.38637V8.53383C20.1591 8.27579 19.9767 8.06123 19.7343 8.01137L19.6268 8.00063L17.8134 8.00063C17.2241 8.00063 16.746 7.52252 16.746 6.93324L16.7333 6.80434C16.6736 6.51264 16.4155 6.29359 16.1063 6.29359C15.7971 6.2937 15.5391 6.51281 15.4794 6.80434L15.4667 6.93324C15.4667 7.52252 14.9886 8.00063 14.3993 8.00063L12.5868 8.00063ZM14.0155 6.50649C14.2133 5.53284 15.0745 4.79962 16.1063 4.79945L16.3241 4.81117C17.2576 4.90585 18.0125 5.60229 18.1962 6.50648H19.6268C20.7465 6.50673 21.6532 7.41521 21.6532 8.53383V9.38637C21.6532 10.505 20.7465 11.4135 19.6268 11.4137H12.5868C11.4675 11.4137 10.5595 10.5057 10.5595 9.38637V8.53383C10.5595 7.41453 11.4675 6.50648 12.5868 6.50649H14.0155Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M20.0534 13.5462C20.4657 13.5464 20.7995 13.881 20.7995 14.2933C20.7995 14.7056 20.4657 15.0403 20.0534 15.0404L12.1599 15.0404C11.7475 15.0404 11.4128 14.7057 11.4128 14.2933C11.4128 13.8809 11.7475 13.5462 12.1599 13.5462L20.0534 13.5462Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M20.0534 17.3862C20.4657 17.3864 20.7995 17.721 20.7995 18.1333C20.7995 18.5456 20.4657 18.8803 20.0534 18.8804L12.1599 18.8804C11.7475 18.8804 11.4128 18.5457 11.4128 18.1333C11.4128 17.7209 11.7475 17.3862 12.1599 17.3862L20.0534 17.3862Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M20.0534 21.2262C20.4657 21.2264 20.7995 21.561 20.7995 21.9733C20.7995 22.3856 20.4657 22.7203 20.0534 22.7204H12.1599C11.7475 22.7204 11.4128 22.3857 11.4128 21.9733C11.4128 21.5609 11.7475 21.2262 12.1599 21.2262H20.0534Z"},i))]}))})),ZN=["size","color"],KN=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,ZN);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M17.5928 6C19.0709 6.00003 20.2695 7.15952 20.2695 8.58984V9.375H23.2256C23.6531 9.375 23.9999 9.7104 24 10.124C23.9999 10.5377 23.6531 10.873 23.2256 10.873H22.2305V22.79C22.2305 24.01 21.2089 24.9999 19.9482 25H12.0537C10.7932 24.9998 9.77051 24.0099 9.77051 22.79V10.873H8.77441C8.34692 10.873 8.00014 10.5377 8 10.124C8.00015 9.7104 8.34693 9.375 8.77441 9.375H11.7295V8.58984C11.7296 7.15953 12.9281 6.00005 14.4062 6H17.5928ZM14.2637 14.3916C13.8962 14.3916 13.599 14.6806 13.5986 15.0361V20.5127C13.5986 20.8685 13.896 21.1562 14.2637 21.1562C14.6314 21.1562 14.9287 20.8685 14.9287 20.5127V15.0361C14.9284 14.6806 14.6312 14.3916 14.2637 14.3916ZM17.7363 14.3916C17.3689 14.3917 17.0716 14.6806 17.0713 15.0361V20.5127C17.0713 20.8685 17.3687 21.1562 17.7363 21.1562C18.104 21.1562 18.4014 20.8685 18.4014 20.5127V15.0361C18.401 14.6806 18.1038 14.3916 17.7363 14.3916ZM14.4062 7.49805C13.7833 7.4981 13.2784 7.98703 13.2783 8.58984V9.375H18.7207V8.58984C18.7206 7.98702 18.2157 7.49808 17.5928 7.49805H14.4062Z"},i))}))}));function $N({onClose:e}){const{clear:t,setIsSyncEnabled:n}=YN(),r=WC(eF),i=r=>{n(!1),t(r),e?.()};return(0,Al.jsx)(HN,{sx:{backgroundColor:"Background/400",borderColor:"Background/200",borderWidth:1,borderRadius:10,overflow:"hidden",minWidth:250,maxWidth:272,maxHeight:380,p:"s",boxShadow:"ObjectOnMap/Drop Shadow"},children:(0,Al.jsxs)(eI,{sx:{flex:1},children:[(0,Al.jsxs)(eI,{sx:{py:"s"},children:[(0,Al.jsx)(iI,{variant:"l",sx:{fontWeight:"600",textAlign:"center",pb:"xs"},selectable:!1,children:"Clear Pinboard"}),(0,Al.jsx)(iI,{variant:"m",sx:{fontWeight:"400",textAlign:"center"},children:"This will permanently remove items from your pinboard. This action cannot be undone."}),(0,Al.jsx)(iI,{variant:"l",sx:{fontWeight:"600",textAlign:"center",pt:"s"},children:"What to clear"})]}),(0,Al.jsxs)(eI,{sx:{flexDirection:"column",justifyContent:"center"},children:[(0,Al.jsx)(eI,{sx:{marginBottom:"xs"},children:(0,Al.jsx)(uI,{onPress:()=>i("charts"),Icon:JN,disabled:0===r?.pinboard?.charts.length,children:"Charts"})}),(0,Al.jsx)(eI,{sx:{marginBottom:"xs"},children:(0,Al.jsx)(uI,{disabled:0===r?.pinboard?.scratchpads?.length,onPress:()=>i("scratchpads"),Icon:QN,children:"Scratchpads"})}),(0,Al.jsx)(eI,{children:(0,Al.jsx)(hI,{onPress:()=>i(),Icon:KN,children:"Clear All"})})]}),(0,Al.jsx)(eI,{sx:{width:"full",backgroundColor:"Black",borderColor:"Background/300",borderWidth:1,mt:10,mb:8}}),(0,Al.jsx)(eI,{children:(0,Al.jsx)(uI,{onPress:e,children:"Cancel"})})]})})}const e_=function(e){const{colors:t}=vf().theme,n=pI();let{color:r}=e;return"string"==typeof r&&t&&(r=_T(t,r)??r),(0,Al.jsx)(RF.A,Object.assign({},e,{color:r,style:[e.style,e.sx&&n(e.sx)]}))};function t_(e){return e=Math.abs(e),[Math.trunc(e),Math.trunc((e+=1e-9)%1*60),Math.trunc(60*e%1*6e5)/1e4]}function n_(e,t){const[n,r,i]=t_(e),o=e>=0?"N":"S",[a,s,l]=t_(t),c=t>=0?"E":"W";return[[`${n.toString().padStart(2,"0")}`,`${r.toFixed(0).padStart(2,"0")}`,`${i.toFixed(0).padStart(2,"0")}`,o].join(""),[`${a.toString().padStart(3,"0")}`,`${s.toFixed(0).padStart(2,"0")}`,`${l.toFixed(0).padStart(2,"0")}`,c].join("")].join("")}function r_(e){const t=/^(\d+)([NS])(\d+)([EW])$/.exec(e);if(!t)return"";const[,n,r,i,o]=t;return`${n.padEnd(6,"0")}${r}${i.padEnd(7,"0")}${o}`}async function i_(e,t=!1,n){if(!e)return{};const r=await jB.get(`${rS.fmsdataAPIUrl}/3/routing/${i=e,i.replace(/\//g,"-")}`,{transformResponse:async e=>{try{const r=JSON.parse(e);if(delete Object.assign(r,{origin:r.departure}).departure,r.expanded_route_items?.length){const e=r.expanded_route_items.filter((e=>1===e.type))[0]?.item_data?.ident,t=r.expanded_route_items?.filter((e=>1===e.type)).at(-1)?.item_data?.ident;e&&!r.sid?.selected_transition_point&&r.sid?.transition_points?.includes(e)&&(r.sid.selected_transition_point=e),t&&!r.star?.selected_transition_point&&r.star?.transition_points?.includes(t)&&(r.star.selected_transition_point=t)}return t&&await async function(e){if(!e.expanded_route_items)return;const t=await BB.post(`${rS.navdataAPIUrl}/graphql`,{query:UB.gql` query VFRWaypoints($coordinates: [String!]!) { vfrwaypoints(coordinates: $coordinates) { name ident } } `,variables:{coordinates:e.expanded_route_items?.map((e=>1===e.type&&/^\d+[NS]\d+[EW]$/.test(e.item_data.ident)?1!==e.type?null:`${e.item_data.latitude}, ${e.item_data.longitude}`:null)).filter((e=>null!==e))}});for(const n of e.expanded_route_items){if(1!==n.type||!/^\d+[NS]\d+[EW]$/.test(n.item_data.ident))continue;const e=t.data.data.vfrwaypoints.find((e=>e.ident===n.item_data.ident));e&&(n.item_data.name=e.name,n.item_data.is_vfr=!0)}}(r),await async function(e,t){if(!e.expanded_route_items)return;const n=e.expanded_route_items?.map((e=>1===e.type&&/^\d+[NS]\d+[EW]$/.test(e.item_data.ident)?1!==e.type?null:`${e.item_data.latitude}, ${e.item_data.longitude}`:null)).filter((e=>null!==e));if(0===n.length)return;const r=await BB.post(`${rS.userdataAPIUrl}`,{query:UB.gql` query CustomWaypoints($params: CustomWaypointSearchParams) { customWaypoints(params: $params) { id title geom } } `,variables:{params:{coordinates:n,flightId:t}}});for(const t of e.expanded_route_items){if(1!==t.type||!/^\d+[NS]\d+[EW]$/.test(t.item_data.ident))continue;const e=r.data.data.customWaypoints.find((e=>r_(n_(e.geom.coordinates[1],e.geom.coordinates[0]))===r_(t.item_data.ident)));e&&(t.item_data.id=e.id,t.item_data.name=e.title,t.item_data.is_user_waypoint=!0)}}(r,n),r}catch(t){return oS.err("Error parsing routing response",t),e}}});var i;return r.data}const o_=e=>{const t=WC(LL);return VP(["routing",t?.rules||"IFR",e],(()=>i_(e,t?.rules===qB.VFR,t?.id)),{keepPreviousData:!0})};function a_(e,t,n){if(!t)return e.title;const r=/([^ ]+) to ([^ ]+)( \(MSFS\))?/.exec(e.title),[,i,o,a]=r||[],s=t.origin?.icao_code&&t.destination?.icao_code&&r&&i===t.origin.icao_code&&o===t.destination.icao_code;return/New Flight/i.test(e.title)||""===e.title||s?`${n[0]} to ${n[1]}${a?" (MSFS)":""}`:e.title}const s_=/^RW(\d{2})([LRCBT]|)$/;function l_(e){return s_.test(e)||"ALL"===e||""===e}function c_(e,t={}){const n=function(e,t){const n=[...t],r=t[0];e.sid?.identifier&&r&&2===r.type&&"DCT"===r.item_data.airway_ident&&n.splice(0,1),!e.sid?.identifier&&r&&2!==r.type&&e.origin&&n.splice(0,0,{is_valid:!0,item_data:{airway_ident:"DCT",bearing:0,distance:0},type:2});const i=n[n.length-1];return e.star?.identifier&&i&&2===i.type&&"DCT"===i.item_data.airway_ident&&n.pop(),!e.star?.identifier&&i&&2!==i.type&&e.destination?.icao_code&&n.push({is_valid:!0,item_data:{airway_ident:"DCT",bearing:0,distance:0},type:2}),!n[n.length-1]&&e.destination?.icao_code&&n.push({is_valid:!0,item_data:{airway_ident:"DCT",bearing:0,distance:0},type:2}),n}(e,(t.compact?e.compact_route_items:e.expanded_route_items)||[]),r=n?.filter((e=>1===e.type)).at(0)?.item_data.ident,i=n?.filter((e=>1===e.type)).at(-1)?.item_data.ident;return[e.origin&&e.origin.icao_code+(e.origin.selected_runway?`-${e.origin.selected_runway}`:""),[e.sid?e.sid.identifier:null,e.sid&&e.sid.selected_transition_point&&r&&r!==e.sid.selected_transition_point?e.sid.selected_transition_point:null].filter(Boolean).join("."),...n.map((e=>1===e.type?e.item_data.ident:2===e.type?e.item_data.airway_ident:0===e.type?e.item_data.wrong_value:void 0)).filter((e=>rB(e))),[e.star&&e.star.selected_transition_point&&i&&i!==e.star.selected_transition_point?e.star.selected_transition_point:null,e.star?e.star.identifier:null].filter(Boolean).join("."),e.destination&&e.destination.icao_code+(e.approach?.identifier?"-"+[e.approach.selected_transition_point,e.approach.identifier].filter(Boolean).join("."):e.destination.selected_runway?`-${e.destination.selected_runway}`:"")].filter((e=>rB(e))).join(" ")}function u_(e,t,n){return Object.assign({},e,{origin:Object.assign({},e?.origin,{icao_code:t,icao_region:n??""})})}function h_(e,t){if(!e.origin)throw new Error("Unable to set departure runway without an origin airport");return Object.assign({},e,{origin:Object.assign({},e.origin,{selected_runway:t}),sid:t&&!e.sid?.runways?.includes(t)?{identifier:"",selected_transition_point:null}:e.sid})}function d_(e,t,n){return Object.assign({},e,{destination:Object.assign({},e?.destination,{icao_code:t,icao_region:n??""})})}function f_(e,t){if(!e.destination)throw new Error("Unable to set arrival runway without a destination airport");return Object.assign({},e,{destination:Object.assign({},e.destination,{selected_runway:t}),star:t&&!e.star?.runways?.includes(t)?{identifier:"",selected_transition_point:null}:e.star,approach:t&&!e.approach?.runways?.includes(t)?{identifier:"",selected_transition_point:null}:e.approach})}function p_(e,t,n){const r=[...e?.expanded_route_items??[]];if(0===n&&0===r.length&&!e?.origin&&e?.destination&&(n=-1),n<0)r.splice(0,0,m_(t),{is_valid:!0,item_data:{airway_ident:"DCT",bearing:0,distance:0},type:2});else if(n>=r.length)r.splice(r.length,0,{is_valid:!0,item_data:{airway_ident:"DCT",bearing:0,distance:0},type:2},m_(t));else{r.splice(n,0,{is_valid:!0,item_data:{airway_ident:"DCT",bearing:0,distance:0},type:2},m_(t));const e=r[n+2];e&&2===e.type&&"DCT"!==e.item_data.airway_ident&&r.splice(n+2,1,{is_valid:!0,item_data:{airway_ident:"DCT",bearing:0,distance:0},type:2})}return Object.assign({},e,{expanded_route_items:r})}function m_(e){return"icaoIdentifier"in e?{type:1,is_valid:!0,item_data:{ident:e.icaoIdentifier,latitude:e.latitude||0,longitude:e.longitude||0}}:"id"in e?"geom"in e?{type:1,is_valid:!0,item_data:{ident:n_(e.geom.coordinates[1],e.geom.coordinates[0]),latitude:e.geom.coordinates[1],longitude:e.geom.coordinates[0],facility:"xxx",object_type:"xxx"}}:{type:1,is_valid:!0,item_data:{id:e.id,ident:e.identifier,facility:"xxx",object_type:"xxx",latitude:e.latitude,longitude:e.longitude}}:{type:1,is_valid:!0,item_data:{ident:n_(e.latitude,e.longitude),latitude:e.latitude,longitude:e.longitude,facility:"xxx",object_type:"xxx"}}}function g_(e,t,n,r,i){const o=e.expanded_route_items?.filter((e=>1===e.type))?.[0],a=1===o?.type&&o?.item_data?.ident===r;return Object.assign({},e,{sid:{identifier:t,selected_transition_point:n||r,runways:i},expanded_route_items:[...r&&!a?[{is_valid:!0,type:1,item_data:{ident:r,latitude:0,longitude:0}}]:[],...e.expanded_route_items??[]]})}function y_(e,t,n,r,i){const o=e?.expanded_route_items?.filter((e=>1===e.type)).at(-1),a=o&&o.item_data.ident===r;return Object.assign({},e,{star:{identifier:t,selected_transition_point:n||r,runways:i},expanded_route_items:[...e.expanded_route_items??[],...r&&!a?[{is_valid:!0,type:1,item_data:{ident:r,latitude:0,longitude:0}}]:[]]})}function v_(e,t,n,r){return Object.assign({},e,{approach:{identifier:t,selected_transition_point:n,runways:r}})}const b_={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let A_;const x_=new Uint8Array(16),w_=[];for(let AOe=0;AOe<256;++AOe)w_.push((AOe+256).toString(16).slice(1));const C_=function(e,t,n){if(b_.randomUUID&&!t&&!e)return b_.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!A_){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");A_=crypto.getRandomValues.bind(crypto)}return A_(x_)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(w_[e[t+0]]+w_[e[t+1]]+w_[e[t+2]]+w_[e[t+3]]+"-"+w_[e[t+4]]+w_[e[t+5]]+"-"+w_[e[t+6]]+w_[e[t+7]]+"-"+w_[e[t+8]]+w_[e[t+9]]+"-"+w_[e[t+10]]+w_[e[t+11]]+w_[e[t+12]]+w_[e[t+13]]+w_[e[t+14]]+w_[e[t+15]]).toLowerCase()}(r)},S_=LC([]);function E_(){const[e,t]=XC(S_),n=(0,u.useCallback)((function(e){t((t=>t.filter((t=>t.id!==e))))}),[t]),r=(0,u.useCallback)((function(e,r=1e4){const i=C_();t((t=>[...t,{message:e,id:i}])),setTimeout((()=>{n(i)}),r)}),[n,t]);return{toasts:e,addToast:r,removeToast:n}}function k_(){const e=gC(),{mutateAsync:t}=WB(),{mutateAsync:n}=sL(),[r,i]=XC(LL),{data:o,status:a}=o_(r?.routestring),s=HV(),{addToast:l}=E_(),c=(0,u.useCallback)((async(a,s)=>{const c=c_(a);let u=a;var h,d;return o&&(h=o,d=a,h.expanded_route_items?.length!==d.expanded_route_items?.length||!h.expanded_route_items?.every(((e,t)=>{const n=d.expanded_route_items?.[t];return e.type===n?.type&&(1===e.type&&1===n.type?e.item_data.ident===n.item_data.ident:2===e.type&&2===n.type?e.item_data.airway_ident===n.item_data.airway_ident:0===e.type&&0===n.type&&e.item_data.wrong_value===n.item_data.wrong_value)})))&&(u=await e.fetchQuery(["routing",c,"refetch"],(()=>i_(c)))),!r||s?t({routestring:c_(u,{compact:!0})},{onSuccess:i,onError:()=>l("Something went wrong!\nCould not create the flight, please try again later.")}):n(Object.assign({},r,{title:u.origin?.icao_code&&u.destination?.icao_code&&"New Flight"===r.title?a_(r,o,[u.origin.icao_code,u.destination.icao_code]):r.title,routestring:c_(u,{compact:!0})}),{onSuccess:i,onError:()=>l("Something went wrong!\nCould not update the flight, please try again later.")})}),[l,t,r,e,o,i,n]);return(0,u.useMemo)((()=>{const e=(e,t,n,r)=>new Promise((i=>{s.show({modal:"ConfirmAction",options:{title:e,text:t,confirmText:"OK",action:async()=>i(await n()),onCancel:()=>i(r())}})}));return o&&r?.routestring?{hasRoute:!0,status:a,route:o,setOrigin:async e=>e===o.origin?.icao_code?r:c(g_(h_(u_(o,e),""),"")),setOriginWithRunway:async(t,n)=>{const i=o.origin?.selected_runway,a=o.origin?.icao_code,s=a&&t!==a;if(s){if(i){const s=`You're selecting Runway ${T_(n)} at ${t}. This will replace Runway ${T_(i)} at ${a}.`;return e("Airport Conflict",s,(()=>c(h_(u_(o,t),n))),(()=>r))}return await c(h_(u_(o,t),n))}if(!s&&a){if(""===n&&i){const t=`You're about to remove the selected Runway ${T_(i)} at ${a}.`;return e("Remove Runway?",t,(()=>c(h_(o,n))),(()=>r))}if(""!==n&&i){const t=`You're selecting Runway ${T_(n)}. This will replace Runway ${T_(i)} at ${a}.`;return e("Runway Conflict",t,(()=>c(h_(o,n))),(()=>r))}return await c(h_(o,n))}return c(h_(u_(o,t),n))},setDestination:async e=>e===o.destination?.icao_code?r:c(y_(v_(f_(d_(o,e),""),""),"")),setDestinationWithRunway:async(t,n)=>{const i=o.destination?.selected_runway,a=o.destination?.icao_code,s=a&&t!==a;if(s){if(i){const s=`You're selecting Runway ${T_(n)} at ${t}. This will replace Runway ${T_(i)} at ${a}.`;return e("Airport Conflict",s,(()=>c(f_(d_(o,t),n))),(()=>r))}return await c(f_(d_(o,t),n))}if(!s&&a){if(""===n&&i){const t=`You're about to remove the selected Runway ${T_(i)} at ${a}.`;return e("Remove Runway?",t,(()=>c(f_(o,n))),(()=>r))}if(""!==n&&i){const t=`You're selecting Runway ${T_(n)}. This will replace Runway ${T_(i)} at ${a}.`;return e("Runway Conflict",t,(()=>c(f_(o,n))),(()=>r))}return await c(f_(o,n))}return c(f_(d_(o,t),n))},setDepartureRunway:e=>{const t=e&&o.sid&&!o.sid?.runways?.includes(e),n=!e&&1===o.sid?.runways?.length&&o.sid.runways.includes(o.origin?.selected_runway??"");if(t||n){const n=t?`Procedure ${o.sid?.identifier??""} does not connect to Runway ${e.slice(2)} and will be removed`:`Procedure ${o.sid?.identifier??""} is dependent on ${o.origin?.selected_runway??""} and will be removed`;return new Promise((i=>{s.show({modal:"ConfirmAction",options:{title:"Procedure Conflict",text:n,confirmText:"OK",action:async()=>{i(t?await c(h_(o,e)):await c(h_(g_(o,""),e)))},onCancel:()=>i(r)}})}))}return c(h_(o,e))},setDepartureProcedure:e=>{const t=o.origin?.selected_runway,n=e&&e.runways.length,i=t&&!e?.runways.includes(t);let a=o;if(e){const o=l_(e.transitionIdentifier)?null:e.transitionIdentifier;if(a=g_(a,e.sidIdentifier,o,e.fixIdentifier,e.runways),1===n?a=h_(a,e.runways[0]):n&&n>1&&(e.runways.map((e=>e===t))||(a=h_(a,""))),i&&e?.sidIdentifier)return new Promise((i=>{s.show({modal:"ConfirmAction",options:{title:"Procedure Conflict",text:`${e.sidIdentifier} does not connect to ${t}. ${1===n?`Runway will be changed to ${e?.runways[0]}.`:`${t} will be removed.`}`,confirmText:"OK",action:async()=>{i(await c(a))},onCancel:()=>i(r)}})}))}else a=g_(a,"");return c(a)},insertWaypoint:(e,t)=>c(p_(o,e,t)),setArrivalProcedure:e=>{const t=o.destination?.selected_runway,n=e&&e.runways.length,i=t&&!e?.runways.includes(t),a=e&&!o.approach?.runways?.includes(e.runways[0]);let l=o;if(e){const u=l_(e.transitionIdentifier)?null:e.transitionIdentifier;if(l=y_(o,e.starIdentifier,u,e.fixIdentifier,e.runways),1===n?l=f_(l,e.runways[0]):n&&n>1&&(e.runways.find((e=>e===t))||(l=f_(l,"")),a&&(l=v_(l,""))),i)return new Promise((i=>{s.show({modal:"ConfirmAction",options:{title:"Procedure Conflict",text:`${e.starIdentifier} does not connect to ${t}. ${1===n?`Runway will be changed to ${e.runways[0]}.`:`${t} will be removed.`}${a?" Approach will be removed.":""}`,confirmText:"OK",action:async()=>{i(await c(l))},onCancel:()=>i(r)}})}))}else l=y_(o,"");return c(l)},setArrivalRunway:t=>{const n=t&&o.star?.identifier&&!o.star.runways?.includes(t),i=t&&o.approach?.identifier&&!o.approach.runways?.includes(t),a=""===t&&1===o.approach?.runways?.length&&o.approach.runways.includes(o.destination?.selected_runway??""),s=""===t&&1===o.star?.runways?.length&&o.star.runways.includes(o.destination?.selected_runway??"");return i||n?e("Procedure Conflict",`Procedure ${n&&o.star?o.star.presentation_text??"":""}${i&&n?" and ":""}${i?o.approach?.presentation_text??"":""} does not connect to Runway ${t.slice(2)} and will be removed.`,(()=>c(f_(o,t))),(()=>r)):a?s?e("Procedure Conflict",`Approach ${o.approach?.presentation_text??""} and Procedure ${o.star?.presentation_text??""} are dependent on ${o.destination?.selected_runway??""} and will also be removed.`,(()=>c(f_(v_(y_(o,""),""),t))),(()=>r)):e("Procedure Conflict",`Approach ${o.approach?.presentation_text??""} is dependent on ${o.destination?.selected_runway??""} and will also be removed`,(()=>c(f_(v_(o,""),t))),(()=>r)):s?e("Procedure Conflict",`Procedure ${o.star?.presentation_text??""} is dependent on ${o.destination?.selected_runway??""} and will also be removed`,(()=>c(f_(y_(o,""),t))),(()=>r)):c(f_(o,t))},setApproach:e=>{const t=o.destination?.selected_runway,n=e?.runways?.[0],i=t&&!e?.runways.includes(t),a=n&&o.star?.identifier&&!o.star.runways?.includes(n),l=e&&e.runways.length;let u;if(null!==e){u=v_(o,e.approachIdentifier,e.transitionIdentifier,e.runways),1===l?u=f_(u,e.runways[0]):l&&l>1&&(e.runways.find((e=>e===t))||(u=f_(u,""))),a&&(u=y_(u,""));let n="";if((i||a)&&e)return n=i?`Approach ${e.approachIdentifier} does not connect to ${t}. ${1===l?`Runway will be changed to ${e.runways[0]}.`:`${t} will be removed.`}`+(a?` Procedure ${o.star?.presentation_text??""} will be removed.`:""):`Procedure ${o.star?.presentation_text??""} does not connect to Runway ${t??""} and will be removed.`,new Promise((e=>{s.show({modal:"ConfirmAction",options:{title:"Procedure Conflict",text:n,confirmText:"OK",action:async()=>{e(await c(u))},onCancel:()=>e(r)}})}))}else u=v_(o,"");return c(u)},replaceRoute:(e,t)=>c(e,t)}:{hasRoute:!1,status:a,setOrigin:e=>c(u_(void 0,e)),setOriginWithRunway:(e,t)=>{const n=h_(u_(void 0,e),t);return c(n,!0)},setDestination:e=>c(d_(void 0,e)),setDestinationWithRunway:(e,t)=>{const n=f_(d_(void 0,e),t);return c(n,!0)},replaceRoute:(e,t)=>c(e,t),insertWaypoint:(e,t)=>c(p_(o,e,t))}}),[r,s,c,o,a])}const T_=e=>e.startsWith("RW")?e.slice(2):e;function I_(e,t,n,r,i){const o=c_(e);if(t===n)return o;let a=null;if(i){a=`${i}\\s.*${n}`;const e=new RegExp(a);if(o.search(e)<0)throw new Error(`Could not splice autoroute between: ${t} - ${n} with original route ${o}`);const s=r.replace(`${t} SID`,i);return o.replace(e,s)}{a=`(${t}((-|/)\\w+)?)\\s.*${n}`;const e=new RegExp(a);if(o.search(e)<0)throw new Error(`Could not splice autoroute between: ${t} - ${n} with original route ${o}`);const i=e.exec(o)?.[1],s=new RegExp(a);return o.replace(s,r.replace(t,i??t))}}function O_({text:e,sx:t,sxText:n}){return(0,Al.jsx)(eI,{sx:Object.assign({position:"absolute",top:-10,right:-10,backgroundColor:"Charts/RWY/900",borderColor:"Charts/RWY/600",boxShadow:"0px 0px 2px rgba(81, 201, 253, 0.8)",borderWidth:1,paddingX:4,paddingY:2,alignItems:"center",justifyContent:"center",borderRadius:10,zIndex:2},t),children:(0,Al.jsx)(iI,{variant:"xs",sx:Object.assign({fontWeight:"600",textAlign:"center"},n),children:e})})}function R_(e,t,n,r){if(n)return-1;const i=t[e];return r.includes(i)?-1:e}function M_({segments:e,currentIndex:t,onChange:n,containerStyle:r={},textVariant:i="s",segmentActiveColor:o,segmentInactiveColor:a,disabled:s=!1,disabledSegments:l=[],badges:c=[],segmentTitles:h,dynamicSegmentSize:d=!1}){return(0,u.useEffect)((()=>{(l.includes(e[t])||-1===t)&&n(e.findIndex((e=>!l.includes(e))))}),[t,l,n,e]),(0,Al.jsxs)(eI,{sx:Object.assign({backgroundColor:"Background/500",height:24,p:1,borderColor:"Background/700",borderWidth:1,borderRadius:6,width:"full",opacity:s?.2:1},r),children:[(0,Al.jsx)(tN,{spacing:4,direction:"row",childrenSize:d?"dynamic":"fill",sx:{flex:1},children:e.map(((r,c)=>(0,Al.jsx)(P_,{activeColor:o?.(c),inactiveColor:a?.(c),disabled:s||l.includes(r),isActive:R_(t,e,s,l)===c,text:r,textVariant:i,title:h?.[r],onPress:()=>n(c)},c)))}),(0,Al.jsx)(eI,{pointerEvents:"none",sx:{position:"absolute",left:0,right:0,top:0,bottom:0},children:(0,Al.jsx)(tN,{spacing:4,direction:"row",childrenSize:d?"dynamic":"fill",sx:{flex:1},children:c.map(((t,n)=>(0,Al.jsxs)(eI,{sx:{flex:1,position:"relative",borderWidth:1,borderColor:"transparent"},children:[(0,Al.jsx)(iI,{variant:i,sx:{fontWeight:"600",textAlign:"center",opacity:0},children:e[n]}),Boolean(t)&&(0,Al.jsx)(O_,{text:t,sx:{top:-6,right:-6,paddingY:0,paddingX:0,width:12,height:12},sxText:{position:"absolute"}})]},n)))})})]})}function P_({disabled:e,isActive:t,text:n,textVariant:r="s",onPress:i,activeColor:o={background:"Blue/400",border:"Blue/200"},inactiveColor:a="White",title:s}){const l=pI(),c=gI(),u=["android","ios"].includes(Da.OS);return(0,Al.jsx)(eI,{sx:{flex:1},title:s,children:(0,Al.jsx)(nI,{sx:{flex:1},disabled:e,onPress:i,hitSlop:u?8:void 0,children:({hovered:i})=>(0,Al.jsxs)(eI,{style:[l({flex:1,borderWidth:1,borderRadius:4,justifyContent:"center",boxShadow:t?"sm":void 0,opacity:e?.2:1}),{backgroundColor:t?c(o.background):"transparent",borderColor:t?c(o.border):"transparent"}],children:[(0,Al.jsx)(iI,{selectable:!1,variant:r,style:[l({fontWeight:"600",textAlign:"center"}),{color:c(t?"White":a)}],children:n}),(0,Al.jsx)(eI,{style:[Object.assign({position:"absolute",left:-1,top:-1,right:-1,bottom:-1,borderRadius:4},i?{shadowColor:"rgba(0, 0, 0, 0.25)",shadowOffset:{width:0,height:4},shadowRadius:5}:{}),{backgroundColor:i&&!t?"rgba(255, 255, 255, 0.08)":"transparent"}]})]})})})}const D_=["Low","High"];function j_({origin:e,destination:t,customMessage:n,onClose:r}){const[i,o]=(0,u.useState)("High"),a=k_(),s=gC(),[l,c]=(0,u.useState)(!1),{addToast:h}=E_(),d=(0,u.useCallback)((async()=>{if(!a.hasRoute||!a.route.origin)return;c(!0);const{autoRouteOrigin:n,originRegion:o,originIsAirport:l}=function(e,t){if(t&&t!==e.origin?.icao_code)return{autoRouteOrigin:t,originRegion:e.expanded_route_items?.filter((e=>1===e.type))?.find((e=>e.item_data.ident===t))?.item_data.icao_code??"",originIsAirport:!1};if(e.sid&&e.origin&&!t){if(0===e.sid.transition_points?.length)return{autoRouteOrigin:e.origin.icao_code,originRegion:e.origin.icao_region,originIsAirport:!0};if(e.sid.selected_transition_point){const t=e.expanded_route_items?.filter((e=>1===e.type))?.at(0);return{autoRouteOrigin:e.sid.selected_transition_point,originRegion:t?.item_data.ident===e.sid.selected_transition_point?t.item_data.icao_code??e.origin.icao_region:e.origin.icao_region,originIsAirport:!1}}if(e.sid.identifier)return{autoRouteOrigin:e.sid.identifier,originRegion:e.origin?.icao_region,originIsAirport:!1};throw new Error("SID has no identifier")}if(e.origin?.icao_code)return{autoRouteOrigin:e.origin?.icao_code,originRegion:e.origin?.icao_region,originIsAirport:!0};if(e.origin?.longitude&&e.origin?.latitude&&e.origin.icao_region)return{autoRouteOrigin:`${e.origin?.longitude}/${e.origin?.latitude}`,originRegion:e.origin.icao_region,originIsAirport:!0};throw new Error("No Origin found on route")}(a.route,e),{autoRouteDestination:u,destinationRegion:d}=function(e,t){if(t&&t!==e.destination?.icao_code)return{autoRouteDestination:t,destinationRegion:e.expanded_route_items?.filter((e=>1===e.type))?.find((e=>e.item_data.ident===t))?.item_data.icao_code??""};if(e.star&&e.destination){if(e.star.selected_transition_point){const t=e.expanded_route_items?.filter((e=>1===e.type))?.at(-1);return{autoRouteDestination:e.star.selected_transition_point,destinationRegion:t?.item_data.ident===e.star.selected_transition_point?t.item_data.icao_code??e.destination.icao_region:e.destination.icao_region}}if(e.star.identifier)return{autoRouteDestination:e.star.identifier,destinationRegion:e.destination.icao_region};throw new Error("STAR has no identifier")}if(e.destination?.icao_code)return{autoRouteDestination:e.destination?.icao_code,destinationRegion:e.destination.icao_region};if(e.destination?.longitude&&e.destination?.latitude)return{autoRouteDestination:`${e.destination?.longitude}/${e.destination?.latitude}`,destinationRegion:e.destination.icao_region};throw new Error("Destination has no ICAO-code and no coordinates")}(a.route,t);let f="";if(!n||!u)throw oS.err("Cannot autoroute without Origin and Destination"),Error("Cannot auto-route without origin and destination");f=await s.fetchQuery(["autoRoute",n,u,i,o,d],(()=>async function(e,t,n,r,i){const o={origin:e,originRegion:r,destination:t,destinationRegion:i,level:{LOW:"L",HIGH:"H"}[n]};return(await jB.get(`${rS.fmsdataAPIUrl}/1/RouteCalculation`,{params:o})).data}(n,u,i.toUpperCase(),o,d)));let p=c_(a.route);if(function(e){return!e.includes("ERROR")&&!e.includes("Invalid value")}(f))try{p=l&&a.route.sid?.identifier?I_(a.route,n,u,f,a.route.sid.identifier):I_(a.route,n,u,f)}catch(e){const t=(m=e)instanceof Error?m.message:String(m);oS.err(`Error splicing autoroute suggestion: ${t}`),h("Failed to construct a route.")}else oS.err(`Invalid suggested route returned from Route Calculator: ${f}`),h("Failed to create a route. Please try again later.");var m;const g=await s.fetchQuery(["routing",p],(()=>i_(p)));await a.replaceRoute(g).catch((e=>oS.err(e))),r?.()}),[a,e,t,s,r,i,h]);return(0,Al.jsx)(HN,{children:(0,Al.jsxs)(eI,{children:[(0,Al.jsx)(iI,{variant:"l",sx:{mb:"xs",textAlign:"center",fontWeight:"600"},children:"Autoroute"}),l?(0,Al.jsx)(e_,{}):(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsxs)(eI,{sx:{flexDirection:"row",width:"100%",justifyContent:"space-between",alignItems:"center",mb:"xs"},children:[(0,Al.jsx)(iI,{variant:"s",selectable:!1,sx:{fontWeight:"600",pr:"s"},children:"Airways type"}),(0,Al.jsx)(M_,{containerStyle:{width:104},segments:D_,currentIndex:D_.indexOf(i),onChange:e=>{o(D_[e])}})]}),(0,Al.jsx)(iI,{sx:{mb:"s",textAlign:"center"},children:n||"This will discard the route you currently might have on this flight."}),(0,Al.jsxs)(eI,{sx:{flexDirection:"row",width:"full",justifyContent:"space-between"},children:[(0,Al.jsx)(uI,{size:"medium",sx:{width:"auto"},onPress:()=>r?.(),children:"Cancel"}),(0,Al.jsx)(cI,{size:"medium",sx:{width:"auto"},onPress:d,testID:"AutorouteCreateButton",children:"Create"})]})]})]})})}function B_({onClose:e,onCancel:t,onSuccess:n,action:r,title:i,confirmText:o,text:a,destructiveConfirm:s=!1}){const[l,c]=(0,u.useState)(!1),h=(0,u.useCallback)((()=>{c(!0),async function(){await r(),n?.(),e?.()}()}),[r,n,e]);return(0,Al.jsx)(HN,{children:(0,Al.jsxs)(eI,{children:[(0,Al.jsx)(iI,{variant:"l",sx:{mb:"xs",textAlign:"center"},children:i}),a&&(0,Al.jsx)(eI,{sx:{mb:"s"},children:(0,Al.jsx)(iI,{variant:"m",sx:{textAlign:"center",fontWeight:"400"},children:a})}),l?(0,Al.jsx)(e_,{}):(0,Al.jsx)(Al.Fragment,{children:(0,Al.jsxs)(eI,{sx:{flexDirection:"row",width:"full",justifyContent:"space-between"},children:[(0,Al.jsx)(uI,{size:"medium",sx:{width:100},onPress:()=>{t?.(),e?.()},children:"Cancel"}),!s&&(0,Al.jsx)(cI,{testID:"ConfirmActionButton",size:"medium",sx:{width:100},onPress:h,children:o}),s&&(0,Al.jsx)(hI,{testID:"ConfirmActionButton",size:"medium",sx:{width:100},onPress:h,children:o})]})})]})})}function L_({onClose:e,onSuccess:t,onCancel:n,initialCharts:r=[]}){const i=JB(),[o,a]=(0,u.useState)(""),s=(0,u.useCallback)((()=>{i.mutate({title:o,charts:r.map((e=>"icao_airport_identifier"in e?{id:e.id,airport:e.icao_airport_identifier,name:e.name,indexNumber:e.index_number,isGeoReferenced:e.is_georeferenced,category:e.category}:e))},{onSuccess:n=>{t?.(n),e?.()}})}),[i,o,r,t,e]);return(0,Al.jsx)(HN,{children:(0,Al.jsxs)(eI,{children:[(0,Al.jsx)(iI,{variant:"l",sx:{mb:"xs",textAlign:"center",fontWeight:"600"},children:"Create pinboard"}),i.isLoading?(0,Al.jsx)(e_,{}):(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsx)(eI,{sx:{flexDirection:"row",width:"100%",justifyContent:"space-between",alignItems:"center",mb:"s"},children:(0,Al.jsx)(fN,{placeholder:"New pinboard",value:o,onChangeText:a,onSubmitEditing:s,icon:"edit",autoFocus:!0})}),(0,Al.jsxs)(eI,{sx:{flexDirection:"row",width:"full",justifyContent:"space-between"},children:[(0,Al.jsx)(uI,{size:"medium",sx:{width:"auto"},onPress:()=>{n?.(),e?.()},children:"Cancel"}),(0,Al.jsx)(cI,{size:"medium",sx:{width:"auto"},onPress:s,disabled:!o,children:"Create"})]})]})]})})}function F_(){return{type:"GO_BACK"}}function N_(){if("string"==typeof(arguments.length<=0?void 0:arguments[0]))return{type:"NAVIGATE",payload:{name:arguments.length<=0?void 0:arguments[0],params:arguments.length<=1?void 0:arguments[1]}};{const e=(arguments.length<=0?void 0:arguments[0])||{};if(!e.hasOwnProperty("key")&&!e.hasOwnProperty("name"))throw new Error("You need to specify name or key when calling navigate with an object as the argument. See https://reactnavigation.org/docs/navigation-actions#navigate for usage.");return{type:"NAVIGATE",payload:e}}}function __(e){return{type:"RESET",payload:e}}function z_(e){return{type:"SET_PARAMS",payload:{params:e}}}const V_="The 'navigation' object hasn't been initialized yet. This might happen if you don't have a navigator mounted, or if the navigator hasn't finished mounting. See https://reactnavigation.org/docs/navigating-without-navigation-prop#handling-initialization for more details.";function U_(){const e=[...Object.keys(t),"addListener","removeListener","resetRoot","dispatch","isFocused","canGoBack","getRootState","getState","getParent","getCurrentRoute","getCurrentOptions"],n={},r=(e,t)=>{n[e]&&(n[e]=n[e].filter((e=>e!==t)))};let i=null;const o={get current(){return i},set current(e){i=e,null!=e&&Object.entries(n).forEach((t=>{let[n,r]=t;r.forEach((t=>{e.addListener(n,t)}))}))},isReady:()=>null!=i&&i.isReady(),...e.reduce(((e,t)=>(e[t]=function(){for(var e=arguments.length,o=new Array(e),a=0;ar(e,t)}case"removeListener":{const[e,t]=o;r(e,t);break}default:console.error(V_)}},e)),{})};return o}const H_=u.createContext(void 0);function q_(e){let{children:t}=e;const n=u.useRef(),r=u.useMemo((()=>({register(e){const t=n.current;if(void 0!==t&&e!==t)throw new Error('Another navigator is already registered for this container. You likely have multiple navigators under a single "NavigationContainer" or "Screen". Make sure each navigator is under a separate "Screen" container. See https://reactnavigation.org/docs/nesting-navigators for a guide on nesting.');n.current=e},unregister(e){e===n.current&&(n.current=void 0)}})),[]);return u.createElement(H_.Provider,{value:r},t)}function G_(e){var t,n;let r=e;for(;null!=(null===(i=r)||void 0===i?void 0:i.routes[r.index??0].state);){var i;r=r.routes[r.index??0].state}return null===(t=r)||void 0===t?void 0:t.routes[(null===(n=r)||void 0===n?void 0:n.index)??0]}const Y_=u.createContext({onDispatchAction:()=>{},onOptionsChange:()=>{}}),W_=u.createContext(void 0),Q_=u.createContext(void 0),X_=u.createContext(void 0),J_="Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'? See https://reactnavigation.org/docs/getting-started for setup instructions.",Z_=u.createContext({isDefault:!0,get getKey(){throw new Error(J_)},get setKey(){throw new Error(J_)},get getState(){throw new Error(J_)},get setState(){throw new Error(J_)},get getIsInitial(){throw new Error(J_)}}),K_=u.createContext(void 0);function $_(){const{current:e}=u.useRef({action:[],focus:[]}),t=u.useCallback(((t,n)=>{e[t].push(n);let r=!1;return()=>{const i=e[t].indexOf(n);!r&&i>-1&&(r=!0,e[t].splice(i,1))}}),[e]);return{listeners:e,addListener:t}}function ez(e){const t=u.useRef(e);u.useEffect((()=>{t.current=e}));const n=u.useRef(Object.create(null)),r=u.useCallback((e=>{const t=(t,r)=>{const i=n.current[t]?n.current[t][e]:void 0;if(!i)return;const o=i.indexOf(r);o>-1&&i.splice(o,1)};return{addListener:(r,i)=>{n.current[r]=n.current[r]||{},n.current[r][e]=n.current[r][e]||[],n.current[r][e].push(i);let o=!1;return()=>{o||(o=!0,t(r,i))}},removeListener:t}}),[]),i=u.useCallback((e=>{var r,i;let{type:o,data:a,target:s,canPreventDefault:l}=e;const c=n.current[o]||{},u=void 0!==s?null===(r=c[s])||void 0===r?void 0:r.slice():[].concat(...Object.keys(c).map((e=>c[e]))).filter(((e,t,n)=>n.lastIndexOf(e)===t)),h={get type(){return o}};if(void 0!==s&&Object.defineProperty(h,"target",{enumerable:!0,get:()=>s}),void 0!==a&&Object.defineProperty(h,"data",{enumerable:!0,get:()=>a}),l){let e=!1;Object.defineProperties(h,{defaultPrevented:{enumerable:!0,get:()=>e},preventDefault:{enumerable:!0,value(){e=!0}}})}return null===(i=t.current)||void 0===i||i.call(t,h),null==u||u.forEach((e=>e(h))),h}),[]);return u.useMemo((()=>({create:r,emit:i})),[r,i])}function tz(){const{current:e}=u.useRef(Object.assign(Object.create(null),{getState:{},beforeRemove:{}})),t=u.useCallback(((t,n,r)=>(e[t][n]=r,()=>{e[t][n]=void 0})),[e]);return{keyedListeners:e,addKeyedListener:t}}function nz(e){let{key:t,options:n,navigation:r}=e;const i=u.useRef(n),o=u.useRef({}),{onOptionsChange:a}=u.useContext(Y_),{addOptionsGetter:s}=u.useContext(Z_),l=u.useCallback((()=>{const e=(null==r?void 0:r.isFocused())??!0,t=Object.keys(o.current).length;e&&!t&&a(i.current??{})}),[r,a]);u.useEffect((()=>(i.current=n,l(),null==r?void 0:r.addListener("focus",l))),[r,n,l]);const c=u.useCallback((()=>{for(let n in o.current)if(o.current.hasOwnProperty(n)){var e,t;const r=null===(e=(t=o.current)[n])||void 0===e?void 0:e.call(t);if(null!==r)return r}return null}),[]),h=u.useCallback((()=>{if(!((null==r?void 0:r.isFocused())??1))return null;const e=c();return null!==e?e:i.current}),[r,c]);u.useEffect((()=>null==s?void 0:s(t,h)),[h,s,t]);const d=u.useCallback(((e,t)=>(o.current[e]=t,l(),()=>{delete o.current[e],l()})),[l]);return{addOptionsGetter:d,getCurrentOptions:h}}const rz="Couldn't find a schedule context.",iz=u.createContext({scheduleUpdate(){throw new Error(rz)},flushUpdates(){throw new Error(rz)}}),oz={},az=e=>{if(void 0===e)return;const{key:t,routeNames:n,...r}=e;return{...r,stale:!0,routes:e.routes.map((e=>void 0===e.state?e:{...e,state:az(e.state)}))}},sz=u.forwardRef((function(e,n){let{initialState:r,onStateChange:i,onUnhandledAction:o,independent:a,children:s}=e;if(!u.useContext(Z_).isDefault&&!a)throw new Error("Looks like you have nested a 'NavigationContainer' inside another. Normally you need only one container at the root of the app, so this was probably an error. If this was intentional, pass 'independent={true}' explicitly. Note that this will make the child navigators disconnected from the parent and you won't be able to navigate between them.");const[l,c,h,d,f]=function(e){const t=u.useRef(oz),n=u.useRef(!1),r=u.useRef(!0);u.useEffect((()=>(r.current=!0,()=>{r.current=!1})),[]),t.current===oz&&(t.current=e());const[i,o]=u.useState(t.current),a=u.useCallback((()=>t.current),[]),s=u.useCallback((e=>{e!==t.current&&r.current&&(t.current=e,n.current||o(e))}),[]),l=u.useCallback((e=>{n.current=!0;try{e()}finally{n.current=!1}}),[]),c=u.useCallback((()=>{r.current&&o(t.current)}),[]);i!==t.current&&o(t.current);const h=t.current;return u.useDebugValue(h),[h,a,s,l,c]}((()=>az(null==r?void 0:r))),p=u.useRef(!0),m=u.useRef(),g=u.useCallback((()=>m.current),[]),y=u.useCallback((e=>{m.current=e}),[]),{listeners:v,addListener:b}=$_(),{keyedListeners:A,addKeyedListener:x}=tz(),w=u.useCallback((e=>{null==v.focus[0]?console.error(V_):v.focus[0]((t=>t.dispatch(e)))}),[v.focus]),C=u.useCallback((()=>{if(null==v.focus[0])return!1;const{result:e,handled:t}=v.focus[0]((e=>e.canGoBack()));return!!t&&e}),[v.focus]),S=u.useCallback((e=>{var t,n;const r=(null==e?void 0:e.key)??(null===(t=(n=A.getState).root)||void 0===t?void 0:t.call(n).key);null==r?console.error(V_):v.focus[0]((t=>t.dispatch({...__(e),target:r})))}),[A.getState,v.focus]),E=u.useCallback((()=>{var e,t;return null===(e=(t=A.getState).root)||void 0===e?void 0:e.call(t)}),[A.getState]),k=u.useCallback((()=>{const e=E();if(null!=e)return G_(e)}),[E]),T=ez(),{addOptionsGetter:I,getCurrentOptions:O}=nz({}),R=u.useMemo((()=>({...Object.keys(t).reduce(((e,n)=>(e[n]=function(){return w(t[n](...arguments))},e)),{}),...T.create("root"),dispatch:w,resetRoot:S,isFocused:()=>!0,canGoBack:C,getParent:()=>{},getState:()=>V.current,getRootState:E,getCurrentRoute:k,getCurrentOptions:O,isReady:()=>null!=v.focus[0],setOptions:()=>{throw new Error("Cannot call setOptions outside a screen")}})),[C,w,T,O,k,E,v.focus,S]);u.useImperativeHandle(n,(()=>R),[R]);const M=u.useCallback(((e,t)=>{T.emit({type:"__unsafe_action__",data:{action:e,noop:t,stack:j.current}})}),[T]),P=u.useRef(),D=u.useCallback((e=>{P.current!==e&&(P.current=e,T.emit({type:"options",data:{options:e}}))}),[T]),j=u.useRef(),B=u.useMemo((()=>({addListener:b,addKeyedListener:x,onDispatchAction:M,onOptionsChange:D,stackRef:j})),[b,x,M,D]),L=u.useMemo((()=>({scheduleUpdate:d,flushUpdates:f})),[d,f]),F=u.useRef(!0),N=u.useCallback((()=>F.current),[]),_=u.useMemo((()=>({state:l,getState:c,setState:h,getKey:g,setKey:y,getIsInitial:N,addOptionsGetter:I})),[l,c,h,g,y,N,I]),z=u.useRef(i),V=u.useRef(l);u.useEffect((()=>{F.current=!1,z.current=i,V.current=l})),u.useEffect((()=>{const e=E();T.emit({type:"state",data:{state:l}}),!p.current&&z.current&&z.current(e),p.current=!1}),[E,T,l]);const U=u.useCallback((e=>{}),[]);let H=u.createElement(W_.Provider,{value:R},u.createElement(iz.Provider,{value:L},u.createElement(Y_.Provider,{value:B},u.createElement(Z_.Provider,{value:_},u.createElement(K_.Provider,{value:o??U},u.createElement(q_,null,s))))));return a&&(H=u.createElement(X_.Provider,{value:void 0},u.createElement(Q_.Provider,{value:void 0},H))),H})),lz=sz;function cz(e){return null}function uz(e){return null}function hz(e){return function(){if(void 0!==arguments[0])throw new Error("Creating a navigator doesn't take an argument. Maybe you are trying to use React Navigation 4 API? See https://reactnavigation.org/docs/hello-react-navigation for the latest API and guides.");return{Navigator:e,Group:cz,Screen:uz}}}const dz=u.createContext(void 0);function fz(e,t){var n;const r=t?pz(t):{},i=null!=e.index?e.routes.slice(0,e.index+1):e.routes;if(0===i.length)return;if(!(1===i.length&&void 0===i[0].key||2===i.length&&void 0===i[0].key&&i[0].name===(null==r?void 0:r.initialRouteName)&&void 0===i[1].key))return{type:"RESET",payload:e};const o=e.routes[e.index??e.routes.length-1];let a=null==o?void 0:o.state,s=null==r||null===(n=r.screens)||void 0===n?void 0:n[null==o?void 0:o.name],l={...o.params},c=o?{name:o.name,path:o.path,params:l}:void 0;for(;a;){var u,h,d;if(0===a.routes.length)return;const e=null!=a.index?a.routes.slice(0,a.index+1):a.routes,t=e[e.length-1];if(Object.assign(l,{initial:void 0,screen:void 0,params:void 0,state:void 0}),1===e.length&&void 0===e[0].key)l.initial=!0,l.screen=t.name;else{if(2!==e.length||void 0!==e[0].key||e[0].name!==(null===(u=s)||void 0===u?void 0:u.initialRouteName)||void 0!==e[1].key){l.state=a;break}l.initial=!1,l.screen=t.name}t.state?(l.params={...t.params},l=l.params):(l.path=t.path,l.params=t.params),a=t.state,s=null===(h=s)||void 0===h||null===(d=h.screens)||void 0===d?void 0:d[t.name]}return c?{type:"NAVIGATE",payload:c}:void 0}const pz=e=>"object"==typeof e&&null!=e?{initialRouteName:e.initialRouteName,screens:null!=e.screens?mz(e.screens):void 0}:{},mz=e=>Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return e[n]=pz(r),e}),{});Symbol("CHILD_STATE");var gz=__webpack_require__(86663);function yz(e){return e.reduce(((e,t)=>{let[n,r]=t;if(e.hasOwnProperty(n))throw new Error(`A value for key '${n}' already exists in the object.`);return e[n]=r,e}),{})}const vz=e=>e.map((e=>`- ${e}`)).join("\n");function bz(e){const t=["initialRouteName","screens"];!(arguments.length>1&&void 0!==arguments[1])||arguments[1]||t.push("path","exact","stringify","parse");const n=Object.keys(e).filter((e=>!t.includes(e)));if(n.length)throw new Error(`Found invalid properties in the configuration:\n${vz(n)}\n\nDid you forget to specify them under a 'screens' property?\n\nYou can only specify the following properties:\n${vz(t)}\n\nSee https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.`);e.screens&&Object.entries(e.screens).forEach((e=>{let[t,n]=e;"string"!=typeof n&&bz(n,!1)}))}const Az=e=>{const t="number"==typeof e.index?e.routes[e.index]:e.routes[e.routes.length-1];return t.state?Az(t.state):t};function xz(e,t){if(null==e)throw Error("Got 'undefined' for the navigation state. You must pass a valid state object.");t&&bz(t);const n=null!=t&&t.screens?Sz(null==t?void 0:t.screens):{};let r="/",i=e;const o={};for(;i;){let t,l,c="number"==typeof i.index?i.index:0,u=i.routes[c],h=Az(e),d=n,f=[],p=!0;for(;u.name in d&&p;){if(t=d[u.name].pattern,f.push(u.name),u.params){var a;const e=null===(a=d[u.name])||void 0===a?void 0:a.stringify,n=yz(Object.entries(u.params).map((t=>{let[n,r]=t;return[n,null!=e&&e[n]?e[n](r):String(r)]})));var s;t&&Object.assign(o,n),h===u&&(l={...n},null===(s=t)||void 0===s||s.split("/").filter((e=>e.startsWith(":"))).forEach((e=>{const t=wz(e);l&&delete l[t]})))}if(d[u.name].screens&&void 0!==u.state){c="number"==typeof u.state.index?u.state.index:u.state.routes.length-1;const e=u.state.routes[c],t=d[u.name].screens;t&&e.name in t?(u=e,d=t):p=!1}else p=!1}if(void 0===t&&(t=f.join("/")),void 0!==d[u.name]?r+=t.split("/").map((e=>{const t=wz(e);if("*"===e)return u.name;if(e.startsWith(":")){const n=o[t];return void 0===n&&e.endsWith("?")?"":encodeURIComponent(n)}return encodeURIComponent(e)})).join("/"):r+=encodeURIComponent(u.name),l||(l=h.params),u.state)r+="/";else if(l){for(let e in l)"undefined"===l[e]&&delete l[e];const e=gz.stringify(l,{sort:!1});e&&(r+=`?${e}`)}i=u.state}return r=r.replace(/\/+/g,"/"),r=r.length>1?r.replace(/\/$/,""):r,r}const wz=e=>e.replace(/^:/,"").replace(/\?$/,""),Cz=function(){for(var e=arguments.length,t=new Array(e),n=0;ne.split("/")))).filter(Boolean).join("/")},Sz=(e,t)=>yz(Object.entries(e).map((e=>{let[n,r]=e;const i=((e,t)=>{var n;if("string"==typeof e)return{pattern:t?Cz(t,e):e};let r;if(e.exact&&void 0===e.path)throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");r=!0!==e.exact?Cz(t||"",e.path||""):e.path||"";const i=e.screens?Sz(e.screens,r):void 0;return{pattern:null===(n=r)||void 0===n?void 0:n.split("/").filter(Boolean).join("/"),stringify:e.stringify,screens:i}})(r,t);return[n,i]})));var Ez=__webpack_require__(52834),kz=__webpack_require__.n(Ez);function Tz(e,t){t&&bz(t);let n=[];null!=t&&t.initialRouteName&&n.push({initialRouteName:t.initialRouteName,parentScreens:[]});const r=null==t?void 0:t.screens;let i=e.replace(/\/+/g,"/").replace(/^\//,"").replace(/\?.*$/,"");if(i=i.endsWith("/")?i:`${i}/`,void 0===r){const t=i.split("/").filter(Boolean).map((e=>({name:decodeURIComponent(e)})));return t.length?jz(e,t,n):void 0}const o=[].concat(...Object.keys(r).map((e=>Rz(e,r,[],n,[])))).sort(((e,t)=>{if(e.pattern===t.pattern)return t.routeNames.join(">").localeCompare(e.routeNames.join(">"));if(e.pattern.startsWith(t.pattern))return-1;if(t.pattern.startsWith(e.pattern))return 1;const n=e.pattern.split("/"),r=t.pattern.split("/");for(let e=0;e{if(e[t.pattern]){const n=e[t.pattern].routeNames,r=t.routeNames,i=n.length>r.length?r.every(((e,t)=>n[t]===e)):n.every(((e,t)=>r[t]===e));if(!i)throw new Error(`Found conflicting screens with the same pattern. The pattern '${t.pattern}' resolves to both '${n.join(" > ")}' and '${r.join(" > ")}'. Patterns must be unique and cannot resolve to more than one screen.`)}return Object.assign(e,{[t.pattern]:t})}),{}),"/"===i){const t=o.find((e=>""===e.path&&e.routeNames.every((e=>{var t;return!(null!==(t=o.find((t=>t.screen===e)))&&void 0!==t&&t.path)}))));return t?jz(e,t.routeNames.map((e=>({name:e}))),n,o):void 0}let a,s;const{routes:l,remainingPath:c}=Oz(i,o.map((e=>({...e,regex:e.regex?new RegExp(e.regex.source+"$"):void 0}))));if(void 0!==l&&(s=jz(e,l,n,o),i=c,a=s),null!=s&&null!=a)return a}const Iz=function(){for(var e=arguments.length,t=new Array(e),n=0;ne.split("/")))).filter(Boolean).join("/")},Oz=(e,t)=>{let n,r=e;for(const e of t){if(!e.regex)continue;const o=r.match(e.regex);if(o){var i;const a=(null===(i=e.pattern)||void 0===i?void 0:i.split("/").reduce(((e,t,n)=>{if(!t.startsWith(":"))return e;e.pos+=1;const r=decodeURIComponent(o[2*(e.pos+1)].replace(/\/$/,""));return Object.assign(e.matchedParams,{[t]:Object.assign(e.matchedParams[t]||{},{[n]:r})}),e}),{pos:-1,matchedParams:{}})).matchedParams||{};n=e.routeNames.map((n=>{var r;const i=t.find((t=>t.screen===n&&e.pattern.startsWith(t.pattern))),o=null==i?void 0:i.path.split("/").filter(Boolean).join("/"),s=null==i||null===(r=i.pattern.replace(new RegExp(`${kz()(o)}$`),""))||void 0===r?void 0:r.split("/").length,l=null==o?void 0:o.split("/").reduce(((e,t,n)=>{var r;if(!t.startsWith(":"))return e;const o=s?s-1:0,l=null===(r=a[t])||void 0===r?void 0:r[n+o];if(l){var c;const n=t.replace(/^:/,"").replace(/\?$/,"");e[n]=null!=i&&null!==(c=i.parse)&&void 0!==c&&c[n]?i.parse[n](l):l}return e}),{});return l&&Object.keys(l).length?{name:n,params:l}:{name:n}})),r=r.replace(o[1],"");break}}return{routes:n,remainingPath:r}},Rz=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;const a=[];n.push(e),i.push(e);const s=t[e];if("string"==typeof s){const t=o?Iz(o,s):s;a.push(Mz(e,n,t,s))}else if("object"==typeof s){let t;if("string"==typeof s.path){if(s.exact&&void 0===s.path)throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");t=!0!==s.exact?Iz(o||"",s.path||""):s.path||"",a.push(Mz(e,n,t,s.path,s.parse))}s.screens&&(s.initialRouteName&&r.push({initialRouteName:s.initialRouteName,parentScreens:i}),Object.keys(s.screens).forEach((e=>{const l=Rz(e,s.screens,n,r,[...i],t??o);a.push(...l)})))}return n.pop(),a},Mz=(e,t,n,r,i)=>({screen:e,regex:(n=n.split("/").filter(Boolean).join("/"))?new RegExp(`^(${n.split("/").map((e=>e.startsWith(":")?`(([^/]+\\/)${e.endsWith("?")?"?":""})`:`${"*"===e?".*":kz()(e)}\\/`)).join("")})`):void 0,pattern:n,path:r,routeNames:[...t],parse:i}),Pz=(e,t,n)=>{for(const r of n)if(t.length===r.parentScreens.length){let n=!0;for(let e=0;en?e?{index:1,routes:[{name:e},t]}:{routes:[t]}:e?{index:1,routes:[{name:e},{...t,state:{routes:[]}}]}:{routes:[{...t,state:{routes:[]}}]},jz=(e,t,n,r)=>{let i,o=t.shift();const a=[];let s=Pz(o.name,a,n);if(a.push(o.name),i=Dz(s,o,0===t.length),t.length>0){let e=i;for(;o=t.shift();){s=Pz(o.name,a,n);const r=e.index||e.routes.length-1;e.routes[r].state=Dz(s,o,0===t.length),t.length>0&&(e=e.routes[r].state),a.push(o.name)}}o=G_(i),o.path=e;const l=Bz(e,r?((e,t)=>{for(const n of t)if(e===n.routeNames[n.routeNames.length-1])return n.parse})(o.name,r):void 0);return l&&(o.params={...o.params,...l}),i},Bz=(e,t)=>{const n=e.split("?")[1],r=gz.parse(n);return t&&Object.keys(r).forEach((e=>{Object.hasOwnProperty.call(t,e)&&"string"==typeof r[e]&&(r[e]=t[e](r[e]))})),Object.keys(r).length?r:void 0},Lz=u.createContext(void 0),Fz=u.createContext(void 0),Nz=__webpack_require__(76976),_z=e=>{const t=[...e.values()].reduce(((e,t)=>{var n;let{routeKey:r,preventRemove:i}=t;return e[r]={preventRemove:(null===(n=e[r])||void 0===n?void 0:n.preventRemove)||i},e}),{});return t};function zz(e){let{children:t}=e;const[n]=u.useState((()=>Sf())),[r,i]=u.useState(new Map),o=u.useContext(Lz),a=u.useContext(X_),s=u.useContext(Fz),l=null==s?void 0:s.setPreventRemove,c=Nz(((e,t,n)=>{if(n&&(null==o||null!=o&&o.getState().routes.every((e=>e.key!==t))))throw new Error(`Couldn't find a route with the key ${t}. Is your component inside NavigationContent?`);i((r=>{var i,o;if(t===(null===(i=r.get(e))||void 0===i?void 0:i.routeKey)&&n===(null===(o=r.get(e))||void 0===o?void 0:o.preventRemove))return r;const a=new Map(r);return n?a.set(e,{routeKey:t,preventRemove:n}):a.delete(e),a}))})),h=[...r.values()].some((e=>{let{preventRemove:t}=e;return t}));u.useEffect((()=>{if(void 0!==(null==a?void 0:a.key)&&void 0!==l)return l(n,a.key,h),()=>{l(n,a.key,!1)}}),[n,h,null==a?void 0:a.key,l]);const d=u.useMemo((()=>({setPreventRemove:c,preventedRoutes:_z(r)})),[c,r]);return u.createElement(Fz.Provider,{value:d},t)}function Vz(){const e=u.useContext(W_),t=u.useContext(Q_);if(void 0===t&&void 0===e)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");return t??e}function Uz(){const e=Vz(),[t,n]=(0,u.useState)(e.isFocused),r=e.isFocused();return t!==r&&n(r),u.useEffect((()=>{const t=e.addListener("focus",(()=>n(!0))),r=e.addListener("blur",(()=>n(!1)));return()=>{t(),r()}}),[e]),u.useDebugValue(r),r}function Hz(e,t){return e===t||e.length===t.length&&e.every(((e,n)=>e===t[n]))}__webpack_require__(44363);const qz=e=>{let{render:t,children:n}=e;return t(n)};function Gz(e){const t=u.useRef(e);return t.current=e,u.useEffect((()=>{t.current=null})),u.useRef((e=>{let{children:n}=e;const r=t.current;if(null===r)throw new Error("The returned component must be rendered in the same render phase as the hook.");return u.createElement(qz,{render:r},n)})).current}function Yz(e){return e.children}const Wz=u.memo(Yz,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const r of n)if("children"!==r&&e[r]!==t[r])return!1;return!0}));function Qz(e){let{screen:t,route:n,navigation:r,routeState:i,getState:o,setState:a,options:s,clearOptions:l}=e;const c=u.useRef(),h=u.useCallback((()=>c.current),[]),{addOptionsGetter:d}=nz({key:n.key,options:s,navigation:r}),f=u.useCallback((e=>{c.current=e}),[]),p=u.useCallback((()=>{const e=o().routes.find((e=>e.key===n.key));return e?e.state:void 0}),[o,n.key]),m=u.useCallback((e=>{const t=o();a({...t,routes:t.routes.map((t=>t.key===n.key?{...t,state:e}:t))})}),[o,n.key,a]),g=u.useRef(!0);u.useEffect((()=>{g.current=!1})),u.useEffect((()=>l),[]);const y=u.useCallback((()=>g.current),[]),v=u.useMemo((()=>({state:i,getState:p,setState:m,getKey:h,setKey:f,getIsInitial:y,addOptionsGetter:d})),[i,p,m,h,f,y,d]),b=t.getComponent?t.getComponent():t.component;return u.createElement(Z_.Provider,{value:v},u.createElement(q_,null,u.createElement(Wz,{name:t.name,render:b||t.children,navigation:r,route:n},void 0!==b?u.createElement(b,{navigation:r,route:n}):void 0!==t.children?t.children({navigation:r,route:n}):null)))}const Xz=Symbol("VISITED_ROUTE_KEYS"),Jz=(e,t,n,r,i)=>{const o=r.map((e=>e.key)),a=n.filter((e=>!o.includes(e.key))).reverse(),s=i[Xz]??new Set,l={...i,[Xz]:s};for(const n of a){var c;if(!s.has(n.key)){if(null===(c=t[n.key])||void 0===c?void 0:c.call(t,l))return!0;if(s.add(n.key),e.emit({type:"beforeRemove",target:n.key,data:{action:l},canPreventDefault:!0}).defaultPrevented)return!0}}return!1};const Zz=e=>void 0===e||"string"==typeof e&&""!==e,Kz=(e,t,n)=>u.Children.toArray(e).reduce(((e,r)=>{var i,o;if(u.isValidElement(r)){if(r.type===uz){if(!Zz(r.props.navigationKey))throw new Error(`Got an invalid 'navigationKey' prop (${JSON.stringify(r.props.navigationKey)}) for the screen '${r.props.name}'. It must be a non-empty string or 'undefined'.`);return e.push({keys:[t,r.props.navigationKey],options:n,props:r.props}),e}if(r.type===u.Fragment||r.type===cz){if(!Zz(r.props.navigationKey))throw new Error(`Got an invalid 'navigationKey' prop (${JSON.stringify(r.props.navigationKey)}) for the group. It must be a non-empty string or 'undefined'.`);return e.push(...Kz(r.props.children,r.props.navigationKey,r.type!==cz?n:null!=n?[...n,r.props.screenOptions]:[r.props.screenOptions])),e}}throw new Error(`A navigator can only contain 'Screen', 'Group' or 'React.Fragment' as its direct children (found ${u.isValidElement(r)?`'${"string"==typeof r.type?r.type:null===(i=r.type)||void 0===i?void 0:i.name}'${null!=r.props&&"object"==typeof r.props&&"name"in r.props&&null!==(o=r.props)&&void 0!==o&&o.name?` for the screen '${r.props.name}'`:""}`:"object"==typeof r?JSON.stringify(r):`'${String(r)}'`}). To render this component in the navigator, pass it in the 'component' prop to 'Screen'.`)}),[]);function $z(e,n){const r=function(){const[e]=u.useState((()=>Sf())),t=u.useContext(H_);if(void 0===t)throw new Error("Couldn't register the navigator. Have you wrapped your app with 'NavigationContainer'?\n\nThis can also happen if there are multiple copies of '@react-navigation' packages installed.");return u.useEffect((()=>{const{register:n,unregister:r}=t;return n(e),()=>r(e)}),[t,e]),e}(),i=u.useContext(X_),{children:o,screenListeners:a,...s}=n,{current:l}=u.useRef(e({...s,...null!=i&&i.params&&null==i.params.state&&!1!==i.params.initial&&"string"==typeof i.params.screen?{initialRouteName:i.params.screen}:null})),c=Kz(o),h=c.reduce(((e,t)=>{if(t.props.name in e)throw new Error(`A navigator cannot contain multiple 'Screen' components with the same name (found duplicate screen named '${t.props.name}')`);return e[t.props.name]=t,e}),{}),d=c.map((e=>e.props.name)),f=d.reduce(((e,t)=>(e[t]=h[t].keys.map((e=>e??"")).join(":"),e)),{}),p=d.reduce(((e,t)=>{const{initialParams:n}=h[t].props;return e[t]=n,e}),{}),m=d.reduce(((e,t)=>Object.assign(e,{[t]:h[t].props.getId})),{});if(!d.length)throw new Error("Couldn't find any screens for the navigator. Have you defined any screens as its children?");const g=u.useCallback((e=>void 0===e.type||e.type===l.type),[l.type]),y=u.useCallback((e=>void 0!==e&&!1===e.stale&&g(e)),[g]),{state:v,getState:b,setState:A,setKey:x,getKey:w,getIsInitial:C}=u.useContext(Z_),S=u.useRef(!1),E=u.useCallback((()=>{A(void 0),S.current=!0}),[A]),k=u.useCallback((e=>{S.current||A(e)}),[A]),[T,I]=u.useMemo((()=>{var e;const t=d.reduce(((e,t)=>{var n,r,o;const{initialParams:a}=h[t].props,s=null==(null==i||null===(n=i.params)||void 0===n?void 0:n.state)&&!1!==(null==i||null===(r=i.params)||void 0===r?void 0:r.initial)&&(null==i||null===(o=i.params)||void 0===o?void 0:o.screen)===t?i.params.params:void 0;return e[t]=void 0!==a||void 0!==s?{...a,...s}:void 0,e}),{});var n;return void 0!==v&&g(v)||null!=(null==i||null===(e=i.params)||void 0===e?void 0:e.state)?[l.getRehydratedState((null==i||null===(n=i.params)||void 0===n?void 0:n.state)??v,{routeNames:d,routeParamList:t,routeGetIdList:m}),!1]:[l.getInitialState({routeNames:d,routeParamList:t,routeGetIdList:m}),!0]}),[v,l,g]),O=u.useRef(f);u.useEffect((()=>{O.current=f}));const R=O.current;let M=y(v)?v:T,P=M;Hz(M.routeNames,d)&&function(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>e[n]===t[n]))}(f,R)||(P=l.getStateForRouteNamesChange(M,{routeNames:d,routeParamList:p,routeGetIdList:m,routeKeyChanges:Object.keys(f).filter((e=>R.hasOwnProperty(e)&&f[e]!==R[e]))}));const D=u.useRef(null==i?void 0:i.params);if(u.useEffect((()=>{D.current=null==i?void 0:i.params}),[null==i?void 0:i.params]),null!=i&&i.params){const e=D.current;let t;"object"==typeof i.params.state&&null!=i.params.state&&i.params!==e?t=__(i.params.state):"string"==typeof i.params.screen&&(!1===i.params.initial&&I||i.params!==e)&&(t=N_({name:i.params.screen,params:i.params.params,path:i.params.path}));const n=t?l.getStateForAction(P,t,{routeNames:d,routeParamList:p,routeGetIdList:m}):null;P=null!==n?l.getRehydratedState(n,{routeNames:d,routeParamList:p,routeGetIdList:m}):P}const j=M!==P;!function(){const{scheduleUpdate:e,flushUpdates:t}=u.useContext(iz);e((()=>{j&&k(P)})),u.useEffect(t)}(),M=P,u.useEffect((()=>(x(r),C()||k(P),()=>{setTimeout((()=>{void 0!==b()&&w()===r&&E()}),0)})),[]);const B=u.useRef();B.current=T;const L=u.useCallback((()=>{const e=b();return y(e)?e:B.current}),[b,y]),F=ez((e=>{let t,n=[];var r;if(e.target?(t=M.routes.find((t=>t.key===e.target)),null!==(r=t)&&void 0!==r&&r.name&&n.push(t.name)):(t=M.routes[M.index],n.push(...Object.keys(h).filter((e=>{var n;return(null===(n=t)||void 0===n?void 0:n.name)===e})))),null==t)return;const i=G[t.key].navigation,o=[].concat(...[a,...n.map((e=>{const{listeners:t}=h[e].props;return t}))].map((n=>{const r="function"==typeof n?n({route:t,navigation:i}):n;return r?Object.keys(r).filter((t=>t===e.type)).map((e=>null==r?void 0:r[e])):void 0}))).filter(((e,t,n)=>e&&n.lastIndexOf(e)===t));o.forEach((t=>null==t?void 0:t(e)))}));!function(e){let{state:t,emitter:n}=e;const r=u.useContext(Q_),i=u.useRef(),o=t.routes[t.index].key;u.useEffect((()=>null==r?void 0:r.addListener("focus",(()=>{i.current=o,n.emit({type:"focus",target:o})}))),[o,n,r]),u.useEffect((()=>null==r?void 0:r.addListener("blur",(()=>{i.current=void 0,n.emit({type:"blur",target:o})}))),[o,n,r]),u.useEffect((()=>{const e=i.current;i.current=o,void 0!==e||r||n.emit({type:"focus",target:o}),e===o||r&&!r.isFocused()||void 0!==e&&(n.emit({type:"blur",target:e}),n.emit({type:"focus",target:o}))}),[o,n,r])}({state:M,emitter:F}),u.useEffect((()=>{F.emit({type:"state",data:{state:M}})}),[F,M]);const{listeners:N,addListener:_}=$_(),{keyedListeners:z,addKeyedListener:V}=tz(),U=function(e){let{router:t,getState:n,setState:r,key:i,actionListeners:o,beforeRemoveListeners:a,routerConfigOptions:s,emitter:l}=e;const{onAction:c,onRouteFocus:h,addListener:d,onDispatchAction:f}=u.useContext(Y_),p=u.useRef(s);u.useEffect((()=>{p.current=s}));const m=u.useCallback((function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;const u=n();if(s.has(u.key))return!1;if(s.add(u.key),"string"!=typeof e.target||e.target===u.key){let n=t.getStateForAction(u,e,p.current);if(n=null===n&&e.target===u.key?u:n,null!==n){if(f(e,u===n),u!==n){if(Jz(l,a,u.routes,n.routes,e))return!0;r(n)}return void 0!==h&&t.shouldActionChangeFocus(e)&&void 0!==i&&h(i),!0}}if(void 0!==c&&c(e,s))return!0;for(let t=o.length-1;t>=0;t--)if((0,o[t])(e,s))return!0;return!1}),[o,a,l,n,i,c,f,h,t,r]);return function(e){let{getState:t,emitter:n,beforeRemoveListeners:r}=e;const{addKeyedListener:i}=u.useContext(Y_),o=u.useContext(X_),a=null==o?void 0:o.key;u.useEffect((()=>{if(a)return null==i?void 0:i("beforeRemove",a,(e=>{const i=t();return Jz(n,r,i.routes,[],e)}))}),[i,r,n,t,a])}({getState:n,emitter:l,beforeRemoveListeners:a}),u.useEffect((()=>null==d?void 0:d("action",m)),[d,m]),m}({router:l,getState:L,setState:k,key:null==i?void 0:i.key,actionListeners:N.action,beforeRemoveListeners:z.beforeRemove,routerConfigOptions:{routeNames:d,routeParamList:p,routeGetIdList:m},emitter:F}),H=function(e){let{router:t,getState:n,key:r,setState:i}=e;const{onRouteFocus:o}=u.useContext(Y_);return u.useCallback((e=>{const a=n(),s=t.getStateForRouteFocus(a,e);s!==a&&i(s),void 0!==o&&void 0!==r&&o(r)}),[n,o,t,i,r])}({router:l,key:null==i?void 0:i.key,getState:L,setState:k}),q=function(e){let{id:n,onAction:r,getState:i,emitter:o,router:a}=e;const s=u.useContext(K_),l=u.useContext(Q_);return u.useMemo((()=>{const e=e=>{const t="function"==typeof e?e(i()):e;r(t)||null==s||s(t)},c={...a.actionCreators,...t},u=Object.keys(c).reduce(((t,n)=>(t[n]=function(){return e(c[n](...arguments))},t)),{}),h={...l,...u,dispatch:e,emit:o.emit,isFocused:l?l.isFocused:()=>!0,canGoBack:()=>{const e=i();return null!==a.getStateForAction(e,{type:"GO_BACK"},{routeNames:e.routeNames,routeParamList:{},routeGetIdList:{}})||(null==l?void 0:l.canGoBack())||!1},getId:()=>n,getParent:e=>{if(void 0!==e){let t=h;for(;t&&e!==t.getId();)t=t.getParent();return t}return l},getState:i};return h}),[n,o.emit,i,r,s,l,a])}({id:n.id,onAction:U,getState:L,emitter:F,router:l});!function(e){let{navigation:t,focusedListeners:n}=e;const{addListener:r}=u.useContext(Y_),i=u.useCallback((e=>{if(t.isFocused()){for(const t of n){const{handled:n,result:r}=t(e);if(n)return{handled:n,result:r}}return{handled:!0,result:e(t)}}return{handled:!1,result:null}}),[n,t]);u.useEffect((()=>null==r?void 0:r("focus",i)),[r,i])}({navigation:q,focusedListeners:N.focus}),function(e){let{getState:t,getStateListeners:n}=e;const{addKeyedListener:r}=u.useContext(Y_),i=u.useContext(X_),o=i?i.key:"root",a=u.useCallback((()=>{const e=t(),r=e.routes.map((e=>{var t;const r=null===(t=n[e.key])||void 0===t?void 0:t.call(n);return e.state===r?e:{...e,state:r}}));return Hz(e.routes,r)?e:{...e,routes:r}}),[t,n]);u.useEffect((()=>null==r?void 0:r("getState",o,a)),[r,a,o])}({getState:L,getStateListeners:z.getState});const G=function(e){let{state:n,screens:r,navigation:i,screenOptions:o,defaultScreenOptions:a,onAction:s,getState:l,setState:c,addListener:h,addKeyedListener:d,onRouteFocus:f,router:p,emitter:m}=e;const[g,y]=u.useState({}),{onDispatchAction:v,onOptionsChange:b,stackRef:A}=u.useContext(Y_),x=u.useMemo((()=>({navigation:i,onAction:s,addListener:h,addKeyedListener:d,onRouteFocus:f,onDispatchAction:v,onOptionsChange:b,stackRef:A})),[i,s,h,d,f,v,b,A]),w=function(e){let{state:n,getState:r,navigation:i,setOptions:o,router:a,emitter:s}=e;const{stackRef:l}=u.useContext(Y_),c=u.useMemo((()=>({current:{}})),[r,i,o,a,s]),h={...a.actionCreators,...t};return c.current=n.routes.reduce(((e,t)=>{const n=c.current[t.key];if(n)e[t.key]=n;else{const{emit:n,...a}=i,l=e=>{const n="function"==typeof e?e(r()):e;null!=n&&i.dispatch({source:t.key,...n})},c=e=>{try{e()}finally{}},u=Object.keys(h).reduce(((e,t)=>(e[t]=function(){for(var e=arguments.length,n=new Array(e),r=0;rl(h[t](...n))))},e)),{});e[t.key]={...a,...u,...s.create(t.key),dispatch:e=>c((()=>l(e))),getParent:n=>void 0!==n&&n===a.getId()?e[t.key]:a.getParent(n),setOptions:e=>o((n=>({...n,[t.key]:{...n[t.key],...e}}))),isFocused:()=>{const e=r();return e.routes[e.index].key===t.key&&(!i||i.isFocused())}}}return e}),{}),c.current}({state:n,getState:l,navigation:i,setOptions:y,router:p,emitter:m});return(C=n.routes,u.useMemo((()=>({current:new Map})),[]),C).reduce(((e,t,i)=>{const s=r[t.name],h=s.props,d=w[t.key],f=[o,...s.options?s.options.filter(Boolean):[],h.options,g[t.key]].reduce(((e,n)=>Object.assign(e,"function"!=typeof n?n:n({route:t,navigation:d}))),{}),p={..."function"==typeof a?a({route:t,navigation:d,options:f}):a,...f},m=()=>y((e=>{if(t.key in e){const{[t.key]:n,...r}=e;return r}return e}));return e[t.key]={route:t,navigation:d,render:()=>u.createElement(Y_.Provider,{key:t.key,value:x},u.createElement(Q_.Provider,{value:d},u.createElement(X_.Provider,{value:t},u.createElement(Qz,{navigation:d,route:t,screen:h,routeState:n.routes[i].state,getState:l,setState:c,options:p,clearOptions:m})))),options:p},e}),{});var C}({state:M,screens:h,navigation:q,screenOptions:n.screenOptions,defaultScreenOptions:n.defaultScreenOptions,onAction:U,getState:L,setState:k,onRouteFocus:H,addListener:_,addKeyedListener:V,router:l,emitter:F});!function(e){let{state:t,navigation:n,descriptors:r}=e;const i=u.useContext(dz);i&&n.isFocused()&&(i.options=r[t.routes[t.index].key].options)}({state:M,navigation:q,descriptors:G});const Y=Gz((e=>u.createElement(Lz.Provider,{value:q},u.createElement(zz,null,e))));return{state:M,navigation:q,descriptors:G,NavigationContent:Y}}const eV={getStateForAction(e,t){switch(t.type){case"SET_PARAMS":{const n=t.source?e.routes.findIndex((e=>e.key===t.source)):e.index;return-1===n?null:{...e,routes:e.routes.map(((e,r)=>r===n?{...e,params:{...e.params,...t.payload.params}}:e))}}case"RESET":{const n=t.payload;return 0===n.routes.length||n.routes.some((t=>!e.routeNames.includes(t.name)))?null:!1===n.stale?e.routeNames.length!==n.routeNames.length||n.routeNames.some((t=>!e.routeNames.includes(t)))?null:{...n,routes:n.routes.map((e=>e.key?e:{...e,key:`${e.name}-${Sf()}`}))}:n}default:return null}},shouldActionChangeFocus:e=>"NAVIGATE"===e.type},tV=eV,nV={replace:(e,t)=>({type:"REPLACE",payload:{name:e,params:t}}),push:(e,t)=>({type:"PUSH",payload:{name:e,params:t}}),pop(){return{type:"POP",payload:{count:arguments.length>0&&void 0!==arguments[0]?arguments[0]:1}}},popToTop:()=>({type:"POP_TO_TOP"})};function rV(e){const t={...tV,type:"stack",getInitialState(t){let{routeNames:n,routeParamList:r}=t;const i=void 0!==e.initialRouteName&&n.includes(e.initialRouteName)?e.initialRouteName:n[0];return{stale:!1,type:"stack",key:`stack-${Sf()}`,index:0,routeNames:n,routes:[{key:`${i}-${Sf()}`,name:i,params:r[i]}]}},getRehydratedState(t,n){let{routeNames:r,routeParamList:i}=n,o=t;if(!1===o.stale)return o;const a=o.routes.filter((e=>r.includes(e.name))).map((e=>({...e,key:e.key||`${e.name}-${Sf()}`,params:void 0!==i[e.name]?{...i[e.name],...e.params}:e.params})));if(0===a.length){const t=void 0!==e.initialRouteName?e.initialRouteName:r[0];a.push({key:`${t}-${Sf()}`,name:t,params:i[t]})}return{stale:!1,type:"stack",key:`stack-${Sf()}`,index:a.length-1,routeNames:r,routes:a}},getStateForRouteNamesChange(t,n){let{routeNames:r,routeParamList:i,routeKeyChanges:o}=n;const a=t.routes.filter((e=>r.includes(e.name)&&!o.includes(e.name)));if(0===a.length){const t=void 0!==e.initialRouteName&&r.includes(e.initialRouteName)?e.initialRouteName:r[0];a.push({key:`${t}-${Sf()}`,name:t,params:i[t]})}return{...t,routeNames:r,routes:a,index:Math.min(t.index,a.length-1)}},getStateForRouteFocus(e,t){const n=e.routes.findIndex((e=>e.key===t));return-1===n||n===e.index?e:{...e,index:n,routes:e.routes.slice(0,n+1)}},getStateForAction(e,n,r){const{routeParamList:i}=r;switch(n.type){case"REPLACE":{const t=n.target===e.key&&n.source?e.routes.findIndex((e=>e.key===n.source)):e.index;if(-1===t)return null;const{name:r,key:o,params:a}=n.payload;return e.routeNames.includes(r)?{...e,routes:e.routes.map(((e,n)=>n===t?{key:void 0!==o?o:`${r}-${Sf()}`,name:r,params:void 0!==i[r]?{...i[r],...a}:a}:e))}:null}case"PUSH":if(e.routeNames.includes(n.payload.name)){const t=r.routeGetIdList[n.payload.name],o=null==t?void 0:t({params:n.payload.params}),a=o?e.routes.find((e=>e.name===n.payload.name&&o===(null==t?void 0:t({params:e.params})))):void 0;let s;return a?(s=e.routes.filter((e=>e.key!==a.key)),s.push({...a,params:void 0!==i[n.payload.name]?{...i[n.payload.name],...n.payload.params}:n.payload.params})):s=[...e.routes,{key:`${n.payload.name}-${Sf()}`,name:n.payload.name,params:void 0!==i[n.payload.name]?{...i[n.payload.name],...n.payload.params}:n.payload.params}],{...e,index:s.length-1,routes:s}}return null;case"POP":{const t=n.target===e.key&&n.source?e.routes.findIndex((e=>e.key===n.source)):e.index;if(t>0){const r=Math.max(t-n.payload.count+1,1),i=e.routes.slice(0,r).concat(e.routes.slice(t+1));return{...e,index:i.length-1,routes:i}}return null}case"POP_TO_TOP":return t.getStateForAction(e,{type:"POP",payload:{count:e.routes.length-1}},r);case"NAVIGATE":if(void 0!==n.payload.name&&!e.routeNames.includes(n.payload.name))return null;if(n.payload.key||n.payload.name){let t=-1;const o=void 0===n.payload.key&&void 0!==n.payload.name?r.routeGetIdList[n.payload.name]:void 0,a=null==o?void 0:o({params:n.payload.params});if(a)t=e.routes.findIndex((e=>e.name===n.payload.name&&a===(null==o?void 0:o({params:e.params}))));else if(e.routes[e.index].name===n.payload.name&&void 0===n.payload.key||e.routes[e.index].key===n.payload.key)t=e.index;else for(let r=e.routes.length-1;r>=0;r--)if(e.routes[r].name===n.payload.name&&void 0===n.payload.key||e.routes[r].key===n.payload.key){t=r;break}if(-1===t&&n.payload.key&&void 0===n.payload.name)return null;if(-1===t&&void 0!==n.payload.name){const t=[...e.routes,{key:n.payload.key??`${n.payload.name}-${Sf()}`,name:n.payload.name,path:n.payload.path,params:void 0!==i[n.payload.name]?{...i[n.payload.name],...n.payload.params}:n.payload.params}];return{...e,routes:t,index:t.length-1}}const s=e.routes[t];let l;return l=n.payload.merge?void 0!==n.payload.params||void 0!==i[s.name]?{...i[s.name],...s.params,...n.payload.params}:s.params:void 0!==i[s.name]?{...i[s.name],...n.payload.params}:n.payload.params,{...e,index:t,routes:[...e.routes.slice(0,t),l!==s.params||n.payload.path&&n.payload.path!==s.path?{...s,path:n.payload.path??s.path,params:l}:e.routes[t]]}}return null;case"GO_BACK":return e.index>0?t.getStateForAction(e,{type:"POP",payload:{count:1},target:n.target,source:n.source},r):null;default:return tV.getStateForAction(e,n)}},actionCreators:nV};return t}const iV="route",oV={jumpTo:(e,t)=>({type:"JUMP_TO",payload:{name:e,params:t}})},aV=(e,t,n,r)=>{const i=[{type:iV,key:e[t].key}];let o;switch(n){case"order":for(let n=t;n>0;n--)i.unshift({type:iV,key:e[n-1].key});break;case"firstRoute":0!==t&&i.unshift({type:iV,key:e[0].key});break;case"initialRoute":o=e.findIndex((e=>e.name===r)),o=-1===o?0:o,t!==o&&i.unshift({type:iV,key:e[o].key})}return i},sV=(e,t,n,r)=>{let i;if("history"===n){const n=e.routes[t].key;i=e.history.filter((e=>"route"===e.type&&e.key!==n)).concat({type:iV,key:n})}else i=aV(e.routes,t,n,r);return{...e,index:t,history:i}};function lV(e){let{initialRouteName:t,backBehavior:n="firstRoute"}=e;const r={...tV,type:"tab",getInitialState(e){let{routeNames:r,routeParamList:i}=e;const o=void 0!==t&&r.includes(t)?r.indexOf(t):0,a=r.map((e=>({name:e,key:`${e}-${Sf()}`,params:i[e]}))),s=aV(a,o,n,t);return{stale:!1,type:"tab",key:`tab-${Sf()}`,index:o,routeNames:r,history:s,routes:a}},getRehydratedState(e,r){var i,o;let{routeNames:a,routeParamList:s}=r,l=e;if(!1===l.stale)return l;const c=a.map((e=>{const t=l.routes.find((t=>t.name===e));return{...t,name:e,key:t&&t.name===e&&t.key?t.key:`${e}-${Sf()}`,params:void 0!==s[e]?{...s[e],...t?t.params:void 0}:t?t.params:void 0}})),u=Math.min(Math.max(a.indexOf(null===(i=l.routes[(null==l?void 0:l.index)??0])||void 0===i?void 0:i.name),0),c.length-1),h=(null===(o=l.history)||void 0===o?void 0:o.filter((e=>c.find((t=>t.key===e.key)))))??[];return sV({stale:!1,type:"tab",key:`tab-${Sf()}`,index:u,routeNames:a,history:h,routes:c},u,n,t)},getStateForRouteNamesChange(e,r){let{routeNames:i,routeParamList:o,routeKeyChanges:a}=r;const s=i.map((t=>e.routes.find((e=>e.name===t&&!a.includes(e.name)))||{name:t,key:`${t}-${Sf()}`,params:o[t]})),l=Math.max(0,i.indexOf(e.routes[e.index].name));let c=e.history.filter((e=>"route"!==e.type||s.find((t=>t.key===e.key))));return c.length||(c=aV(s,l,n,t)),{...e,history:c,routeNames:i,routes:s,index:l}},getStateForRouteFocus(e,r){const i=e.routes.findIndex((e=>e.key===r));return-1===i||i===e.index?e:sV(e,i,n,t)},getStateForAction(e,r,i){let{routeParamList:o,routeGetIdList:a}=i;switch(r.type){case"JUMP_TO":case"NAVIGATE":{let i=-1;return i="NAVIGATE"===r.type&&r.payload.key?e.routes.findIndex((e=>e.key===r.payload.key)):e.routes.findIndex((e=>e.name===r.payload.name)),-1===i?null:sV({...e,routes:e.routes.map(((e,t)=>{if(t!==i)return e;const n=a[e.name],s=null==n?void 0:n({params:e.params}),l=null==n?void 0:n({params:r.payload.params}),c=s===l?e.key:`${e.name}-${Sf()}`;let u;u="NAVIGATE"===r.type&&r.payload.merge&&s===l?void 0!==r.payload.params||void 0!==o[e.name]?{...o[e.name],...e.params,...r.payload.params}:e.params:void 0!==o[e.name]?{...o[e.name],...r.payload.params}:r.payload.params;const h="NAVIGATE"===r.type&&null!=r.payload.path?r.payload.path:e.path;return u!==e.params||h!==e.path?{...e,key:c,path:h,params:u}:e}))},i,n,t)}case"GO_BACK":{if(1===e.history.length)return null;const t=e.history[e.history.length-2].key,n=e.routes.findIndex((e=>e.key===t));return-1===n?null:{...e,history:e.history.slice(0,-1),index:n}}default:return tV.getStateForAction(e,r)}},shouldActionChangeFocus:e=>"NAVIGATE"===e.type,actionCreators:oV};return r}const cV=U_(),uV=U_();function hV(){const e=QC(ZL);return(0,u.useMemo)((()=>({navigate:(...e)=>{uV.getState()?.routes.length>1&&uV.dispatch(nV.popToTop()),uV.dispatch(nV.replace(...e))},push:(...e)=>{uV.dispatch(nV.push(...e))},close:()=>e(!1)})),[e])}function dV({onClose:e,onCancel:t,onSuccess:n,position:r}){const[i,o]=(0,u.useState)(!1),[a,s]=(0,u.useState)(""),[l,c]=(0,u.useState)(""),[h,d]=(0,u.useState)("Global"),{mutateAsync:f}=function(){const e=gC();return zB(yL,{onSuccess:async t=>{await e.invalidateQueries(["custom-waypoints-tiled-3"],{refetchType:"active"},{throwOnError:!1}),await e.invalidateQueries(["custom-waypoints"],{refetchType:"active"},{throwOnError:!1}),await e.invalidateQueries(["routing"],{refetchType:"active"},{throwOnError:!1}),await e.invalidateQueries(["geosearch"],{refetchType:"active"},{throwOnError:!1}),e.setQueryData(["custom-waypoint",t.id],t)}})}(),{addToast:p}=E_(),m=WC(LL),g=hV(),y=(0,u.useCallback)((()=>{o(!0),async function(){try{const t=await f({title:a,description:l,longitude:r[0],latitude:r[1],flight:null!==m&&"Flight"===h?m.id:void 0});n?.(),e?.(),g.navigate("UserWaypoint",{id:t.id,focusOnMap:!0})}catch(e){p("Failed to create user waypoint"),o(!1)}}()}),[f,a,l,r,m,h,n,e,g,p]);return(0,Al.jsx)(HN,{width:280,children:(0,Al.jsxs)(eI,{children:[(0,Al.jsx)(iI,{variant:"l",sx:{mb:"xs",textAlign:"center",fontWeight:"600"},children:"Create User Waypoint"}),(0,Al.jsxs)(eI,{sx:{mb:"xs"},children:[(0,Al.jsx)(iI,{variant:"s",selectable:!1,sx:{fontWeight:"600",paddingBottom:"xxs",color:"Gray/300"},children:"Name"}),(0,Al.jsx)(fN,{icon:"edit",value:a,placeholder:"",onChangeText:e=>s(e),maxLength:25})]}),(0,Al.jsxs)(eI,{sx:{mb:"xs"},children:[(0,Al.jsx)(iI,{variant:"s",selectable:!1,sx:{fontWeight:"600",paddingBottom:"xxs",color:"Gray/300"},children:"Notes..."}),(0,Al.jsx)(fN,{multiline:!0,value:l,placeholder:"",onChangeText:e=>c(e),numberOfLines:3,canClear:!0})]}),(0,Al.jsxs)(eI,{sx:{flexDirection:"row",width:"100%",justifyContent:"space-between",alignItems:"center",mb:"s"},children:[(0,Al.jsx)(iI,{selectable:!1,variant:"m",sx:{fontWeight:"600"},children:"Scope"}),(0,Al.jsx)(M_,{disabled:!m,containerStyle:{width:174},segments:["Global","Flight"],currentIndex:"Global"===h?0:1,onChange:e=>{d(0===e?"Global":"Flight")}})]}),i?(0,Al.jsx)(e_,{}):(0,Al.jsx)(Al.Fragment,{children:(0,Al.jsxs)(eI,{sx:{flexDirection:"row",width:"full",justifyContent:"space-between"},children:[(0,Al.jsx)(uI,{size:"medium",sx:{width:100},onPress:()=>{t?.(),e?.()},children:"Cancel"}),(0,Al.jsx)(cI,{size:"medium",sx:{width:100},onPress:y,disabled:!a,children:"Create"})]})})]})})}function fV({onClose:e,onCancel:t,onSuccess:n,waypointId:r}){const[i,o]=(0,u.useState)(!1),{mutateAsync:a}=function(){const e=gC();return zB(bL,{onSuccess:async t=>{const n=e.getQueriesData(["custom-waypoints"]);for(const[r,i]of n)i&&e.setQueryData(r,Object.assign({},i,{pages:i.pages.map((e=>e.map((e=>e.id===t.id?Object.assign({},e,t):e))))}));await e.invalidateQueries(["custom-waypoints-tiled-3"],{refetchType:"active"},{throwOnError:!1}),await e.invalidateQueries(["custom-waypoints"],{refetchType:"inactive"},{throwOnError:!1}),await e.invalidateQueries(["routing"],{refetchType:"active"},{throwOnError:!1}),await e.invalidateQueries(["geosearch"],{refetchType:"active"},{throwOnError:!1}),e.setQueryData(["custom-waypoint",t.id],t)}})}(),{addToast:s}=E_(),{data:l,status:c}=xL(r),[h,d]=(0,u.useState)(""),[f,p]=(0,u.useState)(""),m=(0,u.useCallback)((()=>{l&&(o(!0),async function(t){try{await a({id:t.id,title:h,description:f,longitude:t.geom.coordinates[0],latitude:t.geom.coordinates[1]}),n?.(),e?.()}catch(e){oS.err(e),s("Failed to update user waypoint"),o(!1)}}(l))}),[l,a,h,f,n,e,s]);return(0,u.useEffect)((()=>{l&&(d(l.title),p(l.description))}),[l]),"success"!==c?(0,Al.jsx)(HN,{width:280,children:(0,Al.jsx)(e_,{})}):(0,Al.jsx)(HN,{width:280,children:(0,Al.jsxs)(eI,{children:[(0,Al.jsx)(iI,{variant:"l",sx:{mb:"xs",textAlign:"center",fontWeight:"600"},children:"Edit User Waypoint"}),(0,Al.jsxs)(eI,{sx:{mb:"xs"},children:[(0,Al.jsx)(iI,{variant:"s",selectable:!1,sx:{fontWeight:"600",paddingBottom:"xxs",color:"Gray/300"},children:"Name"}),(0,Al.jsx)(fN,{icon:"edit",value:h,placeholder:"",onChangeText:e=>d(e),maxLength:25})]}),(0,Al.jsxs)(eI,{sx:{mb:"s"},children:[(0,Al.jsx)(iI,{variant:"s",selectable:!1,sx:{fontWeight:"600",paddingBottom:"xxs",color:"Gray/300"},children:"Notes..."}),(0,Al.jsx)(fN,{multiline:!0,value:f,placeholder:"",onChangeText:e=>p(e),numberOfLines:3,canClear:!0})]}),i?(0,Al.jsx)(e_,{}):(0,Al.jsx)(Al.Fragment,{children:(0,Al.jsxs)(eI,{sx:{flexDirection:"row",width:"full",justifyContent:"space-between"},children:[(0,Al.jsx)(uI,{size:"medium",sx:{width:100},onPress:()=>{t?.(),e?.()},children:"Cancel"}),(0,Al.jsx)(dI,{size:"medium",sx:{width:100},onPress:m,disabled:!h,children:"Update"})]})})]})})}function pV({onClose:e,route:t}){const[n,r]=(0,u.useState)(!1),i=QC(LL),o=gC(),a=WB(),{addToast:s}=E_(),l=QC(zL),c=(0,u.useCallback)((async()=>{r(!0);const n=await o.fetchQuery(["routing",t],(()=>i_(t)));a.mutate({routestring:t,title:`${n.origin?.icao_code??"Unknown"} to ${n.destination?.icao_code??"Unknown"} (MSFS)`},{onSuccess:e=>i(e),onError:()=>s("Failed to import flightplan."),onSettled:()=>e?.()})}),[s,a,e,o,t,i]);return(0,Al.jsx)(HN,{children:(0,Al.jsxs)(eI,{children:[(0,Al.jsx)(iI,{variant:"l",sx:{mb:"xs",textAlign:"center",fontWeight:"600"},children:"Simulator flightplan detected"}),(0,Al.jsx)(eI,{sx:{mb:"s"},children:(0,Al.jsx)(iI,{variant:"m",sx:{textAlign:"center",fontWeight:"400"},children:"A flightplan was detected in the simulator. Would you like to load it as your active flight?"})}),(0,Al.jsxs)(eI,{sx:{flexDirection:"row",width:"full",justifyContent:"space-between"},children:[(0,Al.jsx)(uI,{size:"medium",sx:{width:100},onPress:()=>{l(null),e?.()},children:"Dismiss"}),(0,Al.jsx)(cI,{size:"medium",sx:{width:100},onPress:async()=>{l(null),await c()},disabled:n,children:"Load"})]})]})})}function mV(e,t,n){return 1===n?e:t}const gV=DT("scratchpads",(function({onClose:e,fromPinboard:t}){const{merge:n,isMutating:r}=YN(),i=(0,u.useCallback)((async()=>{await n(t),e?.()}),[n,t,e]),o=t.charts.length,a=t.scratchpads?.length??0,s=Array.from(t.charts.reduce(((e,t)=>e.add(t.airport)),new Set)),l=(0,u.useMemo)((()=>{const e=[];var t;return a>0&&e.push(`${a} ${mV("scratchpad","scratchpads",a)} will be added.`),o>0&&e.push(`${o} ${mV("chart","charts",o)} from ${t=s,[t.slice(0,t.length-1).join(", "),t[t.length-1]].filter((e=>""!==e)).join(" and ")} will be added.`),0===e.length&&e.push("Nothing will be added."),e.join("\n")}),[o,a,s]);return(0,Al.jsx)(HN,{children:(0,Al.jsxs)(eI,{children:[(0,Al.jsx)(iI,{variant:"l",sx:{mb:"xs",textAlign:"center",fontWeight:"600"},children:"Pinboard conflict"}),(0,Al.jsxs)(eI,{sx:{mb:"s",alignItems:"center"},children:[(0,Al.jsx)(iI,{variant:"m",sx:{textAlign:"center",fontWeight:"400"},children:"Do you want to copy charts and scratchpads to your flight?"}),(0,Al.jsx)(iI,{sx:{textAlign:"center",mt:"xs"},children:l})]}),(0,Al.jsxs)(eI,{sx:{flexDirection:"row",width:"full",justifyContent:"space-between"},children:[(0,Al.jsx)(uI,{size:"medium",sx:{width:84},onPress:()=>e?.(),children:"Cancel"}),(0,Al.jsx)(cI,{size:"medium",sx:{width:84},onPress:i,disabled:r||o+a===0,children:"Copy"})]})]})})}),(function({onClose:e,fromPinboard:t}){const{pinCharts:n,isMutating:r}=YN(),i=(0,u.useCallback)((()=>{n(t.charts),e?.()}),[t.charts,e,n]);return(0,Al.jsx)(HN,{children:(0,Al.jsxs)(eI,{children:[(0,Al.jsx)(iI,{variant:"l",sx:{mb:"xs",textAlign:"center",fontWeight:"600"},children:"Pinboard conflict"}),(0,Al.jsxs)(eI,{sx:{mb:"s",alignItems:"center"},children:[(0,Al.jsx)(iI,{variant:"m",sx:{textAlign:"center",fontWeight:"400"},children:"Do you want to copy the selected pinboard charts to your flight?"}),(0,Al.jsx)(iI,{sx:{textAlign:"center",mt:"xs"},children:0===t.charts.length?"0 charts will be added.":`${t.charts.length} charts from ${o=Array.from(t.charts.reduce(((e,t)=>e.add(t.airport)),new Set)),[o.slice(0,o.length-1).join(", "),o[o.length-1]].filter((e=>""!==e)).join(" and ")} will be added.`})]}),(0,Al.jsxs)(eI,{sx:{flexDirection:"row",width:"full",justifyContent:"space-between"},children:[(0,Al.jsx)(uI,{size:"medium",sx:{width:84},onPress:()=>e?.(),children:"Cancel"}),(0,Al.jsx)(cI,{size:"medium",sx:{width:84},onPress:i,disabled:r||0===t.charts.length,children:"Copy"})]})]})});var o}));function yV({onClose:e,onSuccess:t,onCancel:n,pinboard:r}){const[i,o]=XC(eF),a=cL(),[s,l]=(0,u.useState)(r.title),c=(0,u.useCallback)((async()=>{s!==r.title&&(i.pinboard?.id===r.id&&o(Object.assign({},i,{pinboard:Object.assign({},i.pinboard,{title:s})})),await a.mutateAsync(Object.assign({},r,{title:s})),t?.(r),e?.())}),[i,e,t,r,o,s,a]);return(0,Al.jsx)(HN,{children:(0,Al.jsxs)(eI,{children:[(0,Al.jsx)(iI,{variant:"l",sx:{mb:"xs",textAlign:"center",fontWeight:"600"},children:"Rename pinboard"}),a.isLoading?(0,Al.jsx)(e_,{}):(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsx)(eI,{sx:{flexDirection:"row",width:"100%",justifyContent:"space-between",alignItems:"center",mb:"s"},children:(0,Al.jsx)(fN,{placeholder:"New Pinboard",value:s,onChangeText:l,onSubmitEditing:c,icon:"edit",autoFocus:!0})}),(0,Al.jsxs)(eI,{sx:{flexDirection:"row",width:"full",justifyContent:"space-between"},children:[(0,Al.jsx)(uI,{size:"medium",sx:{width:"auto"},onPress:()=>{n?.(),e?.()},children:"Cancel"}),(0,Al.jsx)(dI,{size:"medium",sx:{width:"auto"},onPress:c,disabled:!s,children:"Rename"})]})]})]})})}const vV=$T(Qo.A)(),bV=(0,u.forwardRef)((function(e,t){const n=pI(),r=e.contentContainerSx&&n(e.contentContainerSx),i=e.indicatorSx&&n(e.indicatorSx);return(0,Al.jsx)(vV,Object.assign({},e,{contentContainerStyle:e.contentContainerStyle&&r?[e.contentContainerStyle,r]:r||e.contentContainerStyle,indicatorStyle:e.indicatorStyle&&i?[e.indicatorStyle,i]:i||e.indicatorStyle,ref:t}))})),AV=["size","color"],xV=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,AV);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Vk,Object.assign({d:"M11.424 16L20.2755 7.88635C20.665 7.52926 20.665 6.91513 20.2755 6.55805C19.931 6.24231 19.4023 6.24231 19.0579 6.55805L9.16396 15.6273C9.05949 15.7231 9 15.8583 9 16C9 16.1417 9.05948 16.2769 9.16396 16.3727L19.0579 25.442C19.4023 25.7577 19.931 25.7577 20.2755 25.442C20.665 25.0849 20.665 24.4707 20.2755 24.1137L11.424 16Z"},i))}))})),wV=["index","backgroundColor","color","isCollapsible","isCollapsed","onChevronPress","textSize","textSx","sx"];function CV(e){let{backgroundColor:t="Background/200",color:n="White",isCollapsible:r=!1,isCollapsed:i=!1,onChevronPress:o,textSize:a="m",textSx:s,sx:l}=e,c=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,wV);const{theme:u}=vf();return(0,Al.jsxs)(eI,{sx:Object.assign({width:"full",justifyContent:"center",backgroundColor:t,py:"xxs",px:"s",borderBottomColor:"Background/600",borderBottomWidth:1},l),children:["title"in c?(0,Al.jsx)(iI,{variant:a,selectable:!1,sx:Object.assign({marginVertical:"xxs",fontWeight:"600",color:n},s),children:c.title}):"content"in c?(0,Al.jsx)(c.content,{}):null,r?(0,Al.jsx)(nI,{onPress:o,sx:{position:"absolute",right:"s",width:28,height:24},children:({hovered:e,pressed:t})=>(0,Al.jsx)(xV,{size:24,color:e?u.colors["Gray/200"]:t?u.colors["Gray/100"]:u.colors.White,style:{transform:[{rotateZ:i?"180deg":"-90deg"}]}})}):null]})}const SV=["size","color"],EV=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,SV);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M19.4132 4.80005C19.8256 4.80005 20.1603 5.13475 20.1603 5.54712V6.07935H21.1202C22.7106 6.07948 24 7.36983 24.0001 8.96021V24.1067C24 25.6971 22.7106 26.9864 21.1202 26.9866H10.6671C9.07662 26.9866 7.78639 25.6972 7.78625 24.1067V8.96021C7.7864 7.36975 9.07662 6.07935 10.6671 6.07935H11.84V5.54712C11.84 5.13475 12.1747 4.80005 12.587 4.80005C12.9992 4.80025 13.3341 5.13487 13.3341 5.54712V6.07935H15.2531V5.54712C15.2531 5.13475 15.5877 4.80005 16.0001 4.80005C16.4124 4.80012 16.7472 5.13479 16.7472 5.54712V6.07935H18.6661V5.54712C18.6661 5.13479 19.0009 4.80011 19.4132 4.80005ZM9.2804 12.054V24.1067C9.28053 24.8724 9.90136 25.4934 10.6671 25.4934H21.1202C21.8859 25.4933 22.5068 24.8723 22.507 24.1067V12.054H9.2804ZM10.6671 7.57349C9.90137 7.57349 9.28054 8.1945 9.2804 8.96021V10.5598H22.507V8.96021C22.5068 8.19458 21.8859 7.57362 21.1202 7.57349H20.1603V8.10669C20.1603 8.51906 19.8256 8.85376 19.4132 8.85376C19.0009 8.8537 18.6661 8.51902 18.6661 8.10669V7.57349H16.7472V8.10669C16.7472 8.51902 16.4124 8.85369 16.0001 8.85376C15.5877 8.85376 15.2531 8.51906 15.2531 8.10669V7.57349H13.3341V8.10669C13.3341 8.51894 12.9992 8.85356 12.587 8.85376C12.1747 8.85376 11.84 8.51906 11.84 8.10669V7.57349H10.6671Z"},i))}))})),kV=["size","color"],TV=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,kV);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M19.4132 4.80005C19.8256 4.80005 20.1603 5.13475 20.1603 5.54712V6.07935H21.1202C22.7106 6.07948 24 7.36983 24.0001 8.96021V24.1067C24 25.6971 22.7106 26.9864 21.1202 26.9866H18.3663C18.3598 26.9867 18.3533 26.9875 18.3468 26.9875C18.3403 26.9875 18.3337 26.9867 18.3273 26.9866H13.4591C13.4528 26.9867 13.446 26.9875 13.4396 26.9875C13.433 26.9875 13.4265 26.9867 13.42 26.9866H10.6671C9.07662 26.9866 7.78639 25.6972 7.78625 24.1067V8.96021C7.7864 7.36975 9.07662 6.07935 10.6671 6.07935H11.84V5.54712C11.84 5.13475 12.1747 4.80005 12.587 4.80005C12.9992 4.80025 13.3341 5.13487 13.3341 5.54712V6.07935H15.2531V5.54712C15.2531 5.13475 15.5877 4.80005 16.0001 4.80005C16.4124 4.80012 16.7472 5.13479 16.7472 5.54712V6.07935H18.6661V5.54712C18.6661 5.13479 19.0009 4.80011 19.4132 4.80005ZM9.2804 22.0803V24.1067C9.28053 24.8724 9.90136 25.4934 10.6671 25.4934H12.6925V22.0803H9.2804ZM14.1866 22.0803V25.4934H17.5997V22.0803H14.1866ZM19.0939 22.0803V25.4934H21.1202C21.8859 25.4933 22.5068 24.8723 22.507 24.1067V22.0803H19.0939ZM9.2804 20.5862H12.6925V17.1741H9.2804V20.5862ZM14.1866 20.5862H17.5997V17.1741H14.1866V20.5862ZM19.0939 20.5862H22.507V17.1741H19.0939V20.5862ZM9.2804 15.6799H12.6925V12.054H9.2804V15.6799ZM14.1866 15.6799H17.5997V12.054H14.1866V15.6799ZM19.0939 15.6799H22.507V12.054H19.0939V15.6799ZM10.6671 7.57349C9.90137 7.57349 9.28054 8.19449 9.2804 8.96021V10.5598H22.507V8.96021C22.5068 8.19458 21.8859 7.57362 21.1202 7.57349H20.1603V8.10669C20.1603 8.51906 19.8256 8.85376 19.4132 8.85376C19.0009 8.8537 18.6661 8.51902 18.6661 8.10669V7.57349H16.7472V8.10669C16.7472 8.51902 16.4124 8.85369 16.0001 8.85376C15.5877 8.85376 15.2531 8.51906 15.2531 8.10669V7.57349H13.3341V8.10669C13.3341 8.51894 12.9992 8.85356 12.587 8.85376C12.1747 8.85376 11.84 8.51906 11.84 8.10669V7.57349H10.6671Z"},i))}))})),IV=["size","color"],OV=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,IV);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M19.4131 4.7998C19.8254 4.7998 20.16 5.1346 20.1602 5.54688V6.0791H21.1201C22.7104 6.07923 23.9997 7.36969 24 8.95996V24.1064C23.9999 25.6968 22.7105 26.9862 21.1201 26.9863H10.667C9.07655 26.9863 7.78627 25.6969 7.78613 24.1064V8.95996C7.7864 7.36965 9.07663 6.07917 10.667 6.0791H11.8398V5.54688C11.84 5.13465 12.1747 4.79987 12.5869 4.7998C12.999 4.80001 13.3339 5.13473 13.334 5.54688V6.0791H15.2529V5.54688C15.253 5.13465 15.5878 4.79987 16 4.7998C16.4122 4.79987 16.747 5.13465 16.7471 5.54688V6.0791H18.666V5.54688C18.6661 5.13469 19.0009 4.79994 19.4131 4.7998ZM9.28027 24.1064C9.28041 24.8721 9.9013 25.4931 10.667 25.4932H21.1201C21.8858 25.493 22.5067 24.8721 22.5068 24.1064V22.0801H9.28027V24.1064ZM9.28027 20.5859H22.5068V17.1738H9.28027V20.5859ZM9.28027 15.6797H22.5068V12.0537H9.28027V15.6797ZM10.667 7.57324C9.90138 7.57331 9.28054 8.19439 9.28027 8.95996V10.5596H22.5068V8.95996C22.5066 8.19443 21.8857 7.57338 21.1201 7.57324H20.1602V8.10645C20.1602 8.51882 19.8255 8.85352 19.4131 8.85352C19.0008 8.85338 18.666 8.51874 18.666 8.10645V7.57324H16.7471V8.10645C16.7471 8.51877 16.4123 8.85345 16 8.85352C15.5877 8.85345 15.2529 8.51877 15.2529 8.10645V7.57324H13.334V8.10645C13.334 8.51869 12.9991 8.85331 12.5869 8.85352C12.1746 8.85345 11.8398 8.51877 11.8398 8.10645V7.57324H10.667Z"},i))}))})),RV=["size","color"],MV=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,RV);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M22.4489 11.8752C22.7715 11.8754 23.1389 11.9144 23.5455 11.9905C23.9751 12.066 24.3904 12.2236 24.7848 12.4602C25.1994 12.7065 25.5373 13.0752 25.8014 13.5549C26.0735 14.0495 26.2018 14.6962 26.2018 15.4778V21.4182C26.2018 21.7425 25.9371 22.0062 25.6129 22.0071H24.862C24.566 22.0071 24.3259 21.7668 24.3258 21.4709V21.3889C24.3258 21.3404 24.2973 21.3015 24.2467 21.2825C24.1936 21.2632 24.1342 21.2741 24.0934 21.3147C23.8379 21.5748 23.5021 21.7908 23.0973 21.9651C22.6783 22.1453 22.1751 22.2315 21.5983 22.2317C20.9648 22.2316 20.3828 22.1116 19.858 21.8694L19.8561 21.8684C19.3291 21.6203 18.9062 21.261 18.5934 20.7922L18.5924 20.7913C18.2754 20.3112 18.1218 19.7375 18.1217 19.0803C18.1217 18.5052 18.235 18.0175 18.4782 17.634C18.7134 17.2593 19.0293 16.9641 19.4215 16.7522C19.8011 16.5473 20.2193 16.3946 20.6725 16.2952C21.12 16.1939 21.5723 16.114 22.0241 16.0549C22.6065 15.9801 23.0816 15.9227 23.4459 15.885C23.8051 15.8441 24.0396 15.779 24.1696 15.7043L24.1715 15.7034C24.2643 15.6508 24.3258 15.5596 24.3258 15.3772V15.3274C24.3258 14.7479 24.1672 14.3242 23.8766 14.0295L23.8756 14.0286C23.5935 13.7395 23.1473 13.5767 22.4996 13.5764C21.823 13.5764 21.3182 13.7252 20.9645 13.9973C20.6963 14.2041 20.4883 14.4172 20.3385 14.634C20.1847 14.8568 19.8884 14.9997 19.5973 14.8967L18.9186 14.6536C18.6053 14.5416 18.4288 14.1757 18.6012 13.8596C18.8357 13.4307 19.1265 13.0772 19.4743 12.8059C19.9152 12.4612 20.3988 12.2187 20.9215 12.0823L21.3073 11.9915C21.6911 11.9142 22.0728 11.8753 22.4489 11.8752ZM23.4205 17.5383H23.4176C23.1457 17.5802 22.8783 17.6181 22.6188 17.6516L22.6159 17.6526C22.3631 17.6816 22.1564 17.7062 21.9996 17.7268C21.6286 17.7752 21.282 17.8545 20.9625 17.9622L20.9606 17.9631C20.7347 18.0375 20.5447 18.1398 20.3893 18.2668L20.2448 18.4026C20.0873 18.5732 19.9978 18.8157 19.9977 19.1545C19.9977 19.6102 20.1623 19.9328 20.4811 20.1536C20.8233 20.3832 21.2667 20.5061 21.8239 20.5061C22.381 20.5059 22.8382 20.3965 23.2008 20.1887L23.2018 20.1877C23.5775 19.9744 23.8545 19.7023 24.0387 19.3752L24.0397 19.3743C24.2313 19.0406 24.3258 18.6927 24.3258 18.3293V17.636C24.3256 17.5247 24.2283 17.4393 24.1198 17.4504C23.8604 17.4793 23.5595 17.5153 23.4205 17.5383Z"},i)),(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M12.0348 8.7981C12.2808 8.79882 12.5017 8.95283 12.5866 9.18384L17.0045 21.2161C17.1447 21.5992 16.8606 22.006 16.4528 22.0071H15.6569C15.4081 22.0071 15.1856 21.8498 15.1022 21.6155L13.9987 18.5042C13.9722 18.4296 13.8999 18.3798 13.8209 18.3792H9.1891C9.10987 18.3793 9.03917 18.4296 9.01235 18.5042L7.90785 21.6155C7.82468 21.8495 7.60145 22.0064 7.35317 22.0071H6.55727C6.14864 22.0068 5.86486 21.5997 6.00551 21.2161L10.4235 9.18384C10.5086 8.95257 10.7297 8.7981 10.9762 8.7981H12.0348ZM11.6803 12.0959C11.6203 11.9311 11.3873 11.9315 11.3268 12.0959L9.7809 16.3508C9.73633 16.4735 9.82714 16.6037 9.95766 16.6038H13.0524C13.1819 16.6026 13.2731 16.4728 13.2291 16.3508L11.6803 12.0959Z"},i))]}))})),PV=["size","color"],DV=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,PV);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Vk,Object.assign({d:"M24.4481 14.757C24.8602 14.7572 25.1944 15.0914 25.1946 15.5035C25.1943 15.9156 24.8596 16.2506 24.4474 16.2506H16.7466V23.9515C16.7462 24.3635 16.4121 24.6978 16.0001 24.6979C15.588 24.6978 15.2531 24.3629 15.2529 23.9508V16.2499L7.55279 16.2506C7.14063 16.2506 6.80591 15.9156 6.80563 15.5035C6.80578 15.0914 7.14005 14.7573 7.5521 14.757H15.2529V7.05618C15.2529 6.64392 15.5879 6.30921 16.0001 6.30902C16.4122 6.30917 16.7463 6.6434 16.7466 7.05549V14.7563L24.4481 14.757Z"},i))}))})),jV=LC(null);function BV({pressed:e,hovered:t,selected:n}){return e||n?"Blue/600":t?"Blue/800":"Background/400"}const LV={"draw:blank":["Blank Paper"],"draw:linedPaper":["Lined Paper"],"draw:checkeredPaper":["Grid Paper"],"text:blank":["Notepad"],"draw:ATIS":["ATIS"],"draw:PIREP":["PIREP"],"draw:times":["Times Out/In"],"draw:takeoffLandingData":["Take-Off & Landing Data"],"draw:CRAFT":["C.R.A.F.T"],"draw:holdingClearance":["Holding Clearance"]},FV={"draw:blank":EV,"draw:linedPaper":OV,"draw:checkeredPaper":TV,"text:blank":MV,"draw:ATIS":DV,"draw:PIREP":DV,"draw:times":DV,"draw:takeoffLandingData":DV,"draw:CRAFT":DV,"draw:holdingClearance":DV};function NV({onClose:e}){const t=IL();return(0,Al.jsx)(HN,{sx:{width:"full",height:"full"},children:(0,Al.jsx)(eI,{sx:{flex:1,alignItems:"center",justifyContent:"center"},children:(0,Al.jsxs)(eI,{sx:{backgroundColor:"Background/400",borderColor:"Background/200",borderWidth:1,borderRadius:10,width:370,maxHeight:"60%",overflow:"hidden"},children:[(0,Al.jsxs)(eI,{sx:{boxShadow:"List/Drop Shadow Top",py:"s",backgroundColor:"Background/400",borderBottomWidth:1,borderColor:"Background/600",zIndex:1,flexDirection:"row",alignItems:"center",overflow:"hidden"},children:[(0,Al.jsx)(iI,{variant:"l",sx:{fontWeight:"600",textAlign:"center",ml:"auto",mr:-24},selectable:!1,children:"Add Scratchpad"}),(0,Al.jsx)(eI,{sx:{ml:"auto",mr:"s"},children:(0,Al.jsx)(MI,{size:24,onPress:e})})]}),(0,Al.jsxs)(bV,{children:[(0,Al.jsx)(CV,{textSize:"m",sx:{px:"m"},title:"Basic"}),Object.entries(LV).filter((([e])=>["draw:blank","draw:linedPaper","draw:checkeredPaper"].includes(e))).map((([t,[n]])=>(0,Al.jsx)(_V,{title:n||"",Icon:FV[t],template:t,onPress:e},t))),(0,Al.jsx)(CV,{textSize:"m",sx:{px:"m"},title:"Type"}),Object.entries(LV).filter((([e])=>"text:blank"===e)).map((([t,[n]])=>(0,Al.jsx)(_V,{title:n||"",Icon:FV[t],template:t,onPress:e},t))),(0,Al.jsx)(CV,{textSize:"m",sx:{px:"m"},title:"Templates"}),Object.entries(LV).filter((([e])=>!["draw:blank","draw:linedPaper","draw:checkeredPaper","text:blank"].includes(e))).map((([t,[n]])=>(0,Al.jsx)(_V,{title:n||"",Icon:FV[t],template:t,onPress:e},t)))]}),(0,Al.jsx)(eI,{sx:{p:"xs",backgroundColor:"Background/300",shadowColor:"rgba(0, 0, 0, 0.15)",shadowOffset:{width:0,height:-2},shadowRadius:5},children:(0,Al.jsx)(uI,{size:"medium",onPress:e,disabled:t.isLoading,children:"Cancel"})})]})})})}function _V({title:e,Icon:t,template:n,onPress:r}){const{open:i}=hX(),{addScratchpad:o}=YN(),a=QC(jV),{addToast:s}=E_();return(0,Al.jsx)(ls.A,{onPress:async()=>{try{const e=await o(n);e&&(a(e.id??null),i("ScratchpadViewer"))}catch(e){oS.err("Failed to add scratchpad",{error:e}),s("Failed to add scratchpad. Please try reloading your flight.")}r?.()},children:({hovered:n,pressed:r})=>(0,Al.jsxs)(eI,{sx:{flex:1,backgroundColor:BV({pressed:r,hovered:n}),borderColor:"Background/600",borderBottomWidth:1,flexDirection:"row",py:"xs",px:"s",alignItems:"center"},children:[(0,Al.jsx)(eI,{sx:{mr:"xxs"},children:t&&(0,Al.jsx)(t,{size:32})}),(0,Al.jsx)(eI,{sx:{flex:1,height:"full",justifyContent:"center"},children:(0,Al.jsx)(iI,{variant:"m",sx:{fontWeight:"600"},selectable:!1,numberOfLines:1,children:e})})]})})}const zV=LC(null),VV=LC(!1),UV=QS("featuresModalShown",null);function HV(){const e=QC(zV),t=(0,u.useCallback)((t=>{e((e=>null!==e?(oS.warning("Cannot show modal when one is already open"),e):t))}),[e]);return(0,u.useMemo)((()=>({show:t})),[t])}function qV(){const[e,t]=XC(zV);switch((0,u.useEffect)((()=>{PT("scratchpads")||"AddScratchpadModal"!==e?.modal||t(null)}),[e,t]),e?.modal){case"CreatePinboard":return(0,Al.jsx)(L_,Object.assign({onClose:()=>t(null)},e.options));case"RenamePinboard":return(0,Al.jsx)(yV,Object.assign({onClose:()=>t(null)},e.options));case"MergePinboard":return(0,Al.jsx)(gV,Object.assign({onClose:()=>t(null)},e.options));case"LoadPanelFlight":return(0,Al.jsx)(pV,Object.assign({onClose:()=>t(null)},e.options));case"ConfirmAction":return(0,Al.jsx)(B_,Object.assign({onClose:()=>t(null)},e.options));case"CreateUserWaypoint":return(0,Al.jsx)(dV,Object.assign({onClose:()=>t(null)},e.options));case"EditUserWaypoint":return(0,Al.jsx)(fV,Object.assign({onClose:()=>t(null)},e.options));case"AutoRouteModal":return(0,Al.jsx)(j_,Object.assign({onClose:()=>t(null)},e.options));case"AddScratchpadModal":return DT("scratchpads",(0,Al.jsx)(NV,Object.assign({onClose:()=>t(null)},e.options)),null);case"ClearPinnedItemsModal":return DT("scratchpads",(0,Al.jsx)($N,Object.assign({onClose:()=>t(null)},e.options)),null);default:return null}}const GV=["size","color"],YV=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,GV);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Vk,Object.assign({d:"M9.77661 17.8955C10.1938 17.8957 10.5323 18.2353 10.5325 18.6543C10.5325 19.0735 10.194 19.4139 9.77661 19.4141H8.40259C7.90872 19.4143 7.50812 19.8164 7.50806 20.3125C7.5081 20.8078 7.90758 21.2095 8.40063 21.2109L23.635 21.2471C24.9396 21.2502 25.9962 22.3138 25.9963 23.624C25.9961 24.9362 24.9366 25.9997 23.6301 26H17.5774C17.1599 26 16.8216 25.6605 16.8215 25.2412C16.8217 24.822 17.16 24.4814 17.5774 24.4814H23.6301C24.1016 24.4811 24.4844 24.0976 24.4846 23.624C24.4845 23.1512 24.1028 22.7671 23.6321 22.7656L8.39673 22.7295C7.07009 22.726 5.99638 21.645 5.99634 20.3125C5.9964 18.9778 7.07369 17.8958 8.40259 17.8955H9.77661ZM24.0295 10.0977L14.2883 19.4902C14.2354 19.5493 14.1587 19.5791 14.0823 19.5791H12.2961C12.1316 19.5791 12.0022 19.4484 12.0022 19.2832V17.4893C12.0023 17.4069 12.0316 17.3362 12.0901 17.2773L21.8254 7.88379L24.0295 10.0977ZM23.9446 6C24.0213 6.00006 24.0973 6.01539 24.1682 6.04492C24.2393 6.07454 24.3043 6.11814 24.3586 6.17285L25.7336 7.55371C25.788 7.6082 25.8311 7.67292 25.8606 7.74414C25.8901 7.81554 25.9055 7.89243 25.9055 7.96973C25.9055 8.04702 25.8901 8.12392 25.8606 8.19531C25.8311 8.26653 25.788 8.33125 25.7336 8.38574L24.6584 9.46582L22.4543 7.25293L23.5295 6.17285C23.5839 6.11814 23.6489 6.07454 23.72 6.04492C23.791 6.01533 23.8676 6 23.9446 6Z"},i))}))})),WV=["size","color"],QV=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,WV);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Vk,Object.assign({d:"M9.67107 9.67528C10.2624 9.08395 11.1436 8.87402 11.9413 9.15028L12.0182 9.17862L19.6523 12.1449C20.5545 12.4954 21.1112 13.3943 21.0359 14.3511L21.0271 14.4399C20.9182 15.3509 20.2519 16.1025 19.3563 16.3182L19.3546 16.3184L19.3527 16.3188C19.0045 16.4018 18.694 16.5067 18.4172 16.631C18.1665 16.7436 18.1284 17.0684 18.3227 17.2627L22.7554 21.6955C23.047 21.9871 23.047 22.4597 22.7554 22.7513C22.4639 23.0429 21.9912 23.0429 21.6996 22.7513L17.2524 18.3041C17.0599 18.1116 16.7384 18.1469 16.6238 18.3938C16.4954 18.6708 16.3875 18.9825 16.3032 19.3336L16.3029 19.3353L16.3025 19.3369C16.0785 20.2605 15.2846 20.9393 14.3346 21.0134C13.4085 21.0855 12.5365 20.5654 12.1644 19.713L12.1302 19.6294C11.2039 17.2455 9.91248 13.9219 9.1744 12.0224L9.14607 11.9455C8.86981 11.1478 9.07973 10.2666 9.67107 9.67528Z"},i))}))})),XV=["size","color"],JV=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,XV);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Dk,Object.assign({cx:"16",cy:"16",r:"10"},i))}))})),ZV=["size","color"],KV=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,ZV);const i=u.useMemo((()=>({stroke:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Dk,Object.assign({cx:"16",cy:"16",r:"9.5"},i))}))})),$V=["size","color"],eU=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,$V);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Vk,{fill:"string"==typeof n?n:"hotpink",fillRule:"evenodd",clipRule:"evenodd",d:"M18.8094 19.1014C19.323 20.4003 19.1524 21.5245 18.2974 22.4741C17.997 22.8077 17.7618 22.991 17.5919 23.0239C17.422 23.0568 17.2209 22.9686 16.9885 22.7594L13.8513 19.9346L8.64506 24.8086C8.55899 24.8891 8.42556 24.8904 8.33794 24.8115C8.25032 24.7326 8.23766 24.5998 8.3088 24.5058L12.6119 18.8186L9.47464 15.9938C9.24225 15.7846 9.13932 15.5874 9.16584 15.4021C9.19236 15.2169 9.34426 14.9703 9.62156 14.6623C10.4765 13.7128 11.5768 13.4255 12.9223 13.8005C12.9739 13.847 13.0487 13.8679 13.1465 13.8631C13.5692 13.9648 13.9694 13.8838 14.3473 13.6199L19.1345 9.70515L19.3078 9.51268C19.4927 9.30737 19.5138 9.02431 19.3711 8.6635L19.367 8.59013L19.3283 8.55525C19.134 8.14794 19.1755 7.79031 19.4528 7.48235C19.7763 7.12306 20.0301 6.945 20.2143 6.94817C20.3984 6.95135 20.6196 7.06918 20.8778 7.30167L24.4411 10.5101C24.6993 10.7426 24.8396 10.9502 24.862 11.133C24.8844 11.3159 24.7339 11.5869 24.4104 11.9462C24.1331 12.2542 23.7818 12.3328 23.3564 12.1821L23.3176 12.1473L23.2442 12.1509C22.8705 12.0467 22.5912 12.0973 22.4063 12.3026L22.233 12.4951L18.8401 17.6652C18.6172 18.0686 18.5784 18.4752 18.7238 18.8849C18.7292 18.9827 18.7578 19.0549 18.8094 19.1014Z"})}))})),tU=["size","color"],nU=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,tU);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Hk,Object.assign({x:"6",y:"6",width:"20",height:"20",rx:"1"},i))}))})),rU=["size","color"],iU=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,rU);const i=u.useMemo((()=>({stroke:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Hk,Object.assign({x:"6.5",y:"6.5",width:"19",height:"19",rx:"0.5"},i))}))})),oU=["size","color"],aU=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,oU);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,Object.assign({d:"M16.0039 22.0842C16.418 22.0842 16.7547 22.4201 16.7549 22.8342V25.9601L18.0391 24.676C18.332 24.3833 18.8068 24.3831 19.0996 24.676C19.392 24.9688 19.3922 25.4437 19.0996 25.7365L16.5352 28.301C16.2424 28.5937 15.7675 28.5934 15.4746 28.301L12.9102 25.7365C12.6173 25.4436 12.6173 24.9689 12.9102 24.676C13.203 24.3831 13.6778 24.3831 13.9707 24.676L15.2549 25.9601L15.2539 22.8342C15.254 22.4202 15.59 22.0845 16.0039 22.0842Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M7.71387 20.1779C8.0666 19.9611 8.5291 20.0704 8.74609 20.423C9.43161 21.5373 10.3721 22.4787 11.4863 23.1643C11.8387 23.3813 11.949 23.8429 11.7324 24.1955C11.5155 24.5481 11.0539 24.6582 10.7012 24.4416C9.38681 23.633 8.27742 22.5235 7.46875 21.2092C7.25178 20.8565 7.36136 20.3951 7.71387 20.1779Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M23.2539 20.423C23.4709 20.0704 23.9334 19.9611 24.2861 20.1779C24.6386 20.3951 24.7482 20.8565 24.5312 21.2092C23.7226 22.5235 22.6132 23.633 21.2988 24.4416C20.9461 24.6582 20.4845 24.5481 20.2676 24.1955C20.051 23.8429 20.1613 23.3813 20.5137 23.1643C21.6279 22.4787 22.5684 21.5373 23.2539 20.423Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M17.5 11.8566C18.3936 11.8566 18.8403 11.8566 19.1816 12.0305C19.4819 12.1834 19.7259 12.4275 19.8789 12.7277C20.0528 13.0691 20.0537 13.5158 20.0537 14.4094V17.4094C20.0537 18.3031 20.0528 18.7506 19.8789 19.092C19.7259 19.392 19.4817 19.6363 19.1816 19.7893C18.8403 19.963 18.3934 19.9631 17.5 19.9631H14.5C13.6066 19.9631 13.1597 19.963 12.8184 19.7893C12.5181 19.6363 12.2731 19.3922 12.1201 19.092C11.9462 18.7506 11.9463 18.3031 11.9463 17.4094V14.4094C11.9463 13.516 11.9464 13.069 12.1201 12.7277C12.2731 12.4275 12.5181 12.1835 12.8184 12.0305C13.1597 11.8566 13.6064 11.8566 14.5 11.8566H17.5Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M6.39844 13.1398C6.69127 12.847 7.16608 12.8471 7.45898 13.1398C7.75156 13.4328 7.75177 13.9076 7.45898 14.2004L6.50391 15.1555H9.41602C9.83008 15.1556 10.1659 15.4914 10.166 15.9055C10.1658 16.3194 9.83 16.6544 9.41602 16.6545H6.50391L7.45898 17.6105C7.75161 17.9035 7.75178 18.3783 7.45898 18.6711C7.16617 18.9637 6.6913 18.9637 6.39844 18.6711L4.16309 16.4357C4.02265 16.2952 3.94347 16.1041 3.94336 15.9055C3.94341 15.7067 4.02254 15.5158 4.16309 15.3752L6.39844 13.1398Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M24.5459 13.1398C24.8388 12.8471 25.3136 12.847 25.6064 13.1398L27.8418 15.3752C27.9822 15.5158 28.0615 15.7068 28.0615 15.9055C28.0614 16.1041 27.9822 16.2952 27.8418 16.4357L25.6055 18.6711C25.3126 18.9637 24.8377 18.9638 24.5449 18.6711C24.2523 18.3783 24.2523 17.9034 24.5449 17.6105L25.501 16.6545H22.5879C22.174 16.6543 21.8381 16.3194 21.8379 15.9055C21.838 15.4914 22.1739 15.1556 22.5879 15.1555H25.501L24.5459 14.2004C24.253 13.9075 24.2531 13.4327 24.5459 13.1398Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M10.7012 7.37714C11.0538 7.16074 11.5155 7.27079 11.7324 7.62324C11.9492 7.97583 11.8386 8.43736 11.4863 8.65449C10.3722 9.33995 9.4316 10.2816 8.74609 11.3957C8.52906 11.7484 8.06663 11.8578 7.71387 11.6408C7.36136 11.4237 7.25178 10.9622 7.46875 10.6096C8.2774 9.29537 9.38691 8.18569 10.7012 7.37714Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M20.2676 7.62324C20.4845 7.27079 20.9462 7.16074 21.2988 7.37714C22.6131 8.18569 23.7226 9.29537 24.5312 10.6096C24.7482 10.9622 24.6386 11.4237 24.2861 11.6408C23.9334 11.8578 23.4709 11.7484 23.2539 11.3957C22.5684 10.2816 21.6278 9.33995 20.5137 8.65449C20.1614 8.43736 20.0508 7.97583 20.2676 7.62324Z"},i)),(0,Al.jsx)(Vk,Object.assign({d:"M15.4746 3.51874C15.7675 3.22606 16.2423 3.22593 16.5352 3.51874L19.0996 6.0832C19.3921 6.37605 19.3922 6.85093 19.0996 7.14374C18.8068 7.43649 18.332 7.43632 18.0391 7.14374L16.7549 5.85956V8.98456C16.7549 9.39878 16.4181 9.73554 16.0039 9.73554C15.5901 9.73525 15.2541 9.39938 15.2539 8.98554L15.2549 5.85956L13.9707 7.14374C13.6779 7.43654 13.2031 7.43635 12.9102 7.14374C12.6173 6.85085 12.6173 6.37609 12.9102 6.0832L15.4746 3.51874Z"},i))]}))})),sU=["size","color"],lU=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,sU);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsx)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:(0,Al.jsx)(Vk,Object.assign({d:"M7 10.25C7.41421 10.25 7.75 10.5858 7.75 11V15.3154L9.49805 13.7422L9.49902 13.7412C11.2852 12.1392 13.5997 11.2525 15.999 11.25C18.5849 11.25 21.0661 12.277 22.8945 14.1055C24.723 15.9339 25.75 18.4141 25.75 21C25.75 21.4142 25.4142 21.75 25 21.75C24.5858 21.75 24.25 21.4142 24.25 21C24.25 18.812 23.3812 16.7132 21.834 15.166C20.2868 13.6188 18.188 12.75 16 12.75C13.97 12.7523 12.0122 13.503 10.501 14.8584L8.95508 16.25H13C13.4142 16.25 13.75 16.5858 13.75 17C13.75 17.4142 13.4142 17.75 13 17.75H7C6.9905 17.75 6.98109 17.7484 6.97168 17.748C6.9645 17.7478 6.95736 17.7475 6.9502 17.7471C6.91008 17.7444 6.87115 17.7382 6.83301 17.7295C6.80937 17.7241 6.78677 17.7157 6.76367 17.708C6.74052 17.7003 6.7174 17.6935 6.69531 17.6836C6.67031 17.6725 6.64691 17.6585 6.62305 17.6445C6.60596 17.6345 6.58845 17.6256 6.57227 17.6143C6.52605 17.582 6.48169 17.5456 6.44238 17.502C6.39604 17.4505 6.36059 17.3931 6.33105 17.334C6.32004 17.312 6.30962 17.2898 6.30078 17.2666C6.29151 17.2422 6.28495 17.2174 6.27832 17.1924C6.27156 17.1669 6.26385 17.1417 6.25977 17.1152C6.25855 17.1074 6.25682 17.0997 6.25586 17.0918C6.25219 17.0617 6.25 17.0311 6.25 17V11C6.25 10.5858 6.58579 10.25 7 10.25Z"},i))}))})),cU=["size","color"],uU=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,cU);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3739 8.79004C11.7835 8.79004 12.1505 9.0462 12.2919 9.43066L16.869 21.8955C17.1028 22.5332 16.6303 23.209 15.951 23.209H15.8885C15.4752 23.2086 15.1059 22.9482 14.9676 22.5586L13.9335 19.6455C13.8433 19.3921 13.6037 19.2228 13.3348 19.2227H8.78112C8.51216 19.2228 8.27154 19.392 8.18151 19.6455L7.14733 22.5586C7.00896 22.9484 6.64001 23.2089 6.22643 23.209H6.16393C5.48483 23.2087 5.01299 22.5331 5.24694 21.8955L9.82311 9.43066C9.96434 9.04618 10.3315 8.79022 10.7411 8.79004H11.3739ZM11.6532 13.3301C11.4496 12.7729 10.6616 12.7733 10.4589 13.3311L9.30162 16.5156C9.15103 16.9302 9.45833 17.3689 9.89928 17.3691H12.2157C12.6567 17.369 12.9639 16.9301 12.8133 16.5156L11.6532 13.3301Z",fill:n}),(0,Al.jsx)(Vk,{d:"M22.1825 9.02246C22.4741 8.73115 22.9466 8.73195 23.2381 9.02344L25.9227 11.708C26.2138 11.9995 26.2139 12.4712 25.9227 12.7627C25.6313 13.0542 25.1587 13.0549 24.8671 12.7637L23.4569 11.3535V20.6543L24.8671 19.2441C25.1587 18.953 25.6313 18.9537 25.9227 19.2451C26.2139 19.5366 26.2138 20.0083 25.9227 20.2998L23.2381 22.9854C22.9466 23.2767 22.474 23.2766 22.1825 22.9854L19.4979 20.3008C19.2065 20.0092 19.2065 19.5367 19.4979 19.2451C19.7894 18.9536 20.262 18.9529 20.5536 19.2441L21.9637 20.6533V11.3545L20.5536 12.7637C20.262 13.0549 19.7894 13.0542 19.4979 12.7627C19.2066 12.4711 19.2065 11.9986 19.4979 11.707L22.1825 9.02246Z",fill:n})]}))}));function hU({text:e}){return(0,Al.jsx)(iI,{selectable:!1,sx:{fontWeight:"600",fontFamily:"monospace",fontSize:12,textAlign:"center"},children:e})}const dU={11:["S","Small"],15:["M","Medium"],18:["L","Large"],21:["XL","Extra Large"]};function fU({chartType:e}){const[t,n]=XC(AF),r=WC(jV),i=gC(),{mutateAsync:o}=RL(),{data:a}=jL("notepad"===e?r:null),s=WC(bF),l=u.useMemo((()=>"notepad"===e&&a?a.data[0]?.props?.size??18:t),[e,a,t]);return(0,Al.jsx)(UF,{title:"Text Size",Icon:uU,disabled:"drawing"!==s,children:({closeSelf:t})=>(0,Al.jsx)(tN,{spacing:"xxs",children:Object.entries(dU).map((([a,[s,c]])=>{const u=parseInt(a,10);return(0,Al.jsx)(wI,{title:c,activated:l===u,onPress:async()=>{await(async t=>{if("notepad"===e&&r){const e=i.getQueryData(["scratchpad",r]);if(e){const n=[{type:"text",props:Object.assign({},e.data[0]?.props,{size:t})}];i.setQueryData(["scratchpad",r],Object.assign({},e,{data:n})),await o({id:r,data:n})}}else n(t)})(u),t()},children:(0,Al.jsx)(hU,{text:s})},a)}))})})}function pU(e){return e?.template?.startsWith("text:")??!1}function mU(e){return e?.template?.startsWith("draw:")??!1}function gU(e){return"template"in e}class yU{constructor(e=[]){this.data=Array.from(e)}[Symbol.iterator](){return this.data.values()}push(e){const t=this.data.indexOf(e);t>-1&&this.data.splice(t,1),this.data.push(e)}delete(e){const t=this.data.indexOf(e);-1!==t&&this.data.splice(t,1)}has(e){return this.data.includes(e)}hasAtTop(e){return this.data.length>0&&this.data[this.data.length-1]===e}}const vU=LC(new yU);var bU=__webpack_require__(49891),AU=__webpack_require__.n(bU);const xU=JSON.parse('{"nm":"Main Scene","ddd":0,"h":24,"w":24,"meta":{"g":"@lottiefiles/creator 1.68.0"},"layers":[{"ty":4,"nm":"Subtract","sr":1,"st":0,"op":80,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[6.25,5.29]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[12.13,13.75]},"r":{"a":1,"k":[{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[-90],"t":0},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[-84.92],"t":7},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[-95.01],"t":14},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[-86.02],"t":22},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[-90],"t":29},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[-90],"t":36},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[-90],"t":43},{"o":{"x":0.65,"y":0},"i":{"x":0.36,"y":1},"s":[-90],"t":51},{"s":[-90],"t":60}]},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"Path 1","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,1.07],[0,0],[-1.07,0],[0,0],[0,0]],"o":[[0,0],[-1.07,0],[0,0],[0,-1.07],[0,0],[0,0],[0,0]],"v":[[12.5,10.57],[1.94,10.57],[0,8.63],[0,1.94],[1.94,0],[12.5,0],[12.5,10.57]]}}},{"ty":"sh","bm":0,"hd":false,"nm":"Path 2","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,-0.41],[-0.41,0],[0,0],[0,0.41],[0.41,0],[0,0]],"o":[[-0.41,0],[0,0.41],[0,0],[0.41,0],[0,-0.41],[0,0],[0,0]],"v":[[3.93,6.01],[3.18,6.76],[3.93,7.51],[8.73,7.51],[9.48,6.76],[8.73,6.01],[3.93,6.01]]}}},{"ty":"sh","bm":0,"hd":false,"nm":"Path 3","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,-0.41],[-0.41,0],[0,0],[0,0.41],[0.41,0],[0,0]],"o":[[-0.41,0],[0,0.41],[0,0],[0.41,0],[0,-0.41],[0,0],[0,0]],"v":[[3.93,3.06],[3.18,3.81],[3.93,4.56],[8.73,4.56],[9.48,3.81],[8.73,3.06],[3.93,3.06]]}}},{"ty":"fl","bm":0,"hd":false,"nm":"Fill","c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":0,"k":100}}],"ind":1},{"ty":4,"nm":"Group 162","sr":1,"st":0,"op":80,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[6.13,1.48]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[12.13,5.48],"t":0},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[12.13,3.48],"t":7},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[12.13,3.48],"t":14},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[12.28,3.37],"t":22},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[12.13,5.48],"t":29},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[12.13,3.48],"t":36},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[12.13,5.48],"t":43},{"o":{"x":0.65,"y":0},"i":{"x":0.36,"y":1},"s":[12.13,4.48],"t":51},{"s":[12.13,5.48],"t":60}]},"r":{"a":1,"k":[{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[0],"t":0},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[-8.19],"t":7},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[2.96],"t":14},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[-4.54],"t":22},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[0],"t":29},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[0],"t":36},{"o":{"x":0.65,"y":0},"i":{"x":0.35,"y":0},"s":[0],"t":43},{"o":{"x":0.65,"y":0},"i":{"x":0.36,"y":1},"s":[0],"t":51},{"s":[0],"t":60}]},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[],"ind":2},{"ty":4,"nm":"Vector 154","sr":1,"st":0,"op":80,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[2.97,1.45]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[6.13,1.45]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"Path 4","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[-0.41,0],[0,0.41],[0,0],[0,0]],"o":[[0,0.41],[0.41,0],[0,0],[0,0],[0,0]],"v":[[-0.75,2.9],[0,3.65],[0.75,2.9],[0,2.9],[-0.75,2.9]]}}},{"ty":"sh","bm":0,"hd":false,"nm":"Path 5","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[-0.41,0],[0,0.41],[0,0],[0,0]],"o":[[0,0.41],[0.41,0],[0,0],[0,0],[0,0]],"v":[[5.18,2.9],[5.93,3.65],[6.68,2.9],[5.93,2.9],[5.18,2.9]]}}},{"ty":"sh","bm":0,"hd":false,"nm":"Path 6","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,2.9],[0.75,2.9],[0.75,1.61],[0,1.61],[-0.75,1.61],[-0.75,2.9],[0,2.9]]}}},{"ty":"sh","bm":0,"hd":false,"nm":"Path 7","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[1.61,0],[1.61,0.75],[4.32,0.75],[4.32,0],[4.32,-0.75],[1.61,-0.75],[1.61,0]]}}},{"ty":"sh","bm":0,"hd":false,"nm":"Path 8","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[5.93,1.61],[5.18,1.61],[5.18,2.9],[5.93,2.9],[6.68,2.9],[6.68,1.61],[5.93,1.61]]}}},{"ty":"sh","bm":0,"hd":false,"nm":"Path 9","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,-0.48],[0,0],[0,0],[1.31,0],[0,0]],"o":[[0,0],[0.48,0],[0,0],[0,0],[0,-1.31],[0,0],[0,0]],"v":[[4.32,0],[4.32,0.75],[5.18,1.61],[5.93,1.61],[6.68,1.61],[4.32,-0.75],[4.32,0]]}}},{"ty":"sh","bm":0,"hd":false,"nm":"Path 10","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[-0.48,0],[0,0],[0,0],[0,-1.31],[0,0]],"o":[[0,0],[0,-0.48],[0,0],[0,0],[-1.31,0],[0,0],[0,0]],"v":[[0,1.61],[0.75,1.61],[1.61,0.75],[1.61,0],[1.61,-0.75],[-0.75,1.61],[0,1.61]]}}},{"ty":"fl","bm":0,"hd":false,"nm":"Fill","c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":0,"k":100}}],"ind":3,"parent":2},{"ty":4,"nm":"Vector 151","sr":1,"st":0,"op":80,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[6.13,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[6.13,2.96]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"Path 11","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0.41],[0.41,0],[0,0],[0,0]],"o":[[0.41,0],[0,-0.41],[0,0],[0,0],[0,0]],"v":[[12.26,0.75],[13.01,0],[12.26,-0.75],[12.26,0],[12.26,0.75]]}}},{"ty":"sh","bm":0,"hd":false,"nm":"Path 12","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,-0.41],[-0.41,0],[0,0],[0,0]],"o":[[-0.41,0],[0,0.41],[0,0],[0,0],[0,0]],"v":[[0,-0.75],[-0.75,0],[0,0.75],[0,0],[0,-0.75]]}}},{"ty":"sh","bm":0,"hd":false,"nm":"Path 13","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[12.26,0],[12.26,-0.75],[0,-0.75],[0,0],[0,0.75],[12.26,0.75],[12.26,0]]}}},{"ty":"fl","bm":0,"hd":false,"nm":"Fill","c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":0,"k":100}}],"ind":4,"parent":2}],"v":"5.7.0","fr":60,"op":80,"ip":0,"assets":[]}');function wU({isActive:e}){const t=(0,u.useRef)(null),n=(0,u.useRef)(null);return(0,u.useLayoutEffect)((()=>{if(!t.current)return t.current=AU().loadAnimation({container:n.current,renderer:"svg",loop:!0,autoplay:!1,animationData:xU}),()=>{t.current?.destroy(),t.current=null}}),[]),(0,u.useEffect)((()=>{e?t.current?.goToAndPlay(0):t.current?.stop()}),[e]),(0,Al.jsx)("div",{ref:n})}const CU=["isActive"],SU=u.memo((function(e){let{isActive:t=!1}=e,n=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,CU);return(0,Al.jsx)(wU,Object.assign({isActive:t},n))}));function EU({canUndoAnnotation:e,clearAnnotations:t,showModal:n,type:r}){const[i,o]=(0,u.useState)(!1),a=(0,u.useCallback)((async()=>{o(!0),await Promise.resolve(t()),setTimeout((()=>o(!1)),1500)}),[t]),s=(0,u.useCallback)((()=>(0,Al.jsx)(SU,{isActive:i})),[i]);return(0,Al.jsx)(xI,{title:"Clear Annotations",disabled:!e,onPress:()=>{n({modal:"ConfirmAction",options:{title:"Clear Annotations",text:`Are you sure you want to clear all annotations on this ${r}?`,confirmText:"Clear",action:a,destructiveConfirm:!0}})},Icon:Da.select({default:s,panel:KN})})}function kU(e,t){const n=(0,u.useMemo)((()=>LC(null,((t,n,...r)=>e(t,n,...r)))),[e]);return QC(n,t)}async function TU(e){const t=await jB.get(`${rS.trafficAPIUrl}/reports?sort=-created&size=1&age=60&created_by=${e}`);return t?.data?.at(0)||null}__webpack_require__(81018);const IU=PS("hasExplicitlyLoggedOut",LC(!1)),OU=LC(null),RU=(LC((e=>null!==e(OU))),LC(!1)),MU=LC(!1),PU=LC("FREE"),DU=LC(!1);function jU(e){return!!e&&"number"==typeof e.aircraft?.position?.latitude&&"number"==typeof e.aircraft?.position?.longitude&&"number"==typeof e.aircraft?.status?.true_heading&&!(e.aircraft.position.latitude<-90||e.aircraft.position.latitude>90)&&!(e.aircraft.position.longitude<-180||e.aircraft.position.longitude>180)}function BU(){const[e,t]=XC(RU),n=gC(),{addToast:r}=E_(),i=WC(OU),o=kU((0,u.useCallback)((async(e,t,o=!0)=>{if(e(RU))return;await n.invalidateQueries({queryKey:["latest-traffic-report"]});const a=await n.fetchQuery(["latest-traffic-report"],(()=>i?.sub?TU(i.sub):null));a?jU(a)?(t(RU,!0),e(qE)&&t(MU,!0)):o&&r("Failed to enable moving maps because the reported position is invalid. Make sure you're using the latest version of Simlink."):o&&r((0,Al.jsxs)(Al.Fragment,{children:["Could not connect to simulator, Simlink needs to be running. Read more about simlink"," ",(0,Al.jsx)(iI,{variant:"m",sx:{color:"White",fontWeight:"500",textDecorationLine:"underline",textAlign:"center"},onPress:()=>ak.A.openURL("https://navigraph.com/apps/connectivity/simlink"),children:"here"}),"."]}))}),[n,i?.sub,r])),a=(0,u.useCallback)((()=>{t(!1)}),[t]);return(0,u.useMemo)((()=>({enable:o,disable:a,isEnabled:e})),[o,a,e])}const LU="Inter",FU="Fira Code",NU=e=>`${e}, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, Inter-serif`,_U=Object.assign({},TT,{divider:TT["Background/600"],transparent:"transparent",red:"rgb(239, 42, 42)",STAR:"rgb(152, 202, 127)",APP:"rgb(243, 172, 122)",TAXI:"rgb(84, 157, 193)",SID:"rgb(220, 100, 159)",REF:"rgb(177, 126, 222)"}),zU={fontFamily:"Metropolis",fontWeight:"600",userSelect:"none",color:"White",my:0},VU={fontFamily:"Inter",fontWeight:"600",color:"White"},UU={customFonts:{[LU]:{400:NU("Inter-Regular"),500:NU("Inter-Medium"),600:NU("Inter-SemiBold"),700:NU("Inter-Bold")},[FU]:{400:NU("FiraCode-Regular"),500:NU("FiraCode-Medium"),600:NU("FiraCode-SemiBold")},Metropolis:{600:NU("Metropolis-SemiBold"),700:NU("Metropolis-Bold")}},fonts:{root:LU,monospace:FU,metropolis:"Metropolis"},colors:_U,space:{none:0,xxxs:2,xxs:4,xs:8,s:16,m:24,l:32,xl:40,xxl:48,xxxl:64},fontSizes:{xs:9,s:11,m:13,l:15,xl:18},breakpoints:["600px","800px","1000px"],sizes:{full:"100%"},types:{onlyAllowThemeValues:"never",reactNativeTypesOnly:!0},text:{body:{color:"White",fontSize:"s",fontWeight:"400"},xs:Object.assign({},VU,{fontSize:"xs",lineHeight:9*1.3}),s:Object.assign({},VU,{fontSize:"s",lineHeight:14.3}),m:Object.assign({},VU,{fontSize:"m",lineHeight:13*1.3}),l:Object.assign({},VU,{fontSize:"l",lineHeight:19.5}),xl:Object.assign({},VU,{fontSize:"xl",lineHeight:23.4}),h1:Object.assign({},zU,{fontSize:56,lineHeight:67.2,letterSpacing:1.12}),h2:Object.assign({},zU,{fontSize:48,lineHeight:48*1.2,letterSpacing:.96}),h4:Object.assign({},zU,{fontSize:32,lineHeight:38.4,letterSpacing:1.12}),h5:Object.assign({},zU,{fontSize:24,lineHeight:24*1.2,letterSpacing:.48})},shadows:{sm:{shadowColor:"rgba(0, 0, 0, 0.20)",shadowOffset:{width:0,height:2},shadowRadius:4},md:{shadowColor:"Black",shadowOffset:{width:0,height:4},shadowOpacity:.2,shadowRadius:6,elevation:5},"List/Drop Shadow Top":{shadowColor:"#000000",shadowOffset:{width:0,height:4},shadowOpacity:.2,shadowRadius:5},"List/Drop Shadow Bottom":{shadowColor:"#000000",shadowOffset:{width:0,height:-4},shadowOpacity:.15,shadowRadius:5},"Information View/Drop Shadow":{shadowColor:"#000000",shadowOffset:{width:0,height:-4},shadowOpacity:.2,shadowRadius:5},"Sidemenu/Drop Shadow":{shadowColor:"#000000",shadowOffset:{width:4,height:-4},shadowOpacity:.2,shadowRadius:5},"ObjectOnMap/Drop Shadow":{shadowColor:"#000000",shadowOffset:{width:0,height:8},shadowOpacity:.35,shadowRadius:8},Levitate:{shadowColor:"#000000",shadowOffset:{width:0,height:0},shadowOpacity:.35,shadowRadius:8},"Control on Map/Drop Shadow":{shadowColor:"rgba(0, 0, 0, 0.5)",shadowOffset:{width:0,height:4},shadowRadius:8},"Buttons/Drop Shadow/Small":{shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffset:{width:0,height:2},shadowRadius:4}}},HU=_U,qU=Object.assign({},UU,{colors:HU}),GU=JSON.parse('{"nm":"Main Scene","ddd":0,"h":32,"w":32,"meta":{"g":"@lottiefiles/creator 1.75.0"},"layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":40.22,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[9.14,10.16],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[5.79,6.43],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[5.96,6.63],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[5.96,6.62],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[13.71,15.23],"t":6.29968823492527},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[13.32,14.8],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[13.31,14.79],"t":8.59937646985054},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[13.32,14.8],"t":9},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[13.32,14.8],"t":24.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[13.32,14.8],"t":39},{"s":[13.32,14.8],"t":39.66281318664551}]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[17.880189286329202,14.069872625401745]},"r":{"a":0,"k":45},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[84.25],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[79.91],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[80],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":6.29968823492527},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0.09],"t":8.59937646985054},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":9},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":24.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":39},{"s":[0],"t":39.66281318664551}]}},"ef":[{"ty":29,"nm":"","en":1,"ef":[{"ty":0,"nm":"sigma","v":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[4],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.8938000000000001],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[2.0022],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[2],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[8.3186],"t":6.29968823492527},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[8],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.9934],"t":8.59937646985054},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[8],"t":9},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[8],"t":24.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[8],"t":39},{"s":[8],"t":39.66281318664551}]}},{"ty":0,"nm":"","v":{"a":0,"k":1}},{"ty":0,"nm":"","v":{"a":0,"k":0}}]}],"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"Path 1","d":1,"ks":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.6921038497006068,0],[-0.2759196436590766,-0.6219732596733052],[-2.5507959527917854,-5.748877852148118],[0.5741292663745315,-0.487520648699049],[0.6465175964168541,0.3910903529872135],[4.826321484615457,-2.9471374897677265],[0.574829344842953,0.48719849849065827],[-0.30305823417912786,0.6830658251926576],[-2.0402796897533984,4.598076770221781]],"o":[[0.2759304640372589,-0.6219732596733052],[0.6921146700787891,0],[2.0324998378400303,4.580702135649203],[0.3028623853340223,0.6827436749842669],[-0.5742374701563622,0.4874132652962559],[-4.826321484615457,-2.9348957818488532],[-0.6462146258277383,0.3923789538207801],[-0.5749397127004168,-0.48730588189345897],[2.5525185569984723,-5.753710105273989],[0,0]],"v":[[8.312279442226037,1.0242067883687784],[9.906478221019082,0],[11.50065535905576,1.0242067883687784],[19.64006843943484,19.36810006210481],[19.184097702815492,21.334827084334574],[17.132662203155718,21.496761255752673],[2.653611186283885,21.560439613611383],[0.6011618171883933,21.40086787705482],[0.14420101596532436,19.433711321213867],[8.312279442226037,1.0242067883687784]]}],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4576636590591489,0],[-0.18246948469622867,-0.4096714106205475],[-1.6867282709450466,-3.7866545948979566],[0.37961873991980816,-0.3210153823274614],[0.4274677836097018,0.25755259158930593],[3.191426864615146,-1.941103533020734],[0.38010449726565504,0.3207979999908159],[-0.20039768369171318,0.4499092626609818],[-1.3491407226743346,3.0285889530975862]],"o":[[0.18246888492803132,-0.4096714106205475],[0.45765116445312276,0],[1.3440051719047155,3.0171430824831353],[0.20029327851753292,0.44969188032433427],[-0.3797316906161146,0.3211388957800253],[-3.191403074939488,-1.9331957578447911],[-0.42730615455180754,0.25842212093588746],[-0.38018021611429886,-0.3210272401548564],[1.6878659256856603,-3.7896919193237975],[0,0]],"v":[[5.496510417080132,0.6746092108601259],[6.550691521992562,0],[7.604861931603558,0.6746092108601259],[12.986998140398759,12.757168166421469],[12.68552117709939,14.052421921611732],[11.329029274091752,14.159184306003242],[1.7547058990405815,14.201056092184155],[0.39751963004608565,14.096044624313208],[0.09535328553387379,12.800226662083391],[5.496510417080132,0.6746092108601259]]}],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4697295895771309,0],[-0.18727904002630802,-0.4205979718354674],[-1.731199302449778,-3.8876443257612494],[0.3896297131771942,-0.3295852036414939],[0.4387417791085009,0.2644255209406833],[3.275570117244115,-1.9928813868635187],[0.39012642921017365,0.3293624440775034],[-0.20568132544454681,0.46190916021821204],[-1.384711638155847,3.1093659414116437]],"o":[[0.18727905240968734,-0.4205979718354674],[0.469718356726307,0],[1.3794399648992641,3.0976149397121557],[0.20557213498595828,0.4616864006542196],[-0.38974228935301375,0.32969627729745793],[-3.2755476267757087,-1.9847501117509914],[-0.43857275386083977,0.26531655919664504],[-0.3902039227319571,-0.32958495874067095],[1.7323670673135578,-3.8907744466189986],[0,0]],"v":[[5.641429896316235,0.6926019825333274],[6.723404102845183,0],[7.80536703937317,0.6926019825333274],[13.329412513195328,13.09741340282709],[13.019984094043346,14.427226396163807],[11.627725381707625,14.53682802006056],[1.800969949971437,14.579822330216592],[0.40800050303488905,14.472002537930939],[0.09786733649963555,13.141633074260689],[5.641429896316235,0.6926019825333274]]}],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4694847090261861,0],[-0.18718142903693763,-0.4203762150602376],[-1.7302967538004952,-3.885594718339503],[0.3894265385773909,-0.32941127783969254],[0.4385129713093195,0.26428603365712544],[3.273862412809301,-1.9918305451530212],[0.38992303208277546,0.32918862743223126],[-0.20557409286487982,0.4616656198719859],[-1.3839897192055113,3.1077265560504927]],"o":[[0.18718142903693763,-0.4203762150602376],[0.46947345067005436,0],[1.3787208085361202,3.095981747056884],[0.20546499939396984,0.4614429694645226],[-0.38953912213870245,0.3295226030434232],[-3.273839896097037,-1.9837038052806657],[-0.43834409596735197,0.26517663528697044],[-0.3900004895729579,-0.3294112778396945],[1.731463907580615,-3.8887229565643415],[0,0]],"v":[[5.638488726108667,0.6922368155792115],[6.719898865932683,0],[7.801297747400565,0.6922368155792115],[13.322463144266242,13.090508056307476],[13.013196101342828,14.419619663650527],[11.62166328352943,14.52916366412172],[1.8000310116770024,14.572135192761841],[0.4077877915917261,14.464372395550344],[0.09781631332518358,13.134704162188637],[5.638488726108667,0.6922368155792115]]}],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-1.011607516288734,0],[-0.40331840365317706,-0.9113262899587345],[-3.7284467898128426,-8.423387289142923],[0.8392088435781123,-0.7143289957556354],[0.9448393783352735,0.5730606389518154],[7.054607951105889,-4.318132668879906],[0.8402082225497581,0.7137876629103799],[-0.44297557171937163,1.0008537437830747],[-2.982236610819429,6.73716724653986]],"o":[[0.40331840365317906,-0.9113262899587345],[1.011608076338568,0],[2.9708806586199628,6.711711327866271],[0.4427277560918485,1.0004229060862577],[-0.8393143143562816,0.7141024340102899],[-7.054553535567309,-4.300197189977273],[-0.9445701008915287,0.5748944848875258],[-0.8403835273758923,-0.7139975103103199],[3.7309900187421565,-8.430302420941041],[0,0]],"v":[[12.149942759880553,1.500685985262099],[14.48018161189702,0],[16.81042102396332,1.500685985262099],[28.707626131474633,28.37845922610488],[28.04114413398813,31.260062758333884],[25.042688707848544,31.49733829416083],[3.8787560234537173,31.59065552330307],[0.8787120743962515,31.35693718419911],[0.2107767641227669,28.47447754802494],[12.149942759880553,1.500685985262099]]}],"t":6.29968823492527},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.984272224642085,0],[-0.39242018829634495,-0.8865713327419875],[-3.627694892775609,-8.194580028412433],[0.8165297592276585,-0.694920727602732],[0.9193089902404031,0.5574915906652694],[6.863973094371653,-4.20083467357309],[0.8175036795873067,0.6943953868652047],[-0.4310051805926819,0.9736665229353668],[-2.9016488840983303,6.554161548220617]],"o":[[0.3924201882963468,-0.8865713327419875],[0.9842722246420869,0],[2.890599852686273,6.529396985853522],[0.430764341284658,0.973246250345345],[-0.8166353905031081,0.6947105913077212],[-6.8639202787339295,-4.183393361087143],[-0.9190449120517781,0.559277749172866],[-0.8176740628346074,-0.6946055231602157],[3.630168777246649,-8.2013043898528],[0,0]],"v":[[11.82161856069912,1.4599219095917684],[14.088888256955585,0],[16.356157953212048,1.4599219095917684],[27.93186690466382,27.60760137045149],[27.28339650467694,30.4109246140512],[24.365966308026398,30.641759334121232],[3.773941393635987,30.732538213566162],[0.8549668677383652,30.505170742363816],[0.2050810086604547,27.701006953584063],[11.82161856069912,1.4599219095917684]]}],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.9837059568657954,0],[-0.39219442490748524,-0.886058518184022],[-3.6256077536922775,-8.18984014172251],[0.8160599476412922,-0.6945186729481485],[0.9187801122013219,0.5571690679281046],[6.860023973035943,-4.198404771539592],[0.8170333406609323,0.6939936635357726],[-0.4307572063887267,0.9731033224905532],[-2.899979458509671,6.5503704697244745]],"o":[[0.3921944249074871,-0.886058518184022],[0.9837059452459803,0],[2.8889367851570875,6.5256202292359005],[0.43051651160881693,0.9726832687293115],[-0.8161655823411658,0.6943088772242325],[-6.8599711905454575,-4.180973696231544],[-0.9185161416498069,0.5589542386242095],[-0.8172036219485217,-0.6942038059947458],[3.6280802016286144,-8.196560551146819],[0,0]],"v":[[11.814817117780597,1.4590774560454616],[14.080782368255543,0],[16.346747607110675,1.4590774560454616],[27.9157965628116,27.591632563744685],[27.267699284478276,30.393334181612826],[24.35194757653665,30.62403547625403],[3.7717700924478494,30.714761772078237],[0.8544749708008583,30.487525863178114],[0.20496301749275236,27.68498402220913],[11.814817117780597,1.4590774560454616]]}],"t":8.59937646985054},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.984272224642085,0],[-0.39242018829634495,-0.8865713327419875],[-3.627694892775609,-8.194580028412433],[0.8165297592276585,-0.694920727602732],[0.9193089902404031,0.5574915906652694],[6.863973094371653,-4.20083467357309],[0.8175036795873067,0.6943953868652047],[-0.4310051805926819,0.9736665229353668],[-2.9016488840983303,6.554161548220617]],"o":[[0.3924201882963468,-0.8865713327419875],[0.9842722246420869,0],[2.890599852686273,6.529396985853522],[0.430764341284658,0.973246250345345],[-0.8166353905031081,0.6947105913077212],[-6.8639202787339295,-4.183393361087143],[-0.9190449120517781,0.559277749172866],[-0.8176740628346074,-0.6946055231602157],[3.630168777246649,-8.2013043898528],[0,0]],"v":[[11.82161856069912,1.4599219095917684],[14.088888256955585,0],[16.356157953212048,1.4599219095917684],[27.93186690466382,27.60760137045149],[27.28339650467694,30.4109246140512],[24.365966308026398,30.641759334121232],[3.773941393635987,30.732538213566162],[0.8549668677383652,30.505170742363816],[0.2050810086604547,27.701006953584063],[11.82161856069912,1.4599219095917684]]}],"t":9},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.984272224642085,0],[-0.39242018829634495,-0.8865713327419875],[-3.627694892775609,-8.194580028412433],[0.8165297592276585,-0.694920727602732],[0.9193089902404031,0.5574915906652694],[6.863973094371653,-4.20083467357309],[0.8175036795873067,0.6943953868652047],[-0.4310051805926819,0.9736665229353668],[-2.9016488840983303,6.554161548220617]],"o":[[0.3924201882963468,-0.8865713327419875],[0.9842722246420869,0],[2.890599852686273,6.529396985853522],[0.430764341284658,0.973246250345345],[-0.8166353905031081,0.6947105913077212],[-6.8639202787339295,-4.183393361087143],[-0.9190449120517781,0.559277749172866],[-0.8176740628346074,-0.6946055231602157],[3.630168777246649,-8.2013043898528],[0,0]],"v":[[11.82161856069912,1.4599219095917684],[14.088888256955585,0],[16.356157953212048,1.4599219095917684],[27.93186690466382,27.60760137045149],[27.28339650467694,30.4109246140512],[24.365966308026398,30.641759334121232],[3.773941393635987,30.732538213566162],[0.8549668677383652,30.505170742363816],[0.2050810086604547,27.701006953584063],[11.82161856069912,1.4599219095917684]]}],"t":24.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.9823708616839879,0],[-0.3908357191645973,-0.8825724390479204],[-3.6231527479312673,-8.195315505444976],[0.8133608209641621,-0.6934497735376518],[0.9189920964140532,0.5568611817802356],[6.8660329042429264,-4.2027259002281925],[0.8133608209641621,0.6934497735376518],[-0.43308822934455377,0.9771337718030548],[-2.904860074872007,6.5562524043559804]],"o":[[0.3908357191645973,-0.8825724390479204],[0.9823708616839879,0],[2.8942969473270184,6.524731960104269],[0.43308822934455377,0.9771337718030548],[-0.8133608209641621,0.6934497735376518],[-6.8660329042429264,-4.1817122707270515],[-0.9189920964140532,0.5568611817802356],[-0.8133608209641621,-0.6934497735376518],[3.6337158754762564,-8.205822320195546],[0,0]],"v":[[11.820139722842821,1.4604472503292967],[14.091212145015483,0],[16.351721439643153,1.4604472503292967],[27.928909228951227,27.611909164499227],[27.28455844870689,30.406721888150972],[24.369135246289893,30.637871812663523],[3.7710365335611145,30.732433145418657],[0.8556133311441185,30.501283220906107],[0.20069942335479324,27.695963682503788],[11.820139722842821,1.4604472503292967]]}],"t":39},{"s":[{"c":true,"i":[[0,0],[-0.984272224642085,0],[-0.39242018829634495,-0.8865713327419875],[-3.627694892775609,-8.194580028412433],[0.8165297592276585,-0.694920727602732],[0.9193089902404031,0.5574915906652694],[6.863973094371653,-4.20083467357309],[0.8175036795873067,0.6943953868652047],[-0.4310051805926819,0.9736665229353668],[-2.9016488840983303,6.554161548220617]],"o":[[0.3924201882963468,-0.8865713327419875],[0.9842722246420869,0],[2.890599852686273,6.529396985853522],[0.430764341284658,0.973246250345345],[-0.8166353905031081,0.6947105913077212],[-6.8639202787339295,-4.183393361087143],[-0.9190449120517781,0.559277749172866],[-0.8176740628346074,-0.6946055231602157],[3.630168777246649,-8.2013043898528],[0,0]],"v":[[11.82161856069912,1.4599219095917684],[14.088888256955585,0],[16.356157953212048,1.4599219095917684],[27.93186690466382,27.60760137045149],[27.28339650467694,30.4109246140512],[24.365966308026398,30.641759334121232],[3.773941393635987,30.732538213566162],[0.8549668677383652,30.505170742363816],[0.2050810086604547,27.701006953584063],[11.82161856069912,1.4599219095917684]]}],"t":39.66281318664551}]}},{"ty":"st","bm":0,"hd":false,"nm":"Stroke","lc":2,"lj":1,"ml":2,"o":{"a":0,"k":100},"w":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":6.29968823492527},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":8.59937646985054},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":9},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":24.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":39},{"s":[1.5],"t":39.66281318664551}]},"c":{"a":0,"k":[1,1,1]}}],"ind":1},{"ty":4,"nm":"Vector","sr":1,"st":0,"op":40.22,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[5.65,6.27]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[17.880189286329202,14.069872625401745]},"r":{"a":0,"k":45},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"Path 2","d":1,"ks":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":6.29968823492527},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":8.59937646985054},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":9},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":24.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4531307591624916,0],[-0.18125230366499664,-0.4030359098335387],[-1.6539272709430943,-3.7056912820805925],[0.3738328763090556,-0.3134723743149746],[0.41914595222530476,0.24629972267605146],[3.11527396924213,-1.9032251297694884],[0.3738328763090556,0.3134723743149746],[-0.19258057264405895,0.43662223565300035],[-1.3140792015712255,2.9555966721126175]],"o":[[0.18125230366499664,-0.4030359098335387],[0.4531307591624916,0],[1.3140792015712255,2.944401230172797],[0.19258057264405895,0.43662223565300035],[-0.3738328763090556,0.3134723743149746],[-3.11527396924213,-1.8920296878296678],[-0.41914595222530476,0.25749516461587196],[-0.3738328763090556,-0.3134723743149746],[1.6539272709430943,-3.7056912820805925],[0,0]],"v":[[5.369599496075526,0.6605310744494107],[6.400471973170195,0],[7.431344450264862,0.6605310744494107],[12.698989525528829,12.47172232096006],[12.404454532073206,13.736807260159779],[11.07904706152292,13.837566237618162],[1.710568615838406,13.882348005377446],[0.3851611452881179,13.781589027919061],[0.09062615183249832,12.516504088719342],[5.369599496075526,0.6605310744494107]]}],"t":39},{"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":39.66281318664551}]}},{"ty":"st","bm":0,"hd":false,"nm":"Stroke","lc":2,"lj":1,"ml":2,"o":{"a":0,"k":100},"w":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":6.29968823492527},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":8.59937646985054},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":9},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":24.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":39},{"s":[1.5],"t":39.66281318664551}]},"c":{"a":0,"k":[1,1,1]}},{"ty":"gf","bm":0,"hd":false,"nm":"Gradient Fill","e":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,12.673500061035156],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,12.673500061035156],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,12.673500061035156],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,12.673500061035156],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,12.673500061035156],"t":6.29968823492527},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,12.673500061035156],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,12.673500061035156],"t":8.59937646985054},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,12.673500061035156],"t":9},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,12.673500061035156],"t":24.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[-9.67,19.07],"t":39},{"s":[7.325869560241699,12.673500061035156],"t":39.66281318664551}]},"g":{"p":2,"k":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,1,1,1],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,1,1,1],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,1,1,1],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,1,1,1],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,1,1,1],"t":6.29968823492527},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,1,1,0],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,1,1,1],"t":8.59937646985054},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,1,1,0],"t":9},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,1,1,0],"t":24.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,1,1,0],"t":39},{"s":[0,1,1,1,1,1,1,1,0,1,1,0],"t":39.66281318664551}]}},"t":1,"a":{"a":0,"k":0},"h":{"a":0,"k":0},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[6.827380180358887,0.959130048751831],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[6.827380180358887,0.959130048751831],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[6.827380180358887,0.959130048751831],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[6.827380180358887,0.959130048751831],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[6.827380180358887,0.959130048751831],"t":6.29968823492527},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,-7.147119998931885],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[6.827380180358887,0.959130048751831],"t":8.59937646985054},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,-7.147119998931885],"t":9},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,-7.147119998931885],"t":24.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[-9.67,-0.75],"t":39},{"s":[7.325869560241699,-7.147119998931885],"t":39.66281318664551}]},"r":2,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":6.29968823492527},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":8.59937646985054},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":9},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":24.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":39},{"s":[0.10999999999999899],"t":39.66281318664551}]}}],"ind":2}],"v":"5.7.0","fr":60,"op":39.22,"ip":0,"assets":[]}'),YU=JSON.parse('{"nm":"Main Scene","ddd":0,"h":32,"w":32,"meta":{"g":"@lottiefiles/creator 1.75.0"},"layers":[{"ty":4,"nm":"Vector","sr":1,"st":0,"op":39.45,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.1,1.22],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.1,1.22],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.1,1.22],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.1,1.22],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[6.78,7.53],"t":5.916425824165344},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[6.48,7.21],"t":7.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[6.49,7.21],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[9.28,10.31],"t":23.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[9.14,10.16],"t":38},{"s":[9.14,10.15],"t":38.66281318664551}]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[17.89771430355633,13.93257184572571]},"r":{"a":0,"k":45},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[84.25],"t":5.916425824165344},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[79.91],"t":7.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[80],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":23.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":38},{"s":[0.09],"t":38.66281318664551}]}},"ef":[{"ty":29,"nm":"","en":1,"ef":[{"ty":0,"nm":"sigma","v":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[10],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[3.6814],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[4.0066],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[4],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.8938000000000001],"t":5.916425824165344},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[2.0022],"t":7.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[2],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[4.106199999999999],"t":23.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[4],"t":38},{"s":[3.9978],"t":38.66281318664551}]}},{"ty":0,"nm":"","v":{"a":0,"k":1}},{"ty":0,"nm":"","v":{"a":0,"k":0}}]}],"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"Path 1","d":1,"ks":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.12935619899477768,0],[-0.0515708571694843,-0.11238040595029397],[-0.476740185004948,-1.0387151084704158],[0.10729766922342579,-0.08807704885948313],[0.12082555475825957,0.07065858556780806],[0.9020138323557298,-0.5324980816860179],[0.10743210679236045,0.08802861939713338],[-0.05663994432754309,0.12341441322044508],[-0.3813164322267111,0.8307928977656396]],"o":[[0.05157253974231188,-0.11238040595029397],[0.12935619899477807,0],[0.3798576415850815,0.8276530542899854],[0.05661857565263065,0.12336598375809606],[-0.10733132067998033,0.08806090570536654],[-0.9020104672100743,-0.5302864695720608],[-0.12077339500060053,0.07088458972543803],[-0.10745320625562003,-0.08804476255125068],[0.4770524705217718,-1.0395868387927056],[0,0]],"v":[[1.5535178092570172,0.18505704721420196],[1.8514694881617295,0],[2.149419484493614,0.18505704721420196],[3.670616752303042,3.4994806630610436],[3.585411264307522,3.8548237714728737],[3.2020033940559607,3.884091309886041],[0.4959450712604941,3.895601378771087],[0.11235396882799425,3.8667697055190646],[0.0269504420106524,3.511329738182536],[1.5535178092570172,0.18505704721420196]]}],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.12935619899477768,0],[-0.0515708571694843,-0.11238040595029397],[-0.476740185004948,-1.0387151084704158],[0.10729766922342579,-0.08807704885948313],[0.12082555475825957,0.07065858556780806],[0.9020138323557298,-0.5324980816860179],[0.10743210679236045,0.08802861939713338],[-0.05663994432754309,0.12341441322044508],[-0.3813164322267111,0.8307928977656396]],"o":[[0.05157253974231188,-0.11238040595029397],[0.12935619899477807,0],[0.3798576415850815,0.8276530542899854],[0.05661857565263065,0.12336598375809606],[-0.10733132067998033,0.08806090570536654],[-0.9020104672100743,-0.5302864695720608],[-0.12077339500060053,0.07088458972543803],[-0.10745320625562003,-0.08804476255125068],[0.4770524705217718,-1.0395868387927056],[0,0]],"v":[[1.5535178092570172,0.18505704721420196],[1.8514694881617295,0],[2.149419484493614,0.18505704721420196],[3.670616752303042,3.4994806630610436],[3.585411264307522,3.8548237714728737],[3.2020033940559607,3.884091309886041],[0.4959450712604941,3.895601378771087],[0.11235396882799425,3.8667697055190646],[0.0269504420106524,3.511329738182536],[1.5535178092570172,0.18505704721420196]]}],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.12935619899477768,0],[-0.0515708571694843,-0.11238040595029397],[-0.476740185004948,-1.0387151084704158],[0.10729766922342579,-0.08807704885948313],[0.12082555475825957,0.07065858556780806],[0.9020138323557298,-0.5324980816860179],[0.10743210679236045,0.08802861939713338],[-0.05663994432754309,0.12341441322044508],[-0.3813164322267111,0.8307928977656396]],"o":[[0.05157253974231188,-0.11238040595029397],[0.12935619899477807,0],[0.3798576415850815,0.8276530542899854],[0.05661857565263065,0.12336598375809606],[-0.10733132067998033,0.08806090570536654],[-0.9020104672100743,-0.5302864695720608],[-0.12077339500060053,0.07088458972543803],[-0.10745320625562003,-0.08804476255125068],[0.4770524705217718,-1.0395868387927056],[0,0]],"v":[[1.5535178092570172,0.18505704721420196],[1.8514694881617295,0],[2.149419484493614,0.18505704721420196],[3.670616752303042,3.4994806630610436],[3.585411264307522,3.8548237714728737],[3.2020033940559607,3.884091309886041],[0.4959450712604941,3.895601378771087],[0.11235396882799425,3.8667697055190646],[0.0269504420106524,3.511329738182536],[1.5535178092570172,0.18505704721420196]]}],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.12935619899477768,0],[-0.0515708571694843,-0.11238040595029397],[-0.476740185004948,-1.0387151084704158],[0.10729766922342579,-0.08807704885948313],[0.12082555475825957,0.07065858556780806],[0.9020138323557298,-0.5324980816860179],[0.10743210679236045,0.08802861939713338],[-0.05663994432754309,0.12341441322044508],[-0.3813164322267111,0.8307928977656396]],"o":[[0.05157253974231188,-0.11238040595029397],[0.12935619899477807,0],[0.3798576415850815,0.8276530542899854],[0.05661857565263065,0.12336598375809606],[-0.10733132067998033,0.08806090570536654],[-0.9020104672100743,-0.5302864695720608],[-0.12077339500060053,0.07088458972543803],[-0.10745320625562003,-0.08804476255125068],[0.4770524705217718,-1.0395868387927056],[0,0]],"v":[[1.5535178092570172,0.18505704721420196],[1.8514694881617295,0],[2.149419484493614,0.18505704721420196],[3.670616752303042,3.4994806630610436],[3.585411264307522,3.8548237714728737],[3.2020033940559607,3.884091309886041],[0.4959450712604941,3.895601378771087],[0.11235396882799425,3.8667697055190646],[0.0269504420106524,3.511329738182536],[1.5535178092570172,0.18505704721420196]]}],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.5266151086085288,0],[-0.20995728765247446,-0.4721139417822981],[-1.9408138499254761,-4.363733531532191],[0.43684577600263147,-0.37003574154149493],[0.4918129586192424,0.29690154516624473],[3.672274973042596,-2.2369751882053017],[0.4373755932867903,0.3698058944243327],[-0.23059222314324912,0.5184862221795107],[-1.5524081076342096,3.490215134480102]],"o":[[0.20995722867578315,-0.4721139417822981],[0.5266151086085288,0],[1.546517424297074,3.477023350767281],[0.2305416245629691,0.5182563750623483],[-0.43696156135322217,0.37003632543170634],[-3.67228678748442,-2.2276754302584836],[-0.4916861255238107,0.29781976585447306],[-0.43746374703123997,-0.36980531053411925],[1.942178527857224,-4.367338102429191],[0,0]],"v":[[6.324683014745428,0.777432906393855],[7.537692054297343,0],[8.75070115282595,0.777432906393855],[14.943785299995742,14.70153783645715],[14.596929910345581,16.19430896459222],[13.036021584710737,16.317271522504257],[2.019091986953885,16.365606753614802],[0.45741577634586794,16.244481220969437],[0.10972038552419461,14.751250398600037],[6.324683014745428,0.777432906393855]]}],"t":5.916425824165344},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.5061692600799109,0],[-0.20180560599128652,-0.45359948966443053],[-1.865461837644149,-4.1926045967961985],[0.41988495671386655,-0.35552421872741546],[0.47271892080936434,0.28525771131802785],[3.5296976502488127,-2.149250384456553],[0.42039435038989026,0.355303606458976],[-0.22163940247741426,0.49815308045894363],[-1.49213538407978,3.3533424078270704]],"o":[[0.20180560721851212,-0.45359948966443053],[0.5061692600799109,0],[1.4864730033286746,3.3406679639927708],[0.22159046330795415,0.49793246819050413],[-0.4199964245014179,0.3555242065823851],[-3.5297087921186656,-2.140315399336762],[-0.47259629519802376,0.28614018468184843],[-0.4204790626440108,-0.3553036186040044],[1.8667727493986308,-4.196068293211418],[0,0]],"v":[[6.079124984085646,0.7469450292832753],[7.245038624636272,0],[8.410952263959674,0.7469450292832753],[14.363587882065268,14.125000505555445],[14.030198995423737,15.559231334565004],[12.529893296187595,15.67737171226339],[1.9407000342501632,15.723811584589981],[0.4396564471002179,15.607436141474206],[0.10546045549137288,14.172764087927769],[6.079124984085646,0.7469450292832753]]}],"t":7.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.5065842127096848,0],[-0.20197104602648783,-0.4539752442256474],[-1.8669911219548756,-4.196077693277984],[0.4202291799954613,-0.3558187330413323],[0.47310643811010067,0.28549402533195245],[3.532591285946967,-2.151030777095041],[0.4207389881591389,0.3555979333310993],[-0.22182110178948555,0.49856574570730755],[-1.4933586312304814,3.356120267596004]],"o":[[0.20197104602648783,-0.4539752442256474],[0.5065842127096848,0],[1.4876916170696703,3.343435324243088],[0.22177212897026158,0.4983449459970745],[-0.42034073539232536,0.3558187330413323],[-3.5326024414866533,-2.1420883888305826],[-0.47298372717354664,0.28637722417288647],[-0.4208237702607573,-0.35559793333109735],[1.8683031249774202,-4.199544248728653],[0,0]],"v":[[6.084108634153008,0.7475637869347616],[7.250978085374805,0],[8.417847536596602,0.7475637869347616],[14.3753631063857,14.136701447701695],[14.041700914358511,15.572120363929868],[12.540165272537728,15.690358608759924],[1.942291014839647,15.73683694776408],[0.4400168762916091,15.620365100615894],[0.10554691163571125,14.184504584967256],[6.084108634153008,0.7475637869347616]]}],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.7019549482232902,0],[-0.27984633659385083,-0.6308939540468251],[-2.587105912144651,-5.831331538046437],[0.5823013595814984,-0.49451398982103834],[0.6557255506875765,0.396697576645287],[4.895018554991355,-2.9894106489869015],[0.5830115370854335,0.49418647947314986],[-0.30737192539164726,0.6928627781436838],[-2.0693211810528247,4.664024668455934]],"o":[[0.2798577184299395,-0.6308939540468251],[0.7019663300593788,0],[2.0614291827831663,4.6464010063473395],[0.3071684335852989,0.6925352677957954],[-0.5824094389290388,0.49440102229709576],[-4.89501798109002,-2.9769937363269934],[-0.6554131721917718,0.3980076180368445],[-0.5831232701633932,-0.4942994469971006],[2.5888504039139746,-5.836236218708008],[0,0]],"v":[[8.430595299227095,1.0388965317220187],[10.0474852760551,0],[11.66435248921093,1.0388965317220187],[19.91962420743317,19.645887350662214],[19.457159023581607,21.640826703840812],[17.3765238391998,21.805081194026695],[2.6913822846490376,21.869672872585415],[0.609718614494088,21.707812530134753],[0.14625354883606845,19.71244409130826],[8.430595299227095,1.0388965317220187]]}],"t":23.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.6925042036933666,0],[-0.2813298327504302,-0.6228237362234585],[-2.5536092511192896,-5.7450120496474195],[0.5734800436835693,-0.4832253125871662],[0.6492226909625313,0.38658025006973296],[4.825888669488149,-2.9423052366418565],[0.5734800436835693,0.4832253125871662],[-0.30297058911584795,0.6872537779017475],[-2.0450514765319734,4.596009639717937]],"o":[[0.2813298327504302,-0.6228237362234585],[0.6925042036933666,0],[2.0342310983492644,4.5852712994382205],[0.30297058911584795,0.6872537779017475],[-0.5734800436835693,0.4832253125871662],[-4.825888669488149,-2.9315668963621415],[-0.6492226909625313,0.3973185903494478],[-0.5734800436835693,-0.4832253125871662],[2.5536092511192896,-5.755750389927136],[0,0]],"v":[[8.3100504443204,1.0201423265729064],[9.91146641536131,0],[11.502062008219513,1.0201423265729064],[19.63898640161657,19.371965864605507],[19.1845305179428,21.337082135793317],[17.128658663228116,21.498157239989037],[2.6509926547636695,21.562587281667327],[0.6059411782316959,21.401512177471606],[0.1406649163752151,19.436395906283796],[8.3100504443204,1.0201423265729064]]}],"t":38},{"s":[{"c":true,"i":[[0,0],[-0.6918997779841884,0],[-0.2758382997546017,-0.6217884618612375],[-2.5500437690179507,-5.747169772024009],[0.5739599763070525,-0.48737577720254305],[0.6463268477000198,0.39097419585603804],[4.824898381460258,-2.9462617745238076],[0.5746598455643128,0.4870537380491574],[-0.3029688733438252,0.6828628751305639],[-2.0396780769264837,4.596710617910329]],"o":[[0.2758491084919071,-0.6217884618612375],[0.691910586721494,0],[2.0319005482299595,4.579341142096532],[0.3027731829457207,0.6825408359771783],[-0.5740681827071544,0.4872685095676418],[-4.824898393362963,-2.9340236960734507],[-0.6460240721257124,0.3922623524695844],[-0.5747701851453828,-0.48716100568406634],[2.5517659198740565,-5.752000524698875],[0,0]],"v":[[8.309828454594776,1.0239024810676582],[9.90355717091312,0],[11.497264269756851,1.0239024810676582],[19.634277265268683,19.362345523187237],[19.17844106532434,21.328488109084613],[17.127610455553512,21.490374213684852],[2.6528287341499532,21.554033651528833],[0.6009845577345647,21.394509324885878],[0.1441584964519421,19.427937195951532],[8.309828454594776,1.0239024810676582]]}],"t":38.66281318664551}]}},{"ty":"st","bm":0,"hd":false,"nm":"Stroke","lc":2,"lj":1,"ml":2,"o":{"a":0,"k":100},"w":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":5.916425824165344},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":7.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":23.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":38},{"s":[1.5],"t":38.66281318664551}]},"c":{"a":0,"k":[1,1,1]}},{"ty":"fl","bm":0,"hd":false,"nm":"Fill","c":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1,1,1],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":5.916425824165344},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":7.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":23.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,0,0],"t":38},{"s":[0,0,0],"t":38.66281318664551}]},"r":2,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":5.916425824165344},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":7.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":23.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":38},{"s":[0],"t":38.66281318664551}]}}],"ind":1},{"ty":4,"nm":"Vector","sr":1,"st":0,"op":39.45,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[5.65,6.27]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[17.906929323069644,14.04154084143565]},"r":{"a":0,"k":45},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[{"ty":"sh","bm":0,"hd":false,"nm":"Path 2","d":1,"ks":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":5.916425824165344},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":7.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":23.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[-0.4531307591624916,0],[-0.18125230366499664,-0.4030359098335387],[-1.6539272709430943,-3.7056912820805925],[0.3738328763090556,-0.3134723743149746],[0.41914595222530476,0.24629972267605146],[3.11527396924213,-1.9032251297694884],[0.3738328763090556,0.3134723743149746],[-0.19258057264405895,0.43662223565300035],[-1.3140792015712255,2.9555966721126175]],"o":[[0.18125230366499664,-0.4030359098335387],[0.4531307591624916,0],[1.3140792015712255,2.944401230172797],[0.19258057264405895,0.43662223565300035],[-0.3738328763090556,0.3134723743149746],[-3.11527396924213,-1.8920296878296678],[-0.41914595222530476,0.25749516461587196],[-0.3738328763090556,-0.3134723743149746],[1.6539272709430943,-3.7056912820805925],[0,0]],"v":[[5.369599496075526,0.6605310744494107],[6.400471973170195,0],[7.431344450264862,0.6605310744494107],[12.698989525528829,12.47172232096006],[12.404454532073206,13.736807260159779],[11.07904706152292,13.837566237618162],[1.710568615838406,13.882348005377446],[0.3851611452881179,13.781589027919061],[0.09062615183249832,12.516504088719342],[5.369599496075526,0.6605310744494107]]}],"t":38},{"s":[{"c":true,"i":[[0,0],[-0.4475232660178552,0],[-0.17843156468920943,-0.40050126177836337],[-1.649429948158407,-3.7017952682855335],[0.3712273744438714,-0.31392019199256765],[0.41803578186535756,0.25189744364596134],[3.1207908362349337,-1.8977393632189765],[0.3716929662989107,0.31369628315377174],[-0.19596308047851715,0.43986891381554727],[-1.3192788770326147,2.96079583534947]],"o":[[0.17843156468921043,-0.40050126177836337],[0.4475345942868348,0],[1.314260453874891,2.9496115888515893],[0.19586577064798733,0.4396450049767534],[-0.3713406571336617,0.31380823757316767],[-3.120790836234933,-1.8897905994417046],[-0.41785452956169183,0.252569170162351],[-0.3717681860049316,-0.31380823757316767],[1.650505907146038,-3.7048740148189863],[0,0]],"v":[[5.374878469419769,0.6595078110561111],[6.405728289976478,0],[7.436578110533189,0.6595078110561111],[12.69966922166757,12.471498412121262],[12.40479438014258,13.737926804353762],[11.078344708846219,13.842156368813491],[1.715881573989586,13.883243640732632],[0.38872388588203294,13.780469483725078],[0.0932432085320413,12.513705228234388],[5.374878469419769,0.6595078110561111]]}],"t":38.66281318664551}]}},{"ty":"st","bm":0,"hd":false,"nm":"Stroke","lc":2,"lj":1,"ml":2,"o":{"a":0,"k":100},"w":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":5.916425824165344},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":7.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":23.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1.5],"t":38},{"s":[1.5],"t":38.66281318664551}]},"c":{"a":0,"k":[1,1,1]}},{"ty":"gf","bm":0,"hd":false,"nm":"Gradient Fill","e":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[-5.52,11.19],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[-5.52,11.19],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[-5.52,11.19],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,12.673500061035156],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,12.673500061035156],"t":5.916425824165344},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,12.673500061035156],"t":7.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,12.673500061035156],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,12.673500061035156],"t":23.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[7.325869560241699,12.673500061035156],"t":38},{"s":[7.325869560241699,12.673500061035156],"t":38.66281318664551}]},"g":{"p":2,"k":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,0,1,1],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,0,1,1],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,0,1,1],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,0,1,1],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,0,1,1],"t":5.916425824165344},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,0,1,1],"t":7.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,1,1,1],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,1,1,1],"t":23.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,1,1,1,1,1,1,1,0,1,1,1],"t":38},{"s":[0,1,1,1,1,1,1,1,0,1,1,1],"t":38.66281318664551}]}},"t":1,"a":{"a":0,"k":0},"h":{"a":0,"k":0},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[-6.02,-0.53],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[-6.02,-0.53],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[-6.02,-0.53],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[6.827380180358887,0.959130048751831],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[6.827380180358887,0.959130048751831],"t":5.916425824165344},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[6.827380180358887,0.959130048751831],"t":7.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[6.827380180358887,0.959130048751831],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[6.827380180358887,0.959130048751831],"t":23.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[6.827380180358887,0.959130048751831],"t":38},{"s":[6.827380180358887,0.959130048751831],"t":38.66281318664551}]},"r":2,"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":1.9164258241653442},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[99.89],"t":3.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":4},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":5.916425824165344},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":7.8328516483306885},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":23.331406593322754},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":38},{"s":[100],"t":38.66281318664551}]}}],"ind":2}],"v":"5.7.0","fr":60,"op":38.45,"ip":0,"assets":[]}');function WU({isActive:e,size:t=32}){const n=(0,u.useRef)(null),r=(0,u.useRef)(null),i=e?YU:GU;return(0,u.useEffect)((()=>{if(n.current)return r.current?.destroy(),r.current=null,r.current=AU().loadAnimation({container:n.current,renderer:"svg",loop:!1,autoplay:!1,animationData:i}),()=>{r.current?.destroy(),r.current=null}}),[i]),(0,u.useEffect)((()=>{const e=r.current;e&&e.play()}),[e]),(0,Al.jsx)("div",{ref:n,style:{width:t,height:t,backgroundColor:e?UU.colors["Blue/400"]:"transparent",borderRadius:6,boxSizing:"border-box",paddingRight:1,paddingBottom:1}})}function QU(){const{enable:e,disable:t,isEnabled:n}=BU();return(0,Al.jsx)(xI,{title:(n?"Disable":"Enable")+" moving maps",onPress:async()=>{n?t():await e()},children:(0,Al.jsx)(WU,{isActive:n})})}function XU(e,t=4){let n=function(e){let t=e.replace(/[\n\r\t]/g,"").replace(/,/g," ").replace(/(\d+)(\-)/g,"$1 $2").replace(/(\.)(\d+)(\.)(\d+)/g,"$1$2 $3$4").replace(/(\.)(\d+)(\.)(\d+)/g,"$1$2 $3$4").replace(/( )(0)(\d+)/g,"$1 $2 $3").replace(/([mlcsqtahvz])/gi,"|$1 ").replace(/\s{2,}/g," ").trim().split("|").filter(Boolean).map((e=>e.trim())),n=[];for(let e=0;e+e)),l=[],c=i,u=2;switch(o){case"v":case"h":u=1,c="h"===o?a?"h":"H":a?"v":"V";break;case"m":case"l":case"t":u=2,c="t"!==o?a?"l":"L":a?"t":"T",0===e&&(i="M");break;case"s":case"q":u=4,c="q"!==o?a?"s":"S":a?"q":"Q";break;case"c":u=6,c=a?"c":"C";break;case"a":u=7,c=a?"a":"A";break;default:u=0}const h=(e,t=2)=>{let n=[];for(let r=0;r1)for(let e=1;e2?[g[2],g[3]]:[g[0],g[1]],[A,x]=[g[y-2],g[y-1]],a=2*A-u,s=2*x-h,l=p[0],c=p[1],n={type:"C",values:[a,s,l,c,v,b]};break;default:n={type:f,values:p}}t.push(n)}return t}(n),n=function(e){let t=[e[0]];for(let n=1;n{let s=o.type,l=o.values,c=l.length,u=n?.5/n:t?.5:0,h=u;if(0===a){let t={x:e[0].values[c-2],y:e[0].values[c-1]};i.push(t)}if(c&&a>0){let n=e[a-1].values,o=n.length,d={x:n[o-2],y:n[o-1]};if("C"===s){if(o){let e={x:l[c-6],y:l[c-5]},n={x:l[c-4],y:l[c-3]},r={x:l[c-2],y:l[c-1]};if(t&&h)for(let t=0;h<1&&t<9999;t++){let t=KU(d,e,n,r,h);i.push(t),h+=u}i.push({x:l[c-2],y:l[c-1]})}}else if("Q"===s){if(o){let e={x:l[c-4],y:l[c-3]},n={x:l[c-2],y:l[c-1]};if(t&&h)for(let t=0;h<1&&t<9999;t++){let t=$U(d,e,n,h);i.push(t),h+=u}i.push({x:l[c-2],y:l[c-1]})}}else if("L"===s){if(r){let e={x:n[o-2],y:n[o-1]},r={x:l[c-2],y:l[c-1]};if(t&&h)for(let t=0;h<1;t++){let t=ZU(e,r,h);i.push(t),h+=u}}i.push({x:l[c-2],y:l[c-1]})}}})),i}(n,!0,t),i=function(e){let t=[],n=[];e.forEach((e=>{t.push(e.x),n.push(e.y)}));let r=Math.min(...t),i=Math.max(...t),o=Math.min(...n);return{x:r,y:o,width:i-r,height:Math.max(...n)-o}}(r);return i}function JU(e,t,n=!1){Array.isArray(e)&&(e={x:e[0],y:e[1]});let[r,i,o,a,s,l,c]=t,[u,h]=[e.x,e.y];const d=(e,t,n)=>({x:e*Math.cos(n)-t*Math.sin(n),y:e*Math.sin(n)+t*Math.cos(n)});let f,p,m,g,y,v,b,A=(w=o,Math.PI*w/180),x=[];var w;if(n)m=n[0],g=n[1],y=n[2],v=n[3];else{let e=d(u,h,-A);u=e.x,h=e.y;let t=d(l,c,-A);l=t.x,c=t.y,f=(u-l)/2,p=(h-c)/2,b=f*f/(r*r)+p*p/(i*i),b>1&&(b=Math.sqrt(b),r*=b,i*=b);let n=r*r,o=i*i,x=n*o-n*p*p-o*f*f,w=n*p*p+o*f*f,C=(a===s?-1:1)*Math.sqrt(Math.abs(x/w));y=C*r*p/i+(u+l)/2,v=C*-i*f/r+(h+c)/2,m=Math.asin(parseFloat(((h-v)/i).toFixed(9))),g=Math.asin(parseFloat(((c-v)/i).toFixed(9))),ug&&(m-=2*Math.PI),!s&&g>m&&(g-=2*Math.PI)}let C=g-m;if(Math.abs(C)>120*Math.PI/180){let e=g,t=l,n=c;g=g=s&&g>m?m+120*Math.PI/180*1:m+120*Math.PI/180*-1,l=y+r*Math.cos(g),c=v+i*Math.sin(g),x=JU([l,c],[r,i,o,0,s,t,n],[g,e,y,v])}C=g-m;let S=Math.cos(m),E=Math.sin(m),k=Math.cos(g),T=Math.sin(g),I=Math.tan(C/4),O=4/3*r*I,R=4/3*i*I,M=[u,h],P=[u+O*E,h-R*S],D=[l+O*T,c-R*k],j=[l,c];if(P[0]=2*M[0]-P[0],P[1]=2*M[1]-P[1],n)return[P,D,j].concat(x);{x=[P,D,j].concat(x);let e=[];for(var B=0;B"chart"===s.type&&s.pinboardId&&s.chartId?CL({type:"chart",pinboardId:s.pinboardId,chartId:s.chartId}):"ofp"===s.type&&s.flightId?CL({type:"ofp",flightId:s.flightId}):[]),{cacheTime:0,staleTime:0}));var s;const{data:l,dataUpdatedAt:c}=jL("scratchpad"===e&&t?t:null),h=(0,u.useMemo)((()=>"scratchpad"===e?c:a),[a,c,e]);return(0,u.useMemo)((()=>"success"!==o?{isReady:!1,data:[],dataUpdatedAt:h}:{isReady:!0,data:(("scratchpad"===e?l?.data:i)??[]).filter((e=>"path"!==e.type||"path"===e.type&&function(e){const{x:t,y:n,width:r,height:i}=XU(e);return[t,n,r,i].every((e=>!isNaN(e)))}(e.props.d))),dataUpdatedAt:h}),[i,h,o,l?.data,e])}var tH=__webpack_require__(20181),nH=__webpack_require__.n(tH);function rH(){const{mutate:e}=zB(EL),{mutate:t}=RL(),n=(0,u.useRef)(null),r=WC(eF),i=WC(LL),o=gC();(0,u.useEffect)((()=>{n.current=e}),[e]);const a=(0,u.useMemo)((()=>nH()(((...e)=>{n.current?.(...e)}),1e3)),[]);return(0,u.useCallback)(((e,n,s)=>{if("chart"===n){if(!s||!r.pinboard)return;let t;Array.isArray(e)?t=e:(t=o.getQueryData(["annotation",{type:"chart",chartId:s,pinboardId:r.pinboard.id}])??[],t.push(e)),a({type:"chart",pinboardId:r.pinboard.id,chartId:s,data:t}),o.setQueryData(["annotation",{type:"chart",chartId:s,pinboardId:r.pinboard.id}],t)}else if("OFP"===n){if(!i?.id)return;let t;Array.isArray(e)?t=e:(t=o.getQueryData(["annotation",{type:"ofp",flightId:i.id}])??[],t.push(e)),a({type:"ofp",flightId:i.id,data:t}),o.setQueryData(["annotation",{type:"ofp",flightId:i.id}],t)}else if("scratchpad"===n){if(!s)return;let n;if(Array.isArray(e))n=e;else{const t=o.getQueryData(["scratchpad",s])?.data??[];n=[...t,e]}t({id:s,data:n}),o.setQueryData(["scratchpad",s],(e=>e?Object.assign({},e,{data:n}):e))}}),[r.pinboard,a,i?.id,o,t])}function iH({type:e,objectId:t}){const{isReady:n,data:r}=eH({type:e,objectId:t}),i=rH(),o=(0,u.useCallback)((()=>{n&&i(r.slice(0,-1),e,t)}),[n,i,r,e,t]),a=(0,u.useCallback)((()=>{n&&i([],e,t)}),[t,n,i,e]);return(0,u.useMemo)((()=>({undo:o,canUndo:n&&r.length>0,clear:a})),[o,n,r.length,a])}const oH=["toggleAnnotationModeCallback","isAnnotationMode"];function aH(e){let{toggleAnnotationModeCallback:t,isAnnotationMode:n}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,oH);const i=(0,u.useMemo)((()=>"scratchpad"===r.viewerObjectType?gU(r.viewerObject)&&pU(r.viewerObject)?"notepad":gU(r.viewerObject)&&mU(r.viewerObject)?"scratchpad":null:"chart"===r.viewerObjectType?"chart":null),[r.viewerObject,r.viewerObjectType]),{open:o}=YN(),{theme:a}=vf(),s=function(){const{width:e}=(0,wc.A)();return e<950}(),l=WC(eF),{pinChart:c,unpinChart:h}=YN(),d=(0,u.useMemo)((()=>"chart"===r.viewerObjectType&&void 0!==l.pinboard?.charts.find((e=>e.id===r.viewerObject.id))),[l.pinboard?.charts,r.viewerObject.id,r.viewerObjectType]),f=(0,u.useCallback)((()=>{"chart"===r.viewerObjectType&&(d?h(r.viewerObject):c(r.viewerObject))}),[d,c,r.viewerObject,r.viewerObjectType,h]),p=HV(),m=Da.select({web:!0,default:!1}),[g,y]=XC(bF),[v,b]=XC(vF),[A,x]=XC(EF),{undo:w,canUndo:C,clear:S}=iH({type:r.viewerObjectType,objectId:r.viewerObject.id}),{isReady:E}=eH({type:r.viewerObjectType,objectId:r.viewerObject.id}),{show:k}=HV(),[T,I]=(0,u.useState)(n?"annotation":"default");(0,u.useEffect)((()=>{I(n?"annotation":"default")}),[n]),(0,u.useEffect)((()=>{PT("scratchpads")||"text"!==v||b("path")}),[v,b]);const O=WC(vU);(0,u.useEffect)((()=>{O.hasAtTop("ChartViewer")||"scratchpad"===r.viewerObjectType||I("default")}),[O,r.viewerObjectType]);const R=JB();(0,u.useEffect)((()=>{d||"chart"!==i||I("default")}),[d,i]);const M=pI(),{width:P}=(0,wc.A)();return(0,Al.jsx)(eI,Object.assign({style:{flexDirection:"row",alignItems:"center",backgroundColor:a.colors["Background/400"],borderColor:a.colors["Background/300"],borderWidth:1,zIndex:1,paddingHorizontal:a.space.xs,paddingVertical:a.space.xs,justifyContent:"flex-end"}},r,{children:(0,Al.jsxs)(eI,{sx:{flex:1,flexDirection:"row",justifyContent:s?"space-between":"flex-end",minWidth:s?"default"===T?272:"annotation"===T?352+(P<370?-40:0):"size-manipulation"===T?272:0:void 0},children:[(0,Al.jsxs)(eI,{children:["default"===T&&(0,Al.jsx)(eI,{pointerEvents:"default"===T?"auto":"none",style:[M({position:"absolute",flex:1,right:s?void 0:"xs"})],children:(0,Al.jsxs)(tN,{spacing:"xs",direction:"row",sx:{alignItems:"center"},children:["chart"===r.viewerObjectType&&r.viewerObject.is_georeferenced&&(0,Al.jsx)(xX,{chart:r.viewerObject}),"chart"===r.viewerObjectType&&(0,Al.jsx)(wI,{title:d?"Unpin chart from pinboard":"Pin chart to pinboard",onPress:l.pinboard?f:()=>p.show({modal:"CreatePinboard",options:{initialCharts:[r.viewerObject]}}),activated:d,Icon:eU}),!s&&"notepad"!==i&&"chart"===r.viewerObjectType&&(0,Al.jsx)(NF,{}),"chart"===r.viewerObjectType&&(0,Al.jsx)(QU,{}),"chart"===r.viewerObjectType&&(0,Al.jsx)(FF,{}),!s&&"chart"===i&&(0,Al.jsx)(NF,{}),!s&&"notepad"!==i&&(0,Al.jsx)(xI,{title:"Zoom in",onPress:r.zoomInCallback,Icon:eT}),!s&&"notepad"!==i&&(0,Al.jsx)(xI,{title:"Zoom out",onPress:r.zoomOutCallback,Icon:nT}),!s&&"notepad"!==i&&(0,Al.jsx)(NF,{}),!s&&"notepad"!==i&&(0,Al.jsx)(xI,{title:"Rotate left",onPress:()=>r.rotationCallback("left"),Icon:Kk}),!s&&"notepad"!==i&&(0,Al.jsx)(xI,{title:"Rotate right",onPress:()=>r.rotationCallback("right"),Icon:sH}),!s&&"notepad"!==i&&(0,Al.jsx)(xI,{title:"Fit chart to width",onPress:r.fitWidthCallback,Icon:Jk}),!s&&"notepad"!==i&&(0,Al.jsx)(xI,{title:"Fit chart to height",onPress:r.fitHeightCallback,Icon:lH})]})}),"size-manipulation"===T&&(0,Al.jsx)(eI,{pointerEvents:"size-manipulation"===T?"auto":"none",style:[{display:s?"flex":"none"}],children:(0,Al.jsxs)(tN,{spacing:"xs",direction:"row",sx:{alignItems:"center"},children:[(0,Al.jsx)(xI,{title:"Rotate left",onPress:()=>r.rotationCallback("left"),Icon:Kk}),(0,Al.jsx)(xI,{title:"Rotate right",onPress:()=>r.rotationCallback("right"),Icon:sH}),(0,Al.jsx)(xI,{title:"Fit chart to width",onPress:r.fitWidthCallback,Icon:Jk}),(0,Al.jsx)(xI,{title:"Fit chart to height",onPress:r.fitHeightCallback,Icon:lH})]})}),"annotation"===T&&"notepad"!==i&&(0,Al.jsx)(eI,{pointerEvents:"annotation"===T?"auto":"none",style:[M({position:"absolute",flex:1,right:s?void 0:"xs"})],children:(0,Al.jsxs)(tN,{spacing:"xs",direction:"row",sx:{alignItems:"center"},children:[s&&(0,Al.jsx)(zN,{}),!s&&(0,Al.jsx)(wI,{title:"Freehand Tool",activated:"drawing"===g&&"path"===v,onPress:()=>{y("drawing"),b("path")},Icon:DN}),!s&&(0,Al.jsx)(wI,{title:"Rectangle Tool",activated:"drawing"===g&&"rect"===v,onPress:()=>{y("drawing"),b("rect")},Icon:FN}),!s&&(0,Al.jsx)(wI,{title:"Circle Tool",activated:"drawing"===g&&"ellipse"===v,onPress:()=>{y("drawing"),b("ellipse")},Icon:MN}),PT("scratchpads")&&!s&&m&&(0,Al.jsx)(wI,{title:"Text Tool",activated:("drawing"===g||"typing"===g)&&"text"===v,onPress:()=>{y("drawing"),b("text")},Icon:_N}),(0,Al.jsx)(wI,{title:"Select Annotation",activated:"editing"===g,onPress:()=>y("editing"),Icon:QV}),!s&&(0,Al.jsx)(NF,{}),(0,Al.jsx)(HF,{}),PT("scratchpads")&&"text"===v&&m&&(0,Al.jsx)(fU,{chartType:i}),"path"===v&&(0,Al.jsx)(ON,{}),"rect"===v&&(0,Al.jsx)(xI,{title:"filled"===A?"Switch to outlined rectangle":"Switch to filled rectangle",disabled:"drawing"!==g,onPress:()=>x((e=>SF[(SF.indexOf(e)+1)%SF.length])),Icon:"filled"===A?nU:iU}),"ellipse"===v&&(0,Al.jsx)(xI,{title:"filled"===A?"Switch to outlined circle":"Switch to filled circle",disabled:"drawing"!==g,onPress:()=>x((e=>SF[(SF.indexOf(e)+1)%SF.length])),Icon:"filled"===A?JV:KV}),!s&&(0,Al.jsx)(NF,{}),(0,Al.jsx)(xI,{title:"Undo last annotation",onPress:w,disabled:!C,Icon:lU}),(0,Al.jsx)(EU,{canUndoAnnotation:C,clearAnnotations:S,showModal:k,type:r.viewerObjectType})]})})]}),(0,Al.jsxs)(tN,{spacing:"xs",direction:"row",sx:{alignItems:"center"},children:[s&&("annotation"!==T||P>=370)&&"notepad"!==i&&(0,Al.jsx)(wI,{activated:"size-manipulation"===T,disabled:!["default","size-manipulation"].includes(T),onPress:()=>I((e=>"size-manipulation"===e?"default":"size-manipulation")),Icon:aU}),!s&&(0,Al.jsx)(NF,{}),"notepad"!==i?(0,Al.jsx)(SI,{title:"annotation"!==T?"Annotate chart":"Exit annotations mode",Icon:YV,onPress:()=>{"default"===T?"chart"!==r.viewerObjectType||l.pinboard?("chart"===r.viewerObjectType&&c(r.viewerObject),t()):p.show({modal:"ConfirmAction",options:{action:()=>(R.mutate({title:"Untitled",charts:[{id:r.viewerObject.id,airport:r.viewerObject.icao_airport_identifier,name:r.viewerObject.name,indexNumber:r.viewerObject.index_number,isGeoReferenced:r.viewerObject.is_georeferenced,category:r.viewerObject.category}]},{onSuccess:e=>{o(e),t()}}),Promise.resolve()),confirmText:"Create",title:"Flight or pinboard required",text:"To be able to annotate on this chart, it needs to be included in a flight or pinboard. Do you wish to create a pinboard?"}}):t()},activated:!1,editable:!0,editing:"annotation"===T,disabled:!E||!["default","annotation"].includes(T)}):(0,Al.jsx)(fU,{chartType:i}),"size-manipulation"!==T&&!s&&(0,Al.jsx)(NF,{}),window.electronAPI&&"default"===T&&"chart"===i&&(0,Al.jsx)(xI,{title:"Print chart",onPress:r.printCallback,Icon:iT}),window.electronAPI&&"default"===T&&"chart"===i&&(0,Al.jsx)(NF,{}),(0,Al.jsx)(xI,{title:"Close chart viewer",onPress:r.closeCallback,Icon:RI})]})]})}))}function sH(e){return(0,Al.jsx)(Kk,Object.assign({style:{transform:[{rotateY:"180deg"}]}},e))}function lH(e){return(0,Al.jsx)(Jk,Object.assign({style:{transform:[{rotate:"90deg"}]}},e))}const cH={code:"function ChartViewerHelperTs1(width,height,viewWidth,viewHeight){return Math.min(viewWidth/width,viewHeight/height);}"},uH=function(){const e=function(e,t,n,r){return Math.min(n/e,r/t)};return e.__closure={},e.__workletHash=0x95ed42088c0,e.__initData=cH,e}(),hH={code:"function ChartViewerHelperTs2(value,min,max){return Math.min(Math.max(value,min),max);}"},dH=function(){const e=function(e,t,n){return Math.min(Math.max(e,t),n)};return e.__closure={},e.__workletHash=3293985878504,e.__initData=hH,e}(),fH={code:"function ChartViewerHelperTs3(rotation,chartWidth,chartHeight,viewWidth,scale){const width=rotation%180===0?chartWidth:chartHeight;const xLimits=[0.5*width*scale-0.5*chartWidth,-0.5*width*scale+viewWidth-0.5*chartWidth];return width*scale({a:e.a*t.a+e.c*t.b,c:e.a*t.c+e.c*t.d,e:e.a*t.e+e.c*t.f+e.e,b:e.b*t.a+e.d*t.b,d:e.b*t.c+e.d*t.d,f:e.b*t.e+e.d*t.f+e.f});switch((t=Array.isArray(t[0])?t[0]:t).length){case 0:throw new Error("no matrices provided");case 1:return t[0];case 2:return n(t[0],t[1]);default:{const[r,i,...o]=t,a=n(r,i);return e(a,...o)}}};return e.__closure={},e.__workletHash=0xd6e32763215,e.__initData=yH,e}(),bH={code:"function compose_matrixTs2(...matrices){const{transform}=this.__closure;return transform(...matrices);}"},AH=function(){const e=function(...e){return vH(...e)};return e.__closure={transform:vH},e.__workletHash=6633094511383,e.__initData=bH,e}(),xH={code:"function translate_matrixTs3(tx,ty=0){return{a:1,c:0,e:tx,b:0,d:1,f:ty};}"},wH=function(){const e=function(e,t=0){return{a:1,c:0,e,b:0,d:1,f:t}};return e.__closure={},e.__workletHash=0xb935a5c5469,e.__initData=xH,e}(),CH={code:"function rotate_matrixTs4(angle,cx,cy){const{transform,translate}=this.__closure;const cosAngle=Math.cos(angle);const sinAngle=Math.sin(angle);const rotationMatrix={a:cosAngle,c:-sinAngle,e:0,b:sinAngle,d:cosAngle,f:0};if(cx===undefined||cy===undefined){return rotationMatrix;}return transform(translate(cx,cy),rotationMatrix,translate(-cx,-cy));}"},SH=function(){const e=function(e,t,n){const r=Math.cos(e),i=Math.sin(e),o={a:r,c:-i,e:0,b:i,d:r,f:0};return void 0===t||void 0===n?o:vH(wH(t,n),o,wH(-t,-n))};return e.__closure={transform:vH,translate:wH},e.__workletHash=0xd482066c35e,e.__initData=CH,e}(),EH={code:"function rotateDEG_matrixTs5(angle,cx,cy){const{rotate}=this.__closure;return rotate(angle*Math.PI/180,cx,cy);}"},kH=function(){const e=function(e,t,n){return SH(e*Math.PI/180,t,n)};return e.__closure={rotate:SH},e.__workletHash=0xa115ece2ebc,e.__initData=EH,e}(),TH={code:"function applyToPoint_matrixTs6(matrix,point){return Array.isArray(point)?[matrix.a*point[0]+matrix.c*point[1]+matrix.e,matrix.b*point[0]+matrix.d*point[1]+matrix.f]:{x:matrix.a*point.x+matrix.c*point.y+matrix.e,y:matrix.b*point.x+matrix.d*point.y+matrix.f};}"},IH=function(){const e=function(e,t){return Array.isArray(t)?[e.a*t[0]+e.c*t[1]+e.e,e.b*t[0]+e.d*t[1]+e.f]:{x:e.a*t.x+e.c*t.y+e.e,y:e.b*t.x+e.d*t.y+e.f}};return e.__closure={},e.__workletHash=2760637462563,e.__initData=TH,e}(),OH={code:"function applyToPoints_matrixTs7(matrix,points){const{applyToPoint}=this.__closure;return points.map(function(point){return applyToPoint(matrix,point);});}"},RH=function(){const e=function(e,t){return t.map((t=>IH(e,t)))};return e.__closure={applyToPoint:IH},e.__workletHash=0x9d5dd33c62d,e.__initData=OH,e}(),MH={code:"function scale_matrixTs8(sx,sy,cx,cy){const{transform,translate}=this.__closure;if(sy===undefined)sy=sx;const scaleMatrix={a:sx,c:0,e:0,b:0,d:sy,f:0};if(cx===undefined||cy===undefined){return scaleMatrix;}return transform(...[translate(cx,cy),scaleMatrix,translate(-cx,-cy)]);}"},PH=function(){const e=function(e,t,n,r){void 0===t&&(t=e);const i={a:e,c:0,e:0,b:0,d:t,f:0};return void 0===n||void 0===r?i:vH(wH(n,r),i,wH(-n,-r))};return e.__closure={transform:vH,translate:wH},e.__workletHash=0xd45d63ca553,e.__initData=MH,e}(),DH={code:"function useChartGesturesTsx1(){const{getChartXLimits,rotation,viewerObject,viewWidth,scale,getChartYLimits,viewHeight,minimumZoomScale,maximumZoomScale}=this.__closure;return{x:getChartXLimits(rotation.value,viewerObject.width,viewerObject.height,viewWidth.value,scale.value),y:getChartYLimits(rotation.value,viewerObject.width,viewerObject.height,viewHeight.value,scale.value),scale:[minimumZoomScale.value,maximumZoomScale.value]};}"},jH={code:"function useChartGesturesTsx2(){const{isPanning}=this.__closure;isPanning.value=false;}"},BH={code:"function useChartGesturesTsx3(e){const{translationX,limitValue,chartLimits,translationY,isPanning}=this.__closure;translationX.value=limitValue(translationX.value+e.changeX,...chartLimits.value.x);translationY.value=limitValue(translationY.value+e.changeY,...chartLimits.value.y);isPanning.value=true;}"},LH={code:"function useChartGesturesTsx4(e,success){const{translationX,limitValue,chartLimits,translationY}=this.__closure;if(!success){return;}translationX.value=limitValue(translationX.value,...chartLimits.value.x);translationY.value=limitValue(translationY.value,...chartLimits.value.y);}"},FH={code:"function useChartGesturesTsx5(e){const{limitValue,scale,chartLimits,tm,translationX,viewerObject,translationY}=this.__closure;const scaleChange=limitValue(scale.value*e.scaleChange,...chartLimits.value.scale)/scale.value;const one=tm.applyToPoint(tm.scale(scaleChange,scaleChange,translationX.value+viewerObject.width/2,translationY.value+viewerObject.height/2),[e.focalX,e.focalY]);const two=tm.applyToPoint(tm.translate(e.focalX-one[0],e.focalY-one[1]),[translationX.value,translationY.value]);translationX.value=two[0];translationY.value=two[1];scale.value=scale.value*scaleChange;}"},NH={code:"function useChartGesturesTsx6(success){const{scale,limitValue,chartLimits}=this.__closure;if(!success){return;}scale.value=limitValue(scale.value*1.3,...chartLimits.value.scale);}"},_H={code:"function useChartGesturesTsx7(e){const{PointerType,runOnJS,enableAnnotationMode}=this.__closure;if(e.pointerType===PointerType.STYLUS){runOnJS(enableAnnotationMode)();}}"},zH={code:"function useChartManipulationTsx1(){const{translationX,viewerObject,viewWidth,isBottomSheetOpen,scale,minimumZoomScale,getChartYLimits,rotation,viewHeight,translationY}=this.__closure;translationX.value=-1*(viewerObject.width-viewWidth.value)/2;if(isBottomSheetOpen&&scale.value<=minimumZoomScale.value){const[yMin]=getChartYLimits(rotation.value,viewerObject.width,viewerObject.height,viewHeight.value,scale.value);translationY.value=yMin;}else{translationY.value=-1*(viewerObject.height-viewHeight.value)/2;}}"},VH={code:"function useChartManipulationTsx2(x,y,chartScale){const{getChartXLimits,rotation,viewerObject,viewWidth,getChartYLimits,viewHeight,translationX,limitValue,translationY}=this.__closure;const[xMin,xMax]=getChartXLimits(rotation.value,viewerObject.width,viewerObject.height,viewWidth.value,chartScale);const[yMin,yMax]=getChartYLimits(rotation.value,viewerObject.width,viewerObject.height,viewHeight.value,chartScale);translationX.value=limitValue(x,xMin,xMax);translationY.value=limitValue(y,yMin,yMax);}"},UH={code:'function useChartManipulationTsx3(){const{viewerObjectType,rotation,minimumZoomScale,getCalculatedScale,viewerObject,viewWidth,viewHeight}=this.__closure;switch(viewerObjectType){case"chart":const isRotated=rotation.value%180!==0;minimumZoomScale.value=getCalculatedScale(isRotated?viewerObject.height:viewerObject.width,isRotated?viewerObject.width:viewerObject.height,viewWidth.value,viewHeight.value);break;case"scratchpad":default:const rotate=rotation.value%180!==0;const calculatedScale=getCalculatedScale(rotate?viewerObject.height:viewerObject.width,rotate?viewerObject.width:viewerObject.height,viewWidth.value,viewHeight.value);minimumZoomScale.value=Math.min(1,calculatedScale);break;}}'},HH={code:'function useChartManipulationTsx4(direction){const{scale,minimumZoomScale,limitValue,maximumZoomScale,setLimitedXYValues,translationX,translationY}=this.__closure;const newValue=direction==="in"?scale.value*1.15:scale.value/1.15;const minScale=direction==="out"?minimumZoomScale.value:minimumZoomScale.value;scale.value=limitValue(newValue,minScale,maximumZoomScale.value);setLimitedXYValues(translationX.value,translationY.value,scale.value);}'},qH={code:"function useChartManipulationTsx5(){const{rotation,scale,viewWidth,viewerObject,setMinZoomScale,minimumZoomScale,alignChart}=this.__closure;if(rotation.value%180===0){scale.value=viewWidth.value/viewerObject.width;}else{scale.value=viewWidth.value/viewerObject.height;}setMinZoomScale();if(scale.value0?scale.value*1.15:scale.value/1.15;const minScale=minimumZoomScale.value;scale.value=limitValue(newScale,minScale,maximumZoomScale.value);const diff=scale.value-oldScale;const m=diff/2;const height=rotation.value%180===0?viewerObject.height:viewerObject.width;const width=rotation.value%180===0?viewerObject.width:viewerObject.height;const adjustedX=translationX.value+-x*m*2+width*m;const adjustedY=translationY.value+-y*m*2+height*m;setLimitedXYValues(adjustedX,adjustedY,scale.value);}"},QH={code:'function useChartManipulationTsx9(transformation){const{rotation,scale,viewerObjectType,getCalculatedScale,viewerObject,viewWidth,viewHeight,minimumZoomScale,alignChart,translationX,translationY,setMinZoomScale}=this.__closure;if(!transformation){rotation.value=0;scale.value=function(){switch(viewerObjectType){case"chart":return getCalculatedScale(viewerObject.width,viewerObject.height,viewWidth.value,viewHeight.value);case"scratchpad":default:const calculatedScale=getCalculatedScale(viewerObject.width,viewerObject.height,viewWidth.value,viewHeight.value);return Math.min(1,calculatedScale);}}();minimumZoomScale.value=scale.value;alignChart();}else{scale.value=transformation.scale;translationX.value=transformation.x;translationY.value=transformation.y;rotation.value=transformation.rotation;setMinZoomScale();}}'},XH={code:"function useChartManipulationTsx10(){const{setMinZoomScale,scale,minimumZoomScale,setLimitedXYValues,translationX,translationY}=this.__closure;setMinZoomScale();if(scale.valuetq(e,t)))}function rq(e){return{a:parseFloat(e.a),b:parseFloat(e.b),c:parseFloat(e.c),d:parseFloat(e.d),e:parseFloat(e.e),f:parseFloat(e.f)}}const iq=/^matrix\(\s*([0-9_+-.e]+)\s*,\s*([0-9_+-.e]+)\s*,\s*([0-9_+-.e]+)\s*,\s*([0-9_+-.e]+)\s*,\s*([0-9_+-.e]+)\s*,\s*([0-9_+-.e]+)\s*\)$/i;function oq(e){const t=e.match(iq);if(null===t||t.length<7)throw new Error(`'${e}' is not a matrix`);return{a:parseFloat(t[1]),b:parseFloat(t[2]),c:parseFloat(t[3]),d:parseFloat(t[4]),e:parseFloat(t[5]),f:parseFloat(t[6])}}function aq(){return{a:1,c:0,e:0,b:0,d:1,f:0}}function sq(e){const{a:t,b:n,c:r,d:i,e:o,f:a}=e,s=t*i-n*r;return{a:i/s,b:n/-s,c:r/-s,d:t/s,e:(i*o-r*a)/-s,f:(n*o-t*a)/s}}function lq(e){return void 0===e}function cq(e){return"number"==typeof e&&!Number.isNaN(e)&&Number.isFinite(e)}function uq(e){return"object"==typeof(t=e)&&null!==t&&!Array.isArray(t)&&"a"in e&&cq(e.a)&&"b"in e&&cq(e.b)&&"c"in e&&cq(e.c)&&"d"in e&&cq(e.d)&&"e"in e&&cq(e.e)&&"f"in e&&cq(e.f);var t}function hq(e,t=0){return{a:1,c:0,e,b:0,d:1,f:t}}function dq(...e){const t=(e,t)=>({a:e.a*t.a+e.c*t.b,c:e.a*t.c+e.c*t.d,e:e.a*t.e+e.c*t.f+e.e,b:e.b*t.a+e.d*t.b,d:e.b*t.c+e.d*t.d,f:e.b*t.e+e.d*t.f+e.f});switch((e=Array.isArray(e[0])?e[0]:e).length){case 0:throw new Error("no matrices provided");case 1:return e[0];case 2:return t(e[0],e[1]);default:{const[n,r,...i]=e;return dq(t(n,r),...i)}}}function fq(...e){return dq(...e)}const{cos:pq,sin:mq,PI:gq}=Math;function yq(e,t,n){const r=pq(e),i=mq(e),o={a:r,c:-i,e:0,b:i,d:r,f:0};return lq(t)||lq(n)?o:dq([hq(t,n),o,hq(-t,-n)])}function vq(e,t=void 0,n=void 0){return yq(e*gq/180,t,n)}function bq(e,t=void 0,n=void 0,r=void 0){lq(t)&&(t=e);const i={a:e,c:0,e:0,b:0,d:t,f:0};return lq(n)||lq(r)?i:dq([hq(n,r),i,hq(-n,-r)])}function Aq(e,t){return{a:1,c:e,e:0,b:t,d:1,f:0}}const{tan:xq}=Math;function wq(e,t){return{a:1,c:xq(e),e:0,b:xq(t),d:1,f:0}}function Cq(e,t){return wq(e*Math.PI/180,t*Math.PI/180)}function Sq(e){return kq(e)}function Eq(e){return kq(e)}function kq(e){return`matrix(${e.a},${e.b},${e.c},${e.d},${e.e},${e.f})`}function Tq(e,t=1e10){return{a:Math.round(e.a*t)/t,b:Math.round(e.b*t)/t,c:Math.round(e.c*t)/t,d:Math.round(e.d*t)/t,e:Math.round(e.e*t)/t,f:Math.round(e.f*t)/t}}function Iq(e,t){const n=null!=e[0].x?e[0].x:e[0][0],r=null!=e[0].y?e[0].y:e[0][1],i=null!=t[0].x?t[0].x:t[0][0],o=null!=t[0].y?t[0].y:t[0][1],a=null!=e[1].x?e[1].x:e[1][0],s=null!=e[1].y?e[1].y:e[1][1],l=null!=t[1].x?t[1].x:t[1][0],c=null!=t[1].y?t[1].y:t[1][1],u=null!=e[2].x?e[2].x:e[2][0],h=null!=e[2].y?e[2].y:e[2][1],d=null!=t[2].x?t[2].x:t[2][0],f=null!=t[2].y?t[2].y:t[2][1];return Tq(dq([{a:i-d,b:o-f,c:l-d,d:c-f,e:d,f},sq({a:n-u,b:r-h,c:a-u,d:s-h,e:u,f:h})]))}function Oq(e){return Array.isArray(e)?e.map(t):t(e);function t(e){switch(e.type){case"matrix":if("a"in e&&"b"in e&&"c"in e&&"d"in e&&"e"in e&&"f"in e)return rq(e);throw new Error("MISSING_MANDATORY_PARAM");case"translate":if(!("tx"in e))throw new Error("MISSING_MANDATORY_PARAM");return"ty"in e?hq(e.tx,e.ty):hq(e.tx);case"scale":if(!("sx"in e))throw new Error("MISSING_MANDATORY_PARAM");return"sy"in e?bq(e.sx,e.sy):bq(e.sx);case"rotate":if(!("angle"in e))throw new Error("MISSING_MANDATORY_PARAM");return"cx"in e&&"cy"in e?vq(e.angle,e.cx,e.cy):vq(e.angle);case"skewX":if(!("angle"in e))throw new Error("MISSING_MANDATORY_PARAM");return Cq(e.angle,0);case"skewY":if(!("angle"in e))throw new Error("MISSING_MANDATORY_PARAM");return Cq(0,e.angle);case"shear":if(!("shx"in e)||!("shy"in e))throw new Error("MISSING_MANDATORY_PARAM");return Aq(e.shx,e.shy);default:throw new Error("UNSUPPORTED_DESCRIPTOR")}}}function Rq(e,t,n,r){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,Rq.prototype),i.expected=t,i.found=n,i.location=r,i.name="SyntaxError",i}function Mq(e,t,n){return n=n||" ",e.length>t?e:(t-=e.length,e+(n+=n.repeat(t)).slice(0,t))}function Pq(e,t){var n,r={},i=(t=void 0!==t?t:{}).grammarSource,o={transformList:ue},a=ue,s="matrix",l="(",c=")",u="translate",h="scale",d="rotate",f="skewX",p="skewY",m=",",g=".",y=/^[eE]/,v=/^[+\-]/,b=/^[0-9]/,A=/^[ \t\r\n]/,x=oe("matrix",!1),w=oe("(",!1),C=oe(")",!1),S=oe("translate",!1),E=oe("scale",!1),k=oe("rotate",!1),T=oe("skewX",!1),I=oe("skewY",!1),O=oe(",",!1),R={type:"other",description:"fractionalConstant"},M=oe(".",!1),P=ae(["e","E"],!1,!1),D=ae(["+","-"],!1,!1),j=ae([["0","9"]],!1,!1),B=ae([" ","\t","\r","\n"],!1,!1),L=function(e){return e},F=function(e,t){return e.concat(t)},N=function(e,t,n,r,i,o){return[{type:"matrix",a:e,b:t,c:n,d:r,e:i,f:o}]},_=function(e,t){var n={type:"translate",tx:e};return t&&(n.ty=t),[n]},z=function(e,t){var n={type:"scale",sx:e};return t&&(n.sy=t),[n]},V=function(e,t){var n={type:"rotate",angle:e};return t&&(n.cx=t[0],n.cy=t[1]),[n]},U=function(e){return[{type:"skewX",angle:e}]},H=function(e){return[{type:"skewY",angle:e}]},q=function(e){return parseFloat(e.join(""))},G=function(e){return parseInt(e.join(""))},Y=function(e){return e},W=function(e,t){return[e,t]},Q=function(e){return e.join("")},X=function(e,t){return[e,t||null].join("")},J=function(e,t){return[e,t].join("")},Z=function(e,t){return[e?e.join(""):null,".",t.join("")].join("")},K=function(e){return e.join("")},$=function(e,t){return["e",e,t.join("")].join("")},ee=0,te=[{line:1,column:1}],ne=0,re=[],ie=0;if("startRule"in t){if(!(t.startRule in o))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=o[t.startRule]}function oe(e,t){return{type:"literal",text:e,ignoreCase:t}}function ae(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function se(t){var n,r=te[t];if(r)return r;for(n=t-1;!te[n];)n--;for(r={line:(r=te[n]).line,column:r.column};nne&&(ne=ee,re=[]),re.push(e))}function ue(){var e,t,n,i;for(e=[],t=xe();t!==r;)e.push(t),t=xe();for((t=he())===r&&(t=null),n=[],i=xe();i!==r;)n.push(i),i=xe();return L(t)}function he(){var e,t,n,i;if(e=ee,(t=de())!==r){if(n=[],(i=me())!==r)for(;i!==r;)n.push(i),i=me();else n=r;n!==r&&(i=he())!==r?e=F(t,i):(ee=e,e=r)}else ee=e,e=r;return e===r&&(e=de()),e}function de(){var t;return(t=function(){var t,n,i,o,a,u,h,d,f,p,m,g,y;if(t=ee,e.substr(ee,6)===s?(n=s,ee+=6):(n=r,0===ie&&ce(x)),n!==r){for(i=[],o=xe();o!==r;)i.push(o),o=xe();if(40===e.charCodeAt(ee)?(o=l,ee++):(o=r,0===ie&&ce(w)),o!==r){for(a=[],u=xe();u!==r;)a.push(u),u=xe();if((u=fe())!==r)if(me()!==r)if((h=fe())!==r)if(me()!==r)if((d=fe())!==r)if(me()!==r)if((f=fe())!==r)if(me()!==r)if((p=fe())!==r)if(me()!==r)if((m=fe())!==r){for(g=[],y=xe();y!==r;)g.push(y),y=xe();41===e.charCodeAt(ee)?(y=c,ee++):(y=r,0===ie&&ce(C)),y!==r?t=N(u,h,d,f,p,m):(ee=t,t=r)}else ee=t,t=r;else ee=t,t=r;else ee=t,t=r;else ee=t,t=r;else ee=t,t=r;else ee=t,t=r;else ee=t,t=r;else ee=t,t=r;else ee=t,t=r;else ee=t,t=r;else ee=t,t=r}else ee=t,t=r}else ee=t,t=r;return t}())===r&&(t=function(){var t,n,i,o,a,s,h,d,f;if(t=ee,e.substr(ee,9)===u?(n=u,ee+=9):(n=r,0===ie&&ce(S)),n!==r){for(i=[],o=xe();o!==r;)i.push(o),o=xe();if(40===e.charCodeAt(ee)?(o=l,ee++):(o=r,0===ie&&ce(w)),o!==r){for(a=[],s=xe();s!==r;)a.push(s),s=xe();if((s=fe())!==r){for((h=pe())===r&&(h=null),d=[],f=xe();f!==r;)d.push(f),f=xe();41===e.charCodeAt(ee)?(f=c,ee++):(f=r,0===ie&&ce(C)),f!==r?t=_(s,h):(ee=t,t=r)}else ee=t,t=r}else ee=t,t=r}else ee=t,t=r;return t}())===r&&(t=function(){var t,n,i,o,a,s,u,d,f;if(t=ee,e.substr(ee,5)===h?(n=h,ee+=5):(n=r,0===ie&&ce(E)),n!==r){for(i=[],o=xe();o!==r;)i.push(o),o=xe();if(40===e.charCodeAt(ee)?(o=l,ee++):(o=r,0===ie&&ce(w)),o!==r){for(a=[],s=xe();s!==r;)a.push(s),s=xe();if((s=fe())!==r){for((u=pe())===r&&(u=null),d=[],f=xe();f!==r;)d.push(f),f=xe();41===e.charCodeAt(ee)?(f=c,ee++):(f=r,0===ie&&ce(C)),f!==r?t=z(s,u):(ee=t,t=r)}else ee=t,t=r}else ee=t,t=r}else ee=t,t=r;return t}())===r&&(t=function(){var t,n,i,o,a,s,u,h,f;if(t=ee,e.substr(ee,6)===d?(n=d,ee+=6):(n=r,0===ie&&ce(k)),n!==r){for(i=[],o=xe();o!==r;)i.push(o),o=xe();if(40===e.charCodeAt(ee)?(o=l,ee++):(o=r,0===ie&&ce(w)),o!==r){for(a=[],s=xe();s!==r;)a.push(s),s=xe();if((s=fe())!==r){for(u=function(){var e,t,n;return e=ee,me()!==r&&(t=fe())!==r&&me()!==r&&(n=fe())!==r?e=W(t,n):(ee=e,e=r),e}(),u===r&&(u=null),h=[],f=xe();f!==r;)h.push(f),f=xe();41===e.charCodeAt(ee)?(f=c,ee++):(f=r,0===ie&&ce(C)),f!==r?t=V(s,u):(ee=t,t=r)}else ee=t,t=r}else ee=t,t=r}else ee=t,t=r;return t}())===r&&(t=function(){var t,n,i,o,a,s,u,h;if(t=ee,e.substr(ee,5)===f?(n=f,ee+=5):(n=r,0===ie&&ce(T)),n!==r){for(i=[],o=xe();o!==r;)i.push(o),o=xe();if(40===e.charCodeAt(ee)?(o=l,ee++):(o=r,0===ie&&ce(w)),o!==r){for(a=[],s=xe();s!==r;)a.push(s),s=xe();if((s=fe())!==r){for(u=[],h=xe();h!==r;)u.push(h),h=xe();41===e.charCodeAt(ee)?(h=c,ee++):(h=r,0===ie&&ce(C)),h!==r?t=U(s):(ee=t,t=r)}else ee=t,t=r}else ee=t,t=r}else ee=t,t=r;return t}())===r&&(t=function(){var t,n,i,o,a,s,u,h;if(t=ee,e.substr(ee,5)===p?(n=p,ee+=5):(n=r,0===ie&&ce(I)),n!==r){for(i=[],o=xe();o!==r;)i.push(o),o=xe();if(40===e.charCodeAt(ee)?(o=l,ee++):(o=r,0===ie&&ce(w)),o!==r){for(a=[],s=xe();s!==r;)a.push(s),s=xe();if((s=fe())!==r){for(u=[],h=xe();h!==r;)u.push(h),h=xe();41===e.charCodeAt(ee)?(h=c,ee++):(h=r,0===ie&&ce(C)),h!==r?t=H(s):(ee=t,t=r)}else ee=t,t=r}else ee=t,t=r}else ee=t,t=r;return t}()),t}function fe(){var t,n,i,o;return t=ee,n=ee,(i=ve())===r&&(i=null),o=function(){var t,n,i;return t=ee,n=function(){var t,n,i,o;return ie++,t=ee,(n=be())===r&&(n=null),46===e.charCodeAt(ee)?(i=g,ee++):(i=r,0===ie&&ce(M)),i!==r&&(o=be())!==r?t=Z(n,o):(ee=t,t=r),t===r&&(t=ee,(n=be())!==r?(46===e.charCodeAt(ee)?(i=g,ee++):(i=r,0===ie&&ce(M)),i!==r?t=K(n):(ee=t,t=r)):(ee=t,t=r)),ie--,t===r&&(n=r,0===ie&&ce(R)),t}(),n!==r?((i=ye())===r&&(i=null),t=X(n,i)):(ee=t,t=r),t===r&&(t=ee,(n=be())!==r&&(i=ye())!==r?t=J(n,i):(ee=t,t=r)),t}(),o!==r?n=i=[i,o]:(ee=n,n=r),n!==r&&(n=q(n)),(t=n)===r&&(t=ee,n=ee,(i=ve())===r&&(i=null),o=function(){var e;return(e=be())!==r&&(e=Q(e)),e}(),o!==r?n=i=[i,o]:(ee=n,n=r),n!==r&&(n=G(n)),t=n),t}function pe(){var e,t;return e=ee,me()!==r&&(t=fe())!==r?e=Y(t):(ee=e,e=r),e}function me(){var e,t,n,i,o;if(e=ee,t=[],(n=xe())!==r)for(;n!==r;)t.push(n),n=xe();else t=r;if(t!==r){for((n=ge())===r&&(n=null),i=[],o=xe();o!==r;)i.push(o),o=xe();e=t=[t,n,i]}else ee=e,e=r;if(e===r)if(e=ee,(t=ge())!==r){for(n=[],i=xe();i!==r;)n.push(i),i=xe();e=t=[t,n]}else ee=e,e=r;return e}function ge(){var t;return 44===e.charCodeAt(ee)?(t=m,ee++):(t=r,0===ie&&ce(O)),t}function ye(){var t,n,i,o;return t=ee,y.test(e.charAt(ee))?(n=e.charAt(ee),ee++):(n=r,0===ie&&ce(P)),n!==r?((i=ve())===r&&(i=null),(o=be())!==r?t=$(i,o):(ee=t,t=r)):(ee=t,t=r),t}function ve(){var t;return v.test(e.charAt(ee))?(t=e.charAt(ee),ee++):(t=r,0===ie&&ce(D)),t}function be(){var e,t;if(e=[],(t=Ae())!==r)for(;t!==r;)e.push(t),t=Ae();else e=r;return e}function Ae(){var t;return b.test(e.charAt(ee))?(t=e.charAt(ee),ee++):(t=r,0===ie&&ce(j)),t}function xe(){var t;return A.test(e.charAt(ee))?(t=e.charAt(ee),ee++):(t=r,0===ie&&ce(B)),t}if((n=a())!==r&&ee===e.length)return n;throw n!==r&&ee0?-t:t}else if(0!==i||0!==a){const e=Math.hypot(i,a);s=(r*a-i*o)/e,l=e;const t=Math.acos(i/e);c=Math.PI/2+(a>0?-t:t)}else s=0,l=0,c=0;return n&&(s=-s),t&&(l=-l),{translate:{tx:e.e,ty:e.f},scale:{sx:s,sy:l},rotation:{angle:c}}}function Bq(){return{a:1,c:0,e:0,b:0,d:-1,f:0}}function Lq(){return{a:-1,c:0,e:0,b:0,d:1,f:0}}function Fq(){return{a:-1,c:0,e:0,b:0,d:-1,f:0}}function Nq(e,t){return hq(t.x-e.x,t.y-e.y)}function _q(e,t,n,r){const i=Nq(e,n),o=tq(i,t),a=n,s=r,l=yq(Math.atan2(s.y-a.y,s.x-a.x)-Math.atan2(o.y-a.y,o.x-a.x),a.x,a.y),c=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),u=Math.sqrt(Math.pow(s.x-a.x,2)+Math.pow(s.y-a.y,2))/c;return fq([i,bq(u,u,a.x,a.y),l])}function zq({enabled:e,children:t,ellipseGesture:n,rectGesture:r,pathGesture:i,textGesture:o}){const a=(0,u.useMemo)((()=>lo(n,r,i,o)),[n,i,r,o]);return(0,Al.jsx)(eI,{sx:{flex:1},pointerEvents:e?"auto":"none",children:(0,Al.jsx)(Bi,{gesture:a,children:t})})}!function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(Rq,Error),Rq.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n0){for(t=1,n=1;t{if(!e)return void(t.value={left:0,top:0,width:0,height:0});const r=n.value.scale;if("text"===e.type){const i=e,o=nq(fq(hq(n.value.offsetX*(1/r),n.value.offsetY*(1/r)),vq(n.value.rotation,n.value.width/2,n.value.height/2)),[[i.props.x??0,i.props.y??0]]),[a,s]=o[0],l=i.props.size??20,c=i.props.value?.split("\n")??[],u=Math.max(...c.map((e=>e.length)),0),h=u*l*.7,d=c.length*l*1.3+5;return void(t.value={left:a*r,top:s*r,width:h*r,height:d*r})}const{left:i,top:o,width:a,height:s}=function(e){switch(e.type){case"ellipse":return{width:2*e.props.rx,height:2*e.props.ry,left:e.props.cx-e.props.rx,top:e.props.cy-e.props.ry};case"rect":return{width:e.props.width,height:e.props.height,left:e.props.x,top:e.props.y};case"path":const t=XU(e.props.d);return{width:t.width,height:t.height,left:t.x,top:t.y};case"text":return{width:1e4,height:1e4,left:e.props.x??0,top:e.props.y??0};default:return{width:0,height:0,left:0,top:0}}}(e),l=nq(fq(hq(n.value.offsetX*(1/r),n.value.offsetY*(1/r)),vq(n.value.rotation,n.value.width/2,n.value.height/2)),[[i,o],[i+a,o],[i+a,o+s],[i,o+s]]),c=(360-n.value.rotation)/90%4,[u,h]=l.at(c)??[0,0],[d]=l.at((c+1)%4)??[0,0],[,f]=l.at(c-1)??[0,0];t.value={left:u*r,top:h*r,width:(d-u)*r,height:(f-h)*r}}),[e,n,t]),(0,mf.useAnimatedReaction)(function(){const e=()=>n.value;return e.__closure={objectInfo:n},e.__workletHash=1696933597997,e.__initData=Yq,e}(),function(){const e=function(e,n){n&&0!==n.scale&&(t.value={left:(t.value.left-n.offsetX)/n.scale*e.scale+e.offsetX,top:(t.value.top-n.offsetY)/n.scale*e.scale+e.offsetY,width:t.value.width/n.scale*e.scale,height:t.value.height/n.scale*e.scale})};return e.__closure={frame:t},e.__workletHash=0xaa3a8574ded,e.__initData=Wq,e}(),[n]),(0,Al.jsxs)(Fk,{children:["ellipse"===e?.type&&(0,Al.jsx)(tG,{frame:t,target:e,objectInfo:n}),"rect"===e?.type&&(0,Al.jsx)($q,{frame:t,target:e,objectInfo:n}),"path"===e?.type&&(0,Al.jsx)(iG,{frame:t,target:e,objectInfo:n}),"text"===e?.type&&(0,Al.jsx)(Zq,{frame:t,target:e,objectInfo:n},`text-${e.props.x}-${e.props.y}`)]})}const Xq={code:"function AnnotationShapeEditorTsx3(){const{objectInfo,baseFontSize,frame,target}=this.__closure;const scale=objectInfo.value.scale;const fontSize=baseFontSize*scale;const hasValidFrame=frame.value.width!==0&&frame.value.height!==0;const x=hasValidFrame?frame.value.left:target.props.x*scale+objectInfo.value.offsetX;const y=hasValidFrame?frame.value.top:target.props.y*scale+objectInfo.value.offsetY;return{x:x,y:y,fontSize:fontSize,hasValidFrame:hasValidFrame};}"},Jq={code:"function AnnotationShapeEditorTsx4(value){const{isMountedRef,runOnJS,setPosition}=this.__closure;if(isMountedRef.current&&value.hasValidFrame){runOnJS(setPosition)({x:value.x,y:value.y,fontSize:value.fontSize});}}"};function Zq({frame:e,target:t,objectInfo:n}){const r="number"==typeof t.props.size?t.props.size:20,i=(t.props.value??"").split("\n"),o=t.props.x*n.value.scale+n.value.offsetX,a=t.props.y*n.value.scale+n.value.offsetY,s=r*n.value.scale,[l,c]=u.useState({x:o,y:a,fontSize:s}),h=u.useRef(!0);return u.useEffect((()=>()=>{h.current=!1}),[]),(0,mf.useAnimatedReaction)(function(){const i=function(){const i=n.value.scale,o=r*i,a=0!==e.value.width&&0!==e.value.height;return{x:a?e.value.left:t.props.x*i+n.value.offsetX,y:a?e.value.top:t.props.y*i+n.value.offsetY,fontSize:o,hasValidFrame:a}};return i.__closure={objectInfo:n,baseFontSize:r,frame:e,target:t},i.__workletHash=3755474814069,i.__initData=Xq,i}(),function(){const e=function(e){h.current&&e.hasValidFrame&&(0,mf.runOnJS)(c)({x:e.x,y:e.y,fontSize:e.fontSize})};return e.__closure={isMountedRef:h,runOnJS:mf.runOnJS,setPosition:c},e.__workletHash=0xb53c290708e,e.__initData=Jq,e}(),[e,n,r,t.props]),(0,Al.jsx)(Yk,{x:l.x,y:l.y+l.fontSize,fontSize:l.fontSize,fill:t.props.color.slice(0,7),fontFamily:"Inter-SemiBold",fontWeight:"600",children:i.map(((e,t)=>(0,Al.jsx)(Gk,{x:l.x,dy:0===t?0:1.3*l.fontSize,children:e||" "},t)))})}const Kq={code:"function AnnotationShapeEditorTsx5(){const{frame,target,objectInfo}=this.__closure;return{x:frame.value.left,y:frame.value.top,width:frame.value.width,height:frame.value.height,strokeWidth:target.props.strokeWidth?target.props.strokeWidth*objectInfo.value.scale:0};}"};function $q({frame:e,target:t,objectInfo:n}){const r=(0,mf.useAnimatedProps)(function(){const r=function(){return{x:e.value.left,y:e.value.top,width:e.value.width,height:e.value.height,strokeWidth:t.props.strokeWidth?t.props.strokeWidth*n.value.scale:0}};return r.__closure={frame:e,target:t,objectInfo:n},r.__workletHash=7298060391283,r.__initData=Kq,r}(),[e,n,t.props.strokeWidth]);return(0,Al.jsx)(qq,{animatedProps:r,fill:t.props.fill,stroke:t.props.stroke})}const eG={code:"function AnnotationShapeEditorTsx6(){const{frame,target,objectInfo}=this.__closure;return{cx:frame.value.left+frame.value.width/2,cy:frame.value.top+frame.value.height/2,rx:frame.value.width/2,ry:frame.value.height/2,strokeWidth:target.props.strokeWidth?target.props.strokeWidth*objectInfo.value.scale:0};}"};function tG({frame:e,target:t,objectInfo:n}){const r=(0,mf.useAnimatedProps)(function(){const r=function(){return{cx:e.value.left+e.value.width/2,cy:e.value.top+e.value.height/2,rx:e.value.width/2,ry:e.value.height/2,strokeWidth:t.props.strokeWidth?t.props.strokeWidth*n.value.scale:0}};return r.__closure={frame:e,target:t,objectInfo:n},r.__workletHash=0xd47c3b6db51,r.__initData=eG,r}(),[e,n,t.props.strokeWidth]);return(0,Al.jsx)(Gq,{animatedProps:r,fill:t.props.fill,stroke:t.props.stroke})}const nG={code:"function AnnotationShapeEditorTsx7(){const{transformPath,target,t2,frame,objectInfo}=this.__closure;return{d:transformPath({d:target.props.d,t2:t2,frame:frame,objectInfo:objectInfo}),strokeWidth:target.props.strokeWidth*objectInfo.value.scale};}"},rG={code:"function AnnotationShapeEditorTsx8(){const{transformPath,target,t2,frame,objectInfo}=this.__closure;return{d:transformPath({d:target.props.d,t2:t2,frame:frame,objectInfo:objectInfo}),strokeWidth:1};}"};function iG({frame:e,target:t,objectInfo:n}){const r=gI(),i=(0,u.useMemo)((()=>{const e=XU(t.props.d);return{type:"rect",props:{x:e.x,y:e.y,width:e.width,height:e.height}}}),[t]),o=(0,mf.useAnimatedProps)(function(){const r=function(){return{d:aG({d:t.props.d,t2:i,frame:e,objectInfo:n}),strokeWidth:t.props.strokeWidth*n.value.scale}};return r.__closure={transformPath:aG,target:t,t2:i,frame:e,objectInfo:n},r.__workletHash=9020274144056,r.__initData=nG,r}(),[e,n,i,t.props.d,t.props.strokeWidth]),a=(0,mf.useAnimatedProps)(function(){const r=function(){return{d:aG({d:t.props.d,t2:i,frame:e,objectInfo:n}),strokeWidth:1}};return r.__closure={transformPath:aG,target:t,t2:i,frame:e,objectInfo:n},r.__workletHash=0xcdca3111ba9,r.__initData=rG,r}(),[e,i,t,n]);return(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsx)(Hq,{animatedProps:o,fill:"none",strokeLinecap:"round",stroke:t.props.stroke}),(0,Al.jsx)(Hq,{fill:"none",strokeLinecap:"round",stroke:r("Blue/5"),animatedProps:a})]})}const oG={code:'function transformPath_AnnotationShapeEditorTsx9({d:d,t2:t2,frame:frame,objectInfo:objectInfo,precision=6}){const{rotateCoordinates}=this.__closure;const objectInfoValue=objectInfo.value;const frameValue=frame.value;const rotationQuarter=objectInfo.value.rotation/90%4;const xSize=([0,2].includes(rotationQuarter)?t2.props.width:t2.props.height)*objectInfo.value.scale;const ySize=([0,2].includes(rotationQuarter)?t2.props.height:t2.props.width)*objectInfo.value.scale;const scaleX=frameValue.width/xSize||0.001;const scaleY=frameValue.height/ySize||0.001;const xVal=[t2.props.x,objectInfo.value.height-(t2.props.y+t2.props.height),objectInfo.value.width-(t2.props.x+t2.props.width),t2.props.y][rotationQuarter]*objectInfo.value.scale;const yVal=[t2.props.y,t2.props.x,objectInfo.value.height-(t2.props.y+t2.props.height),objectInfo.value.width-(t2.props.x+t2.props.width)][rotationQuarter]*objectInfo.value.scale;const nd=[];let pointer=0;let mode="";let segment="";while(pointer{if(/[A-Z]/.test(g)){const[e,r]=Uq([parseFloat(t),parseFloat(n)],-o.rotation,[o.width/2,o.height/2]);return[e*o.scale,r*o.scale].map((e=>e.toFixed(i))).join(",")}const[r,a]=Uq([parseFloat(t),parseFloat(n)],-o.rotation,[0,0]);return[r,a].map((e=>e*o.scale)).map((e=>e.toFixed(i))).join(",")}))),-1===t)break;m+=t}return p.join("").replace(/^M(-?\d+(?:\.\d+)?),(-?\d+(?:\.\d+)?)/,((e,t,n)=>["M",(a.left+(parseFloat(t)-d)/l*a.width)/u,",",(a.top+(parseFloat(n)-f)/c*a.height)/h].join(""))).replace(/(-?\d+(?:\.\d+)?),(-?\d+(?:\.\d+)?)/g,((e,t,n)=>`${(parseFloat(t)*u).toFixed(i)},${(parseFloat(n)*h).toFixed(i)}`))};return e.__closure={rotateCoordinates:Uq},e.__workletHash=1571102354120,e.__initData=oG,e}(),sG={code:'function transformPath_transformPathTs1({d:d,t2:t2,frameWidth:_frameWidth,frameHeight:_frameHeight,frameLeft:_frameLeft,frameTop:_frameTop,precision=6}){const frameWidth=typeof _frameWidth==="number"?_frameWidth:_frameWidth.value;const frameHeight=typeof _frameHeight==="number"?_frameHeight:_frameHeight.value;const frameLeft=typeof _frameLeft==="number"?_frameLeft:_frameLeft.value;const frameTop=typeof _frameTop==="number"?_frameTop:_frameTop.value;const scaleX=frameWidth/t2.width||0.001;const scaleY=frameHeight/t2.height||0.001;return d.replace(/^M(-?\\d+(?:\\.\\d+)?),(-?\\d+(?:\\.\\d+)?)/,function(_,p1,p2){return["M",(frameLeft+(parseFloat(p1)-t2.x)/t2.width*frameWidth)/scaleX,",",(frameTop+(parseFloat(p2)-t2.y)/t2.height*frameHeight)/scaleY].join("");}).replace(/(-?\\d+(?:\\.\\d+)?),(-?\\d+(?:\\.\\d+)?)/g,function(_,p1,p2){return(parseFloat(p1)*scaleX).toFixed(precision)+","+(parseFloat(p2)*scaleY).toFixed(precision);});}'},lG=function(){const e=function({d:e,t2:t,frameWidth:n,frameHeight:r,frameLeft:i,frameTop:o,precision:a=6}){const s="number"==typeof n?n:n.value,l="number"==typeof r?r:r.value,c="number"==typeof i?i:i.value,u="number"==typeof o?o:o.value,h=s/t.width||.001,d=l/t.height||.001;return e.replace(/^M(-?\d+(?:\.\d+)?),(-?\d+(?:\.\d+)?)/,((e,n,r)=>["M",(c+(parseFloat(n)-t.x)/t.width*s)/h,",",(u+(parseFloat(r)-t.y)/t.height*l)/d].join(""))).replace(/(-?\d+(?:\.\d+)?),(-?\d+(?:\.\d+)?)/g,((e,t,n)=>`${(parseFloat(t)*h).toFixed(a)},${(parseFloat(n)*d).toFixed(a)}`))};return e.__closure={},e.__workletHash=0xa7b6a8de5cb,e.__initData=sG,e}();let cG=function(e){return e.ON_PRESS="ON_PRESS",e.HIT_BOX="HIT_BOX",e}({});function uG(){return["android","ios"].includes(Da.OS)?cG.HIT_BOX:cG.ON_PRESS}let hG=function(e){return e.DIRECT="DIRECT",e.DEPRECATED_PROPS="DEPRECATED_PROPS",e.CSS_TRANSFORM="CSS_TRANSFORM",e.SVG_TRANSFORM="SVG_TRANSFORM",e}({});const dG={code:"function rotateEllipse_rotateEllipseTs1(cx,cy,rx,ry,rotation,originX,originY){const normalizedRotation=(rotation%360+360)%360;switch(normalizedRotation){case 0:return{cx:cx,cy:cy,rx:rx,ry:ry};case 90:return{cx:originX-(cy-originY),cy:originY+(cx-originX),rx:ry,ry:rx};case 180:return{cx:originX-(cx-originX),cy:originY-(cy-originY),rx:rx,ry:ry};case 270:return{cx:originX+(cy-originY),cy:originY-(cx-originX),rx:ry,ry:rx};default:return{cx:cx,cy:cy,rx:rx,ry:ry};}}"},fG=function(){const e=function(e,t,n,r,i,o,a){switch((i%360+360)%360){case 0:default:return{cx:e,cy:t,rx:n,ry:r};case 90:return{cx:o-(t-a),cy:a+(e-o),rx:r,ry:n};case 180:return{cx:o-(e-o),cy:a-(t-a),rx:n,ry:r};case 270:return{cx:o+(t-a),cy:a-(e-o),rx:r,ry:n}}};return e.__closure={},e.__workletHash=857075548380,e.__initData=dG,e}(),pG={code:'function rotatePath_rotatePathTs1(d,rotation,origin,precision=6){const rad=rotation*Math.PI/180;function rotate(x,y){const ox=origin.x;const oy=origin.y;const dx=x-ox;const dy=y-oy;const rx=dx*Math.cos(rad)-dy*Math.sin(rad)+ox;const ry=dx*Math.sin(rad)+dy*Math.cos(rad)+oy;return[rx,ry];}const tokens=d.match(/[a-zA-Z]|-?\\d*\\.?\\d+/g);if(!tokens)return d;let result="";let i=0;let currentPoint={x:0,y:0};let startPoint={x:0,y:0};let lastCommand="";let firstMove=true;while(ie.value;return t.__closure={objectInfo:e},t.__workletHash=6037007123563,t.__initData=vG,t}(),function(){const e=function(e){t.value={scale:e.scale,translateX:e.offsetX,translateY:e.offsetY,rotation:e.rotation}};return e.__closure={transformValues:t},e.__workletHash=4213407630910,e.__initData=bG,e}(),[e]),t}(e);return(0,mf.useAnimatedProps)(function(){const o=function(){return r===hG.DIRECT?n():r===hG.SVG_TRANSFORM?Object.assign({},t,{transform:EG(e.value)}):r===hG.CSS_TRANSFORM?Object.assign({},t,{transform:TG(e.value,i.value)}):{}};return o.__closure={positioningImplementation:r,ShapePositioningImplementation:hG,getDirectProps:n,baseProps:t,getSvgTransform:EG,objectInfo:e,getCssTransform:TG,transformValues:i},o.__workletHash=0xb784f5b2119,o.__initData=IG,o}(),[e,i,r,t,n])}const RG=(0,u.forwardRef)((function({enabled:e,chartAnnotationMode:t,objectInfo:n,element:r,index:i,setHighlightedIndex:o,hidden:a},s){const l=(0,u.useCallback)((r=>{e&&"editing"===t&&n.value.rotation%90==0&&(r?.stopPropagation(),o(i))}),[t,e,i,n,o]),c=(0,u.useCallback)((e=>{e.stopPropagation(),l()}),[l]),h=uG()===cG.ON_PRESS?{onPress:l}:{};switch(r.type){case"ellipse":return(0,Al.jsx)(FG,Object.assign({ref:s,objectInfo:n,element:r},h));case"path":return(0,Al.jsx)(_G,Object.assign({ref:s,objectInfo:n,element:r},h));case"rect":return(0,Al.jsx)(BG,Object.assign({ref:s,objectInfo:n,element:r},h));case"text":return PT("scratchpads")?(0,Al.jsx)(DG,Object.assign({ref:s,element:r,hidden:a,objectInfo:n},uG()===cG.ON_PRESS?{onPress:l,onPressWeb:c}:{})):null;default:return null}})),MG={code:"function ElementTsx4(){const{objectInfo,element,baseFontSize}=this.__closure;return{matrix:[objectInfo.value.scale,0,0,objectInfo.value.scale,objectInfo.value.offsetX,objectInfo.value.offsetY],x:element.props.x,y:element.props.y+baseFontSize,fontSize:baseFontSize};}"},PG={code:"function ElementTsx5(){const{objectInfo,baseFontSize,lines,element}=this.__closure;const scale=objectInfo.value.scale;const scaledSize=baseFontSize*scale;const textWidth=Math.max(...lines.map(function(l){return l.length;}))*scaledSize*0.7;return{x:objectInfo.value.offsetX+element.props.x*scale,y:objectInfo.value.offsetY+element.props.y*scale,width:Math.max(textWidth,60),height:Math.max(scaledSize*1.2*lines.length+scaledSize*0.3,40)};}"},DG=(0,u.forwardRef)((function({element:e,objectInfo:t,onPress:n,hidden:r},i){const o="number"==typeof e.props.size?e.props.size:20,a=(e.props.value??"").split("\n"),s={x:e.props.x,y:e.props.y+o,fontSize:o,matrix:[1,0,0,1,0,0]},l=OG(t,s,function(){const n=function(){return{matrix:[t.value.scale,0,0,t.value.scale,t.value.offsetX,t.value.offsetY],x:e.props.x,y:e.props.y+o,fontSize:o}};return n.__closure={objectInfo:t,element:e,baseFontSize:o},n.__workletHash=7998071165467,n.__initData=MG,n}()),c=(0,mf.useAnimatedProps)(function(){const n=function(){const n=t.value.scale,r=o*n,i=Math.max(...a.map((e=>e.length)))*r*.7;return{x:t.value.offsetX+e.props.x*n,y:t.value.offsetY+e.props.y*n,width:Math.max(i,60),height:Math.max(1.2*r*a.length+.3*r,40)}};return n.__closure={objectInfo:t,baseFontSize:o,lines:a,element:e},n.__workletHash=8428861688884,n.__initData=PG,n}(),[t,e,o,a]);return(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsx)(CG,{opacity:r?0:1,animatedProps:l,fontFamily:"Inter-SemiBold",fontWeight:"600",fill:e.props.color.slice(0,7),children:a.map(((t,n)=>(0,Al.jsx)(Gk,{x:e.props.x,dy:0===n?0:1.3*o,children:t||" "},n)))}),(0,Al.jsx)(AG,{ref:i,onPress:r?void 0:n,animatedProps:c,fill:"rgba(0, 0, 0, 0)"})]})})),jG={code:"function ElementTsx6(){const{rotateRect,objectInfo,element}=this.__closure;var _element$props$stroke;const{x:x,y:y,width:width,height:height}=rotateRect(objectInfo.value.offsetX+element.props.x*objectInfo.value.scale,objectInfo.value.offsetY+element.props.y*objectInfo.value.scale,element.props.width*objectInfo.value.scale,element.props.height*objectInfo.value.scale,objectInfo.value.rotation,objectInfo.value.offsetX+objectInfo.value.width/2*objectInfo.value.scale,objectInfo.value.offsetY+objectInfo.value.height/2*objectInfo.value.scale);return{x:x,y:y,width:width,height:height,strokeWidth:((_element$props$stroke=element.props.strokeWidth)!==null&&_element$props$stroke!==void 0?_element$props$stroke:0)*objectInfo.value.scale};}"},BG=(0,u.forwardRef)((function({objectInfo:e,element:t,onPress:n},r){const i={x:t.props.x,y:t.props.y,width:t.props.width,height:t.props.height,strokeWidth:t.props.strokeWidth??0},o=OG(e,i,function(){const n=function(){const{x:n,y:r,width:i,height:o}=yG(e.value.offsetX+t.props.x*e.value.scale,e.value.offsetY+t.props.y*e.value.scale,t.props.width*e.value.scale,t.props.height*e.value.scale,e.value.rotation,e.value.offsetX+e.value.width/2*e.value.scale,e.value.offsetY+e.value.height/2*e.value.scale);return{x:n,y:r,width:i,height:o,strokeWidth:(t.props.strokeWidth??0)*e.value.scale}};return n.__closure={rotateRect:yG,objectInfo:e,element:t},n.__workletHash=3772250739319,n.__initData=jG,n}());return(0,Al.jsx)(AG,{testID:"rect-element",onPress:n,ref:r,animatedProps:o,stroke:t.props.stroke,fill:t.props.fill})})),LG={code:"function ElementTsx7(){const{rotateEllipse,objectInfo,element}=this.__closure;var _element$props$stroke;const{cx:cx,cy:cy,rx:rx,ry:ry}=rotateEllipse(objectInfo.value.offsetX+element.props.cx*objectInfo.value.scale,objectInfo.value.offsetY+element.props.cy*objectInfo.value.scale,element.props.rx*objectInfo.value.scale,element.props.ry*objectInfo.value.scale,objectInfo.value.rotation,objectInfo.value.offsetX+objectInfo.value.width/2*objectInfo.value.scale,objectInfo.value.offsetY+objectInfo.value.height/2*objectInfo.value.scale);return{cx:cx,cy:cy,rx:rx,ry:ry,strokeWidth:((_element$props$stroke=element.props.strokeWidth)!==null&&_element$props$stroke!==void 0?_element$props$stroke:0)*objectInfo.value.scale};}"},FG=(0,u.forwardRef)((function({objectInfo:e,element:t,onPress:n},r){const i={cx:t.props.cx,cy:t.props.cy,rx:t.props.rx,ry:t.props.ry,strokeWidth:t.props.strokeWidth??0},o=OG(e,i,function(){const n=function(){const{cx:n,cy:r,rx:i,ry:o}=fG(e.value.offsetX+t.props.cx*e.value.scale,e.value.offsetY+t.props.cy*e.value.scale,t.props.rx*e.value.scale,t.props.ry*e.value.scale,e.value.rotation,e.value.offsetX+e.value.width/2*e.value.scale,e.value.offsetY+e.value.height/2*e.value.scale);return{cx:n,cy:r,rx:i,ry:o,strokeWidth:(t.props.strokeWidth??0)*e.value.scale}};return n.__closure={rotateEllipse:fG,objectInfo:e,element:t},n.__workletHash=0xb6d9200d70e,n.__initData=LG,n}());return(0,Al.jsx)(wG,{onPress:n,ref:r,animatedProps:o,stroke:t.props.stroke,fill:t.props.fill})})),NG={code:"function ElementTsx8(){const{element,objectInfo,rotatePath,transformPath,bbox}=this.__closure;return{strokeWidth:element.props.strokeWidth*objectInfo.value.scale,d:rotatePath(transformPath({d:element.props.d,t2:bbox,frameWidth:bbox.width*objectInfo.value.scale,frameHeight:bbox.height*objectInfo.value.scale,frameLeft:bbox.x*objectInfo.value.scale+objectInfo.value.offsetX,frameTop:bbox.y*objectInfo.value.scale+objectInfo.value.offsetY}),objectInfo.value.rotation,{x:objectInfo.value.offsetX+objectInfo.value.width/2*objectInfo.value.scale,y:objectInfo.value.offsetY+objectInfo.value.height/2*objectInfo.value.scale})};}"},_G=(0,u.forwardRef)((function({objectInfo:e,element:t,onPress:n},r){const i=(0,u.useMemo)((()=>XU(t.props.d)),[t.props.d]),o={d:t.props.d,strokeWidth:t.props.strokeWidth??0},a=OG(e,o,function(){const n=function(){return{strokeWidth:t.props.strokeWidth*e.value.scale,d:mG(lG({d:t.props.d,t2:i,frameWidth:i.width*e.value.scale,frameHeight:i.height*e.value.scale,frameLeft:i.x*e.value.scale+e.value.offsetX,frameTop:i.y*e.value.scale+e.value.offsetY}),e.value.rotation,{x:e.value.offsetX+e.value.width/2*e.value.scale,y:e.value.offsetY+e.value.height/2*e.value.scale})}};return n.__closure={element:t,objectInfo:e,rotatePath:mG,transformPath:lG,bbox:i},n.__workletHash=2194707800116,n.__initData=NG,n}());return(0,Al.jsx)(xG,{onPress:n,ref:r,animatedProps:a,stroke:t.props.stroke,fill:"none",strokeLinecap:"round"})}));function zG({variant:e}){return(0,Al.jsx)(eI,{sx:Object.assign({backgroundColor:"Blue/5",position:"absolute",shadowColor:"rgba(0, 0, 0, 0.45)",shadowRadius:4},"left"===e&&{left:0,top:0,bottom:0},"right"===e&&{right:0,top:0,bottom:0},"top"===e&&{top:0,left:0,right:0},"bottom"===e&&{bottom:0,left:0,right:0},{[["left","right"].includes(e)?"width":"height"]:1})})}const VG={"top-left":[-8,-8],"top-right":[8,-8],"bottom-left":[-8,8],"bottom-right":[8,8],top:[-8,-8],bottom:[-8,8],left:[-8,-8],right:[8,-8]},UG={"top-left":{},"top-right":{right:0},"bottom-left":{bottom:0},"bottom-right":{right:0,bottom:0},top:{left:"50%"},bottom:{bottom:0,left:"50%"},left:{top:"50%"},right:{right:0,top:"50%"}};function HG({variant:e,scaleElementGesture:t}){const n=gI();return(0,Al.jsx)(Bi,{gesture:t(e),children:(0,Al.jsx)(eI,{sx:Object.assign({position:"absolute"},UG[e],{width:16,height:16,transform:[{scale:1},{translateX:VG[e][0]},{translateY:VG[e][1]}]}),children:(0,Al.jsxs)(Wk,{viewBox:"-8 -8 16 16",children:[(0,Al.jsx)(Bk,{children:(0,Al.jsxs)(Uk,{id:"circleShadow",children:[(0,Al.jsx)(qk,{offset:"0%",stopColor:"#000000",stopOpacity:.2}),(0,Al.jsx)(qk,{offset:"100%",stopColor:"#000000",stopOpacity:0})]})}),"panel"!==Da.OS&&(0,Al.jsx)(Dk,{fill:"url(#circleShadow)",r:8}),(0,Al.jsx)(Dk,{stroke:n("Blue/5"),fill:"white",r:4})]})})})}const qG={code:"function boxChartToScreen_coordsTs1([x,y,w,h],objectInfo){const{applyToPoints,compose,translate,rotateDEG}=this.__closure;var _points$ref,_points,_points2;const points=applyToPoints(compose(translate(objectInfo.value.offsetX*(1/objectInfo.value.scale),objectInfo.value.offsetY*(1/objectInfo.value.scale)),rotateDEG(objectInfo.value.rotation,objectInfo.value.width/2,objectInfo.value.height/2)),[[x,y],[x+w,y],[x+w,y+h],[x,y+h]]);const ref=(360-objectInfo.value.rotation)/90%4;const[adjLeft,adjTop]=(_points$ref=points[ref])!==null&&_points$ref!==void 0?_points$ref:[0,0];const[nextX]=(_points=points[(ref+1)%4])!==null&&_points!==void 0?_points:[0,0];const adjWidth=nextX-adjLeft;const[,prevY]=(_points2=points[ref-1<0?points.length-1:ref-1])!==null&&_points2!==void 0?_points2:[0,0];const adjHeight=prevY-adjTop;return[adjLeft,adjTop,adjWidth,adjHeight].map(function(v){return v*objectInfo.value.scale;});}"},GG=function(){const e=function([e,t,n,r],i){const o=RH(AH(wH(i.value.offsetX*(1/i.value.scale),i.value.offsetY*(1/i.value.scale)),kH(i.value.rotation,i.value.width/2,i.value.height/2)),[[e,t],[e+n,t],[e+n,t+r],[e,t+r]]),a=(360-i.value.rotation)/90%4,[s,l]=o[a]??[0,0],[c]=o[(a+1)%4]??[0,0],u=c-s,[,h]=o[a-1<0?o.length-1:a-1]??[0,0];return[s,l,u,h-l].map((e=>e*i.value.scale))};return e.__closure={applyToPoints:RH,compose:AH,translate:wH,rotateDEG:kH},e.__workletHash=0xafef47540bc,e.__initData=qG,e}();function YG({frame:e,target:t,objectInfo:n,modifyElement:r}){const[i,o,a,s]=function([e,t,n,r],i){const o=AH(kH(-i.value.rotation,i.value.width/2*i.value.scale,i.value.height/2*i.value.scale),wH(-i.value.offsetX,-i.value.offsetY)),a=RH(o,[[e,t],[e+n,t],[e+n,t+r],[e,t+r]]),s=i.value.rotation/90%4,[l,c]=a[s]??[0,0],[u]=a[(s+1)%4]??[0,0],h=u-l,[,d]=a[s-1<0?a.length-1:s-1]??[0,0];return[l,c,h,d-c].map((e=>e*(1/i.value.scale)))}([e.value.left,e.value.top,e.value.width,e.value.height],n);switch(t?.type){case"ellipse":r(Object.assign({},t,{props:Object.assign({},t.props,{cx:Math.round(i+a/2),cy:Math.round(o+s/2),rx:Math.round(a/2),ry:Math.round(s/2)})}));break;case"rect":r(Object.assign({},t,{props:Object.assign({},t.props,{x:Math.round(i),y:Math.round(o),width:Math.round(a),height:Math.round(s)})}));break;case"path":r(Object.assign({},t,{props:Object.assign({},t.props,{d:lG({d:t.props.d,t2:XU(t.props.d),frameWidth:a,frameHeight:s,frameLeft:i,frameTop:o,precision:0})})}));break;case"text":r(Object.assign({},t,{props:Object.assign({},t.props,{x:Math.round(i),y:Math.round(o)})}))}}const WG={code:"function useElementBoundsTs1(){const{boxChartToScreen,values,objectInfo}=this.__closure;const[x,y,width,height]=boxChartToScreen([values.x,values.y,values.width,values.height],objectInfo);return{x:x,y:y,width:width,height:height};}"};function QG({element:e,objectInfo:t}){const n=(0,u.useMemo)((()=>{switch(e?.type){case"rect":return{x:e.props.x,y:e.props.y,width:e.props.width,height:e.props.height};case"ellipse":return{x:e.props.cx-e.props.rx,y:e.props.cy-e.props.ry,width:2*e.props.rx,height:2*e.props.ry};case"path":return XU(e.props.d);case"text":return{width:100,height:25,x:e.props.x??0,y:e.props.y??0};default:return{x:0,y:0,width:0,height:0}}}),[e]);return(0,mf.useDerivedValue)(function(){const e=function(){const[e,r,i,o]=GG([n.x,n.y,n.width,n.height],t);return{x:e,y:r,width:i,height:o}};return e.__closure={boxChartToScreen:GG,values:n,objectInfo:t},e.__workletHash=0xd45eb5a8b39,e.__initData=WG,e}(),[n,t])}const XG={code:"function useMoveElementGestureTs1(){const{runOnJS,commitChanges,frame,element,objectInfo,modifyElement}=this.__closure;return runOnJS(commitChanges)({frame:frame,target:element,objectInfo:objectInfo,modifyElement:modifyElement});}"},JG={code:"function useMoveElementGestureTs2(e){const{element,frame,elementBounds}=this.__closure;if(!element){return;}const[dX,dY]=[e.translationX,e.translationY];frame.value={...frame.value,left:elementBounds.value.x+dX,top:elementBounds.value.y+dY};}"},ZG={"bottom-left":"nesw-resize","bottom-right":"nwse-resize","top-left":"nwse-resize","top-right":"nesw-resize",bottom:"ns-resize",left:"ew-resize",right:"ew-resize",top:"ns-resize"},KG={code:"function useScaleElementGestureTs1(){const{runOnJS,commitChanges,frame,element,objectInfo,modifyElement}=this.__closure;return runOnJS(commitChanges)({frame:frame,target:element,objectInfo:objectInfo,modifyElement:modifyElement});}"},$G={code:'function useScaleElementGestureTs2(e){const{element,variant,frame,elementBounds,objectInfo}=this.__closure;if(!element){return;}const[dX,dY]=[e.translationX,e.translationY];switch(variant){case"top-left":frame.value={left:Math.min(elementBounds.value.x+elementBounds.value.width-10/objectInfo.value.scale,elementBounds.value.x+dX),width:Math.max(10/objectInfo.value.scale,elementBounds.value.width-dX),top:Math.min(elementBounds.value.y+elementBounds.value.height-10/objectInfo.value.scale,elementBounds.value.y+dY),height:Math.max(10/objectInfo.value.scale,elementBounds.value.height-dY)};break;case"bottom-left":frame.value={...frame.value,left:Math.min(elementBounds.value.x+elementBounds.value.width-10/objectInfo.value.scale,elementBounds.value.x+dX),width:Math.max(10/objectInfo.value.scale,elementBounds.value.width-dX),height:Math.max(10/objectInfo.value.scale,elementBounds.value.height+dY)};break;case"top-right":frame.value={...frame.value,width:Math.max(10/objectInfo.value.scale,elementBounds.value.width+dX),top:Math.min(elementBounds.value.y+elementBounds.value.height-10/objectInfo.value.scale,elementBounds.value.y+dY),height:Math.max(10/objectInfo.value.scale,elementBounds.value.height-dY)};break;case"bottom-right":frame.value={...frame.value,width:Math.max(10/objectInfo.value.scale,elementBounds.value.width+dX),height:Math.max(10/objectInfo.value.scale,elementBounds.value.height+dY)};break;case"top":frame.value={...frame.value,top:Math.min(elementBounds.value.y+elementBounds.value.height-10/objectInfo.value.scale,elementBounds.value.y+dY),height:Math.max(10/objectInfo.value.scale,elementBounds.value.height-dY)};break;case"bottom":frame.value={...frame.value,height:Math.max(10/objectInfo.value.scale,elementBounds.value.height+dY)};break;case"left":frame.value={...frame.value,left:Math.min(elementBounds.value.x+elementBounds.value.width-10/objectInfo.value.scale,elementBounds.value.x+dX),width:Math.max(10/objectInfo.value.scale,elementBounds.value.width-dX)};break;case"right":frame.value={...frame.value,width:Math.max(10/objectInfo.value.scale,elementBounds.value.width+dX)};break;}}'},eY={code:"function ManipulationFrameTsx1(){const{frame}=this.__closure;return{left:frame.value.left,top:frame.value.top,width:frame.value.width,height:frame.value.height,opacity:frame.value.width*frame.value.height<1?0:1};}"};function tY({frame:e,element:t,objectInfo:n,modifyElement:r}){const i=function({frame:e,element:t,objectInfo:n,modifyElement:r}){const i=QG({element:t,objectInfo:n});return to().activeCursor("move").onUpdate(function(){const n=function(n){if(!t)return;const[r,o]=[n.translationX,n.translationY];e.value=Object.assign({},e.value,{left:i.value.x+r,top:i.value.y+o})};return n.__closure={element:t,frame:e,elementBounds:i},n.__workletHash=0xde84049f8a2,n.__initData=JG,n}()).onEnd(function(){const i=()=>(0,mf.runOnJS)(YG)({frame:e,target:t,objectInfo:n,modifyElement:r});return i.__closure={runOnJS:mf.runOnJS,commitChanges:YG,frame:e,element:t,objectInfo:n,modifyElement:r},i.__workletHash=0xaa7e5bd5aed,i.__initData=XG,i}())}({element:t,modifyElement:r,frame:e,objectInfo:n}),o=function({frame:e,element:t,objectInfo:n,modifyElement:r}){const i=QG({element:t,objectInfo:n});return(0,u.useCallback)((o=>so(...[to().activeCursor(ZG[o]).onUpdate(function(){const r=function(r){if(!t)return;const[a,s]=[r.translationX,r.translationY];switch(o){case"top-left":e.value={left:Math.min(i.value.x+i.value.width-10/n.value.scale,i.value.x+a),width:Math.max(10/n.value.scale,i.value.width-a),top:Math.min(i.value.y+i.value.height-10/n.value.scale,i.value.y+s),height:Math.max(10/n.value.scale,i.value.height-s)};break;case"bottom-left":e.value=Object.assign({},e.value,{left:Math.min(i.value.x+i.value.width-10/n.value.scale,i.value.x+a),width:Math.max(10/n.value.scale,i.value.width-a),height:Math.max(10/n.value.scale,i.value.height+s)});break;case"top-right":e.value=Object.assign({},e.value,{width:Math.max(10/n.value.scale,i.value.width+a),top:Math.min(i.value.y+i.value.height-10/n.value.scale,i.value.y+s),height:Math.max(10/n.value.scale,i.value.height-s)});break;case"bottom-right":e.value=Object.assign({},e.value,{width:Math.max(10/n.value.scale,i.value.width+a),height:Math.max(10/n.value.scale,i.value.height+s)});break;case"top":e.value=Object.assign({},e.value,{top:Math.min(i.value.y+i.value.height-10/n.value.scale,i.value.y+s),height:Math.max(10/n.value.scale,i.value.height-s)});break;case"bottom":e.value=Object.assign({},e.value,{height:Math.max(10/n.value.scale,i.value.height+s)});break;case"left":e.value=Object.assign({},e.value,{left:Math.min(i.value.x+i.value.width-10/n.value.scale,i.value.x+a),width:Math.max(10/n.value.scale,i.value.width-a)});break;case"right":e.value=Object.assign({},e.value,{width:Math.max(10/n.value.scale,i.value.width+a)})}};return r.__closure={element:t,variant:o,frame:e,elementBounds:i,objectInfo:n},r.__workletHash=0xdb9d171a3d6,r.__initData=$G,r}()).onEnd(function(){const i=()=>(0,mf.runOnJS)(YG)({frame:e,target:t,objectInfo:n,modifyElement:r});return i.__closure={runOnJS:mf.runOnJS,commitChanges:YG,frame:e,element:t,objectInfo:n,modifyElement:r},i.__workletHash=3283814168964,i.__initData=KG,i}()),"panel"!==Da.OS?ao().activeCursor(ZG[o]):null].filter((function(e){return null!==e})))),[t,i,e,r,n])}({element:t,modifyElement:r,frame:e,objectInfo:n}),a=(0,mf.useAnimatedStyle)(function(){const t=()=>({left:e.value.left,top:e.value.top,width:e.value.width,height:e.value.height,opacity:e.value.width*e.value.height<1?0:1});return t.__closure={frame:e},t.__workletHash=0x9a24d787bc1,t.__initData=eY,t}(),[e]);return(0,Al.jsxs)(mf.default.View,{style:[{position:"absolute"},a],children:[(0,Al.jsx)(Bi,{gesture:i,children:(0,Al.jsx)(eI,{sx:{position:"absolute",left:0,top:0,right:0,bottom:0}})}),(0,Al.jsx)(zG,{variant:"left"}),(0,Al.jsx)(zG,{variant:"right"}),(0,Al.jsx)(zG,{variant:"top"}),(0,Al.jsx)(zG,{variant:"bottom"}),"text"!==t?.type&&(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsx)(HG,{variant:"top-left",scaleElementGesture:o}),(0,Al.jsx)(HG,{variant:"top-right",scaleElementGesture:o}),(0,Al.jsx)(HG,{variant:"bottom-left",scaleElementGesture:o}),(0,Al.jsx)(HG,{variant:"bottom-right",scaleElementGesture:o}),(0,Al.jsx)(HG,{variant:"top",scaleElementGesture:o}),(0,Al.jsx)(HG,{variant:"bottom",scaleElementGesture:o}),(0,Al.jsx)(HG,{variant:"left",scaleElementGesture:o}),(0,Al.jsx)(HG,{variant:"right",scaleElementGesture:o})]})]})}function nY(e){return(0,Al.jsx)(rY,Object.assign({backgroundColor:"Red/500",borderColor:"Red/300"},e))}function rY({Icon:e,backgroundColor:t,borderColor:n,onPress:r,title:i}){const o=pI();return(0,Al.jsx)(ls.A,{title:i,style:{borderRadius:20,width:24,height:24},onPress:r,children:({hovered:r,pressed:i})=>(0,Al.jsxs)(eI,{style:[o({backgroundColor:t,borderColor:n,borderWidth:1,boxShadow:i?void 0:"sm",width:24,height:24,borderRadius:20,alignItems:"center",justifyContent:"center"})],children:[(0,Al.jsx)(e,{size:24}),(0,Al.jsx)(eI,{style:[{position:"absolute",left:-1,top:-1,right:-1,bottom:-1,borderRadius:20},{backgroundColor:r&&i?"rgba(255, 255, 255, 0.08)":"rgba(255, 255, 255, 0)"}]})]})})}const iY=()=>(0,Al.jsx)(SU,{width:24,height:24}),oY={code:"function RemoveElementButtonTsx1(){const{frame}=this.__closure;const left=frame.value.left+frame.value.width/2-12;const top=frame.value.top+frame.value.height+12;return{left:left,top:top,opacity:frame.value.width*frame.value.height<1?0:1};}"};function aY({frame:e,onPress:t}){const n=(0,mf.useAnimatedStyle)(function(){const t=function(){return{left:e.value.left+e.value.width/2-12,top:e.value.top+e.value.height+12,opacity:e.value.width*e.value.height<1?0:1}};return t.__closure={frame:e},t.__workletHash=0xe1cbe8b3f4f,t.__initData=oY,t}(),[e]);return(0,Al.jsx)(mf.default.View,{style:[{position:"absolute",width:24,height:24},n],children:(0,Al.jsx)(nY,{title:"Delete annotation",Icon:iY,onPress:t})})}const sY=mf.default.createAnimatedComponent(Hk),lY={code:"function VisibleAreaBlockerTsx1(){const{objectInfo}=this.__closure;const qFlipped=objectInfo.value.rotation/90%2===1;return{width:!qFlipped?0:(objectInfo.value.width-objectInfo.value.height)/2,height:!qFlipped?0:(objectInfo.value.height-objectInfo.value.width)/2};}"},cY={code:"function VisibleAreaBlockerTsx2(){const{objectInfo,compensation}=this.__closure;return{x:0,y:0,width:Math.max(0,objectInfo.value.offsetX+compensation.value.width*objectInfo.value.scale),height:Math.max(0,objectInfo.value.offsetY+(objectInfo.value.height+compensation.value.height)*objectInfo.value.scale)};}"},uY={code:"function VisibleAreaBlockerTsx3(){const{objectInfo,compensation,size}=this.__closure;return{x:0,y:objectInfo.value.offsetY+(objectInfo.value.height-compensation.value.height)*objectInfo.value.scale,width:size.value[0],height:Math.max(0,size.value[1]-(objectInfo.value.offsetY+(objectInfo.value.height-compensation.value.height)*objectInfo.value.scale))};}"},hY={code:"function VisibleAreaBlockerTsx4(){const{objectInfo,compensation,size}=this.__closure;return{x:objectInfo.value.offsetX+(objectInfo.value.width-compensation.value.width)*objectInfo.value.scale,y:0,width:Math.max(0,size.value[0]-(objectInfo.value.offsetX+(objectInfo.value.width-compensation.value.width)*objectInfo.value.scale)),height:size.value[1]};}"},dY={code:"function VisibleAreaBlockerTsx5(){const{size,objectInfo,compensation}=this.__closure;return{x:0,y:0,width:size.value[0],height:Math.max(0,objectInfo.value.offsetY+compensation.value.height*objectInfo.value.scale)};}"};function fY({objectInfo:e,size:t,type:n}){const r=gI(),i=(0,mf.useDerivedValue)(function(){const t=function(){const t=e.value.rotation/90%2==1;return{width:t?(e.value.width-e.value.height)/2:0,height:t?(e.value.height-e.value.width)/2:0}};return t.__closure={objectInfo:e},t.__workletHash=6163185721671,t.__initData=lY,t}(),[e]),o=(0,mf.useAnimatedProps)(function(){const t=()=>({x:0,y:0,width:Math.max(0,e.value.offsetX+i.value.width*e.value.scale),height:Math.max(0,e.value.offsetY+(e.value.height+i.value.height)*e.value.scale)});return t.__closure={objectInfo:e,compensation:i},t.__workletHash=753811124393,t.__initData=cY,t}(),[e,i]),a=(0,mf.useAnimatedProps)(function(){const n=()=>({x:0,y:e.value.offsetY+(e.value.height-i.value.height)*e.value.scale,width:t.value[0],height:Math.max(0,t.value[1]-(e.value.offsetY+(e.value.height-i.value.height)*e.value.scale))});return n.__closure={objectInfo:e,compensation:i,size:t},n.__workletHash=0xddd72fb5576,n.__initData=uY,n}(),[e,i,t]),s=(0,mf.useAnimatedProps)(function(){const n=()=>({x:e.value.offsetX+(e.value.width-i.value.width)*e.value.scale,y:0,width:Math.max(0,t.value[0]-(e.value.offsetX+(e.value.width-i.value.width)*e.value.scale)),height:t.value[1]});return n.__closure={objectInfo:e,compensation:i,size:t},n.__workletHash=0xbdaff34a331,n.__initData=hY,n}(),[e,i,t]),l=(0,mf.useAnimatedProps)(function(){const n=function(){return{x:0,y:0,width:t.value[0],height:Math.max(0,e.value.offsetY+i.value.height*e.value.scale)}};return n.__closure={size:t,objectInfo:e,compensation:i},n.__workletHash=5110227416630,n.__initData=dY,n}(),[e,i,t]);return(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsx)(sY,{fill:r("chart"===n?"Background/700":"Background/600"),animatedProps:o}),(0,Al.jsx)(sY,{fill:r({chart:"Background/700",scratchpad:"Background/600",OFP:"Background/600"}[n]??"Background/600"),animatedProps:a}),(0,Al.jsx)(sY,{fill:r({chart:"Background/700",scratchpad:"Background/600",OFP:"Background/600"}[n]??"Background/600"),animatedProps:s}),(0,Al.jsx)(sY,{fill:r({chart:"Background/700",scratchpad:"Background/600",OFP:"Background/600"}[n]??"Background/600"),animatedProps:l})]})}const pY=mf.default.createAnimatedComponent(Vk),mY=mf.default.createAnimatedComponent(Hk),gY=(mf.default.createAnimatedComponent(Dk),mf.default.createAnimatedComponent(Nk),mf.default.createAnimatedComponent(Lk),mf.default.createAnimatedComponent(Fk)),yY={code:'function componentsTs1(props){const{Platform,processColor}=this.__closure;if(Platform.OS==="web"){return;}if(Object.keys(props).includes("fill")){props.fill={type:0,payload:processColor(props.fill)};}if(Object.keys(props).includes("stroke")){props.stroke={type:0,payload:processColor(props.stroke)};}}'},vY=(0,mf.createAnimatedPropAdapter)(function(){const e=function(e){};return e.__closure={Platform:aa.A,processColor:mf.processColor},e.__workletHash=3614340007645,e.__initData=yY,e}(),["fill","stroke"]),bY={code:"function VisibleAreaClipPathTsx1(){const{rotateRect,objectInfo}=this.__closure;const{x:x,y:y,width:width,height:height}=rotateRect(objectInfo.value.offsetX,objectInfo.value.offsetY,objectInfo.value.width*objectInfo.value.scale,objectInfo.value.height*objectInfo.value.scale,objectInfo.value.rotation,objectInfo.value.offsetX+objectInfo.value.width/2*objectInfo.value.scale,objectInfo.value.offsetY+objectInfo.value.height/2*objectInfo.value.scale);return{x:x,y:y,width:width,height:height};}"};function AY({objectInfo:e,id:t}){const n=(0,mf.useAnimatedProps)(function(){const t=function(){const{x:t,y:n,width:r,height:i}=yG(e.value.offsetX,e.value.offsetY,e.value.width*e.value.scale,e.value.height*e.value.scale,e.value.rotation,e.value.offsetX+e.value.width/2*e.value.scale,e.value.offsetY+e.value.height/2*e.value.scale);return{x:t,y:n,width:r,height:i}};return t.__closure={rotateRect:yG,objectInfo:e},t.__workletHash=6046178731602,t.__initData=bY,t}(),[e]);return(0,Al.jsx)(Bk,{children:(0,Al.jsx)(jk,{id:t,children:(0,Al.jsx)(mY,{animatedProps:n})})})}function xY(e,t){const n=(0,u.useRef)(e);(0,u.useEffect)((()=>{n.current!==e&&(t(n.current,e),n.current=e)}),[e,t])}const wY={code:"function useApplyStylusModeGestureHelpersTs1(event,stateManager){const{stylusMode,PointerType,State}=this.__closure;if(event.numberOfTouches!==1||stylusMode&&event.pointerType!==PointerType.STYLUS){stateManager.fail();return;}if(event.state===State.BEGAN){stateManager.activate();}}"},CY={code:"function useApplyStylusModeGestureHelpersTs2(event,stateManager){if(event.numberOfTouches!==1){stateManager.fail();return;}}"},SY={code:"function useApplyStylusModeGestureHelpersTs3(e){const{PointerType,runOnJS,setStylusMode}=this.__closure;if(e.pointerType===PointerType.STYLUS){runOnJS(setStylusMode)(true);}}"},EY={code:"function stylusModeGuard_useApplyStylusModeGestureHelpersTs4(e){const{stylusMode,PointerType}=this.__closure;return stylusMode&&e.pointerType!==PointerType.STYLUS;}"};function kY(){const[e,t]=XC(OF);return{withStylusMode:(0,u.useCallback)((function(n){return n.manualActivation(!0).onTouchesMove(function(){const t=function(t,n){1!==t.numberOfTouches||e&&t.pointerType!==N.STYLUS?n.fail():t.state===l.BEGAN&&n.activate()};return t.__closure={stylusMode:e,PointerType:N,State:l},t.__workletHash=0xa3d4d471eec,t.__initData=wY,t}()).onTouchesDown(function(){const e=function(e,t){1===e.numberOfTouches||t.fail()};return e.__closure={},e.__workletHash=3510073271489,e.__initData=CY,e}()).onStart(function(){const e=function(e){e.pointerType===N.STYLUS&&(0,mf.runOnJS)(t)(!0)};return e.__closure={PointerType:N,runOnJS:mf.runOnJS,setStylusMode:t},e.__workletHash=6976420632599,e.__initData=SY,e}())}),[t,e]),stylusModeGuard:(0,u.useCallback)(function(){const t=function(t){return e&&t.pointerType!==N.STYLUS};return t.__closure={stylusMode:e,PointerType:N},t.__workletHash=7401721259289,t.__initData=EY,t}(),[e])}}const TY=mf.default.createAnimatedComponent(Lk),IY={code:"function useEllipseAnnotationTsx1(){const{center,radiusX,radiusY,isActive,scale}=this.__closure;return{cx:center.value[0],cy:center.value[1],rx:radiusX.value,ry:radiusY.value,opacity:isActive.value?1:0,strokeWidth:10*scale.value};}"},OY={code:'function useEllipseAnnotationTsx2(e,success){const{stylusModeGuard,runOnJS,appendElement,shapeVariant,color}=this.__closure;if(!success||e.numberOfPointers>1||stylusModeGuard(e)){return;}const[x,y]=[e.x,e.y];runOnJS(appendElement)({type:"ellipse",props:{cx:Math.round(x),cy:Math.round(y),rx:50,ry:50,fill:shapeVariant==="filled"?color:"none",stroke:shapeVariant==="outlined"?color:"none",strokeWidth:shapeVariant==="outlined"?10:undefined}});}'},RY={code:'function useEllipseAnnotationTsx3(){const{radiusX,radiusY,runOnJS,appendElement,center,shapeVariant,color,isActive}=this.__closure;const defaultSize=radiusX.value<2&&radiusY.value<2;runOnJS(appendElement)({type:"ellipse",props:{cx:Math.round(center.value[0]),cy:Math.round(center.value[1]),rx:defaultSize?50:Math.round(radiusX.value),ry:defaultSize?50:Math.round(radiusY.value),fill:shapeVariant==="filled"?color:"none",stroke:shapeVariant==="outlined"?color:"none",strokeWidth:shapeVariant==="outlined"?10:undefined}});isActive.value=false;}'},MY={code:"function useEllipseAnnotationTsx4(e){const{origin,radiusX,radiusY,center,isActive}=this.__closure;const[dX,dY]=[(e.x-origin.value[0])/2,(e.y-origin.value[1])/2];radiusX.value=Math.abs(dX);radiusY.value=Math.abs(dY);center.value=[origin.value[0]+dX,origin.value[1]+dY];isActive.value=true;}"},PY={code:"function useEllipseAnnotationTsx5(e){const{origin,radiusX,radiusY}=this.__closure;origin.value=[e.x,e.y];radiusX.value=1;radiusY.value=1;}"},DY=(e,t)=>Math.sqrt(e*e+t*t),jY=(e,t)=>({x:e,y:t}),BY=(e,t)=>jY(e.x+t.x,e.y+t.y),LY=(e,t)=>jY(e.x-t.x,e.y-t.y),FY=(e,t)=>jY(e.x*t,e.y*t),NY=(e,t)=>e.x*t.x+e.y*t.y,_Y=(e,t)=>DY(e.x-t.x,e.y-t.y),zY=(e,t=1)=>FY(e,t/((e=>DY(e.x,e.y))(e)||1/0)),VY=(e,t)=>({p:e,i:t}),UY=(e,t,n,r,i,o,a)=>{if(i-r==1){const n=e[r],s=e[i],l=_Y(n,s)/3;return void HY(t,[n,BY(n,zY(o,l)),BY(s,zY(a,l)),s])}const s=QY(e,r,i);let l,c=Math.max(n,n*n),u=!0;for(let h=0;h<=4;h++){const h=qY(e,r,i,s,o,a),d=XY(e,r,i,h,s);if(d.error=c)break;u=GY(e,r,i,s,h),c=d.error}const h=LY(e[l-1],e[l+1]);var d;UY(e,t,n,r,l,o,h),UY(e,t,n,l,i,jY(-(d=h).x,-d.y),a)},HY=(e,t)=>{e[e.length-1].o=LY(t[1],t[0]),e.push(VY(t[3],LY(t[2],t[3])))},qY=(e,t,n,r,i,o)=>{const a=1e-12,s=Math.abs,l=e[t],c=e[n],u=[[0,0],[0,0]],h=[0,0];for(let a=0,s=n-t+1;aa){const e=u[0][0]*h[1]-u[1][0]*h[0];f=(h[0]*u[1][1]-h[1]*u[0][1])/d,p=e/d}else{const e=u[0][0]+u[0][1],t=u[1][0]+u[1][1];f=p=s(e)>a?h[0]/e:s(t)>a?h[1]/t:0}const m=_Y(c,l),g=a*m;let y,v;if(fm*m&&(f=p=m/3,y=v=null)}return[l,BY(l,y||zY(i,f)),BY(c,v||zY(o,p)),c]},GY=(e,t,n,r,i)=>{for(let o=t;o<=n;o++)r[o-t]=YY(i,e[o],r[o-t]);for(let e=1,t=r.length;e{const r=[],i=[];for(let t=0;t<=2;t++)r[t]=FY(LY(e[t+1],e[t]),3);for(let e=0;e<=1;e++)i[e]=FY(LY(r[e+1],r[e]),2);const o=WY(3,e,n),a=WY(2,r,n),s=WY(1,i,n),l=LY(o,t),c=NY(a,a)+NY(l,s);return(u=c)>=-112e-18&&u<=112e-18?n:n-NY(l,a)/c;var u},WY=(e,t,n)=>{const r=t.slice();for(let t=1;t<=e;t++)for(let i=0;i<=e-t;i++)r[i]=BY(FY(r[i],1-n),FY(r[i+1],n));return r[0]},QY=(e,t,n)=>{const r=[0];for(let i=t+1;i<=n;i++)r[i-t]=r[i-t-1]+_Y(e[i],e[i-1]);for(let e=1,i=n-t;e<=i;e++)r[e]/=r[i];return r},XY=(e,t,n,r,i)=>{let o=Math.floor((n-t+1)/2),a=0;for(let s=t+1;s=a&&(a=c,o=s)}return{error:a,index:o}},JY=(e,t={})=>0===e.length?"":((e,t,n)=>{const r=e.length,i=10**n,o=n<16?e=>Math.round(e*i)/i:e=>e,a=(e,t)=>o(e)+","+o(t);let s,l,c,u,h=!0;const d=[],f=(e,t)=>{const n=e.p.x,r=e.p.y;if(h)d.push("M"+a(n,r)),h=!1;else{const i=n+(e.i?.x??0),h=r+(e.i?.y??0);if(i===n&&h===r&&c===s&&u===l){if(!t){const e=n-s,t=r-l;d.push(0===e?"v"+o(t):0===t?"h"+o(e):"l"+a(e,t))}}else d.push("c"+a(c-s,u-l)+" "+a(i-s,h-l)+" "+a(n-s,r-l))}s=n,l=r,c=n+(e.o?.x??0),u=r+(e.o?.y??0)};if(!r)return"";for(let t=0;t0&&(f(e[0],!0),d.push("z")),d.join("")})(((e,t,n)=>{t&&(e.unshift(e[e.length-1]),e.push(e[1]));const r=e.length;if(0===r)return[];const i=[VY(e[0])];return UY(e,i,n,0,r-1,LY(e[1],e[0]),LY(e[r-2],e[r-1])),t&&(i.shift(),i.pop()),i})(e.map("number"==typeof e[0].x?e=>jY(e.x,e.y):e=>jY(e[0],e[1])),t.closed,t.tolerance??2.5),t.closed,t.precision??5),ZY=mf.default.createAnimatedComponent(Vk),KY=[2,4,8,16,24],$Y={code:'function usePathAnnotationTsx1(){const{path,isActive,LINE_WIDTHS,pathSize,objectInfo}=this.__closure;return{d:path.value.length>0?path.value.map(function([x,y],index){return(index===0?"M":"L")+" "+x+" "+y;}).join(" "):"M0,0 l0,0",opacity:isActive.value?1:0,strokeWidth:LINE_WIDTHS[pathSize]*objectInfo.value.scale};}'},eW={code:"function usePathAnnotationTsx2(){const{path,runOnJS,updateElements,isActive}=this.__closure;if(path.value.length<=1){return;}const d=path.value;path.value=[];runOnJS(updateElements)(d);isActive.value=false;}"},tW={code:"function usePathAnnotationTsx3(e){const{path,isActive}=this.__closure;path.value=[...path.value,[e.x,e.y]];isActive.value=true;}"},nW={code:"function usePathAnnotationTsx4(e){const{path}=this.__closure;path.value=[[e.x,e.y]];}"},rW=mf.default.createAnimatedComponent(Vk),iW={code:'function useRectAnnotationTsx1(){const{currentRect,isActive,scale}=this.__closure;return{d:["M"+currentRect.value.x+","+currentRect.value.y,"l"+currentRect.value.width+",0","l0,"+currentRect.value.height,"l"+-currentRect.value.width+",0","z"].join(" "),opacity:isActive.value?1:0,strokeWidth:10*scale.value};}'},oW={code:'function useRectAnnotationTsx2(e,success){const{stylusModeGuard,runOnJS,appendElement,shapeVariant,color}=this.__closure;if(!success||e.numberOfPointers>1||stylusModeGuard(e)){return;}const[x,y]=[e.x,e.y];runOnJS(appendElement)({type:"rect",props:{x:Math.round(x)-50,y:Math.round(y)-50,width:100,height:100,fill:shapeVariant==="filled"?color:"none",stroke:shapeVariant==="outlined"?color:"none",strokeWidth:shapeVariant==="outlined"?10:undefined}});}'},aW={code:'function useRectAnnotationTsx3(){const{currentRect,runOnJS,appendElement,shapeVariant,color,isActive}=this.__closure;const defaultSize=currentRect.value.width<2&¤tRect.value.height<2;runOnJS(appendElement)({type:"rect",props:{x:Math.round(currentRect.value.x)-(defaultSize?50:0),y:Math.round(currentRect.value.y)-(defaultSize?50:0),width:defaultSize?100:Math.round(currentRect.value.width),height:defaultSize?100:Math.round(currentRect.value.height),fill:shapeVariant==="filled"?color:"none",stroke:shapeVariant==="outlined"?color:"none",strokeWidth:shapeVariant==="outlined"?10:undefined}});isActive.value=false;}'},sW={code:"function useRectAnnotationTsx4(e){const{origin,currentRect}=this.__closure;const[dX,dY]=[e.x-origin.value[0],e.y-origin.value[1]];const xIsNegative=dX<0;const yIsNegative=dY<0;currentRect.value={x:xIsNegative?origin.value[0]+dX:origin.value[0],y:yIsNegative?origin.value[1]+dY:origin.value[1],width:Math.abs(dX),height:Math.abs(dY)};}"},lW={code:"function useRectAnnotationTsx5(e){const{origin,currentRect,isActive}=this.__closure;origin.value=[e.x,e.y];currentRect.value={x:origin.value[0],y:origin.value[1],width:0,height:0};isActive.value=true;}"},cW={code:'function useTextAnnotationTs1(e,success){const{applyToPoint,compose,rotateDEG,objectInfo,tmScale,translate,Platform,textSize,xy,runOnJS,setChartAnnotationMode}=this.__closure;if(!success||e.numberOfPointers>1){return;}const point=applyToPoint(compose(rotateDEG(-objectInfo.value.rotation,objectInfo.value.width/2,objectInfo.value.height/2),tmScale(1/objectInfo.value.scale,1/objectInfo.value.scale),translate(-objectInfo.value.offsetX,-objectInfo.value.offsetY)),{x:e.x,y:e.y-(Platform.OS==="web"?textSize/2:0)});xy.value=[Math.round(point.x),Math.round(point.y),e.absoluteX,e.absoluteY-textSize/2];runOnJS(setChartAnnotationMode)("typing");}'},uW=mf.default.createAnimatedComponent(Wk),hW={code:"function AnnotationOverlayTsx1(){const{pathIsActive,ellipseIsActive,rectIsActive,textIsActive}=this.__closure;return pathIsActive.value||ellipseIsActive.value||rectIsActive.value||textIsActive.value;}"},dW={code:"function AnnotationOverlayTsx2(prepared){const{isActive}=this.__closure;isActive.value=prepared;}"};function fW({scale:e,rotation:t,enabled:n,chart:r,scratchpad:i,objectInfo:o,type:a="chart",isActive:s}){const l=WC(bF),c=WC(vF),h=WC(wF),d=function({chart:e,scratchpad:t},n){switch(n){case"chart":return e?.id;case"scratchpad":return t?.id;default:return}}({chart:r,scratchpad:i},a),{isReady:f,data:p}=eH({type:a,objectId:d}),m=rH(),g=(0,mf.useSharedValue)({left:0,top:0,width:0,height:0}),y=(0,u.useCallback)((e=>{let t=null;const n=fq(vq(-o.value.rotation,o.value.width/2,o.value.height/2),bq(1/o.value.scale,1/o.value.scale),hq(-o.value.offsetX,-o.value.offsetY));switch(e.type){case"ellipse":{const{x:r,y:i}=tq(n,{x:e.props.cx,y:e.props.cy});t=Object.assign({},e,{props:Object.assign({},e.props,{cx:r,cy:i,rx:(0!==Math.floor(o.value.rotation/90%2)?e.props.ry:e.props.rx)*(1/o.value.scale),ry:(0!==Math.floor(o.value.rotation/90%2)?e.props.rx:e.props.ry)*(1/o.value.scale)})});break}case"rect":{const r=nq(n,[[e.props.x,e.props.y],[e.props.x+e.props.width,e.props.y],[e.props.x+e.props.width,e.props.y+e.props.height],[e.props.x,e.props.y+e.props.height]]),i=o.value.rotation/90%4,[a,s]=r.at(i)??[0,0],[l]=r.at((i+1)%4)??[0,0],c=l-a,[,u]=r.at(i-1)??[0,0],h=u-s;t=Object.assign({},e,{props:Object.assign({},e.props,{x:a,y:s,width:c,height:h})});break}case"path":{const n=XU(e.props.d);t=Object.assign({},e,{props:Object.assign({},e.props,{d:lG({d:e.props.d,frameHeight:n.height,frameLeft:n.x,frameTop:n.y,frameWidth:n.width,t2:n,precision:0})})});break}case"text":{const n=o.value.scale,r=e.props.x,i=e.props.y,a=nq(vq(-o.value.rotation,o.value.width/2,o.value.height/2),[[r,i]]),[s,l]=a[0];t=Object.assign({},e,{props:Object.assign({},e.props,{x:s,y:l,size:e.props.size*(1/n)})});break}}t&&m(t,a,d)}),[m,a,o,d]),v=(0,mf.useSharedValue)([0,0]),[b,A]=XC(kF);(0,u.useEffect)((()=>{n||A(null)}),[n,A]);const{gesture:x,currentElement:w,isActive:C}=function({objectInfo:e,color:t,appendElement:n,enabled:r}){const{withStylusMode:i}=kY(),o=(0,mf.useSharedValue)(!1),a=WC(CF),s=(0,mf.useSharedValue)([]),l=(0,mf.useAnimatedProps)(function(){const t=()=>({d:s.value.length>0?s.value.map((([e,t],n)=>`${0===n?"M":"L"} ${e} ${t}`)).join(" "):"M0,0 l0,0",opacity:o.value?1:0,strokeWidth:KY[a]*e.value.scale});return t.__closure={path:s,isActive:o,LINE_WIDTHS:KY,pathSize:a,objectInfo:e},t.__workletHash=2107954141844,t.__initData=$Y,t}(),[s,o,e,a]),c=(0,u.useCallback)((function(r){n({type:"path",props:{d:JY(nq(fq(vq(-e.value.rotation,e.value.width/2,e.value.height/2),bq(1/e.value.scale,1/e.value.scale),hq(-e.value.offsetX,-e.value.offsetY)),r),{tolerance:.5,precision:0}),stroke:KY[a]<=2?t.slice(0,-2):t,strokeWidth:KY[a]}})}),[n,t,a,e]),h=(0,u.useMemo)((()=>so(i(to().enabled(r).minDistance(1).activeCursor("crosshair").maxPointers(1).onBegin(function(){const e=function(e){s.value=[[e.x,e.y]]};return e.__closure={path:s},e.__workletHash=0xc12fe31c477,e.__initData=nW,e}()).onUpdate(function(){const e=function(e){s.value=[...s.value,[e.x,e.y]],o.value=!0};return e.__closure={path:s,isActive:o},e.__workletHash=6305154557507,e.__initData=tW,e}()).onEnd(function(){const e=function(){if(s.value.length<=1)return;const e=s.value;s.value=[],(0,mf.runOnJS)(c)(e),o.value=!1};return e.__closure={path:s,runOnJS:mf.runOnJS,updateElements:c,isActive:o},e.__workletHash=8171174137902,e.__initData=eW,e}())),eo().enabled(r))),[i,r,s,o,c]);return{currentElement:(0,Al.jsx)(ZY,{fill:"none",stroke:t,strokeLinecap:"round",animatedProps:l,transform:[{translateX:0}]}),gesture:h,isActive:o}}({objectInfo:o,color:h,appendElement:y,enabled:n&&"drawing"===l&&"path"===c}),{gesture:S,currentElement:E,isActive:k}=function({scale:e,color:t,appendElement:n,enabled:r}){const{withStylusMode:i,stylusModeGuard:o}=kY(),a=WC(EF),s=(0,mf.useSharedValue)(!1),l=(0,mf.useSharedValue)([0,0]),c=(0,mf.useSharedValue)(0),h=(0,mf.useSharedValue)(0),d=(0,mf.useSharedValue)([0,0]),f=(0,mf.useAnimatedProps)(function(){const t=()=>({cx:d.value[0],cy:d.value[1],rx:c.value,ry:h.value,opacity:s.value?1:0,strokeWidth:10*e.value});return t.__closure={center:d,radiusX:c,radiusY:h,isActive:s,scale:e},t.__workletHash=4150792195083,t.__initData=IY,t}(),[d,c,h,s,e]),p=(0,u.useMemo)((()=>so(eo().enabled(r).maxDuration(100).onFinalize(function(){const e=function(e,r){if(!r||e.numberOfPointers>1||o(e))return;const[i,s]=[e.x,e.y];(0,mf.runOnJS)(n)({type:"ellipse",props:{cx:Math.round(i),cy:Math.round(s),rx:50,ry:50,fill:"filled"===a?t:"none",stroke:"outlined"===a?t:"none",strokeWidth:"outlined"===a?10:void 0}})};return e.__closure={stylusModeGuard:o,runOnJS:mf.runOnJS,appendElement:n,shapeVariant:a,color:t},e.__workletHash=7907952828132,e.__initData=OY,e}()),i(to().enabled(r).activeCursor("crosshair").maxPointers(1).onBegin(function(){const e=function(e){l.value=[e.x,e.y],c.value=1,h.value=1};return e.__closure={origin:l,radiusX:c,radiusY:h},e.__workletHash=0xa7fca21c177,e.__initData=PY,e}()).onUpdate(function(){const e=function(e){const[t,n]=[(e.x-l.value[0])/2,(e.y-l.value[1])/2];c.value=Math.abs(t),h.value=Math.abs(n),d.value=[l.value[0]+t,l.value[1]+n],s.value=!0};return e.__closure={origin:l,radiusX:c,radiusY:h,center:d,isActive:s},e.__workletHash=2322755919317,e.__initData=MY,e}()).onEnd(function(){const e=function(){const e=c.value<2&&h.value<2;(0,mf.runOnJS)(n)({type:"ellipse",props:{cx:Math.round(d.value[0]),cy:Math.round(d.value[1]),rx:e?50:Math.round(c.value),ry:e?50:Math.round(h.value),fill:"filled"===a?t:"none",stroke:"outlined"===a?t:"none",strokeWidth:"outlined"===a?10:void 0}}),s.value=!1};return e.__closure={radiusX:c,radiusY:h,runOnJS:mf.runOnJS,appendElement:n,center:d,shapeVariant:a,color:t,isActive:s},e.__workletHash=337259180512,e.__initData=RY,e}())))),[r,i,o,n,a,t,l,c,h,d,s]);return{currentElement:(0,Al.jsx)(TY,{pointerEvents:"none",fill:"filled"===a?t:"none",stroke:"outlined"===a?t:"none",animatedProps:f}),gesture:p,isActive:s}}({scale:e,rotation:t,size:v,color:h,appendElement:y,enabled:n&&"drawing"===l&&"ellipse"===c}),{gesture:T,currentElement:I,isActive:O}=function({scale:e,color:t,appendElement:n,enabled:r}){const{withStylusMode:i,stylusModeGuard:o}=kY(),a=(0,mf.useSharedValue)(!1),s=WC(EF),l=(0,mf.useSharedValue)([0,0]),c=(0,mf.useSharedValue)({width:0,height:0,x:0,y:0}),h=(0,mf.useAnimatedProps)(function(){const t=()=>({d:[`M${c.value.x},${c.value.y}`,`l${c.value.width},0`,`l0,${c.value.height}`,`l${-c.value.width},0`,"z"].join(" "),opacity:a.value?1:0,strokeWidth:10*e.value});return t.__closure={currentRect:c,isActive:a,scale:e},t.__workletHash=3675462545057,t.__initData=iW,t}(),[c,a,e]),d=(0,u.useMemo)((()=>so(eo().enabled(r).maxDuration(100).onFinalize(function(){const e=function(e,r){if(!r||e.numberOfPointers>1||o(e))return;const[i,a]=[e.x,e.y];(0,mf.runOnJS)(n)({type:"rect",props:{x:Math.round(i)-50,y:Math.round(a)-50,width:100,height:100,fill:"filled"===s?t:"none",stroke:"outlined"===s?t:"none",strokeWidth:"outlined"===s?10:void 0}})};return e.__closure={stylusModeGuard:o,runOnJS:mf.runOnJS,appendElement:n,shapeVariant:s,color:t},e.__workletHash=0xcc0fc3d773c,e.__initData=oW,e}()),i(to().enabled(r).activeCursor("crosshair").maxPointers(1).onBegin(function(){const e=function(e){l.value=[e.x,e.y],c.value={x:l.value[0],y:l.value[1],width:0,height:0},a.value=!0};return e.__closure={origin:l,currentRect:c,isActive:a},e.__workletHash=0x9e2ec836dd8,e.__initData=lW,e}()).onUpdate(function(){const e=function(e){const[t,n]=[e.x-l.value[0],e.y-l.value[1]],r=t<0,i=n<0;c.value={x:r?l.value[0]+t:l.value[0],y:i?l.value[1]+n:l.value[1],width:Math.abs(t),height:Math.abs(n)}};return e.__closure={origin:l,currentRect:c},e.__workletHash=2811213086302,e.__initData=sW,e}()).onEnd(function(){const e=function(){const e=c.value.width<2&&c.value.height<2;(0,mf.runOnJS)(n)({type:"rect",props:{x:Math.round(c.value.x)-(e?50:0),y:Math.round(c.value.y)-(e?50:0),width:e?100:Math.round(c.value.width),height:e?100:Math.round(c.value.height),fill:"filled"===s?t:"none",stroke:"outlined"===s?t:"none",strokeWidth:"outlined"===s?10:void 0}}),a.value=!1};return e.__closure={currentRect:c,runOnJS:mf.runOnJS,appendElement:n,shapeVariant:s,color:t,isActive:a},e.__workletHash=7785780095195,e.__initData=aW,e}())))),[r,i,o,n,s,t,l,c,a]);return{currentElement:(0,Al.jsx)(rW,{pointerEvents:"none",fill:"filled"===s?t:"none",stroke:"outlined"===s?t:"none",animatedProps:h}),gesture:d,isActive:a}}({scale:e,rotation:t,size:v,color:h,appendElement:y,enabled:n&&"drawing"===l&&"rect"===c}),{gesture:R,currentElement:M,isActive:P}=function({color:e,appendElement:t,enabled:n,objectInfo:r,type:i}){const o=(0,mf.useSharedValue)(!1),[a,s]=XC(bF),l=(0,u.useRef)(""),c=(0,mf.useSharedValue)([0,0,0,0]),h=WC(AF),d=(0,u.useMemo)((()=>"chart"===i?5:1),[i]);(0,u.useEffect)((()=>{if("typing"!==a)return void document.getElementById("annotations-inserting-text")?.remove();const n=document.createElement("textarea");return n.id="annotations-inserting-text",n.style.position="absolute",n.style.top=`${c.value[3]}px`,n.style.left=`${c.value[2]}px`,n.style.fontSize=h*d*r.value.scale+"px",n.style.lineHeight="130%",n.style.fontFamily="Inter-SemiBold",n.style.backgroundColor="transparent",n.style.borderWidth="0",n.style.padding="0",n.style.color=e.slice(0,7),n.style.caretColor=e.slice(0,7),n.style.width="1000%",n.style.height="1000%",document.body.appendChild(n),n.oninput=()=>{l.current=n.value},n[Da.select({panel:"onkeypress",default:"onkeyup"})]=e=>{Da.select({panel:()=>13===e.keyCode&&!e.shiftKey,default:()=>"Enter"===e.key&&!e.shiftKey})()&&n.blur()},n.onfocus=()=>{},n.onblur=()=>{s("drawing"),""!==l.current&&(t({type:"text",props:{x:c.value[0],y:c.value[1],value:l.current,color:e,size:h*d*r.value.scale}}),l.current="")},n.focus(),()=>{document.getElementById("annotations-inserting-text")?.remove()}}),[t,a,e,s,c,h,r,d]);return{currentElement:null,gesture:(0,u.useMemo)((()=>so(eo().enabled(n).maxDuration(1e3).onFinalize(function(){const e=function(e,t){if(!t||e.numberOfPointers>1)return;const n=tq(fq(vq(-r.value.rotation,r.value.width/2,r.value.height/2),bq(1/r.value.scale,1/r.value.scale),hq(-r.value.offsetX,-r.value.offsetY)),{x:e.x,y:e.y-h/2});c.value=[Math.round(n.x),Math.round(n.y),e.absoluteX,e.absoluteY-h/2],(0,mf.runOnJS)(s)("typing")};return e.__closure={applyToPoint:tq,compose:fq,rotateDEG:vq,objectInfo:r,tmScale:bq,translate:hq,Platform:aa.A,textSize:h,xy:c,runOnJS:mf.runOnJS,setChartAnnotationMode:s},e.__workletHash=736705162296,e.__initData=cW,e}()))),[n,s,c,r,h]),isActive:o}}({rotation:t,size:v,color:h,appendElement:y,enabled:n&&"drawing"===l&&"text"===c,objectInfo:o,type:a});(0,mf.useAnimatedReaction)(function(){const e=()=>C.value||k.value||O.value||P.value;return e.__closure={pathIsActive:C,ellipseIsActive:k,rectIsActive:O,textIsActive:P},e.__workletHash=7151682317648,e.__initData=hW,e}(),function(){const e=function(e){s.value=e};return e.__closure={isActive:s},e.__workletHash=0xa83e28a270d,e.__initData=dW,e}(),[C,k,O]);const D=(0,u.useCallback)((e=>{if(null===b)return;const t=[...p];t[b]=e,m(t,a,d)}),[p,b,m,a,d]);(0,u.useEffect)((()=>{null!==b&&b>p.length-1&&A(null)}),[p,b,A]),(0,u.useEffect)((()=>{"editing"!==l&&A(null)}),[l,A]),function({highlightedElement:e,modifyElement:t}){const[n,r]=XC(wF);xY(n,((n,r)=>{e?.props.stroke&&"none"!==e.props.stroke?t(Object.assign({},e,{props:Object.assign({},e.props,{stroke:r})})):e?.props.fill&&"none"!==e.props.fill?t(Object.assign({},e,{props:Object.assign({},e.props,{fill:r})})):e?.props.color&&"none"!==e.props.color&&t(Object.assign({},e,{props:Object.assign({},e.props,{color:r})}))})),xY(e?.props.stroke&&"none"!==e.props.stroke?e.props.stroke:e?.props.fill&&"none"!==e.props.fill?e.props.fill:e?.props.color&&"none"!==e.props.color?e.props.color:null,((e,t)=>{null!==t&&r(xF.includes(t)?t:xF[0])}))}({highlightedElement:null!==b?p[b]:null,modifyElement:D});const j=(0,u.useRef)([]);return(0,Al.jsxs)(eI,{collapsable:!1,onLayout:({nativeEvent:e})=>{v.value=[e.layout.width,e.layout.height]},sx:{position:"absolute",top:0,right:0,left:0,bottom:0},pointerEvents:n?"auto":"box-none",children:[(0,Al.jsx)(zq,{ellipseGesture:S,rectGesture:T,pathGesture:x,textGesture:R,enabled:n,children:(0,Al.jsx)(xc.A,{onPress:()=>A(null),disabled:!n||"editing"!==l,children:(0,Al.jsx)(eI,{sx:{flex:1},collapsable:!1,children:(0,Al.jsxs)(uW,Object.assign({width:"100%",height:"100%"},uG()!==cG.HIT_BOX?{}:{onPress:e=>{if(!n||"editing"!==l||o.value.rotation%90!=0)return;const[t,r]=[e.nativeEvent.locationX,e.nativeEvent.locationY];let i=-1;for(let e=j.current.length-1;e>=0;e--){const n=j.current[e],o=p[e];if(!n)continue;if("text"===o.type){if(n.isPointInFill({x:t,y:r})){i=e;break}continue}const{fill:a,stroke:s}=o.props;if(a&&"none"!==a&&n.isPointInFill({x:t,y:r})){i=e;break}if(s&&"none"!==s&&n.isPointInStroke({x:t,y:r})){i=e;break}}A(-1===i?null:i)}},{children:[(0,Al.jsxs)(Fk,{children:[(0,Al.jsxs)(Fk,{clipPath:`url(#visibleArea_${a})`,clipRule:"nonzero",children:["panel"!==Da.OS&&(0,Al.jsx)(AY,{objectInfo:o,id:`visibleArea_${a}`}),p.map(((e,t)=>"text"!==e.type&&t===b?null:(0,Al.jsx)(RG,{ref:e=>{uG()===cG.HIT_BOX&&(j.current[t]=e)},chartAnnotationMode:l,enabled:n,objectInfo:o,element:e,setHighlightedIndex:A,index:t,hidden:"text"===e.type&&t===b},`${d}-${t}`)))]}),"panel"===Da.OS&&(0,Al.jsx)(fY,{objectInfo:o,size:v,type:a}),(0,Al.jsxs)(Fk,{children:[w,E,I,M]})]}),(0,Al.jsx)(Qq,{objectInfo:o,frame:g,bounds:v,scale:e,rotation:t,target:null!==b&&f?p[b]:null})]}))})})}),(0,Al.jsx)(tY,{frame:g,element:null!==b?p[b]:null,objectInfo:o,modifyElement:D}),(0,Al.jsx)(aY,{frame:g,onPress:()=>{if(null===b)return;const e=[...p];e.splice(b,1),A(null),m(e,a,d)}})]})}function pW(e,t){(0,u.useEffect)((()=>{if(!Da.select({web:!0,default:!1}))return;const n=t.current;return n?.addEventListener("wheel",e),()=>n?.removeEventListener("wheel",e)}),[e,t])}function mW({viewerArea:e,animatedWrapperStyle:t,preparingChart:n,chartUrl:r,viewerObjectDimensions:i,image:o,displayOwnship:a,trafficPosition:s,chartLoadingStatus:l,ownshipScale:c,mode:h,effectiveChart:d,screens:f,valuesForAnnotationOverlay:p,state:m,annotateMode:g,forceMove:y,viewerObject:v,annotationIsActive:b,onWheel:A}){const x=u.useRef(null);return pW(A,x),(0,Al.jsxs)(eI,{ref:x,style:{flex:1},children:[(0,Al.jsxs)(mf.default.View,{ref:e,style:[t,{position:"absolute"}],children:[!n&&(0,Al.jsx)(JH,{uri:r,style:i,ref:o}),a&&s?.x&&"success"===l&&(0,Al.jsx)($H,{x:s.x,y:s.y,heading:s.heading,scale:c}),"success"===l&&(0,Al.jsx)(eq,{textStyle:{fontSize:20,fontWeight:"600",color:"DAY"===h?"black":"white"},style:{width:360,height:25,position:"absolute",top:d.height-350,left:d.width-30,transform:[{rotate:"90deg"},{translateX:12},{translateY:180}]}})]}),"success"===l&&!1===n&&f.hasAtTop("ChartViewer")&&(0,Al.jsx)(fW,{objectInfo:p,scale:m.scale,rotation:m.rotation,enabled:g&&!y,chart:v,isActive:b},v.id)]})}const gW=u.memo((function(){return(0,Al.jsxs)(Wk,{width:600,height:692,fill:"none",viewBox:"-32 -31 600 692",children:[(0,Al.jsx)(zk,{id:"atis_template_prefix__a",fill:"#fff",children:(0,Al.jsx)(Vk,{d:"M0 0h536v47H0z"})}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M0 0h536v47H0z"}),(0,Al.jsx)(Vk,{fill:"#415F82",d:"M0 0v-1h-1v1zm536 0h1v-1h-1zM0 1h536v-2H0zm535-1v47h2V0zM1 47V0h-2v47z",mask:"url(#atis_template_prefix__a)"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M14.682 31H9.506V15.727h5.28q2.276 0 3.908.918a6.13 6.13 0 012.52 2.617q.88 1.707.88 4.087 0 2.386-.887 4.101a6.13 6.13 0 01-2.543 2.633Q17.008 31 14.682 31m-2.409-2.394h2.275q1.594 0 2.662-.582 1.066-.588 1.603-1.752.537-1.17.537-2.923t-.537-2.909q-.537-1.162-1.588-1.737-1.044-.582-2.595-.582h-2.357zm17.402 2.618q-1.723 0-2.976-.716a4.85 4.85 0 01-1.916-2.043q-.672-1.328-.671-3.125 0-1.767.67-3.102.68-1.343 1.895-2.088 1.215-.754 2.856-.754 1.059 0 1.999.343a4.5 4.5 0 011.67 1.044q.731.709 1.149 1.805.417 1.089.417 2.595v.828H25.38v-1.82h6.802a2.9 2.9 0 00-.336-1.38 2.44 2.44 0 00-.917-.961q-.581-.35-1.358-.35-.827 0-1.454.402a2.8 2.8 0 00-.977 1.044 3 3 0 00-.35 1.41v1.588q0 1 .365 1.715.365.708 1.022 1.089.657.372 1.536.373.589 0 1.067-.164.477-.172.827-.5t.53-.813l2.52.284a3.9 3.9 0 01-.91 1.745q-.663.738-1.7 1.148-1.036.402-2.371.403m7.377 4.071v-15.75h2.655v1.895h.157q.208-.418.589-.888.38-.477 1.029-.813.648-.343 1.655-.343 1.327 0 2.394.679 1.074.67 1.7 1.991.634 1.313.634 3.222 0 1.886-.619 3.206-.618 1.32-1.685 2.014-1.066.693-2.416.693-.985 0-1.633-.328a3.3 3.3 0 01-1.044-.79 5 5 0 01-.605-.888h-.111v6.1zM39.7 25.274q0 1.111.313 1.946.321.835.917 1.305.604.462 1.462.462.894 0 1.499-.477.604-.485.91-1.32.313-.842.313-1.916 0-1.067-.306-1.894-.306-.828-.91-1.298t-1.506-.47q-.865 0-1.47.455-.603.455-.917 1.275-.306.82-.306 1.932m13.773 5.958q-1.09 0-1.961-.388a3.2 3.2 0 01-1.372-1.163q-.5-.768-.5-1.894 0-.968.358-1.604a2.77 2.77 0 01.977-1.014 5 5 0 011.395-.574 11 11 0 011.618-.29 64 64 0 001.633-.187q.626-.09.91-.269.29-.186.29-.574v-.045q0-.841-.499-1.305-.5-.462-1.44-.462-.99 0-1.573.433-.574.432-.775 1.021l-2.52-.358q.297-1.044.983-1.745a4.3 4.3 0 011.678-1.059q.992-.357 2.193-.358a7 7 0 011.648.194q.82.194 1.499.642.678.44 1.089 1.2.417.76.417 1.902V31h-2.595v-1.573h-.09a3.3 3.3 0 01-.693.894 3.3 3.3 0 01-1.111.664q-.664.246-1.559.246m.701-1.984q.813 0 1.41-.32.596-.328.917-.865.328-.537.328-1.171v-1.35q-.127.104-.432.194a6 6 0 01-.672.157q-.372.066-.738.119l-.634.09a4.7 4.7 0 00-1.081.268q-.478.186-.753.522-.276.328-.276.85 0 .746.544 1.126t1.387.38M62.236 31V19.546h2.617v1.909h.12q.312-.992 1.073-1.53a2.96 2.96 0 011.753-.544q.225 0 .5.023.282.015.47.052v2.483a3 3 0 00-.545-.104 5 5 0 00-.709-.052q-.738 0-1.327.32-.582.314-.917.873a2.46 2.46 0 00-.336 1.29V31zm14.66-11.454v2.088h-6.584v-2.088zM71.939 16.8h2.7v10.754q0 .544.163.835a.9.9 0 00.448.388q.276.105.611.104.254 0 .463-.037.216-.037.328-.067l.455 2.11a6 6 0 01-.62.164q-.395.09-.969.105-1.014.03-1.827-.306a2.84 2.84 0 01-1.29-1.06q-.47-.714-.462-1.789zm14.517 9.382v-6.637h2.7V31h-2.618v-2.036h-.119a3.44 3.44 0 01-1.275 1.574q-.88.61-2.17.611-1.126 0-1.991-.5-.858-.506-1.343-1.469-.484-.969-.484-2.341v-7.293h2.7v6.875q0 1.09.596 1.73.597.642 1.566.642.597 0 1.156-.291.559-.29.917-.865.365-.582.365-1.454M91.931 31V19.546h2.618v1.909h.119q.314-.992 1.074-1.53a2.96 2.96 0 011.752-.544q.225 0 .5.023.283.015.47.052v2.483a3 3 0 00-.545-.104 5 5 0 00-.708-.052q-.738 0-1.328.32-.58.314-.917.873a2.46 2.46 0 00-.335 1.29V31zm12.926.224q-1.724 0-2.976-.716a4.85 4.85 0 01-1.916-2.043q-.672-1.328-.672-3.125 0-1.767.671-3.102.679-1.343 1.895-2.088 1.215-.754 2.856-.754a5.8 5.8 0 011.998.343 4.5 4.5 0 011.671 1.044q.73.709 1.148 1.805.418 1.089.418 2.595v.828h-9.389v-1.82h6.801a2.9 2.9 0 00-.335-1.38 2.44 2.44 0 00-.918-.961q-.581-.35-1.357-.35-.828 0-1.454.402a2.8 2.8 0 00-.977 1.044 3 3 0 00-.35 1.41v1.588q0 1 .365 1.715.365.708 1.022 1.089.655.372 1.536.373.59 0 1.066-.164.477-.172.828-.5.35-.328.529-.813l2.521.284a3.9 3.9 0 01-.91 1.745q-.663.738-1.7 1.148-1.037.402-2.371.403M119.523 31h-2.953l5.377-15.273h3.415L130.747 31h-2.953l-4.08-12.14h-.119zm.097-5.988h8.054v2.222h-8.054zm10.621-6.965v-2.32h12.186v2.32h-4.721V31h-2.744V18.047zm17.302-2.32V31h-2.767V15.727zm11.296 4.199q-.105-.977-.88-1.521-.769-.546-1.999-.545-.865 0-1.484.261-.619.26-.947.709a1.72 1.72 0 00-.336 1.021q0 .477.217.828.223.351.604.597.38.238.842.402.463.165.933.276l1.431.358a10 10 0 011.663.544 5.9 5.9 0 011.44.866 3.85 3.85 0 011.014 1.26q.373.738.373 1.73 0 1.342-.686 2.364-.687 1.014-1.984 1.588-1.29.567-3.125.567-1.782 0-3.094-.552-1.306-.551-2.044-1.61-.73-1.059-.79-2.58h2.722q.06.797.492 1.327t1.126.79q.7.261 1.566.261.903 0 1.581-.268.685-.276 1.074-.76a1.84 1.84 0 00.395-1.15q-.008-.595-.35-.984-.344-.395-.962-.656a9 9 0 00-1.432-.477l-1.738-.448q-1.887-.485-2.983-1.469-1.089-.992-1.089-2.632 0-1.35.731-2.364.738-1.013 2.006-1.574 1.269-.567 2.871-.567 1.626 0 2.849.567 1.23.56 1.932 1.559.7.992.723 2.282z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 47h178.333v47H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 47h178.333v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M8.055 62H6.773l2.88-8h1.394l2.879 8h-1.281l-2.262-6.547h-.063zm.215-3.133h4.156v1.016H8.27zM16.288 54v8h-1.207v-8zm1.758 8v-8h2.852q.93 0 1.542.32.619.321.922.887.305.563.305 1.3 0 .735-.309 1.294-.304.554-.922.863-.613.309-1.542.309h-2.16v-1.04h2.05q.586 0 .953-.167.372-.168.543-.489t.172-.77q0-.452-.176-.784a1.14 1.14 0 00-.543-.508q-.367-.18-.964-.18h-1.516V62zm3.95-3.61L23.971 62h-1.375l-1.938-3.61zm3.14 3.61v-8h2.851q.934 0 1.547.34.614.339.918.93.305.585.305 1.32 0 .738-.309 1.328-.304.585-.922.93-.613.34-1.543.34h-1.96v-1.024h1.851q.59 0 .957-.203.367-.207.54-.563.171-.355.171-.808t-.172-.805a1.23 1.23 0 00-.543-.55q-.367-.2-.969-.2h-1.515V62zm13.985-4q0 1.282-.469 2.203-.468.918-1.285 1.414-.812.492-1.847.492-1.04 0-1.856-.492-.813-.495-1.281-1.418-.47-.921-.469-2.199 0-1.28.469-2.2t1.281-1.413q.816-.496 1.855-.496 1.035 0 1.848.496.816.492 1.285 1.414.47.918.47 2.199m-1.195 0q0-.977-.317-1.645-.312-.671-.859-1.015a2.23 2.23 0 00-1.23-.348q-.692 0-1.235.348-.543.344-.86 1.015-.312.669-.312 1.645t.313 1.648q.315.668.86 1.016.542.345 1.233.344.688 0 1.231-.344.547-.347.86-1.016.316-.672.316-1.648m2.7 4v-8h2.852q.93 0 1.542.32.618.321.922.887.305.563.305 1.3 0 .735-.309 1.294-.304.554-.921.863-.615.309-1.543.309h-2.16v-1.04h2.05q.586 0 .953-.167.372-.168.543-.489t.172-.77q0-.452-.176-.784a1.14 1.14 0 00-.543-.508q-.367-.18-.964-.18h-1.516V62zm3.95-3.61L46.551 62h-1.375l-1.938-3.61zm2.745-3.35V54h6.192v1.04h-2.496V62h-1.204v-6.96z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M178.833 47h178.333v47H178.833z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M178.833 47h178.333v47H178.833z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M186.919 54v8h-1.207v-8zm8.215 0v8h-1.109l-4.067-5.867h-.074V62h-1.207v-8h1.117l4.071 5.875h.074V54zm1.761 8v-8h4.961v1.04h-3.754v2.437h3.398v1.035h-3.398V62zm13.395-4q0 1.282-.469 2.203-.47.918-1.285 1.414-.813.492-1.848.492-1.04 0-1.855-.492-.813-.495-1.282-1.418-.468-.921-.468-2.199 0-1.28.468-2.2.47-.921 1.282-1.413.816-.496 1.855-.496 1.035 0 1.848.496.816.492 1.285 1.414.469.918.469 2.199m-1.196 0q0-.977-.316-1.645-.313-.671-.86-1.015a2.23 2.23 0 00-1.23-.348q-.691 0-1.234.348-.543.344-.86 1.015-.312.669-.312 1.645t.312 1.648q.317.668.86 1.016.543.345 1.234.344.687 0 1.23-.344.547-.347.86-1.016.316-.672.316-1.648m2.7 4v-8h2.852q.93 0 1.543.32.617.321.922.887.305.563.305 1.3 0 .735-.309 1.294-.304.554-.922.863-.613.309-1.543.309h-2.16v-1.04h2.051q.585 0 .953-.167.37-.168.543-.489.171-.32.172-.77 0-.452-.176-.784a1.14 1.14 0 00-.543-.508q-.367-.18-.965-.18h-1.516V62zm3.95-3.61L217.72 62h-1.375l-1.937-3.61zm3.14-4.39h1.465l2.547 6.219h.094L225.537 54h1.464v8h-1.148v-5.79h-.074l-2.36 5.778h-.953l-2.359-5.781h-.074V62h-1.149zm10.548 8h-1.281l2.879-8h1.394l2.879 8h-1.281l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zm5.472-3.828V54h6.191v1.04h-2.496V62h-1.203v-6.96zM243.885 54v8h-1.207v-8zm8.707 4q0 1.282-.468 2.203-.469.918-1.286 1.414-.812.492-1.847.492-1.039 0-1.856-.492-.812-.495-1.281-1.418-.469-.921-.469-2.199 0-1.28.469-2.2.47-.921 1.281-1.413.817-.496 1.856-.496 1.035 0 1.847.496.817.492 1.286 1.414.468.918.468 2.199m-1.195 0q0-.977-.316-1.645-.313-.671-.86-1.015a2.23 2.23 0 00-1.23-.348q-.692 0-1.235.348-.543.344-.859 1.015-.312.669-.313 1.645 0 .976.313 1.648.316.668.859 1.016.543.345 1.235.344.687 0 1.23-.344.547-.347.86-1.016.316-.672.316-1.648m9.157-4v8h-1.109l-4.067-5.867h-.074V62h-1.207v-8h1.117l4.071 5.875h.074V54z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M357.167 47H535.5v47H357.167z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M357.167 47H535.5v47H357.167z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M363.651 55.04V54h6.191v1.04h-2.496V62h-1.203v-6.96zm8.766-1.04v8h-1.207v-8zm1.758 0h1.465l2.547 6.219h.094L380.828 54h1.464v8h-1.148v-5.79h-.074l-2.36 5.778h-.953l-2.359-5.781h-.074V62h-1.149zm9.872 8v-8h5.016v1.04h-3.809v2.437h3.547v1.035h-3.547v2.449h3.856V62z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 94h357v47H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 94h357v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M97.495 129.281q-2.349 0-4.176-.642-1.82-.633-3.073-1.872-1.253-1.23-1.901-3.005t-.656-4.057q.008-2.23.663-4.019.657-1.797 1.917-3.073 1.26-1.282 3.08-1.968 1.82-.687 4.138-.687 2.185 0 3.871.664 1.693.664 2.856 1.85a7.7 7.7 0 011.767 2.759q.605 1.573.605 3.415 0 1.275-.194 2.416a6.7 6.7 0 01-.664 2.014 3.7 3.7 0 01-1.26 1.402q-.799.514-1.999.559-.753.037-1.32-.141a2.07 2.07 0 01-.917-.56 1.83 1.83 0 01-.433-.947h-.09q-.171.447-.648.821a3.5 3.5 0 01-1.163.574 4.8 4.8 0 01-1.544.164 4.3 4.3 0 01-1.685-.418 4.2 4.2 0 01-1.343-1.059q-.565-.686-.88-1.655-.313-.97-.313-2.2 0-1.201.343-2.118a4.9 4.9 0 01.917-1.566 4.4 4.4 0 011.313-1.014q.731-.373 1.506-.478a4.7 4.7 0 011.514.023q.708.134 1.178.41.478.276.597.604h.104v-.835h2.081v7.099q.007.56.269.902.268.344.745.344.597 0 .962-.47.373-.478.537-1.462.172-.992.164-2.535.007-1.269-.335-2.297a5.8 5.8 0 00-.955-1.82 5.5 5.5 0 00-1.484-1.305 6.8 6.8 0 00-1.909-.798 9 9 0 00-2.245-.268q-1.828 0-3.214.559-1.387.552-2.327 1.573a6.8 6.8 0 00-1.409 2.424q-.47 1.395-.47 3.087 0 1.813.492 3.215.5 1.394 1.462 2.349.962.954 2.379 1.446 1.424.492 3.274.493.85 0 1.663-.135.813-.134 1.461-.313.65-.179 1-.313l.634 1.894q-.463.238-1.253.462-.783.224-1.73.366-.94.142-1.902.142m-.522-6.473q.947 0 1.514-.366.567-.372.813-1.104.246-.73.238-1.819 0-1.014-.253-1.663-.254-.649-.813-.962-.56-.313-1.484-.313-.836 0-1.424.38a2.47 2.47 0 00-.895 1.051q-.306.665-.306 1.514 0 .85.246 1.604.253.745.82 1.215.575.463 1.544.463m170.339-8.204a4 4 0 00-.515-1.081 3.3 3.3 0 00-.775-.828 3.1 3.1 0 00-1.03-.514 4.3 4.3 0 00-1.267-.179q-1.23 0-2.193.619-.962.619-1.514 1.819-.544 1.194-.544 2.909 0 1.73.544 2.93.545 1.201 1.514 1.828.97.618 2.252.618 1.164 0 2.014-.447a3.15 3.15 0 001.32-1.268q.462-.828.462-1.939l.627.097h-4.147v-2.162h6.197v1.834q0 1.962-.835 3.393a5.7 5.7 0 01-2.297 2.208q-1.461.768-3.356.768-2.11 0-3.706-.947-1.589-.955-2.483-2.707-.888-1.761-.888-4.176 0-1.85.522-3.304.53-1.455 1.477-2.468a6.3 6.3 0 012.222-1.552 7.1 7.1 0 012.774-.537q1.269 0 2.364.373 1.096.366 1.947 1.044.857.68 1.409 1.611.552.933.724 2.058zM8.945 109l-2.218-8h1.27l1.558 6.195h.074L11.25 101h1.258l1.62 6.199h.075L15.758 101h1.273l-2.222 8h-1.215l-1.684-5.992h-.062L10.164 109zm10.394-8v8h-1.207v-8zm8.215 0v8h-1.11l-4.066-5.867h-.074V109h-1.207v-8h1.117l4.07 5.875h.074V101zm4.35 8h-2.59v-8h2.672q1.176 0 2.02.48.843.477 1.293 1.372.453.89.453 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.313 1.383q-.858.48-2.078.48m-1.383-1.055h1.317q.915 0 1.52-.343a2.17 2.17 0 00.906-1.004q.3-.66.3-1.61 0-.941-.3-1.597a2.12 2.12 0 00-.887-.996q-.59-.34-1.465-.34h-1.39z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M357.5 94h178v47h-178z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M357.5 94h178v47h-178z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M365.078 101l2.227 6.516h.09l2.226-6.516h1.305l-2.879 8h-1.395l-2.879-8zm8.21 0v8h-1.207v-8zm6.121 2.102a1.14 1.14 0 00-.515-.86q-.454-.308-1.141-.308-.492 0-.852.156a1.3 1.3 0 00-.558.422 1 1 0 00-.196.605q0 .285.133.492.137.207.356.348.222.136.476.231.254.089.489.148l.781.203q.383.094.785.254t.746.422.555.648q.215.387.215.926 0 .68-.352 1.207-.348.528-1.012.832-.66.305-1.597.305-.899 0-1.555-.285-.657-.285-1.027-.809-.371-.528-.411-1.25h1.211q.036.434.282.723.25.285.636.425.391.137.856.137.511 0 .91-.16.402-.163.633-.453.23-.293.23-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.769-.261l-.946-.258q-.96-.262-1.523-.77-.558-.507-.559-1.344a2 2 0 01.375-1.207q.375-.515 1.016-.8a3.5 3.5 0 011.445-.289q.813 0 1.434.285.626.285.984.785.36.496.375 1.141zm3.923-2.102v8h-1.207v-8zm1.758 8v-8h2.93q.85 0 1.41.281.558.277.836.754.277.473.277 1.067 0 .5-.184.843a1.5 1.5 0 01-.492.547 2.1 2.1 0 01-.672.297v.078q.399.02.778.258.383.234.632.668.25.434.25 1.055 0 .613-.289 1.101-.285.485-.882.77-.598.28-1.528.281zm1.207-1.035h1.742q.867 0 1.242-.336t.375-.84a1.32 1.32 0 00-.738-1.199 1.75 1.75 0 00-.836-.188h-1.785zm0-3.504h1.617q.406 0 .731-.156a1.3 1.3 0 00.519-.438q.195-.285.195-.672 0-.496-.347-.832-.348-.336-1.067-.336h-1.648zm7.197-3.461v8h-1.207v-8zm1.758 8v-8h1.207v6.961h3.625V109zm7.416-8v8h-1.207v-8zm1.363 1.039V101h6.192v1.039h-2.496V109h-1.204v-6.961zm6.943-1.039h1.371l2.09 3.637h.086L416.61 101h1.371l-2.902 4.859V109h-1.203v-3.141z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 141h535v55H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 141h535v55H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M11.742 150.102a1.14 1.14 0 00-.515-.86q-.454-.308-1.141-.308-.492 0-.852.156-.36.152-.558.422a1 1 0 00-.196.605q0 .285.133.492.137.207.356.348.222.137.476.231.254.089.489.148l.78.203q.384.094.786.254t.746.422.555.648q.215.387.215.926 0 .68-.352 1.207-.348.528-1.012.832-.66.305-1.597.305-.899 0-1.555-.285t-1.027-.809q-.372-.528-.41-1.25h1.21q.036.433.282.723.25.285.636.425.39.138.856.137.511 0 .91-.16.403-.163.633-.453.23-.293.23-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.77-.261l-.945-.258q-.96-.262-1.523-.77-.559-.507-.559-1.344a2 2 0 01.375-1.207q.375-.515 1.016-.8a3.5 3.5 0 011.445-.289q.813 0 1.434.285.625.285.984.785.36.496.375 1.141zM14.458 156v-8h1.207v3.82h.098l3.355-3.82h1.52l-3.227 3.602L20.65 156h-1.453l-2.586-3.574-.945 1.086V156zm6.687-8h1.372l2.09 3.637h.085l2.09-3.637h1.371l-2.902 4.859V156h-1.203v-3.141zm35.675 20.273q0 1.528-.572 2.617-.567 1.085-1.551 1.662-.979.577-2.22.577t-2.226-.577q-.979-.582-1.55-1.666-.57-1.09-.569-2.613 0-1.529.568-2.613.573-1.09 1.551-1.667.984-.577 2.226-.577t2.22.577q.984.577 1.551 1.667.573 1.084.573 2.613m-1.721 0q0-1.076-.337-1.815-.333-.743-.924-1.121a2.44 2.44 0 00-1.361-.384q-.771 0-1.362.384-.591.378-.928 1.121-.333.74-.333 1.815t.333 1.819q.337.738.928 1.121.591.38 1.361.379.771 0 1.362-.379.591-.383.924-1.121.336-.744.337-1.819m4.098-4.728l2.46 7.442h.098l2.455-7.442h1.884L62.761 173h-2.114l-3.329-9.455zm15.727 3.19h-1.726a2.2 2.2 0 00-.273-.752 2.02 2.02 0 00-1.168-.909 2.6 2.6 0 00-.808-.121q-.772 0-1.366.388-.596.384-.933 1.127-.337.738-.337 1.805 0 1.084.337 1.828.342.739.933 1.117.595.374 1.362.374.425 0 .794-.111a2.2 2.2 0 00.67-.337q.3-.222.502-.545.208-.323.287-.738l1.726.009a3.7 3.7 0 01-.42 1.265 3.72 3.72 0 01-2.045 1.745 4.5 4.5 0 01-1.537.249q-1.247 0-2.225-.577-.98-.577-1.542-1.666-.564-1.09-.564-2.613 0-1.529.568-2.613.568-1.09 1.547-1.667.978-.577 2.216-.577.789 0 1.468.222a3.8 3.8 0 011.21.651q.53.425.872 1.043.345.614.452 1.403M110.444 173v-9.455h3.619q1.025 0 1.704.324.683.318 1.02.872.341.554.341 1.256 0 .577-.221.988a1.86 1.86 0 01-.596.66 2.5 2.5 0 01-.835.365v.092q.503.027.965.309.465.277.761.785t.296 1.228q0 .733-.356 1.32-.355.582-1.071.919t-1.8.337zm1.712-1.431h1.842q.933 0 1.344-.356.415-.36.415-.923 0-.42-.207-.757a1.43 1.43 0 00-.591-.535 1.96 1.96 0 00-.914-.199h-1.889zm0-4.003h1.695q.442 0 .798-.161.356-.166.559-.466.208-.306.208-.721 0-.549-.388-.904-.384-.356-1.14-.356h-1.732zm6.832 5.434v-9.455h1.712v4.345h.116l3.688-4.345h2.092l-3.657 4.243 3.689 5.212h-2.059l-2.821-4.053-1.048 1.237V173zm16.567-9.455V173h-1.523l-4.455-6.44h-.079V173h-1.712v-9.455h1.532l4.451 6.445h.083v-6.445zm41.673 2.6a1.26 1.26 0 00-.545-.942q-.475-.337-1.237-.337-.535 0-.919.161a1.36 1.36 0 00-.586.439 1.07 1.07 0 00-.208.632q0 .296.134.513.138.217.374.369.236.148.522.249t.577.171l.886.222q.535.124 1.03.337.498.212.891.535.397.324.627.781.231.456.231 1.071 0 .83-.424 1.463-.426.628-1.228.983-.8.351-1.935.351-1.103 0-1.916-.342-.807-.341-1.265-.997-.451-.655-.489-1.597h1.685q.037.494.305.822t.697.489q.433.162.969.162.56 0 .979-.167a1.6 1.6 0 00.665-.47q.24-.305.245-.711a.9.9 0 00-.217-.61 1.6 1.6 0 00-.596-.406 6 6 0 00-.886-.295l-1.076-.277q-1.168-.3-1.847-.91-.674-.613-.674-1.629 0-.836.453-1.464a3 3 0 011.242-.974q.784-.351 1.777-.351 1.006 0 1.764.351.761.346 1.195.965.434.614.448 1.413zm11.397.59h-1.727a2.2 2.2 0 00-.272-.752 2 2 0 00-1.168-.909 2.6 2.6 0 00-.808-.121q-.77 0-1.366.388-.595.384-.933 1.127-.337.738-.337 1.805 0 1.084.337 1.828.342.739.933 1.117.596.374 1.361.374.426 0 .794-.111.375-.115.67-.337.3-.222.503-.545.208-.323.286-.738l1.727.009a3.7 3.7 0 01-.42 1.265 3.7 3.7 0 01-.836 1.043 3.9 3.9 0 01-1.209.702 4.5 4.5 0 01-1.538.249q-1.246 0-2.225-.577-.978-.577-1.542-1.666-.563-1.09-.563-2.613 0-1.529.568-2.613.567-1.09 1.546-1.667t2.216-.577a4.7 4.7 0 011.468.222q.68.221 1.21.651.531.425.872 1.043.346.614.453 1.403m1.153-1.754v-1.436h7.543v1.436h-2.922V173H192.7v-8.019zM232.631 173v-9.455h6.057v1.436h-4.344v2.567h3.929v1.436h-3.929V173zm7.617 0v-9.455h6.15v1.436h-4.437v2.567h4.118v1.436h-4.118v2.58h4.474V173zm9.887 0l-2.669-9.455h1.842l1.704 6.948h.087l1.819-6.948h1.676l1.824 6.953h.083l1.703-6.953h1.842L257.378 173h-1.69l-1.893-6.634h-.073L251.824 173zm51.36 4.781q-2.349 0-4.176-.642-1.82-.633-3.073-1.872-1.253-1.23-1.901-3.005-.65-1.774-.656-4.057.007-2.23.663-4.019.657-1.797 1.917-3.073 1.26-1.282 3.08-1.968 1.819-.687 4.139-.687 2.184 0 3.87.664 1.693.664 2.856 1.85a7.7 7.7 0 011.767 2.759q.605 1.573.605 3.415 0 1.275-.194 2.416a6.7 6.7 0 01-.664 2.014 3.7 3.7 0 01-1.26 1.402q-.798.514-1.999.559-.753.037-1.32-.141a2.07 2.07 0 01-.917-.56 1.83 1.83 0 01-.433-.947h-.089q-.172.447-.649.821a3.5 3.5 0 01-1.163.574 4.8 4.8 0 01-1.544.164 4.3 4.3 0 01-1.685-.418 4.2 4.2 0 01-1.343-1.059q-.567-.686-.88-1.655-.312-.97-.313-2.2 0-1.202.343-2.118a5 5 0 01.917-1.566 4.4 4.4 0 011.313-1.014 4.7 4.7 0 011.506-.478 4.7 4.7 0 011.514.023q.708.134 1.178.41.478.276.597.604h.104v-.835h2.081v7.099q.007.56.269.902.267.344.745.344.597 0 .962-.47.373-.478.537-1.462.172-.991.164-2.535.007-1.268-.335-2.297a5.8 5.8 0 00-.955-1.82 5.5 5.5 0 00-1.484-1.305 6.8 6.8 0 00-1.909-.798 9 9 0 00-2.245-.268q-1.827 0-3.214.559-1.387.552-2.327 1.573a6.8 6.8 0 00-1.409 2.424q-.47 1.395-.47 3.087 0 1.813.492 3.215.5 1.394 1.462 2.349.962.954 2.379 1.446 1.425.493 3.274.493.85 0 1.663-.135a14 14 0 001.461-.313q.65-.179 1-.313l.634 1.894q-.463.238-1.253.462a14 14 0 01-1.73.366q-.94.142-1.902.142m-.522-6.473q.947 0 1.514-.366.567-.372.813-1.104.246-.73.238-1.819 0-1.014-.253-1.663t-.813-.962-1.484-.313q-.836 0-1.424.38a2.47 2.47 0 00-.895 1.051q-.306.665-.306 1.514 0 .85.246 1.604.253.745.82 1.215.575.462 1.544.463m130.312-4.573h-1.726a2.2 2.2 0 00-.272-.752 2.03 2.03 0 00-1.168-.909 2.6 2.6 0 00-.808-.121q-.771 0-1.367.388-.596.384-.932 1.127-.337.738-.337 1.805 0 1.084.337 1.828.34.739.932 1.117a2.5 2.5 0 001.362.374q.425 0 .794-.111a2.2 2.2 0 00.669-.337q.3-.222.504-.545.207-.323.286-.738l1.726.009a3.7 3.7 0 01-.42 1.265 3.7 3.7 0 01-.835 1.043 3.8 3.8 0 01-1.21.702 4.5 4.5 0 01-1.537.249q-1.247 0-2.225-.577-.98-.577-1.542-1.666-.563-1.09-.563-2.613 0-1.529.568-2.613.568-1.09 1.546-1.667t2.216-.577q.79 0 1.468.222.678.221 1.21.651.53.425.872 1.043.347.614.452 1.403m1.569 6.265v-9.455h1.713v8.019h4.164V173zm7.363 0v-9.455h3.546q1.089 0 1.828.379.743.378 1.122 1.062.383.678.383 1.583 0 .91-.388 1.579a2.56 2.56 0 01-1.131 1.03q-.748.36-1.837.36h-2.526v-1.422h2.295q.636 0 1.043-.176.406-.18.6-.521.2-.346.199-.85 0-.503-.199-.858a1.26 1.26 0 00-.605-.545q-.406-.189-1.047-.189h-1.57V173zm4.884-4.284l2.341 4.284h-1.911l-2.299-4.284zm44.273-2.571a1.26 1.26 0 00-.545-.942q-.475-.337-1.237-.337-.535 0-.919.161a1.36 1.36 0 00-.586.439 1.07 1.07 0 00-.208.632q0 .296.134.513.138.217.374.369.236.148.522.249t.577.171l.886.222q.535.124 1.03.337.498.212.891.535.397.324.627.781.231.456.231 1.071 0 .83-.424 1.463-.426.628-1.228.983-.8.351-1.935.351-1.103 0-1.916-.342-.807-.341-1.265-.997-.451-.655-.489-1.597h1.685q.037.494.305.822t.697.489q.434.162.969.162.56 0 .979-.167a1.6 1.6 0 00.665-.47q.24-.305.245-.711a.9.9 0 00-.217-.61 1.6 1.6 0 00-.596-.406 6 6 0 00-.886-.295l-1.076-.277q-1.168-.3-1.847-.91-.674-.613-.674-1.629 0-.836.453-1.464a3 3 0 011.242-.974q.784-.351 1.777-.351 1.006 0 1.764.351.761.346 1.195.965.434.614.448 1.413zm3.304 6.855v-9.455h1.713v4.345h.115l3.689-4.345h2.091l-3.656 4.243 3.688 5.212h-2.059l-2.82-4.053-1.048 1.237V173zm16.383-6.265h-1.727a2.2 2.2 0 00-.272-.752 2 2 0 00-1.168-.909 2.6 2.6 0 00-.808-.121q-.77 0-1.366.388-.596.384-.933 1.127-.337.738-.337 1.805 0 1.084.337 1.828.342.739.933 1.117.596.374 1.361.374.426 0 .794-.111.375-.115.67-.337.3-.222.503-.545.208-.323.286-.738l1.727.009a3.7 3.7 0 01-.42 1.265 3.7 3.7 0 01-.836 1.043 3.9 3.9 0 01-1.209.702 4.5 4.5 0 01-1.538.249q-1.246 0-2.225-.577-.978-.577-1.542-1.666-.563-1.09-.563-2.613 0-1.529.568-2.613.567-1.09 1.546-1.667t2.216-.577a4.7 4.7 0 011.468.222q.68.221 1.21.651.531.425.872 1.043.347.614.453 1.403"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 196h535v55H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 196h535v55H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M11.742 205.102a1.14 1.14 0 00-.515-.86q-.454-.308-1.141-.308-.492 0-.852.156-.36.152-.558.422a1 1 0 00-.196.605q0 .285.133.492.137.207.356.348.222.137.476.231.254.089.489.148l.78.203q.384.094.786.254t.746.422.555.648q.215.387.215.926 0 .68-.352 1.207-.348.528-1.012.832-.66.305-1.597.305-.899 0-1.555-.285t-1.027-.809q-.372-.528-.41-1.25h1.21q.036.433.282.723.25.285.636.425.39.137.856.137.511 0 .91-.16.403-.163.633-.453.23-.293.23-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.77-.261l-.945-.258q-.96-.262-1.523-.77-.559-.507-.559-1.344a2 2 0 01.375-1.207q.375-.515 1.016-.8a3.5 3.5 0 011.445-.289q.813 0 1.434.285.625.285.984.785.36.496.375 1.141zM14.458 211v-8h1.207v3.82h.098l3.355-3.82h1.52l-3.227 3.602L20.65 211h-1.453l-2.586-3.574-.945 1.086V211zm6.687-8h1.372l2.09 3.637h.085l2.09-3.637h1.371l-2.902 4.859V211h-1.203v-3.141zm35.675 20.273q0 1.528-.572 2.617-.567 1.085-1.551 1.662-.979.577-2.22.577t-2.226-.577q-.979-.582-1.55-1.666-.57-1.09-.569-2.613 0-1.529.568-2.613.573-1.09 1.551-1.667.984-.576 2.226-.577 1.241 0 2.22.577.984.577 1.551 1.667.573 1.084.573 2.613m-1.721 0q0-1.076-.337-1.815-.333-.743-.924-1.121a2.44 2.44 0 00-1.361-.384q-.771 0-1.362.384-.591.378-.928 1.121-.333.74-.333 1.815t.333 1.819q.337.738.928 1.121.591.38 1.361.379.771 0 1.362-.379.591-.383.924-1.121.336-.744.337-1.819m4.098-4.728l2.46 7.442h.098l2.455-7.442h1.884L62.761 228h-2.114l-3.329-9.455zm15.727 3.19h-1.726a2.2 2.2 0 00-.273-.752 2.02 2.02 0 00-1.168-.909 2.6 2.6 0 00-.808-.121q-.772 0-1.366.388-.596.384-.933 1.127-.337.738-.337 1.805 0 1.084.337 1.828.342.739.933 1.117.595.374 1.362.374.425 0 .794-.111a2.2 2.2 0 00.67-.337q.3-.222.502-.545.208-.322.287-.738l1.726.009a3.7 3.7 0 01-.42 1.265 3.72 3.72 0 01-2.045 1.745 4.5 4.5 0 01-1.537.249q-1.247 0-2.225-.577-.98-.577-1.542-1.666-.564-1.09-.564-2.613 0-1.529.568-2.613.568-1.09 1.547-1.667.978-.576 2.216-.577.789 0 1.468.222a3.8 3.8 0 011.21.651q.53.425.872 1.043.345.614.452 1.403M110.444 228v-9.455h3.619q1.025 0 1.704.324.683.318 1.02.872.341.554.341 1.256 0 .577-.221.988a1.86 1.86 0 01-.596.66 2.5 2.5 0 01-.835.365v.092q.503.027.965.309.465.277.761.785t.296 1.228q0 .733-.356 1.32-.355.582-1.071.919t-1.8.337zm1.712-1.431h1.842q.933 0 1.344-.356.415-.36.415-.923 0-.42-.207-.757a1.43 1.43 0 00-.591-.535 1.96 1.96 0 00-.914-.199h-1.889zm0-4.003h1.695q.442 0 .798-.161.356-.166.559-.466.208-.306.208-.721 0-.549-.388-.904-.384-.356-1.14-.356h-1.732zm6.832 5.434v-9.455h1.712v4.345h.116l3.688-4.345h2.092l-3.657 4.243 3.689 5.212h-2.059l-2.821-4.053-1.048 1.237V228zm16.567-9.455V228h-1.523l-4.455-6.44h-.079V228h-1.712v-9.455h1.532l4.451 6.445h.083v-6.445zm41.673 2.6a1.26 1.26 0 00-.545-.942q-.475-.337-1.237-.337-.535 0-.919.161a1.36 1.36 0 00-.586.439 1.07 1.07 0 00-.208.632q0 .296.134.513.138.217.374.369.236.148.522.249t.577.171l.886.222q.535.124 1.03.337.498.212.891.535.397.324.627.781.231.456.231 1.071 0 .83-.424 1.463-.426.628-1.228.983-.8.351-1.935.351-1.103 0-1.916-.342-.807-.341-1.265-.997-.451-.655-.489-1.597h1.685q.037.494.305.822t.697.489q.433.162.969.162.56 0 .979-.167a1.6 1.6 0 00.665-.47q.24-.305.245-.711a.9.9 0 00-.217-.61 1.6 1.6 0 00-.596-.406 6 6 0 00-.886-.295l-1.076-.277q-1.168-.3-1.847-.91-.674-.613-.674-1.629 0-.836.453-1.464a3 3 0 011.242-.974q.784-.351 1.777-.351 1.006 0 1.764.351.761.346 1.195.965.434.614.448 1.413zm11.397.59h-1.727a2.2 2.2 0 00-.272-.752 2 2 0 00-1.168-.909 2.6 2.6 0 00-.808-.121q-.77 0-1.366.388-.595.384-.933 1.127-.337.738-.337 1.805 0 1.084.337 1.828.342.739.933 1.117.596.374 1.361.374.426 0 .794-.111.375-.115.67-.337.3-.222.503-.545.208-.322.286-.738l1.727.009a3.7 3.7 0 01-.42 1.265 3.7 3.7 0 01-.836 1.043 3.9 3.9 0 01-1.209.702 4.5 4.5 0 01-1.538.249q-1.246 0-2.225-.577-.978-.577-1.542-1.666-.563-1.09-.563-2.613 0-1.529.568-2.613.567-1.09 1.546-1.667.98-.576 2.216-.577a4.7 4.7 0 011.468.222q.68.221 1.21.651.531.425.872 1.043.346.614.453 1.403m1.153-1.754v-1.436h7.543v1.436h-2.922V228H192.7v-8.019zM232.631 228v-9.455h6.057v1.436h-4.344v2.567h3.929v1.436h-3.929V228zm7.617 0v-9.455h6.15v1.436h-4.437v2.567h4.118v1.436h-4.118v2.58h4.474V228zm9.887 0l-2.669-9.455h1.842l1.704 6.948h.087l1.819-6.948h1.676l1.824 6.953h.083l1.703-6.953h1.842L257.378 228h-1.69l-1.893-6.634h-.073L251.824 228zm51.36 4.781q-2.349 0-4.176-.642-1.82-.633-3.073-1.872-1.253-1.23-1.901-3.005-.65-1.774-.656-4.057.007-2.23.663-4.019.657-1.798 1.917-3.073 1.26-1.282 3.08-1.968 1.819-.687 4.139-.687 2.184 0 3.87.664 1.693.664 2.856 1.85a7.7 7.7 0 011.767 2.759q.605 1.573.605 3.415 0 1.275-.194 2.416a6.7 6.7 0 01-.664 2.014 3.7 3.7 0 01-1.26 1.402q-.798.514-1.999.559-.753.037-1.32-.141a2.07 2.07 0 01-.917-.56 1.83 1.83 0 01-.433-.947h-.089q-.172.447-.649.821a3.5 3.5 0 01-1.163.574 4.8 4.8 0 01-1.544.164 4.3 4.3 0 01-1.685-.418 4.2 4.2 0 01-1.343-1.059q-.567-.686-.88-1.655-.312-.97-.313-2.2 0-1.202.343-2.118a5 5 0 01.917-1.566 4.4 4.4 0 011.313-1.014 4.7 4.7 0 011.506-.478 4.7 4.7 0 011.514.023q.708.134 1.178.41.478.276.597.604h.104v-.835h2.081v7.099q.007.56.269.902.267.344.745.344.597 0 .962-.47.373-.478.537-1.462.172-.991.164-2.535.007-1.268-.335-2.297a5.8 5.8 0 00-.955-1.82 5.5 5.5 0 00-1.484-1.305 6.8 6.8 0 00-1.909-.798 9 9 0 00-2.245-.268q-1.827 0-3.214.559-1.387.552-2.327 1.573a6.8 6.8 0 00-1.409 2.424q-.47 1.395-.47 3.087 0 1.813.492 3.215.5 1.394 1.462 2.349.962.954 2.379 1.446 1.425.493 3.274.493.85 0 1.663-.135a14 14 0 001.461-.313q.65-.179 1-.313l.634 1.894q-.463.238-1.253.462a14 14 0 01-1.73.366q-.94.142-1.902.142m-.522-6.473q.947 0 1.514-.366.567-.372.813-1.104.246-.73.238-1.819 0-1.014-.253-1.663t-.813-.962-1.484-.313q-.836 0-1.424.38a2.47 2.47 0 00-.895 1.051q-.306.665-.306 1.514 0 .85.246 1.604.253.746.82 1.215.575.462 1.544.463m130.312-4.573h-1.726a2.2 2.2 0 00-.272-.752 2.03 2.03 0 00-1.168-.909 2.6 2.6 0 00-.808-.121q-.771 0-1.367.388-.596.384-.932 1.127-.337.738-.337 1.805 0 1.084.337 1.828.34.739.932 1.117a2.5 2.5 0 001.362.374q.425 0 .794-.111a2.2 2.2 0 00.669-.337q.3-.222.504-.545.207-.322.286-.738l1.726.009a3.7 3.7 0 01-.42 1.265 3.7 3.7 0 01-.835 1.043 3.8 3.8 0 01-1.21.702 4.5 4.5 0 01-1.537.249q-1.247 0-2.225-.577-.98-.577-1.542-1.666-.563-1.09-.563-2.613 0-1.529.568-2.613.568-1.09 1.546-1.667.979-.576 2.216-.577.79 0 1.468.222.678.221 1.21.651.53.425.872 1.043.347.614.452 1.403m1.569 6.265v-9.455h1.713v8.019h4.164V228zm7.363 0v-9.455h3.546q1.089 0 1.828.379.743.378 1.122 1.062.383.678.383 1.583 0 .91-.388 1.579a2.56 2.56 0 01-1.131 1.03q-.748.36-1.837.36h-2.526v-1.422h2.295q.636 0 1.043-.176.406-.18.6-.521.2-.346.199-.85 0-.502-.199-.858a1.26 1.26 0 00-.605-.545q-.406-.189-1.047-.189h-1.57V228zm4.884-4.284l2.341 4.284h-1.911l-2.299-4.284zm44.273-2.571a1.26 1.26 0 00-.545-.942q-.475-.337-1.237-.337-.535 0-.919.161a1.36 1.36 0 00-.586.439 1.07 1.07 0 00-.208.632q0 .296.134.513.138.217.374.369.236.148.522.249t.577.171l.886.222q.535.124 1.03.337.498.212.891.535.397.324.627.781.231.456.231 1.071 0 .83-.424 1.463-.426.628-1.228.983-.8.351-1.935.351-1.103 0-1.916-.342-.807-.341-1.265-.997-.451-.655-.489-1.597h1.685q.037.494.305.822t.697.489q.434.162.969.162.56 0 .979-.167a1.6 1.6 0 00.665-.47q.24-.305.245-.711a.9.9 0 00-.217-.61 1.6 1.6 0 00-.596-.406 6 6 0 00-.886-.295l-1.076-.277q-1.168-.3-1.847-.91-.674-.613-.674-1.629 0-.836.453-1.464a3 3 0 011.242-.974q.784-.351 1.777-.351 1.006 0 1.764.351.761.346 1.195.965.434.614.448 1.413zm3.304 6.855v-9.455h1.713v4.345h.115l3.689-4.345h2.091l-3.656 4.243 3.688 5.212h-2.059l-2.82-4.053-1.048 1.237V228zm16.383-6.265h-1.727a2.2 2.2 0 00-.272-.752 2 2 0 00-1.168-.909 2.6 2.6 0 00-.808-.121q-.77 0-1.366.388-.596.384-.933 1.127-.337.738-.337 1.805 0 1.084.337 1.828.342.739.933 1.117.596.374 1.361.374.426 0 .794-.111.375-.115.67-.337.3-.222.503-.545.208-.322.286-.738l1.727.009a3.7 3.7 0 01-.42 1.265 3.7 3.7 0 01-.836 1.043 3.9 3.9 0 01-1.209.702 4.5 4.5 0 01-1.538.249q-1.246 0-2.225-.577-.978-.577-1.542-1.666-.563-1.09-.563-2.613 0-1.529.568-2.613.567-1.09 1.546-1.667.98-.576 2.216-.577a4.7 4.7 0 011.468.222q.68.221 1.21.651.531.425.872 1.043.347.614.453 1.403"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 251h178.333v47H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 251h178.333v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M6.984 259.039V258h6.192v1.039H10.68V266H9.477v-6.961zm7.56 6.961v-8h5.016v1.039h-3.81v2.438h3.547v1.035H15.75v2.449h3.855V266zm6.628-8h1.465l2.547 6.219h.093L27.824 258h1.465v8h-1.148v-5.789h-.075l-2.359 5.777h-.953l-2.36-5.781h-.074V266h-1.148zm9.872 8v-8h2.851q.934 0 1.547.34.614.339.918.93.305.585.305 1.32 0 .738-.309 1.328-.305.586-.921.93-.615.34-1.543.34H31.93v-1.024h1.851q.591 0 .957-.203.367-.207.54-.563.171-.355.171-.808t-.172-.805a1.24 1.24 0 00-.543-.551q-.366-.199-.968-.199H32.25V266z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M178.833 251h178.333v47H178.833z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M178.833 251h178.333v47H178.833z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M188.302 266h-2.59v-8h2.672q1.176 0 2.02.48.843.477 1.293 1.372.453.89.453 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.313 1.383q-.859.48-2.078.48m-1.383-1.055h1.317q.914 0 1.519-.343.606-.348.907-1.004.3-.66.3-1.61 0-.941-.3-1.597a2.12 2.12 0 00-.887-.996q-.59-.34-1.465-.34h-1.391zm6.732 1.055v-8h5.016v1.039h-3.809v2.438h3.547v1.035h-3.547v2.449h3.855V266zm8.194 0l-2.219-8h1.27l1.559 6.195h.074L204.15 258h1.258l1.621 6.199h.074l1.555-6.199h1.273l-2.223 8h-1.214l-1.684-5.992h-.062L203.064 266zm9.187 0v-8h2.851q.934 0 1.547.34a2.2 2.2 0 01.918.93q.305.585.305 1.32 0 .738-.309 1.328-.304.586-.922.93-.613.34-1.543.34h-1.961v-1.024h1.852q.59 0 .957-.203.368-.207.539-.563.172-.355.172-.808t-.172-.805a1.23 1.23 0 00-.543-.551q-.368-.199-.969-.199h-1.515V266zm13.985-4q0 1.281-.469 2.203a3.44 3.44 0 01-1.285 1.414q-.812.492-1.847.492-1.04 0-1.856-.492-.813-.496-1.281-1.418-.47-.921-.469-2.199 0-1.281.469-2.199.468-.922 1.281-1.414.816-.496 1.856-.496 1.035 0 1.847.496.817.492 1.285 1.414.47.918.469 2.199m-1.195 0q0-.976-.317-1.645-.312-.671-.859-1.015a2.23 2.23 0 00-1.23-.348 2.24 2.24 0 00-1.235.348q-.543.344-.859 1.015-.313.669-.313 1.645 0 .977.313 1.648.316.668.859 1.016.543.344 1.235.344.687 0 1.23-.344.547-.348.859-1.016.317-.671.317-1.648m3.907-4v8h-1.207v-8zm8.215 0v8h-1.11l-4.066-5.867h-.074V266h-1.207v-8h1.117l4.07 5.875h.075V258zm1.366 1.039V258h6.191v1.039h-2.496V266h-1.203v-6.961z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M357.167 251H535.5v47H357.167z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M357.167 251H535.5v47H357.167z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M364.721 266h-1.281l2.879-8h1.394l2.879 8h-1.281l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zm6.812 3.133v-8h1.207v6.961h3.625V266zm4.772-6.961V258h6.191v1.039h-2.496V266h-1.203v-6.961zm8.767-1.039v8h-1.207v-8zm1.757 0h1.465l2.547 6.219h.094l2.547-6.219h1.465v8h-1.149v-5.789h-.074l-2.359 5.777h-.954l-2.359-5.781h-.074V266h-1.149zm9.873 8v-8h5.015v1.039h-3.808v2.438h3.546v1.035h-3.546v2.449h3.855V266zm6.233-6.961V258h6.191v1.039h-2.496V266h-1.203v-6.961zm7.559 6.961v-8h5.016v1.039h-3.808v2.438h3.546v1.035h-3.546v2.449h3.855V266zm6.628 0v-8h2.852q.93 0 1.543.32.617.32.922.887.304.563.304 1.301 0 .733-.308 1.293-.305.555-.922.863-.613.309-1.543.309h-2.16v-1.039h2.051q.585 0 .953-.168.37-.168.543-.489.171-.32.172-.769 0-.453-.176-.785a1.14 1.14 0 00-.543-.508q-.368-.18-.965-.18h-1.516V266zm3.95-3.609l1.976 3.609h-1.375l-1.937-3.609z"}),(0,Al.jsx)(zk,{id:"atis_template_prefix__b",fill:"#fff",children:(0,Al.jsx)(Vk,{d:"M0 331h536v47H0z"})}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M0 331h536v47H0z"}),(0,Al.jsx)(Vk,{fill:"#415F82",d:"M0 331v-1h-1v1zm536 0h1v-1h-1zM0 332h536v-2H0zm535-1v47h2v-47zM1 378v-47h-2v47z",mask:"url(#atis_template_prefix__b)"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M11.468 362H8.515l5.376-15.273h3.416L22.69 362h-2.953l-4.08-12.141h-.119zm.097-5.988h8.054v2.222h-8.054zM24.583 362v-11.455h2.618v1.91h.12q.312-.993 1.073-1.529a2.96 2.96 0 011.753-.545q.223 0 .5.023.282.015.469.052v2.483a3 3 0 00-.544-.104 5 5 0 00-.709-.052q-.738 0-1.327.32-.582.314-.918.873a2.46 2.46 0 00-.335 1.29V362zm8.327 0v-11.455h2.617v1.91h.12q.312-.993 1.073-1.529a2.96 2.96 0 011.753-.545q.223 0 .5.023.282.015.47.052v2.483a3 3 0 00-.545-.104 5 5 0 00-.709-.052 2.74 2.74 0 00-1.327.32q-.582.314-.917.873a2.46 2.46 0 00-.336 1.29V362zm8.326 0v-11.455h2.7V362zm1.357-13.08q-.642 0-1.104-.425a1.37 1.37 0 01-.462-1.037q0-.612.462-1.036a1.56 1.56 0 011.104-.433q.648 0 1.104.433.462.424.462 1.036 0 .604-.462 1.037a1.56 1.56 0 01-1.104.425m14.35 1.625L52.863 362h-2.982l-4.08-11.455h2.879l2.633 8.509h.119l2.64-8.509zm4.836 11.686q-1.09 0-1.961-.388a3.2 3.2 0 01-1.372-1.163q-.5-.768-.5-1.894 0-.97.358-1.603.357-.634.977-1.015a5 5 0 011.394-.574 11.4 11.4 0 011.619-.291 60 60 0 001.633-.186q.625-.09.91-.269.29-.186.29-.574v-.045q0-.841-.5-1.305-.498-.462-1.439-.462-.99 0-1.573.433-.575.432-.776 1.021l-2.52-.358q.298-1.043.984-1.745a4.3 4.3 0 011.678-1.059 6.4 6.4 0 012.192-.358q.828 0 1.649.194a4.6 4.6 0 011.498.642q.68.44 1.09 1.2.417.76.417 1.902V362h-2.595v-1.574h-.09a3.3 3.3 0 01-.693.895 3.3 3.3 0 01-1.111.664q-.664.246-1.56.246m.7-1.983q.815 0 1.41-.321.597-.328.918-.865.328-.537.328-1.171v-1.35q-.127.105-.433.194-.298.09-.67.157-.374.066-.74.119-.364.053-.633.089a4.8 4.8 0 00-1.081.269 1.8 1.8 0 00-.754.522q-.276.328-.276.85 0 .746.545 1.126.544.381 1.387.381m10.762-13.521V362h-2.7v-15.273zM83.307 362h-2.954l5.377-15.273h3.416L94.53 362h-2.953l-4.08-12.141h-.119zm.096-5.988h8.054v2.222h-8.053zm10.622-6.965v-2.32h12.185v2.32h-4.72V362h-2.745v-12.953zm17.301-2.32V362h-2.767v-15.273zm11.296 4.199q-.105-.977-.88-1.522-.768-.543-1.999-.544-.864 0-1.484.261-.618.26-.947.709-.328.447-.335 1.021 0 .477.216.828.223.351.604.597.38.238.843.402t.932.276l1.432.358a10 10 0 011.663.545 5.8 5.8 0 011.439.865q.641.522 1.014 1.26t.373 1.73q0 1.342-.686 2.364-.686 1.014-1.984 1.588-1.29.567-3.124.567-1.783 0-3.095-.552-1.305-.552-2.044-1.61-.73-1.06-.79-2.581h2.722q.06.798.492 1.328t1.126.79q.702.261 1.566.261.903 0 1.581-.268.687-.276 1.074-.761.388-.492.395-1.148-.008-.597-.35-.985-.344-.395-.962-.656a9 9 0 00-1.432-.477l-1.738-.448q-1.886-.485-2.983-1.469-1.088-.992-1.088-2.632 0-1.35.73-2.364.739-1.014 2.007-1.574 1.268-.567 2.871-.567 1.625 0 2.848.567 1.23.56 1.932 1.559.7.992.723 2.282z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 378h178.333v47H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 378h178.333v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M8.055 393H6.773l2.88-8h1.394l2.879 8h-1.281l-2.262-6.547h-.063zm.215-3.133h4.156v1.016H8.27zM16.288 385v8h-1.207v-8zm1.758 8v-8h2.852q.93 0 1.542.32.619.32.922.887.305.563.305 1.301 0 .734-.309 1.293-.304.554-.922.863-.613.309-1.542.309h-2.16v-1.039h2.05q.586 0 .953-.168a1.1 1.1 0 00.543-.489q.172-.32.172-.769 0-.453-.176-.785a1.13 1.13 0 00-.543-.508q-.367-.18-.964-.18h-1.516V393zm3.95-3.609L23.971 393h-1.375l-1.938-3.609zm3.14 3.609v-8h2.851q.934 0 1.547.34.614.339.918.93.305.585.305 1.32 0 .738-.309 1.328-.304.586-.922.93-.613.34-1.543.34h-1.96v-1.024h1.851q.59 0 .957-.203.367-.207.54-.563.171-.355.171-.808t-.172-.805a1.24 1.24 0 00-.543-.551q-.367-.198-.969-.199h-1.515V393zm13.985-4q0 1.281-.469 2.203-.468.918-1.285 1.414-.812.492-1.847.492-1.04 0-1.856-.492-.813-.496-1.281-1.418-.47-.921-.469-2.199 0-1.281.469-2.199.469-.922 1.281-1.414.816-.496 1.855-.496 1.035 0 1.848.496.816.492 1.285 1.414.47.918.47 2.199m-1.195 0q0-.976-.317-1.645-.312-.671-.859-1.015a2.23 2.23 0 00-1.23-.348q-.692 0-1.235.348-.543.344-.86 1.015-.312.669-.312 1.645 0 .977.313 1.648.315.668.86 1.016a2.26 2.26 0 001.233.344q.688 0 1.231-.344.547-.348.86-1.016.316-.671.316-1.648m2.7 4v-8h2.852q.93 0 1.542.32.618.32.922.887.305.563.305 1.301 0 .734-.309 1.293-.304.554-.921.863-.615.309-1.543.309h-2.16v-1.039h2.05q.586 0 .953-.168a1.1 1.1 0 00.543-.489q.172-.32.172-.769 0-.453-.176-.785a1.13 1.13 0 00-.543-.508q-.367-.18-.964-.18h-1.516V393zm3.95-3.609L46.551 393h-1.375l-1.938-3.609zm2.745-3.352V385h6.192v1.039h-2.496V393h-1.204v-6.961z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M178.833 378h178.333v47H178.833z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M178.833 378h178.333v47H178.833z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M186.919 385v8h-1.207v-8zm8.215 0v8h-1.109l-4.067-5.867h-.074V393h-1.207v-8h1.117l4.071 5.875h.074V385zm1.761 8v-8h4.961v1.039h-3.754v2.438h3.398v1.035h-3.398V393zm13.395-4q0 1.281-.469 2.203-.47.918-1.285 1.414-.813.492-1.848.492-1.04 0-1.855-.492-.813-.496-1.282-1.418-.468-.921-.468-2.199 0-1.281.468-2.199.47-.922 1.282-1.414.816-.496 1.855-.496 1.035 0 1.848.496.816.492 1.285 1.414.469.918.469 2.199m-1.196 0q0-.976-.316-1.645-.313-.671-.86-1.015a2.23 2.23 0 00-1.23-.348q-.691 0-1.234.348-.543.344-.86 1.015-.312.669-.312 1.645 0 .977.312 1.648.317.668.86 1.016.543.344 1.234.344.687 0 1.23-.344.547-.348.86-1.016.316-.671.316-1.648m2.7 4v-8h2.852q.93 0 1.543.32.617.32.922.887.305.563.305 1.301 0 .734-.309 1.293-.304.554-.922.863-.613.309-1.543.309h-2.16v-1.039h2.051q.585 0 .953-.168.37-.168.543-.489.171-.32.172-.769 0-.453-.176-.785a1.14 1.14 0 00-.543-.508q-.367-.18-.965-.18h-1.516V393zm3.95-3.609L217.72 393h-1.375l-1.937-3.609zm3.14-4.391h1.465l2.547 6.219h.094l2.547-6.219h1.464v8h-1.148v-5.789h-.074l-2.36 5.777h-.953l-2.359-5.781h-.074V393h-1.149zm10.548 8h-1.281l2.879-8h1.394l2.879 8h-1.281l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zm5.472-3.828V385h6.191v1.039h-2.496V393h-1.203v-6.961zm8.766-1.039v8h-1.207v-8zm8.707 4q0 1.281-.468 2.203-.469.918-1.286 1.414-.812.492-1.847.492-1.039 0-1.856-.492-.812-.496-1.281-1.418t-.469-2.199q0-1.281.469-2.199.47-.922 1.281-1.414.817-.496 1.856-.496 1.035 0 1.847.496.817.492 1.286 1.414.468.918.468 2.199m-1.195 0q0-.976-.316-1.645-.313-.671-.86-1.015a2.23 2.23 0 00-1.23-.348 2.24 2.24 0 00-1.235.348q-.543.344-.859 1.015-.312.669-.313 1.645 0 .977.313 1.648.316.668.859 1.016.543.344 1.235.344.687 0 1.23-.344.547-.348.86-1.016.316-.671.316-1.648m9.157-4v8h-1.109l-4.067-5.867h-.074V393h-1.207v-8h1.117l4.071 5.875h.074V385z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M357.167 378H535.5v47H357.167z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M357.167 378H535.5v47H357.167z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M363.651 386.039V385h6.191v1.039h-2.496V393h-1.203v-6.961zm8.766-1.039v8h-1.207v-8zm1.758 0h1.465l2.547 6.219h.094l2.547-6.219h1.464v8h-1.148v-5.789h-.074l-2.36 5.777h-.953l-2.359-5.781h-.074V393h-1.149zm9.872 8v-8h5.016v1.039h-3.809v2.438h3.547v1.035h-3.547v2.449h3.856V393z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 425h357v47H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 425h357v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M97.495 460.281q-2.349 0-4.176-.642-1.82-.633-3.073-1.872-1.253-1.23-1.901-3.005t-.656-4.057q.008-2.23.663-4.019.657-1.798 1.917-3.073 1.26-1.283 3.08-1.968 1.82-.687 4.138-.687 2.185 0 3.871.664 1.693.664 2.856 1.85a7.7 7.7 0 011.767 2.759q.605 1.573.605 3.415 0 1.276-.194 2.416a6.7 6.7 0 01-.664 2.014 3.7 3.7 0 01-1.26 1.402q-.799.514-1.999.559-.753.038-1.32-.141a2.07 2.07 0 01-.917-.56 1.83 1.83 0 01-.433-.947h-.09q-.171.447-.648.821a3.5 3.5 0 01-1.163.574 4.8 4.8 0 01-1.544.164 4.3 4.3 0 01-1.685-.418 4.2 4.2 0 01-1.343-1.059q-.565-.686-.88-1.655-.313-.97-.313-2.2 0-1.202.343-2.118a4.9 4.9 0 01.917-1.566 4.4 4.4 0 011.313-1.014q.731-.373 1.506-.478a4.7 4.7 0 011.514.023q.708.134 1.178.41.478.276.597.604h.104v-.835h2.081v7.099q.007.56.269.902.268.344.745.344.597 0 .962-.47.373-.478.537-1.462.172-.991.164-2.535.007-1.269-.335-2.297a5.8 5.8 0 00-.955-1.82 5.5 5.5 0 00-1.484-1.305 6.8 6.8 0 00-1.909-.798 9 9 0 00-2.245-.268q-1.828 0-3.214.559-1.387.552-2.327 1.573a6.8 6.8 0 00-1.409 2.424q-.47 1.395-.47 3.087 0 1.813.492 3.215.5 1.394 1.462 2.349.962.954 2.379 1.446 1.424.493 3.274.493.85 0 1.663-.135.813-.134 1.461-.313.65-.179 1-.313l.634 1.894q-.463.238-1.253.462-.783.224-1.73.366-.94.142-1.902.142m-.522-6.473q.947 0 1.514-.366.567-.372.813-1.104.246-.73.238-1.819 0-1.014-.253-1.663-.254-.649-.813-.962-.56-.313-1.484-.313-.836 0-1.424.38a2.47 2.47 0 00-.895 1.051q-.306.665-.306 1.514 0 .85.246 1.604.253.745.82 1.215.575.463 1.544.463m170.339-8.204a4 4 0 00-.515-1.081 3.3 3.3 0 00-.775-.828 3.1 3.1 0 00-1.03-.514 4.3 4.3 0 00-1.267-.179q-1.23 0-2.193.619-.962.619-1.514 1.819-.544 1.194-.544 2.909 0 1.73.544 2.93.545 1.201 1.514 1.828.97.618 2.252.618 1.164 0 2.014-.447a3.15 3.15 0 001.32-1.268q.462-.828.462-1.939l.627.097h-4.147v-2.162h6.197v1.834q0 1.962-.835 3.393a5.7 5.7 0 01-2.297 2.208q-1.461.768-3.356.768-2.11 0-3.706-.947-1.589-.955-2.483-2.707-.888-1.761-.888-4.176 0-1.85.522-3.304.53-1.454 1.477-2.468a6.3 6.3 0 012.222-1.552 7.1 7.1 0 012.774-.537q1.269 0 2.364.373 1.096.366 1.947 1.044.857.68 1.409 1.611.552.933.724 2.058zM8.945 440l-2.218-8h1.27l1.558 6.195h.074L11.25 432h1.258l1.62 6.199h.075L15.758 432h1.273l-2.222 8h-1.215l-1.684-5.992h-.062L10.164 440zm10.394-8v8h-1.207v-8zm8.215 0v8h-1.11l-4.066-5.867h-.074V440h-1.207v-8h1.117l4.07 5.875h.074V432zm4.35 8h-2.59v-8h2.672q1.176 0 2.02.48.843.477 1.293 1.372.453.89.453 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.313 1.383q-.858.48-2.078.48m-1.383-1.055h1.317q.915 0 1.52-.343a2.17 2.17 0 00.906-1.004q.3-.66.3-1.61 0-.941-.3-1.597a2.12 2.12 0 00-.887-.996q-.59-.34-1.465-.34h-1.39z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M357.5 425h178v47h-178z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M357.5 425h178v47h-178z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M365.078 432l2.227 6.516h.09l2.226-6.516h1.305l-2.879 8h-1.395l-2.879-8zm8.21 0v8h-1.207v-8zm6.121 2.102a1.14 1.14 0 00-.515-.86q-.454-.308-1.141-.308-.492 0-.852.156a1.3 1.3 0 00-.558.422 1 1 0 00-.196.605q0 .285.133.492.137.207.356.348.222.137.476.231.254.089.489.148l.781.203q.383.094.785.254t.746.422.555.648q.215.387.215.926 0 .68-.352 1.207-.348.528-1.012.832-.66.305-1.597.305-.899 0-1.555-.285-.657-.285-1.027-.809-.371-.527-.411-1.25h1.211q.036.433.282.723.25.285.636.425.391.137.856.137.511 0 .91-.16.402-.163.633-.453.23-.293.23-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.769-.261l-.946-.258q-.96-.262-1.523-.77-.558-.507-.559-1.344a2 2 0 01.375-1.207q.375-.515 1.016-.8a3.5 3.5 0 011.445-.289q.813 0 1.434.285.626.285.984.785.36.496.375 1.141zm3.923-2.102v8h-1.207v-8zm1.758 8v-8h2.93q.85 0 1.41.281.558.277.836.754.277.473.277 1.067 0 .5-.184.843a1.5 1.5 0 01-.492.547 2.1 2.1 0 01-.672.297v.078q.399.02.778.258.383.234.632.668.25.434.25 1.055 0 .613-.289 1.101-.285.485-.882.77-.598.28-1.528.281zm1.207-1.035h1.742q.867 0 1.242-.336t.375-.84a1.32 1.32 0 00-.738-1.199 1.75 1.75 0 00-.836-.188h-1.785zm0-3.504h1.617q.406 0 .731-.156a1.3 1.3 0 00.519-.438q.195-.285.195-.672 0-.495-.347-.832-.348-.336-1.067-.336h-1.648zm7.197-3.461v8h-1.207v-8zm1.758 8v-8h1.207v6.961h3.625V440zm7.416-8v8h-1.207v-8zm1.363 1.039V432h6.192v1.039h-2.496V440h-1.204v-6.961zm6.943-1.039h1.371l2.09 3.637h.086L416.61 432h1.371l-2.902 4.859V440h-1.203v-3.141z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 472h535v55H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 472h535v55H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M11.742 481.102a1.14 1.14 0 00-.515-.86q-.454-.308-1.141-.308-.492 0-.852.156-.36.152-.558.422a1 1 0 00-.196.605q0 .285.133.492.137.207.356.348.222.137.476.231.254.089.489.148l.78.203q.384.094.786.254t.746.422.555.648q.215.387.215.926 0 .68-.352 1.207-.348.528-1.012.832-.66.305-1.597.305-.899 0-1.555-.285t-1.027-.809q-.372-.527-.41-1.25h1.21q.036.433.282.723.25.285.636.425.39.137.856.137.511 0 .91-.16.403-.163.633-.453.23-.293.23-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.77-.261l-.945-.258q-.96-.262-1.523-.77-.559-.507-.559-1.344a2 2 0 01.375-1.207q.375-.515 1.016-.8a3.5 3.5 0 011.445-.289q.813 0 1.434.285.625.285.984.785.36.496.375 1.141zM14.458 487v-8h1.207v3.82h.098l3.355-3.82h1.52l-3.227 3.602L20.65 487h-1.453l-2.586-3.574-.945 1.086V487zm6.687-8h1.372l2.09 3.637h.085l2.09-3.637h1.371l-2.902 4.859V487h-1.203v-3.141zm35.675 20.273q0 1.528-.572 2.617-.567 1.085-1.551 1.662-.979.577-2.22.577t-2.226-.577q-.979-.582-1.55-1.666-.57-1.09-.569-2.613 0-1.529.568-2.613.573-1.09 1.551-1.667.984-.576 2.226-.577 1.241 0 2.22.577.984.577 1.551 1.667.573 1.084.573 2.613m-1.721 0q0-1.076-.337-1.815-.333-.743-.924-1.121a2.44 2.44 0 00-1.361-.384q-.771 0-1.362.384-.591.378-.928 1.121-.333.74-.333 1.815t.333 1.819q.337.738.928 1.121.591.38 1.361.379.771 0 1.362-.379.591-.383.924-1.121.336-.744.337-1.819m4.098-4.728l2.46 7.442h.098l2.455-7.442h1.884L62.761 504h-2.114l-3.329-9.455zm15.727 3.19h-1.726a2.2 2.2 0 00-.273-.752 2.02 2.02 0 00-1.168-.909 2.6 2.6 0 00-.808-.121q-.772 0-1.366.388-.596.383-.933 1.127-.337.738-.337 1.805 0 1.084.337 1.828.342.739.933 1.117.595.374 1.362.374.425 0 .794-.111a2.2 2.2 0 00.67-.337q.3-.222.502-.545.208-.322.287-.738l1.726.009a3.7 3.7 0 01-.42 1.265 3.72 3.72 0 01-2.045 1.745 4.5 4.5 0 01-1.537.249q-1.247 0-2.225-.577-.98-.577-1.542-1.666-.564-1.09-.564-2.613 0-1.529.568-2.613.568-1.09 1.547-1.667.978-.576 2.216-.577.789 0 1.468.222a3.8 3.8 0 011.21.651q.53.425.872 1.043.345.614.452 1.403M110.444 504v-9.455h3.619q1.025 0 1.704.324.683.318 1.02.872.341.554.341 1.256 0 .577-.221.988a1.86 1.86 0 01-.596.66 2.5 2.5 0 01-.835.365v.092q.503.027.965.309.465.277.761.785t.296 1.228q0 .733-.356 1.32-.355.582-1.071.919t-1.8.337zm1.712-1.431h1.842q.933 0 1.344-.356.415-.36.415-.923 0-.42-.207-.757a1.43 1.43 0 00-.591-.535 1.96 1.96 0 00-.914-.199h-1.889zm0-4.003h1.695q.442 0 .798-.161.356-.166.559-.466.208-.306.208-.721 0-.549-.388-.904-.384-.356-1.14-.356h-1.732zm6.832 5.434v-9.455h1.712v4.345h.116l3.688-4.345h2.092l-3.657 4.243 3.689 5.212h-2.059l-2.821-4.053-1.048 1.237V504zm16.567-9.455V504h-1.523l-4.455-6.44h-.079V504h-1.712v-9.455h1.532l4.451 6.445h.083v-6.445zm41.673 2.6a1.26 1.26 0 00-.545-.942q-.475-.337-1.237-.337-.535 0-.919.161a1.36 1.36 0 00-.586.439 1.07 1.07 0 00-.208.632q0 .296.134.513.138.217.374.369.236.149.522.249.286.102.577.171l.886.222q.535.124 1.03.337.498.212.891.535.397.324.627.781.231.456.231 1.071 0 .83-.424 1.463-.426.628-1.228.983-.8.351-1.935.351-1.103 0-1.916-.342-.807-.341-1.265-.997-.451-.655-.489-1.597h1.685q.037.494.305.822t.697.489q.433.162.969.162.56 0 .979-.167a1.6 1.6 0 00.665-.47q.24-.305.245-.711a.9.9 0 00-.217-.61 1.6 1.6 0 00-.596-.406 6 6 0 00-.886-.295l-1.076-.277q-1.168-.3-1.847-.91-.674-.613-.674-1.629 0-.836.453-1.464a3 3 0 011.242-.974q.784-.351 1.777-.351 1.006 0 1.764.351.761.346 1.195.965.434.613.448 1.413zm11.397.59h-1.727a2.2 2.2 0 00-.272-.752 2 2 0 00-1.168-.909 2.6 2.6 0 00-.808-.121q-.77 0-1.366.388-.595.383-.933 1.127-.337.738-.337 1.805 0 1.084.337 1.828.342.739.933 1.117.596.374 1.361.374.426 0 .794-.111.375-.115.67-.337.3-.222.503-.545.208-.322.286-.738l1.727.009a3.7 3.7 0 01-.42 1.265 3.7 3.7 0 01-.836 1.043 3.9 3.9 0 01-1.209.702 4.5 4.5 0 01-1.538.249q-1.246 0-2.225-.577-.978-.577-1.542-1.666-.563-1.09-.563-2.613 0-1.529.568-2.613.567-1.09 1.546-1.667.98-.576 2.216-.577a4.7 4.7 0 011.468.222q.68.221 1.21.651.531.425.872 1.043.346.614.453 1.403m1.153-1.754v-1.436h7.543v1.436h-2.922V504H192.7v-8.019zM232.631 504v-9.455h6.057v1.436h-4.344v2.567h3.929v1.436h-3.929V504zm7.617 0v-9.455h6.15v1.436h-4.437v2.567h4.118v1.436h-4.118v2.58h4.474V504zm9.887 0l-2.669-9.455h1.842l1.704 6.948h.087l1.819-6.948h1.676l1.824 6.953h.083l1.703-6.953h1.842L257.378 504h-1.69l-1.893-6.634h-.073L251.824 504zm51.36 4.781q-2.349 0-4.176-.642-1.82-.633-3.073-1.872-1.253-1.23-1.901-3.005-.65-1.774-.656-4.057.007-2.23.663-4.019.657-1.798 1.917-3.073 1.26-1.283 3.08-1.968 1.819-.687 4.139-.687 2.184 0 3.87.664 1.693.664 2.856 1.85a7.7 7.7 0 011.767 2.759q.605 1.573.605 3.415 0 1.276-.194 2.416a6.7 6.7 0 01-.664 2.014 3.7 3.7 0 01-1.26 1.402q-.798.514-1.999.559-.753.038-1.32-.141a2.07 2.07 0 01-.917-.56 1.83 1.83 0 01-.433-.947h-.089q-.172.447-.649.821a3.5 3.5 0 01-1.163.574 4.8 4.8 0 01-1.544.164 4.3 4.3 0 01-1.685-.418 4.2 4.2 0 01-1.343-1.059q-.567-.686-.88-1.655-.312-.97-.313-2.2 0-1.202.343-2.118a5 5 0 01.917-1.566 4.4 4.4 0 011.313-1.014 4.7 4.7 0 011.506-.478 4.7 4.7 0 011.514.023q.708.134 1.178.41.478.276.597.604h.104v-.835h2.081v7.099q.007.56.269.902.267.344.745.344.597 0 .962-.47.373-.478.537-1.462.172-.991.164-2.535.007-1.269-.335-2.297a5.8 5.8 0 00-.955-1.82 5.5 5.5 0 00-1.484-1.305 6.8 6.8 0 00-1.909-.798 9 9 0 00-2.245-.268q-1.827 0-3.214.559-1.387.552-2.327 1.573a6.8 6.8 0 00-1.409 2.424q-.47 1.395-.47 3.087 0 1.813.492 3.215.5 1.394 1.462 2.349.962.954 2.379 1.446 1.425.493 3.274.493.85 0 1.663-.135a14 14 0 001.461-.313q.65-.179 1-.313l.634 1.894q-.463.238-1.253.462a14 14 0 01-1.73.366q-.94.142-1.902.142m-.522-6.473q.947 0 1.514-.366.567-.372.813-1.104.246-.73.238-1.819 0-1.014-.253-1.663t-.813-.962-1.484-.313q-.836 0-1.424.38a2.47 2.47 0 00-.895 1.051q-.306.665-.306 1.514 0 .85.246 1.604.253.745.82 1.215.575.463 1.544.463m130.312-4.573h-1.726a2.2 2.2 0 00-.272-.752 2.03 2.03 0 00-1.168-.909 2.6 2.6 0 00-.808-.121q-.771 0-1.367.388-.596.383-.932 1.127-.337.738-.337 1.805 0 1.084.337 1.828.34.739.932 1.117a2.5 2.5 0 001.362.374q.425 0 .794-.111a2.2 2.2 0 00.669-.337q.3-.222.504-.545.207-.322.286-.738l1.726.009a3.7 3.7 0 01-.42 1.265 3.7 3.7 0 01-.835 1.043 3.8 3.8 0 01-1.21.702 4.5 4.5 0 01-1.537.249q-1.247 0-2.225-.577-.98-.577-1.542-1.666-.563-1.09-.563-2.613 0-1.529.568-2.613.568-1.09 1.546-1.667.979-.576 2.216-.577.79 0 1.468.222.678.221 1.21.651.53.425.872 1.043.347.614.452 1.403m1.569 6.265v-9.455h1.713v8.019h4.164V504zm7.363 0v-9.455h3.546q1.089 0 1.828.379.743.378 1.122 1.062.383.678.383 1.583 0 .91-.388 1.579a2.56 2.56 0 01-1.131 1.03q-.748.36-1.837.36h-2.526v-1.422h2.295q.636 0 1.043-.176.406-.18.6-.521.2-.346.199-.85 0-.502-.199-.858a1.26 1.26 0 00-.605-.545q-.406-.189-1.047-.189h-1.57V504zm4.884-4.284l2.341 4.284h-1.911l-2.299-4.284zm44.273-2.571a1.26 1.26 0 00-.545-.942q-.475-.337-1.237-.337-.535 0-.919.161a1.36 1.36 0 00-.586.439 1.07 1.07 0 00-.208.632q0 .296.134.513.138.217.374.369.236.149.522.249.286.102.577.171l.886.222q.535.124 1.03.337.498.212.891.535.397.324.627.781.231.456.231 1.071 0 .83-.424 1.463-.426.628-1.228.983-.8.351-1.935.351-1.103 0-1.916-.342-.807-.341-1.265-.997-.451-.655-.489-1.597h1.685q.037.494.305.822t.697.489q.434.162.969.162.56 0 .979-.167a1.6 1.6 0 00.665-.47q.24-.305.245-.711a.9.9 0 00-.217-.61 1.6 1.6 0 00-.596-.406 6 6 0 00-.886-.295l-1.076-.277q-1.168-.3-1.847-.91-.674-.613-.674-1.629 0-.836.453-1.464a3 3 0 011.242-.974q.784-.351 1.777-.351 1.006 0 1.764.351.761.346 1.195.965.434.613.448 1.413zm3.304 6.855v-9.455h1.713v4.345h.115l3.689-4.345h2.091l-3.656 4.243 3.688 5.212h-2.059l-2.82-4.053-1.048 1.237V504zm16.383-6.265h-1.727a2.2 2.2 0 00-.272-.752 2 2 0 00-1.168-.909 2.6 2.6 0 00-.808-.121q-.77 0-1.366.388-.596.383-.933 1.127-.337.738-.337 1.805 0 1.084.337 1.828.342.739.933 1.117.596.374 1.361.374.426 0 .794-.111.375-.115.67-.337.3-.222.503-.545.208-.322.286-.738l1.727.009a3.7 3.7 0 01-.42 1.265 3.7 3.7 0 01-.836 1.043 3.9 3.9 0 01-1.209.702 4.5 4.5 0 01-1.538.249q-1.246 0-2.225-.577-.978-.577-1.542-1.666-.563-1.09-.563-2.613 0-1.529.568-2.613.567-1.09 1.546-1.667.98-.576 2.216-.577a4.7 4.7 0 011.468.222q.68.221 1.21.651.531.425.872 1.043.347.614.453 1.403"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 527h535v55H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 527h535v55H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M11.742 536.102a1.14 1.14 0 00-.515-.86q-.454-.309-1.141-.308-.492 0-.852.156-.36.152-.558.422a1 1 0 00-.196.605q0 .285.133.492.137.207.356.348.222.136.476.231.254.089.489.148l.78.203q.384.094.786.254t.746.422q.344.261.555.648.215.387.215.926 0 .68-.352 1.207-.348.528-1.012.832-.66.305-1.597.305-.899 0-1.555-.285t-1.027-.809q-.372-.527-.41-1.25h1.21q.036.433.282.723.25.285.636.425.39.137.856.137.511 0 .91-.16.403-.163.633-.453.23-.293.23-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.77-.261l-.945-.258q-.96-.262-1.523-.77-.559-.507-.559-1.344a2 2 0 01.375-1.207q.375-.515 1.016-.8a3.5 3.5 0 011.445-.289q.813 0 1.434.285.625.285.984.785.36.496.375 1.141zM14.458 542v-8h1.207v3.82h.098l3.355-3.82h1.52l-3.227 3.602L20.65 542h-1.453l-2.586-3.574-.945 1.086V542zm6.687-8h1.372l2.09 3.637h.085l2.09-3.637h1.371l-2.902 4.859V542h-1.203v-3.141zm35.675 20.273q0 1.527-.572 2.617-.567 1.085-1.551 1.662-.979.577-2.22.577t-2.226-.577q-.979-.582-1.55-1.666-.57-1.09-.569-2.613 0-1.529.568-2.613.573-1.09 1.551-1.667.984-.577 2.226-.577t2.22.577q.984.577 1.551 1.667.573 1.085.573 2.613m-1.721 0q0-1.076-.337-1.815-.333-.743-.924-1.121a2.44 2.44 0 00-1.361-.384q-.771 0-1.362.384-.591.378-.928 1.121-.333.74-.333 1.815t.333 1.819q.337.738.928 1.121.591.38 1.361.379.771 0 1.362-.379.591-.383.924-1.121.336-.744.337-1.819m4.098-4.728l2.46 7.442h.098l2.455-7.442h1.884L62.761 559h-2.114l-3.329-9.455zm15.727 3.19h-1.726a2.2 2.2 0 00-.273-.752 2.02 2.02 0 00-1.168-.909 2.6 2.6 0 00-.808-.121q-.772 0-1.366.388-.596.383-.933 1.127-.337.738-.337 1.805 0 1.084.337 1.828.342.739.933 1.117.595.374 1.362.374.425 0 .794-.111a2.2 2.2 0 00.67-.337q.3-.222.502-.545.208-.322.287-.738l1.726.009a3.7 3.7 0 01-.42 1.265 3.72 3.72 0 01-2.045 1.745 4.5 4.5 0 01-1.537.249q-1.247 0-2.225-.577-.98-.577-1.542-1.666-.564-1.09-.564-2.613 0-1.529.568-2.613.568-1.09 1.547-1.667.978-.577 2.216-.577.789 0 1.468.222a3.8 3.8 0 011.21.651q.53.425.872 1.043.345.614.452 1.403M110.444 559v-9.455h3.619q1.025 0 1.704.324.683.318 1.02.872.341.554.341 1.256 0 .577-.221.988a1.86 1.86 0 01-.596.66 2.5 2.5 0 01-.835.365v.092q.503.027.965.309.465.277.761.785t.296 1.228q0 .733-.356 1.32-.355.582-1.071.919t-1.8.337zm1.712-1.431h1.842q.933 0 1.344-.356.415-.36.415-.923 0-.42-.207-.757a1.43 1.43 0 00-.591-.535 1.96 1.96 0 00-.914-.199h-1.889zm0-4.003h1.695q.442 0 .798-.161.356-.166.559-.466.208-.306.208-.721 0-.549-.388-.904-.384-.356-1.14-.356h-1.732zm6.832 5.434v-9.455h1.712v4.345h.116l3.688-4.345h2.092l-3.657 4.243 3.689 5.212h-2.059l-2.821-4.053-1.048 1.237V559zm16.567-9.455V559h-1.523l-4.455-6.44h-.079V559h-1.712v-9.455h1.532l4.451 6.445h.083v-6.445zm41.673 2.6a1.26 1.26 0 00-.545-.942q-.475-.337-1.237-.337-.535 0-.919.161a1.36 1.36 0 00-.586.439 1.07 1.07 0 00-.208.632q0 .296.134.513.138.217.374.369.236.149.522.249.286.102.577.171l.886.222q.535.124 1.03.337.498.212.891.535.397.324.627.781.231.456.231 1.071 0 .83-.424 1.463-.426.628-1.228.983-.8.351-1.935.351-1.103 0-1.916-.342-.807-.341-1.265-.997-.451-.655-.489-1.597h1.685q.037.493.305.822.268.327.697.489.433.162.969.162.56 0 .979-.167a1.6 1.6 0 00.665-.47q.24-.305.245-.711a.9.9 0 00-.217-.61 1.6 1.6 0 00-.596-.406 6 6 0 00-.886-.295l-1.076-.277q-1.168-.3-1.847-.91-.674-.614-.674-1.629 0-.836.453-1.464a3 3 0 011.242-.974q.784-.351 1.777-.351 1.006 0 1.764.351.761.346 1.195.965.434.613.448 1.413zm11.397.59h-1.727a2.2 2.2 0 00-.272-.752 2 2 0 00-1.168-.909 2.6 2.6 0 00-.808-.121q-.77 0-1.366.388-.595.383-.933 1.127-.337.738-.337 1.805 0 1.084.337 1.828.342.739.933 1.117.596.374 1.361.374.426 0 .794-.111.375-.115.67-.337.3-.222.503-.545.208-.322.286-.738l1.727.009a3.7 3.7 0 01-.42 1.265 3.7 3.7 0 01-.836 1.043 3.9 3.9 0 01-1.209.702 4.5 4.5 0 01-1.538.249q-1.246 0-2.225-.577-.978-.577-1.542-1.666-.563-1.09-.563-2.613 0-1.529.568-2.613.567-1.09 1.546-1.667t2.216-.577a4.7 4.7 0 011.468.222q.68.221 1.21.651.531.425.872 1.043.346.614.453 1.403m1.153-1.754v-1.436h7.543v1.436h-2.922V559H192.7v-8.019zM232.631 559v-9.455h6.057v1.436h-4.344v2.567h3.929v1.436h-3.929V559zm7.617 0v-9.455h6.15v1.436h-4.437v2.567h4.118v1.436h-4.118v2.58h4.474V559zm9.887 0l-2.669-9.455h1.842l1.704 6.948h.087l1.819-6.948h1.676l1.824 6.953h.083l1.703-6.953h1.842L257.378 559h-1.69l-1.893-6.634h-.073L251.824 559zm51.36 4.781q-2.349 0-4.176-.642-1.82-.633-3.073-1.872-1.253-1.23-1.901-3.005-.65-1.774-.656-4.057.007-2.23.663-4.019.657-1.798 1.917-3.073 1.26-1.283 3.08-1.968 1.819-.687 4.139-.687 2.184 0 3.87.664 1.693.664 2.856 1.85a7.7 7.7 0 011.767 2.759q.605 1.573.605 3.415 0 1.275-.194 2.416a6.7 6.7 0 01-.664 2.014 3.7 3.7 0 01-1.26 1.402q-.798.514-1.999.559-.753.037-1.32-.141a2.07 2.07 0 01-.917-.56 1.83 1.83 0 01-.433-.947h-.089q-.172.447-.649.821a3.5 3.5 0 01-1.163.574 4.8 4.8 0 01-1.544.164 4.3 4.3 0 01-1.685-.418 4.2 4.2 0 01-1.343-1.059q-.567-.686-.88-1.655-.312-.97-.313-2.2 0-1.202.343-2.118a5 5 0 01.917-1.566 4.4 4.4 0 011.313-1.014 4.7 4.7 0 011.506-.478 4.7 4.7 0 011.514.023q.708.134 1.178.41.478.276.597.604h.104v-.835h2.081v7.099q.007.56.269.902.267.344.745.344.597 0 .962-.47.373-.477.537-1.462.172-.991.164-2.535.007-1.269-.335-2.297a5.8 5.8 0 00-.955-1.82 5.5 5.5 0 00-1.484-1.305 6.8 6.8 0 00-1.909-.798 9 9 0 00-2.245-.268q-1.827 0-3.214.559-1.387.552-2.327 1.573a6.8 6.8 0 00-1.409 2.424q-.47 1.395-.47 3.087 0 1.813.492 3.215.5 1.394 1.462 2.349.962.954 2.379 1.446 1.425.493 3.274.493.85 0 1.663-.135a14 14 0 001.461-.313q.65-.179 1-.313l.634 1.894q-.463.239-1.253.462a14 14 0 01-1.73.366q-.94.142-1.902.142m-.522-6.473q.947 0 1.514-.366.567-.372.813-1.104.246-.73.238-1.819 0-1.014-.253-1.663t-.813-.962-1.484-.313q-.836 0-1.424.38a2.47 2.47 0 00-.895 1.051q-.306.665-.306 1.514 0 .85.246 1.604.253.745.82 1.215.575.462 1.544.463m130.312-4.573h-1.726a2.2 2.2 0 00-.272-.752 2.03 2.03 0 00-1.168-.909 2.6 2.6 0 00-.808-.121q-.771 0-1.367.388-.596.383-.932 1.127-.337.738-.337 1.805 0 1.084.337 1.828.34.739.932 1.117a2.5 2.5 0 001.362.374q.425 0 .794-.111a2.2 2.2 0 00.669-.337q.3-.222.504-.545.207-.322.286-.738l1.726.009a3.7 3.7 0 01-.42 1.265 3.7 3.7 0 01-.835 1.043 3.8 3.8 0 01-1.21.702 4.5 4.5 0 01-1.537.249q-1.247 0-2.225-.577-.98-.577-1.542-1.666-.563-1.09-.563-2.613 0-1.529.568-2.613.568-1.09 1.546-1.667t2.216-.577q.79 0 1.468.222.678.221 1.21.651.53.425.872 1.043.347.614.452 1.403m1.569 6.265v-9.455h1.713v8.019h4.164V559zm7.363 0v-9.455h3.546q1.089 0 1.828.379.743.378 1.122 1.062.383.678.383 1.583 0 .91-.388 1.579a2.56 2.56 0 01-1.131 1.03q-.748.36-1.837.36h-2.526v-1.422h2.295q.636 0 1.043-.176.406-.18.6-.521.2-.346.199-.85 0-.503-.199-.858a1.26 1.26 0 00-.605-.545q-.406-.189-1.047-.189h-1.57V559zm4.884-4.284l2.341 4.284h-1.911l-2.299-4.284zm44.273-2.571a1.26 1.26 0 00-.545-.942q-.475-.337-1.237-.337-.535 0-.919.161a1.36 1.36 0 00-.586.439 1.07 1.07 0 00-.208.632q0 .296.134.513.138.217.374.369.236.149.522.249.286.102.577.171l.886.222q.535.124 1.03.337.498.212.891.535.397.324.627.781.231.456.231 1.071 0 .83-.424 1.463-.426.628-1.228.983-.8.351-1.935.351-1.103 0-1.916-.342-.807-.341-1.265-.997-.451-.655-.489-1.597h1.685q.037.493.305.822.268.327.697.489.434.162.969.162.56 0 .979-.167a1.6 1.6 0 00.665-.47q.24-.305.245-.711a.9.9 0 00-.217-.61 1.6 1.6 0 00-.596-.406 6 6 0 00-.886-.295l-1.076-.277q-1.168-.3-1.847-.91-.674-.614-.674-1.629 0-.836.453-1.464a3 3 0 011.242-.974q.784-.351 1.777-.351 1.006 0 1.764.351.761.346 1.195.965.434.613.448 1.413zm3.304 6.855v-9.455h1.713v4.345h.115l3.689-4.345h2.091l-3.656 4.243 3.688 5.212h-2.059l-2.82-4.053-1.048 1.237V559zm16.383-6.265h-1.727a2.2 2.2 0 00-.272-.752 2 2 0 00-1.168-.909 2.6 2.6 0 00-.808-.121q-.77 0-1.366.388-.596.383-.933 1.127-.337.738-.337 1.805 0 1.084.337 1.828.342.739.933 1.117.596.374 1.361.374.426 0 .794-.111.375-.115.67-.337.3-.222.503-.545.208-.322.286-.738l1.727.009a3.7 3.7 0 01-.42 1.265 3.7 3.7 0 01-.836 1.043 3.9 3.9 0 01-1.209.702 4.5 4.5 0 01-1.538.249q-1.246 0-2.225-.577-.978-.577-1.542-1.666-.563-1.09-.563-2.613 0-1.529.568-2.613.567-1.09 1.546-1.667t2.216-.577a4.7 4.7 0 011.468.222q.68.221 1.21.651.531.425.872 1.043.347.614.453 1.403"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 582h178.333v47H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 582h178.333v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M6.984 590.039V589h6.192v1.039H10.68V597H9.477v-6.961zm7.56 6.961v-8h5.016v1.039h-3.81v2.438h3.547v1.035H15.75v2.449h3.855V597zm6.628-8h1.465l2.547 6.219h.093L27.824 589h1.465v8h-1.148v-5.789h-.075l-2.359 5.777h-.953l-2.36-5.781h-.074V597h-1.148zm9.872 8v-8h2.851q.934 0 1.547.34.614.339.918.93.305.585.305 1.32 0 .738-.309 1.328-.305.586-.921.93-.615.34-1.543.34H31.93v-1.024h1.851q.591 0 .957-.203.367-.207.54-.563.171-.355.171-.808t-.172-.805a1.24 1.24 0 00-.543-.551q-.366-.198-.968-.199H32.25V597z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M178.833 582h178.333v47H178.833z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M178.833 582h178.333v47H178.833z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M188.302 597h-2.59v-8h2.672q1.176 0 2.02.48.843.477 1.293 1.372.453.89.453 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.313 1.383q-.859.48-2.078.48m-1.383-1.055h1.317q.914 0 1.519-.343.606-.348.907-1.004.3-.66.3-1.61 0-.941-.3-1.597a2.12 2.12 0 00-.887-.996q-.59-.34-1.465-.34h-1.391zm6.732 1.055v-8h5.016v1.039h-3.809v2.438h3.547v1.035h-3.547v2.449h3.855V597zm8.194 0l-2.219-8h1.27l1.559 6.195h.074L204.15 589h1.258l1.621 6.199h.074l1.555-6.199h1.273l-2.223 8h-1.214l-1.684-5.992h-.062L203.064 597zm9.187 0v-8h2.851q.934 0 1.547.34a2.2 2.2 0 01.918.93q.305.585.305 1.32 0 .738-.309 1.328-.304.586-.922.93-.613.34-1.543.34h-1.961v-1.024h1.852q.59 0 .957-.203.368-.207.539-.563.172-.355.172-.808t-.172-.805a1.23 1.23 0 00-.543-.551q-.368-.198-.969-.199h-1.515V597zm13.985-4q0 1.282-.469 2.203a3.44 3.44 0 01-1.285 1.414q-.812.492-1.847.492-1.04 0-1.856-.492-.813-.496-1.281-1.418-.47-.921-.469-2.199 0-1.281.469-2.199.468-.922 1.281-1.414.816-.496 1.856-.496 1.035 0 1.847.496.817.492 1.285 1.414.47.918.469 2.199m-1.195 0q0-.976-.317-1.645-.312-.671-.859-1.015a2.23 2.23 0 00-1.23-.348 2.24 2.24 0 00-1.235.348q-.543.344-.859 1.015-.313.669-.313 1.645 0 .977.313 1.648.316.668.859 1.016.543.344 1.235.344.687 0 1.23-.344.547-.348.859-1.016.317-.671.317-1.648m3.907-4v8h-1.207v-8zm8.215 0v8h-1.11l-4.066-5.867h-.074V597h-1.207v-8h1.117l4.07 5.875h.075V589zm1.366 1.039V589h6.191v1.039h-2.496V597h-1.203v-6.961z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M357.167 582H535.5v47H357.167z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M357.167 582H535.5v47H357.167z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M364.721 597h-1.281l2.879-8h1.394l2.879 8h-1.281l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zm6.812 3.133v-8h1.207v6.961h3.625V597zm4.772-6.961V589h6.191v1.039h-2.496V597h-1.203v-6.961zm8.767-1.039v8h-1.207v-8zm1.757 0h1.465l2.547 6.219h.094l2.547-6.219h1.465v8h-1.149v-5.789h-.074l-2.359 5.777h-.954l-2.359-5.781h-.074V597h-1.149zm9.873 8v-8h5.015v1.039h-3.808v2.438h3.546v1.035h-3.546v2.449h3.855V597zm6.233-6.961V589h6.191v1.039h-2.496V597h-1.203v-6.961zm7.559 6.961v-8h5.016v1.039h-3.808v2.438h3.546v1.035h-3.546v2.449h3.855V597zm6.628 0v-8h2.852q.93 0 1.543.32.617.32.922.887.304.563.304 1.301 0 .734-.308 1.293-.305.554-.922.863-.613.309-1.543.309h-2.16v-1.039h2.051q.585 0 .953-.168.37-.168.543-.489.171-.32.172-.769 0-.453-.176-.785a1.14 1.14 0 00-.543-.508q-.368-.18-.965-.18h-1.516V597zm3.95-3.609l1.976 3.609h-1.375l-1.937-3.609z"})]})})),yW=u.memo((function(){return(0,Al.jsxs)(Wk,{width:600,height:692,fill:"none",viewBox:"-59.5 -80 600 692",children:[(0,Al.jsx)(Vk,{fill:"#fff",d:"M0 0h40v49H0z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",d:"M30.93 21.955h-6.409a4.4 4.4 0 00-.363-1.444 3.3 3.3 0 00-.796-1.113 3.3 3.3 0 00-1.216-.727q-.716-.262-1.625-.262-1.59 0-2.693.773-1.09.773-1.659 2.216-.557 1.443-.557 3.466 0 2.136.568 3.58.58 1.43 1.67 2.158 1.092.716 2.626.716.875 0 1.568-.216a3.7 3.7 0 001.205-.648q.51-.42.83-1.01a4 4 0 00.442-1.353l6.41.045q-.114 1.478-.83 3.012-.715 1.522-2.034 2.818-1.308 1.284-3.239 2.068-1.932.784-4.488.784-3.205 0-5.75-1.375-2.535-1.374-4.012-4.045-1.466-2.67-1.466-6.534 0-3.887 1.5-6.546 1.5-2.67 4.046-4.034 2.545-1.375 5.682-1.375 2.205 0 4.056.602 1.853.603 3.25 1.762a8.7 8.7 0 012.25 2.83q.853 1.681 1.034 3.851"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M0 75h40v49H0z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",d:"M10.813 111.5V88.227h10.045q2.591 0 4.534.944 1.944.942 3.023 2.715t1.08 4.25q0 2.5-1.114 4.216-1.103 1.716-3.103 2.591-1.988.876-4.647.875h-6v-4.909h4.727q1.113 0 1.898-.273.795-.283 1.216-.897.43-.615.431-1.603 0-1-.431-1.625-.42-.636-1.216-.931-.785-.307-1.898-.307h-2.227V111.5zm13.636-10.682l5.818 10.682h-6.864l-5.681-10.682z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M0 150h40v49H0z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",d:"M14.811 186.5H7.993l7.682-23.273h8.636l7.682 23.273h-6.818l-5.091-16.864h-.182zm-1.273-9.182h12.819v4.727H13.538z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M0 225h40v49H0z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",d:"M12.156 261.5v-23.273H28.52v5.091H18.474v4h9.046v5.091h-9.046v9.091z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M0 300h40v49H0z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",d:"M9.88 318.318v-5.091h20.227v5.091h-7V336.5h-6.228v-18.182z"})]})})),vW=u.memo((function(){return(0,Al.jsx)(Wk,{width:600,height:692,fill:"none",children:(0,Al.jsxs)(Fk,{opacity:.5,children:[(0,Al.jsx)(Vk,{d:"M0 0h600v692H0z",fill:"#1D2838"}),(0,Al.jsx)(Vk,{d:"M0 0h600v692H0zM0 16.093h600M0 32.186h600M0 48.279h600M0 64.372h600M0 80.465h600M0 96.558h600M0 112.651h600M0 128.744h600M0 144.837h600M0 160.93h600M0 177.023h600M0 193.116h600M0 209.209h600M0 225.302h600M0 241.395h600M0 257.488h600M0 273.581h600M0 289.674h600M0 305.767h600M0 321.86h600M0 337.953h600M0 354.047h600M0 370.14h600M0 386.233h600M0 402.326h600M0 418.419h600M0 434.512h600M0 450.605h600M0 466.698h600M0 482.791h600M0 498.884h600M0 514.977h600M0 531.07h600M0 547.163h600M0 563.256h600M0 579.349h600M0 595.442h600M0 611.535h600M0 627.628h600M0 643.721h600M0 659.814h600M0 675.907h600M16.216 0v692M32.432 0v692M48.649 0v692M64.865 0v692M81.081 0v692M97.297 0v692M113.514 0v692M129.73 0v692M145.946 0v692M162.162 0v692M178.378 0v692M194.595 0v692M210.811 0v692M227.027 0v692M243.243 0v692M259.459 0v692M275.676 0v692M291.892 0v692M308.108 0v692M324.324 0v692M340.541 0v692M356.757 0v692M372.973 0v692M389.189 0v692M405.405 0v692M421.622 0v692M437.838 0v692M454.054 0v692M470.27 0v692M486.486 0v692M502.703 0v692M518.919 0v692M535.135 0v692M551.351 0v692M567.568 0v692M583.784 0v692",stroke:"#2B4259"})]})})})),bW=u.memo((function(){return(0,Al.jsxs)(Wk,{width:600,height:692,fill:"none",viewBox:"-32 -32 600 692",children:[(0,Al.jsx)(zk,{id:"holding_clearance_template_prefix__a",fill:"#fff",children:(0,Al.jsx)(Vk,{d:"M0 0h536v47H0z"})}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M0 0h536v47H0z"}),(0,Al.jsx)(Vk,{fill:"#415F82",d:"M0 0v-1h-1v1zm536 0h1v-1h-1zM0 1h536v-2H0zm535-1v47h2V0zM1 47V0h-2v47z",mask:"url(#holding_clearance_template_prefix__a)"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M9.506 31V15.727h2.767v6.466h7.077v-6.466h2.774V31H19.35v-6.488h-7.077V31zm20.505.224q-1.68 0-2.909-.739a5 5 0 01-1.909-2.065q-.67-1.328-.671-3.103 0-1.775.671-3.11a5 5 0 011.91-2.072q1.23-.74 2.907-.739 1.68 0 2.909.739a4.95 4.95 0 011.902 2.073q.678 1.334.678 3.11 0 1.774-.678 3.102a4.96 4.96 0 01-1.902 2.065q-1.23.74-2.908.739m.014-2.163q.91 0 1.522-.5.61-.507.91-1.357a5.6 5.6 0 00.305-1.894q0-1.052-.306-1.902-.297-.857-.91-1.364-.61-.507-1.52-.507-.934 0-1.552.507-.61.507-.917 1.364-.298.85-.298 1.902 0 1.044.298 1.894.306.851.917 1.357.62.5 1.551.5M40.49 15.727V31h-2.7V15.727zm7.027 15.474q-1.35 0-2.417-.693-1.065-.694-1.685-2.014t-.619-3.206q0-1.91.627-3.222.633-1.32 1.707-1.991a4.4 4.4 0 012.394-.679q1.006 0 1.656.343.648.336 1.029.813.38.47.589.888h.112v-5.713h2.707V31h-2.655v-1.805h-.164q-.209.418-.604.888a3.3 3.3 0 01-1.044.79q-.65.328-1.633.328m.753-2.215q.858 0 1.461-.462.605-.47.918-1.305.313-.836.313-1.946 0-1.111-.313-1.932-.306-.82-.91-1.275-.596-.455-1.47-.455-.901 0-1.505.47-.605.47-.91 1.298-.306.827-.306 1.894 0 1.074.306 1.916.313.835.917 1.32.611.477 1.499.477M56.493 31V19.546h2.7V31zm1.358-13.08q-.642 0-1.104-.425a1.37 1.37 0 01-.462-1.037q0-.612.462-1.036a1.56 1.56 0 011.104-.433q.648 0 1.104.432.462.426.462 1.037 0 .604-.462 1.037a1.56 1.56 0 01-1.104.425m6.818 6.368V31h-2.7V19.546h2.58v1.946h.135a3.27 3.27 0 011.26-1.529q.873-.567 2.155-.567 1.186 0 2.066.507a3.4 3.4 0 011.372 1.47q.492.96.485 2.334V31h-2.7v-6.876q0-1.148-.597-1.797-.588-.65-1.633-.649-.708 0-1.26.313-.544.306-.858.888-.305.581-.305 1.41m15.079 11.246q-1.455 0-2.499-.395-1.044-.389-1.678-1.044a3.6 3.6 0 01-.88-1.454l2.432-.59q.163.336.477.664.313.336.843.552.535.224 1.35.224 1.148 0 1.9-.56.754-.55.754-1.82v-2.17h-.134q-.21.42-.612.858-.395.44-1.051.739-.65.297-1.633.298-1.32 0-2.394-.619-1.067-.627-1.7-1.864-.627-1.245-.627-3.118 0-1.886.627-3.184.633-1.305 1.707-1.976a4.4 4.4 0 012.394-.679q1.007 0 1.656.343.655.336 1.044.813.387.47.589.888h.149v-1.895h2.662v11.641q0 1.47-.7 2.432-.702.96-1.917 1.439-1.215.477-2.76.477m.022-6.816q.858 0 1.462-.418.603-.417.917-1.2.313-.783.313-1.88 0-1.08-.313-1.894-.306-.813-.91-1.26-.596-.455-1.47-.455-.9 0-1.506.47-.603.47-.91 1.29-.305.813-.305 1.85 0 1.05.306 1.842.313.782.917 1.223.612.432 1.499.432m26.522-7.838h-2.789a3.5 3.5 0 00-.44-1.215 3.3 3.3 0 00-.798-.91 3.3 3.3 0 00-1.089-.56 4.2 4.2 0 00-1.305-.193q-1.245 0-2.207.626-.963.62-1.507 1.82-.543 1.193-.544 2.916 0 1.752.544 2.953.552 1.193 1.507 1.804.961.605 2.2.605.686 0 1.282-.18a3.5 3.5 0 001.082-.544q.484-.358.813-.88.335-.522.462-1.193l2.789.015a6 6 0 01-.679 2.043 6 6 0 01-1.349 1.686 6.2 6.2 0 01-1.954 1.133q-1.119.403-2.484.403-2.013 0-3.594-.932-1.581-.933-2.49-2.693t-.91-4.22q0-2.469.917-4.221.917-1.76 2.498-2.692 1.58-.933 3.58-.933 1.275 0 2.371.358 1.096.36 1.954 1.052a5.6 5.6 0 011.409 1.685q.56.993.731 2.267m5.114-5.153V31h-2.7V15.727zm7.847 15.497q-1.722 0-2.975-.716a4.84 4.84 0 01-1.917-2.043q-.67-1.328-.671-3.125 0-1.767.671-3.102.679-1.343 1.894-2.088 1.216-.754 2.856-.754 1.059 0 1.999.343a4.5 4.5 0 011.67 1.044q.731.709 1.149 1.805.417 1.089.417 2.595v.828h-9.388v-1.82h6.801a2.9 2.9 0 00-.336-1.38 2.44 2.44 0 00-.917-.961q-.582-.35-1.357-.35-.828 0-1.455.402a2.8 2.8 0 00-.976 1.044 3 3 0 00-.351 1.41v1.588q0 1 .365 1.715.366.708 1.022 1.089.657.372 1.536.373.59 0 1.067-.164.477-.172.827-.5.351-.328.53-.813l2.521.284a3.94 3.94 0 01-.91 1.745q-.664.738-1.701 1.148-1.036.402-2.371.403m10.673.007q-1.088 0-1.961-.388a3.2 3.2 0 01-1.372-1.163q-.5-.768-.5-1.894 0-.968.358-1.604.359-.633.977-1.014a5 5 0 011.395-.574 11 11 0 011.618-.29 63 63 0 001.633-.187q.627-.09.91-.269.291-.186.291-.574v-.045q0-.841-.5-1.305-.5-.462-1.439-.462-.992 0-1.574.433-.573.432-.775 1.021l-2.521-.358q.298-1.044.985-1.745a4.3 4.3 0 011.677-1.059q.993-.357 2.193-.358a7 7 0 011.648.194q.82.194 1.499.642a3.23 3.23 0 011.089 1.2q.417.76.417 1.902V31h-2.595v-1.573h-.089a3.3 3.3 0 01-.694.894 3.3 3.3 0 01-1.111.664q-.663.246-1.559.246m.701-1.984q.813 0 1.41-.32a2.37 2.37 0 00.917-.865q.328-.537.328-1.171v-1.35q-.126.104-.432.194-.299.09-.671.157-.373.066-.739.119l-.634.09a4.7 4.7 0 00-1.081.268 1.8 1.8 0 00-.753.522q-.276.328-.276.85 0 .746.544 1.126.545.38 1.387.38M138.689 31V19.546h2.617v1.909h.12q.312-.992 1.074-1.53a2.96 2.96 0 011.752-.544q.224 0 .5.023.283.015.47.052v2.483a3 3 0 00-.545-.104 5 5 0 00-.708-.052q-.739 0-1.328.32-.582.314-.917.873a2.46 2.46 0 00-.336 1.29V31zm11.417.231q-1.09 0-1.961-.388a3.2 3.2 0 01-1.372-1.163q-.5-.768-.5-1.894 0-.968.358-1.604a2.77 2.77 0 01.977-1.014 5 5 0 011.394-.574 11 11 0 011.619-.29q1.006-.105 1.633-.187.626-.09.91-.269.29-.186.29-.574v-.045q0-.841-.499-1.305-.5-.462-1.439-.462-.993 0-1.574.433-.574.432-.776 1.021l-2.52-.358q.298-1.044.984-1.745a4.3 4.3 0 011.678-1.059q.991-.357 2.193-.358.827 0 1.648.194.82.194 1.499.642a3.2 3.2 0 011.088 1.2q.418.76.418 1.902V31h-2.595v-1.573h-.09a3.3 3.3 0 01-.693.894 3.3 3.3 0 01-1.111.664q-.664.246-1.559.246m.701-1.984q.813 0 1.41-.32.596-.328.917-.865.328-.537.328-1.171v-1.35q-.127.104-.433.194-.297.09-.671.157-.372.066-.738.119l-.634.09a4.7 4.7 0 00-1.081.268 1.8 1.8 0 00-.753.522q-.276.328-.276.85 0 .746.544 1.126t1.387.38m10.761-4.959V31h-2.699V19.546h2.58v1.946h.134a3.3 3.3 0 011.26-1.529q.873-.567 2.155-.567 1.187 0 2.066.507a3.4 3.4 0 011.372 1.47q.492.96.485 2.334V31h-2.699v-6.876q0-1.148-.597-1.797-.59-.65-1.633-.649a2.5 2.5 0 00-1.261.313q-.543.306-.857.888-.306.581-.306 1.41m15.094 6.936q-1.716 0-2.946-.753a5.04 5.04 0 01-1.887-2.081q-.656-1.335-.656-3.073 0-1.745.671-3.08.671-1.341 1.895-2.087 1.23-.754 2.908-.754 1.394 0 2.468.515a4.2 4.2 0 011.723 1.44q.642.924.731 2.162h-2.58a2.47 2.47 0 00-.746-1.38q-.582-.56-1.559-.56-.828 0-1.454.448-.626.44-.977 1.268-.343.828-.343 1.984 0 1.17.343 2.013.343.835.962 1.29.626.448 1.469.448.596 0 1.067-.224.477-.23.798-.664.32-.433.44-1.051h2.58q-.097 1.215-.716 2.155a4.25 4.25 0 01-1.685 1.462q-1.067.522-2.506.522m12.195 0q-1.723 0-2.976-.716a4.85 4.85 0 01-1.917-2.043q-.67-1.328-.671-3.125 0-1.767.671-3.102.679-1.343 1.895-2.088 1.215-.754 2.856-.754a5.8 5.8 0 011.998.343 4.5 4.5 0 011.671 1.044q.73.709 1.148 1.805.418 1.089.418 2.595v.828h-9.389v-1.82h6.801a2.9 2.9 0 00-.335-1.38 2.44 2.44 0 00-.918-.961q-.581-.35-1.357-.35-.827 0-1.454.402a2.8 2.8 0 00-.977 1.044 3 3 0 00-.35 1.41v1.588q0 1 .365 1.715.365.708 1.022 1.089.656.372 1.536.373.59 0 1.066-.164.477-.172.828-.5.35-.328.529-.813l2.521.284a3.9 3.9 0 01-.91 1.745q-.663.738-1.7 1.148-1.037.402-2.371.403"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 47h535v63H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 47h535v63H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M268.87 78.364q0 2.468-.925 4.228-.918 1.752-2.506 2.685-1.58.932-3.587.932-2.006 0-3.594-.932-1.58-.94-2.506-2.692-.917-1.76-.917-4.221 0-2.469.917-4.221.925-1.76 2.506-2.692 1.589-.933 3.594-.932 2.007 0 3.587.932 1.588.932 2.506 2.692.925 1.752.925 4.22m-2.782 0q0-1.739-.544-2.931-.537-1.2-1.492-1.812-.954-.62-2.2-.62-1.245 0-2.2.62-.954.61-1.499 1.812-.536 1.193-.536 2.93t.536 2.939q.545 1.193 1.499 1.812.955.612 2.2.611 1.246 0 2.2-.611.955-.62 1.492-1.812.544-1.2.544-2.938M271.485 86V70.727h9.784v2.32h-7.017v4.146h6.346v2.32h-6.346V86zM7.379 62v-8h1.207v3.477h3.988V54h1.211v8h-1.21v-3.488h-3.99V62zm15.113-4q0 1.282-.469 2.203-.468.918-1.285 1.414-.812.492-1.847.492-1.04 0-1.856-.492-.812-.495-1.281-1.418-.47-.921-.469-2.199 0-1.28.469-2.2t1.281-1.413q.816-.496 1.856-.496 1.035 0 1.847.496.817.492 1.285 1.414.47.918.47 2.199m-1.195 0q0-.977-.317-1.645-.312-.671-.859-1.015a2.23 2.23 0 00-1.23-.348q-.692 0-1.235.348-.543.344-.86 1.015-.311.669-.312 1.645 0 .976.313 1.648.315.668.86 1.016.542.345 1.234.344.687 0 1.23-.344.547-.347.86-1.016.316-.672.316-1.648m2.7 4v-8h1.207v6.96h3.625V62zm8.799 0h-2.59v-8h2.672q1.176 0 2.02.48.843.477 1.292 1.372.454.89.454 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.313 1.383q-.86.48-2.078.48m-1.383-1.055h1.317q.913 0 1.519-.343.606-.348.906-1.004.3-.66.301-1.61 0-.941-.3-1.597a2.13 2.13 0 00-.887-.996q-.59-.34-1.465-.34h-1.39z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 110h357v63H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 110h357v63H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M7.379 125v-8h2.851q.93 0 1.543.32.619.32.922.887.305.563.305 1.301 0 .734-.309 1.293-.304.555-.921.863-.615.309-1.543.309h-2.16v-1.039h2.05q.585 0 .953-.168a1.1 1.1 0 00.543-.489q.172-.32.172-.769 0-.453-.176-.785a1.13 1.13 0 00-.543-.508q-.367-.18-.964-.18H8.586V125zm3.95-3.609L13.304 125H11.93l-1.938-3.609zM15.144 125h-1.282l2.88-8h1.394l2.879 8h-1.282l-2.261-6.547h-.063zm.214-3.133h4.157v1.016h-4.157zM24.761 125h-2.59v-8h2.672q1.176 0 2.02.48.843.477 1.292 1.372.453.89.453 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.312 1.383q-.86.48-2.078.48m-1.383-1.055h1.316q.915 0 1.52-.343a2.17 2.17 0 00.906-1.004q.3-.66.3-1.61 0-.941-.3-1.597a2.12 2.12 0 00-.887-.996q-.59-.34-1.464-.34h-1.391zm9.244-7.32l-2.578 9.578H29l2.578-9.578zm7.73 2.977h-1.218a1.86 1.86 0 00-.73-1.192 2 2 0 00-.622-.312 2.4 2.4 0 00-.722-.106q-.692 0-1.239.348-.543.347-.86 1.019-.311.672-.312 1.641 0 .977.313 1.648.316.672.863 1.016.548.344 1.23.344.38 0 .72-.102.344-.105.62-.308.278-.204.47-.496.195-.297.269-.68l1.218.004a3.3 3.3 0 01-.378 1.086 3 3 0 01-.715.851q-.434.356-.992.551-.559.195-1.22.195-1.038 0-1.85-.492-.814-.496-1.282-1.418-.465-.921-.465-2.199 0-1.281.469-2.199.469-.922 1.281-1.414.813-.496 1.848-.496.636 0 1.187.183.555.18.996.531.442.348.73.852.29.5.392 1.145M41.798 125v-8h2.851q.93 0 1.543.32.618.32.922.887.305.563.305 1.301 0 .734-.309 1.293-.304.555-.922.863-.613.309-1.542.309h-2.16v-1.039h2.05q.586 0 .953-.168a1.1 1.1 0 00.543-.489q.172-.32.172-.769 0-.453-.176-.785a1.13 1.13 0 00-.543-.508q-.366-.18-.965-.18h-1.515V125zm3.95-3.609L47.722 125h-1.375l-1.938-3.609zm7.503-2.289a1.14 1.14 0 00-.516-.86q-.453-.308-1.14-.308-.492 0-.852.156-.36.152-.558.422a1 1 0 00-.196.605q0 .285.133.492.137.207.356.348.222.136.476.231.255.089.488.148l.782.203q.383.094.785.254t.746.422.555.648q.214.387.214.926 0 .68-.351 1.207-.348.528-1.012.832-.66.305-1.597.305-.9 0-1.555-.285-.657-.285-1.028-.809-.37-.528-.41-1.25h1.211q.035.434.282.723.249.285.636.425.39.137.856.137.51 0 .91-.16.402-.163.633-.453.23-.293.23-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.77-.261l-.945-.258q-.96-.262-1.523-.77-.56-.507-.559-1.344a2 2 0 01.375-1.207q.375-.515 1.016-.8a3.5 3.5 0 011.445-.289q.813 0 1.434.285.625.285.984.785.36.496.375 1.141z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M357.5 110h178v63h-178z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M357.5 110h178v63h-178z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M390.381 148v-13.091h2.371v11.103h5.766V148zm10.195 0v-13.091h8.515v1.988h-6.143v3.554h5.702v1.988h-5.702v3.573h6.194V148zm10.934 0v-13.091h8.386v1.988h-6.015v3.554h5.44v1.988h-5.44V148zm9.972-11.103v-1.988h10.444v1.988h-4.046V148h-2.352v-11.103zm22.164-2.602l-4.219 15.674h-2.026l4.219-15.674zM449.69 148v-13.091h4.909q1.508 0 2.531.524 1.03.525 1.553 1.47.531.94.531 2.193 0 1.259-.537 2.186-.531.921-1.566 1.425-1.037.5-2.544.499h-3.497v-1.969h3.177q.882 0 1.445-.243.563-.25.831-.722.275-.48.275-1.176 0-.697-.275-1.189a1.75 1.75 0 00-.838-.754q-.562-.262-1.451-.262h-2.173V148zm6.762-5.932l3.241 5.932h-2.646l-3.183-5.932zm7.316-7.159V148h-2.371v-13.091zm11.338 4.18a3.4 3.4 0 00-.441-.926 2.9 2.9 0 00-.665-.71 2.7 2.7 0 00-.882-.441 3.7 3.7 0 00-1.087-.153q-1.054 0-1.879.53-.825.531-1.297 1.56-.467 1.023-.467 2.493 0 1.482.467 2.512.466 1.029 1.297 1.566.831.53 1.931.53.997 0 1.725-.383.736-.384 1.132-1.087.396-.71.396-1.662l.537.083h-3.554v-1.853h5.312v1.572q0 1.681-.716 2.909a4.9 4.9 0 01-1.969 1.892q-1.253.658-2.876.658-1.809 0-3.177-.812-1.361-.818-2.129-2.32-.76-1.509-.76-3.58 0-1.584.447-2.831.455-1.247 1.266-2.116a5.4 5.4 0 011.905-1.33 6.1 6.1 0 012.377-.46q1.087 0 2.027.32a5.4 5.4 0 011.668.895q.735.581 1.208 1.38.474.8.62 1.764zm4.818 8.911v-13.091h2.371v5.542h6.067v-5.542h2.377V148h-2.377v-5.561h-6.067V148zm12.819-11.103v-1.988h10.445v1.988h-4.046V148h-2.353v-11.103zm-128.759-18.858V117h6.192v1.039h-2.496V125h-1.203v-6.961zM376.688 117h1.211v5.262q0 .84-.394 1.488-.395.644-1.109 1.016-.716.366-1.676.367-.957 0-1.672-.367a2.76 2.76 0 01-1.11-1.016q-.394-.648-.394-1.488V117h1.207v5.164q0 .543.238.965.243.422.684.664.441.238 1.047.238.609 0 1.051-.238.445-.242.679-.664.238-.422.238-.965zm2.966 8v-8h2.852q.93 0 1.543.32.617.32.922.887.304.563.304 1.301 0 .734-.308 1.293-.305.555-.922.863-.613.309-1.543.309h-2.16v-1.039h2.051q.585 0 .953-.168.37-.168.543-.489.171-.32.172-.769 0-.453-.176-.785a1.14 1.14 0 00-.543-.508q-.368-.18-.965-.18h-1.516V125zm3.95-3.609L385.58 125h-1.375l-1.937-3.609zm9.597-4.391v8h-1.109l-4.067-5.867h-.074V125h-1.207v-8h1.117l4.071 5.875h.074V117zm6.124 2.102a1.14 1.14 0 00-.515-.86q-.454-.308-1.141-.308-.492 0-.852.156a1.3 1.3 0 00-.558.422 1 1 0 00-.196.605q0 .285.133.492.137.207.356.348.222.136.476.231.254.089.489.148l.781.203q.383.094.785.254t.746.422.555.648q.215.387.215.926 0 .68-.352 1.207-.348.528-1.012.832-.66.305-1.597.305-.898 0-1.555-.285t-1.027-.809q-.372-.528-.41-1.25h1.21q.036.434.282.723.25.285.636.425.391.137.856.137.511 0 .91-.16.402-.163.633-.453.23-.293.23-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.769-.261l-.946-.258q-.96-.262-1.523-.77-.558-.507-.559-1.344a2 2 0 01.375-1.207q.375-.515 1.016-.8a3.5 3.5 0 011.445-.289q.813 0 1.434.285.625.285.984.785.36.496.375 1.141z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 173h535v63H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 173h535v63H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M8.055 188H6.773l2.88-8h1.394l2.879 8h-1.281l-2.262-6.547h-.063zm.215-3.133h4.156v1.016H8.27zM15.08 188v-8h1.207v6.961h3.625V188zm4.773-6.961V180h6.19v1.039H23.55V188h-1.203v-6.961zM28.62 180v8h-1.207v-8zm1.363 1.039V180h6.192v1.039h-2.496V188h-1.203v-6.961zM42.688 180h1.21v5.262q0 .84-.394 1.488a2.76 2.76 0 01-1.11 1.016q-.714.367-1.675.367-.957 0-1.672-.367a2.76 2.76 0 01-1.11-1.016q-.393-.648-.394-1.488V180h1.207v5.164q0 .543.238.965.243.422.684.664.441.238 1.047.238.609 0 1.05-.238.446-.242.68-.664.24-.422.239-.965zm5.555 8h-2.59v-8h2.672q1.176 0 2.02.48.843.477 1.293 1.372.453.89.453 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.313 1.383q-.859.48-2.078.48m-1.383-1.055h1.317q.915 0 1.52-.343a2.17 2.17 0 00.905-1.004q.301-.66.301-1.61 0-.941-.3-1.597a2.12 2.12 0 00-.887-.996q-.59-.34-1.465-.34h-1.39zM53.592 188v-8h5.015v1.039H54.8v2.438h3.547v1.035H54.8v2.449h3.855V188z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 236h535v63H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 236h535v63H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M7.379 251v-8h5.016v1.039h-3.81v2.438h3.548v1.035H8.586v2.449h3.855V251zm7.468-8l1.914 3.129h.062L18.737 243h1.399l-2.492 4 2.507 4h-1.406l-1.922-3.086h-.062L14.839 251h-1.406l2.55-4-2.535-4zm6.486 8v-8h2.852q.934 0 1.546.34.614.339.918.93.305.585.305 1.32 0 .738-.309 1.328-.304.586-.921.93-.615.34-1.543.34H22.22v-1.024h1.851q.59 0 .957-.203.367-.207.54-.563.171-.355.171-.808t-.172-.805a1.24 1.24 0 00-.543-.551q-.366-.198-.968-.199H22.54V251zm7.036 0v-8h5.016v1.039h-3.809v2.438h3.547v1.035h-3.547v2.449h3.856V251zm13.273-5.398h-1.22a1.86 1.86 0 00-.73-1.192 2 2 0 00-.62-.312 2.4 2.4 0 00-.723-.106q-.691 0-1.239.348-.543.347-.859 1.019-.312.672-.312 1.641 0 .977.312 1.648.316.672.863 1.016t1.23.344q.38 0 .72-.102.344-.105.62-.308.279-.204.47-.496.195-.297.269-.68l1.219.004a3.3 3.3 0 01-.38 1.086 3 3 0 01-.714.851q-.434.356-.992.551-.559.195-1.22.195-1.038 0-1.85-.492-.814-.496-1.282-1.418-.465-.921-.465-2.199 0-1.281.469-2.199.47-.922 1.281-1.414.813-.496 1.848-.496.636 0 1.187.183.555.18.996.531.442.348.731.852.29.5.39 1.145m1.05-1.563V243h6.19v1.039h-2.495V251h-1.203v-6.961zM53.161 251v-8h4.961v1.039h-3.754v2.438h3.399v1.035h-3.399V251zm11.59-8h1.21v5.262q.001.84-.394 1.488-.394.644-1.109 1.016-.715.367-1.676.367-.957 0-1.672-.367a2.76 2.76 0 01-1.109-1.016q-.395-.648-.395-1.488V243h1.208v5.164q0 .543.238.965.242.422.683.664.443.238 1.047.238.61 0 1.051-.238a1.67 1.67 0 00.68-.664q.238-.422.238-.965zm2.966 8v-8h2.851q.93 0 1.543.32.619.32.922.887.305.563.305 1.301 0 .733-.309 1.293-.304.555-.922.863-.613.309-1.543.309h-2.16v-1.039h2.051q.585 0 .953-.168a1.1 1.1 0 00.543-.489q.172-.32.172-.769 0-.453-.176-.785a1.13 1.13 0 00-.543-.508q-.367-.18-.965-.18h-1.515V251zm3.949-3.609L73.644 251h-1.375l-1.938-3.609zm2.746-3.352V243h6.192v1.039h-2.497V251h-1.203v-6.961zm7.56 6.961v-8h1.207v3.477h3.988V243h1.21v8h-1.21v-3.488H83.18V251zm8.164 0v-8h5.015v1.039h-3.808v2.438h3.547v1.035h-3.547v2.449h3.855V251zm6.628 0v-8h2.851q.93 0 1.543.32.618.32.922.887.305.563.305 1.301 0 .733-.309 1.293-.304.555-.922.863-.613.309-1.543.309h-2.16v-1.039h2.05q.587 0 .954-.168.37-.168.543-.489a1.6 1.6 0 00.172-.769q0-.453-.176-.785a1.13 1.13 0 00-.543-.508q-.367-.18-.965-.18h-1.515V251zm3.949-3.609L102.69 251h-1.375l-1.937-3.609zm12.696-1.789h-1.219a1.86 1.86 0 00-.73-1.192 2 2 0 00-.621-.312 2.4 2.4 0 00-.723-.106q-.692 0-1.238.348-.544.347-.859 1.019-.313.672-.313 1.641 0 .977.313 1.648.315.672.863 1.016.547.344 1.23.344.379 0 .719-.102.344-.105.621-.308a1.87 1.87 0 00.738-1.176l1.219.004a3.3 3.3 0 01-.379 1.086 3 3 0 01-.715.851 3.2 3.2 0 01-.992.551 3.7 3.7 0 01-1.219.195q-1.038 0-1.851-.492-.813-.496-1.281-1.418-.465-.921-.465-2.199 0-1.281.469-2.199.468-.922 1.281-1.414.812-.496 1.847-.496.638 0 1.188.183.555.18.996.531.441.348.731.852.288.5.39 1.145m1.444 5.398v-8h1.208v6.961h3.625V251zm6.209 0v-8h5.016v1.039h-3.808v2.438h3.546v1.035h-3.546v2.449h3.855V251zm7.304 0h-1.281l2.879-8h1.394l2.879 8h-1.281l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zm6.812 3.133v-8h2.851q.93 0 1.543.32.618.32.922.887.305.563.305 1.301 0 .733-.309 1.293-.304.555-.922.863-.613.309-1.543.309h-2.16v-1.039h2.051q.585 0 .953-.168.37-.168.543-.489a1.6 1.6 0 00.172-.769q0-.453-.176-.785a1.14 1.14 0 00-.543-.508q-.367-.18-.965-.18H136.6V251zm3.949-3.609l1.976 3.609h-1.375l-1.937-3.609zm3.816 3.609h-1.281l2.879-8h1.394l2.879 8h-1.281l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zm13.27-4.867v8h-1.11l-4.066-5.867h-.074V251h-1.207v-8h1.117l4.07 5.875h.074V243zm8.405 2.602h-1.219a1.86 1.86 0 00-.73-1.192 2 2 0 00-.621-.312 2.4 2.4 0 00-.723-.106q-.692 0-1.238.348-.543.347-.86 1.019-.312.672-.312 1.641 0 .977.312 1.648.316.672.864 1.016.546.344 1.23.344.379 0 .719-.102.344-.105.621-.308a1.87 1.87 0 00.738-1.176l1.219.004a3.3 3.3 0 01-.379 1.086 3 3 0 01-.715.851q-.434.356-.992.551-.559.195-1.219.195-1.04 0-1.851-.492-.813-.496-1.282-1.418-.464-.921-.464-2.199 0-1.281.468-2.199.47-.922 1.282-1.414.812-.496 1.847-.496.637 0 1.188.183.554.18.996.531.441.348.73.852.29.5.391 1.145m1.444 5.398v-8h5.016v1.039h-3.809v2.438h3.547v1.035h-3.547v2.449h3.856V251z"})]})})),AW=u.memo((function(){return(0,Al.jsxs)(Wk,{width:600,height:692,fill:"none",viewBox:"8 8 600 692",children:[(0,Al.jsx)(Vk,{fill:"#233547",d:"M16 88h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16zm0 25h584v1H16z"}),(0,Al.jsx)(Vk,{fill:"#48323E",d:"M107.5 8h1v690h-1z"})]})})),xW=u.memo((function(){return(0,Al.jsxs)(Wk,{width:600,height:692,fill:"none",viewBox:"-32 -32 600 692",children:[(0,Al.jsx)(zk,{id:"pirep_form_template_prefix__a",fill:"#fff",children:(0,Al.jsx)(Vk,{d:"M0 0h536v47H0z"})}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M0 0h536v47H0z"}),(0,Al.jsx)(Vk,{fill:"#415F82",d:"M0 0v-1h-1v1zm536 0h1v-1h-1zM0 1h536v-2H0zm535-1v47h2V0zM1 47V0h-2v47z",mask:"url(#pirep_form_template_prefix__a)"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M206.67 31V15.727h5.728q1.76 0 2.953.657 1.2.656 1.812 1.804.62 1.14.619 2.595 0 1.47-.619 2.61-.62 1.141-1.827 1.798-1.207.649-2.976.649h-3.795v-2.275h3.423q1.029 0 1.685-.358t.969-.984q.321-.627.321-1.44t-.321-1.431a2.17 2.17 0 00-.977-.962q-.655-.35-1.692-.35h-2.536V31zm16.282-15.273V31h-2.767V15.727zM225.948 31V15.727h5.727q1.76 0 2.953.612 1.201.611 1.812 1.715.62 1.095.619 2.558 0 1.47-.626 2.55-.62 1.074-1.827 1.663-1.209.582-2.968.582h-4.079V23.11h3.706q1.03 0 1.685-.283.657-.291.97-.843.32-.56.32-1.372t-.32-1.387a2.04 2.04 0 00-.977-.88q-.657-.306-1.693-.306h-2.536V31zm7.89-6.92l3.781 6.92h-3.088l-3.714-6.92zm5.768 6.92V15.727h9.933v2.32h-7.166v4.146h6.652v2.32h-6.652v4.168h7.226V31zm12.756 0V15.727h5.727q1.76 0 2.953.657 1.201.656 1.812 1.804.62 1.14.619 2.595 0 1.47-.619 2.61-.618 1.141-1.827 1.798-1.208.649-2.975.649h-3.796v-2.275h3.423q1.03 0 1.685-.358.657-.358.97-.984.32-.627.32-1.44t-.32-1.431a2.2 2.2 0 00-.977-.962q-.657-.35-1.693-.35h-2.535V31zm18.723 0V15.727h9.785v2.32h-7.018v4.146h6.346v2.32h-6.346V31zm25.952-7.636q0 2.468-.925 4.228-.916 1.752-2.505 2.685-1.581.932-3.587.932t-3.595-.932q-1.581-.94-2.505-2.693-.918-1.76-.918-4.22 0-2.469.918-4.221.924-1.76 2.505-2.692 1.588-.933 3.595-.933 2.006 0 3.587.933 1.589.931 2.505 2.692.925 1.752.925 4.22m-2.781 0q0-1.738-.545-2.931-.537-1.2-1.491-1.812-.955-.62-2.2-.62t-2.2.62q-.954.611-1.499 1.812-.537 1.193-.537 2.93t.537 2.939q.545 1.193 1.499 1.812.954.612 2.2.611 1.245 0 2.2-.611.954-.62 1.491-1.812.545-1.2.545-2.938M299.653 31V15.727h5.727q1.76 0 2.953.612 1.201.611 1.812 1.715.62 1.095.619 2.558 0 1.47-.626 2.55-.62 1.074-1.827 1.663-1.208.582-2.968.582h-4.079V23.11h3.706q1.03 0 1.685-.283.657-.291.97-.843.32-.56.32-1.372t-.32-1.387a2.04 2.04 0 00-.977-.88q-.657-.306-1.693-.306h-2.535V31zm7.89-6.92l3.781 6.92h-3.088l-3.713-6.92zm5.768-8.353h3.386l4.534 11.067h.179l4.534-11.067h3.386V31h-2.655V20.508h-.142l-4.221 10.447h-1.984l-4.22-10.47h-.142V31h-2.655z"}),(0,Al.jsxs)(Fk,{clipPath:"url(#pirep_form_template_prefix__b)",children:[(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 47H268v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M.5 47h95v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M38.804 59.227h6.318v14.91q0 2.658-1.273 4.602-1.26 1.931-3.522 2.988-2.262 1.046-5.25 1.046-3.012 0-5.273-1.046-2.262-1.056-3.523-2.988-1.25-1.944-1.25-4.603V59.227h6.318v14.364q0 1.08.478 1.932.477.84 1.318 1.318.852.477 1.932.477 1.09 0 1.931-.477t1.319-1.318q.477-.853.477-1.932zM54.545 82.5h-6.818l7.682-23.273h8.637L71.727 82.5H64.91l-5.09-16.864h-.183zm-1.272-9.182H66.09v4.728H53.273zM104.379 62v-8h2.851q.93 0 1.543.32.618.321.922.887.305.563.305 1.3 0 .735-.309 1.294-.304.554-.921.863-.614.309-1.543.309h-2.161v-1.04h2.051q.587 0 .953-.167.372-.168.543-.489t.172-.77q0-.452-.176-.784a1.13 1.13 0 00-.543-.508q-.367-.18-.964-.18h-1.516V62zm3.949-3.61l1.977 3.61h-1.375l-1.938-3.61zm5.499 3.731q-.843 0-1.473-.387a2.6 2.6 0 01-.976-1.082q-.348-.695-.348-1.625 0-.933.348-1.633t.976-1.085q.63-.387 1.473-.387.845 0 1.473.387.629.386.976 1.086.348.699.348 1.632 0 .93-.348 1.625a2.6 2.6 0 01-.976 1.082q-.628.387-1.473.387m.004-.98q.547 0 .906-.29.36-.289.532-.769.175-.48.175-1.059 0-.574-.175-1.054a1.7 1.7 0 00-.532-.778q-.359-.293-.906-.293-.55 0-.914.293a1.74 1.74 0 00-.535.778q-.172.48-.172 1.054 0 .579.172 1.059.175.48.535.77.363.288.914.289m7.898-1.63V56h1.171v6h-1.148v-1.04h-.063a1.87 1.87 0 01-.664.802q-.453.316-1.129.316a2.03 2.03 0 01-1.023-.254 1.8 1.8 0 01-.695-.761q-.25-.504-.25-1.247V56h1.168v3.676q0 .613.34.976.339.363.882.364a1.44 1.44 0 001.196-.66q.219-.333.215-.844M127.271 56v.938h-3.278V56zm-2.399-1.437h1.168v5.675q0 .34.102.512a.53.53 0 00.261.23q.164.06.356.06.141 0 .246-.02l.164-.032.211.965a2.3 2.3 0 01-.758.125 2.1 2.1 0 01-.859-.164 1.47 1.47 0 01-.645-.531q-.246-.36-.246-.903zM128.563 62v-6h1.167v6zm.589-6.926a.74.74 0 01-.523-.203.66.66 0 01-.215-.492q0-.29.215-.492a.73.73 0 01.523-.207q.305 0 .52.207.219.203.219.492 0 .285-.219.492a.73.73 0 01-.52.203m3.318 3.364V62h-1.168v-6h1.121v.977h.074q.207-.477.649-.766.444-.29 1.121-.29.613 0 1.074.259.46.254.715.758.254.502.254 1.246V62h-1.168v-3.676q0-.652-.34-1.02-.34-.37-.934-.37-.407 0-.722.175a1.27 1.27 0 00-.497.516 1.7 1.7 0 00-.179.813m7.992 3.683q-.887 0-1.527-.379a2.57 2.57 0 01-.985-1.074q-.344-.696-.344-1.629 0-.921.344-1.625.348-.703.969-1.098.626-.394 1.461-.394.508 0 .984.168.477.168.856.527.379.36.597.934.219.57.219 1.386v.415h-4.769v-.875h3.625q0-.462-.188-.817a1.4 1.4 0 00-.527-.566 1.47 1.47 0 00-.789-.207q-.492 0-.86.242a1.63 1.63 0 00-.562.625q-.195.382-.195.832v.684q0 .6.21 1.023.216.422.598.645.382.218.895.218.332 0 .605-.093.273-.099.473-.29t.304-.472l1.106.199a2 2 0 01-.477.855 2.3 2.3 0 01-.855.567q-.512.2-1.168.2m6.875-.121v-8h2.851q.93 0 1.543.32.618.321.922.887.305.563.305 1.3 0 .735-.309 1.294-.305.554-.921.863-.614.309-1.543.309h-2.161v-1.04h2.051q.587 0 .953-.167.372-.168.543-.489t.172-.77q0-.452-.176-.784a1.13 1.13 0 00-.543-.508q-.366-.18-.964-.18h-1.516V62zm3.949-3.61l1.977 3.61h-1.375l-1.938-3.61zm5.558 3.731q-.887 0-1.528-.379a2.57 2.57 0 01-.984-1.074q-.344-.696-.344-1.629 0-.921.344-1.625.348-.703.969-1.098.624-.394 1.461-.394.507 0 .984.168t.856.527q.378.36.597.934.219.57.219 1.386v.415h-4.77v-.875h3.625q0-.462-.187-.817a1.4 1.4 0 00-.527-.566 1.47 1.47 0 00-.789-.207q-.493 0-.86.242a1.6 1.6 0 00-.562.625 1.8 1.8 0 00-.196.832v.684q0 .6.211 1.023.216.422.598.645.382.218.894.218.333 0 .606-.093.273-.099.473-.29a1.3 1.3 0 00.304-.472l1.106.199a2 2 0 01-.477.855 2.3 2.3 0 01-.855.567q-.512.2-1.168.2m3.87 2.129V56h1.14v.973h.098a3.4 3.4 0 01.293-.434q.192-.246.531-.43.34-.187.899-.187.726 0 1.297.367.57.367.894 1.059.328.69.328 1.664 0 .972-.324 1.668-.324.69-.891 1.066a2.3 2.3 0 01-1.292.371q-.547 0-.895-.183a1.7 1.7 0 01-.539-.43 3 3 0 01-.301-.438h-.07v3.184zm1.144-5.25q0 .633.184 1.11.183.476.531.745.348.266.852.266.523 0 .875-.277.351-.282.531-.762.184-.48.184-1.082 0-.594-.18-1.066a1.63 1.63 0 00-.531-.746q-.352-.274-.879-.274-.508 0-.86.262a1.6 1.6 0 00-.527.73q-.18.469-.18 1.094m8.172 3.121q-.843 0-1.472-.387a2.6 2.6 0 01-.977-1.082q-.348-.695-.348-1.625 0-.933.348-1.633a2.6 2.6 0 01.977-1.085q.629-.387 1.472-.387.844 0 1.473.387.629.386.976 1.086.348.699.348 1.632 0 .93-.348 1.625a2.6 2.6 0 01-.976 1.082q-.628.387-1.473.387m.004-.98q.548 0 .906-.29.36-.289.532-.769.175-.48.175-1.059 0-.574-.175-1.054a1.7 1.7 0 00-.532-.778q-.358-.293-.906-.293-.55 0-.914.293a1.75 1.75 0 00-.535.778q-.172.48-.172 1.054 0 .579.172 1.059.176.48.535.77.363.288.914.289m4.097.859v-6h1.129v.953h.062q.165-.485.578-.762.418-.28.946-.28a5 5 0 01.496.026v1.118a2 2 0 00-.25-.043 2.4 2.4 0 00-.36-.028q-.414 0-.738.176a1.31 1.31 0 00-.695 1.176V62zm7.377-6v.938h-3.278V56zm-2.399-1.437h1.168v5.675q0 .34.102.512a.53.53 0 00.262.23q.163.06.355.06.141 0 .246-.02l.164-.032.211.965a2.3 2.3 0 01-.758.125 2.1 2.1 0 01-.859-.164 1.5 1.5 0 01-.645-.531q-.246-.36-.246-.903z"}),(0,Al.jsx)(Vk,{stroke:"#fff",strokeWidth:1.5,d:"M230.75 59.25h22.5v22.5h-22.5z"})]}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 47H268v47H.5z"}),(0,Al.jsxs)(Fk,{clipPath:"url(#pirep_form_template_prefix__c)",children:[(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M268 47h267.5v47H268z"}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M268 47h95v47h-95z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M294.57 59.227h6.318v14.91q0 2.658-1.273 4.602-1.261 1.931-3.523 2.988-2.26 1.046-5.25 1.046-3.011 0-5.272-1.046-2.262-1.056-3.523-2.988-1.25-1.944-1.25-4.603V59.227h6.318v14.364q0 1.08.477 1.932.478.84 1.319 1.318.852.477 1.931.477 1.092 0 1.932-.477.841-.477 1.318-1.318.478-.853.478-1.932zm23.468 0h6.319v14.91q0 2.658-1.273 4.602-1.261 1.931-3.523 2.988-2.26 1.046-5.25 1.046-3.01 0-5.273-1.046-2.26-1.056-3.522-2.988-1.25-1.944-1.25-4.603V59.227h6.318v14.364q0 1.08.477 1.932.478.84 1.318 1.318.852.477 1.932.477 1.09 0 1.932-.477t1.318-1.318q.477-.853.477-1.932zM333.78 82.5h-6.818l7.681-23.273h8.637l7.682 23.273h-6.819l-5.09-16.864h-.182zm-1.273-9.182h12.818v4.728h-12.818zM377.023 54h1.211v5.262q0 .84-.394 1.488-.394.645-1.11 1.016-.714.366-1.675.367-.957 0-1.672-.367a2.76 2.76 0 01-1.11-1.016q-.394-.648-.394-1.488V54h1.207v5.164q0 .543.238.965.243.422.684.664.441.238 1.047.238.609 0 1.05-.238.446-.242.68-.664.238-.422.238-.965zm2.873 8v-6h1.128v.953h.063q.164-.485.578-.762.419-.28.945-.28a5 5 0 01.496.026v1.118a2 2 0 00-.25-.043 2.4 2.4 0 00-.359-.028q-.414 0-.738.176a1.3 1.3 0 00-.696 1.176V62zm6.522 2.375q-.715 0-1.23-.187a2.4 2.4 0 01-.836-.497 2.1 2.1 0 01-.485-.675l1.004-.414q.105.171.281.363.18.195.485.332.308.137.793.137.663 0 1.097-.325.434-.32.434-1.023v-1.18h-.074q-.106.192-.305.426-.195.235-.539.406-.343.172-.895.172-.711 0-1.281-.332a2.36 2.36 0 01-.898-.988q-.328-.657-.328-1.613 0-.957.324-1.641.328-.684.898-1.047.57-.367 1.293-.367.559 0 .903.187.343.184.535.43.195.246.301.434h.085V56h1.145v6.133q0 .773-.359 1.27-.36.495-.973.734a3.8 3.8 0 01-1.375.238m-.012-3.434q.504 0 .852-.234.351-.238.531-.68.184-.445.184-1.066 0-.606-.18-1.066a1.6 1.6 0 00-.527-.72q-.348-.26-.86-.26-.526 0-.879.273-.351.27-.531.734-.176.465-.176 1.039 0 .59.18 1.035.18.446.531.695.356.25.875.25m6.871 1.18q-.887 0-1.527-.379a2.57 2.57 0 01-.984-1.074q-.345-.696-.344-1.629 0-.921.344-1.625.347-.703.968-1.098.626-.394 1.461-.394.508 0 .985.168.476.168.855.527.38.36.598.934.219.57.219 1.386v.415h-4.77v-.875h3.625q0-.462-.187-.817a1.4 1.4 0 00-.528-.566 1.47 1.47 0 00-.789-.207q-.492 0-.859.242a1.63 1.63 0 00-.563.625q-.195.382-.195.832v.684q0 .6.211 1.023.214.422.598.645.382.218.894.218.332 0 .606-.093a1.25 1.25 0 00.777-.762l1.105.199q-.132.488-.476.855a2.3 2.3 0 01-.856.567 3.2 3.2 0 01-1.168.2m5.038-3.684V62h-1.168v-6h1.122v.977h.074q.207-.477.648-.766.446-.29 1.121-.29.613 0 1.075.259.46.254.714.758.255.502.254 1.246V62h-1.168v-3.676q0-.652-.34-1.02-.339-.37-.933-.37-.406 0-.723.175a1.27 1.27 0 00-.496.516 1.7 1.7 0 00-.18.813M406.522 56v.938h-3.277V56zm-2.398-1.437h1.168v5.675q0 .34.102.512a.53.53 0 00.261.23q.165.06.356.06.14 0 .246-.02l.164-.032.211.965a2.3 2.3 0 01-.758.125 2.1 2.1 0 01-.859-.164 1.47 1.47 0 01-.645-.531q-.246-.36-.246-.903zM410.819 62v-8h2.852q.93 0 1.543.32.617.321.922.887.304.563.304 1.3 0 .735-.308 1.294-.305.554-.922.863-.613.309-1.543.309h-2.16v-1.04h2.051q.585 0 .953-.167.37-.168.543-.489.171-.32.172-.77 0-.452-.176-.784a1.14 1.14 0 00-.543-.508q-.368-.18-.965-.18h-1.516V62zm3.95-3.61l1.976 3.61h-1.375l-1.937-3.61zm5.557 3.731q-.887 0-1.527-.379a2.57 2.57 0 01-.985-1.074q-.343-.696-.343-1.629 0-.921.343-1.625.348-.703.969-1.098.625-.394 1.461-.394.508 0 .985.168.475.168.855.527.38.36.598.934.218.57.218 1.386v.415h-4.769v-.875h3.625q0-.462-.188-.817-.187-.36-.527-.566a1.47 1.47 0 00-.789-.207q-.492 0-.859.242-.364.238-.563.625-.195.382-.195.832v.684q0 .6.211 1.023.214.422.597.645.384.218.895.218.332 0 .605-.093.274-.099.473-.29t.305-.472l1.105.199q-.132.488-.476.855a2.3 2.3 0 01-.856.567 3.2 3.2 0 01-1.168.2m3.87 2.129V56h1.141v.973h.098q.1-.188.293-.434.19-.246.531-.43.34-.187.898-.187.727 0 1.297.367t.895 1.059q.328.69.328 1.664 0 .972-.324 1.668-.325.69-.891 1.066a2.3 2.3 0 01-1.293.371q-.547 0-.895-.183a1.7 1.7 0 01-.539-.43q-.195-.246-.3-.438h-.071v3.184zm1.145-5.25q0 .633.183 1.11.184.476.532.745.347.266.851.266.524 0 .875-.277a1.7 1.7 0 00.531-.762 3 3 0 00.184-1.082q0-.594-.18-1.066a1.63 1.63 0 00-.531-.746q-.351-.274-.879-.274-.507 0-.859.262a1.6 1.6 0 00-.527.73q-.18.469-.18 1.094m8.172 3.121q-.844 0-1.473-.387a2.6 2.6 0 01-.977-1.082q-.347-.695-.347-1.625 0-.933.347-1.633.348-.7.977-1.085.628-.387 1.473-.387.843 0 1.472.387.63.386.977 1.086.348.699.348 1.632 0 .93-.348 1.625a2.6 2.6 0 01-.977 1.082q-.629.387-1.472.387m.004-.98q.546 0 .906-.29.36-.289.531-.769.176-.48.176-1.059 0-.574-.176-1.054a1.7 1.7 0 00-.531-.778q-.36-.293-.906-.293-.552 0-.914.293a1.75 1.75 0 00-.536.778q-.171.48-.171 1.054 0 .579.171 1.059.176.48.536.77.363.288.914.289m4.096.859v-6h1.129v.953h.063q.164-.485.578-.762.418-.28.945-.28a5 5 0 01.496.026v1.118a2 2 0 00-.25-.043 2.4 2.4 0 00-.359-.028q-.414 0-.738.176a1.3 1.3 0 00-.696 1.176V62zm7.377-6v.938h-3.277V56zm-2.398-1.437h1.168v5.675q0 .34.101.512a.53.53 0 00.262.23q.164.06.356.06.14 0 .246-.02l.164-.032.211.965a2.3 2.3 0 01-.758.125 2.1 2.1 0 01-.86-.164 1.5 1.5 0 01-.644-.531q-.246-.36-.246-.903z"}),(0,Al.jsx)(Vk,{stroke:"#fff",strokeWidth:1.5,d:"M498.25 59.25h22.5v22.5h-22.5z"})]}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M268 47h267.5v47H268z"}),(0,Al.jsxs)(Fk,{clipPath:"url(#pirep_form_template_prefix__d)",children:[(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 94h535v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M.5 94h95v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M29.297 105.136L21.797 133h-5.318l7.5-27.864zm24.42 12.728q0 3.886-1.511 6.556-1.511 2.66-4.08 4.035-2.567 1.363-5.727 1.363-3.182 0-5.75-1.375-2.556-1.387-4.068-4.045-1.5-2.671-1.5-6.534 0-3.886 1.5-6.546 1.512-2.67 4.068-4.034 2.568-1.375 5.75-1.375 3.159 0 5.727 1.375 2.569 1.364 4.08 4.034 1.511 2.66 1.511 6.546m-6.5 0q0-2.092-.556-3.523-.546-1.443-1.626-2.182-1.067-.75-2.636-.75-1.568 0-2.648.75-1.068.74-1.625 2.182-.545 1.431-.545 3.523t.545 3.534q.557 1.431 1.625 2.182 1.08.738 2.648.738t2.636-.738q1.08-.75 1.626-2.182.555-1.443.556-3.534m14.694-11.637l4.772 16.409h.182l4.773-16.409h7.136L71.092 129.5h-8.636l-7.682-23.273zM104.379 109v-8h1.207v6.961h3.625V109zm8.642.121q-.843 0-1.472-.387a2.6 2.6 0 01-.977-1.082q-.348-.695-.347-1.625 0-.933.347-1.632.348-.7.977-1.086t1.472-.387q.844 0 1.473.387.629.386.977 1.086.347.699.347 1.632 0 .93-.347 1.625a2.6 2.6 0 01-.977 1.082q-.629.387-1.473.387m.004-.98q.547 0 .907-.289.358-.29.531-.77.176-.48.176-1.059 0-.573-.176-1.054a1.73 1.73 0 00-.531-.778q-.36-.293-.907-.293-.55 0-.914.293a1.75 1.75 0 00-.535.778q-.172.48-.172 1.054 0 .579.172 1.059.176.48.535.77.364.288.914.289m6.624.98q-.87 0-1.5-.394a2.6 2.6 0 01-.961-1.098q-.335-.699-.335-1.602 0-.914.343-1.613a2.63 2.63 0 01.969-1.098q.626-.394 1.473-.394.683 0 1.218.254.536.25.864.703.332.453.394 1.058h-1.136a1.36 1.36 0 00-.43-.726q-.332-.305-.891-.305-.487 0-.855.258a1.66 1.66 0 00-.567.727q-.203.468-.203 1.109 0 .656.199 1.133.2.477.563.738.367.262.863.262.332 0 .602-.121a1.24 1.24 0 00.457-.356q.187-.23.262-.554h1.136a2.2 2.2 0 01-.379 1.039 2.2 2.2 0 01-.847.718q-.528.262-1.239.262m5.46.012q-.57 0-1.031-.211a1.73 1.73 0 01-.73-.621q-.266-.406-.266-.996 0-.509.195-.836.196-.328.528-.52.331-.191.742-.289.41-.097.836-.148l.875-.102q.336-.042.488-.137.152-.094.152-.304v-.028q0-.511-.289-.793-.285-.28-.851-.281-.59 0-.93.262a1.4 1.4 0 00-.465.574l-1.097-.25q.195-.547.57-.883a2.3 2.3 0 01.871-.492 3.4 3.4 0 011.035-.156q.36 0 .762.086.406.082.758.304.355.223.582.637.226.41.226 1.067V109h-1.14v-.82h-.047a1.7 1.7 0 01-.34.445 1.8 1.8 0 01-.582.363 2.3 2.3 0 01-.852.145m.254-.938q.484 0 .828-.191.348-.192.528-.5a1.3 1.3 0 00.183-.668v-.774a.6.6 0 01-.242.118 4 4 0 01-.402.09l-.442.066-.359.047a3 3 0 00-.621.144 1.1 1.1 0 00-.445.293q-.164.188-.164.5 0 .434.32.657.32.218.816.218m7.064-5.195v.937h-3.278V103zm-2.399-1.438h1.168v5.676q0 .34.102.512a.53.53 0 00.262.23q.163.06.355.059.141 0 .246-.019l.164-.032.211.965a2 2 0 01-.289.078 2.2 2.2 0 01-.469.047 2.05 2.05 0 01-.859-.164 1.5 1.5 0 01-.645-.531q-.246-.36-.246-.903zm3.691 7.438v-6h1.168v6zm.59-6.926a.74.74 0 01-.524-.203.66.66 0 01-.215-.492q0-.29.215-.492a.74.74 0 01.524-.207.72.72 0 01.519.207.65.65 0 01.219.492q0 .285-.219.492a.73.73 0 01-.519.203m4.676 7.047q-.843 0-1.472-.387a2.6 2.6 0 01-.977-1.082q-.348-.695-.348-1.625 0-.933.348-1.632a2.6 2.6 0 01.977-1.086q.629-.387 1.472-.387.844 0 1.473.387.629.386.977 1.086.347.699.347 1.632 0 .93-.347 1.625a2.6 2.6 0 01-.977 1.082q-.629.387-1.473.387m.004-.98q.547 0 .907-.289.358-.29.531-.77.176-.48.176-1.059 0-.573-.176-1.054a1.73 1.73 0 00-.531-.778q-.36-.293-.907-.293-.55 0-.914.293a1.75 1.75 0 00-.535.778 3.1 3.1 0 00-.172 1.054q0 .579.172 1.059.176.48.535.77.363.288.914.289m5.265-2.704V109h-1.168v-6h1.121v.977h.074q.207-.477.649-.766.445-.29 1.121-.289.613 0 1.074.258.461.254.715.757.254.504.254 1.247V109h-1.168v-3.676q0-.653-.34-1.019-.34-.372-.934-.371-.405 0-.722.175a1.26 1.26 0 00-.496.516 1.7 1.7 0 00-.18.812"})]}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 94h535v47H.5z"}),(0,Al.jsxs)(Fk,{clipPath:"url(#pirep_form_template_prefix__e)",children:[(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 141h535v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M.5 141h95v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M28.516 152.136L21.016 180h-5.319l7.5-27.864zm1.05 6.182v-5.091h20.228v5.091h-7V176.5h-6.227v-18.182zm22.606-5.091h7.864l5.409 13.182h.272l5.41-13.182h7.863V176.5h-6.182v-13.455h-.182l-5.181 13.273h-3.728l-5.181-13.363h-.182V176.5h-6.182zm51.812-4.188V148h6.192v1.039h-2.496V156h-1.203v-6.961zM111.45 156v-6h1.168v6zm.59-6.926a.74.74 0 01-.523-.203.66.66 0 01-.215-.492q0-.29.215-.492a.73.73 0 01.523-.207q.304 0 .52.207a.65.65 0 01.218.492q0 .285-.218.492a.73.73 0 01-.52.203m2.149 6.926v-6h1.122v.977h.074a1.55 1.55 0 01.613-.774q.426-.28 1.02-.281.602 0 1.007.281.411.281.606.774h.062q.215-.481.684-.766.468-.29 1.117-.289.816 0 1.332.512.52.511.52 1.543V156h-1.168v-3.914q0-.61-.332-.883a1.2 1.2 0 00-.793-.273q-.57 0-.887.351-.316.348-.316.895V156h-1.164v-3.988q0-.49-.305-.785-.305-.297-.793-.297-.332 0-.613.175a1.3 1.3 0 00-.45.481 1.5 1.5 0 00-.168.715V156zm12.308.121q-.886 0-1.527-.379a2.57 2.57 0 01-.985-1.074q-.343-.696-.343-1.629 0-.922.343-1.625.348-.703.969-1.098.626-.394 1.461-.394.508 0 .984.168.477.168.856.527.379.36.598.934.218.57.218 1.386v.415h-4.769v-.875h3.625q0-.462-.188-.817a1.4 1.4 0 00-.527-.566 1.47 1.47 0 00-.789-.207q-.492 0-.86.242a1.6 1.6 0 00-.562.625q-.195.382-.195.832v.684q0 .602.211 1.023.215.422.597.644.383.219.895.219.332 0 .605-.094.274-.097.473-.289t.305-.472l1.105.199a2 2 0 01-.476.855 2.3 2.3 0 01-.856.567q-.511.2-1.168.199"})]}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 141h535v47H.5z"}),(0,Al.jsxs)(Fk,{clipPath:"url(#pirep_form_template_prefix__f)",children:[(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 188h535v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M.5 188h95v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M35.547 199.136L28.047 227h-5.318l7.5-27.864zm1.875 24.364v-23.273h16.364v5.091H43.74v4h9.045v5.091H43.74v9.091zm19.062 0v-23.273h6.319v18.182h9.409v5.091zm48.571-20.5h-1.282l2.879-8h1.395l2.879 8h-1.281l-2.262-6.547h-.063zm.215-3.133h4.156v1.016h-4.156zm7.885-4.867v8h-1.168v-8zm4.372 2v.937h-3.277V197zm-2.398-1.438h1.168v5.676q0 .34.101.512a.53.53 0 00.262.23q.165.06.356.059.14 0 .246-.019l.164-.032.211.965a2 2 0 01-.289.078 2.2 2.2 0 01-.469.047 2.05 2.05 0 01-.859-.164 1.5 1.5 0 01-.645-.531q-.246-.36-.246-.903zm3.69 7.438v-6h1.168v6zm.59-6.926a.74.74 0 01-.523-.203.66.66 0 01-.215-.492q0-.29.215-.492a.73.73 0 01.523-.207q.304 0 .52.207a.64.64 0 01.218.492q0 .285-.218.492a.73.73 0 01-.52.203m4.95.926v.937h-3.277V197zm-2.398-1.438h1.168v5.676q0 .34.101.512a.53.53 0 00.262.23q.164.06.356.059.14 0 .246-.019l.164-.032.211.965a2 2 0 01-.289.078 2.2 2.2 0 01-.469.047 2.05 2.05 0 01-.859-.164 1.5 1.5 0 01-.645-.531q-.246-.36-.246-.903zm7.491 4.95V197h1.172v6h-1.148v-1.039h-.063q-.207.48-.664.801-.453.316-1.129.316-.578 0-1.023-.254a1.8 1.8 0 01-.696-.762q-.25-.503-.25-1.246V197h1.168v3.676q0 .613.34.976.34.364.883.364.328 0 .652-.164.328-.165.543-.497.22-.332.215-.843m4.987 2.605q-.726 0-1.296-.371-.567-.375-.891-1.066-.32-.696-.32-1.668 0-.973.324-1.664.328-.691.898-1.059a2.34 2.34 0 011.293-.367q.559 0 .899.187.344.184.531.43.192.246.297.434h.07V195h1.168v8h-1.141v-.934h-.097a3 3 0 01-.305.438q-.195.246-.539.43-.344.183-.891.183m.258-.996q.504 0 .852-.266.351-.269.531-.746a3.1 3.1 0 00.184-1.109q0-.625-.18-1.094a1.6 1.6 0 00-.527-.73q-.348-.262-.86-.262-.526 0-.879.274-.351.273-.531.746-.176.472-.176 1.066 0 .602.18 1.082t.531.762q.356.277.875.277m6.968 1q-.886 0-1.527-.379a2.57 2.57 0 01-.985-1.074q-.343-.696-.343-1.629 0-.922.343-1.625.348-.703.969-1.098.625-.394 1.461-.394.508 0 .984.168.477.168.856.527.379.36.598.934.218.57.218 1.386v.415h-4.769v-.875h3.625q0-.462-.188-.817a1.4 1.4 0 00-.527-.566 1.47 1.47 0 00-.789-.207q-.492 0-.86.242a1.6 1.6 0 00-.562.625q-.195.382-.195.832v.684q0 .602.211 1.023.214.422.597.644.383.219.895.219.332 0 .605-.094.274-.097.473-.289t.305-.472l1.105.199a2 2 0 01-.477.855 2.3 2.3 0 01-.855.567q-.511.2-1.168.199m9.828-8.496l-2.578 9.578h-1.043l2.578-9.578zM155.49 203v-8h4.961v1.039h-3.754v2.438h3.399v1.035h-3.399V203zm7.52-8v8h-1.168v-8zm1.571 8v-6h1.168v6zm.59-6.926a.74.74 0 01-.524-.203.66.66 0 01-.214-.492.65.65 0 01.214-.492.74.74 0 01.524-.207.72.72 0 01.519.207.65.65 0 01.219.492q0 .285-.219.492a.73.73 0 01-.519.203m4.665 9.301q-.715 0-1.231-.187a2.4 2.4 0 01-.835-.497 2.1 2.1 0 01-.485-.675l1.004-.414q.105.171.281.363.18.195.485.332.308.137.793.137.663 0 1.097-.325.434-.32.434-1.023v-1.18h-.074a2.7 2.7 0 01-.305.426q-.195.234-.539.406-.343.172-.895.172-.711 0-1.281-.332a2.36 2.36 0 01-.898-.988q-.328-.656-.328-1.613t.324-1.641q.328-.684.898-1.047.57-.367 1.293-.367.559 0 .903.187.343.184.535.43.195.246.301.434h.085V197h1.145v6.133q0 .773-.359 1.269-.36.496-.973.735a3.8 3.8 0 01-1.375.238m-.012-3.434q.504 0 .852-.234a1.46 1.46 0 00.531-.68q.184-.445.184-1.066 0-.606-.18-1.066a1.6 1.6 0 00-.527-.719q-.348-.262-.86-.262-.526 0-.879.274a1.65 1.65 0 00-.531.734q-.176.465-.176 1.039 0 .59.18 1.035.18.446.531.695.356.25.875.25m5.453-2.504V203h-1.168v-8h1.153v2.977h.074q.211-.485.644-.77t1.133-.285a2.2 2.2 0 011.078.254q.465.254.719.758.258.5.258 1.25V203H178v-3.676q0-.66-.34-1.023-.34-.367-.945-.367-.415 0-.742.175a1.27 1.27 0 00-.512.516 1.7 1.7 0 00-.184.812m8.25-2.437v.937h-3.277V197zm-2.398-1.438h1.168v5.676q0 .34.101.512a.53.53 0 00.262.23q.165.06.356.059.14 0 .246-.019l.164-.032.211.965a2 2 0 01-.289.078 2.2 2.2 0 01-.469.047 2.05 2.05 0 01-.859-.164 1.5 1.5 0 01-.645-.531q-.246-.36-.246-.903zm6.695 7.438v-8h1.207v6.961h3.625V203zm8.701.121q-.886 0-1.527-.379a2.57 2.57 0 01-.984-1.074q-.344-.696-.344-1.629 0-.922.344-1.625.347-.703.968-1.098.626-.394 1.461-.394.508 0 .985.168.476.168.855.527.38.36.598.934.219.57.219 1.386v.415h-4.77v-.875h3.625q0-.462-.187-.817a1.4 1.4 0 00-.528-.566 1.47 1.47 0 00-.789-.207q-.492 0-.859.242a1.63 1.63 0 00-.563.625q-.195.382-.195.832v.684q0 .602.211 1.023.214.422.598.644.382.219.894.219.331 0 .606-.094.273-.097.472-.289.2-.191.305-.472l1.105.199a2 2 0 01-.476.855 2.3 2.3 0 01-.856.567q-.511.2-1.168.199m8.831-6.121l-2.175 6h-1.25l-2.18-6h1.254l1.519 4.617h.063l1.516-4.617zm3.48 6.121q-.887 0-1.527-.379a2.57 2.57 0 01-.985-1.074q-.344-.696-.344-1.629 0-.922.344-1.625.348-.703.969-1.098.625-.394 1.461-.394.508 0 .984.168.477.168.856.527.379.36.597.934.219.57.219 1.386v.415h-4.769v-.875h3.625q0-.462-.188-.817a1.4 1.4 0 00-.527-.566 1.47 1.47 0 00-.789-.207q-.492 0-.86.242a1.6 1.6 0 00-.562.625q-.195.382-.195.832v.684q0 .602.21 1.023.216.422.598.644.383.219.895.219.332 0 .605-.094.273-.097.473-.289t.304-.472l1.106.199a2 2 0 01-.477.855 2.3 2.3 0 01-.855.567 3.2 3.2 0 01-1.168.199m5.038-8.121v8h-1.168v-8z"})]}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 188h535v47H.5z"}),(0,Al.jsxs)(Fk,{clipPath:"url(#pirep_form_template_prefix__g)",children:[(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 235h535v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M.5 235h95v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M32.547 246.136L25.047 274h-5.318l7.5-27.864zm1.239 6.182v-5.091h20.227v5.091h-7V270.5h-6.227v-18.182zm22.98 18.182v-23.273H66.81q2.591 0 4.534 1.023 1.944 1.023 3.023 2.875t1.08 4.33q0 2.499-1.114 4.329-1.103 1.83-3.103 2.818-1.987.989-4.647.989h-6v-4.909h4.727q1.113 0 1.898-.387.795-.397 1.216-1.125.431-.726.431-1.715 0-1-.431-1.705a2.7 2.7 0 00-1.216-1.091q-.785-.386-1.898-.386h-2.227V270.5zm48.289-20.5h-1.282l2.879-8h1.395l2.879 8h-1.281l-2.262-6.547h-.063zm.215-3.133h4.156v1.016h-4.156zm6.771 3.133v-6h1.168v6zm.59-6.926a.74.74 0 01-.524-.203.66.66 0 01-.214-.492.65.65 0 01.214-.492.74.74 0 01.524-.207.72.72 0 01.519.207.65.65 0 01.219.492q0 .285-.219.492a.73.73 0 01-.519.203M114.78 250v-6h1.129v.953h.063a1.45 1.45 0 01.578-.762q.418-.28.945-.281a5 5 0 01.496.027v1.118a2 2 0 00-.25-.043 2.3 2.3 0 00-.359-.028q-.414 0-.738.176a1.31 1.31 0 00-.696 1.176V250zm6.534.121q-.87 0-1.5-.394a2.6 2.6 0 01-.96-1.098q-.336-.699-.336-1.602 0-.914.343-1.613a2.63 2.63 0 01.969-1.098q.626-.394 1.473-.394.683 0 1.218.254.535.25.864.703.332.453.394 1.058h-1.136a1.36 1.36 0 00-.43-.726q-.332-.305-.891-.305-.487 0-.855.258a1.66 1.66 0 00-.567.727q-.203.468-.203 1.109 0 .656.199 1.133.2.477.563.738.368.262.863.262.332 0 .602-.121a1.24 1.24 0 00.457-.356q.187-.23.262-.554h1.136a2.2 2.2 0 01-.379 1.039 2.2 2.2 0 01-.847.718q-.528.262-1.239.262m3.714-.121v-6h1.129v.953h.063a1.45 1.45 0 01.578-.762q.418-.28.945-.281a5 5 0 01.496.027v1.118a2 2 0 00-.25-.043 2.3 2.3 0 00-.359-.028q-.414 0-.738.176a1.31 1.31 0 00-.696 1.176V250zm5.914.133q-.57 0-1.031-.211a1.73 1.73 0 01-.73-.621q-.266-.406-.266-.996 0-.509.195-.836.196-.328.528-.52.331-.191.742-.289.41-.097.836-.148l.875-.102q.336-.042.488-.137.152-.094.152-.304v-.028q0-.511-.289-.793-.285-.28-.851-.281-.59 0-.93.262a1.4 1.4 0 00-.465.574l-1.097-.25q.195-.546.57-.883a2.3 2.3 0 01.871-.492 3.4 3.4 0 011.035-.156q.36 0 .762.086.406.082.758.304.356.223.582.637.226.41.226 1.067V250h-1.14v-.82h-.047a1.7 1.7 0 01-.34.445 1.8 1.8 0 01-.582.363 2.3 2.3 0 01-.852.145m.254-.938q.484 0 .828-.191.348-.192.528-.5a1.3 1.3 0 00.183-.668v-.774a.6.6 0 01-.242.118 4 4 0 01-.402.09l-.442.066-.359.047a3 3 0 00-.621.144 1.1 1.1 0 00-.445.293q-.165.188-.164.5 0 .434.32.657.32.218.816.218m7.118-5.195v.937h-3.39V244zm-2.46 6v-6.695q0-.563.246-.934.246-.375.652-.559.406-.187.883-.187.351 0 .601.059.25.054.371.101l-.273.945-.211-.054a1.2 1.2 0 00-.312-.035q-.426 0-.61.211-.18.21-.18.609V250zm6.466-6v.937h-3.277V244zm-2.398-1.438h1.168v5.676q0 .34.101.512a.53.53 0 00.262.23q.165.06.356.059.14 0 .246-.019l.164-.032.211.965a2 2 0 01-.289.078 2.2 2.2 0 01-.469.047 2.1 2.1 0 01-.86-.164 1.5 1.5 0 01-.644-.531q-.246-.36-.246-.903zm6.301.477V242h6.191v1.039h-2.496V250h-1.203v-6.961zm7.516 9.211q-.261 0-.476-.043a1.5 1.5 0 01-.321-.086l.282-.957q.32.086.57.074a.68.68 0 00.441-.187q.196-.176.344-.574l.145-.399-2.196-6.078h1.25l1.52 4.656h.062l1.52-4.656h1.254l-2.473 6.801q-.171.469-.437.793a1.7 1.7 0 01-.633.492 2.1 2.1 0 01-.852.164m5.492 0V244h1.141v.973h.098q.1-.188.293-.434.19-.246.531-.43.34-.187.898-.187.727 0 1.297.367.57.368.895 1.059.328.691.328 1.664 0 .972-.324 1.668-.324.691-.891 1.066a2.3 2.3 0 01-1.293.371q-.547 0-.894-.183a1.7 1.7 0 01-.539-.43 3 3 0 01-.301-.438h-.071v3.184zm1.145-5.25q0 .633.184 1.109.183.477.531.746.347.266.851.266.524 0 .875-.277.352-.282.532-.762a3 3 0 00.183-1.082q0-.594-.179-1.066a1.63 1.63 0 00-.532-.746q-.351-.274-.879-.274-.507 0-.859.262a1.6 1.6 0 00-.527.73q-.18.469-.18 1.094m8.23 3.121q-.887 0-1.527-.379a2.57 2.57 0 01-.984-1.074q-.344-.696-.344-1.629 0-.922.344-1.625.347-.703.968-1.098.625-.394 1.461-.394.508 0 .985.168.476.168.855.527.38.36.598.934.219.57.219 1.386v.415h-4.77v-.875h3.625q0-.462-.187-.817a1.4 1.4 0 00-.528-.566 1.47 1.47 0 00-.789-.207q-.492 0-.859.242a1.63 1.63 0 00-.563.625q-.195.382-.195.832v.684q0 .602.211 1.023.214.422.598.644.382.219.894.219.332 0 .606-.094.273-.097.472-.289.2-.191.305-.472l1.105.199a2 2 0 01-.476.855 2.3 2.3 0 01-.856.567q-.511.2-1.168.199"})]}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 235h535v47H.5z"}),(0,Al.jsxs)(Fk,{clipPath:"url(#pirep_form_template_prefix__h)",children:[(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 282h535v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M.5 282h95v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M31.938 293.136L24.438 321h-5.319l7.5-27.864zm14.42 8.364q-.09-1.136-.852-1.773-.75-.636-2.284-.636-.978 0-1.603.239-.613.226-.909.625-.295.397-.307.909-.022.42.148.761.181.33.568.602.387.262.989.478.603.215 1.432.386l1.909.409q1.932.41 3.307 1.08t2.25 1.579a5.6 5.6 0 011.284 2.023q.42 1.125.432 2.454-.011 2.296-1.148 3.887-1.137 1.59-3.25 2.42-2.102.83-5.057.83-3.035 0-5.295-.898-2.25-.898-3.5-2.761-1.24-1.875-1.25-4.796h6q.056 1.068.534 1.796.477.726 1.34 1.102.876.375 2.08.375 1.011 0 1.693-.25t1.034-.693q.353-.444.364-1.012a1.43 1.43 0 00-.352-.931q-.33-.41-1.091-.728-.761-.329-2.057-.613l-2.318-.5q-3.09-.671-4.875-2.239-1.774-1.58-1.761-4.307-.012-2.216 1.181-3.875 1.204-1.67 3.33-2.602 2.136-.932 4.898-.932 2.817 0 4.875.943 2.056.943 3.17 2.659 1.125 1.705 1.136 3.989zm9.142 16v-23.273h6.318v9.409h.318l7-9.409H76.5l-7.864 10.364 8.046 12.909h-7.546l-5.227-8.727-2.09 2.727v6zm53.242-26.398a1.14 1.14 0 00-.515-.86q-.454-.308-1.141-.308-.492 0-.852.156a1.3 1.3 0 00-.558.422 1 1 0 00-.196.605q0 .285.133.492.137.207.356.348.222.137.476.231.254.089.489.148l.781.203q.383.094.785.254t.746.422.555.648q.215.387.215.926 0 .68-.352 1.207-.348.528-1.012.832-.66.305-1.597.305-.898 0-1.555-.285t-1.027-.809q-.372-.527-.41-1.25h1.21q.036.433.282.723.25.285.636.425.391.137.856.137.511 0 .91-.16.402-.163.633-.453.23-.293.23-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.769-.261l-.946-.258q-.96-.262-1.523-.77-.558-.507-.559-1.344a2 2 0 01.375-1.207q.375-.515 1.016-.8a3.5 3.5 0 011.445-.289q.813 0 1.434.285.625.285.984.785.36.496.375 1.141zm3.696 3.863l-.007-1.426h.203l2.39-2.539h1.399l-2.727 2.891h-.183zM111.364 297v-8h1.168v8zm3.789 0l-2.148-2.852.805-.816 2.777 3.668zm3.105 2.25q-.262 0-.477-.043a1.5 1.5 0 01-.32-.086l.281-.957q.321.086.57.074a.7.7 0 00.442-.187q.195-.176.344-.574l.144-.399-2.195-6.078h1.25l1.519 4.656h.063l1.519-4.656h1.254l-2.472 6.801a2.7 2.7 0 01-.438.793 1.7 1.7 0 01-.633.492 2.1 2.1 0 01-.851.164m15.141-7.648h-1.218a1.86 1.86 0 00-.731-1.192 2 2 0 00-.621-.312 2.4 2.4 0 00-.723-.106q-.69 0-1.238.348-.543.348-.859 1.019-.313.672-.313 1.641 0 .977.313 1.648.316.672.863 1.016t1.231.344q.378 0 .718-.102.344-.105.621-.308.278-.204.469-.496.195-.297.27-.68l1.218.004a3.3 3.3 0 01-.378 1.086 3 3 0 01-.715.851q-.434.356-.993.551t-1.218.195q-1.04 0-1.852-.492-.813-.496-1.281-1.418-.465-.921-.465-2.199 0-1.281.469-2.199.468-.922 1.281-1.414.813-.496 1.848-.496.636 0 1.187.183.555.18.996.531.442.348.731.852.289.5.39 1.145m3.878 5.519q-.843 0-1.472-.387a2.6 2.6 0 01-.977-1.082q-.348-.695-.348-1.625 0-.933.348-1.632a2.6 2.6 0 01.977-1.086q.629-.387 1.472-.387.844 0 1.473.387.629.386.977 1.086.347.699.347 1.632 0 .93-.347 1.625a2.6 2.6 0 01-.977 1.082q-.629.387-1.473.387m.004-.98q.547 0 .907-.289.358-.29.531-.77.176-.48.176-1.059 0-.573-.176-1.054a1.73 1.73 0 00-.531-.778q-.36-.293-.907-.293-.55 0-.914.293a1.75 1.75 0 00-.535.778 3.1 3.1 0 00-.172 1.054q0 .579.172 1.059.176.48.535.77.363.288.914.289m9.026-5.141l-2.176 6h-1.25l-2.18-6h1.254l1.52 4.617h.062l1.516-4.617zm3.479 6.121q-.887 0-1.527-.379a2.57 2.57 0 01-.985-1.074q-.343-.696-.343-1.629 0-.922.343-1.625.348-.703.969-1.098.625-.394 1.461-.394.509 0 .984.168.477.168.856.527.38.36.598.934.218.57.218 1.386v.415h-4.769v-.875h3.625q0-.462-.188-.817a1.4 1.4 0 00-.527-.566 1.47 1.47 0 00-.789-.207q-.493 0-.859.242-.364.238-.563.625-.195.382-.195.832v.684q0 .601.211 1.023.215.422.597.644.384.219.895.219.332 0 .605-.094.274-.097.473-.289t.305-.472l1.105.199a2 2 0 01-.476.855 2.3 2.3 0 01-.856.567q-.511.2-1.168.199m3.87-.121v-6h1.129v.953h.063a1.45 1.45 0 01.578-.762q.418-.28.945-.281a5 5 0 01.496.027v1.118a2 2 0 00-.25-.043 2.3 2.3 0 00-.359-.028q-.414 0-.738.176a1.31 1.31 0 00-.696 1.176V297z"})]}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 282h535v47H.5z"}),(0,Al.jsxs)(Fk,{clipPath:"url(#pirep_form_template_prefix__i)",children:[(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 329h535v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M.5 329h95v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M24.094 340.136L16.594 368h-5.318l7.5-27.864zm8.253 24.364l-6.864-23.273h7.045l3.182 14.318h.182l3.773-14.318h5.545l3.773 14.364h.182l3.182-14.364h7.045L52.528 364.5h-6.045l-3.955-13h-.181l-3.955 13zm36.238-23.273L72.403 348h.182l3.864-6.773h7.045l-6.954 11.637 7.227 11.636H76.54l-3.955-6.909h-.182L68.45 364.5h-7.182l7.136-11.636-6.909-11.637zM104.379 344v-8h4.961v1.039h-3.754v2.438h3.398v1.035h-3.398V344zm7.519-8v8h-1.168v-8zm1.572 8v-6h1.168v6zm.59-6.926a.74.74 0 01-.524-.203.66.66 0 01-.215-.492q0-.29.215-.492a.74.74 0 01.524-.207.72.72 0 01.519.207.65.65 0 01.219.492q0 .285-.219.492a.73.73 0 01-.519.203m4.665 9.301q-.715 0-1.231-.187a2.4 2.4 0 01-.836-.497 2.1 2.1 0 01-.484-.675l1.004-.414q.105.171.281.363.18.195.484.332.309.137.793.137.665 0 1.098-.325.434-.32.434-1.023v-1.18h-.075q-.105.192-.304.426-.196.234-.539.406-.345.172-.895.172-.711 0-1.281-.332a2.36 2.36 0 01-.899-.988q-.328-.656-.328-1.613t.324-1.641q.329-.684.899-1.047.57-.367 1.293-.367.558 0 .902.187.344.184.535.43.196.246.301.434h.086V338h1.145v6.133q0 .773-.36 1.269a2.1 2.1 0 01-.972.735 3.8 3.8 0 01-1.375.238m-.012-3.434q.504 0 .851-.234.352-.238.532-.68.183-.445.183-1.066 0-.606-.179-1.066a1.6 1.6 0 00-.528-.719q-.348-.262-.859-.262-.528 0-.879.274a1.65 1.65 0 00-.531.734q-.176.465-.176 1.039 0 .59.18 1.035.18.446.531.695.356.25.875.25m5.453-2.504V344h-1.168v-8h1.152v2.977h.075q.21-.485.644-.77t1.133-.285q.617 0 1.078.254.465.254.719.758.258.5.258 1.25V344h-1.168v-3.676q0-.66-.34-1.023-.34-.367-.945-.367a1.55 1.55 0 00-.743.175 1.27 1.27 0 00-.511.516 1.7 1.7 0 00-.184.812m8.25-2.437v.937h-3.277V338zm-2.398-1.438h1.168v5.676q0 .34.101.512a.53.53 0 00.262.23q.164.06.355.059.141 0 .246-.019l.164-.032.211.965a2 2 0 01-.289.078 2.2 2.2 0 01-.468.047 2.1 2.1 0 01-.86-.164 1.5 1.5 0 01-.644-.531q-.246-.36-.246-.903zm7.394-.562l2.227 6.516h.09l2.226-6.516h1.305l-2.879 8h-1.395l-2.879-8zm6.909 8v-6h1.168v6zm.59-6.926a.74.74 0 01-.523-.203.66.66 0 01-.215-.492q0-.29.215-.492a.73.73 0 01.523-.207q.304 0 .52.207a.65.65 0 01.218.492q0 .285-.218.492a.73.73 0 01-.52.203m6.646 2.391l-1.059.187a1.3 1.3 0 00-.211-.386 1 1 0 00-.383-.301 1.4 1.4 0 00-.605-.117q-.496 0-.828.222-.333.219-.332.567 0 .3.222.484.223.183.719.301l.953.219q.828.191 1.235.589.406.399.406 1.036 0 .538-.313.961a2.05 2.05 0 01-.863.656q-.55.238-1.277.238-1.008 0-1.645-.43-.636-.434-.781-1.23l1.129-.172q.106.441.433.668.328.222.856.223.575 0 .918-.239.344-.242.344-.589a.62.62 0 00-.211-.473q-.207-.192-.637-.289l-1.016-.223q-.84-.191-1.242-.609-.398-.419-.398-1.059 0-.531.297-.929a1.94 1.94 0 01.82-.622 3 3 0 011.199-.226q.973 0 1.531.422.56.417.739 1.121m1.401 4.535v-6h1.168v6zm.59-6.926a.74.74 0 01-.524-.203.66.66 0 01-.214-.492.65.65 0 01.214-.492.74.74 0 01.524-.207.72.72 0 01.519.207.65.65 0 01.219.492q0 .285-.219.492a.73.73 0 01-.519.203m2.243 6.926v-8h1.168v2.973h.07q.102-.188.293-.434a1.7 1.7 0 01.532-.43q.34-.187.898-.187.727 0 1.297.367.57.368.894 1.059.328.691.328 1.664 0 .972-.324 1.668-.324.691-.89 1.066a2.3 2.3 0 01-1.293.371q-.547 0-.895-.183a1.7 1.7 0 01-.539-.43q-.195-.246-.301-.438h-.097V344zm1.145-3q0 .633.183 1.109.185.477.531.746.348.267.852.266.524 0 .875-.277.351-.282.531-.762.184-.48.184-1.082 0-.594-.18-1.066a1.6 1.6 0 00-.531-.746q-.352-.274-.879-.274-.508 0-.859.262a1.6 1.6 0 00-.528.73q-.18.469-.179 1.094m5.647 3v-6h1.168v6zm.59-6.926a.74.74 0 01-.524-.203.66.66 0 01-.214-.492.65.65 0 01.214-.492.74.74 0 01.524-.207.72.72 0 01.519.207.65.65 0 01.219.492q0 .285-.219.492a.73.73 0 01-.519.203M166.49 336v8h-1.168v-8zm1.572 8v-6h1.167v6zm.589-6.926a.74.74 0 01-.523-.203.66.66 0 01-.215-.492q0-.29.215-.492a.73.73 0 01.523-.207q.305 0 .52.207a.65.65 0 01.219.492q0 .285-.219.492a.73.73 0 01-.52.203m4.951.926v.937h-3.278V338zm-2.399-1.438h1.168v5.676q0 .34.102.512a.52.52 0 00.261.23q.165.06.356.059.141 0 .246-.019l.164-.032.211.965a2 2 0 01-.289.078 2.2 2.2 0 01-.469.047 2.05 2.05 0 01-.859-.164 1.5 1.5 0 01-.645-.531q-.246-.36-.246-.903zm4.429 9.688a2.4 2.4 0 01-.797-.129l.281-.957q.32.086.571.074a.7.7 0 00.441-.187q.195-.176.344-.574l.144-.399-2.195-6.078h1.25l1.519 4.656h.063l1.519-4.656h1.254l-2.472 6.801a2.7 2.7 0 01-.438.793 1.7 1.7 0 01-.633.492 2.1 2.1 0 01-.851.164m10.149-2.117q-.57 0-1.031-.211a1.73 1.73 0 01-.73-.621q-.266-.406-.266-.996 0-.509.195-.836.195-.328.528-.52.331-.191.742-.289.41-.097.836-.148l.875-.102q.335-.042.488-.137.153-.094.152-.304v-.028q0-.511-.289-.793-.285-.28-.851-.281-.59 0-.93.262a1.4 1.4 0 00-.465.574l-1.097-.25q.195-.546.57-.883.379-.339.871-.492a3.4 3.4 0 011.035-.156q.36 0 .762.086.406.082.758.304.356.223.582.637.226.41.226 1.067V344h-1.14v-.82h-.047a1.7 1.7 0 01-.34.445 1.8 1.8 0 01-.582.363 2.3 2.3 0 01-.852.145m.254-.938q.484 0 .828-.191.348-.191.528-.5a1.3 1.3 0 00.183-.668v-.774a.6.6 0 01-.242.118 4 4 0 01-.402.09l-.442.066-.359.047a3 3 0 00-.621.144 1.1 1.1 0 00-.445.293q-.165.188-.165.5 0 .434.321.657.32.218.816.218m5.431-2.758V344h-1.168v-6h1.121v.977h.074q.207-.477.649-.766.444-.29 1.121-.289.613 0 1.074.258.46.254.715.757.254.504.254 1.247V344h-1.168v-3.676q0-.653-.34-1.019-.34-.371-.934-.371-.406 0-.722.175a1.26 1.26 0 00-.496.516 1.7 1.7 0 00-.18.812m7.652 3.68q-.727 0-1.297-.371-.566-.375-.89-1.066-.321-.696-.321-1.668 0-.973.325-1.664.327-.691.898-1.059.57-.367 1.293-.367.559 0 .898.187.345.184.532.43.19.246.297.434h.07V336h1.168v8h-1.141v-.934h-.097a3 3 0 01-.305.438q-.195.246-.539.43-.344.183-.891.183m.258-.996q.504 0 .852-.266.351-.269.531-.746a3.1 3.1 0 00.183-1.109q0-.625-.179-1.094a1.6 1.6 0 00-.528-.73q-.347-.262-.859-.262-.528 0-.879.274-.351.273-.531.746-.176.472-.176 1.066 0 .602.18 1.082t.531.762q.356.277.875.277m8.953.879l-2.219-8h1.27l1.558 6.195h.075l1.621-6.195h1.258l1.621 6.199h.074l1.555-6.199h1.273l-2.223 8h-1.214l-1.684-5.992h-.063L209.548 344zm11.088.121q-.887 0-1.527-.379a2.57 2.57 0 01-.985-1.074q-.343-.696-.343-1.629 0-.922.343-1.625.348-.703.969-1.098.625-.394 1.461-.394.508 0 .984.168.477.168.856.527.379.36.597.934.219.57.219 1.386v.415h-4.769v-.875h3.625q0-.462-.188-.817a1.4 1.4 0 00-.527-.566 1.47 1.47 0 00-.789-.207q-.492 0-.86.242a1.6 1.6 0 00-.562.625q-.195.382-.195.832v.684q0 .601.211 1.023.215.422.597.644.383.219.895.219.332 0 .605-.094.273-.097.473-.289t.305-.472l1.105.199a2 2 0 01-.477.855 2.3 2.3 0 01-.855.567 3.2 3.2 0 01-1.168.199m5.616.012q-.57 0-1.031-.211a1.74 1.74 0 01-.731-.621q-.265-.406-.265-.996 0-.509.195-.836.195-.328.528-.52.331-.191.742-.289.41-.097.836-.148l.875-.102q.335-.042.488-.137.152-.094.152-.304v-.028q0-.511-.289-.793-.285-.28-.851-.281-.59 0-.93.262a1.4 1.4 0 00-.465.574l-1.098-.25q.196-.546.571-.883.379-.339.871-.492a3.4 3.4 0 011.035-.156q.36 0 .762.086.406.082.758.304.356.223.582.637.226.41.226 1.067V344h-1.14v-.82h-.047a1.7 1.7 0 01-.34.445 1.8 1.8 0 01-.582.363 2.3 2.3 0 01-.852.145m.254-.938q.484 0 .828-.191.348-.191.528-.5a1.3 1.3 0 00.183-.668v-.774a.6.6 0 01-.242.118 4 4 0 01-.402.09l-.442.066-.359.047a3 3 0 00-.621.144 1.1 1.1 0 00-.446.293q-.164.188-.164.5 0 .434.321.657.32.218.816.218m7.064-5.195v.937h-3.278V338zm-2.399-1.438h1.168v5.676q0 .34.102.512a.52.52 0 00.261.23q.165.06.356.059.141 0 .246-.019l.164-.032.211.965a2 2 0 01-.289.078 2.2 2.2 0 01-.469.047 2.05 2.05 0 01-.859-.164 1.5 1.5 0 01-.645-.531q-.246-.36-.246-.903zm4.987 3.875V344h-1.168v-8h1.153v2.977h.074q.211-.485.645-.77.433-.285 1.132-.285.617 0 1.079.254.464.254.718.758.258.5.258 1.25V344h-1.168v-3.676q0-.66-.34-1.023-.339-.367-.945-.367-.414 0-.742.175a1.27 1.27 0 00-.512.516 1.7 1.7 0 00-.184.812m8.036 3.684q-.888 0-1.528-.379a2.57 2.57 0 01-.984-1.074q-.344-.696-.344-1.629 0-.922.344-1.625.348-.703.969-1.098.624-.394 1.461-.394.507 0 .984.168t.855.527q.38.36.598.934.219.57.219 1.386v.415h-4.77v-.875h3.625q0-.462-.187-.817a1.4 1.4 0 00-.528-.566 1.47 1.47 0 00-.789-.207q-.492 0-.859.242-.363.238-.562.625a1.8 1.8 0 00-.196.832v.684q0 .601.211 1.023.215.422.598.644.383.219.894.219.333 0 .606-.094.273-.097.472-.289.2-.191.305-.472l1.106.199a2 2 0 01-.477.855 2.3 2.3 0 01-.855.567 3.2 3.2 0 01-1.168.199m3.87-.121v-6h1.129v.953h.062q.165-.485.578-.762a1.66 1.66 0 01.946-.281 5 5 0 01.496.027v1.118a2 2 0 00-.25-.043 2.3 2.3 0 00-.36-.028q-.414 0-.738.176a1.31 1.31 0 00-.695 1.176V344z"})]}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 329h535v47H.5z"}),(0,Al.jsxs)(Fk,{clipPath:"url(#pirep_form_template_prefix__j)",children:[(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 376h535v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M.5 376h95v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M31.781 387.136L24.281 415h-5.318l7.5-27.864zm1.239 6.182v-5.091h20.227v5.091h-7V411.5H40.02v-18.182zM59.108 411.5H52.29l7.682-23.273h8.636L76.29 411.5h-6.818l-5.091-16.864h-.182zm-1.273-9.182h12.818v4.727H57.835zM105.055 391h-1.282l2.879-8h1.395l2.879 8h-1.281l-2.262-6.547h-.063zm.215-3.133h4.156v1.016h-4.156zm6.771 3.133v-6h1.168v6zm.59-6.926a.74.74 0 01-.524-.203.66.66 0 01-.214-.492.65.65 0 01.214-.492.74.74 0 01.524-.207.72.72 0 01.519.207.65.65 0 01.219.492q0 .285-.219.492a.73.73 0 01-.519.203M114.78 391v-6h1.129v.953h.063a1.45 1.45 0 01.578-.762q.418-.28.945-.281a5 5 0 01.496.027v1.118a2 2 0 00-.25-.043 2.3 2.3 0 00-.359-.028q-.414 0-.738.176a1.31 1.31 0 00-.696 1.176V391zm6.832-6.961V383h6.192v1.039h-2.496V391h-1.204v-6.961zm9.182 7.082q-.886 0-1.527-.379a2.57 2.57 0 01-.985-1.074q-.344-.696-.344-1.629 0-.922.344-1.625.348-.703.969-1.098.626-.394 1.461-.394.508 0 .984.168.477.168.856.527.379.36.597.934.219.57.219 1.386v.415h-4.769v-.875h3.625q0-.462-.188-.817a1.4 1.4 0 00-.527-.566 1.47 1.47 0 00-.789-.207q-.492 0-.86.242a1.6 1.6 0 00-.562.625q-.195.382-.195.832v.684q0 .601.21 1.023.216.422.598.644.383.219.895.219.332 0 .605-.094.273-.097.473-.289t.304-.472l1.106.199a2 2 0 01-.477.855 2.3 2.3 0 01-.855.567 3.2 3.2 0 01-1.168.199m3.87-.121v-6h1.121v.977h.074q.188-.496.614-.774.425-.28 1.019-.281.602 0 1.008.281.41.281.605.774h.063q.215-.481.684-.766.468-.29 1.117-.289.816 0 1.332.512.519.511.519 1.543V391h-1.168v-3.914q0-.61-.332-.883a1.2 1.2 0 00-.793-.273q-.57 0-.886.351-.317.348-.317.895V391h-1.164v-3.988q0-.49-.305-.785-.304-.297-.792-.297-.333 0-.614.175a1.3 1.3 0 00-.449.481 1.5 1.5 0 00-.168.715V391zm9.722 2.25V385h1.14v.973h.098q.101-.188.293-.434t.531-.43q.34-.187.899-.187.726 0 1.297.367.57.368.894 1.059.328.691.328 1.664 0 .972-.324 1.668-.324.691-.891 1.066a2.3 2.3 0 01-1.293.371q-.546 0-.894-.183a1.7 1.7 0 01-.539-.43 3 3 0 01-.301-.438h-.07v3.184zm1.144-5.25q0 .633.184 1.109.183.477.531.746.348.267.852.266.523 0 .875-.277.351-.282.531-.762a3 3 0 00.184-1.082q0-.594-.18-1.066a1.6 1.6 0 00-.531-.746q-.352-.274-.879-.274-.508 0-.86.262a1.6 1.6 0 00-.527.73q-.18.469-.18 1.094m8.231 3.121q-.887 0-1.528-.379a2.57 2.57 0 01-.984-1.074q-.344-.696-.344-1.629 0-.922.344-1.625.348-.703.969-1.098.624-.394 1.461-.394.507 0 .984.168t.856.527q.378.36.597.934.219.57.219 1.386v.415h-4.77v-.875h3.625q0-.462-.187-.817a1.4 1.4 0 00-.527-.566 1.47 1.47 0 00-.789-.207q-.493 0-.86.242-.363.238-.562.625a1.8 1.8 0 00-.196.832v.684q0 .601.211 1.023.216.422.598.644.382.219.894.219.333 0 .606-.094.273-.097.473-.289t.304-.472l1.106.199a2 2 0 01-.477.855 2.3 2.3 0 01-.855.567 3.2 3.2 0 01-1.168.199m3.87-.121v-6h1.129v.953h.062q.165-.485.578-.762a1.66 1.66 0 01.946-.281 5 5 0 01.496.027v1.118a2 2 0 00-.25-.043 2.3 2.3 0 00-.36-.028q-.414 0-.738.176a1.31 1.31 0 00-.695 1.176V391zm5.914.133q-.57 0-1.031-.211a1.73 1.73 0 01-.731-.621q-.265-.406-.265-.996 0-.509.195-.836.195-.328.527-.52.333-.191.742-.289.411-.097.836-.148l.875-.102q.336-.042.489-.137.152-.093.152-.304v-.028q0-.511-.289-.793-.285-.28-.852-.281-.59 0-.929.262a1.4 1.4 0 00-.465.574l-1.098-.25q.195-.546.57-.883.379-.339.872-.492a3.4 3.4 0 011.035-.156q.359 0 .761.086.407.082.758.304.356.223.582.637.227.41.227 1.067V391h-1.141v-.82h-.047a1.7 1.7 0 01-.339.445 1.8 1.8 0 01-.583.363q-.354.145-.851.145m.254-.938q.484 0 .828-.191.348-.191.527-.5a1.3 1.3 0 00.184-.668v-.774a.6.6 0 01-.242.118 4 4 0 01-.403.09l-.441.066-.359.047a3 3 0 00-.622.144 1.1 1.1 0 00-.445.293q-.164.188-.164.5 0 .434.32.657.32.218.817.218m7.063-5.195v.937h-3.277V385zm-2.398-1.438h1.168v5.676q0 .34.101.512a.53.53 0 00.262.23q.164.06.356.059.14 0 .246-.019l.164-.032.211.965a2 2 0 01-.289.078 2.2 2.2 0 01-.469.047 2.1 2.1 0 01-.86-.164 1.5 1.5 0 01-.644-.531q-.246-.36-.246-.903zm7.491 4.95V385h1.172v6h-1.148v-1.039h-.063q-.207.48-.664.801-.453.316-1.129.316a2.03 2.03 0 01-1.023-.254 1.8 1.8 0 01-.696-.762q-.25-.503-.25-1.246V385h1.168v3.676q0 .613.34.976.34.364.883.364.328 0 .652-.164.329-.164.543-.497.22-.332.215-.843m2.741 2.488v-6h1.129v.953h.063a1.45 1.45 0 01.578-.762q.418-.28.945-.281a5 5 0 01.496.027v1.118a2 2 0 00-.25-.043 2.3 2.3 0 00-.359-.028q-.414 0-.738.176a1.31 1.31 0 00-.696 1.176V391zm6.593.121q-.887 0-1.527-.379a2.57 2.57 0 01-.985-1.074q-.343-.696-.343-1.629 0-.922.343-1.625.348-.703.969-1.098.626-.394 1.461-.394.508 0 .984.168.477.168.856.527.379.36.598.934.218.57.218 1.386v.415h-4.769v-.875h3.625q0-.462-.188-.817a1.4 1.4 0 00-.527-.566 1.47 1.47 0 00-.789-.207q-.492 0-.86.242a1.6 1.6 0 00-.562.625q-.195.382-.195.832v.684q0 .601.211 1.023.215.422.597.644.383.219.895.219.332 0 .605-.094.274-.097.473-.289t.305-.472l1.105.199a2 2 0 01-.476.855 2.3 2.3 0 01-.856.567q-.511.2-1.168.199M192.41 387q0-1.468.387-2.703a8 8 0 011.129-2.277h1.07a5 5 0 00-.539.949 9 9 0 00-.437 1.234 11 11 0 00-.293 1.387 9.6 9.6 0 00.078 3.293q.183.953.496 1.769.312.817.695 1.332h-1.07a8 8 0 01-1.129-2.277q-.387-1.234-.387-2.707m10.556-1.398h-1.219a1.86 1.86 0 00-.73-1.192 2 2 0 00-.621-.312 2.4 2.4 0 00-.723-.106q-.692 0-1.238.348-.543.348-.86 1.019-.312.672-.312 1.641 0 .977.312 1.648.317.672.863 1.016.547.344 1.231.344.379 0 .719-.102.344-.105.621-.308a1.87 1.87 0 00.738-1.176l1.219.004a3.3 3.3 0 01-.379 1.086 3 3 0 01-.715.851q-.434.356-.992.551a3.7 3.7 0 01-1.219.195q-1.04 0-1.851-.492-.813-.496-1.282-1.418-.465-.921-.465-2.199 0-1.281.469-2.199.47-.922 1.281-1.414.813-.496 1.848-.496.637 0 1.188.183.553.18.996.531.44.348.73.852.29.5.391 1.145m3.936 5.519q-.887 0-1.527-.379a2.57 2.57 0 01-.984-1.074q-.345-.696-.344-1.629 0-.922.344-1.625.347-.703.968-1.098.625-.394 1.461-.394.508 0 .985.168.476.168.855.527.38.36.598.934.219.57.219 1.386v.415h-4.77v-.875h3.625q0-.462-.187-.817a1.4 1.4 0 00-.528-.566 1.47 1.47 0 00-.789-.207q-.492 0-.859.242a1.63 1.63 0 00-.563.625q-.195.382-.195.832v.684q0 .601.211 1.023.214.422.598.644.383.219.894.219.332 0 .606-.094.273-.097.472-.289.2-.191.305-.472l1.105.199a2 2 0 01-.476.855 2.3 2.3 0 01-.856.567q-.511.2-1.168.199M211.94 383v8h-1.168v-8zm6.068 3.465l-1.059.187a1.2 1.2 0 00-.211-.386 1 1 0 00-.383-.301 1.4 1.4 0 00-.605-.117q-.496 0-.828.222-.332.219-.332.567 0 .3.223.484.222.183.718.301l.953.219q.828.191 1.235.589.406.399.406 1.036 0 .538-.312.961a2.06 2.06 0 01-.864.656q-.55.238-1.277.238-1.008 0-1.645-.43-.637-.434-.781-1.23l1.129-.172q.105.441.434.668.328.222.855.223.575 0 .918-.239.344-.242.344-.589a.62.62 0 00-.211-.473q-.207-.192-.637-.289l-1.015-.223q-.84-.191-1.243-.609-.398-.419-.398-1.059 0-.531.297-.929.297-.399.82-.622a3 3 0 011.199-.226q.973 0 1.532.422.558.417.738 1.121m1.401 4.535v-6h1.168v6zm.59-6.926a.74.74 0 01-.523-.203.66.66 0 01-.215-.492q0-.29.215-.492a.73.73 0 01.523-.207q.304 0 .52.207a.65.65 0 01.218.492q0 .285-.218.492a.73.73 0 01-.52.203m5.95 4.438V385h1.172v6h-1.148v-1.039h-.063q-.207.48-.664.801-.453.316-1.129.316-.577 0-1.023-.254a1.8 1.8 0 01-.696-.762q-.25-.503-.25-1.246V385h1.168v3.676q0 .613.34.976.34.364.883.364.328 0 .652-.164.328-.164.543-.497.22-.332.215-.843m7.238-2.047l-1.059.187a1.3 1.3 0 00-.211-.386 1 1 0 00-.383-.301 1.4 1.4 0 00-.605-.117q-.496 0-.828.222-.333.219-.332.567 0 .3.222.484.223.183.719.301l.953.219q.828.191 1.234.589.407.399.407 1.036 0 .538-.313.961a2.05 2.05 0 01-.863.656q-.55.238-1.277.238-1.008 0-1.645-.43-.636-.434-.781-1.23l1.129-.172q.106.441.433.668.328.222.856.223.575 0 .918-.239.343-.242.343-.589a.62.62 0 00-.21-.473q-.207-.192-.637-.289l-1.016-.223q-.84-.191-1.242-.609-.398-.419-.398-1.059 0-.531.296-.929a1.95 1.95 0 01.821-.622 3 3 0 011.199-.226q.972 0 1.531.422.56.417.739 1.121m3.647 1.215q0 1.472-.387 2.707a8 8 0 01-1.129 2.277h-1.07q.289-.387.539-.949t.438-1.231q.187-.672.293-1.39.105-.719.105-1.414a10 10 0 00-.184-1.879 10.4 10.4 0 00-.496-1.77q-.312-.816-.695-1.332h1.07a8 8 0 011.129 2.278q.387 1.234.387 2.703"})]}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 376h535v47H.5z"}),(0,Al.jsxs)(Fk,{clipPath:"url(#pirep_form_template_prefix__k)",children:[(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 423h535v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M.5 423h95v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M23.563 434.136L16.063 462h-5.319l7.5-27.864zm8.252 24.364l-6.863-23.273h7.045l3.182 14.318h.182l3.773-14.318h5.545l3.773 14.364h.181l3.182-14.364h7.046L51.997 458.5h-6.045l-3.955-13h-.182l-3.954 13zm35.83-23.273l4.773 16.409h.181l4.773-16.409h7.136l-7.68 23.273H68.19l-7.681-23.273zm38.3 2.773l-2.218-8h1.269l1.559 6.195h.074L108.25 430h1.258l1.621 6.199h.074l1.555-6.199h1.273l-2.222 8h-1.215l-1.684-5.992h-.062L107.164 438zm9.093 0v-6h1.168v6zm.59-6.926a.74.74 0 01-.524-.203.66.66 0 01-.214-.492.65.65 0 01.214-.492.74.74 0 01.524-.207.72.72 0 01.519.207.65.65 0 01.219.492q0 .285-.219.492a.73.73 0 01-.519.203m3.317 3.363V438h-1.168v-6h1.121v.977h.075q.207-.477.648-.766.446-.29 1.121-.289.614 0 1.074.258.462.254.715.757.254.504.254 1.247V438h-1.168v-3.676q0-.653-.34-1.019-.339-.371-.933-.371-.406 0-.723.175a1.27 1.27 0 00-.496.516 1.7 1.7 0 00-.18.812m7.653 3.68q-.727 0-1.297-.371-.567-.375-.891-1.066-.32-.696-.32-1.668 0-.973.324-1.664.328-.692.899-1.059.57-.367 1.292-.367.559 0 .899.187.343.184.531.43.192.246.297.434h.07V430h1.168v8h-1.14v-.934h-.098a3 3 0 01-.305.438q-.195.246-.539.43-.344.183-.89.183m.257-.996q.504 0 .852-.266.351-.269.531-.746.184-.476.184-1.109 0-.625-.18-1.094a1.6 1.6 0 00-.527-.73q-.347-.262-.86-.262-.527 0-.878.274-.352.273-.532.746-.175.472-.175 1.066 0 .602.179 1.082.18.48.531.762.356.277.875.277"})]}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 423h535v47H.5z"}),(0,Al.jsxs)(Fk,{clipPath:"url(#pirep_form_template_prefix__l)",children:[(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 470h535v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M.5 470h95v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M32.36 481.136L24.86 509h-5.32l7.5-27.864zm1.238 6.182v-5.091h20.227v5.091h-7V505.5h-6.227v-18.182zm22.98 18.182v-23.273H66.67q2.659 0 4.466.716 1.818.716 2.739 2.023.93 1.307.931 3.079 0 1.285-.568 2.341a5 5 0 01-1.568 1.773q-1.011.705-2.364.977v.228q1.5.056 2.728.761a5.2 5.2 0 011.954 1.92q.728 1.217.728 2.864 0 1.909-1 3.398-.99 1.489-2.819 2.341-1.83.852-4.363.852zm6.318-5.045h2.955q1.59 0 2.386-.591.796-.603.796-1.773 0-.819-.375-1.386-.375-.569-1.069-.864-.681-.296-1.647-.296h-3.046zm0-8.819h2.591q.83 0 1.466-.261t.989-.75q.363-.5.363-1.216 0-1.08-.772-1.648-.774-.579-1.955-.579h-2.682zm41.088-13.597V477h6.192v1.039h-2.496V485h-1.203v-6.961zm10.451 4.473V479h1.171v6h-1.148v-1.039h-.062q-.208.48-.665.801-.453.316-1.128.316-.579 0-1.024-.254a1.8 1.8 0 01-.695-.762q-.25-.503-.25-1.246V479h1.168v3.676q0 .613.34.976.339.364.882.364a1.44 1.44 0 001.196-.661q.219-.332.215-.843m2.741 2.488v-6h1.129v.953h.062q.165-.485.578-.762a1.66 1.66 0 01.946-.281 5 5 0 01.496.027v1.118a2 2 0 00-.25-.043 2.3 2.3 0 00-.36-.028q-.414 0-.738.176a1.31 1.31 0 00-.695 1.176V485zm4.315 0v-8h1.168v2.973h.07q.102-.188.293-.434a1.7 1.7 0 01.532-.43q.34-.187.898-.187.727 0 1.297.367.57.368.895 1.059.328.691.328 1.664 0 .972-.325 1.668-.324.691-.89 1.066a2.3 2.3 0 01-1.293.371q-.547 0-.895-.183a1.7 1.7 0 01-.539-.43q-.195-.246-.301-.438h-.097V485zm1.145-3q0 .633.183 1.109.184.477.532.746.347.267.851.266.524 0 .875-.277.352-.282.531-.762.184-.48.184-1.082 0-.594-.18-1.066a1.6 1.6 0 00-.531-.746q-.351-.274-.879-.274-.508 0-.859.262a1.6 1.6 0 00-.528.73 3.1 3.1 0 00-.179 1.094m9.448.512V479h1.172v6h-1.149v-1.039h-.062q-.207.48-.664.801-.453.316-1.129.316a2.03 2.03 0 01-1.023-.254 1.8 1.8 0 01-.696-.762q-.25-.503-.25-1.246V479h1.168v3.676q0 .613.34.976.34.364.883.364.328 0 .652-.164.328-.164.543-.497.22-.332.215-.843m3.909-5.512v8h-1.168v-8zm4.157 8.121q-.886 0-1.527-.379a2.57 2.57 0 01-.984-1.074q-.344-.696-.344-1.629 0-.922.344-1.625.347-.703.968-1.098.626-.394 1.461-.394.508 0 .985.168.476.168.855.527.38.36.598.934.219.57.219 1.386v.415h-4.77v-.875h3.625q0-.462-.187-.817a1.4 1.4 0 00-.528-.566 1.47 1.47 0 00-.789-.207q-.492 0-.859.242a1.63 1.63 0 00-.563.625q-.195.382-.195.832v.684q0 .601.211 1.023.214.422.598.644.382.219.894.219.331 0 .606-.094.273-.097.472-.289.2-.191.305-.472l1.105.199a2 2 0 01-.476.855 2.3 2.3 0 01-.856.567q-.511.2-1.168.199m5.038-3.684V485h-1.167v-6h1.121v.977h.074q.207-.477.648-.766.446-.29 1.121-.289.613 0 1.075.258.46.254.714.757.254.504.254 1.247V485h-1.168v-3.676q0-.653-.339-1.019-.34-.371-.934-.371-.406 0-.723.175a1.27 1.27 0 00-.496.516 1.7 1.7 0 00-.18.812m7.934 3.684q-.871 0-1.5-.394a2.6 2.6 0 01-.961-1.098q-.336-.699-.336-1.602 0-.914.344-1.613a2.63 2.63 0 01.969-1.098q.624-.394 1.472-.394.684 0 1.219.254.536.25.863.703.333.453.395 1.058h-1.137a1.36 1.36 0 00-.429-.726q-.333-.305-.891-.305-.489 0-.856.258a1.66 1.66 0 00-.566.727q-.203.468-.203 1.109 0 .656.199 1.133t.563.738q.366.262.863.262.332 0 .601-.121.274-.125.457-.356.188-.23.262-.554h1.137a2.2 2.2 0 01-.379 1.039 2.2 2.2 0 01-.848.718q-.527.262-1.238.262m6.3 0q-.887 0-1.527-.379a2.57 2.57 0 01-.985-1.074q-.344-.696-.344-1.629 0-.922.344-1.625.348-.703.969-1.098.625-.394 1.461-.394.508 0 .984.168.477.168.856.527.379.36.597.934.219.57.219 1.386v.415h-4.769v-.875h3.625q0-.462-.188-.817a1.4 1.4 0 00-.527-.566 1.47 1.47 0 00-.789-.207q-.492 0-.86.242a1.6 1.6 0 00-.562.625q-.196.382-.196.832v.684q0 .601.211 1.023.216.422.598.644.382.219.895.219.332 0 .605-.094.273-.097.473-.289t.304-.472l1.106.199a2 2 0 01-.477.855 2.3 2.3 0 01-.855.567 3.2 3.2 0 01-1.168.199"})]}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 470h535v47H.5z"}),(0,Al.jsxs)(Fk,{clipPath:"url(#pirep_form_template_prefix__m)",children:[(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 517h535v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M.5 517h95v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M37.078 528.136L29.578 556H24.26l7.5-27.864zm8.193 1.091V552.5h-6.318v-23.273zm25.097 8.728h-6.41a4.4 4.4 0 00-.363-1.444 3.3 3.3 0 00-.795-1.113 3.3 3.3 0 00-1.216-.728q-.717-.261-1.625-.261-1.591 0-2.693.773-1.091.773-1.66 2.216-.555 1.443-.556 3.466 0 2.136.568 3.579.58 1.432 1.67 2.159 1.092.716 2.625.716.875 0 1.569-.216a3.7 3.7 0 001.204-.647q.511-.421.83-1.012.33-.602.443-1.352l6.409.045q-.114 1.477-.83 3.012-.715 1.522-2.034 2.818-1.306 1.284-3.238 2.068t-4.489.784q-3.204 0-5.75-1.375-2.534-1.375-4.011-4.045-1.467-2.672-1.466-6.534 0-3.887 1.5-6.546 1.5-2.67 4.045-4.034 2.546-1.375 5.682-1.375 2.205 0 4.057.602 1.852.603 3.25 1.762a8.7 8.7 0 012.25 2.829q.852 1.682 1.034 3.853M105.586 524v8h-1.207v-8zm4.191 8.121q-.87 0-1.5-.394a2.6 2.6 0 01-.961-1.098q-.336-.699-.336-1.602 0-.914.344-1.613a2.63 2.63 0 01.969-1.098q.625-.394 1.473-.394.683 0 1.218.254.535.25.864.703.332.453.394 1.058h-1.137a1.36 1.36 0 00-.429-.726q-.332-.305-.891-.305-.488 0-.855.258a1.66 1.66 0 00-.567.727q-.203.468-.203 1.109 0 .656.199 1.133.2.477.563.738.367.262.863.262.332 0 .602-.121a1.24 1.24 0 00.457-.356q.188-.23.261-.554h1.137a2.2 2.2 0 01-.379 1.039 2.2 2.2 0 01-.847.718q-.528.262-1.239.262m3.714-.121v-6h1.168v6zm.59-6.926a.74.74 0 01-.523-.203.66.66 0 01-.215-.492q0-.29.215-.492a.73.73 0 01.523-.207q.304 0 .52.207a.65.65 0 01.218.492q0 .285-.218.492a.73.73 0 01-.52.203m3.317 3.363V532h-1.168v-6h1.122v.977h.074q.207-.477.648-.766.446-.29 1.121-.289.613 0 1.075.258.46.254.714.757.255.504.254 1.247V532h-1.168v-3.676q0-.653-.34-1.019-.339-.371-.933-.371-.406 0-.723.175a1.27 1.27 0 00-.496.516 1.7 1.7 0 00-.18.812m7.922 5.938q-.714 0-1.23-.187a2.4 2.4 0 01-.836-.497 2.1 2.1 0 01-.484-.675l1.003-.414q.107.171.282.363.179.195.484.332.309.137.793.137.665 0 1.098-.325.433-.32.433-1.023v-1.18h-.074q-.105.192-.305.426-.195.235-.539.406t-.894.172q-.711 0-1.281-.332a2.35 2.35 0 01-.899-.988q-.328-.657-.328-1.613 0-.957.324-1.641.328-.684.899-1.047.57-.367 1.293-.367.558 0 .902.187.343.184.535.43.195.246.301.434h.086V526h1.144v6.133q0 .773-.359 1.269-.36.496-.973.735a3.8 3.8 0 01-1.375.238m-.011-3.434q.504 0 .851-.234.353-.238.531-.68.184-.445.184-1.066 0-.606-.18-1.066a1.57 1.57 0 00-.527-.719q-.348-.262-.859-.262-.528 0-.879.274a1.64 1.64 0 00-.532.734q-.175.465-.175 1.039 0 .59.179 1.035.18.446.532.695.355.25.875.25"})]}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 517h535v47H.5z"}),(0,Al.jsxs)(Fk,{clipPath:"url(#pirep_form_template_prefix__n)",children:[(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 564h535v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M.5 564h95v47H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M28.438 575.136L20.938 603h-5.319l7.5-27.864zm1.875 24.364v-23.273h10.045q2.591 0 4.534.943 1.943.944 3.023 2.716t1.08 4.25q0 2.5-1.114 4.216-1.103 1.716-3.103 2.591-1.988.875-4.647.875h-6v-4.909h4.727q1.113 0 1.898-.273.795-.284 1.216-.897.431-.614.431-1.603 0-1-.431-1.625-.42-.636-1.216-.931-.785-.307-1.898-.307h-2.227V599.5zm13.636-10.682l5.818 10.682h-6.864l-5.681-10.682zm8.114-12.591h7.863l5.41 13.182h.272l5.409-13.182h7.864V599.5h-6.182v-13.455h-.182l-5.182 13.273h-3.727l-5.182-13.363h-.182V599.5h-6.181zM104.379 579v-8h2.851q.93 0 1.543.32.618.32.922.887.305.563.305 1.301 0 .734-.309 1.293-.304.554-.921.863-.614.309-1.543.309h-2.161v-1.039h2.051q.587 0 .953-.168.372-.168.543-.489a1.6 1.6 0 00.172-.769q0-.453-.176-.785a1.13 1.13 0 00-.543-.508q-.367-.18-.964-.18h-1.516V579zm3.949-3.609l1.977 3.609h-1.375l-1.938-3.609zm5.558 3.73q-.887 0-1.528-.379a2.57 2.57 0 01-.984-1.074q-.344-.696-.344-1.629 0-.922.344-1.625.348-.704.969-1.098.624-.394 1.461-.394.507 0 .984.168t.856.527q.378.36.597.934.219.57.219 1.386v.415h-4.77v-.875h3.625q0-.462-.187-.817a1.4 1.4 0 00-.527-.566 1.47 1.47 0 00-.789-.207q-.493 0-.86.242-.364.238-.562.625a1.8 1.8 0 00-.196.832v.684q0 .601.211 1.023.216.422.598.644.383.219.894.219.333 0 .606-.094.273-.097.473-.289.198-.191.304-.472l1.106.199a2 2 0 01-.477.855 2.3 2.3 0 01-.855.567 3.2 3.2 0 01-1.168.199m3.87-.121v-6h1.121v.977h.074q.188-.497.613-.774.426-.28 1.02-.281.601 0 1.008.281.41.281.605.774h.063q.215-.481.683-.766.469-.29 1.118-.289.816 0 1.332.512.519.511.519 1.543V579h-1.168v-3.914q0-.61-.332-.883a1.2 1.2 0 00-.793-.273q-.57 0-.887.351-.316.348-.316.895V579h-1.164v-3.988q0-.49-.305-.785-.304-.297-.793-.297-.331 0-.613.175a1.3 1.3 0 00-.449.481 1.5 1.5 0 00-.168.715V579zm11.468.133q-.57 0-1.032-.211a1.74 1.74 0 01-.73-.621q-.266-.406-.266-.996 0-.509.196-.836.195-.328.527-.52a2.8 2.8 0 01.742-.289q.41-.097.836-.148l.875-.102q.336-.042.488-.137.153-.093.153-.304v-.028q0-.511-.289-.793-.285-.28-.852-.281-.59 0-.93.262a1.4 1.4 0 00-.464.574l-1.098-.25q.195-.546.57-.883a2.3 2.3 0 01.871-.492 3.4 3.4 0 011.035-.156q.36 0 .762.086.407.082.758.304.356.223.582.637.227.41.227 1.067V579h-1.141v-.82h-.047a1.7 1.7 0 01-.34.445 1.8 1.8 0 01-.582.363 2.2 2.2 0 01-.851.145m.254-.938q.483 0 .828-.191.347-.192.527-.5a1.3 1.3 0 00.184-.668v-.774a.6.6 0 01-.243.118 4 4 0 01-.402.09l-.441.066-.36.047a3 3 0 00-.621.144 1.1 1.1 0 00-.445.293q-.164.188-.164.5 0 .433.32.657.32.218.817.218m4.262.805v-6h1.129v.953h.063a1.45 1.45 0 01.578-.762q.418-.28.945-.281a5 5 0 01.496.027v1.118a2 2 0 00-.25-.043 2.3 2.3 0 00-.359-.028q-.414 0-.738.176a1.31 1.31 0 00-.696 1.176V579zm5.296-2.035l-.008-1.426h.203l2.391-2.539h1.399l-2.727 2.891h-.184zM137.962 579v-8h1.168v8zm3.789 0l-2.148-2.852.804-.816 2.778 3.668zm6.83-4.535l-1.059.187a1.3 1.3 0 00-.21-.386 1.04 1.04 0 00-.383-.301 1.4 1.4 0 00-.606-.117q-.496 0-.828.222-.332.219-.332.567 0 .3.223.484.222.183.718.301l.954.219q.828.191 1.234.589.406.399.406 1.036 0 .538-.312.961a2.06 2.06 0 01-.864.656q-.55.238-1.277.238-1.008 0-1.644-.43-.637-.433-.782-1.23l1.129-.172q.106.441.434.668.329.223.855.223.575 0 .918-.239.344-.242.344-.589a.61.61 0 00-.211-.473q-.207-.192-.637-.289l-1.015-.223q-.84-.191-1.242-.609-.399-.418-.399-1.059 0-.531.297-.929.297-.399.82-.622a3 3 0 011.2-.226q.972 0 1.531.422.558.417.738 1.121"})]}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 564h535v47H.5z"}),(0,Al.jsxs)(Bk,{children:[(0,Al.jsx)(jk,{id:"pirep_form_template_prefix__b",children:(0,Al.jsx)(Vk,{fill:"#fff",d:"M.5 47H268v47H.5z"})}),(0,Al.jsx)(jk,{id:"pirep_form_template_prefix__c",children:(0,Al.jsx)(Vk,{fill:"#fff",d:"M268 47h267.5v47H268z"})}),(0,Al.jsx)(jk,{id:"pirep_form_template_prefix__d",children:(0,Al.jsx)(Vk,{fill:"#fff",d:"M.5 94h535v47H.5z"})}),(0,Al.jsx)(jk,{id:"pirep_form_template_prefix__e",children:(0,Al.jsx)(Vk,{fill:"#fff",d:"M.5 141h535v47H.5z"})}),(0,Al.jsx)(jk,{id:"pirep_form_template_prefix__f",children:(0,Al.jsx)(Vk,{fill:"#fff",d:"M.5 188h535v47H.5z"})}),(0,Al.jsx)(jk,{id:"pirep_form_template_prefix__g",children:(0,Al.jsx)(Vk,{fill:"#fff",d:"M.5 235h535v47H.5z"})}),(0,Al.jsx)(jk,{id:"pirep_form_template_prefix__h",children:(0,Al.jsx)(Vk,{fill:"#fff",d:"M.5 282h535v47H.5z"})}),(0,Al.jsx)(jk,{id:"pirep_form_template_prefix__i",children:(0,Al.jsx)(Vk,{fill:"#fff",d:"M.5 329h535v47H.5z"})}),(0,Al.jsx)(jk,{id:"pirep_form_template_prefix__j",children:(0,Al.jsx)(Vk,{fill:"#fff",d:"M.5 376h535v47H.5z"})}),(0,Al.jsx)(jk,{id:"pirep_form_template_prefix__k",children:(0,Al.jsx)(Vk,{fill:"#fff",d:"M.5 423h535v47H.5z"})}),(0,Al.jsx)(jk,{id:"pirep_form_template_prefix__l",children:(0,Al.jsx)(Vk,{fill:"#fff",d:"M.5 470h535v47H.5z"})}),(0,Al.jsx)(jk,{id:"pirep_form_template_prefix__m",children:(0,Al.jsx)(Vk,{fill:"#fff",d:"M.5 517h535v47H.5z"})}),(0,Al.jsx)(jk,{id:"pirep_form_template_prefix__n",children:(0,Al.jsx)(Vk,{fill:"#fff",d:"M.5 564h535v47H.5z"})})]})]})})),wW=u.memo((function(){return(0,Al.jsxs)(Wk,{width:600,height:692,fill:"none",viewBox:"-32 -32 600 692",children:[(0,Al.jsx)(zk,{id:"takeoff_landing_data_template_prefix__a",fill:"#fff",children:(0,Al.jsx)(Vk,{d:"M0 0h536v47H0z"})}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M0 0h536v47H0z"}),(0,Al.jsx)(Vk,{fill:"#415F82",d:"M0 0v-1h-1v1zm536 0h1v-1h-1zM0 1h536v-2H0zm535-1v47h2V0zM1 47V0h-2v47z",mask:"url(#takeoff_landing_data_template_prefix__a)"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M8.835 18.047v-2.32h12.186v2.32H16.3V31h-2.745V18.047zM24.988 31.23q-1.09 0-1.961-.388a3.2 3.2 0 01-1.373-1.163q-.5-.768-.5-1.894 0-.968.359-1.604a2.77 2.77 0 01.977-1.014 5 5 0 011.394-.574 11 11 0 011.619-.29q1.006-.105 1.633-.187.625-.09.91-.269.29-.186.29-.574v-.045q0-.841-.5-1.305-.498-.462-1.439-.462-.99 0-1.573.433-.575.432-.776 1.021l-2.52-.358q.299-1.044.984-1.745a4.3 4.3 0 011.678-1.059q.992-.357 2.192-.358a7 7 0 011.648.194q.82.194 1.5.642.678.44 1.088 1.2.418.76.418 1.902V31H28.44v-1.573h-.09a3.3 3.3 0 01-.693.894 3.3 3.3 0 01-1.111.664q-.665.246-1.56.246m.7-1.984q.815 0 1.41-.32.597-.328.918-.865.328-.537.328-1.171v-1.35q-.127.104-.433.194-.298.09-.67.157-.374.066-.74.119l-.633.09a4.7 4.7 0 00-1.081.268q-.478.186-.754.522-.276.328-.276.85 0 .746.545 1.126.544.38 1.387.38m10.523-1.841l-.007-3.26h.432l4.117-4.6h3.154l-5.063 5.637h-.56zM33.751 31V15.727h2.699V31zm7.188 0l-3.728-5.213 1.82-1.901L44.167 31zm9.367.224q-1.723 0-2.976-.716a4.85 4.85 0 01-1.916-2.043q-.672-1.328-.672-3.125 0-1.767.672-3.102.678-1.343 1.894-2.088 1.215-.754 2.856-.754 1.059 0 1.999.343a4.5 4.5 0 011.67 1.044q.73.709 1.148 1.805.418 1.089.418 2.595v.828H46.01v-1.82h6.801a2.9 2.9 0 00-.335-1.38 2.44 2.44 0 00-.917-.961q-.582-.35-1.358-.35-.827 0-1.454.402a2.8 2.8 0 00-.977 1.044 3 3 0 00-.35 1.41v1.588q0 1 .365 1.715.366.708 1.022 1.089.656.372 1.536.373.59 0 1.066-.164.478-.172.828-.5t.53-.813l2.52.284a3.9 3.9 0 01-.91 1.745q-.663.738-1.7 1.148-1.035.402-2.371.403m12.373 0q-1.677 0-2.908-.739a5 5 0 01-1.91-2.065q-.67-1.328-.67-3.103t.67-3.11a5 5 0 011.91-2.072q1.23-.74 2.908-.739 1.678 0 2.909.739a4.95 4.95 0 011.901 2.073q.68 1.334.68 3.11 0 1.774-.68 3.102a4.96 4.96 0 01-1.901 2.065q-1.23.74-2.909.739m.015-2.163q.91 0 1.522-.5.61-.507.91-1.357a5.6 5.6 0 00.305-1.894q0-1.052-.306-1.902-.297-.857-.91-1.364-.61-.507-1.52-.507-.934 0-1.552.507-.61.507-.917 1.364-.298.85-.298 1.902 0 1.044.298 1.894.306.851.917 1.357.62.5 1.551.5m13.567-9.515v2.088H69.49v-2.088zM71.183 31V18.464q0-1.155.477-1.924a3 3 0 011.298-1.148 4.2 4.2 0 011.804-.38q.702 0 1.246.111.544.112.805.202l-.537 2.088a5 5 0 00-.432-.105 2.6 2.6 0 00-.582-.06q-.753 0-1.067.366-.305.358-.305 1.03V31zm12.994-11.454v2.088h-6.771v-2.088zM79.1 31V18.464q0-1.155.477-1.924a3 3 0 011.298-1.148 4.2 4.2 0 011.804-.38q.702 0 1.246.111.544.112.805.202l-.537 2.088a5 5 0 00-.432-.105 2.6 2.6 0 00-.582-.06q-.754 0-1.066.366-.306.358-.306 1.03V31zm17.696 0H91.62V15.727h5.28q2.274 0 3.907.918 1.64.91 2.521 2.617.88 1.707.88 4.087 0 2.386-.888 4.101a6.13 6.13 0 01-2.543 2.633Q99.123 31 96.795 31m-2.409-2.394h2.275q1.596 0 2.662-.582 1.067-.588 1.603-1.752.537-1.17.537-2.923t-.537-2.909q-.536-1.162-1.588-1.737-1.044-.582-2.595-.582h-2.357zm15.627 2.625q-1.089 0-1.961-.388a3.2 3.2 0 01-1.372-1.163q-.5-.768-.5-1.894 0-.968.358-1.604a2.77 2.77 0 01.977-1.014 5 5 0 011.395-.574 11 11 0 011.618-.29q1.006-.105 1.633-.187.627-.09.91-.269.291-.186.291-.574v-.045q0-.841-.5-1.305-.5-.462-1.439-.462-.992 0-1.574.433-.574.432-.775 1.021l-2.521-.358q.299-1.044.984-1.745a4.3 4.3 0 011.678-1.059q.992-.357 2.193-.358a7 7 0 011.648.194q.82.194 1.499.642a3.23 3.23 0 011.089 1.2q.417.76.417 1.902V31h-2.595v-1.573h-.089a3.3 3.3 0 01-.694.894 3.3 3.3 0 01-1.111.664q-.664.246-1.559.246m.701-1.984q.813 0 1.41-.32.596-.328.917-.865.328-.537.328-1.171v-1.35q-.127.104-.432.194a6 6 0 01-.672.157q-.372.066-.738.119l-.634.09a4.7 4.7 0 00-1.081.268 1.8 1.8 0 00-.753.522q-.276.328-.276.85 0 .746.544 1.126.545.38 1.387.38m13.782-9.701v2.088h-6.585v-2.088zm-4.96-2.745h2.7v10.754q0 .544.164.835a.9.9 0 00.447.388q.276.105.612.104.254 0 .462-.037.217-.037.328-.067l.455 2.11q-.216.075-.619.164a5 5 0 01-.969.105q-1.014.03-1.827-.306a2.84 2.84 0 01-1.29-1.06q-.47-.714-.463-1.789zm10.513 14.43q-1.088 0-1.961-.388a3.2 3.2 0 01-1.372-1.163q-.5-.768-.5-1.894 0-.968.358-1.604.359-.633.977-1.014a5 5 0 011.395-.574 11 11 0 011.618-.29 63 63 0 001.633-.187q.627-.09.91-.269.291-.186.291-.574v-.045q0-.841-.5-1.305-.5-.462-1.439-.462-.992 0-1.574.433-.574.432-.775 1.021l-2.521-.358q.298-1.044.985-1.745a4.3 4.3 0 011.678-1.059q.992-.357 2.192-.358a7 7 0 011.648.194q.82.194 1.499.642a3.23 3.23 0 011.089 1.2q.417.76.417 1.902V31h-2.595v-1.573h-.089a3.3 3.3 0 01-.694.894 3.3 3.3 0 01-1.111.664q-.663.246-1.559.246m.701-1.984q.813 0 1.41-.32a2.37 2.37 0 00.917-.865q.328-.537.328-1.171v-1.35q-.126.104-.432.194-.299.09-.671.157-.373.066-.739.119l-.634.09a4.7 4.7 0 00-1.081.268 1.8 1.8 0 00-.753.522q-.276.328-.276.85 0 .746.544 1.126.545.38 1.387.38"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 47h178.333v63H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 47h178.333v63H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M7.379 62v-8h2.851q.93 0 1.543.32.619.321.922.887.305.563.305 1.3 0 .735-.309 1.294-.304.554-.921.863-.615.309-1.543.309h-2.16v-1.04h2.05q.585 0 .953-.167.372-.168.543-.489t.172-.77q0-.452-.176-.784a1.14 1.14 0 00-.543-.508q-.367-.18-.964-.18H8.586V62zm3.95-3.61L13.304 62H11.93l-1.938-3.61zM19.612 54h1.211v5.262q0 .84-.394 1.488-.395.645-1.11 1.016-.715.366-1.675.367-.958 0-1.672-.367a2.76 2.76 0 01-1.11-1.016q-.394-.648-.394-1.488V54h1.207v5.164q0 .543.238.965.243.422.684.664.441.238 1.047.238.609 0 1.05-.238a1.67 1.67 0 00.68-.664q.238-.422.238-.965zm9.423 0v8h-1.11l-4.066-5.867h-.074V62H22.58v-8h1.117l4.07 5.875h.075V54zm3.327 8l-2.218-8h1.27l1.558 6.195h.074L34.668 54h1.258l1.62 6.2h.075l1.555-6.2h1.273l-2.222 8h-1.215l-1.684-5.992h-.062L33.582 62zm9.175 0h-1.281l2.879-8h1.394l2.88 8h-1.282l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zM47.13 54h1.371l2.09 3.637h.086L52.768 54h1.37l-2.902 4.86V62h-1.203v-3.14z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M178.833 47h178.333v63H178.833z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M178.833 47h178.333v63H178.833z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M185.318 55.04V54h6.191v1.04h-2.496V62h-1.203v-6.96zm7.29 6.96h-1.282l2.879-8h1.395l2.879 8h-1.281l-2.262-6.547h-.063zm.215-3.133h4.156v1.016h-4.156zM199.634 62v-8h1.207v3.82h.098l3.355-3.82h1.52l-3.227 3.602L205.825 62h-1.453l-2.586-3.574-.945 1.086V62zm7.305 0v-8h5.015v1.04h-3.808v2.437h3.547v1.035h-3.547v2.449h3.855V62zm13.577-4q0 1.282-.469 2.203a3.44 3.44 0 01-1.285 1.414q-.813.492-1.848.492-1.038 0-1.855-.492-.813-.495-1.281-1.418-.47-.921-.469-2.199 0-1.28.469-2.2t1.281-1.413q.817-.496 1.855-.496 1.035 0 1.848.496.817.492 1.285 1.414.47.918.469 2.199m-1.195 0q0-.977-.317-1.645-.313-.671-.859-1.015a2.23 2.23 0 00-1.231-.348q-.691 0-1.234.348-.543.344-.859 1.015-.313.669-.313 1.645t.313 1.648q.316.668.859 1.016.543.345 1.234.344.688 0 1.231-.344.547-.347.859-1.016.317-.672.317-1.648m2.7 4v-8h4.961v1.04h-3.754v2.437h3.398v1.035h-3.398V62zm6.445 0v-8h4.961v1.04h-3.754v2.437h3.399v1.035h-3.399V62zm10.923 0l-2.219-8h1.27l1.558 6.195h.075L241.694 54h1.257l1.622 6.2h.074l1.554-6.2h1.274l-2.223 8h-1.215l-1.683-5.992h-.063L240.608 62zm9.186 0v-8h5.016v1.04h-3.809v2.437h3.547v1.035h-3.547v2.449h3.856V62zm7.835-8v8h-1.207v-8zm7.172 2.527a2.4 2.4 0 00-.304-.636 1.94 1.94 0 00-1.047-.793 2.4 2.4 0 00-.731-.106q-.675 0-1.219.348-.542.347-.859 1.02-.312.667-.312 1.636 0 .972.316 1.645.317.671.867 1.02a2.3 2.3 0 001.254.347q.653 0 1.137-.266.488-.266.754-.75.269-.488.269-1.148l.313.058h-2.289v-.996h3.144v.91q0 1.008-.429 1.75a2.93 2.93 0 01-1.18 1.141q-.75.402-1.719.402-1.086 0-1.906-.5a3.4 3.4 0 01-1.274-1.418q-.457-.921-.457-2.187 0-.957.266-1.719t.746-1.293a3.3 3.3 0 011.137-.816q.656-.285 1.433-.285.65 0 1.207.191.563.192 1 .543a3.07 3.07 0 011.122 1.902zM266.407 62v-8h1.208v3.477h3.988V54h1.211v8h-1.211v-3.488h-3.988V62zm7.77-6.96V54h6.191v1.04h-2.496V62h-1.203v-6.96z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M357.167 47H535.5v63H357.167z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M357.167 47H535.5v63H357.167z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M363.651 55.04V54h6.192v1.04h-2.497V62h-1.203v-6.96zm7.56 6.96v-8h2.851q.93 0 1.543.32.618.321.922.887.305.563.305 1.3 0 .735-.309 1.294-.304.554-.922.863-.613.309-1.543.309h-2.16v-1.04h2.051q.586 0 .953-.167.37-.168.543-.489.172-.32.172-.77 0-.452-.176-.784a1.13 1.13 0 00-.543-.508q-.367-.18-.965-.18h-1.515V62zm3.949-3.61l1.976 3.61h-1.375l-1.937-3.61zm4.348-4.39v8h-1.207v-8zm1.757 0h1.465l2.547 6.219h.094L387.918 54h1.465v8h-1.149v-5.79h-.074l-2.359 5.778h-.954l-2.359-5.781h-.074V62h-1.149z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 110h178.333v63H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 110h178.333v63H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M7.379 125v-8h4.96v1.039H8.587v2.438h3.398v1.035H8.586V125zm6.445 0v-8h1.207v6.961h3.625V125zm7.293 0h-1.281l2.879-8h1.394l2.88 8h-1.282l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zM28.144 125v-8h2.851q.933 0 1.547.34.614.339.918.93.305.585.305 1.32 0 .738-.309 1.328-.304.586-.922.93-.613.34-1.543.34h-1.96v-1.024h1.85q.59 0 .958-.203.367-.207.539-.563.171-.355.172-.808t-.172-.805a1.24 1.24 0 00-.543-.551q-.367-.198-.969-.199h-1.515V125z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M178.833 110h178.333v63H178.833z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M178.833 110h178.333v63H178.833z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M185.318 118.039V117h6.191v1.039h-2.496V125h-1.203v-6.961zm7.559 6.961v-8h1.207v3.477h3.989V117h1.21v8h-1.21v-3.488h-3.989V125zm8.164 0v-8h2.852q.93 0 1.543.32.617.32.922.887.304.563.304 1.301 0 .734-.308 1.293-.305.555-.922.863-.613.309-1.543.309h-2.16v-1.039h2.051q.585 0 .953-.168.37-.168.543-.489.172-.32.172-.769 0-.453-.176-.785a1.14 1.14 0 00-.543-.508q-.368-.18-.965-.18h-1.516V125zm3.949-3.609l1.977 3.609h-1.375l-1.937-3.609zm8.286-4.391h1.211v5.262q0 .84-.395 1.488-.395.644-1.109 1.016-.715.366-1.676.367-.957 0-1.672-.367a2.76 2.76 0 01-1.109-1.016q-.395-.648-.395-1.488V117h1.207v5.164q0 .543.238.965.243.422.684.664.441.238 1.047.238.609 0 1.051-.238.445-.242.679-.664.239-.422.239-.965zm7.329 2.102a1.14 1.14 0 00-.516-.86q-.453-.308-1.141-.308-.491 0-.851.156-.36.152-.559.422a1 1 0 00-.195.605q0 .285.133.492.136.207.355.348.223.136.477.231.254.089.488.148l.781.203q.383.094.786.254.401.16.746.422.344.261.554.648.215.387.215.926 0 .68-.351 1.207-.348.528-1.012.832-.66.305-1.598.305-.898 0-1.554-.285t-1.028-.809a2.35 2.35 0 01-.41-1.25h1.211q.035.434.281.723.25.285.637.425.39.137.855.137.513 0 .911-.16.402-.163.632-.453.231-.293.231-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.77-.261l-.945-.258q-.961-.262-1.524-.77-.558-.507-.558-1.344a2 2 0 01.375-1.207q.375-.515 1.016-.8a3.5 3.5 0 011.445-.289q.812 0 1.433.285.625.285.985.785.358.496.375 1.141zm2.321-1.063V117h6.191v1.039h-2.496V125h-1.203v-6.961zm14.834 1.063a1.14 1.14 0 00-.516-.86q-.453-.308-1.14-.308-.492 0-.852.156a1.3 1.3 0 00-.558.422 1 1 0 00-.196.605q0 .285.133.492.137.207.356.348.222.136.476.231.254.089.488.148l.782.203q.383.094.785.254t.746.422.555.648q.214.387.214.926 0 .68-.351 1.207-.348.528-1.012.832-.66.305-1.597.305-.899 0-1.555-.285-.657-.285-1.028-.809a2.35 2.35 0 01-.41-1.25h1.211q.035.434.282.723.249.285.636.425.391.137.856.137.511 0 .91-.16.402-.163.633-.453.23-.293.23-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.769-.261l-.946-.258q-.96-.262-1.523-.77-.56-.507-.559-1.344a2 2 0 01.375-1.207q.375-.515 1.016-.8a3.5 3.5 0 011.445-.289q.813 0 1.434.285.624.285.984.785.36.496.375 1.141zm2.716 5.898v-8h5.015v1.039h-3.808v2.438h3.547v1.035h-3.547v2.449h3.855V125zm6.233-6.961V117h6.192v1.039h-2.496V125h-1.204v-6.961zm7.165 0V117h6.192v1.039h-2.496V125h-1.204v-6.961zm8.767-1.039v8h-1.207v-8zm8.215 0v8h-1.11l-4.066-5.867h-.074V125h-1.207v-8h1.117l4.07 5.875h.074V117zm7.175 2.527a2.5 2.5 0 00-.305-.636 2 2 0 00-.449-.485 1.9 1.9 0 00-.598-.308 2.4 2.4 0 00-.731-.106q-.675 0-1.218.348-.543.347-.86 1.019-.312.668-.312 1.637 0 .973.316 1.645.317.671.867 1.019.552.348 1.254.348.653 0 1.137-.266.489-.266.754-.75.27-.488.27-1.148l.312.058h-2.289v-.996h3.144v.91q0 1.008-.429 1.75a2.9 2.9 0 01-1.18 1.141q-.75.402-1.719.402-1.086 0-1.906-.5a3.4 3.4 0 01-1.273-1.418q-.457-.921-.457-2.187 0-.957.265-1.719.266-.762.746-1.293a3.25 3.25 0 011.137-.816q.656-.285 1.434-.285.648 0 1.207.191.562.192 1 .543a3.08 3.08 0 011.121 1.902z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M357.167 110H535.5v63H357.167z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M357.167 110H535.5v63H357.167z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M368.409 119.102a1.14 1.14 0 00-.516-.86q-.453-.308-1.14-.308-.492 0-.852.156a1.3 1.3 0 00-.558.422 1 1 0 00-.196.605q0 .285.133.492.137.207.355.348.223.136.477.231.254.089.488.148l.782.203q.383.094.785.254t.746.422.555.648q.214.387.214.926 0 .68-.351 1.207-.348.528-1.012.832-.66.305-1.598.305-.899 0-1.554-.285-.656-.285-1.028-.809a2.35 2.35 0 01-.41-1.25h1.211q.036.434.281.723.25.285.637.425.391.137.856.137.511 0 .91-.16.402-.163.633-.453.23-.293.23-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.77-.261l-.945-.258q-.961-.262-1.523-.77-.56-.507-.559-1.344a2 2 0 01.375-1.207q.375-.515 1.016-.8a3.5 3.5 0 011.445-.289q.813 0 1.434.285.624.285.984.785.36.496.375 1.141zm2.716 5.898v-8h5.015v1.039h-3.808v2.438h3.547v1.035h-3.547v2.449h3.855V125zm6.628 0v-8h1.207v6.961h3.625V125zm6.209 0v-8h5.015v1.039h-3.808v2.438h3.547v1.035h-3.547v2.449h3.855V125zm13.272-5.398h-1.219a1.86 1.86 0 00-.73-1.192 2 2 0 00-.621-.312 2.4 2.4 0 00-.723-.106q-.692 0-1.238.348-.544.347-.859 1.019-.313.672-.313 1.641 0 .977.313 1.648.315.672.863 1.016.547.344 1.23.344.379 0 .719-.102.343-.105.621-.308a1.87 1.87 0 00.738-1.176l1.219.004a3.3 3.3 0 01-.379 1.086 3 3 0 01-.715.851 3.2 3.2 0 01-.992.551 3.7 3.7 0 01-1.219.195q-1.038 0-1.851-.492-.813-.496-1.281-1.418-.465-.921-.465-2.199 0-1.281.469-2.199.468-.922 1.281-1.414.812-.496 1.847-.496.638 0 1.188.183.555.18.996.531.441.348.731.852.288.5.39 1.145m1.05-1.563V117h6.191v1.039h-2.496V125h-1.203v-6.961zm7.56 6.961v-8h5.015v1.039h-3.808v2.438h3.546v1.035h-3.546v2.449h3.855V125zm9.217 0h-2.59v-8h2.672q1.176 0 2.02.48.843.477 1.293 1.372.453.89.453 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.313 1.383q-.859.48-2.078.48m-1.383-1.055h1.317q.914 0 1.519-.343.606-.348.907-1.004.3-.66.3-1.61 0-.941-.3-1.597a2.12 2.12 0 00-.887-.996q-.59-.34-1.465-.34h-1.391zm9.249-5.906V117h6.191v1.039h-2.496V125h-1.203v-6.961zm7.559 6.961v-8h5.016v1.039h-3.809v2.438h3.547v1.035h-3.547v2.449h3.856V125zm6.628-8h1.465l2.547 6.219h.093l2.547-6.219h1.465v8h-1.148v-5.789h-.074l-2.36 5.777h-.953l-2.359-5.781h-.075V125h-1.148zm9.872 8v-8h2.852q.933 0 1.547.34.612.339.917.93.306.585.305 1.32 0 .738-.308 1.328-.306.586-.922.93-.613.34-1.543.34h-1.961v-1.024h1.851q.591 0 .957-.203.368-.207.539-.563.172-.355.172-.808t-.172-.805a1.23 1.23 0 00-.543-.551q-.366-.198-.968-.199h-1.516V125zm7.036 0v-8h5.016v1.039h-3.809v2.438h3.547v1.035h-3.547v2.449h3.856V125zm6.628 0v-8h2.852q.93 0 1.543.32.616.32.922.887.304.563.304 1.301 0 .734-.308 1.293-.305.555-.922.863-.613.309-1.543.309h-2.16v-1.039h2.05q.587 0 .954-.168.37-.168.543-.489.171-.32.171-.769 0-.453-.175-.785a1.14 1.14 0 00-.543-.508q-.368-.18-.965-.18h-1.516V125zm3.949-3.609l1.977 3.609h-1.375l-1.938-3.609zm3.817 3.609h-1.281l2.878-8h1.395l2.879 8h-1.281l-2.262-6.547h-.063zm.215-3.133h4.156v1.016h-4.156zm5.471-3.828V117h6.192v1.039h-2.496V125h-1.204v-6.961zM486.806 117h1.211v5.262q0 .84-.394 1.488a2.76 2.76 0 01-1.11 1.016q-.715.366-1.675.367-.957 0-1.672-.367a2.76 2.76 0 01-1.11-1.016q-.394-.648-.394-1.488V117h1.207v5.164q0 .543.238.965.243.422.684.664.441.238 1.047.238.609 0 1.05-.238.446-.242.68-.664.238-.422.238-.965zm2.966 8v-8h2.852q.93 0 1.543.32.616.32.922.887.304.563.304 1.301 0 .734-.308 1.293-.305.555-.922.863-.613.309-1.543.309h-2.16v-1.039h2.05q.587 0 .954-.168.37-.168.543-.489.171-.32.171-.769 0-.453-.175-.785a1.14 1.14 0 00-.543-.508q-.368-.18-.965-.18h-1.516V125zm3.949-3.609l1.977 3.609h-1.375l-1.938-3.609zm3.141 3.609v-8h5.016v1.039h-3.809v2.438h3.547v1.035h-3.547v2.449h3.856V125z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 173h178.333v63H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 173h178.333v63H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M8.795 179.364l3.24 9.477h.13l3.238-9.477h1.898L13.114 191h-2.029l-4.187-11.636zm9.759 13.579v-4.858h-.051l-1.512.989v-1.279l1.591-1.034h1.284v6.182z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M178.833 173h178.333v63H178.833z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M178.833 173h178.333v63H178.833z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M187.129 179.364l3.238 9.477h.131l3.239-9.477h1.897L191.447 191h-2.029l-4.187-11.636z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M357.167 173H535.5v63H357.167z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M357.167 173H535.5v63H357.167z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M365.462 179.364l3.239 9.477h.131l3.238-9.477h1.898L369.78 191h-2.028l-4.188-11.636zm8.367 13.579v-.954l2.454-2.012q.501-.414.75-.716a.98.98 0 00.256-.647q0-.421-.33-.659-.329-.245-.818-.245-.494 0-.818.262a.84.84 0 00-.324.698h-1.261q0-.903.676-1.448.676-.552 1.756-.552 1.079 0 1.727.557.648.552.648 1.364 0 .42-.171.784a2.8 2.8 0 01-.54.733q-.369.375-.966.83l-1.13.886v.051h2.977v1.068z"}),(0,Al.jsx)(zk,{id:"takeoff_landing_data_template_prefix__b",fill:"#fff",children:(0,Al.jsx)(Vk,{d:"M0 268h536v47H0z"})}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M0 268h536v47H0z"}),(0,Al.jsx)(Vk,{fill:"#415F82",d:"M0 268v-1h-1v1zm536 0h1v-1h-1zM0 269h536v-2H0zm535-1v47h2v-47zM1 315v-47h-2v47z",mask:"url(#takeoff_landing_data_template_prefix__b)"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M9.506 299v-15.273h2.767v12.954H19V299zm15.072.231q-1.089 0-1.962-.388a3.2 3.2 0 01-1.372-1.163q-.5-.768-.5-1.894 0-.97.359-1.603.358-.634.976-1.015a5 5 0 011.395-.574 11.4 11.4 0 011.618-.291 60 60 0 001.634-.186q.625-.09.91-.269.29-.186.29-.574v-.045q0-.841-.5-1.305-.499-.462-1.439-.462-.991 0-1.573.433-.575.432-.776 1.021l-2.52-.358q.298-1.043.984-1.745a4.3 4.3 0 011.678-1.059 6.4 6.4 0 012.192-.358q.828 0 1.648.194a4.6 4.6 0 011.5.642q.678.44 1.088 1.2.418.76.418 1.902V299H28.03v-1.574h-.089a3.3 3.3 0 01-.694.895 3.3 3.3 0 01-1.11.664q-.665.246-1.56.246m.7-1.983q.815 0 1.41-.321.597-.328.918-.865.328-.537.328-1.171v-1.35q-.128.104-.433.194a6 6 0 01-.671.157q-.373.066-.738.119-.366.053-.634.089a4.8 4.8 0 00-1.082.269q-.477.186-.753.522-.276.328-.276.85 0 .746.545 1.126.544.381 1.387.381m10.762-4.96V299h-2.7v-11.455h2.58v1.947h.135a3.27 3.27 0 011.26-1.529q.873-.567 2.155-.567 1.186 0 2.066.507a3.4 3.4 0 011.372 1.47q.492.962.485 2.334V299h-2.7v-6.876q0-1.147-.596-1.797-.59-.649-1.634-.649-.708 0-1.26.313-.545.306-.858.888-.305.582-.305 1.409m14.348 6.913q-1.35 0-2.416-.693-1.066-.694-1.686-2.014t-.619-3.206q0-1.91.627-3.222.634-1.32 1.707-1.991a4.4 4.4 0 012.394-.679q1.007 0 1.656.343.648.336 1.029.813.38.47.589.888h.112v-5.713h2.707V299h-2.655v-1.805h-.164a4.6 4.6 0 01-.604.888 3.3 3.3 0 01-1.044.79q-.65.328-1.633.328m.753-2.214q.858 0 1.462-.463.603-.47.917-1.305.313-.836.313-1.946 0-1.111-.313-1.932-.306-.82-.91-1.275-.596-.455-1.469-.455-.903 0-1.506.47-.604.47-.91 1.298-.306.827-.306 1.894 0 1.073.306 1.916.313.835.917 1.32.611.477 1.499.478M59.365 299v-11.455h2.7V299zm1.357-13.08q-.642 0-1.104-.425a1.37 1.37 0 01-.462-1.037q0-.612.462-1.036a1.56 1.56 0 011.104-.433q.648 0 1.104.433.462.424.462 1.036 0 .604-.462 1.037a1.56 1.56 0 01-1.104.425m6.818 6.368V299h-2.7v-11.455h2.58v1.947h.135a3.27 3.27 0 011.26-1.529q.873-.567 2.155-.567 1.186 0 2.066.507a3.4 3.4 0 011.372 1.47q.492.962.485 2.334V299h-2.7v-6.876q0-1.147-.596-1.797-.59-.649-1.634-.649-.708 0-1.26.313-.544.306-.858.888-.305.582-.305 1.409m15.079 11.246q-1.455 0-2.499-.395-1.044-.389-1.678-1.044a3.6 3.6 0 01-.88-1.454l2.432-.59q.163.336.477.664.314.336.843.552.536.224 1.35.224 1.148 0 1.901-.56.753-.551.753-1.819v-2.17h-.134a3.8 3.8 0 01-.612.857q-.395.44-1.051.739-.65.298-1.633.298-1.32 0-2.394-.619-1.067-.627-1.7-1.864-.627-1.246-.627-3.118 0-1.886.627-3.184.634-1.305 1.707-1.976a4.4 4.4 0 012.394-.679q1.007 0 1.656.343.656.336 1.044.813.387.47.589.888h.15v-1.895h2.661v11.641q0 1.47-.7 2.432-.702.962-1.917 1.439t-2.76.477m.022-6.816q.858 0 1.462-.418.603-.417.917-1.2.313-.784.313-1.879 0-1.082-.313-1.895-.306-.813-.91-1.26-.596-.455-1.469-.455-.903 0-1.506.47-.604.47-.91 1.29-.306.813-.306 1.85 0 1.052.306 1.841.313.784.917 1.224.612.432 1.499.432M101.266 299H96.09v-15.273h5.28q2.275 0 3.908.918 1.641.91 2.52 2.617.88 1.708.88 4.087 0 2.387-.887 4.101a6.13 6.13 0 01-2.543 2.633q-1.656.917-3.982.917m-2.409-2.394h2.275q1.595 0 2.662-.581 1.066-.59 1.603-1.753.537-1.171.537-2.923t-.537-2.909q-.537-1.162-1.588-1.737-1.044-.582-2.595-.582h-2.357zm15.627 2.625q-1.09 0-1.961-.388a3.2 3.2 0 01-1.372-1.163q-.5-.768-.5-1.894 0-.97.358-1.603.358-.634.977-1.015a5 5 0 011.394-.574 11.4 11.4 0 011.619-.291 60 60 0 001.633-.186q.626-.09.91-.269.29-.186.29-.574v-.045q0-.841-.499-1.305-.5-.462-1.44-.462-.991 0-1.573.433-.574.432-.776 1.021l-2.52-.358q.299-1.043.984-1.745a4.3 4.3 0 011.678-1.059 6.4 6.4 0 012.193-.358q.827 0 1.648.194a4.6 4.6 0 011.499.642q.678.44 1.088 1.2.418.76.418 1.902V299h-2.595v-1.574h-.09a3.3 3.3 0 01-.693.895 3.3 3.3 0 01-1.111.664q-.664.246-1.559.246m.701-1.983q.813 0 1.409-.321.597-.328.918-.865a2.2 2.2 0 00.328-1.171v-1.35q-.127.104-.433.194a6 6 0 01-.671.157q-.373.066-.738.119-.366.053-.634.089a4.7 4.7 0 00-1.081.269q-.478.186-.754.522-.275.328-.275.85 0 .746.544 1.126.544.381 1.387.381m13.781-9.703v2.089h-6.585v-2.089zm-4.959-2.744h2.7v10.754q0 .544.164.835a.9.9 0 00.447.388q.276.104.612.104.254 0 .462-.037.216-.037.328-.067l.455 2.11q-.216.075-.619.164-.395.09-.969.105-1.015.03-1.827-.306a2.85 2.85 0 01-1.291-1.059q-.47-.716-.462-1.79zm10.513 14.43q-1.088 0-1.961-.388a3.2 3.2 0 01-1.372-1.163q-.5-.768-.5-1.894 0-.97.358-1.603.358-.634.977-1.015a5 5 0 011.394-.574 11.4 11.4 0 011.619-.291 60 60 0 001.633-.186q.626-.09.91-.269.291-.186.291-.574v-.045q0-.841-.5-1.305-.5-.462-1.439-.462-.993 0-1.574.433-.574.432-.775 1.021l-2.521-.358q.298-1.043.984-1.745a4.3 4.3 0 011.678-1.059 6.4 6.4 0 012.193-.358q.828 0 1.648.194a4.6 4.6 0 011.499.642q.678.44 1.088 1.2.418.76.418 1.902V299h-2.595v-1.574h-.09a3.3 3.3 0 01-.693.895 3.3 3.3 0 01-1.111.664q-.664.246-1.559.246m.701-1.983q.813 0 1.41-.321.596-.328.917-.865a2.2 2.2 0 00.328-1.171v-1.35q-.127.104-.433.194-.297.09-.671.157-.372.066-.738.119t-.634.089a4.7 4.7 0 00-1.081.269 1.8 1.8 0 00-.753.522q-.276.328-.276.85 0 .746.544 1.126.544.381 1.387.381"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 315h178.333v63H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 315h178.333v63H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M7.379 330v-8h2.851q.93 0 1.543.32.619.32.922.887.305.563.305 1.301 0 .733-.309 1.293-.304.555-.921.863-.615.309-1.543.309h-2.16v-1.039h2.05q.585 0 .953-.168a1.1 1.1 0 00.543-.489q.172-.32.172-.769 0-.453-.176-.785a1.13 1.13 0 00-.543-.508q-.367-.18-.964-.18H8.586V330zm3.95-3.609L13.304 330H11.93l-1.938-3.609zM19.612 322h1.211v5.262q0 .84-.394 1.488a2.76 2.76 0 01-1.11 1.016q-.715.367-1.675.367-.958 0-1.672-.367a2.76 2.76 0 01-1.11-1.016q-.394-.648-.394-1.488V322h1.207v5.164q0 .543.238.965.243.422.684.664.441.238 1.047.238.609 0 1.05-.238.446-.242.68-.664.238-.422.238-.965zm9.423 0v8h-1.11l-4.066-5.867h-.074V330H22.58v-8h1.117l4.07 5.875h.075V322zm3.327 8l-2.218-8h1.27l1.558 6.195h.074L34.668 322h1.258l1.62 6.199h.075L39.176 322h1.273l-2.222 8h-1.215l-1.684-5.992h-.062L33.582 330zm9.175 0h-1.281l2.879-8h1.394l2.88 8h-1.282l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zM47.13 322h1.371l2.09 3.637h.086l2.09-3.637h1.37l-2.902 4.859V330h-1.203v-3.141z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M178.833 315h178.333v63H178.833z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M178.833 315h178.333v63H178.833z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M186.388 330h-1.281l2.879-8h1.394l2.879 8h-1.281l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zm6.673-4.867l2.226 6.516h.09l2.227-6.516h1.304l-2.879 8h-1.394l-2.879-8zm6.862 8h-1.281l2.879-8h1.394l2.879 8h-1.281l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zm8.018-4.867v8h-1.207v-8zm1.758 8v-8h1.207v6.961h3.625V330zm7.293 0h-1.281l2.879-8h1.394l2.879 8h-1.281l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zm6.811 3.133v-8h2.93q.852 0 1.41.281.559.277.836.754.278.473.278 1.067 0 .5-.184.843a1.5 1.5 0 01-.492.547 2.1 2.1 0 01-.672.297v.078q.399.02.777.258.383.234.633.668t.25 1.055q0 .613-.289 1.101-.285.485-.883.77-.597.28-1.527.281zm1.208-1.035h1.742q.867 0 1.242-.336t.375-.84q0-.379-.192-.695a1.36 1.36 0 00-.546-.504 1.76 1.76 0 00-.836-.188h-1.785zm0-3.504h1.617q.406 0 .73-.156.328-.156.52-.438.195-.285.195-.672 0-.495-.348-.832-.347-.336-1.066-.336h-1.648zm5.99 4.539v-8h1.207v6.961h3.625V330zm6.209 0v-8h5.015v1.039h-3.808v2.438h3.547v1.035h-3.547v2.449h3.855V330zm9.539 0v-8h1.207v6.961h3.625V330zm7.293 0h-1.281l2.878-8h1.395l2.879 8h-1.281l-2.262-6.547h-.063zm.215-3.133h4.156v1.016h-4.156zM268.17 322v8h-1.109l-4.067-5.867h-.074V330h-1.207v-8h1.117l4.071 5.875h.074V322zm4.351 8h-2.59v-8h2.672q1.176 0 2.019.48.845.477 1.293 1.372.453.89.453 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.312 1.383q-.86.48-2.078.48m-1.383-1.055h1.316q.915 0 1.52-.343.606-.348.906-1.004.301-.66.301-1.61 0-.941-.301-1.597a2.1 2.1 0 00-.887-.996q-.59-.34-1.464-.34h-1.391zm7.938-6.945v8h-1.207v-8zm8.215 0v8h-1.109l-4.067-5.867h-.074V330h-1.207v-8h1.117l4.071 5.875h.074V322zm7.175 2.527a2.4 2.4 0 00-.305-.636 1.95 1.95 0 00-1.046-.793 2.4 2.4 0 00-.731-.106q-.675 0-1.219.348-.543.348-.859 1.019-.312.669-.313 1.637 0 .973.317 1.645.317.671.867 1.019t1.254.348q.652 0 1.137-.266.487-.266.754-.75.269-.488.269-1.148l.313.058h-2.289v-.996h3.144v.91q0 1.008-.43 1.75a2.9 2.9 0 01-1.179 1.141q-.75.402-1.719.402-1.086 0-1.906-.5a3.4 3.4 0 01-1.274-1.418q-.457-.921-.457-2.187 0-.957.266-1.719t.746-1.293a3.25 3.25 0 011.137-.816q.656-.285 1.433-.285.65 0 1.207.191.563.192 1 .543a3.06 3.06 0 011.121 1.902zm8.326 5.473h-2.59v-8h2.672q1.176 0 2.02.48.843.477 1.293 1.372.453.89.453 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.313 1.383q-.859.48-2.078.48m-1.383-1.055h1.317q.914 0 1.519-.343.606-.348.907-1.004.3-.66.3-1.61 0-.941-.3-1.597a2.12 2.12 0 00-.887-.996q-.59-.34-1.465-.34h-1.391zm7.939-6.945v8h-1.207v-8zm6.121 2.102a1.14 1.14 0 00-.516-.86q-.453-.308-1.14-.308-.492 0-.852.156a1.3 1.3 0 00-.558.422 1 1 0 00-.196.605q0 .285.133.492.137.207.356.348.222.137.476.231.254.089.488.148l.782.203q.383.094.785.254t.746.422.555.648q.214.387.214.926 0 .68-.351 1.207-.348.528-1.012.832-.66.305-1.598.305-.898 0-1.554-.285t-1.028-.809a2.35 2.35 0 01-.41-1.25H312q.036.433.281.723.25.285.637.425.391.137.856.137.511 0 .91-.16.402-.163.633-.453.23-.293.23-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.77-.261l-.945-.258q-.96-.262-1.523-.77-.56-.507-.559-1.344a2 2 0 01.375-1.207q.375-.515 1.016-.8a3.5 3.5 0 011.445-.289q.813 0 1.434.285.624.285.984.785.36.496.375 1.141zm2.321-1.063V322h6.192v1.039h-2.496V330h-1.204v-6.961zm7.29 6.961h-1.281l2.879-8h1.395l2.878 8h-1.281l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zM338.564 322v8h-1.11l-4.066-5.867h-.074V330h-1.207v-8h1.117l4.07 5.875h.074V322zm8.405 2.602h-1.219a1.9 1.9 0 00-.261-.688 1.9 1.9 0 00-.469-.504 2 2 0 00-.621-.312 2.4 2.4 0 00-.723-.106q-.692 0-1.238.348-.543.348-.86 1.019-.312.672-.312 1.641 0 .977.312 1.648.317.672.864 1.016t1.23.344q.379 0 .719-.102.344-.105.621-.308a1.87 1.87 0 00.738-1.176l1.219.004a3.3 3.3 0 01-.379 1.086 3 3 0 01-.715.851q-.434.356-.992.551-.559.195-1.219.195-1.039 0-1.851-.492-.813-.496-1.282-1.418-.464-.921-.464-2.199 0-1.281.468-2.199.47-.922 1.282-1.414.812-.496 1.847-.496.638 0 1.188.183.555.18.996.531.442.348.73.852.29.5.391 1.145m1.444 5.398v-8h5.016v1.039h-3.809v2.438h3.547v1.035h-3.547v2.449h3.856V330z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M357.167 315H535.5v63H357.167z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M357.167 315H535.5v63H357.167z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M364.721 330h-1.281l2.879-8h1.395l2.879 8h-1.282l-2.261-6.547h-.063zm.215-3.133h4.157v1.016h-4.157zM376.892 322h1.211v5.262q0 .84-.394 1.488a2.76 2.76 0 01-1.11 1.016q-.714.367-1.675.367-.958 0-1.672-.367a2.76 2.76 0 01-1.11-1.016q-.394-.648-.394-1.488V322h1.207v5.164q0 .543.238.965.242.422.684.664.441.238 1.047.238.609 0 1.05-.238.446-.242.68-.664.238-.422.238-.965zm2.572 1.039V322h6.191v1.039h-2.496V330h-1.203v-6.961zM393.629 326q0 1.281-.469 2.203-.47.918-1.285 1.414-.813.492-1.848.492-1.04 0-1.855-.492-.813-.496-1.282-1.418-.468-.921-.468-2.199 0-1.281.468-2.199.47-.922 1.282-1.414.816-.496 1.855-.496 1.035 0 1.848.496.816.492 1.285 1.414.469.918.469 2.199m-1.196 0q0-.976-.316-1.645-.313-.671-.859-1.015a2.23 2.23 0 00-1.231-.348q-.691 0-1.234.348-.543.344-.86 1.015-.312.669-.312 1.645 0 .977.312 1.648.317.668.86 1.016.543.344 1.234.344.688 0 1.231-.344.546-.348.859-1.016.316-.671.316-1.648m2.701 4v-8h2.929q.852 0 1.41.281.559.277.836.754.278.473.278 1.067 0 .5-.184.843a1.5 1.5 0 01-.492.547 2.1 2.1 0 01-.672.297v.078q.399.02.777.258.384.234.633.668.25.434.25 1.055 0 .613-.289 1.101-.285.485-.883.77-.597.28-1.527.281zm1.207-1.035h1.742q.867 0 1.242-.336t.375-.84a1.32 1.32 0 00-.738-1.199 1.76 1.76 0 00-.836-.188h-1.785zm0-3.504h1.617q.406 0 .73-.156.328-.156.52-.438.195-.285.195-.672 0-.495-.348-.832-.347-.336-1.066-.336h-1.648zm5.99 4.539v-8h2.851q.93 0 1.543.32.618.32.922.887.305.563.305 1.301 0 .733-.309 1.293-.304.555-.922.863-.613.309-1.543.309h-2.16v-1.039h2.051q.586 0 .953-.168.372-.168.543-.489a1.6 1.6 0 00.172-.769q0-.453-.176-.785a1.13 1.13 0 00-.543-.508q-.366-.18-.965-.18h-1.515V330zm3.949-3.609l1.977 3.609h-1.375l-1.938-3.609zm3.816 3.609h-1.281l2.879-8h1.395l2.879 8h-1.282l-2.261-6.547h-.063zm.215-3.133h4.157v1.016h-4.157zm6.812 3.133v-8h1.207v3.82h.097l3.356-3.82h1.519l-3.226 3.602 3.238 4.398h-1.453l-2.586-3.574-.945 1.086V330zm7.304 0v-8h5.016v1.039h-3.808v2.438h3.546v1.035h-3.546v2.449h3.855V330z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 378h178.333v63H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 378h178.333v63H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M7.379 393v-8h4.96v1.039H8.587v2.438h3.398v1.035H8.586V393zm6.445 0v-8h1.207v6.961h3.625V393zm7.293 0h-1.281l2.879-8h1.394l2.88 8h-1.282l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zM28.144 393v-8h2.851q.933 0 1.547.34.614.339.918.93.305.585.305 1.32 0 .738-.309 1.328-.304.586-.922.93-.613.34-1.543.34h-1.96v-1.024h1.85q.59 0 .958-.203.367-.207.539-.563.171-.355.172-.808t-.172-.805a1.24 1.24 0 00-.543-.551q-.367-.198-.969-.199h-1.515V393z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M178.833 378h178.333v63H178.833z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M178.833 378h178.333v63H178.833z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M185.712 393v-8h2.852q.93 0 1.543.32.616.32.922.887.304.563.304 1.301 0 .734-.308 1.293-.305.554-.922.863-.613.309-1.543.309h-2.16v-1.039h2.05q.587 0 .954-.168.37-.168.543-.489.171-.32.171-.769 0-.453-.175-.785a1.14 1.14 0 00-.543-.508q-.368-.18-.965-.18h-1.516V393zm3.949-3.609l1.977 3.609h-1.375l-1.938-3.609zm3.141 3.609v-8h5.016v1.039h-3.809v2.438h3.547v1.035h-3.547v2.449h3.856V393zm9.569-2.594h1.188l.836 1.09.394.484 1.332 1.739h-1.234l-.891-1.16-.304-.422zm4.008-1.406q0 1.281-.469 2.203-.468.918-1.285 1.414-.812.492-1.847.492-1.04 0-1.856-.492-.813-.496-1.281-1.418-.47-.921-.469-2.199 0-1.281.469-2.199.468-.922 1.281-1.414.816-.496 1.856-.496 1.035 0 1.847.496.817.492 1.285 1.414.47.918.469 2.199m-1.195 0q0-.976-.317-1.645-.312-.671-.859-1.015a2.23 2.23 0 00-1.23-.348 2.24 2.24 0 00-1.235.348q-.543.344-.859 1.015-.312.669-.313 1.645 0 .977.313 1.648.316.668.859 1.016.543.344 1.235.344.687 0 1.23-.344.547-.348.859-1.016.317-.671.317-1.648m7.845-4h1.211v5.262q0 .84-.395 1.488-.395.644-1.109 1.016-.716.367-1.676.367-.957 0-1.672-.367a2.76 2.76 0 01-1.109-1.016q-.395-.648-.395-1.488V385h1.207v5.164q0 .543.238.965.243.422.684.664.441.238 1.047.238.609 0 1.051-.238.445-.242.679-.664.239-.422.239-.965zm4.172 0v8h-1.207v-8zm1.758 8v-8h2.852q.93 0 1.543.32.617.32.922.887.304.563.304 1.301 0 .734-.308 1.293-.305.554-.922.863-.613.309-1.543.309h-2.16v-1.039h2.051q.585 0 .953-.168.37-.168.543-.489.171-.32.171-.769 0-.453-.175-.785a1.14 1.14 0 00-.543-.508q-.368-.18-.965-.18h-1.516V393zm3.949-3.609l1.977 3.609h-1.375l-1.937-3.609zm3.141 3.609v-8h5.016v1.039h-3.809v2.438h3.547v1.035h-3.547v2.449h3.856V393zm9.218 0h-2.59v-8h2.672q1.176 0 2.019.48.844.477 1.293 1.372.454.89.454 2.136 0 1.25-.458 2.149a3.2 3.2 0 01-1.312 1.383q-.86.48-2.078.48m-1.383-1.055h1.316q.915 0 1.52-.343.606-.348.906-1.004.301-.66.301-1.61 0-.941-.301-1.597a2.12 2.12 0 00-.886-.996q-.59-.34-1.465-.34h-1.391zm9.643 1.055v-8h1.207v6.961h3.625V393zm7.293 0h-1.282l2.879-8h1.395l2.879 8h-1.282l-2.261-6.547h-.063zm.214-3.133h4.157v1.016h-4.157zM264.303 385v8h-1.109l-4.067-5.867h-.074V393h-1.207v-8h1.117l4.07 5.875h.075V385zm4.351 8h-2.59v-8h2.672q1.175 0 2.019.48.845.477 1.293 1.372.453.89.453 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.312 1.383q-.86.48-2.078.48m-1.383-1.055h1.316q.914 0 1.52-.343.605-.348.906-1.004.3-.66.301-1.61 0-.941-.301-1.597a2.12 2.12 0 00-.887-.996q-.59-.34-1.465-.34h-1.39zm7.938-6.945v8h-1.207v-8zm8.215 0v8h-1.109l-4.067-5.867h-.074V393h-1.207v-8h1.117l4.071 5.875h.074V385zm7.175 2.527a2.4 2.4 0 00-.305-.636 2 2 0 00-.449-.485 1.9 1.9 0 00-.598-.308 2.4 2.4 0 00-.73-.106 2.2 2.2 0 00-1.219.348q-.543.348-.859 1.019-.313.669-.313 1.637 0 .973.317 1.645.317.671.867 1.019t1.254.348q.653 0 1.136-.266.489-.266.754-.75.27-.488.27-1.148l.312.058h-2.289v-.996h3.145v.91q0 1.008-.43 1.75a2.9 2.9 0 01-1.18 1.141q-.75.402-1.718.402-1.086 0-1.907-.5a3.4 3.4 0 01-1.273-1.418q-.457-.921-.457-2.187 0-.957.266-1.719.265-.762.746-1.293a3.25 3.25 0 011.136-.816q.657-.285 1.434-.285.649 0 1.207.191.562.192 1 .543a3.08 3.08 0 011.121 1.902zm8.326 5.473h-2.59v-8h2.672q1.176 0 2.02.48.843.477 1.293 1.372.453.89.453 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.313 1.383q-.859.48-2.078.48m-1.383-1.055h1.317q.914 0 1.519-.343.606-.348.906-1.004.301-.66.301-1.61 0-.941-.301-1.597a2.1 2.1 0 00-.886-.996q-.59-.34-1.465-.34h-1.391zm7.939-6.945v8h-1.207v-8zm6.121 2.102a1.14 1.14 0 00-.516-.86q-.453-.308-1.14-.308-.493 0-.852.156-.36.152-.559.422a1 1 0 00-.195.605q0 .285.133.492.137.207.355.348.224.137.477.231.254.089.488.148l.781.203q.383.094.786.254.402.16.746.422.344.261.554.648.215.387.215.926 0 .68-.351 1.207-.348.528-1.012.832-.66.305-1.598.305-.899 0-1.554-.285-.656-.285-1.028-.809a2.35 2.35 0 01-.41-1.25h1.211q.035.433.281.723.25.285.637.425.39.137.855.137.512 0 .911-.16.402-.163.632-.453.231-.293.231-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.77-.261l-.945-.258q-.961-.262-1.523-.77-.56-.507-.559-1.344a2 2 0 01.375-1.207q.375-.515 1.016-.8a3.5 3.5 0 011.445-.289q.813 0 1.433.285.625.285.985.785.358.496.375 1.141zm2.321-1.063V385h6.192v1.039h-2.497V393h-1.203v-6.961zm7.29 6.961h-1.281l2.879-8h1.394l2.879 8h-1.281l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zM334.697 385v8h-1.11l-4.066-5.867h-.074V393h-1.207v-8h1.117l4.07 5.875h.074V385zm8.405 2.602h-1.219a1.86 1.86 0 00-.73-1.192 2 2 0 00-.622-.312 2.4 2.4 0 00-.722-.106q-.692 0-1.238.348-.543.348-.86 1.019-.312.672-.312 1.641 0 .977.312 1.648.317.672.863 1.016.547.344 1.231.344.379 0 .719-.102.343-.105.621-.308a1.87 1.87 0 00.738-1.176l1.219.004a3.3 3.3 0 01-.379 1.086 3 3 0 01-.715.851q-.434.356-.992.551a3.7 3.7 0 01-1.219.195q-1.04 0-1.851-.492-.813-.496-1.282-1.418-.465-.921-.465-2.199 0-1.281.469-2.199.47-.922 1.281-1.414.813-.496 1.848-.496.637 0 1.188.183.553.18.996.531.44.348.73.852.29.5.391 1.145m1.444 5.398v-8h5.016v1.039h-3.809v2.438h3.547v1.035h-3.547v2.449h3.856V393z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M357.167 378H535.5v63H357.167z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M357.167 378H535.5v63H357.167z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M364.046 393v-8h1.207v6.961h3.625V393zm7.293 0h-1.282l2.879-8h1.395l2.879 8h-1.282l-2.261-6.547h-.063zm.214-3.133h4.157v1.016h-4.157zM384.822 385v8h-1.109l-4.067-5.867h-.074V393h-1.207v-8h1.117l4.07 5.875h.075V385zm4.351 8h-2.59v-8h2.672q1.175 0 2.019.48.845.477 1.293 1.372.453.89.453 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.312 1.383q-.86.48-2.078.48m-1.383-1.055h1.316q.915 0 1.52-.343.605-.348.906-1.004.301-.66.301-1.61 0-.941-.301-1.597a2.12 2.12 0 00-.887-.996q-.59-.34-1.465-.34h-1.39zm7.938-6.945v8h-1.207v-8zm8.215 0v8h-1.109l-4.067-5.867h-.074V393h-1.207v-8h1.117l4.071 5.875h.074V385zm7.175 2.527a2.4 2.4 0 00-.305-.636 2 2 0 00-.449-.485 1.9 1.9 0 00-.598-.308 2.4 2.4 0 00-.73-.106 2.2 2.2 0 00-1.219.348q-.543.348-.859 1.019-.313.669-.313 1.637 0 .973.317 1.645.317.671.867 1.019t1.254.348q.653 0 1.136-.266.489-.266.754-.75.27-.488.27-1.148l.312.058h-2.289v-.996h3.145v.91q0 1.008-.43 1.75a2.9 2.9 0 01-1.179 1.141q-.75.402-1.719.402-1.086 0-1.906-.5a3.4 3.4 0 01-1.274-1.418q-.457-.921-.457-2.187 0-.957.266-1.719.265-.762.746-1.293a3.25 3.25 0 011.136-.816q.657-.285 1.434-.285.649 0 1.207.191.562.192 1 .543a3.08 3.08 0 011.121 1.902zm7.303 5.473l-2.219-8h1.269l1.559 6.195h.074l1.621-6.195h1.258l1.621 6.199h.074l1.555-6.199h1.274l-2.223 8h-1.215l-1.684-5.992h-.062L419.639 393zm9.186 0v-8h5.016v1.039h-3.809v2.438h3.547v1.035h-3.547v2.449h3.856V393zm7.835-8v8h-1.207v-8zm7.172 2.527a2.4 2.4 0 00-.305-.636 1.95 1.95 0 00-1.047-.793 2.4 2.4 0 00-.73-.106 2.2 2.2 0 00-1.219.348q-.543.348-.859 1.019-.313.669-.313 1.637 0 .973.317 1.645.316.671.867 1.019t1.254.348q.652 0 1.137-.266a1.85 1.85 0 00.753-.75q.27-.488.27-1.148l.313.058h-2.29v-.996h3.145v.91q0 1.008-.43 1.75a2.9 2.9 0 01-1.179 1.141q-.75.402-1.719.402-1.087 0-1.906-.5a3.4 3.4 0 01-1.274-1.418q-.457-.921-.457-2.187 0-.957.266-1.719t.746-1.293a3.25 3.25 0 011.137-.816q.656-.285 1.433-.285.649 0 1.207.191.563.192 1 .543a3.08 3.08 0 011.121 1.902zm2.825 5.473v-8h1.207v3.477h3.989V385h1.21v8h-1.21v-3.488h-3.989V393zm7.77-6.961V385h6.191v1.039h-2.496V393h-1.203v-6.961z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 441H268v63H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 441H268v63H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M8.078 448l2.227 6.516h.09L12.62 448h1.305l-2.88 8H9.653l-2.879-8z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M268 441h267.5v63H268z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M268 441h267.5v63H268z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M275.578 448l2.227 6.516h.09l2.226-6.516h1.305l-2.879 8h-1.395l-2.879-8zm-79.899-255v-6.182h2.204q.718 0 1.192.248.477.247.712.685.236.435.236 1.005 0 .567-.239.999a1.6 1.6 0 01-.712.667q-.474.239-1.192.239h-1.67v-.803h1.585q.453 0 .737-.13a.86.86 0 00.419-.377 1.24 1.24 0 00.133-.595q0-.35-.136-.607a.87.87 0 00-.419-.392q-.284-.14-.746-.139h-1.171V193zm3.052-2.789l1.527 2.789h-1.062l-1.497-2.789zM14.68 459v-6.182h2.203q.718 0 1.192.248.477.247.712.685.236.435.236 1.005 0 .567-.239.999a1.6 1.6 0 01-.712.667q-.474.239-1.192.239h-1.67v-.803h1.585q.453 0 .737-.13a.86.86 0 00.42-.377q.132-.248.132-.595 0-.35-.136-.607a.87.87 0 00-.42-.392q-.283-.14-.745-.139h-1.171V459zm3.05-2.789L19.259 459h-1.062l-1.498-2.789zM20.159 459v-6.182h3.875v.803H21.09v1.884h2.741v.8h-2.74v1.892h2.979V459zm5.121 0v-6.182h3.834v.803h-2.901v1.884h2.626v.8h-2.626V459z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M14.68 459v-6.182h2.203q.718 0 1.192.248.477.247.712.685.236.435.236 1.005 0 .567-.239.999a1.6 1.6 0 01-.712.667q-.474.239-1.192.239h-1.67v-.803h1.585q.453 0 .737-.13a.86.86 0 00.42-.377q.132-.248.132-.595 0-.35-.136-.607a.87.87 0 00-.42-.392q-.283-.14-.745-.139h-1.171V459zm3.05-2.789L19.259 459h-1.062l-1.498-2.789zM20.159 459v-6.182h3.875v.803H21.09v1.884h2.741v.8h-2.74v1.892h2.979V459zm5.121 0v-6.182h3.834v.803h-2.901v1.884h2.626v.8h-2.626V459zm256.094-5.379v-.803h4.785v.803h-1.929V459h-.93v-5.379zm5.634 5.379h-.991l2.225-6.182h1.078l2.224 6.182h-.99l-1.747-5.059h-.049zm.166-2.421h3.211v.785h-3.211zm5.263 2.421v-6.182h2.203q.719 0 1.193.248.477.247.712.685.236.435.236 1.005 0 .567-.239.999a1.6 1.6 0 01-.712.667q-.474.239-1.193.239h-1.669v-.803h1.585q.453 0 .736-.13a.86.86 0 00.42-.377 1.24 1.24 0 00.133-.595q0-.35-.136-.607a.87.87 0 00-.42-.392q-.283-.14-.745-.139h-1.171V459zm3.052-2.789l1.527 2.789h-1.063l-1.497-2.789zm6.61-1.44a2 2 0 00-.235-.492 1.5 1.5 0 00-.809-.613 1.9 1.9 0 00-.565-.081q-.522 0-.942.269a1.83 1.83 0 00-.664.787q-.241.516-.241 1.265 0 .752.244 1.271.245.52.671.788.425.268.968.268.505 0 .879-.205a1.43 1.43 0 00.582-.579 1.8 1.8 0 00.209-.888l.241.045h-1.769v-.769h2.43v.703q0 .779-.332 1.352a2.26 2.26 0 01-.911.882 2.8 2.8 0 01-1.329.311q-.839 0-1.473-.387a2.6 2.6 0 01-.984-1.096q-.353-.712-.353-1.69 0-.74.206-1.328.205-.588.576-.999.374-.414.878-.631a2.75 2.75 0 011.108-.22q.501 0 .933.148.435.147.773.419a2.4 2.4 0 01.866 1.47zm2.183 4.229v-6.182h3.876v.803h-2.943v1.884h2.741v.8h-2.741v1.892h2.979V459zm4.817-5.379v-.803h4.784v.803h-1.929V459h-.929v-5.379z"})]})})),CW=u.memo((function(){return(0,Al.jsxs)(Wk,{width:600,height:692,fill:"none",viewBox:"-32 -32 600 692",children:[(0,Al.jsx)(zk,{id:"times_out_in_template_prefix__a",fill:"#fff",children:(0,Al.jsx)(Vk,{d:"M0 0h264v47H0z"})}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M0 0h264v47H0z"}),(0,Al.jsx)(Vk,{fill:"#415F82",d:"M0 0v-1h-1v1zm264 0h1v-1h-1zM0 1h264v-2H0zm263-1v47h2V0zM1 47V0h-2v47z",mask:"url(#times_out_in_template_prefix__a)"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M8.835 18.047v-2.32h12.186v2.32H16.3V31h-2.745V18.047zM23.25 31V19.546h2.7V31zm1.358-13.08q-.642 0-1.104-.425a1.37 1.37 0 01-.463-1.037q0-.612.463-1.036a1.56 1.56 0 011.104-.433q.648 0 1.103.432.463.426.463 1.037 0 .604-.463 1.037a1.56 1.56 0 01-1.103.425M28.726 31V19.546h2.58v1.946h.134a3.04 3.04 0 011.186-1.536q.828-.56 1.976-.56 1.164 0 1.962.567.805.56 1.133 1.529h.12a3.13 3.13 0 011.282-1.521q.91-.575 2.155-.575 1.581 0 2.58 1t1 2.915V31h-2.707v-7.271q0-1.065-.567-1.558-.567-.5-1.387-.5-.976 0-1.529.611-.544.604-.544 1.574V31h-2.648v-7.383q0-.887-.536-1.417-.53-.53-1.387-.53-.582 0-1.06.3-.477.29-.76.827-.284.529-.284 1.238V31zm23.918.224q-1.723 0-2.976-.716a4.85 4.85 0 01-1.916-2.043q-.672-1.328-.672-3.125 0-1.767.672-3.102.678-1.343 1.894-2.088 1.215-.754 2.856-.754 1.059 0 1.999.343a4.5 4.5 0 011.67 1.044q.73.709 1.148 1.805.418 1.089.418 2.595v.828h-9.389v-1.82h6.801a2.9 2.9 0 00-.335-1.38 2.44 2.44 0 00-.917-.961q-.581-.35-1.358-.35-.827 0-1.454.402a2.8 2.8 0 00-.977 1.044 3 3 0 00-.35 1.41v1.588q0 1 .365 1.715.366.708 1.022 1.089.656.372 1.536.373.59 0 1.066-.164.478-.172.828-.5t.53-.813l2.52.284a3.9 3.9 0 01-.91 1.745q-.663.738-1.7 1.148-1.036.402-2.371.403m16.43-8.65l-2.46.268a2 2 0 00-.366-.701 1.8 1.8 0 00-.686-.53q-.433-.201-1.06-.201-.842 0-1.416.365-.566.366-.56.947a.99.99 0 00.366.813q.38.313 1.253.515l1.954.417q1.625.35 2.416 1.111.798.761.805 1.992a3.1 3.1 0 01-.634 1.909q-.619.82-1.722 1.282-1.104.463-2.536.463-2.103 0-3.386-.88-1.282-.888-1.528-2.469l2.632-.253q.18.775.76 1.17.583.396 1.515.396.962 0 1.543-.395.59-.396.59-.977 0-.493-.38-.813-.374-.321-1.164-.492l-1.954-.41q-1.649-.344-2.438-1.156-.791-.82-.784-2.074-.007-1.058.575-1.834.589-.783 1.633-1.208 1.05-.433 2.424-.433 2.013 0 3.169.858 1.162.858 1.44 2.32m21.448.79q0 2.468-.925 4.228-.918 1.752-2.506 2.685-1.581.932-3.587.932-2.005 0-3.594-.932-1.582-.94-2.506-2.693-.917-1.76-.917-4.22 0-2.469.917-4.221.925-1.76 2.506-2.692 1.589-.933 3.594-.933t3.587.933q1.589.931 2.506 2.692.924 1.752.925 4.22m-2.782 0q0-1.738-.544-2.931-.537-1.2-1.492-1.812-.954-.62-2.2-.62-1.245 0-2.2.62-.954.611-1.499 1.812-.537 1.193-.537 2.93t.537 2.939q.545 1.193 1.5 1.812.954.612 2.2.611 1.245 0 2.2-.611.954-.62 1.49-1.812.546-1.2.545-2.938m12.579 2.819v-6.637h2.699V31h-2.617v-2.036h-.12a3.44 3.44 0 01-1.275 1.574q-.88.61-2.17.611-1.125 0-1.991-.5-.858-.506-1.342-1.469-.485-.969-.485-2.341v-7.293h2.7v6.875q0 1.09.596 1.73.597.642 1.566.642.597 0 1.156-.291a2.35 2.35 0 00.917-.865q.366-.582.366-1.454m11.195-6.637v2.088h-6.585v-2.088zm-4.959-2.745h2.7v10.754q0 .544.164.835a.88.88 0 00.447.388q.276.105.612.104.253 0 .462-.037.216-.037.328-.067l.455 2.11q-.217.075-.619.164a5 5 0 01-.97.105q-1.014.03-1.827-.306a2.85 2.85 0 01-1.29-1.06q-.47-.714-.462-1.789z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 47h263v63H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 47h263v63H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M12.793 56.527a2.5 2.5 0 00-.305-.636 1.95 1.95 0 00-1.047-.793 2.4 2.4 0 00-.73-.106q-.675 0-1.219.348-.543.347-.86 1.02-.312.667-.312 1.636 0 .972.317 1.645.316.671.867 1.02a2.3 2.3 0 001.254.347q.653 0 1.137-.266a1.85 1.85 0 00.753-.75q.27-.488.27-1.148l.313.058h-2.29v-.996h3.145v.91q0 1.008-.43 1.75a2.93 2.93 0 01-1.18 1.141q-.75.402-1.718.402-1.087 0-1.906-.5a3.4 3.4 0 01-1.274-1.418q-.457-.921-.457-2.187 0-.957.266-1.719t.746-1.293a3.3 3.3 0 011.137-.816q.656-.285 1.433-.285a3.7 3.7 0 011.207.191q.562.192 1 .543a3.08 3.08 0 011.121 1.902zM16.047 62h-1.281l2.879-8h1.394l2.879 8h-1.281l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zm5.471-3.828V54h6.192v1.04h-2.496V62h-1.203v-6.96zM29.293 62v-8h5.016v1.04H30.5v2.437h3.547v1.035H30.5v2.449h3.855V62z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 110h263v63H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 110h263v63H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M6.984 118.039V117h6.192v1.039H10.68V125H9.477v-6.961zM15.751 117v8h-1.207v-8zm1.758 0h1.465l2.546 6.219h.094L24.161 117h1.465v8h-1.149v-5.789h-.074l-2.36 5.777h-.952l-2.36-5.781h-.074V125H17.51zm9.872 8v-8h5.016v1.039h-3.81v2.438h3.548v1.035h-3.547v2.449h3.855V125z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 173h263v63H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 173h263v63H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M14.328 184q0 1.282-.469 2.203-.468.918-1.285 1.414-.812.492-1.847.492-1.04 0-1.856-.492-.813-.496-1.281-1.418-.47-.921-.469-2.199 0-1.281.469-2.199.469-.922 1.281-1.414.816-.496 1.856-.496 1.035 0 1.847.496.816.492 1.285 1.414.47.918.47 2.199m-1.195 0q0-.976-.317-1.645-.312-.671-.859-1.015a2.23 2.23 0 00-1.23-.348q-.692 0-1.235.348-.543.344-.86 1.015-.312.669-.312 1.645 0 .977.313 1.648.315.668.86 1.016a2.26 2.26 0 001.234.344q.687 0 1.23-.344.547-.348.86-1.016.315-.671.316-1.648m3.907-4v8h-1.207v-8zm1.758 8v-8h1.207v6.961h3.625V188zm12.061-2.594h1.188l.836 1.09.394.484 1.332 1.739h-1.234l-.89-1.16-.305-.422zM34.867 184q0 1.282-.469 2.203-.468.918-1.285 1.414-.812.492-1.847.492-1.04 0-1.856-.492-.812-.496-1.281-1.418-.47-.921-.469-2.199 0-1.281.469-2.199.469-.922 1.281-1.414.816-.496 1.856-.496 1.035 0 1.847.496.817.492 1.285 1.414.47.918.47 2.199m-1.195 0q0-.976-.316-1.645-.313-.671-.86-1.015a2.23 2.23 0 00-1.23-.348q-.692 0-1.235.348-.543.344-.86 1.015-.311.669-.312 1.645 0 .977.313 1.648.315.668.86 1.016a2.26 2.26 0 001.234.344q.687 0 1.23-.344.547-.348.86-1.016.316-.671.316-1.648m7.845-4h1.21v5.262q0 .84-.394 1.488a2.76 2.76 0 01-1.11 1.016q-.715.367-1.675.367-.957 0-1.672-.367a2.76 2.76 0 01-1.11-1.016q-.394-.648-.394-1.488V180h1.207v5.164q0 .543.238.965.243.422.684.664.441.238 1.047.238.609 0 1.05-.238.446-.242.68-.664.24-.422.239-.965zm3.641 8h-1.281l2.879-8h1.394l2.88 8h-1.282l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zM58.642 180v8h-1.11l-4.066-5.867h-.074V188h-1.207v-8h1.117l4.07 5.875h.074V180zm1.366 1.039V180h6.191v1.039h-2.496V188H62.5v-6.961zM68.774 180v8h-1.207v-8zm1.364 1.039V180h6.191v1.039h-2.496V188H72.63v-6.961zM77.08 180h1.371l2.09 3.637h.086l2.09-3.637h1.37l-2.901 4.859V188h-1.204v-3.141z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 236h263v63H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 236h263v63H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M7.379 251v-8h1.207v3.477h3.988V243h1.211v8h-1.21v-3.488h-3.99V251zm7.547-8h1.37l2.09 3.637h.087l2.09-3.637h1.37l-2.902 4.859V251h-1.203v-3.141zm10.737 8h-2.59v-8h2.672q1.176 0 2.02.48.843.477 1.293 1.372.453.89.453 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.313 1.383q-.859.48-2.078.48m-1.383-1.055h1.317q.915 0 1.52-.343a2.17 2.17 0 00.906-1.004q.3-.66.3-1.61 0-.941-.3-1.597a2.12 2.12 0 00-.887-.996q-.59-.34-1.465-.34h-1.39zM31.012 251v-8h2.851q.93 0 1.543.32.618.32.922.887.305.563.305 1.301 0 .733-.309 1.293-.304.555-.922.863-.613.309-1.543.309H31.7v-1.039h2.051q.585 0 .953-.168a1.1 1.1 0 00.543-.489q.172-.32.172-.769 0-.453-.176-.785a1.13 1.13 0 00-.543-.508q-.367-.18-.965-.18H32.22V251zm3.949-3.609L36.938 251h-1.376l-1.937-3.609zM38.777 251h-1.28l2.878-8h1.395l2.878 8h-1.28l-2.263-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zM50.948 243h1.211v5.262q0 .84-.394 1.488a2.76 2.76 0 01-1.11 1.016q-.715.367-1.675.367-.957 0-1.672-.367a2.76 2.76 0 01-1.11-1.016q-.394-.648-.394-1.488V243h1.207v5.164q0 .543.238.965.242.422.684.664.441.238 1.047.238.609 0 1.05-.238a1.67 1.67 0 00.68-.664q.238-.422.238-.965zm2.966 8v-8h1.207v6.961h3.625V251zm7.416-8v8h-1.207v-8zm8.402 2.602h-1.218a1.86 1.86 0 00-.73-1.192 2 2 0 00-.622-.312 2.4 2.4 0 00-.723-.106q-.69 0-1.238.348-.542.347-.86 1.019-.311.672-.312 1.641 0 .977.313 1.648.316.672.863 1.016t1.23.344q.38 0 .72-.102.343-.105.62-.308t.47-.496q.195-.297.269-.68l1.218.004a3.3 3.3 0 01-.379 1.086 3 3 0 01-.714.851q-.435.356-.992.551-.56.195-1.22.195-1.039 0-1.85-.492-.814-.496-1.282-1.418-.465-.921-.465-2.199 0-1.281.469-2.199.469-.922 1.281-1.414.813-.496 1.848-.496.636 0 1.187.183.555.18.996.531.442.348.73.852.29.5.391 1.145m5.808-.5a1.14 1.14 0 00-.516-.86q-.453-.308-1.14-.308-.492 0-.852.156-.36.152-.558.422a1 1 0 00-.196.605q0 .285.133.492.137.207.356.348.222.137.476.231.254.089.488.148l.782.203q.383.094.785.254t.746.422.555.648q.215.387.215.926 0 .68-.352 1.207-.349.528-1.012.832-.66.305-1.597.305-.9 0-1.555-.285-.656-.285-1.028-.809-.37-.528-.41-1.25h1.211q.036.433.282.723.249.285.636.425.39.137.856.137.51 0 .91-.16.402-.163.633-.453.23-.293.23-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.77-.261l-.945-.258q-.96-.262-1.523-.77-.56-.507-.559-1.344a2 2 0 01.375-1.207q.375-.515 1.016-.8a3.5 3.5 0 011.445-.289q.813 0 1.434.285.625.285.984.785.36.496.375 1.141z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M.5 299h263v63H.5z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M.5 299h263v63H.5z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M7.379 314v-8h1.207v3.477h3.988V306h1.211v8h-1.21v-3.488h-3.99V314zm13.578-5.473a2.4 2.4 0 00-.305-.636 2 2 0 00-.449-.485 1.9 1.9 0 00-.598-.308 2.4 2.4 0 00-.73-.106q-.675 0-1.219.348-.543.348-.86 1.019-.311.669-.312 1.637 0 .973.317 1.645.316.671.867 1.019t1.254.348q.652 0 1.137-.266a1.85 1.85 0 00.753-.75q.27-.488.27-1.148l.313.058h-2.29v-.996h3.145v.91q0 1.008-.43 1.75a2.9 2.9 0 01-1.18 1.141q-.75.402-1.718.402-1.087 0-1.906-.5a3.4 3.4 0 01-1.274-1.418q-.457-.921-.457-2.187 0-.957.266-1.719a3.7 3.7 0 01.746-1.293 3.25 3.25 0 011.137-.816 3.6 3.6 0 011.433-.285q.648 0 1.207.191a3.3 3.3 0 011 .543 3.07 3.07 0 011.121 1.902zm7.188-.425a1.14 1.14 0 00-.515-.86q-.453-.308-1.14-.308-.494 0-.852.156-.36.152-.559.422a1 1 0 00-.195.605q0 .285.133.492.136.207.355.348.222.137.477.231.254.089.488.148l.781.203q.383.094.785.254.403.16.746.422.345.261.555.648.215.387.215.926 0 .68-.352 1.207-.347.528-1.011.832-.66.305-1.598.305-.898 0-1.555-.285t-1.027-.809q-.37-.527-.41-1.25h1.21q.036.433.282.723.25.285.637.425.39.137.855.137.512 0 .91-.16.403-.163.633-.453.23-.293.23-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.769-.261l-.945-.258q-.96-.262-1.524-.77-.558-.507-.558-1.344a2 2 0 01.375-1.207q.375-.515 1.015-.8a3.5 3.5 0 011.446-.289q.813 0 1.433.285.625.285.985.785.36.496.375 1.141zM36.363 314h-2.59v-8h2.672q1.176 0 2.02.48.843.477 1.293 1.372.453.89.453 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.313 1.383q-.858.48-2.078.48m-1.383-1.055h1.317q.915 0 1.52-.343a2.17 2.17 0 00.906-1.004q.3-.66.3-1.61 0-.941-.3-1.597a2.12 2.12 0 00-.887-.996q-.59-.34-1.465-.34h-1.39zM41.99 314h-1.281l2.879-8h1.394l2.88 8H46.58l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zm5.472-3.828V306h6.191v1.039h-2.496V314h-1.203v-6.961zm7.56 6.961v-8h5.015v1.039h-3.809v2.438h3.547v1.035h-3.547v2.449h3.856V314z"}),(0,Al.jsx)(zk,{id:"times_out_in_template_prefix__b",fill:"#fff",children:(0,Al.jsx)(Vk,{d:"M272 0h264v47H272z"})}),(0,Al.jsx)(Vk,{fill:"#333F52",d:"M272 0h264v47H272z"}),(0,Al.jsx)(Vk,{fill:"#415F82",d:"M272 0v-1h-1v1zm264 0h1v-1h-1zM272 1h264v-2H272zm263-1v47h2V0zM273 47V0h-2v47z",mask:"url(#times_out_in_template_prefix__b)"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M280.835 18.047v-2.32h12.186v2.32H288.3V31h-2.744V18.047zM295.25 31V19.546h2.7V31zm1.358-13.08q-.642 0-1.104-.425a1.37 1.37 0 01-.462-1.037q0-.612.462-1.036a1.56 1.56 0 011.104-.433q.648 0 1.103.432.463.426.463 1.037 0 .604-.463 1.037a1.56 1.56 0 01-1.103.425M300.726 31V19.546h2.58v1.946h.134a3.04 3.04 0 011.186-1.536q.828-.56 1.976-.56 1.164 0 1.962.567.805.56 1.133 1.529h.119a3.14 3.14 0 011.283-1.521q.91-.575 2.155-.575 1.58 0 2.581 1 .999 1 .999 2.915V31h-2.707v-7.271q0-1.065-.567-1.558-.567-.5-1.387-.5-.977 0-1.529.611-.544.604-.544 1.574V31h-2.647v-7.383q0-.887-.537-1.417-.53-.53-1.388-.53-.58 0-1.058.3-.478.29-.761.827-.283.529-.283 1.238V31zm23.918.224q-1.724 0-2.976-.716a4.85 4.85 0 01-1.916-2.043q-.672-1.328-.672-3.125 0-1.767.672-3.102.678-1.343 1.894-2.088 1.215-.754 2.856-.754 1.059 0 1.999.343a4.5 4.5 0 011.67 1.044q.73.709 1.148 1.805.418 1.089.418 2.595v.828h-9.389v-1.82h6.801a2.9 2.9 0 00-.335-1.38 2.44 2.44 0 00-.918-.961q-.581-.35-1.357-.35-.827 0-1.454.402a2.8 2.8 0 00-.977 1.044 3 3 0 00-.35 1.41v1.588q0 1 .365 1.715.366.708 1.022 1.089.655.372 1.536.373.59 0 1.066-.164.478-.172.828-.5t.53-.813l2.52.284a3.9 3.9 0 01-.91 1.745q-.663.738-1.7 1.148-1.036.402-2.371.403m16.43-8.65l-2.461.268a2 2 0 00-.365-.701 1.8 1.8 0 00-.686-.53q-.433-.201-1.059-.201-.843 0-1.417.365-.567.366-.559.947a.99.99 0 00.365.813q.38.313 1.253.515l1.954.417q1.625.35 2.416 1.111.798.761.805 1.992a3.1 3.1 0 01-.634 1.909q-.619.82-1.722 1.282-1.104.463-2.536.463-2.103 0-3.385-.88-1.284-.888-1.529-2.469l2.632-.253q.18.775.761 1.17.581.396 1.514.396.962 0 1.543-.395.59-.396.59-.977 0-.493-.381-.813-.372-.321-1.163-.492l-1.954-.41q-1.648-.344-2.439-1.156-.79-.82-.783-2.074-.007-1.058.575-1.834.589-.783 1.633-1.208 1.052-.433 2.423-.433 2.014 0 3.17.858 1.163.858 1.439 2.32m10.567-6.847V31h-2.766V15.727zm5.577 8.561V31h-2.7V19.546h2.58v1.946h.134a3.3 3.3 0 011.261-1.529q.872-.567 2.155-.567 1.185 0 2.066.507a3.4 3.4 0 011.372 1.47q.492.96.484 2.334V31h-2.699v-6.876q0-1.148-.597-1.797-.589-.65-1.633-.649-.708 0-1.26.313-.544.306-.858.888-.306.581-.305 1.41"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M272.5 47h263v63h-263z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M272.5 47h263v63h-263z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M284.793 56.527a2.5 2.5 0 00-.305-.636 1.94 1.94 0 00-1.047-.793 2.4 2.4 0 00-.73-.106q-.676 0-1.219.348-.543.347-.859 1.02-.313.667-.313 1.636 0 .972.317 1.645.317.671.867 1.02a2.3 2.3 0 001.254.347q.652 0 1.137-.266.488-.266.753-.75.27-.488.27-1.148l.312.058h-2.289v-.996h3.145v.91q0 1.008-.43 1.75a2.93 2.93 0 01-1.179 1.141q-.75.402-1.719.402-1.086 0-1.906-.5a3.4 3.4 0 01-1.274-1.418q-.457-.921-.457-2.187 0-.957.266-1.719t.746-1.293a3.3 3.3 0 011.137-.816q.656-.285 1.433-.285a3.7 3.7 0 011.207.191q.562.192 1 .543a3.1 3.1 0 011.121 1.902zM288.047 62h-1.281l2.879-8h1.394l2.879 8h-1.281l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zm5.471-3.828V54h6.192v1.04h-2.496V62h-1.203v-6.96zm7.56 6.961v-8h5.016v1.04H302.5v2.437h3.547v1.035H302.5v2.449h3.855V62z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M272.5 110h263v63h-263z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M272.5 110h263v63h-263z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M278.984 118.039V117h6.192v1.039h-2.496V125h-1.203v-6.961zm8.767-1.039v8h-1.207v-8zm1.758 0h1.465l2.547 6.219h.093l2.547-6.219h1.465v8h-1.148v-5.789h-.075l-2.359 5.777h-.953l-2.36-5.781h-.074V125h-1.148zm9.872 8v-8h5.015v1.039h-3.808v2.438h3.547v1.035h-3.547v2.449h3.855V125z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M272.5 173h263v63h-263z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M272.5 173h263v63h-263z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M286.328 184q0 1.282-.469 2.203a3.44 3.44 0 01-1.285 1.414q-.812.492-1.847.492-1.04 0-1.856-.492-.813-.496-1.281-1.418-.47-.921-.469-2.199 0-1.281.469-2.199.468-.922 1.281-1.414.816-.496 1.856-.496 1.035 0 1.847.496.816.492 1.285 1.414.47.918.469 2.199m-1.195 0q0-.976-.317-1.645-.312-.671-.859-1.015a2.23 2.23 0 00-1.23-.348 2.24 2.24 0 00-1.235.348q-.543.344-.859 1.015-.313.669-.313 1.645 0 .977.313 1.648.316.668.859 1.016.543.344 1.235.344.687 0 1.23-.344.547-.348.859-1.016.317-.671.317-1.648m3.907-4v8h-1.207v-8zm1.758 8v-8h1.207v6.961h3.625V188zm12.061-2.594h1.188l.836 1.09.394.484 1.332 1.739h-1.234l-.891-1.16-.304-.422zm4.008-1.406q0 1.282-.469 2.203-.468.918-1.285 1.414-.812.492-1.847.492-1.04 0-1.856-.492-.813-.496-1.281-1.418-.47-.921-.469-2.199 0-1.281.469-2.199.468-.922 1.281-1.414.816-.496 1.856-.496 1.035 0 1.847.496.817.492 1.285 1.414.47.918.469 2.199m-1.195 0q0-.976-.317-1.645-.312-.671-.859-1.015a2.23 2.23 0 00-1.23-.348 2.24 2.24 0 00-1.235.348q-.543.344-.859 1.015-.312.669-.313 1.645 0 .977.313 1.648.316.668.859 1.016.543.344 1.235.344.687 0 1.23-.344.547-.348.859-1.016.317-.671.317-1.648m7.845-4h1.211v5.262q0 .84-.395 1.488-.395.644-1.109 1.016-.716.367-1.676.367-.957 0-1.672-.367a2.76 2.76 0 01-1.109-1.016q-.395-.648-.395-1.488V180h1.207v5.164q0 .543.238.965.243.422.684.664.441.238 1.047.238.609 0 1.051-.238.445-.242.679-.664.239-.422.239-.965zm3.641 8h-1.281l2.879-8h1.394l2.879 8h-1.281l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zM330.642 180v8h-1.11l-4.066-5.867h-.074V188h-1.207v-8h1.117l4.07 5.875h.074V180zm1.366 1.039V180h6.191v1.039h-2.496V188H334.5v-6.961zm8.766-1.039v8h-1.207v-8zm1.364 1.039V180h6.191v1.039h-2.496V188h-1.203v-6.961zM349.08 180h1.371l2.09 3.637h.086l2.09-3.637h1.371l-2.902 4.859V188h-1.204v-3.141z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M272.5 236h263v63h-263z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M272.5 236h263v63h-263z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M279.379 251v-8h1.207v3.477h3.988V243h1.211v8h-1.211v-3.488h-3.988V251zm7.547-8h1.371l2.09 3.637h.086l2.09-3.637h1.371l-2.903 4.859V251h-1.203v-3.141zm10.737 8h-2.59v-8h2.672q1.176 0 2.02.48.843.477 1.293 1.372.453.89.453 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.313 1.383q-.859.48-2.078.48m-1.383-1.055h1.317q.914 0 1.519-.343.606-.348.906-1.004.301-.66.301-1.61 0-.941-.301-1.597a2.1 2.1 0 00-.886-.996q-.59-.34-1.465-.34h-1.391zm6.732 1.055v-8h2.851q.93 0 1.543.32.618.32.922.887.305.563.305 1.301 0 .733-.309 1.293-.304.555-.922.863-.613.309-1.543.309h-2.16v-1.039h2.051q.586 0 .953-.168.372-.168.543-.489a1.6 1.6 0 00.172-.769q0-.453-.176-.785a1.13 1.13 0 00-.543-.508q-.367-.18-.965-.18h-1.515V251zm3.949-3.609l1.977 3.609h-1.375l-1.938-3.609zm3.816 3.609h-1.281l2.879-8h1.395l2.878 8h-1.281l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zM322.948 243h1.211v5.262q0 .84-.394 1.488a2.76 2.76 0 01-1.11 1.016q-.714.367-1.676.367-.957 0-1.671-.367a2.76 2.76 0 01-1.11-1.016q-.394-.648-.394-1.488V243h1.207v5.164q0 .543.238.965.241.422.684.664.441.238 1.046.238.61 0 1.051-.238.446-.242.68-.664.238-.422.238-.965zm2.966 8v-8h1.207v6.961h3.625V251zm7.416-8v8h-1.207v-8zm8.402 2.602h-1.218a1.86 1.86 0 00-.731-1.192 2 2 0 00-.621-.312 2.4 2.4 0 00-.723-.106q-.69 0-1.238.348-.543.347-.859 1.019-.313.672-.313 1.641 0 .977.313 1.648.316.672.863 1.016t1.231.344q.378 0 .718-.102.343-.105.621-.308t.469-.496q.195-.297.27-.68l1.218.004a3.3 3.3 0 01-.378 1.086 3 3 0 01-.715.851q-.433.356-.993.551-.558.195-1.218.195-1.04 0-1.852-.492-.812-.496-1.281-1.418-.465-.921-.465-2.199 0-1.281.469-2.199.468-.922 1.281-1.414.813-.496 1.848-.496.636 0 1.187.183.555.18.996.531.442.348.731.852.29.5.39 1.145m5.808-.5a1.14 1.14 0 00-.516-.86q-.453-.308-1.14-.308-.492 0-.852.156a1.3 1.3 0 00-.558.422 1 1 0 00-.196.605q0 .285.133.492.137.207.356.348.222.137.476.231.254.089.488.148l.782.203q.383.094.785.254t.746.422.555.648q.214.387.214.926 0 .68-.351 1.207-.348.528-1.012.832-.66.305-1.597.305-.899 0-1.555-.285-.657-.285-1.027-.809a2.34 2.34 0 01-.411-1.25h1.211q.035.433.282.723.249.285.636.425.391.137.856.137.511 0 .91-.16.402-.163.633-.453.23-.293.23-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.769-.261l-.946-.258q-.96-.262-1.523-.77-.56-.507-.559-1.344a2 2 0 01.375-1.207q.375-.515 1.016-.8a3.5 3.5 0 011.445-.289q.813 0 1.434.285.625.285.984.785.36.496.375 1.141z"}),(0,Al.jsx)(Vk,{fill:"#1D2838",fillOpacity:.4,d:"M272.5 299h263v63h-263z"}),(0,Al.jsx)(Vk,{stroke:"#415F82",d:"M272.5 299h263v63h-263z"}),(0,Al.jsx)(Vk,{fill:"#fff",d:"M279.379 314v-8h1.207v3.477h3.988V306h1.211v8h-1.211v-3.488h-3.988V314zm13.578-5.473a2.4 2.4 0 00-.305-.636 1.95 1.95 0 00-1.047-.793 2.4 2.4 0 00-.73-.106 2.2 2.2 0 00-1.219.348q-.543.348-.859 1.019-.312.669-.313 1.637 0 .973.317 1.645.317.671.867 1.019t1.254.348q.653 0 1.137-.266.487-.266.754-.75.269-.488.269-1.148l.313.058h-2.29v-.996h3.145v.91q0 1.008-.43 1.75a2.9 2.9 0 01-1.179 1.141q-.75.402-1.719.402-1.086 0-1.906-.5a3.4 3.4 0 01-1.274-1.418q-.457-.921-.457-2.187 0-.957.266-1.719t.746-1.293a3.25 3.25 0 011.137-.816q.656-.285 1.433-.285.649 0 1.207.191.563.192 1 .543a3.08 3.08 0 011.121 1.902zm7.189-.425a1.14 1.14 0 00-.516-.86q-.453-.308-1.141-.308-.492 0-.851.156-.36.152-.559.422a1 1 0 00-.195.605q0 .285.133.492.136.207.355.348.223.137.477.231.254.089.488.148l.781.203q.383.094.785.254.403.16.746.422.344.261.555.648.215.387.215.926 0 .68-.352 1.207-.347.528-1.011.832-.66.305-1.598.305-.898 0-1.555-.285t-1.027-.809a2.35 2.35 0 01-.41-1.25h1.211q.035.433.281.723.25.285.637.425.39.137.855.137.512 0 .91-.16.404-.163.633-.453.231-.293.231-.684a.84.84 0 00-.203-.582 1.5 1.5 0 00-.543-.375 5 5 0 00-.77-.261l-.945-.258q-.962-.262-1.524-.77-.558-.507-.558-1.344a2 2 0 01.375-1.207q.375-.515 1.015-.8a3.5 3.5 0 011.446-.289q.812 0 1.433.285.625.285.985.785.358.496.375 1.141zm8.216 5.898h-2.59v-8h2.672q1.176 0 2.02.48.843.477 1.293 1.372.453.89.453 2.136 0 1.25-.457 2.149a3.2 3.2 0 01-1.313 1.383q-.858.48-2.078.48m-1.383-1.055h1.317q.914 0 1.519-.343.606-.348.907-1.004.3-.66.3-1.61 0-.941-.3-1.597a2.12 2.12 0 00-.887-.996q-.59-.34-1.465-.34h-1.391zm7.01 1.055h-1.281l2.879-8h1.394l2.879 8h-1.281l-2.262-6.547h-.062zm.215-3.133h4.156v1.016h-4.156zm5.472-3.828V306h6.191v1.039h-2.496V314h-1.203v-6.961zm7.559 6.961v-8h5.016v1.039h-3.809v2.438h3.547v1.035h-3.547v2.449h3.856V314z"})]})})),SW={width:600,height:692};function EW({scratchpad:e}){return(0,Al.jsx)(mf.default.View,{children:(0,Al.jsx)(eI,{sx:{width:SW.width,height:SW.height,boxShadow:"Levitate",backgroundColor:"Background/500",borderWidth:1,borderColor:"Background/700"},children:(0,Al.jsx)(kW,{scratchpad:e})})})}function kW({scratchpad:e}){const t=(0,u.useMemo)((()=>{switch(e.template){case"draw:ATIS":return[vW,gW];case"draw:PIREP":return[vW,xW];case"draw:times":return[vW,CW];case"draw:takeoffLandingData":return[vW,wW];case"draw:linedPaper":return[AW];case"draw:checkeredPaper":return[vW];case"draw:CRAFT":return[AW,yW];case"draw:holdingClearance":return[vW,bW]}return[]}),[e.template]);return 0===t.length?null:(0,Al.jsx)(Al.Fragment,{children:t.map(((e,t)=>(0,Al.jsx)(eI,{sx:{position:"absolute",left:0,top:0,right:0,bottom:0},children:(0,Al.jsx)(e,{})},t)))})}const TW=mf.default.createAnimatedComponent(eI),IW=mf.default.createAnimatedComponent(aN),OW={code:"function TextViewTsx1(){const{horizontalPadding}=this.__closure;return{left:horizontalPadding.value,right:horizontalPadding.value};}"},RW={code:"function TextViewTsx2(){const{horizontalPadding}=this.__closure;return{paddingLeft:horizontalPadding.value+16,paddingRight:horizontalPadding.value+16};}"};function MW({scratchpad:e}){const{isKeyboardVisible:t,keyboardHeight:n}=function(){const[e,t]=(0,u.useState)(!1),[n,r]=(0,u.useState)(0);return(0,u.useEffect)((()=>{const e=Sa.A.addListener("keyboardDidShow",(e=>{t(!0),r(e.endCoordinates.height)})),n=Sa.A.addListener("keyboardDidHide",(()=>{t(!1),r(0)}));return()=>{e.remove(),n.remove()}}),[]),{isKeyboardVisible:e,keyboardHeight:n}}(),{value:r,size:i}=e.data[0]?.props??{value:"",color:"White",size:11},[o,a]=(0,u.useState)(r),s=gC(),{mutateAsync:l}=RL(),c=(0,mf.useSharedValue)(0),h=(0,mf.useAnimatedStyle)(function(){const e=()=>({left:c.value,right:c.value});return e.__closure={horizontalPadding:c},e.__workletHash=0xb637f42f6ef,e.__initData=OW,e}()),d=(0,mf.useAnimatedStyle)(function(){const e=()=>({paddingLeft:c.value+16,paddingRight:c.value+16});return e.__closure={horizontalPadding:c},e.__workletHash=0xc718875ca2c,e.__initData=RW,e}());(0,u.useEffect)((()=>{a(r)}),[r]);const f=(0,u.useRef)(nH()((async(e,t)=>{const{color:n,size:r}=e.data[0]?.props??{color:"White",size:11};await l({id:e.id??"",data:[{type:"text",props:{color:n,size:r,value:t}}]},{onSuccess:e=>{s.setQueryData(["scratchpad",e.id],e)}})}),1e3));return(0,Al.jsxs)(eI,{sx:{width:"full",height:"full",flex:1},children:[(0,Al.jsx)(TW,{style:[{position:"absolute",top:16,bottom:16},h],sx:{backgroundColor:"Background/500",borderColor:"Background/700",borderWidth:1,boxShadow:"Levitate"}}),(0,Al.jsx)(IW,{onLayout:({nativeEvent:{layout:e}})=>{c.value=Math.max((e.width-600)/2,0)},style:d,sx:{my:16,zIndex:1,flex:1,color:"White",fontWeight:"400",textAlignVertical:"top",pt:64,pb:!t||"android"!==Da.OS&&"ios"!==Da.OS?32:n,fontSize:i,lineHeight:1.3*i,height:"100%"},multiline:!0,value:o,onChangeText:async t=>{a(t),await f.current(e,t)}})]})}function PW({viewerObjectType:e,viewerObject:t,state:n,layoutReady:r,annotationIsActive:i,annotateMode:o,forceMove:a,viewerArea:s,animatedWrapperStyle:l,valuesForAnnotationOverlay:c,onWheel:h}){const d=(0,u.useRef)(null);return pW(h,d),(0,Al.jsxs)(eI,{ref:d,sx:{flex:1},children:["scratchpad"===e&&gU(t)&&pU(t)&&(0,Al.jsx)(MW,{scratchpad:t}),"scratchpad"===e&&gU(t)&&mU(t)&&(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsx)(mf.default.View,{ref:s,style:[l,{position:"absolute"}],children:(0,Al.jsx)(EW,{scratchpad:t,state:n,layoutReady:r,annotationIsActive:i,annotateMode:!1})}),r&&(0,Al.jsx)(fW,{type:"scratchpad",scratchpad:t,scale:n.scale,rotation:n.rotation,enabled:o&&!a,objectInfo:c,isActive:i},t.id)]})]})}function DW({children:e,gestureCharts:t}){const n=Da.select({web:!0,default:!1});return null===t?n?(0,Al.jsx)("div",{className:"non-scaled-wrapper",children:(0,Al.jsx)(eI,{sx:{flex:1},children:e})}):(0,Al.jsx)(eI,{sx:{flex:1},children:e}):n?(0,Al.jsx)("div",{className:"non-scaled-wrapper",children:(0,Al.jsx)(Bi,{gesture:t,children:e})}):(0,Al.jsx)(Bi,{gesture:t,children:e})}const jW=()=>{const e=WC(RU),t=WC(OU);return VP(["latest-traffic-report"],(()=>t?.sub?TU(t.sub):null),{refetchInterval:1e3,enabled:Boolean(e&&t)})};var BW=6371008.8,LW={centimeters:637100880,centimetres:637100880,degrees:360/(2*Math.PI),feet:20902260.511392,inches:39.37*BW,kilometers:6371.0088,kilometres:6371.0088,meters:BW,metres:BW,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:BW/1852,radians:1,yards:6967335.223679999};function FW(e,t,n={}){const r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function NW(e,t,n={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!WW(e[0])||!WW(e[1]))throw new Error("coordinates must contain numbers");return FW({type:"Point",coordinates:e},t,n)}function _W(e,t,n={}){for(const t of e){if(t.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(t[t.length-1].length!==t[0].length)throw new Error("First and last Position are not equivalent.");for(let e=0;ec==u>-c?(o=c,c=t[++h]):(o=u,u=r[++d]);let f=0;if(hc==u>-c?(a=c+o,s=o-(a-c),c=t[++h]):(a=u+o,s=o-(a-u),u=r[++d]),o=a,0!==s&&(i[f++]=s);hc==u>-c?(a=o+c,l=a-o,s=o-(a-l)+(c-l),c=t[++h]):(a=o+u,l=a-o,s=o-(a-l)+(u-l),u=r[++d]),o=a,0!==s&&(i[f++]=s);for(;h=33306690738754716e-32*c?l:-function(e,t,n,r,i,o,a){let s,l,c,u,h,d,f,p,m,g,y,v,b,A,x,w,C,S;const E=e-i,k=n-i,T=t-o,I=r-o;A=E*I,d=QW*E,f=d-(d-E),p=E-f,d=QW*I,m=d-(d-I),g=I-m,x=p*g-(A-f*m-p*m-f*g),w=T*k,d=QW*T,f=d-(d-T),p=T-f,d=QW*k,m=d-(d-k),g=k-m,C=p*g-(w-f*m-p*m-f*g),y=x-C,h=x-y,ZW[0]=x-(y+h)+(h-C),v=A+y,h=v-A,b=A-(v-h)+(y-h),y=b-w,h=b-y,ZW[1]=b-(y+h)+(h-w),S=v+y,h=S-v,ZW[2]=v-(S-h)+(y-h),ZW[3]=S;let O=function(e,t){let n=t[0];for(let e=1;e<4;e++)n+=t[e];return n}(0,ZW),R=22204460492503146e-32*a;if(O>=R||-O>=R)return O;if(h=e-E,s=e-(E+h)+(h-i),h=n-k,c=n-(k+h)+(h-i),h=t-T,l=t-(T+h)+(h-o),h=r-I,u=r-(I+h)+(h-o),0===s&&0===l&&0===c&&0===u)return O;if(R=11093356479670487e-47*a+33306690738754706e-32*Math.abs(O),O+=E*u+I*s-(T*c+k*l),O>=R||-O>=R)return O;A=s*I,d=QW*s,f=d-(d-s),p=s-f,d=QW*I,m=d-(d-I),g=I-m,x=p*g-(A-f*m-p*m-f*g),w=l*k,d=QW*l,f=d-(d-l),p=l-f,d=QW*k,m=d-(d-k),g=k-m,C=p*g-(w-f*m-p*m-f*g),y=x-C,h=x-y,tQ[0]=x-(y+h)+(h-C),v=A+y,h=v-A,b=A-(v-h)+(y-h),y=b-w,h=b-y,tQ[1]=b-(y+h)+(h-w),S=v+y,h=S-v,tQ[2]=v-(S-h)+(y-h),tQ[3]=S;const M=XW(4,ZW,4,tQ,KW);A=E*u,d=QW*E,f=d-(d-E),p=E-f,d=QW*u,m=d-(d-u),g=u-m,x=p*g-(A-f*m-p*m-f*g),w=T*c,d=QW*T,f=d-(d-T),p=T-f,d=QW*c,m=d-(d-c),g=c-m,C=p*g-(w-f*m-p*m-f*g),y=x-C,h=x-y,tQ[0]=x-(y+h)+(h-C),v=A+y,h=v-A,b=A-(v-h)+(y-h),y=b-w,h=b-y,tQ[1]=b-(y+h)+(h-w),S=v+y,h=S-v,tQ[2]=v-(S-h)+(y-h),tQ[3]=S;const P=XW(M,KW,4,tQ,$W);A=s*u,d=QW*s,f=d-(d-s),p=s-f,d=QW*u,m=d-(d-u),g=u-m,x=p*g-(A-f*m-p*m-f*g),w=l*c,d=QW*l,f=d-(d-l),p=l-f,d=QW*c,m=d-(d-c),g=c-m,C=p*g-(w-f*m-p*m-f*g),y=x-C,h=x-y,tQ[0]=x-(y+h)+(h-C),v=A+y,h=v-A,b=A-(v-h)+(y-h),y=b-w,h=b-y,tQ[1]=b-(y+h)+(h-w),S=v+y,h=S-v,tQ[2]=v-(S-h)+(y-h),tQ[3]=S;const D=XW(P,$W,4,tQ,eQ);return eQ[D-1]}(e,t,n,r,i,o,c)}function rQ(e,t){var n,r,i,o,a,s,l,c,u,h=0,d=e[0],f=e[1],p=t.length;for(n=0;n=0||o<=0&&s>=0)return 0}else if(l>=0&&a<=0||l<=0&&a>=0){if(0===(i=nQ(o,s,a,l,0,0)))return 0;(i>0&&l>0&&a<=0||i<0&&l<=0&&a>0)&&h++}c=u,a=l,o=s}}return h%2!=0}function iQ(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return[...e.geometry.coordinates];if("Point"===e.type)return[...e.coordinates]}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return[...e];throw new Error("coord must be GeoJSON Point or an Array of numbers")}function oQ(e){return"Feature"===e.type?e.geometry:e}JW(4),JW(4),JW(4),JW(4),JW(4),JW(4),JW(4),JW(4),JW(4),JW(8),JW(8),JW(8),JW(4),JW(8),JW(8),JW(8),JW(12),JW(192),JW(192),JW(4),JW(4),JW(4),JW(4),JW(4),JW(4),JW(4),JW(4),JW(8),JW(8),JW(8),JW(8),JW(8),JW(8),JW(8),JW(8),JW(8),JW(4),JW(4),JW(4),JW(8),JW(16),JW(16),JW(16),JW(32),JW(32),JW(48),JW(64),JW(1152),JW(1152),JW(4),JW(4),JW(4),JW(4),JW(4),JW(4),JW(4),JW(4),JW(4),JW(4),JW(24),JW(24),JW(24),JW(24),JW(24),JW(24),JW(24),JW(24),JW(24),JW(24),JW(1152),JW(1152),JW(1152),JW(1152),JW(1152),JW(2304),JW(2304),JW(3456),JW(5760),JW(8),JW(8),JW(8),JW(16),JW(24),JW(48),JW(48),JW(96),JW(192),JW(384),JW(384),JW(384),JW(768),JW(96),JW(96),JW(96),JW(1152);var aQ=function(e,t,n={}){if(!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");const r=iQ(e),i=oQ(t),o=i.type,a=t.bbox;let s=i.coordinates;if(a&&!1===function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}(r,a))return!1;"Polygon"===o&&(s=[s]);let l=!1;for(var c=0;ct.id===e.id)),s=(0,u.useCallback)((()=>{if(!o.current||!r||!a)return;const e=t.findIndex((e=>e.chartId===o.current?.id)),i=[...t];e>-1?i.splice(e,1,Object.assign({},r)):i.push(Object.assign({},r)),n(i)}),[t,r,n,a]);(0,u.useEffect)((()=>{o.current&&e?.id!==o.current.id&&s(),o.current=e}),[e?.id])}("chart"===i?r:null);const v=WC(eF),b=(0,u.useMemo)((()=>"chart"===i&&void 0!==v.pinboard?.charts.find((e=>e.id===r.id))),[v.pinboard?.charts,r.id,i]),A=(0,u.useCallback)(function(){const i=function(i){i&&((0,mf.runOnJS)(f)(null),p.current=d.find((e=>e.chartId===r.id)),m.value!==r.id?e(p.current):n.scale.value<=n.minimumZoomScale.value&&t(),(0,mf.runOnJS)(h)(i),(0,mf.runOnJS)(l)(!1),m.value=r.id??"")};return i.__closure={runOnJS:mf.runOnJS,setChartTransformation:f,chartTransformationRef:p,chartsTransformations:d,viewerObject:r,chartId:m,setImageStartValues:e,state:n,alignChart:t,setChartUrl:h,setPreparingChart:l},i.__workletHash=5730235543707,i.__initData=uQ,i}(),[f,d,m,r.id,n.scale,n.minimumZoomScale,e,t]);(0,u.useEffect)((()=>{if("chart"!==i||"success"!==g||!y||!o)return;l(!0);const e=new FileReader;e&&(e.readAsDataURL(y),e.onload=()=>{(0,mf.runOnUI)(A)(e.result.replace("data:application/octet-stream;","data:image/png;"))})}),[g,y,o,i]);const x=(0,u.useCallback)(nH()((()=>{if("success"!==g||s||!o||!b)return;const[e,t]=pH(n.rotation.value,r.width,r.height,n.viewWidth.value,n.scale.value),[i,a]=gH(n.rotation.value,r.width,r.height,n.viewHeight.value,n.scale.value);f({chartId:m.value,rotation:n.rotation.value,scale:n.scale.value,x:dH(n.translationX.value,e,t),y:dH(n.translationY.value,i,a)})}),300),[r.id,f]),{data:w}=jW(),[C,S]=(0,u.useState)(null);return(0,u.useEffect)((()=>{if("chart"!==i||!w||!y||"success"!==g)return void S(null);const e=function(e,t){if(!jU(t)||!e.is_georeferenced)return{x:-9999,y:-9999};const n={lat:t.aircraft.position.latitude,lng:t.aircraft.position.longitude},r=e.bounding_boxes.planview.latlng,i=e.bounding_boxes.planview.pixels;if(!aQ(NW([n.lng,n.lat]),function(e,t={}){const n=Number(e[0]),r=Number(e[1]),i=Number(e[2]),o=Number(e[3]);if(6===e.length)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");const a=[n,r];return _W([[a,[i,r],[i,o],[n,o],a]],t.properties,{bbox:e,id:t.id})}([r.lng1,r.lat1,r.lng2,r.lat2])))return{x:-9999,y:-9999};const[o,a]=[lQ(n.lng),cQ(n.lat)],[s,l]=[lQ(r.lng1),cQ(r.lat1)],[c,u]=[lQ(r.lng2),cQ(r.lat2)],h=(a-l)/(u-l),d=(o-s)/(c-s)*(i.x2-i.x1)+i.x1,f=h*(i.y2-i.y1)+i.y1;for(const t of e.bounding_boxes.insets)if(d>=t.pixels.x1&&d<=t.pixels.x2&&f>=t.pixels.y2&&f<=t.pixels.y1)return{x:-9999,y:-9999};return{x:d,y:f}}(r,w);S(Object.assign({},e,{heading:w?.aircraft?.status?.true_heading}))}),[w,y,g,i,r]),{chartUrl:c,updateChartTransformationState:x,preparingChart:s,trafficPosition:C,chartLoadingStatus:g}}const dQ={code:"function UnifiedViewerScreenTsx1(){const{state}=this.__closure;return(state.translationX.value+state.translationY.value+state.rotation.value)*state.scale.value;}"},fQ={code:"function UnifiedViewerScreenTsx2(result,previous){const{runOnJS,updateViewerObjectTransformationState}=this.__closure;if(result!==previous){runOnJS(updateViewerObjectTransformationState)();}}"},pQ={code:'function UnifiedViewerScreenTsx3(){const{state}=this.__closure;return state.viewWidth.value+":"+state.viewHeight.value;}'},mQ={code:"function UnifiedViewerScreenTsx4(result,previous){const{isLoading,onViewChange}=this.__closure;if(result!==previous&&!isLoading){onViewChange();}}"},gQ={code:'function UnifiedViewerScreenTsx5(){const{state,Platform}=this.__closure;return{transform:[{translateX:state.translationX.value},{translateY:state.translationY.value},{scale:state.scale.value},{rotate:state.rotation.value+"deg"}],...(Platform.OS==="web"?{cursor:state.isPanning.value?"grabbing":"grab"}:{})};}'},yQ={code:"function UnifiedViewerScreenTsx6(){const{state}=this.__closure;return 1/(state.scale.value||1);}"},vQ={code:"function UnifiedViewerScreenTsx7(){const{viewerObjectDimensions,state}=this.__closure;return{offsetX:(viewerObjectDimensions.width-viewerObjectDimensions.width*state.scale.value)/2+state.translationX.value,offsetY:(viewerObjectDimensions.height-viewerObjectDimensions.height*state.scale.value)/2+state.translationY.value,scale:state.scale.value,rotation:state.rotation.value,width:viewerObjectDimensions.width,height:viewerObjectDimensions.height};}"};function bQ({viewerObject:e,viewerObjectType:t}){const r=pF(),[i,o]=(0,u.useState)("scratchpad"===t),a=(0,mf.useSharedValue)(!0),[s,l]=(0,u.useState)(!1),c=function({viewerObject:e,viewerObjectType:t}){const n=(0,mf.useSharedValue)(1),r=(0,mf.useSharedValue)(0),i=(0,mf.useSharedValue)(1),o=(0,mf.useSharedValue)(5),a=(0,mf.useSharedValue)(0),s=(0,mf.useSharedValue)(0),l=(0,mf.useSharedValue)(0),c=(0,mf.useSharedValue)(0),h=(0,mf.useSharedValue)(!1);return(0,u.useMemo)((()=>Object.assign({},{viewerObject:e,viewerObjectType:t},{scale:n,rotation:r,minimumZoomScale:i,maximumZoomScale:o,viewWidth:a,viewHeight:s,translationX:l,translationY:c,isPanning:h})),[e,t,n,r,i,o,a,s,l,c,h])}({viewerObject:e,viewerObjectType:t}),{zoom:h,fitWidth:d,fitHeight:f,rotate:p,wheelZoom:m,alignChart:g,setImageStartValues:y,onViewChange:v}=function({viewerObject:e,viewerObjectType:t,scale:n,rotation:r,minimumZoomScale:i,maximumZoomScale:o,viewWidth:a,viewHeight:s,translationX:l,translationY:c}){const h=WC($L),d=qL([!0,!1]),f=(0,u.useMemo)((()=>h&&d),[h,d]),p=(0,u.useCallback)(function(){const t=function(){if(l.value=-1*(e.width-a.value)/2,f&&n.value<=i.value){const[t]=gH(r.value,e.width,e.height,s.value,n.value);c.value=t}else c.value=-1*(e.height-s.value)/2};return t.__closure={translationX:l,viewerObject:e,viewWidth:a,isBottomSheetOpen:f,scale:n,minimumZoomScale:i,getChartYLimits:gH,rotation:r,viewHeight:s,translationY:c},t.__workletHash=0x92fa494c289,t.__initData=zH,t}(),[e.height,e.width,f,i,r,n,l,c,s,a]);(0,u.useEffect)((()=>{p()}),[f]);const m=(0,u.useCallback)(function(){const t=function(t,n,i){const[o,u]=pH(r.value,e.width,e.height,a.value,i),[h,d]=gH(r.value,e.width,e.height,s.value,i);l.value=dH(t,o,u),c.value=dH(n,h,d)};return t.__closure={getChartXLimits:pH,rotation:r,viewerObject:e,viewWidth:a,getChartYLimits:gH,viewHeight:s,translationX:l,limitValue:dH,translationY:c},t.__workletHash=689733095122,t.__initData=VH,t}(),[e.height,e.width,r,l,c,s,a]),g=(0,u.useCallback)(function(){const n=function(){if("chart"===t){const t=r.value%180!=0;i.value=uH(t?e.height:e.width,t?e.width:e.height,a.value,s.value)}else{const t=r.value%180!=0,n=uH(t?e.height:e.width,t?e.width:e.height,a.value,s.value);i.value=Math.min(1,n)}};return n.__closure={viewerObjectType:t,rotation:r,minimumZoomScale:i,getCalculatedScale:uH,viewerObject:e,viewWidth:a,viewHeight:s},n.__workletHash=8502106375075,n.__initData=UH,n}(),[t,r.value,i,e.height,e.width,a.value,s.value]);return(0,u.useMemo)((()=>({zoom:function(){const e=function(e){const t="in"===e?1.15*n.value:n.value/1.15,r=i.value;n.value=dH(t,r,o.value),m(l.value,c.value,n.value)};return e.__closure={scale:n,minimumZoomScale:i,limitValue:dH,maximumZoomScale:o,setLimitedXYValues:m,translationX:l,translationY:c},e.__workletHash=8025587783445,e.__initData=HH,e}(),fitWidth:function(){const t=function(){r.value%180==0?n.value=a.value/e.width:n.value=a.value/e.height,g(),n.value0?1.15*n.value:n.value/1.15,p=i.value;n.value=dH(f,p,o.value);const g=(n.value-s)/2,y=r.value%180==0?e.height:e.width,v=r.value%180==0?e.width:e.height,b=l.value+-h*g*2+v*g,A=c.value+-d*g*2+y*g;m(b,A,n.value)};return t.__closure={scale:n,minimumZoomScale:i,limitValue:dH,maximumZoomScale:o,rotation:r,viewerObject:e,translationX:l,translationY:c,setLimitedXYValues:m},t.__workletHash=0xd9d5f982f8f,t.__initData=WH,t}(),setImageStartValues:function(){const o=function(o){o?(n.value=o.scale,l.value=o.x,c.value=o.y,r.value=o.rotation,g()):(r.value=0,n.value=(()=>{if("chart"===t)return uH(e.width,e.height,a.value,s.value);{const t=uH(e.width,e.height,a.value,s.value);return Math.min(1,t)}})(),i.value=n.value,p())};return o.__closure={rotation:r,scale:n,viewerObjectType:t,getCalculatedScale:uH,viewerObject:e,viewWidth:a,viewHeight:s,minimumZoomScale:i,alignChart:p,translationX:l,translationY:c,setMinZoomScale:g},o.__workletHash=3595743623213,o.__initData=QH,o}(),onViewChange:function(){const e=function(){g(),n.valueFB(e,!0))),o=`data:image/png;base64,${sk.hp.from(await i.arrayBuffer()).toString("base64")}`,a=await async function(e){const t=document.createElement("canvas"),n=t.getContext("2d");return n?new Promise((r=>{const i=new Image;i.src=e,i.onload=function(){i.width>i.height?(t.height=i.width,t.width=i.height,n.rotate(-90*Math.PI/180),n.translate(-t.height,0),n.drawImage(i,0,0),r(t.toDataURL("image/png",100))):r(e)}})):e}(o),s=new Blob([`\n \n \n \n Navigraph Charts\n \n \n
\n
\n
\n
\n Chart linked to Navigraph account ${t.preferred_username}\n
\n
\n \n `],{type:"text/html"}),l=URL.createObjectURL(s);window.electronAPI.printChart(l).catch((e=>{const t=e instanceof Error?e.message:"";r(`Failed to print chart. ${t}`.trim()),HS.err(e)})).finally((()=>URL.revokeObjectURL(l)))}}("chart"===t?e:null),D=(0,u.useRef)(null),j=(0,u.useRef)(null),B=(0,u.useRef)(null),L="scratchpad"===t?!gU(e):"loading"===C||x,F=(0,u.useMemo)((()=>({width:M.width,height:M.height})),[M]),_=(0,u.useCallback)((e=>{const{width:n,height:r}=e.nativeEvent.layout;0!==n&&0!==r&&(c.viewHeight.value=r,c.viewWidth.value=n,s||(l(!0),"scratchpad"===t&&(0,mf.runOnUI)(g)()))}),[c.viewHeight,c.viewWidth,s,t,g]);(0,u.useEffect)((()=>{"scratchpad"===t&&o(!0)}),[t,e.id]),(0,u.useEffect)((()=>{let e;function t(t){"keydown"===t.type&&" "===t.key?(E(!0),clearTimeout(e),e=setTimeout((()=>E(!1)),500)):"keyup"===t.type&&" "===t.key&&(clearTimeout(e),E(!1))}return document.addEventListener("keydown",t),document.addEventListener("keyup",t),()=>{clearTimeout(e),document.removeEventListener("keydown",t),document.removeEventListener("keyup",t)}}),[]);const z=function({viewerObject:e,viewWidth:t,viewHeight:r,translationX:i,translationY:o,scale:a,minimumZoomScale:s,maximumZoomScale:l,rotation:c,isPanning:h},d,f){const p=WC(OF),m=(0,mf.useDerivedValue)(function(){const n=function(){return{x:pH(c.value,e.width,e.height,t.value,a.value),y:gH(c.value,e.width,e.height,r.value,a.value),scale:[s.value,l.value]}};return n.__closure={getChartXLimits:pH,rotation:c,viewerObject:e,viewWidth:t,scale:a,getChartYLimits:gH,viewHeight:r,minimumZoomScale:s,maximumZoomScale:l},n.__workletHash=0xa97d0489236,n.__initData=DH,n}(),[c.value,e.width,e.height,t.value,a.value,r.value,s.value,l.value]);return(0,u.useMemo)((()=>{const t=to().averageTouches(!0).onChange(function(){const e=function(e){i.value=dH(i.value+e.changeX,...m.value.x),o.value=dH(o.value+e.changeY,...m.value.y),h.value=!0};return e.__closure={translationX:i,limitValue:dH,chartLimits:m,translationY:o,isPanning:h},e.__workletHash=828322066252,e.__initData=BH,e}()).onEnd(function(){const e=function(){h.value=!1};return e.__closure={isPanning:h},e.__workletHash=766148323286,e.__initData=jH,e}()),r=no().onChange(function(){const t=function(t){const n=dH(a.value*t.scaleChange,...m.value.scale)/a.value,r=IH(PH(n,n,i.value+e.width/2,o.value+e.height/2),[t.focalX,t.focalY]),s=IH(wH(t.focalX-r[0],t.focalY-r[1]),[i.value,o.value]);i.value=s[0],o.value=s[1],a.value=a.value*n};return t.__closure={limitValue:dH,scale:a,chartLimits:m,tm:n,translationX:i,viewerObject:e,translationY:o},t.__workletHash=0xc2a24532604,t.__initData=FH,t}()).onEnd(function(){const e=function(e,t){t&&(i.value=dH(i.value,...m.value.x),o.value=dH(o.value,...m.value.y))};return e.__closure={translationX:i,limitValue:dH,chartLimits:m,translationY:o},e.__workletHash=7156414753415,e.__initData=LH,e}()),s=eo().numberOfTaps(2).onEnd(function(){const e=function(e){e&&(a.value=dH(1.3*a.value,...m.value.scale))};return e.__closure={scale:a,limitValue:dH,chartLimits:m},e.__workletHash=0xb93a605899c,e.__initData=NH,e}()),l=ao().effect(xi.NONE).onBegin(function(){const e=function(e){e.pointerType===N.STYLUS&&(0,mf.runOnJS)(f)()};return e.__closure={PointerType:N,runOnJS:mf.runOnJS,enableAnnotationMode:f},e.__workletHash=0xaf2714117f4,e.__initData=_H,e}());if(!d&&"panel"===Da.OS)return null;if(!d)return lo(r,t.minPointers(p?1:2));const c=["panel"!==Da.OS?l:null,s,lo(r,t)].filter((e=>null!==e));return so(...c)}),[d,i,m.value.x,m.value.y,m.value.scale,o,h,a,e.width,e.height,f,p])}(c,!i||S,(()=>o(!0))),V=(0,u.useCallback)((()=>{"chart"===t&&A()}),[A,t]);(0,mf.useAnimatedReaction)(function(){const e=function(){return(c.translationX.value+c.translationY.value+c.rotation.value)*c.scale.value};return e.__closure={state:c},e.__workletHash=3693572693114,e.__initData=dQ,e}(),function(){const e=function(e,t){e!==t&&(0,mf.runOnJS)(V)()};return e.__closure={runOnJS:mf.runOnJS,updateViewerObjectTransformationState:V},e.__workletHash=0xbaab6382c2b,e.__initData=fQ,e}()),(0,mf.useAnimatedReaction)(function(){const e=function(){return`${c.viewWidth.value}:${c.viewHeight.value}`};return e.__closure={state:c},e.__workletHash=0xb20cacd651d,e.__initData=pQ,e}(),function(){const e=function(e,t){e===t||L||v()};return e.__closure={isLoading:L,onViewChange:v},e.__workletHash=8713871649197,e.__initData=mQ,e}());const U=(0,u.useCallback)((e=>{e.preventDefault(),a.value||m(e,j.current)}),[m,a]),H=(0,u.useMemo)((()=>PF()(U,20)),[U]),q=(0,mf.useAnimatedStyle)(function(){const e=function(){return Object.assign({transform:[{translateX:c.translationX.value},{translateY:c.translationY.value},{scale:c.scale.value},{rotate:`${c.rotation.value}deg`}]},{cursor:c.isPanning.value?"grabbing":"grab"})};return e.__closure={state:c,Platform:aa.A},e.__workletHash=0x9ed426526d7,e.__initData=gQ,e}(),[c.isPanning,c.rotation,c.scale,c.translationX,c.translationY]),G=(0,mf.useDerivedValue)(function(){const e=()=>1/(c.scale.value||1);return e.__closure={state:c},e.__workletHash=8316695056273,e.__initData=yQ,e}(),[c.scale]);(0,u.useEffect)((()=>{const e=B.current;if(e){function t(e){e.preventDefault()}return e.addEventListener("touchmove",t),e.addEventListener("contextmenu",t),function(){e.removeEventListener("touchmove",t),e.removeEventListener("contextmenu",t)}}}),[]);const Y=(0,mf.useDerivedValue)(function(){const e=()=>({offsetX:(F.width-F.width*c.scale.value)/2+c.translationX.value,offsetY:(F.height-F.height*c.scale.value)/2+c.translationY.value,scale:c.scale.value,rotation:c.rotation.value,width:F.width,height:F.height});return e.__closure={viewerObjectDimensions:F,state:c},e.__workletHash=0xd773dfff810,e.__initData=vQ,e}(),[F.height,F.width,c.rotation,c.scale,c.translationX,c.translationY]);return(0,u.useEffect)((()=>{"scratchpad"===t&&(0,mf.runOnUI)(y)(void 0)}),[t,e.id,y]),(0,Al.jsxs)(eI,{sx:{position:"absolute",top:0,right:0,bottom:0,left:0,flex:1,backgroundColor:"Background/700",pl:r.left},children:[(0,Al.jsx)(aH,{rotationCallback:e=>(0,mf.runOnUI)(p)(e),zoomInCallback:()=>(0,mf.runOnUI)(h)("in"),zoomOutCallback:()=>(0,mf.runOnUI)(h)("out"),fitWidthCallback:()=>(0,mf.runOnUI)(d)(),fitHeightCallback:()=>(0,mf.runOnUI)(f)(),closeCallback:()=>{"scratchpad"===t?O("ScratchpadViewer"):R(null)},printCallback:P,toggleAnnotationModeCallback:()=>{o((e=>!e))},isAnnotationMode:i,viewerObjectType:t,viewerObject:e}),(0,Al.jsx)(DW,{gestureCharts:z,children:(0,Al.jsxs)(mf.default.View,{ref:B,style:{flex:1,overflow:"hidden"},onLayout:_,children:[L&&(0,Al.jsx)(RF.A,{style:{position:"absolute",top:10,left:10}}),"scratchpad"===t&&(0,Al.jsx)(PW,{viewerArea:j,animatedWrapperStyle:q,viewerObject:e,viewerObjectType:t,state:c,layoutReady:s,annotationIsActive:a,annotateMode:i,forceMove:S,valuesForAnnotationOverlay:Y,onWheel:H}),"chart"===t&&(0,Al.jsx)(mW,{viewerArea:j,animatedWrapperStyle:q,preparingChart:x,chartUrl:b,viewerObjectDimensions:F,image:D,displayOwnship:I,trafficPosition:w,chartLoadingStatus:C,ownshipScale:G,mode:T,effectiveChart:M,screens:k,valuesForAnnotationOverlay:Y,state:c,annotateMode:i,forceMove:S,viewerObject:e,annotationIsActive:a,onWheel:H})]})})]})}function AQ(){const e=function(e){const t="string"==typeof e?function(e){const[t,n,r]=e.split("/");return{icao:t,indexNumber:n,version:void 0!==r&&""!==r?r:void 0}}(LB(e)):null,{data:n}=UL(t?.icao,t?.version);return(0,u.useMemo)((()=>{const r="string"!=typeof e&&null!==e?e:null;return null!==r?r:null===t||void 0===n?null:n?.find((e=>e.index_number===t.indexNumber))||null}),[e,t,n])}(WC(mF)),[t,n]=XC(gF),r=(0,u.useRef)(e),i=pF(),o=WC(yF),a=WC(eF),s=(0,u.useMemo)((()=>void 0!==a.pinboard?.charts.find((t=>t.id===e?.id))),[a.pinboard?.charts,e?.id]),l=(0,u.useCallback)((()=>{if(!r.current||!o||!s)return;const e=t.findIndex((e=>e.chartId===r.current?.id)),i=[...t];e>-1?i.splice(e,1,Object.assign({},o)):i.push(Object.assign({},o)),n(i)}),[t,o,n,s]);if((0,u.useEffect)((()=>{r.current&&e?.id!==r.current.id&&l(),r.current=e}),[e?.id]),!e)return null;const c={flex:1,backgroundColor:"Background/700",pl:i.left,position:"absolute",top:0,right:0,bottom:0,left:0};return(0,Al.jsx)(eI,{sx:c,children:(0,Al.jsx)(bQ,{viewerObjectType:"chart",viewerObject:e})})}function xQ(){const{close:e}=hX(),t=WC(eF),n=WC(jV),{data:r}=jL(n);return(0,u.useEffect)((()=>{(!t.pinboard||t.pinboard?.scratchpads&&!t.pinboard.scratchpads.find((e=>e.id===n)))&&e("ScratchpadViewer")}),[e,n,t.pinboard?.scratchpads,t.pinboard]),n?(0,Al.jsx)(bQ,{viewerObjectType:"scratchpad",viewerObject:Object.assign({id:n},r,SW)}):null}function wQ(e){return e.replace(/^(.+?)([-/][^\s]+)/,"$1").replace(/(.+?)([-/].+)$/,"$1")}async function CQ(){return(await jB.get("https://api.simbrief.com/v2/flightplans")).data}const SQ=(e,t)=>VP(["simbrief-flightplan",e,t],(()=>e?async function({requestId:e,keys:t}){return(await jB.get(`https://api.simbrief.com/v2/flightplans/${e}`,{params:{keys:t?.join(",")??""}})).data}({requestId:e,keys:t}):null),{enabled:Boolean(e)}),EQ=e=>VP(["simbrief-atis",e],(()=>async function(e){return(await jB.get("https://api.simbrief.com/v2/atis",{params:{icaos:e.join(","),enable_features:"sayintentions-atis"}})).data}(e)),{refetchInterval:3e5,staleTime:0,refetchOnMount:!0});function kQ(e){return(0,Al.jsxs)(eI,{sx:{alignItems:"center",p:"l",mx:"auto",flex:1},children:[(0,Al.jsx)(e.Icon,{size:140,color:UU.colors["Background/200"]}),(0,Al.jsx)(iI,{variant:"l",sx:{fontWeight:"600",textAlign:"center",my:"s"},children:e.title}),(0,Al.jsx)(iI,{variant:"m",sx:{fontWeight:"400",textAlign:"center"},children:e.description})]})}const TQ=["size","color"],IQ=u.memo((function(e){let{size:t=32,color:n="#fff"}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,TQ);const i=u.useMemo((()=>({fill:n})),[n]);return(0,Al.jsxs)(Wk,Object.assign({width:t,height:t,stroke:"none",fill:"none",viewBox:"0 0 32 32"},r,{children:[(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M26.2165 22.828C26.37 22.676 26.4468 22.496 26.4468 22.288C26.4468 22.072 26.37 21.888 26.2165 21.736L23.2341 18.772C23.8645 18.004 24.3454 17.164 24.6768 16.252C25.0082 15.34 25.1738 14.392 25.1738 13.408C25.1819 12.64 25.0809 11.892 24.8708 11.164C24.6606 10.436 24.3737 9.76 24.01 9.136C23.6463 8.512 23.2018 7.944 22.6764 7.432C22.151 6.92 21.5732 6.48 20.9427 6.112C20.3123 5.744 19.6334 5.46 18.906 5.26C18.1786 5.06 17.4229 4.96 16.6389 4.96C15.6367 4.96 14.6749 5.124 13.7535 5.452C12.8321 5.78 11.9875 6.256 11.2197 6.88L8.52827 4.228C8.3747 4.076 8.18881 4 7.97059 4C7.76045 4 7.57859 4.076 7.42503 4.228C7.27146 4.38 7.19468 4.56 7.19468 4.768C7.20276 4.88 7.22701 4.98 7.26742 5.068C7.30784 5.156 7.36441 5.24 7.43715 5.32C7.50989 5.4 7.58263 5.476 7.65538 5.548C7.72812 5.62 7.80086 5.688 7.8736 5.752C6.94413 6.832 6.23288 8.012 5.73986 9.292C5.24684 10.572 5.00033 11.92 5.00033 13.336C4.99225 14.408 5.13369 15.436 5.42465 16.42C5.71561 17.404 6.10761 18.324 6.60063 19.18C7.09365 20.036 7.69983 20.812 8.41916 21.508C9.13848 22.204 9.93055 22.8 10.7954 23.296C11.6602 23.792 12.5896 24.176 13.5838 24.448C14.5779 24.72 15.6165 24.856 16.6995 24.856V25.2698C16.6995 25.9294 16.1649 26.464 15.5053 26.464H15.0792C14.655 26.464 14.3112 26.8078 14.3112 27.232C14.3112 27.6562 14.655 28 15.0792 28H19.7504C20.1746 28 20.5184 27.6562 20.5184 27.232C20.5184 26.8078 20.1746 26.464 19.7504 26.464H19.3849C18.7588 26.464 18.2513 25.9565 18.2513 25.3305V24.748C19.3909 24.588 20.4699 24.28 21.4883 23.824C22.5067 23.368 23.4442 22.764 24.301 22.012C24.3818 22.084 24.4747 22.184 24.5798 22.312C24.6849 22.44 24.798 22.556 24.9193 22.66C25.0405 22.764 25.1658 22.856 25.2951 22.936C25.4244 23.016 25.5497 23.056 25.6709 23.056C25.881 23.056 26.0629 22.98 26.2165 22.828ZM9.93459 15.34C9.7487 14.7 9.65575 14.056 9.65575 13.408C9.65575 12.576 9.80528 11.76 10.1043 10.96C10.1054 10.9636 10.1066 10.9671 10.1077 10.9707C11.0901 8.30786 13.6507 6.40913 16.6547 6.40913C20.5075 6.40913 23.6308 9.53247 23.6308 13.3853C23.6308 17.2381 20.5075 20.3615 16.6547 20.3615C14.7887 20.3615 13.0939 19.6289 11.8421 18.4356C11.7915 18.3885 11.7416 18.3406 11.6925 18.292C11.2641 17.868 10.8964 17.392 10.5893 16.864L10.6001 16.8532C10.3262 16.3758 10.107 15.8631 9.95125 15.3234L9.93459 15.34ZM20.1305 22.708C19.007 23.116 17.8432 23.32 16.6389 23.32C15.7013 23.32 14.8042 23.2 13.9475 22.96C13.0907 22.72 12.2866 22.384 11.5349 21.952C10.7832 21.52 10.1043 21 9.49815 20.392C8.89197 19.784 8.36662 19.112 7.92209 18.376C7.47756 17.64 7.13811 16.848 6.90372 16C6.66933 15.152 6.55214 14.268 6.55214 13.348C6.56022 12.148 6.77036 10.992 7.18256 9.88C7.59476 8.768 8.19285 7.756 8.97684 6.844L10.1043 7.96C9.44965 8.736 8.95259 9.584 8.61313 10.504C8.27367 11.424 8.10395 12.392 8.10395 13.408C8.09586 14.176 8.19689 14.924 8.40703 15.652C8.61717 16.38 8.9041 17.056 9.2678 17.68C9.63151 18.304 10.076 18.872 10.6014 19.384C11.1267 19.896 11.7046 20.336 12.335 20.704C12.9655 21.072 13.6444 21.356 14.3718 21.556C15.0992 21.756 15.8549 21.856 16.6389 21.856C17.6654 21.848 18.6433 21.676 19.5728 21.34C20.5023 21.004 21.359 20.516 22.143 19.876L23.1977 20.92C22.2763 21.704 21.2539 22.3 20.1305 22.708Z"},i)),(0,Al.jsx)(Vk,Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M10.0037 15.7872L11.6623 14.1286C10.8802 12.9902 10.3308 11.8488 10.0497 10.8103C9.74472 11.6016 9.57755 12.4613 9.57755 13.36C9.57755 14.2126 9.72797 15.03 10.0037 15.7872ZM10.5871 17.0091C11.184 18.0019 12.0171 18.8366 13.0086 19.4354L14.8603 17.5837C14.4291 17.2317 14.003 16.8472 13.5879 16.4322C13.1729 16.0172 12.7884 15.5911 12.4364 15.1599L10.5871 17.0091ZM14.2285 20.0209C14.9896 20.2999 15.8119 20.4522 16.6698 20.4522C17.5726 20.4522 18.436 20.2835 19.2302 19.976C18.1863 19.6965 17.0374 19.1451 15.8915 18.3579L14.2285 20.0209ZM22.0761 17.9506C21.7909 18.2862 21.475 18.5948 21.1328 18.8722C20.6926 18.9558 20.0526 18.9202 19.169 18.6247C18.4368 18.38 17.6327 17.9814 16.8111 17.4383L20.6474 13.602C21.1905 14.4236 21.5891 15.2276 21.8339 15.9598C22.1354 16.8617 22.1663 17.5098 22.0761 17.9506ZM23.2086 16.1112C23.565 15.2652 23.762 14.3356 23.762 13.36C23.762 12.5022 23.6097 11.6799 23.3306 10.9187L21.567 12.6823C22.3769 13.8613 22.9373 15.0435 23.2086 16.1112ZM22.7452 9.69883C22.1464 8.70731 21.3117 7.87425 20.3189 7.27736L18.369 9.22726C18.8002 9.57925 19.2263 9.96375 19.6413 10.3788C20.0564 10.7938 20.4409 11.2199 20.7929 11.6511L22.7452 9.69883ZM19.0969 6.69398C18.3397 6.41822 17.5223 6.26779 16.6698 6.26779C15.6983 6.26779 14.7724 6.46313 13.9292 6.81668C14.9916 7.08997 16.1663 7.6483 17.3378 8.45311L19.0969 6.69398ZM11.1428 8.91528C11.4289 8.55997 11.7486 8.23282 12.097 7.93864C12.5371 7.85522 13.177 7.89092 14.0603 8.18622C14.7925 8.43101 15.5965 8.8296 16.4182 9.37271L12.5819 13.209C12.0388 12.3874 11.6402 11.5834 11.3954 10.8511C11.1062 9.98601 11.066 9.35441 11.1428 8.91528ZM19.8852 12.5588L15.7679 16.6761C15.3382 16.3314 14.9099 15.9488 14.4906 15.5295C14.0713 15.1102 13.6887 14.6819 13.3441 14.2522L17.4613 10.1349C17.8911 10.4796 18.3194 10.8622 18.7386 11.2815C19.1579 11.7008 19.5406 12.1291 19.8852 12.5588Z"},i))]}))})),OQ={code:"function MapImageWebTsx1(){const{availableWidth,width,height}=this.__closure;return{width:Math.min(availableWidth.value,width.value),height:height.value*(Math.min(availableWidth.value,width.value)/width.value)||0};}"};function RQ({uri:e,availableWidth:t}){const n=(0,mf.useSharedValue)(0),r=(0,mf.useSharedValue)(0),[i,o]=(0,u.useState)(!1),[a,s]=(0,u.useState)(!0);(0,u.useEffect)((()=>{zs.A.getSize(e,((e,t)=>{n.value=e,r.value=t,s(!1)}),(()=>{o(!0),s(!1)}))}),[r,e,n]);const l=(0,mf.useAnimatedStyle)(function(){const e=()=>({width:Math.min(t.value,n.value),height:r.value*(Math.min(t.value,n.value)/n.value)||0});return e.__closure={availableWidth:t,width:n,height:r},e.__workletHash=9575041489938,e.__initData=OQ,e}(),[n,r,t]);return i?(0,Al.jsx)(iI,{variant:"m",sx:{my:"s"},children:"Failed to load map. It might have expired."}):a?(0,Al.jsx)(e_,{sx:{my:"s"}}):(0,Al.jsx)(mf.default.Image,{source:{uri:e},style:l,onError:()=>o(!0)})}const MQ=["colors","locations","startPoint","endPoint"];function PQ(e){let{colors:t,locations:n,startPoint:r,endPoint:i}=e,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,MQ);const[{height:a,width:s},l]=u.useState({height:1,width:1}),c=u.useMemo((()=>function(e,t,n,r,i=1,o=1){const a=function(e,t){return e.map(((e,n)=>{const r=function(e,t=1){if(null==e)return;if("string"==typeof e&&(e=>"currentcolor"===e||"currentColor"===e||"inherit"===e||0===e.indexOf("var("))(e))return e;const n=(0,ho.A)(e);return"number"==typeof n?`rgba(${n>>16&255},${n>>8&255},${255&n},${((n>>24&255)/255*t).toFixed(2)})`:void 0}(e);return t&&t[n]?`${r} ${100*Math.max(0,Math.min(1,t[n]))}%`:r}))}(e,t),s=function(e,t,n,r){const[i,o]=(()=>{let e=[0,0];Array.isArray(n)&&(e=[null!=n[0]?n[0]:0,null!=n[1]?n[1]:0]);let t=[0,1];return Array.isArray(r)&&(t=[null!=r[0]?r[0]:0,null!=r[1]?r[1]:1]),[e,t]})();i[0]*=e,o[0]*=e,i[1]*=t,o[1]*=t;const a=o[1]-i[1],s=o[0]-i[0];return 90+180*Math.atan2(a,s)/Math.PI}(i,o,n,r);return`linear-gradient(${s}deg, ${a.join(", ")})`}(t,n,r,i,s,a)),[t,n,r,i,s,a]);return(0,Al.jsx)(pr.A,Object.assign({},o,{style:[o.style,{backgroundImage:c}],onLayout:e=>{const{width:t,height:n}=e.nativeEvent.layout;l((e=>t!==e.width||n!==e.height?{height:n,width:t}:e)),o.onLayout&&o.onLayout(e)}}))}const DQ=["colors","locations","start","end","dither"];class jQ extends u.Component{render(){const e=this.props,{colors:t,locations:n,start:r,end:i,dither:o}=e,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,DQ);let s=n;return n&&t.length!==n.length&&(console.warn("LinearGradient colors and locations props should be arrays of the same length"),s=n.slice(0,t.length)),(0,Al.jsx)(PQ,Object.assign({},a,{colors:t,dither:void 0,locations:s,startPoint:BQ(r),endPoint:BQ(i)}))}}function BQ(e){if(e){if(!Array.isArray(e)||2===e.length)return Array.isArray(e)?e:[e.x,e.y];console.warn("start and end props for LinearGradient must be of the format [x,y] or {x, y}")}}function LQ({boneColor:e,highlightColor:t,layout:n,containerSx:r}){return(0,Al.jsx)(eI,{sx:r,children:n.map(((n,r)=>(0,Al.jsx)(NQ,{layout:n,boneColor:e,highlightColor:t},r)))})}const FQ={code:"function SkeletonContentTsx1(){const{position}=this.__closure;return{left:position.value};}"};function NQ({layout:e,boneColor:t,highlightColor:n}){const{theme:r}=vf(),i=(0,mf.useSharedValue)("-100%");(0,u.useEffect)((()=>{i.value=(0,mf.withRepeat)((0,mf.withTiming)("100%",{duration:1200,easing:mf.Easing.bezier(.5,0,.25,1)}),-1,!1)}),[]);const o=(0,mf.useAnimatedStyle)(function(){const e=()=>({left:i.value});return e.__closure={position:i},e.__workletHash=0xee3db3221eb,e.__initData=FQ,e}(),[i]);return(0,Al.jsx)(eI,{sx:Object.assign({},e,{backgroundColor:t,overflow:"hidden",borderRadius:4}),children:(0,Al.jsx)(mf.default.View,{style:[{position:"absolute",width:"100%",height:"100%",left:"0%"},o],children:(0,Al.jsx)(jQ,{colors:[r.colors[t],r.colors[n],r.colors[t]],start:{x:0,y:0},end:{x:1,y:0},style:{flex:1}})})})}function _Q(){const{theme:e}=vf();return(0,Al.jsx)(Al.Fragment,{children:(0,Al.jsx)(LQ,{containerSx:{width:"75%",alignSelf:"center"},boneColor:"Background/300",highlightColor:"Background/200",layout:[{width:60,height:20,marginTop:17,marginBottom:14},{width:"full",height:12,marginBottom:15},{width:"full",height:14,marginBottom:5},{width:"full",height:14,marginBottom:5},{width:"full",height:14,marginBottom:16},{width:150,height:16,marginBottom:e.space.s},{width:"full",height:14,marginBottom:5},{width:"full",height:14,marginBottom:5},{width:"full",height:14,marginBottom:16},{width:"full",height:14,marginBottom:5},{width:"full",height:14,marginBottom:5},{width:"full",height:14,marginBottom:16},{width:"full",height:14,marginBottom:5},{width:"full",height:14,marginBottom:5},{width:"full",height:14,marginBottom:16},{width:150,height:16,marginBottom:e.space.s},{width:"full",height:14,marginBottom:5},{width:"full",height:14,marginBottom:5},{width:"full",height:14,marginBottom:16},{width:"full",height:14,marginBottom:5},{width:"full",height:14,marginBottom:5},{width:"full",height:14,marginBottom:16},{width:"full",height:14,marginBottom:5},{width:"full",height:14,marginBottom:5},{width:"full",height:14,marginBottom:16},{width:"full",height:14,marginBottom:5},{width:"full",height:14,marginBottom:5},{width:"full",height:14,marginBottom:16}]})})}const zQ=__webpack_require__.p+"83eae15c5e5f6c0ef84a.ttf";var VQ=__webpack_require__(77247),UQ=__webpack_require__(67598);const HQ=(0,u.forwardRef)((function({source:e,containerStyle:t,onMessage:n},r){(0,u.useImperativeHandle)(r,(()=>({offsetScroll:e=>{i.current?.contentDocument?.documentElement&&(i.current.contentDocument.documentElement.scrollTop=i.current.contentDocument.documentElement.scrollTop+e);const t=i.current?.contentDocument?.getElementsByTagName("body")[0];t&&(t.scrollTop=t.scrollTop+e)},scrollToTop:()=>{i.current?.contentDocument?.documentElement&&("panel"===Da.OS?i.current.contentDocument.documentElement.scrollTop=0:i.current.contentDocument.documentElement.scrollTo({top:0,behavior:"smooth"}));const e=i.current?.contentDocument?.getElementsByTagName("body")[0];e&&("panel"===Da.OS?e.scrollTop=0:e.scrollTo({top:0,behavior:"smooth"}))}})),[]);const i=(0,u.useRef)(null),o=(0,u.useCallback)((()=>{const e=i.current?.contentDocument,t=e?.querySelector("body");if(!t||!e)return;const r=e=>n({nativeEvent:{data:JSON.stringify(e),url:"",loading:!1,title:"",canGoBack:!1,canGoForward:!1,lockIdentifier:0},currentTarget:0,target:0,bubbles:!1,cancelable:!1,defaultPrevented:!1,eventPhase:0,isTrusted:!0,preventDefault:()=>{},isDefaultPrevented:()=>!1,stopPropagation:()=>{},isPropagationStopped:()=>!1,persist:()=>{},timeStamp:0,type:""});t.sendMessage=r,r(["height",t.querySelector("#container pre")?.clientHeight??0]),r(["width",t.offsetWidth]),r(["offset-y",0]),r(["loaded",!0]),i.current?.contentWindow?.setScale(),t.onscroll=function(){const e=i.current?.contentDocument?.documentElement.scrollTop??0,t=i.current?.contentDocument?.getElementsByTagName("body")[0].scrollTop??0;r(0===e&&t>0?["offset-y",t]:["offset-y",e])}}),[n]);return(0,Al.jsx)(eI,{style:t,children:(0,Al.jsx)("iframe",{onLoad:o,ref:i,srcDoc:e.html,style:{flex:1,padding:0,margin:0,border:0,boxSizing:"border-box"}})})})),qQ=["#root > div","[role=dialog]","[aria-modal=true]",".leaflet-mapboxgl-ctrl",".leaflet-control-scale","#keyboard > div"],GQ=[".panel-zoom","#map",".non-scaled-wrapper"],YQ=[.6,.8,1,1.2,1.4,1.6,1.8,2,2.2,2.4,2.6,2.8,3],WQ=e=>YQ.indexOf(YQ.reduce(((t,n)=>Math.abs(n-e){const i=WQ(t),o="up"===r?Math.min(i+1,YQ.length-1):"down"===r?Math.max(i-1,0):WQ(r),a=YQ[o];n(a);const s=a*e,l=1/s;document.documentElement.style.setProperty("--scale",String(s)),document.documentElement.style.setProperty("--inverse-scale",String(l))}),[t,n,e]),i=(0,u.useCallback)((async()=>{const e=await MS.getItem("uiScaleFactor");r(null===e||isNaN(+e)?1:+e);const t=`\n ${qQ.join(",")} {\n zoom: var(--scale);\n }\n ${GQ.join(",")} {\n zoom: var(--inverse-scale);\n }\n `,n=document.createElement("style");n.innerHTML=t,document.head.appendChild(n)}),[r]);return(0,u.useEffect)((()=>{}),[i]),(0,u.useEffect)((()=>{}),[e]),{scale:t*e,scaleMultiplier:t,setScaleMultiplier:r,initScale:i}}const XQ=(0,u.forwardRef)((function({onScroll:e,onMessage:t,data:n},r){const i=gI(),{scale:o}=QQ(),a=(0,u.useRef)(null);return(0,u.useImperativeHandle)(r,(()=>({offsetScroll:e=>{a.current&&(Da.select({web:!0,default:!1})?a.current.offsetScroll(e):a.current.injectJavaScript(`document.documentElement.scrollTop = document.documentElement.scrollTop - ${e}; true;`))},scrollToTop:()=>{a.current&&(Da.select({web:!0,default:!1})?a.current.scrollToTop():a.current.injectJavaScript("document.documentElement.scrollTo({ top: 0, behavior: 'smooth' }); true;"))}})),[]),(0,Al.jsx)(HQ,{ref:a,onMessage:t,onScroll:t=>{const{contentOffset:n}=t.nativeEvent;(0,mf.runOnJS)(e)(n)},textZoom:100,scalesPageToFit:!0,setBuiltInZoomControls:!0,source:{html:`\n \n \n \n \n