PageSourceSearch

https://exploreid-webmap.netlify.app/assets/index-POpw6POk.js

js exploreid-webmap.netlify.app collected 2026-10-03 10:43:00 UTC 481,016 bytes, 175 lines download raw bytes

vendor: 4,245 bytes, lines 1-9
1(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();var be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ss(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var Lf={exports:{}},$o={},Sf={exports:{}},ee={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var os=Symbol.for("react.element"),Qg=Symbol.for("react.portal"),Yg=Symbol.for("react.fragment"),Xg=Symbol.for("react.strict_mode"),ev=Symbol.for("react.profiler"),tv=Symbol.for("react.provider"),nv=Symbol.for("react.context"),iv=Symbol.for("react.forward_ref"),rv=Symbol.for("react.suspense"),sv=Symbol.for("react.memo"),ov=Symbol.for("react.lazy"),Vh=Symbol.iterator;function av(e){return e===null||typeof e!="object"?null:(e=Vh&&e[Vh]||e["@@iterator"],typeof e=="function"?e:null)}var Pf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Cf=Object.assign,Ef={};function qi(e,t,n){this.props=e,this.context=t,this.refs=Ef,this.updater=n||Pf}qi.prototype.isReactComponent={};qi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): 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")};qi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Tf(){}Tf.prototype=qi.prototype;function Eu(e,t,n){this.props=e,this.context=t,this.refs=Ef,this.updater=n||Pf}var Tu=Eu.prototype=new Tf;Tu.constructor=Eu;Cf(Tu,qi.prototype);Tu.isPureReactComponent=!0;var Gh=Array.isArray,bf=Object.prototype.hasOwnProperty,bu={current:null},Of={key:!0,ref:!0,__self:!0,__source:!0};function Mf(e,t,n){var r,a={},s=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(s=""+t.key),t)bf.call(t,r)&&!Of.hasOwnProperty(r)&&(a[r]=t[r]);var c=arguments.length-2;if(c===1)a.children=n;else if(1<c){for(var d=Array(c),p=0;p<c;p++)d[p]=arguments[p+2];a.children=d}if(e&&e.defaultProps)for(r in c=e.defaultProps,c)a[r]===void 0&&(a[r]=c[r]);return{$$typeof:os,type:e,key:s,ref:l,props:a,_owner:bu.current}}function lv(e,t){return{$$typeof:os,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ou(e){return typeof e=="object"&&e!==null&&e.$$typeof===os}function uv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var qh=/\/+/g;function Va(e,t){return typeof e=="object"&&e!==null&&e.key!=null?uv(""+e.key):t.toString(36)}function no(e,t,n,r,a){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case os:case Qg:l=!0}}if(l)return l=e,a=a(l),e=r===""?"."+Va(l,0):r,Gh(a)?(n="",e!=null&&(n=e.replace(qh,"$&/")+"/"),no(a,t,n,"",function(p){return p}
vendor: 4,408 bytes, lines 9-17
9)):a!=null&&(Ou(a)&&(a=lv(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(qh,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=r===""?".":r+":",Gh(e))for(var c=0;c<e.length;c++){s=e[c];var d=r+Va(s,c);l+=no(s,t,n,d,a)}else if(d=av(e),typeof d=="function")for(e=d.call(e),c=0;!(s=e.next()).done;)s=s.value,d=r+Va(s,c++),l+=no(s,t,n,d,a);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function zs(e,t,n){if(e==null)return e;var r=[],a=0;return no(e,r,"","",function(s){return t.call(n,s,a++)}),r}function cv(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Je={current:null},io={transition:null},hv={ReactCurrentDispatcher:Je,ReactCurrentBatchConfig:io,ReactCurrentOwner:bu};function If(){throw Error("act(...) is not supported in production builds of React.")}ee.Children={map:zs,forEach:function(e,t,n){zs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return zs(e,function(){t++}),t},toArray:function(e){return zs(e,function(t){return t})||[]},only:function(e){if(!Ou(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=qi;ee.Fragment=Yg;ee.Profiler=ev;ee.PureComponent=Eu;ee.StrictMode=Xg;ee.Suspense=rv;ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hv;ee.act=If;ee.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Cf({},e.props),a=e.key,s=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,l=bu.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in t)bf.call(t,d)&&!Of.hasOwnProperty(d)&&(r[d]=t[d]===void 0&&c!==void 0?c[d]:t[d])}var d=arguments.length-2;if(d===1)r.children=n;else if(1<d){c=Array(d);for(var p=0;p<d;p++)c[p]=arguments[p+2];r.children=c}return{$$typeof:os,type:e.type,key:a,ref:s,props:r,_owner:l}};ee.createContext=function(e){return e={$$typeof:nv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:tv,_context:e},e.Consumer=e};ee.createElement=Mf;ee.createFactory=function(e){var t=Mf.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:iv,render:e}};ee.isValidElement=Ou;ee.lazy=function(e){return{$$typeof:ov,_payload:{_status:-1,_result:e},_init:cv}};ee.memo=function(e,t){return{$$typeof:sv,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=io.transition;io.transition={};try{e()}finally{io.transition=t}};ee.unstable_act=If;ee.useCallback=function(e,t){return Je.current.useCallback(e,t)};ee.useContext=function(e){return Je.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return Je.current.useDeferredValue(e)};ee.useEffect=function(e,t){return Je.current.useEffect(e,t)};ee.useId=function(){return Je.current.useId()};ee.useImperativeHandle=function(e,t,n){return Je.current.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return Je.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return Je.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return Je.current.useMemo(e,t)};ee.useReducer=function(e,t,n){return Je.current.useReducer(e,t,n)};ee.useRef=function(e){return Je.current.useRef(e)};ee.useState=function(e){return Je.current.useState(e)};ee.useSyncExternalStore=function(e,t,n){return Je.current.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return Je.current.useTransition()};ee.version="18.3.1";Sf.exports=ee;var B=Sf.exports;const kl=kf(B);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var dv=B,fv=Symbol.for("react.element"),pv=Symbol.for("react.fragment"),mv=Object.prototype.hasOwnProperty,_v=dv.__SECRET_INT
vendor: 11,439 bytes, lines 17-34
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gv={key:!0,ref:!0,__self:!0,__source:!0};function Af(e,t,n){var r,a={},s=null,l=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)mv.call(t,r)&&!gv.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:fv,type:e,key:s,ref:l,props:a,_owner:_v.current}}$o.Fragment=pv;$o.jsx=Af;$o.jsxs=Af;Lf.exports=$o;var E=Lf.exports,zf={exports:{}},dt={},Nf={exports:{}},jf={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(b,$){var I=b.length;b.push($);e:for(;0<I;){var H=I-1>>>1,G=b[H];if(0<a(G,$))b[H]=$,b[I]=G,I=H;else break e}}function n(b){return b.length===0?null:b[0]}function r(b){if(b.length===0)return null;var $=b[0],I=b.pop();if(I!==$){b[0]=I;e:for(var H=0,G=b.length,we=G>>>1;H<we;){var le=2*(H+1)-1,re=b[le],q=le+1,Ye=b[q];if(0>a(re,I))q<G&&0>a(Ye,re)?(b[H]=Ye,b[q]=I,H=q):(b[H]=re,b[le]=I,H=le);else if(q<G&&0>a(Ye,I))b[H]=Ye,b[q]=I,H=q;else break e}}return $}function a(b,$){var I=b.sortIndex-$.sortIndex;return I!==0?I:b.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],p=[],m=1,_=null,v=3,y=!1,C=!1,P=!1,N=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(b){for(var $=n(p);$!==null;){if($.callback===null)r(p);else if($.startTime<=b)r(p),$.sortIndex=$.expirationTime,t(d,$);else break;$=n(p)}}function M(b){if(P=!1,S(b),!C)if(n(d)!==null)C=!0,Pe(z);else{var $=n(p);$!==null&&mt(M,$.startTime-b)}}function z(b,$){C=!1,P&&(P=!1,x(Z),Z=-1),y=!0;var I=v;try{for(S($),_=n(d);_!==null&&(!(_.expirationTime>$)||b&&!ae());){var H=_.callback;if(typeof H=="function"){_.callback=null,v=_.priorityLevel;var G=H(_.expirationTime<=$);$=e.unstable_now(),typeof G=="function"?_.callback=G:_===n(d)&&r(d),S($)}else r(d);_=n(d)}if(_!==null)var we=!0;else{var le=n(p);le!==null&&mt(M,le.startTime-$),we=!1}return we}finally{_=null,v=I,y=!1}}var D=!1,R=null,Z=-1,ue=5,J=-1;function ae(){return!(e.unstable_now()-J<ue)}function ke(){if(R!==null){var b=e.unstable_now();J=b;var $=!0;try{$=R(!0,b)}finally{$?pt():(D=!1,R=null)}}else D=!1}var pt;if(typeof w=="function")pt=function(){w(ke)};else if(typeof MessageChannel<"u"){var je=new MessageChannel,ri=je.port2;je.port1.onmessage=ke,pt=function(){ri.postMessage(null)}}else pt=function(){N(ke,0)};function Pe(b){R=b,D||(D=!0,pt())}function mt(b,$){Z=N(function(){b(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(b){b.callback=null},e.unstable_continueExecution=function(){C||y||(C=!0,Pe(z))},e.unstable_forceFrameRate=function(b){0>b||125<b?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ue=0<b?Math.floor(1e3/b):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(b){switch(v){case 1:case 2:case 3:var $=3;break;default:$=v}var I=v;v=$;try{return b()}finally{v=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(b,$){switch(b){case 1:case 2:case 3:case 4:case 5:break;default:b=3}var I=v;v=b;try{return $()}finally{v=I}},e.unstable_scheduleCallback=function(b,$,I){var H=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?H+I:H):I=H,b){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=I+G,b={id:m++,callback:$,priorityLevel:b,startTime:I,expirationTime:G,sortIndex:-1},I>H?(b.sortIndex=I,t(p,b),n(d)===null&&b===n(p)&&(P?(x(Z),Z=-1):P=!0,mt(M,I-H))):(b.sortIndex=G,t(d,b),C||y||(C=!0,Pe(z))),b},e.unstable_shouldYield=ae,e.unstable_wrapCallback=function(b){var $=v;return function(){var I=v;v=$;try{return b.apply(this,arguments)}finally{v=I}}}})(jf);Nf.exports=jf;var vv=Nf.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var yv=B,ht=vv;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Rf=new Set,$r={};function ei(e,t){Bi(e,t),Bi(e+"Capture",t)}function Bi(e,t){for($r[e]=t,e=0;e<t.length;e++)Rf.add(t[e])}var tn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ll=Object.prototype.hasOwnProperty,wv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Kh={},Jh={};function xv(e){return Ll.call(Jh,e)?!0:Ll.call(Kh,e)?!1:wv.test(e)?Jh[e]=!0:(Kh[e]=!0,!1)}function kv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Lv(e,t,n,r){if(t===null||typeof t>"u"||kv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Qe(e,t,n,r,a,s,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=l}var Ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ue[e]=new Qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ue[t]=new Qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ue[e]=new Qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ue[e]=new Qe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ue[e]=new Qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ue[e]=new Qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ue[e]=new Qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ue[e]=new Qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ue[e]=new Qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Mu=/[\-:]([a-z])/g;function Iu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Mu,Iu);Ue[t]=new Qe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Mu,Iu);Ue[t]=new Qe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Mu,Iu);Ue[t]=new Qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ue[e]=new Qe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ue.xlinkHref=new Qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ue[e]=new Qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Au(e,t,n,r){var a=Ue.hasOwnProperty(t)?Ue[t]:null;(a!==null?a.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Lv(t,n,a,r)&&(n=null),r||a===null?xv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(t=a.attributeName,r=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var on=yv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ns=Symbol.for("react.element"),vi=Symbol.for("react.portal"),yi=Symbol.for("react.fragment"),zu=Symbol.for("react.strict_mode"),Sl=Symbol.for("react.profiler"),Bf=Symbol.for("react.provider"),Df=Symbol.for("react.context"),Nu=Symbol.for("react.forward_ref"),Pl=Symbol.for("react.suspense"),Cl=Symbol.for("react.suspense_list"),ju=Symbol.for("react.memo"),fn=Symbol.for("react.lazy"),Uf=Symbol.for("react.offscreen"),Qh=Symbol.iterator;function mr(e){return e===null||typeof e!="object"?null:(e=Qh&&e[Qh]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Object.assign,Ga;function Pr(e){if(Ga===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ga=t&&t[1]||""}return`
34`+Ga+e}var qa=!1;function Ka(e,t){if(!e||qa)return"";qa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}
vendor: 4,297 bytes, lines 34-37
34catch(p){if(p&&r&&typeof p.stack=="string"){for(var a=p.stack.split(`
35`),s=r.stack.split(`
36`),l=a.length-1,c=s.length-1;1<=l&&0<=c&&a[l]!==s[c];)c--;for(;1<=l&&0<=c;l--,c--)if(a[l]!==s[c]){if(l!==1||c!==1)do if(l--,c--,0>c||a[l]!==s[c]){var d=`
37`+a[l].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=l&&0<=c);break}}}finally{qa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Pr(e):""}function Sv(e){switch(e.tag){case 5:return Pr(e.type);case 16:return Pr("Lazy");case 13:return Pr("Suspense");case 19:return Pr("SuspenseList");case 0:case 2:case 15:return e=Ka(e.type,!1),e;case 11:return e=Ka(e.type.render,!1),e;case 1:return e=Ka(e.type,!0),e;default:return""}}function El(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yi:return"Fragment";case vi:return"Portal";case Sl:return"Profiler";case zu:return"StrictMode";case Pl:return"Suspense";case Cl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Df:return(e.displayName||"Context")+".Consumer";case Bf:return(e._context.displayName||"Context")+".Provider";case Nu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ju:return t=e.displayName||null,t!==null?t:El(e.type)||"Memo";case fn:t=e._payload,e=e._init;try{return El(e(t))}catch{}}return null}function Pv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return El(t);case 8:return t===zu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function bn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $f(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cv(e){var t=$f(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(l){r=""+l,s.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function js(e){e._valueTracker||(e._valueTracker=Cv(e))}function Ff(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$f(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function mo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Tl(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=bn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zf(e,t){t=t.checked,t!=null&&Au(e,"checked",t,!1)}function bl(e,t){Zf(e,t);var n=bn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ol(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ol(e,t.type,bn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}
vendor: 4,180 bytes, line 37
37function Xh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ol(e,t,n){(t!=="number"||mo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Cr=Array.isArray;function Mi(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+bn(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Ml(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return ye({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ed(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(Cr(n)){if(1<n.length)throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:bn(n)}}function Hf(e,t){var n=bn(t.value),r=bn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function td(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Wf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Il(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Wf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Rs,Vf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Rs=Rs||document.createElement("div"),Rs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Rs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Or={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!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},Ev=["Webkit","ms","Moz","O"];Object.keys(Or).forEach(function(e){Ev.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Or[t]=Or[e]})});function Gf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Or.hasOwnProperty(e)&&Or[e]?(""+t).trim():t+"px"}function qf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=Gf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var Tv=ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Al(e,t){if(t){if(Tv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function zl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Nl=null;function Ru(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jl=null,Ii=null,Ai=null;function nd(e){if(e=us(e)){if(typeof jl!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Vo(t),jl(e.stateNode,e.type,t))}}function Kf(e){Ii?Ai?Ai.push(e):Ai=[e]:Ii=e}function Jf(){if(Ii){var e=Ii,t=Ai;if(Ai=Ii=null,nd(e),t)for(e=0;e<t.length;e++)nd(t[e])}}function Qf(e,t){return e(t)}function Yf(){}var Ja=!1;function Xf(e,t,n){if(Ja)return e(t,n);Ja=!0;try{return Qf(e,t,n)}finally{Ja=!1,(Ii!==null||Ai!==null)&&(Yf(),Jf())}}function Zr(e,t){var n=e.stateNode;if(n===null)return null;var r=Vo(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(j(231,t,typeof n));return n}var Rl=!1;if(tn)try{var _r={};Object.defineProperty(_r,"passive",{get:function(){Rl=!0}}),window.addEventListener("test",_r,_r),window.removeEventListener("test",_r,_r)}catch{Rl=!1}function bv(e,t,n,r,a,s,l,c,d){var p=Array.prototype.slice.call(arguments,3);try{t.apply(n,p)}catch(m){this.onError(m)}}var Mr=!1,_o=null,go=!1,Bl=null,Ov={onError:function(e){Mr=!0,_o=e}};function Mv(e,t,n,r,a,s,l,c,d){Mr=!1,_o=null,bv.apply(Ov,arguments)}function Iv(e,t,n,r,a,s,l,c,d){if(Mv.apply(this,arguments),Mr){if(Mr){var p=_o;Mr=!1,_o=null}else throw Error(j(198));go||(go=!0,Bl=p)}}function ti(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ep(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function id(e){if(ti(e)!==e)throw Error(j(188))}function Av(e){var t=e.alternate;if(!t){if(t=ti(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return id(a),e;if(s===r)return id(a),t;s=s.sibling}throw Error(j(188))}if(n.return!==r.return)n=a,r=s;else{for(var l=!1,c=a.child;c;){if(c===n){l=!0,n=a,r=s;break}if(c===r){l=!0,r=a,n=s;break}c=c.sibling}if(!l){for(c=s.child;c;){if(c===n){l=!0,n=s,r=a;break}if(c===r){l=!0,r=s,n=a;break}c=c.sibling}if(!l)throw Error(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function tp(e){return e=Av(e),e!==null?np(e):null}function np(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=np(e);if(t!==null)return t;e=e.sibling}return null}var ip=ht.unstable_scheduleCallback,rd=ht.unstable_cancelCallback,zv=ht.unstable_shouldYield,Nv=ht.unstable_requestPaint,Se=ht.unstable_now,jv=ht.unstable_getCurrentPriorityLevel,Bu=ht.unstable_ImmediatePriority,rp=ht.unstable_UserBlockingPriority,vo=ht.unstable_NormalPriority,Rv=ht.unstable_LowPriority,sp=ht.unstable_IdlePriority,Fo=null,Zt=null;function Bv(e){if(Zt&&typeof Zt.onCommitFiberRoot=="function")try{Zt.onCommitFiberRoot(Fo,e,void 0,(e.current.flags&128)===128)}catch{}}var It=Math.clz32?Math.clz32:$v,Dv=Math.log,Uv=Math.LN2;function $v(e){return e>>>=0,e===0?32:31-(Dv(e)/Uv|0)|0}var Bs=64,Ds=4194304;function Er(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function yo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,s=e.pingedLanes,l=n&268435455;if(l!==0){var c=l&~a;c!==0?r=Er(c):(s&=l,s!==0&&(r=Er(s)))}else l=n&~a,l!==0?r=Er(l):s!==0&&(r=Er(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,s=t&-t,a>=s||a===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-It(t),a=1<<n,r|=e[n],t&=~a;return r}function Fv(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8: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;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-It(s),c=1<<l,d=a[l];d===-1?(!(c&n)||c&r)&&(a[l]=Fv(c,t)):d<=t&&(e.expiredLanes|=c),s&=~c}}function Dl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function op(){var e=Bs;return Bs<<=1,!(Bs&4194240)&&(Bs=64),e}function Qa(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function as(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function Hv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-It(n),s=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~s}}function Du(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-It(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var oe=0;function ap(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}
vendor: 4,619 bytes, line 37
37var lp,Uu,up,cp,hp,Ul=!1,Us=[],xn=null,kn=null,Ln=null,Hr=new Map,Wr=new Map,_n=[],Wv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function sd(e,t){switch(e){case"focusin":case"focusout":xn=null;break;case"dragenter":case"dragleave":kn=null;break;case"mouseover":case"mouseout":Ln=null;break;case"pointerover":case"pointerout":Hr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wr.delete(t.pointerId)}}function gr(e,t,n,r,a,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[a]},t!==null&&(t=us(t),t!==null&&Uu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Vv(e,t,n,r,a){switch(t){case"focusin":return xn=gr(xn,e,t,n,r,a),!0;case"dragenter":return kn=gr(kn,e,t,n,r,a),!0;case"mouseover":return Ln=gr(Ln,e,t,n,r,a),!0;case"pointerover":var s=a.pointerId;return Hr.set(s,gr(Hr.get(s)||null,e,t,n,r,a)),!0;case"gotpointercapture":return s=a.pointerId,Wr.set(s,gr(Wr.get(s)||null,e,t,n,r,a)),!0}return!1}function dp(e){var t=Hn(e.target);if(t!==null){var n=ti(t);if(n!==null){if(t=n.tag,t===13){if(t=ep(n),t!==null){e.blockedOn=t,hp(e.priority,function(){up(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ro(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$l(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Nl=r,n.target.dispatchEvent(r),Nl=null}else return t=us(n),t!==null&&Uu(t),e.blockedOn=n,!1;t.shift()}return!0}function od(e,t,n){ro(e)&&n.delete(t)}function Gv(){Ul=!1,xn!==null&&ro(xn)&&(xn=null),kn!==null&&ro(kn)&&(kn=null),Ln!==null&&ro(Ln)&&(Ln=null),Hr.forEach(od),Wr.forEach(od)}function vr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ul||(Ul=!0,ht.unstable_scheduleCallback(ht.unstable_NormalPriority,Gv)))}function Vr(e){function t(a){return vr(a,e)}if(0<Us.length){vr(Us[0],e);for(var n=1;n<Us.length;n++){var r=Us[n];r.blockedOn===e&&(r.blockedOn=null)}}for(xn!==null&&vr(xn,e),kn!==null&&vr(kn,e),Ln!==null&&vr(Ln,e),Hr.forEach(t),Wr.forEach(t),n=0;n<_n.length;n++)r=_n[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<_n.length&&(n=_n[0],n.blockedOn===null);)dp(n),n.blockedOn===null&&_n.shift()}var zi=on.ReactCurrentBatchConfig,wo=!0;function qv(e,t,n,r){var a=oe,s=zi.transition;zi.transition=null;try{oe=1,$u(e,t,n,r)}finally{oe=a,zi.transition=s}}function Kv(e,t,n,r){var a=oe,s=zi.transition;zi.transition=null;try{oe=4,$u(e,t,n,r)}finally{oe=a,zi.transition=s}}function $u(e,t,n,r){if(wo){var a=$l(e,t,n,r);if(a===null)al(e,t,r,xo,n),sd(e,r);else if(Vv(a,e,t,n,r))r.stopPropagation();else if(sd(e,r),t&4&&-1<Wv.indexOf(e)){for(;a!==null;){var s=us(a);if(s!==null&&lp(s),s=$l(e,t,n,r),s===null&&al(e,t,r,xo,n),s===a)break;a=s}a!==null&&r.stopPropagation()}else al(e,t,r,null,n)}}var xo=null;function $l(e,t,n,r){if(xo=null,e=Ru(r),e=Hn(e),e!==null)if(t=ti(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ep(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return xo=e,null}function fp(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;
vendor: 9,281 bytes, line 37
37case"message":switch(jv()){case Bu:return 1;case rp:return 4;case vo:case Rv:return 16;case sp:return 536870912;default:return 16}default:return 16}}var yn=null,Fu=null,so=null;function pp(){if(so)return so;var e,t=Fu,n=t.length,r,a="value"in yn?yn.value:yn.textContent,s=a.length;for(e=0;e<n&&t[e]===a[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===a[s-r];r++);return so=a.slice(e,1<r?1-r:void 0)}function oo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function $s(){return!0}function ad(){return!1}function ft(e){function t(n,r,a,s,l){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=s,this.target=l,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(n=e[c],this[c]=n?n(s):s[c]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?$s:ad,this.isPropagationStopped=ad,this}return ye(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=$s)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=$s)},persist:function(){},isPersistent:$s}),t}var Ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zu=ft(Ki),ls=ye({},Ki,{view:0,detail:0}),Jv=ft(ls),Ya,Xa,yr,Zo=ye({},ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==yr&&(yr&&e.type==="mousemove"?(Ya=e.screenX-yr.screenX,Xa=e.screenY-yr.screenY):Xa=Ya=0,yr=e),Ya)},movementY:function(e){return"movementY"in e?e.movementY:Xa}}),ld=ft(Zo),Qv=ye({},Zo,{dataTransfer:0}),Yv=ft(Qv),Xv=ye({},ls,{relatedTarget:0}),el=ft(Xv),ey=ye({},Ki,{animationName:0,elapsedTime:0,pseudoElement:0}),ty=ft(ey),ny=ye({},Ki,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),iy=ft(ny),ry=ye({},Ki,{data:0}),ud=ft(ry),sy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",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",224:"Meta"},ay={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ly(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ay[e])?!!t[e]:!1}function Hu(){return ly}var uy=ye({},ls,{key:function(e){if(e.key){var t=sy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?oy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hu,charCode:function(e){return e.type==="keypress"?oo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cy=ft(uy),hy=ye({},Zo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cd=ft(hy),dy=ye({},ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hu}),fy=ft(dy),py=ye({},Ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),my=ft(py),_y=ye({},Zo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),gy=ft(_y),vy=[9,13,27,32],Wu=tn&&"CompositionEvent"in window,Ir=null;tn&&"documentMode"in document&&(Ir=document.documentMode);var yy=tn&&"TextEvent"in window&&!Ir,mp=tn&&(!Wu||Ir&&8<Ir&&11>=Ir),hd=" ",dd=!1;function _p(e,t){switch(e){case"keyup":return vy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wi=!1;function wy(e,t){switch(e){case"compositionend":return gp(t);case"keypress":return t.which!==32?null:(dd=!0,hd);case"textInput":return e=t.data,e===hd&&dd?null:e;default:return null}}function xy(e,t){if(wi)return e==="compositionend"||!Wu&&_p(e,t)?(e=pp(),so=Fu=yn=null,wi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return mp&&t.locale!=="ko"?null:t.data;default:return null}}var ky={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 fd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ky[e.type]:t==="textarea"}function vp(e,t,n,r){Kf(r),t=ko(t,"onChange"),0<t.length&&(n=new Zu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ar=null,Gr=null;function Ly(e){bp(e,0)}function Ho(e){var t=Li(e);if(Ff(t))return e}function Sy(e,t){if(e==="change")return t}var yp=!1;if(tn){var tl;if(tn){var nl="oninput"in document;if(!nl){var pd=document.createElement("div");pd.setAttribute("oninput","return;"),nl=typeof pd.oninput=="function"}tl=nl}else tl=!1;yp=tl&&(!document.documentMode||9<document.documentMode)}function md(){Ar&&(Ar.detachEvent("onpropertychange",wp),Gr=Ar=null)}function wp(e){if(e.propertyName==="value"&&Ho(Gr)){var t=[];vp(t,Gr,e,Ru(e)),Xf(Ly,t)}}function Py(e,t,n){e==="focusin"?(md(),Ar=t,Gr=n,Ar.attachEvent("onpropertychange",wp)):e==="focusout"&&md()}function Cy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ho(Gr)}function Ey(e,t){if(e==="click")return Ho(t)}function Ty(e,t){if(e==="input"||e==="change")return Ho(t)}function by(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:by;function qr(e,t){if(zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!Ll.call(t,a)||!zt(e[a],t[a]))return!1}return!0}function _d(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gd(e,t){var n=_d(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_d(n)}}function xp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kp(){for(var e=window,t=mo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=mo(e.document)}return t}function Vu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Oy(e){var t=kp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xp(n.ownerDocument.documentElement,n)){if(r!==null&&Vu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,s=Math.min(r.start,a);r=r.end===void 0?s:Math.min(r.end,a),!e.extend&&s>r&&(a=r,r=s,s=a),a=gd(n,s);var l=gd(n,r);a&&l&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var My=tn&&"documentMode"in document&&11>=document.documentMode,xi=null,Fl=null,zr=null,Zl=!1;function vd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zl||xi==null||xi!==mo(r)||(r=xi,"selectionStart"in r&&Vu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),zr&&qr(zr,r)||(zr=r,r=ko(Fl,"onSelect"),0<r.length&&(t=new Zu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xi)))}function Fs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ki={animationend:Fs("Animation","AnimationEnd"),animationiteration:Fs("Animation","AnimationIteration"),animationstart:Fs("Animation","AnimationStart"),transitionend:Fs("Transition","TransitionEnd")},il={},Lp={};tn&&(Lp=document.createElement("div").style,"AnimationEvent"in window||(delete ki.animationend.animation,delete ki.animationiteration.animation,delete ki.animationstart.animation),"TransitionEvent"in window||delete ki.transitionend.transition);function Wo(e){if(il[e])return il[e];if(!ki[e])return e;var t=ki[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lp)return il[e]=t[n];return e}var Sp=Wo("animationend"),Pp=Wo("animationiteration"),Cp=Wo("animationstart"),Ep=Wo("transitionend"),Tp=new Map,yd="abort auxClick 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 toggle touchMove waiting wheel".split(" ");function Mn(e,t){Tp.set(e,t),ei(t,[e])}for(var rl=0;rl<yd.length;rl++){var sl=yd[rl],Iy=sl.toLowerCase(),Ay=sl[0].toUpperCase()+sl.slice(1);Mn(Iy,"on"+Ay)}Mn(Sp,"onAnimationEnd");Mn(Pp,"onAnimationIteration");Mn(Cp,"onAnimationStart");Mn("dblclick","onDoubleClick");Mn("focusin","onFocus");Mn("focusout","onBlur");Mn(Ep,"onTransitionEnd");Bi("onMouseEnter",["mouseout","mouseover"]);Bi("onMouseLeave",["mouseout","mouseover"]);Bi("onPointerEnter",["pointerout","pointerover"]);Bi("onPointerLeave",["pointerout","pointerover"]);ei("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ei("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ei("onBeforeInput",["compositionend","keypress","textInput","paste"]);ei("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ei("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ei("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),zy=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tr));function wd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Iv(r,t,void 0,e),e.currentTarget=null}function bp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var l=r.length-1;0<=l;l--){var c=r[l],d=c.instance,p=c.currentTarget;if(c=c.listener,d!==s&&a.isPropagationStopped())break e;wd(a,c,p),s=d}else for(l=0;l<r.length;l++){if(c=r[l],d=c.instance,p=c.currentTarget,c=c.listener,d!==s&&a.isPropagationStopped())break e;wd(a,c,p),s=d}}}if(go)throw e=Bl,go=!1,Bl=null,e}function fe(e,t){var n=t[ql];n===void 0&&(n=t[ql]=new Set);var r=e+"__bubble";n.has(r)||(Op(t,e,2,!1),n.add(r))}function ol(e,t,n){var r=0;t&&(r|=4),Op(n,e,r,t)}var Zs="_reactListening"+Math.random().toString(36).slice(2);function Kr(e){if(!e[Zs]){e[Zs]=!0,Rf.forEach(function(n){n!=="selectionchange"&&(zy.has(n)||ol(n,!1,e),ol(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zs]||(t[Zs]=!0,ol("selectionchange",!1,t))}}function Op(e,t,n,r){switch(fp(t)){case 1:var a=qv;break;case 4:a=Kv;break;default:a=$u}n=a.bind(null,t,n,e),a=void 0,!Rl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function al(e,t,n,r,a){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var c=r.stateNode.containerInfo;
vendor: 2,527 bytes, line 37
37if(c===a||c.nodeType===8&&c.parentNode===a)break;if(l===4)for(l=r.return;l!==null;){var d=l.tag;if((d===3||d===4)&&(d=l.stateNode.containerInfo,d===a||d.nodeType===8&&d.parentNode===a))return;l=l.return}for(;c!==null;){if(l=Hn(c),l===null)return;if(d=l.tag,d===5||d===6){r=s=l;continue e}c=c.parentNode}}r=r.return}Xf(function(){var p=s,m=Ru(n),_=[];e:{var v=Tp.get(e);if(v!==void 0){var y=Zu,C=e;switch(e){case"keypress":if(oo(n)===0)break e;case"keydown":case"keyup":y=cy;break;case"focusin":C="focus",y=el;break;case"focusout":C="blur",y=el;break;case"beforeblur":case"afterblur":y=el;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=ld;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Yv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=fy;break;case Sp:case Pp:case Cp:y=ty;break;case Ep:y=my;break;case"scroll":y=Jv;break;case"wheel":y=gy;break;case"copy":case"cut":case"paste":y=iy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=cd}var P=(t&4)!==0,N=!P&&e==="scroll",x=P?v!==null?v+"Capture":null:v;P=[];for(var w=p,S;w!==null;){S=w;var M=S.stateNode;if(S.tag===5&&M!==null&&(S=M,x!==null&&(M=Zr(w,x),M!=null&&P.push(Jr(w,M,S)))),N)break;w=w.return}0<P.length&&(v=new y(v,C,null,n,m),_.push({event:v,listeners:P}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",v&&n!==Nl&&(C=n.relatedTarget||n.fromElement)&&(Hn(C)||C[nn]))break e;if((y||v)&&(v=m.window===m?m:(v=m.ownerDocument)?v.defaultView||v.parentWindow:window,y?(C=n.relatedTarget||n.toElement,y=p,C=C?Hn(C):null,C!==null&&(N=ti(C),C!==N||C.tag!==5&&C.tag!==6)&&(C=null)):(y=null,C=p),y!==C)){if(P=ld,M="onMouseLeave",x="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(P=cd,M="onPointerLeave",x="onPointerEnter",w="pointer"),N=y==null?v:Li(y),S=C==null?v:Li(C),v=new P(M,w+"leave",y,n,m),v.target=N,v.relatedTarget=S,M=null,Hn(m)===p&&(P=new P(x,w+"enter",C,n,m),P.target=S,P.relatedTarget=N,M=P),N=M,y&&C)t:{for(P=y,x=C,w=0,S=P;S;S=pi(S))w++;for(S=0,M=x;M;M=pi(M))S++;for(;0<w-S;)P=pi(P),w--;for(;0<S-w;)x=pi(x),S--;for(;w--;){if(P===x||x!==null&&P===x.alternate)break t;P=pi(P),x=pi(x)}P=null}else P=null;y!==null&&xd(_,v,y,P,!1),C!==null&&N!==null&&xd(_,N,C,P,!0)}}
vendor: 4,574 bytes, lines 37-38
37e:{if(v=p?Li(p):window,y=v.nodeName&&v.nodeName.toLowerCase(),y==="select"||y==="input"&&v.type==="file")var z=Sy;else if(fd(v))if(yp)z=Ty;else{z=Cy;var D=Py}else(y=v.nodeName)&&y.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(z=Ey);if(z&&(z=z(e,p))){vp(_,z,n,m);break e}D&&D(e,v,p),e==="focusout"&&(D=v._wrapperState)&&D.controlled&&v.type==="number"&&Ol(v,"number",v.value)}switch(D=p?Li(p):window,e){case"focusin":(fd(D)||D.contentEditable==="true")&&(xi=D,Fl=p,zr=null);break;case"focusout":zr=Fl=xi=null;break;case"mousedown":Zl=!0;break;case"contextmenu":case"mouseup":case"dragend":Zl=!1,vd(_,n,m);break;case"selectionchange":if(My)break;case"keydown":case"keyup":vd(_,n,m)}var R;if(Wu)e:{switch(e){case"compositionstart":var Z="onCompositionStart";break e;case"compositionend":Z="onCompositionEnd";break e;case"compositionupdate":Z="onCompositionUpdate";break e}Z=void 0}else wi?_p(e,n)&&(Z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Z="onCompositionStart");Z&&(mp&&n.locale!=="ko"&&(wi||Z!=="onCompositionStart"?Z==="onCompositionEnd"&&wi&&(R=pp()):(yn=m,Fu="value"in yn?yn.value:yn.textContent,wi=!0)),D=ko(p,Z),0<D.length&&(Z=new ud(Z,e,null,n,m),_.push({event:Z,listeners:D}),R?Z.data=R:(R=gp(n),R!==null&&(Z.data=R)))),(R=yy?wy(e,n):xy(e,n))&&(p=ko(p,"onBeforeInput"),0<p.length&&(m=new ud("onBeforeInput","beforeinput",null,n,m),_.push({event:m,listeners:p}),m.data=R))}bp(_,t)})}function Jr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ko(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,s=a.stateNode;a.tag===5&&s!==null&&(a=s,s=Zr(e,n),s!=null&&r.unshift(Jr(e,s,a)),s=Zr(e,t),s!=null&&r.push(Jr(e,s,a))),e=e.return}return r}function pi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function xd(e,t,n,r,a){for(var s=t._reactName,l=[];n!==null&&n!==r;){var c=n,d=c.alternate,p=c.stateNode;if(d!==null&&d===r)break;c.tag===5&&p!==null&&(c=p,a?(d=Zr(n,s),d!=null&&l.unshift(Jr(n,d,c))):a||(d=Zr(n,s),d!=null&&l.push(Jr(n,d,c)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Ny=/\r\n?/g,jy=/\u0000|\uFFFD/g;function kd(e){return(typeof e=="string"?e:""+e).replace(Ny,`
38`).replace(jy,"")}function Hs(e,t,n){if(t=kd(t),kd(e)!==t&&n)throw Error(j(425))}function Lo(){}var Hl=null,Wl=null;function Vl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gl=typeof setTimeout=="function"?setTimeout:void 0,Ry=typeof clearTimeout=="function"?clearTimeout:void 0,Ld=typeof Promise=="function"?Promise:void 0,By=typeof queueMicrotask=="function"?queueMicrotask:typeof Ld<"u"?function(e){return Ld.resolve(null).then(e).catch(Dy)}:Gl;function Dy(e){setTimeout(function(){throw e})}function ll(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(r===0){e.removeChild(a),Vr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=a}while(n);Vr(t)}function Sn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Sd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ji=Math.random().toString(36).slice(2),Ft="__reactFiber$"+Ji,Qr="__reactProps$"+Ji,nn="__reactContainer$"+Ji,ql="__reactEvents$"+Ji,Uy="__reactListeners$"+Ji,$y="__reactHandles$"+Ji;function Hn(e){var t=e[Ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[nn]||n[Ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sd(e);e!==null;){if(n=e[Ft])return n;e=Sd(e)}return t}e=n,n=e.parentNode}return null}function us(e){return e=e[Ft]||e[nn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Li(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function Vo(e){return e[Qr]||null}var Kl=[],Si=-1;function In(e){return{current:e}}function pe(e){0>Si||(e.current=Kl[Si],Kl[Si]=null,Si--)}function de(e,t){Si++,Kl[Si]=e.current,e.current=t}var On={},He=In(On),rt=In(!1),Kn=On;function Di(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},s;for(s in n)a[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a
vendor: 4,051 bytes, line 38
38),a}function st(e){return e=e.childContextTypes,e!=null}function So(){pe(rt),pe(He)}function Pd(e,t,n){if(He.current!==On)throw Error(j(168));de(He,t),de(rt,n)}function Mp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(j(108,Pv(e)||"Unknown",a));return ye({},n,r)}function Po(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,Kn=He.current,de(He,e),de(rt,rt.current),!0}function Cd(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=Mp(e,t,Kn),r.__reactInternalMemoizedMergedChildContext=e,pe(rt),pe(He),de(He,e)):pe(rt),de(rt,n)}var Qt=null,Go=!1,ul=!1;function Ip(e){Qt===null?Qt=[e]:Qt.push(e)}function Fy(e){Go=!0,Ip(e)}function An(){if(!ul&&Qt!==null){ul=!0;var e=0,t=oe;try{var n=Qt;for(oe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Qt=null,Go=!1}catch(a){throw Qt!==null&&(Qt=Qt.slice(e+1)),ip(Bu,An),a}finally{oe=t,ul=!1}}return null}var Pi=[],Ci=0,Co=null,Eo=0,yt=[],wt=0,Jn=null,Yt=1,Xt="";function Un(e,t){Pi[Ci++]=Eo,Pi[Ci++]=Co,Co=e,Eo=t}function Ap(e,t,n){yt[wt++]=Yt,yt[wt++]=Xt,yt[wt++]=Jn,Jn=e;var r=Yt;e=Xt;var a=32-It(r)-1;r&=~(1<<a),n+=1;var s=32-It(t)+a;if(30<s){var l=a-a%5;s=(r&(1<<l)-1).toString(32),r>>=l,a-=l,Yt=1<<32-It(t)+a|n<<a|r,Xt=s+e}else Yt=1<<s|n<<a|r,Xt=e}function Gu(e){e.return!==null&&(Un(e,1),Ap(e,1,0))}function qu(e){for(;e===Co;)Co=Pi[--Ci],Pi[Ci]=null,Eo=Pi[--Ci],Pi[Ci]=null;for(;e===Jn;)Jn=yt[--wt],yt[wt]=null,Xt=yt[--wt],yt[wt]=null,Yt=yt[--wt],yt[wt]=null}var ct=null,ut=null,me=!1,Mt=null;function zp(e,t){var n=xt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ed(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ct=e,ut=Sn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ct=e,ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Jn!==null?{id:Yt,overflow:Xt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=xt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ct=e,ut=null,!0):!1;default:return!1}}function Jl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ql(e){if(me){var t=ut;if(t){var n=t;if(!Ed(e,t)){if(Jl(e))throw Error(j(418));t=Sn(n.nextSibling);var r=ct;t&&Ed(e,t)?zp(r,n):(e.flags=e.flags&-4097|2,me=!1,ct=e)}}else{if(Jl(e))throw Error(j(418));e.flags=e.flags&-4097|2,me=!1,ct=e}}}function Td(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ct=e}function Ws(e){if(e!==ct)return!1;if(!me)return Td(e),me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vl(e.type,e.memoizedProps)),t&&(t=ut)){if(Jl(e))throw Np(),Error(j(418));for(;t;)zp(e,t),t=Sn(t.nextSibling)}if(Td(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ut=Sn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=ct?Sn(e.stateNode.nextSibling):null;return!0}function Np(){for(var e=ut;e;)e=Sn(e.nextSibling)}function Ui(){ut=ct=null,me=!1}function Ku(e){Mt===null?Mt=[e]:Mt.push(e)}var Zy=on.ReactCurrentBatchConfig;function wr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(j(309));var r=n.stateNode}if(!r)throw Error(j(147,e));var a=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(l){var c=a.refs;l===null?delete c[s]:c[s]=l},t._stringRef=s,t)}if(typeof e!="string")throw Error(j(284));if(!n._owner)throw Error(j(290,e))}return e}function Vs(e,t){throw e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bd(e){var t=e._init;return t(e._payload)}
vendor: 4,578 bytes, line 38
38function jp(e){function t(x,w){if(e){var S=x.deletions;S===null?(x.deletions=[w],x.flags|=16):S.push(w)}}function n(x,w){if(!e)return null;for(;w!==null;)t(x,w),w=w.sibling;return null}function r(x,w){for(x=new Map;w!==null;)w.key!==null?x.set(w.key,w):x.set(w.index,w),w=w.sibling;return x}function a(x,w){return x=Tn(x,w),x.index=0,x.sibling=null,x}function s(x,w,S){return x.index=S,e?(S=x.alternate,S!==null?(S=S.index,S<w?(x.flags|=2,w):S):(x.flags|=2,w)):(x.flags|=1048576,w)}function l(x){return e&&x.alternate===null&&(x.flags|=2),x}function c(x,w,S,M){return w===null||w.tag!==6?(w=_l(S,x.mode,M),w.return=x,w):(w=a(w,S),w.return=x,w)}function d(x,w,S,M){var z=S.type;return z===yi?m(x,w,S.props.children,M,S.key):w!==null&&(w.elementType===z||typeof z=="object"&&z!==null&&z.$$typeof===fn&&bd(z)===w.type)?(M=a(w,S.props),M.ref=wr(x,w,S),M.return=x,M):(M=po(S.type,S.key,S.props,null,x.mode,M),M.ref=wr(x,w,S),M.return=x,M)}function p(x,w,S,M){return w===null||w.tag!==4||w.stateNode.containerInfo!==S.containerInfo||w.stateNode.implementation!==S.implementation?(w=gl(S,x.mode,M),w.return=x,w):(w=a(w,S.children||[]),w.return=x,w)}function m(x,w,S,M,z){return w===null||w.tag!==7?(w=qn(S,x.mode,M,z),w.return=x,w):(w=a(w,S),w.return=x,w)}function _(x,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return w=_l(""+w,x.mode,S),w.return=x,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ns:return S=po(w.type,w.key,w.props,null,x.mode,S),S.ref=wr(x,null,w),S.return=x,S;case vi:return w=gl(w,x.mode,S),w.return=x,w;case fn:var M=w._init;return _(x,M(w._payload),S)}if(Cr(w)||mr(w))return w=qn(w,x.mode,S,null),w.return=x,w;Vs(x,w)}return null}function v(x,w,S,M){var z=w!==null?w.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return z!==null?null:c(x,w,""+S,M);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ns:return S.key===z?d(x,w,S,M):null;case vi:return S.key===z?p(x,w,S,M):null;case fn:return z=S._init,v(x,w,z(S._payload),M)}if(Cr(S)||mr(S))return z!==null?null:m(x,w,S,M,null);Vs(x,S)}return null}function y(x,w,S,M,z){if(typeof M=="string"&&M!==""||typeof M=="number")return x=x.get(S)||null,c(w,x,""+M,z);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case Ns:return x=x.get(M.key===null?S:M.key)||null,d(w,x,M,z);case vi:return x=x.get(M.key===null?S:M.key)||null,p(w,x,M,z);case fn:var D=M._init;return y(x,w,S,D(M._payload),z)}if(Cr(M)||mr(M))return x=x.get(S)||null,m(w,x,M,z,null);Vs(w,M)}return null}function C(x,w,S,M){for(var z=null,D=null,R=w,Z=w=0,ue=null;R!==null&&Z<S.length;Z++){R.index>Z?(ue=R,R=null):ue=R.sibling;var J=v(x,R,S[Z],M);if(J===null){R===null&&(R=ue);break}e&&R&&J.alternate===null&&t(x,R),w=s(J,w,Z),D===null?z=J:D.sibling=J,D=J,R=ue}if(Z===S.length)return n(x,R),me&&Un(x,Z),z;if(R===null){for(;Z<S.length;Z++)R=_(x,S[Z],M),R!==null&&(w=s(R,w,Z),D===null?z=R:D.sibling=R,D=R);return me&&Un(x,Z),z}for(R=r(x,R);Z<S.length;Z++)ue=y(R,x,Z,S[Z],M),ue!==null&&(e&&ue.alternate!==null&&R.delete(ue.key===null?Z:ue.key),w=s(ue,w,Z),D===null?z=ue:D.sibling=ue,D=ue);return e&&R.forEach(function(ae){return t(x,ae)}),me&&Un(x,Z),z}function P(x,w,S,M){var z=mr(S);if(typeof z!="function")throw Error(j(150));if(S=z.call(S),S==null)throw Error(j(151));for(var D=z=null,R=w,Z=w=0,ue=null,J=S.next();R!==null&&!J.done;Z++,J=S.next()){R.index>Z?(ue=R,R=null):ue=R.sibling;var ae=v(x,R,J.value,M);if(ae===null){R===null&&(R=ue);break}e&&R&&ae.alternate===null&&t(x,R),w=s(ae,w,Z),D===null?z=ae:D.sibling=ae,D=ae,R=ue}if(J.done)return n(x,R),me&&Un(x,Z),z;if(R===null){for(;!J.done;Z++,J=S.next())J=_(x,J.value,M),J!==null&&(w=s(J,w,Z),D===null?z=J:D.sibling=J,D=J);return me&&Un(x,Z),z}for(R=r(x,R);!J.done;Z++,J=S.next())J=y(R,x,Z,J.value,M),J!==null&&(e&&J.alternate!==null&&R.delete(J.key===null?Z:J.key),w=s(J,w,Z),D===null?z=J:D.sibling=J,D=J);return e&&R.forEach(function(ke){return t(x,ke)}),me&&Un(x,Z),z}function N(x,w,S,M){if(typeof S=="object"&&S!==null&&S.type===yi&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Ns:e:{for(var z=S.key,D=w;D!==null;){if(D.key===z){if(z=S.type,z===yi){if(D.tag===7){n(x,D.sibling),w=a(D,S.props.children),w.return=x,x=w;break e}}else if(D.elementType===z||typeof z=="object"&&z!==null&&z.$$typeof===fn&&bd(z)===D.type){n(x,D.sibling),w=a(D,S.props),w.ref=wr(x,D,S),w.return=x,x=w;break e}n(x,D);break}else t(x,D);D=D.sibling}S.type===yi?(w=qn(S.props.children,x.mode,M,S.key),w.return=x,x=w):(M=po(S.type,S.key,S.props,null,x.mode,M),M.ref=wr(x,w,S),M.return=x,x=M)}return l(x);case vi:e:{for(D=S.key;w!==null;
vendor: 17,804 bytes, lines 38-40
38){if(w.key===D)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(x,w.sibling),w=a(w,S.children||[]),w.return=x,x=w;break e}else{n(x,w);break}else t(x,w);w=w.sibling}w=gl(S,x.mode,M),w.return=x,x=w}return l(x);case fn:return D=S._init,N(x,w,D(S._payload),M)}if(Cr(S))return C(x,w,S,M);if(mr(S))return P(x,w,S,M);Vs(x,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(x,w.sibling),w=a(w,S),w.return=x,x=w):(n(x,w),w=_l(S,x.mode,M),w.return=x,x=w),l(x)):n(x,w)}return N}var $i=jp(!0),Rp=jp(!1),To=In(null),bo=null,Ei=null,Ju=null;function Qu(){Ju=Ei=bo=null}function Yu(e){var t=To.current;pe(To),e._currentValue=t}function Yl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ni(e,t){bo=e,Ju=Ei=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(it=!0),e.firstContext=null)}function Lt(e){var t=e._currentValue;if(Ju!==e)if(e={context:e,memoizedValue:t,next:null},Ei===null){if(bo===null)throw Error(j(308));Ei=e,bo.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var Wn=null;function Xu(e){Wn===null?Wn=[e]:Wn.push(e)}function Bp(e,t,n,r){var a=t.interleaved;return a===null?(n.next=n,Xu(t)):(n.next=a.next,a.next=n),t.interleaved=n,rn(e,r)}function rn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var pn=!1;function ec(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function en(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ie&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,rn(e,n)}return a=r.interleaved,a===null?(t.next=t,Xu(r)):(t.next=a.next,a.next=t),r.interleaved=t,rn(e,n)}function ao(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Du(e,n)}}function Od(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?a=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?a=s=t:s=s.next=t}else a=s=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Oo(e,t,n,r){var a=e.updateQueue;pn=!1;var s=a.firstBaseUpdate,l=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var d=c,p=d.next;d.next=null,l===null?s=p:l.next=p,l=d;var m=e.alternate;m!==null&&(m=m.updateQueue,c=m.lastBaseUpdate,c!==l&&(c===null?m.firstBaseUpdate=p:c.next=p,m.lastBaseUpdate=d))}if(s!==null){var _=a.baseState;l=0,m=p=d=null,c=s;do{var v=c.lane,y=c.eventTime;if((r&v)===v){m!==null&&(m=m.next={eventTime:y,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var C=e,P=c;switch(v=t,y=n,P.tag){case 1:if(C=P.payload,typeof C=="function"){_=C.call(y,_,v);break e}_=C;break e;case 3:C.flags=C.flags&-65537|128;case 0:if(C=P.payload,v=typeof C=="function"?C.call(y,_,v):C,v==null)break e;_=ye({},_,v);break e;case 2:pn=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,v=a.effects,v===null?a.effects=[c]:v.push(c))}else y={eventTime:y,lane:v,tag:c.tag,payload:c.payload,callback:c.callback,next:null},m===null?(p=m=y,d=_):m=m.next=y,l|=v;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;v=c,c=v.next,v.next=null,a.lastBaseUpdate=v,a.shared.pending=null}}while(!0);if(m===null&&(d=_),a.baseState=d,a.firstBaseUpdate=p,a.lastBaseUpdate=m,t=a.shared.interleaved,t!==null){a=t;do l|=a.lane,a=a.next;while(a!==t)}else s===null&&(a.shared.lanes=0);Yn|=l,e.lanes=l,e.memoizedState=_}}function Md(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(a!==null){if(r.callback=null,r=n,typeof a!="function")throw Error(j(191,a));a.call(r)}}}var cs={},Ht=In(cs),Yr=In(cs),Xr=In(cs);function Vn(e){if(e===cs)throw Error(j(174));return e}function tc(e,t){switch(de(Xr,t),de(Yr,e),de(Ht,cs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Il(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Il(t,e)}pe(Ht),de(Ht,t)}function Fi(){pe(Ht),pe(Yr),pe(Xr)}function Up(e){Vn(Xr.current);var t=Vn(Ht.current),n=Il(t,e.type);t!==n&&(de(Yr,e),de(Ht,n))}function nc(e){Yr.current===e&&(pe(Ht),pe(Yr))}var ge=In(0);function Mo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var cl=[];function ic(){for(var e=0;e<cl.length;e++)cl[e]._workInProgressVersionPrimary=null;cl.length=0}var lo=on.ReactCurrentDispatcher,hl=on.ReactCurrentBatchConfig,Qn=0,ve=null,Oe=null,ze=null,Io=!1,Nr=!1,es=0,Hy=0;function $e(){throw Error(j(321))}function rc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zt(e[n],t[n]))return!1;return!0}function sc(e,t,n,r,a,s){if(Qn=s,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,lo.current=e===null||e.memoizedState===null?qy:Ky,e=n(r,a),Nr){s=0;do{if(Nr=!1,es=0,25<=s)throw Error(j(301));s+=1,ze=Oe=null,t.updateQueue=null,lo.current=Jy,e=n(r,a)}while(Nr)}if(lo.current=Ao,t=Oe!==null&&Oe.next!==null,Qn=0,ze=Oe=ve=null,Io=!1,t)throw Error(j(300));return e}function oc(){var e=es!==0;return es=0,e}function $t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ze===null?ve.memoizedState=ze=e:ze=ze.next=e,ze}function St(){if(Oe===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=ze===null?ve.memoizedState:ze.next;if(t!==null)ze=t,Oe=e;else{if(e===null)throw Error(j(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},ze===null?ve.memoizedState=ze=e:ze=ze.next=e}return ze}function ts(e,t){return typeof t=="function"?t(e):t}function dl(e){var t=St(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=Oe,a=r.baseQueue,s=n.pending;if(s!==null){if(a!==null){var l=a.next;a.next=s.next,s.next=l}r.baseQueue=a=s,n.pending=null}if(a!==null){s=a.next,r=r.baseState;var c=l=null,d=null,p=s;do{var m=p.lane;if((Qn&m)===m)d!==null&&(d=d.next={lane:0,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null}),r=p.hasEagerState?p.eagerState:e(r,p.action);else{var _={lane:m,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null};d===null?(c=d=_,l=r):d=d.next=_,ve.lanes|=m,Yn|=m}p=p.next}while(p!==null&&p!==s);d===null?l=r:d.next=c,zt(r,t.memoizedState)||(it=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=d,n.lastRenderedState=r}if(e=n.interleaved,e!==null){a=e;do s=a.lane,ve.lanes|=s,Yn|=s,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function fl(e){var t=St(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,s=t.memoizedState;if(a!==null){n.pending=null;var l=a=a.next;do s=e(s,l.action),l=l.next;while(l!==a);zt(s,t.memoizedState)||(it=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function $p(){}function Fp(e,t){var n=ve,r=St(),a=t(),s=!zt(r.memoizedState,a);if(s&&(r.memoizedState=a,it=!0),r=r.queue,ac(Wp.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ze!==null&&ze.memoizedState.tag&1){if(n.flags|=2048,ns(9,Hp.bind(null,n,r,a,t),void 0,null),Ne===null)throw Error(j(349));Qn&30||Zp(n,t,a)}return a}function Zp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Hp(e,t,n,r){t.value=n,t.getSnapshot=r,Vp(t)&&Gp(e)}function Wp(e,t,n){return n(function(){Vp(t)&&Gp(e)})}function Vp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zt(e,n)}catch{return!0}}function Gp(e){var t=rn(e,1);t!==null&&At(t,e,1,-1)}function Id(e){var t=$t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ts,lastRenderedState:e},t.queue=e,e=e.dispatch=Gy.bind(null,ve,e),[t.memoizedState,e]}function ns(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function qp(){return St().memoizedState}function uo(e,t,n,r){var a=$t();ve.flags|=e,a.memoizedState=ns(1|t,n,void 0,r===void 0?null:r)}function qo(e,t,n,r){var a=St();r=r===void 0?null:r;var s=void 0;if(Oe!==null){var l=Oe.memoizedState;if(s=l.destroy,r!==null&&rc(r,l.deps)){a.memoizedState=ns(t,n,s,r);return}}ve.flags|=e,a.memoizedState=ns(1|t,n,s,r)}function Ad(e,t){return uo(8390656,8,e,t)}function ac(e,t){return qo(2048,8,e,t)}function Kp(e,t){return qo(4,2,e,t)}function Jp(e,t){return qo(4,4,e,t)}function Qp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Yp(e,t,n){return n=n!=null?n.concat([e]):null,qo(4,4,Qp.bind(null,t,e),n)}function lc(){}function Xp(e,t){var n=St();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&rc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function em(e,t){var n=St();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&rc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function tm(e,t,n){return Qn&21?(zt(n,t)||(n=op(),ve.lanes|=n,Yn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,it=!0),e.memoizedState=n)}function Wy(e,t){var n=oe;oe=n!==0&&4>n?n:4,e(!0);var r=hl.transition;hl.transition={};try{e(!1),t()}finally{oe=n,hl.transition=r}}function nm(){return St().memoizedState}function Vy(e,t,n){var r=En(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},im(e))rm(t,n);else if(n=Bp(e,t,n,r),n!==null){var a=qe();At(n,e,r,a),sm(n,t,r)}}function Gy(e,t,n){var r=En(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(im(e))rm(t,a);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,c=s(l,n);if(a.hasEagerState=!0,a.eagerState=c,zt(c,l)){var d=t.interleaved;d===null?(a.next=a,Xu(t)):(a.next=d.next,d.next=a),t.interleaved=a;return}}catch{}finally{}n=Bp(e,t,a,r),n!==null&&(a=qe(),At(n,e,r,a),sm(n,t,r))}}function im(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function rm(e,t){Nr=Io=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Du(e,n)}}var Ao={readContext:Lt,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useInsertionEffect:$e,useLayoutEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useMutableSource:$e,useSyncExternalStore:$e,useId:$e,unstable_isNewReconciler:!1},qy={readContext:Lt,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:Ad,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,uo(4194308,4,Qp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return uo(4194308,4,e,t)},useInsertionEffect:function(e,t){return uo(4,2,e,t)},useMemo:function(e,t){var n=$t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$t();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Vy.bind(null,ve,e),[r.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:Id,useDebugValue:lc,useDeferredValue:function(e){return $t().memoizedState=e},useTransition:function(){var e=Id(!1),t=e[0];return e=Wy.bind(null,e[1]),$t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ve,a=$t();if(me){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),Ne===null)throw Error(j(349));Qn&30||Zp(r,t,n)}a.memoizedState=n;var s={value:n,getSnapshot:t};return a.queue=s,Ad(Wp.bind(null,r,s,e),[e]),r.flags|=2048,ns(9,Hp.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=$t(),t=Ne.identifierPrefix;if(me){var n=Xt,r=Yt;n=(r&~(1<<32-It(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=es++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Hy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ky={readContext:Lt,useCallback:Xp,useContext:Lt,useEffect:ac,useImperativeHandle:Yp,useInsertionEffect:Kp,useLayoutEffect:Jp,useMemo:em,useReducer:dl,useRef:qp,useState:function(){return dl(ts)},useDebugValue:lc,useDeferredValue:function(e){var t=St();return tm(t,Oe.memoizedState,e)},useTransition:function(){var e=dl(ts)[0],t=St().memoizedState;return[e,t]},useMutableSource:$p,useSyncExternalStore:Fp,useId:nm,unstable_isNewReconciler:!1},Jy={readContext:Lt,useCallback:Xp,useContext:Lt,useEffect:ac,useImperativeHandle:Yp,useInsertionEffect:Kp,useLayoutEffect:Jp,useMemo:em,useReducer:fl,useRef:qp,useState:function(){return fl(ts)},useDebugValue:lc,useDeferredValue:function(e){var t=St();return Oe===null?t.memoizedState=e:tm(t,Oe.memoizedState,e)},useTransition:function(){var e=fl(ts)[0],t=St().memoizedState;return[e,t]},useMutableSource:$p,useSyncExternalStore:Fp,useId:nm,unstable_isNewReconciler:!1};function Tt(e,t){if(e&&e.defaultProps){t=ye({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Xl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ye({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ko={isMounted:function(e){return(e=e._reactInternals)?ti(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=qe(),a=En(e),s=en(r,a);s.payload=t,n!=null&&(s.callback=n),t=Pn(e,s,a),t!==null&&(At(t,e,a,r),ao(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=qe(),a=En(e),s=en(r,a);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Pn(e,s,a),t!==null&&(At(t,e,a,r),ao(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=qe(),r=En(e),a=en(n,r);a.tag=2,t!=null&&(a.callback=t),t=Pn(e,a,r),t!==null&&(At(t,e,r,n),ao(t,e,r))}};function zd(e,t,n,r,a,s,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,l):t.prototype&&t.prototype.isPureReactComponent?!qr(n,r)||!qr(a,s):!0}function om(e,t,n){var r=!1,a=On,s=t.contextType;return typeof s=="object"&&s!==null?s=Lt(s):(a=st(t)?Kn:He.current,r=t.contextTypes,s=(r=r!=null)?Di(e,a):On),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ko,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=s),t}function Nd(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ko.enqueueReplaceState(t,t.state,null)}function eu(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},ec(e);var s=t.contextType;typeof s=="object"&&s!==null?a.context=Lt(s):(s=st(t)?Kn:He.current,a.context=Di(e,s)),a.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Xl(e,t,s,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&Ko.enqueueReplaceState(a,a.state,null),Oo(e,n,a,r),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function Zi(e,t){try{var n="",r=t;do n+=Sv(r),r=r.return;while(r);var a=n}catch(s){a=`
39Error generating stack: `+s.message+`
40`+s.stack}return{value:e,source:t,stack:a,digest:null}}function pl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function tu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Qy=typeof WeakMap=="function"?WeakMap:Map;function am(e,t,n){n=en(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){No||(No=!0,hu=r),tu(e,t)},n}function lm(e,t,n){n=en(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){tu(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){tu(e,t),typeof r!="function"&&(Cn===null?Cn=new Set([this]):Cn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}
vendor: 8,870 bytes, line 40
40function jd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qy;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=h0.bind(null,e,t,n),t.then(e,e))}function Rd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Bd(e,t,n,r,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=en(-1,1),t.tag=2,Pn(n,t,1))),n.lanes|=1),e)}var Yy=on.ReactCurrentOwner,it=!1;function Ge(e,t,n,r){t.child=e===null?Rp(t,null,n,r):$i(t,e.child,n,r)}function Dd(e,t,n,r,a){n=n.render;var s=t.ref;return Ni(t,a),r=sc(e,t,n,r,s,a),n=oc(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,sn(e,t,a)):(me&&n&&Gu(t),t.flags|=1,Ge(e,t,r,a),t.child)}function Ud(e,t,n,r,a){if(e===null){var s=n.type;return typeof s=="function"&&!_c(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,um(e,t,s,r,a)):(e=po(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&a)){var l=s.memoizedProps;if(n=n.compare,n=n!==null?n:qr,n(l,r)&&e.ref===t.ref)return sn(e,t,a)}return t.flags|=1,e=Tn(s,r),e.ref=t.ref,e.return=t,t.child=e}function um(e,t,n,r,a){if(e!==null){var s=e.memoizedProps;if(qr(s,r)&&e.ref===t.ref)if(it=!1,t.pendingProps=r=s,(e.lanes&a)!==0)e.flags&131072&&(it=!0);else return t.lanes=e.lanes,sn(e,t,a)}return nu(e,t,n,r,a)}function cm(e,t,n){var r=t.pendingProps,a=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(bi,lt),lt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(bi,lt),lt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,de(bi,lt),lt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,de(bi,lt),lt|=r;return Ge(e,t,a,n),t.child}function hm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function nu(e,t,n,r,a){var s=st(n)?Kn:He.current;return s=Di(t,s),Ni(t,a),n=sc(e,t,n,r,s,a),r=oc(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,sn(e,t,a)):(me&&r&&Gu(t),t.flags|=1,Ge(e,t,n,a),t.child)}function $d(e,t,n,r,a){if(st(n)){var s=!0;Po(t)}else s=!1;if(Ni(t,a),t.stateNode===null)co(e,t),om(t,n,r),eu(t,n,r,a),r=!0;else if(e===null){var l=t.stateNode,c=t.memoizedProps;l.props=c;var d=l.context,p=n.contextType;typeof p=="object"&&p!==null?p=Lt(p):(p=st(n)?Kn:He.current,p=Di(t,p));var m=n.getDerivedStateFromProps,_=typeof m=="function"||typeof l.getSnapshotBeforeUpdate=="function";_||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(c!==r||d!==p)&&Nd(t,l,r,p),pn=!1;var v=t.memoizedState;l.state=v,Oo(t,r,l,a),d=t.memoizedState,c!==r||v!==d||rt.current||pn?(typeof m=="function"&&(Xl(t,n,m,r),d=t.memoizedState),(c=pn||zd(t,n,c,r,v,d,p))?(_||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=d),l.props=r,l.state=d,l.context=p,r=c):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Dp(e,t),c=t.memoizedProps,p=t.type===t.elementType?c:Tt(t.type,c),l.props=p,_=t.pendingProps,v=l.context,d=n.contextType,typeof d=="object"&&d!==null?d=Lt(d):(d=st(n)?Kn:He.current,d=Di(t,d));var y=n.getDerivedStateFromProps;(m=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(c!==_||v!==d)&&Nd(t,l,r,d),pn=!1,v=t.memoizedState,l.state=v,Oo(t,r,l,a);var C=t.memoizedState;c!==_||v!==C||rt.current||pn?(typeof y=="function"&&(Xl(t,n,y,r),C=t.memoizedState),(p=pn||zd(t,n,p,r,v,C,d)||!1)?(m||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,C,d),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,C,d)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=C),l.props=r,l.state=C,l.context=d,r=p):(typeof l.componentDidUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),r=!1)}return iu(e,t,n,r,s,a)}function iu(e,t,n,r,a,s){hm(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return a&&Cd(t,n,!1),sn(e,t,s);r=t.stateNode,Yy.current=t;var c=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=$i(t,e.child,null,s),t.child=$i(t,null,c,s)):Ge(e,t,c,s),t.memoizedState=r.state,a&&Cd(t,n,!0),t.child}function dm(e){var t=e.stateNode;t.pendingContext?Pd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Pd(e,t.context,!1),tc(e,t.containerInfo)}function Fd(e,t,n,r,a){return Ui(),Ku(a),t.flags|=256,Ge(e,t,n,r),t.child}var ru={dehydrated:null,treeContext:null,retryLane:0};function su(e){return{baseLanes:e,cachePool:null,transitions:null}}function fm(e,t,n){var r=t.pendingProps,a=ge.current,s=!1,l=(t.flags&128)!==0,c;if((c=l)||(c=e!==null&&e.memoizedState===null?!1:(a&2)!==0),c?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),de(ge,a&1),e===null)return Ql(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,s?(r=t.mode,s=t.child,l={mode:"hidden",children:l},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=l):s=Yo(l,r,0,null),e=qn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=su(n),t.memoizedState=ru,e):uc(t,l));if(a=e.memoizedState,a!==null&&(c=a.dehydrated,c!==null))return Xy(e,t,l,r,c,a,n);if(s){s=r.fallback,l=t.mode,a=e.child,c=a.sibling;var d={mode:"hidden",children:r.children};return!(l&1)&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=d,t.deletions=null):(r=Tn(a,d),r.subtreeFlags=a.subtreeFlags&14680064),c!==null?s=Tn(c,s):(s=qn(s,l,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,l=e.child.memoizedState,l=l===null?su(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=ru,r}return s=e.child,e=s.sibling,r=Tn(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function uc(e,t){return t=Yo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Gs(e,t,n,r){return r!==null&&Ku(r),$i(t,e.child,null,n),e=uc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xy(e,t,n,r,a,s,l){if(n)return t.flags&256?(t.flags&=-257,r=pl(Error(j(422))),Gs(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,a=t.mode,r=Yo({mode:"visible",children:r.children},a,0,null),s=qn(s,a,l,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&$i(t,e.child,null,l),t.child.memoizedState=su(l),t.memoizedState=ru,s);if(!(t.mode&1))return Gs(e,t,l,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var c=r.dgst;return r=c,s=Error(j(419)),r=pl(s,r,void 0),Gs(e,t,l,r)}if(c=(l&e.childLanes)!==0,it||c){if(r=Ne,r!==null){switch(l&-l){case 4:a=2;break;case 16:a=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(r.suspendedLanes|l)?0:a,a!==0&&a!==s.retryLane&&(s.retryLane=a,rn(e,a),At(r,e,a,-1))}return mc(),r=pl(Error(j(421))),Gs(e,t,l,r)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=d0.bind(null,e),a._reactRetry=t,null):(e=s.treeContext,ut=Sn(a.nextSibling),ct=t,me=!0,Mt=null,e!==null&&(yt[wt++]=Yt,yt[wt++]=Xt,yt[wt++]=Jn,Yt=e.id,Xt=e.overflow,Jn=t),t=uc(t,r.children),t.flags|=4096,t)}
vendor: 3,521 bytes, line 40
40function Zd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yl(e.return,t,n)}function ml(e,t,n,r,a){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=a)}function pm(e,t,n){var r=t.pendingProps,a=r.revealOrder,s=r.tail;if(Ge(e,t,r.children,n),r=ge.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zd(e,n,t);else if(e.tag===19)Zd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(de(ge,r),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Mo(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),ml(t,!1,a,n,s);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Mo(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}ml(t,!0,n,null,s);break;case"together":ml(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function co(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function sn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=Tn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Tn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function e0(e,t,n){switch(t.tag){case 3:dm(t),Ui();break;case 5:Up(t);break;case 1:st(t.type)&&Po(t);break;case 4:tc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;de(To,r._currentValue),r._currentValue=a;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(ge,ge.current&1),t.flags|=128,null):n&t.child.childLanes?fm(e,t,n):(de(ge,ge.current&1),e=sn(e,t,n),e!==null?e.sibling:null);de(ge,ge.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return pm(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),de(ge,ge.current),r)break;return null;case 22:case 23:return t.lanes=0,cm(e,t,n)}return sn(e,t,n)}var mm,ou,_m,gm;mm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ou=function(){};_m=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Vn(Ht.current);var s=null;switch(n){case"input":a=Tl(e,a),r=Tl(e,r),s=[];break;case"select":a=ye({},a,{value:void 0}),r=ye({},r,{value:void 0}),s=[];break;case"textarea":a=Ml(e,a),r=Ml(e,r),s=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Lo)}Al(n,r);var l;n=null;for(p in a)if(!r.hasOwnProperty(p)&&a.hasOwnProperty(p)&&a[p]!=null)if(p==="style"){var c=a[p];for(l in c)c.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else p!=="dangerouslySetInnerHTML"&&p!=="children"&&p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&($r.hasOwnProperty(p)?s||(s=[]):(s=s||[]).push(p,null));for(p in r){var d=r[p];
vendor: 3,008 bytes, line 40
40if(c=a!=null?a[p]:void 0,r.hasOwnProperty(p)&&d!==c&&(d!=null||c!=null))if(p==="style")if(c){for(l in c)!c.hasOwnProperty(l)||d&&d.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in d)d.hasOwnProperty(l)&&c[l]!==d[l]&&(n||(n={}),n[l]=d[l])}else n||(s||(s=[]),s.push(p,n)),n=d;else p==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,c=c?c.__html:void 0,d!=null&&c!==d&&(s=s||[]).push(p,d)):p==="children"?typeof d!="string"&&typeof d!="number"||(s=s||[]).push(p,""+d):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&($r.hasOwnProperty(p)?(d!=null&&p==="onScroll"&&fe("scroll",e),s||c===d||(s=[])):(s=s||[]).push(p,d))}n&&(s=s||[]).push("style",n);var p=s;(t.updateQueue=p)&&(t.flags|=4)}};gm=function(e,t,n,r){n!==r&&(t.flags|=4)};function xr(e,t){if(!me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function t0(e,t,n){var r=t.pendingProps;switch(qu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return st(t.type)&&So(),Fe(t),null;case 3:return r=t.stateNode,Fi(),pe(rt),pe(He),ic(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ws(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Mt!==null&&(pu(Mt),Mt=null))),ou(e,t),Fe(t),null;case 5:nc(t);var a=Vn(Xr.current);if(n=t.type,e!==null&&t.stateNode!=null)_m(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(j(166));return Fe(t),null}if(e=Vn(Ht.current),Ws(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ft]=t,r[Qr]=s,e=(t.mode&1)!==0,n){case"dialog":fe("cancel",r),fe("close",r);break;case"iframe":case"object":case"embed":fe("load",r);break;case"video":case"audio":for(a=0;a<Tr.length;a++)fe(Tr[a],r);break;case"source":fe("error",r);break;case"img":case"image":case"link":fe("error",r),fe("load",r);break;case"details":fe("toggle",r);break;case"input":Yh(r,s),fe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},fe("invalid",r);break;case"textarea":ed(r,s),fe("invalid",r)}Al(n,s),a=null;for(var l in s)if(s.hasOwnProperty(l)){var c=s[l];l==="children"?typeof c=="string"?r.textContent!==c&&(s.suppressHydrationWarning!==!0&&Hs(r.textContent,c,e),a=["children",c]):typeof c=="number"&&r.textContent!==""+c&&(s.suppressHydrationWarning!==!0&&Hs(r.textContent,c,e),a=["children",""+c
vendor: 19,740 bytes, line 40
40]):$r.hasOwnProperty(l)&&c!=null&&l==="onScroll"&&fe("scroll",r)}switch(n){case"input":js(r),Xh(r,s,!0);break;case"textarea":js(r),td(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Lo)}r=a,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Wf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ft]=t,e[Qr]=r,mm(e,t,!1,!1),t.stateNode=e;e:{switch(l=zl(n,r),n){case"dialog":fe("cancel",e),fe("close",e),a=r;break;case"iframe":case"object":case"embed":fe("load",e),a=r;break;case"video":case"audio":for(a=0;a<Tr.length;a++)fe(Tr[a],e);a=r;break;case"source":fe("error",e),a=r;break;case"img":case"image":case"link":fe("error",e),fe("load",e),a=r;break;case"details":fe("toggle",e),a=r;break;case"input":Yh(e,r),a=Tl(e,r),fe("invalid",e);break;case"option":a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=ye({},r,{value:void 0}),fe("invalid",e);break;case"textarea":ed(e,r),a=Ml(e,r),fe("invalid",e);break;default:a=r}Al(n,a),c=a;for(s in c)if(c.hasOwnProperty(s)){var d=c[s];s==="style"?qf(e,d):s==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&Vf(e,d)):s==="children"?typeof d=="string"?(n!=="textarea"||d!=="")&&Fr(e,d):typeof d=="number"&&Fr(e,""+d):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&($r.hasOwnProperty(s)?d!=null&&s==="onScroll"&&fe("scroll",e):d!=null&&Au(e,s,d,l))}switch(n){case"input":js(e),Xh(e,r,!1);break;case"textarea":js(e),td(e);break;case"option":r.value!=null&&e.setAttribute("value",""+bn(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Mi(e,!!r.multiple,s,!1):r.defaultValue!=null&&Mi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Lo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Fe(t),null;case 6:if(e&&t.stateNode!=null)gm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));if(n=Vn(Xr.current),Vn(Ht.current),Ws(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ft]=t,(s=r.nodeValue!==n)&&(e=ct,e!==null))switch(e.tag){case 3:Hs(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Hs(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ft]=t,t.stateNode=r}return Fe(t),null;case 13:if(pe(ge),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(me&&ut!==null&&t.mode&1&&!(t.flags&128))Np(),Ui(),t.flags|=98560,s=!1;else if(s=Ws(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(j(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(j(317));s[Ft]=t}else Ui(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fe(t),s=!1}else Mt!==null&&(pu(Mt),Mt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ge.current&1?Me===0&&(Me=3):mc())),t.updateQueue!==null&&(t.flags|=4),Fe(t),null);case 4:return Fi(),ou(e,t),e===null&&Kr(t.stateNode.containerInfo),Fe(t),null;case 10:return Yu(t.type._context),Fe(t),null;case 17:return st(t.type)&&So(),Fe(t),null;case 19:if(pe(ge),s=t.memoizedState,s===null)return Fe(t),null;if(r=(t.flags&128)!==0,l=s.rendering,l===null)if(r)xr(s,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Mo(e),l!==null){for(t.flags|=128,xr(s,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,l=s.alternate,l===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return de(ge,ge.current&1|2),t.child}e=e.sibling}s.tail!==null&&Se()>Hi&&(t.flags|=128,r=!0,xr(s,!1),t.lanes=4194304)}else{if(!r)if(e=Mo(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!me)return Fe(t),null}else 2*Se()-s.renderingStartTime>Hi&&n!==1073741824&&(t.flags|=128,r=!0,xr(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(n=s.last,n!==null?n.sibling=l:t.child=l,s.last=l)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Se(),t.sibling=null,n=ge.current,de(ge,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return pc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lt&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function n0(e,t){switch(qu(t),t.tag){case 1:return st(t.type)&&So(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fi(),pe(rt),pe(He),ic(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nc(t),null;case 13:if(pe(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(ge),null;case 4:return Fi(),null;case 10:return Yu(t.type._context),null;case 22:case 23:return pc(),null;case 24:return null;default:return null}}var qs=!1,Ze=!1,i0=typeof WeakSet=="function"?WeakSet:Set,F=null;function Ti(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function au(e,t,n){try{n()}catch(r){xe(e,t,r)}}var Hd=!1;function r0(e,t){if(Hl=wo,e=kp(),Vu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var l=0,c=-1,d=-1,p=0,m=0,_=e,v=null;t:for(;;){for(var y;_!==n||a!==0&&_.nodeType!==3||(c=l+a),_!==s||r!==0&&_.nodeType!==3||(d=l+r),_.nodeType===3&&(l+=_.nodeValue.length),(y=_.firstChild)!==null;)v=_,_=y;for(;;){if(_===e)break t;if(v===n&&++p===a&&(c=l),v===s&&++m===r&&(d=l),(y=_.nextSibling)!==null)break;_=v,v=_.parentNode}_=y}n=c===-1||d===-1?null:{start:c,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wl={focusedElem:e,selectionRange:n},wo=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var C=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var P=C.memoizedProps,N=C.memoizedState,x=t.stateNode,w=x.getSnapshotBeforeUpdate(t.elementType===t.type?P:Tt(t.type,P),N);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(M){xe(t,t.return,M)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return C=Hd,Hd=!1,C}function jr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var s=a.destroy;a.destroy=void 0,s!==void 0&&au(t,n,s)}a=a.next}while(a!==r)}}function Jo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function lu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function vm(e){var t=e.alternate;t!==null&&(e.alternate=null,vm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ft],delete t[Qr],delete t[ql],delete t[Uy],delete t[$y])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ym(e){return e.tag===5||e.tag===3||e.tag===4}function Wd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ym(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Lo));else if(r!==4&&(e=e.child,e!==null))for(uu(e,t,n),e=e.sibling;e!==null;)uu(e,t,n),e=e.sibling}function cu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(cu(e,t,n),e=e.sibling;e!==null;)cu(e,t,n),e=e.sibling}var Be=null,bt=!1;function cn(e,t,n){for(n=n.child;n!==null;)wm(e,t,n),n=n.sibling}function wm(e,t,n){if(Zt&&typeof Zt.onCommitFiberUnmount=="function")try{Zt.onCommitFiberUnmount(Fo,n)}catch{}switch(n.tag){case 5:Ze||Ti(n,t);case 6:var r=Be,a=bt;Be=null,cn(e,t,n),Be=r,bt=a,Be!==null&&(bt?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(bt?(e=Be,n=n.stateNode,e.nodeType===8?ll(e.parentNode,n):e.nodeType===1&&ll(e,n),Vr(e)):ll(Be,n.stateNode));break;case 4:r=Be,a=bt,Be=n.stateNode.containerInfo,bt=!0,cn(e,t,n),Be=r,bt=a;break;case 0:case 11:case 14:case 15:if(!Ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var s=a,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&au(n,t,l),a=a.next}while(a!==r)}cn(e,t,n);break;case 1:if(!Ze&&(Ti(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){xe(n,t,c)}cn(e,t,n);break;case 21:cn(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,cn(e,t,n),Ze=r):cn(e,t,n);break;default:cn(e,t,n)}}function Vd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new i0),t.forEach(function(r){var a=f0.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function Et(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r];try{var s=e,l=t,c=l;e:for(;c!==null;){switch(c.tag){case 5:Be=c.stateNode,bt=!1;break e;case 3:Be=c.stateNode.containerInfo,bt=!0;break e;case 4:Be=c.stateNode.containerInfo,bt=!0;break e}c=c.return}if(Be===null)throw Error(j(160));wm(s,l,a),Be=null,bt=!1;var d=a.alternate;d!==null&&(d.return=null),a.return=null}catch(p){xe(a,t,p)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)xm(t,e),t=t.sibling}function xm(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Et(t,e),Dt(e),r&4){try{jr(3,e,e.return),Jo(3,e)}catch(P){xe(e,e.return,P)}try{jr(5,e,e.return)}catch(P){xe(e,e.return,P)}}break;case 1:Et(t,e),Dt(e),r&512&&n!==null&&Ti(n,n.return);break;case 5:if(Et(t,e),Dt(e),r&512&&n!==null&&Ti(n,n.return),e.flags&32){var a=e.stateNode;try{Fr(a,"")}catch(P){xe(e,e.return,P)}}if(r&4&&(a=e.stateNode,a!=null)){var s=e.memoizedProps,l=n!==null?n.memoizedProps:s,c=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{c==="input"&&s.type==="radio"&&s.name!=null&&Zf(a,s),zl(c,l);var p=zl(c,s);for(l=0;l<d.length;l+=2){var m=d[l],_=d[l+1];m==="style"?qf(a,_):m==="dangerouslySetInnerHTML"?Vf(a,_):m==="children"?Fr(a,_):Au(a,m,_,p)}switch(c){case"input":bl(a,s);break;case"textarea":Hf(a,s);break;case"select":var v=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!s.multiple;var y=s.value;y!=null?Mi(a,!!s.multiple,y,!1):v!==!!s.multiple&&(s.defaultValue!=null?Mi(a,!!s.multiple,s.defaultValue,!0):Mi(a,!!s.multiple,s.multiple?[]:"",!1))}a[Qr]=s}catch(P){xe(e,e.return,P)}}break;case 6:if(Et(t,e),Dt(e),r&4){if(e.stateNode===null)throw Error(j(162));a=e.stateNode,s=e.memoizedProps;try{a.nodeValue=s}catch(P){xe(e,e.return,P)}}break;case 3:if(Et(t,e),Dt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vr(t.containerInfo)}catch(P){xe(e,e.return,P)}break;case 4:Et(t,e),Dt(e);break;case 13:Et(t,e),Dt(e),a=e.child,a.flags&8192&&(s=a.memoizedState!==null,a.stateNode.isHidden=s,!s||a.alternate!==null&&a.alternate.memoizedState!==null||(dc=Se())),r&4&&Vd(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(Ze=(p=Ze)||m,Et(t,e),Ze=p):Et(t,e),Dt(e),r&8192){if(p=e.memoizedState!==null,(e.stateNode.isHidden=p)&&!m&&e.mode&1)for(F=e,m=e.child;m!==null;){for(_=F=m;F!==null;){switch(v=F,y=v.child,v.tag){case 0:case 11:case 14:case 15:jr(4,v,v.return);break;case 1:Ti(v,v.return);var C=v.stateNode;if(typeof C.componentWillUnmount=="function"){r=v,n=v.return;try{t=r,C.props=t.memoizedProps,C.state=t.memoizedState,C.componentWillUnmount()}catch(P){xe(r,n,P)}}break;case 5:Ti(v,v.return);break;case 22:if(v.memoizedState!==null){qd(_);continue}}y!==null?(y.return=v,F=y):qd(_)}m=m.sibling}e:for(m=null,_=e;;){if(_.tag===5){if(m===null){m=_;try{a=_.stateNode,p?(s=a.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(c=_.stateNode,d=_.memoizedProps.style,l=d!=null&&d.hasOwnProperty("display")?d.display:null,c.style.display=Gf("display",l))}catch(P){xe(e,e.return,P)}}}else if(_.tag===6){if(m===null)try{_.stateNode.nodeValue=p?"":_.memoizedProps}catch(P){xe(e,e.return,P)}}else if((_.tag!==22&&_.tag!==23||_.memoizedState===null||_===e)&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===e)break e;for(;_.sibling===null;){if(_.return===null||_.return===e)break e;m===_&&(m=null),_=_.return}m===_&&(m=null),_.sibling.return=_.return,_=_.sibling}}break;case 19:Et(t,e),Dt(e),r&4&&Vd(e);break;case 21:break;default:Et(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ym(n)){var r=n;break e}n=n.return}throw Error(j(160))}switch(r.tag){case 5:var a=r.stateNode;r.flags&32&&(Fr(a,""),r.flags&=-33);var s=Wd(e);cu(e,s,a);break;case 3:case 4:var l=r.stateNode.containerInfo,c=Wd(e);uu(e,c,l);break;default:throw Error(j(161))}}catch(d){xe(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function s0(e,t,n){F=e,km(e)}function km(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var a=F,s=a.child;if(a.tag===22&&r){var l=a.memoizedState!==null||qs;if(!l){var c=a.alternate,d=c!==null&&c.memoizedState!==null||Ze;c=qs;var p=Ze;if(qs=l,(Ze=d)&&!p)for(F=a;F!==null;)l=F,d=l.child,l.tag===22&&l.memoizedState!==null?Kd(a):d!==null?(d.return=l,F=d):Kd(a);for(;s!==null;)F=s,km(s),s=s.sibling;F=a,qs=c,Ze=p}Gd(e)}else a.subtreeFlags&8772&&s!==null?(s.return=a,F=s):Gd(e)}}function Gd(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ze||Jo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ze)if(n===null)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Tt(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Md(t,s,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Md(t,l,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var d=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":d.autoFocus&&n.focus();break;case"img":d.src&&(n.src=d.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var p=t.alternate;if(p!==null){var m=p.memoizedState;if(m!==null){var _=m.dehydrated;_!==null&&Vr(_)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(j(163))}Ze||t.flags&512&&lu(t)}catch(v){xe(t,t.return,v)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function qd(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Kd(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Jo(4,t)}catch(d){xe(t,n,d)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var a=t.return;try{r.componentDidMount()}catch(d){xe(t,a,d)}}var s=t.return;try{lu(t)}catch(d){xe(t,s,d)}break;case 5:var l=t.return;try{lu(t)}catch(d){xe(t,l,d)}}}catch(d){xe(t,t.return,d)}if(t===e){F=null;break}var c=t.sibling;if(c!==null){c.return=t.return,F=c;break}F=t.return}}var o0=Math.ceil,zo=on.ReactCurrentDispatcher,cc=on.ReactCurrentOwner,kt=on.ReactCurrentBatchConfig,ie=0,Ne=null,Te=null,De=0,lt=0,bi=In(0),Me=0,is=null,Yn=0,Qo=0,hc=0,Rr=null,tt=null,dc=0,Hi=1/0,Kt=null,No=!1,hu=null,Cn=null,Ks=!1,wn=null,jo=0,Br=0,du=null,ho=-1,fo=0;function qe(){return ie&6?Se():ho!==-1?ho:ho=Se()}function En(e){return e.mode&1?ie&2&&De!==0?De&-De:Zy.transition!==null?(fo===0&&(fo=op()),fo):(e=oe,e!==0||(e=window.event,e=e===void 0?16:fp(e.type)),e):1}function At(e,t,n,r){if(50<Br)throw Br=0,du=null,Error(j(185));as(e,n,r),(!(ie&2)||e!==Ne)&&(e===Ne&&(!(ie&2)&&(Qo|=n),Me===4&&gn(e,De)),ot(e,r),n===1&&ie===0&&!(t.mode&1)&&(Hi=Se()+500,Go&&An()))}function ot(e,t){var n=e.callbackNode;Zv(e,t);var r=yo(e,e===Ne?De:0);if(r===0)n!==null&&rd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&rd(n),t===1)e.tag===0?Fy(Jd.bind(null,e)):Ip(Jd.bind(null,e)),By(function(){!(ie&6)&&An()}),n=null;else{switch(ap(r)){case 1:n=Bu;break;case 4:n=rp;break;case 16:n=vo;break;case 536870912:n=sp;break;default:n=vo}n=Om(n,Lm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Lm(e,t){if(ho=-1,fo=0,ie&6)throw Error(j(327));var n=e.callbackNode;if(ji()&&e.callbackNode!==n)return null;var r=yo(e,e===Ne?De:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ro(e,r);else{t=r;var a=ie;ie|=2;var s=Pm();(Ne!==e||De!==t)&&(Kt=null,Hi=Se()+500,Gn(e,t));do try{u0();break}catch(c){Sm(e,c)}while(!0);Qu(),zo.current=s,ie=a,Te!==null?t=0:(Ne=null,De=0,t=Me)}if(t!==0){if(t===2&&(a=Dl(e),a!==0&&(r=a,t=fu(e,a))),t===1)throw n=is,Gn(e,0),gn(e,r),ot(e,Se()),n;if(t===6)gn(e,r);else{if(a=e.current.alternate,!(r&30)&&!a0(a)&&(t=Ro(e,r),t===2&&(s=Dl(e),s!==0&&(r=s,t=fu(e,s))),t===1))throw n=is,Gn(e,0),gn(e,r),ot(e,Se()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(j(345));case 2:$n(e,tt,Kt);break;case 3:if(gn(e,r),(r&130023424)===r&&(t=dc+500-Se(),10<t)){if(yo(e,0)!==0)break;if(a=e.suspendedLanes,(a&r)!==r){qe(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Gl($n.bind(null,e,tt,Kt),t);break}$n(e,tt,Kt);break;case 4:if(gn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,a=-1;0<r;){var l=31-It(r);s=1<<l,l=t[l],l>a&&(a=l),r&=~s}if(r=a,r=Se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*o0(r/1960))-r,10<r){e.timeoutHandle=Gl($n.bind(null,e,tt,Kt),r);break}$n(e,tt,Kt);break;case 5:$n(e,tt,Kt);break;default:throw Error(j(329))}}}return ot(e,Se()),e.callbackNode===n?Lm.bind(null,e):null}function fu(e,t){var n=Rr;return e.current.memoizedState.isDehydrated&&(Gn(e,t).flags|=256),e=Ro(e,t),e!==2&&(t=tt,tt=n,t!==null&&pu(t)),e}function pu(e){tt===null?tt=e:tt.push.apply(tt,e)}
vendor: 2,159 bytes, line 40
40function a0(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var a=n[r],s=a.getSnapshot;a=a.value;try{if(!zt(s(),a))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function gn(e,t){for(t&=~hc,t&=~Qo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-It(t),r=1<<n;e[n]=-1,t&=~r}}function Jd(e){if(ie&6)throw Error(j(327));ji();var t=yo(e,0);if(!(t&1))return ot(e,Se()),null;var n=Ro(e,t);if(e.tag!==0&&n===2){var r=Dl(e);r!==0&&(t=r,n=fu(e,r))}if(n===1)throw n=is,Gn(e,0),gn(e,t),ot(e,Se()),n;if(n===6)throw Error(j(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$n(e,tt,Kt),ot(e,Se()),null}function fc(e,t){var n=ie;ie|=1;try{return e(t)}finally{ie=n,ie===0&&(Hi=Se()+500,Go&&An())}}function Xn(e){wn!==null&&wn.tag===0&&!(ie&6)&&ji();var t=ie;ie|=1;var n=kt.transition,r=oe;try{if(kt.transition=null,oe=1,e)return e()}finally{oe=r,kt.transition=n,ie=t,!(ie&6)&&An()}}function pc(){lt=bi.current,pe(bi)}function Gn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ry(n)),Te!==null)for(n=Te.return;n!==null;){var r=n;switch(qu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&So();break;case 3:Fi(),pe(rt),pe(He),ic();break;case 5:nc(r);break;case 4:Fi();break;case 13:pe(ge);break;case 19:pe(ge);break;case 10:Yu(r.type._context);break;case 22:case 23:pc()}n=n.return}if(Ne=e,Te=e=Tn(e.current,null),De=lt=t,Me=0,is=null,hc=Qo=Yn=0,tt=Rr=null,Wn!==null){for(t=0;t<Wn.length;t++)if(n=Wn[t],r=n.interleaved,r!==null){n.interleaved=null;var a=r.next,s=n.pending;if(s!==null){var l=s.next;s.next=a,r.next=l}n.pending=r}Wn=null}return e}function Sm(e,t){do{var n=Te;try{if(Qu(),lo.current=Ao,Io){for(var r=ve.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Io=!1}if(Qn=0,ze=Oe=ve=null,Nr=!1,es=0,cc.current=null,n===null||n.return===null){Me=1,is=t,Te=null;break}e:{var s=e,l=n.return,c=n,d=t;
vendor: 8,957 bytes, line 40
40if(t=De,c.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){var p=d,m=c,_=m.tag;if(!(m.mode&1)&&(_===0||_===11||_===15)){var v=m.alternate;v?(m.updateQueue=v.updateQueue,m.memoizedState=v.memoizedState,m.lanes=v.lanes):(m.updateQueue=null,m.memoizedState=null)}var y=Rd(l);if(y!==null){y.flags&=-257,Bd(y,l,c,s,t),y.mode&1&&jd(s,p,t),t=y,d=p;var C=t.updateQueue;if(C===null){var P=new Set;P.add(d),t.updateQueue=P}else C.add(d);break e}else{if(!(t&1)){jd(s,p,t),mc();break e}d=Error(j(426))}}else if(me&&c.mode&1){var N=Rd(l);if(N!==null){!(N.flags&65536)&&(N.flags|=256),Bd(N,l,c,s,t),Ku(Zi(d,c));break e}}s=d=Zi(d,c),Me!==4&&(Me=2),Rr===null?Rr=[s]:Rr.push(s),s=l;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var x=am(s,d,t);Od(s,x);break e;case 1:c=d;var w=s.type,S=s.stateNode;if(!(s.flags&128)&&(typeof w.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Cn===null||!Cn.has(S)))){s.flags|=65536,t&=-t,s.lanes|=t;var M=lm(s,c,t);Od(s,M);break e}}s=s.return}while(s!==null)}Em(n)}catch(z){t=z,Te===n&&n!==null&&(Te=n=n.return);continue}break}while(!0)}function Pm(){var e=zo.current;return zo.current=Ao,e===null?Ao:e}function mc(){(Me===0||Me===3||Me===2)&&(Me=4),Ne===null||!(Yn&268435455)&&!(Qo&268435455)||gn(Ne,De)}function Ro(e,t){var n=ie;ie|=2;var r=Pm();(Ne!==e||De!==t)&&(Kt=null,Gn(e,t));do try{l0();break}catch(a){Sm(e,a)}while(!0);if(Qu(),ie=n,zo.current=r,Te!==null)throw Error(j(261));return Ne=null,De=0,Me}function l0(){for(;Te!==null;)Cm(Te)}function u0(){for(;Te!==null&&!zv();)Cm(Te)}function Cm(e){var t=bm(e.alternate,e,lt);e.memoizedProps=e.pendingProps,t===null?Em(e):Te=t,cc.current=null}function Em(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=n0(n,t),n!==null){n.flags&=32767,Te=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Me=6,Te=null;return}}else if(n=t0(n,t,lt),n!==null){Te=n;return}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);Me===0&&(Me=5)}function $n(e,t,n){var r=oe,a=kt.transition;try{kt.transition=null,oe=1,c0(e,t,n,r)}finally{kt.transition=a,oe=r}return null}function c0(e,t,n,r){do ji();while(wn!==null);if(ie&6)throw Error(j(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(j(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Hv(e,s),e===Ne&&(Te=Ne=null,De=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ks||(Ks=!0,Om(vo,function(){return ji(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=kt.transition,kt.transition=null;var l=oe;oe=1;var c=ie;ie|=4,cc.current=null,r0(e,n),xm(n,e),Oy(Wl),wo=!!Hl,Wl=Hl=null,e.current=n,s0(n),Nv(),ie=c,oe=l,kt.transition=s}else e.current=n;if(Ks&&(Ks=!1,wn=e,jo=a),s=e.pendingLanes,s===0&&(Cn=null),Bv(n.stateNode),ot(e,Se()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(No)throw No=!1,e=hu,hu=null,e;return jo&1&&e.tag!==0&&ji(),s=e.pendingLanes,s&1?e===du?Br++:(Br=0,du=e):Br=0,An(),null}function ji(){if(wn!==null){var e=ap(jo),t=kt.transition,n=oe;try{if(kt.transition=null,oe=16>e?16:e,wn===null)var r=!1;else{if(e=wn,wn=null,jo=0,ie&6)throw Error(j(331));var a=ie;for(ie|=4,F=e.current;F!==null;){var s=F,l=s.child;if(F.flags&16){var c=s.deletions;if(c!==null){for(var d=0;d<c.length;d++){var p=c[d];for(F=p;F!==null;){var m=F;switch(m.tag){case 0:case 11:case 15:jr(8,m,s)}var _=m.child;if(_!==null)_.return=m,F=_;else for(;F!==null;){m=F;var v=m.sibling,y=m.return;if(vm(m),m===p){F=null;break}if(v!==null){v.return=y,F=v;break}F=y}}}var C=s.alternate;if(C!==null){var P=C.child;if(P!==null){C.child=null;do{var N=P.sibling;P.sibling=null,P=N}while(P!==null)}}F=s}}if(s.subtreeFlags&2064&&l!==null)l.return=s,F=l;else e:for(;F!==null;){if(s=F,s.flags&2048)switch(s.tag){case 0:case 11:case 15:jr(9,s,s.return)}var x=s.sibling;if(x!==null){x.return=s.return,F=x;break e}F=s.return}}var w=e.current;for(F=w;F!==null;){l=F;var S=l.child;if(l.subtreeFlags&2064&&S!==null)S.return=l,F=S;else e:for(l=w;F!==null;){if(c=F,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Jo(9,c)}}catch(z){xe(c,c.return,z)}if(c===l){F=null;break e}var M=c.sibling;if(M!==null){M.return=c.return,F=M;break e}F=c.return}}if(ie=a,An(),Zt&&typeof Zt.onPostCommitFiberRoot=="function")try{Zt.onPostCommitFiberRoot(Fo,e)}catch{}r=!0}return r}finally{oe=n,kt.transition=t}}return!1}function Qd(e,t,n){t=Zi(n,t),t=am(e,t,1),e=Pn(e,t,1),t=qe(),e!==null&&(as(e,1,t),ot(e,t))}function xe(e,t,n){if(e.tag===3)Qd(e,e,n);else for(;t!==null;){if(t.tag===3){Qd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Cn===null||!Cn.has(r))){e=Zi(n,e),e=lm(t,e,1),t=Pn(t,e,1),e=qe(),t!==null&&(as(t,1,e),ot(t,e));break}}t=t.return}}function h0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=qe(),e.pingedLanes|=e.suspendedLanes&n,Ne===e&&(De&n)===n&&(Me===4||Me===3&&(De&130023424)===De&&500>Se()-dc?Gn(e,0):hc|=n),ot(e,t)}function Tm(e,t){t===0&&(e.mode&1?(t=Ds,Ds<<=1,!(Ds&130023424)&&(Ds=4194304)):t=1);var n=qe();e=rn(e,t),e!==null&&(as(e,t,n),ot(e,n))}function d0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Tm(e,n)}function f0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),Tm(e,n)}var bm;bm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)it=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return it=!1,e0(e,t,n);it=!!(e.flags&131072)}else it=!1,me&&t.flags&1048576&&Ap(t,Eo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;co(e,t),e=t.pendingProps;var a=Di(t,He.current);Ni(t,n),a=sc(null,t,r,e,a,n);var s=oc();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,st(r)?(s=!0,Po(t)):s=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ec(t),a.updater=Ko,t.stateNode=a,a._reactInternals=t,eu(t,r,e,n),t=iu(null,t,r,!0,s,n)):(t.tag=0,me&&s&&Gu(t),Ge(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(co(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=m0(r),e=Tt(r,e),a){case 0:t=nu(null,t,r,e,n);break e;case 1:t=$d(null,t,r,e,n);break e;case 11:t=Dd(null,t,r,e,n);break e;case 14:t=Ud(null,t,r,Tt(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Tt(r,a),nu(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Tt(r,a),$d(e,t,r,a,n);case 3:e:{if(dm(t),e===null)throw Error(j(387));r=t.pendingProps,s=t.memoizedState,a=s.element,Dp(e,t),Oo(t,r,null,n);var l=t.memoizedState;if(r=l.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){a=Zi(Error(j(423)),t),t=Fd(e,t,r,n,a);break e}else if(r!==a){a=Zi(Error(j(424)),t),t=Fd(e,t,r,n,a);break e}else for(ut=Sn(t.stateNode.containerInfo.firstChild),ct=t,me=!0,Mt=null,n=Rp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ui(),r===a){t=sn(e,t,n);break e}Ge(e,t,r,n)}t=t.child}return t;case 5:return Up(t),e===null&&Ql(t),r=t.type,a=t.pendingProps,s=e!==null?e.memoizedProps:null,l=a.children,Vl(r,a)?l=null:s!==null&&Vl(r,s)&&(t.flags|=32),hm(e,t),Ge(e,t,l,n),t.child;case 6:return e===null&&Ql(t),null;case 13:return fm(e,t,n);case 4:return tc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$i(t,null,r,n):Ge(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Tt(r,a),Dd(e,t,r,a,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,s=t.memoizedProps,l=a.value,de(To,r._currentValue),r._currentValue=l,s!==null)if(zt(s.value,l)){if(s.children===a.children&&!rt.current){t=sn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var c=s.dependencies;if(c!==null){l=s.child;for(var d=c.firstContext;d!==null;){if(d.context===r){if(s.tag===1){d=en(-1,n&-n),d.tag=2;var p=s.updateQueue;if(p!==null){p=p.shared;var m=p.pending;m===null?d.next=d:(d.next=m.next,m.next=d),p.pending=d}}s.lanes|=n,d=s.alternate,d!==null&&(d.lanes|=n),Yl(s.return,n,t),c.lanes|=n;break}d=d.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(j(341));l.lanes|=n,c=l.alternate,c!==null&&(c.lanes|=n),Yl(l,n,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}Ge(e,t,a.children,n),t=t.child}return t;
vendor: 10,862 bytes, line 40
40case 9:return a=t.type,r=t.pendingProps.children,Ni(t,n),a=Lt(a),r=r(a),t.flags|=1,Ge(e,t,r,n),t.child;case 14:return r=t.type,a=Tt(r,t.pendingProps),a=Tt(r.type,a),Ud(e,t,r,a,n);case 15:return um(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Tt(r,a),co(e,t),t.tag=1,st(r)?(e=!0,Po(t)):e=!1,Ni(t,n),om(t,r,a),eu(t,r,a,n),iu(null,t,r,!0,e,n);case 19:return pm(e,t,n);case 22:return cm(e,t,n)}throw Error(j(156,t.tag))};function Om(e,t){return ip(e,t)}function p0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,n,r){return new p0(e,t,n,r)}function _c(e){return e=e.prototype,!(!e||!e.isReactComponent)}function m0(e){if(typeof e=="function")return _c(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Nu)return 11;if(e===ju)return 14}return 2}function Tn(e,t){var n=e.alternate;return n===null?(n=xt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function po(e,t,n,r,a,s){var l=2;if(r=e,typeof e=="function")_c(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case yi:return qn(n.children,a,s,t);case zu:l=8,a|=8;break;case Sl:return e=xt(12,n,t,a|2),e.elementType=Sl,e.lanes=s,e;case Pl:return e=xt(13,n,t,a),e.elementType=Pl,e.lanes=s,e;case Cl:return e=xt(19,n,t,a),e.elementType=Cl,e.lanes=s,e;case Uf:return Yo(n,a,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bf:l=10;break e;case Df:l=9;break e;case Nu:l=11;break e;case ju:l=14;break e;case fn:l=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=xt(l,n,t,a),t.elementType=e,t.type=r,t.lanes=s,t}function qn(e,t,n,r){return e=xt(7,e,r,t),e.lanes=n,e}function Yo(e,t,n,r){return e=xt(22,e,r,t),e.elementType=Uf,e.lanes=n,e.stateNode={isHidden:!1},e}function _l(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function gl(e,t,n){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _0(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Qa(0),this.expirationTimes=Qa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qa(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function gc(e,t,n,r,a,s,l,c,d){return e=new _0(e,t,n,c,d),t===1?(t=1,s===!0&&(t|=8)):t=0,s=xt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ec(s),e}function g0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:vi,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Mm(e){if(!e)return On;e=e._reactInternals;e:{if(ti(e)!==e||e.tag!==1)throw Error(j(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(st(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(j(171))}if(e.tag===1){var n=e.type;if(st(n))return Mp(e,n,t)}return t}function Im(e,t,n,r,a,s,l,c,d){return e=gc(n,r,!0,e,a,s,l,c,d),e.context=Mm(null),n=e.current,r=qe(),a=En(n),s=en(r,a),s.callback=t??null,Pn(n,s,a),e.current.lanes=a,as(e,a,r),ot(e,r),e}function Xo(e,t,n,r){var a=t.current,s=qe(),l=En(a);return n=Mm(n),t.context===null?t.context=n:t.pendingContext=n,t=en(s,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Pn(a,t,l),e!==null&&(At(e,a,l,s),ao(e,a,l)),l}function Bo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Yd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vc(e,t){Yd(e,t),(e=e.alternate)&&Yd(e,t)}function v0(){return null}var Am=typeof reportError=="function"?reportError:function(e){console.error(e)};function yc(e){this._internalRoot=e}ea.prototype.render=yc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));Xo(e,t,null,null)};ea.prototype.unmount=yc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xn(function(){Xo(null,e,null,null)}),t[nn]=null}};function ea(e){this._internalRoot=e}ea.prototype.unstable_scheduleHydration=function(e){if(e){var t=cp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_n.length&&t!==0&&t<_n[n].priority;n++);_n.splice(n,0,e),n===0&&dp(e)}};function wc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ta(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xd(){}function y0(e,t,n,r,a){if(a){if(typeof r=="function"){var s=r;r=function(){var p=Bo(l);s.call(p)}}var l=Im(t,r,e,0,null,!1,!1,"",Xd);return e._reactRootContainer=l,e[nn]=l.current,Kr(e.nodeType===8?e.parentNode:e),Xn(),l}for(;a=e.lastChild;)e.removeChild(a);if(typeof r=="function"){var c=r;r=function(){var p=Bo(d);c.call(p)}}var d=gc(e,0,!1,null,null,!1,!1,"",Xd);return e._reactRootContainer=d,e[nn]=d.current,Kr(e.nodeType===8?e.parentNode:e),Xn(function(){Xo(t,d,n,r)}),d}function na(e,t,n,r,a){var s=n._reactRootContainer;if(s){var l=s;if(typeof a=="function"){var c=a;a=function(){var d=Bo(l);c.call(d)}}Xo(t,l,e,a)}else l=y0(n,t,e,a,r);return Bo(l)}lp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Er(t.pendingLanes);n!==0&&(Du(t,n|1),ot(t,Se()),!(ie&6)&&(Hi=Se()+500,An()))}break;case 13:Xn(function(){var r=rn(e,1);if(r!==null){var a=qe();At(r,e,1,a)}}),vc(e,1)}};Uu=function(e){if(e.tag===13){var t=rn(e,134217728);if(t!==null){var n=qe();At(t,e,134217728,n)}vc(e,134217728)}};up=function(e){if(e.tag===13){var t=En(e),n=rn(e,t);if(n!==null){var r=qe();At(n,e,t,r)}vc(e,t)}};cp=function(){return oe};hp=function(e,t){var n=oe;try{return oe=e,t()}finally{oe=n}};jl=function(e,t,n){switch(t){case"input":if(bl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=Vo(r);if(!a)throw Error(j(90));Ff(r),bl(r,a)}}}break;case"textarea":Hf(e,n);break;case"select":t=n.value,t!=null&&Mi(e,!!n.multiple,t,!1)}};Qf=fc;Yf=Xn;var w0={usingClientEntryPoint:!1,Events:[us,Li,Vo,Kf,Jf,fc]},kr={findFiberByHostInstance:Hn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},x0={bundleType:kr.bundleType,version:kr.version,rendererPackageName:kr.rendererPackageName,rendererConfig:kr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:on.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=tp(e),e===null?null:e.stateNode},findFiberByHostInstance:kr.findFiberByHostInstance||v0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Js=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Js.isDisabled&&Js.supportsFiber)try{Fo=Js.inject(x0),Zt=Js}catch{}}dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w0;dt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wc(t))throw Error(j(200));return g0(e,t,null,n)};dt.createRoot=function(e,t){if(!wc(e))throw Error(j(299));var n=!1,r="",a=Am;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=gc(e,1,!1,null,null,n,!1,r,a),e[nn]=t.current,Kr(e.nodeType===8?e.parentNode:e),new yc(t)};dt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=tp(t),e=e===null?null:e.stateNode,e};dt.flushSync=function(e){return Xn(e)};dt.hydrate=function(e,t,n){if(!ta(t))throw Error(j(200));return na(null,e,t,!0,n)};dt.hydrateRoot=function(e,t,n){if(!wc(e))throw Error(j(405));var r=n!=null&&n.hydratedSources||null,a=!1,s="",l=Am;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Im(t,null,e,1,n??null,a,!1,s,l),e[nn]=t.current,Kr(e),r)for(e=0;e<r.length;e++)n=r[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new ea(t)};dt.render=function(e,t,n){if(!ta(t))throw Error(j(200));return na(null,e,t,!1,n)};dt.unmountComponentAtNode=function(e){if(!ta(e))throw Error(j(40));return e._reactRootContainer?(Xn(function(){na(null,null,e,!1,function(){e._reactRootContainer=null,e[nn]=null})}),!0):!1};dt.unstable_batchedUpdates=fc;dt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ta(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return na(e,t,n,!1,r)};dt.version="18.3.1-next-f1338f8080-20240426";function zm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zm)}catch(e){console.error(e)}}zm(),zf.exports=dt;var Nm=zf.exports,jm,ef=Nm;jm=ef.createRoot,ef.hydrateRoot;function xc(e,t){const n=B.useRef(t);B.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}function k0(e,t,n){t.center!==n.center&&e.setLatLng(t.center),t.radiu
40s!=null&&t.radius!==n.radius&&e.setRadius(t.radius)}const Rm=1;function Bm(e){return Object.freeze({__version:Rm,map:e})}function Dm(e,t){return Object.freeze({...e,...t})}const kc=B.createContext(null),Lc=kc.Provider;function Qi(){const e=B.useContext(kc);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function Sc(e){function t(n,r){const{instance:a,context:s}=e(n).current;return B.useImperativeHandle(r,()=>a),n.children==null?null:kl.createElement(Lc,{value:s},n.children)}return B.forwardRef(t)}function Um(e){function t(n,r){const[a,s]=B.useState(!1),{instance:l}=e(n,s).current;B.useImperativeHandle(r,()=>l),B.useEffect(function(){a&&l.update()},[l,a,n.children]);const c=l._contentNode;return c?Nm.createPortal(n.children,c):null}return B.forwardRef(t)}function Pc(e){function t(n,r){const{instance:a}=e(n).current;return B.useImperativeHandle(r,()=>a),null}return B.forwardRef(t)}function $m(e){return function(n){const r=Qi(),a=e(n,r),{instance:s}=a.current,l=B.useRef(n.position),{position:c}=n;return B.useEffect(function(){return s.addTo(r.map),function(){s.remove()}},[r.map,s]),B.useEffect(function(){c!=null&&c!==l.current&&(s.setPosition(c),l.current=c)},[s,c]),a}}function ia(e,t){const n=B.useRef();B.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function hs(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function Fm(e,t){return function(r,a){const s=Qi(),l=e(hs(r,s),s);return xc(s.map,r.attribution),ia(l.current,r.eventHandlers),t(l.current,s,r,a),l}}var mu={exports:{}};/* @preserve
41 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
42 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
43 */(function(e,t){(function(n,r){r(t)})(be,function(n){var r="1.9.4";function a(i){var o,u,h,f;for(u=1,h=arguments.length;u<h;u++){f=arguments[u];for(o in f)i[o]=f[o]}return i}var s=Object.create||function(){function i(){}return function(o){return i.prototype=o,new i}}();function l(i,o){var u=Array.prototype.slice;if(i.bind)return i.bind.apply(i,u.call(arguments,1));var h=u.call(arguments,2);return function(){return i.apply(o,h.length?h.concat(u.call(arguments)):arguments)}}var c=0;function d(i){return"_leaflet_id"in i||(i._leaflet_id=++c),i._leaflet_id}function p(i,o,u){var h,f,g,k;return k=function(){h=!1,f&&(g.apply(u,f),f=!1)},g=function(){h?f=arguments:(i.apply(u,arguments),setTimeout(k,o),h=!0)},g}function m(i,o,u){var h=o[1],f=o[0],g=h-f;return i===h&&u?i:((i-f)%g+g)%g+f}function _(){return!1}function v(i,o){if(o===!1)return i;var u=Math.pow(10,o===void 0?6:o);return Math.round(i*u)/u}function y(i){return i.trim?i.trim():i.replace(/^\s+|\s+$/g,"")}function C(i){return y(i).split(/\s+/)}function P(i,o){Object.prototype.hasOwnProperty.call(i,"options")||(i.options=i.options?s(i.options):{});for(var u in o)i.options[u]=o[u];return i.options}function N(i,o,u){var h=[];for(var f in i)h.push(encodeURIComponent(u?f.toUpperCase():f)+"="+encodeURIComponent(i[f]));return(!o||o.indexOf("?")===-1?"?":"&")+h.join("&")}var x=/\{ *([\w_ -]+) *\}/g;function w(i,o){return i.replace(x,function(u,h){var f=o[h];if(f===void 0)throw new Error("No value provided for variable "+u);return typeof f=="function"&&(f=f(o)),f})}var S=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"};function M(i,o){for(var u=0;u<i.length;u++)if(i[u]===o)return u;return-1}var z="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function D(i){return window["webkit"+i]||window["moz"+i]||window["ms"+i]}var R=0;function Z(i){var o=+new Date,u=Math.max(0,16-(o-R));return R=o+u,window.setTimeout(i,u)}var ue=window.requestAnimationFrame||D("RequestAnimationFrame")||Z,J=window.cancelAnimationFrame||D("CancelAnimationFrame")||D("CancelRequestAnimationFrame")||function(i){window.clearTimeout(i)};function ae(i,o,u){if(u&&ue===Z)i.call(o);else return ue.call(window,l(i,o))}function ke(i){i&&J.call(window,i)}var pt={__proto__:null,extend:a,create:s,bind:l,get lastId(){return c},stamp:d,throttle:p,wrapNum:m,falseFn:_,formatNum:v,trim:y,splitWords:C,setOptions:P,getParamString:N,template:w,isArray:S,indexOf:M,emptyImageUrl:z,requestFn:ue,cancelFn:J,requestAnimFrame:ae,cancelAnimFrame:ke};function je(){}je.extend=function(i){var o=function(){P(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},u=o.__super__=this.prototype,h=s(u);h.constructor=o,o.prototype=h;for(var f in this)Object.prototype.hasOwnProperty.call(this,f)&&f!=="prototype"&&f!=="__super__"&&(o[f]=this[f]);return i.statics&&a(o,i.statics),i.includes&&(ri(i.includes),a.apply(null,[h].concat(i.includes))),a(h,i),delete h.statics,delete h.includes,h.options&&(h.options=u.options?s(u.options):{},a(h.options,i.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){u.callInitHooks&&u.callInitHooks.call(this),this._initHooksCalled=!0;for(var g=0,k=h._initHooks.length;g<k;g++)h._initHooks[g].call(this)}},o},je.include=function(i){var o=this.prototype.options;
43return a(this.prototype,i),i.options&&(this.prototype.options=o,this.mergeOptions(i.options)),this},je.mergeOptions=function(i){return a(this.prototype.options,i),this},je.addInitHook=function(i){var o=Array.prototype.slice.call(arguments,1),u=typeof i=="function"?i:function(){this[i].apply(this,o)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(u),this};function ri(i){if(!(typeof L>"u"||!L||!L.Mixin)){i=S(i)?i:[i];for(var o=0;o<i.length;o++)i[o]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Pe={on:function(i,o,u){if(typeof i=="object")for(var h in i)this._on(h,i[h],o);else{i=C(i);for(var f=0,g=i.length;f<g;f++)this._on(i[f],o,u)}return this},off:function(i,o,u){if(!arguments.length)delete this._events;else if(typeof i=="object")for(var h in i)this._off(h,i[h],o);else{i=C(i);for(var f=arguments.length===1,g=0,k=i.length;g<k;g++)f?this._off(i[g]):this._off(i[g],o,u)}return this},_on:function(i,o,u,h){if(typeof o!="function"){console.warn("wrong listener type: "+typeof o);return}if(this._listens(i,o,u)===!1){u===this&&(u=void 0);var f={fn:o,ctx:u};h&&(f.once=!0),this._events=this._events||{},this._events[i]=this._events[i]||[],this._events[i].push(f)}},_off:function(i,o,u){var h,f,g;if(this._events&&(h=this._events[i],!!h)){if(arguments.length===1){if(this._firingCount)for(f=0,g=h.length;f<g;f++)h[f].fn=_;delete this._events[i];return}if(typeof o!="function"){console.warn("wrong listener type: "+typeof o);return}var k=this._listens(i,o,u);if(k!==!1){var T=h[k];this._firingCount&&(T.fn=_,this._events[i]=h=h.slice()),h.splice(k,1)}}},fire:function(i,o,u){if(!this.listens(i,u))return this;var h=a({},o,{type:i,target:this,sourceTarget:o&&o.sourceTarget||this});if(this._events){var f=this._events[i];if(f){this._firingCount=this._firingCount+1||1;for(var g=0,k=f.length;g<k;g++){var T=f[g],O=T.fn;T.once&&this.off(i,O,T.ctx),O.call(T.ctx||this,h)}this._firingCount--}}return u&&this._propagateEvent(h),this},listens:function(i,o,u,h){typeof i!="string"&&console.warn('"string" type argument expected');var f=o;typeof o!="function"&&(h=!!o,f=void 0,u=void 0);var g=this._events&&this._events[i];if(g&&g.length&&this._listens(i,f,u)!==!1)return!0;if(h){for(var k in this._eventParents)if(this._eventParents[k].listens(i,o,u,h))return!0}return!1},_listens:function(i,o,u){if(!this._events)return!1;var h=this._events[i]||[];if(!o)return!!h.length;u===this&&(u=void 0);for(var f=0,g=h.length;f<g;f++)if(h[f].fn===o&&h[f].ctx===u)return f;return!1},once:function(i,o,u){if(typeof i=="object")for(var h in i)this._on(h,i[h],o,!0);else{i=C(i);for(var f=0,g=i.length;f<g;f++)this._on(i[f],o,u,!0)}return this},addEventParent:function(i){return this._eventParents=this._eventParents||{},this._eventParents[d(i)]=i,this},removeEventParent:function(i){return this._eventParents&&delete this._eventParents[d(i)],this},_propagateEvent:function(i){for(var o in this._eventParents)this._eventParents[o].fire(i.type,a({layer:i.target,propagatedFrom:i.target},i),!0)}};Pe.addEventListener=Pe.on,Pe.removeEventListener=Pe.clearAllEventListeners=Pe.off,Pe.addOneTimeEventListener=Pe.once,Pe.fireEvent=Pe.fire,Pe.hasEventListeners=Pe.listens;var mt=je.extend(Pe);function b(i,o,u){this.x=u?Math.round(i):i,this.y=u?Math.round(o):o}var $=Math.trunc||function(i){return i>0?Math.floor(i):Math.ceil(i)};b.prototype={clone:function(){return new b(this.x,this.y)},add:function(i){return this.clone()._add(I(i))},_add:function(i){return this.x+=i.x,this.y+=i.y,this},subtract:function(i){return this.clone()._subtract(I(i))},_subtract:function(i){return this.x-=i.x,this.y-=i.y,this},divideBy:function(i){return this.clone()._divideBy(i)},_divideBy:function(i){return this.x/=i,this.y/=i,this},multiplyBy:function(i){return this.clone()._multiplyBy(i)},_multiplyBy:function(i){return this.x*=i,this.y*=i,this},scaleBy:function(i){return new b(this.x*i.x,this.y*i.y)},unscaleBy:function(i){return new b(this.x/i.x,this.y/i.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=$(this.x),this.y=$(this.y),this},distanceTo:function(i){i=I(i);var o=i.x-this.x,u=i.y-this.y;return Math.sqrt(o*o+u*u)},equals:function(i){return i=I(i),i.x===this.x&&i.y===this.y},contains:function(i){return i=I(i),Math.abs(i.x)<=Math.abs(this.x)&&Math.abs(i.y)<=Math.abs(this.y)},toString:function(){return"Point("+v(this.x)+", "+v(this.y)+")"}};function I(i,o,u){return i instanceof b?i:S(i)?new b(i[0],i[1]):i==null?i:typeof i=="object"&&"x"in i&&"y"in i?new b(i.x,i.y):new b(i,o,u)}function H(i,o){if(i)for(var u=o?[i,o]:i,h=0,f=u.length;h<f;h++)this.extend(u[h])}H.prototype={extend:function(i){var o,u;if(!i)return this;if(i instanceof b||typeof i[0]=="number"||"x"in i)o=u=I(i);else if(i=G(i),o=i.min,u=i.max,!o||!u)return this;return!this.min&&!this.max?(this.min=o.clone(),this.max=u.clone()):(this.min.x=Math.min(o.x,this.min.x),this.max.x=Math.max(u.x,this.max.x),this.min.y=Math.min(o.y,this.min.y),this.max.y=Math.max(u.y,this.max.y)),this},getCenter:function(i){return I((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,i)},getBottomLeft:function(){return I(this.min.x,this.max.y)},getTopRight:function(){return I(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(i){var o,u;return typeof i[0]=="number"||i instanceof b?i=I(i):i=G(i),i instanceof H?(o=i.min,u=i.max):o=u
43=i,o.x>=this.min.x&&u.x<=this.max.x&&o.y>=this.min.y&&u.y<=this.max.y},intersects:function(i){i=G(i);var o=this.min,u=this.max,h=i.min,f=i.max,g=f.x>=o.x&&h.x<=u.x,k=f.y>=o.y&&h.y<=u.y;return g&&k},overlaps:function(i){i=G(i);var o=this.min,u=this.max,h=i.min,f=i.max,g=f.x>o.x&&h.x<u.x,k=f.y>o.y&&h.y<u.y;return g&&k},isValid:function(){return!!(this.min&&this.max)},pad:function(i){var o=this.min,u=this.max,h=Math.abs(o.x-u.x)*i,f=Math.abs(o.y-u.y)*i;return G(I(o.x-h,o.y-f),I(u.x+h,u.y+f))},equals:function(i){return i?(i=G(i),this.min.equals(i.getTopLeft())&&this.max.equals(i.getBottomRight())):!1}};function G(i,o){return!i||i instanceof H?i:new H(i,o)}function we(i,o){if(i)for(var u=o?[i,o]:i,h=0,f=u.length;h<f;h++)this.extend(u[h])}we.prototype={extend:function(i){var o=this._southWest,u=this._northEast,h,f;if(i instanceof re)h=i,f=i;else if(i instanceof we){if(h=i._southWest,f=i._northEast,!h||!f)return this}else return i?this.extend(q(i)||le(i)):this;return!o&&!u?(this._southWest=new re(h.lat,h.lng),this._northEast=new re(f.lat,f.lng)):(o.lat=Math.min(h.lat,o.lat),o.lng=Math.min(h.lng,o.lng),u.lat=Math.max(f.lat,u.lat),u.lng=Math.max(f.lng,u.lng)),this},pad:function(i){var o=this._southWest,u=this._northEast,h=Math.abs(o.lat-u.lat)*i,f=Math.abs(o.lng-u.lng)*i;return new we(new re(o.lat-h,o.lng-f),new re(u.lat+h,u.lng+f))},getCenter:function(){return new re((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new re(this.getNorth(),this.getWest())},getSouthEast:function(){return new re(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(i){typeof i[0]=="number"||i instanceof re||"lat"in i?i=q(i):i=le(i);var o=this._southWest,u=this._northEast,h,f;
43return i instanceof we?(h=i.getSouthWest(),f=i.getNorthEast()):h=f=i,h.lat>=o.lat&&f.lat<=u.lat&&h.lng>=o.lng&&f.lng<=u.lng},intersects:function(i){i=le(i);var o=this._southWest,u=this._northEast,h=i.getSouthWest(),f=i.getNorthEast(),g=f.lat>=o.lat&&h.lat<=u.lat,k=f.lng>=o.lng&&h.lng<=u.lng;return g&&k},overlaps:function(i){i=le(i);var o=this._southWest,u=this._northEast,h=i.getSouthWest(),f=i.getNorthEast(),g=f.lat>o.lat&&h.lat<u.lat,k=f.lng>o.lng&&h.lng<u.lng;return g&&k},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(i,o){return i?(i=le(i),this._southWest.equals(i.getSouthWest(),o)&&this._northEast.equals(i.getNorthEast(),o)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function le(i,o){return i instanceof we?i:new we(i,o)}function re(i,o,u){if(isNaN(i)||isNaN(o))throw new Error("Invalid LatLng object: ("+i+", "+o+")");this.lat=+i,this.lng=+o,u!==void 0&&(this.alt=+u)}re.prototype={equals:function(i,o){if(!i)return!1;i=q(i);var u=Math.max(Math.abs(this.lat-i.lat),Math.abs(this.lng-i.lng));return u<=(o===void 0?1e-9:o)},toString:function(i){return"LatLng("+v(this.lat,i)+", "+v(this.lng,i)+")"},distanceTo:function(i){return an.distance(this,q(i))},wrap:function(){return an.wrapLatLng(this)},toBounds:function(i){var o=180*i/40075017,u=o/Math.cos(Math.PI/180*this.lat);return le([this.lat-o,this.lng-u],[this.lat+o,this.lng+u])},clone:function(){return new re(this.lat,this.lng,this.alt)}};function q(i,o,u){return i instanceof re?i:S(i)&&typeof i[0]!="object"?i.length===3?new re(i[0],i[1],i[2]):i.length===2?new re(i[0],i[1]):null:i==null?i:typeof i=="object"&&"lat"in i?new re(i.lat,"lng"in i?i.lng:i.lon,i.alt):o===void 0?null:new re(i,o,u)}var Ye={latLngToPoint:function(i,o){var u=this.projection.project(i),h=this.scale(o);return this.transformation._transform(u,h)},pointToLatLng:function(i,o){var u=this.scale(o),h=this.transformation.untransform(i,u);return this.projection.unproject(h)},project:function(i){return this.projection.project(i)},unproject:function(i){return this.projection.unproject(i)},scale:function(i){return 256*Math.pow(2,i)},zoom:function(i){return Math.log(i/256)/Math.LN2},getProjectedBounds:function(i){if(this.infinite)return null;var o=this.projection.bounds,u=this.scale(i),h=this.transformation.transform(o.min,u),f=this.transformation.transform(o.max,u);return new H(h,f)},infinite:!1,wrapLatLng:function(i){var o=this.wrapLng?m(i.lng,this.wrapLng,!0):i.lng,u=this.wrapLat?m(i.lat,this.wrapLat,!0):i.lat,h=i.alt;return new re(u,o,h)},wrapLatLngBounds:function(i){var o=i.getCenter(),u=this.wrapLatLng(o),h=o.lat-u.lat,f
43=o.lng-u.lng;if(h===0&&f===0)return i;var g=i.getSouthWest(),k=i.getNorthEast(),T=new re(g.lat-h,g.lng-f),O=new re(k.lat-h,k.lng-f);return new we(T,O)}},an=a({},Ye,{wrapLng:[-180,180],R:6371e3,distance:function(i,o){var u=Math.PI/180,h=i.lat*u,f=o.lat*u,g=Math.sin((o.lat-i.lat)*u/2),k=Math.sin((o.lng-i.lng)*u/2),T=g*g+Math.cos(h)*Math.cos(f)*k*k,O=2*Math.atan2(Math.sqrt(T),Math.sqrt(1-T));return this.R*O}}),jc=6378137,da={R:jc,MAX_LATITUDE:85.0511287798,project:function(i){var o=Math.PI/180,u=this.MAX_LATITUDE,h=Math.max(Math.min(u,i.lat),-u),f=Math.sin(h*o);return new b(this.R*i.lng*o,this.R*Math.log((1+f)/(1-f))/2)},unproject:function(i){var o=180/Math.PI;return new re((2*Math.atan(Math.exp(i.y/this.R))-Math.PI/2)*o,i.x*o/this.R)},bounds:function(){var i=jc*Math.PI;return new H([-i,-i],[i,i])}()};function fa(i,o,u,h){if(S(i)){this._a=i[0],this._b=i[1],this._c=i[2],this._d=i[3];return}this._a=i,this._b=o,this._c=u,this._d=h}fa.prototype={transform:function(i,o){return this._transform(i.clone(),o)},_transform:function(i,o){return o=o||1,i.x=o*(this._a*i.x+this._b),i.y=o*(this._c*i.y+this._d),i},untransform:function(i,o){return o=o||1,new b((i.x/o-this._b)/this._a,(i.y/o-this._d)/this._c)}};function tr(i,o,u,h){return new fa(i,o,u,h)}var pa=a({},an,{code:"EPSG:3857",projection:da,transformation:function(){var i=.5/(Math.PI*da.R);return tr(i,.5,-i,.5)}()}),E_=a({},pa,{code:"EPSG:900913"});function Rc(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Bc(i,o){var u="",h,f,g,k,T,O;for(h=0,g=i.length;h<g;h++){for(T=i[h],f=0,k=T.length;f<k;f++)O=T[f],u+=(f?"L":"M")+O.x+" "+O.y;u+=o?W.svg?"z":"x":""}return u||"M0 0"}var ma=document.documentElement.style,ms="ActiveXObject"in window,T_=ms&&!document.addEventListener,Dc="msLaunchUri"in navigator&&!("documentMode"in document),_a=Nt("webkit"),Uc=Nt("android"),$c=Nt("android 2")||Nt("android 3"),b_=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),O_=Uc&&Nt("Google")&&b_<537&&!("AudioNode"in window),ga=!!window.opera,Fc=!Dc&&Nt("chrome"),Zc=Nt("gecko")&&!_a&&!ga&&!ms,M_=!Fc&&Nt("safari"),Hc=Nt("phantom"),Wc="OTransition"in ma,I_=navigator.platform.indexOf("Win")===0,Vc=ms&&"transition"in ma,va="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!$c,Gc="MozPerspective"in ma,A_=!window.L_DISABLE_3D&&(Vc||va||Gc)&&!Wc&&!Hc,nr=typeof orientation<"u"||Nt("mobile"),z_=nr&&_a,N_=nr&&va,qc=!window.PointerEvent&&window.MSPointerEvent,Kc=!!(window.PointerEvent||qc),Jc="ontouchstart"in window||!!window.TouchEvent,j_=!window.L_NO_TOUCH&&(Jc||Kc),R_=nr&&ga,B_=nr&&Zc,D_=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,U_=function(){var i=!1;try{var o=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("testPassiveEventSupport",_,o),window.removeEventListener("testPassiveEventSupport",_,o)}catch{}return i}(),$_=function(){return!!document.createElement("canvas").getContext}(),ya=!!(document.createElementNS&&Rc("svg").createSVGRect),F_=!!ya&&function(){var i=document.createElement("div");return i.innerHTML="<svg/>",(i.firstChild&&i.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Z_=!ya&&function(){try{var i=document.createElement("div");i.innerHTML='<v:shape adj="1"/>';var o=i.firstChild;return o.style.behavior="url(#default#VML)",o&&typeof o.adj=="object"}catch{return!1}}(),H_=navigator.platform.indexOf("Mac")===0,W_=navigator.platform.indexOf("Linux")===0;function Nt(i){return navigator.userAgent.toLowerCase().indexOf(i)>=0}var W={ie:ms,ielt9:T_,edge:Dc,webkit:_a,android:Uc,android23:$c,androidStock:O_,opera:ga,chrome:Fc,gecko:Zc,safari:M_,phantom:Hc,opera12:Wc,win:I_,ie3d:Vc,webkit3d:va,gecko3d:Gc,any3d:A_,mobile:nr,mobileWebkit:z_,mobileWebkit3d:N_,msPointer:qc,pointer:Kc,touch:j_,touchNative:Jc,mobileOpera:R_,mobileGecko:B_,retina:D_,passiveEvents:U_,canvas:$_,svg:ya,vml:Z_,inlineSvg:F_,mac:H_,linux:W_},Qc=W.msPointer?"MSPointerDown":"pointerdown",Yc=W.msPointer?"MSPointerMove":"pointermove",Xc=W.msPointer?"MSPointerUp":"pointerup",eh=W.msPointer?"MSPointerCancel":"pointercancel",wa={touchstart:Qc,touchmove:Yc,touchend:Xc,touchcancel:eh},th={touchstart:Q_,touchmove:_s,touchend:_s,touchcancel:_s},si={},nh=!1;function V_(i,o,u){return o==="touchstart"&&J_(),th[o]?(u=th[o].bind(this,u),i.addEventListener(wa[o],u,!1),u):(console.warn("wrong event specified:",o),_)}function G_(i,o,u){if(!wa[o]){console.warn("wrong event specified:",o);return}i.removeEventListener(wa[o],u,!1)}function q_(i){si[i.pointerId]=i}function K_(i){si[i.pointerId]&&(si[i.pointerId]=i)}function ih(i){delete si[i.pointerId]}function J_(){nh||(document.addEventListener(Qc,q_,!0),document.addEventListener(Yc,K_,!0),document.addEventListener(Xc,ih,!0),document.addEventListener(eh,ih,!0),nh=!0)}function _s(i,o){if(o.pointerType!==(o.MSPOINTER_TYPE_MOUSE||"mouse")){o.touches=[];for(var u in si)o.touches.push(si[u]);o.changedTouches=[o],i(o)}}function Q_(i,o){o.MSPOINTER_TYPE_TOUCH&&o.pointerType===o.MSPOINTER_TYPE_TOUCH&&Re(o),_s(i,o)}function Y_(i){var o={},u,h;for(h in i)u=i[h],o[h]=u&&u.bind?u.bind(i):u;return i=o,o.type="dblclick",o.detail=2,o.isTrusted=!1,o._simulated=!0,o}var X_=200;function eg(i,o){i.addEventListener("dblclick",o);var u=0,h;function f(g){if(g.detail!==1){h=g.detail;return}if(!(g.pointerType==="mouse"||g.sourceCapabilities&&!g.sourceCapabilities.firesTouchEvents)){var k=lh(g);if(!(k.some(function(O){return O instanceof HTMLLabelElement&&O.attributes.for})&&!k.some(function(O){return O instanceof HTMLInputElement||O instanceof HTMLSelectElement}))){var T=Date.now();T-u<=X_?(h++,h===2&&o(Y_(g))):h=1,u=T}}}return i.addEventListener("click",f),{dblclick:o,simDblclick:f}}function tg(i,o){i.removeEventListener("dblclick",o.dblclick),i.removeEventListener("click",o.simDblclick)}var xa=ys(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ir=ys(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),rh=ir==="webkitTransition"||ir==="OTransition"?ir+"End":"transitionend";function sh(i){return typeof i=="string"?document.getElementById(i):i}function rr(i,o){var u=i.style[o]||i.currentStyle&&i.currentStyle[o];if((!u||u==="auto")&&document.defaultView){var h=document.defaultView.getComputedStyle(i,null);u=h?h[o]:null}return u==="auto"?null:u}function se(i,o,u){var h=document.createElement(i);return h.className=o||"",u&&u.appendChild(h),h}function _e(i){var o=i.parentNode;o&&o.removeChild(i)}function gs(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function oi(i){var o=i.parentNode;o&&o.lastChild!==i&&o.appendChild(i)}function ai(i){var o=i.parentNode;o&&o.firstChild!==i&&o.insertBefore(i,o.firstChild)}function ka(i,o){if(i.classList!==void 0)return i.classList.contains(o);var u=vs(i);return u.length>0&&new RegExp("(^|\\s)"+o+"(\\s|$)").test(u)}function Q(i,o){if(i.classList!==void 0)for(var u=C(o),h=0,f=u.length;h<f;h++)i.classList.add(u[h]);else if(!ka(i,o)){var g=vs(i);La(i,(g?g+" ":"")+o)}}function Le(i,o){i.classList!==void 0?i.classList.remove(o):La(i,y((" "+vs(i)+" ").replace(" "+o+" "," ")))}function La(i,o){i.className.baseVal===void 0?i.className=o:i.className.baseVal=o}function vs(i){return i.correspondingElement&&(i=i.correspondingElement),i.className.baseVal===void 0?i.className:i.className.baseVal}function _t(i,o){"opacity"in i.style?i.style.opacity=o:"filter"in i.style&&ng(i,o)}function ng(i,o){var u=!1,h="DXImageTransform.Microsoft.Alpha";try{u=i.filters.item(h)}catch{if(o===1)return}o=Math.round(o*100),u?(u.Enabled=o!==100,u.Opacity=o):i.style.filter+=" progid:"+h+"(opacity="+o+")"}function ys(i){for(var o=document.documentElement.style,u=0;u<i.length;u++)if(i[u]in o)return i[u];return!1}function zn(i,o,u){var h=o||new b(0,0);i.style[xa]=(W.ie3d?"translate("+h.x+"px,"+h.y+"px)":"translate3d("+h.x+"px,"+h.y+"px,0)")+(u?" scale("+u+")":"")}function Ce(i,o){i._leaflet_pos=o,W.any3d?zn(i,o):(i.style.left=o.x+"px",i.style.top=o.y+"px")}function Nn(i){return i._leaflet_pos||new b(0,0)}var sr,or,Sa;if("onselectstart"in document)sr=function(){K(window,"selectstart",Re)},or=function(){ce(window,"selectstart",Re)};else{var ar=ys(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);sr=function(){if(ar){var i=document.documentElement.style;Sa=i[ar],i[ar]="none"}},or=function(){ar&&(document.documentElement.style[ar]=Sa,Sa=void 0)}}function Pa(){K(window,"dragstart",Re)}function Ca(){ce(window,"dragstart",Re)}var ws,Ea;function Ta(i){for(;i.tabIndex===-1;)i=i.parentNode;i.style&&(xs(),ws=i,Ea=i.style.outlineStyle,i.style.outlineStyle="none",K(window,"keydown",xs))}function xs(){ws&&(ws.style.outlineStyle=Ea,ws=void 0,Ea=void 0,ce(window,"keydown",xs))}function oh(i){do i=i.parentNode;while((!i.offsetWidth||!i.offsetHeight)&&i!==document.body);return i}function ba(i){var o=i.getBoundingClientRect();return{x:o.width/i.offsetWidth||1,y:o.height/i.offsetHeight||1,boundingClientRect:o}}var ig={__proto__:null,TRANSFORM:xa,TRANSITION:ir,TRANSITION_END:rh,get:sh,getStyle:rr,create:se,remove:_e,empty:gs,toFront:oi,toBack:ai,hasClass:ka,addClass:Q,removeClass:Le,setClass:La,getClass:vs,setOpacity:_t,testProp:ys,setTransform:zn,setPosition:Ce,getPosition:Nn,get disableTextSelection(){return sr},get enableTextSelection(){return or},disableImageDrag:Pa,enableImageDrag:Ca,preventOutline:Ta,restoreOutline:xs,getSizedParentNode:oh,getScale:ba};function K(i,o,u,h){if(o&&typeof o=="object")for(var f in o)Ma(i,f,o[f],u);else{o=C(o);for(var g=0,k=o.length;g<k;g++)Ma(i,o[g],u,h)}return this}var jt="_leaflet_events";function ce(i,o,u,h){if(arguments.length===1)ah(i),delete i[jt];else if(o&&typeof o=="object")for(var f in o)Ia(i,f,o[f],u);else if(o=C(o),arguments.length===2)ah(i,function(T){return M(o,T)!==-1});else for(var g=0,k=o.length;g<k;g++)Ia(i,o[g],u,h);return this}function ah(i,o){for(var u in i[jt]){var h=u.split(/\d/)[0];(!o||o(h))&&Ia(i,h,null,null,u)}}
43var Oa={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ma(i,o,u,h){var f=o+d(u)+(h?"_"+d(h):"");if(i[jt]&&i[jt][f])return this;var g=function(T){return u.call(h||i,T||window.event)},k=g;!W.touchNative&&W.pointer&&o.indexOf("touch")===0?g=V_(i,o,g):W.touch&&o==="dblclick"?g=eg(i,g):"addEventListener"in i?o==="touchstart"||o==="touchmove"||o==="wheel"||o==="mousewheel"?i.addEventListener(Oa[o]||o,g,W.passiveEvents?{passive:!1}:!1):o==="mouseenter"||o==="mouseleave"?(g=function(T){T=T||window.event,za(i,T)&&k(T)},i.addEventListener(Oa[o],g,!1)):i.addEventListener(o,k,!1):i.attachEvent("on"+o,g),i[jt]=i[jt]||{},i[jt][f]=g}function Ia(i,o,u,h,f){f=f||o+d(u)+(h?"_"+d(h):"");var g=i[jt]&&i[jt][f];if(!g)return this;!W.touchNative&&W.pointer&&o.indexOf("touch")===0?G_(i,o,g):W.touch&&o==="dblclick"?tg(i,g):"removeEventListener"in i?i.removeEventListener(Oa[o]||o,g,!1):i.detachEvent("on"+o,g),i[jt][f]=null}function jn(i){return i.stopPropagation?i.stopPropagation():i.originalEvent?i.originalEvent._stopped=!0:i.cancelBubble=!0,this}function Aa(i){return Ma(i,"wheel",jn),this}function lr(i){return K(i,"mousedown touchstart dblclick contextmenu",jn),i._leaflet_disable_click=!0,this}function Re(i){return i.preventDefault?i.preventDefault():i.returnValue=!1,this}function Rn(i){return Re(i),jn(i),this}function lh(i){if(i.composedPath)return i.composedPath();for(var o=[],u=i.target;u;)o.push(u),u=u.parentNode;return o}function uh(i,o){if(!o)return new b(i.clientX,i.clientY);var u=ba(o),h=u.boundingClientRect;return new b((i.clientX-h.left)/u.x-o.clientLeft,(i.clientY-h.top)/u.y-o.clientTop)}var rg=W.linux&&W.chrome?window.devicePixelRatio:W.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function ch(i){return W.edge?i.wheelDeltaY/2:i.deltaY&&i.deltaMode===0?-i.deltaY/rg:i.deltaY&&i.deltaMode===1?-i.deltaY*20:i.deltaY&&i.deltaMode===2?-i.deltaY*60:i.deltaX||i.deltaZ?0:i.wheelDelta?(i.wheelDeltaY||i.wheelDelta)/2:i.detail&&Math.abs(i.detail)<32765?-i.detail*20:i.detail?i.detail/-32765*60:0}function za(i,o){var u=o.relatedTarget;if(!u)return!0;try{for(;u&&u!==i;)u=u.parentNode}catch{return!1}return u!==i}var sg={__proto__:null,on:K,off:ce,stopPropagation:jn,disableScrollPropagation:Aa,disableClickPropagation:lr,preventDefault:Re,stop:Rn,getPropagationPath:lh,getMousePosition:uh,getWheelDelta:ch,isExternalTarget:za,addListener:K,removeListener:ce},hh=mt.extend({run:function(i,o,u,h){this.stop(),this._el=i,this._inProgress=!0,this._duration=u||.25,this._easeOutPower=1/Math.max(h||.5,.2),this._startPos=Nn(i),this._offset=o.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=ae(this._animate,this),this._step()},_step:function(i){var o=+new Date-this._startTime,u=this._duration*1e3;o<u?this._runFrame(this._easeOut(o/u),i):(this._runFrame(1),this._complete())},_runFrame:function(i,o){var u=this._startPos.add(this._offset.multiplyBy(i));o&&u._round(),Ce(this._el,u),this.fire("step")},_complete:function(){ke(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(i){return 1-Math.pow(1-i,this._easeOutPower)}}),ne=mt.extend({options:{crs:pa,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(i,o){o=P(this,o),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(i),this._initLayout(),this._onResize=l(this._onResize,this),this._initEvents(),o.maxBounds&&this.setMaxBounds(o.maxBounds),o.zoom!==void 0&&(this._zoom=this._limitZoom(o.zoom)),o.center&&o.zoom!==void 0&&this.setView(q(o.center),o.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ir&&W.any3d&&!W.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),K(this._proxy,rh,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
vendor: 8,577 bytes, line 43
43,setView:function(i,o,u){if(o=o===void 0?this._zoom:this._limitZoom(o),i=this._limitCenter(q(i),o,this.options.maxBounds),u=u||{},this._stop(),this._loaded&&!u.reset&&u!==!0){u.animate!==void 0&&(u.zoom=a({animate:u.animate},u.zoom),u.pan=a({animate:u.animate,duration:u.duration},u.pan));var h=this._zoom!==o?this._tryAnimatedZoom&&this._tryAnimatedZoom(i,o,u.zoom):this._tryAnimatedPan(i,u.pan);if(h)return clearTimeout(this._sizeTimer),this}return this._resetView(i,o,u.pan&&u.pan.noMoveStart),this},setZoom:function(i,o){return this._loaded?this.setView(this.getCenter(),i,{zoom:o}):(this._zoom=i,this)},zoomIn:function(i,o){return i=i||(W.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+i,o)},zoomOut:function(i,o){return i=i||(W.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-i,o)},setZoomAround:function(i,o,u){var h=this.getZoomScale(o),f=this.getSize().divideBy(2),g=i instanceof b?i:this.latLngToContainerPoint(i),k=g.subtract(f).multiplyBy(1-1/h),T=this.containerPointToLatLng(f.add(k));return this.setView(T,o,{zoom:u})},_getBoundsCenterZoom:function(i,o){o=o||{},i=i.getBounds?i.getBounds():le(i);var u=I(o.paddingTopLeft||o.padding||[0,0]),h=I(o.paddingBottomRight||o.padding||[0,0]),f=this.getBoundsZoom(i,!1,u.add(h));if(f=typeof o.maxZoom=="number"?Math.min(o.maxZoom,f):f,f===1/0)return{center:i.getCenter(),zoom:f};var g=h.subtract(u).divideBy(2),k=this.project(i.getSouthWest(),f),T=this.project(i.getNorthEast(),f),O=this.unproject(k.add(T).divideBy(2).add(g),f);return{center:O,zoom:f}},fitBounds:function(i,o){if(i=le(i),!i.isValid())throw new Error("Bounds are not valid.");var u=this._getBoundsCenterZoom(i,o);return this.setView(u.center,u.zoom,o)},fitWorld:function(i){return this.fitBounds([[-90,-180],[90,180]],i)},panTo:function(i,o){return this.setView(i,this._zoom,{pan:o})},panBy:function(i,o){if(i=I(i).round(),o=o||{},!i.x&&!i.y)return this.fire("moveend");if(o.animate!==!0&&!this.getSize().contains(i))return this._resetView(this.unproject(this.project(this.getCenter()).add(i)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new hh,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),o.noMoveStart||this.fire("movestart"),o.animate!==!1){Q(this._mapPane,"leaflet-pan-anim");var u=this._getMapPanePos().subtract(i).round();this._panAnim.run(this._mapPane,u,o.duration||.25,o.easeLinearity)}else this._rawPanBy(i),this.fire("move").fire("moveend");return this},flyTo:function(i,o,u){if(u=u||{},u.animate===!1||!W.any3d)return this.setView(i,o,u);this._stop();var h=this.project(this.getCenter()),f=this.project(i),g=this.getSize(),k=this._zoom;i=q(i),o=o===void 0?k:o;var T=Math.max(g.x,g.y),O=T*this.getZoomScale(k,o),A=f.distanceTo(h)||1,U=1.42,V=U*U;function X(Ee){var As=Ee?-1:1,Gg=Ee?O:T,qg=O*O-T*T+As*V*V*A*A,Kg=2*Gg*V*A,Wa=qg/Kg,Wh=Math.sqrt(Wa*Wa+1)-Wa,Jg=Wh<1e-9?-18:Math.log(Wh);return Jg}function Ve(Ee){return(Math.exp(Ee)-Math.exp(-Ee))/2}function Ie(Ee){return(Math.exp(Ee)+Math.exp(-Ee))/2}function vt(Ee){return Ve(Ee)/Ie(Ee)}var Xe=X(0);function fi(Ee){return T*(Ie(Xe)/Ie(Xe+U*Ee))}function Zg(Ee){return T*(Ie(Xe)*vt(Xe+U*Ee)-Ve(Xe))/V}function Hg(Ee){return 1-Math.pow(1-Ee,1.5)}var Wg=Date.now(),Zh=(X(1)-Xe)/U,Vg=u.duration?1e3*u.duration:1e3*Zh*.8;function Hh(){var Ee=(Date.now()-Wg)/Vg,As=Hg(Ee)*Zh;Ee<=1?(this._flyToFrame=ae(Hh,this),this._move(this.unproject(h.add(f.subtract(h).multiplyBy(Zg(As)/A)),k),this.getScaleZoom(T/fi(As),k),{flyTo:!0})):this._move(i,o)._moveEnd(!0)}return this._moveStart(!0,u.noMoveStart),Hh.call(this),this},flyToBounds:function(i,o){var u=this._getBoundsCenterZoom(i,o);return this.flyTo(u.center,u.zoom,o)},setMaxBounds:function(i){return i=le(i),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),i.isValid()?(this.options.maxBounds=i,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(i){var o=this.options.minZoom;return this.options.minZoom=i,this._loaded&&o!==i&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(i):this},setMaxZoom:function(i){var o=this.options.maxZoom;return this.options.maxZoom=i,this._loaded&&o!==i&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(i):this},panInsideBounds:function(i,o){this._enforcingBounds=!0;var u=this.getCenter(),h=this._limitCenter(u,this._zoom,le(i));return u.equals(h)||this.panTo(h,o),this._enforcingBounds=!1,this},panInside:function(i,o){o=o||{};var u=I(o.paddingTopLeft||o.padding||[0,0]),h=I(o.paddingBottomRight||o.padding||[0,0]),f=this.project(this.getCenter()),g=this.project(i),k=this.getPixelBounds(),T=G([k.min.add(u),k.max.subtract(h)]),O=T.getSize();if(!T.contains(g)){this._enforcingBounds=!0;var A=g.subtract(T.getCenter()),U=T.extend(g).getSize().subtract(O);f.x+=A.x<0?-U.x:U.x,f.y+=A.y<0?-U.y:U.y,this.panTo(this.unproject(f),o),this._enforcingBounds=!1}return this},invalidateSize:function(i){if(!this._loaded)return this;i=a({animate:!1,pan:!0},i===!0?{animate:!0}:i);var o=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var u=this.getSize(),h=o.divideBy(2).round(),f=u.divideBy(2).round(),g=h.subtract(f);return!g.x&&!g.y?this:(i.animate&&i.pan?this.panBy(g):(i.pan&&this._rawPanBy(g),this.fire("move"),i.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(l(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:o,newSize:u}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(i){if(i=this._locateOptions=a({timeout:1e4,watch:!1},i),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var o=l(this._handleGeolocationResponse,this),u=l(this._handleGeolocationError,this);return i.watch?this._locationWatchId=navigator.geolocation.watchPosition(o,u,i):navigator.geolocation.getCurrentPosition(o,u,i),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(i){if(this._container._leaflet_id){var o=i.code,u=i.message||(o===1?"permission denied":o===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:o,message:"Geolocation error: "+u+"."})}},_handleGeolocationResponse:function(i){if(this._container._leaflet_id){var o=i.coords.latitude,u=i.coords.longitude,h=new re(o,u),f=h.toBounds(i.coords.accuracy*2),g=this._locateOptions;if(g.setView){var k=this.getBoundsZoom(f);this.setView(h,g.maxZoom?Math.min(k,g.maxZoom):k)}var T={latlng:h,bounds:f,timestamp:i.timestamp};for(var O in i.coords)typeof i.coords[O]=="number"&&(T[O]=i.coords[O]);this.fire("locationfound",T)}},addHandler:function(i,o){if(!o)return this;var u=this[i]=new o(this);return this._handlers.push(u),this.options[i]&&u.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{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),_e(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(ke(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var i;for(i in this._layers)this._layers[i].remove();for(i in this._panes)_e(this._panes[i]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(i,o){var u="leaflet-pane"+(i?" leaflet-"+i.replace("Pane","")+"-pane":""),h=se("div",u,o||this._mapPane);return i&&(this._panes[i]=h),h},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var i=this.getPixelBounds(),o=this.unproject(i.getBottomLeft()),u=this.unproject(i.getTopRight());return new we(o,u)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZo
43om===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(i,o,u){i=le(i),u=I(u||[0,0]);var h=this.getZoom()||0,f=this.getMinZoom(),g=this.getMaxZoom(),k=i.getNorthWest(),T=i.getSouthEast(),O=this.getSize().subtract(u),A=G(this.project(T,h),this.project(k,h)).getSize(),U=W.any3d?this.options.zoomSnap:1,V=O.x/A.x,X=O.y/A.y,Ve=o?Math.max(V,X):Math.min(V,X);return h=this.getScaleZoom(Ve,h),U&&(h=Math.round(h/(U/100))*(U/100),h=o?Math.ceil(h/U)*U:Math.floor(h/U)*U),Math.max(f,Math.min(g,h))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new b(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(i,o){var u=this._getTopLeftPoint(i,o);return new H(u,u.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(i){return this.options.crs.getProjectedBounds(i===void 0?this.getZoom():i)},getPane:function(i){return typeof i=="string"?this._panes[i]:i},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(i,o){var u=this.options.crs;return o=o===void 0?this._zoom:o,u.scale(i)/u.scale(o)},getScaleZoom:function(i,o){var u=this.options.crs;o=o===void 0?this._zoom:o;var h=u.zoom(i*u.scale(o));return isNaN(h)?1/0:h},project:function(i,o){return o=o===void 0?this._zoom:o,this.options.crs.latLngToPoint(q(i),o)},unproject:function(i,o){return o=o===void 0?this._zoom:o,this.options.crs.pointToLatLng(I(i),o)},layerPointToLatLng:function(i){var o=I(i).add(this.getPixelOrigin());return this.unproject(o)},latLngToLayerPoint:function(i){var o=this.project(q(i))._round();return o._subtract(this.getPixelOrigin())},wrapLatLng:function(i){return this.options.crs.wrapLatLng(q(i))},wrapLatLngBounds:function(i){return this.options.crs.wrapLatLngBounds(le(i))},distance:function(i,o){return this.options.crs.distance(q(i),q(o))},containerPointToLayerPoint:function(i){return I(i).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(i){return I(i).add(this._getMapPanePos())},containerPointToLatLng:function(i){var o=this.containerPointToLayerPoint(I(i));return this.layerPointToLatLng(o)},latLngToContainerPoint:function(i){return this.layerPointToContainerPoint(this.latLngToLayerPoint(q(i)))},mouseEventToContainerPoint:function(i){return uh(i,this._container)},mouseEventToLayerPoint:function(i){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(i))},mouseEventToLatLng:function(i){return this.layerPointToLatLng(this.mouseEventToLayerPoint(i))},_initContainer:function(i){var o=this._container=sh(i);if(o){if(o._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");K(o,"scroll",this._onScroll,this),this._containerId=d(o)},_initLayout:function(){var i=this._container;this._fadeAnimated=this.options.fadeAnimation&&W.any3d,Q(i,"leaflet-container"+(W.touch?" leaflet-touch":"")+(W.retina?" leaflet-retina":"")+(W.ielt9?" leaflet-oldie":"")+(W.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var o=rr(i,"position");o!=="absolute"&&o!=="relative"&&o!=="fixed"&&o!=="sticky"&&(i.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var i=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ce(this._mapPane,new b(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Q(i.markerPane,"leaflet-zoom-hide"),Q(i.shadowPane,"leaflet-zoom-hide"))},_resetView:function(i,o,u){Ce(this._mapPane,new b(0,0));var h=!this._loaded;this._loaded=!0,o=this._limitZoom(o),this.fire("viewprereset");var f=this._zoom!==o;this._moveStart(f,u)._move(i,o)._moveEnd(f),this.fire("viewreset"),h&&this.fire("load")},_moveStart:function(i,o){return i&&this.fire("zoomstart"),o||this.fire("movestart"),this},_move:function(i,o,u,h){o===void 0&&(o=this._zoom);var f=this._zoom!==o;return this._zoom=o,this._lastCenter=i,this._pixelOrigin=this._getNewPixelOrigin(i),h?u&&u.pinch&&this.fire("zoom",u):((f||u&&u.pinch)&&this.fire("zoom",u),this.fire("move",u)),this},_moveEnd:function(i){return i&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return ke(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(i){Ce(this._mapPane,this._getMapPanePos().subtract(i))},_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(i){this._targets={},this._targets[d(this._container)]=this;var o=i?ce:K;o(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&o(window,"resize",this._onResize,this),W.any3d&&this.options.transform3DLimit&&(i?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){ke(this._resizeRequest),this._resizeRequest=ae(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var i=this._getMapPanePos();Math.max(Math.abs(i.x),Math.abs(i.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(i,o){for(var u=[],h,f=o==="mouseout"||o==="mouseover",g=i.target||i.srcElement,k=!1;g;){if(h=this._targets[d(g)],h&&(o==="click"||o==="preclick")&&this._draggableMoved(h)){k=!0;break}if(h&&h.listens(o,!0)&&(f&&!za(g,i)||(u.push(h),f))||g===this._container)break;g=g.parentNode}return!u.length&&!k&&!f&&this.listens(o,!0)&&(u=[this]),u},_isClickDisabled:function(i){for(;i&&i!==this._container;){if(i._leaflet_disable_click)return!0;
43i=i.parentNode}},_handleDOMEvent:function(i){var o=i.target||i.srcElement;if(!(!this._loaded||o._leaflet_disable_events||i.type==="click"&&this._isClickDisabled(o))){var u=i.type;u==="mousedown"&&Ta(o),this._fireDOMEvent(i,u)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(i,o,u){if(i.type==="click"){var h=a({},i);h.type="preclick",this._fireDOMEvent(h,h.type,u)}var f=this._findEventTargets(i,o);if(u){for(var g=[],k=0;k<u.length;k++)u[k].listens(o,!0)&&g.push(u[k]);f=g.concat(f)}if(f.length){o==="contextmenu"&&Re(i);var T=f[0],O={originalEvent:i};if(i.type!=="keypress"&&i.type!=="keydown"&&i.type!=="keyup"){var A=T.getLatLng&&(!T._radius||T._radius<=10);O.containerPoint=A?this.latLngToContainerPoint(T.getLatLng()):this.mouseEventToContainerPoint(i),O.layerPoint=this.containerPointToLayerPoint(O.containerPoint),O.latlng=A?T.getLatLng():this.layerPointToLatLng(O.layerPoint)}for(k=0;k<f.length;k++)if(f[k].fire(o,O,!0),O.originalEvent._stopped||f[k].options.bubblingMouseEvents===!1&&M(this._mouseEvents,o)!==-1)return}},_draggableMoved:function(i){return i=i.dragging&&i.dragging.enabled()?i:this,i.dragging&&i.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var i=0,o=this._handlers.length;i<o;i++)this._handlers[i].disable()},whenReady:function(i,o){return this._loaded?i.call(o||this,{target:this}):this.on("load",i,o),this},_getMapPanePos:function(){return Nn(this._mapPane)||new b(0,0)},_moved:function(){var i=this._getMapPanePos();return i&&!i.equals([0,0])},_getTopLeftPoint:function(i,o){var u=i&&o!==void 0?this._getNewPixelOrigin(i,o):this.getPixelOrigin();return u.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(i,o){var u=this.getSize()._divideBy(2);return this.project(i,o)._subtract(u)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(i,o,u){var h=this._getNewPixelOrigin(u,o);return this.project(i,o)._subtract(h)},_latLngBoundsToNewLayerBounds:function(i,o,u){var h=this._getNewPixelOrigin(u,o);
vendor: 14,300 bytes, line 43
43return G([this.project(i.getSouthWest(),o)._subtract(h),this.project(i.getNorthWest(),o)._subtract(h),this.project(i.getSouthEast(),o)._subtract(h),this.project(i.getNorthEast(),o)._subtract(h)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(i){return this.latLngToLayerPoint(i).subtract(this._getCenterLayerPoint())},_limitCenter:function(i,o,u){if(!u)return i;var h=this.project(i,o),f=this.getSize().divideBy(2),g=new H(h.subtract(f),h.add(f)),k=this._getBoundsOffset(g,u,o);return Math.abs(k.x)<=1&&Math.abs(k.y)<=1?i:this.unproject(h.add(k),o)},_limitOffset:function(i,o){if(!o)return i;var u=this.getPixelBounds(),h=new H(u.min.add(i),u.max.add(i));return i.add(this._getBoundsOffset(h,o))},_getBoundsOffset:function(i,o,u){var h=G(this.project(o.getNorthEast(),u),this.project(o.getSouthWest(),u)),f=h.min.subtract(i.min),g=h.max.subtract(i.max),k=this._rebound(f.x,-g.x),T=this._rebound(f.y,-g.y);return new b(k,T)},_rebound:function(i,o){return i+o>0?Math.round(i-o)/2:Math.max(0,Math.ceil(i))-Math.max(0,Math.floor(o))},_limitZoom:function(i){var o=this.getMinZoom(),u=this.getMaxZoom(),h=W.any3d?this.options.zoomSnap:1;return h&&(i=Math.round(i/h)*h),Math.max(o,Math.min(u,i))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Le(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(i,o){var u=this._getCenterOffset(i)._trunc();return(o&&o.animate)!==!0&&!this.getSize().contains(u)?!1:(this.panBy(u,o),!0)},_createAnimProxy:function(){var i=this._proxy=se("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(i),this.on("zoomanim",function(o){var u=xa,h=this._proxy.style[u];zn(this._proxy,this.project(o.center,o.zoom),this.getZoomScale(o.zoom,1)),h===this._proxy.style[u]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){_e(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var i=this.getCenter(),o=this.getZoom();zn(this._proxy,this.project(i,o),this.getZoomScale(o,1))},_catchTransitionEnd:function(i){this._animatingZoom&&i.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(i,o,u){if(this._animatingZoom)return!0;if(u=u||{},!this._zoomAnimated||u.animate===!1||this._nothingToAnimate()||Math.abs(o-this._zoom)>this.options.zoomAnimationThreshold)return!1;var h=this.getZoomScale(o),f=this._getCenterOffset(i)._divideBy(1-1/h);return u.animate!==!0&&!this.getSize().contains(f)?!1:(ae(function(){this._moveStart(!0,u.noMoveStart||!1)._animateZoom(i,o,!0)},this),!0)},_animateZoom:function(i,o,u,h){this._mapPane&&(u&&(this._animatingZoom=!0,this._animateToCenter=i,this._animateToZoom=o,Q(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:i,zoom:o,noUpdate:h}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(l(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Le(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))}});function og(i,o){return new ne(i,o)}var Pt=je.extend({options:{position:"topright"},initialize:function(i){P(this,i)},getPosition:function(){return this.options.position},setPosition:function(i){var o=this._map;return o&&o.removeControl(this),this.options.position=i,o&&o.addControl(this),this},getContainer:function(){return this._container},addTo:function(i){this.remove(),this._map=i;var o=this._container=this.onAdd(i),u=this.getPosition(),h=i._controlCorners[u];return Q(o,"leaflet-control"),u.indexOf("bottom")!==-1?h.insertBefore(o,h.firstChild):h.appendChild(o),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(_e(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(i){this._map&&i&&i.screenX>0&&i.screenY>0&&this._map.getContainer().focus()}}),ur=function(i){return new Pt(i)};ne.include({addControl:function(i){return i.addTo(this),this},removeControl:function(i){return i.remove(),this},_initControlPos:function(){var i=this._controlCorners={},o="leaflet-",u=this._controlContainer=se("div",o+"control-container",this._container);function h(f,g){var k=o+f+" "+o+g;i[f+g]=se("div",k,u)}h("top","left"),h("top","right"),h("bottom","left"),h("bottom","right")},_clearControlPos:function(){for(var i in this._controlCorners)_e(this._controlCorners[i]);_e(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var dh=Pt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(i,o,u,h){return u<h?-1:h<u?1:0}},initialize:function(i,o,u){P(this,u),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var h in i)this._addLayer(i[h],h);for(h in o)this._addLayer(o[h],h,!0)},onAdd:function(i){this._initLayout(),this._update(),this._map=i,i.on("zoomend",this._checkDisabledLayers,this);for(var o=0;o<this._layers.length;o++)this._layers[o].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(i){return Pt.prototype.addTo.call(this,i),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(i,o){return this._addLayer(i,o),this._map?this._update():this},addOverlay:function(i,o){return this._addLayer(i,o,!0),this._map?this._update():this},removeLayer:function(i){i.off("add remove",this._onLayerChange,this);var o=this._getLayer(d(i));return o&&this._layers.splice(this._layers.indexOf(o),1),this._map?this._update():this},expand:function(){Q(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var i=this._map.getSize().y-(this._container.offsetTop+50);return i<this._section.clientHeight?(Q(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=i+"px"):Le(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Le(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var i="leaflet-control-layers",o=this._container=se("div",i),u=this.options.collapsed;o.setAttribute("aria-haspopup",!0),lr(o),Aa(o);var h=this._section=se("section",i+"-list");u&&(this._map.on("click",this.collapse,this),K(o,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var f=this._layersLink=se("a",i+"-toggle",o);f.href="#",f.title="Layers",f.setAttribute("role","button"),K(f,{keydown:function(g){g.keyCode===13&&this._expandSafely()},click:function(g){Re(g),this._expandSafely()}},this),u||this.expand(),this._baseLayersList=se("div",i+"-base",h),this._separator=se("div",i+"-separator",h),this._overlaysList=se("div",i+"-overlays",h),o.appendChild(h)},_getLayer:function(i){for(var o=0;o<this._layers.length;o++)if(this._layers[o]&&d(this._layers[o].layer)===i)return this._layers[o]},_addLayer:function(i,o,u){this._map&&i.on("add remove",this._onLayerChange,this),this._layers.push({layer:i,name:o,overlay:u}),this.options.sortLayers&&this._layers.sort(l(function(h,f){return this.options.sortFunction(h.layer,f.layer,h.name,f.name)},this)),this.options.autoZIndex&&i.setZIndex&&(this._lastZIndex++,i.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;gs(this._baseLayersList),gs(this._overlaysList),this._layerControlInputs=[];var i,o,u,h,f=0;for(u=0;u<this._layers.length;u++)h=this._layers[u],this._addItem(h),o=o||h.overlay,i=i||!h.overlay,f+=h.overlay?0:1;return this.options.hideSingleBase&&(i=i&&f>1,this._baseLayersList.style.display=i?"":"none"),this._separator.style.display=o&&i?"":"none",this},_onLayerChange:function(i){this._handlingClick||this._update();var o=this._getLayer(d(i.target)),u=o.overlay?i.type==="add"?"overlayadd":"overlayremove":i.type==="add"?"baselayerchange":null;u&&this._map.fire(u,o)},_createRadioElement:function(i,o){var u='<input type="radio" class="leaflet-control-layers-selector" name="'+i+'"'+(o?' checked="checked"':"")+"/>",h=document.createElement("div");return h.innerHTML=u,h.firstChild},_addItem:function(i){var o=document.createElement("label"),u=this._map.hasLayer(i.layer),h;i.overlay?(h=document.createElement("input"),h.type="checkbox",h.className="leaflet-control-layers-selector",h.defaultChecked=u):h=this._createRadioElement("leaflet-base-layers_"+d(this),u),this._layerControlInputs.push(h),h.layerId=d(i.layer),K(h,"click",this._onInputClick,this);var f=document.createElement("span");f.innerHTML=" "+i.name;var g=document.createElement("span");o.appendChild(g),g.appendChild(h),g.appendChild(f);var k=i.overlay?this._overlaysList:this._baseLayersList;return k.appendChild(o),this._checkDisabledLayers(),o},_onInputClick:function(){if(!this._preventClick){var i=this._layerControlInputs,o,u,h=[],f=[];this._handlingClick=!0;for(var g=i.length-1;g>=0;g--)o=i[g],u=this._getLayer(o.layerId).layer,o.checked?h.push(u):o.checked||f.push(u);for(g=0;g<f.length;g++)this._map.hasLayer(f[g])&&this._map.removeLayer(f[g]);for(g=0;g<h.length;g++)this._map.hasLayer(h[g])||this._map.addLayer(h[g]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var i=this._layerControlInputs,o,u,h=this._map.getZoom(),f=i.length-1;f>=0;f--)o=i[f],u=this._getLayer(o.layerId).layer,o.disabled=u.options.minZoom!==void 0&&h<u.options.minZoom||u.options.maxZoom!==void 0&&h>u.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var i=this._section;this._preventClick=!0,K(i,"click",Re),this.expand();var o=this;setTimeout(function(){ce(i,"click",Re),o._preventClick=!1})}}),ag=function(i,o,u){return new dh(i,o,u)},Na=Pt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(i){var o="leaflet-control-zoom",u=se("div",o+" leaflet-bar"),h=this.options;return this._zoomInButton=this._createButton(h.zoomInText,h.zoomInTitle,o+"-in",u,this._zoomIn),this._zoomOutButton=this._createButton(h.zoomOutText,h.zoomOutTitle,o+"-out",u,this._zoomOut),this._updateDisabled(),i.on("zoomend zoomlevelschange",this._updateDisabled,this),u},onRemove:function(i){i.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(i){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(i.shiftKey?3:1))},_zoomOut:function(i){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(i.shiftKey?3:1))},_createButton:function(i,o,u,h,f){var g=se("a",u,h);return g.innerHTML=i,g.href="#",g.title=o,g.setAttribute("role","button"),g.setAttribute("aria-label",o),lr(g),K(g,"click",Rn),K(g,"click",f,this),K(g,"click",this._refocusOnMap,this),g},_updateDisabled:function(){var i=this._map,o="leaflet-disabled";Le(this._zoomInButton,o),Le(this._zoomOutButton,o),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||i._zoom===i.getMinZoom())&&(Q(this._zoomOutButton,o),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||i._zoom===i.getMaxZoom())&&(Q(this._zoomInButton,o),this._zoomInButton.setAttribute("aria-disabled","true"))}});ne.mergeOptions({zoomControl:!0}),ne.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Na,this.addControl(this.zoomControl))});var lg=function(i){return new Na(i)},fh=Pt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(i){var o="leaflet-control-scale",u=se("div",o),h=this.options;return this._addScales(h,o+"-line",u),i.on(h.updateWhenIdle?"moveend":"move",this._update,this),i.whenReady(this._update,this),u},onRemove:function(i){i.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(i,o,u){i.metric&&(this._mScale=se("div",o,u)),i.imperial&&(this._iScale=se("div",o,u))},_update:function(){var i=this._map,o=i.getSize().y/2,u=i.distance(i.containerPointToLatLng([0,o]),i.containerPointToLatLng([this.options.maxWidth,o]));this._updateScales(u)},_updateScales:function(i){this.options.metric&&i&&this._updateMetric(i),this.options.imperial&&i&&this._updateImperial(i)},_updateMetric:function(i){var o=this._getRoundNum(i),u=o<1e3?o+" m":o/1e3+" km";this._updateScale(this._mScale,u,o/i)},_updateImperial:function(i){var o=i*3.2808399,u,h,f;o>5280?(u=o/5280,h=this._getRoundNum(u),this._updateScale(this._iScale,h+" mi",h/u)):(f=this._getRoundNum(o),this._updateScale(this._iScale,f+" ft",f/o))},_updateScale:function(i,o,u){i.style.width=Math.round(this.options.maxWidth*u)+"px",i.innerHTML=o},_getRoundNum:function(i){var o=Math.pow(10,(Math.floor(i)+"").length-1),u=i/o;return u=u>=10?10:u>=5?5:u>=3?3:u>=2?2:1,o*u}}),ug=function(i){return new fh(i)},cg='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',ja=Pt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(W.inlineSvg?cg+" ":"")+"Leaflet</a>"},initialize:function(i){P(this,i),this._attributions={}}
43,onAdd:function(i){i.attributionControl=this,this._container=se("div","leaflet-control-attribution"),lr(this._container);for(var o in i._layers)i._layers[o].getAttribution&&this.addAttribution(i._layers[o].getAttribution());return this._update(),i.on("layeradd",this._addAttribution,this),this._container},onRemove:function(i){i.off("layeradd",this._addAttribution,this)},_addAttribution:function(i){i.layer.getAttribution&&(this.addAttribution(i.layer.getAttribution()),i.layer.once("remove",function(){this.removeAttribution(i.layer.getAttribution())},this))},setPrefix:function(i){return this.options.prefix=i,this._update(),this},addAttribution:function(i){return i?(this._attributions[i]||(this._attributions[i]=0),this._attributions[i]++,this._update(),this):this},removeAttribution:function(i){return i?(this._attributions[i]&&(this._attributions[i]--,this._update()),this):this},_update:function(){if(this._map){var i=[];for(var o in this._attributions)this._attributions[o]&&i.push(o);var u=[];this.options.prefix&&u.push(this.options.prefix),i.length&&u.push(i.join(", ")),this._container.innerHTML=u.join(' <span aria-hidden="true">|</span> ')}}});ne.mergeOptions({attributionControl:!0}),ne.addInitHook(function(){this.options.attributionControl&&new ja().addTo(this)});var hg=function(i){return new ja(i)};Pt.Layers=dh,Pt.Zoom=Na,Pt.Scale=fh,Pt.Attribution=ja,ur.layers=ag,ur.zoom=lg,ur.scale=ug,ur.attribution=hg;var Rt=je.extend({initialize:function(i){this._map=i},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Rt.addTo=function(i,o){return i.addHandler(o,this),this};var dg={Events:Pe},ph=W.touch?"touchstart mousedown":"mousedown",ln=mt.extend({options:{clickTolerance:3},initialize:function(i,o,u,h){P(this,h),this._element=i,this._dragStartTarget=o||i,this._preventOutline=u},enable:function(){this._enabled||(K(this._dragStartTarget,ph,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ln._dragging===this&&this.finishDrag(!0),ce(this._dragStartTarget,ph,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(i){if(this._enabled&&(this._moved=!1,!ka(this._element,"leaflet-zoom-anim"))){if(i.touches&&i.touches.length!==1){ln._dragging===this&&this.finishDrag();return}if(!(ln._dragging||i.shiftKey||i.which!==1&&i.button!==1&&!i.touches)&&(ln._dragging=this,this._preventOutline&&Ta(this._element),Pa(),sr(),!this._moving)){this.fire("down");var o=i.touches?i.touches[0]:i,u=oh(this._element);this._startPoint=new b(o.clientX,o.clientY),this._startPos=Nn(this._element),this._parentScale=ba(u);var h=i.type==="mousedown";K(document,h?"mousemove":"touchmove",this._onMove,this),K(document,h?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(i){if(this._enabled){if(i.touches&&i.touches.length>1){this._moved=!0;return}var o=i.touches&&i.touches.length===1?i.touches[0]:i,u=new b(o.clientX,o.clientY)._subtract(this._startPoint);!u.x&&!u.y||Math.abs(u.x)+Math.abs(u.y)<this.options.clickTolerance||(u.x/=this._parentScale.x,u.y/=this._parentScale.y,Re(i),this._moved||(this.fire("dragstart"),this._moved=!0,Q(document.body,"leaflet-dragging"),this._lastTarget=i.target||i.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Q(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(u),this._moving=!0,this._lastEvent=i,this._updatePosition())}},_updatePosition:function(){var i={originalEvent:this._lastEvent};this.fire("predrag",i),Ce(this._element,this._newPos),this.fire("drag",i)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(i){Le(document.body,"leaflet-dragging"),this._lastTarget&&(Le(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),ce(document,"mousemove touchmove",this._onMove,this),ce(document,"mouseup touchend touchcancel",this._onUp,this),Ca(),or();var o=this._moved&&this._moving;this._moving=!1,ln._dragging=!1,o&&this.fire("dragend",{noInertia:i,distance:this._newPos.distanceTo(this._startPos)})}});function mh(i,o,u){var h,f=[1,4,2,8],g,k,T,O,A,U,V,X;for(g=0,U=i.length;g<U;g++)i[g]._code=Bn(i[g],o);for(T=0;T<4;T++){for(V=f[T],h=[],g=0,U=i.length,k=U-1;g<U;
43k=g++)O=i[g],A=i[k],O._code&V?A._code&V||(X=ks(A,O,V,o,u),X._code=Bn(X,o),h.push(X)):(A._code&V&&(X=ks(A,O,V,o,u),X._code=Bn(X,o),h.push(X)),h.push(O));i=h}return i}function _h(i,o){var u,h,f,g,k,T,O,A,U;if(!i||i.length===0)throw new Error("latlngs not passed");gt(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var V=q([0,0]),X=le(i),Ve=X.getNorthWest().distanceTo(X.getSouthWest())*X.getNorthEast().distanceTo(X.getNorthWest());Ve<1700&&(V=Ra(i));var Ie=i.length,vt=[];for(u=0;u<Ie;u++){var Xe=q(i[u]);vt.push(o.project(q([Xe.lat-V.lat,Xe.lng-V.lng])))}for(T=O=A=0,u=0,h=Ie-1;u<Ie;h=u++)f=vt[u],g=vt[h],k=f.y*g.x-g.y*f.x,O+=(f.x+g.x)*k,A+=(f.y+g.y)*k,T+=k*3;T===0?U=vt[0]:U=[O/T,A/T];var fi=o.unproject(I(U));return q([fi.lat+V.lat,fi.lng+V.lng])}function Ra(i){for(var o=0,u=0,h=0,f=0;f<i.length;f++){var g=q(i[f]);o+=g.lat,u+=g.lng,h++}return q([o/h,u/h])}var fg={__proto__:null,clipPolygon:mh,polygonCenter:_h,centroid:Ra};function gh(i,o){if(!o||!i.length)return i.slice();var u=o*o;return i=_g(i,u),i=mg(i,u),i}function vh(i,o,u){return Math.sqrt(cr(i,o,u,!0))}function pg(i,o,u){return cr(i,o,u)}function mg(i,o){var u=i.length,h=typeof Uint8Array<"u"?Uint8Array:Array,f=new h(u);f[0]=f[u-1]=1,Ba(i,f,o,0,u-1);var g,k=[];for(g=0;g<u;g++)f[g]&&k.push(i[g]);return k}function Ba(i,o,u,h,f){var g=0,k,T,O;for(T=h+1;T<=f-1;T++)O=cr(i[T],i[h],i[f],!0),O>g&&(k=T,g=O);g>u&&(o[k]=1,Ba(i,o,u,h,k),Ba(i,o,u,k,f))}function _g(i,o){for(var u=[i[0]],h=1,f=0,g=i.length;h<g;h++)gg(i[h],i[f])>o&&(u.push(i[h]),f=h);return f<g-1&&u.push(i[g-1]),u}var yh;function wh(i,o,u,h,f){var g=h?yh:Bn(i,u),k=Bn(o,u),T,O,A;for(yh=k;;){if(!(g|k))return[i,o];if(g&k)return!1;T=g||k,O=ks(i,o,T,u,f),A=Bn(O,u),T===g?(i=O,g=A):(o=O,k=A)}}function ks(i,o,u,h,f){var g=o.x-i.x,k=o.y-i.y,T=h.min,O=h.max,A,U;return u&8?(A=i.x+g*(O.y-i.y)/k,U=O.y):u&4?(A=i.x+g*(T.y-i.y)/k,U=T.y):u&2?(A=O.x,U=i.y+k*(O.x-i.x)/g):u&1&&(A=T.x,U=i.y+k*(T.x-i.x)/g),new b(A,U,f)}function Bn(i,o){var u=0;return i.x<o.min.x?u|=1:i.x>o.max.x&&(u|=2),i.y<o.min.y?u|=4:i.y>o.max.y&&(u|=8),u}function gg(i,o){var u=o.x-i.x,h=o.y-i.y;return u*u+h*h}function cr(i,o,u,h){var f=o.x,g=o.y,k=u.x-f,T=u.y-g,O=k*k+T*T,A;return O>0&&(A=((i.x-f)*k+(i.y-g)*T)/O,A>1?(f=u.x,g=u.y):A>0&&(f+=k*A,g+=T*A)),k=i.x-f,T=i.y-g,h?k*k+T*T:new b(f,g)}function gt(i){return!S(i[0])||typeof i[0][0]!="object"&&typeof i[0][0]<"u"}function xh(i){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),gt(i)}function kh(i,o){var u,h,f,g,k,T,O,A;if(!i||i.length===0)throw new Error("latlngs not passed");gt(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var U=q([0,0]),V=le(i),X=V.getNorthWest().distanceTo(V.getSouthWest
vendor: 4,211 bytes, line 43
43())*V.getNorthEast().distanceTo(V.getNorthWest());X<1700&&(U=Ra(i));var Ve=i.length,Ie=[];for(u=0;u<Ve;u++){var vt=q(i[u]);Ie.push(o.project(q([vt.lat-U.lat,vt.lng-U.lng])))}for(u=0,h=0;u<Ve-1;u++)h+=Ie[u].distanceTo(Ie[u+1])/2;if(h===0)A=Ie[0];else for(u=0,g=0;u<Ve-1;u++)if(k=Ie[u],T=Ie[u+1],f=k.distanceTo(T),g+=f,g>h){O=(g-h)/f,A=[T.x-O*(T.x-k.x),T.y-O*(T.y-k.y)];break}var Xe=o.unproject(I(A));return q([Xe.lat+U.lat,Xe.lng+U.lng])}var vg={__proto__:null,simplify:gh,pointToSegmentDistance:vh,closestPointOnSegment:pg,clipSegment:wh,_getEdgeIntersection:ks,_getBitCode:Bn,_sqClosestPointOnSegment:cr,isFlat:gt,_flat:xh,polylineCenter:kh},Da={project:function(i){return new b(i.lng,i.lat)},unproject:function(i){return new re(i.y,i.x)},bounds:new H([-180,-90],[180,90])},Ua={R:6378137,R_MINOR:6356752314245179e-9,bounds:new H([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(i){var o=Math.PI/180,u=this.R,h=i.lat*o,f=this.R_MINOR/u,g=Math.sqrt(1-f*f),k=g*Math.sin(h),T=Math.tan(Math.PI/4-h/2)/Math.pow((1-k)/(1+k),g/2);return h=-u*Math.log(Math.max(T,1e-10)),new b(i.lng*o*u,h)},unproject:function(i){for(var o=180/Math.PI,u=this.R,h=this.R_MINOR/u,f=Math.sqrt(1-h*h),g=Math.exp(-i.y/u),k=Math.PI/2-2*Math.atan(g),T=0,O=.1,A;T<15&&Math.abs(O)>1e-7;T++)A=f*Math.sin(k),A=Math.pow((1-A)/(1+A),f/2),O=Math.PI/2-2*Math.atan(g*A)-k,k+=O;return new re(k*o,i.x*o/u)}},yg={__proto__:null,LonLat:Da,Mercator:Ua,SphericalMercator:da},wg=a({},an,{code:"EPSG:3395",projection:Ua,transformation:function(){var i=.5/(Math.PI*Ua.R);return tr(i,.5,-i,.5)}()}),Lh=a({},an,{code:"EPSG:4326",projection:Da,transformation:tr(1/180,1,-1/180,.5)}),xg=a({},Ye,{projection:Da,transformation:tr(1,0,-1,0),scale:function(i){return Math.pow(2,i)},zoom:function(i){return Math.log(i)/Math.LN2},distance:function(i,o){var u=o.lng-i.lng,h=o.lat-i.lat;return Math.sqrt(u*u+h*h)},infinite:!0});Ye.Earth=an,Ye.EPSG3395=wg,Ye.EPSG3857=pa,Ye.EPSG900913=E_,Ye.EPSG4326=Lh,Ye.Simple=xg;var Ct=mt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(i){return i.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(i){return i&&i.removeLayer(this),this},getPane:function(i){return this._map.getPane(i?this.options[i]||i:this.options.pane)},addInteractiveTarget:function(i){return this._map._targets[d(i)]=this,this},removeInteractiveTarget:function(i){return delete this._map._targets[d(i)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(i){var o=i.target;if(o.hasLayer(this)){if(this._map=o,this._zoomAnimated=o._zoomAnimated,this.getEvents){var u=this.getEvents();o.on(u,this),this.once("remove",function(){o.off(u,this)},this)}this.onAdd(o),this.fire("add"),o.fire("layeradd",{layer:this})}}});ne.include({addLayer:function(i){if(!i._layerAdd)throw new Error("The provided object is not a Layer.");var o=d(i);return this._layers[o]?this:(this._layers[o]=i,i._mapToAdd=this,i.beforeAdd&&i.beforeAdd(this),this.whenReady(i._layerAdd,i),this)},removeLayer:function(i){var o=d(i);return this._layers[o]?(this._loaded&&i.onRemove(this),delete this._layers[o],this._loaded&&(this.fire("layerremove",{layer:i}),i.fire("remove")),i._map=i._mapToAdd=null,this):this},hasLayer:function(i){return d(i)in this._layers},eachLayer:function(i,o){for(var u in this._layers)i.call(o,this._layers[u]);return this},_addLayers:function(i){i=i?S(i)?i:[i]:[];for(var o=0,u=i.length;o<u;o++)this.addLayer(i[o])},_addZoomLimit:function(i){(!isNaN(i.options.maxZoom)||!isNaN(i.options.minZoom))&&(this._zoomBoundLayers[d(i)]=i,this._updateZoomLevels())},_removeZoomLimit:function(i){var o=d(i);this._zoomBoundLayers[o]&&(delete this._zoomBoundLayers[o],this._updateZoomLevels())},_updateZoomLevels:function(){var i=1/0,o=-1/0,u=this._getZoomSpan();for(var h in this._zoomBoundLayers){var f=this._zoomBoundLayers[h].options;i=f.minZoom===void 0?i:Math.min(i,f.minZoom),o=f.maxZoom===void 0?o:Math.max(o,f.maxZoom)}this._layersMaxZoom=o===-1/0?void 0:o,this._layersMinZoom=i===1/0?void 0:i,u!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZo
vendor: 13,906 bytes, line 43
43om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var li=Ct.extend({initialize:function(i,o){P(this,o),this._layers={};var u,h;if(i)for(u=0,h=i.length;u<h;u++)this.addLayer(i[u])},addLayer:function(i){var o=this.getLayerId(i);return this._layers[o]=i,this._map&&this._map.addLayer(i),this},removeLayer:function(i){var o=i in this._layers?i:this.getLayerId(i);return this._map&&this._layers[o]&&this._map.removeLayer(this._layers[o]),delete this._layers[o],this},hasLayer:function(i){var o=typeof i=="number"?i:this.getLayerId(i);return o in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(i){var o=Array.prototype.slice.call(arguments,1),u,h;for(u in this._layers)h=this._layers[u],h[i]&&h[i].apply(h,o);return this},onAdd:function(i){this.eachLayer(i.addLayer,i)},onRemove:function(i){this.eachLayer(i.removeLayer,i)},eachLayer:function(i,o){for(var u in this._layers)i.call(o,this._layers[u]);return this},getLayer:function(i){return this._layers[i]},getLayers:function(){var i=[];return this.eachLayer(i.push,i),i},setZIndex:function(i){return this.invoke("setZIndex",i)},getLayerId:function(i){return d(i)}}),kg=function(i,o){return new li(i,o)},Wt=li.extend({addLayer:function(i){return this.hasLayer(i)?this:(i.addEventParent(this),li.prototype.addLayer.call(this,i),this.fire("layeradd",{layer:i}))},removeLayer:function(i){return this.hasLayer(i)?(i in this._layers&&(i=this._layers[i]),i.removeEventParent(this),li.prototype.removeLayer.call(this,i),this.fire("layerremove",{layer:i})):this},setStyle:function(i){return this.invoke("setStyle",i)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var i=new we;for(var o in this._layers){var u=this._layers[o];i.extend(u.getBounds?u.getBounds():u.getLatLng())}return i}}),Lg=function(i,o){return new Wt(i,o)},ui=je.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(i){P(this,i)},createIcon:function(i){return this._createIcon("icon",i)},createShadow:function(i){return this._createIcon("shadow",i)},_createIcon:function(i,o){var u=this._getIconUrl(i);if(!u){if(i==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var h=this._createImg(u,o&&o.tagName==="IMG"?o:null);return this._setIconStyles(h,i),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),h},_setIconStyles:function(i,o){var u=this.options,h=u[o+"Size"];typeof h=="number"&&(h=[h,h]);var f=I(h),g=I(o==="shadow"&&u.shadowAnchor||u.iconAnchor||f&&f.divideBy(2,!0));i.className="leaflet-marker-"+o+" "+(u.className||""),g&&(i.style.marginLeft=-g.x+"px",i.style.marginTop=-g.y+"px"),f&&(i.style.width=f.x+"px",i.style.height=f.y+"px")},_createImg:function(i,o){return o=o||document.createElement("img"),o.src=i,o},_getIconUrl:function(i){return W.retina&&this.options[i+"RetinaUrl"]||this.options[i+"Url"]}});function Sg(i){return new ui(i)}var hr=ui.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(i){return typeof hr.imagePath!="string"&&(hr.imagePath=this._detectIconPath()),(this.options.imagePath||hr.imagePath)+ui.prototype._getIconUrl.call(this,i)},_stripUrl:function(i){var o=function(u,h,f){var g=h.exec(u);return g&&g[f]};return i=o(i,/^url\((['"])?(.+)\1\)$/,2),i&&o(i,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var i=se("div","leaflet-default-icon-path",document.body),o=rr(i,"background-image")||rr(i,"backgroundImage");if(document.body.removeChild(i),o=this._stripUrl(o),o)return o;var u=document.querySelector('link[href$="leaflet.css"]');return u?u.href.substring(0,u.href.length-11-1):""}}),Sh=Rt.extend({initialize:function(i){this._marker=i},addHooks:function(){var i=this._marker._icon;this._draggable||(this._draggable=new ln(i,i,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Q(i,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Le(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(i){var o=this._marker,u=o._map,h=this._marker.options.autoPanSpeed,f=this._marker.options.autoPanPadding,g=Nn(o._icon),k=u.getPixelBounds(),T=u.getPixelOrigin(),O=G(k.min._subtract(T).add(f),k.max._subtract(T).subtract(f));if(!O.contains(g)){var A=I((Math.max(O.max.x,g.x)-O.max.x)/(k.max.x-O.max.x)-(Math.min(O.min.x,g.x)-O.min.x)/(k.min.x-O.min.x),(Math.max(O.max.y,g.y)-O.max.y)/(k.max.y-O.max.y)-(Math.min(O.min.y,g.y)-O.min.y)/(k.min.y-O.min.y)).multiplyBy(h);u.panBy(A,{animate:!1}),this._draggable._newPos._add(A),this._draggable._startPos._add(A),Ce(o._icon,this._draggable._newPos),this._onDrag(i),this._panRequest=ae(this._adjustPan.bind(this,i))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(i){this._marker.options.autoPan&&(ke(this._panRequest),this._panRequest=ae(this._adjustPan.bind(this,i)))},_onDrag:function(i){var o=this._marker,u=o._shadow,h=Nn(o._icon),f=o._map.layerPointToLatLng(h);u&&Ce(u,h),o._latlng=f,i.latlng=f,i.oldLatLng=this._oldLatLng,o.fire("move",i).fire("drag",i)},_onDragEnd:function(i){ke(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",i)}}),Ls=Ct.extend({options:{icon:new hr,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(i,o){P(this,o),this._latlng=q(i)},onAdd:function(i){this._zoomAnimated=this._zoomAnimated&&i.options.markerZoomAnimation,this._zoomAnimated&&i.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(i){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&i.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(i){var o=this._latlng;return this._latlng=q(i),this.update(),this.fire("move",{oldLatLng:o,latlng:this._latlng})},setZIndexOffset:function(i){return this.options.zIndexOffset=i,this.update()},getIcon:function(){return this.options.icon},setIcon:function(i){return this.options.icon=i,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var i=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(i)}return this},_initIcon:function(){var i=this.options,o="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),u=i.icon.createIcon(this._icon),h=!1;u!==this._icon&&(this._icon&&this._removeIcon(),h=!0,i.title&&(u.title=i.title),u.tagName==="IMG"&&(u.alt=i.alt||"")),Q(u,o),i.keyboard&&(u.tabIndex="0",u.setAttribute("role","button")),this._icon=u,i.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&K(u,"focus",this._panOnFocus,this);var f=i.icon.createShadow(this._shadow),g=!1;f!==this._shadow&&(this._removeShadow(),g=!0),f&&(Q(f,o),f.alt=""),this._shadow=f,i.opacity<1&&this._updateOpacity(),h&&this.getPane().appendChild(this._icon),this._initInteraction(),f&&g&&this.getPane(i.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ce(this._icon,"focus",this._panOnFocus,this),_e(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&_e(this._shadow),this._shadow=null},_setPos:function(i){this._icon&&Ce(this._icon,i),this._shadow&&Ce(this._shadow,i),this._zIndex=i.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(i){this._icon&&(this._icon.style.zIndex=this._zIndex+i)},_animateZoom:function(i){var o=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center).round();this._setPos(o)},_initInteraction:function(){if(this.options.interactive&&(Q(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Sh)){var i=this.options.draggable;this.dragging&&(i=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Sh(this),i&&this.dragging.enable()}},setOpacity:function(i){return this.options.opacity=i,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var i=this.options.opacity;this._icon&&_t(this._icon,i),this._shadow&&_t(this._shadow,i)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var i=this._map;if(i){var o=this.options.icon.options,u=o.iconSize?I(o.iconSize):I(0,0),h=o.iconAnchor?I(o.iconAnchor):I(0,0);i.panInside(this._latlng,{paddingTopLeft:h,paddingBottomRight:u.subtract(h)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Pg(i,o){return new Ls(i,o)}var un=Ct.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(i){this._renderer=i.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(i){return P(this,i),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&i&&Object.prototype.hasOwnProperty.call(i,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Ss=un.extend({options:{fill:!0,radius:10},initialize:function(i,o){P(this,o),this._latlng=q(i),this._radius=this.options.radius},setLatLng:function(i){var o=this._latlng;return this._latlng=q(i),this.redraw(),this.fire("move",{oldLatLng:o,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(i){return this.options.radius=this._radius=i,this.redraw()},getRadius:function(){return this._radius},setStyle:function(i){var o=i&&i.radius||this._radius;return un.prototype.setStyle.call(this,i),this.setRadius(o),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var i=this._radius,o=this._radiusY||i,u=this._clickTolerance(),h=[i+u,o+u];this._pxBounds=new H(this._point.subtract(h),this._point.add(h))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(i){return i.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Cg(i,o){return new Ss(i,o)}var $a=Ss.extend({initialize:function(i,o,u){if(typeof o=="number"&&(o=a({},u,{radius:o})),P(this,o),this._latlng=q(i),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(i){return this._mRadius=i,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var i=[this._radius,this._radiusY||this._radius];return new we(this._map.layerPointToLatLng(this._point.subtract(i)),this._map.layerPointToLatLng(this._point.add(i)))},setStyle:un.prototype.setStyle,_project:function(){var i=this._latlng.lng,o=this._latlng.lat,u=this._map,h=u.options.crs;if(h.distance===an.distance){var f=Math.PI/180,g=this._mRadius/an.R/f,k=u.project([o+g,i]),T=u.project([o-g,i]),O=k.add(T).divideBy(2),A=u.unproject(O).lat,U=Math.acos((Math.cos(g*f)-Math.sin(o*f)*Math.sin(A*f))/(Math.cos(o*f)*Math.cos(A*f)))/f;(isNaN(U)||U===0)&&(U=g/Math.cos(Math.PI/180*o)),this._point=O.subtract(u.getPixelOrigin()),this._radius=isNaN(U)?0:O.x-u.project([A,i-U]).x,this._radiusY=O.y-k.y}else{var V=h.unproject(h.project(this._latlng).subtract([this._mRadius,0]));this._point=u.latLngToLayerPoint(this._latlng),this._radius=this._point.x-u.latLngToLayerPoint(V).x}this._updateBounds()}});function Eg(i,o,u){return new $a(i,o,u)}var Vt=un.extend({options:{smoothFactor:1,noClip:!1},initialize:function(i,o){P(this,o),this._setLatLngs(i)},getLatLngs:function(){return this._latlngs},setLatLngs:function(i){return this._setLatLngs(i),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(i){for(var o=1/0,u=null,h=cr,f,g,k=0,T=this._parts.length;k<T;k++)for(var O=this._parts[k],A=1,U=O.length;A<U;A++){f=O[A-1],g=O[A];var V=h(i,f,g,!0);V<o&&(o=V,u=h(i,f,g))}return u&&(u.distance=Math.sqrt(o)),u}
43,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return kh(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(i,o){return o=o||this._defaultShape(),i=q(i),o.push(i),this._bounds.extend(i),this.redraw()},_setLatLngs:function(i){this._bounds=new we,this._latlngs=this._convertLatLngs(i)},_defaultShape:function(){return gt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(i){for(var o=[],u=gt(i),h=0,f=i.length;h<f;h++)u?(o[h]=q(i[h]),this._bounds.extend(o[h])):o[h]=this._convertLatLngs(i[h]);return o},_project:function(){var i=new H;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,i),this._bounds.isValid()&&i.isValid()&&(this._rawPxBounds=i,this._updateBounds())},_updateBounds:function(){var i=this._clickTolerance(),o=new b(i,i);this._rawPxBounds&&(this._pxBounds=new H([this._rawPxBounds.min.subtract(o),this._rawPxBounds.max.add(o)]))},_projectLatlngs:function(i,o,u){var h=i[0]instanceof re,f=i.length,g,k;if(h){for(k=[],g=0;g<f;g++)k[g]=this._map.latLngToLayerPoint(i[g]),u.extend(k[g]);o.push(k)}else for(g=0;g<f;g++)this._projectLatlngs(i[g],o,u)},_clipPoints:function(){var i=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}var o=this._parts,u,h,f,g,k,T,O;for(u=0,f=0,g=this._rings.length;u<g;u++)for(O=this._rings[u],h=0,k=O.length;h<k-1;h++)T=wh(O[h],O[h+1],i,h,!0),T&&(o[f]=o[f]||[],o[f].push(T[0]),(T[1]!==O[h+1]||h===k-2)&&(o[f].push(T[1]),f++))}},_simplifyPoints:function(){for(var i=this._parts,o=this.options.smoothFactor,u=0,h=i.length;u<h;u++)i[u]=gh(i[u],o)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(i,o){var u,h,f,g,k,T,O=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(u=0,g=this._parts.length;u<g;u++)for(T=this._parts[u],h=0,k=T.length,f=k-1;h<k;f=h++)if(!(!o&&h===0)&&vh(i,T[f],T[h])<=O)return!0;return!1}});function Tg(i,o){return new Vt(i,o)}Vt._flat=xh;var ci=Vt.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
43,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return _h(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(i){var o=Vt.prototype._convertLatLngs.call(this,i),u=o.length;return u>=2&&o[0]instanceof re&&o[0].equals(o[u-1])&&o.pop(),o},_setLatLngs:function(i){Vt.prototype._setLatLngs.call(this,i),gt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return gt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var i=this._renderer._bounds,o=this.options.weight,u=new b(o,o);if(i=new H(i.min.subtract(u),i.max.add(u)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}for(var h=0,f=this._rings.length,g;h<f;h++)g=mh(this._rings[h],i,!0),g.length&&this._parts.push(g)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(i){var o=!1,u,h,f,g,k,T,O,A;if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(g=0,O=this._parts.length;g<O;g++)for(u=this._parts[g],k=0,A=u.length,T=A-1;k<A;T=k++)h=u[k],f=u[T],h.y>i.y!=f.y>i.y&&i.x<(f.x-h.x)*(i.y-h.y)/(f.y-h.y)+h.x&&(o=!o);return o||Vt.prototype._containsPoint.call(this,i,!0)}});function bg(i,o){return new ci(i,o)}var Gt=Wt.extend({initialize:function(i,o){P(this,o),this._layers={},i&&this.addData(i)},addData:function(i){var o=S(i)?i:i.features,u,h,f;if(o){for(u=0,h=o.length;u<h;u++)f=o[u],(f.geometries||f.geometry||f.features||f.coordinates)&&this.addData(f);return this}var g=this.options;if(g.filter&&!g.filter(i))return this;var k=Ps(i,g);return k?(k.feature=Ts(i),k.defaultOptions=k.options,this.resetStyle(k),g.onEachFeature&&g.onEachFeature(i,k),this.addLayer(k)):this},resetStyle:function(i){return i===void 0?this.eachLayer(this.resetStyle,this):(i.options=a({},i.defaultOptions),this._setLayerStyle(i,this.options.style),this)},setStyle:function(i){return this.eachLayer(function(o){this._setLayerStyle(o,i)},this)},_setLayerStyle:function(i,o){i.setStyle&&(typeof o=="function"&&(o=o(i.feature)),i.setStyle(o))}});function Ps(i,o){var u=i.type==="Feature"?i.geometry:i,h=u?u.coordinates:null,f=[],g=o&&o.pointToLayer,k=o&&o.coordsToLatLng||Fa,T,O,A,U;if(!h&&!u)return null;switch(u.type){case"Point":return T=k(h),Ph(g,i,T,o);case"MultiPoint":for(A=0,U=h.length;A<U;A++)T=k(h[A]),f.push(Ph(g,i,T,o));return new Wt(f);case"LineString":case"MultiLineString":return O=Cs(h,u.type==="LineString"?0:1,k),new Vt(O,o);case"Polygon":case"MultiPolygon":return O=Cs(h,u.type==="Polygon"?1:2,k),new ci(O,o);case"GeometryCollection":for(A=0,U=u.geometries.length;A<U;A++){var V=Ps({geometry:u.geometries[A],type:"Feature",properties:i.properties},o);V&&f.push(V)}return new Wt(f);case"FeatureCollection":for(A=0,U=u.features.length;A<U;A++){var X=Ps(u.features[A],o);X&&f.push(X)}return new Wt(f);default:throw new Error("Invalid GeoJSON object.")}}function Ph(i,o,u,h){return i?i(o,u):new Ls(u,h&&h.markersInheritOptions&&h)}function Fa(i){return new re(i[1],i[0],i[2])}function Cs(i,o,u){for(var h=[],f=0,g=i.length,k;f<g;f++)k=o?Cs(i[f],o-1,u):(u||Fa)(i[f]),h.push(k);return h}function Za(i,o){return i=q(i),i.alt!==void 0?[v(i.lng,o),v(i.lat,o),v(i.alt,o)]:[v(i.lng,o),v(i.lat,o)]}function Es(i,o,u,h){for(var f=[],g=0,k=i.length;g<k;g++)f.push(o?Es(i[g],gt(i[g])?0:o-1,u,h):Za(i[g],h));return!o&&u&&f.length>0&&f.push(f[0].slice()),f}function hi(i,o){return i.feature?a({},i.feature,{geometry:o}):Ts(o)}function Ts(i){return i.type==="Feature"||i.type==="FeatureCollection"?i:{type:"Feature",properties:{},geometry:i}}var Ha={toGeoJSON:function(i){return hi(this,{type:"Point",coordinates:Za(this.getLatLng(),i)})}};Ls.include(Ha),$a.include(Ha),Ss.include(Ha),Vt.include({toGeoJSON:function(i){var o=!gt(this._latlngs),u=Es(this._latlngs,o?1:0,!1,i);return hi(this,{type:(o?"Multi":"")+"LineString",coordinates:u})}}),ci.include({toGeoJSON:function(i){var o=!gt(this._latlngs),u=o&&!gt(this._latlngs[0]),h=Es(this._latlngs,u?2:o?1:0,!0,i);return o||(h=[h]),hi(this,{type:(u?"Multi":"")+"Polygon",coordinates:h})}}),li.include({toMultiPoint:function(i){var o=[];return this.eachLayer(function(u){o.push(u.toGeoJSON(i).geometry.coordinates)}),hi(this,{type:"MultiPoint",coordinates:o})},toGeoJSON:function(i){var o=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(o==="MultiPoint")return this.toMultiPoint(i);var u=o==="GeometryCollection",h=[];return this.eachLayer(function(f){if(f.toGeoJSON){var g=f.toGeoJSON(i);if(u)h.push(g.geometry);else{var k=Ts(g);k.type==="FeatureCollection"?h.push.apply(h,k.features):h.push(k)}}}),u?hi(this,{geometries:h,type:"GeometryCollection"}):{type:"FeatureCollection",features:h}}});function Ch(i,o){return new Gt(i,o)}var Og=Ch,bs=Ct.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(i,o,u){this._url=i,this._bounds=le(o),P(this,u)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Q(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){_e(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(i){return this.options.opacity=i,this._image&&this._updateOpacity(),this},setStyle:function(i){return i.opacity&&this.setOpacity(i.opacity),this},bringToFront:function(){return this._map&&oi(this._image),this},bringToBack:function(){return this._map&&ai(this._image),this},setUrl:function(i){return this._url=i,this._image&&(this._image.src=i),this},setBounds:function(i){return this._bounds=le(i),this._map&&this._reset(),this},getEvents:function(){var i={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var i=this._url.tagName==="IMG",o=this._image=i?this._url:se("img");if(Q(o,"leaflet-image-layer"),this._zoomAnimated&&Q(o,"leaflet-zoom-animated"),this.options.className&&Q(o,this.options.className),o.onselectstart=_,o.onmousemove=_,o.onload=l(this.fire,this,"load"),o.onerror=l(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),i){this._url=o.src;return}o.src=this._url,o.alt=this.options.alt},_animateZoom:function(i){var o=this._map.getZoomScale(i.zoom),u=this._map._latLngBoundsToNewLayerBounds(this._bounds,i.zoom,i.center).min;zn(this._image,u,o)},_reset:function(){var i=this._image,o=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),u=o.getSize();Ce(i,o.min),i.style.width=u.x+"px",i.style.height=u.y+"px"},_updateOpacity:function(){_t(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var i=this.options.errorOverlayUrl;i&&this._url!==i&&(this._url=i,this._image.src=i)},getCenter:function(){return this._bounds.getCenter()}}),Mg=function(i,o,u){return new bs(i,o,u)},Eh=bs.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
vendor: 10,313 bytes, line 43
43ine:!0},_initImage:function(){var i=this._url.tagName==="VIDEO",o=this._image=i?this._url:se("video");if(Q(o,"leaflet-image-layer"),this._zoomAnimated&&Q(o,"leaflet-zoom-animated"),this.options.className&&Q(o,this.options.className),o.onselectstart=_,o.onmousemove=_,o.onloadeddata=l(this.fire,this,"load"),i){for(var u=o.getElementsByTagName("source"),h=[],f=0;f<u.length;f++)h.push(u[f].src);this._url=u.length>0?h:[o.src];return}S(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(o.style,"objectFit")&&(o.style.objectFit="fill"),o.autoplay=!!this.options.autoplay,o.loop=!!this.options.loop,o.muted=!!this.options.muted,o.playsInline=!!this.options.playsInline;for(var g=0;g<this._url.length;g++){var k=se("source");k.src=this._url[g],o.appendChild(k)}}});function Ig(i,o,u){return new Eh(i,o,u)}var Th=bs.extend({_initImage:function(){var i=this._image=this._url;Q(i,"leaflet-image-layer"),this._zoomAnimated&&Q(i,"leaflet-zoom-animated"),this.options.className&&Q(i,this.options.className),i.onselectstart=_,i.onmousemove=_}});function Ag(i,o,u){return new Th(i,o,u)}var Bt=Ct.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(i,o){i&&(i instanceof re||S(i))?(this._latlng=q(i),P(this,o)):(P(this,i),this._source=o),this.options.content&&(this._content=this.options.content)},openOn:function(i){return i=arguments.length?i:this._source._map,i.hasLayer(this)||i.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(i){return this._map?this.close():(arguments.length?this._source=i:i=this._source,this._prepareOpen(),this.openOn(i._map)),this},onAdd:function(i){this._zoomAnimated=i._zoomAnimated,this._container||this._initLayout(),i._fadeAnimated&&_t(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),i._fadeAnimated&&_t(this._container,1),this.bringToFront(),this.options.interactive&&(Q(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(i){i._fadeAnimated?(_t(this._container,0),this._removeTimeout=setTimeout(l(_e,void 0,this._container),200)):_e(this._container),this.options.interactive&&(Le(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(i){return this._latlng=q(i),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(i){return this._content=i,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var i={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&oi(this._container),this},bringToBack:function(){return this._map&&ai(this._container),this},_prepareOpen:function(i){var o=this._source;if(!o._map)return!1;if(o instanceof Wt){o=null;var u=this._source._layers;for(var h in u)if(u[h]._map){o=u[h];break}if(!o)return!1;this._source=o}if(!i)if(o.getCenter)i=o.getCenter();else if(o.getLatLng)i=o.getLatLng();else if(o.getBounds)i=o.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(i),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var i=this._contentNode,o=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof o=="string")i.innerHTML=o;else{for(;i.hasChildNodes();)i.removeChild(i.firstChild);i.appendChild(o)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var i=this._map.latLngToLayerPoint(this._latlng),o=I(this.options.offset),u=this._getAnchor();this._zoomAnimated?Ce(this._container,i.add(u)):o=o.add(i).add(u);var h=this._containerBottom=-o.y,f=this._containerLeft=-Math.round(this._containerWidth/2)+o.x;this._container.style.bottom=h+"px",this._container.style.left=f+"px"}},_getAnchor:function(){return[0,0]}});ne.include({_initOverlay:function(i,o,u,h){var f=o;return f instanceof i||(f=new i(h).setContent(o)),u&&f.setLatLng(u),f}}),Ct.include({_initOverlay:function(i,o,u,h){var f=u;return f instanceof i?(P(f,h),f._source=this):(f=o&&!h?o:new i(h,this),f.setContent(u)),f}});var Os=Bt.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(i){return i=arguments.length?i:this._source._map,!i.hasLayer(this)&&i._popup&&i._popup.options.autoClose&&i.removeLayer(i._popup),i._popup=this,Bt.prototype.openOn.call(this,i)},onAdd:function(i){Bt.prototype.onAdd.call(this,i),i.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof un||this._source.on("preclick",jn))},onRemove:function(i){Bt.prototype.onRemove.call(this,i),i.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof un||this._source.off("preclick",jn))},getEvents:function(){var i=Bt.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(i.preclick=this.close),this.options.keepInView&&(i.moveend=this._adjustPan),i},_initLayout:function(){var i="leaflet-popup",o=this._container=se("div",i+" "+(this.options.className||"")+" leaflet-zoom-animated"),u=this._wrapper=se("div",i+"-content-wrapper",o);if(this._contentNode=se("div",i+"-content",u),lr(o),Aa(this._contentNode),K(o,"contextmenu",jn),this._tipContainer=se("div",i+"-tip-container",o),this._tip=se("div",i+"-tip",this._tipContainer),this.options.closeButton){var h=this._closeButton=se("a",i+"-close-button",o);h.setAttribute("role","button"),h.setAttribute("aria-label","Close popup"),h.href="#close",h.innerHTML='<span aria-hidden="true">&#215;</span>',K(h,"click",function(f){Re(f),this.close()},this)}},_updateLayout:function(){var i=this._contentNode,o=i.style;o.width="",o.whiteSpace="nowrap";var u=i.offsetWidth;u=Math.min(u,this.options.maxWidth),u=Math.max(u,this.options.minWidth),o.width=u+1+"px",o.whiteSpace="",o.height="";var h=i.offsetHeight,f=this.options.maxHeight,g="leaflet-popup-scrolled";f&&h>f?(o.height=f+"px",Q(i,g)):Le(i,g),this._containerWidth=this._container.offsetWidth},_animateZoom:function(i){var o=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center),u=this._getAnchor();Ce(this._container,o.add(u))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var i=this._map,o=parseInt(rr(this._container,"marginBottom"),10)||0,u=this._container.offsetHeight+o,h=this._containerWidth,f=new b(this._containerLeft,-u-this._containerBottom);f._add(Nn(this._container));var g=i.layerPointToContainerPoint(f),k=I(this.options.autoPanPadding),T=I(this.options.autoPanPaddingTopLeft||k),O=I(this.options.autoPanPaddingBottomRight||k),A=i.getSize(),U=0,V=0;g.x+h+O.x>A.x&&(U=g.x+h-A.x+O.x),g.x-U-T.x<0&&(U=g.x-T.x),g.y+u+O.y>A.y&&(V=g.y+u-A.y+O.y),g.y-V-T.y<0&&(V=g.y-T.y),(U||V)&&(this.options.keepInView&&(this._autopanning=!0),i.fire("autopanstart").panBy([U,V]))}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),zg=function(i,o){return new Os(i,o)};ne.mergeOptions({closePopupOnClick:!0}),ne.include({openPopup:function(i,o,u){return this._initOverlay(Os,i,o,u).openOn(this),this},closePopup:function(i){return i=arguments.length?i:this._popup,i&&i.close(),this}}),Ct.include({bindPopup:function(i,o){return this._popup=this._initOverlay(Os,this._popup,i,o),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(i){return this._popup&&(this instanceof Wt||(this._popup._source=this),this._popup._prepareOpen(i||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():!1},setPopupContent:function(i){return this._popup&&this._popup.setContent(i),this},getPopup:function(){return this._popup},_openPopup:function(i){if(!(!this._popup||!this._map)){Rn(i);var o=i.layer||i.target;if(this._popup._source===o&&!(o instanceof un)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(i.latlng);return}this._popup._source=o,this.openPopup(i.latlng)}},_movePopup:function(i){this._popup.setLatLng(i.latlng)},_onKeyPress:function(i){i.originalEvent.keyCode===13&&this._openPopup(i)}});var Ms=Bt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(i){Bt.prototype.onAdd.call(this,i),this.setOpacity(this.options.opacity),i.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(i){Bt.prototype.onRemove.call(this,i),i.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var i=Bt.prototype.getEvents.call(this);return this.options.permanent||(i.preclick=this.close),i},_initLayout:function(){var i="leaflet-tooltip",o=i+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=se("div",o),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+
43d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(i){var o,u,h=this._map,f=this._container,g=h.latLngToContainerPoint(h.getCenter()),k=h.layerPointToContainerPoint(i),T=this.options.direction,O=f.offsetWidth,A=f.offsetHeight,U=I(this.options.offset),V=this._getAnchor();T==="top"?(o=O/2,u=A):T==="bottom"?(o=O/2,u=0):T==="center"?(o=O/2,u=A/2):T==="right"?(o=0,u=A/2):T==="left"?(o=O,u=A/2):k.x<g.x?(T="right",o=0,u=A/2):(T="left",o=O+(U.x+V.x)*2,u=A/2),i=i.subtract(I(o,u,!0)).add(U).add(V),Le(f,"leaflet-tooltip-right"),Le(f,"leaflet-tooltip-left"),Le(f,"leaflet-tooltip-top"),Le(f,"leaflet-tooltip-bottom"),Q(f,"leaflet-tooltip-"+T),Ce(f,i)},_updatePosition:function(){var i=this._map.latLngToLayerPoint(this._latlng);this._setPosition(i)},setOpacity:function(i){this.options.opacity=i,this._container&&_t(this._container,i)},_animateZoom:function(i){var o=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center);this._setPosition(o)},_getAnchor:function(){return I(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Ng=function(i,o){return new Ms(i,o)};ne.include({openTooltip:function(i,o,u){return this._initOverlay(Ms,i,o,u).openOn(this),this},closeTooltip:function(i){return i.close(),this}}),Ct.include({bindTooltip:function(i,o){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Ms,this._tooltip,i,o),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(i){if(!(!i&&this._tooltipHandlersAdded)){var o=i?"off":"on",u={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?u.add=this._openTooltip:(u.mouseover=this._openTooltip,u.mouseout=this.closeTooltip,u.click=this._openTooltip,this._map?this._addFocusListeners():u.add=this._addFocusListeners),this._tooltip.options.sticky&&(u.mousemove=this._moveTooltip),this[o](u),this._tooltipHandlersAdded=!i}},openTooltip:function(i){return this._tooltip&&(this instanceof Wt||(this._tooltip._source=this),this._tooltip._prepareOpen(i)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(i){return this._tooltip&&this._tooltip.setContent(i),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(i){var o=typeof i.getElement=="function"&&i.getElement();o&&(K(o,"focus",function(){this._tooltip._source=i,this.openTooltip()},this),K(o,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(i){var o=typeof i.getElement=="function"&&i.getElement();o&&o.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(i){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var o=this;this._map.once("moveend",function(){o._openOnceFlag=!1,o._openTooltip(i)});return}this._tooltip._source=i.layer||i.target,this.openTooltip(this._tooltip.options.sticky?i.latlng:void 0)}},_moveTooltip:function(i){var o=i.latlng,u,h;this._tooltip.options.sticky&&i.originalEvent&&(u=this._map.mouseEventToContainerPoint(i.originalEvent),h=this._map.containerPointToLayerPoint(u),o=this._map.layerPointToLatLng(h)),this._tooltip.setLatLng(o)}});var bh=ui.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(i){var o=i&&i.tagName==="DIV"?i:document.createElement("div"),u=this.options;if(u.html instanceof Element?(gs(o),o.appendChild(u.html)):o.innerHTML=u.html!==!1?u.html:"",u.bgPos){var h=I(u.bgPos);o.style.backgroundPosition=-h.x+"px "+-h.y+"px"}return this._setIconStyles(o,"icon"),o},createShadow:function(){return null}});function jg(i){return new bh(i)}ui.Default=hr;var dr=Ct.extend({options:{tileSize:256,opacity:1,updateWhenIdle:W.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(i){P(this,i)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()}
43,beforeAdd:function(i){i._addZoomLimit(this)},onRemove:function(i){this._removeAllTiles(),_e(this._container),i._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(oi(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ai(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(i){return this.options.opacity=i,this._updateOpacity(),this},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var i=this._clampZoom(this._map.getZoom());i!==this._tileZoom&&(this._tileZoom=i,this._updateLevels()),this._update()}return this},getEvents:function(){var i={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=p(this._onMoveEnd,this.options.updateInterval,this)),i.move=this._onMove),this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},createTile:function(){return document.createElement("div")},getTileSize:function(){var i=this.options.tileSize;return i instanceof b?i:new b(i,i)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(i){for(var o=this.getPane().children,u=-i(-1/0,1/0),h=0,f=o.length,g;h<f;h++)g=o[h].style.zIndex,o[h]!==this._container&&g&&(u=i(u,+g));isFinite(u)&&(this.options.zIndex=u+i(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!W.ielt9){_t(this._container,this.options.opacity);var i=+new Date,o=!1,u=!1;for(var h in this._tiles){var f=this._tiles[h];if(!(!f.current||!f.loaded)){var g=Math.min(1,(i-f.loaded)/200);_t(f.el,g),g<1?o=!0:(f.active?u=!0:this._onOpaqueTile(f),f.active=!0)}}u&&!this._noPrune&&this._pruneTiles(),o&&(ke(this._fadeFrame),this._fadeFrame=ae(this._updateOpacity,this))}},_onOpaqueTile:_,_initContainer:function(){this._container||(this._container=se("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var i=this._tileZoom,o=this.options.maxZoom;if(i!==void 0){for(var u in this._levels)u=Number(u),this._levels[u].el.children.length||u===i?(this._levels[u].el.style.zIndex=o-Math.abs(i-u),this._onUpdateLevel(u)):(_e(this._levels[u].el),this._removeTilesAtZoom(u),this._onRemoveLevel(u),delete this._levels[u]);var h=this._levels[i],f=this._map;return h||(h=this._levels[i]={},h.el=se("div","leaflet-tile-container leaflet-zoom-animated",this._container),h.el.style.zIndex=o,h.origin=f.project(f.unproject(f.getPixelOrigin()),i).round(),h.zoom=i,this._setZoomTransform(h,f.getCenter(),f.getZoom()),_(h.el.offsetWidth),this._onCreateLevel(h)),this._level=h,h}},_onUpdateLevel:_,_onRemoveLevel:_,_onCreateLevel:_,_pruneTiles:function(){if(this._map){var i,o,u=this._map.getZoom();if(u>this.options.maxZoom||u<this.options.minZoom){this._removeAllTiles();return}for(i in this._tiles)o=this._tiles[i],o.retain=o.current;for(i in this._tiles)if(o=this._tiles[i],o.current&&!o.active){var h=o.coords;this._retainParent(h.x,h.y,h.z,h.z-5)||this._retainChildren(h.x,h.y,h.z,h.z+2)}for(i in this._tiles)this._tiles[i].retain||this._removeTile(i)}},_removeTilesAtZoom:function(i){for(var o in this._tiles)this._tiles[o].coords.z===i&&this._removeTile(o)},_removeAllTiles:function(){for(var i in this._tiles)this._removeTile(i)},_invalidateAll:function(){for(var i in this._levels)_e(this._levels[i].el),this._onRemoveLevel(Number(i)),delete this._levels[i];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(i,o,u,h){var f=Math.floor(i/2),g=Math.floor(o/2),k=u-1,T=new b(+f,+g);T.z=+k;var O=this._tileCoordsToKey(T),A=this._tiles[O];return A&&A.active?(A.retain=!0,!0):(A&&A.loaded&&(A.retain=!0),k>h?this._retainParent(f,g,k,h):!1)},_retainChildren:function(i,o,u,h){for(var f=2*i;f<2*i+2;f++)for(var g=2*o;g<2*o+2;g++){var k=new b(f,g);k.z=u+1;var T=this._tileCoordsToKey(k),O=this._tiles[T];if(O&&O.active){O.retain=!0;continue}else O&&O.loaded&&(O.retain=!0);u+1<h&&this._retainChildren(f,g,u+1,h)}},_resetView:function(i){var o=i&&(i.pinch||i.flyTo);
vendor: 8,778 bytes, line 43
43this._setView(this._map.getCenter(),this._map.getZoom(),o,o)},_animateZoom:function(i){this._setView(i.center,i.zoom,!0,i.noUpdate)},_clampZoom:function(i){var o=this.options;return o.minNativeZoom!==void 0&&i<o.minNativeZoom?o.minNativeZoom:o.maxNativeZoom!==void 0&&o.maxNativeZoom<i?o.maxNativeZoom:i},_setView:function(i,o,u,h){var f=Math.round(o);this.options.maxZoom!==void 0&&f>this.options.maxZoom||this.options.minZoom!==void 0&&f<this.options.minZoom?f=void 0:f=this._clampZoom(f);var g=this.options.updateWhenZooming&&f!==this._tileZoom;(!h||g)&&(this._tileZoom=f,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),f!==void 0&&this._update(i),u||this._pruneTiles(),this._noPrune=!!u),this._setZoomTransforms(i,o)},_setZoomTransforms:function(i,o){for(var u in this._levels)this._setZoomTransform(this._levels[u],i,o)},_setZoomTransform:function(i,o,u){var h=this._map.getZoomScale(u,i.zoom),f=i.origin.multiplyBy(h).subtract(this._map._getNewPixelOrigin(o,u)).round();W.any3d?zn(i.el,f,h):Ce(i.el,f)},_resetGrid:function(){var i=this._map,o=i.options.crs,u=this._tileSize=this.getTileSize(),h=this._tileZoom,f=this._map.getPixelWorldBounds(this._tileZoom);f&&(this._globalTileRange=this._pxBoundsToTileRange(f)),this._wrapX=o.wrapLng&&!this.options.noWrap&&[Math.floor(i.project([0,o.wrapLng[0]],h).x/u.x),Math.ceil(i.project([0,o.wrapLng[1]],h).x/u.y)],this._wrapY=o.wrapLat&&!this.options.noWrap&&[Math.floor(i.project([o.wrapLat[0],0],h).y/u.x),Math.ceil(i.project([o.wrapLat[1],0],h).y/u.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(i){var o=this._map,u=o._animatingZoom?Math.max(o._animateToZoom,o.getZoom()):o.getZoom(),h=o.getZoomScale(u,this._tileZoom),f=o.project(i,this._tileZoom).floor(),g=o.getSize().divideBy(h*2);return new H(f.subtract(g),f.add(g))},_update:function(i){var o=this._map;if(o){var u=this._clampZoom(o.getZoom());if(i===void 0&&(i=o.getCenter()),this._tileZoom!==void 0){var h=this._getTiledPixelBounds(i),f=this._pxBoundsToTileRange(h),g=f.getCenter(),k=[],T=this.options.keepBuffer,O=new H(f.getBottomLeft().subtract([T,-T]),f.getTopRight().add([T,-T]));if(!(isFinite(f.min.x)&&isFinite(f.min.y)&&isFinite(f.max.x)&&isFinite(f.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var A in this._tiles){var U=this._tiles[A].coords;(U.z!==this._tileZoom||!O.contains(new b(U.x,U.y)))&&(this._tiles[A].current=!1)}if(Math.abs(u-this._tileZoom)>1){this._setView(i,u);return}for(var V=f.min.y;V<=f.max.y;V++)for(var X=f.min.x;X<=f.max.x;X++){var Ve=new b(X,V);if(Ve.z=this._tileZoom,!!this._isValidTile(Ve)){var Ie=this._tiles[this._tileCoordsToKey(Ve)];Ie?Ie.current=!0:k.push(Ve)}}if(k.sort(function(Xe,fi){return Xe.distanceTo(g)-fi.distanceTo(g)}),k.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var vt=document.createDocumentFragment();for(X=0;X<k.length;X++)this._addTile(k[X],vt);this._level.el.appendChild(vt)}}}},_isValidTile:function(i){var o=this._map.options.crs;if(!o.infinite){var u=this._globalTileRange;if(!o.wrapLng&&(i.x<u.min.x||i.x>u.max.x)||!o.wrapLat&&(i.y<u.min.y||i.y>u.max.y))return!1}if(!this.options.bounds)return!0;var h=this._tileCoordsToBounds(i);return le(this.options.bounds).overlaps(h)},_keyToBounds:function(i){return this._tileCoordsToBounds(this._keyToTileCoords(i))},_tileCoordsToNwSe:function(i){var o=this._map,u=this.getTileSize(),h=i.scaleBy(u),f=h.add(u),g=o.unproject(h,i.z),k=o.unproject(f,i.z);return[g,k]},_tileCoordsToBounds:function(i){var o=this._tileCoordsToNwSe(i),u=new we(o[0],o[1]);return this.options.noWrap||(u=this._map.wrapLatLngBounds(u)),u},_tileCoordsToKey:function(i){return i.x+":"+i.y+":"+i.z},_keyToTileCoords:function(i){var o=i.split(":"),u=new b(+o[0],+o[1]);return u.z=+o[2],u},_removeTile:function(i){var o=this._tiles[i];o&&(_e(o.el),delete this._tiles[i],this.fire("tileunload",{tile:o.el,coords:this._keyToTileCoords(i)}))},_initTile:function(i){Q(i,"leaflet-tile");var o=this.getTileSize();i.style.width=o.x+"px",i.style.height=o.y+"px",i.onselectstart=_,i.onmousemove=_,W.ielt9&&this.options.opacity<1&&_t(i,this.options.opacity)},_addTile:function(i,o){var u=this._getTilePos(i),h=this._tileCoordsToKey(i),f=this.createTile(this._wrapCoords(i),l(this._tileReady,this,i));this._initTile(f),this.createTile.length<2&&ae(l(this._tileReady,this,i,null,f)),Ce(f,u),this._tiles[h]={el:f,coords:i,current:!0},o.appendChild(f),this.fire("tileloadstart",{tile:f,coords:i})},_tileReady:function(i,o,u){o&&this.fire("tileerror",{error:o,tile:u,coords:i});var h=this._tileCoordsToKey(i);u=this._tiles[h],u&&(u.loaded=+new Date,this._map._fadeAnimated?(_t(u.el,0),ke(this._fadeFrame),this._fadeFrame=ae(this._updateOpacity,this)):(u.active=!0,this._pruneTiles()),o||(Q(u.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:u.el,coords:i})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),W.ielt9||!this._map._fadeAnimated?ae(this._pruneTiles,this):setTimeout(l(this._pruneTiles,this),250)))},_getTilePos:function(i){return i.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(i){var o=new b(this._wrapX?m(i.x,this._wrapX):i.x,this._wrapY?m(i.y,this._wrapY):i.y);return o.z=i.z,o},_pxBoundsToTileRange:function(i){var o=this.getTileSize();return new H(i.min.unscaleBy(o).floor(),i.max.unscaleBy(o).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var i in this._tiles)if(!this._tiles[i].loaded)return!1;return!0}});function Rg(i){return new dr(i)}var di=dr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(i,o){this._url=i,o=P(this,o),o.detectRetina&&W.retina&&o.maxZoom>0?(o.tileSize=Math.floor(o.tileSize/2),o.zoomReverse?(o.zoomOffset--,o.minZoom=Math.min(o.maxZoom,o.minZoom+1)):(o.zoomOffset++,o.maxZoom=Math.max(o.minZoom,o.maxZoom-1)),o.minZoom=Math.max(0,o.minZoom)):o.zoomReverse?o.minZoom=Math.min(o.maxZoom,o.minZoom):o.maxZoom=Math.max(o.minZoom,o.maxZoom),typeof o.subdomains=="string"&&(o.subdomains=o.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(i,o){return this._url===i&&o===void 0&&(o=!0),this._url=i,o||this.redraw(),this},createTile:function(i,o){var u=document.createElement("img");return K(u,"load",l(this._tileOnLoad,this,o,u)),K(u,"error",l(this._tileOnError,this,o,u)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(u.referrerPolicy=this.options.referrerPolicy),u.alt="",u.src=this.getTileUrl(i),u},getTileUrl:function(i){var o={r:W.retina?"@2x":"",s:this._getSubdomain(i),x:i.x,y:i.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var u=this._globalTileRange.max.y-i.y;this.options.tms&&(o.y=u),o["-y"]=u}return w(this._url,a(o,this.options))},_tileOnLoad:function(i,o){W.ielt9?setTimeout(l(i,this,null,o),0):i(null,o)},_tileOnError:function(i,o,u){var h=this.options.errorTileUrl;h&&o.getAttribute("src")!==h&&(o.src=h),i(u,o)},_onTileRemove:function(i){i.tile.onload=null},_getZoomForUrl:function(){var i=this._tileZoom,o=this.options.maxZoom,u=this.options.zoomReverse,h=this.options.zoomOffset;return u&&(i=o-i),i+h},_getSubdomain:function(i){var o=Math.abs(i.x+i.y)%this.options.subdomains.length;return this.options.subdomains[o]},_abortLoading:function(){var i,o;for(i in this._tiles)if(this._tiles[i].coords.z!==this._tileZoom&&(o=this._tiles[i].el,o.onload=_,o.onerror=_,!o.complete)){o.src=z;var u=this._tiles[i].coords;_e(o),delete this._tiles[i],this.fire("tileabort",{tile:o,coords:u})}},_removeTile:function(i){var o=this._tiles[i];if(o)return o.el.setAttribute("src",z),dr.prototype._removeTile.call(this,i)},_tileReady:function(i,o,u){if(!(!this._map||u&&u.getAttribute("src")===z))return dr.prototype._tileReady.call(this,i,o,u)}});function Oh(i,o){return new di(i,o)}var Mh=di.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(i,o){this._url=i;var u=a({},this.defaultWmsParams);for(var h in o)h in this.options||(u[h]=o[h]);o=P(this,o);var f=o.detectRetina&&W.retina?2:1,g=this.getTileSize();u.width=g.x*f,u.height=g.y*f,this.wmsParams=u},onAdd:function(i){this._crs=this.options.crs||i.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var o=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[o]=this._crs.code,di.prototype.onAdd.call(this,i)},getTileUrl:function(i){var o=this._tileCoordsToNwSe(i),u=this._crs,h=G(u.project(o[0]),u.project(o[1])),f=h.min,g=h.max,k=(this._wmsVersion>
vendor: 4,911 bytes, line 43
43=1.3&&this._crs===Lh?[f.y,f.x,g.y,g.x]:[f.x,f.y,g.x,g.y]).join(","),T=di.prototype.getTileUrl.call(this,i);return T+N(this.wmsParams,T,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+k},setParams:function(i,o){return a(this.wmsParams,i),o||this.redraw(),this}});function Bg(i,o){return new Mh(i,o)}di.WMS=Mh,Oh.wms=Bg;var qt=Ct.extend({options:{padding:.1},initialize:function(i){P(this,i),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Q(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 i={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(i.zoomanim=this._onAnimZoom),i},_onAnimZoom:function(i){this._updateTransform(i.center,i.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(i,o){var u=this._map.getZoomScale(o,this._zoom),h=this._map.getSize().multiplyBy(.5+this.options.padding),f=this._map.project(this._center,o),g=h.multiplyBy(-u).add(f).subtract(this._map._getNewPixelOrigin(i,o));W.any3d?zn(this._container,g,u):Ce(this._container,g)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var i in this._layers)this._layers[i]._reset()},_onZoomEnd:function(){for(var i in this._layers)this._layers[i]._project()},_updatePaths:function(){for(var i in this._layers)this._layers[i]._update()},_update:function(){var i=this.options.padding,o=this._map.getSize(),u=this._map.containerPointToLayerPoint(o.multiplyBy(-i)).round();this._bounds=new H(u,u.add(o.multiplyBy(1+i*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Ih=qt.extend({options:{tolerance:0},getEvents:function(){var i=qt.prototype.getEvents.call(this);return i.viewprereset=this._onViewPreReset,i},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){qt.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var i=this._container=document.createElement("canvas");K(i,"mousemove",this._onMouseMove,this),K(i,"click dblclick mousedown mouseup contextmenu",this._onClick,this),K(i,"mouseout",this._handleMouseOut,this),i._leaflet_disable_events=!0,this._ctx=i.getContext("2d")},_destroyContainer:function(){ke(this._redrawRequest),delete this._ctx,_e(this._container),ce(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var i;this._redrawBounds=null;for(var o in this._layers)i=this._layers[o],i._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){qt.prototype._update.call(this);var i=this._bounds,o=this._container,u=i.getSize(),h=W.retina?2:1;Ce(o,i.min),o.width=h*u.x,o.height=h*u.y,o.style.width=u.x+"px",o.style.height=u.y+"px",W.retina&&this._ctx.scale(2,2),this._ctx.translate(-i.min.x,-i.min.y),this.fire("update")}},_reset:function(){qt.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(i){this._updateDashArray(i),this._layers[d(i)]=i;var o=i._order={layer:i,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=o),this._drawLast=o,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(i){this._requestRedraw(i)},_removePath:function(i){var o=i._order,u=o.next,h=o.prev;u?u.prev=h:this._drawLast=h,h?h.next=u:this._drawFirst=u,delete i._order,delete this._layers[d(i)],this._requestRedraw(i)},_updatePath:function(i){this._extendRedrawBounds(i),i._project(),i._update(),this._requestRedraw(i)},_updateStyle:function(i){this._updateDashArray(i),this._requestRedraw(i)},_updateDashArray:function(i){if(typeof i.options.dashArray=="string"){var o=i.options.dashArray.split(/[, ]+/),u=[],h,f;for(f=0;f<o.length;f++){if(h=Number(o[f]),isNaN(h))return;u.push(h)}i.options._dashArray=u}else i.options._dashArray=i.options.dashArray},_requestRedraw:function(i){this._map&&(this._extendRedrawBounds(i),this._redrawRequest=this._redrawRequest||ae(this._redraw,this))},_extendRedrawBounds:function(i){if(i._pxBounds){var o=(i.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new H,this._redrawBounds.extend(i._pxBounds.min.subtract([o,o])),this._redrawBounds.extend(i._pxBounds.max.add([o,o]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var i=this._redrawBounds;if(i){var o=i.getSize();this._ctx.clearRect(i.min.x,i.min.y,o.x,o.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore(
vendor: 7,686 bytes, line 43
43)},_draw:function(){var i,o=this._redrawBounds;if(this._ctx.save(),o){var u=o.getSize();this._ctx.beginPath(),this._ctx.rect(o.min.x,o.min.y,u.x,u.y),this._ctx.clip()}this._drawing=!0;for(var h=this._drawFirst;h;h=h.next)i=h.layer,(!o||i._pxBounds&&i._pxBounds.intersects(o))&&i._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(i,o){if(this._drawing){var u,h,f,g,k=i._parts,T=k.length,O=this._ctx;if(T){for(O.beginPath(),u=0;u<T;u++){for(h=0,f=k[u].length;h<f;h++)g=k[u][h],O[h?"lineTo":"moveTo"](g.x,g.y);o&&O.closePath()}this._fillStroke(O,i)}}},_updateCircle:function(i){if(!(!this._drawing||i._empty())){var o=i._point,u=this._ctx,h=Math.max(Math.round(i._radius),1),f=(Math.max(Math.round(i._radiusY),1)||h)/h;f!==1&&(u.save(),u.scale(1,f)),u.beginPath(),u.arc(o.x,o.y/f,h,0,Math.PI*2,!1),f!==1&&u.restore(),this._fillStroke(u,i)}},_fillStroke:function(i,o){var u=o.options;u.fill&&(i.globalAlpha=u.fillOpacity,i.fillStyle=u.fillColor||u.color,i.fill(u.fillRule||"evenodd")),u.stroke&&u.weight!==0&&(i.setLineDash&&i.setLineDash(o.options&&o.options._dashArray||[]),i.globalAlpha=u.opacity,i.lineWidth=u.weight,i.strokeStyle=u.color,i.lineCap=u.lineCap,i.lineJoin=u.lineJoin,i.stroke())},_onClick:function(i){for(var o=this._map.mouseEventToLayerPoint(i),u,h,f=this._drawFirst;f;f=f.next)u=f.layer,u.options.interactive&&u._containsPoint(o)&&(!(i.type==="click"||i.type==="preclick")||!this._map._draggableMoved(u))&&(h=u);this._fireEvent(h?[h]:!1,i)},_onMouseMove:function(i){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var o=this._map.mouseEventToLayerPoint(i);this._handleMouseHover(i,o)}},_handleMouseOut:function(i){var o=this._hoveredLayer;o&&(Le(this._container,"leaflet-interactive"),this._fireEvent([o],i,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(i,o){if(!this._mouseHoverThrottled){for(var u,h,f=this._drawFirst;f;f=f.next)u=f.layer,u.options.interactive&&u._containsPoint(o)&&(h=u);h!==this._hoveredLayer&&(this._handleMouseOut(i),h&&(Q(this._container,"leaflet-interactive"),this._fireEvent([h],i,"mouseover"),this._hoveredLayer=h)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,i),this._mouseHoverThrottled=!0,setTimeout(l(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(i,o,u){this._map._fireDOMEvent(o,u||o.type,i)},_bringToFront:function(i){var o=i._order;if(o){var u=o.next,h=o.prev;if(u)u.prev=h;else return;h?h.next=u:u&&(this._drawFirst=u),o.prev=this._drawLast,this._drawLast.next=o,o.next=null,this._drawLast=o,this._requestRedraw(i)}},_bringToBack:function(i){var o=i._order;if(o){var u=o.next,h=o.prev;if(h)h.next=u;else return;u?u.prev=h:h&&(this._drawLast=h),o.prev=null,o.next=this._drawFirst,this._drawFirst.prev=o,this._drawFirst=o,this._requestRedraw(i)}}});function Ah(i){return W.canvas?new Ih(i):null}var fr=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(i){return document.createElement("<lvml:"+i+' class="lvml">')}}catch{}return function(i){return document.createElement("<"+i+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Dg={_initContainer:function(){this._container=se("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(qt.prototype._update.call(this),this.fire("update"))},_initPath:function(i){var o=i._container=fr("shape");Q(o,"leaflet-vml-shape "+(this.options.className||"")),o.coordsize="1 1",i._path=fr("path"),o.appendChild(i._path),this._updateStyle(i),this._layers[d(i)]=i},_addPath:function(i){var o=i._container;this._container.appendChild(o),i.options.interactive&&i.addInteractiveTarget(o)},_removePath:function(i){var o=i._container;_e(o),i.removeInteractiveTarget(o),delete this._layers[d(i)]},_updateStyle:function(i){var o=i._stroke,u=i._fill,h=i.options,f=i._container;f.stroked=!!h.stroke,f.filled=!!h.fill,h.stroke?(o||(o=i._stroke=fr("stroke")),f.appendChild(o),o.weight=h.weight+"px",o.color=h.color,o.opacity=h.opacity,h.dashArray?o.dashStyle=S(h.dashArray)?h.dashArray.join(" "):h.dashArray.replace(/( *, *)/g," "):o.dashStyle="",o.endcap=h.lineCap.replace("butt","flat"),o.joinstyle=h.lineJoin):o&&(f.removeChild(o),i._stroke=null),h.fill?(u||(u=i._fill=fr("fill")),f.appendChild(u),u.color=h.fillColor||h.color,u.opacity=h.fillOpacity):u&&(f.removeChild(u),i._fill=null)},_updateCircle:function(i){var o=i._point.round(),u=Math.round(i._radius),h=Math.round(i._radiusY||u);this._setPath(i,i._empty()?"M0 0":"AL "+o.x+","+o.y+" "+u+","+h+" 0,"+65535*360)},_setPath:function(i,o){i._path.v=o},_bringToFront:function(i){oi(i._container)},_bringToBack:function(i){ai(i._container)}},Is=W.vml?fr:Rc,pr=qt.extend({_initContainer:function(){this._container=Is("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Is("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){_e(this._container),ce(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){qt.prototype._update.call(this);var i=this._bounds,o=i.getSize(),u=this._container;(!this._svgSize||!this._svgSize.equals(o))&&(this._svgSize=o,u.setAttribute("width",o.x),u.setAttribute("height",o.y)),Ce(u,i.min),u.setAttribute("viewBox",[i.min.x,i.min.y,o.x,o.y].join(" ")),this.fire("update")}},_initPath:function(i){var o=i._path=Is("path");i.options.className&&Q(o,i.options.className),i.options.interactive&&Q(o,"leaflet-interactive"),this._updateStyle(i),this._layers[d(i)]=i},_addPath:function(i){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(i._path),i.addInteractiveTarget(i._path)},_removePath:function(i){_e(i._path),i.removeInteractiveTarget(i._path),delete this._layers[d(i)]},_updatePath:function(i){i._project(),i._update()},_updateStyle:function(i){var o=i._path,u=i.options;o&&(u.stroke?(o.setAttribute("stroke",u.color),o.setAttribute("stroke-opacity",u.opacity),o.setAttribute("stroke-width",u.weight),o.setAttribute("stroke-linecap",u.lineCap),o.setAttribute("stroke-linejoin",u.lineJoin),u.dashArray?o.setAttribute("stroke-dasharray",u.dashArray):o.removeAttribute("stroke-dasharray"),u.dashOffset?o.setAttribute("stroke-dashoffset",u.dashOffset):o.removeAttribute("stroke-dashoffset")):o.setAttribute("stroke","none"),u.fill?(o.setAttribute("fill",u.fillColor||u.color),o.setAttribute("fill-opacity",u.fillOpacity),o.setAttribute("fill-rule",u.fillRule||"evenodd")):o.setAttribute("fill","none"))},_updatePoly:function(i,o){this._setPath(i,Bc(i._parts,o))},_updateCircle:function(i){var o=i._point,u=Math.max(Math.round(i._radius),1),h=Math.max(Math.round(i._radiusY),1)||u,f="a"+u+","+h+" 0 1,0 ",g=i._empty()?"M0 0":"M"+(o.x-u)+","+o.y+f+u*2+",0 "+f+-u*2+",0 ";this._setPath(i,g)},_setPath:function(i,o){i._path.setAttribute("d",o)},_bringToFront:function(i){oi(i._path)},_bringToBack:function(i){ai(i._path)}});W.vml&&pr.include(Dg);function zh(i){return W.svg||W.vml?new pr(i):null}ne.include({getRenderer:function(i){var o=i.options.renderer||this._getPaneRenderer(i.options.pane)||this.options.renderer||this._renderer;return o||(o=this._renderer=this._createRenderer()),this.hasLayer(o)||this.addLayer(o),o},_getPaneRenderer:function(i){if(i==="overlayPane"||i===void 0)return!1;var o=this._paneRenderers[i];return o===void 0&&(o=this._createRenderer({pane:i}),this._paneRenderers[i]=o),o},_createRenderer:function(i){return this.options.preferCanvas&&Ah(i)||zh(i)}});var Nh=ci.extend({initialize:function(i,o){ci.prototype.initialize.call(this,this._boundsToLatLngs(i),o)},setBounds:function(i){return this.setLatLngs(this._boundsToLatLngs(i))}
vendor: 12,197 bytes, line 43
43,_boundsToLatLngs:function(i){return i=le(i),[i.getSouthWest(),i.getNorthWest(),i.getNorthEast(),i.getSouthEast()]}});function Ug(i,o){return new Nh(i,o)}pr.create=Is,pr.pointsToPath=Bc,Gt.geometryToLayer=Ps,Gt.coordsToLatLng=Fa,Gt.coordsToLatLngs=Cs,Gt.latLngToCoords=Za,Gt.latLngsToCoords=Es,Gt.getFeature=hi,Gt.asFeature=Ts,ne.mergeOptions({boxZoom:!0});var jh=Rt.extend({initialize:function(i){this._map=i,this._container=i._container,this._pane=i._panes.overlayPane,this._resetStateTimeout=0,i.on("unload",this._destroy,this)},addHooks:function(){K(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){ce(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){_e(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(i){if(!i.shiftKey||i.which!==1&&i.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),sr(),Pa(),this._startPoint=this._map.mouseEventToContainerPoint(i),K(document,{contextmenu:Rn,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(i){this._moved||(this._moved=!0,this._box=se("div","leaflet-zoom-box",this._container),Q(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(i);var o=new H(this._point,this._startPoint),u=o.getSize();Ce(this._box,o.min),this._box.style.width=u.x+"px",this._box.style.height=u.y+"px"},_finish:function(){this._moved&&(_e(this._box),Le(this._container,"leaflet-crosshair")),or(),Ca(),ce(document,{contextmenu:Rn,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(i){if(!(i.which!==1&&i.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(l(this._resetState,this),0);var o=new we(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(o).fire("boxzoomend",{boxZoomBounds:o})}},_onKeyDown:function(i){i.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ne.addInitHook("addHandler","boxZoom",jh),ne.mergeOptions({doubleClickZoom:!0});var Rh=Rt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(i){var o=this._map,u=o.getZoom(),h=o.options.zoomDelta,f=i.originalEvent.shiftKey?u-h:u+h;o.options.doubleClickZoom==="center"?o.setZoom(f):o.setZoomAround(i.containerPoint,f)}});ne.addInitHook("addHandler","doubleClickZoom",Rh),ne.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Bh=Rt.extend({addHooks:function(){if(!this._draggable){var i=this._map;this._draggable=new ln(i._mapPane,i._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),i.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),i.on("zoomend",this._onZoomEnd,this),i.whenReady(this._onZoomEnd,this))}Q(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Le(this._map._container,"leaflet-grab"),Le(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 i=this._map;if(i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var o=le(this._map.options.maxBounds);this._offsetLimit=G(this._map.latLngToContainerPoint(o.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(o.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(i){if(this._map.options.inertia){var o=this._lastTime=+new Date,u=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(u),this._times.push(o),this._prunePositions(o)}this._map.fire("move",i).fire("drag",i)},_prunePositions:function(i){for(;this._positions.length>1&&i-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var i=this._map.getSize().divideBy(2),o=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=o.subtract(i).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(i,o){return i-(i-o)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var i=this._draggable._newPos.subtract(this._draggable._startPos),o=this._offsetLimit;i.x<o.min.x&&(i.x=this._viscousLimit(i.x,o.min.x)),i.y<o.min.y&&(i.y=this._viscousLimit(i.y,o.min.y)),i.x>o.max.x&&(i.x=this._viscousLimit(i.x,o.max.x)),i.y>o.max.y&&(i.y=this._viscousLimit(i.y,o.max.y)),this._draggable._newPos=this._draggable._startPos.add(i)}},_onPreDragWrap:function(){var i=this._worldWidth,o=Math.round(i/2),u=this._initialWorldOffset,h=this._draggable._newPos.x,f=(h-o+u)%i+o-u,g=(h+o+u)%i-o-u,k=Math.abs(f+u)<Math.abs(g+u)?f:g;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=k},_onDragEnd:function(i){var o=this._map,u=o.options,h=!u.inertia||i.noInertia||this._times.length<2;if(o.fire("dragend",i),h)o.fire("moveend");else{this._prunePositions(+new Date);var f=this._lastPos.subtract(this._positions[0]),g=(this._lastTime-this._times[0])/1e3,k=u.easeLinearity,T=f.multiplyBy(k/g),O=T.distanceTo([0,0]),A=Math.min(u.inertiaMaxSpeed,O),U=T.multiplyBy(A/O),V=A/(u.inertiaDeceleration*k),X=U.multiplyBy(-V/2).round();!X.x&&!X.y?o.fire("moveend"):(X=o._limitOffset(X,o.options.maxBounds),ae(function(){o.panBy(X,{duration:V,easeLinearity:k,noMoveStart:!0,animate:!0})}))}}});ne.addInitHook("addHandler","dragging",Bh),ne.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Dh=Rt.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(i){this._map=i,this._setPanDelta(i.options.keyboardPanDelta),this._setZoomDelta(i.options.zoomDelta)},addHooks:function(){var i=this._map._container;i.tabIndex<=0&&(i.tabIndex="0"),K(i,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),ce(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var i=document.body,o=document.documentElement,u=i.scrollTop||o.scrollTop,h=i.scrollLeft||o.scrollLeft;this._map._container.focus(),window.scrollTo(h,u)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(i){var o=this._panKeys={},u=this.keyCodes,h,f;for(h=0,f=u.left.length;h<f;h++)o[u.left[h]]=[-1*i,0];for(h=0,f=u.right.length;h<f;h++)o[u.right[h]]=[i,0];for(h=0,f=u.down.length;h<f;h++)o[u.down[h]]=[0,i];for(h=0,f=u.up.length;h<f;h++)o[u.up[h]]=[0,-1*i]},_setZoomDelta:function(i){var o=this._zoomKeys={},u=this.keyCodes,h,f;for(h=0,f=u.zoomIn.length;h<f;h++)o[u.zoomIn[h]]=i;for(h=0,f=u.zoomOut.length;h<f;h++)o[u.zoomOut[h]]=-i},_addHooks:function(){K(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){ce(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(i){if(!(i.altKey||i.ctrlKey||i.metaKey)){var o=i.keyCode,u=this._map,h;if(o in this._panKeys){if(!u._panAnim||!u._panAnim._inProgress)if(h=this._panKeys[o],i.shiftKey&&(h=I(h).multiplyBy(3)),u.options.maxBounds&&(h=u._limitOffset(I(h),u.options.maxBounds)),u.options.worldCopyJump){var f=u.wrapLatLng(u.unproject(u.project(u.getCenter()).add(h)));u.panTo(f)}else u.panBy(h)}else if(o in this._zoomKeys)u.setZoom(u.getZoom()+(i.shiftKey?3:1)*this._zoomKeys[o]);else if(o===27&&u._popup&&u._popup.options.closeOnEscapeKey)u.closePopup();else return;Rn(i)}}});ne.addInitHook("addHandler","keyboard",Dh),ne.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Uh=Rt.extend({addHooks:function(){K(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){ce(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(i){var o=ch(i),u=this._map.options.wheelDebounceTime;this._delta+=o,this._lastMousePos=this._map.mouseEventToContainerPoint(i),this._startTime||(this._startTime=+new Date);var h=Math.max(u-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(l(this._performZoom,this),h),Rn(i)},_performZoom:function(){var i=this._map,o=i.getZoom(),u=this._map.options.zoomSnap||0;i._stop();var h=this._delta/(this._map.options.wheelPxPerZoomLevel*4),f=4*Math.log(2/(1+Math.exp(-Math.abs(h))))/Math.LN2,g=u?Math.ceil(f/u)*u:f,k=i._limitZoom(o+(this._delta>0?g:-g))-o;this._delta=0,this._startTime=null,k&&(i.options.scrollWheelZoom==="center"?i.setZoom(o+k):i.setZoomAround(this._lastMousePos,o+k))}});ne.addInitHook("addHandler","scrollWheelZoom",Uh);var $g=600;ne.mergeOptions({tapHold:W.touchNative&&W.safari&&W.mobile,tapTolerance:15});var $h=Rt.extend({addHooks:function(){K(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){ce(this._map._container,"touchstart",this._onDown,this)},_onDown:function(i){if(clearTimeout(this._holdTimeout),i.touches.length===1){var o=i.touches[0];this._startPos=this._newPos=new b(o.clientX,o.clientY),this._holdTimeout=setTimeout(l(function(){this._cancel(),this._isTapValid()&&(K(document,"touchend",Re),K(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",o))},this),$g),K(document,"touchend touchcancel contextmenu",this._cancel,this),K(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function i(){ce(document,"touchend",Re),ce(document,"touchend touchcancel",i)},_cancel:function(){clearTimeout(this._holdTimeout),ce(document,"touchend touchcancel contextmenu",this._cancel,this),ce(document,"touchmove",this._onMove,this)},_onMove:function(i){var o=i.touches[0];this._newPos=new b(o.clientX,o.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(i,o){var u=new MouseEvent(i,{bubbles:!0,cancelable:!0,view:window,screenX:o.screenX,screenY:o.screenY,clientX:o.clientX,clientY:o.clientY});u._simulated=!0,o.target.dispatchEvent(u)}});ne.addInitHook("addHandler","tapHold",$h),ne.mergeOptions({touchZoom:W.touch,bounceAtZoomLimits:!0});var Fh=Rt.extend({addHooks:function(){Q(this._map._container,"leaflet-touch-zoom"),K(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Le(this._map._container,"leaflet-touch-zoom"),ce(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(i){var o=this._map;if(!(!i.touches||i.touches.length!==2||o._animatingZoom||this._zooming)){var u=o.mouseEventToContainerPoint(i.touches[0]),h=o.mouseEventToContainerPoint(i.touches[1]);this._centerPoint=o.getSize()._divideBy(2),this._startLatLng=o.containerPointToLatLng(this._centerPoint),o.options.touchZoom!=="center"&&(this._pinchStartLatLng=o.containerPointToLatLng(u.add(h)._divideBy(2))),this._startDist=u.distanceTo(h),this._startZoom=o.getZoom(),this._moved=!1,this._zooming=!0,o._stop(),K(document,"touchmove",this._onTouchMove,this),K(document,"touchend touchcancel",this._onTouchEnd,this),Re(i)}},_onTouchMove:function(i){if(!(!i.touches||i.touches.length!==2||!this._zooming)){var o=this._map,u=o.mouseEventToContainerPoint(i.touches[0]),h=o.mouseEventToContainerPoint(i.touches[1]),f=u.distanceTo(h)
43/this._startDist;if(this._zoom=o.getScaleZoom(f,this._startZoom),!o.options.bounceAtZoomLimits&&(this._zoom<o.getMinZoom()&&f<1||this._zoom>o.getMaxZoom()&&f>1)&&(this._zoom=o._limitZoom(this._zoom)),o.options.touchZoom==="center"){if(this._center=this._startLatLng,f===1)return}else{var g=u._add(h)._divideBy(2)._subtract(this._centerPoint);if(f===1&&g.x===0&&g.y===0)return;this._center=o.unproject(o.project(this._pinchStartLatLng,this._zoom).subtract(g),this._zoom)}this._moved||(o._moveStart(!0,!1),this._moved=!0),ke(this._animRequest);var k=l(o._move,o,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=ae(k,this,!0),Re(i)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,ke(this._animRequest),ce(document,"touchmove",this._onTouchMove,this),ce(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))}});ne.addInitHook("addHandler","touchZoom",Fh),ne.BoxZoom=jh,ne.DoubleClickZoom=Rh,ne.Drag=Bh,ne.Keyboard=Dh,ne.ScrollWheelZoom=Uh,ne.TapHold=$h,ne.TouchZoom=Fh,n.Bounds=H,n.Browser=W,n.CRS=Ye,n.Canvas=Ih,n.Circle=$a,n.CircleMarker=Ss,n.Class=je,n.Control=Pt,n.DivIcon=bh,n.DivOverlay=Bt,n.DomEvent=sg,n.DomUtil=ig,n.Draggable=ln,n.Evented=mt,n.FeatureGroup=Wt,n.GeoJSON=Gt,n.GridLayer=dr,n.Handler=Rt,n.Icon=ui,n.ImageOverlay=bs,n.LatLng=re,n.LatLngBounds=we,n.Layer=Ct,n.LayerGroup=li,n.LineUtil=vg,n.Map=ne,n.Marker=Ls,n.Mixin=dg,n.Path=un,n.Point=b,n.PolyUtil=fg,n.Polygon=ci,n.Polyline=Vt,n.Popup=Os,n.PosAnimation=hh,n.Projection=yg,n.Rectangle=Nh,n.Renderer=qt,n.SVG=pr,n.SVGOverlay=Th,n.TileLayer=di,n.Tooltip=Ms,n.Transformation=fa,n.Util=pt,n.VideoOverlay=Eh,n.bind=l,n.bounds=G,n.canvas=Ah,n.circle=Eg,n.circleMarker=Cg,n.control=ur,n.divIcon=jg,n.extend=a,n.featureGroup=Lg,n.geoJSON=Ch,n.geoJson=Og,n.gridLayer=Rg,n.icon=Sg,n.imageOverlay=Mg,n.latLng=q,n.latLngBounds=le,n.layerGroup=kg,n.map=og,n.marker=Pg,n.point=I,n.polygon=bg,n.polyline=Tg,n.popup=zg,n.rectangle=Ug,n.setOptions=P,n.stamp=d,n.svg=zh,n.svgOverlay=Ag,n.tileLayer=Oh,n.tooltip=Ng,n.transformation=tr,n.version=r,n.videoOverlay=Ig;var Fg=window.L;n.noConflict=function(){return window.L=Fg,this},window.L=n})})(mu,mu.exports);var Ke=mu.exports;const L0=kf(Ke);function Zm(e){return e.split(" ").filter(Boolean)}function Hm(e,t){Zm(t).forEach(n=>{Ke.DomUtil.addClass(e,n)})}function Wm(e,t){Zm(t).forEach(n=>{Ke.DomUtil.removeClass(e,n)})}function S0(e,t,n){e!=null&&n!==t&&(t!=null&&t.length>0&&Wm(e,t),n!=null&&n.length>0&&Hm(e,n))}function ds(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function Yi(e,t){return t==null?function(r,a){const s=B.useRef();return s.current||(s.current=e(r,a)),s}:function(r,a){const s=B.useRef();s.current||(s.current=e(r,a));const l=B.useRef(r),{instance:c}=s.current;return B.useEffect(function(){l.current!==r&&(t(c,r,l.current),l.current=r)},[c,r,a]),s}}function Cc(e,t){B.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var s;(s=t.layerContainer)==null||s.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function Ec(e){return function(n){const r=Qi(),a=e(hs(n,r),r);return xc(r.map,n.attribution),ia(a.current,n.eventHandlers),Cc(a.current,r),a}}function Vm(e,t){const n=B.useRef();B.useEffect(function(){if(t.pathOptions!==n.current){const a=t.pathOptions??{};e.instance.setStyle(a),n.current=a}},[e,t])}function Gm(e){return function(n){const r=Qi(),a=e(hs(n,r),r);return ia(a.current,n.eventHandlers),Cc(a.current,r),Vm(a.current,n),a}}function Tc(e){function t(a,s){return ds(e(a),s)}const n=Yi(t),r=$m(n);return Pc(r)}function qm(e,t){const n=Yi(e,t),r=Ec(n);return Sc(r)}function Km(e,t){const n=Yi(e),r=Fm(n,t);return Um(r)}function P0(e,t){const n=Yi(e,t),r=Gm(n);return Sc(r)}function Jm(e,t){const n=Yi(e,t),r=Ec(n);return Pc(r)}function Qm(e,t,n){const{opacity:r,zIndex:a}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),a!=null&&a!==n.zIndex&&e.setZIndex(a)}function C0(e,t,n){t.bounds instanceof Ke.LatLngBounds&&t.bounds!==n.bounds&&e.setBounds(t.bounds),t.opacity!=null&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),t.zIndex!=null&&t.zIndex!==n.zIndex&&e.setZIndex(t.zIndex)}const E0=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_VERSION:Rm,LeafletContext:kc,LeafletProvider:Lc,addClassName:Hm,createContainerComponent:Sc,createControlComponent:Tc,createControlHook:$m,createDivOverlayComponent:Um,createDivOverlayHook:Fm,createElementHook:Yi,createElementObject:ds,createLayerComponent:qm,createLayerHook:Ec,createLeafComponent:Pc,createLeafletContext:Bm,createOverlayComponent:Km,createPathComponent:P0,createPathHook:Gm,createTileLayerComponent:Jm,extendContext:Dm,removeClassName:Wm,updateCircle:k0,updateClassName:S0,updateGridLayer:Qm,updateMediaOverlay:C0,useAttribution:xc,useEventHandlers:ia,useLayerLifecycle:Cc,useLeafletContext:Qi,usePathOptions:Vm,withPane:hs},Symbol.toStringTag,{value:"Module"}));function ra(){return Qi().map}const T0=Tc(function(t){return new Ke.Control.Attribution(t)});function _u(){return _u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}
43,_u.apply(this,arguments)}function b0({bounds:e,boundsOptions:t,center:n,children:r,className:a,id:s,placeholder:l,style:c,whenReady:d,zoom:p,...m},_){const[v]=B.useState({className:a,id:s,style:c}),[y,C]=B.useState(null);B.useImperativeHandle(_,()=>(y==null?void 0:y.map)??null,[y]);const P=B.useCallback(x=>{if(x!==null&&y===null){const w=new Ke.Map(x,m);n!=null&&p!=null?w.setView(n,p):e!=null&&w.fitBounds(e,t),d!=null&&w.whenReady(d),C(Bm(w))}},[]);B.useEffect(()=>()=>{y==null||y.map.remove()},[y]);const N=y?kl.createElement(Lc,{value:y},r):l??null;return kl.createElement("div",_u({},v,{ref:P}),N)}const O0=B.forwardRef(b0),Ym=qm(function({position:t,...n},r){const a=new Ke.Marker(t,n);return ds(a,Dm(r,{overlayContainer:a}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),M0=Jm(function({url:t,...n},r){const a=new Ke.TileLayer(t,hs(n,r));return ds(a,r)},function(t,n,r){Qm(t,n,r);const{url:a}=n;a!=null&&a!==r.url&&t.setUrl(a)}),Xm=Km(function(t,n){const r=new Ke.Tooltip(t,n.overlayContainer);return ds(r,n)},function(t,n,{position:r},a){B.useEffect(function(){const l=n.overlayContainer;if(l==null)return;const{instance:c}=t,d=m=>{m.tooltip===c&&(r!=null&&c.setLatLng(r),c.update(),a(!0))},p=m=>{m.tooltip===c&&a(!1)};return l.on({tooltipopen:d,tooltipclose:p}),l.bindTooltip(c),function(){l.off({tooltipopen:d,tooltipclose:p}),l._map!=null&&l.unbindTooltip()}},[t,n,a,r])}),I0=Tc(function(t){return new Ke.Control.Zoom(t)});var e_={};const A0=ss(E0);var tf={exports:{}};(function(e,t){(function(n,r){r(t)})(be,function(n){var r=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(s){L.Util.setOptions(this,s),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var l=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,l?this._withAnimation:this._noAnimation),this._markerCluster=l?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(s){if(s instanceof L.LayerGroup)return this.addLayers([s]);if(!s.getLatLng)return this._nonPointGroup.addLayer(s),this.fire("layeradd",{layer:s}),this;if(!this._map)return this._needsClustering.push(s),this.fire("layeradd",{layer:s}),this;if(this.hasLayer(s))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(s,this._maxZoom),this.fire("layeradd",{layer:s}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var l=s,c=this._zoom;if(s.__parent)for(;l.__parent._zoom>=c;)l=l.__parent;return this._currentShownBounds.contains(l.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(s,l):this._animationAddLayerNonAnimated(s,l)),this},removeLayer:function(s){return s instanceof L.LayerGroup?this.removeLayers([s]):s.getLatLng?this._map?s.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(s)),this._removeLayer(s,!0),this.fire("layerremove",{layer:s}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),s.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(s)&&(this._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,s)&&this.hasLayer(s)&&this._needsRemoving.push({layer:s,latlng:s._latlng}),this.fire("layerremove",{layer:s}),this):(this._nonPointGroup.removeLayer(s),this.fire("layerremove",{layer:s}),this)},addLayers:function(s,l){if(!L.Util.isArray(s))return this.addLayer(s);var c=this._featureGroup,d=this._nonPointGroup,p=this.options.chunkedLoading,m=this.options.chunkInterval,_=this.options.chunkProgress,v=s.length,y=0,C=!0,P;if(this._map){var N=new Date().getTime(),x=L.bind(function(){var S=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();y<v;y++){if(p&&y%200===0){var M=new Date().getTime()-S;if(M>m)break}if(P=s[y],P instanceof L.LayerGroup){C&&(s=s.slice(),C=!1),this._extractNonGroupLayers(P,s),v=s.length;continue}if(!P.getLatLng){d.addLayer(P),l||this.fire("layeradd",{layer:P});continue}if(!this.hasLayer(P)&&(this._addLayer(P,this._maxZoom),l||this.fire("layeradd",{layer:P}),P.__parent&&P.__parent.getChildCount()===2)){var z=P.__parent.getAllChildMarkers(),D=z[0]===P?z[1]:z[0];c.removeLayer(D)}}_&&_(y,v,new Date().getTime()-N),y===v?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(x,this.options.chunkDelay)},this);x()}else for(var w=this._needsClustering;y<v;y++){if(P=s[y],P instanceof L.LayerGroup){C&&(s=s.slice(),C=!1),this._extractNonGroupLayers(P,s),v=s.length;continue}if(!P.getLatLng){d.addLayer(P);continue}this.hasLayer(P)||w.push(P)}return this},removeLayers:function(s){var l,c,d=s.length,p=this._featureGroup,m=this._nonPointGroup,_=!0;if(!this._map){for(l=0;l<d;l++){if(c=s[l],c instanceof L.LayerGroup){_&&(s=s.slice(),_=!1),this._extractNonGroupLayers(c,s),d=s.length;continue}this._arraySplice(this._needsClustering,c),m.removeLayer(c),this.hasLayer(c)&&this._needsRemoving.push({layer:c,latlng:c._latlng}),this.fire("layerremove",{layer:c})}return this}if(this._unspiderfy){this._unspiderfy();var v=s.slice(),y=d;for(l=0;l<y;l++){if(c=v[l],c instanceof L.LayerGroup){this._extractNonGroupLayers(c,v),y=v.length;continue}this._unspiderfyLayer(c)}}for(l=0;l<d;l++){if(c=s[l],c instanceof L.LayerGroup){_&&(s=s.slice(),_=!1),this._extractNonGroupLayers(c,s),d=s.length;continue}if(!c.__parent){m.removeLayer(c),this.fire("layerremove",{layer:c});continue}this._removeLayer(c,!0,!0),this.fire("layerremove",{layer:c}),p.hasLayer(c)&&(p.removeLayer(c),c.clusterShow&&c.clusterShow())}return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(s){s.off(this._childMarkerEventHandlers,this),delete s.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var s=new L.LatLngBounds;this._topClusterLevel&&s.extend(this._topClusterLevel._bounds);for(var l=this._needsClustering.length-1;l>=0;l--)s.extend(this._needsClustering[l].getLatLng());return s.extend(this._nonPointGroup.getBounds()),s},eachLayer:function(s,l){var c=this._needsClustering.slice(),d=this._needsRemoving,p,m,_;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(c),m=c.length-1;m>=0;m--){for(p=!0,_=d.length-1;_>=0;_--)if(d[_].layer===c[m]){p=!1;break}p&&s.call(l,c[m])}this._nonPointGroup.eachLayer(s,l)},getLayers:function(){var s=[];return this.eachLayer(function(l){s.push(l)}),s},getLayer:function(s){var l=null;return s=parseInt(s,10),this.eachLayer(function(c){L.stamp(c)===s&&(l=c)}),l},hasLayer:function(s){if(!s)return!1;var l,c=this._needsClustering;for(l=c.length-1;l>=0;l--)if(c[l]===s)return!0;for(c=this._needsRemoving,l=c.length-1;l>=0;l--)if(c[l].layer===s)return!1;return!!(s.__parent&&s.__parent._group===this)||this._nonPointGroup.hasLayer(s)},zoomToShowLayer:function(s,l){var c=this._map;typeof l!="function"&&(l=function(){});var d=function(){(c.hasLayer(s)||c.hasLayer(s.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",d,this),this.off("animationend",d,this),c.hasLayer(s)?l():s.__parent._icon&&(this.once("spiderfied",l,this),s.__parent.spiderfy()))};s._icon&&this._map.getBounds().contains(s.getLatLng())?l():s.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",d,this),this._map.panTo(s.getLatLng())):(this._map.on("moveend",d,this),this.on("animationend",d,this),s.__parent.zoomToBounds())},onAdd:function(s){this._map=s;var l,c,d;if(!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";
vendor: 5,074 bytes, line 43
43for(this._featureGroup.addTo(s),this._nonPointGroup.addTo(s),this._gridClusters||this._generateInitialClusters(),this._maxLat=s.options.crs.projection.MAX_LATITUDE,l=0,c=this._needsRemoving.length;l<c;l++)d=this._needsRemoving[l],d.newlatlng=d.layer._latlng,d.layer._latlng=d.latlng;for(l=0,c=this._needsRemoving.length;l<c;l++)d=this._needsRemoving[l],this._removeLayer(d.layer,!0),d.layer._latlng=d.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),c=this._needsClustering,this._needsClustering=[],this.addLayers(c,!0)},onRemove:function(s){s.off("zoomend",this._zoomEnd,this),s.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(s){for(var l=s;l&&!l._icon;)l=l.__parent;return l||null},_arraySplice:function(s,l){for(var c=s.length-1;c>=0;c--)if(s[c]===l)return s.splice(c,1),!0},_removeFromGridUnclustered:function(s,l){for(var c=this._map,d=this._gridUnclustered,p=Math.floor(this._map.getMinZoom());l>=p&&d[l].removeObject(s,c.project(s.getLatLng(),l));l--);},_childMarkerDragStart:function(s){s.target.__dragStart=s.target._latlng},_childMarkerMoved:function(s){if(!this._ignoreMove&&!s.target.__dragStart){var l=s.target._popup&&s.target._popup.isOpen();this._moveChild(s.target,s.oldLatLng,s.latlng),l&&s.target.openPopup()}},_moveChild:function(s,l,c){s._latlng=l,this.removeLayer(s),s._latlng=c,this.addLayer(s)},_childMarkerDragEnd:function(s){var l=s.target.__dragStart;delete s.target.__dragStart,l&&this._moveChild(s.target,l,s.target._latlng)},_removeLayer:function(s,l,c){var d=this._gridClusters,p=this._gridUnclustered,m=this._featureGroup,_=this._map,v=Math.floor(this._map.getMinZoom());l&&this._removeFromGridUnclustered(s,this._maxZoom);var y=s.__parent,C=y._markers,P;for(this._arraySplice(C,s);y&&(y._childCount--,y._boundsNeedUpdate=!0,!(y._zoom<v));)l&&y._childCount<=1?(P=y._markers[0]===s?y._markers[1]:y._markers[0],d[y._zoom].removeObject(y,_.project(y._cLatLng,y._zoom)),p[y._zoom].addObject(P,_.project(P.getLatLng(),y._zoom)),this._arraySplice(y.__parent._childClusters,y),y.__parent._markers.push(P),P.__parent=y.__parent,y._icon&&(m.removeLayer(y),c||m.addLayer(P))):y._iconNeedsUpdate=!0,y=y.__parent;delete s.__parent},_isOrIsParent:function(s,l){for(;l;){if(s===l)return!0;l=l.parentNode}return!1},fire:function(s,l,c){if(l&&l.layer instanceof L.MarkerCluster){if(l.originalEvent&&this._isOrIsParent(l.layer._icon,l.originalEvent.relatedTarget))return;s="cluster"+s}L.FeatureGroup.prototype.fire.call(this,s,l,c)},listens:function(s,l){return L.FeatureGroup.prototype.listens.call(this,s,l)||L.FeatureGroup.prototype.listens.call(this,"cluster"+s,l)},_defaultIconCreateFunction:function(s){var l=s.getChildCount(),c=" marker-cluster-";return l<10?c+="small":l<100?c+="medium":c+="large",new L.DivIcon({html:"<div><span>"+l+"</span></div>",className:"marker-cluster"+c,iconSize:new L.Point(40,40)})},_bindEvents:function(){var s=this._map,l=this.options.spiderfyOnMaxZoom,c=this.options.showCoverageOnHover,d=this.options.zoomToBoundsOnClick,p=this.options.spiderfyOnEveryZoom;(l||d||p)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),c&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),s.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(s){var l=s.layer,c=l;if(!(s.type==="clusterkeypress"&&s.originalEvent&&s.originalEvent.keyCode!==13)){for(;c._childClusters.length===1;)c=c._childClusters[0];c._zoom===this._maxZoom&&c._childCount===l._childCount&&this.options.spiderfyOnMaxZoom?l.spiderfy():this.options.zoomToBoundsOnClick&&l.zoomToBounds(),this.options.spiderfyOnEveryZoom&&l.spiderfy(),s.originalEvent&&s.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(s){var l=this._map;this._inZoomAnimation||(this._shownPolygon&&l.removeLayer(this._shownPolygon),s.layer.getChildCount()>2&&s.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(s.layer.getConvexHull(),this.options.polygonOptions),l.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var s=this.options.spiderfyOnMaxZoom,l=this.options.showCoverageOnHover,c=this.options.zoomToBoundsOnClick,d=this.options.spiderfyOnEveryZoom,p=this._map;(s||c||d)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),l&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),p.off("zoomend",this._hideCoverage,this))}
43,_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var s=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,s),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),s),this._currentShownBounds=s}},_generateInitialClusters:function(){var s=Math.ceil(this._map.getMaxZoom()),l=Math.floor(this._map.getMinZoom()),c=this.options.maxClusterRadius,d=c;typeof c!="function"&&(d=function(){return c}),this.options.disableClusteringAtZoom!==null&&(s=this.options.disableClusteringAtZoom-1),this._maxZoom=s,this._gridClusters={},this._gridUnclustered={};for(var p=s;p>=l;p--)this._gridClusters[p]=new L.DistanceGrid(d(p)),this._gridUnclustered[p]=new L.DistanceGrid(d(p));this._topClusterLevel=new this._markerCluster(this,l-1)},_addLayer:function(s,l){var c=this._gridClusters,d=this._gridUnclustered,p=Math.floor(this._map.getMinZoom()),m,_;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(s),s.on(this._childMarkerEventHandlers,this);l>=p;l--){m=this._map.project(s.getLatLng(),l);var v=c[l].getNearObject(m);if(v){v._addChild(s),s.__parent=v;return}if(v=d[l].getNearObject(m),v){var y=v.__parent;y&&this._removeLayer(v,!1);var C=new this._markerCluster(this,l,v,s);c[l].addObject(C,this._map.project(C._cLatLng,l)),v.__parent=C,s.__parent=C;var P=C;for(_=l-1;_>y._zoom;_--)P=new this._markerCluster(this,_,P),c[_].addObject(P,this._map.project(v.getLatLng(),_));y._addChild(P),this._removeFromGridUnclustered(v,l);return}d[l].addObject(s,m)}this._topClusterLevel._addChild(s),s.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(s){s instanceof L.MarkerCluster&&s._iconNeedsUpdate&&s._updateIcon()})},_enqueue:function(s){this._queue.push(s),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var s=0;s<this._queue.length;s++)this._queue[s].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var s=Math.round(this._map._zoom);this._processQueue(),this._zoom<s&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,s)):this._zoom>s?(this._animationStart(),this._animationZoomOut(this._zoom,s)):this._moveEnd()},_getExpandedVisibleBounds:function(){if(this.options.removeOutsideVisibleBounds){if(L.Browser.mobile)return this._checkBoundsMaxLat(this._map.getBounds())}else return this._mapBoundsInfinite;return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},_checkBoundsMaxLat:function(s){var l=this._maxLat;return l!==void 0&&(s.getNorth()>=l&&(s._northEast.lat=1/0),s.getSouth()<=-l&&(s._southWest.lat=-1/0)),s},_animationAddLayerNonAnimated:function(s,l){if(l===s)this._featureGroup.addLayer(s);else if(l._childCount===2){l._addToMap();var c=l.getAllChildMarkers();this._featureGroup.removeLayer(c[0]),this._featureGroup.removeLayer(c[1])}else l._updateIcon()},_extractNonGroupLayers:function(s,l){var c=s.getLayers(),d=0,p;for(l=l||[];d<c.length;d++){if(p=c[d],p instanceof L.LayerGroup){this._extractNonGroupLayers(p,l);continue}l.push(p)}return l},_overrideMarkerIcon:function(s){var l=s.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[s]}});return l}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(s,l){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),s),this._topClusterLevel._recursivelyAddChildrenToMap(null,l,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(s,l){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),s),this._topClusterLevel._recursivelyAddChildrenToMap(null,l,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(s,l){this._animationAddLayerNonAnimated(s,l)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(s,l){var c=this._getExpandedVisibleBounds(),d=this._featureGroup,p=Math.floor(this._map.getMinZoom()),m;this._ignoreMove=!0,this._topClusterLevel._recursively(c,s,p,function(_){var v=_._latlng,y=_._markers,C;for(c.contains(v)||(v=null),_._isSingleParent()&&s+1===l?(d.removeLayer(_),_._recursivelyAddChildrenToMap(null,l,c)):(_.clusterHide(),_._recursivelyAddChildrenToMap(v,l,c)),m=y.length-1;m>=0;m--)C=y[m],c.contains(C._latlng)||d.removeLayer(C)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(c,l),d.eachLayer(function(_){!(_ instanceof L.MarkerCluster)&&_._icon&&_.clusterShow()}),this._topClusterLevel._recursively(c,s,l,function(_){_._recursivelyRestoreChildPositions(l)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(c,s,p,function(_){d.removeLayer(_),_.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(s,l){this._animationZoomOutSingle(this._topClusterLevel,s-1,l),this._topClusterLevel._recursivelyAddChildrenToMap(null,l,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),s,this._getExpandedVisibleBounds())},_animationAddLayer:function(s,l){var c=this,d=this._featureGroup;d.addLayer(s),l!==s&&(l._childCount>2?(l._updateIcon(),this._forceLayout(),this._animationStart(),s._setPos(this._map.latLngToLayerPoint(l.getLatLng())),s.clusterHide(),this._enqueue(function(){d.removeLayer(s),s.clusterShow(),c._animationEnd()})):(this._forceLayout(),c._animationStart(),c._animationZoomOutSingle(l,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(s,l,c){var d=this._getExpandedVisibleBounds(),p=Math.floor(this._map.getMinZoom());s._recursivelyAnimateChildrenInAndAddSelfToMap(d,p,l+1,c);var m=this;this._forceLayout(),s._recursivelyBecomeVisible(d,c),this._enqueue(function(){if(s._childCount===1){var _=s._markers[0];this._ignoreMove=!0,_.setLatLng(_.getLatLng()),this._ignoreMove=!1,_.clusterShow&&_.clusterShow()}else s._recursively(d,c,p,function(v){v._recursivelyRemoveChildrenFromMap(d,p,l+1)});m._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(s){return new L.MarkerClusterGroup(s)};
vendor: 1,043 bytes, line 43
43var a=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(s,l,c,d){L.Marker.prototype.initialize.call(this,c?c._cLatLng||c.getLatLng():new L.LatLng(0,0),{icon:this,pane:s.options.clusterPane}),this._group=s,this._zoom=l,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,c&&this._addChild(c),d&&this._addChild(d)},getAllChildMarkers:function(s,l){s=s||[];for(var c=this._childClusters.length-1;c>=0;c--)this._childClusters[c].getAllChildMarkers(s,l);for(var d=this._markers.length-1;d>=0;d--)l&&this._markers[d].__dragStart||s.push(this._markers[d]);return s},getChildCount:function(){return this._childCount},zoomToBounds:function(s){for(var l=this._childClusters.slice(),c=this._group._map,d=c.getBoundsZoom(this._bounds),p=this._zoom+1,m=c.getZoom(),_;l.length>0&&d>p;){p++;var v=[];for(_=0;_<l.length;_++)v=v.concat(l[_]._childClusters);l=v}d>p?this._group._map.setView(this._latlng,p):d<=m?this._group._map.setVie
vendor: 7,603 bytes, line 43
43w(this._latlng,m+1):this._group._map.fitBounds(this._bounds,s)},getBounds:function(){var s=new L.LatLngBounds;return s.extend(this._bounds),s},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(s,l){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(s),s instanceof L.MarkerCluster?(l||(this._childClusters.push(s),s.__parent=this),this._childCount+=s._childCount):(l||this._markers.push(s),this._childCount++),this.__parent&&this.__parent._addChild(s,!0)},_setClusterCenter:function(s){this._cLatLng||(this._cLatLng=s._cLatLng||s._latlng)},_resetBounds:function(){var s=this._bounds;s._southWest&&(s._southWest.lat=1/0,s._southWest.lng=1/0),s._northEast&&(s._northEast.lat=-1/0,s._northEast.lng=-1/0)},_recalculateBounds:function(){var s=this._markers,l=this._childClusters,c=0,d=0,p=this._childCount,m,_,v,y;if(p!==0){for(this._resetBounds(),m=0;m<s.length;m++)v=s[m]._latlng,this._bounds.extend(v),c+=v.lat,d+=v.lng;for(m=0;m<l.length;m++)_=l[m],_._boundsNeedUpdate&&_._recalculateBounds(),this._bounds.extend(_._bounds),v=_._wLatLng,y=_._childCount,c+=v.lat*y,d+=v.lng*y;this._latlng=this._wLatLng=new L.LatLng(c/p,d/p),this._boundsNeedUpdate=!1}},_addToMap:function(s){s&&(this._backupLatlng=this._latlng,this.setLatLng(s)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(s,l,c){this._recursively(s,this._group._map.getMinZoom(),c-1,function(d){var p=d._markers,m,_;for(m=p.length-1;m>=0;m--)_=p[m],_._icon&&(_._setPos(l),_.clusterHide())},function(d){var p=d._childClusters,m,_;for(m=p.length-1;m>=0;m--)_=p[m],_._icon&&(_._setPos(l),_.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(s,l,c,d){this._recursively(s,d,l,function(p){p._recursivelyAnimateChildrenIn(s,p._group._map.latLngToLayerPoint(p.getLatLng()).round(),c),p._isSingleParent()&&c-1===d?(p.clusterShow(),p._recursivelyRemoveChildrenFromMap(s,l,c)):p.clusterHide(),p._addToMap()})},_recursivelyBecomeVisible:function(s,l){this._recursively(s,this._group._map.getMinZoom(),l,null,function(c){c.clusterShow()})},_recursivelyAddChildrenToMap:function(s,l,c){this._recursively(c,this._group._map.getMinZoom()-1,l,function(d){if(l!==d._zoom)for(var p=d._markers.length-1;p>=0;p--){var m=d._markers[p];c.contains(m._latlng)&&(s&&(m._backupLatlng=m.getLatLng(),m.setLatLng(s),m.clusterHide&&m.clusterHide()),d._group._featureGroup.addLayer(m))}},function(d){d._addToMap(s)})},_recursivelyRestoreChildPositions:function(s){for(var l=this._markers.length-1;l>=0;l--){var c=this._markers[l];c._backupLatlng&&(c.setLatLng(c._backupLatlng),delete c._backupLatlng)}if(s-1===this._zoom)for(var d=this._childClusters.length-1;d>=0;d--)this._childClusters[d]._restorePosition();else for(var p=this._childClusters.length-1;p>=0;p--)this._childClusters[p]._recursivelyRestoreChildPositions(s)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(s,l,c,d){var p,m;this._recursively(s,l-1,c-1,function(_){for(m=_._markers.length-1;m>=0;m--)p=_._markers[m],(!d||!d.contains(p._latlng))&&(_._group._featureGroup.removeLayer(p),p.clusterShow&&p.clusterShow())},function(_){for(m=_._childClusters.length-1;m>=0;m--)p=_._childClusters[m],(!d||!d.contains(p._latlng))&&(_._group._featureGroup.removeLayer(p),p.clusterShow&&p.clusterShow())})},_recursively:function(s,l,c,d,p){var m=this._childClusters,_=this._zoom,v,y;if(l<=_&&(d&&d(this),p&&_===c&&p(this)),_<l||_<c)for(v=m.length-1;v>=0;v--)y=m[v],y._boundsNeedUpdate&&y._recalculateBounds(),s.intersects(y._bounds)&&y._recursively(s,l,c,d,p)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var s=this.options.opacity;return this.setOpacity(0),this.options.opacity=s,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(s){this._cellSize=s,this._sqCellSize=s*s,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(s,l){var c=this._getCoord(l.x),d=this._getCoord(l.y),p=this._grid,m=p[d]=p[d]||{},_=m[c]=m[c]||[],v=L.Util.stamp(s);this._objectPoint[v]=l,_.push(s)},updateObject:function(s,l){this.removeObject(s),this.addObject(s,l)},removeObject:function(s,l){var c=this._getCoord(l.x),d=this._getCoord(l.y),p=this._grid,m=p[d]=p[d]||{},_=m[c]=m[c]||[],v,y;for(delete this._objectPoint[L.Util.stamp(s)],v=0,y=_.length;v<y;v++)if(_[v]===s)return _.splice(v,1),y===1&&delete m[c],!0},eachObject:function(s,l){var c,d,p,m,_,v,y,C=this._grid;for(c in C){_=C[c];for(d in _)for(v=_[d],p=0,m=v.length;p<m;p++)y=s.call(l,v[p]),y&&(p--,m--)}},getNearObject:function(s){var l=this._getCoord(s.x),c=this._getCoord(s.y),d,p,m,_,v,y,C,P,N=this._objectPoint,x=this._sqCellSize,w=null;for(d=c-1;d<=c+1;d++)if(_=this._grid[d],_){for(p=l-1;p<=l+1;p++)if(v=_[p],v)for(m=0,y=v.length;m<y;m++)C=v[m],P=this._sqDist(N[L.Util.stamp(C)],s),(P<x||P<=x&&w===null)&&(x=P,w=C)}return w},_getCoord:function(s){var l=Math.floor(s/this._cellSize);return isFinite(l)?l:s},_sqDist:function(s,l){var c=l.x-s.x,d=l.y-s.y;return c*c+d*d}},function(){L.QuickHull={getDistant:function(s,l){var c=l[1].lat-l[0].lat,d=l[0].lng-l[1].lng;return d*(s.lat-l[0].lat)+c*(s.lng-l[0].lng)},findMostDistantPointFromBaseLine:function(s,l){var c=0,d=null,p=[],m,_,v;for(m=l.length-1;m>=0;m--){if(_=l[m],v=this.getDistant(_,s),v>0)p.push(_);else continue;v>c&&(c=v,d=_)}return{maxPoint:d,newPoints:p}},buildConvexHull:function(s,l){var c=[],d=this.findMostDistantPointFromBaseLine(s,l);return d.maxPoint?(c=c.concat(this.buildConvexHull([s[0],d.maxPoint],d.newPoints)),c=c.concat(this.buildConvexHull([d.maxPoint,s[1]],d.newPoints)),c):[s[0]]},getConvexHull:function(s){var l=!1,c=!1,d=!1,p=!1,m=null,_=null,v=null,y=null,C=null,P=null,N;for(N=s.length-1;N>=0;N--){var x=s[N];(l===!1||x.lat>l)&&(m=x,l=x.lat),(c===!1||x.lat<c)&&(_=x,c=x.lat),(d===!1||x.lng>d)&&(v=x,d=x.lng),(p===!1||x.lng<p)&&(y=x,p=x.lng)}c!==l?(P=_,C=m):(P=y,C=v);var w=[].concat(this.buildConvexHull([P,C],s),this.buildConvexHull([C,P],s));return w}}}(),L.MarkerCluster.include({getConvexHull:function(){var s=this.getAllChildMarkers(),l=[],c,d;for(d=s.length-1;d>=0;d--)c=s[d].getLatLng(),l.push(c);return L.QuickHull.getConvexHull(l)}}),L.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(!(this._group._spiderfied===this||this._group._inZoomAnimation)){var s=this.getAllChildMarkers(null,!0),l=this._group,c=l._map,d=c.latLngToLayerPoint(this._latlng),p;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?p=this._group.options.spiderfyShapePositions(s.length,d):s.length>=this._circleSpiralSwitchover?p=this._generatePointsSpiral(s.length,d):(d.y+=10,p=this._generatePointsCircle(s.length,d)),this._animationSpiderfy(s,p)}},unspiderfy:function(s){this._group._inZoomAnimation||(this._animationUnspiderfy(s),this._group._spiderfied=null)},_generatePointsCircle:function(s,l){var c=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+s),d=c/this._2PI,p=this._2PI/s,m=[],_,v;for(d=Math.max(d,35),m.length=s,_=0;_<s;
vendor: 3,257 bytes, line 43
43_++)v=this._circleStartAngle+_*p,m[_]=new L.Point(l.x+d*Math.cos(v),l.y+d*Math.sin(v))._round();return m},_generatePointsSpiral:function(s,l){var c=this._group.options.spiderfyDistanceMultiplier,d=c*this._spiralLengthStart,p=c*this._spiralFootSeparation,m=c*this._spiralLengthFactor*this._2PI,_=0,v=[],y;for(v.length=s,y=s;y>=0;y--)y<s&&(v[y]=new L.Point(l.x+d*Math.cos(_),l.y+d*Math.sin(_))._round()),_+=p/d+y*5e-4,d+=m/_;return v},_noanimationUnspiderfy:function(){var s=this._group,l=s._map,c=s._featureGroup,d=this.getAllChildMarkers(null,!0),p,m;for(s._ignoreMove=!0,this.setOpacity(1),m=d.length-1;m>=0;m--)p=d[m],c.removeLayer(p),p._preSpiderfyLatlng&&(p.setLatLng(p._preSpiderfyLatlng),delete p._preSpiderfyLatlng),p.setZIndexOffset&&p.setZIndexOffset(0),p._spiderLeg&&(l.removeLayer(p._spiderLeg),delete p._spiderLeg);s.fire("unspiderfied",{cluster:this,markers:d}),s._ignoreMove=!1,s._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(s,l){var c=this._group,d=c._map,p=c._featureGroup,m=this._group.options.spiderLegPolylineOptions,_,v,y,C;for(c._ignoreMove=!0,_=0;_<s.length;_++)C=d.layerPointToLatLng(l[_]),v=s[_],y=new L.Polyline([this._latlng,C],m),d.addLayer(y),v._spiderLeg=y,v._preSpiderfyLatlng=v._latlng,v.setLatLng(C),v.setZIndexOffset&&v.setZIndexOffset(1e6),p.addLayer(v);this.setOpacity(.3),c._ignoreMove=!1,c.fire("spiderfied",{cluster:this,markers:s})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(s,l){var c=this,d=this._group,p=d._map,m=d._featureGroup,_=this._latlng,v=p.latLngToLayerPoint(_),y=L.Path.SVG,C=L.extend({},this._group.options.spiderLegPolylineOptions),P=C.opacity,N,x,w,S,M,z;for(P===void 0&&(P=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),y?(C.opacity=0,C.className=(C.className||"")+" leaflet-cluster-spider-leg"):C.opacity=P,d._ignoreMove=!0,N=0;N<s.length;N++)x=s[N],z=p.layerPointToLatLng(l[N]),w=new L.Polyline([_,z],C),p.addLayer(w),x._spiderLeg=w,y&&(S=w._path,M=S.getTotalLength()+.1,S.style.strokeDasharray=M,S.style.strokeDashoffset=M),x.setZIndexOffset&&x.setZIndexOffset(1e6),x.clusterHide&&x.clusterHide(),m.addLayer(x),x._setPos&&x._setPos(v);for(d._forceLayout(),d._animationStart(),N=s.length-1;N>=0;N--)z=p.layerPointToLatLng(l[N]),x=s[N],x._preSpiderfyLatlng=x._latlng,x.setLatLng(z),x.clusterShow&&x.clusterShow(),y&&(w=x._spiderLeg,S=w._path,S.style.strokeDashoffset=0,w.setStyle({opacity:P}));this.setOpacity(.3),d._ignoreMove=!1,setTimeout(function(){d._animationEnd(),d.fire("spiderfied",{cluster:c,markers:s})},200)},_animationUnspiderfy:function(s){var l=this,c=this._group,d=c._map,p=c._featureGroup,m=s?d._latLngToNewLayerPoint(this._latlng,s.zoom,s.center):d.latLngToLayerPoint(this._latlng),_=this.getAllChildMarkers(null,!0),v=L.Path.SVG,y,C,P,N,x,w;for(c._ignoreMove=!0,c._animationStart(),this.setOpacity(1),C=_.length-1;C>=0;C--)y=_[C],y._preSpiderfyLatlng&&(y.closePopup(),y.setLatLng(y._preSpiderfyLatlng),delete y._preSpiderfyLatlng,w=!0,y._setPos&&(y._setPos(m),w=!1),y.clusterHide&&(y.clusterHide(),w=!1),w&&p.removeLayer(y),v&&(P=y._spiderLeg,N=P._path,x=N.getTotalLength()+.1,N.style.strokeDashoffset=x,P.setStyle({opacity:0}
vendor: 4,430 bytes, line 43
43)));c._ignoreMove=!1,setTimeout(function(){var S=0;for(C=_.length-1;C>=0;C--)y=_[C],y._spiderLeg&&S++;for(C=_.length-1;C>=0;C--)y=_[C],y._spiderLeg&&(y.clusterShow&&y.clusterShow(),y.setZIndexOffset&&y.setZIndexOffset(0),S>1&&p.removeLayer(y),d.removeLayer(y._spiderLeg),delete y._spiderLeg);c._animationEnd(),c.fire("unspiderfied",{cluster:l,markers:_})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(s){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(s))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(s){this._spiderfied&&this._spiderfied.unspiderfy(s)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(s){s._spiderLeg&&(this._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow(),s.setZIndexOffset&&s.setZIndexOffset(0),this._map.removeLayer(s._spiderLeg),delete s._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(s){return s?s instanceof L.MarkerClusterGroup?s=s._topClusterLevel.getAllChildMarkers():s instanceof L.LayerGroup?s=s._layers:s instanceof L.MarkerCluster?s=s.getAllChildMarkers():s instanceof L.Marker&&(s=[s]):s=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(s),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(s),this},_flagParentsIconsNeedUpdate:function(s){var l,c;for(l in s)for(c=s[l].__parent;c;)c._iconNeedsUpdate=!0,c=c.__parent},_refreshSingleMarkerModeMarkers:function(s){var l,c;for(l in s)c=s[l],this.hasLayer(c)&&c.setIcon(this._overrideMarkerIcon(c))}}),L.Marker.include({refreshIconOptions:function(s,l){var c=this.options.icon;return L.setOptions(c,s),this.setIcon(c),l&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),n.MarkerClusterGroup=r,n.MarkerCluster=a,Object.defineProperty(n,"__esModule",{value:!0})})})(tf,tf.exports);const z0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sX
43FYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",N0=Object.freeze(Object.defineProperty({__proto__:null,default:z0},Symbol.toStringTag,{value:"Module"})),j0=ss(N0),R0="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=",B0=Object.freeze(Object.defineProperty({__proto__:null,default:R0},Symbol.toStringTag,{value:"Module"})),D0=ss(B0),U0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxIm
43NQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",$0=Object.freeze(Object.defineProperty({__proto__:null,default:U0},Symbol.toStringTag,{value:"Module"})),F0=ss($0);var Oi=be&&be.__assign||function(){return Oi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Oi.apply(this,arguments)},Z0=be&&be.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},H0=be&&be.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};
43Object.defineProperty(e_,"__esModule",{value:!0});var gu=A0,bc=H0(Ke);delete bc.default.Icon.Default.prototype._getIconUrl;bc.default.Icon.Default.mergeOptions({iconRetinaUrl:j0.default,iconUrl:D0.default,shadowUrl:F0.default});function W0(e){var t={},n={};e.children;var r=Z0(e,["children"]);return Object.entries(r).forEach(function(a){var s,l,c=a[0],d=a[1];c.startsWith("on")?n=Oi(Oi({},n),(s={},s[c]=d,s)):t=Oi(Oi({},t),(l={},l[c]=d,l))}),{clusterProps:t,clusterEvents:n}}function V0(e,t){var n=W0(e),r=n.clusterProps,a=n.clusterEvents,s=new bc.default.MarkerClusterGroup(r);return Object.entries(a).forEach(function(l){var c=l[0],d=l[1],p="cluster".concat(c.substring(2).toLowerCase());s.on(p,d)}),(0,gu.createElementObject)(s,(0,gu.extendContext)(t,{layerContainer:s}))}var G0=function(e,t,n){},q0=(0,gu.createPathComponent)(V0,G0),K0=e_.default=q0;/**
44 * @license lucide-react v0.344.0 - ISC
45 *
46 * This source code is licensed under the ISC license.
47 * See the LICENSE file in the root directory of this source tree.
48 */var J0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
49 * @license lucide-react v0.344.0 - ISC
50 *
51 * This source code is licensed under the ISC license.
52 * See the LICENSE file in the root directory of this source tree.
53 */const Q0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),We=(e,t)=>{const n=B.forwardRef(({color:r="currentColor",size:a=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:c="",children:d,...p},m)=>B.createElement("svg",{ref:m,...J0,width:a,height:a,stroke:r,strokeWidth:l?Number(s)*24/Number(a):s,className:["lucide",`lucide-${Q0(e)}`,c].join(" "),...p},[...t.map(([_,v])=>B.createElement(_,v)),...Array.isArray(d)?d:[d]]));return n.displayName=`${e}`,n};/**
54 * @license lucide-react v0.344.0 - ISC
55 *
56 * This source code is licensed under the ISC license.
57 * See the LICENSE file in the root directory of this source tree.
58 */const Y0=We("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
59 * @license lucide-react v0.344.0 - ISC
60 *
61 * This source code is licensed under the ISC license.
62 * See the LICENSE file in the root directory of this source tree.
63 */const t_=We("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
64 * @license lucide-react v0.344.0 - ISC
65 *
66 * This source code is licensed under the ISC license.
67 * See the LICENSE file in the root directory of this source tree.
68 */const X0=We("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
69 * @license lucide-react v0.344.0 - ISC
70 *
71 * This source code is licensed under the ISC license.
72 * See the LICENSE file in the root directory of this source tree.
73 */const ew=We("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
74 * @license lucide-react v0.344.0 - ISC
75 *
76 * This source code is licensed under the ISC license.
77 * See the LICENSE file in the root directory of this source tree.
78 */const tw=We("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
79 * @license lucide-react v0.344.0 - ISC
80 *
81 * This source code is licensed under the ISC license.
82 * See the LICENSE file in the root directory of this source tree.
83 */const nw=We("CornerDownRight",[["polyline",{points:"15 10 20 15 15 20",key:"1q7qjw"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]]);/**
84 * @license lucide-react v0.344.0 - ISC
85 *
86 * This source code is licensed under the ISC license.
87 * See the LICENSE file in the root directory of this source tree.
88 */const iw=We("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
89 * @license lucide-react v0.344.0 - ISC
90 *
91 * This source code is licensed under the ISC license.
92 * See the LICENSE file in the root directory of this source tree.
93 */const rw=We("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/**
94 * @license lucide-react v0.344.0 - ISC
95 *
96 * This source code is licensed under the ISC license.
97 * See the LICENSE file in the root directory of this source tree.
98 */const sw=We("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
99 * @license lucide-react v0.344.0 - ISC
100 *
101 * This source code is licensed under the ISC license.
102 * See the LICENSE file in the root directory of this source tree.
103 */const ow=We("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
104 * @license lucide-react v0.344.0 - ISC
105 *
106 * This source code is licensed under the ISC license.
107 * See the LICENSE file in the root directory of this source tree.
108 */const aw=We("Navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]);/**
109 * @license lucide-react v0.344.0 - ISC
110 *
111 * This source code is licensed under the ISC license.
112 * See the LICENSE file in the root directory of this source tree.
113 */const lw=We("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
114 * @license lucide-react v0.344.0 - ISC
115 *
116 * This source code is licensed under the ISC license.
117 * See the LICENSE file in the root directory of this source tree.
118 */const uw=We("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);/**
119 * @license lucide-react v0.344.0 - ISC
120 *
121 * This source code is licensed under the ISC license.
122 * See the LICENSE file in the root directory of this source tree.
123 */const cw=We("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
124 * @license lucide-react v0.344.0 - ISC
125 *
126 * This source code is licensed under the ISC license.
127 * See the LICENSE file in the root directory of this source tree.
128 */const hw=We("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/**
129 * @license lucide-react v0.344.0 - ISC
130 *
131 * This source code is licensed under the ISC license.
132 * See the LICENSE file in the root directory of this source tree.
133 */const Wi=We("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
133],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Qs={base:{url:"https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png",attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <a href="https://carto.com/attributions">CARTO</a>'},satélite:{url:"https://api.maptiler.com/maps/hybrid/256/{z}/{x}/{y}.jpg?key=1lbRLmDDEyGexHFbqHPd",attribution:'&copy; <a href="https://www.maptiler.com/">MapTiler</a> contributors'},urbano:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}};function nf({searchQuery:e,setSearchQuery:t,handleSearch:n,handleReset:r,isMobile:a=!1}){const s=l=>{const c=l.target.value;t(c),c===""&&r()};return E.jsx("form",{onSubmit:n,className:`w-full ${a?"flex items-center gap-2":""}`,children:E.jsxs("div",{className:`relative ${a?"flex-1":"w-full"}`,children:[E.jsx("input",{type:"text",value:e,onChange:s,placeholder:"Procurar...",className:`
134            w-full bg-gray-50 border border-gray-200 rounded-lg
135            placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-blue-500 
136            focus:border-transparent transition-shadow
137            ${a?"h-8 px-8 text-xs":"h-10 px-3 pl-9 pr-9 text-sm"}
138          `}),E.jsx(cw,{className:"absolute left-2.5 top-1/2 transform -translate-y-1/2 text-gray-400",size:a?14:16}),e&&E.jsx("button",{type:"button",onClick:r,className:`absolute right-2.5 top-1/2 transform -translate-y-1/2 text-gray-400 
139              hover:text-gray-600 focus:outline-none p-1 hover:bg-gray-100 rounded-lg transition-colors`,children:E.jsx(Wi,{size:a?14:16})})]})})}function rf({categoryIcons:e,selectedCategories:t,toggleCategory:n,selectedRoutes:r,toggleRoute:a,handleReset:s,baseMaps:l,selectedBaseMap:c,setSelectedBaseMap:d,clearPOIs:p,clearRoutes:m,showMoedaId:_,setShowMoedaId:v,isMobile:y,categories:C}){const[P,N]=B.useState({"ponto-interesse":!0,embaixador:!0}),x=M=>{N(z=>({...z,[M]:!z[M]}))},w={"ponto-interesse":C.filter(M=>M.group_type==="ponto-interesse"),embaixador:C.filter(M=>M.group_type==="embaixador")},S=(M,z,D)=>E.jsxs("div",{className:"mb-3",children:[E.jsxs("button",{onClick:()=>x(D),className:`flex items-center justify-between w-full p-2 bg-gray-50 rounded-lg 
140          hover:bg-gray-100 transition-colors`,children:[E.jsx("span",{className:"text-xs font-medium text-gray-800",children:M}),P[D]?E.jsx(t_,{size:14,className:"text-gray-500"}):E.jsx(X0,{size:14,className:"text-gray-500"})]}),P[D]&&E.jsx("div",{className:"mt-2 space-y-1 pl-1.5",children:z.map(R=>E.jsxs("div",{onClick:()=>n(R.id),className:`
141                flex items-center gap-2 p-2 rounded-lg cursor-pointer transition-all
142                ${t.has(R.id)?"bg-blue-50 text-blue-700 shadow-sm ring-1 ring-blue-200":"hover:bg-gray-50 text-gray-600 hover:text-gray-900"}
143              `,children:[E.jsx("img",{src:R.icon_url,alt:R.name,className:"w-4 h-4"}),E.jsx("span",{className:"text-xs font-medium",children:R.name})]},`category-${R.id}`))})]},`group-${D}`);return E.jsxs("div",{className:`space-y-3 p-3 ${y?"pb-20":""}`,children:[E.jsxs("div",{className:"mb-3",children:[E.jsx("h4",{className:"text-xs font-bold text-gray-800 mb-2",children:"Tipo de Mapa"}),E.jsx("div",{className:"grid grid-cols-3 gap-1",children:Object.entries(l).map(([M,z])=>E.jsx("button",{onClick:()=>d(M),className:`
144                px-2 py-1.5 text-xs rounded-lg transition-all font-medium
145                ${c===M?"bg-blue-50 text-blue-700 shadow-sm ring-1 ring-blue-200":"bg-gray-50 text-gray-600 hover:bg-gray-100 hover:text-gray-900"}
146              `,children:M.charAt(0).toUpperCase()+M.slice(1)},`basemap-${M}`))})]}),E.jsxs("div",{className:"space-y-2",children:[E.jsxs("div",{className:"flex items-center justify-between mb-2",children:[E.jsx("h4",{className:"text-xs font-bold text-gray-800",children:"Categorias"}),E.jsxs("div",{className:"flex items-center gap-1.5",children:[t.size>0&&E.jsx("button",{onClick:p,className:`text-[10px] font-medium text-red-500 hover:text-red-700 transition-colors 
147                  px-1.5 py-0.5 rounded hover:bg-red-50`,children:"Limpar"}),E.jsx("button",{onClick:s,className:`text-[10px] font-medium text-gray-500 hover:text-gray-700 transition-colors
148                px-1.5 py-0.5 rounded hover:bg-gray-50`,children:"Reset"})]})]}),S("Ponto de Interesse",w["ponto-interesse"],"ponto-interesse"),S("Embaixador",w.embaixador,"embaixador")]})]})}const dw={"ponto-interesse":e=>`Próxima paragem: ${e}! Vem explorar este fantástico ponto de interesse ou embaixador, acredita que vale a pena! Obtém as direções através do mapa ou da página. Sabe mais em `,embaixador:e=>`Próxima paragem: ${e}
148! Vem conhecer este embaixador e vive uma experiência única! Obtém as direções através do mapa ou da página. Sabe mais em `},vu={whatsapp:{webUrl:"https://web.whatsapp.com/send",mobileUrl:"whatsapp://send",icon:"https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg"},telegram:{webUrl:"https://t.me/share/url",mobileUrl:"tg://msg",icon:"https://upload.wikimedia.org/wikipedia/commons/8/82/Telegram_logo.svg"}},fw=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),pw=({url:e,platform:t,message:n})=>{const r=encodeURIComponent(n),a=encodeURIComponent(e),s=vu[t];return t==="whatsapp"?{mobileUrl:`${s.mobileUrl}?text=${r}%20${a}`,webUrl:`${s.webUrl}?text=${r}%20${a}`}:t==="telegram"?{mobileUrl:`${s.mobileUrl}?text=${r}%20${a}`,webUrl:`${s.webUrl}?url=${a}&text=${r}`}:{mobileUrl:"",webUrl:""}},mw=async e=>{try{if(e.platform==="copy")return await navigator.clipboard.writeText(`${e.message} ${e.url}`),{success:!0};const t=pw(e),n=fw()?t.mobileUrl:t.webUrl;return window.open(n,"_blank","noopener,noreferrer"),{success:!0}}catch{return{success:!1,error:"Failed to share content"}}},_w="modulepreload",gw=function(e){return"/"+e},sf={}
148,Vi=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));a=Promise.allSettled(n.map(d=>{if(d=gw(d),d in sf)return;sf[d]=!0;const p=d.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${m}`))return;const _=document.createElement("link");if(_.rel=p?"stylesheet":_w,p||(_.as="script"),_.crossOrigin="",_.href=d,c&&_.setAttribute("nonce",c),document.head.appendChild(_),p)return new Promise((v,y)=>{_.addEventListener("load",v),_.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${d}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return a.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})},vw=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Vi(async()=>{const{default:r}=await Promise.resolve().then(()=>Xi);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class Oc extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class yw extends Oc{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class ww extends Oc{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class xw extends Oc{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var yu;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(yu||(yu={}));var kw=function(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function c(m){try{p(r.next(m))}catch(_){l(_)}}function d(m){try{p(r.throw(m))}catch(_){l(_)}}function p(m){m.done?s(m.value):a(m.value).then(c,d)}p((r=r.apply(e,t||[])).next())})};class Lw{constructor(t,{headers:n={},customFetch:r,region:a=yu.Any}={}){this.url=t,this.headers=n,this.region=a,this.fetch=vw(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return kw(this,void 0,void 0,function*(){try{const{headers:a,method:s,body:l}=n;let c={},{region:d}=n;d||(d=this.region),d&&d!=="any"&&(c["x-region"]=d);let p;l&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)&&(typeof Blob<"u"&&l instanceof Blob||l instanceof ArrayBuffer?(c["Content-Type"]="application/octet-stream",p=l):typeof l=="string"?(c["Content-Type"]="text/plain",p=l):typeof FormData<"u"&&l instanceof FormData?p=l:(c["Content-Type"]="application/json",p=JSON.stringify(l)));const m=yield this.fetch(`${this.url}/${t}`,{method:s||"POST",headers:Object.assign(Object.assign(Object.assign({},c),this.headers),a),body:p}).catch(C=>{throw new yw(C)}),_=m.headers.get("x-relay-error");if(_&&_==="true")throw new ww(m);if(!m.ok)throw new xw(m);let v=((r=m.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),y;return v==="application/json"?y=yield m.json():v==="application/octet-stream"?y=yield m.blob():v==="text/event-stream"?y=m:v==="multipart/form-data"?y=yield m.formData():y=yield m.text(),{data:y,error:null}}catch(a){return{data:null,error:a}}})}}var nt={},Mc={},sa={},fs={},oa={},aa={},Sw=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Gi=Sw();const Pw=Gi.fetch,n_=Gi.fetch.bind(Gi),i_=Gi.Headers,Cw=Gi.Request,Ew=Gi.Response,Xi=Object.freeze(Object.defineProperty({__proto__:null,Headers:i_,Request:Cw,Response:Ew,default:n_,fetch:Pw},Symbol.toStringTag,{value:"Module"})),Tw=ss(Xi);var la={};Object.defineProperty(la,"__esModule",{value:!0});
148let bw=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}};la.default=bw;var r_=be&&be.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(aa,"__esModule",{value:!0});const Ow=r_(Tw),Mw=r_(la);let Iw=class{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=Ow.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,n){return this.headers=Object.assign({},this.headers),this.headers[t]=n,this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const r=this.fetch;let a=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{var l,c,d;let p=null,m=null,_=null,v=s.status,y=s.statusText;if(s.ok){if(this.method!=="HEAD"){const x=await s.text();x===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?m=x:m=JSON.parse(x))}const P=(l=this.headers.Prefer)===null||l===void 0?void 0:l.match(/count=(exact|planned|estimated)/),N=(c=s.headers.get("content-range"))===null||c===void 0?void 0:c.split("/");P&&N&&N.length>1&&(_=parseInt(N[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(m)&&(m.length>1?(p={code:"PGRST116",details:`Results contain ${m.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},m=null,_=null,v=406,y="Not Acceptable"):m.length===1?m=m[0]:m=null)}else{const P=await s.text();try{p=JSON.parse(P),Array.isArray(p)&&s.status===404&&(m=[],p=null,v=200,y="OK")}catch{s.status===404&&P===""?(v=204,y="No Content"):p={message:P}}if(p&&this.isMaybeSingle&&(!((d=p==null?void 0:p.details)===null||d===void 0)&&d.includes("0 rows"))&&(p=null,v=200,y="OK"),p&&this.shouldThrowOnError)throw new Mw.default(p)}return{error:p,data:m,count:_,status:v,statusText:y}});return this.shouldThrowOnError||(a=a.catch(s=>{var l,c,d;return{error:{message:`${(l=s==null?void 0:s.name)!==null&&l!==void 0?l:"FetchError"}: ${s==null?void 0:s.message}`,details:`${(c=s==null?void 0:s.stack)!==null&&c!==void 0?c:""}`,hint:"",code:`${(d=s==null?void 0:s.code)!==null&&d!==void 0?d:""}`},data:null,count:null,status:0,statusText:""}})),a.then(t,n)}};aa.default=Iw;var Aw=be&&be.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oa,"__esModule",{value:!0});const zw=Aw(aa);let Nw=class extends zw.default{select(t){let n=!1;const r=(t??"*").split("").map(a=>/\s/.test(a)&&!n?"":(a==='"'&&(n=!n),a)).join("");return this.url.searchParams.set("select",r),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:a,referencedTable:s=a}={}){const l=s?`${s}.order`:"order",c=this.url.searchParams.get(l);return this.url.searchParams.set(l,`${c?`${c},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const a=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(a,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:a=r}={}){const s=typeof a>"u"?"offset":`${a}.offset`,l=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(s,`${t}`),this.url.searchParams.set(l,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}
148explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:a=!1,wal:s=!1,format:l="text"}={}){var c;const d=[t?"analyze":null,n?"verbose":null,r?"settings":null,a?"buffers":null,s?"wal":null].filter(Boolean).join("|"),p=(c=this.headers.Accept)!==null&&c!==void 0?c:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${l}; for="${p}"; options=${d};`,l==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};oa.default=Nw;var jw=be&&be.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fs,"__esModule",{value:!0});const Rw=jw(oa);let Bw=class extends Rw.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(a=>typeof a=="string"&&new RegExp("[,()]").test(a)?`"${a}"`:`${a}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:a}={}){let s="";a==="plain"?s="pl":a==="phrase"?s="ph":a==="websearch"&&(s="w");const l=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${s}fts${l}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const a=r?`${r}.or`:"or";return this.url.searchParams.append(a,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}};fs.default=Bw;var Dw=be&&be.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sa,"__esModule",{value:!0});const Lr=Dw(fs);let Uw=class{constructor(t,{headers:n={},schema:r,fetch:a}){this.url=t,this.headers=n,this.schema=r,this.fetch=a}select(t,{head:n=!1,count:r}={}){const a=n?"HEAD":"GET";let s=!1;const l=(t??"*").split("").map(c=>/\s/.test(c)&&!s?"":(c==='"'&&(s=!s),c)).join("");return this.url.searchParams.set("select",l),r&&(this.headers.Prefer=`count=${r}`),new Lr.default({method:a,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:n,defaultToNull:r=!0}={}){const a="POST",s=[];if(this.headers.Prefer&&s.push(this.headers.Prefer),n&&s.push(`count=${n}`),r||s.push("missing=default"),this.headers.Prefer=s.join(","),Array.isArray(t)){const l=t.reduce((c,d)=>c.concat(Object.keys(d)),[]);if(l.length>0){const c=[...new Set(l)].map(d=>`"${d}"`);this.url.searchParams.set("columns",c.join(","))}}return new Lr.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:a,defaultToNull:s=!0}={}){const l="POST",c=[`resolution=${r?"ignore":"merge"}-duplicates`];if(n!==void 0&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&c.push(this.headers.Prefer),a&&c.push(`count=${a}`),s||c.push("missing=default"),this.headers.Prefer=c.join(","),Array.isArray(t)){const d=t.reduce((p,m)=>p.concat(Object.keys(m)),[]);if(d.length>0){const p=[...new Set(d)].map(m=>`"${m}"`);this.url.searchParams.set("columns",p.join(","))}}return new Lr.default({method:l,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:n}={}){const r="PATCH",a=[];return this.headers.Prefer&&a.push(this.headers.Prefer),n&&a.push(`count=${n}`),this.headers.Prefer=a.join(","),new Lr.default({method:r,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const n="DELETE",r=[];return t&&r.push(`count=${t}`),this.headers.Prefer&&r.unshift(this.headers.Prefer),this.headers.Prefer=r.join(","),new Lr.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};sa.default=Uw;var ua={},ca={};Object.defineProperty(ca,"__esModule",{value:!0});ca.version=void 0;ca.version="0.0.0-automated";Object.defineProperty(ua,"__esModule",{value:!0});ua.DEFAULT_HEADERS=void 0;const $w=ca;ua.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${$w.version}`};
148var s_=be&&be.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mc,"__esModule",{value:!0});const Fw=s_(sa),Zw=s_(fs),Hw=ua;let Ww=class o_{constructor(t,{headers:n={},schema:r,fetch:a}={}){this.url=t,this.headers=Object.assign(Object.assign({},Hw.DEFAULT_HEADERS),n),this.schemaName=r,this.fetch=a}from(t){const n=new URL(`${this.url}/${t}`);return new Fw.default(n,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new o_(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:a=!1,count:s}={}){let l;const c=new URL(`${this.url}/rpc/${t}`);let d;r||a?(l=r?"HEAD":"GET",Object.entries(n).filter(([m,_])=>_!==void 0).map(([m,_])=>[m,Array.isArray(_)?`{${_.join(",")}}`:`${_}`]).forEach(([m,_])=>{c.searchParams.append(m,_)})):(l="POST",d=n);const p=Object.assign({},this.headers);return s&&(p.Prefer=`count=${s}`),new Zw.default({method:l,url:c,headers:p,schema:this.schemaName,body:d,fetch:this.fetch,allowEmpty:!1})}};Mc.default=Ww;var er=be&&be.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nt,"__esModule",{value:!0});nt.PostgrestError=nt.PostgrestBuilder=nt.PostgrestTransformBuilder=nt.PostgrestFilterBuilder=nt.PostgrestQueryBuilder=nt.PostgrestClient=void 0;const a_=er(Mc);nt.PostgrestClient=a_.default;const l_=er(sa);nt.PostgrestQueryBuilder=l_.default;const u_=er(fs);nt.PostgrestFilterBuilder=u_.default;const c_=er(oa);nt.PostgrestTransformBuilder=c_.default;const h_=er(aa);nt.PostgrestBuilder=h_.default;const d_=er(la);nt.PostgrestError=d_.default;var Vw=nt.default={PostgrestClient:a_.default,PostgrestQueryBuilder:l_.default,PostgrestFilterBuilder:u_.default,PostgrestTransformBuilder:c_.default,PostgrestBuilder:h_.default,PostgrestError:d_.default};const{PostgrestClient:Gw,PostgrestQueryBuilder:Hx,PostgrestFilterBuilder:Wx,PostgrestTransformBuilder:Vx,PostgrestBuilder:Gx,PostgrestError:qx}=Vw,qw="2.11.2",Kw={"X-Client-Info":`realtime-js/${qw}`},Jw="1.0.0",f_=1e4,Qw=1e3;var Ri;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Ri||(Ri={}));var at;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(at||(at={}));var Ot;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Ot||(Ot={}));var wu;(function(e){e.websocket="websocket"})(wu||(wu={}));var Zn;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Zn||(Zn={}));class Yw{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const a=n.getUint8(1),s=n.getUint8(2);let l=this.HEADER_LENGTH+2;const c=r.decode(t.slice(l,l+a));l=l+a;const d=r.decode(t.slice(l,l+s));l=l+s;const p=JSON.parse(r.decode(t.slice(l,t.byteLength)));return{ref:null,topic:c,event:d,payload:p}}}class p_{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var he;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(he||(he={}));const of=(e,t,n={})=>{var r;const a=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((s,l)=>(s[l]=Xw(l,e,t,a),s),{})},Xw=(e,t,n,r)=>{const a=t.find(c=>c.name===e),s=a==null?void 0:a.type,l=n[e];return s&&!r.includes(s)?m_(s,l):xu(l)},m_=(e,t)=>
vendor: 14,175 bytes, lines 148-153
148{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return i1(t,n)}switch(e){case he.bool:return e1(t);case he.float4:case he.float8:case he.int2:case he.int4:case he.int8:case he.numeric:case he.oid:return t1(t);case he.json:case he.jsonb:return n1(t);case he.timestamp:return r1(t);case he.abstime:case he.date:case he.daterange:case he.int4range:case he.int8range:case he.money:case he.reltime:case he.text:case he.time:case he.timestamptz:case he.timetz:case he.tsrange:case he.tstzrange:return xu(t);default:return xu(t)}},xu=e=>e,e1=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},t1=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},n1=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},i1=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let s;const l=e.slice(1,n);try{s=JSON.parse("["+l+"]")}catch{s=l?l.split(","):[]}return s.map(c=>m_(t,c))}return e},r1=e=>typeof e=="string"?e.replace(" ","T"):e,__=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")};class vl{constructor(t,n,r={},a=f_){this.channel=t,this.event=n,this.payload=r,this.timeout=a,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var af;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(af||(af={}));class Dr{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},a=>{const{onJoin:s,onLeave:l,onSync:c}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Dr.syncState(this.state,a,s,l),this.pendingDiffs.forEach(d=>{this.state=Dr.syncDiff(this.state,d,s,l)}),this.pendingDiffs=[],c()}),this.channel._on(r.diff,{},a=>{const{onJoin:s,onLeave:l,onSync:c}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(a):(this.state=Dr.syncDiff(this.state,a,s,l),c())}),this.onJoin((a,s,l)=>{this.channel._trigger("presence",{event:"join",key:a,currentPresences:s,newPresences:l})}),this.onLeave((a,s,l)=>{this.channel._trigger("presence",{event:"leave",key:a,currentPresences:s,leftPresences:l})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,a){const s=this.cloneDeep(t),l=this.transformState(n),c={},d={};return this.map(s,(p,m)=>{l[p]||(d[p]=m)}),this.map(l,(p,m)=>{const _=s[p];if(_){const v=m.map(N=>N.presence_ref),y=_.map(N=>N.presence_ref),C=m.filter(N=>y.indexOf(N.presence_ref)<0),P=_.filter(N=>v.indexOf(N.presence_ref)<0);C.length>0&&(c[p]=C),P.length>0&&(d[p]=P)}else c[p]=m}),this.syncDiff(s,{joins:c,leaves:d},r,a)}static syncDiff(t,n,r,a){const{joins:s,leaves:l}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),a||(a=()=>{}),this.map(s,(c,d)=>{var p;const m=(p=t[c])!==null&&p!==void 0?p:[];if(t[c]=this.cloneDeep(d),m.length>0){const _=t[c].map(y=>y.presence_ref),v=m.filter(y=>_.indexOf(y.presence_ref)<0);t[c].unshift(...v)}r(c,m,d)}),this.map(l,(c,d)=>{let p=t[c];if(!p)return;const m=d.map(_=>_.presence_ref);p=p.filter(_=>m.indexOf(_.presence_ref)<0),t[c]=p,a(c,p,d),p.length===0&&delete t[c]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const a=t[r];return"metas"in a?n[r]=a.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):n[r]=a,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var lf;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(lf||(lf={}));var uf;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(uf||(uf={}));var Jt;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Jt||(Jt={}));class Ic{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=at.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new vl(this,Ot.join,this.params,this.timeout),this.rejoinTimer=new p_(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=at.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(a=>a.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=at.closed,this.socket._remove(this)}),this._onError(a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=at.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=at.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Ot.reply,{},(a,s)=>{this._trigger(this._replyEventName(s),a)}),this.presence=new Dr(this),this.broadcastEndpointURL=__(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(t,n=this.timeout){var r,a;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:s,presence:l,private:c}}=this.params;this._onError(m=>t==null?void 0:t(Jt.CHANNEL_ERROR,m)),this._onClose(()=>t==null?void 0:t(Jt.CLOSED));const d={},p={broadcast:s,presence:l,postgres_changes:(a=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(m=>m.filter))!==null&&a!==void 0?a:[],private:c};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this.updateJoinPayload(Object.assign({config:p},d)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:m})=>{var _;if(this.socket.setAuth(),m===void 0){t==null||t(Jt.SUBSCRIBED);return}else{const v=this.bindings.postgres_changes,y=(_=v==null?void 0:v.length)!==null&&_!==void 0?_:0,C=[];for(let P=0;P<y;P++){const N=v[P],{filter:{event:x,schema:w,table:S,filter:M}}=N,z=m&&m[P];if(z&&z.event===x&&z.schema===w&&z.table===S&&z.filter===M)C.push(Object.assign(Object.assign({},N),{id:z.id}));else{this.unsubscribe(),t==null||t(Jt.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=C,t&&t(Jt.SUBSCRIBED);return}}).receive("error",m=>{t==null||t(Jt.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(m).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Jt.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this._on(t,n,r)}async send(t,n={}){var r,a;if(!this._canPush()&&t.type==="broadcast"){const{event:s,payload:l}=t,d={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:l,private:this.private}]})};try{const p=await this._fetchWithTimeout(this.broadcastEndpointURL,d,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((a=p.body)===null||a===void 0?void 0:a.cancel()),p.ok?"ok":"error"}catch(p){return p.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var l,c,d;const p=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((d=(c=(l=this.params)===null||l===void 0?void 0:l.config)===null||c===void 0?void 0:c.broadcast)===null||d===void 0)&&d.ack)&&s("ok"),p.receive("ok",()=>s("ok")),p.receive("error",()=>s("error")),p.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=at.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Ot.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(r=>{const a=new vl(this,Ot.leave,{},t);a.receive("ok",()=>{n(),r("ok")}).receive("timeout",()=>{n(),r("timed out")}).receive("error",()=>{r("error")}),a.send(),this._canPush()||a.trigger("ok",{})})}async _fetchWithTimeout(t,n,r){const a=new AbortController,s=setTimeout(()=>a.abort(),r),l=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:a.signal}));return clearTimeout(s),l}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let a=new vl(this,t,n,r);return this._canPush()?a.send():(a.startTimeout(),this.pushBuffer.push(a)),a}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var a,s;const l=t.toLocaleLowerCase(),{close:c,error:d,leave:p,join:m}=Ot;if(r&&[c,d,p,m].indexOf(l)>=0&&r!==this._joinRef())return;let v=this._onMessage(l,n,r);if(n&&!v)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(l)?(a=this.bindings.postgres_changes)===null||a===void 0||a.filter(y=>{var C,P,N;return((C=y.filter)===null||C===void 0?void 0:C.event)==="*"||((N=(P=y.filter)===null||P===void 0?void 0:P.event)===null||N===void 0?void 0:N.toLocaleLowerCase())===l}).map(y=>y.callback(v,r)):(s=this.bindings[l])===null||s===void 0||s.filter(y=>{var C,P,N,x,w,S;if(["broadcast","presence","postgres_changes"].includes(l))if("id"in y){const M=y.id,z=(C=y.filter)===null||C===void 0?void 0:C.event;return M&&((P=n.ids)===null||P===void 0?void 0:P.includes(M))&&(z==="*"||(z==null?void 0:z.toLocaleLowerCase())===((N=n.data)===null||N===void 0?void 0:N.type.toLocaleLowerCase()))}else{const M=(w=(x=y==null?void 0:y.filter)===null||x===void 0?void 0:x.event)===null||w===void 0?void 0:w.toLocaleLowerCase();return M==="*"||M===((S=n==null?void 0:n.event)===null||S===void 0?void 0:S.toLocaleLowerCase())}else return y.type.toLocaleLowerCase()===l}).map(y=>{if(typeof v=="object"&&"ids"in v){const C=v.data,{schema:P,table:N,commit_timestamp:x,type:w,errors:S}=C;v=Object.assign(Object.assign({},{schema:P,table:N,commit_timestamp:x,eventType:w,new:{},old:{},errors:S}),this._getPayloadRecords(C))}y.callback(v,r)})}_isClosed(){return this.state===at.closed}_isJoined(){return this.state===at.joined}_isJoining(){return this.state===at.joining}_isLeaving(){return this.state===at.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const a=t.toLocaleLowerCase(),s={type:a,filter:n,callback:r};return this.bindings[a]?this.bindings[a].push(s):this.bindings[a]=[s],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]=this.bindings[r].filter(a=>{var s;return!(((s=a.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===r&&Ic.isEqual(a.filter,n))}),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Ot.close,{},t)}_onError(t){this._on(Ot.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=at.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=of(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=of(t.columns,t.old_record)),n}}const s1=()=>{},o1=typeof WebSocket<"u",a1=`
149  addEventListener("message", (e) => {
150    if (e.data.event === "start") {
151      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
152    }
153  });`;class l1{constructor(t,n){var r;this.accessTokenValue=null,this.apiKey=null,this.channels=[],this.endPoint="",this.httpEndpoint="",this.headers=Kw,this.params={},this.timeout=f_,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=s1,this.conn=null,this.sendBuffer=[],this.serializer
153=new Yw,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._resolveFetch=s=>{let l;return s?l=s:typeof fetch>"u"?l=(...c)=>Vi(async()=>{const{default:d}=await Promise.resolve().then(()=>Xi);return{default:d}},void 0).then(({default:d})=>d(...c)):l=fetch,(...c)=>l(...c)},this.endPoint=`${t}/${wu.websocket}`,this.httpEndpoint=__(t),n!=null&&n.transport?this.transport=n.transport:this.transport=null,n!=null&&n.params&&(this.params=n.params),n!=null&&n.headers&&(this.headers=Object.assign(Object.assign({},this.headers),n.headers)),n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.logger&&(this.logger=n.logger),n!=null&&n.heartbeatIntervalMs&&(this.heartbeatIntervalMs=n.heartbeatIntervalMs);const a=(r=n==null?void 0:n.params)===null||r===void 0?void 0:r.apikey;if(a&&(this.accessTokenValue=a,this.apiKey=a),this.reconnectAfterMs=n!=null&&n.reconnectAfterMs?n.reconnectAfterMs:s=>[1e3,2e3,5e3,1e4][s-1]||1e4,this.encode=n!=null&&n.encode?n.encode:(s,l)=>l(JSON.stringify(s)),this.decode=n!=null&&n.decode?n.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new p_(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(n==null?void 0:n.fetch),n!=null&&n.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=(n==null?void 0:n.worker)||!1,this.workerUrl=n==null?void 0:n.workerUrl}this.accessToken=(n==null?void 0:n.accessToken)||null}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this.endpointURL(),void 0,{headers:this.headers});return}if(o1){this.conn=new WebSocket(this.endpointURL()),this.setupConnection();return}this.conn=new u1(this.endpointURL(),void 0,{close:()=>{this.conn=null}}),Vi(async()=>{const{default:t}=await import("./browser-CXhyqPFz.js").then(n=>n.b);return{default:t}},[]).then(({default:t})=>{this.conn=new t(this.endpointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:Jw}))}disconnect(t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Ri.connecting:return Zn.Connecting;case Ri.open:return Zn.Open;case Ri.closing:return Zn.Closing;default:return Zn.Closed}}isConnected(){return this.connectionState()===Zn.Open}channel(t,n={config:{}}){const r=new Ic(`realtime:${t}`,n,this);return this.channels.push(r),r}push(t){const{topic:n,event:r,payload:a,ref:s}=t,l=()=>{this.encode(t,c=>{var d;(d=this.conn)===null||d===void 0||d.send(c)})};this.log("push",`${n} ${r} (${s})`,a),this.isConnected()?l():this.sendBuffer.push(l)}async setAuth(t=null){let n=t||this.accessToken&&await this.accessToken()||this.accessTokenValue;if(n){let r=null;try{r=JSON.parse(atob(n.split(".")[1]))}catch{}if(r&&r.exp&&!(Math.floor(Date.now()/1e3)-r.exp<0))return this.log("auth",`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${r.exp}`),Promise.reject(`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${r.exp}`);this.accessTokenValue=n,this.channels.forEach(a=>{n&&a.updateJoinPayload({access_token:n}),a.joinedOnce&&a._isJoined()&&a._push(Ot.access_token,{access_token:n})})}}async sendHeartbeat(){var t;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(t=this.conn)===null||t===void 0||t.close(Qw,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth()}}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n._joinRef()!==t._joinRef())}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>
153this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:a,payload:s,ref:l}=n;l&&l===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null),this.log("receive",`${s.status||""} ${r} ${a} ${l&&"("+l+")"||""}`,s),this.channels.filter(c=>c._isMember(r)).forEach(c=>c._trigger(a,s,l)),this.stateChangeCallbacks.message.forEach(c=>c(n))})}async _onConnOpen(){if(this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this.reconnectTimer.reset(),!this.worker)this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs);else{this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}this.stateChangeCallbacks.open.forEach(t=>t())}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(n=>n(t))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(n=>n(t))}_triggerChanError(){this.channels.forEach(t=>t._trigger(Ot.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",a=new URLSearchParams(n);return`${t}${r}${a}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([a1],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}}class u1{constructor(t,n,r){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=Ri.connecting,this.send=()=>{},this.url=null,this.url=t,this.close=r.close}}class Ac extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Ae(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class c1 extends Ac{constructor(t,n){super(t),this.name="StorageApiError",this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class ku extends Ac{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var h1=function(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function c(m){try{p(r.next(m))}catch(_){l(_)}}function d(m){try{p(r.throw(m))}catch(_){l(_)}}function p(m){m.done?s(m.value):a(m.value).then(c,d)}p((r=r.apply(e,t||[])).next())})};const g_=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Vi(async()=>{const{default:r}=await Promise.resolve().then(()=>Xi);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},d1=()=>h1(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield Vi(()=>Promise.resolve().then(()=>Xi),void 0)).Response:Response}),Lu=e=>{if(Array.isArray(e))return e.map(n=>Lu(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const a=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[a]=Lu(r)}),t};var ni=function(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function c(m){try{p(r.next(m))}catch(_){l(_)}}function d(m){try{p(r.throw(m))}catch(_){l(_)}}function p(m){m.done?s(m.value):a(m.value).then(c,d)}p((r=r.apply(e,t||[])).next())})};const yl=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),f1=(e,t,n)=>ni(void 0,void 0,void 0,function*(){const r=yield d1();e instanceof r&&!(n!=null&&n.noResolveJson)?e.json().then(a=>{t(new c1(yl(a),e.status||500))}).catch(a=>{t(new ku(yl(a),a))}):t(new ku(yl(e),e))}),p1=(e,t,n,r)=>{const a={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?a:(a.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),r&&(a.body=JSON.stringify(r)),Object.assign(Object.assign({},a),n))};function ps(e,t,n,r,a,s){return ni(this,void 0,void 0,function*(){return new Promise((l,c)=>{e(n,p1(t,r,a,s)).then(d=>{if(!d.ok)throw d;return r!=null&&r.noResolveJson?d:d.json()}).then(d=>l(d)).catch(d=>f1(d,c,r))})})}function Do(e,t,n,r){return ni(this,void 0,void 0,function*(){return ps(e,"GET",t,n,r)})}function mn(e,t,n,r,a){return ni(this,void 0,void 0,function*(){return ps(e,"POST",t,r,a,n)})}function m1(e,t,n,r,a){return ni(this,void 0,void 0,function*(){return ps(e,"PUT",t,r,a,n)})}function _1(e,t,n,r){return ni(this,void 0,void 0,function*(){return ps(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function v_(e,t,n,r,a){return ni(this,void 0,void 0,function*(){return ps(e,"DELETE",t,r,a,n)})}var et=function(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}
153return new(n||(n=Promise))(function(s,l){function c(m){try{p(r.next(m))}catch(_){l(_)}}function d(m){try{p(r.throw(m))}catch(_){l(_)}}function p(m){m.done?s(m.value):a(m.value).then(c,d)}p((r=r.apply(e,t||[])).next())})};const g1={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},cf={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class v1{constructor(t,n={},r,a){this.url=t,this.headers=n,this.bucketId=r,this.fetch=g_(a)}uploadOrUpdate(t,n,r,a){return et(this,void 0,void 0,function*(){try{let s;const l=Object.assign(Object.assign({},cf),a);let c=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(l.upsert)});const d=l.metadata;typeof Blob<"u"&&r instanceof Blob?(s=new FormData,s.append("cacheControl",l.cacheControl),d&&s.append("metadata",this.encodeMetadata(d)),s.append("",r)):typeof FormData<"u"&&r instanceof FormData?(s=r,s.append("cacheControl",l.cacheControl),d&&s.append("metadata",this.encodeMetadata(d))):(s=r,c["cache-control"]=`max-age=${l.cacheControl}`,c["content-type"]=l.contentType,d&&(c["x-metadata"]=this.toBase64(this.encodeMetadata(d)))),a!=null&&a.headers&&(c=Object.assign(Object.assign({},c),a.headers));const p=this._removeEmptyFolders(n),m=this._getFinalPath(p),_=yield this.fetch(`${this.url}/object/${m}`,Object.assign({method:t,body:s,headers:c},l!=null&&l.duplex?{duplex:l.duplex}:{})),v=yield _.json();return _.ok?{data:{path:p,id:v.Id,fullPath:v.Key},error:null}:{data:null,error:v}}catch(s){if(Ae(s))return{data:null,error:s};throw s}})}upload(t,n,r){return et(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,a){return et(this,void 0,void 0,function*(){const s=this._removeEmptyFolders(t),l=this._getFinalPath(s),c=new URL(this.url+`/object/upload/sign/${l}`);c.searchParams.set("token",n);try{let d;const p=Object.assign({upsert:cf.upsert},a),m=Object.assign(Object.assign({},this.headers),{"x-upsert":String(p.upsert)});typeof Blob<"u"&&r instanceof Blob?(d=new FormData,d.append("cacheControl",p.cacheControl),d.append("",r)):typeof FormData<"u"&&r instanceof FormData?(d=r,d.append("cacheControl",p.cacheControl)):(d=r,m["cache-control"]=`max-age=${p.cacheControl}`,m["content-type"]=p.contentType);const _=yield this.fetch(c.toString(),{method:"PUT",body:d,headers:m}),v=yield _.json();return _.ok?{data:{path:s,fullPath:v.Key},error:null}:{data:null,error:v}}catch(d){if(Ae(d))return{data:null,error:d};throw d}})}createSignedUploadUrl(t,n){return et(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const a=Object.assign({},this.headers);n!=null&&n.upsert&&(a["x-upsert"]="true");const s=yield mn(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:a}),l=new URL(this.url+s.url),c=l.searchParams.get("token");if(!c)throw new Ac("No token returned by API");return{data:{signedUrl:l.toString(),path:t,token:c},error:null}}catch(r){if(Ae(r))return{data:null,error:r};throw r}})}update(t,n,r){return et(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return et(this,void 0,void 0,function*(){try{return{data:yield mn(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(a){if(Ae(a))return{data:null,error:a};throw a}})}copy(t,n,r){return et(this,void 0,void 0,function*(){try{return{data:{path:(yield mn(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(a){if(Ae(a))return{data:null,error:a};throw a}})}createSignedUrl(t,n,r){return et(this,void 0,void 0,function*(){try{let a=this._getFinalPath(t),s=yield mn(this.fetch,`${this.url}/object/sign/${a}`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const l=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return s={signedUrl:encodeURI(`${this.url}${s.signedURL}${l}`)},{data:s,error:null}}catch(a){if(Ae(a))return{data:null,error:a};throw a}})}createSignedUrls(t,n,r){return et(this,void 0,void 0,function*(){try{const a=yield mn(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),s=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";
153return{data:a.map(l=>Object.assign(Object.assign({},l),{signedUrl:l.signedURL?encodeURI(`${this.url}${l.signedURL}${s}`):null})),error:null}}catch(a){if(Ae(a))return{data:null,error:a};throw a}})}download(t,n){return et(this,void 0,void 0,function*(){const a=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),l=s?`?${s}`:"";try{const c=this._getFinalPath(t);return{data:yield(yield Do(this.fetch,`${this.url}/${a}/${c}${l}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(c){if(Ae(c))return{data:null,error:c};throw c}})}info(t){return et(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const r=yield Do(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:Lu(r),error:null}}catch(r){if(Ae(r))return{data:null,error:r};throw r}})}exists(t){return et(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield _1(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(Ae(r)&&r instanceof ku){const a=r.originalError;if([400,404].includes(a==null?void 0:a.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,n){const r=this._getFinalPath(t),a=[],s=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";s!==""&&a.push(s);const c=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",d=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});d!==""&&a.push(d);let p=a.join("&");return p!==""&&(p=`?${p}`),{data:{publicUrl:encodeURI(`${this.url}/${c}/public/${r}${p}`)}}}remove(t){return et(this,void 0,void 0,function*(){try{return{data:yield v_(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(Ae(n))return{data:null,error:n};throw n}})}list(t,n,r){return et(this,void 0,void 0,function*(){try{const a=Object.assign(Object.assign(Object.assign({},g1),n),{prefix:t||""});return{data:yield mn(this.fetch,`${this.url}/object/list/${this.bucketId}`,a,{headers:this.headers},r),error:null}}catch(a){if(Ae(a))return{data:null,error:a};throw a}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const y1="2.7.1",w1={"X-Client-Info":`storage-js/${y1}`};var mi=function(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function c(m){try{p(r.next(m))}catch(_){l(_)}}function d(m){try{p(r.throw(m))}catch(_){l(_)}}function p(m){m.done?s(m.value):a(m.value).then(c,d)}p((r=r.apply(e,t||[])).next())})};class x1{constructor(t,n={},r){this.url=t,this.headers=Object.assign(Object.assign({},w1),n),this.fetch=g_(r)}listBuckets(){return mi(this,void 0,void 0,function*(){try{return{data:yield Do(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(Ae(t))return{data:null,error:t};throw t}})}getBucket(t){return mi(this,void 0,void 0,function*(){try{return{data:yield Do(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(Ae(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return mi(this,void 0,void 0,function*(){try{return{data:yield mn(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(Ae(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return mi(this,void 0,void 0,function*(){try{return{data:yield m1(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(Ae(r))return{data:null,error:r};throw r}})}emptyBucket(t){return mi(this,void 0,void 0,function*(){try{return{data:yield mn(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(Ae(n))return{data:null,error:n};throw n}})}deleteBucket(t){return mi(this,void 0,void 0,function*(){try{return{data:yield v_(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(Ae(n))return{data:null,error:n};throw n}})}}class k1 extends x1{constructor(t,n={},r){super(t,n,r)}from(t){return new v1(this.url,this.headers,t,this.fetch)}}const L1="2.48.0";let br="";typeof Deno<"u"?br="deno":typeof document<"u"?br="web":typeof navigator<"u"&&navigator.product==="ReactNative"?br="react-native":br="node";const S1={"X-Client-Info":`supabase-js-${br}/${L1}`},P1={headers:S1},C1={schema:"public"},E1={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},T1={};var b1=function(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}
153return new(n||(n=Promise))(function(s,l){function c(m){try{p(r.next(m))}catch(_){l(_)}}function d(m){try{p(r.throw(m))}catch(_){l(_)}}function p(m){m.done?s(m.value):a(m.value).then(c,d)}p((r=r.apply(e,t||[])).next())})};const O1=e=>{let t;return e?t=e:typeof fetch>"u"?t=n_:t=fetch,(...n)=>t(...n)},M1=()=>typeof Headers>"u"?i_:Headers,I1=(e,t,n)=>{const r=O1(n),a=M1();return(s,l)=>b1(void 0,void 0,void 0,function*(){var c;const d=(c=yield t())!==null&&c!==void 0?c:e;let p=new a(l==null?void 0:l.headers);return p.has("apikey")||p.set("apikey",e),p.has("Authorization")||p.set("Authorization",`Bearer ${d}`),r(s,Object.assign(Object.assign({},l),{headers:p}))})};var A1=function(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function c(m){try{p(r.next(m))}catch(_){l(_)}}function d(m){try{p(r.throw(m))}catch(_){l(_)}}function p(m){m.done?s(m.value):a(m.value).then(c,d)}p((r=r.apply(e,t||[])).next())})};function z1(e){return e.replace(/\/$/,"")}function N1(e,t){const{db:n,auth:r,realtime:a,global:s}=e,{db:l,auth:c,realtime:d,global:p}=t,m={db:Object.assign(Object.assign({},l),n),auth:Object.assign(Object.assign({},c),r),realtime:Object.assign(Object.assign({},d),a),global:Object.assign(Object.assign({},p),s),accessToken:()=>A1(this,void 0,void 0,function*(){return""})};return e.accessToken?m.accessToken=e.accessToken:delete m.accessToken,m}const y_="2.67.3",j1="http://localhost:9999",R1="supabase.auth.token",B1={"X-Client-Info":`gotrue-js/${y_}`},hf=10,Su="X-Supabase-Api-Version",w_={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}};function D1(e){return Math.round(Date.now()/1e3)+e}function U1(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const Ut=()=>typeof window<"u"&&typeof document<"u",Dn={tested:!1,writable:!1},Ur=()=>{if(!Ut())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Dn.tested)return Dn.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Dn.tested=!0,Dn.writable=!0}catch{Dn.tested=!0,Dn.writable=!1}return Dn.writable};function $1(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((a,s)=>{t[s]=a})}catch{}return n.searchParams.forEach((r,a)=>{t[a]=r}),t}const x_=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Vi(async()=>{const{default:r}=await Promise.resolve().then(()=>Xi);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},F1=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",k_=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Ys=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Xs=async(e,t)=>{await e.removeItem(t)};function Z1(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let n="",r,a,s,l,c,d,p,m=0;for(e=e.replace("-","+").replace("_","/");m<e.length;)l=t.indexOf(e.charAt(m++)),c=t.indexOf(e.charAt(m++)),d=t.indexOf(e.charAt(m++)),p=t.indexOf(e.charAt(m++)),r=l<<2|c>>4,a=(c&15)<<4|d>>2,s=(d&3)<<6|p,n=n+String.fromCharCode(r),d!=64&&a!=0&&(n=n+String.fromCharCode(a)),p!=64&&s!=0&&(n=n+String.fromCharCode(s));return n}class ha{constructor(){this.promise=new ha.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}ha.promiseConstructor=Promise;function df(e){const t=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i,n=e.split(".");if(n.length!==3)throw new Error("JWT is not valid: not a JWT structure");if(!t.test(n[1]))throw new Error("JWT is not valid: payload is not in base64url format");const r=n[1];return JSON.parse(Z1(r))}async function H1(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function W1(e,t){return new Promise((r,a)=>{(async()=>{for(let s=0;s<1/0;s++)try{const l=await e(s);if(!t(s,null,l)){r(l);return}}catch(l){if(!t(s,l)){a(l);return}}})()})}function V1(e){return("0"+e.toString(16)).substr(-2)}function G1(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let a="";for(let s=0;s<56;s++)a+=n.charAt(Math.floor(Math.random()*r));return a}return crypto.getRandomValues(t),Array.from(t,V1).join("")}async function q1(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",
153n),a=new Uint8Array(r);return Array.from(a).map(s=>String.fromCharCode(s)).join("")}function K1(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function J1(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await q1(e);return K1(n)}async function _i(e,t,n=!1){const r=G1();let a=r;n&&(a+="/PASSWORD_RECOVERY"),await k_(e,`${t}-code-verifier`,a);const s=await J1(r);return[s,r===s?"plain":"s256"]}const Q1=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function Y1(e){const t=e.headers.get(Su);if(!t||!t.match(Q1))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}class zc extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function Y(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class X1 extends zc{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function ex(e){return Y(e)&&e.name==="AuthApiError"}class L_ extends zc{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class ii extends zc{constructor(t,n,r,a){super(t,r,a),this.name=n,this.status=r}}class hn extends ii{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function tx(e){return Y(e)&&e.name==="AuthSessionMissingError"}class wl extends ii{constructor(){super("Auth session or user missing","AuthInvalidToken
153ResponseError",500,void 0)}}class eo extends ii{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class to extends ii{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function nx(e){return Y(e)&&e.name==="AuthImplicitGrantRedirectError"}class ff extends ii{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Pu extends ii{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function xl(e){return Y(e)&&e.name==="AuthRetryableFetchError"}class pf extends ii{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}var ix=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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Fn=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),rx=[502,503,504];async function mf(e){var t;if(!F1(e))throw new Pu(Fn(e),0);if(rx.includes(e.status))throw new Pu(Fn(e),e.status);let n;try{n=await e.json()}catch(s){throw new L_(Fn(s),s)}let r;const a=Y1(e);if(a&&a.getTime()>=w_["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new pf(Fn(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new hn}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((s,l)=>s&&typeof l=="string",!0))throw new pf(Fn(n),e.status,n.weak_password.reasons);throw new X1(Fn(n),e.status||500,r)}const sx=(e,t,n,r)=>{const a={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?a:(a.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),a.body=JSON.stringify(r),Object.assign(Object.assign({},a),n))};async function te(e,t,n,r){var a;const s=Object.assign({},r==null?void 0:r.headers);s[Su]||(s[Su]=w_["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const l=(a=r==null?void 0:r.query)!==null&&a!==void 0?a:{};r!=null&&r.redirectTo&&(l.redirect_to=r.redirectTo);const c=Object.keys(l).length?"?"+new URLSearchParams(l).toString():"",d=await ox(e,t,n+c,{headers:s,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(d):{data:Object.assign({},d),error:null}}async function ox(e,t,n,r,a,s){const l=sx(t,r,a,s);let c;try{c=await e(n,Object.assign({},l))}catch(d){throw console.error(d),new Pu(Fn(d),0)}if(c.ok||await mf(c),r!=null&&r.noResolveJson)return c;try{return await c.json()}catch(d){await mf(d)}}function dn(e){var t;let n=null;cx(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=D1(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function _f(e){const t=dn(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function vn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function ax(e){return{data:e,error:null}}function lx(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:a,verification_type:s}=e,l=ix(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),c={action_link:t,email_otp:n,hashed_token:r,redirect_to:a,verification_type:s},d=Object.assign({},l);return{data:{properties:c,user:d},error:null}}function ux(e){return e}function cx(e){return e.access_token&&e.refresh_token&&e.expires_in}var hx=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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};class dx{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=x_(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,n="global"){try{return await te(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(Y(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await te(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:vn})}catch(r){if(Y(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=hx(t,["options"]),a=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(a.new_email=r==null?void 0:r.newEmail,delete a.newEmail),await te(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:a,headers:this.headers,xform:lx,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(Y(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await te(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:vn})}catch(n){if(Y(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,a,s,l,c,d;try{const p={nextPage:null,lastPage:0,total:0},m=await te(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(a=t==null?void 0:t.perPage)===null||a===void 0?void 0:a.toString())!==null&&s!==void 0?s:""},xform:ux});if(m.error)throw m.error;const _=await m.json(),v=(l=m.headers.get("x-total-count"))!==null&&l!==void 0?l:0,y=(d=(c=m.headers.get("link"))===null||c===void 0?void 0:c.split(","))!==null&&d!==void 0?d:[];return y.length>0&&(y.forEach(C=>{const P=parseInt(C.split(";")[0].split("=")[1].substring(0,1)),N=JSON.parse(C.split(";")[1].split("=")[1]);p[`${N}Page`]=P}),p.total=parseInt(v)),{data:Object.assign(Object.assign({},_),p),error:null}}catch(p){if(Y(p))return{data:{users:[]},error:p};throw p}}async getUserById(t){try{return await te(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:vn})}catch(n){if(Y(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){try{return await te(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:vn})}catch(r){if(Y(r))return{data:{user:null},error:r};throw r}}
153async deleteUser(t,n=!1){try{return await te(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:vn})}catch(r){if(Y(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){try{const{data:n,error:r}=await te(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:a=>({data:{factors:a},error:null})});return{data:n,error:r}}catch(n){if(Y(n))return{data:null,error:n};throw n}}async _deleteFactor(t){try{return{data:await te(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(Y(n))return{data:null,error:n};throw n}}}const fx={getItem:e=>Ur()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{Ur()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{Ur()&&globalThis.localStorage.removeItem(e)}};function gf(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function px(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const gi={debug:!!(globalThis&&Ur()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class S_ extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class mx extends S_{}async function _x(e,t,n){gi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),gi.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async a=>{if(a){gi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,a.name);try{return await n()}finally{gi.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,a.name)}}else{if(t===0)throw gi.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new mx(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(gi.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null,"  "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}px();const gx={url:j1,storageKey:R1,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:B1,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1},Sr=30*1e3,vf=3;async function yf(e,t,n){return await n()}class rs{constructor(t){var n,r;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=rs.nextInstanceID,rs.nextInstanceID+=1,this.instanceID>0&&Ut()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const a=Object.assign(Object.assign({},gx),t);if(this.logDebugMessages=!!a.debug,typeof a.debug=="function"&&(this.logger=a.debug),this.persistSession=a.persistSession,this.storageKey=a.storageKey,this.autoRefreshToken=a.autoRefreshToken,this.admin=new dx({url:a.url,headers:a.headers,fetch:a.fetch}),this.url=a.url,this.headers=a.headers,this.fetch=x_(a.fetch),this.lock=a.lock||yf,this.detectSessionInUrl=a.detectSessionInUrl,this.flowType=a.flowType,this.hasCustomAuthorizationHeader=a.hasCustomAuthorizationHeader,a.lock?this.lock=a.lock:Ut()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=_x:this.lock=yf,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?a.storage?this.storage=a.storage:Ur()?this.storage=fx:(this.memoryStorage={},this.storage=gf(this.memoryStorage)):(this.memoryStorage={},this.storage=gf(this.memoryStorage)),Ut()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(s){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",s)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async s=>{this._debug("received broadcast notification from other tab or client",s),await this._notifyAllSubscribers(s.data.event,s.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${y_}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=$1(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),Ut()&&this.detectSessionInUrl&&r!=="none"){const{data:a,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),nx(s)){const d=(t=s.details)===null||t===void 0?void 0:t.code;
153if(d==="identity_already_exists"||d==="identity_not_found"||d==="single_identity_not_deletable")return{error:s}}return await this._removeSession(),{error:s}}const{session:l,redirectType:c}=a;return this._debug("#_initialize()","detected session in URL",l,"redirect type",c),await this._saveSession(l),setTimeout(async()=>{c==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",l):await this._notifyAllSubscribers("SIGNED_IN",l)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return Y(n)?{error:n}:{error:new L_("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,a;try{const s=await te(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(a=t==null?void 0:t.options)===null||a===void 0?void 0:a.captchaToken}},xform:dn}),{data:l,error:c}=s;if(c||!l)return{data:{user:null,session:null},error:c};const d=l.session,p=l.user;return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",d)),{data:{user:p,session:d},error:null}}catch(s){if(Y(s))return{data:{user:null,session:null},error:s};throw s}}async signUp(t){var n,r,a;try{let s;if("email"in t){const{email:m,password:_,options:v}=t;let y=null,C=null;this.flowType==="pkce"&&([y,C]=await _i(this.storage,this.storageKey)),s=await te(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:v==null?void 0:v.emailRedirectTo,body:{email:m,password:_,data:(n=v==null?void 0:v.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:v==null?void 0:v.captchaToken},code_challenge:y,code_challenge_method:C},xform:dn})}else if("phone"in t){const{phone:m,password:_,options:v}=t;s=await te(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:m,password:_,data:(r=v==null?void 0:v.data)!==null&&r!==void 0?r:{},channel:(a=v==null?void 0:v.channel)!==null&&a!==void 0?a:"sms",gotrue_meta_security:{captcha_token:v==null?void 0:v.captchaToken}},xform:dn})}else throw new eo("You must provide either an email or phone number and a password");const{data:l,error:c}=s;if(c||!l)return{data:{user:null,session:null},error:c};const d=l.session,p=l.user;return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",d)),{data:{user:p,session:d},error:null}}catch(s){if(Y(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithPassword(t){try{let n;if("email"in t){const{email:s,password:l,options:c}=t;n=await te(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:l,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken}},xform:_f})}else if("phone"in t){const{phone:s,password:l,options:c}=t;n=await te(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:l,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken}},xform:_f})}else throw new eo("You must provide either an email or phone number and a password");const{data:r,error:a}=n;return a?{data:{user:null,session:null},error:a}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new wl}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:a})}catch(n){if(Y(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,a,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(a=t.options)===null||a===void 0?void 0:a.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async _exchangeCodeForSession(t){const n=await Ys(this.storage,`${this.storageKey}-code-verifier`),[r,a]=(n??"").split("/");try{const{data:s,error:l}=await te(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:dn});if(await Xs(this.storage,`${this.storageKey}-code-verifier`),l)throw l;return!s||!s.session||!s.user?{data:{user:null,session:null,redirectType:null},error:new wl}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign(Object.assign({},s),{redirectType:a??null}),error:l})}catch(s){if(Y(s))return{data:{user:null,session:null,redirectType:null},error:s};throw s}}async signInWithIdToken(t){try{const{options:n,provider:r,token:a,access_token:s,nonce:l}=t,c=await te(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:a,access_token:s,nonce:l,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:dn}),{data:d,error:p}=c;return p?{data:{user:null,session:null},error:p}:!d||!d.session||!d.user?{data:{user:null,session:null},error:new wl}:(d.session&&(await this._saveSession(d.session),await this._notifyAllSubscribers("SIGNED_IN",d.session)),{data:d,error:p})}catch(n){if(Y(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,a,s,l;try{if("email"in t){const{email:c,options:d}=t;let p=null,m=null;this.flowType==="pkce"&&([p,m]=await _i(this.storage,this.storageKey));const{error:_}=await te(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:c,data:(n=d==null?void 0:d.data)!==null&&n!==void 0?n:{},create_user:(r=d==null?void 0:d.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:d==null?void 0:d.captchaToken},code_challenge:p,code_challenge_method:m},redirectTo:d==null?void 0:d.emailRedirectTo});return{data:{user:null,session:null},error:_}}if("phone"in t){const{phone:c,options:d}=t,{data:p,error:m}=await te(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:c,data:(a=d==null?void 0:d.data)!==null&&a!==void 0?a:{},create_user:(s=d==null?void 0:d.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:d==null?void 0:d.captchaToken},channel:(l=d==null?void 0:d.channel)!==null&&l!==void 0?l:"sms"}});return{data:{user:null,session:null,messageId:p==null?void 0:p.message_id},error:m}}throw new eo("You must provide either an email or phone number.")}catch(c){if(Y(c))return{data:{user:null,session:null},error:c};throw c}}async verifyOtp(t){var n,r;try{let a,s;"options"in t&&(a=(n=t.options)===null||n===void 0?void 0:n.redirectTo,s=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:l,error:c}=await te(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:a,xform:dn});if(c)throw c;if(!l)throw new Error("An error occurred on token verification.");const d=l.session,p=l.user;return d!=null&&d.access_token&&(await this._saveSession(d),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",d)),{data:{user:p,session:d},error:null}}catch(a){if(Y(a))return{data:{user:null,session:null},error:a};throw a}}async signInWithSSO(t){var n,r,a;try{let s=null,l=null;return this.flowType==="pkce"&&([s,l]=await _i(this.storage,this.storageKey)),await te(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((a=t==null?void 0:t.options)===null||a===void 0)&&a.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:s,code_challenge_method:l}),headers:this.headers,xform:ax})}catch(s){if(Y(s))return{data:null,error:s};throw s}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new hn;const{error:a}=await te(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:a}})}catch(t){if(Y(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:a,options:s}=t,{error:l}=await te(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:a,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return{data:{user:null,session:null},error:l}}else if("phone"in t){const{phone:r,type:a,options:s}=t,{data:l,error:c}=await te(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:a,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return{data:{user:null,session:null,messageId:l==null?void 0:l.message_id},error:c}}throw new eo("You must provide either an email or phone number and a type")}catch(n){if(Y(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),a=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await a}catch{}})()),a}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const a=[...this.pendingInLock];await Promise.all(a),this.pendingInLock.splice(0,a.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await Ys(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
153id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at<=Date.now()/1e3:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.storage.isServer){let l=this.suppressGetSessionWarning;t=new Proxy(t,{get:(d,p,m)=>(!l&&p==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),l=!0,this.suppressGetSessionWarning=!0),Reflect.get(d,p,m))})}return{data:{session:t},error:null}}const{session:a,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{session:null},error:s}:{data:{session:a},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await te(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:vn}):await this._useSession(async n=>{var r,a,s;const{data:l,error:c}=n;if(c)throw c;return!(!((r=l.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new hn}:await te(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(a=l.session)===null||a===void 0?void 0:a.access_token)!==null&&s!==void 0?s:void 0,xform:vn})})}catch(n){if(Y(n))return tx(n)&&(await this._removeSession(),await Xs(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:a,error:s}=r;if(s)throw s;if(!a.session)throw new hn;const l=a.session;let c=null,d=null;this.flowType==="pkce"&&t.email!=null&&([c,d]=await _i(this.storage,this.storageKey));const{data:p,error:m}=await te(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:c,code_challenge_method:d}),jwt:l.access_token,xform:vn});if(m)throw m;return l.user=p.user,await this._saveSession(l),await this._notifyAllSubscribers("USER_UPDATED",l),{data:{user:l.user},error:null}})}catch(r){if(Y(r))return{data:{user:null},error:r};throw r}}_decodeJWT(t){return df(t)}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new hn;const n=Date.now()/1e3;let r=n,a=!0,s=null;const l=df(t.access_token);if(l.exp&&(r=l.exp,a=r<=n),a){const{session:c,error:d}=await this._callRefreshToken(t.refresh_token);if(d)return{data:{user:null,session:null},error:d};if(!c)return{data:{user:null,session:null},error:null};s=c}else{const{data:c,error:d}=await this._getUser(t.access_token);if(d)throw d;s={access_token:t.access_token,refresh_token:t.refresh_token,user:c.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return{data:{user:s.user,session:s},error:null}}catch(n){if(Y(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:l,error:c}=n;if(c)throw c;t=(r=l.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new hn;const{session:a,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{user:null,session:null},error:s}:a?{data:{user:a.user,session:a},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(Y(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t,n){try{if(!Ut())throw new to("No browser detected.");
153if(t.error||t.error_description||t.error_code)throw new to(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new ff("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new to("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new ff("No code detected.");const{data:w,error:S}=await this._exchangeCodeForSession(t.code);if(S)throw S;const M=new URL(window.location.href);return M.searchParams.delete("code"),window.history.replaceState(window.history.state,"",M.toString()),{data:{session:w.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:a,access_token:s,refresh_token:l,expires_in:c,expires_at:d,token_type:p}=t;if(!s||!c||!l||!p)throw new to("No session defined in URL");const m=Math.round(Date.now()/1e3),_=parseInt(c);let v=m+_;d&&(v=parseInt(d));const y=v-m;y*1e3<=Sr&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${y}s, should have been closer to ${_}s`);const C=v-_;m-C>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",C,v,m):m-C<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",C,v,m);const{data:P,error:N}=await this._getUser(s);if(N)throw N;const x={provider_token:r,provider_refresh_token:a,access_token:s,expires_in:_,expires_at:v,refresh_token:l,token_type:p,user:P.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:x,redirectType:t.type},error:null}}catch(r){if(Y(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Ys(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:a,error:s}=n;if(s)return{error:s};const l=(r=a.session)===null||r===void 0?void 0:r.access_token;if(l){const{error:c}=await this.admin.signOut(l,t);if(c&&!(ex(c)&&(c.status===404||c.status===401||c.status===403)))return{error:c}}return t!=="others"&&(await this._removeSession(),await Xs(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=U1(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,a;try{const{data:{session:s},error:l}=n;if(l)throw l;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((a=this.stateChangeEmitters.get(t))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,n={}){let r=null,a=null;this.flowType==="pkce"&&([r,a]=await _i(this.storage,this.storageKey,!0));try{return await te(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:a,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(Y(s))return{data:null,error:s};throw s}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(Y(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:a}=await this._useSession(async s=>{var l,c,d,p,m;const{data:_,error:v}=s;if(v)throw v;const y=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(l=t.options)===null||l===void 0?void 0:l.redirectTo,scopes:(c=t.options)===null||c===void 0?void 0:c.scopes,queryParams:(d=t.options)===null||d===void 0?void 0:d.queryParams,skipBrowserRedirect:!0});return await te(this.fetch,"GET",y,{headers:this.headers,jwt:(m=(p=_.session)===null||p===void 0?void 0:p.access_token)!==null&&m!==void 0?m:void 0})});if(a)throw a;return Ut()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(Y(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,a;const{data:s,error:l}=n;if(l)throw l;
153return await te(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(a=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&a!==void 0?a:void 0})})}catch(n){if(Y(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await W1(async a=>(a>0&&await H1(200*Math.pow(2,a-1)),this._debug(n,"refreshing attempt",a),await te(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:dn})),(a,s)=>{const l=200*Math.pow(2,a);return s&&xl(s)&&Date.now()+l-r<Sr})}catch(r){if(this._debug(n,"error",r),Y(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),Ut()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const r=await Ys(this.storage,this.storageKey);if(this._debug(n,"session from storage",r),!this._isValidSession(r)){this._debug(n,"session is not valid"),r!==null&&await this._removeSession();return}const a=Math.round(Date.now()/1e3),s=((t=r.expires_at)!==null&&t!==void 0?t:1/0)<a+hf;if(this._debug(n,`session has${s?"":" not"} expired with margin of ${hf}s`),s){if(this.autoRefreshToken&&r.refresh_token){const{error:l}=await this._callRefreshToken(r.refresh_token);l&&(console.error(l),xl(l)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",l),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",r)}catch(r){this._debug(n,"error",r),console.error(r);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new hn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const a=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(a,"begin");try{this.refreshingDeferred=new ha;const{data:s,error:l}=await this._refreshAccessToken(t);if(l)throw l;if(!s.session)throw new hn;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const c={session:s.session,error:null};return this.refreshingDeferred.resolve(c),c}catch(s){if(this._debug(a,"error",s),Y(s)){const l={session:null,error:s};return xl(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(l),l}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(a,"end")}}async _notifyAllSubscribers(t,n,r=!0){const a=`#_notifyAllSubscribers(${t})`;this._debug(a,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const s=[],l=Array.from(this.stateChangeEmitters.values()).map(async c=>{try{await c.callback(t,n)}catch(d){s.push(d)}});if(await Promise.all(l),s.length>0){for(let c=0;c<s.length;c+=1)console.error(s[c]);throw s[0]}}finally{this._debug(a,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await k_(this.storage,this.storageKey,t)}async _removeSession(){this._debug("#_removeSession()"),await Xs(this.storage,this.storageKey),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Ut()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Sr);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const a=Math.floor((r.expires_at*1e3-t)/Sr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${a} ticks, a tick lasts ${Sr}ms, refresh threshold is ${vf} ticks`),a<=vf&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof S_)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Ut()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>
153{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const a=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&a.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&a.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,l]=await _i(this.storage,this.storageKey),c=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(l)}`});a.push(c.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);a.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&a.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${a.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:a,error:s}=n;return s?{data:null,error:s}:await te(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=a==null?void 0:a.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(Y(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,a;const{data:s,error:l}=n;if(l)return{data:null,error:l};const c=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:d,error:p}=await te(this.fetch,"POST",`${this.url}/factors`,{body:c,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return p?{data:null,error:p}:(t.factorType==="totp"&&(!((a=d==null?void 0:d.totp)===null||a===void 0)&&a.qr_code)&&(d.totp.qr_code=`data:image/svg+xml;utf-8,${d.totp.qr_code}`),{data:d,error:null})})}catch(n){if(Y(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:a,error:s}=n;if(s)return{data:null,error:s};const{data:l,error:c}=await te(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=a==null?void 0:a.session)===null||r===void 0?void 0:r.access_token});return c?{data:null,error:c}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),{data:l,error:c})})}catch(n){if(Y(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:a,error:s}=n;return s?{data:null,error:s}:await te(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(r=a==null?void 0:a.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(Y(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],a=r.filter(l=>l.factor_type==="totp"&&l.status==="verified"),s=r.filter(l=>l.factor_type==="phone"&&l.status==="verified");return{data:{all:r,totp:a,phone:s},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:a},error:s}=t;if(s)return{data:null,error:s};if(!a)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const l=this._decodeJWT(a.access_token);let c=null;l.aal&&(c=l.aal);let d=c;((r=(n=a.user.factors)===null||n===void 0?void 0:n.filter(_=>_.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(d="aal2");const m=l.amr||[];return{data:{currentLevel:c,nextLevel:d,currentAuthenticationMethods:m},error:null}}))}}rs.nextInstanceID=0;const vx=rs;class yx extends vx{constructor(t){super(t)}}var wx=function(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}
153return new(n||(n=Promise))(function(s,l){function c(m){try{p(r.next(m))}catch(_){l(_)}}function d(m){try{p(r.throw(m))}catch(_){l(_)}}function p(m){m.done?s(m.value):a(m.value).then(c,d)}p((r=r.apply(e,t||[])).next())})};class xx{constructor(t,n,r){var a,s,l;if(this.supabaseUrl=t,this.supabaseKey=n,!t)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const c=z1(t);this.realtimeUrl=`${c}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${c}/auth/v1`,this.storageUrl=`${c}/storage/v1`,this.functionsUrl=`${c}/functions/v1`;const d=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,p={db:C1,realtime:T1,auth:Object.assign(Object.assign({},E1),{storageKey:d}),global:P1},m=N1(r??{},p);this.storageKey=(a=m.auth.storageKey)!==null&&a!==void 0?a:"",this.headers=(s=m.global.headers)!==null&&s!==void 0?s:{},m.accessToken?(this.accessToken=m.accessToken,this.auth=new Proxy({},{get:(_,v)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(v)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((l=m.auth)!==null&&l!==void 0?l:{},this.headers,m.global.fetch),this.fetch=I1(n,this._getAccessToken.bind(this),m.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},m.realtime)),this.rest=new Gw(`${c}/rest/v1`,{headers:this.headers,schema:m.db.schema,fetch:this.fetch}),m.accessToken||this._listenForAuthEvents()}get functions(){return new Lw(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new k1(this.storageUrl,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return wx(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:a,storageKey:s,flowType:l,lock:c,debug:d},p,m){const _={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new yx({url:this.authUrl,headers:Object.assign(Object.assign({},_),p),storageKey:s,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:a,flowType:l,lock:c,debug:d,fetch:m,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(t){return new l1(this.realtimeUrl,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const kx=(e,t,n)=>
153new xx(e,t,n),Lx="https://hfqxmtszdlwxyshasuvf.supabase.co",Sx="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImhmcXhtdHN6ZGx3eHlzaGFzdXZmIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Mzc2Mjg2OTcsImV4cCI6MjA1MzIwNDY5N30.pVEwb6eMuY8xk51l7FRo8ORNQLI6r0wh0v04kKl3G5Y",Uo=kx(Lx,Sx);let P_={};const Px=async()=>{const{data:e}=await Uo.from("categories").select("id, group_type");e&&(P_=e.reduce((t,n)=>({...t,[n.id]:n.group_type}),{}))};Px();const Cx=e=>P_[e]==="embaixador"?"embaixador":"ponto-interesse";function Ex({poi:e,onClose:t}){const[n,r]=B.useState(null),[a,s]=B.useState(!1),l=Cx(e.category),c=dw[l](e.name),d=async p=>{try{const m={url:e.url||window.location.href,platform:p,message:c,poiType:l},_=await mw(m);if(!_.success)throw new Error(_.error);p==="copy"?(s(!0),setTimeout(()=>{s(!1),t()},2e3)):t()}catch(m){r(m instanceof Error?m.message:"Failed to share"),setTimeout(()=>r(null),3e3)}};return E.jsxs("div",{className:"bg-white rounded-xl shadow-xl ring-1 ring-black ring-opacity-5 p-3 w-[220px]",children:[E.jsxs("div",{className:"flex items-center justify-between mb-1 pb-1 border-b",children:[E.jsx("h3",{className:"text-sm font-semibold text-gray-900",children:"Partilha este local"}),E.jsx("button",{onClick:t,className:"p-1 hover:bg-gray-100 rounded-lg transition-colors",children:E.jsx(Wi,{size:1,className:"text-gray-500"})})]}),n&&E.jsx("div",{className:"mb-2 p-2 bg-red-50 text-red-600 text-xs rounded-lg",children:n}),a&&E.jsx("div",{className:"mb-2 p-2 bg-green-50 text-green-600 text-xs rounded-lg",children:"Copiado para a área de transferência!"}),E.jsxs("div",{className:"space-y-1",children:[E.jsxs("button",{onClick:()=>d("whatsapp"),className:`flex items-center gap-2 w-full p-2 text-left text-sm text-gray-700 
154            hover:bg-gray-50 rounded-lg transition-colors`,children:[E.jsx("img",{src:vu.whatsapp.icon,alt:"WhatsApp",className:"w-4 h-4"}),"WhatsApp"]}),E.jsxs("button",{onClick:()=>d("telegram"),className:`flex items-center gap-2 w-full p-2 text-left text-sm text-gray-700 
155            hover:bg-gray-50 rounded-lg transition-colors`,children:[E.jsx("img",{src:vu.telegram.icon,alt:"Telegram",className:"w-4 h-4"}),"Telegram"]}),E.jsxs("div",{className:"my-2 relative",children:[E.jsx("div",{className:"absolute inset-0 flex items-center",children:E.jsx("div",{className:"w-full border-t border-gray-200"})}),E.jsx("div",{className:"relative flex justify-center text-xs",children:E.jsx("span",{className:"px-2 bg-white text-gray-500",children:"ou"})})]}),E.jsxs("button",{onClick:()=>d("copy"),className:`flex items-center gap-2 w-full p-2 text-left text-sm text-gray-700 
156            hover:bg-gray-50 rounded-lg transition-colors`,children:[E.jsx(tw,{size:16,className:"text-gray-500"}),"Copia esta informação e partilha"]})]})]})}function Tx({poi:e}){const[t,n]=B.useState(!1),r=B.useRef(null),a=B.useRef(null);return B.useEffect(()=>{const s=l=>{r.current&&a.current&&!r.current.contains(l.target)&&!a.current.contains(l.target)&&n(!1)};return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[]),E.jsxs("div",{className:"relative",ref:r,children:[E.jsx("button",{onClick:()=>n(!t),className:`inline-flex items-center justify-center gap-1.5 text-xs font-medium text-gray-600 
157          hover:text-gray-800 transition-colors bg-gray-50 px-2 py-1 rounded-lg hover:bg-gray-100`,"aria-label":"Share",children:E.jsx(hw,{size:14})}),t&&E.jsx("div",{ref:a,className:"fixed transform -translate-x-1/2 left-1/2 top-1/2 z-[9999]",style:{filter:"drop-shadow(0 0 8px rgba(0, 0, 0, 0.1))"},children:E.jsx(Ex,{poi:e,onClose:()=>n(!1)})})]})}
157function Nc(){const[e,t]=B.useState([]),[n,r]=B.useState(!0),[a,s]=B.useState(null);return B.useEffect(()=>{async function l(){try{const{data:c,error:d}=await Uo.from("categories").select("*").order("name");if(d)throw d;t(c)}catch(c){s(c instanceof Error?c.message:"Failed to fetch categories")}finally{r(!1)}}l()},[]),{categories:e,loading:n,error:a}}function C_(){const[e,t]=B.useState([]),[n,r]=B.useState(!0),[a,s]=B.useState(null);return B.useEffect(()=>{async function l(){try{const[c,d]=await Promise.all([Uo.from("points_of_interest").select("*"),Uo.from("ambassadors").select("*")]);if(c.error)throw c.error;if(d.error)throw d.error;const p=[...c.data||[],...d.data||[]];t(p)}catch(c){s(c instanceof Error?c.message:"Failed to fetch POIs")}finally{r(!1)}}l()},[]),{pois:e,loading:n,error:a}}function wf(e,t,n,r){const s=(n-e)*Math.PI/180,l=(r-t)*Math.PI/180,c=Math.sin(s/2)*Math.sin(s/2)+Math.cos(e*Math.PI/180)*Math.cos(n*Math.PI/180)*Math.sin(l/2)*Math.sin(l/2);return 6371*(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)))}function bx(e,t,n=10){return B.useMemo(()=>t.filter(r=>r.id!==e.id&&wf(e.latitude,e.longitude,r.latitude,r.longitude)<=n).map(r=>({...r,distance:wf(e.latitude,e.longitude,r.latitude,r.longitude)})).sort((r,a)=>r.distance-a.distance).slice(0,3),[e,t,n])}const Ox=({poi:e,onClick:t,isSelected:n})=>{const{categories:r}=Nc(),a=r.find(s=>s.id===e.category_id);return E.jsxs("button",{onClick:()=>t(e),className:`nearby-poi flex items-start gap-3 p-2 rounded-lg transition-all w-full
158        ${n?"bg-blue-50 border border-blue-200 selected":"hover:bg-gray-50 border border-transparent"}`,children:[e.image_url?E.jsx("img",{src:e.image_url,alt:e.name,className:"nearby-poi-image w-16 h-16 object-cover rounded-lg flex-shrink-0"}):E.jsx("div",{className:`w-16 h-16 rounded-lg flex items-center justify-center flex-shrink-0
159          ${n?"bg-blue-100":"bg-gray-100"}`,children:E.jsx("img",{src:a==null?void 0:a.icon_url,alt:a==null?void 0:a.name,className:`nearby-poi-icon w-8 h-8 object-contain
160              ${n?"opacity-70":"opacity-50"}`})}),E.jsxs("div",{className:"flex-1 text-left",children:[E.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[E.jsx("img",{src:a==null?void 0:a.icon_url,alt:a==null?void 0:a.name,className:"nearby-poi-icon w-4 h-4 object-contain"}),E.jsx("span",{className:`text-xs font-medium ${n?"text-blue-700":"text-blue-600"}`,children:a==null?void 0:a.name})]}),E.jsx("h4",{className:`text-sm font-medium mb-1 ${n?"text-blue-900":"text-gray-900"}`,children:e.name}),E.jsx("p",{className:"text-xs text-gray-500",children:e.distance<1?`${Math.round(e.distance*1e3)}m de distância`:`${e.distance.toFixed(1)}km de distância`})]})]})},Mx=({pois:e,onPOIClick:t,selectedPOI:n})=>e.length===0?null:E.jsxs("div",{className:"mt-6",children:[E.jsx("h3",{className:"text-sm font-semibold text-gray-900 mb-3",children:"Locais próximos que podes gostar"}),E.jsx("div",{className:"space-y-2",children:e.map(r=>E.jsx(Ox,{poi:r,onClick:t,isSelected:n.id===r.id},r.id))})]}),xf=({poi:e,iconUrl:t,onClose:n,onPOIChange:r})=>{const{categories:a}=Nc(),{pois:s}=C_(),l=bx(e,s),c=`https://www.google.com/maps/search/?api=1&query=${e.latitude},${e.longitude}`,d=a.find(m=>m.id===e.category_id),p=m=>{r&&r(m)};return E.jsxs("div",{className:"h-full flex flex-col",children:[e.image_url?E.jsxs("div",{className:"relative w-full h-48",children:[E.jsx("img",{src:e.image_url,alt:e.name,className:"w-full h-full object-cover"}),E.jsx("button",{onClick:n,className:`absolute top-2 right-3 p-1 bg-white rounded-full shadow-lg 
161              hover:bg-gray-50 transition-colors`,children:E.jsx(Wi,{size:15,className:"text-gray-600"})})]}):E.jsxs("div",{className:"p-4 border-b flex items-center justify-between",children:[E.jsx("h3",{className:"font-bold text-xl text-gray-900",children:e.name}),E.jsx("button",{onClick:n,className:"p-1.5 hover:bg-gray-100 rounded-lg transition-colors",children:E.jsx(Wi,{size:15,className:"text-gray-600"})})]}),E.jsxs("div",{className:"flex-1 p-4 overflow-y-auto",children:[E.jsxs("div",{className:"flex items-center justify-between mb-1",children:[E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("img",{src:t,alt:"Category Icon",className:"w-5 h-5 object-contain"}),E.jsx("span",{className:"text-xs font-medium text-blue-600",children:(d==null?void 0:d.name)||"Categoria"})]}),E.jsx(Tx,{poi:e})]}),!e.image_url&&E.jsx("div",{className:"h-px w-full bg-gray-100 my-3"}),e.project&&E.jsxs("div",{className:"flex items-center gap-1.5 mb-3",children:[E.jsx(Y0,{size:16,className:"text-gray-400"}),E.jsx("span",{className:"text-sm font-medium text-gray-500",children:e.project})]}),E.jsx("p",{className:"text-sm text-gray-600 mb-6 leading-relaxed",children:e.description}),E.jsxs("div",{className:"space-y-3",children:[e.url&&E.jsxs("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:`flex items-center justify-center gap-2 text-sm font-medium text-blue-600 
162                hover:text-blue-800 transition-colors bg-blue-50 px-4 py-2.5 rounded-lg hover:bg-blue-100`,children:[E.jsx(iw,{size:14}),"Sabe mais"]}),E.jsxs("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:`flex items-center justify-center gap-2 text-sm font-medium text-green-600 
163              hover:text-green-800 transition-colors bg-green-50 px-4 py-2.5 rounded-lg hover:bg-green-100`,children:[E.jsx(nw,{size:14}),"Obter direções"]}),e.has_moeda_id&&E.jsxs("a",{href:"https://exploreid.pt/moeda-id/",target:"_blank",rel:"noopener noreferrer",className:`flex items-center justify-center gap-2 text-sm font-medium text-amber-600 
164                hover:text-amber-800 transition-colors bg-amber-50 px-4 py-2.5 rounded-lg hover:bg-amber-100 
165                ring-1 ring-amber-200`,children:[E.jsx("img",{src:"/icons/ID.png",alt:"Moeda ID",className:"w-6 h-6"}),"Obter e utilizar a Moeda ID - 10% de desconto"]})]}),E.jsx(Mx,{pois:l,onPOIClick:p,selectedPOI:e})]})]})};function Ix(){const e=ra(),[t,n]=B.useState(!1),r=B.useCallback(()=>{const a=document.getElementById("app-container");a&&(document.fullscreenElement?document.exitFullscreen().then(()=>{n(!1),setTimeout(()=>
165{e.invalidateSize()},100)}).catch(s=>{console.error(`Error attempting to exit fullscreen: ${s.message}`)}):a.requestFullscreen().then(()=>{n(!0),setTimeout(()=>{e.invalidateSize()},100)}).catch(s=>{console.error(`Error attempting to enable fullscreen: ${s.message}`)}))},[e]);return B.useEffect(()=>{const a=()=>{n(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",a),()=>{document.removeEventListener("fullscreenchange",a)}},[]),E.jsx("div",{className:"leaflet-control-fullscreen leaflet-bar leaflet-control",children:E.jsx("button",{onClick:r,className:`w-8 h-8 bg-white rounded-xl shadow-lg flex items-center 
166          justify-center hover:bg-gray-50 focus:outline-none focus:ring-2 
167          focus:ring-blue-500 transition-colors`,title:t?"Exit Fullscreen":"Enter Fullscreen",children:t?E.jsx(ow,{className:"text-gray-600",size:20}):E.jsx(sw,{className:"text-gray-600",size:20})})})}function Ax(){const e=ra(),t=()=>{e.setView([39.985,-8.408],11.5)};return E.jsx("div",{className:"leaflet-control-return leaflet-bar leaflet-control",children:E.jsx("button",{onClick:t,className:`w-8 h-8 bg-white rounded-xl shadow-lg flex items-center 
168          justify-center hover:bg-gray-50 focus:outline-none focus:ring-2 
169          focus:ring-blue-500 transition-colors`,title:"Return to Initial View",children:E.jsx(rw,{className:"text-gray-600",size:20})})})}function zx({message:e,onClose:t}){return E.jsxs("div",{className:`fixed top-4 left-1/2 transform -translate-x-1/2 z-[2000] bg-red-50 text-red-700 
170      px-4 py-3 rounded-xl shadow-lg flex items-center gap-3 ring-1 ring-red-200 max-w-[90vw]`,children:[E.jsx("span",{className:"text-sm font-medium",children:e}),E.jsx("button",{onClick:t,className:"p-1 hover:bg-red-100 rounded-lg transition-colors flex-shrink-0",children:E.jsx(Wi,{size:16})})]})}const Cu=[[36.8,-12.6],[42.2,-6.1]];function Nx(){const e=ra();return B.useEffect(()=>{e.setMaxBounds(Cu),e.setMinZoom(7);const t=()=>{e.panInsideBounds(Cu,{animate:!1})};return e.on("drag",t),()=>{e.off("drag",t)}},[e]),null}function jx(){const e=ra(),[t,n]=B.useState(null),r=B.useRef(null);return B.useEffect(()=>("geolocation"in navigator&&(r.current=navigator.geolocation.watchPosition(a=>{n(a),e.setView([a.coords.latitude,a.coords.longitude],e.getZoom())},a=>console.error("Geolocation error:",a),{enableHighAccuracy:!0,timeout:5e3,maximumAge:0})),()=>{r.current&&navigator.geolocation.clearWatch(r.current)}),[e]),t?E.jsx(Ym,{position:[t.coords.latitude,t.coords.longitude],icon:new Ke.DivIcon({className:"location-marker",iconSize:[24,24],iconAnchor:[12,12]}),children:E.jsx(Xm,{children:"Estás aqui"})}):null}function Rx(){var Pe,mt;const{categories:e,loading:t}=Nc(),{pois:n,loading:r}=C_(),[a,s]=B.useState(new Set),[l,c]=B.useState(new Set),[d,p]=B.useState(""),[m,_]=B.useState(!1),[v,y]=B.useState(!0),[C,P]=B.useState("base"),N=B.useRef(null),[x,w]=B.useState(!1),[S,M]=B.useState(null),[z,D]=B.useState(window.innerWidth<678),[R,Z]=B.useState(null);B.useEffect(()=>{if(!t&&e.length>0){const b=new Set(e.map($=>$.id));s(b),c(b)}},[e,t]),B.useEffect(()=>{const b=()=>D(window.innerWidth<678);return window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[]);const ue=n.filter(b=>{if(m&&!b.has_moeda_id)return!1;const $=a.has(b.category_id),I=d===""||b.name.toLowerCase().includes(d.toLowerCase())||b.description.toLowerCase().includes(d.toLowerCase())||b.project.toLowerCase().includes(d.toLowerCase());return $&&I}),J=B.useCallback(b=>{b.preventDefault();const $=d.toLowerCase(),I=n.filter(H=>H.name.toLowerCase().includes($)||H.description.toLowerCase().includes($)||H.project.toLowerCase().includes($));if(I.length>0){const H=new Set(I.map(G=>G.category_id));if(s(H),N.current){const G=Ke.latLngBounds(I.map(we=>[we.latitude,we.longitude]));N.current.fitBounds(G,{padding:[25,25]})}}},[d,n]),ae=B.useCallback(b=>{Z(b),y(!0),N.current&&N.current.flyTo([b.latitude,b.longitude],18,{duration:.8,easeLinearity:.3})},[]),ke=B.useCallback(b=>{Z(b),s($=>{const I=new Set($);return I.add(b.category_id),I}),m&&!b.has_moeda_id&&_(!1),N.current&&N.current.flyTo([b.latitude,b.longitude],18,{duration:.8,easeLinearity:.3})},[m]),pt=B.useCallback(b=>{if(_(b),b){const $=n.filter(H=>H.has_moeda_id),I=new Set($.map(H=>H.category_id));if(c(a),s(I),N.current&&$.length>0){const H=Ke.latLngBounds($.map(G=>[G.latitude,G.longitude]));N.current.fitBounds(H,{padding:[25,25]})}}else s(l)},[n,a,l]),je=B.useCallback(()=>
170{if(e.length>0){const b=new Set(e.map($=>$.id));s(b),c(b),_(!1),p(""),N.current&&N.current.setView([39.985,-8.408],11.5)}},[e]),ri=B.useCallback(b=>{s($=>{const I=new Set($);return I.has(b)?I.delete(b):I.add(b),I})},[]);return t||r?E.jsx("div",{className:"h-screen w-screen flex items-center justify-center bg-gray-50",children:E.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-500"})}):E.jsxs("div",{id:"app-container",className:"relative h-screen w-screen overflow-hidden bg-gray-50",children:[z&&E.jsx("div",{className:"fixed top-2 left-12 right-12 justify-center rounded-t-xl z-[700]",children:E.jsx(nf,{searchQuery:d,setSearchQuery:p,handleSearch:J,handleReset:je})}),E.jsx("div",{className:`${z?`bottom-0 left-0 right-0 rounded-t-xl ${v?"h-[70vh]":"h-10"}`:`top-0 h-full ${v?"w-[280px] left-0":"w-[40px] left-0"}`} fixed bg-white shadow-xl transition-all duration-300 z-[1000]`,children:z?E.jsxs(E.Fragment,{children:[E.jsx("button",{onClick:()=>y(!v),className:"w-full bg-white flex items-center justify-center py-1 hover:bg-gray-50 rounded-t-xl",children:v?E.jsx(t_,{className:"text-gray-600",size:14}):E.jsx(ew,{className:"text-gray-600",size:14})}),v&&E.jsx("div",{className:"px-4 py-0 border-t border-gray-100 overflow-y-auto h-[calc(100%-50px)]",children:R?E.jsxs(E.Fragment,{children:[E.jsx("h3",{className:"font-bold text-lg text-gray-900 text-center p-1",children:R.name}),E.jsx(xf,{poi:R,onClose:()=>Z(null),iconUrl:((Pe=e.find(b=>b.id===R.category_id))==null?void 0:Pe.icon_url)||"",onPOIChange:ke})]}):E.jsxs(E.Fragment,{children:[E.jsxs("button",{onClick:()=>pt(!m),className:`w-full flex items-center justify-center gap-2 p-3 rounded-lg transition-all text-sm mt-3
171                        ${m?"bg-amber-50 text-amber-700 shadow-sm ring-1 ring-amber-200":"bg-gray-50 text-gray-600 hover:bg-gray-100 hover:text-gray-900"}`,children:[E.jsx("img",{src:"/icons/ID.png",alt:"Moeda ID",className:"w-6 h-6 object-contain"}),E.jsx("span",{className:"font-medium",children:"Descubra onde obter e utilizar a Moeda ID"})]}),E.jsx(rf,{categoryIcons:Object.fromEntries(e.map(b=>[b.id,b.icon_url])),selectedCategories:a,toggleCategory:ri,selectedRoutes:new Set,toggleRoute:()=>{},handleReset:je,baseMaps:Qs,selectedBaseMap:C,setSelectedBaseMap:P,clearPOIs:()=>s(new Set),clearRoutes:()=>s(l),showMoedaId:m,setShowMoedaId:pt,isMobile:z,categories:e})]})})]}):E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"flex items-center justify-between p-3 border-b bg-white",children:v?E.jsxs(E.Fragment,{children:[E.jsx("span",{className:"text-base font-semibold text-gray-800",children:R?R.name:"Interações no Mapa"}),E.jsxs("div",{className:"flex items-center gap-2",children:[R&&E.jsx("button",{onClick:()=>Z(null),className:"p-1.5 hover:bg-gray-100 rounded-lg transition-colors",children:E.jsx(Wi,{className:"text-gray-600",size:0})}),E.jsx("button",{onClick:()=>y(!1),className:"p-1 hover:bg-gray-100 rounded-lg transition-colors",children:E.jsx(lw,{className:"text-gray-600",size:18})})]})]}):E.jsx("button",{onClick:()=>y(!0),className:"p-1 hover:bg-gray-100 rounded-lg transition-colors mx-auto",children:E.jsx(uw,{className:"text-gray-600",size:18})})}),v&&E.jsx("div",{className:"h-[calc(100%-56px)] overflow-y-auto",children:R?E.jsx(xf,{poi:R,onClose:()=>Z(null),iconUrl:((mt=e.find(b=>b.id===R.category_id))==null?void 0:mt.icon_url)||"",onPOIChange:ke}):E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"p-3 border-b",children:[E.jsx(nf,{searchQuery:d,setSearchQuery:p,handleSearch:J,handleReset:je}),E.jsxs("button",{onClick:()=>pt(!m),className:`w-full flex items-center justify-center gap-2 p-3 rounded-lg transition-all text-sm mt-3
172                          ${m?"bg-amber-50 text-amber-700 shadow-sm ring-1 ring-amber-200":"bg-gray-50 text-gray-600 hover:bg-gray-100 hover:text-gray-900"}`,children:[E.jsx("img",{src:"/icons/ID.png",alt:"Moeda ID",className:"w-6 h-6 object-contain"}),E.jsx("span",{className:"font-medium",children:"Descubra onde obter e utilizar a Moeda ID"})]})]}),E.jsx(rf,{categoryIcons:Object.fromEntries(e.map(b=>[b.id,b.icon_url])),selectedCategories:a,toggleCategory:ri,selectedRoutes:new Set,toggleRoute:()=>{},handleReset:je,baseMaps:Qs,selectedBaseMap:C,setSelectedBaseMap:P,clearPOIs:()=>s(new Set),clearRoutes:()=>s(l),showMoedaId:m,setShowMoedaId:pt,isMobile:z,categories:e})]})})]})}),E.jsxs("div",{className:`absolute inset-0 ${z?"pb-12":""}`,children:[S&&E.jsx(zx,{message:S,onClose:()=>M(null)}),E.jsxs(O0,{center:[39.985,-8.408],zoom:11.5,style:{height:"100%",width:"100%"},className:"h-full w-full",ref:N,zoomControl:!1,attributionControl:!1,maxBounds:Cu,minZoom:12,children:[E.jsx(M0,{url:Qs[C].url,attribution:Qs[C].attribution,maxZoom:19}),E.jsx(T0,{position:"bottomright",prefix:!1}),E.jsx(I0,{position:"bottomright"}),E.jsx(Ix,{}),E.jsx(Ax,{}),E.jsx(Nx,{}),E.jsx("div",{className:"leaflet-control-locate leaflet-bar leaflet-control",children:E.jsx("button",{onClick:()=>w(!x),className:`w-8 h-8 bg-white rounded-xl shadow-lg flex items-center 
173                justify-center hover:bg-gray-50 focus:outline-none focus:ring-2 
174                focus:ring-blue-500 transition-colors
175                ${x?"text-blue-500":"text-gray-600"}`,title:"Track my location",children:E.jsx(aw,{size:20,className:x?"text-blue-500":""})})}),x&&E.jsx(jx,{}),E.jsx(K0,{chunkedLoading:!0,maxClusterRadius:15,disableClusteringAtZoom:25,spiderfyOnMaxZoom:!0,showCoverageOnHover:!1,children:ue.map(b=>{var H;
175const $=((H=e.find(G=>G.id===b.category_id))==null?void 0:H.icon_url)||"",I=(R==null?void 0:R.id)===b.id;return E.jsx(Ym,{position:[b.latitude,b.longitude],icon:new Ke.Icon({iconUrl:$,iconSize:[30,30],iconAnchor:[15,28],className:`marker-icon ${I?"selected-marker":""}`}),eventHandlers:{click:()=>ae(b)},zIndexOffset:I?1e3:0,children:E.jsx(Xm,{direction:"top",offset:[0,0],opacity:1,children:b.name})},b.id)})})]})]})]})}function Bx(){return E.jsx("div",{className:"h-screen w-screen overflow-hidden",children:E.jsx(Rx,{})})}L0.Icon.Default.mergeOptions({iconRetinaUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon-2x.png",iconUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png"});jm(document.getElementById("root")).render(E.jsx(B.StrictMode,{children:E.jsx(Bx,{})}));export{kf as g};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.