naksha-components-react 4.4.6 → 4.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -1 +1,255 @@
1
- "use strict";import m,{createContext as c,useContext as u}from"react";import{useEffect as g,useState as y}from"react";var p=["formatted_address","geometry","name"],b={DEFAULT:["drawing","places"],AUTOCOMPLETE:["drawing","places"]},S={"CC-BY":"//creativecommons.org/licenses/by/4.0","BY-SA":"//creativecommons.org/licenses/by-sa/4.0","BY-ND":"//creativecommons.org/licenses/by-nd/4.0","BY-NC":"//creativecommons.org/licenses/by-nc/4.0","BY-NC-SA":"//creativecommons.org/licenses/by-nc-sa/4.0","BY-NC-ND":"//creativecommons.org/licenses/by-nc-nd/4.0"},i=(e=>(e.MAP_STREETS="0",e.MAP_SATELLITE="1",e.MAP_DARK="2",e.MAP_OSM="3",e))(i||{}),l={latitude:22.5,longitude:79,zoom:3,bearing:0,pitch:0},f=[{text:"Streets",key:"0",style:"mapbox://styles/biodiv/cku4aoj5k1g9h17o5r3tjsntn"},{text:"Satellite",key:"1",style:"mapbox://styles/biodiv/cku49ca8q1esz18o7gxfjmh5r"},{text:"Dark",key:"2",style:"mapbox://styles/biodiv/cku4a35961fgo17mykoq76se1"},{text:"OSM",key:"3",style:"https://unpkg.com/maplibre-gl-styles@0.0.1/styles/osm-mapnik/v8/india.json"}],v=["admin-0-boundary","admin-1-boundary","admin-0-boundary-disputed","admin-1-boundary-bg","admin-0-boundary-bg"],d=(e,t)=>(t.split(".").forEach(function(a){!e||(e=e[a])}),e),n=c({}),E=({localeStrings:e,lang:t="en",children:a})=>{let r=o=>{let s=d(e[t],o);return s||console.warn(`Translation '${o}' for locale '${t}' not found.`),s};return m.createElement(n.Provider,{value:{t:r}},a)};function T(){return u(n)}function M(e,t){let[a,r]=y(e);return g(()=>{let o=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(o)}},[e,t]),a}var k=(e=l,t=1)=>({center:{lat:e.latitude,lng:e.longitude},zoom:e.zoom+t}),P=e=>{let t=e.getFullYear().toString(),a=(e.getMonth()+101).toString().substring(1),r=(e.getDate()+100).toString().substring(1);return`${t}-${a}-${r}`};export*from"@ibp/naksha-gmaps-draw";export*from"@ibp/naksha-gmaps-view";export*from"@ibp/naksha-mapbox-draw";export*from"@ibp/naksha-mapbox-list";export*from"@ibp/naksha-mapbox-view";export{p as GMAPS_AUTOCOMPLETE_FIELDS,b as GMAPS_LIBRARIES,S as LICENSES,i as MapStyles,E as TranslationProvider,v as adminBoundries,f as defaultMapStyles,l as defaultViewState,P as formatDate,d as getByPath,k as mapboxToGmapsViewState,M as useDebounce,T as useT};
1
+ "use strict";import{a as Zn,b as Qa,c as Ka,d as ln,e as wa}from"./chunk-U5OMNIOK.js";var U3=ln(Nn=>{"use strict";function ow(e,t){var a=e.length;e.push(t);e:for(;0<a;){var o=a-1>>>1,s=e[o];if(0<Ey(s,t))e[o]=t,e[a]=s,a=o;else break e}}function Po(e){return e.length===0?null:e[0]}function Cy(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var o=0,s=e.length,f=s>>>1;o<f;){var p=2*(o+1)-1,h=e[p],g=p+1,y=e[g];if(0>Ey(h,a))g<s&&0>Ey(y,h)?(e[o]=y,e[g]=a,o=g):(e[o]=h,e[p]=a,o=p);else if(g<s&&0>Ey(y,a))e[o]=y,e[g]=a,o=g;else break e}}return t}function Ey(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(O3=performance,Nn.unstable_now=function(){return O3.now()}):(rw=Date,D3=rw.now(),Nn.unstable_now=function(){return rw.now()-D3});var O3,rw,D3,hl=[],Bs=[],NB=1,Ja=null,bi=3,Ly=!1,oc=!1,Hh=!1,N3=typeof setTimeout=="function"?setTimeout:null,z3=typeof clearTimeout=="function"?clearTimeout:null,P3=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function lw(e){for(var t=Po(Bs);t!==null;){if(t.callback===null)Cy(Bs);else if(t.startTime<=e)Cy(Bs),t.sortIndex=t.expirationTime,ow(hl,t);else break;t=Po(Bs)}}function sw(e){if(Hh=!1,lw(e),!oc)if(Po(hl)!==null)oc=!0,cw(uw);else{var t=Po(Bs);t!==null&&fw(sw,t.startTime-e)}}function uw(e,t){oc=!1,Hh&&(Hh=!1,z3(Vh),Vh=-1),Ly=!0;var a=bi;try{for(lw(t),Ja=Po(hl);Ja!==null&&(!(Ja.expirationTime>t)||e&&!j3());){var o=Ja.callback;if(typeof o=="function"){Ja.callback=null,bi=Ja.priorityLevel;var s=o(Ja.expirationTime<=t);t=Nn.unstable_now(),typeof s=="function"?Ja.callback=s:Ja===Po(hl)&&Cy(hl),lw(t)}else Cy(hl);Ja=Po(hl)}if(Ja!==null)var f=!0;else{var p=Po(Bs);p!==null&&fw(sw,p.startTime-t),f=!1}return f}finally{Ja=null,bi=a,Ly=!1}}var Ty=!1,wy=null,Vh=-1,I3=5,F3=-1;function j3(){return!(Nn.unstable_now()-F3<I3)}function iw(){if(wy!==null){var e=Nn.unstable_now();F3=e;var t=!0;try{t=wy(!0,e)}finally{t?Bh():(Ty=!1,wy=null)}}else Ty=!1}var Bh;typeof P3=="function"?Bh=function(){P3(iw)}:typeof MessageChannel<"u"?(aw=new MessageChannel,A3=aw.port2,aw.port1.onmessage=iw,Bh=function(){A3.postMessage(null)}):Bh=function(){N3(iw,0)};var aw,A3;function cw(e){wy=e,Ty||(Ty=!0,Bh())}function fw(e,t){Vh=N3(function(){e(Nn.unstable_now())},t)}Nn.unstable_IdlePriority=5;Nn.unstable_ImmediatePriority=1;Nn.unstable_LowPriority=4;Nn.unstable_NormalPriority=3;Nn.unstable_Profiling=null;Nn.unstable_UserBlockingPriority=2;Nn.unstable_cancelCallback=function(e){e.callback=null};Nn.unstable_continueExecution=function(){oc||Ly||(oc=!0,cw(uw))};Nn.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I3=0<e?Math.floor(1e3/e):5};Nn.unstable_getCurrentPriorityLevel=function(){return bi};Nn.unstable_getFirstCallbackNode=function(){return Po(hl)};Nn.unstable_next=function(e){switch(bi){case 1:case 2:case 3:var t=3;break;default:t=bi}var a=bi;bi=t;try{return e()}finally{bi=a}};Nn.unstable_pauseExecution=function(){};Nn.unstable_requestPaint=function(){};Nn.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=bi;bi=e;try{return t()}finally{bi=a}};Nn.unstable_scheduleCallback=function(e,t,a){var o=Nn.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?o+a:o):a=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,e={id:NB++,callback:t,priorityLevel:e,startTime:a,expirationTime:s,sortIndex:-1},a>o?(e.sortIndex=a,ow(Bs,e),Po(hl)===null&&e===Po(Bs)&&(Hh?(z3(Vh),Vh=-1):Hh=!0,fw(sw,a-o))):(e.sortIndex=s,ow(hl,e),oc||Ly||(oc=!0,cw(uw))),e};Nn.unstable_shouldYield=j3;Nn.unstable_wrapCallback=function(e){var t=bi;return function(){var a=bi;bi=t;try{return e.apply(this,arguments)}finally{bi=a}}}});var B3=ln(Dn=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=!1,t=!1,a=5;function o(Ne,nt){var Et=Ne.length;Ne.push(nt),p(Ne,nt,Et)}function s(Ne){return Ne.length===0?null:Ne[0]}function f(Ne){if(Ne.length===0)return null;var nt=Ne[0],Et=Ne.pop();return Et!==nt&&(Ne[0]=Et,h(Ne,Et,0)),nt}function p(Ne,nt,Et){for(var pt=Et;pt>0;){var et=pt-1>>>1,Gn=Ne[et];if(g(Gn,nt)>0)Ne[et]=nt,Ne[pt]=Gn,pt=et;else return}}function h(Ne,nt,Et){for(var pt=Et,et=Ne.length,Gn=et>>>1;pt<Gn;){var Yn=(pt+1)*2-1,Er=Ne[Yn],nn=Yn+1,fi=Ne[nn];if(g(Er,nt)<0)nn<et&&g(fi,Er)<0?(Ne[pt]=fi,Ne[nn]=nt,pt=nn):(Ne[pt]=Er,Ne[Yn]=nt,pt=Yn);else if(nn<et&&g(fi,nt)<0)Ne[pt]=fi,Ne[nn]=nt,pt=nn;else return}}function g(Ne,nt){var Et=Ne.sortIndex-nt.sortIndex;return Et!==0?Et:Ne.id-nt.id}var y=1,w=2,C=3,M=4,_=5;function A(Ne,nt){}var I=typeof performance=="object"&&typeof performance.now=="function";if(I){var $=performance;Dn.unstable_now=function(){return $.now()}}else{var R=Date,D=R.now();Dn.unstable_now=function(){return R.now()-D}}var E=1073741823,k=-1,F=250,U=5e3,N=1e4,W=E,K=[],G=[],re=1,Le=null,Y=C,ue=!1,xe=!1,Pe=!1,ke=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null,le=typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0?navigator.scheduling.isInputPending.bind(navigator.scheduling):null;function ge(Ne){for(var nt=s(G);nt!==null;){if(nt.callback===null)f(G);else if(nt.startTime<=Ne)f(G),nt.sortIndex=nt.expirationTime,o(K,nt);else return;nt=s(G)}}function ve(Ne){if(Pe=!1,ge(Ne),!xe)if(s(K)!==null)xe=!0,hn(de);else{var nt=s(G);nt!==null&&vn(ve,nt.startTime-Ne)}}function de(Ne,nt){xe=!1,Pe&&(Pe=!1,Pt()),ue=!0;var Et=Y;try{if(t)try{return ie(Ne,nt)}catch(et){if(Le!==null){var pt=Dn.unstable_now();Le.isQueued=!1}throw et}else return ie(Ne,nt)}finally{Le=null,Y=Et,ue=!1}}function ie(Ne,nt){var Et=nt;for(ge(Et),Le=s(K);Le!==null&&!e&&!(Le.expirationTime>Et&&(!Ne||Dt()));){var pt=Le.callback;if(typeof pt=="function"){Le.callback=null,Y=Le.priorityLevel;var et=Le.expirationTime<=Et,Gn=pt(et);Et=Dn.unstable_now(),typeof Gn=="function"?Le.callback=Gn:Le===s(K)&&f(K),ge(Et)}else f(K);Le=s(K)}if(Le!==null)return!0;var Yn=s(G);return Yn!==null&&vn(ve,Yn.startTime-Et),!1}function Oe(Ne,nt){switch(Ne){case y:case w:case C:case M:case _:break;default:Ne=C}var Et=Y;Y=Ne;try{return nt()}finally{Y=Et}}function je(Ne){var nt;switch(Y){case y:case w:case C:nt=C;break;default:nt=Y;break}var Et=Y;Y=nt;try{return Ne()}finally{Y=Et}}function we(Ne){var nt=Y;return function(){var Et=Y;Y=nt;try{return Ne.apply(this,arguments)}finally{Y=Et}}}function ut(Ne,nt,Et){var pt=Dn.unstable_now(),et;if(typeof Et=="object"&&Et!==null){var Gn=Et.delay;typeof Gn=="number"&&Gn>0?et=pt+Gn:et=pt}else et=pt;var Yn;switch(Ne){case y:Yn=k;break;case w:Yn=F;break;case _:Yn=W;break;case M:Yn=N;break;case C:default:Yn=U;break}var Er=et+Yn,nn={id:re++,callback:nt,priorityLevel:Ne,startTime:et,expirationTime:Er,sortIndex:-1};return et>pt?(nn.sortIndex=et,o(G,nn),s(K)===null&&nn===s(G)&&(Pe?Pt():Pe=!0,vn(ve,et-pt))):(nn.sortIndex=Er,o(K,nn),!xe&&!ue&&(xe=!0,hn(de))),nn}function Je(){}function Ve(){!xe&&!ue&&(xe=!0,hn(de))}function _t(){return s(K)}function Ae(Ne){Ne.callback=null}function Lt(){return Y}var tt=!1,fn=null,dn=-1,er=a,pn=-1;function Dt(){var Ne=Dn.unstable_now()-pn;return!(Ne<er)}function qt(){}function Wt(Ne){if(Ne<0||Ne>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Ne>0?er=Math.floor(1e3/Ne):er=a}var un=function(){if(fn!==null){var Ne=Dn.unstable_now();pn=Ne;var nt=!0,Et=!0;try{Et=fn(nt,Ne)}finally{Et?jt():(tt=!1,fn=null)}}else tt=!1},jt;if(typeof Q=="function")jt=function(){Q(un)};else if(typeof MessageChannel<"u"){var In=new MessageChannel,Sn=In.port2;In.port1.onmessage=un,jt=function(){Sn.postMessage(null)}}else jt=function(){ke(un,0)};function hn(Ne){fn=Ne,tt||(tt=!0,jt())}function vn(Ne,nt){dn=ke(function(){Ne(Dn.unstable_now())},nt)}function Pt(){V(dn),dn=-1}var _n=qt,kn=null;Dn.unstable_IdlePriority=_,Dn.unstable_ImmediatePriority=y,Dn.unstable_LowPriority=M,Dn.unstable_NormalPriority=C,Dn.unstable_Profiling=kn,Dn.unstable_UserBlockingPriority=w,Dn.unstable_cancelCallback=Ae,Dn.unstable_continueExecution=Ve,Dn.unstable_forceFrameRate=Wt,Dn.unstable_getCurrentPriorityLevel=Lt,Dn.unstable_getFirstCallbackNode=_t,Dn.unstable_next=je,Dn.unstable_pauseExecution=Je,Dn.unstable_requestPaint=_n,Dn.unstable_runWithPriority=Oe,Dn.unstable_scheduleCallback=ut,Dn.unstable_shouldYield=Dt,Dn.unstable_wrapCallback=we,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()});var pw=ln((HX,dw)=>{"use strict";process.env.NODE_ENV==="production"?dw.exports=U3():dw.exports=B3()});var Y4=ln(Ma=>{"use strict";var qO=Ka("react"),_a=pw();function ze(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);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 ZO=new Set,fv={};function bc(e,t){Sd(e,t),Sd(e+"Capture",t)}function Sd(e,t){for(fv[e]=t,e=0;e<t.length;e++)ZO.add(t[e])}var es=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zw=Object.prototype.hasOwnProperty,zB=/^[: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]*$/,H3={},V3={};function IB(e){return zw.call(V3,e)?!0:zw.call(H3,e)?!1:zB.test(e)?V3[e]=!0:(H3[e]=!0,!1)}function FB(e,t,a,o){if(a!==null&&a.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function jB(e,t,a,o){if(t===null||typeof t>"u"||FB(e,t,a,o))return!0;if(o)return!1;if(a!==null)switch(a.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 Fi(e,t,a,o,s,f,p){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=s,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=f,this.removeEmptyString=p}var li={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){li[e]=new Fi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];li[t]=new Fi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){li[e]=new Fi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){li[e]=new Fi(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){li[e]=new Fi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){li[e]=new Fi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){li[e]=new Fi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){li[e]=new Fi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){li[e]=new Fi(e,5,!1,e.toLowerCase(),null,!1,!1)});var kC=/[\-:]([a-z])/g;function MC(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(kC,MC);li[t]=new Fi(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(kC,MC);li[t]=new Fi(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(kC,MC);li[t]=new Fi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){li[e]=new Fi(e,1,!1,e.toLowerCase(),null,!1,!1)});li.xlinkHref=new Fi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){li[e]=new Fi(e,1,!1,e.toLowerCase(),null,!0,!0)});function RC(e,t,a,o){var s=li.hasOwnProperty(t)?li[t]:null;(s!==null?s.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(jB(t,a,s,o)&&(a=null),o||s===null?IB(t)&&(a===null?e.removeAttribute(t):e.setAttribute(t,""+a)):s.mustUseProperty?e[s.propertyName]=a===null?s.type===3?!1:"":a:(t=s.attributeName,o=s.attributeNamespace,a===null?e.removeAttribute(t):(s=s.type,a=s===3||s===4&&a===!0?"":""+a,o?e.setAttributeNS(o,t,a):e.setAttribute(t,a))))}var is=qO.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_y=Symbol.for("react.element"),td=Symbol.for("react.portal"),nd=Symbol.for("react.fragment"),OC=Symbol.for("react.strict_mode"),Iw=Symbol.for("react.profiler"),QO=Symbol.for("react.provider"),KO=Symbol.for("react.context"),DC=Symbol.for("react.forward_ref"),Fw=Symbol.for("react.suspense"),jw=Symbol.for("react.suspense_list"),PC=Symbol.for("react.memo"),Vs=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var JO=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var $3=Symbol.iterator;function $h(e){return e===null||typeof e!="object"?null:(e=$3&&e[$3]||e["@@iterator"],typeof e=="function"?e:null)}var ar=Object.assign,hw;function Jh(e){if(hw===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);hw=t&&t[1]||""}return`
2
+ `+hw+e}var vw=!1;function mw(e,t){if(!e||vw)return"";vw=!0;var a=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(y){var o=y}Reflect.construct(e,[],t)}else{try{t.call()}catch(y){o=y}e.call(t.prototype)}else{try{throw Error()}catch(y){o=y}e()}}catch(y){if(y&&o&&typeof y.stack=="string"){for(var s=y.stack.split(`
3
+ `),f=o.stack.split(`
4
+ `),p=s.length-1,h=f.length-1;1<=p&&0<=h&&s[p]!==f[h];)h--;for(;1<=p&&0<=h;p--,h--)if(s[p]!==f[h]){if(p!==1||h!==1)do if(p--,h--,0>h||s[p]!==f[h]){var g=`
5
+ `+s[p].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),g}while(1<=p&&0<=h);break}}}finally{vw=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?Jh(e):""}function UB(e){switch(e.tag){case 5:return Jh(e.type);case 16:return Jh("Lazy");case 13:return Jh("Suspense");case 19:return Jh("SuspenseList");case 0:case 2:case 15:return e=mw(e.type,!1),e;case 11:return e=mw(e.type.render,!1),e;case 1:return e=mw(e.type,!0),e;default:return""}}function Uw(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 nd:return"Fragment";case td:return"Portal";case Iw:return"Profiler";case OC:return"StrictMode";case Fw:return"Suspense";case jw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case KO:return(e.displayName||"Context")+".Consumer";case QO:return(e._context.displayName||"Context")+".Provider";case DC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case PC:return t=e.displayName||null,t!==null?t:Uw(e.type)||"Memo";case Vs:t=e._payload,e=e._init;try{return Uw(e(t))}catch{}}return null}function BB(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 Uw(t);case 8:return t===OC?"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 ru(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function XO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function HB(e){var t=XO(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,f=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(p){o=""+p,f.call(this,p)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return o},setValue:function(p){o=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ky(e){e._valueTracker||(e._valueTracker=HB(e))}function e5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=XO(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function n0(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 Bw(e,t){var a=t.checked;return ar({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function W3(e,t){var a=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;a=ru(t.value!=null?t.value:a),e._wrapperState={initialChecked:o,initialValue:a,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function t5(e,t){t=t.checked,t!=null&&RC(e,"checked",t,!1)}function Hw(e,t){t5(e,t);var a=ru(t.value),o=t.type;if(a!=null)o==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Vw(e,t.type,a):t.hasOwnProperty("defaultValue")&&Vw(e,t.type,ru(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function G3(e,t,a){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,a||t===e.value||(e.value=t),e.defaultValue=t}a=e.name,a!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,a!==""&&(e.name=a)}function Vw(e,t,a){(t!=="number"||n0(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var Xh=Array.isArray;function hd(e,t,a,o){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&o&&(e[a].defaultSelected=!0)}else{for(a=""+ru(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,o&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function $w(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ze(91));return ar({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Y3(e,t){var a=t.value;if(a==null){if(a=t.children,t=t.defaultValue,a!=null){if(t!=null)throw Error(ze(92));if(Xh(a)){if(1<a.length)throw Error(ze(93));a=a[0]}t=a}t==null&&(t=""),a=t}e._wrapperState={initialValue:ru(a)}}function n5(e,t){var a=ru(t.value),o=ru(t.defaultValue);a!=null&&(a=""+a,a!==e.value&&(e.value=a),t.defaultValue==null&&e.defaultValue!==a&&(e.defaultValue=a)),o!=null&&(e.defaultValue=""+o)}function q3(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function r5(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 Ww(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?r5(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var My,i5=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,a,o,s){MSApp.execUnsafeLocalFunction(function(){return e(t,a,o,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(My=My||document.createElement("div"),My.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=My.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dv(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var nv={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},VB=["Webkit","ms","Moz","O"];Object.keys(nv).forEach(function(e){VB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),nv[t]=nv[e]})});function a5(e,t,a){return t==null||typeof t=="boolean"||t===""?"":a||typeof t!="number"||t===0||nv.hasOwnProperty(e)&&nv[e]?(""+t).trim():t+"px"}function o5(e,t){e=e.style;for(var a in t)if(t.hasOwnProperty(a)){var o=a.indexOf("--")===0,s=a5(a,t[a],o);a==="float"&&(a="cssFloat"),o?e.setProperty(a,s):e[a]=s}}var $B=ar({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 Gw(e,t){if(t){if($B[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ze(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ze(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ze(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ze(62))}}function Yw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 qw=null;function AC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zw=null,vd=null,md=null;function Z3(e){if(e=Rv(e)){if(typeof Zw!="function")throw Error(ze(280));var t=e.stateNode;t&&(t=R0(t),Zw(e.stateNode,e.type,t))}}function l5(e){vd?md?md.push(e):md=[e]:vd=e}function s5(){if(vd){var e=vd,t=md;if(md=vd=null,Z3(e),t)for(e=0;e<t.length;e++)Z3(t[e])}}function u5(e,t){return e(t)}function c5(){}var gw=!1;function f5(e,t,a){if(gw)return e(t,a);gw=!0;try{return u5(e,t,a)}finally{gw=!1,(vd!==null||md!==null)&&(c5(),s5())}}function pv(e,t){var a=e.stateNode;if(a===null)return null;var o=R0(a);if(o===null)return null;a=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(ze(231,t,typeof a));return a}var Qw=!1;if(es)try{Xf={},Object.defineProperty(Xf,"passive",{get:function(){Qw=!0}}),window.addEventListener("test",Xf,Xf),window.removeEventListener("test",Xf,Xf)}catch{Qw=!1}var Xf;function WB(e,t,a,o,s,f,p,h,g){var y=Array.prototype.slice.call(arguments,3);try{t.apply(a,y)}catch(w){this.onError(w)}}var rv=!1,r0=null,i0=!1,Kw=null,GB={onError:function(e){rv=!0,r0=e}};function YB(e,t,a,o,s,f,p,h,g){rv=!1,r0=null,WB.apply(GB,arguments)}function qB(e,t,a,o,s,f,p,h,g){if(YB.apply(this,arguments),rv){if(rv){var y=r0;rv=!1,r0=null}else throw Error(ze(198));i0||(i0=!0,Kw=y)}}function Sc(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d5(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 Q3(e){if(Sc(e)!==e)throw Error(ze(188))}function ZB(e){var t=e.alternate;if(!t){if(t=Sc(e),t===null)throw Error(ze(188));return t!==e?null:e}for(var a=e,o=t;;){var s=a.return;if(s===null)break;var f=s.alternate;if(f===null){if(o=s.return,o!==null){a=o;continue}break}if(s.child===f.child){for(f=s.child;f;){if(f===a)return Q3(s),e;if(f===o)return Q3(s),t;f=f.sibling}throw Error(ze(188))}if(a.return!==o.return)a=s,o=f;else{for(var p=!1,h=s.child;h;){if(h===a){p=!0,a=s,o=f;break}if(h===o){p=!0,o=s,a=f;break}h=h.sibling}if(!p){for(h=f.child;h;){if(h===a){p=!0,a=f,o=s;break}if(h===o){p=!0,o=f,a=s;break}h=h.sibling}if(!p)throw Error(ze(189))}}if(a.alternate!==o)throw Error(ze(190))}if(a.tag!==3)throw Error(ze(188));return a.stateNode.current===a?e:t}function p5(e){return e=ZB(e),e!==null?h5(e):null}function h5(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=h5(e);if(t!==null)return t;e=e.sibling}return null}var v5=_a.unstable_scheduleCallback,K3=_a.unstable_cancelCallback,QB=_a.unstable_shouldYield,KB=_a.unstable_requestPaint,vr=_a.unstable_now,JB=_a.unstable_getCurrentPriorityLevel,NC=_a.unstable_ImmediatePriority,m5=_a.unstable_UserBlockingPriority,a0=_a.unstable_NormalPriority,XB=_a.unstable_LowPriority,g5=_a.unstable_IdlePriority,T0=null,yl=null;function eH(e){if(yl&&typeof yl.onCommitFiberRoot=="function")try{yl.onCommitFiberRoot(T0,e,void 0,(e.current.flags&128)===128)}catch{}}var Fo=Math.clz32?Math.clz32:rH,tH=Math.log,nH=Math.LN2;function rH(e){return e>>>=0,e===0?32:31-(tH(e)/nH|0)|0}var Ry=64,Oy=4194304;function ev(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 o0(e,t){var a=e.pendingLanes;if(a===0)return 0;var o=0,s=e.suspendedLanes,f=e.pingedLanes,p=a&268435455;if(p!==0){var h=p&~s;h!==0?o=ev(h):(f&=p,f!==0&&(o=ev(f)))}else p=a&~s,p!==0?o=ev(p):f!==0&&(o=ev(f));if(o===0)return 0;if(t!==0&&t!==o&&(t&s)===0&&(s=o&-o,f=t&-t,s>=f||s===16&&(f&4194240)!==0))return t;if((o&4)!==0&&(o|=a&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)a=31-Fo(t),s=1<<a,o|=e[a],t&=~s;return o}function iH(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 aH(e,t){for(var a=e.suspendedLanes,o=e.pingedLanes,s=e.expirationTimes,f=e.pendingLanes;0<f;){var p=31-Fo(f),h=1<<p,g=s[p];g===-1?((h&a)===0||(h&o)!==0)&&(s[p]=iH(h,t)):g<=t&&(e.expiredLanes|=h),f&=~h}}function Jw(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function y5(){var e=Ry;return Ry<<=1,(Ry&4194240)===0&&(Ry=64),e}function yw(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function kv(e,t,a){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Fo(t),e[t]=a}function oH(e,t){var a=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 o=e.eventTimes;for(e=e.expirationTimes;0<a;){var s=31-Fo(a),f=1<<s;t[s]=0,o[s]=-1,e[s]=-1,a&=~f}}function zC(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-Fo(a),s=1<<o;s&t|e[o]&t&&(e[o]|=t),a&=~s}}var wn=0;function b5(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var S5,IC,x5,E5,w5,Xw=!1,Dy=[],Zs=null,Qs=null,Ks=null,hv=new Map,vv=new Map,Ws=[],lH="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 J3(e,t){switch(e){case"focusin":case"focusout":Zs=null;break;case"dragenter":case"dragleave":Qs=null;break;case"mouseover":case"mouseout":Ks=null;break;case"pointerover":case"pointerout":hv.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vv.delete(t.pointerId)}}function Wh(e,t,a,o,s,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:f,targetContainers:[s]},t!==null&&(t=Rv(t),t!==null&&IC(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function sH(e,t,a,o,s){switch(t){case"focusin":return Zs=Wh(Zs,e,t,a,o,s),!0;case"dragenter":return Qs=Wh(Qs,e,t,a,o,s),!0;case"mouseover":return Ks=Wh(Ks,e,t,a,o,s),!0;case"pointerover":var f=s.pointerId;return hv.set(f,Wh(hv.get(f)||null,e,t,a,o,s)),!0;case"gotpointercapture":return f=s.pointerId,vv.set(f,Wh(vv.get(f)||null,e,t,a,o,s)),!0}return!1}function C5(e){var t=uc(e.target);if(t!==null){var a=Sc(t);if(a!==null){if(t=a.tag,t===13){if(t=d5(a),t!==null){e.blockedOn=t,w5(e.priority,function(){x5(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Gy(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=eC(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);qw=o,a.target.dispatchEvent(o),qw=null}else return t=Rv(a),t!==null&&IC(t),e.blockedOn=a,!1;t.shift()}return!0}function X3(e,t,a){Gy(e)&&a.delete(t)}function uH(){Xw=!1,Zs!==null&&Gy(Zs)&&(Zs=null),Qs!==null&&Gy(Qs)&&(Qs=null),Ks!==null&&Gy(Ks)&&(Ks=null),hv.forEach(X3),vv.forEach(X3)}function Gh(e,t){e.blockedOn===t&&(e.blockedOn=null,Xw||(Xw=!0,_a.unstable_scheduleCallback(_a.unstable_NormalPriority,uH)))}function mv(e){function t(s){return Gh(s,e)}if(0<Dy.length){Gh(Dy[0],e);for(var a=1;a<Dy.length;a++){var o=Dy[a];o.blockedOn===e&&(o.blockedOn=null)}}for(Zs!==null&&Gh(Zs,e),Qs!==null&&Gh(Qs,e),Ks!==null&&Gh(Ks,e),hv.forEach(t),vv.forEach(t),a=0;a<Ws.length;a++)o=Ws[a],o.blockedOn===e&&(o.blockedOn=null);for(;0<Ws.length&&(a=Ws[0],a.blockedOn===null);)C5(a),a.blockedOn===null&&Ws.shift()}var gd=is.ReactCurrentBatchConfig,l0=!0;function cH(e,t,a,o){var s=wn,f=gd.transition;gd.transition=null;try{wn=1,FC(e,t,a,o)}finally{wn=s,gd.transition=f}}function fH(e,t,a,o){var s=wn,f=gd.transition;gd.transition=null;try{wn=4,FC(e,t,a,o)}finally{wn=s,gd.transition=f}}function FC(e,t,a,o){if(l0){var s=eC(e,t,a,o);if(s===null)Lw(e,t,o,s0,a),J3(e,o);else if(sH(s,e,t,a,o))o.stopPropagation();else if(J3(e,o),t&4&&-1<lH.indexOf(e)){for(;s!==null;){var f=Rv(s);if(f!==null&&S5(f),f=eC(e,t,a,o),f===null&&Lw(e,t,o,s0,a),f===s)break;s=f}s!==null&&o.stopPropagation()}else Lw(e,t,o,null,a)}}var s0=null;function eC(e,t,a,o){if(s0=null,e=AC(o),e=uc(e),e!==null)if(t=Sc(e),t===null)e=null;else if(a=t.tag,a===13){if(e=d5(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return s0=e,null}function L5(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;case"message":switch(JB()){case NC:return 1;case m5:return 4;case a0:case XB:return 16;case g5:return 536870912;default:return 16}default:return 16}}var Ys=null,jC=null,Yy=null;function T5(){if(Yy)return Yy;var e,t=jC,a=t.length,o,s="value"in Ys?Ys.value:Ys.textContent,f=s.length;for(e=0;e<a&&t[e]===s[e];e++);var p=a-e;for(o=1;o<=p&&t[a-o]===s[f-o];o++);return Yy=s.slice(e,1<o?1-o:void 0)}function qy(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 Py(){return!0}function eO(){return!1}function ka(e){function t(a,o,s,f,p){this._reactName=a,this._targetInst=s,this.type=o,this.nativeEvent=f,this.target=p,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(a=e[h],this[h]=a?a(f):f[h]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Py:eO,this.isPropagationStopped=eO,this}return ar(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Py)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Py)},persist:function(){},isPersistent:Py}),t}var _d={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},UC=ka(_d),Mv=ar({},_d,{view:0,detail:0}),dH=ka(Mv),bw,Sw,Yh,_0=ar({},Mv,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:BC,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!==Yh&&(Yh&&e.type==="mousemove"?(bw=e.screenX-Yh.screenX,Sw=e.screenY-Yh.screenY):Sw=bw=0,Yh=e),bw)},movementY:function(e){return"movementY"in e?e.movementY:Sw}}),tO=ka(_0),pH=ar({},_0,{dataTransfer:0}),hH=ka(pH),vH=ar({},Mv,{relatedTarget:0}),xw=ka(vH),mH=ar({},_d,{animationName:0,elapsedTime:0,pseudoElement:0}),gH=ka(mH),yH=ar({},_d,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bH=ka(yH),SH=ar({},_d,{data:0}),nO=ka(SH),xH={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EH={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"},wH={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CH(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wH[e])?!!t[e]:!1}function BC(){return CH}var LH=ar({},Mv,{key:function(e){if(e.key){var t=xH[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qy(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?EH[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:BC,charCode:function(e){return e.type==="keypress"?qy(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qy(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),TH=ka(LH),_H=ar({},_0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rO=ka(_H),kH=ar({},Mv,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:BC}),MH=ka(kH),RH=ar({},_d,{propertyName:0,elapsedTime:0,pseudoElement:0}),OH=ka(RH),DH=ar({},_0,{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}),PH=ka(DH),AH=[9,13,27,32],HC=es&&"CompositionEvent"in window,iv=null;es&&"documentMode"in document&&(iv=document.documentMode);var NH=es&&"TextEvent"in window&&!iv,_5=es&&(!HC||iv&&8<iv&&11>=iv),iO=String.fromCharCode(32),aO=!1;function k5(e,t){switch(e){case"keyup":return AH.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function M5(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rd=!1;function zH(e,t){switch(e){case"compositionend":return M5(t);case"keypress":return t.which!==32?null:(aO=!0,iO);case"textInput":return e=t.data,e===iO&&aO?null:e;default:return null}}function IH(e,t){if(rd)return e==="compositionend"||!HC&&k5(e,t)?(e=T5(),Yy=jC=Ys=null,rd=!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 _5&&t.locale!=="ko"?null:t.data;default:return null}}var FH={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 oO(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!FH[e.type]:t==="textarea"}function R5(e,t,a,o){l5(o),t=u0(t,"onChange"),0<t.length&&(a=new UC("onChange","change",null,a,o),e.push({event:a,listeners:t}))}var av=null,gv=null;function jH(e){B5(e,0)}function k0(e){var t=od(e);if(e5(t))return e}function UH(e,t){if(e==="change")return t}var O5=!1;es&&(es?(Ny="oninput"in document,Ny||(Ew=document.createElement("div"),Ew.setAttribute("oninput","return;"),Ny=typeof Ew.oninput=="function"),Ay=Ny):Ay=!1,O5=Ay&&(!document.documentMode||9<document.documentMode));var Ay,Ny,Ew;function lO(){av&&(av.detachEvent("onpropertychange",D5),gv=av=null)}function D5(e){if(e.propertyName==="value"&&k0(gv)){var t=[];R5(t,gv,e,AC(e)),f5(jH,t)}}function BH(e,t,a){e==="focusin"?(lO(),av=t,gv=a,av.attachEvent("onpropertychange",D5)):e==="focusout"&&lO()}function HH(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return k0(gv)}function VH(e,t){if(e==="click")return k0(t)}function $H(e,t){if(e==="input"||e==="change")return k0(t)}function WH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Uo=typeof Object.is=="function"?Object.is:WH;function yv(e,t){if(Uo(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var s=a[o];if(!zw.call(t,s)||!Uo(e[s],t[s]))return!1}return!0}function sO(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uO(e,t){var a=sO(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=sO(a)}}function P5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?P5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function A5(){for(var e=window,t=n0();t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=n0(e.document)}return t}function VC(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 GH(e){var t=A5(),a=e.focusedElem,o=e.selectionRange;if(t!==a&&a&&a.ownerDocument&&P5(a.ownerDocument.documentElement,a)){if(o!==null&&VC(a)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in a)a.selectionStart=t,a.selectionEnd=Math.min(e,a.value.length);else if(e=(t=a.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=a.textContent.length,f=Math.min(o.start,s);o=o.end===void 0?f:Math.min(o.end,s),!e.extend&&f>o&&(s=o,o=f,f=s),s=uO(a,f);var p=uO(a,o);s&&p&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==p.node||e.focusOffset!==p.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),f>o?(e.addRange(t),e.extend(p.node,p.offset)):(t.setEnd(p.node,p.offset),e.addRange(t)))}}for(t=[],e=a;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<t.length;a++)e=t[a],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var YH=es&&"documentMode"in document&&11>=document.documentMode,id=null,tC=null,ov=null,nC=!1;function cO(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;nC||id==null||id!==n0(o)||(o=id,"selectionStart"in o&&VC(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ov&&yv(ov,o)||(ov=o,o=u0(tC,"onSelect"),0<o.length&&(t=new UC("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=id)))}function zy(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ad={animationend:zy("Animation","AnimationEnd"),animationiteration:zy("Animation","AnimationIteration"),animationstart:zy("Animation","AnimationStart"),transitionend:zy("Transition","TransitionEnd")},ww={},N5={};es&&(N5=document.createElement("div").style,"AnimationEvent"in window||(delete ad.animationend.animation,delete ad.animationiteration.animation,delete ad.animationstart.animation),"TransitionEvent"in window||delete ad.transitionend.transition);function M0(e){if(ww[e])return ww[e];if(!ad[e])return e;var t=ad[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in N5)return ww[e]=t[a];return e}var z5=M0("animationend"),I5=M0("animationiteration"),F5=M0("animationstart"),j5=M0("transitionend"),U5=new Map,fO="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 au(e,t){U5.set(e,t),bc(t,[e])}for(Iy=0;Iy<fO.length;Iy++)Fy=fO[Iy],dO=Fy.toLowerCase(),pO=Fy[0].toUpperCase()+Fy.slice(1),au(dO,"on"+pO);var Fy,dO,pO,Iy;au(z5,"onAnimationEnd");au(I5,"onAnimationIteration");au(F5,"onAnimationStart");au("dblclick","onDoubleClick");au("focusin","onFocus");au("focusout","onBlur");au(j5,"onTransitionEnd");Sd("onMouseEnter",["mouseout","mouseover"]);Sd("onMouseLeave",["mouseout","mouseover"]);Sd("onPointerEnter",["pointerout","pointerover"]);Sd("onPointerLeave",["pointerout","pointerover"]);bc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));bc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));bc("onBeforeInput",["compositionend","keypress","textInput","paste"]);bc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));bc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));bc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var tv="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(" "),qH=new Set("cancel close invalid load scroll toggle".split(" ").concat(tv));function hO(e,t,a){var o=e.type||"unknown-event";e.currentTarget=a,qB(o,t,void 0,e),e.currentTarget=null}function B5(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],s=o.event;o=o.listeners;e:{var f=void 0;if(t)for(var p=o.length-1;0<=p;p--){var h=o[p],g=h.instance,y=h.currentTarget;if(h=h.listener,g!==f&&s.isPropagationStopped())break e;hO(s,h,y),f=g}else for(p=0;p<o.length;p++){if(h=o[p],g=h.instance,y=h.currentTarget,h=h.listener,g!==f&&s.isPropagationStopped())break e;hO(s,h,y),f=g}}}if(i0)throw e=Kw,i0=!1,Kw=null,e}function Hn(e,t){var a=t[lC];a===void 0&&(a=t[lC]=new Set);var o=e+"__bubble";a.has(o)||(H5(t,e,2,!1),a.add(o))}function Cw(e,t,a){var o=0;t&&(o|=4),H5(a,e,o,t)}var jy="_reactListening"+Math.random().toString(36).slice(2);function bv(e){if(!e[jy]){e[jy]=!0,ZO.forEach(function(a){a!=="selectionchange"&&(qH.has(a)||Cw(a,!1,e),Cw(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jy]||(t[jy]=!0,Cw("selectionchange",!1,t))}}function H5(e,t,a,o){switch(L5(t)){case 1:var s=cH;break;case 4:s=fH;break;default:s=FC}a=s.bind(null,t,a,e),s=void 0,!Qw||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),o?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function Lw(e,t,a,o,s){var f=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var p=o.tag;if(p===3||p===4){var h=o.stateNode.containerInfo;if(h===s||h.nodeType===8&&h.parentNode===s)break;if(p===4)for(p=o.return;p!==null;){var g=p.tag;if((g===3||g===4)&&(g=p.stateNode.containerInfo,g===s||g.nodeType===8&&g.parentNode===s))return;p=p.return}for(;h!==null;){if(p=uc(h),p===null)return;if(g=p.tag,g===5||g===6){o=f=p;continue e}h=h.parentNode}}o=o.return}f5(function(){var y=f,w=AC(a),C=[];e:{var M=U5.get(e);if(M!==void 0){var _=UC,A=e;switch(e){case"keypress":if(qy(a)===0)break e;case"keydown":case"keyup":_=TH;break;case"focusin":A="focus",_=xw;break;case"focusout":A="blur",_=xw;break;case"beforeblur":case"afterblur":_=xw;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=tO;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=hH;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=MH;break;case z5:case I5:case F5:_=gH;break;case j5:_=OH;break;case"scroll":_=dH;break;case"wheel":_=PH;break;case"copy":case"cut":case"paste":_=bH;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=rO}var I=(t&4)!==0,$=!I&&e==="scroll",R=I?M!==null?M+"Capture":null:M;I=[];for(var D=y,E;D!==null;){E=D;var k=E.stateNode;if(E.tag===5&&k!==null&&(E=k,R!==null&&(k=pv(D,R),k!=null&&I.push(Sv(D,k,E)))),$)break;D=D.return}0<I.length&&(M=new _(M,A,null,a,w),C.push({event:M,listeners:I}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",M&&a!==qw&&(A=a.relatedTarget||a.fromElement)&&(uc(A)||A[ts]))break e;if((_||M)&&(M=w.window===w?w:(M=w.ownerDocument)?M.defaultView||M.parentWindow:window,_?(A=a.relatedTarget||a.toElement,_=y,A=A?uc(A):null,A!==null&&($=Sc(A),A!==$||A.tag!==5&&A.tag!==6)&&(A=null)):(_=null,A=y),_!==A)){if(I=tO,k="onMouseLeave",R="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(I=rO,k="onPointerLeave",R="onPointerEnter",D="pointer"),$=_==null?M:od(_),E=A==null?M:od(A),M=new I(k,D+"leave",_,a,w),M.target=$,M.relatedTarget=E,k=null,uc(w)===y&&(I=new I(R,D+"enter",A,a,w),I.target=E,I.relatedTarget=$,k=I),$=k,_&&A)t:{for(I=_,R=A,D=0,E=I;E;E=ed(E))D++;for(E=0,k=R;k;k=ed(k))E++;for(;0<D-E;)I=ed(I),D--;for(;0<E-D;)R=ed(R),E--;for(;D--;){if(I===R||R!==null&&I===R.alternate)break t;I=ed(I),R=ed(R)}I=null}else I=null;_!==null&&vO(C,M,_,I,!1),A!==null&&$!==null&&vO(C,$,A,I,!0)}}e:{if(M=y?od(y):window,_=M.nodeName&&M.nodeName.toLowerCase(),_==="select"||_==="input"&&M.type==="file")var F=UH;else if(oO(M))if(O5)F=$H;else{F=HH;var U=BH}else(_=M.nodeName)&&_.toLowerCase()==="input"&&(M.type==="checkbox"||M.type==="radio")&&(F=VH);if(F&&(F=F(e,y))){R5(C,F,a,w);break e}U&&U(e,M,y),e==="focusout"&&(U=M._wrapperState)&&U.controlled&&M.type==="number"&&Vw(M,"number",M.value)}switch(U=y?od(y):window,e){case"focusin":(oO(U)||U.contentEditable==="true")&&(id=U,tC=y,ov=null);break;case"focusout":ov=tC=id=null;break;case"mousedown":nC=!0;break;case"contextmenu":case"mouseup":case"dragend":nC=!1,cO(C,a,w);break;case"selectionchange":if(YH)break;case"keydown":case"keyup":cO(C,a,w)}var N;if(HC)e:{switch(e){case"compositionstart":var W="onCompositionStart";break e;case"compositionend":W="onCompositionEnd";break e;case"compositionupdate":W="onCompositionUpdate";break e}W=void 0}else rd?k5(e,a)&&(W="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(W="onCompositionStart");W&&(_5&&a.locale!=="ko"&&(rd||W!=="onCompositionStart"?W==="onCompositionEnd"&&rd&&(N=T5()):(Ys=w,jC="value"in Ys?Ys.value:Ys.textContent,rd=!0)),U=u0(y,W),0<U.length&&(W=new nO(W,e,null,a,w),C.push({event:W,listeners:U}),N?W.data=N:(N=M5(a),N!==null&&(W.data=N)))),(N=NH?zH(e,a):IH(e,a))&&(y=u0(y,"onBeforeInput"),0<y.length&&(w=new nO("onBeforeInput","beforeinput",null,a,w),C.push({event:w,listeners:y}),w.data=N))}B5(C,t)})}function Sv(e,t,a){return{instance:e,listener:t,currentTarget:a}}function u0(e,t){for(var a=t+"Capture",o=[];e!==null;){var s=e,f=s.stateNode;s.tag===5&&f!==null&&(s=f,f=pv(e,a),f!=null&&o.unshift(Sv(e,f,s)),f=pv(e,t),f!=null&&o.push(Sv(e,f,s))),e=e.return}return o}function ed(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function vO(e,t,a,o,s){for(var f=t._reactName,p=[];a!==null&&a!==o;){var h=a,g=h.alternate,y=h.stateNode;if(g!==null&&g===o)break;h.tag===5&&y!==null&&(h=y,s?(g=pv(a,f),g!=null&&p.unshift(Sv(a,g,h))):s||(g=pv(a,f),g!=null&&p.push(Sv(a,g,h)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var ZH=/\r\n?/g,QH=/\u0000|\uFFFD/g;function mO(e){return(typeof e=="string"?e:""+e).replace(ZH,`
6
+ `).replace(QH,"")}function Uy(e,t,a){if(t=mO(t),mO(e)!==t&&a)throw Error(ze(425))}function c0(){}var rC=null,iC=null;function aC(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 oC=typeof setTimeout=="function"?setTimeout:void 0,KH=typeof clearTimeout=="function"?clearTimeout:void 0,gO=typeof Promise=="function"?Promise:void 0,JH=typeof queueMicrotask=="function"?queueMicrotask:typeof gO<"u"?function(e){return gO.resolve(null).then(e).catch(XH)}:oC;function XH(e){setTimeout(function(){throw e})}function Tw(e,t){var a=t,o=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(o===0){e.removeChild(s),mv(t);return}o--}else a!=="$"&&a!=="$?"&&a!=="$!"||o++;a=s}while(a);mv(t)}function Js(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 yO(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}var kd=Math.random().toString(36).slice(2),gl="__reactFiber$"+kd,xv="__reactProps$"+kd,ts="__reactContainer$"+kd,lC="__reactEvents$"+kd,eV="__reactListeners$"+kd,tV="__reactHandles$"+kd;function uc(e){var t=e[gl];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ts]||a[gl]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=yO(e);e!==null;){if(a=e[gl])return a;e=yO(e)}return t}e=a,a=e.parentNode}return null}function Rv(e){return e=e[gl]||e[ts],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function od(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ze(33))}function R0(e){return e[xv]||null}var sC=[],ld=-1;function ou(e){return{current:e}}function Vn(e){0>ld||(e.current=sC[ld],sC[ld]=null,ld--)}function zn(e,t){ld++,sC[ld]=e.current,e.current=t}var iu={},wi=ou(iu),na=ou(!1),hc=iu;function xd(e,t){var a=e.type.contextTypes;if(!a)return iu;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var s={},f;for(f in a)s[f]=t[f];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function ra(e){return e=e.childContextTypes,e!=null}function f0(){Vn(na),Vn(wi)}function bO(e,t,a){if(wi.current!==iu)throw Error(ze(168));zn(wi,t),zn(na,a)}function V5(e,t,a){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return a;o=o.getChildContext();for(var s in o)if(!(s in t))throw Error(ze(108,BB(e)||"Unknown",s));return ar({},a,o)}function d0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||iu,hc=wi.current,zn(wi,e),zn(na,na.current),!0}function SO(e,t,a){var o=e.stateNode;if(!o)throw Error(ze(169));a?(e=V5(e,t,hc),o.__reactInternalMemoizedMergedChildContext=e,Vn(na),Vn(wi),zn(wi,e)):Vn(na),zn(na,a)}var Ql=null,O0=!1,_w=!1;function $5(e){Ql===null?Ql=[e]:Ql.push(e)}function nV(e){O0=!0,$5(e)}function lu(){if(!_w&&Ql!==null){_w=!0;var e=0,t=wn;try{var a=Ql;for(wn=1;e<a.length;e++){var o=a[e];do o=o(!0);while(o!==null)}Ql=null,O0=!1}catch(s){throw Ql!==null&&(Ql=Ql.slice(e+1)),v5(NC,lu),s}finally{wn=t,_w=!1}}return null}var sd=[],ud=0,p0=null,h0=0,Xa=[],eo=0,vc=null,Kl=1,Jl="";function lc(e,t){sd[ud++]=h0,sd[ud++]=p0,p0=e,h0=t}function W5(e,t,a){Xa[eo++]=Kl,Xa[eo++]=Jl,Xa[eo++]=vc,vc=e;var o=Kl;e=Jl;var s=32-Fo(o)-1;o&=~(1<<s),a+=1;var f=32-Fo(t)+s;if(30<f){var p=s-s%5;f=(o&(1<<p)-1).toString(32),o>>=p,s-=p,Kl=1<<32-Fo(t)+s|a<<s|o,Jl=f+e}else Kl=1<<f|a<<s|o,Jl=e}function $C(e){e.return!==null&&(lc(e,1),W5(e,1,0))}function WC(e){for(;e===p0;)p0=sd[--ud],sd[ud]=null,h0=sd[--ud],sd[ud]=null;for(;e===vc;)vc=Xa[--eo],Xa[eo]=null,Jl=Xa[--eo],Xa[eo]=null,Kl=Xa[--eo],Xa[eo]=null}var Ta=null,La=null,Qn=!1,Io=null;function G5(e,t){var a=to(5,null,null,0);a.elementType="DELETED",a.stateNode=t,a.return=e,t=e.deletions,t===null?(e.deletions=[a],e.flags|=16):t.push(a)}function xO(e,t){switch(e.tag){case 5:var a=e.type;return t=t.nodeType!==1||a.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ta=e,La=Js(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ta=e,La=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(a=vc!==null?{id:Kl,overflow:Jl}:null,e.memoizedState={dehydrated:t,treeContext:a,retryLane:1073741824},a=to(18,null,null,0),a.stateNode=t,a.return=e,e.child=a,Ta=e,La=null,!0):!1;default:return!1}}function uC(e){return(e.mode&1)!==0&&(e.flags&128)===0}function cC(e){if(Qn){var t=La;if(t){var a=t;if(!xO(e,t)){if(uC(e))throw Error(ze(418));t=Js(a.nextSibling);var o=Ta;t&&xO(e,t)?G5(o,a):(e.flags=e.flags&-4097|2,Qn=!1,Ta=e)}}else{if(uC(e))throw Error(ze(418));e.flags=e.flags&-4097|2,Qn=!1,Ta=e}}}function EO(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ta=e}function By(e){if(e!==Ta)return!1;if(!Qn)return EO(e),Qn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!aC(e.type,e.memoizedProps)),t&&(t=La)){if(uC(e))throw Y5(),Error(ze(418));for(;t;)G5(e,t),t=Js(t.nextSibling)}if(EO(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ze(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"){if(t===0){La=Js(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++}e=e.nextSibling}La=null}}else La=Ta?Js(e.stateNode.nextSibling):null;return!0}function Y5(){for(var e=La;e;)e=Js(e.nextSibling)}function Ed(){La=Ta=null,Qn=!1}function GC(e){Io===null?Io=[e]:Io.push(e)}var rV=is.ReactCurrentBatchConfig;function No(e,t){if(e&&e.defaultProps){t=ar({},t),e=e.defaultProps;for(var a in e)t[a]===void 0&&(t[a]=e[a]);return t}return t}var v0=ou(null),m0=null,fd=null,YC=null;function qC(){YC=fd=m0=null}function ZC(e){var t=v0.current;Vn(v0),e._currentValue=t}function fC(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}}function yd(e,t){m0=e,YC=fd=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ta=!0),e.firstContext=null)}function ro(e){var t=e._currentValue;if(YC!==e)if(e={context:e,memoizedValue:t,next:null},fd===null){if(m0===null)throw Error(ze(308));fd=e,m0.dependencies={lanes:0,firstContext:e}}else fd=fd.next=e;return t}var cc=null;function QC(e){cc===null?cc=[e]:cc.push(e)}function q5(e,t,a,o){var s=t.interleaved;return s===null?(a.next=a,QC(t)):(a.next=s.next,s.next=a),t.interleaved=a,ns(e,o)}function ns(e,t){e.lanes|=t;var a=e.alternate;for(a!==null&&(a.lanes|=t),a=e,e=e.return;e!==null;)e.childLanes|=t,a=e.alternate,a!==null&&(a.childLanes|=t),a=e,e=e.return;return a.tag===3?a.stateNode:null}var $s=!1;function KC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Z5(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 Xl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xs(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Xt&2)!==0){var s=o.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),o.pending=t,ns(e,a)}return s=o.interleaved,s===null?(t.next=t,QC(o)):(t.next=s.next,s.next=t),o.interleaved=t,ns(e,a)}function Zy(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,zC(e,a)}}function wO(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var s=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var p={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};f===null?s=f=p:f=f.next=p,a=a.next}while(a!==null);f===null?s=f=t:f=f.next=t}else s=f=t;a={baseState:o.baseState,firstBaseUpdate:s,lastBaseUpdate:f,shared:o.shared,effects:o.effects},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function g0(e,t,a,o){var s=e.updateQueue;$s=!1;var f=s.firstBaseUpdate,p=s.lastBaseUpdate,h=s.shared.pending;if(h!==null){s.shared.pending=null;var g=h,y=g.next;g.next=null,p===null?f=y:p.next=y,p=g;var w=e.alternate;w!==null&&(w=w.updateQueue,h=w.lastBaseUpdate,h!==p&&(h===null?w.firstBaseUpdate=y:h.next=y,w.lastBaseUpdate=g))}if(f!==null){var C=s.baseState;p=0,w=y=g=null,h=f;do{var M=h.lane,_=h.eventTime;if((o&M)===M){w!==null&&(w=w.next={eventTime:_,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var A=e,I=h;switch(M=t,_=a,I.tag){case 1:if(A=I.payload,typeof A=="function"){C=A.call(_,C,M);break e}C=A;break e;case 3:A.flags=A.flags&-65537|128;case 0:if(A=I.payload,M=typeof A=="function"?A.call(_,C,M):A,M==null)break e;C=ar({},C,M);break e;case 2:$s=!0}}h.callback!==null&&h.lane!==0&&(e.flags|=64,M=s.effects,M===null?s.effects=[h]:M.push(h))}else _={eventTime:_,lane:M,tag:h.tag,payload:h.payload,callback:h.callback,next:null},w===null?(y=w=_,g=C):w=w.next=_,p|=M;if(h=h.next,h===null){if(h=s.shared.pending,h===null)break;M=h,h=M.next,M.next=null,s.lastBaseUpdate=M,s.shared.pending=null}}while(1);if(w===null&&(g=C),s.baseState=g,s.firstBaseUpdate=y,s.lastBaseUpdate=w,t=s.shared.interleaved,t!==null){s=t;do p|=s.lane,s=s.next;while(s!==t)}else f===null&&(s.shared.lanes=0);gc|=p,e.lanes=p,e.memoizedState=C}}function CO(e,t,a){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],s=o.callback;if(s!==null){if(o.callback=null,o=a,typeof s!="function")throw Error(ze(191,s));s.call(o)}}}var Q5=new qO.Component().refs;function dC(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a==null?t:ar({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var D0={isMounted:function(e){return(e=e._reactInternals)?Sc(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Ii(),s=tu(e),f=Xl(o,s);f.payload=t,a!=null&&(f.callback=a),t=Xs(e,f,s),t!==null&&(jo(t,e,s,o),Zy(t,e,s))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Ii(),s=tu(e),f=Xl(o,s);f.tag=1,f.payload=t,a!=null&&(f.callback=a),t=Xs(e,f,s),t!==null&&(jo(t,e,s,o),Zy(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ii(),o=tu(e),s=Xl(a,o);s.tag=2,t!=null&&(s.callback=t),t=Xs(e,s,o),t!==null&&(jo(t,e,o,a),Zy(t,e,o))}};function LO(e,t,a,o,s,f,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,p):t.prototype&&t.prototype.isPureReactComponent?!yv(a,o)||!yv(s,f):!0}function K5(e,t,a){var o=!1,s=iu,f=t.contextType;return typeof f=="object"&&f!==null?f=ro(f):(s=ra(t)?hc:wi.current,o=t.contextTypes,f=(o=o!=null)?xd(e,s):iu),t=new t(a,f),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=D0,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=f),t}function TO(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&D0.enqueueReplaceState(t,t.state,null)}function pC(e,t,a,o){var s=e.stateNode;s.props=a,s.state=e.memoizedState,s.refs=Q5,KC(e);var f=t.contextType;typeof f=="object"&&f!==null?s.context=ro(f):(f=ra(t)?hc:wi.current,s.context=xd(e,f)),s.state=e.memoizedState,f=t.getDerivedStateFromProps,typeof f=="function"&&(dC(e,t,f,a),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&D0.enqueueReplaceState(s,s.state,null),g0(e,a,s,o),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function qh(e,t,a){if(e=a.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(ze(309));var o=a.stateNode}if(!o)throw Error(ze(147,e));var s=o,f=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===f?t.ref:(t=function(p){var h=s.refs;h===Q5&&(h=s.refs={}),p===null?delete h[f]:h[f]=p},t._stringRef=f,t)}if(typeof e!="string")throw Error(ze(284));if(!a._owner)throw Error(ze(290,e))}return e}function Hy(e,t){throw e=Object.prototype.toString.call(t),Error(ze(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _O(e){var t=e._init;return t(e._payload)}function J5(e){function t(R,D){if(e){var E=R.deletions;E===null?(R.deletions=[D],R.flags|=16):E.push(D)}}function a(R,D){if(!e)return null;for(;D!==null;)t(R,D),D=D.sibling;return null}function o(R,D){for(R=new Map;D!==null;)D.key!==null?R.set(D.key,D):R.set(D.index,D),D=D.sibling;return R}function s(R,D){return R=nu(R,D),R.index=0,R.sibling=null,R}function f(R,D,E){return R.index=E,e?(E=R.alternate,E!==null?(E=E.index,E<D?(R.flags|=2,D):E):(R.flags|=2,D)):(R.flags|=1048576,D)}function p(R){return e&&R.alternate===null&&(R.flags|=2),R}function h(R,D,E,k){return D===null||D.tag!==6?(D=Aw(E,R.mode,k),D.return=R,D):(D=s(D,E),D.return=R,D)}function g(R,D,E,k){var F=E.type;return F===nd?w(R,D,E.props.children,k,E.key):D!==null&&(D.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===Vs&&_O(F)===D.type)?(k=s(D,E.props),k.ref=qh(R,D,E),k.return=R,k):(k=t0(E.type,E.key,E.props,null,R.mode,k),k.ref=qh(R,D,E),k.return=R,k)}function y(R,D,E,k){return D===null||D.tag!==4||D.stateNode.containerInfo!==E.containerInfo||D.stateNode.implementation!==E.implementation?(D=Nw(E,R.mode,k),D.return=R,D):(D=s(D,E.children||[]),D.return=R,D)}function w(R,D,E,k,F){return D===null||D.tag!==7?(D=pc(E,R.mode,k,F),D.return=R,D):(D=s(D,E),D.return=R,D)}function C(R,D,E){if(typeof D=="string"&&D!==""||typeof D=="number")return D=Aw(""+D,R.mode,E),D.return=R,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case _y:return E=t0(D.type,D.key,D.props,null,R.mode,E),E.ref=qh(R,null,D),E.return=R,E;case td:return D=Nw(D,R.mode,E),D.return=R,D;case Vs:var k=D._init;return C(R,k(D._payload),E)}if(Xh(D)||$h(D))return D=pc(D,R.mode,E,null),D.return=R,D;Hy(R,D)}return null}function M(R,D,E,k){var F=D!==null?D.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return F!==null?null:h(R,D,""+E,k);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case _y:return E.key===F?g(R,D,E,k):null;case td:return E.key===F?y(R,D,E,k):null;case Vs:return F=E._init,M(R,D,F(E._payload),k)}if(Xh(E)||$h(E))return F!==null?null:w(R,D,E,k,null);Hy(R,E)}return null}function _(R,D,E,k,F){if(typeof k=="string"&&k!==""||typeof k=="number")return R=R.get(E)||null,h(D,R,""+k,F);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case _y:return R=R.get(k.key===null?E:k.key)||null,g(D,R,k,F);case td:return R=R.get(k.key===null?E:k.key)||null,y(D,R,k,F);case Vs:var U=k._init;return _(R,D,E,U(k._payload),F)}if(Xh(k)||$h(k))return R=R.get(E)||null,w(D,R,k,F,null);Hy(D,k)}return null}function A(R,D,E,k){for(var F=null,U=null,N=D,W=D=0,K=null;N!==null&&W<E.length;W++){N.index>W?(K=N,N=null):K=N.sibling;var G=M(R,N,E[W],k);if(G===null){N===null&&(N=K);break}e&&N&&G.alternate===null&&t(R,N),D=f(G,D,W),U===null?F=G:U.sibling=G,U=G,N=K}if(W===E.length)return a(R,N),Qn&&lc(R,W),F;if(N===null){for(;W<E.length;W++)N=C(R,E[W],k),N!==null&&(D=f(N,D,W),U===null?F=N:U.sibling=N,U=N);return Qn&&lc(R,W),F}for(N=o(R,N);W<E.length;W++)K=_(N,R,W,E[W],k),K!==null&&(e&&K.alternate!==null&&N.delete(K.key===null?W:K.key),D=f(K,D,W),U===null?F=K:U.sibling=K,U=K);return e&&N.forEach(function(re){return t(R,re)}),Qn&&lc(R,W),F}function I(R,D,E,k){var F=$h(E);if(typeof F!="function")throw Error(ze(150));if(E=F.call(E),E==null)throw Error(ze(151));for(var U=F=null,N=D,W=D=0,K=null,G=E.next();N!==null&&!G.done;W++,G=E.next()){N.index>W?(K=N,N=null):K=N.sibling;var re=M(R,N,G.value,k);if(re===null){N===null&&(N=K);break}e&&N&&re.alternate===null&&t(R,N),D=f(re,D,W),U===null?F=re:U.sibling=re,U=re,N=K}if(G.done)return a(R,N),Qn&&lc(R,W),F;if(N===null){for(;!G.done;W++,G=E.next())G=C(R,G.value,k),G!==null&&(D=f(G,D,W),U===null?F=G:U.sibling=G,U=G);return Qn&&lc(R,W),F}for(N=o(R,N);!G.done;W++,G=E.next())G=_(N,R,W,G.value,k),G!==null&&(e&&G.alternate!==null&&N.delete(G.key===null?W:G.key),D=f(G,D,W),U===null?F=G:U.sibling=G,U=G);return e&&N.forEach(function(Le){return t(R,Le)}),Qn&&lc(R,W),F}function $(R,D,E,k){if(typeof E=="object"&&E!==null&&E.type===nd&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case _y:e:{for(var F=E.key,U=D;U!==null;){if(U.key===F){if(F=E.type,F===nd){if(U.tag===7){a(R,U.sibling),D=s(U,E.props.children),D.return=R,R=D;break e}}else if(U.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===Vs&&_O(F)===U.type){a(R,U.sibling),D=s(U,E.props),D.ref=qh(R,U,E),D.return=R,R=D;break e}a(R,U);break}else t(R,U);U=U.sibling}E.type===nd?(D=pc(E.props.children,R.mode,k,E.key),D.return=R,R=D):(k=t0(E.type,E.key,E.props,null,R.mode,k),k.ref=qh(R,D,E),k.return=R,R=k)}return p(R);case td:e:{for(U=E.key;D!==null;){if(D.key===U)if(D.tag===4&&D.stateNode.containerInfo===E.containerInfo&&D.stateNode.implementation===E.implementation){a(R,D.sibling),D=s(D,E.children||[]),D.return=R,R=D;break e}else{a(R,D);break}else t(R,D);D=D.sibling}D=Nw(E,R.mode,k),D.return=R,R=D}return p(R);case Vs:return U=E._init,$(R,D,U(E._payload),k)}if(Xh(E))return A(R,D,E,k);if($h(E))return I(R,D,E,k);Hy(R,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,D!==null&&D.tag===6?(a(R,D.sibling),D=s(D,E),D.return=R,R=D):(a(R,D),D=Aw(E,R.mode,k),D.return=R,R=D),p(R)):a(R,D)}return $}var wd=J5(!0),X5=J5(!1),Ov={},bl=ou(Ov),Ev=ou(Ov),wv=ou(Ov);function fc(e){if(e===Ov)throw Error(ze(174));return e}function JC(e,t){switch(zn(wv,t),zn(Ev,e),zn(bl,Ov),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ww(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ww(t,e)}Vn(bl),zn(bl,t)}function Cd(){Vn(bl),Vn(Ev),Vn(wv)}function e4(e){fc(wv.current);var t=fc(bl.current),a=Ww(t,e.type);t!==a&&(zn(Ev,e),zn(bl,a))}function XC(e){Ev.current===e&&(Vn(bl),Vn(Ev))}var rr=ou(0);function y0(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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 kw=[];function eL(){for(var e=0;e<kw.length;e++)kw[e]._workInProgressVersionPrimary=null;kw.length=0}var Qy=is.ReactCurrentDispatcher,Mw=is.ReactCurrentBatchConfig,mc=0,ir=null,Pr=null,Hr=null,b0=!1,lv=!1,Cv=0,iV=0;function Si(){throw Error(ze(321))}function tL(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Uo(e[a],t[a]))return!1;return!0}function nL(e,t,a,o,s,f){if(mc=f,ir=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qy.current=e===null||e.memoizedState===null?sV:uV,e=a(o,s),lv){f=0;do{if(lv=!1,Cv=0,25<=f)throw Error(ze(301));f+=1,Hr=Pr=null,t.updateQueue=null,Qy.current=cV,e=a(o,s)}while(lv)}if(Qy.current=S0,t=Pr!==null&&Pr.next!==null,mc=0,Hr=Pr=ir=null,b0=!1,t)throw Error(ze(300));return e}function rL(){var e=Cv!==0;return Cv=0,e}function ml(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Hr===null?ir.memoizedState=Hr=e:Hr=Hr.next=e,Hr}function io(){if(Pr===null){var e=ir.alternate;e=e!==null?e.memoizedState:null}else e=Pr.next;var t=Hr===null?ir.memoizedState:Hr.next;if(t!==null)Hr=t,Pr=e;else{if(e===null)throw Error(ze(310));Pr=e,e={memoizedState:Pr.memoizedState,baseState:Pr.baseState,baseQueue:Pr.baseQueue,queue:Pr.queue,next:null},Hr===null?ir.memoizedState=Hr=e:Hr=Hr.next=e}return Hr}function Lv(e,t){return typeof t=="function"?t(e):t}function Rw(e){var t=io(),a=t.queue;if(a===null)throw Error(ze(311));a.lastRenderedReducer=e;var o=Pr,s=o.baseQueue,f=a.pending;if(f!==null){if(s!==null){var p=s.next;s.next=f.next,f.next=p}o.baseQueue=s=f,a.pending=null}if(s!==null){f=s.next,o=o.baseState;var h=p=null,g=null,y=f;do{var w=y.lane;if((mc&w)===w)g!==null&&(g=g.next={lane:0,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null}),o=y.hasEagerState?y.eagerState:e(o,y.action);else{var C={lane:w,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null};g===null?(h=g=C,p=o):g=g.next=C,ir.lanes|=w,gc|=w}y=y.next}while(y!==null&&y!==f);g===null?p=o:g.next=h,Uo(o,t.memoizedState)||(ta=!0),t.memoizedState=o,t.baseState=p,t.baseQueue=g,a.lastRenderedState=o}if(e=a.interleaved,e!==null){s=e;do f=s.lane,ir.lanes|=f,gc|=f,s=s.next;while(s!==e)}else s===null&&(a.lanes=0);return[t.memoizedState,a.dispatch]}function Ow(e){var t=io(),a=t.queue;if(a===null)throw Error(ze(311));a.lastRenderedReducer=e;var o=a.dispatch,s=a.pending,f=t.memoizedState;if(s!==null){a.pending=null;var p=s=s.next;do f=e(f,p.action),p=p.next;while(p!==s);Uo(f,t.memoizedState)||(ta=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,o]}function t4(){}function n4(e,t){var a=ir,o=io(),s=t(),f=!Uo(o.memoizedState,s);if(f&&(o.memoizedState=s,ta=!0),o=o.queue,iL(a4.bind(null,a,o,e),[e]),o.getSnapshot!==t||f||Hr!==null&&Hr.memoizedState.tag&1){if(a.flags|=2048,Tv(9,i4.bind(null,a,o,s,t),void 0,null),Vr===null)throw Error(ze(349));(mc&30)!==0||r4(a,t,s)}return s}function r4(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ir.updateQueue,t===null?(t={lastEffect:null,stores:null},ir.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function i4(e,t,a,o){t.value=a,t.getSnapshot=o,o4(t)&&l4(e)}function a4(e,t,a){return a(function(){o4(t)&&l4(e)})}function o4(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Uo(e,a)}catch{return!0}}function l4(e){var t=ns(e,1);t!==null&&jo(t,e,1,-1)}function kO(e){var t=ml();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Lv,lastRenderedState:e},t.queue=e,e=e.dispatch=lV.bind(null,ir,e),[t.memoizedState,e]}function Tv(e,t,a,o){return e={tag:e,create:t,destroy:a,deps:o,next:null},t=ir.updateQueue,t===null?(t={lastEffect:null,stores:null},ir.updateQueue=t,t.lastEffect=e.next=e):(a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e)),e}function s4(){return io().memoizedState}function Ky(e,t,a,o){var s=ml();ir.flags|=e,s.memoizedState=Tv(1|t,a,void 0,o===void 0?null:o)}function P0(e,t,a,o){var s=io();o=o===void 0?null:o;var f=void 0;if(Pr!==null){var p=Pr.memoizedState;if(f=p.destroy,o!==null&&tL(o,p.deps)){s.memoizedState=Tv(t,a,f,o);return}}ir.flags|=e,s.memoizedState=Tv(1|t,a,f,o)}function MO(e,t){return Ky(8390656,8,e,t)}function iL(e,t){return P0(2048,8,e,t)}function u4(e,t){return P0(4,2,e,t)}function c4(e,t){return P0(4,4,e,t)}function f4(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 d4(e,t,a){return a=a!=null?a.concat([e]):null,P0(4,4,f4.bind(null,t,e),a)}function aL(){}function p4(e,t){var a=io();t=t===void 0?null:t;var o=a.memoizedState;return o!==null&&t!==null&&tL(t,o[1])?o[0]:(a.memoizedState=[e,t],e)}function h4(e,t){var a=io();t=t===void 0?null:t;var o=a.memoizedState;return o!==null&&t!==null&&tL(t,o[1])?o[0]:(e=e(),a.memoizedState=[e,t],e)}function v4(e,t,a){return(mc&21)===0?(e.baseState&&(e.baseState=!1,ta=!0),e.memoizedState=a):(Uo(a,t)||(a=y5(),ir.lanes|=a,gc|=a,e.baseState=!0),t)}function aV(e,t){var a=wn;wn=a!==0&&4>a?a:4,e(!0);var o=Mw.transition;Mw.transition={};try{e(!1),t()}finally{wn=a,Mw.transition=o}}function m4(){return io().memoizedState}function oV(e,t,a){var o=tu(e);if(a={lane:o,action:a,hasEagerState:!1,eagerState:null,next:null},g4(e))y4(t,a);else if(a=q5(e,t,a,o),a!==null){var s=Ii();jo(a,e,o,s),b4(a,t,o)}}function lV(e,t,a){var o=tu(e),s={lane:o,action:a,hasEagerState:!1,eagerState:null,next:null};if(g4(e))y4(t,s);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var p=t.lastRenderedState,h=f(p,a);if(s.hasEagerState=!0,s.eagerState=h,Uo(h,p)){var g=t.interleaved;g===null?(s.next=s,QC(t)):(s.next=g.next,g.next=s),t.interleaved=s;return}}catch{}finally{}a=q5(e,t,s,o),a!==null&&(s=Ii(),jo(a,e,o,s),b4(a,t,o))}}function g4(e){var t=e.alternate;return e===ir||t!==null&&t===ir}function y4(e,t){lv=b0=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function b4(e,t,a){if((a&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,zC(e,a)}}var S0={readContext:ro,useCallback:Si,useContext:Si,useEffect:Si,useImperativeHandle:Si,useInsertionEffect:Si,useLayoutEffect:Si,useMemo:Si,useReducer:Si,useRef:Si,useState:Si,useDebugValue:Si,useDeferredValue:Si,useTransition:Si,useMutableSource:Si,useSyncExternalStore:Si,useId:Si,unstable_isNewReconciler:!1},sV={readContext:ro,useCallback:function(e,t){return ml().memoizedState=[e,t===void 0?null:t],e},useContext:ro,useEffect:MO,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,Ky(4194308,4,f4.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ky(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ky(4,2,e,t)},useMemo:function(e,t){var a=ml();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var o=ml();return t=a!==void 0?a(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=oV.bind(null,ir,e),[o.memoizedState,e]},useRef:function(e){var t=ml();return e={current:e},t.memoizedState=e},useState:kO,useDebugValue:aL,useDeferredValue:function(e){return ml().memoizedState=e},useTransition:function(){var e=kO(!1),t=e[0];return e=aV.bind(null,e[1]),ml().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var o=ir,s=ml();if(Qn){if(a===void 0)throw Error(ze(407));a=a()}else{if(a=t(),Vr===null)throw Error(ze(349));(mc&30)!==0||r4(o,t,a)}s.memoizedState=a;var f={value:a,getSnapshot:t};return s.queue=f,MO(a4.bind(null,o,f,e),[e]),o.flags|=2048,Tv(9,i4.bind(null,o,f,a,t),void 0,null),a},useId:function(){var e=ml(),t=Vr.identifierPrefix;if(Qn){var a=Jl,o=Kl;a=(o&~(1<<32-Fo(o)-1)).toString(32)+a,t=":"+t+"R"+a,a=Cv++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=iV++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},uV={readContext:ro,useCallback:p4,useContext:ro,useEffect:iL,useImperativeHandle:d4,useInsertionEffect:u4,useLayoutEffect:c4,useMemo:h4,useReducer:Rw,useRef:s4,useState:function(){return Rw(Lv)},useDebugValue:aL,useDeferredValue:function(e){var t=io();return v4(t,Pr.memoizedState,e)},useTransition:function(){var e=Rw(Lv)[0],t=io().memoizedState;return[e,t]},useMutableSource:t4,useSyncExternalStore:n4,useId:m4,unstable_isNewReconciler:!1},cV={readContext:ro,useCallback:p4,useContext:ro,useEffect:iL,useImperativeHandle:d4,useInsertionEffect:u4,useLayoutEffect:c4,useMemo:h4,useReducer:Ow,useRef:s4,useState:function(){return Ow(Lv)},useDebugValue:aL,useDeferredValue:function(e){var t=io();return Pr===null?t.memoizedState=e:v4(t,Pr.memoizedState,e)},useTransition:function(){var e=Ow(Lv)[0],t=io().memoizedState;return[e,t]},useMutableSource:t4,useSyncExternalStore:n4,useId:m4,unstable_isNewReconciler:!1};function Ld(e,t){try{var a="",o=t;do a+=UB(o),o=o.return;while(o);var s=a}catch(f){s=`
7
+ Error generating stack: `+f.message+`
8
+ `+f.stack}return{value:e,source:t,stack:s,digest:null}}function Dw(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function hC(e,t){try{console.error(t.value)}catch(a){setTimeout(function(){throw a})}}var fV=typeof WeakMap=="function"?WeakMap:Map;function S4(e,t,a){a=Xl(-1,a),a.tag=3,a.payload={element:null};var o=t.value;return a.callback=function(){E0||(E0=!0,CC=o),hC(e,t)},a}function x4(e,t,a){a=Xl(-1,a),a.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var s=t.value;a.payload=function(){return o(s)},a.callback=function(){hC(e,t)}}var f=e.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(a.callback=function(){hC(e,t),typeof o!="function"&&(eu===null?eu=new Set([this]):eu.add(this));var p=t.stack;this.componentDidCatch(t.value,{componentStack:p!==null?p:""})}),a}function RO(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new fV;var s=new Set;o.set(t,s)}else s=o.get(t),s===void 0&&(s=new Set,o.set(t,s));s.has(a)||(s.add(a),e=LV.bind(null,e,t,a),t.then(e,e))}function OO(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 DO(e,t,a,o,s){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(t=Xl(-1,1),t.tag=2,Xs(a,t,1))),a.lanes|=1),e):(e.flags|=65536,e.lanes=s,e)}var dV=is.ReactCurrentOwner,ta=!1;function zi(e,t,a,o){t.child=e===null?X5(t,null,a,o):wd(t,e.child,a,o)}function PO(e,t,a,o,s){a=a.render;var f=t.ref;return yd(t,s),o=nL(e,t,a,o,f,s),a=rL(),e!==null&&!ta?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,rs(e,t,s)):(Qn&&a&&$C(t),t.flags|=1,zi(e,t,o,s),t.child)}function AO(e,t,a,o,s){if(e===null){var f=a.type;return typeof f=="function"&&!pL(f)&&f.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=f,E4(e,t,f,o,s)):(e=t0(a.type,null,o,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,(e.lanes&s)===0){var p=f.memoizedProps;if(a=a.compare,a=a!==null?a:yv,a(p,o)&&e.ref===t.ref)return rs(e,t,s)}return t.flags|=1,e=nu(f,o),e.ref=t.ref,e.return=t,t.child=e}function E4(e,t,a,o,s){if(e!==null){var f=e.memoizedProps;if(yv(f,o)&&e.ref===t.ref)if(ta=!1,t.pendingProps=o=f,(e.lanes&s)!==0)(e.flags&131072)!==0&&(ta=!0);else return t.lanes=e.lanes,rs(e,t,s)}return vC(e,t,a,o,s)}function w4(e,t,a){var o=t.pendingProps,s=o.children,f=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},zn(pd,Ca),Ca|=a;else{if((a&1073741824)===0)return e=f!==null?f.baseLanes|a:a,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,zn(pd,Ca),Ca|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=f!==null?f.baseLanes:a,zn(pd,Ca),Ca|=o}else f!==null?(o=f.baseLanes|a,t.memoizedState=null):o=a,zn(pd,Ca),Ca|=o;return zi(e,t,s,a),t.child}function C4(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function vC(e,t,a,o,s){var f=ra(a)?hc:wi.current;return f=xd(t,f),yd(t,s),a=nL(e,t,a,o,f,s),o=rL(),e!==null&&!ta?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,rs(e,t,s)):(Qn&&o&&$C(t),t.flags|=1,zi(e,t,a,s),t.child)}function NO(e,t,a,o,s){if(ra(a)){var f=!0;d0(t)}else f=!1;if(yd(t,s),t.stateNode===null)Jy(e,t),K5(t,a,o),pC(t,a,o,s),o=!0;else if(e===null){var p=t.stateNode,h=t.memoizedProps;p.props=h;var g=p.context,y=a.contextType;typeof y=="object"&&y!==null?y=ro(y):(y=ra(a)?hc:wi.current,y=xd(t,y));var w=a.getDerivedStateFromProps,C=typeof w=="function"||typeof p.getSnapshotBeforeUpdate=="function";C||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(h!==o||g!==y)&&TO(t,p,o,y),$s=!1;var M=t.memoizedState;p.state=M,g0(t,o,p,s),g=t.memoizedState,h!==o||M!==g||na.current||$s?(typeof w=="function"&&(dC(t,a,w,o),g=t.memoizedState),(h=$s||LO(t,a,h,o,M,g,y))?(C||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(t.flags|=4194308)):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=g),p.props=o,p.state=g,p.context=y,o=h):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{p=t.stateNode,Z5(e,t),h=t.memoizedProps,y=t.type===t.elementType?h:No(t.type,h),p.props=y,C=t.pendingProps,M=p.context,g=a.contextType,typeof g=="object"&&g!==null?g=ro(g):(g=ra(a)?hc:wi.current,g=xd(t,g));var _=a.getDerivedStateFromProps;(w=typeof _=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(h!==C||M!==g)&&TO(t,p,o,g),$s=!1,M=t.memoizedState,p.state=M,g0(t,o,p,s);var A=t.memoizedState;h!==C||M!==A||na.current||$s?(typeof _=="function"&&(dC(t,a,_,o),A=t.memoizedState),(y=$s||LO(t,a,y,o,M,A,g)||!1)?(w||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,A,g),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,A,g)),typeof p.componentDidUpdate=="function"&&(t.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof p.componentDidUpdate!="function"||h===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=A),p.props=o,p.state=A,p.context=g,o=y):(typeof p.componentDidUpdate!="function"||h===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),o=!1)}return mC(e,t,a,o,f,s)}function mC(e,t,a,o,s,f){C4(e,t);var p=(t.flags&128)!==0;if(!o&&!p)return s&&SO(t,a,!1),rs(e,t,f);o=t.stateNode,dV.current=t;var h=p&&typeof a.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&p?(t.child=wd(t,e.child,null,f),t.child=wd(t,null,h,f)):zi(e,t,h,f),t.memoizedState=o.state,s&&SO(t,a,!0),t.child}function L4(e){var t=e.stateNode;t.pendingContext?bO(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bO(e,t.context,!1),JC(e,t.containerInfo)}function zO(e,t,a,o,s){return Ed(),GC(s),t.flags|=256,zi(e,t,a,o),t.child}var gC={dehydrated:null,treeContext:null,retryLane:0};function yC(e){return{baseLanes:e,cachePool:null,transitions:null}}function T4(e,t,a){var o=t.pendingProps,s=rr.current,f=!1,p=(t.flags&128)!==0,h;if((h=p)||(h=e!==null&&e.memoizedState===null?!1:(s&2)!==0),h?(f=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),zn(rr,s&1),e===null)return cC(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(p=o.children,e=o.fallback,f?(o=t.mode,f=t.child,p={mode:"hidden",children:p},(o&1)===0&&f!==null?(f.childLanes=0,f.pendingProps=p):f=z0(p,o,0,null),e=pc(e,o,a,null),f.return=t,e.return=t,f.sibling=e,t.child=f,t.child.memoizedState=yC(a),t.memoizedState=gC,e):oL(t,p));if(s=e.memoizedState,s!==null&&(h=s.dehydrated,h!==null))return pV(e,t,p,o,h,s,a);if(f){f=o.fallback,p=t.mode,s=e.child,h=s.sibling;var g={mode:"hidden",children:o.children};return(p&1)===0&&t.child!==s?(o=t.child,o.childLanes=0,o.pendingProps=g,t.deletions=null):(o=nu(s,g),o.subtreeFlags=s.subtreeFlags&14680064),h!==null?f=nu(h,f):(f=pc(f,p,a,null),f.flags|=2),f.return=t,o.return=t,o.sibling=f,t.child=o,o=f,f=t.child,p=e.child.memoizedState,p=p===null?yC(a):{baseLanes:p.baseLanes|a,cachePool:null,transitions:p.transitions},f.memoizedState=p,f.childLanes=e.childLanes&~a,t.memoizedState=gC,o}return f=e.child,e=f.sibling,o=nu(f,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=a),o.return=t,o.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=o,t.memoizedState=null,o}function oL(e,t){return t=z0({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vy(e,t,a,o){return o!==null&&GC(o),wd(t,e.child,null,a),e=oL(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pV(e,t,a,o,s,f,p){if(a)return t.flags&256?(t.flags&=-257,o=Dw(Error(ze(422))),Vy(e,t,p,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(f=o.fallback,s=t.mode,o=z0({mode:"visible",children:o.children},s,0,null),f=pc(f,s,p,null),f.flags|=2,o.return=t,f.return=t,o.sibling=f,t.child=o,(t.mode&1)!==0&&wd(t,e.child,null,p),t.child.memoizedState=yC(p),t.memoizedState=gC,f);if((t.mode&1)===0)return Vy(e,t,p,null);if(s.data==="$!"){if(o=s.nextSibling&&s.nextSibling.dataset,o)var h=o.dgst;return o=h,f=Error(ze(419)),o=Dw(f,o,void 0),Vy(e,t,p,o)}if(h=(p&e.childLanes)!==0,ta||h){if(o=Vr,o!==null){switch(p&-p){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=(s&(o.suspendedLanes|p))!==0?0:s,s!==0&&s!==f.retryLane&&(f.retryLane=s,ns(e,s),jo(o,e,s,-1))}return dL(),o=Dw(Error(ze(421))),Vy(e,t,p,o)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=TV.bind(null,e),s._reactRetry=t,null):(e=f.treeContext,La=Js(s.nextSibling),Ta=t,Qn=!0,Io=null,e!==null&&(Xa[eo++]=Kl,Xa[eo++]=Jl,Xa[eo++]=vc,Kl=e.id,Jl=e.overflow,vc=t),t=oL(t,o.children),t.flags|=4096,t)}function IO(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),fC(e.return,t,a)}function Pw(e,t,a,o,s){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:s}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=o,f.tail=a,f.tailMode=s)}function _4(e,t,a){var o=t.pendingProps,s=o.revealOrder,f=o.tail;if(zi(e,t,o.children,a),o=rr.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&IO(e,a,t);else if(e.tag===19)IO(e,a,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}o&=1}if(zn(rr,o),(t.mode&1)===0)t.memoizedState=null;else switch(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&y0(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),Pw(t,!1,s,a,f);break;case"backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&y0(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}Pw(t,!0,a,null,f);break;case"together":Pw(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Jy(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rs(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),gc|=t.lanes,(a&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(ze(153));if(t.child!==null){for(e=t.child,a=nu(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=nu(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function hV(e,t,a){switch(t.tag){case 3:L4(t),Ed();break;case 5:e4(t);break;case 1:ra(t.type)&&d0(t);break;case 4:JC(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,s=t.memoizedProps.value;zn(v0,o._currentValue),o._currentValue=s;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(zn(rr,rr.current&1),t.flags|=128,null):(a&t.child.childLanes)!==0?T4(e,t,a):(zn(rr,rr.current&1),e=rs(e,t,a),e!==null?e.sibling:null);zn(rr,rr.current&1);break;case 19:if(o=(a&t.childLanes)!==0,(e.flags&128)!==0){if(o)return _4(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),zn(rr,rr.current),o)break;return null;case 22:case 23:return t.lanes=0,w4(e,t,a)}return rs(e,t,a)}var k4,bC,M4,R4;k4=function(e,t){for(var a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}};bC=function(){};M4=function(e,t,a,o){var s=e.memoizedProps;if(s!==o){e=t.stateNode,fc(bl.current);var f=null;switch(a){case"input":s=Bw(e,s),o=Bw(e,o),f=[];break;case"select":s=ar({},s,{value:void 0}),o=ar({},o,{value:void 0}),f=[];break;case"textarea":s=$w(e,s),o=$w(e,o),f=[];break;default:typeof s.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=c0)}Gw(a,o);var p;a=null;for(y in s)if(!o.hasOwnProperty(y)&&s.hasOwnProperty(y)&&s[y]!=null)if(y==="style"){var h=s[y];for(p in h)h.hasOwnProperty(p)&&(a||(a={}),a[p]="")}else y!=="dangerouslySetInnerHTML"&&y!=="children"&&y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(fv.hasOwnProperty(y)?f||(f=[]):(f=f||[]).push(y,null));for(y in o){var g=o[y];if(h=s!=null?s[y]:void 0,o.hasOwnProperty(y)&&g!==h&&(g!=null||h!=null))if(y==="style")if(h){for(p in h)!h.hasOwnProperty(p)||g&&g.hasOwnProperty(p)||(a||(a={}),a[p]="");for(p in g)g.hasOwnProperty(p)&&h[p]!==g[p]&&(a||(a={}),a[p]=g[p])}else a||(f||(f=[]),f.push(y,a)),a=g;else y==="dangerouslySetInnerHTML"?(g=g?g.__html:void 0,h=h?h.__html:void 0,g!=null&&h!==g&&(f=f||[]).push(y,g)):y==="children"?typeof g!="string"&&typeof g!="number"||(f=f||[]).push(y,""+g):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&(fv.hasOwnProperty(y)?(g!=null&&y==="onScroll"&&Hn("scroll",e),f||h===g||(f=[])):(f=f||[]).push(y,g))}a&&(f=f||[]).push("style",a);var y=f;(t.updateQueue=y)&&(t.flags|=4)}};R4=function(e,t,a,o){a!==o&&(t.flags|=4)};function Zh(e,t){if(!Qn)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function xi(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags&14680064,o|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function vV(e,t,a){var o=t.pendingProps;switch(WC(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xi(t),null;case 1:return ra(t.type)&&f0(),xi(t),null;case 3:return o=t.stateNode,Cd(),Vn(na),Vn(wi),eL(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(By(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Io!==null&&(_C(Io),Io=null))),bC(e,t),xi(t),null;case 5:XC(t);var s=fc(wv.current);if(a=t.type,e!==null&&t.stateNode!=null)M4(e,t,a,o,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(ze(166));return xi(t),null}if(e=fc(bl.current),By(t)){o=t.stateNode,a=t.type;var f=t.memoizedProps;switch(o[gl]=t,o[xv]=f,e=(t.mode&1)!==0,a){case"dialog":Hn("cancel",o),Hn("close",o);break;case"iframe":case"object":case"embed":Hn("load",o);break;case"video":case"audio":for(s=0;s<tv.length;s++)Hn(tv[s],o);break;case"source":Hn("error",o);break;case"img":case"image":case"link":Hn("error",o),Hn("load",o);break;case"details":Hn("toggle",o);break;case"input":W3(o,f),Hn("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!f.multiple},Hn("invalid",o);break;case"textarea":Y3(o,f),Hn("invalid",o)}Gw(a,f),s=null;for(var p in f)if(f.hasOwnProperty(p)){var h=f[p];p==="children"?typeof h=="string"?o.textContent!==h&&(f.suppressHydrationWarning!==!0&&Uy(o.textContent,h,e),s=["children",h]):typeof h=="number"&&o.textContent!==""+h&&(f.suppressHydrationWarning!==!0&&Uy(o.textContent,h,e),s=["children",""+h]):fv.hasOwnProperty(p)&&h!=null&&p==="onScroll"&&Hn("scroll",o)}switch(a){case"input":ky(o),G3(o,f,!0);break;case"textarea":ky(o),q3(o);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(o.onclick=c0)}o=s,t.updateQueue=o,o!==null&&(t.flags|=4)}else{p=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=r5(a)),e==="http://www.w3.org/1999/xhtml"?a==="script"?(e=p.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=p.createElement(a,{is:o.is}):(e=p.createElement(a),a==="select"&&(p=e,o.multiple?p.multiple=!0:o.size&&(p.size=o.size))):e=p.createElementNS(e,a),e[gl]=t,e[xv]=o,k4(e,t,!1,!1),t.stateNode=e;e:{switch(p=Yw(a,o),a){case"dialog":Hn("cancel",e),Hn("close",e),s=o;break;case"iframe":case"object":case"embed":Hn("load",e),s=o;break;case"video":case"audio":for(s=0;s<tv.length;s++)Hn(tv[s],e);s=o;break;case"source":Hn("error",e),s=o;break;case"img":case"image":case"link":Hn("error",e),Hn("load",e),s=o;break;case"details":Hn("toggle",e),s=o;break;case"input":W3(e,o),s=Bw(e,o),Hn("invalid",e);break;case"option":s=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},s=ar({},o,{value:void 0}),Hn("invalid",e);break;case"textarea":Y3(e,o),s=$w(e,o),Hn("invalid",e);break;default:s=o}Gw(a,s),h=s;for(f in h)if(h.hasOwnProperty(f)){var g=h[f];f==="style"?o5(e,g):f==="dangerouslySetInnerHTML"?(g=g?g.__html:void 0,g!=null&&i5(e,g)):f==="children"?typeof g=="string"?(a!=="textarea"||g!=="")&&dv(e,g):typeof g=="number"&&dv(e,""+g):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(fv.hasOwnProperty(f)?g!=null&&f==="onScroll"&&Hn("scroll",e):g!=null&&RC(e,f,g,p))}switch(a){case"input":ky(e),G3(e,o,!1);break;case"textarea":ky(e),q3(e);break;case"option":o.value!=null&&e.setAttribute("value",""+ru(o.value));break;case"select":e.multiple=!!o.multiple,f=o.value,f!=null?hd(e,!!o.multiple,f,!1):o.defaultValue!=null&&hd(e,!!o.multiple,o.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=c0)}switch(a){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xi(t),null;case 6:if(e&&t.stateNode!=null)R4(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(ze(166));if(a=fc(wv.current),fc(bl.current),By(t)){if(o=t.stateNode,a=t.memoizedProps,o[gl]=t,(f=o.nodeValue!==a)&&(e=Ta,e!==null))switch(e.tag){case 3:Uy(o.nodeValue,a,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Uy(o.nodeValue,a,(e.mode&1)!==0)}f&&(t.flags|=4)}else o=(a.nodeType===9?a:a.ownerDocument).createTextNode(o),o[gl]=t,t.stateNode=o}return xi(t),null;case 13:if(Vn(rr),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Qn&&La!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Y5(),Ed(),t.flags|=98560,f=!1;else if(f=By(t),o!==null&&o.dehydrated!==null){if(e===null){if(!f)throw Error(ze(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(ze(317));f[gl]=t}else Ed(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;xi(t),f=!1}else Io!==null&&(_C(Io),Io=null),f=!0;if(!f)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=a,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(rr.current&1)!==0?Ar===0&&(Ar=3):dL())),t.updateQueue!==null&&(t.flags|=4),xi(t),null);case 4:return Cd(),bC(e,t),e===null&&bv(t.stateNode.containerInfo),xi(t),null;case 10:return ZC(t.type._context),xi(t),null;case 17:return ra(t.type)&&f0(),xi(t),null;case 19:if(Vn(rr),f=t.memoizedState,f===null)return xi(t),null;if(o=(t.flags&128)!==0,p=f.rendering,p===null)if(o)Zh(f,!1);else{if(Ar!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(p=y0(e),p!==null){for(t.flags|=128,Zh(f,!1),o=p.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=a,a=t.child;a!==null;)f=a,e=o,f.flags&=14680066,p=f.alternate,p===null?(f.childLanes=0,f.lanes=e,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=p.childLanes,f.lanes=p.lanes,f.child=p.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=p.memoizedProps,f.memoizedState=p.memoizedState,f.updateQueue=p.updateQueue,f.type=p.type,e=p.dependencies,f.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),a=a.sibling;return zn(rr,rr.current&1|2),t.child}e=e.sibling}f.tail!==null&&vr()>Td&&(t.flags|=128,o=!0,Zh(f,!1),t.lanes=4194304)}else{if(!o)if(e=y0(p),e!==null){if(t.flags|=128,o=!0,a=e.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),Zh(f,!0),f.tail===null&&f.tailMode==="hidden"&&!p.alternate&&!Qn)return xi(t),null}else 2*vr()-f.renderingStartTime>Td&&a!==1073741824&&(t.flags|=128,o=!0,Zh(f,!1),t.lanes=4194304);f.isBackwards?(p.sibling=t.child,t.child=p):(a=f.last,a!==null?a.sibling=p:t.child=p,f.last=p)}return f.tail!==null?(t=f.tail,f.rendering=t,f.tail=t.sibling,f.renderingStartTime=vr(),t.sibling=null,a=rr.current,zn(rr,o?a&1|2:a&1),t):(xi(t),null);case 22:case 23:return fL(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(Ca&1073741824)!==0&&(xi(t),t.subtreeFlags&6&&(t.flags|=8192)):xi(t),null;case 24:return null;case 25:return null}throw Error(ze(156,t.tag))}function mV(e,t){switch(WC(t),t.tag){case 1:return ra(t.type)&&f0(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cd(),Vn(na),Vn(wi),eL(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return XC(t),null;case 13:if(Vn(rr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ze(340));Ed()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Vn(rr),null;case 4:return Cd(),null;case 10:return ZC(t.type._context),null;case 22:case 23:return fL(),null;case 24:return null;default:return null}}var $y=!1,Ei=!1,gV=typeof WeakSet=="function"?WeakSet:Set,it=null;function dd(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(o){cr(e,t,o)}else a.current=null}function SC(e,t,a){try{a()}catch(o){cr(e,t,o)}}var FO=!1;function yV(e,t){if(rC=l0,e=A5(),VC(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var s=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var p=0,h=-1,g=-1,y=0,w=0,C=e,M=null;t:for(;;){for(var _;C!==a||s!==0&&C.nodeType!==3||(h=p+s),C!==f||o!==0&&C.nodeType!==3||(g=p+o),C.nodeType===3&&(p+=C.nodeValue.length),(_=C.firstChild)!==null;)M=C,C=_;for(;;){if(C===e)break t;if(M===a&&++y===s&&(h=p),M===f&&++w===o&&(g=p),(_=C.nextSibling)!==null)break;C=M,M=C.parentNode}C=_}a=h===-1||g===-1?null:{start:h,end:g}}else a=null}a=a||{start:0,end:0}}else a=null;for(iC={focusedElem:e,selectionRange:a},l0=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){t=it;try{var A=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(A!==null){var I=A.memoizedProps,$=A.memoizedState,R=t.stateNode,D=R.getSnapshotBeforeUpdate(t.elementType===t.type?I:No(t.type,I),$);R.__reactInternalSnapshotBeforeUpdate=D}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ze(163))}}catch(k){cr(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,it=e;break}it=t.return}return A=FO,FO=!1,A}function sv(e,t,a){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var s=o=o.next;do{if((s.tag&e)===e){var f=s.destroy;s.destroy=void 0,f!==void 0&&SC(t,a,f)}s=s.next}while(s!==o)}}function A0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var a=t=t.next;do{if((a.tag&e)===e){var o=a.create;a.destroy=o()}a=a.next}while(a!==t)}}function xC(e){var t=e.ref;if(t!==null){var a=e.stateNode;switch(e.tag){case 5:e=a;break;default:e=a}typeof t=="function"?t(e):t.current=e}}function O4(e){var t=e.alternate;t!==null&&(e.alternate=null,O4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gl],delete t[xv],delete t[lC],delete t[eV],delete t[tV])),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 D4(e){return e.tag===5||e.tag===3||e.tag===4}function jO(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||D4(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 EC(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(e,a)):(t=a,t.appendChild(e)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=c0));else if(o!==4&&(e=e.child,e!==null))for(EC(e,t,a),e=e.sibling;e!==null;)EC(e,t,a),e=e.sibling}function wC(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(wC(e,t,a),e=e.sibling;e!==null;)wC(e,t,a),e=e.sibling}var ai=null,zo=!1;function Hs(e,t,a){for(a=a.child;a!==null;)P4(e,t,a),a=a.sibling}function P4(e,t,a){if(yl&&typeof yl.onCommitFiberUnmount=="function")try{yl.onCommitFiberUnmount(T0,a)}catch{}switch(a.tag){case 5:Ei||dd(a,t);case 6:var o=ai,s=zo;ai=null,Hs(e,t,a),ai=o,zo=s,ai!==null&&(zo?(e=ai,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):ai.removeChild(a.stateNode));break;case 18:ai!==null&&(zo?(e=ai,a=a.stateNode,e.nodeType===8?Tw(e.parentNode,a):e.nodeType===1&&Tw(e,a),mv(e)):Tw(ai,a.stateNode));break;case 4:o=ai,s=zo,ai=a.stateNode.containerInfo,zo=!0,Hs(e,t,a),ai=o,zo=s;break;case 0:case 11:case 14:case 15:if(!Ei&&(o=a.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){s=o=o.next;do{var f=s,p=f.destroy;f=f.tag,p!==void 0&&((f&2)!==0||(f&4)!==0)&&SC(a,t,p),s=s.next}while(s!==o)}Hs(e,t,a);break;case 1:if(!Ei&&(dd(a,t),o=a.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=a.memoizedProps,o.state=a.memoizedState,o.componentWillUnmount()}catch(h){cr(a,t,h)}Hs(e,t,a);break;case 21:Hs(e,t,a);break;case 22:a.mode&1?(Ei=(o=Ei)||a.memoizedState!==null,Hs(e,t,a),Ei=o):Hs(e,t,a);break;default:Hs(e,t,a)}}function UO(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new gV),t.forEach(function(o){var s=_V.bind(null,e,o);a.has(o)||(a.add(o),o.then(s,s))})}}function Ao(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var s=a[o];try{var f=e,p=t,h=p;e:for(;h!==null;){switch(h.tag){case 5:ai=h.stateNode,zo=!1;break e;case 3:ai=h.stateNode.containerInfo,zo=!0;break e;case 4:ai=h.stateNode.containerInfo,zo=!0;break e}h=h.return}if(ai===null)throw Error(ze(160));P4(f,p,s),ai=null,zo=!1;var g=s.alternate;g!==null&&(g.return=null),s.return=null}catch(y){cr(s,t,y)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)A4(t,e),t=t.sibling}function A4(e,t){var a=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ao(t,e),vl(e),o&4){try{sv(3,e,e.return),A0(3,e)}catch(I){cr(e,e.return,I)}try{sv(5,e,e.return)}catch(I){cr(e,e.return,I)}}break;case 1:Ao(t,e),vl(e),o&512&&a!==null&&dd(a,a.return);break;case 5:if(Ao(t,e),vl(e),o&512&&a!==null&&dd(a,a.return),e.flags&32){var s=e.stateNode;try{dv(s,"")}catch(I){cr(e,e.return,I)}}if(o&4&&(s=e.stateNode,s!=null)){var f=e.memoizedProps,p=a!==null?a.memoizedProps:f,h=e.type,g=e.updateQueue;if(e.updateQueue=null,g!==null)try{h==="input"&&f.type==="radio"&&f.name!=null&&t5(s,f),Yw(h,p);var y=Yw(h,f);for(p=0;p<g.length;p+=2){var w=g[p],C=g[p+1];w==="style"?o5(s,C):w==="dangerouslySetInnerHTML"?i5(s,C):w==="children"?dv(s,C):RC(s,w,C,y)}switch(h){case"input":Hw(s,f);break;case"textarea":n5(s,f);break;case"select":var M=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!f.multiple;var _=f.value;_!=null?hd(s,!!f.multiple,_,!1):M!==!!f.multiple&&(f.defaultValue!=null?hd(s,!!f.multiple,f.defaultValue,!0):hd(s,!!f.multiple,f.multiple?[]:"",!1))}s[xv]=f}catch(I){cr(e,e.return,I)}}break;case 6:if(Ao(t,e),vl(e),o&4){if(e.stateNode===null)throw Error(ze(162));s=e.stateNode,f=e.memoizedProps;try{s.nodeValue=f}catch(I){cr(e,e.return,I)}}break;case 3:if(Ao(t,e),vl(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{mv(t.containerInfo)}catch(I){cr(e,e.return,I)}break;case 4:Ao(t,e),vl(e);break;case 13:Ao(t,e),vl(e),s=e.child,s.flags&8192&&(f=s.memoizedState!==null,s.stateNode.isHidden=f,!f||s.alternate!==null&&s.alternate.memoizedState!==null||(uL=vr())),o&4&&UO(e);break;case 22:if(w=a!==null&&a.memoizedState!==null,e.mode&1?(Ei=(y=Ei)||w,Ao(t,e),Ei=y):Ao(t,e),vl(e),o&8192){if(y=e.memoizedState!==null,(e.stateNode.isHidden=y)&&!w&&(e.mode&1)!==0)for(it=e,w=e.child;w!==null;){for(C=it=w;it!==null;){switch(M=it,_=M.child,M.tag){case 0:case 11:case 14:case 15:sv(4,M,M.return);break;case 1:dd(M,M.return);var A=M.stateNode;if(typeof A.componentWillUnmount=="function"){o=M,a=M.return;try{t=o,A.props=t.memoizedProps,A.state=t.memoizedState,A.componentWillUnmount()}catch(I){cr(o,a,I)}}break;case 5:dd(M,M.return);break;case 22:if(M.memoizedState!==null){HO(C);continue}}_!==null?(_.return=M,it=_):HO(C)}w=w.sibling}e:for(w=null,C=e;;){if(C.tag===5){if(w===null){w=C;try{s=C.stateNode,y?(f=s.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(h=C.stateNode,g=C.memoizedProps.style,p=g!=null&&g.hasOwnProperty("display")?g.display:null,h.style.display=a5("display",p))}catch(I){cr(e,e.return,I)}}}else if(C.tag===6){if(w===null)try{C.stateNode.nodeValue=y?"":C.memoizedProps}catch(I){cr(e,e.return,I)}}else if((C.tag!==22&&C.tag!==23||C.memoizedState===null||C===e)&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===e)break e;for(;C.sibling===null;){if(C.return===null||C.return===e)break e;w===C&&(w=null),C=C.return}w===C&&(w=null),C.sibling.return=C.return,C=C.sibling}}break;case 19:Ao(t,e),vl(e),o&4&&UO(e);break;case 21:break;default:Ao(t,e),vl(e)}}function vl(e){var t=e.flags;if(t&2){try{e:{for(var a=e.return;a!==null;){if(D4(a)){var o=a;break e}a=a.return}throw Error(ze(160))}switch(o.tag){case 5:var s=o.stateNode;o.flags&32&&(dv(s,""),o.flags&=-33);var f=jO(e);wC(e,f,s);break;case 3:case 4:var p=o.stateNode.containerInfo,h=jO(e);EC(e,h,p);break;default:throw Error(ze(161))}}catch(g){cr(e,e.return,g)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bV(e,t,a){it=e,N4(e,t,a)}function N4(e,t,a){for(var o=(e.mode&1)!==0;it!==null;){var s=it,f=s.child;if(s.tag===22&&o){var p=s.memoizedState!==null||$y;if(!p){var h=s.alternate,g=h!==null&&h.memoizedState!==null||Ei;h=$y;var y=Ei;if($y=p,(Ei=g)&&!y)for(it=s;it!==null;)p=it,g=p.child,p.tag===22&&p.memoizedState!==null?VO(s):g!==null?(g.return=p,it=g):VO(s);for(;f!==null;)it=f,N4(f,t,a),f=f.sibling;it=s,$y=h,Ei=y}BO(e,t,a)}else(s.subtreeFlags&8772)!==0&&f!==null?(f.return=s,it=f):BO(e,t,a)}}function BO(e){for(;it!==null;){var t=it;if((t.flags&8772)!==0){var a=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ei||A0(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!Ei)if(a===null)o.componentDidMount();else{var s=t.elementType===t.type?a.memoizedProps:No(t.type,a.memoizedProps);o.componentDidUpdate(s,a.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var f=t.updateQueue;f!==null&&CO(t,f,o);break;case 3:var p=t.updateQueue;if(p!==null){if(a=null,t.child!==null)switch(t.child.tag){case 5:a=t.child.stateNode;break;case 1:a=t.child.stateNode}CO(t,p,a)}break;case 5:var h=t.stateNode;if(a===null&&t.flags&4){a=h;var g=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":g.autoFocus&&a.focus();break;case"img":g.src&&(a.src=g.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var y=t.alternate;if(y!==null){var w=y.memoizedState;if(w!==null){var C=w.dehydrated;C!==null&&mv(C)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ze(163))}Ei||t.flags&512&&xC(t)}catch(M){cr(t,t.return,M)}}if(t===e){it=null;break}if(a=t.sibling,a!==null){a.return=t.return,it=a;break}it=t.return}}function HO(e){for(;it!==null;){var t=it;if(t===e){it=null;break}var a=t.sibling;if(a!==null){a.return=t.return,it=a;break}it=t.return}}function VO(e){for(;it!==null;){var t=it;try{switch(t.tag){case 0:case 11:case 15:var a=t.return;try{A0(4,t)}catch(g){cr(t,a,g)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var s=t.return;try{o.componentDidMount()}catch(g){cr(t,s,g)}}var f=t.return;try{xC(t)}catch(g){cr(t,f,g)}break;case 5:var p=t.return;try{xC(t)}catch(g){cr(t,p,g)}}}catch(g){cr(t,t.return,g)}if(t===e){it=null;break}var h=t.sibling;if(h!==null){h.return=t.return,it=h;break}it=t.return}}var SV=Math.ceil,x0=is.ReactCurrentDispatcher,lL=is.ReactCurrentOwner,no=is.ReactCurrentBatchConfig,Xt=0,Vr=null,xr=null,oi=0,Ca=0,pd=ou(0),Ar=0,_v=null,gc=0,N0=0,sL=0,uv=null,ea=null,uL=0,Td=1/0,Zl=null,E0=!1,CC=null,eu=null,Wy=!1,qs=null,w0=0,cv=0,LC=null,Xy=-1,e0=0;function Ii(){return(Xt&6)!==0?vr():Xy!==-1?Xy:Xy=vr()}function tu(e){return(e.mode&1)===0?1:(Xt&2)!==0&&oi!==0?oi&-oi:rV.transition!==null?(e0===0&&(e0=y5()),e0):(e=wn,e!==0||(e=window.event,e=e===void 0?16:L5(e.type)),e)}function jo(e,t,a,o){if(50<cv)throw cv=0,LC=null,Error(ze(185));kv(e,a,o),((Xt&2)===0||e!==Vr)&&(e===Vr&&((Xt&2)===0&&(N0|=a),Ar===4&&Gs(e,oi)),ia(e,o),a===1&&Xt===0&&(t.mode&1)===0&&(Td=vr()+500,O0&&lu()))}function ia(e,t){var a=e.callbackNode;aH(e,t);var o=o0(e,e===Vr?oi:0);if(o===0)a!==null&&K3(a),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(a!=null&&K3(a),t===1)e.tag===0?nV($O.bind(null,e)):$5($O.bind(null,e)),JH(function(){(Xt&6)===0&&lu()}),a=null;else{switch(b5(o)){case 1:a=NC;break;case 4:a=m5;break;case 16:a=a0;break;case 536870912:a=g5;break;default:a=a0}a=V4(a,z4.bind(null,e))}e.callbackPriority=t,e.callbackNode=a}}function z4(e,t){if(Xy=-1,e0=0,(Xt&6)!==0)throw Error(ze(327));var a=e.callbackNode;if(bd()&&e.callbackNode!==a)return null;var o=o0(e,e===Vr?oi:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=C0(e,o);else{t=o;var s=Xt;Xt|=2;var f=F4();(Vr!==e||oi!==t)&&(Zl=null,Td=vr()+500,dc(e,t));do try{wV();break}catch(h){I4(e,h)}while(1);qC(),x0.current=f,Xt=s,xr!==null?t=0:(Vr=null,oi=0,t=Ar)}if(t!==0){if(t===2&&(s=Jw(e),s!==0&&(o=s,t=TC(e,s))),t===1)throw a=_v,dc(e,0),Gs(e,o),ia(e,vr()),a;if(t===6)Gs(e,o);else{if(s=e.current.alternate,(o&30)===0&&!xV(s)&&(t=C0(e,o),t===2&&(f=Jw(e),f!==0&&(o=f,t=TC(e,f))),t===1))throw a=_v,dc(e,0),Gs(e,o),ia(e,vr()),a;switch(e.finishedWork=s,e.finishedLanes=o,t){case 0:case 1:throw Error(ze(345));case 2:sc(e,ea,Zl);break;case 3:if(Gs(e,o),(o&130023424)===o&&(t=uL+500-vr(),10<t)){if(o0(e,0)!==0)break;if(s=e.suspendedLanes,(s&o)!==o){Ii(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=oC(sc.bind(null,e,ea,Zl),t);break}sc(e,ea,Zl);break;case 4:if(Gs(e,o),(o&4194240)===o)break;for(t=e.eventTimes,s=-1;0<o;){var p=31-Fo(o);f=1<<p,p=t[p],p>s&&(s=p),o&=~f}if(o=s,o=vr()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*SV(o/1960))-o,10<o){e.timeoutHandle=oC(sc.bind(null,e,ea,Zl),o);break}sc(e,ea,Zl);break;case 5:sc(e,ea,Zl);break;default:throw Error(ze(329))}}}return ia(e,vr()),e.callbackNode===a?z4.bind(null,e):null}function TC(e,t){var a=uv;return e.current.memoizedState.isDehydrated&&(dc(e,t).flags|=256),e=C0(e,t),e!==2&&(t=ea,ea=a,t!==null&&_C(t)),e}function _C(e){ea===null?ea=e:ea.push.apply(ea,e)}function xV(e){for(var t=e;;){if(t.flags&16384){var a=t.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var o=0;o<a.length;o++){var s=a[o],f=s.getSnapshot;s=s.value;try{if(!Uo(f(),s))return!1}catch{return!1}}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Gs(e,t){for(t&=~sL,t&=~N0,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var a=31-Fo(t),o=1<<a;e[a]=-1,t&=~o}}function $O(e){if((Xt&6)!==0)throw Error(ze(327));bd();var t=o0(e,0);if((t&1)===0)return ia(e,vr()),null;var a=C0(e,t);if(e.tag!==0&&a===2){var o=Jw(e);o!==0&&(t=o,a=TC(e,o))}if(a===1)throw a=_v,dc(e,0),Gs(e,t),ia(e,vr()),a;if(a===6)throw Error(ze(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,sc(e,ea,Zl),ia(e,vr()),null}function cL(e,t){var a=Xt;Xt|=1;try{return e(t)}finally{Xt=a,Xt===0&&(Td=vr()+500,O0&&lu())}}function yc(e){qs!==null&&qs.tag===0&&(Xt&6)===0&&bd();var t=Xt;Xt|=1;var a=no.transition,o=wn;try{if(no.transition=null,wn=1,e)return e()}finally{wn=o,no.transition=a,Xt=t,(Xt&6)===0&&lu()}}function fL(){Ca=pd.current,Vn(pd)}function dc(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;if(a!==-1&&(e.timeoutHandle=-1,KH(a)),xr!==null)for(a=xr.return;a!==null;){var o=a;switch(WC(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&f0();break;case 3:Cd(),Vn(na),Vn(wi),eL();break;case 5:XC(o);break;case 4:Cd();break;case 13:Vn(rr);break;case 19:Vn(rr);break;case 10:ZC(o.type._context);break;case 22:case 23:fL()}a=a.return}if(Vr=e,xr=e=nu(e.current,null),oi=Ca=t,Ar=0,_v=null,sL=N0=gc=0,ea=uv=null,cc!==null){for(t=0;t<cc.length;t++)if(a=cc[t],o=a.interleaved,o!==null){a.interleaved=null;var s=o.next,f=a.pending;if(f!==null){var p=f.next;f.next=s,o.next=p}a.pending=o}cc=null}return e}function I4(e,t){do{var a=xr;try{if(qC(),Qy.current=S0,b0){for(var o=ir.memoizedState;o!==null;){var s=o.queue;s!==null&&(s.pending=null),o=o.next}b0=!1}if(mc=0,Hr=Pr=ir=null,lv=!1,Cv=0,lL.current=null,a===null||a.return===null){Ar=1,_v=t,xr=null;break}e:{var f=e,p=a.return,h=a,g=t;if(t=oi,h.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){var y=g,w=h,C=w.tag;if((w.mode&1)===0&&(C===0||C===11||C===15)){var M=w.alternate;M?(w.updateQueue=M.updateQueue,w.memoizedState=M.memoizedState,w.lanes=M.lanes):(w.updateQueue=null,w.memoizedState=null)}var _=OO(p);if(_!==null){_.flags&=-257,DO(_,p,h,f,t),_.mode&1&&RO(f,y,t),t=_,g=y;var A=t.updateQueue;if(A===null){var I=new Set;I.add(g),t.updateQueue=I}else A.add(g);break e}else{if((t&1)===0){RO(f,y,t),dL();break e}g=Error(ze(426))}}else if(Qn&&h.mode&1){var $=OO(p);if($!==null){($.flags&65536)===0&&($.flags|=256),DO($,p,h,f,t),GC(Ld(g,h));break e}}f=g=Ld(g,h),Ar!==4&&(Ar=2),uv===null?uv=[f]:uv.push(f),f=p;do{switch(f.tag){case 3:f.flags|=65536,t&=-t,f.lanes|=t;var R=S4(f,g,t);wO(f,R);break e;case 1:h=g;var D=f.type,E=f.stateNode;if((f.flags&128)===0&&(typeof D.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(eu===null||!eu.has(E)))){f.flags|=65536,t&=-t,f.lanes|=t;var k=x4(f,h,t);wO(f,k);break e}}f=f.return}while(f!==null)}U4(a)}catch(F){t=F,xr===a&&a!==null&&(xr=a=a.return);continue}break}while(1)}function F4(){var e=x0.current;return x0.current=S0,e===null?S0:e}function dL(){(Ar===0||Ar===3||Ar===2)&&(Ar=4),Vr===null||(gc&268435455)===0&&(N0&268435455)===0||Gs(Vr,oi)}function C0(e,t){var a=Xt;Xt|=2;var o=F4();(Vr!==e||oi!==t)&&(Zl=null,dc(e,t));do try{EV();break}catch(s){I4(e,s)}while(1);if(qC(),Xt=a,x0.current=o,xr!==null)throw Error(ze(261));return Vr=null,oi=0,Ar}function EV(){for(;xr!==null;)j4(xr)}function wV(){for(;xr!==null&&!QB();)j4(xr)}function j4(e){var t=H4(e.alternate,e,Ca);e.memoizedProps=e.pendingProps,t===null?U4(e):xr=t,lL.current=null}function U4(e){var t=e;do{var a=t.alternate;if(e=t.return,(t.flags&32768)===0){if(a=vV(a,t,Ca),a!==null){xr=a;return}}else{if(a=mV(a,t),a!==null){a.flags&=32767,xr=a;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ar=6,xr=null;return}}if(t=t.sibling,t!==null){xr=t;return}xr=t=e}while(t!==null);Ar===0&&(Ar=5)}function sc(e,t,a){var o=wn,s=no.transition;try{no.transition=null,wn=1,CV(e,t,a,o)}finally{no.transition=s,wn=o}return null}function CV(e,t,a,o){do bd();while(qs!==null);if((Xt&6)!==0)throw Error(ze(327));a=e.finishedWork;var s=e.finishedLanes;if(a===null)return null;if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(ze(177));e.callbackNode=null,e.callbackPriority=0;var f=a.lanes|a.childLanes;if(oH(e,f),e===Vr&&(xr=Vr=null,oi=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Wy||(Wy=!0,V4(a0,function(){return bd(),null})),f=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||f){f=no.transition,no.transition=null;var p=wn;wn=1;var h=Xt;Xt|=4,lL.current=null,yV(e,a),A4(a,e),GH(iC),l0=!!rC,iC=rC=null,e.current=a,bV(a,e,s),KB(),Xt=h,wn=p,no.transition=f}else e.current=a;if(Wy&&(Wy=!1,qs=e,w0=s),f=e.pendingLanes,f===0&&(eu=null),eH(a.stateNode,o),ia(e,vr()),t!==null)for(o=e.onRecoverableError,a=0;a<t.length;a++)s=t[a],o(s.value,{componentStack:s.stack,digest:s.digest});if(E0)throw E0=!1,e=CC,CC=null,e;return(w0&1)!==0&&e.tag!==0&&bd(),f=e.pendingLanes,(f&1)!==0?e===LC?cv++:(cv=0,LC=e):cv=0,lu(),null}function bd(){if(qs!==null){var e=b5(w0),t=no.transition,a=wn;try{if(no.transition=null,wn=16>e?16:e,qs===null)var o=!1;else{if(e=qs,qs=null,w0=0,(Xt&6)!==0)throw Error(ze(331));var s=Xt;for(Xt|=4,it=e.current;it!==null;){var f=it,p=f.child;if((it.flags&16)!==0){var h=f.deletions;if(h!==null){for(var g=0;g<h.length;g++){var y=h[g];for(it=y;it!==null;){var w=it;switch(w.tag){case 0:case 11:case 15:sv(8,w,f)}var C=w.child;if(C!==null)C.return=w,it=C;else for(;it!==null;){w=it;var M=w.sibling,_=w.return;if(O4(w),w===y){it=null;break}if(M!==null){M.return=_,it=M;break}it=_}}}var A=f.alternate;if(A!==null){var I=A.child;if(I!==null){A.child=null;do{var $=I.sibling;I.sibling=null,I=$}while(I!==null)}}it=f}}if((f.subtreeFlags&2064)!==0&&p!==null)p.return=f,it=p;else e:for(;it!==null;){if(f=it,(f.flags&2048)!==0)switch(f.tag){case 0:case 11:case 15:sv(9,f,f.return)}var R=f.sibling;if(R!==null){R.return=f.return,it=R;break e}it=f.return}}var D=e.current;for(it=D;it!==null;){p=it;var E=p.child;if((p.subtreeFlags&2064)!==0&&E!==null)E.return=p,it=E;else e:for(p=D;it!==null;){if(h=it,(h.flags&2048)!==0)try{switch(h.tag){case 0:case 11:case 15:A0(9,h)}}catch(F){cr(h,h.return,F)}if(h===p){it=null;break e}var k=h.sibling;if(k!==null){k.return=h.return,it=k;break e}it=h.return}}if(Xt=s,lu(),yl&&typeof yl.onPostCommitFiberRoot=="function")try{yl.onPostCommitFiberRoot(T0,e)}catch{}o=!0}return o}finally{wn=a,no.transition=t}}return!1}function WO(e,t,a){t=Ld(a,t),t=S4(e,t,1),e=Xs(e,t,1),t=Ii(),e!==null&&(kv(e,1,t),ia(e,t))}function cr(e,t,a){if(e.tag===3)WO(e,e,a);else for(;t!==null;){if(t.tag===3){WO(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(eu===null||!eu.has(o))){e=Ld(a,e),e=x4(t,e,1),t=Xs(t,e,1),e=Ii(),t!==null&&(kv(t,1,e),ia(t,e));break}}t=t.return}}function LV(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),t=Ii(),e.pingedLanes|=e.suspendedLanes&a,Vr===e&&(oi&a)===a&&(Ar===4||Ar===3&&(oi&130023424)===oi&&500>vr()-uL?dc(e,0):sL|=a),ia(e,t)}function B4(e,t){t===0&&((e.mode&1)===0?t=1:(t=Oy,Oy<<=1,(Oy&130023424)===0&&(Oy=4194304)));var a=Ii();e=ns(e,t),e!==null&&(kv(e,t,a),ia(e,a))}function TV(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),B4(e,a)}function _V(e,t){var a=0;switch(e.tag){case 13:var o=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(ze(314))}o!==null&&o.delete(t),B4(e,a)}var H4;H4=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||na.current)ta=!0;else{if((e.lanes&a)===0&&(t.flags&128)===0)return ta=!1,hV(e,t,a);ta=(e.flags&131072)!==0}else ta=!1,Qn&&(t.flags&1048576)!==0&&W5(t,h0,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Jy(e,t),e=t.pendingProps;var s=xd(t,wi.current);yd(t,a),s=nL(null,t,o,e,s,a);var f=rL();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ra(o)?(f=!0,d0(t)):f=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,KC(t),s.updater=D0,t.stateNode=s,s._reactInternals=t,pC(t,o,e,a),t=mC(null,t,o,!0,f,a)):(t.tag=0,Qn&&f&&$C(t),zi(null,t,s,a),t=t.child),t;case 16:o=t.elementType;e:{switch(Jy(e,t),e=t.pendingProps,s=o._init,o=s(o._payload),t.type=o,s=t.tag=MV(o),e=No(o,e),s){case 0:t=vC(null,t,o,e,a);break e;case 1:t=NO(null,t,o,e,a);break e;case 11:t=PO(null,t,o,e,a);break e;case 14:t=AO(null,t,o,No(o.type,e),a);break e}throw Error(ze(306,o,""))}return t;case 0:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:No(o,s),vC(e,t,o,s,a);case 1:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:No(o,s),NO(e,t,o,s,a);case 3:e:{if(L4(t),e===null)throw Error(ze(387));o=t.pendingProps,f=t.memoizedState,s=f.element,Z5(e,t),g0(t,o,null,a);var p=t.memoizedState;if(o=p.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:p.cache,pendingSuspenseBoundaries:p.pendingSuspenseBoundaries,transitions:p.transitions},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){s=Ld(Error(ze(423)),t),t=zO(e,t,o,a,s);break e}else if(o!==s){s=Ld(Error(ze(424)),t),t=zO(e,t,o,a,s);break e}else for(La=Js(t.stateNode.containerInfo.firstChild),Ta=t,Qn=!0,Io=null,a=X5(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ed(),o===s){t=rs(e,t,a);break e}zi(e,t,o,a)}t=t.child}return t;case 5:return e4(t),e===null&&cC(t),o=t.type,s=t.pendingProps,f=e!==null?e.memoizedProps:null,p=s.children,aC(o,s)?p=null:f!==null&&aC(o,f)&&(t.flags|=32),C4(e,t),zi(e,t,p,a),t.child;case 6:return e===null&&cC(t),null;case 13:return T4(e,t,a);case 4:return JC(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=wd(t,null,o,a):zi(e,t,o,a),t.child;case 11:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:No(o,s),PO(e,t,o,s,a);case 7:return zi(e,t,t.pendingProps,a),t.child;case 8:return zi(e,t,t.pendingProps.children,a),t.child;case 12:return zi(e,t,t.pendingProps.children,a),t.child;case 10:e:{if(o=t.type._context,s=t.pendingProps,f=t.memoizedProps,p=s.value,zn(v0,o._currentValue),o._currentValue=p,f!==null)if(Uo(f.value,p)){if(f.children===s.children&&!na.current){t=rs(e,t,a);break e}}else for(f=t.child,f!==null&&(f.return=t);f!==null;){var h=f.dependencies;if(h!==null){p=f.child;for(var g=h.firstContext;g!==null;){if(g.context===o){if(f.tag===1){g=Xl(-1,a&-a),g.tag=2;var y=f.updateQueue;if(y!==null){y=y.shared;var w=y.pending;w===null?g.next=g:(g.next=w.next,w.next=g),y.pending=g}}f.lanes|=a,g=f.alternate,g!==null&&(g.lanes|=a),fC(f.return,a,t),h.lanes|=a;break}g=g.next}}else if(f.tag===10)p=f.type===t.type?null:f.child;else if(f.tag===18){if(p=f.return,p===null)throw Error(ze(341));p.lanes|=a,h=p.alternate,h!==null&&(h.lanes|=a),fC(p,a,t),p=f.sibling}else p=f.child;if(p!==null)p.return=f;else for(p=f;p!==null;){if(p===t){p=null;break}if(f=p.sibling,f!==null){f.return=p.return,p=f;break}p=p.return}f=p}zi(e,t,s.children,a),t=t.child}return t;case 9:return s=t.type,o=t.pendingProps.children,yd(t,a),s=ro(s),o=o(s),t.flags|=1,zi(e,t,o,a),t.child;case 14:return o=t.type,s=No(o,t.pendingProps),s=No(o.type,s),AO(e,t,o,s,a);case 15:return E4(e,t,t.type,t.pendingProps,a);case 17:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:No(o,s),Jy(e,t),t.tag=1,ra(o)?(e=!0,d0(t)):e=!1,yd(t,a),K5(t,o,s),pC(t,o,s,a),mC(null,t,o,!0,e,a);case 19:return _4(e,t,a);case 22:return w4(e,t,a)}throw Error(ze(156,t.tag))};function V4(e,t){return v5(e,t)}function kV(e,t,a,o){this.tag=e,this.key=a,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function to(e,t,a,o){return new kV(e,t,a,o)}function pL(e){return e=e.prototype,!(!e||!e.isReactComponent)}function MV(e){if(typeof e=="function")return pL(e)?1:0;if(e!=null){if(e=e.$$typeof,e===DC)return 11;if(e===PC)return 14}return 2}function nu(e,t){var a=e.alternate;return a===null?(a=to(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function t0(e,t,a,o,s,f){var p=2;if(o=e,typeof e=="function")pL(e)&&(p=1);else if(typeof e=="string")p=5;else e:switch(e){case nd:return pc(a.children,s,f,t);case OC:p=8,s|=8;break;case Iw:return e=to(12,a,t,s|2),e.elementType=Iw,e.lanes=f,e;case Fw:return e=to(13,a,t,s),e.elementType=Fw,e.lanes=f,e;case jw:return e=to(19,a,t,s),e.elementType=jw,e.lanes=f,e;case JO:return z0(a,s,f,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case QO:p=10;break e;case KO:p=9;break e;case DC:p=11;break e;case PC:p=14;break e;case Vs:p=16,o=null;break e}throw Error(ze(130,e==null?e:typeof e,""))}return t=to(p,a,t,s),t.elementType=e,t.type=o,t.lanes=f,t}function pc(e,t,a,o){return e=to(7,e,o,t),e.lanes=a,e}function z0(e,t,a,o){return e=to(22,e,o,t),e.elementType=JO,e.lanes=a,e.stateNode={isHidden:!1},e}function Aw(e,t,a){return e=to(6,e,null,t),e.lanes=a,e}function Nw(e,t,a){return t=to(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function RV(e,t,a,o,s){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=yw(0),this.expirationTimes=yw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yw(0),this.identifierPrefix=o,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function hL(e,t,a,o,s,f,p,h,g){return e=new RV(e,t,a,h,g),t===1?(t=1,f===!0&&(t|=8)):t=0,f=to(3,null,null,t),e.current=f,f.stateNode=e,f.memoizedState={element:o,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},KC(f),e}function OV(e,t,a){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:td,key:o==null?null:""+o,children:e,containerInfo:t,implementation:a}}function $4(e){if(!e)return iu;e=e._reactInternals;e:{if(Sc(e)!==e||e.tag!==1)throw Error(ze(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ra(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ze(171))}if(e.tag===1){var a=e.type;if(ra(a))return V5(e,a,t)}return t}function W4(e,t,a,o,s,f,p,h,g){return e=hL(a,o,!0,e,s,f,p,h,g),e.context=$4(null),a=e.current,o=Ii(),s=tu(a),f=Xl(o,s),f.callback=t??null,Xs(a,f,s),e.current.lanes=s,kv(e,s,o),ia(e,o),e}function I0(e,t,a,o){var s=t.current,f=Ii(),p=tu(s);return a=$4(a),t.context===null?t.context=a:t.pendingContext=a,t=Xl(f,p),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=Xs(s,t,p),e!==null&&(jo(e,s,p,f),Zy(e,s,p)),p}function L0(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 GO(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function vL(e,t){GO(e,t),(e=e.alternate)&&GO(e,t)}function DV(){return null}var G4=typeof reportError=="function"?reportError:function(e){console.error(e)};function mL(e){this._internalRoot=e}F0.prototype.render=mL.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ze(409));I0(e,t,null,null)};F0.prototype.unmount=mL.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;yc(function(){I0(null,e,null,null)}),t[ts]=null}};function F0(e){this._internalRoot=e}F0.prototype.unstable_scheduleHydration=function(e){if(e){var t=E5();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ws.length&&t!==0&&t<Ws[a].priority;a++);Ws.splice(a,0,e),a===0&&C5(e)}};function gL(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function j0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function YO(){}function PV(e,t,a,o,s){if(s){if(typeof o=="function"){var f=o;o=function(){var y=L0(p);f.call(y)}}var p=W4(t,o,e,0,null,!1,!1,"",YO);return e._reactRootContainer=p,e[ts]=p.current,bv(e.nodeType===8?e.parentNode:e),yc(),p}for(;s=e.lastChild;)e.removeChild(s);if(typeof o=="function"){var h=o;o=function(){var y=L0(g);h.call(y)}}var g=hL(e,0,!1,null,null,!1,!1,"",YO);return e._reactRootContainer=g,e[ts]=g.current,bv(e.nodeType===8?e.parentNode:e),yc(function(){I0(t,g,a,o)}),g}function U0(e,t,a,o,s){var f=a._reactRootContainer;if(f){var p=f;if(typeof s=="function"){var h=s;s=function(){var g=L0(p);h.call(g)}}I0(t,p,e,s)}else p=PV(a,t,e,s,o);return L0(p)}S5=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var a=ev(t.pendingLanes);a!==0&&(zC(t,a|1),ia(t,vr()),(Xt&6)===0&&(Td=vr()+500,lu()))}break;case 13:yc(function(){var o=ns(e,1);if(o!==null){var s=Ii();jo(o,e,1,s)}}),vL(e,1)}};IC=function(e){if(e.tag===13){var t=ns(e,134217728);if(t!==null){var a=Ii();jo(t,e,134217728,a)}vL(e,134217728)}};x5=function(e){if(e.tag===13){var t=tu(e),a=ns(e,t);if(a!==null){var o=Ii();jo(a,e,t,o)}vL(e,t)}};E5=function(){return wn};w5=function(e,t){var a=wn;try{return wn=e,t()}finally{wn=a}};Zw=function(e,t,a){switch(t){case"input":if(Hw(e,a),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var s=R0(o);if(!s)throw Error(ze(90));e5(o),Hw(o,s)}}}break;case"textarea":n5(e,a);break;case"select":t=a.value,t!=null&&hd(e,!!a.multiple,t,!1)}};u5=cL;c5=yc;var AV={usingClientEntryPoint:!1,Events:[Rv,od,R0,l5,s5,cL]},Qh={findFiberByHostInstance:uc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},NV={bundleType:Qh.bundleType,version:Qh.version,rendererPackageName:Qh.rendererPackageName,rendererConfig:Qh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:is.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=p5(e),e===null?null:e.stateNode},findFiberByHostInstance:Qh.findFiberByHostInstance||DV,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Kh=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Kh.isDisabled&&Kh.supportsFiber))try{T0=Kh.inject(NV),yl=Kh}catch{}var Kh;Ma.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=AV;Ma.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gL(t))throw Error(ze(200));return OV(e,t,null,a)};Ma.createRoot=function(e,t){if(!gL(e))throw Error(ze(299));var a=!1,o="",s=G4;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=hL(e,1,!1,null,null,a,!1,o,s),e[ts]=t.current,bv(e.nodeType===8?e.parentNode:e),new mL(t)};Ma.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(ze(188)):(e=Object.keys(e).join(","),Error(ze(268,e)));return e=p5(t),e=e===null?null:e.stateNode,e};Ma.flushSync=function(e){return yc(e)};Ma.hydrate=function(e,t,a){if(!j0(t))throw Error(ze(200));return U0(null,e,t,!0,a)};Ma.hydrateRoot=function(e,t,a){if(!gL(e))throw Error(ze(405));var o=a!=null&&a.hydratedSources||null,s=!1,f="",p=G4;if(a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(f=a.identifierPrefix),a.onRecoverableError!==void 0&&(p=a.onRecoverableError)),t=W4(t,null,e,1,a??null,s,!1,f,p),e[ts]=t.current,bv(e),o)for(e=0;e<o.length;e++)a=o[e],s=a._getVersion,s=s(a._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[a,s]:t.mutableSourceEagerHydrationData.push(a,s);return new F0(t)};Ma.render=function(e,t,a){if(!j0(t))throw Error(ze(200));return U0(null,e,t,!1,a)};Ma.unmountComponentAtNode=function(e){if(!j0(e))throw Error(ze(40));return e._reactRootContainer?(yc(function(){U0(null,null,e,!1,function(){e._reactRootContainer=null,e[ts]=null})}),!0):!1};Ma.unstable_batchedUpdates=cL;Ma.unstable_renderSubtreeIntoContainer=function(e,t,a,o){if(!j0(a))throw Error(ze(200));if(e==null||e._reactInternals===void 0)throw Error(ze(38));return U0(e,t,a,!1,o)};Ma.version="18.2.0-next-9e3b772b8-20220608"});var q4=ln(Ra=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=Ka("react"),t=pw(),a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,o=!1;function s(n){o=n}function f(n){if(!o){for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];h("warn",n,l)}}function p(n){if(!o){for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];h("error",n,l)}}function h(n,r,l){{var u=a.ReactDebugCurrentFrame,d=u.getStackAddendum();d!==""&&(r+="%s",l=l.concat([d]));var v=l.map(function(b){return String(b)});v.unshift("Warning: "+r),Function.prototype.apply.call(console[n],console,v)}}var g=0,y=1,w=2,C=3,M=4,_=5,A=6,I=7,$=8,R=9,D=10,E=11,k=12,F=13,U=14,N=15,W=16,K=17,G=18,re=19,Le=21,Y=22,ue=23,xe=24,Pe=25,ke=!0,V=!1,Q=!1,le=!1,ge=!1,ve=!0,de=!1,ie=!1,Oe=!0,je=!0,we=!0,ut=new Set,Je={},Ve={};function _t(n,r){Ae(n,r),Ae(n+"Capture",r)}function Ae(n,r){Je[n]&&p("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",n),Je[n]=r;{var l=n.toLowerCase();Ve[l]=n,n==="onDoubleClick"&&(Ve.ondblclick=n)}for(var u=0;u<r.length;u++)ut.add(r[u])}var Lt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",tt=Object.prototype.hasOwnProperty;function fn(n){{var r=typeof Symbol=="function"&&Symbol.toStringTag,l=r&&n[Symbol.toStringTag]||n.constructor.name||"Object";return l}}function dn(n){try{return er(n),!1}catch{return!0}}function er(n){return""+n}function pn(n,r){if(dn(n))return p("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",r,fn(n)),er(n)}function Dt(n){if(dn(n))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",fn(n)),er(n)}function qt(n,r){if(dn(n))return p("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",r,fn(n)),er(n)}function Wt(n,r){if(dn(n))return p("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",r,fn(n)),er(n)}function un(n){if(dn(n))return p("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",fn(n)),er(n)}function jt(n){if(dn(n))return p("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",fn(n)),er(n)}var In=0,Sn=1,hn=2,vn=3,Pt=4,_n=5,kn=6,Ne=":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",nt=Ne+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Et=new RegExp("^["+Ne+"]["+nt+"]*$"),pt={},et={};function Gn(n){return tt.call(et,n)?!0:tt.call(pt,n)?!1:Et.test(n)?(et[n]=!0,!0):(pt[n]=!0,p("Invalid attribute name: `%s`",n),!1)}function Yn(n,r,l){return r!==null?r.type===In:l?!1:n.length>2&&(n[0]==="o"||n[0]==="O")&&(n[1]==="n"||n[1]==="N")}function Er(n,r,l,u){if(l!==null&&l.type===In)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":{if(u)return!1;if(l!==null)return!l.acceptsBooleans;var d=n.toLowerCase().slice(0,5);return d!=="data-"&&d!=="aria-"}default:return!1}}function nn(n,r,l,u){if(r===null||typeof r>"u"||Er(n,r,l,u))return!0;if(u)return!1;if(l!==null)switch(l.type){case vn:return!r;case Pt:return r===!1;case _n:return isNaN(r);case kn:return isNaN(r)||r<1}return!1}function fi(n){return xn.hasOwnProperty(n)?xn[n]:null}function gt(n,r,l,u,d,v,b){this.acceptsBooleans=r===hn||r===vn||r===Pt,this.attributeName=u,this.attributeNamespace=d,this.mustUseProperty=l,this.propertyName=n,this.type=r,this.sanitizeURL=v,this.removeEmptyString=b}var xn={},Wr=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Wr.forEach(function(n){xn[n]=new gt(n,In,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var r=n[0],l=n[1];xn[r]=new gt(r,Sn,!1,l,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){xn[n]=new gt(n,hn,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){xn[n]=new gt(n,hn,!1,n,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"].forEach(function(n){xn[n]=new gt(n,vn,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){xn[n]=new gt(n,vn,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){xn[n]=new gt(n,Pt,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){xn[n]=new gt(n,kn,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){xn[n]=new gt(n,_n,!1,n.toLowerCase(),null,!1,!1)});var ua=/[\-\:]([a-z])/g,Vo=function(n){return n[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"].forEach(function(n){var r=n.replace(ua,Vo);xn[r]=new gt(r,Sn,!1,n,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(n){var r=n.replace(ua,Vo);xn[r]=new gt(r,Sn,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var r=n.replace(ua,Vo);xn[r]=new gt(r,Sn,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){xn[n]=new gt(n,Sn,!1,n.toLowerCase(),null,!1,!1)});var so="xlinkHref";xn[so]=new gt("xlinkHref",Sn,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){xn[n]=new gt(n,Sn,!1,n.toLowerCase(),null,!0,!0)});var $o=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Vi=!1;function $i(n){!Vi&&$o.test(n)&&(Vi=!0,p("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(n)))}function xt(n,r,l,u){if(u.mustUseProperty){var d=u.propertyName;return n[d]}else{pn(l,r),u.sanitizeURL&&$i(""+l);var v=u.attributeName,b=null;if(u.type===Pt){if(n.hasAttribute(v)){var x=n.getAttribute(v);return x===""?!0:nn(r,l,u,!1)?x:x===""+l?l:x}}else if(n.hasAttribute(v)){if(nn(r,l,u,!1))return n.getAttribute(v);if(u.type===vn)return l;b=n.getAttribute(v)}return nn(r,l,u,!1)?b===null?l:b:b===""+l?l:b}}function Ll(n,r,l,u){{if(!Gn(r))return;if(!n.hasAttribute(r))return l===void 0?void 0:null;var d=n.getAttribute(r);return pn(l,r),d===""+l?l:d}}function Wo(n,r,l,u){var d=fi(r);if(!Yn(r,d,u)){if(nn(r,l,d,u)&&(l=null),u||d===null){if(Gn(r)){var v=r;l===null?n.removeAttribute(v):(pn(l,r),n.setAttribute(v,""+l))}return}var b=d.mustUseProperty;if(b){var x=d.propertyName;if(l===null){var T=d.type;n[x]=T===vn?!1:""}else n[x]=l;return}var P=d.attributeName,z=d.attributeNamespace;if(l===null)n.removeAttribute(P);else{var Z=d.type,q;Z===vn||Z===Pt&&l===!0?q="":(pn(l,P),q=""+l,d.sanitizeURL&&$i(q.toString())),z?n.setAttributeNS(z,P,q):n.setAttribute(P,q)}}}var za=Symbol.for("react.element"),ca=Symbol.for("react.portal"),Go=Symbol.for("react.fragment"),Ia=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),_e=Symbol.for("react.provider"),Ue=Symbol.for("react.context"),lt=Symbol.for("react.forward_ref"),Ot=Symbol.for("react.suspense"),Yt=Symbol.for("react.suspense_list"),Mt=Symbol.for("react.memo"),ct=Symbol.for("react.lazy"),wr=Symbol.for("react.scope"),Fn=Symbol.for("react.debug_trace_mode"),jn=Symbol.for("react.offscreen"),mn=Symbol.for("react.legacy_hidden"),uo=Symbol.for("react.cache"),Vc=Symbol.for("react.tracing_marker"),di=Symbol.iterator,Zd="@@iterator";function Yo(n){if(n===null||typeof n!="object")return null;var r=di&&n[di]||n[Zd];return typeof r=="function"?r:null}var At=Object.assign,qn=0,Qd,dm,co,fa,$c,qo,Zo;function Kd(){}Kd.__reactDisabledLog=!0;function t1(){{if(qn===0){Qd=console.log,dm=console.info,co=console.warn,fa=console.error,$c=console.group,qo=console.groupCollapsed,Zo=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Kd,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}qn++}}function n1(){{if(qn--,qn===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:At({},n,{value:Qd}),info:At({},n,{value:dm}),warn:At({},n,{value:co}),error:At({},n,{value:fa}),group:At({},n,{value:$c}),groupCollapsed:At({},n,{value:qo}),groupEnd:At({},n,{value:Zo})})}qn<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Jd=a.ReactCurrentDispatcher,Wc;function Qo(n,r,l){{if(Wc===void 0)try{throw Error()}catch(d){var u=d.stack.trim().match(/\n( *(at )?)/);Wc=u&&u[1]||""}return`
9
+ `+Wc+n}}var Xd=!1,Gc;{var r1=typeof WeakMap=="function"?WeakMap:Map;Gc=new r1}function Yc(n,r){if(!n||Xd)return"";{var l=Gc.get(n);if(l!==void 0)return l}var u;Xd=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=Jd.current,Jd.current=null,t1();try{if(r){var b=function(){throw Error()};if(Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(ce){u=ce}Reflect.construct(n,[],b)}else{try{b.call()}catch(ce){u=ce}n.call(b.prototype)}}else{try{throw Error()}catch(ce){u=ce}n()}}catch(ce){if(ce&&u&&typeof ce.stack=="string"){for(var x=ce.stack.split(`
10
+ `),T=u.stack.split(`
11
+ `),P=x.length-1,z=T.length-1;P>=1&&z>=0&&x[P]!==T[z];)z--;for(;P>=1&&z>=0;P--,z--)if(x[P]!==T[z]){if(P!==1||z!==1)do if(P--,z--,z<0||x[P]!==T[z]){var Z=`
12
+ `+x[P].replace(" at new "," at ");return n.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",n.displayName)),typeof n=="function"&&Gc.set(n,Z),Z}while(P>=1&&z>=0);break}}}finally{Xd=!1,Jd.current=v,n1(),Error.prepareStackTrace=d}var q=n?n.displayName||n.name:"",fe=q?Qo(q):"";return typeof n=="function"&&Gc.set(n,fe),fe}function m(n,r,l){return Yc(n,!0)}function S(n,r,l){return Yc(n,!1)}function O(n){var r=n.prototype;return!!(r&&r.isReactComponent)}function H(n,r,l){if(n==null)return"";if(typeof n=="function")return Yc(n,O(n));if(typeof n=="string")return Qo(n);switch(n){case Ot:return Qo("Suspense");case Yt:return Qo("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case lt:return S(n.render);case Mt:return H(n.type,r,l);case ct:{var u=n,d=u._payload,v=u._init;try{return H(v(d),r,l)}catch{}}}return""}function ne(n){var r=n._debugOwner?n._debugOwner.type:null,l=n._debugSource;switch(n.tag){case _:return Qo(n.type);case W:return Qo("Lazy");case F:return Qo("Suspense");case re:return Qo("SuspenseList");case g:case w:case N:return S(n.type);case E:return S(n.type.render);case y:return m(n.type);default:return""}}function J(n){try{var r="",l=n;do r+=ne(l),l=l.return;while(l);return r}catch(u){return`
13
+ Error generating stack: `+u.message+`
14
+ `+u.stack}}function te(n,r,l){var u=n.displayName;if(u)return u;var d=r.displayName||r.name||"";return d!==""?l+"("+d+")":l}function Re(n){return n.displayName||"Context"}function me(n){if(n==null)return null;if(typeof n.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Go:return"Fragment";case ca:return"Portal";case B:return"Profiler";case Ia:return"StrictMode";case Ot:return"Suspense";case Yt:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case Ue:var r=n;return Re(r)+".Consumer";case _e:var l=n;return Re(l._context)+".Provider";case lt:return te(n,n.render,"ForwardRef");case Mt:var u=n.displayName||null;return u!==null?u:me(n.type)||"Memo";case ct:{var d=n,v=d._payload,b=d._init;try{return me(b(v))}catch{return null}}}return null}function Be(n,r,l){var u=r.displayName||r.name||"";return n.displayName||(u!==""?l+"("+u+")":l)}function se(n){return n.displayName||"Context"}function be(n){var r=n.tag,l=n.type;switch(r){case xe:return"Cache";case R:var u=l;return se(u)+".Consumer";case D:var d=l;return se(d._context)+".Provider";case G:return"DehydratedFragment";case E:return Be(l,l.render,"ForwardRef");case I:return"Fragment";case _:return l;case M:return"Portal";case C:return"Root";case A:return"Text";case W:return me(l);case $:return l===Ia?"StrictMode":"Mode";case Y:return"Offscreen";case k:return"Profiler";case Le:return"Scope";case F:return"Suspense";case re:return"SuspenseList";case Pe:return"TracingMarker";case y:case g:case K:case w:case U:case N:if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;break}return null}var $e=a.ReactDebugCurrentFrame,Qe=null,dt=!1;function Mn(){{if(Qe===null)return null;var n=Qe._debugOwner;if(n!==null&&typeof n<"u")return be(n)}return null}function Ee(){return Qe===null?"":J(Qe)}function Ie(){$e.getCurrentStack=null,Qe=null,dt=!1}function yt(n){$e.getCurrentStack=n===null?null:Ee,Qe=n,dt=!1}function rn(){return Qe}function Zt(n){dt=n}function Xe(n){return""+n}function pi(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return jt(n),n;default:return""}}var Ko={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ut(n,r){Ko[r.type]||r.onChange||r.onInput||r.readOnly||r.disabled||r.value==null||p("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),r.onChange||r.readOnly||r.disabled||r.checked==null||p("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Wi(n){var r=n.type,l=n.nodeName;return l&&l.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Gr(n){return n._valueTracker}function ep(n){n._valueTracker=null}function pm(n){var r="";return n&&(Wi(n)?r=n.checked?"true":"false":r=n.value),r}function Fa(n){var r=Wi(n)?"checked":"value",l=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);jt(n[r]);var u=""+n[r];if(!(n.hasOwnProperty(r)||typeof l>"u"||typeof l.get!="function"||typeof l.set!="function")){var d=l.get,v=l.set;Object.defineProperty(n,r,{configurable:!0,get:function(){return d.call(this)},set:function(x){jt(x),u=""+x,v.call(this,x)}}),Object.defineProperty(n,r,{enumerable:l.enumerable});var b={getValue:function(){return u},setValue:function(x){jt(x),u=""+x},stopTracking:function(){ep(n),delete n[r]}};return b}}function Eu(n){Gr(n)||(n._valueTracker=Fa(n))}function tp(n){if(!n)return!1;var r=Gr(n);if(!r)return!0;var l=r.getValue(),u=pm(n);return u!==l?(r.setValue(u),!0):!1}function qc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var np=!1,wu=!1,rp=!1,ip=!1;function hm(n){var r=n.type==="checkbox"||n.type==="radio";return r?n.checked!=null:n.value!=null}function fo(n,r){var l=n,u=r.checked,d=At({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??l._wrapperState.initialChecked});return d}function ap(n,r){Ut("input",r),r.checked!==void 0&&r.defaultChecked!==void 0&&!wu&&(p("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Mn()||"A component",r.type),wu=!0),r.value!==void 0&&r.defaultValue!==void 0&&!np&&(p("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Mn()||"A component",r.type),np=!0);var l=n,u=r.defaultValue==null?"":r.defaultValue;l._wrapperState={initialChecked:r.checked!=null?r.checked:r.defaultChecked,initialValue:pi(r.value!=null?r.value:u),controlled:hm(r)}}function vm(n,r){var l=n,u=r.checked;u!=null&&Wo(l,"checked",u,!1)}function op(n,r){var l=n;{var u=hm(r);!l._wrapperState.controlled&&u&&!ip&&(p("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),ip=!0),l._wrapperState.controlled&&!u&&!rp&&(p("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),rp=!0)}vm(n,r);var d=pi(r.value),v=r.type;if(d!=null)v==="number"?(d===0&&l.value===""||l.value!=d)&&(l.value=Xe(d)):l.value!==Xe(d)&&(l.value=Xe(d));else if(v==="submit"||v==="reset"){l.removeAttribute("value");return}r.hasOwnProperty("value")?Lu(l,r.type,d):r.hasOwnProperty("defaultValue")&&Lu(l,r.type,pi(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(l.defaultChecked=!!r.defaultChecked)}function Zc(n,r,l){var u=n;if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var d=r.type,v=d==="submit"||d==="reset";if(v&&(r.value===void 0||r.value===null))return;var b=Xe(u._wrapperState.initialValue);l||b!==u.value&&(u.value=b),u.defaultValue=b}var x=u.name;x!==""&&(u.name=""),u.defaultChecked=!u.defaultChecked,u.defaultChecked=!!u._wrapperState.initialChecked,x!==""&&(u.name=x)}function Cu(n,r){var l=n;op(l,r),lp(l,r)}function lp(n,r){var l=r.name;if(r.type==="radio"&&l!=null){for(var u=n;u.parentNode;)u=u.parentNode;pn(l,"name");for(var d=u.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),v=0;v<d.length;v++){var b=d[v];if(!(b===n||b.form!==n.form)){var x=lg(b);if(!x)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");tp(b),op(b,x)}}}}function Lu(n,r,l){(r!=="number"||qc(n.ownerDocument)!==n)&&(l==null?n.defaultValue=Xe(n._wrapperState.initialValue):n.defaultValue!==Xe(l)&&(n.defaultValue=Xe(l)))}var Qc=!1,ds=!1,mm=!1;function gm(n,r){r.value==null&&(typeof r.children=="object"&&r.children!==null?e.Children.forEach(r.children,function(l){l!=null&&(typeof l=="string"||typeof l=="number"||ds||(ds=!0,p("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):r.dangerouslySetInnerHTML!=null&&(mm||(mm=!0,p("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),r.selected!=null&&!Qc&&(p("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Qc=!0)}function i1(n,r){r.value!=null&&n.setAttribute("value",Xe(pi(r.value)))}var a1=Array.isArray;function Yr(n){return a1(n)}var Kc;Kc=!1;function Jc(){var n=Mn();return n?`
15
+
16
+ Check the render method of \``+n+"`.":""}var Jo=["value","defaultValue"];function po(n){{Ut("select",n);for(var r=0;r<Jo.length;r++){var l=Jo[r];if(n[l]!=null){var u=Yr(n[l]);n.multiple&&!u?p("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",l,Jc()):!n.multiple&&u&&p("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",l,Jc())}}}}function Gi(n,r,l,u){var d=n.options;if(r){for(var v=l,b={},x=0;x<v.length;x++)b["$"+v[x]]=!0;for(var T=0;T<d.length;T++){var P=b.hasOwnProperty("$"+d[T].value);d[T].selected!==P&&(d[T].selected=P),P&&u&&(d[T].defaultSelected=!0)}}else{for(var z=Xe(pi(l)),Z=null,q=0;q<d.length;q++){if(d[q].value===z){d[q].selected=!0,u&&(d[q].defaultSelected=!0);return}Z===null&&!d[q].disabled&&(Z=d[q])}Z!==null&&(Z.selected=!0)}}function ps(n,r){return At({},r,{value:void 0})}function ho(n,r){var l=n;po(r),l._wrapperState={wasMultiple:!!r.multiple},r.value!==void 0&&r.defaultValue!==void 0&&!Kc&&(p("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Kc=!0)}function o1(n,r){var l=n;l.multiple=!!r.multiple;var u=r.value;u!=null?Gi(l,!!r.multiple,u,!1):r.defaultValue!=null&&Gi(l,!!r.multiple,r.defaultValue,!0)}function Xc(n,r){var l=n,u=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!r.multiple;var d=r.value;d!=null?Gi(l,!!r.multiple,d,!1):u!==!!r.multiple&&(r.defaultValue!=null?Gi(l,!!r.multiple,r.defaultValue,!0):Gi(l,!!r.multiple,r.multiple?[]:"",!1))}function Tu(n,r){var l=n,u=r.value;u!=null&&Gi(l,!!r.multiple,u,!1)}var sp=!1;function ef(n,r){var l=n;if(r.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var u=At({},r,{value:void 0,defaultValue:void 0,children:Xe(l._wrapperState.initialValue)});return u}function ym(n,r){var l=n;Ut("textarea",r),r.value!==void 0&&r.defaultValue!==void 0&&!sp&&(p("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",Mn()||"A component"),sp=!0);var u=r.value;if(u==null){var d=r.children,v=r.defaultValue;if(d!=null){p("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(v!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Yr(d)){if(d.length>1)throw new Error("<textarea> can only have at most one child.");d=d[0]}v=d}}v==null&&(v=""),u=v}l._wrapperState={initialValue:pi(u)}}function bm(n,r){var l=n,u=pi(r.value),d=pi(r.defaultValue);if(u!=null){var v=Xe(u);v!==l.value&&(l.value=v),r.defaultValue==null&&l.defaultValue!==v&&(l.defaultValue=v)}d!=null&&(l.defaultValue=Xe(d))}function up(n,r){var l=n,u=l.textContent;u===l._wrapperState.initialValue&&u!==""&&u!==null&&(l.value=u)}function Sm(n,r){bm(n,r)}var Yi="http://www.w3.org/1999/xhtml",hs="http://www.w3.org/1998/Math/MathML",cp="http://www.w3.org/2000/svg";function ja(n){switch(n){case"svg":return cp;case"math":return hs;default:return Yi}}function fp(n,r){return n==null||n===Yi?ja(r):n===cp&&r==="foreignObject"?Yi:n}var Tl=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,l,u,d){MSApp.execUnsafeLocalFunction(function(){return n(r,l,u,d)})}:n},_u,xm=Tl(function(n,r){if(n.namespaceURI===cp&&!("innerHTML"in n)){_u=_u||document.createElement("div"),_u.innerHTML="<svg>"+r.valueOf().toString()+"</svg>";for(var l=_u.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;l.firstChild;)n.appendChild(l.firstChild);return}n.innerHTML=r}),Cr=1,da=3,tr=8,Ua=9,tf=11,Xo=function(n,r){if(r){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===da){l.nodeValue=r;return}}n.textContent=r},Em={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},ku={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};function X(n,r){return n+r.charAt(0).toUpperCase()+r.substring(1)}var pe=["Webkit","ms","Moz","O"];Object.keys(ku).forEach(function(n){pe.forEach(function(r){ku[X(r,n)]=ku[n]})});function Fe(n,r,l){var u=r==null||typeof r=="boolean"||r==="";return u?"":!l&&typeof r=="number"&&r!==0&&!(ku.hasOwnProperty(n)&&ku[n])?r+"px":(Wt(r,n),(""+r).trim())}var st=/([A-Z])/g,Rn=/^ms-/;function It(n){return n.replace(st,"-$1").toLowerCase().replace(Rn,"-ms-")}var Un=function(){};{var lr=/^(?:webkit|moz|o)[A-Z]/,pa=/^-ms-/,pr=/-(.)/g,sr=/;\s*$/,qr={},ha={},zr=!1,Ba=!1,vs=function(n){return n.replace(pr,function(r,l){return l.toUpperCase()})},nf=function(n){qr.hasOwnProperty(n)&&qr[n]||(qr[n]=!0,p("Unsupported style property %s. Did you mean %s?",n,vs(n.replace(pa,"ms-"))))},ms=function(n){qr.hasOwnProperty(n)&&qr[n]||(qr[n]=!0,p("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1)))},Mu=function(n,r){ha.hasOwnProperty(r)&&ha[r]||(ha[r]=!0,p(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,r.replace(sr,"")))},wm=function(n,r){zr||(zr=!0,p("`NaN` is an invalid value for the `%s` css style property.",n))},l1=function(n,r){Ba||(Ba=!0,p("`Infinity` is an invalid value for the `%s` css style property.",n))};Un=function(n,r){n.indexOf("-")>-1?nf(n):lr.test(n)?ms(n):sr.test(r)&&Mu(n,r),typeof r=="number"&&(isNaN(r)?wm(n,r):isFinite(r)||l1(n,r))}}var s1=Un;function En(n){{var r="",l="";for(var u in n)if(!!n.hasOwnProperty(u)){var d=n[u];if(d!=null){var v=u.indexOf("--")===0;r+=l+(v?u:It(u))+":",r+=Fe(u,d,v),l=";"}}return r||null}}function an(n,r){var l=n.style;for(var u in r)if(!!r.hasOwnProperty(u)){var d=u.indexOf("--")===0;d||s1(u,r[u]);var v=Fe(u,r[u],d);u==="float"&&(u="cssFloat"),d?l.setProperty(u,v):l[u]=v}}function rf(n){return n==null||typeof n=="boolean"||n===""}function vo(n){var r={};for(var l in n)for(var u=Em[l]||[l],d=0;d<u.length;d++)r[u[d]]=l;return r}function dp(n,r){{if(!r)return;var l=vo(n),u=vo(r),d={};for(var v in l){var b=l[v],x=u[v];if(x&&b!==x){var T=b+","+x;if(d[T])continue;d[T]=!0,p("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",rf(n[b])?"Removing":"Updating",b,x)}}}}var qi={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},mo=At({menuitem:!0},qi),el="__html";function _l(n,r){if(!!r){if(mo[n]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw new Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof r.dangerouslySetInnerHTML!="object"||!(el in r.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!r.suppressContentEditableWarning&&r.contentEditable&&r.children!=null&&p("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),r.style!=null&&typeof r.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Ha(n,r){if(n.indexOf("-")===-1)return typeof r.is=="string";switch(n){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 go={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},yo={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},kl={},af=new RegExp("^(aria)-["+nt+"]*$"),pp=new RegExp("^(aria)[A-Z]["+nt+"]*$");function of(n,r){{if(tt.call(kl,r)&&kl[r])return!0;if(pp.test(r)){var l="aria-"+r.slice(4).toLowerCase(),u=yo.hasOwnProperty(l)?l:null;if(u==null)return p("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",r),kl[r]=!0,!0;if(r!==u)return p("Invalid ARIA attribute `%s`. Did you mean `%s`?",r,u),kl[r]=!0,!0}if(af.test(r)){var d=r.toLowerCase(),v=yo.hasOwnProperty(d)?d:null;if(v==null)return kl[r]=!0,!1;if(r!==v)return p("Unknown ARIA attribute `%s`. Did you mean `%s`?",r,v),kl[r]=!0,!0}}return!0}function lf(n,r){{var l=[];for(var u in r){var d=of(n,u);d||l.push(u)}var v=l.map(function(b){return"`"+b+"`"}).join(", ");l.length===1?p("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",v,n):l.length>1&&p("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",v,n)}}function Cm(n,r){Ha(n,r)||lf(n,r)}var Ru=!1;function sf(n,r){{if(n!=="input"&&n!=="textarea"&&n!=="select")return;r!=null&&r.value===null&&!Ru&&(Ru=!0,n==="select"&&r.multiple?p("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",n):p("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",n))}}var DT=function(){};{var Mi={},PT=/^on./,HP=/^on[^A-Z]/,VP=new RegExp("^(aria)-["+nt+"]*$"),$P=new RegExp("^(aria)[A-Z]["+nt+"]*$");DT=function(n,r,l,u){if(tt.call(Mi,r)&&Mi[r])return!0;var d=r.toLowerCase();if(d==="onfocusin"||d==="onfocusout")return p("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Mi[r]=!0,!0;if(u!=null){var v=u.registrationNameDependencies,b=u.possibleRegistrationNames;if(v.hasOwnProperty(r))return!0;var x=b.hasOwnProperty(d)?b[d]:null;if(x!=null)return p("Invalid event handler property `%s`. Did you mean `%s`?",r,x),Mi[r]=!0,!0;if(PT.test(r))return p("Unknown event handler property `%s`. It will be ignored.",r),Mi[r]=!0,!0}else if(PT.test(r))return HP.test(r)&&p("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",r),Mi[r]=!0,!0;if(VP.test(r)||$P.test(r))return!0;if(d==="innerhtml")return p("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Mi[r]=!0,!0;if(d==="aria")return p("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Mi[r]=!0,!0;if(d==="is"&&l!==null&&l!==void 0&&typeof l!="string")return p("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof l),Mi[r]=!0,!0;if(typeof l=="number"&&isNaN(l))return p("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",r),Mi[r]=!0,!0;var T=fi(r),P=T!==null&&T.type===In;if(go.hasOwnProperty(d)){var z=go[d];if(z!==r)return p("Invalid DOM property `%s`. Did you mean `%s`?",r,z),Mi[r]=!0,!0}else if(!P&&r!==d)return p("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",r,d),Mi[r]=!0,!0;return typeof l=="boolean"&&Er(r,l,T,!1)?(l?p('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',l,r,r,l,r):p('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',l,r,r,l,r,r,r),Mi[r]=!0,!0):P?!0:Er(r,l,T,!1)?(Mi[r]=!0,!1):((l==="false"||l==="true")&&T!==null&&T.type===vn&&(p("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",l,r,l==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',r,l),Mi[r]=!0),!0)}}var WP=function(n,r,l){{var u=[];for(var d in r){var v=DT(n,d,r[d],l);v||u.push(d)}var b=u.map(function(x){return"`"+x+"`"}).join(", ");u.length===1?p("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",b,n):u.length>1&&p("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",b,n)}};function GP(n,r,l){Ha(n,r)||WP(n,r,l)}var AT=1,u1=1<<1,hp=1<<2,YP=AT|u1|hp,vp=null;function qP(n){vp!==null&&p("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),vp=n}function ZP(){vp===null&&p("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),vp=null}function QP(n){return n===vp}function c1(n){var r=n.target||n.srcElement||window;return r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===da?r.parentNode:r}var f1=null,uf=null,cf=null;function NT(n){var r=Cs(n);if(!!r){if(typeof f1!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var l=r.stateNode;if(l){var u=lg(l);f1(r.stateNode,r.type,u)}}}function KP(n){f1=n}function zT(n){uf?cf?cf.push(n):cf=[n]:uf=n}function JP(){return uf!==null||cf!==null}function IT(){if(!!uf){var n=uf,r=cf;if(uf=null,cf=null,NT(n),r)for(var l=0;l<r.length;l++)NT(r[l])}}var FT=function(n,r){return n(r)},jT=function(){},d1=!1;function XP(){var n=JP();n&&(jT(),IT())}function UT(n,r,l){if(d1)return n(r,l);d1=!0;try{return FT(n,r,l)}finally{d1=!1,XP()}}function e7(n,r,l){FT=n,jT=l}function t7(n){return n==="button"||n==="input"||n==="select"||n==="textarea"}function n7(n,r,l){switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(l.disabled&&t7(r));default:return!1}}function mp(n,r){var l=n.stateNode;if(l===null)return null;var u=lg(l);if(u===null)return null;var d=u[r];if(n7(r,n.type,u))return null;if(d&&typeof d!="function")throw new Error("Expected `"+r+"` listener to be a function, instead got a value of `"+typeof d+"` type.");return d}var p1=!1;if(Lt)try{var gp={};Object.defineProperty(gp,"passive",{get:function(){p1=!0}}),window.addEventListener("test",gp,gp),window.removeEventListener("test",gp,gp)}catch{p1=!1}function BT(n,r,l,u,d,v,b,x,T){var P=Array.prototype.slice.call(arguments,3);try{r.apply(l,P)}catch(z){this.onError(z)}}var HT=BT;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var h1=document.createElement("react");HT=function(r,l,u,d,v,b,x,T,P){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var z=document.createEvent("Event"),Z=!1,q=!0,fe=window.event,ce=Object.getOwnPropertyDescriptor(window,"event");function he(){h1.removeEventListener(ye,ft,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=fe)}var qe=Array.prototype.slice.call(arguments,3);function ft(){Z=!0,he(),l.apply(u,qe),q=!1}var ot,Nt=!1,zt=!1;function ae(oe){if(ot=oe.error,Nt=!0,ot===null&&oe.colno===0&&oe.lineno===0&&(zt=!0),oe.defaultPrevented&&ot!=null&&typeof ot=="object")try{ot._suppressLogging=!0}catch{}}var ye="react-"+(r||"invokeguardedcallback");if(window.addEventListener("error",ae),h1.addEventListener(ye,ft,!1),z.initEvent(ye,!1,!1),h1.dispatchEvent(z),ce&&Object.defineProperty(window,"event",ce),Z&&q&&(Nt?zt&&(ot=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):ot=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(ot)),window.removeEventListener("error",ae),!Z)return he(),BT.apply(this,arguments)}}var r7=HT,ff=!1,Lm=null,Tm=!1,v1=null,i7={onError:function(n){ff=!0,Lm=n}};function m1(n,r,l,u,d,v,b,x,T){ff=!1,Lm=null,r7.apply(i7,arguments)}function a7(n,r,l,u,d,v,b,x,T){if(m1.apply(this,arguments),ff){var P=g1();Tm||(Tm=!0,v1=P)}}function o7(){if(Tm){var n=v1;throw Tm=!1,v1=null,n}}function l7(){return ff}function g1(){if(ff){var n=Lm;return ff=!1,Lm=null,n}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function df(n){return n._reactInternals}function s7(n){return n._reactInternals!==void 0}function u7(n,r){n._reactInternals=r}var ht=0,pf=1,yr=2,Gt=4,Ou=16,yp=32,y1=64,Jt=128,Ml=256,gs=512,Du=1024,bo=2048,Rl=4096,Pu=8192,_m=16384,c7=bo|Gt|y1|gs|Du|_m,f7=32767,bp=32768,Ri=65536,b1=131072,VT=1048576,S1=2097152,Au=4194304,x1=8388608,Ol=16777216,km=33554432,E1=Gt|Du|0,w1=yr|Gt|Ou|yp|gs|Rl|Pu,Sp=Gt|y1|gs|Pu,hf=bo|Ou,Dl=Au|x1|S1,d7=a.ReactCurrentOwner;function Nu(n){var r=n,l=n;if(n.alternate)for(;r.return;)r=r.return;else{var u=r;do r=u,(r.flags&(yr|Rl))!==ht&&(l=r.return),u=r.return;while(u)}return r.tag===C?l:null}function $T(n){if(n.tag===F){var r=n.memoizedState;if(r===null){var l=n.alternate;l!==null&&(r=l.memoizedState)}if(r!==null)return r.dehydrated}return null}function WT(n){return n.tag===C?n.stateNode.containerInfo:null}function p7(n){return Nu(n)===n}function h7(n){{var r=d7.current;if(r!==null&&r.tag===y){var l=r,u=l.stateNode;u._warnedAboutRefsInRender||p("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",be(l)||"A component"),u._warnedAboutRefsInRender=!0}}var d=df(n);return d?Nu(d)===d:!1}function GT(n){if(Nu(n)!==n)throw new Error("Unable to find node on an unmounted component.")}function YT(n){var r=n.alternate;if(!r){var l=Nu(n);if(l===null)throw new Error("Unable to find node on an unmounted component.");return l!==n?null:n}for(var u=n,d=r;;){var v=u.return;if(v===null)break;var b=v.alternate;if(b===null){var x=v.return;if(x!==null){u=d=x;continue}break}if(v.child===b.child){for(var T=v.child;T;){if(T===u)return GT(v),n;if(T===d)return GT(v),r;T=T.sibling}throw new Error("Unable to find node on an unmounted component.")}if(u.return!==d.return)u=v,d=b;else{for(var P=!1,z=v.child;z;){if(z===u){P=!0,u=v,d=b;break}if(z===d){P=!0,d=v,u=b;break}z=z.sibling}if(!P){for(z=b.child;z;){if(z===u){P=!0,u=b,d=v;break}if(z===d){P=!0,d=b,u=v;break}z=z.sibling}if(!P)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(u.alternate!==d)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(u.tag!==C)throw new Error("Unable to find node on an unmounted component.");return u.stateNode.current===u?n:r}function qT(n){var r=YT(n);return r!==null?ZT(r):null}function ZT(n){if(n.tag===_||n.tag===A)return n;for(var r=n.child;r!==null;){var l=ZT(r);if(l!==null)return l;r=r.sibling}return null}function v7(n){var r=YT(n);return r!==null?QT(r):null}function QT(n){if(n.tag===_||n.tag===A)return n;for(var r=n.child;r!==null;){if(r.tag!==M){var l=QT(r);if(l!==null)return l}r=r.sibling}return null}var KT=t.unstable_scheduleCallback,m7=t.unstable_cancelCallback,g7=t.unstable_shouldYield,y7=t.unstable_requestPaint,Ir=t.unstable_now,b7=t.unstable_getCurrentPriorityLevel,Mm=t.unstable_ImmediatePriority,C1=t.unstable_UserBlockingPriority,zu=t.unstable_NormalPriority,S7=t.unstable_LowPriority,L1=t.unstable_IdlePriority,x7=t.unstable_yieldValue,E7=t.unstable_setDisableYieldValue,Iu=null,Zr=null,Ye=null,tl=!1,So=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function w7(n){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(r.isDisabled)return!0;if(!r.supportsFiber)return p("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{Oe&&(n=At({},n,{getLaneLabelMap:M7,injectProfilingHooks:k7})),Iu=r.inject(n),Zr=r}catch(l){p("React instrumentation encountered an error: %s.",l)}return!!r.checkDCE}function C7(n,r){if(Zr&&typeof Zr.onScheduleFiberRoot=="function")try{Zr.onScheduleFiberRoot(Iu,n,r)}catch(l){tl||(tl=!0,p("React instrumentation encountered an error: %s",l))}}function L7(n,r){if(Zr&&typeof Zr.onCommitFiberRoot=="function")try{var l=(n.current.flags&Jt)===Jt;if(je){var u;switch(r){case ga:u=Mm;break;case Al:u=C1;break;case Nl:u=zu;break;case zm:u=L1;break;default:u=zu;break}Zr.onCommitFiberRoot(Iu,n,u,l)}else Zr.onCommitFiberRoot(Iu,n,void 0,l)}catch(d){tl||(tl=!0,p("React instrumentation encountered an error: %s",d))}}function T7(n){if(Zr&&typeof Zr.onPostCommitFiberRoot=="function")try{Zr.onPostCommitFiberRoot(Iu,n)}catch(r){tl||(tl=!0,p("React instrumentation encountered an error: %s",r))}}function _7(n){if(Zr&&typeof Zr.onCommitFiberUnmount=="function")try{Zr.onCommitFiberUnmount(Iu,n)}catch(r){tl||(tl=!0,p("React instrumentation encountered an error: %s",r))}}function Fr(n){if(typeof x7=="function"&&(E7(n),s(n)),Zr&&typeof Zr.setStrictMode=="function")try{Zr.setStrictMode(Iu,n)}catch(r){tl||(tl=!0,p("React instrumentation encountered an error: %s",r))}}function k7(n){Ye=n}function M7(){{for(var n=new Map,r=1,l=0;l<_1;l++){var u=Z7(r);n.set(r,u),r*=2}return n}}function R7(n){Ye!==null&&typeof Ye.markCommitStarted=="function"&&Ye.markCommitStarted(n)}function JT(){Ye!==null&&typeof Ye.markCommitStopped=="function"&&Ye.markCommitStopped()}function xp(n){Ye!==null&&typeof Ye.markComponentRenderStarted=="function"&&Ye.markComponentRenderStarted(n)}function vf(){Ye!==null&&typeof Ye.markComponentRenderStopped=="function"&&Ye.markComponentRenderStopped()}function O7(n){Ye!==null&&typeof Ye.markComponentPassiveEffectMountStarted=="function"&&Ye.markComponentPassiveEffectMountStarted(n)}function D7(){Ye!==null&&typeof Ye.markComponentPassiveEffectMountStopped=="function"&&Ye.markComponentPassiveEffectMountStopped()}function P7(n){Ye!==null&&typeof Ye.markComponentPassiveEffectUnmountStarted=="function"&&Ye.markComponentPassiveEffectUnmountStarted(n)}function A7(){Ye!==null&&typeof Ye.markComponentPassiveEffectUnmountStopped=="function"&&Ye.markComponentPassiveEffectUnmountStopped()}function N7(n){Ye!==null&&typeof Ye.markComponentLayoutEffectMountStarted=="function"&&Ye.markComponentLayoutEffectMountStarted(n)}function z7(){Ye!==null&&typeof Ye.markComponentLayoutEffectMountStopped=="function"&&Ye.markComponentLayoutEffectMountStopped()}function XT(n){Ye!==null&&typeof Ye.markComponentLayoutEffectUnmountStarted=="function"&&Ye.markComponentLayoutEffectUnmountStarted(n)}function e_(){Ye!==null&&typeof Ye.markComponentLayoutEffectUnmountStopped=="function"&&Ye.markComponentLayoutEffectUnmountStopped()}function I7(n,r,l){Ye!==null&&typeof Ye.markComponentErrored=="function"&&Ye.markComponentErrored(n,r,l)}function F7(n,r,l){Ye!==null&&typeof Ye.markComponentSuspended=="function"&&Ye.markComponentSuspended(n,r,l)}function j7(n){Ye!==null&&typeof Ye.markLayoutEffectsStarted=="function"&&Ye.markLayoutEffectsStarted(n)}function U7(){Ye!==null&&typeof Ye.markLayoutEffectsStopped=="function"&&Ye.markLayoutEffectsStopped()}function B7(n){Ye!==null&&typeof Ye.markPassiveEffectsStarted=="function"&&Ye.markPassiveEffectsStarted(n)}function H7(){Ye!==null&&typeof Ye.markPassiveEffectsStopped=="function"&&Ye.markPassiveEffectsStopped()}function t_(n){Ye!==null&&typeof Ye.markRenderStarted=="function"&&Ye.markRenderStarted(n)}function V7(){Ye!==null&&typeof Ye.markRenderYielded=="function"&&Ye.markRenderYielded()}function n_(){Ye!==null&&typeof Ye.markRenderStopped=="function"&&Ye.markRenderStopped()}function $7(n){Ye!==null&&typeof Ye.markRenderScheduled=="function"&&Ye.markRenderScheduled(n)}function W7(n,r){Ye!==null&&typeof Ye.markForceUpdateScheduled=="function"&&Ye.markForceUpdateScheduled(n,r)}function T1(n,r){Ye!==null&&typeof Ye.markStateUpdateScheduled=="function"&&Ye.markStateUpdateScheduled(n,r)}var vt=0,Bt=1,gn=2,br=8,nl=16,r_=Math.clz32?Math.clz32:q7,G7=Math.log,Y7=Math.LN2;function q7(n){var r=n>>>0;return r===0?32:31-(G7(r)/Y7|0)|0}var _1=31,Me=0,jr=0,wt=1,mf=2,Pl=4,Fu=8,rl=16,Ep=32,gf=4194240,wp=64,k1=128,M1=256,R1=512,O1=1024,D1=2048,P1=4096,A1=8192,N1=16384,z1=32768,I1=65536,F1=131072,j1=262144,U1=524288,B1=1048576,H1=2097152,Rm=130023424,yf=4194304,V1=8388608,$1=16777216,W1=33554432,G1=67108864,i_=yf,Cp=134217728,a_=268435455,Lp=268435456,ju=536870912,va=1073741824;function Z7(n){{if(n&wt)return"Sync";if(n&mf)return"InputContinuousHydration";if(n&Pl)return"InputContinuous";if(n&Fu)return"DefaultHydration";if(n&rl)return"Default";if(n&Ep)return"TransitionHydration";if(n&gf)return"Transition";if(n&Rm)return"Retry";if(n&Cp)return"SelectiveHydration";if(n&Lp)return"IdleHydration";if(n&ju)return"Idle";if(n&va)return"Offscreen"}}var An=-1,Om=wp,Dm=yf;function Tp(n){switch(Uu(n)){case wt:return wt;case mf:return mf;case Pl:return Pl;case Fu:return Fu;case rl:return rl;case Ep:return Ep;case wp:case k1:case M1:case R1:case O1:case D1:case P1:case A1:case N1:case z1:case I1:case F1:case j1:case U1:case B1:case H1:return n&gf;case yf:case V1:case $1:case W1:case G1:return n&Rm;case Cp:return Cp;case Lp:return Lp;case ju:return ju;case va:return va;default:return p("Should have found matching lanes. This is a bug in React."),n}}function Pm(n,r){var l=n.pendingLanes;if(l===Me)return Me;var u=Me,d=n.suspendedLanes,v=n.pingedLanes,b=l&a_;if(b!==Me){var x=b&~d;if(x!==Me)u=Tp(x);else{var T=b&v;T!==Me&&(u=Tp(T))}}else{var P=l&~d;P!==Me?u=Tp(P):v!==Me&&(u=Tp(v))}if(u===Me)return Me;if(r!==Me&&r!==u&&(r&d)===Me){var z=Uu(u),Z=Uu(r);if(z>=Z||z===rl&&(Z&gf)!==Me)return r}(u&Pl)!==Me&&(u|=l&rl);var q=n.entangledLanes;if(q!==Me)for(var fe=n.entanglements,ce=u&q;ce>0;){var he=Bu(ce),qe=1<<he;u|=fe[he],ce&=~qe}return u}function Q7(n,r){for(var l=n.eventTimes,u=An;r>0;){var d=Bu(r),v=1<<d,b=l[d];b>u&&(u=b),r&=~v}return u}function K7(n,r){switch(n){case wt:case mf:case Pl:return r+250;case Fu:case rl:case Ep:case wp:case k1:case M1:case R1:case O1:case D1:case P1:case A1:case N1:case z1:case I1:case F1:case j1:case U1:case B1:case H1:return r+5e3;case yf:case V1:case $1:case W1:case G1:return An;case Cp:case Lp:case ju:case va:return An;default:return p("Should have found matching lanes. This is a bug in React."),An}}function J7(n,r){for(var l=n.pendingLanes,u=n.suspendedLanes,d=n.pingedLanes,v=n.expirationTimes,b=l;b>0;){var x=Bu(b),T=1<<x,P=v[x];P===An?((T&u)===Me||(T&d)!==Me)&&(v[x]=K7(T,r)):P<=r&&(n.expiredLanes|=T),b&=~T}}function X7(n){return Tp(n.pendingLanes)}function Y1(n){var r=n.pendingLanes&~va;return r!==Me?r:r&va?va:Me}function eA(n){return(n&wt)!==Me}function q1(n){return(n&a_)!==Me}function o_(n){return(n&Rm)===n}function tA(n){var r=wt|Pl|rl;return(n&r)===Me}function nA(n){return(n&gf)===n}function Am(n,r){var l=mf|Pl|Fu|rl;return(r&l)!==Me}function rA(n,r){return(r&n.expiredLanes)!==Me}function l_(n){return(n&gf)!==Me}function s_(){var n=Om;return Om<<=1,(Om&gf)===Me&&(Om=wp),n}function iA(){var n=Dm;return Dm<<=1,(Dm&Rm)===Me&&(Dm=yf),n}function Uu(n){return n&-n}function _p(n){return Uu(n)}function Bu(n){return 31-r_(n)}function Z1(n){return Bu(n)}function ma(n,r){return(n&r)!==Me}function bf(n,r){return(n&r)===r}function kt(n,r){return n|r}function Nm(n,r){return n&~r}function u_(n,r){return n&r}function OX(n){return n}function aA(n,r){return n!==jr&&n<r?n:r}function Q1(n){for(var r=[],l=0;l<_1;l++)r.push(n);return r}function kp(n,r,l){n.pendingLanes|=r,r!==ju&&(n.suspendedLanes=Me,n.pingedLanes=Me);var u=n.eventTimes,d=Z1(r);u[d]=l}function oA(n,r){n.suspendedLanes|=r,n.pingedLanes&=~r;for(var l=n.expirationTimes,u=r;u>0;){var d=Bu(u),v=1<<d;l[d]=An,u&=~v}}function c_(n,r,l){n.pingedLanes|=n.suspendedLanes&r}function lA(n,r){var l=n.pendingLanes&~r;n.pendingLanes=r,n.suspendedLanes=Me,n.pingedLanes=Me,n.expiredLanes&=r,n.mutableReadLanes&=r,n.entangledLanes&=r;for(var u=n.entanglements,d=n.eventTimes,v=n.expirationTimes,b=l;b>0;){var x=Bu(b),T=1<<x;u[x]=Me,d[x]=An,v[x]=An,b&=~T}}function K1(n,r){for(var l=n.entangledLanes|=r,u=n.entanglements,d=l;d;){var v=Bu(d),b=1<<v;b&r|u[v]&r&&(u[v]|=r),d&=~b}}function sA(n,r){var l=Uu(r),u;switch(l){case Pl:u=mf;break;case rl:u=Fu;break;case wp:case k1:case M1:case R1:case O1:case D1:case P1:case A1:case N1:case z1:case I1:case F1:case j1:case U1:case B1:case H1:case yf:case V1:case $1:case W1:case G1:u=Ep;break;case ju:u=Lp;break;default:u=jr;break}return(u&(n.suspendedLanes|r))!==jr?jr:u}function f_(n,r,l){if(!!So)for(var u=n.pendingUpdatersLaneMap;l>0;){var d=Z1(l),v=1<<d,b=u[d];b.add(r),l&=~v}}function d_(n,r){if(!!So)for(var l=n.pendingUpdatersLaneMap,u=n.memoizedUpdaters;r>0;){var d=Z1(r),v=1<<d,b=l[d];b.size>0&&(b.forEach(function(x){var T=x.alternate;(T===null||!u.has(T))&&u.add(x)}),b.clear()),r&=~v}}function p_(n,r){return null}var ga=wt,Al=Pl,Nl=rl,zm=ju,Mp=jr;function xo(){return Mp}function Ur(n){Mp=n}function uA(n,r){var l=Mp;try{return Mp=n,r()}finally{Mp=l}}function cA(n,r){return n!==0&&n<r?n:r}function fA(n,r){return n===0||n>r?n:r}function J1(n,r){return n!==0&&n<r}function h_(n){var r=Uu(n);return J1(ga,r)?J1(Al,r)?q1(r)?Nl:zm:Al:ga}function Im(n){var r=n.current.memoizedState;return r.isDehydrated}var v_;function dA(n){v_=n}function pA(n){v_(n)}var X1;function hA(n){X1=n}var m_;function vA(n){m_=n}var g_;function mA(n){g_=n}var y_;function gA(n){y_=n}var eS=!1,Fm=[],ys=null,bs=null,Ss=null,Rp=new Map,Op=new Map,xs=[],yA=["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"];function bA(n){return yA.indexOf(n)>-1}function SA(n,r,l,u,d){return{blockedOn:n,domEventName:r,eventSystemFlags:l,nativeEvent:d,targetContainers:[u]}}function b_(n,r){switch(n){case"focusin":case"focusout":ys=null;break;case"dragenter":case"dragleave":bs=null;break;case"mouseover":case"mouseout":Ss=null;break;case"pointerover":case"pointerout":{var l=r.pointerId;Rp.delete(l);break}case"gotpointercapture":case"lostpointercapture":{var u=r.pointerId;Op.delete(u);break}}}function Dp(n,r,l,u,d,v){if(n===null||n.nativeEvent!==v){var b=SA(r,l,u,d,v);if(r!==null){var x=Cs(r);x!==null&&X1(x)}return b}n.eventSystemFlags|=u;var T=n.targetContainers;return d!==null&&T.indexOf(d)===-1&&T.push(d),n}function xA(n,r,l,u,d){switch(r){case"focusin":{var v=d;return ys=Dp(ys,n,r,l,u,v),!0}case"dragenter":{var b=d;return bs=Dp(bs,n,r,l,u,b),!0}case"mouseover":{var x=d;return Ss=Dp(Ss,n,r,l,u,x),!0}case"pointerover":{var T=d,P=T.pointerId;return Rp.set(P,Dp(Rp.get(P)||null,n,r,l,u,T)),!0}case"gotpointercapture":{var z=d,Z=z.pointerId;return Op.set(Z,Dp(Op.get(Z)||null,n,r,l,u,z)),!0}}return!1}function S_(n){var r=$u(n.target);if(r!==null){var l=Nu(r);if(l!==null){var u=l.tag;if(u===F){var d=$T(l);if(d!==null){n.blockedOn=d,y_(n.priority,function(){m_(l)});return}}else if(u===C){var v=l.stateNode;if(Im(v)){n.blockedOn=WT(l);return}}}}n.blockedOn=null}function EA(n){for(var r=g_(),l={blockedOn:null,target:n,priority:r},u=0;u<xs.length&&J1(r,xs[u].priority);u++);xs.splice(u,0,l),u===0&&S_(l)}function jm(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;r.length>0;){var l=r[0],u=rS(n.domEventName,n.eventSystemFlags,l,n.nativeEvent);if(u===null){var d=n.nativeEvent,v=new d.constructor(d.type,d);qP(v),d.target.dispatchEvent(v),ZP()}else{var b=Cs(u);return b!==null&&X1(b),n.blockedOn=u,!1}r.shift()}return!0}function x_(n,r,l){jm(n)&&l.delete(r)}function wA(){eS=!1,ys!==null&&jm(ys)&&(ys=null),bs!==null&&jm(bs)&&(bs=null),Ss!==null&&jm(Ss)&&(Ss=null),Rp.forEach(x_),Op.forEach(x_)}function Pp(n,r){n.blockedOn===r&&(n.blockedOn=null,eS||(eS=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,wA)))}function Ap(n){if(Fm.length>0){Pp(Fm[0],n);for(var r=1;r<Fm.length;r++){var l=Fm[r];l.blockedOn===n&&(l.blockedOn=null)}}ys!==null&&Pp(ys,n),bs!==null&&Pp(bs,n),Ss!==null&&Pp(Ss,n);var u=function(x){return Pp(x,n)};Rp.forEach(u),Op.forEach(u);for(var d=0;d<xs.length;d++){var v=xs[d];v.blockedOn===n&&(v.blockedOn=null)}for(;xs.length>0;){var b=xs[0];if(b.blockedOn!==null)break;S_(b),b.blockedOn===null&&xs.shift()}}var Sf=a.ReactCurrentBatchConfig,tS=!0;function E_(n){tS=!!n}function CA(){return tS}function LA(n,r,l){var u=w_(r),d;switch(u){case ga:d=TA;break;case Al:d=_A;break;case Nl:default:d=nS;break}return d.bind(null,r,l,n)}function TA(n,r,l,u){var d=xo(),v=Sf.transition;Sf.transition=null;try{Ur(ga),nS(n,r,l,u)}finally{Ur(d),Sf.transition=v}}function _A(n,r,l,u){var d=xo(),v=Sf.transition;Sf.transition=null;try{Ur(Al),nS(n,r,l,u)}finally{Ur(d),Sf.transition=v}}function nS(n,r,l,u){!tS||kA(n,r,l,u)}function kA(n,r,l,u){var d=rS(n,r,l,u);if(d===null){gS(n,r,u,Um,l),b_(n,u);return}if(xA(d,n,r,l,u)){u.stopPropagation();return}if(b_(n,u),r&hp&&bA(n)){for(;d!==null;){var v=Cs(d);v!==null&&pA(v);var b=rS(n,r,l,u);if(b===null&&gS(n,r,u,Um,l),b===d)break;d=b}d!==null&&u.stopPropagation();return}gS(n,r,u,null,l)}var Um=null;function rS(n,r,l,u){Um=null;var d=c1(u),v=$u(d);if(v!==null){var b=Nu(v);if(b===null)v=null;else{var x=b.tag;if(x===F){var T=$T(b);if(T!==null)return T;v=null}else if(x===C){var P=b.stateNode;if(Im(P))return WT(b);v=null}else b!==v&&(v=null)}}return Um=v,null}function w_(n){switch(n){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 ga;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 Al;case"message":{var r=b7();switch(r){case Mm:return ga;case C1:return Al;case zu:case S7:return Nl;case L1:return zm;default:return Nl}}default:return Nl}}function MA(n,r,l){return n.addEventListener(r,l,!1),l}function RA(n,r,l){return n.addEventListener(r,l,!0),l}function OA(n,r,l,u){return n.addEventListener(r,l,{capture:!0,passive:u}),l}function DA(n,r,l,u){return n.addEventListener(r,l,{passive:u}),l}var Np=null,iS=null,zp=null;function PA(n){return Np=n,iS=L_(),!0}function AA(){Np=null,iS=null,zp=null}function C_(){if(zp)return zp;var n,r=iS,l=r.length,u,d=L_(),v=d.length;for(n=0;n<l&&r[n]===d[n];n++);var b=l-n;for(u=1;u<=b&&r[l-u]===d[v-u];u++);var x=u>1?1-u:void 0;return zp=d.slice(n,x),zp}function L_(){return"value"in Np?Np.value:Np.textContent}function Bm(n){var r,l=n.keyCode;return"charCode"in n?(r=n.charCode,r===0&&l===13&&(r=13)):r=l,r===10&&(r=13),r>=32||r===13?r:0}function Hm(){return!0}function T_(){return!1}function ya(n){function r(l,u,d,v,b){this._reactName=l,this._targetInst=d,this.type=u,this.nativeEvent=v,this.target=b,this.currentTarget=null;for(var x in n)if(!!n.hasOwnProperty(x)){var T=n[x];T?this[x]=T(v):this[x]=v[x]}var P=v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1;return P?this.isDefaultPrevented=Hm:this.isDefaultPrevented=T_,this.isPropagationStopped=T_,this}return At(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;!l||(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Hm)},stopPropagation:function(){var l=this.nativeEvent;!l||(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Hm)},persist:function(){},isPersistent:Hm}),r}var xf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},aS=ya(xf),Ip=At({},xf,{view:0,detail:0}),NA=ya(Ip),oS,lS,Fp;function zA(n){n!==Fp&&(Fp&&n.type==="mousemove"?(oS=n.screenX-Fp.screenX,lS=n.screenY-Fp.screenY):(oS=0,lS=0),Fp=n)}var Vm=At({},Ip,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uS,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(zA(n),oS)},movementY:function(n){return"movementY"in n?n.movementY:lS}}),__=ya(Vm),IA=At({},Vm,{dataTransfer:0}),FA=ya(IA),jA=At({},Ip,{relatedTarget:0}),sS=ya(jA),UA=At({},xf,{animationName:0,elapsedTime:0,pseudoElement:0}),BA=ya(UA),HA=At({},xf,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),VA=ya(HA),$A=At({},xf,{data:0}),k_=ya($A),WA=k_,GA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},YA={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"};function qA(n){if(n.key){var r=GA[n.key]||n.key;if(r!=="Unidentified")return r}if(n.type==="keypress"){var l=Bm(n);return l===13?"Enter":String.fromCharCode(l)}return n.type==="keydown"||n.type==="keyup"?YA[n.keyCode]||"Unidentified":""}var ZA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function QA(n){var r=this,l=r.nativeEvent;if(l.getModifierState)return l.getModifierState(n);var u=ZA[n];return u?!!l[u]:!1}function uS(n){return QA}var KA=At({},Ip,{key:qA,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uS,charCode:function(n){return n.type==="keypress"?Bm(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Bm(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),JA=ya(KA),XA=At({},Vm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),M_=ya(XA),eN=At({},Ip,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uS}),tN=ya(eN),nN=At({},xf,{propertyName:0,elapsedTime:0,pseudoElement:0}),rN=ya(nN),iN=At({},Vm,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),aN=ya(iN),oN=[9,13,27,32],R_=229,cS=Lt&&"CompositionEvent"in window,jp=null;Lt&&"documentMode"in document&&(jp=document.documentMode);var lN=Lt&&"TextEvent"in window&&!jp,O_=Lt&&(!cS||jp&&jp>8&&jp<=11),D_=32,P_=String.fromCharCode(D_);function sN(){_t("onBeforeInput",["compositionend","keypress","textInput","paste"]),_t("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),_t("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),_t("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var A_=!1;function uN(n){return(n.ctrlKey||n.altKey||n.metaKey)&&!(n.ctrlKey&&n.altKey)}function cN(n){switch(n){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function fN(n,r){return n==="keydown"&&r.keyCode===R_}function N_(n,r){switch(n){case"keyup":return oN.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==R_;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z_(n){var r=n.detail;return typeof r=="object"&&"data"in r?r.data:null}function I_(n){return n.locale==="ko"}var Ef=!1;function dN(n,r,l,u,d){var v,b;if(cS?v=cN(r):Ef?N_(r,u)&&(v="onCompositionEnd"):fN(r,u)&&(v="onCompositionStart"),!v)return null;O_&&!I_(u)&&(!Ef&&v==="onCompositionStart"?Ef=PA(d):v==="onCompositionEnd"&&Ef&&(b=C_()));var x=qm(l,v);if(x.length>0){var T=new k_(v,r,null,u,d);if(n.push({event:T,listeners:x}),b)T.data=b;else{var P=z_(u);P!==null&&(T.data=P)}}}function pN(n,r){switch(n){case"compositionend":return z_(r);case"keypress":var l=r.which;return l!==D_?null:(A_=!0,P_);case"textInput":var u=r.data;return u===P_&&A_?null:u;default:return null}}function hN(n,r){if(Ef){if(n==="compositionend"||!cS&&N_(n,r)){var l=C_();return AA(),Ef=!1,l}return null}switch(n){case"paste":return null;case"keypress":if(!uN(r)){if(r.char&&r.char.length>1)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return O_&&!I_(r)?null:r.data;default:return null}}function vN(n,r,l,u,d){var v;if(lN?v=pN(r,u):v=hN(r,u),!v)return null;var b=qm(l,"onBeforeInput");if(b.length>0){var x=new WA("onBeforeInput","beforeinput",null,u,d);n.push({event:x,listeners:b}),x.data=v}}function mN(n,r,l,u,d,v,b){dN(n,r,l,u,d),vN(n,r,l,u,d)}var gN={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 F_(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!gN[n.type]:r==="textarea"}function yN(n){if(!Lt)return!1;var r="on"+n,l=r in document;if(!l){var u=document.createElement("div");u.setAttribute(r,"return;"),l=typeof u[r]=="function"}return l}function bN(){_t("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function j_(n,r,l,u){zT(u);var d=qm(r,"onChange");if(d.length>0){var v=new aS("onChange","change",null,l,u);n.push({event:v,listeners:d})}}var Up=null,Bp=null;function SN(n){var r=n.nodeName&&n.nodeName.toLowerCase();return r==="select"||r==="input"&&n.type==="file"}function xN(n){var r=[];j_(r,Bp,n,c1(n)),UT(EN,r)}function EN(n){rk(n,0)}function $m(n){var r=kf(n);if(tp(r))return n}function wN(n,r){if(n==="change")return r}var U_=!1;Lt&&(U_=yN("input")&&(!document.documentMode||document.documentMode>9));function CN(n,r){Up=n,Bp=r,Up.attachEvent("onpropertychange",H_)}function B_(){!Up||(Up.detachEvent("onpropertychange",H_),Up=null,Bp=null)}function H_(n){n.propertyName==="value"&&$m(Bp)&&xN(n)}function LN(n,r,l){n==="focusin"?(B_(),CN(r,l)):n==="focusout"&&B_()}function TN(n,r){if(n==="selectionchange"||n==="keyup"||n==="keydown")return $m(Bp)}function _N(n){var r=n.nodeName;return r&&r.toLowerCase()==="input"&&(n.type==="checkbox"||n.type==="radio")}function kN(n,r){if(n==="click")return $m(r)}function MN(n,r){if(n==="input"||n==="change")return $m(r)}function RN(n){var r=n._wrapperState;!r||!r.controlled||n.type!=="number"||Lu(n,"number",n.value)}function ON(n,r,l,u,d,v,b){var x=l?kf(l):window,T,P;if(SN(x)?T=wN:F_(x)?U_?T=MN:(T=TN,P=LN):_N(x)&&(T=kN),T){var z=T(r,l);if(z){j_(n,z,u,d);return}}P&&P(r,x,l),r==="focusout"&&RN(x)}function DN(){Ae("onMouseEnter",["mouseout","mouseover"]),Ae("onMouseLeave",["mouseout","mouseover"]),Ae("onPointerEnter",["pointerout","pointerover"]),Ae("onPointerLeave",["pointerout","pointerover"])}function PN(n,r,l,u,d,v,b){var x=r==="mouseover"||r==="pointerover",T=r==="mouseout"||r==="pointerout";if(x&&!QP(u)){var P=u.relatedTarget||u.fromElement;if(P&&($u(P)||nh(P)))return}if(!(!T&&!x)){var z;if(d.window===d)z=d;else{var Z=d.ownerDocument;Z?z=Z.defaultView||Z.parentWindow:z=window}var q,fe;if(T){var ce=u.relatedTarget||u.toElement;if(q=l,fe=ce?$u(ce):null,fe!==null){var he=Nu(fe);(fe!==he||fe.tag!==_&&fe.tag!==A)&&(fe=null)}}else q=null,fe=l;if(q!==fe){var qe=__,ft="onMouseLeave",ot="onMouseEnter",Nt="mouse";(r==="pointerout"||r==="pointerover")&&(qe=M_,ft="onPointerLeave",ot="onPointerEnter",Nt="pointer");var zt=q==null?z:kf(q),ae=fe==null?z:kf(fe),ye=new qe(ft,Nt+"leave",q,u,d);ye.target=zt,ye.relatedTarget=ae;var oe=null,De=$u(d);if(De===l){var Ke=new qe(ot,Nt+"enter",fe,u,d);Ke.target=ae,Ke.relatedTarget=zt,oe=Ke}rz(n,ye,oe,q,fe)}}}function AN(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var ba=typeof Object.is=="function"?Object.is:AN;function Hp(n,r){if(ba(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var l=Object.keys(n),u=Object.keys(r);if(l.length!==u.length)return!1;for(var d=0;d<l.length;d++){var v=l[d];if(!tt.call(r,v)||!ba(n[v],r[v]))return!1}return!0}function V_(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function NN(n){for(;n;){if(n.nextSibling)return n.nextSibling;n=n.parentNode}}function $_(n,r){for(var l=V_(n),u=0,d=0;l;){if(l.nodeType===da){if(d=u+l.textContent.length,u<=r&&d>=r)return{node:l,offset:r-u};u=d}l=V_(NN(l))}}function zN(n){var r=n.ownerDocument,l=r&&r.defaultView||window,u=l.getSelection&&l.getSelection();if(!u||u.rangeCount===0)return null;var d=u.anchorNode,v=u.anchorOffset,b=u.focusNode,x=u.focusOffset;try{d.nodeType,b.nodeType}catch{return null}return IN(n,d,v,b,x)}function IN(n,r,l,u,d){var v=0,b=-1,x=-1,T=0,P=0,z=n,Z=null;e:for(;;){for(var q=null;z===r&&(l===0||z.nodeType===da)&&(b=v+l),z===u&&(d===0||z.nodeType===da)&&(x=v+d),z.nodeType===da&&(v+=z.nodeValue.length),(q=z.firstChild)!==null;)Z=z,z=q;for(;;){if(z===n)break e;if(Z===r&&++T===l&&(b=v),Z===u&&++P===d&&(x=v),(q=z.nextSibling)!==null)break;z=Z,Z=z.parentNode}z=q}return b===-1||x===-1?null:{start:b,end:x}}function FN(n,r){var l=n.ownerDocument||document,u=l&&l.defaultView||window;if(!!u.getSelection){var d=u.getSelection(),v=n.textContent.length,b=Math.min(r.start,v),x=r.end===void 0?b:Math.min(r.end,v);if(!d.extend&&b>x){var T=x;x=b,b=T}var P=$_(n,b),z=$_(n,x);if(P&&z){if(d.rangeCount===1&&d.anchorNode===P.node&&d.anchorOffset===P.offset&&d.focusNode===z.node&&d.focusOffset===z.offset)return;var Z=l.createRange();Z.setStart(P.node,P.offset),d.removeAllRanges(),b>x?(d.addRange(Z),d.extend(z.node,z.offset)):(Z.setEnd(z.node,z.offset),d.addRange(Z))}}}function W_(n){return n&&n.nodeType===da}function G_(n,r){return!n||!r?!1:n===r?!0:W_(n)?!1:W_(r)?G_(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1}function jN(n){return n&&n.ownerDocument&&G_(n.ownerDocument.documentElement,n)}function UN(n){try{return typeof n.contentWindow.location.href=="string"}catch{return!1}}function Y_(){for(var n=window,r=qc();r instanceof n.HTMLIFrameElement;){if(UN(r))n=r.contentWindow;else return r;r=qc(n.document)}return r}function fS(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}function BN(){var n=Y_();return{focusedElem:n,selectionRange:fS(n)?VN(n):null}}function HN(n){var r=Y_(),l=n.focusedElem,u=n.selectionRange;if(r!==l&&jN(l)){u!==null&&fS(l)&&$N(l,u);for(var d=[],v=l;v=v.parentNode;)v.nodeType===Cr&&d.push({element:v,left:v.scrollLeft,top:v.scrollTop});typeof l.focus=="function"&&l.focus();for(var b=0;b<d.length;b++){var x=d[b];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}}function VN(n){var r;return"selectionStart"in n?r={start:n.selectionStart,end:n.selectionEnd}:r=zN(n),r||{start:0,end:0}}function $N(n,r){var l=r.start,u=r.end;u===void 0&&(u=l),"selectionStart"in n?(n.selectionStart=l,n.selectionEnd=Math.min(u,n.value.length)):FN(n,r)}var WN=Lt&&"documentMode"in document&&document.documentMode<=11;function GN(){_t("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var wf=null,dS=null,Vp=null,pS=!1;function YN(n){if("selectionStart"in n&&fS(n))return{start:n.selectionStart,end:n.selectionEnd};var r=n.ownerDocument&&n.ownerDocument.defaultView||window,l=r.getSelection();return{anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}}function qN(n){return n.window===n?n.document:n.nodeType===Ua?n:n.ownerDocument}function q_(n,r,l){var u=qN(l);if(!(pS||wf==null||wf!==qc(u))){var d=YN(wf);if(!Vp||!Hp(Vp,d)){Vp=d;var v=qm(dS,"onSelect");if(v.length>0){var b=new aS("onSelect","select",null,r,l);n.push({event:b,listeners:v}),b.target=wf}}}}function ZN(n,r,l,u,d,v,b){var x=l?kf(l):window;switch(r){case"focusin":(F_(x)||x.contentEditable==="true")&&(wf=x,dS=l,Vp=null);break;case"focusout":wf=null,dS=null,Vp=null;break;case"mousedown":pS=!0;break;case"contextmenu":case"mouseup":case"dragend":pS=!1,q_(n,u,d);break;case"selectionchange":if(WN)break;case"keydown":case"keyup":q_(n,u,d)}}function Wm(n,r){var l={};return l[n.toLowerCase()]=r.toLowerCase(),l["Webkit"+n]="webkit"+r,l["Moz"+n]="moz"+r,l}var Cf={animationend:Wm("Animation","AnimationEnd"),animationiteration:Wm("Animation","AnimationIteration"),animationstart:Wm("Animation","AnimationStart"),transitionend:Wm("Transition","TransitionEnd")},hS={},Z_={};Lt&&(Z_=document.createElement("div").style,"AnimationEvent"in window||(delete Cf.animationend.animation,delete Cf.animationiteration.animation,delete Cf.animationstart.animation),"TransitionEvent"in window||delete Cf.transitionend.transition);function Gm(n){if(hS[n])return hS[n];if(!Cf[n])return n;var r=Cf[n];for(var l in r)if(r.hasOwnProperty(l)&&l in Z_)return hS[n]=r[l];return n}var Q_=Gm("animationend"),K_=Gm("animationiteration"),J_=Gm("animationstart"),X_=Gm("transitionend"),ek=new Map,tk=["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"];function Es(n,r){ek.set(n,r),_t(r,[n])}function QN(){for(var n=0;n<tk.length;n++){var r=tk[n],l=r.toLowerCase(),u=r[0].toUpperCase()+r.slice(1);Es(l,"on"+u)}Es(Q_,"onAnimationEnd"),Es(K_,"onAnimationIteration"),Es(J_,"onAnimationStart"),Es("dblclick","onDoubleClick"),Es("focusin","onFocus"),Es("focusout","onBlur"),Es(X_,"onTransitionEnd")}function KN(n,r,l,u,d,v,b){var x=ek.get(r);if(x!==void 0){var T=aS,P=r;switch(r){case"keypress":if(Bm(u)===0)return;case"keydown":case"keyup":T=JA;break;case"focusin":P="focus",T=sS;break;case"focusout":P="blur",T=sS;break;case"beforeblur":case"afterblur":T=sS;break;case"click":if(u.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=__;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=FA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=tN;break;case Q_:case K_:case J_:T=BA;break;case X_:T=rN;break;case"scroll":T=NA;break;case"wheel":T=aN;break;case"copy":case"cut":case"paste":T=VA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=M_;break}var z=(v&hp)!==0;{var Z=!z&&r==="scroll",q=tz(l,x,u.type,z,Z);if(q.length>0){var fe=new T(x,P,null,u,d);n.push({event:fe,listeners:q})}}}}QN(),DN(),bN(),GN(),sN();function JN(n,r,l,u,d,v,b){KN(n,r,l,u,d,v);var x=(v&YP)===0;x&&(PN(n,r,l,u,d),ON(n,r,l,u,d),ZN(n,r,l,u,d),mN(n,r,l,u,d))}var $p=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],vS=new Set(["cancel","close","invalid","load","scroll","toggle"].concat($p));function nk(n,r,l){var u=n.type||"unknown-event";n.currentTarget=l,a7(u,r,void 0,n),n.currentTarget=null}function XN(n,r,l){var u;if(l)for(var d=r.length-1;d>=0;d--){var v=r[d],b=v.instance,x=v.currentTarget,T=v.listener;if(b!==u&&n.isPropagationStopped())return;nk(n,T,x),u=b}else for(var P=0;P<r.length;P++){var z=r[P],Z=z.instance,q=z.currentTarget,fe=z.listener;if(Z!==u&&n.isPropagationStopped())return;nk(n,fe,q),u=Z}}function rk(n,r){for(var l=(r&hp)!==0,u=0;u<n.length;u++){var d=n[u],v=d.event,b=d.listeners;XN(v,b,l)}o7()}function ez(n,r,l,u,d){var v=c1(l),b=[];JN(b,n,u,l,v,r),rk(b,r)}function Bn(n,r){vS.has(n)||p('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',n);var l=!1,u=RI(r),d=iz(n,l);u.has(d)||(ik(r,n,u1,l),u.add(d))}function mS(n,r,l){vS.has(n)&&!r&&p('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',n);var u=0;r&&(u|=hp),ik(l,n,u,r)}var Ym="_reactListening"+Math.random().toString(36).slice(2);function Wp(n){if(!n[Ym]){n[Ym]=!0,ut.forEach(function(l){l!=="selectionchange"&&(vS.has(l)||mS(l,!1,n),mS(l,!0,n))});var r=n.nodeType===Ua?n:n.ownerDocument;r!==null&&(r[Ym]||(r[Ym]=!0,mS("selectionchange",!1,r)))}}function ik(n,r,l,u,d){var v=LA(n,r,l),b=void 0;p1&&(r==="touchstart"||r==="touchmove"||r==="wheel")&&(b=!0),n=n;var x;u?b!==void 0?x=OA(n,r,v,b):x=RA(n,r,v):b!==void 0?x=DA(n,r,v,b):x=MA(n,r,v)}function ak(n,r){return n===r||n.nodeType===tr&&n.parentNode===r}function gS(n,r,l,u,d){var v=u;if((r&AT)===0&&(r&u1)===0){var b=d;if(u!==null){var x=u;e:for(;;){if(x===null)return;var T=x.tag;if(T===C||T===M){var P=x.stateNode.containerInfo;if(ak(P,b))break;if(T===M)for(var z=x.return;z!==null;){var Z=z.tag;if(Z===C||Z===M){var q=z.stateNode.containerInfo;if(ak(q,b))return}z=z.return}for(;P!==null;){var fe=$u(P);if(fe===null)return;var ce=fe.tag;if(ce===_||ce===A){x=v=fe;continue e}P=P.parentNode}}x=x.return}}}UT(function(){return ez(n,r,l,v)})}function Gp(n,r,l){return{instance:n,listener:r,currentTarget:l}}function tz(n,r,l,u,d,v){for(var b=r!==null?r+"Capture":null,x=u?b:r,T=[],P=n,z=null;P!==null;){var Z=P,q=Z.stateNode,fe=Z.tag;if(fe===_&&q!==null&&(z=q,x!==null)){var ce=mp(P,x);ce!=null&&T.push(Gp(P,ce,z))}if(d)break;P=P.return}return T}function qm(n,r){for(var l=r+"Capture",u=[],d=n;d!==null;){var v=d,b=v.stateNode,x=v.tag;if(x===_&&b!==null){var T=b,P=mp(d,l);P!=null&&u.unshift(Gp(d,P,T));var z=mp(d,r);z!=null&&u.push(Gp(d,z,T))}d=d.return}return u}function Lf(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==_);return n||null}function nz(n,r){for(var l=n,u=r,d=0,v=l;v;v=Lf(v))d++;for(var b=0,x=u;x;x=Lf(x))b++;for(;d-b>0;)l=Lf(l),d--;for(;b-d>0;)u=Lf(u),b--;for(var T=d;T--;){if(l===u||u!==null&&l===u.alternate)return l;l=Lf(l),u=Lf(u)}return null}function ok(n,r,l,u,d){for(var v=r._reactName,b=[],x=l;x!==null&&x!==u;){var T=x,P=T.alternate,z=T.stateNode,Z=T.tag;if(P!==null&&P===u)break;if(Z===_&&z!==null){var q=z;if(d){var fe=mp(x,v);fe!=null&&b.unshift(Gp(x,fe,q))}else if(!d){var ce=mp(x,v);ce!=null&&b.push(Gp(x,ce,q))}}x=x.return}b.length!==0&&n.push({event:r,listeners:b})}function rz(n,r,l,u,d){var v=u&&d?nz(u,d):null;u!==null&&ok(n,r,u,v,!1),d!==null&&l!==null&&ok(n,l,d,v,!0)}function iz(n,r){return n+"__"+(r?"capture":"bubble")}var Zi=!1,Yp="dangerouslySetInnerHTML",Zm="suppressContentEditableWarning",ws="suppressHydrationWarning",lk="autoFocus",Hu="children",Vu="style",Qm="__html",yS,Km,qp,sk,Jm,uk,ck;yS={dialog:!0,webview:!0},Km=function(n,r){Cm(n,r),sf(n,r),GP(n,r,{registrationNameDependencies:Je,possibleRegistrationNames:Ve})},uk=Lt&&!document.documentMode,qp=function(n,r,l){if(!Zi){var u=Xm(l),d=Xm(r);d!==u&&(Zi=!0,p("Prop `%s` did not match. Server: %s Client: %s",n,JSON.stringify(d),JSON.stringify(u)))}},sk=function(n){if(!Zi){Zi=!0;var r=[];n.forEach(function(l){r.push(l)}),p("Extra attributes from the server: %s",r)}},Jm=function(n,r){r===!1?p("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",n,n,n):p("Expected `%s` listener to be a function, instead got a value of `%s` type.",n,typeof r)},ck=function(n,r){var l=n.namespaceURI===Yi?n.ownerDocument.createElement(n.tagName):n.ownerDocument.createElementNS(n.namespaceURI,n.tagName);return l.innerHTML=r,l.innerHTML};var az=/\r\n?/g,oz=/\u0000|\uFFFD/g;function Xm(n){un(n);var r=typeof n=="string"?n:""+n;return r.replace(az,`
17
+ `).replace(oz,"")}function eg(n,r,l,u){var d=Xm(r),v=Xm(n);if(v!==d&&(u&&(Zi||(Zi=!0,p('Text content did not match. Server: "%s" Client: "%s"',v,d))),l&&ke))throw new Error("Text content does not match server-rendered HTML.")}function fk(n){return n.nodeType===Ua?n:n.ownerDocument}function lz(){}function tg(n){n.onclick=lz}function sz(n,r,l,u,d){for(var v in u)if(!!u.hasOwnProperty(v)){var b=u[v];if(v===Vu)b&&Object.freeze(b),an(r,b);else if(v===Yp){var x=b?b[Qm]:void 0;x!=null&&xm(r,x)}else if(v===Hu)if(typeof b=="string"){var T=n!=="textarea"||b!=="";T&&Xo(r,b)}else typeof b=="number"&&Xo(r,""+b);else v===Zm||v===ws||v===lk||(Je.hasOwnProperty(v)?b!=null&&(typeof b!="function"&&Jm(v,b),v==="onScroll"&&Bn("scroll",r)):b!=null&&Wo(r,v,b,d))}}function uz(n,r,l,u){for(var d=0;d<r.length;d+=2){var v=r[d],b=r[d+1];v===Vu?an(n,b):v===Yp?xm(n,b):v===Hu?Xo(n,b):Wo(n,v,b,u)}}function cz(n,r,l,u){var d,v=fk(l),b,x=u;if(x===Yi&&(x=ja(n)),x===Yi){if(d=Ha(n,r),!d&&n!==n.toLowerCase()&&p("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),n==="script"){var T=v.createElement("div");T.innerHTML="<script><\/script>";var P=T.firstChild;b=T.removeChild(P)}else if(typeof r.is=="string")b=v.createElement(n,{is:r.is});else if(b=v.createElement(n),n==="select"){var z=b;r.multiple?z.multiple=!0:r.size&&(z.size=r.size)}}else b=v.createElementNS(x,n);return x===Yi&&!d&&Object.prototype.toString.call(b)==="[object HTMLUnknownElement]"&&!tt.call(yS,n)&&(yS[n]=!0,p("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)),b}function fz(n,r){return fk(r).createTextNode(n)}function dz(n,r,l,u){var d=Ha(r,l);Km(r,l);var v;switch(r){case"dialog":Bn("cancel",n),Bn("close",n),v=l;break;case"iframe":case"object":case"embed":Bn("load",n),v=l;break;case"video":case"audio":for(var b=0;b<$p.length;b++)Bn($p[b],n);v=l;break;case"source":Bn("error",n),v=l;break;case"img":case"image":case"link":Bn("error",n),Bn("load",n),v=l;break;case"details":Bn("toggle",n),v=l;break;case"input":ap(n,l),v=fo(n,l),Bn("invalid",n);break;case"option":gm(n,l),v=l;break;case"select":ho(n,l),v=ps(n,l),Bn("invalid",n);break;case"textarea":ym(n,l),v=ef(n,l),Bn("invalid",n);break;default:v=l}switch(_l(r,v),sz(r,n,u,v,d),r){case"input":Eu(n),Zc(n,l,!1);break;case"textarea":Eu(n),up(n);break;case"option":i1(n,l);break;case"select":o1(n,l);break;default:typeof v.onClick=="function"&&tg(n);break}}function pz(n,r,l,u,d){Km(r,u);var v=null,b,x;switch(r){case"input":b=fo(n,l),x=fo(n,u),v=[];break;case"select":b=ps(n,l),x=ps(n,u),v=[];break;case"textarea":b=ef(n,l),x=ef(n,u),v=[];break;default:b=l,x=u,typeof b.onClick!="function"&&typeof x.onClick=="function"&&tg(n);break}_l(r,x);var T,P,z=null;for(T in b)if(!(x.hasOwnProperty(T)||!b.hasOwnProperty(T)||b[T]==null))if(T===Vu){var Z=b[T];for(P in Z)Z.hasOwnProperty(P)&&(z||(z={}),z[P]="")}else T===Yp||T===Hu||T===Zm||T===ws||T===lk||(Je.hasOwnProperty(T)?v||(v=[]):(v=v||[]).push(T,null));for(T in x){var q=x[T],fe=b!=null?b[T]:void 0;if(!(!x.hasOwnProperty(T)||q===fe||q==null&&fe==null))if(T===Vu)if(q&&Object.freeze(q),fe){for(P in fe)fe.hasOwnProperty(P)&&(!q||!q.hasOwnProperty(P))&&(z||(z={}),z[P]="");for(P in q)q.hasOwnProperty(P)&&fe[P]!==q[P]&&(z||(z={}),z[P]=q[P])}else z||(v||(v=[]),v.push(T,z)),z=q;else if(T===Yp){var ce=q?q[Qm]:void 0,he=fe?fe[Qm]:void 0;ce!=null&&he!==ce&&(v=v||[]).push(T,ce)}else T===Hu?(typeof q=="string"||typeof q=="number")&&(v=v||[]).push(T,""+q):T===Zm||T===ws||(Je.hasOwnProperty(T)?(q!=null&&(typeof q!="function"&&Jm(T,q),T==="onScroll"&&Bn("scroll",n)),!v&&fe!==q&&(v=[])):(v=v||[]).push(T,q))}return z&&(dp(z,x[Vu]),(v=v||[]).push(Vu,z)),v}function hz(n,r,l,u,d){l==="input"&&d.type==="radio"&&d.name!=null&&vm(n,d);var v=Ha(l,u),b=Ha(l,d);switch(uz(n,r,v,b),l){case"input":op(n,d);break;case"textarea":bm(n,d);break;case"select":Xc(n,d);break}}function vz(n){{var r=n.toLowerCase();return go.hasOwnProperty(r)&&go[r]||null}}function mz(n,r,l,u,d,v,b){var x,T;switch(x=Ha(r,l),Km(r,l),r){case"dialog":Bn("cancel",n),Bn("close",n);break;case"iframe":case"object":case"embed":Bn("load",n);break;case"video":case"audio":for(var P=0;P<$p.length;P++)Bn($p[P],n);break;case"source":Bn("error",n);break;case"img":case"image":case"link":Bn("error",n),Bn("load",n);break;case"details":Bn("toggle",n);break;case"input":ap(n,l),Bn("invalid",n);break;case"option":gm(n,l);break;case"select":ho(n,l),Bn("invalid",n);break;case"textarea":ym(n,l),Bn("invalid",n);break}_l(r,l);{T=new Set;for(var z=n.attributes,Z=0;Z<z.length;Z++){var q=z[Z].name.toLowerCase();switch(q){case"value":break;case"checked":break;case"selected":break;default:T.add(z[Z].name)}}}var fe=null;for(var ce in l)if(!!l.hasOwnProperty(ce)){var he=l[ce];if(ce===Hu)typeof he=="string"?n.textContent!==he&&(l[ws]!==!0&&eg(n.textContent,he,v,b),fe=[Hu,he]):typeof he=="number"&&n.textContent!==""+he&&(l[ws]!==!0&&eg(n.textContent,he,v,b),fe=[Hu,""+he]);else if(Je.hasOwnProperty(ce))he!=null&&(typeof he!="function"&&Jm(ce,he),ce==="onScroll"&&Bn("scroll",n));else if(b&&!0&&typeof x=="boolean"){var qe=void 0,ft=x&&de?null:fi(ce);if(l[ws]!==!0){if(!(ce===Zm||ce===ws||ce==="value"||ce==="checked"||ce==="selected")){if(ce===Yp){var ot=n.innerHTML,Nt=he?he[Qm]:void 0;if(Nt!=null){var zt=ck(n,Nt);zt!==ot&&qp(ce,ot,zt)}}else if(ce===Vu){if(T.delete(ce),uk){var ae=En(he);qe=n.getAttribute("style"),ae!==qe&&qp(ce,qe,ae)}}else if(x&&!de)T.delete(ce.toLowerCase()),qe=Ll(n,ce,he),he!==qe&&qp(ce,qe,he);else if(!Yn(ce,ft,x)&&!nn(ce,he,ft,x)){var ye=!1;if(ft!==null)T.delete(ft.attributeName),qe=xt(n,ce,he,ft);else{var oe=u;if(oe===Yi&&(oe=ja(r)),oe===Yi)T.delete(ce.toLowerCase());else{var De=vz(ce);De!==null&&De!==ce&&(ye=!0,T.delete(De)),T.delete(ce)}qe=Ll(n,ce,he)}var Ke=de;!Ke&&he!==qe&&!ye&&qp(ce,qe,he)}}}}}switch(b&&T.size>0&&l[ws]!==!0&&sk(T),r){case"input":Eu(n),Zc(n,l,!0);break;case"textarea":Eu(n),up(n);break;case"select":case"option":break;default:typeof l.onClick=="function"&&tg(n);break}return fe}function gz(n,r,l){var u=n.nodeValue!==r;return u}function bS(n,r){{if(Zi)return;Zi=!0,p("Did not expect server HTML to contain a <%s> in <%s>.",r.nodeName.toLowerCase(),n.nodeName.toLowerCase())}}function SS(n,r){{if(Zi)return;Zi=!0,p('Did not expect server HTML to contain the text node "%s" in <%s>.',r.nodeValue,n.nodeName.toLowerCase())}}function xS(n,r,l){{if(Zi)return;Zi=!0,p("Expected server HTML to contain a matching <%s> in <%s>.",r,n.nodeName.toLowerCase())}}function ES(n,r){{if(r===""||Zi)return;Zi=!0,p('Expected server HTML to contain a matching text node for "%s" in <%s>.',r,n.nodeName.toLowerCase())}}function yz(n,r,l){switch(r){case"input":Cu(n,l);return;case"textarea":Sm(n,l);return;case"select":Tu(n,l);return}}var Zp=function(){},Qp=function(){};{var bz=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],dk=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],Sz=dk.concat(["button"]),xz=["dd","dt","li","option","optgroup","p","rp","rt"],pk={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Qp=function(n,r){var l=At({},n||pk),u={tag:r};return dk.indexOf(r)!==-1&&(l.aTagInScope=null,l.buttonTagInScope=null,l.nobrTagInScope=null),Sz.indexOf(r)!==-1&&(l.pTagInButtonScope=null),bz.indexOf(r)!==-1&&r!=="address"&&r!=="div"&&r!=="p"&&(l.listItemTagAutoclosing=null,l.dlItemTagAutoclosing=null),l.current=u,r==="form"&&(l.formTag=u),r==="a"&&(l.aTagInScope=u),r==="button"&&(l.buttonTagInScope=u),r==="nobr"&&(l.nobrTagInScope=u),r==="p"&&(l.pTagInButtonScope=u),r==="li"&&(l.listItemTagAutoclosing=u),(r==="dd"||r==="dt")&&(l.dlItemTagAutoclosing=u),l};var Ez=function(n,r){switch(r){case"select":return n==="option"||n==="optgroup"||n==="#text";case"optgroup":return n==="option"||n==="#text";case"option":return n==="#text";case"tr":return n==="th"||n==="td"||n==="style"||n==="script"||n==="template";case"tbody":case"thead":case"tfoot":return n==="tr"||n==="style"||n==="script"||n==="template";case"colgroup":return n==="col"||n==="template";case"table":return n==="caption"||n==="colgroup"||n==="tbody"||n==="tfoot"||n==="thead"||n==="style"||n==="script"||n==="template";case"head":return n==="base"||n==="basefont"||n==="bgsound"||n==="link"||n==="meta"||n==="title"||n==="noscript"||n==="noframes"||n==="style"||n==="script"||n==="template";case"html":return n==="head"||n==="body"||n==="frameset";case"frameset":return n==="frame";case"#document":return n==="html"}switch(n){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return r!=="h1"&&r!=="h2"&&r!=="h3"&&r!=="h4"&&r!=="h5"&&r!=="h6";case"rp":case"rt":return xz.indexOf(r)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return r==null}return!0},wz=function(n,r){switch(n){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return r.pTagInButtonScope;case"form":return r.formTag||r.pTagInButtonScope;case"li":return r.listItemTagAutoclosing;case"dd":case"dt":return r.dlItemTagAutoclosing;case"button":return r.buttonTagInScope;case"a":return r.aTagInScope;case"nobr":return r.nobrTagInScope}return null},hk={};Zp=function(n,r,l){l=l||pk;var u=l.current,d=u&&u.tag;r!=null&&(n!=null&&p("validateDOMNesting: when childText is passed, childTag should be null"),n="#text");var v=Ez(n,d)?null:u,b=v?null:wz(n,l),x=v||b;if(!!x){var T=x.tag,P=!!v+"|"+n+"|"+T;if(!hk[P]){hk[P]=!0;var z=n,Z="";if(n==="#text"?/\S/.test(r)?z="Text nodes":(z="Whitespace text nodes",Z=" Make sure you don't have any extra whitespace between tags on each line of your source code."):z="<"+n+">",v){var q="";T==="table"&&n==="tr"&&(q+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),p("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",z,T,Z,q)}else p("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",z,T)}}}}var ng="suppressHydrationWarning",rg="$",ig="/$",Kp="$?",Jp="$!",Cz="style",wS=null,CS=null;function Lz(n){var r,l,u=n.nodeType;switch(u){case Ua:case tf:{r=u===Ua?"#document":"#fragment";var d=n.documentElement;l=d?d.namespaceURI:fp(null,"");break}default:{var v=u===tr?n.parentNode:n,b=v.namespaceURI||null;r=v.tagName,l=fp(b,r);break}}{var x=r.toLowerCase(),T=Qp(null,x);return{namespace:l,ancestorInfo:T}}}function Tz(n,r,l){{var u=n,d=fp(u.namespace,r),v=Qp(u.ancestorInfo,r);return{namespace:d,ancestorInfo:v}}}function DX(n){return n}function _z(n){wS=CA(),CS=BN();var r=null;return E_(!1),r}function kz(n){HN(CS),E_(wS),wS=null,CS=null}function Mz(n,r,l,u,d){var v;{var b=u;if(Zp(n,null,b.ancestorInfo),typeof r.children=="string"||typeof r.children=="number"){var x=""+r.children,T=Qp(b.ancestorInfo,n);Zp(null,x,T)}v=b.namespace}var P=cz(n,r,l,v);return th(d,P),DS(P,r),P}function Rz(n,r){n.appendChild(r)}function Oz(n,r,l,u,d){switch(dz(n,r,l,u),r){case"button":case"input":case"select":case"textarea":return!!l.autoFocus;case"img":return!0;default:return!1}}function Dz(n,r,l,u,d,v){{var b=v;if(typeof u.children!=typeof l.children&&(typeof u.children=="string"||typeof u.children=="number")){var x=""+u.children,T=Qp(b.ancestorInfo,r);Zp(null,x,T)}}return pz(n,r,l,u)}function LS(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}function Pz(n,r,l,u){{var d=l;Zp(null,n,d.ancestorInfo)}var v=fz(n,r);return th(u,v),v}function Az(){var n=window.event;return n===void 0?Nl:w_(n.type)}var TS=typeof setTimeout=="function"?setTimeout:void 0,Nz=typeof clearTimeout=="function"?clearTimeout:void 0,_S=-1,vk=typeof Promise=="function"?Promise:void 0,zz=typeof queueMicrotask=="function"?queueMicrotask:typeof vk<"u"?function(n){return vk.resolve(null).then(n).catch(Iz)}:TS;function Iz(n){setTimeout(function(){throw n})}function Fz(n,r,l,u){switch(r){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();return;case"img":{l.src&&(n.src=l.src);return}}}function jz(n,r,l,u,d,v){hz(n,r,l,u,d),DS(n,d)}function mk(n){Xo(n,"")}function Uz(n,r,l){n.nodeValue=l}function Bz(n,r){n.appendChild(r)}function Hz(n,r){var l;n.nodeType===tr?(l=n.parentNode,l.insertBefore(r,n)):(l=n,l.appendChild(r));var u=n._reactRootContainer;u==null&&l.onclick===null&&tg(l)}function Vz(n,r,l){n.insertBefore(r,l)}function $z(n,r,l){n.nodeType===tr?n.parentNode.insertBefore(r,l):n.insertBefore(r,l)}function Wz(n,r){n.removeChild(r)}function Gz(n,r){n.nodeType===tr?n.parentNode.removeChild(r):n.removeChild(r)}function kS(n,r){var l=r,u=0;do{var d=l.nextSibling;if(n.removeChild(l),d&&d.nodeType===tr){var v=d.data;if(v===ig)if(u===0){n.removeChild(d),Ap(r);return}else u--;else(v===rg||v===Kp||v===Jp)&&u++}l=d}while(l);Ap(r)}function Yz(n,r){n.nodeType===tr?kS(n.parentNode,r):n.nodeType===Cr&&kS(n,r),Ap(n)}function qz(n){n=n;var r=n.style;typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none"}function Zz(n){n.nodeValue=""}function Qz(n,r){n=n;var l=r[Cz],u=l!=null&&l.hasOwnProperty("display")?l.display:null;n.style.display=Fe("display",u)}function Kz(n,r){n.nodeValue=r}function Jz(n){n.nodeType===Cr?n.textContent="":n.nodeType===Ua&&n.documentElement&&n.removeChild(n.documentElement)}function Xz(n,r,l){return n.nodeType!==Cr||r.toLowerCase()!==n.nodeName.toLowerCase()?null:n}function eI(n,r){return r===""||n.nodeType!==da?null:n}function tI(n){return n.nodeType!==tr?null:n}function gk(n){return n.data===Kp}function MS(n){return n.data===Jp}function nI(n){var r=n.nextSibling&&n.nextSibling.dataset,l,u,d;return r&&(l=r.dgst,u=r.msg,d=r.stck),{message:u,digest:l,stack:d}}function rI(n,r){n._reactRetry=r}function ag(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===Cr||r===da)break;if(r===tr){var l=n.data;if(l===rg||l===Jp||l===Kp)break;if(l===ig)return null}}return n}function Xp(n){return ag(n.nextSibling)}function iI(n){return ag(n.firstChild)}function aI(n){return ag(n.firstChild)}function oI(n){return ag(n.nextSibling)}function lI(n,r,l,u,d,v,b){th(v,n),DS(n,l);var x;{var T=d;x=T.namespace}var P=(v.mode&Bt)!==vt;return mz(n,r,l,x,u,P,b)}function sI(n,r,l,u){th(l,n);var d=(l.mode&Bt)!==vt;return gz(n,r)}function uI(n,r){th(r,n)}function cI(n){for(var r=n.nextSibling,l=0;r;){if(r.nodeType===tr){var u=r.data;if(u===ig){if(l===0)return Xp(r);l--}else(u===rg||u===Jp||u===Kp)&&l++}r=r.nextSibling}return null}function yk(n){for(var r=n.previousSibling,l=0;r;){if(r.nodeType===tr){var u=r.data;if(u===rg||u===Jp||u===Kp){if(l===0)return r;l--}else u===ig&&l++}r=r.previousSibling}return null}function fI(n){Ap(n)}function dI(n){Ap(n)}function pI(n){return n!=="head"&&n!=="body"}function hI(n,r,l,u){var d=!0;eg(r.nodeValue,l,u,d)}function vI(n,r,l,u,d,v){if(r[ng]!==!0){var b=!0;eg(u.nodeValue,d,v,b)}}function mI(n,r){r.nodeType===Cr?bS(n,r):r.nodeType===tr||SS(n,r)}function gI(n,r){{var l=n.parentNode;l!==null&&(r.nodeType===Cr?bS(l,r):r.nodeType===tr||SS(l,r))}}function yI(n,r,l,u,d){(d||r[ng]!==!0)&&(u.nodeType===Cr?bS(l,u):u.nodeType===tr||SS(l,u))}function bI(n,r,l){xS(n,r)}function SI(n,r){ES(n,r)}function xI(n,r,l){{var u=n.parentNode;u!==null&&xS(u,r)}}function EI(n,r){{var l=n.parentNode;l!==null&&ES(l,r)}}function wI(n,r,l,u,d,v){(v||r[ng]!==!0)&&xS(l,u)}function CI(n,r,l,u,d){(d||r[ng]!==!0)&&ES(l,u)}function LI(n){p("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",n.nodeName.toLowerCase())}function TI(n){Wp(n)}var Tf=Math.random().toString(36).slice(2),_f="__reactFiber$"+Tf,RS="__reactProps$"+Tf,eh="__reactContainer$"+Tf,OS="__reactEvents$"+Tf,_I="__reactListeners$"+Tf,kI="__reactHandles$"+Tf;function MI(n){delete n[_f],delete n[RS],delete n[OS],delete n[_I],delete n[kI]}function th(n,r){r[_f]=n}function og(n,r){r[eh]=n}function bk(n){n[eh]=null}function nh(n){return!!n[eh]}function $u(n){var r=n[_f];if(r)return r;for(var l=n.parentNode;l;){if(r=l[eh]||l[_f],r){var u=r.alternate;if(r.child!==null||u!==null&&u.child!==null)for(var d=yk(n);d!==null;){var v=d[_f];if(v)return v;d=yk(d)}return r}n=l,l=n.parentNode}return null}function Cs(n){var r=n[_f]||n[eh];return r&&(r.tag===_||r.tag===A||r.tag===F||r.tag===C)?r:null}function kf(n){if(n.tag===_||n.tag===A)return n.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function lg(n){return n[RS]||null}function DS(n,r){n[RS]=r}function RI(n){var r=n[OS];return r===void 0&&(r=n[OS]=new Set),r}var Sk={},xk=a.ReactDebugCurrentFrame;function sg(n){if(n){var r=n._owner,l=H(n.type,n._source,r?r.type:null);xk.setExtraStackFrame(l)}else xk.setExtraStackFrame(null)}function Eo(n,r,l,u,d){{var v=Function.call.bind(tt);for(var b in n)if(v(n,b)){var x=void 0;try{if(typeof n[b]!="function"){var T=Error((u||"React class")+": "+l+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}x=n[b](r,b,u,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(P){x=P}x&&!(x instanceof Error)&&(sg(d),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",l,b,typeof x),sg(null)),x instanceof Error&&!(x.message in Sk)&&(Sk[x.message]=!0,sg(d),p("Failed %s type: %s",l,x.message),sg(null))}}}var PS=[],ug;ug=[];var zl=-1;function Ls(n){return{current:n}}function hi(n,r){if(zl<0){p("Unexpected pop.");return}r!==ug[zl]&&p("Unexpected Fiber popped."),n.current=PS[zl],PS[zl]=null,ug[zl]=null,zl--}function vi(n,r,l){zl++,PS[zl]=n.current,ug[zl]=l,n.current=r}var AS;AS={};var Sa={};Object.freeze(Sa);var Il=Ls(Sa),il=Ls(!1),NS=Sa;function Mf(n,r,l){return l&&al(r)?NS:Il.current}function Ek(n,r,l){{var u=n.stateNode;u.__reactInternalMemoizedUnmaskedChildContext=r,u.__reactInternalMemoizedMaskedChildContext=l}}function Rf(n,r){{var l=n.type,u=l.contextTypes;if(!u)return Sa;var d=n.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===r)return d.__reactInternalMemoizedMaskedChildContext;var v={};for(var b in u)v[b]=r[b];{var x=be(n)||"Unknown";Eo(u,v,"context",x)}return d&&Ek(n,r,v),v}}function cg(){return il.current}function al(n){{var r=n.childContextTypes;return r!=null}}function fg(n){hi(il,n),hi(Il,n)}function zS(n){hi(il,n),hi(Il,n)}function wk(n,r,l){{if(Il.current!==Sa)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");vi(Il,r,n),vi(il,l,n)}}function Ck(n,r,l){{var u=n.stateNode,d=r.childContextTypes;if(typeof u.getChildContext!="function"){{var v=be(n)||"Unknown";AS[v]||(AS[v]=!0,p("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",v,v))}return l}var b=u.getChildContext();for(var x in b)if(!(x in d))throw new Error((be(n)||"Unknown")+'.getChildContext(): key "'+x+'" is not defined in childContextTypes.');{var T=be(n)||"Unknown";Eo(d,b,"child context",T)}return At({},l,b)}}function dg(n){{var r=n.stateNode,l=r&&r.__reactInternalMemoizedMergedChildContext||Sa;return NS=Il.current,vi(Il,l,n),vi(il,il.current,n),!0}}function Lk(n,r,l){{var u=n.stateNode;if(!u)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(l){var d=Ck(n,r,NS);u.__reactInternalMemoizedMergedChildContext=d,hi(il,n),hi(Il,n),vi(Il,d,n),vi(il,l,n)}else hi(il,n),vi(il,l,n)}}function OI(n){{if(!p7(n)||n.tag!==y)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var r=n;do{switch(r.tag){case C:return r.stateNode.context;case y:{var l=r.type;if(al(l))return r.stateNode.__reactInternalMemoizedMergedChildContext;break}}r=r.return}while(r!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Ts=0,pg=1,Fl=null,IS=!1,FS=!1;function Tk(n){Fl===null?Fl=[n]:Fl.push(n)}function DI(n){IS=!0,Tk(n)}function _k(){IS&&_s()}function _s(){if(!FS&&Fl!==null){FS=!0;var n=0,r=xo();try{var l=!0,u=Fl;for(Ur(ga);n<u.length;n++){var d=u[n];do d=d(l);while(d!==null)}Fl=null,IS=!1}catch(v){throw Fl!==null&&(Fl=Fl.slice(n+1)),KT(Mm,_s),v}finally{Ur(r),FS=!1}}return null}var Of=[],Df=0,hg=null,vg=0,Va=[],$a=0,Wu=null,jl=1,Ul="";function PI(n){return Yu(),(n.flags&VT)!==ht}function AI(n){return Yu(),vg}function NI(){var n=Ul,r=jl,l=r&~zI(r);return l.toString(32)+n}function Gu(n,r){Yu(),Of[Df++]=vg,Of[Df++]=hg,hg=n,vg=r}function kk(n,r,l){Yu(),Va[$a++]=jl,Va[$a++]=Ul,Va[$a++]=Wu,Wu=n;var u=jl,d=Ul,v=mg(u)-1,b=u&~(1<<v),x=l+1,T=mg(r)+v;if(T>30){var P=v-v%5,z=(1<<P)-1,Z=(b&z).toString(32),q=b>>P,fe=v-P,ce=mg(r)+fe,he=x<<fe,qe=he|q,ft=Z+d;jl=1<<ce|qe,Ul=ft}else{var ot=x<<v,Nt=ot|b,zt=d;jl=1<<T|Nt,Ul=zt}}function jS(n){Yu();var r=n.return;if(r!==null){var l=1,u=0;Gu(n,l),kk(n,l,u)}}function mg(n){return 32-r_(n)}function zI(n){return 1<<mg(n)-1}function US(n){for(;n===hg;)hg=Of[--Df],Of[Df]=null,vg=Of[--Df],Of[Df]=null;for(;n===Wu;)Wu=Va[--$a],Va[$a]=null,Ul=Va[--$a],Va[$a]=null,jl=Va[--$a],Va[$a]=null}function II(){return Yu(),Wu!==null?{id:jl,overflow:Ul}:null}function FI(n,r){Yu(),Va[$a++]=jl,Va[$a++]=Ul,Va[$a++]=Wu,jl=r.id,Ul=r.overflow,Wu=n}function Yu(){Kr()||p("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Qr=null,Wa=null,wo=!1,qu=!1,ks=null;function jI(){wo&&p("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Mk(){qu=!0}function UI(){return qu}function BI(n){var r=n.stateNode.containerInfo;return Wa=aI(r),Qr=n,wo=!0,ks=null,qu=!1,!0}function HI(n,r,l){return Wa=oI(r),Qr=n,wo=!0,ks=null,qu=!1,l!==null&&FI(n,l),!0}function Rk(n,r){switch(n.tag){case C:{mI(n.stateNode.containerInfo,r);break}case _:{var l=(n.mode&Bt)!==vt;yI(n.type,n.memoizedProps,n.stateNode,r,l);break}case F:{var u=n.memoizedState;u.dehydrated!==null&&gI(u.dehydrated,r);break}}}function Ok(n,r){Rk(n,r);var l=QU();l.stateNode=r,l.return=n;var u=n.deletions;u===null?(n.deletions=[l],n.flags|=Ou):u.push(l)}function BS(n,r){{if(qu)return;switch(n.tag){case C:{var l=n.stateNode.containerInfo;switch(r.tag){case _:var u=r.type,d=r.pendingProps;bI(l,u);break;case A:var v=r.pendingProps;SI(l,v);break}break}case _:{var b=n.type,x=n.memoizedProps,T=n.stateNode;switch(r.tag){case _:{var P=r.type,z=r.pendingProps,Z=(n.mode&Bt)!==vt;wI(b,x,T,P,z,Z);break}case A:{var q=r.pendingProps,fe=(n.mode&Bt)!==vt;CI(b,x,T,q,fe);break}}break}case F:{var ce=n.memoizedState,he=ce.dehydrated;if(he!==null)switch(r.tag){case _:var qe=r.type,ft=r.pendingProps;xI(he,qe);break;case A:var ot=r.pendingProps;EI(he,ot);break}break}default:return}}}function Dk(n,r){r.flags=r.flags&~Rl|yr,BS(n,r)}function Pk(n,r){switch(n.tag){case _:{var l=n.type,u=n.pendingProps,d=Xz(r,l);return d!==null?(n.stateNode=d,Qr=n,Wa=iI(d),!0):!1}case A:{var v=n.pendingProps,b=eI(r,v);return b!==null?(n.stateNode=b,Qr=n,Wa=null,!0):!1}case F:{var x=tI(r);if(x!==null){var T={dehydrated:x,treeContext:II(),retryLane:va};n.memoizedState=T;var P=KU(x);return P.return=n,n.child=P,Qr=n,Wa=null,!0}return!1}default:return!1}}function HS(n){return(n.mode&Bt)!==vt&&(n.flags&Jt)===ht}function VS(n){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function $S(n){if(!!wo){var r=Wa;if(!r){HS(n)&&(BS(Qr,n),VS()),Dk(Qr,n),wo=!1,Qr=n;return}var l=r;if(!Pk(n,r)){HS(n)&&(BS(Qr,n),VS()),r=Xp(l);var u=Qr;if(!r||!Pk(n,r)){Dk(Qr,n),wo=!1,Qr=n;return}Ok(u,l)}}}function VI(n,r,l){var u=n.stateNode,d=!qu,v=lI(u,n.type,n.memoizedProps,r,l,n,d);return n.updateQueue=v,v!==null}function $I(n){var r=n.stateNode,l=n.memoizedProps,u=sI(r,l,n);if(u){var d=Qr;if(d!==null)switch(d.tag){case C:{var v=d.stateNode.containerInfo,b=(d.mode&Bt)!==vt;hI(v,r,l,b);break}case _:{var x=d.type,T=d.memoizedProps,P=d.stateNode,z=(d.mode&Bt)!==vt;vI(x,T,P,r,l,z);break}}}return u}function WI(n){var r=n.memoizedState,l=r!==null?r.dehydrated:null;if(!l)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");uI(l,n)}function GI(n){var r=n.memoizedState,l=r!==null?r.dehydrated:null;if(!l)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return cI(l)}function Ak(n){for(var r=n.return;r!==null&&r.tag!==_&&r.tag!==C&&r.tag!==F;)r=r.return;Qr=r}function gg(n){if(n!==Qr)return!1;if(!wo)return Ak(n),wo=!0,!1;if(n.tag!==C&&(n.tag!==_||pI(n.type)&&!LS(n.type,n.memoizedProps))){var r=Wa;if(r)if(HS(n))Nk(n),VS();else for(;r;)Ok(n,r),r=Xp(r)}return Ak(n),n.tag===F?Wa=GI(n):Wa=Qr?Xp(n.stateNode):null,!0}function YI(){return wo&&Wa!==null}function Nk(n){for(var r=Wa;r;)Rk(n,r),r=Xp(r)}function Pf(){Qr=null,Wa=null,wo=!1,qu=!1}function zk(){ks!==null&&(OR(ks),ks=null)}function Kr(){return wo}function WS(n){ks===null?ks=[n]:ks.push(n)}var qI=a.ReactCurrentBatchConfig,ZI=null;function QI(){return qI.transition}var Co={recordUnsafeLifecycleWarnings:function(n,r){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(n,r){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var KI=function(n){for(var r=null,l=n;l!==null;)l.mode&br&&(r=l),l=l.return;return r},Zu=function(n){var r=[];return n.forEach(function(l){r.push(l)}),r.sort().join(", ")},rh=[],ih=[],ah=[],oh=[],lh=[],sh=[],Qu=new Set;Co.recordUnsafeLifecycleWarnings=function(n,r){Qu.has(n.type)||(typeof r.componentWillMount=="function"&&r.componentWillMount.__suppressDeprecationWarning!==!0&&rh.push(n),n.mode&br&&typeof r.UNSAFE_componentWillMount=="function"&&ih.push(n),typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&ah.push(n),n.mode&br&&typeof r.UNSAFE_componentWillReceiveProps=="function"&&oh.push(n),typeof r.componentWillUpdate=="function"&&r.componentWillUpdate.__suppressDeprecationWarning!==!0&&lh.push(n),n.mode&br&&typeof r.UNSAFE_componentWillUpdate=="function"&&sh.push(n))},Co.flushPendingUnsafeLifecycleWarnings=function(){var n=new Set;rh.length>0&&(rh.forEach(function(q){n.add(be(q)||"Component"),Qu.add(q.type)}),rh=[]);var r=new Set;ih.length>0&&(ih.forEach(function(q){r.add(be(q)||"Component"),Qu.add(q.type)}),ih=[]);var l=new Set;ah.length>0&&(ah.forEach(function(q){l.add(be(q)||"Component"),Qu.add(q.type)}),ah=[]);var u=new Set;oh.length>0&&(oh.forEach(function(q){u.add(be(q)||"Component"),Qu.add(q.type)}),oh=[]);var d=new Set;lh.length>0&&(lh.forEach(function(q){d.add(be(q)||"Component"),Qu.add(q.type)}),lh=[]);var v=new Set;if(sh.length>0&&(sh.forEach(function(q){v.add(be(q)||"Component"),Qu.add(q.type)}),sh=[]),r.size>0){var b=Zu(r);p(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
18
+
19
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
20
+
21
+ Please update the following components: %s`,b)}if(u.size>0){var x=Zu(u);p(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
22
+
23
+ * Move data fetching code or side effects to componentDidUpdate.
24
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
25
+
26
+ Please update the following components: %s`,x)}if(v.size>0){var T=Zu(v);p(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
27
+
28
+ * Move data fetching code or side effects to componentDidUpdate.
29
+
30
+ Please update the following components: %s`,T)}if(n.size>0){var P=Zu(n);f(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
31
+
32
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
33
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
34
+
35
+ Please update the following components: %s`,P)}if(l.size>0){var z=Zu(l);f(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
36
+
37
+ * Move data fetching code or side effects to componentDidUpdate.
38
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
39
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
40
+
41
+ Please update the following components: %s`,z)}if(d.size>0){var Z=Zu(d);f(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
42
+
43
+ * Move data fetching code or side effects to componentDidUpdate.
44
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
45
+
46
+ Please update the following components: %s`,Z)}};var yg=new Map,Ik=new Set;Co.recordLegacyContextWarning=function(n,r){var l=KI(n);if(l===null){p("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!Ik.has(n.type)){var u=yg.get(l);(n.type.contextTypes!=null||n.type.childContextTypes!=null||r!==null&&typeof r.getChildContext=="function")&&(u===void 0&&(u=[],yg.set(l,u)),u.push(n))}},Co.flushLegacyContextWarning=function(){yg.forEach(function(n,r){if(n.length!==0){var l=n[0],u=new Set;n.forEach(function(v){u.add(be(v)||"Component"),Ik.add(v.type)});var d=Zu(u);try{yt(l),p(`Legacy context API has been detected within a strict-mode tree.
47
+
48
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
49
+
50
+ Please update the following components: %s
51
+
52
+ Learn more about this warning here: https://reactjs.org/link/legacy-context`,d)}finally{Ie()}}})},Co.discardPendingWarnings=function(){rh=[],ih=[],ah=[],oh=[],lh=[],sh=[],yg=new Map}}function Lo(n,r){if(n&&n.defaultProps){var l=At({},r),u=n.defaultProps;for(var d in u)l[d]===void 0&&(l[d]=u[d]);return l}return r}var GS=Ls(null),YS;YS={};var bg=null,Af=null,qS=null,Sg=!1;function xg(){bg=null,Af=null,qS=null,Sg=!1}function Fk(){Sg=!0}function jk(){Sg=!1}function Uk(n,r,l){vi(GS,r._currentValue,n),r._currentValue=l,r._currentRenderer!==void 0&&r._currentRenderer!==null&&r._currentRenderer!==YS&&p("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),r._currentRenderer=YS}function ZS(n,r){var l=GS.current;hi(GS,r),n._currentValue=l}function QS(n,r,l){for(var u=n;u!==null;){var d=u.alternate;if(bf(u.childLanes,r)?d!==null&&!bf(d.childLanes,r)&&(d.childLanes=kt(d.childLanes,r)):(u.childLanes=kt(u.childLanes,r),d!==null&&(d.childLanes=kt(d.childLanes,r))),u===l)break;u=u.return}u!==l&&p("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function JI(n,r,l){XI(n,r,l)}function XI(n,r,l){var u=n.child;for(u!==null&&(u.return=n);u!==null;){var d=void 0,v=u.dependencies;if(v!==null){d=u.child;for(var b=v.firstContext;b!==null;){if(b.context===r){if(u.tag===y){var x=_p(l),T=Bl(An,x);T.tag=wg;var P=u.updateQueue;if(P!==null){var z=P.shared,Z=z.pending;Z===null?T.next=T:(T.next=Z.next,Z.next=T),z.pending=T}}u.lanes=kt(u.lanes,l);var q=u.alternate;q!==null&&(q.lanes=kt(q.lanes,l)),QS(u.return,l,n),v.lanes=kt(v.lanes,l);break}b=b.next}}else if(u.tag===D)d=u.type===n.type?null:u.child;else if(u.tag===G){var fe=u.return;if(fe===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");fe.lanes=kt(fe.lanes,l);var ce=fe.alternate;ce!==null&&(ce.lanes=kt(ce.lanes,l)),QS(fe,l,n),d=u.sibling}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===n){d=null;break}var he=d.sibling;if(he!==null){he.return=d.return,d=he;break}d=d.return}u=d}}function Nf(n,r){bg=n,Af=null,qS=null;var l=n.dependencies;if(l!==null){var u=l.firstContext;u!==null&&(ma(l.lanes,r)&&Eh(),l.firstContext=null)}}function Sr(n){Sg&&p("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var r=n._currentValue;if(qS!==n){var l={context:n,memoizedValue:r,next:null};if(Af===null){if(bg===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Af=l,bg.dependencies={lanes:Me,firstContext:l}}else Af=Af.next=l}return r}var Ku=null;function KS(n){Ku===null?Ku=[n]:Ku.push(n)}function eF(){if(Ku!==null){for(var n=0;n<Ku.length;n++){var r=Ku[n],l=r.interleaved;if(l!==null){r.interleaved=null;var u=l.next,d=r.pending;if(d!==null){var v=d.next;d.next=u,l.next=v}r.pending=l}}Ku=null}}function Bk(n,r,l,u){var d=r.interleaved;return d===null?(l.next=l,KS(r)):(l.next=d.next,d.next=l),r.interleaved=l,Eg(n,u)}function tF(n,r,l,u){var d=r.interleaved;d===null?(l.next=l,KS(r)):(l.next=d.next,d.next=l),r.interleaved=l}function nF(n,r,l,u){var d=r.interleaved;return d===null?(l.next=l,KS(r)):(l.next=d.next,d.next=l),r.interleaved=l,Eg(n,u)}function Qi(n,r){return Eg(n,r)}var rF=Eg;function Eg(n,r){n.lanes=kt(n.lanes,r);var l=n.alternate;l!==null&&(l.lanes=kt(l.lanes,r)),l===null&&(n.flags&(yr|Rl))!==ht&&VR(n);for(var u=n,d=n.return;d!==null;)d.childLanes=kt(d.childLanes,r),l=d.alternate,l!==null?l.childLanes=kt(l.childLanes,r):(d.flags&(yr|Rl))!==ht&&VR(n),u=d,d=d.return;if(u.tag===C){var v=u.stateNode;return v}else return null}var Hk=0,Vk=1,wg=2,JS=3,Cg=!1,XS,Lg;XS=!1,Lg=null;function ex(n){var r={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Me},effects:null};n.updateQueue=r}function $k(n,r){var l=r.updateQueue,u=n.updateQueue;if(l===u){var d={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects};r.updateQueue=d}}function Bl(n,r){var l={eventTime:n,lane:r,tag:Hk,payload:null,callback:null,next:null};return l}function Ms(n,r,l){var u=n.updateQueue;if(u===null)return null;var d=u.shared;if(Lg===d&&!XS&&(p("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),XS=!0),sU()){var v=d.pending;return v===null?r.next=r:(r.next=v.next,v.next=r),d.pending=r,rF(n,l)}else return nF(n,d,r,l)}function Tg(n,r,l){var u=r.updateQueue;if(u!==null){var d=u.shared;if(l_(l)){var v=d.lanes;v=u_(v,n.pendingLanes);var b=kt(v,l);d.lanes=b,K1(n,b)}}}function tx(n,r){var l=n.updateQueue,u=n.alternate;if(u!==null){var d=u.updateQueue;if(l===d){var v=null,b=null,x=l.firstBaseUpdate;if(x!==null){var T=x;do{var P={eventTime:T.eventTime,lane:T.lane,tag:T.tag,payload:T.payload,callback:T.callback,next:null};b===null?v=b=P:(b.next=P,b=P),T=T.next}while(T!==null);b===null?v=b=r:(b.next=r,b=r)}else v=b=r;l={baseState:d.baseState,firstBaseUpdate:v,lastBaseUpdate:b,shared:d.shared,effects:d.effects},n.updateQueue=l;return}}var z=l.lastBaseUpdate;z===null?l.firstBaseUpdate=r:z.next=r,l.lastBaseUpdate=r}function iF(n,r,l,u,d,v){switch(l.tag){case Vk:{var b=l.payload;if(typeof b=="function"){Fk();var x=b.call(v,u,d);{if(n.mode&br){Fr(!0);try{b.call(v,u,d)}finally{Fr(!1)}}jk()}return x}return b}case JS:n.flags=n.flags&~Ri|Jt;case Hk:{var T=l.payload,P;if(typeof T=="function"){Fk(),P=T.call(v,u,d);{if(n.mode&br){Fr(!0);try{T.call(v,u,d)}finally{Fr(!1)}}jk()}}else P=T;return P==null?u:At({},u,P)}case wg:return Cg=!0,u}return u}function _g(n,r,l,u){var d=n.updateQueue;Cg=!1,Lg=d.shared;var v=d.firstBaseUpdate,b=d.lastBaseUpdate,x=d.shared.pending;if(x!==null){d.shared.pending=null;var T=x,P=T.next;T.next=null,b===null?v=P:b.next=P,b=T;var z=n.alternate;if(z!==null){var Z=z.updateQueue,q=Z.lastBaseUpdate;q!==b&&(q===null?Z.firstBaseUpdate=P:q.next=P,Z.lastBaseUpdate=T)}}if(v!==null){var fe=d.baseState,ce=Me,he=null,qe=null,ft=null,ot=v;do{var Nt=ot.lane,zt=ot.eventTime;if(bf(u,Nt)){if(ft!==null){var ye={eventTime:zt,lane:jr,tag:ot.tag,payload:ot.payload,callback:ot.callback,next:null};ft=ft.next=ye}fe=iF(n,d,ot,fe,r,l);var oe=ot.callback;if(oe!==null&&ot.lane!==jr){n.flags|=y1;var De=d.effects;De===null?d.effects=[ot]:De.push(ot)}}else{var ae={eventTime:zt,lane:Nt,tag:ot.tag,payload:ot.payload,callback:ot.callback,next:null};ft===null?(qe=ft=ae,he=fe):ft=ft.next=ae,ce=kt(ce,Nt)}if(ot=ot.next,ot===null){if(x=d.shared.pending,x===null)break;var Ke=x,Ge=Ke.next;Ke.next=null,ot=Ge,d.lastBaseUpdate=Ke,d.shared.pending=null}}while(!0);ft===null&&(he=fe),d.baseState=he,d.firstBaseUpdate=qe,d.lastBaseUpdate=ft;var bt=d.shared.interleaved;if(bt!==null){var Tt=bt;do ce=kt(ce,Tt.lane),Tt=Tt.next;while(Tt!==bt)}else v===null&&(d.shared.lanes=Me);Ah(ce),n.lanes=ce,n.memoizedState=fe}Lg=null}function aF(n,r){if(typeof n!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+n));n.call(r)}function Wk(){Cg=!1}function kg(){return Cg}function Gk(n,r,l){var u=r.effects;if(r.effects=null,u!==null)for(var d=0;d<u.length;d++){var v=u[d],b=v.callback;b!==null&&(v.callback=null,aF(b,l))}}var nx={},Yk=new e.Component().refs,rx,ix,ax,ox,lx,qk,Mg,sx,ux,cx;{rx=new Set,ix=new Set,ax=new Set,ox=new Set,sx=new Set,lx=new Set,ux=new Set,cx=new Set;var Zk=new Set;Mg=function(n,r){if(!(n===null||typeof n=="function")){var l=r+"_"+n;Zk.has(l)||(Zk.add(l),p("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r,n))}},qk=function(n,r){if(r===void 0){var l=me(n)||"Component";lx.has(l)||(lx.add(l),p("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",l))}},Object.defineProperty(nx,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(nx)}function fx(n,r,l,u){var d=n.memoizedState,v=l(u,d);{if(n.mode&br){Fr(!0);try{v=l(u,d)}finally{Fr(!1)}}qk(r,v)}var b=v==null?d:At({},d,v);if(n.memoizedState=b,n.lanes===Me){var x=n.updateQueue;x.baseState=b}}var dx={isMounted:h7,enqueueSetState:function(n,r,l){var u=df(n),d=Pi(),v=Is(u),b=Bl(d,v);b.payload=r,l!=null&&(Mg(l,"setState"),b.callback=l);var x=Ms(u,b,v);x!==null&&(Dr(x,u,v,d),Tg(x,u,v)),T1(u,v)},enqueueReplaceState:function(n,r,l){var u=df(n),d=Pi(),v=Is(u),b=Bl(d,v);b.tag=Vk,b.payload=r,l!=null&&(Mg(l,"replaceState"),b.callback=l);var x=Ms(u,b,v);x!==null&&(Dr(x,u,v,d),Tg(x,u,v)),T1(u,v)},enqueueForceUpdate:function(n,r){var l=df(n),u=Pi(),d=Is(l),v=Bl(u,d);v.tag=wg,r!=null&&(Mg(r,"forceUpdate"),v.callback=r);var b=Ms(l,v,d);b!==null&&(Dr(b,l,d,u),Tg(b,l,d)),W7(l,d)}};function Qk(n,r,l,u,d,v,b){var x=n.stateNode;if(typeof x.shouldComponentUpdate=="function"){var T=x.shouldComponentUpdate(u,v,b);{if(n.mode&br){Fr(!0);try{T=x.shouldComponentUpdate(u,v,b)}finally{Fr(!1)}}T===void 0&&p("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",me(r)||"Component")}return T}return r.prototype&&r.prototype.isPureReactComponent?!Hp(l,u)||!Hp(d,v):!0}function oF(n,r,l){var u=n.stateNode;{var d=me(r)||"Component",v=u.render;v||(r.prototype&&typeof r.prototype.render=="function"?p("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",d):p("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",d)),u.getInitialState&&!u.getInitialState.isReactClassApproved&&!u.state&&p("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",d),u.getDefaultProps&&!u.getDefaultProps.isReactClassApproved&&p("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",d),u.propTypes&&p("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",d),u.contextType&&p("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",d),u.contextTypes&&p("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",d),r.contextType&&r.contextTypes&&!ux.has(r)&&(ux.add(r),p("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",d)),typeof u.componentShouldUpdate=="function"&&p("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",d),r.prototype&&r.prototype.isPureReactComponent&&typeof u.shouldComponentUpdate<"u"&&p("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",me(r)||"A pure component"),typeof u.componentDidUnmount=="function"&&p("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",d),typeof u.componentDidReceiveProps=="function"&&p("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",d),typeof u.componentWillRecieveProps=="function"&&p("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",d),typeof u.UNSAFE_componentWillRecieveProps=="function"&&p("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",d);var b=u.props!==l;u.props!==void 0&&b&&p("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",d,d),u.defaultProps&&p("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",d,d),typeof u.getSnapshotBeforeUpdate=="function"&&typeof u.componentDidUpdate!="function"&&!ax.has(r)&&(ax.add(r),p("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",me(r))),typeof u.getDerivedStateFromProps=="function"&&p("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof u.getDerivedStateFromError=="function"&&p("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof r.getSnapshotBeforeUpdate=="function"&&p("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",d);var x=u.state;x&&(typeof x!="object"||Yr(x))&&p("%s.state: must be set to an object or null",d),typeof u.getChildContext=="function"&&typeof r.childContextTypes!="object"&&p("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",d)}}function Kk(n,r){r.updater=dx,n.stateNode=r,u7(r,n),r._reactInternalInstance=nx}function Jk(n,r,l){var u=!1,d=Sa,v=Sa,b=r.contextType;if("contextType"in r){var x=b===null||b!==void 0&&b.$$typeof===Ue&&b._context===void 0;if(!x&&!cx.has(r)){cx.add(r);var T="";b===void 0?T=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof b!="object"?T=" However, it is set to a "+typeof b+".":b.$$typeof===_e?T=" Did you accidentally pass the Context.Provider instead?":b._context!==void 0?T=" Did you accidentally pass the Context.Consumer instead?":T=" However, it is set to an object with keys {"+Object.keys(b).join(", ")+"}.",p("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",me(r)||"Component",T)}}if(typeof b=="object"&&b!==null)v=Sr(b);else{d=Mf(n,r,!0);var P=r.contextTypes;u=P!=null,v=u?Rf(n,d):Sa}var z=new r(l,v);if(n.mode&br){Fr(!0);try{z=new r(l,v)}finally{Fr(!1)}}var Z=n.memoizedState=z.state!==null&&z.state!==void 0?z.state:null;Kk(n,z);{if(typeof r.getDerivedStateFromProps=="function"&&Z===null){var q=me(r)||"Component";ix.has(q)||(ix.add(q),p("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",q,z.state===null?"null":"undefined",q))}if(typeof r.getDerivedStateFromProps=="function"||typeof z.getSnapshotBeforeUpdate=="function"){var fe=null,ce=null,he=null;if(typeof z.componentWillMount=="function"&&z.componentWillMount.__suppressDeprecationWarning!==!0?fe="componentWillMount":typeof z.UNSAFE_componentWillMount=="function"&&(fe="UNSAFE_componentWillMount"),typeof z.componentWillReceiveProps=="function"&&z.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ce="componentWillReceiveProps":typeof z.UNSAFE_componentWillReceiveProps=="function"&&(ce="UNSAFE_componentWillReceiveProps"),typeof z.componentWillUpdate=="function"&&z.componentWillUpdate.__suppressDeprecationWarning!==!0?he="componentWillUpdate":typeof z.UNSAFE_componentWillUpdate=="function"&&(he="UNSAFE_componentWillUpdate"),fe!==null||ce!==null||he!==null){var qe=me(r)||"Component",ft=typeof r.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ox.has(qe)||(ox.add(qe),p(`Unsafe legacy lifecycles will not be called for components using new component APIs.
53
+
54
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
55
+
56
+ The above lifecycles should be removed. Learn more about this warning here:
57
+ https://reactjs.org/link/unsafe-component-lifecycles`,qe,ft,fe!==null?`
58
+ `+fe:"",ce!==null?`
59
+ `+ce:"",he!==null?`
60
+ `+he:""))}}}return u&&Ek(n,d,v),z}function lF(n,r){var l=r.state;typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),l!==r.state&&(p("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",be(n)||"Component"),dx.enqueueReplaceState(r,r.state,null))}function Xk(n,r,l,u){var d=r.state;if(typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(l,u),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(l,u),r.state!==d){{var v=be(n)||"Component";rx.has(v)||(rx.add(v),p("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",v))}dx.enqueueReplaceState(r,r.state,null)}}function px(n,r,l,u){oF(n,r,l);var d=n.stateNode;d.props=l,d.state=n.memoizedState,d.refs=Yk,ex(n);var v=r.contextType;if(typeof v=="object"&&v!==null)d.context=Sr(v);else{var b=Mf(n,r,!0);d.context=Rf(n,b)}{if(d.state===l){var x=me(r)||"Component";sx.has(x)||(sx.add(x),p("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",x))}n.mode&br&&Co.recordLegacyContextWarning(n,d),Co.recordUnsafeLifecycleWarnings(n,d)}d.state=n.memoizedState;var T=r.getDerivedStateFromProps;if(typeof T=="function"&&(fx(n,r,T,l),d.state=n.memoizedState),typeof r.getDerivedStateFromProps!="function"&&typeof d.getSnapshotBeforeUpdate!="function"&&(typeof d.UNSAFE_componentWillMount=="function"||typeof d.componentWillMount=="function")&&(lF(n,d),_g(n,l,d,u),d.state=n.memoizedState),typeof d.componentDidMount=="function"){var P=Gt;P|=Au,(n.mode&nl)!==vt&&(P|=Ol),n.flags|=P}}function sF(n,r,l,u){var d=n.stateNode,v=n.memoizedProps;d.props=v;var b=d.context,x=r.contextType,T=Sa;if(typeof x=="object"&&x!==null)T=Sr(x);else{var P=Mf(n,r,!0);T=Rf(n,P)}var z=r.getDerivedStateFromProps,Z=typeof z=="function"||typeof d.getSnapshotBeforeUpdate=="function";!Z&&(typeof d.UNSAFE_componentWillReceiveProps=="function"||typeof d.componentWillReceiveProps=="function")&&(v!==l||b!==T)&&Xk(n,d,l,T),Wk();var q=n.memoizedState,fe=d.state=q;if(_g(n,l,d,u),fe=n.memoizedState,v===l&&q===fe&&!cg()&&!kg()){if(typeof d.componentDidMount=="function"){var ce=Gt;ce|=Au,(n.mode&nl)!==vt&&(ce|=Ol),n.flags|=ce}return!1}typeof z=="function"&&(fx(n,r,z,l),fe=n.memoizedState);var he=kg()||Qk(n,r,v,l,q,fe,T);if(he){if(!Z&&(typeof d.UNSAFE_componentWillMount=="function"||typeof d.componentWillMount=="function")&&(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"){var qe=Gt;qe|=Au,(n.mode&nl)!==vt&&(qe|=Ol),n.flags|=qe}}else{if(typeof d.componentDidMount=="function"){var ft=Gt;ft|=Au,(n.mode&nl)!==vt&&(ft|=Ol),n.flags|=ft}n.memoizedProps=l,n.memoizedState=fe}return d.props=l,d.state=fe,d.context=T,he}function uF(n,r,l,u,d){var v=r.stateNode;$k(n,r);var b=r.memoizedProps,x=r.type===r.elementType?b:Lo(r.type,b);v.props=x;var T=r.pendingProps,P=v.context,z=l.contextType,Z=Sa;if(typeof z=="object"&&z!==null)Z=Sr(z);else{var q=Mf(r,l,!0);Z=Rf(r,q)}var fe=l.getDerivedStateFromProps,ce=typeof fe=="function"||typeof v.getSnapshotBeforeUpdate=="function";!ce&&(typeof v.UNSAFE_componentWillReceiveProps=="function"||typeof v.componentWillReceiveProps=="function")&&(b!==T||P!==Z)&&Xk(r,v,u,Z),Wk();var he=r.memoizedState,qe=v.state=he;if(_g(r,u,v,d),qe=r.memoizedState,b===T&&he===qe&&!cg()&&!kg()&&!Q)return typeof v.componentDidUpdate=="function"&&(b!==n.memoizedProps||he!==n.memoizedState)&&(r.flags|=Gt),typeof v.getSnapshotBeforeUpdate=="function"&&(b!==n.memoizedProps||he!==n.memoizedState)&&(r.flags|=Du),!1;typeof fe=="function"&&(fx(r,l,fe,u),qe=r.memoizedState);var ft=kg()||Qk(r,l,x,u,he,qe,Z)||Q;return ft?(!ce&&(typeof v.UNSAFE_componentWillUpdate=="function"||typeof v.componentWillUpdate=="function")&&(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(u,qe,Z),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(u,qe,Z)),typeof v.componentDidUpdate=="function"&&(r.flags|=Gt),typeof v.getSnapshotBeforeUpdate=="function"&&(r.flags|=Du)):(typeof v.componentDidUpdate=="function"&&(b!==n.memoizedProps||he!==n.memoizedState)&&(r.flags|=Gt),typeof v.getSnapshotBeforeUpdate=="function"&&(b!==n.memoizedProps||he!==n.memoizedState)&&(r.flags|=Du),r.memoizedProps=u,r.memoizedState=qe),v.props=u,v.state=qe,v.context=Z,ft}var hx,vx,mx,gx,yx,eM=function(n,r){};hx=!1,vx=!1,mx={},gx={},yx={},eM=function(n,r){if(!(n===null||typeof n!="object")&&!(!n._store||n._store.validated||n.key!=null)){if(typeof n._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");n._store.validated=!0;var l=be(r)||"Component";gx[l]||(gx[l]=!0,p('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function uh(n,r,l){var u=l.ref;if(u!==null&&typeof u!="function"&&typeof u!="object"){if((n.mode&br||ie)&&!(l._owner&&l._self&&l._owner.stateNode!==l._self)){var d=be(n)||"Component";mx[d]||(p('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',u),mx[d]=!0)}if(l._owner){var v=l._owner,b;if(v){var x=v;if(x.tag!==y)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");b=x.stateNode}if(!b)throw new Error("Missing owner for string ref "+u+". This error is likely caused by a bug in React. Please file an issue.");var T=b;qt(u,"ref");var P=""+u;if(r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===P)return r.ref;var z=function(Z){var q=T.refs;q===Yk&&(q=T.refs={}),Z===null?delete q[P]:q[P]=Z};return z._stringRef=P,z}else{if(typeof u!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!l._owner)throw new Error("Element ref was specified as a string ("+u+`) but no owner was set. This could happen for one of the following reasons:
61
+ 1. You may be adding a ref to a function component
62
+ 2. You may be adding a ref to a component that was not created inside a component's render method
63
+ 3. You have multiple copies of React loaded
64
+ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return u}function Rg(n,r){var l=Object.prototype.toString.call(r);throw new Error("Objects are not valid as a React child (found: "+(l==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":l)+"). If you meant to render a collection of children, use an array instead.")}function Og(n){{var r=be(n)||"Component";if(yx[r])return;yx[r]=!0,p("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function tM(n){var r=n._payload,l=n._init;return l(r)}function nM(n){function r(ae,ye){if(!!n){var oe=ae.deletions;oe===null?(ae.deletions=[ye],ae.flags|=Ou):oe.push(ye)}}function l(ae,ye){if(!n)return null;for(var oe=ye;oe!==null;)r(ae,oe),oe=oe.sibling;return null}function u(ae,ye){for(var oe=new Map,De=ye;De!==null;)De.key!==null?oe.set(De.key,De):oe.set(De.index,De),De=De.sibling;return oe}function d(ae,ye){var oe=ac(ae,ye);return oe.index=0,oe.sibling=null,oe}function v(ae,ye,oe){if(ae.index=oe,!n)return ae.flags|=VT,ye;var De=ae.alternate;if(De!==null){var Ke=De.index;return Ke<ye?(ae.flags|=yr,ye):Ke}else return ae.flags|=yr,ye}function b(ae){return n&&ae.alternate===null&&(ae.flags|=yr),ae}function x(ae,ye,oe,De){if(ye===null||ye.tag!==A){var Ke=GE(oe,ae.mode,De);return Ke.return=ae,Ke}else{var Ge=d(ye,oe);return Ge.return=ae,Ge}}function T(ae,ye,oe,De){var Ke=oe.type;if(Ke===Go)return z(ae,ye,oe.props.children,De,oe.key);if(ye!==null&&(ye.elementType===Ke||YR(ye,oe)||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===ct&&tM(Ke)===ye.type)){var Ge=d(ye,oe.props);return Ge.ref=uh(ae,ye,oe),Ge.return=ae,Ge._debugSource=oe._source,Ge._debugOwner=oe._owner,Ge}var bt=WE(oe,ae.mode,De);return bt.ref=uh(ae,ye,oe),bt.return=ae,bt}function P(ae,ye,oe,De){if(ye===null||ye.tag!==M||ye.stateNode.containerInfo!==oe.containerInfo||ye.stateNode.implementation!==oe.implementation){var Ke=YE(oe,ae.mode,De);return Ke.return=ae,Ke}else{var Ge=d(ye,oe.children||[]);return Ge.return=ae,Ge}}function z(ae,ye,oe,De,Ke){if(ye===null||ye.tag!==I){var Ge=js(oe,ae.mode,De,Ke);return Ge.return=ae,Ge}else{var bt=d(ye,oe);return bt.return=ae,bt}}function Z(ae,ye,oe){if(typeof ye=="string"&&ye!==""||typeof ye=="number"){var De=GE(""+ye,ae.mode,oe);return De.return=ae,De}if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case za:{var Ke=WE(ye,ae.mode,oe);return Ke.ref=uh(ae,null,ye),Ke.return=ae,Ke}case ca:{var Ge=YE(ye,ae.mode,oe);return Ge.return=ae,Ge}case ct:{var bt=ye._payload,Tt=ye._init;return Z(ae,Tt(bt),oe)}}if(Yr(ye)||Yo(ye)){var bn=js(ye,ae.mode,oe,null);return bn.return=ae,bn}Rg(ae,ye)}return typeof ye=="function"&&Og(ae),null}function q(ae,ye,oe,De){var Ke=ye!==null?ye.key:null;if(typeof oe=="string"&&oe!==""||typeof oe=="number")return Ke!==null?null:x(ae,ye,""+oe,De);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case za:return oe.key===Ke?T(ae,ye,oe,De):null;case ca:return oe.key===Ke?P(ae,ye,oe,De):null;case ct:{var Ge=oe._payload,bt=oe._init;return q(ae,ye,bt(Ge),De)}}if(Yr(oe)||Yo(oe))return Ke!==null?null:z(ae,ye,oe,De,null);Rg(ae,oe)}return typeof oe=="function"&&Og(ae),null}function fe(ae,ye,oe,De,Ke){if(typeof De=="string"&&De!==""||typeof De=="number"){var Ge=ae.get(oe)||null;return x(ye,Ge,""+De,Ke)}if(typeof De=="object"&&De!==null){switch(De.$$typeof){case za:{var bt=ae.get(De.key===null?oe:De.key)||null;return T(ye,bt,De,Ke)}case ca:{var Tt=ae.get(De.key===null?oe:De.key)||null;return P(ye,Tt,De,Ke)}case ct:var bn=De._payload,Qt=De._init;return fe(ae,ye,oe,Qt(bn),Ke)}if(Yr(De)||Yo(De)){var hr=ae.get(oe)||null;return z(ye,hr,De,Ke,null)}Rg(ye,De)}return typeof De=="function"&&Og(ye),null}function ce(ae,ye,oe){{if(typeof ae!="object"||ae===null)return ye;switch(ae.$$typeof){case za:case ca:eM(ae,oe);var De=ae.key;if(typeof De!="string")break;if(ye===null){ye=new Set,ye.add(De);break}if(!ye.has(De)){ye.add(De);break}p("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.",De);break;case ct:var Ke=ae._payload,Ge=ae._init;ce(Ge(Ke),ye,oe);break}}return ye}function he(ae,ye,oe,De){for(var Ke=null,Ge=0;Ge<oe.length;Ge++){var bt=oe[Ge];Ke=ce(bt,Ke,ae)}for(var Tt=null,bn=null,Qt=ye,hr=0,Kt=0,ur=null;Qt!==null&&Kt<oe.length;Kt++){Qt.index>Kt?(ur=Qt,Qt=null):ur=Qt.sibling;var gi=q(ae,Qt,oe[Kt],De);if(gi===null){Qt===null&&(Qt=ur);break}n&&Qt&&gi.alternate===null&&r(ae,Qt),hr=v(gi,hr,Kt),bn===null?Tt=gi:bn.sibling=gi,bn=gi,Qt=ur}if(Kt===oe.length){if(l(ae,Qt),Kr()){var ii=Kt;Gu(ae,ii)}return Tt}if(Qt===null){for(;Kt<oe.length;Kt++){var Ea=Z(ae,oe[Kt],De);Ea!==null&&(hr=v(Ea,hr,Kt),bn===null?Tt=Ea:bn.sibling=Ea,bn=Ea)}if(Kr()){var Ai=Kt;Gu(ae,Ai)}return Tt}for(var Ni=u(ae,Qt);Kt<oe.length;Kt++){var yi=fe(Ni,ae,Kt,oe[Kt],De);yi!==null&&(n&&yi.alternate!==null&&Ni.delete(yi.key===null?Kt:yi.key),hr=v(yi,hr,Kt),bn===null?Tt=yi:bn.sibling=yi,bn=yi)}if(n&&Ni.forEach(function(Jf){return r(ae,Jf)}),Kr()){var Yl=Kt;Gu(ae,Yl)}return Tt}function qe(ae,ye,oe,De){var Ke=Yo(oe);if(typeof Ke!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&oe[Symbol.toStringTag]==="Generator"&&(vx||p("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),vx=!0),oe.entries===Ke&&(hx||p("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),hx=!0);var Ge=Ke.call(oe);if(Ge)for(var bt=null,Tt=Ge.next();!Tt.done;Tt=Ge.next()){var bn=Tt.value;bt=ce(bn,bt,ae)}}var Qt=Ke.call(oe);if(Qt==null)throw new Error("An iterable object provided no iterator.");for(var hr=null,Kt=null,ur=ye,gi=0,ii=0,Ea=null,Ai=Qt.next();ur!==null&&!Ai.done;ii++,Ai=Qt.next()){ur.index>ii?(Ea=ur,ur=null):Ea=ur.sibling;var Ni=q(ae,ur,Ai.value,De);if(Ni===null){ur===null&&(ur=Ea);break}n&&ur&&Ni.alternate===null&&r(ae,ur),gi=v(Ni,gi,ii),Kt===null?hr=Ni:Kt.sibling=Ni,Kt=Ni,ur=Ea}if(Ai.done){if(l(ae,ur),Kr()){var yi=ii;Gu(ae,yi)}return hr}if(ur===null){for(;!Ai.done;ii++,Ai=Qt.next()){var Yl=Z(ae,Ai.value,De);Yl!==null&&(gi=v(Yl,gi,ii),Kt===null?hr=Yl:Kt.sibling=Yl,Kt=Yl)}if(Kr()){var Jf=ii;Gu(ae,Jf)}return hr}for(var jh=u(ae,ur);!Ai.done;ii++,Ai=Qt.next()){var pl=fe(jh,ae,ii,Ai.value,De);pl!==null&&(n&&pl.alternate!==null&&jh.delete(pl.key===null?ii:pl.key),gi=v(pl,gi,ii),Kt===null?hr=pl:Kt.sibling=pl,Kt=pl)}if(n&&jh.forEach(function(kB){return r(ae,kB)}),Kr()){var _B=ii;Gu(ae,_B)}return hr}function ft(ae,ye,oe,De){if(ye!==null&&ye.tag===A){l(ae,ye.sibling);var Ke=d(ye,oe);return Ke.return=ae,Ke}l(ae,ye);var Ge=GE(oe,ae.mode,De);return Ge.return=ae,Ge}function ot(ae,ye,oe,De){for(var Ke=oe.key,Ge=ye;Ge!==null;){if(Ge.key===Ke){var bt=oe.type;if(bt===Go){if(Ge.tag===I){l(ae,Ge.sibling);var Tt=d(Ge,oe.props.children);return Tt.return=ae,Tt._debugSource=oe._source,Tt._debugOwner=oe._owner,Tt}}else if(Ge.elementType===bt||YR(Ge,oe)||typeof bt=="object"&&bt!==null&&bt.$$typeof===ct&&tM(bt)===Ge.type){l(ae,Ge.sibling);var bn=d(Ge,oe.props);return bn.ref=uh(ae,Ge,oe),bn.return=ae,bn._debugSource=oe._source,bn._debugOwner=oe._owner,bn}l(ae,Ge);break}else r(ae,Ge);Ge=Ge.sibling}if(oe.type===Go){var Qt=js(oe.props.children,ae.mode,De,oe.key);return Qt.return=ae,Qt}else{var hr=WE(oe,ae.mode,De);return hr.ref=uh(ae,ye,oe),hr.return=ae,hr}}function Nt(ae,ye,oe,De){for(var Ke=oe.key,Ge=ye;Ge!==null;){if(Ge.key===Ke)if(Ge.tag===M&&Ge.stateNode.containerInfo===oe.containerInfo&&Ge.stateNode.implementation===oe.implementation){l(ae,Ge.sibling);var bt=d(Ge,oe.children||[]);return bt.return=ae,bt}else{l(ae,Ge);break}else r(ae,Ge);Ge=Ge.sibling}var Tt=YE(oe,ae.mode,De);return Tt.return=ae,Tt}function zt(ae,ye,oe,De){var Ke=typeof oe=="object"&&oe!==null&&oe.type===Go&&oe.key===null;if(Ke&&(oe=oe.props.children),typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case za:return b(ot(ae,ye,oe,De));case ca:return b(Nt(ae,ye,oe,De));case ct:var Ge=oe._payload,bt=oe._init;return zt(ae,ye,bt(Ge),De)}if(Yr(oe))return he(ae,ye,oe,De);if(Yo(oe))return qe(ae,ye,oe,De);Rg(ae,oe)}return typeof oe=="string"&&oe!==""||typeof oe=="number"?b(ft(ae,ye,""+oe,De)):(typeof oe=="function"&&Og(ae),l(ae,ye))}return zt}var zf=nM(!0),rM=nM(!1);function cF(n,r){if(n!==null&&r.child!==n.child)throw new Error("Resuming work not yet implemented.");if(r.child!==null){var l=r.child,u=ac(l,l.pendingProps);for(r.child=u,u.return=r;l.sibling!==null;)l=l.sibling,u=u.sibling=ac(l,l.pendingProps),u.return=r;u.sibling=null}}function fF(n,r){for(var l=n.child;l!==null;)WU(l,r),l=l.sibling}var ch={},Rs=Ls(ch),fh=Ls(ch),Dg=Ls(ch);function Pg(n){if(n===ch)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return n}function iM(){var n=Pg(Dg.current);return n}function bx(n,r){vi(Dg,r,n),vi(fh,n,n),vi(Rs,ch,n);var l=Lz(r);hi(Rs,n),vi(Rs,l,n)}function If(n){hi(Rs,n),hi(fh,n),hi(Dg,n)}function Sx(){var n=Pg(Rs.current);return n}function aM(n){var r=Pg(Dg.current),l=Pg(Rs.current),u=Tz(l,n.type);l!==u&&(vi(fh,n,n),vi(Rs,u,n))}function xx(n){fh.current===n&&(hi(Rs,n),hi(fh,n))}var dF=0,oM=1,lM=1,dh=2,To=Ls(dF);function Ex(n,r){return(n&r)!==0}function Ff(n){return n&oM}function wx(n,r){return n&oM|r}function pF(n,r){return n|r}function Os(n,r){vi(To,r,n)}function jf(n){hi(To,n)}function hF(n,r){var l=n.memoizedState;if(l!==null)return l.dehydrated!==null;var u=n.memoizedProps;return!0}function Ag(n){for(var r=n;r!==null;){if(r.tag===F){var l=r.memoizedState;if(l!==null){var u=l.dehydrated;if(u===null||gk(u)||MS(u))return r}}else if(r.tag===re&&r.memoizedProps.revealOrder!==void 0){var d=(r.flags&Jt)!==ht;if(d)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)return null;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Ki=0,Lr=1,ol=2,Tr=4,Jr=8,Cx=[];function Lx(){for(var n=0;n<Cx.length;n++){var r=Cx[n];r._workInProgressVersionPrimary=null}Cx.length=0}function vF(n,r){var l=r._getVersion,u=l(r._source);n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[r,u]:n.mutableSourceEagerHydrationData.push(r,u)}var Ze=a.ReactCurrentDispatcher,ph=a.ReactCurrentBatchConfig,Tx,Uf;Tx=new Set;var Ju=Me,yn=null,_r=null,kr=null,Ng=!1,hh=!1,vh=0,mF=0,gF=25,Ce=null,Ga=null,Ds=-1,_x=!1;function on(){{var n=Ce;Ga===null?Ga=[n]:Ga.push(n)}}function He(){{var n=Ce;Ga!==null&&(Ds++,Ga[Ds]!==n&&yF(n))}}function Bf(n){n!=null&&!Yr(n)&&p("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ce,typeof n)}function yF(n){{var r=be(yn);if(!Tx.has(r)&&(Tx.add(r),Ga!==null)){for(var l="",u=30,d=0;d<=Ds;d++){for(var v=Ga[d],b=d===Ds?n:v,x=d+1+". "+v;x.length<u;)x+=" ";x+=b+`
65
+ `,l+=x}p(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
66
+
67
+ Previous render Next render
68
+ ------------------------------------------------------
69
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
70
+ `,r,l)}}}function mi(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
71
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
72
+ 2. You might be breaking the Rules of Hooks
73
+ 3. You might have more than one copy of React in the same app
74
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function kx(n,r){if(_x)return!1;if(r===null)return p("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ce),!1;n.length!==r.length&&p(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
75
+
76
+ Previous: %s
77
+ Incoming: %s`,Ce,"["+r.join(", ")+"]","["+n.join(", ")+"]");for(var l=0;l<r.length&&l<n.length;l++)if(!ba(n[l],r[l]))return!1;return!0}function Hf(n,r,l,u,d,v){Ju=v,yn=r,Ga=n!==null?n._debugHookTypes:null,Ds=-1,_x=n!==null&&n.type!==r.type,r.memoizedState=null,r.updateQueue=null,r.lanes=Me,n!==null&&n.memoizedState!==null?Ze.current=MM:Ga!==null?Ze.current=kM:Ze.current=_M;var b=l(u,d);if(hh){var x=0;do{if(hh=!1,vh=0,x>=gF)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");x+=1,_x=!1,_r=null,kr=null,r.updateQueue=null,Ds=-1,Ze.current=RM,b=l(u,d)}while(hh)}Ze.current=qg,r._debugHookTypes=Ga;var T=_r!==null&&_r.next!==null;if(Ju=Me,yn=null,_r=null,kr=null,Ce=null,Ga=null,Ds=-1,n!==null&&(n.flags&Dl)!==(r.flags&Dl)&&(n.mode&Bt)!==vt&&p("Internal React error: Expected static flag was missing. Please notify the React team."),Ng=!1,T)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return b}function Vf(){var n=vh!==0;return vh=0,n}function sM(n,r,l){r.updateQueue=n.updateQueue,(r.mode&nl)!==vt?r.flags&=~(km|Ol|bo|Gt):r.flags&=~(bo|Gt),n.lanes=Nm(n.lanes,l)}function uM(){if(Ze.current=qg,Ng){for(var n=yn.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}Ng=!1}Ju=Me,yn=null,_r=null,kr=null,Ga=null,Ds=-1,Ce=null,EM=!1,hh=!1,vh=0}function ll(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kr===null?yn.memoizedState=kr=n:kr=kr.next=n,kr}function Ya(){var n;if(_r===null){var r=yn.alternate;r!==null?n=r.memoizedState:n=null}else n=_r.next;var l;if(kr===null?l=yn.memoizedState:l=kr.next,l!==null)kr=l,l=kr.next,_r=n;else{if(n===null)throw new Error("Rendered more hooks than during the previous render.");_r=n;var u={memoizedState:_r.memoizedState,baseState:_r.baseState,baseQueue:_r.baseQueue,queue:_r.queue,next:null};kr===null?yn.memoizedState=kr=u:kr=kr.next=u}return kr}function cM(){return{lastEffect:null,stores:null}}function Mx(n,r){return typeof r=="function"?r(n):r}function Rx(n,r,l){var u=ll(),d;l!==void 0?d=l(r):d=r,u.memoizedState=u.baseState=d;var v={pending:null,interleaved:null,lanes:Me,dispatch:null,lastRenderedReducer:n,lastRenderedState:d};u.queue=v;var b=v.dispatch=EF.bind(null,yn,v);return[u.memoizedState,b]}function Ox(n,r,l){var u=Ya(),d=u.queue;if(d===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");d.lastRenderedReducer=n;var v=_r,b=v.baseQueue,x=d.pending;if(x!==null){if(b!==null){var T=b.next,P=x.next;b.next=P,x.next=T}v.baseQueue!==b&&p("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),v.baseQueue=b=x,d.pending=null}if(b!==null){var z=b.next,Z=v.baseState,q=null,fe=null,ce=null,he=z;do{var qe=he.lane;if(bf(Ju,qe)){if(ce!==null){var ot={lane:jr,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null};ce=ce.next=ot}if(he.hasEagerState)Z=he.eagerState;else{var Nt=he.action;Z=n(Z,Nt)}}else{var ft={lane:qe,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null};ce===null?(fe=ce=ft,q=Z):ce=ce.next=ft,yn.lanes=kt(yn.lanes,qe),Ah(qe)}he=he.next}while(he!==null&&he!==z);ce===null?q=Z:ce.next=fe,ba(Z,u.memoizedState)||Eh(),u.memoizedState=Z,u.baseState=q,u.baseQueue=ce,d.lastRenderedState=Z}var zt=d.interleaved;if(zt!==null){var ae=zt;do{var ye=ae.lane;yn.lanes=kt(yn.lanes,ye),Ah(ye),ae=ae.next}while(ae!==zt)}else b===null&&(d.lanes=Me);var oe=d.dispatch;return[u.memoizedState,oe]}function Dx(n,r,l){var u=Ya(),d=u.queue;if(d===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");d.lastRenderedReducer=n;var v=d.dispatch,b=d.pending,x=u.memoizedState;if(b!==null){d.pending=null;var T=b.next,P=T;do{var z=P.action;x=n(x,z),P=P.next}while(P!==T);ba(x,u.memoizedState)||Eh(),u.memoizedState=x,u.baseQueue===null&&(u.baseState=x),d.lastRenderedState=x}return[x,v]}function PX(n,r,l){}function AX(n,r,l){}function Px(n,r,l){var u=yn,d=ll(),v,b=Kr();if(b){if(l===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");v=l(),Uf||v!==l()&&(p("The result of getServerSnapshot should be cached to avoid an infinite loop"),Uf=!0)}else{if(v=r(),!Uf){var x=r();ba(v,x)||(p("The result of getSnapshot should be cached to avoid an infinite loop"),Uf=!0)}var T=dy();if(T===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Am(T,Ju)||fM(u,r,v)}d.memoizedState=v;var P={value:v,getSnapshot:r};return d.queue=P,Ug(pM.bind(null,u,P,n),[n]),u.flags|=bo,mh(Lr|Jr,dM.bind(null,u,P,v,r),void 0,null),v}function zg(n,r,l){var u=yn,d=Ya(),v=r();if(!Uf){var b=r();ba(v,b)||(p("The result of getSnapshot should be cached to avoid an infinite loop"),Uf=!0)}var x=d.memoizedState,T=!ba(x,v);T&&(d.memoizedState=v,Eh());var P=d.queue;if(yh(pM.bind(null,u,P,n),[n]),P.getSnapshot!==r||T||kr!==null&&kr.memoizedState.tag&Lr){u.flags|=bo,mh(Lr|Jr,dM.bind(null,u,P,v,r),void 0,null);var z=dy();if(z===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Am(z,Ju)||fM(u,r,v)}return v}function fM(n,r,l){n.flags|=_m;var u={getSnapshot:r,value:l},d=yn.updateQueue;if(d===null)d=cM(),yn.updateQueue=d,d.stores=[u];else{var v=d.stores;v===null?d.stores=[u]:v.push(u)}}function dM(n,r,l,u){r.value=l,r.getSnapshot=u,hM(r)&&vM(n)}function pM(n,r,l){var u=function(){hM(r)&&vM(n)};return l(u)}function hM(n){var r=n.getSnapshot,l=n.value;try{var u=r();return!ba(l,u)}catch{return!0}}function vM(n){var r=Qi(n,wt);r!==null&&Dr(r,n,wt,An)}function Ig(n){var r=ll();typeof n=="function"&&(n=n()),r.memoizedState=r.baseState=n;var l={pending:null,interleaved:null,lanes:Me,dispatch:null,lastRenderedReducer:Mx,lastRenderedState:n};r.queue=l;var u=l.dispatch=wF.bind(null,yn,l);return[r.memoizedState,u]}function Ax(n){return Ox(Mx)}function Nx(n){return Dx(Mx)}function mh(n,r,l,u){var d={tag:n,create:r,destroy:l,deps:u,next:null},v=yn.updateQueue;if(v===null)v=cM(),yn.updateQueue=v,v.lastEffect=d.next=d;else{var b=v.lastEffect;if(b===null)v.lastEffect=d.next=d;else{var x=b.next;b.next=d,d.next=x,v.lastEffect=d}}return d}function zx(n){var r=ll();{var l={current:n};return r.memoizedState=l,l}}function Fg(n){var r=Ya();return r.memoizedState}function gh(n,r,l,u){var d=ll(),v=u===void 0?null:u;yn.flags|=n,d.memoizedState=mh(Lr|r,l,void 0,v)}function jg(n,r,l,u){var d=Ya(),v=u===void 0?null:u,b=void 0;if(_r!==null){var x=_r.memoizedState;if(b=x.destroy,v!==null){var T=x.deps;if(kx(v,T)){d.memoizedState=mh(r,l,b,v);return}}}yn.flags|=n,d.memoizedState=mh(Lr|r,l,b,v)}function Ug(n,r){return(yn.mode&nl)!==vt?gh(km|bo|x1,Jr,n,r):gh(bo|x1,Jr,n,r)}function yh(n,r){return jg(bo,Jr,n,r)}function Ix(n,r){return gh(Gt,ol,n,r)}function Bg(n,r){return jg(Gt,ol,n,r)}function Fx(n,r){var l=Gt;return l|=Au,(yn.mode&nl)!==vt&&(l|=Ol),gh(l,Tr,n,r)}function Hg(n,r){return jg(Gt,Tr,n,r)}function mM(n,r){if(typeof r=="function"){var l=r,u=n();return l(u),function(){l(null)}}else if(r!=null){var d=r;d.hasOwnProperty("current")||p("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(d).join(", ")+"}");var v=n();return d.current=v,function(){d.current=null}}}function jx(n,r,l){typeof r!="function"&&p("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",r!==null?typeof r:"null");var u=l!=null?l.concat([n]):null,d=Gt;return d|=Au,(yn.mode&nl)!==vt&&(d|=Ol),gh(d,Tr,mM.bind(null,r,n),u)}function Vg(n,r,l){typeof r!="function"&&p("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",r!==null?typeof r:"null");var u=l!=null?l.concat([n]):null;return jg(Gt,Tr,mM.bind(null,r,n),u)}function bF(n,r){}var $g=bF;function Ux(n,r){var l=ll(),u=r===void 0?null:r;return l.memoizedState=[n,u],n}function Wg(n,r){var l=Ya(),u=r===void 0?null:r,d=l.memoizedState;if(d!==null&&u!==null){var v=d[1];if(kx(u,v))return d[0]}return l.memoizedState=[n,u],n}function Bx(n,r){var l=ll(),u=r===void 0?null:r,d=n();return l.memoizedState=[d,u],d}function Gg(n,r){var l=Ya(),u=r===void 0?null:r,d=l.memoizedState;if(d!==null&&u!==null){var v=d[1];if(kx(u,v))return d[0]}var b=n();return l.memoizedState=[b,u],b}function Hx(n){var r=ll();return r.memoizedState=n,n}function gM(n){var r=Ya(),l=_r,u=l.memoizedState;return bM(r,u,n)}function yM(n){var r=Ya();if(_r===null)return r.memoizedState=n,n;var l=_r.memoizedState;return bM(r,l,n)}function bM(n,r,l){var u=!tA(Ju);if(u){if(!ba(l,r)){var d=s_();yn.lanes=kt(yn.lanes,d),Ah(d),n.baseState=!0}return r}else return n.baseState&&(n.baseState=!1,Eh()),n.memoizedState=l,l}function SF(n,r,l){var u=xo();Ur(cA(u,Al)),n(!0);var d=ph.transition;ph.transition={};var v=ph.transition;ph.transition._updatedFibers=new Set;try{n(!1),r()}finally{if(Ur(u),ph.transition=d,d===null&&v._updatedFibers){var b=v._updatedFibers.size;b>10&&f("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),v._updatedFibers.clear()}}}function Vx(){var n=Ig(!1),r=n[0],l=n[1],u=SF.bind(null,l),d=ll();return d.memoizedState=u,[r,u]}function SM(){var n=Ax(),r=n[0],l=Ya(),u=l.memoizedState;return[r,u]}function xM(){var n=Nx(),r=n[0],l=Ya(),u=l.memoizedState;return[r,u]}var EM=!1;function xF(){return EM}function $x(){var n=ll(),r=dy(),l=r.identifierPrefix,u;if(Kr()){var d=NI();u=":"+l+"R"+d;var v=vh++;v>0&&(u+="H"+v.toString(32)),u+=":"}else{var b=mF++;u=":"+l+"r"+b.toString(32)+":"}return n.memoizedState=u,u}function Yg(){var n=Ya(),r=n.memoizedState;return r}function EF(n,r,l){typeof arguments[3]=="function"&&p("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var u=Is(n),d={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null};if(wM(n))CM(r,d);else{var v=Bk(n,r,d,u);if(v!==null){var b=Pi();Dr(v,n,u,b),LM(v,r,u)}}TM(n,u)}function wF(n,r,l){typeof arguments[3]=="function"&&p("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var u=Is(n),d={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null};if(wM(n))CM(r,d);else{var v=n.alternate;if(n.lanes===Me&&(v===null||v.lanes===Me)){var b=r.lastRenderedReducer;if(b!==null){var x;x=Ze.current,Ze.current=_o;try{var T=r.lastRenderedState,P=b(T,l);if(d.hasEagerState=!0,d.eagerState=P,ba(P,T)){tF(n,r,d,u);return}}catch{}finally{Ze.current=x}}}var z=Bk(n,r,d,u);if(z!==null){var Z=Pi();Dr(z,n,u,Z),LM(z,r,u)}}TM(n,u)}function wM(n){var r=n.alternate;return n===yn||r!==null&&r===yn}function CM(n,r){hh=Ng=!0;var l=n.pending;l===null?r.next=r:(r.next=l.next,l.next=r),n.pending=r}function LM(n,r,l){if(l_(l)){var u=r.lanes;u=u_(u,n.pendingLanes);var d=kt(u,l);r.lanes=d,K1(n,d)}}function TM(n,r,l){T1(n,r)}var qg={readContext:Sr,useCallback:mi,useContext:mi,useEffect:mi,useImperativeHandle:mi,useInsertionEffect:mi,useLayoutEffect:mi,useMemo:mi,useReducer:mi,useRef:mi,useState:mi,useDebugValue:mi,useDeferredValue:mi,useTransition:mi,useMutableSource:mi,useSyncExternalStore:mi,useId:mi,unstable_isNewReconciler:V},_M=null,kM=null,MM=null,RM=null,sl=null,_o=null,Zg=null;{var Wx=function(){p("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Ct=function(){p("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};_M={readContext:function(n){return Sr(n)},useCallback:function(n,r){return Ce="useCallback",on(),Bf(r),Ux(n,r)},useContext:function(n){return Ce="useContext",on(),Sr(n)},useEffect:function(n,r){return Ce="useEffect",on(),Bf(r),Ug(n,r)},useImperativeHandle:function(n,r,l){return Ce="useImperativeHandle",on(),Bf(l),jx(n,r,l)},useInsertionEffect:function(n,r){return Ce="useInsertionEffect",on(),Bf(r),Ix(n,r)},useLayoutEffect:function(n,r){return Ce="useLayoutEffect",on(),Bf(r),Fx(n,r)},useMemo:function(n,r){Ce="useMemo",on(),Bf(r);var l=Ze.current;Ze.current=sl;try{return Bx(n,r)}finally{Ze.current=l}},useReducer:function(n,r,l){Ce="useReducer",on();var u=Ze.current;Ze.current=sl;try{return Rx(n,r,l)}finally{Ze.current=u}},useRef:function(n){return Ce="useRef",on(),zx(n)},useState:function(n){Ce="useState",on();var r=Ze.current;Ze.current=sl;try{return Ig(n)}finally{Ze.current=r}},useDebugValue:function(n,r){return Ce="useDebugValue",on(),void 0},useDeferredValue:function(n){return Ce="useDeferredValue",on(),Hx(n)},useTransition:function(){return Ce="useTransition",on(),Vx()},useMutableSource:function(n,r,l){return Ce="useMutableSource",on(),void 0},useSyncExternalStore:function(n,r,l){return Ce="useSyncExternalStore",on(),Px(n,r,l)},useId:function(){return Ce="useId",on(),$x()},unstable_isNewReconciler:V},kM={readContext:function(n){return Sr(n)},useCallback:function(n,r){return Ce="useCallback",He(),Ux(n,r)},useContext:function(n){return Ce="useContext",He(),Sr(n)},useEffect:function(n,r){return Ce="useEffect",He(),Ug(n,r)},useImperativeHandle:function(n,r,l){return Ce="useImperativeHandle",He(),jx(n,r,l)},useInsertionEffect:function(n,r){return Ce="useInsertionEffect",He(),Ix(n,r)},useLayoutEffect:function(n,r){return Ce="useLayoutEffect",He(),Fx(n,r)},useMemo:function(n,r){Ce="useMemo",He();var l=Ze.current;Ze.current=sl;try{return Bx(n,r)}finally{Ze.current=l}},useReducer:function(n,r,l){Ce="useReducer",He();var u=Ze.current;Ze.current=sl;try{return Rx(n,r,l)}finally{Ze.current=u}},useRef:function(n){return Ce="useRef",He(),zx(n)},useState:function(n){Ce="useState",He();var r=Ze.current;Ze.current=sl;try{return Ig(n)}finally{Ze.current=r}},useDebugValue:function(n,r){return Ce="useDebugValue",He(),void 0},useDeferredValue:function(n){return Ce="useDeferredValue",He(),Hx(n)},useTransition:function(){return Ce="useTransition",He(),Vx()},useMutableSource:function(n,r,l){return Ce="useMutableSource",He(),void 0},useSyncExternalStore:function(n,r,l){return Ce="useSyncExternalStore",He(),Px(n,r,l)},useId:function(){return Ce="useId",He(),$x()},unstable_isNewReconciler:V},MM={readContext:function(n){return Sr(n)},useCallback:function(n,r){return Ce="useCallback",He(),Wg(n,r)},useContext:function(n){return Ce="useContext",He(),Sr(n)},useEffect:function(n,r){return Ce="useEffect",He(),yh(n,r)},useImperativeHandle:function(n,r,l){return Ce="useImperativeHandle",He(),Vg(n,r,l)},useInsertionEffect:function(n,r){return Ce="useInsertionEffect",He(),Bg(n,r)},useLayoutEffect:function(n,r){return Ce="useLayoutEffect",He(),Hg(n,r)},useMemo:function(n,r){Ce="useMemo",He();var l=Ze.current;Ze.current=_o;try{return Gg(n,r)}finally{Ze.current=l}},useReducer:function(n,r,l){Ce="useReducer",He();var u=Ze.current;Ze.current=_o;try{return Ox(n,r,l)}finally{Ze.current=u}},useRef:function(n){return Ce="useRef",He(),Fg()},useState:function(n){Ce="useState",He();var r=Ze.current;Ze.current=_o;try{return Ax(n)}finally{Ze.current=r}},useDebugValue:function(n,r){return Ce="useDebugValue",He(),$g()},useDeferredValue:function(n){return Ce="useDeferredValue",He(),gM(n)},useTransition:function(){return Ce="useTransition",He(),SM()},useMutableSource:function(n,r,l){return Ce="useMutableSource",He(),void 0},useSyncExternalStore:function(n,r,l){return Ce="useSyncExternalStore",He(),zg(n,r)},useId:function(){return Ce="useId",He(),Yg()},unstable_isNewReconciler:V},RM={readContext:function(n){return Sr(n)},useCallback:function(n,r){return Ce="useCallback",He(),Wg(n,r)},useContext:function(n){return Ce="useContext",He(),Sr(n)},useEffect:function(n,r){return Ce="useEffect",He(),yh(n,r)},useImperativeHandle:function(n,r,l){return Ce="useImperativeHandle",He(),Vg(n,r,l)},useInsertionEffect:function(n,r){return Ce="useInsertionEffect",He(),Bg(n,r)},useLayoutEffect:function(n,r){return Ce="useLayoutEffect",He(),Hg(n,r)},useMemo:function(n,r){Ce="useMemo",He();var l=Ze.current;Ze.current=Zg;try{return Gg(n,r)}finally{Ze.current=l}},useReducer:function(n,r,l){Ce="useReducer",He();var u=Ze.current;Ze.current=Zg;try{return Dx(n,r,l)}finally{Ze.current=u}},useRef:function(n){return Ce="useRef",He(),Fg()},useState:function(n){Ce="useState",He();var r=Ze.current;Ze.current=Zg;try{return Nx(n)}finally{Ze.current=r}},useDebugValue:function(n,r){return Ce="useDebugValue",He(),$g()},useDeferredValue:function(n){return Ce="useDeferredValue",He(),yM(n)},useTransition:function(){return Ce="useTransition",He(),xM()},useMutableSource:function(n,r,l){return Ce="useMutableSource",He(),void 0},useSyncExternalStore:function(n,r,l){return Ce="useSyncExternalStore",He(),zg(n,r)},useId:function(){return Ce="useId",He(),Yg()},unstable_isNewReconciler:V},sl={readContext:function(n){return Wx(),Sr(n)},useCallback:function(n,r){return Ce="useCallback",Ct(),on(),Ux(n,r)},useContext:function(n){return Ce="useContext",Ct(),on(),Sr(n)},useEffect:function(n,r){return Ce="useEffect",Ct(),on(),Ug(n,r)},useImperativeHandle:function(n,r,l){return Ce="useImperativeHandle",Ct(),on(),jx(n,r,l)},useInsertionEffect:function(n,r){return Ce="useInsertionEffect",Ct(),on(),Ix(n,r)},useLayoutEffect:function(n,r){return Ce="useLayoutEffect",Ct(),on(),Fx(n,r)},useMemo:function(n,r){Ce="useMemo",Ct(),on();var l=Ze.current;Ze.current=sl;try{return Bx(n,r)}finally{Ze.current=l}},useReducer:function(n,r,l){Ce="useReducer",Ct(),on();var u=Ze.current;Ze.current=sl;try{return Rx(n,r,l)}finally{Ze.current=u}},useRef:function(n){return Ce="useRef",Ct(),on(),zx(n)},useState:function(n){Ce="useState",Ct(),on();var r=Ze.current;Ze.current=sl;try{return Ig(n)}finally{Ze.current=r}},useDebugValue:function(n,r){return Ce="useDebugValue",Ct(),on(),void 0},useDeferredValue:function(n){return Ce="useDeferredValue",Ct(),on(),Hx(n)},useTransition:function(){return Ce="useTransition",Ct(),on(),Vx()},useMutableSource:function(n,r,l){return Ce="useMutableSource",Ct(),on(),void 0},useSyncExternalStore:function(n,r,l){return Ce="useSyncExternalStore",Ct(),on(),Px(n,r,l)},useId:function(){return Ce="useId",Ct(),on(),$x()},unstable_isNewReconciler:V},_o={readContext:function(n){return Wx(),Sr(n)},useCallback:function(n,r){return Ce="useCallback",Ct(),He(),Wg(n,r)},useContext:function(n){return Ce="useContext",Ct(),He(),Sr(n)},useEffect:function(n,r){return Ce="useEffect",Ct(),He(),yh(n,r)},useImperativeHandle:function(n,r,l){return Ce="useImperativeHandle",Ct(),He(),Vg(n,r,l)},useInsertionEffect:function(n,r){return Ce="useInsertionEffect",Ct(),He(),Bg(n,r)},useLayoutEffect:function(n,r){return Ce="useLayoutEffect",Ct(),He(),Hg(n,r)},useMemo:function(n,r){Ce="useMemo",Ct(),He();var l=Ze.current;Ze.current=_o;try{return Gg(n,r)}finally{Ze.current=l}},useReducer:function(n,r,l){Ce="useReducer",Ct(),He();var u=Ze.current;Ze.current=_o;try{return Ox(n,r,l)}finally{Ze.current=u}},useRef:function(n){return Ce="useRef",Ct(),He(),Fg()},useState:function(n){Ce="useState",Ct(),He();var r=Ze.current;Ze.current=_o;try{return Ax(n)}finally{Ze.current=r}},useDebugValue:function(n,r){return Ce="useDebugValue",Ct(),He(),$g()},useDeferredValue:function(n){return Ce="useDeferredValue",Ct(),He(),gM(n)},useTransition:function(){return Ce="useTransition",Ct(),He(),SM()},useMutableSource:function(n,r,l){return Ce="useMutableSource",Ct(),He(),void 0},useSyncExternalStore:function(n,r,l){return Ce="useSyncExternalStore",Ct(),He(),zg(n,r)},useId:function(){return Ce="useId",Ct(),He(),Yg()},unstable_isNewReconciler:V},Zg={readContext:function(n){return Wx(),Sr(n)},useCallback:function(n,r){return Ce="useCallback",Ct(),He(),Wg(n,r)},useContext:function(n){return Ce="useContext",Ct(),He(),Sr(n)},useEffect:function(n,r){return Ce="useEffect",Ct(),He(),yh(n,r)},useImperativeHandle:function(n,r,l){return Ce="useImperativeHandle",Ct(),He(),Vg(n,r,l)},useInsertionEffect:function(n,r){return Ce="useInsertionEffect",Ct(),He(),Bg(n,r)},useLayoutEffect:function(n,r){return Ce="useLayoutEffect",Ct(),He(),Hg(n,r)},useMemo:function(n,r){Ce="useMemo",Ct(),He();var l=Ze.current;Ze.current=_o;try{return Gg(n,r)}finally{Ze.current=l}},useReducer:function(n,r,l){Ce="useReducer",Ct(),He();var u=Ze.current;Ze.current=_o;try{return Dx(n,r,l)}finally{Ze.current=u}},useRef:function(n){return Ce="useRef",Ct(),He(),Fg()},useState:function(n){Ce="useState",Ct(),He();var r=Ze.current;Ze.current=_o;try{return Nx(n)}finally{Ze.current=r}},useDebugValue:function(n,r){return Ce="useDebugValue",Ct(),He(),$g()},useDeferredValue:function(n){return Ce="useDeferredValue",Ct(),He(),yM(n)},useTransition:function(){return Ce="useTransition",Ct(),He(),xM()},useMutableSource:function(n,r,l){return Ce="useMutableSource",Ct(),He(),void 0},useSyncExternalStore:function(n,r,l){return Ce="useSyncExternalStore",Ct(),He(),zg(n,r)},useId:function(){return Ce="useId",Ct(),He(),Yg()},unstable_isNewReconciler:V}}var Ps=t.unstable_now,OM=0,Qg=-1,bh=-1,Kg=-1,Gx=!1,Jg=!1;function DM(){return Gx}function CF(){Jg=!0}function LF(){Gx=!1,Jg=!1}function TF(){Gx=Jg,Jg=!1}function PM(){return OM}function AM(){OM=Ps()}function Yx(n){bh=Ps(),n.actualStartTime<0&&(n.actualStartTime=Ps())}function NM(n){bh=-1}function Xg(n,r){if(bh>=0){var l=Ps()-bh;n.actualDuration+=l,r&&(n.selfBaseDuration=l),bh=-1}}function ul(n){if(Qg>=0){var r=Ps()-Qg;Qg=-1;for(var l=n.return;l!==null;){switch(l.tag){case C:var u=l.stateNode;u.effectDuration+=r;return;case k:var d=l.stateNode;d.effectDuration+=r;return}l=l.return}}}function qx(n){if(Kg>=0){var r=Ps()-Kg;Kg=-1;for(var l=n.return;l!==null;){switch(l.tag){case C:var u=l.stateNode;u!==null&&(u.passiveEffectDuration+=r);return;case k:var d=l.stateNode;d!==null&&(d.passiveEffectDuration+=r);return}l=l.return}}}function cl(){Qg=Ps()}function Zx(){Kg=Ps()}function Qx(n){for(var r=n.child;r;)n.actualDuration+=r.actualDuration,r=r.sibling}function Xu(n,r){return{value:n,source:r,stack:J(r),digest:null}}function Kx(n,r,l){return{value:n,source:null,stack:l??null,digest:r??null}}function _F(n,r){return!0}function Jx(n,r){try{var l=_F(n,r);if(l===!1)return;var u=r.value,d=r.source,v=r.stack,b=v!==null?v:"";if(u!=null&&u._suppressLogging){if(n.tag===y)return;console.error(u)}var x=d?be(d):null,T=x?"The above error occurred in the <"+x+"> component:":"The above error occurred in one of your React components:",P;if(n.tag===C)P=`Consider adding an error boundary to your tree to customize error handling behavior.
78
+ Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var z=be(n)||"Anonymous";P="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+z+".")}var Z=T+`
79
+ `+b+`
80
+
81
+ `+(""+P);console.error(Z)}catch(q){setTimeout(function(){throw q})}}var kF=typeof WeakMap=="function"?WeakMap:Map;function zM(n,r,l){var u=Bl(An,l);u.tag=JS,u.payload={element:null};var d=r.value;return u.callback=function(){LU(d),Jx(n,r)},u}function Xx(n,r,l){var u=Bl(An,l);u.tag=JS;var d=n.type.getDerivedStateFromError;if(typeof d=="function"){var v=r.value;u.payload=function(){return d(v)},u.callback=function(){qR(n),Jx(n,r)}}var b=n.stateNode;return b!==null&&typeof b.componentDidCatch=="function"&&(u.callback=function(){qR(n),Jx(n,r),typeof d!="function"&&wU(this);var T=r.value,P=r.stack;this.componentDidCatch(T,{componentStack:P!==null?P:""}),typeof d!="function"&&(ma(n.lanes,wt)||p("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",be(n)||"Unknown"))}),u}function IM(n,r,l){var u=n.pingCache,d;if(u===null?(u=n.pingCache=new kF,d=new Set,u.set(r,d)):(d=u.get(r),d===void 0&&(d=new Set,u.set(r,d))),!d.has(l)){d.add(l);var v=TU.bind(null,n,r,l);So&&Nh(n,l),r.then(v,v)}}function MF(n,r,l,u){var d=n.updateQueue;if(d===null){var v=new Set;v.add(l),n.updateQueue=v}else d.add(l)}function RF(n,r){var l=n.tag;if((n.mode&Bt)===vt&&(l===g||l===E||l===N)){var u=n.alternate;u?(n.updateQueue=u.updateQueue,n.memoizedState=u.memoizedState,n.lanes=u.lanes):(n.updateQueue=null,n.memoizedState=null)}}function FM(n){var r=n;do{if(r.tag===F&&hF(r))return r;r=r.return}while(r!==null);return null}function jM(n,r,l,u,d){if((n.mode&Bt)===vt){if(n===r)n.flags|=Ri;else{if(n.flags|=Jt,l.flags|=b1,l.flags&=~(c7|bp),l.tag===y){var v=l.alternate;if(v===null)l.tag=K;else{var b=Bl(An,wt);b.tag=wg,Ms(l,b,wt)}}l.lanes=kt(l.lanes,wt)}return n}return n.flags|=Ri,n.lanes=d,n}function OF(n,r,l,u,d){if(l.flags|=bp,So&&Nh(n,d),u!==null&&typeof u=="object"&&typeof u.then=="function"){var v=u;RF(l),Kr()&&l.mode&Bt&&Mk();var b=FM(r);if(b!==null){b.flags&=~Ml,jM(b,r,l,n,d),b.mode&Bt&&IM(n,v,d),MF(b,n,v);return}else{if(!eA(d)){IM(n,v,d),PE();return}var x=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");u=x}}else if(Kr()&&l.mode&Bt){Mk();var T=FM(r);if(T!==null){(T.flags&Ri)===ht&&(T.flags|=Ml),jM(T,r,l,n,d),WS(Xu(u,l));return}}u=Xu(u,l),vU(u);var P=r;do{switch(P.tag){case C:{var z=u;P.flags|=Ri;var Z=_p(d);P.lanes=kt(P.lanes,Z);var q=zM(P,z,Z);tx(P,q);return}case y:var fe=u,ce=P.type,he=P.stateNode;if((P.flags&Jt)===ht&&(typeof ce.getDerivedStateFromError=="function"||he!==null&&typeof he.componentDidCatch=="function"&&!jR(he))){P.flags|=Ri;var qe=_p(d);P.lanes=kt(P.lanes,qe);var ft=Xx(P,fe,qe);tx(P,ft);return}break}P=P.return}while(P!==null)}function DF(){return null}var Sh=a.ReactCurrentOwner,ko=!1,eE,xh,tE,nE,rE,ec,iE,ey;eE={},xh={},tE={},nE={},rE={},ec=!1,iE={},ey={};function Oi(n,r,l,u){n===null?r.child=rM(r,null,l,u):r.child=zf(r,n.child,l,u)}function PF(n,r,l,u){r.child=zf(r,n.child,null,u),r.child=zf(r,null,l,u)}function UM(n,r,l,u,d){if(r.type!==r.elementType){var v=l.propTypes;v&&Eo(v,u,"prop",me(l))}var b=l.render,x=r.ref,T,P;Nf(r,d),xp(r);{if(Sh.current=r,Zt(!0),T=Hf(n,r,b,u,x,d),P=Vf(),r.mode&br){Fr(!0);try{T=Hf(n,r,b,u,x,d),P=Vf()}finally{Fr(!1)}}Zt(!1)}return vf(),n!==null&&!ko?(sM(n,r,d),Hl(n,r,d)):(Kr()&&P&&jS(r),r.flags|=pf,Oi(n,r,T,d),r.child)}function BM(n,r,l,u,d){if(n===null){var v=l.type;if(VU(v)&&l.compare===null&&l.defaultProps===void 0){var b=v;return b=Kf(v),r.tag=N,r.type=b,lE(r,v),HM(n,r,b,u,d)}{var x=v.propTypes;x&&Eo(x,u,"prop",me(v))}var T=$E(l.type,null,u,r,r.mode,d);return T.ref=r.ref,T.return=r,r.child=T,T}{var P=l.type,z=P.propTypes;z&&Eo(z,u,"prop",me(P))}var Z=n.child,q=pE(n,d);if(!q){var fe=Z.memoizedProps,ce=l.compare;if(ce=ce!==null?ce:Hp,ce(fe,u)&&n.ref===r.ref)return Hl(n,r,d)}r.flags|=pf;var he=ac(Z,u);return he.ref=r.ref,he.return=r,r.child=he,he}function HM(n,r,l,u,d){if(r.type!==r.elementType){var v=r.elementType;if(v.$$typeof===ct){var b=v,x=b._payload,T=b._init;try{v=T(x)}catch{v=null}var P=v&&v.propTypes;P&&Eo(P,u,"prop",me(v))}}if(n!==null){var z=n.memoizedProps;if(Hp(z,u)&&n.ref===r.ref&&r.type===n.type)if(ko=!1,r.pendingProps=u=z,pE(n,d))(n.flags&b1)!==ht&&(ko=!0);else return r.lanes=n.lanes,Hl(n,r,d)}return aE(n,r,l,u,d)}function VM(n,r,l){var u=r.pendingProps,d=u.children,v=n!==null?n.memoizedState:null;if(u.mode==="hidden"||le)if((r.mode&Bt)===vt){var b={baseLanes:Me,cachePool:null,transitions:null};r.memoizedState=b,py(r,l)}else if(ma(l,va)){var Z={baseLanes:Me,cachePool:null,transitions:null};r.memoizedState=Z;var q=v!==null?v.baseLanes:l;py(r,q)}else{var x=null,T;if(v!==null){var P=v.baseLanes;T=kt(P,l)}else T=l;r.lanes=r.childLanes=va;var z={baseLanes:T,cachePool:x,transitions:null};return r.memoizedState=z,r.updateQueue=null,py(r,T),null}else{var fe;v!==null?(fe=kt(v.baseLanes,l),r.memoizedState=null):fe=l,py(r,fe)}return Oi(n,r,d,l),r.child}function AF(n,r,l){var u=r.pendingProps;return Oi(n,r,u,l),r.child}function NF(n,r,l){var u=r.pendingProps.children;return Oi(n,r,u,l),r.child}function zF(n,r,l){{r.flags|=Gt;{var u=r.stateNode;u.effectDuration=0,u.passiveEffectDuration=0}}var d=r.pendingProps,v=d.children;return Oi(n,r,v,l),r.child}function $M(n,r){var l=r.ref;(n===null&&l!==null||n!==null&&n.ref!==l)&&(r.flags|=gs,r.flags|=S1)}function aE(n,r,l,u,d){if(r.type!==r.elementType){var v=l.propTypes;v&&Eo(v,u,"prop",me(l))}var b;{var x=Mf(r,l,!0);b=Rf(r,x)}var T,P;Nf(r,d),xp(r);{if(Sh.current=r,Zt(!0),T=Hf(n,r,l,u,b,d),P=Vf(),r.mode&br){Fr(!0);try{T=Hf(n,r,l,u,b,d),P=Vf()}finally{Fr(!1)}}Zt(!1)}return vf(),n!==null&&!ko?(sM(n,r,d),Hl(n,r,d)):(Kr()&&P&&jS(r),r.flags|=pf,Oi(n,r,T,d),r.child)}function WM(n,r,l,u,d){{switch(iB(r)){case!1:{var v=r.stateNode,b=r.type,x=new b(r.memoizedProps,v.context),T=x.state;v.updater.enqueueSetState(v,T,null);break}case!0:{r.flags|=Jt,r.flags|=Ri;var P=new Error("Simulated error coming from DevTools"),z=_p(d);r.lanes=kt(r.lanes,z);var Z=Xx(r,Xu(P,r),z);tx(r,Z);break}}if(r.type!==r.elementType){var q=l.propTypes;q&&Eo(q,u,"prop",me(l))}}var fe;al(l)?(fe=!0,dg(r)):fe=!1,Nf(r,d);var ce=r.stateNode,he;ce===null?(ny(n,r),Jk(r,l,u),px(r,l,u,d),he=!0):n===null?he=sF(r,l,u,d):he=uF(n,r,l,u,d);var qe=oE(n,r,l,he,fe,d);{var ft=r.stateNode;he&&ft.props!==u&&(ec||p("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",be(r)||"a component"),ec=!0)}return qe}function oE(n,r,l,u,d,v){$M(n,r);var b=(r.flags&Jt)!==ht;if(!u&&!b)return d&&Lk(r,l,!1),Hl(n,r,v);var x=r.stateNode;Sh.current=r;var T;if(b&&typeof l.getDerivedStateFromError!="function")T=null,NM();else{xp(r);{if(Zt(!0),T=x.render(),r.mode&br){Fr(!0);try{x.render()}finally{Fr(!1)}}Zt(!1)}vf()}return r.flags|=pf,n!==null&&b?PF(n,r,T,v):Oi(n,r,T,v),r.memoizedState=x.state,d&&Lk(r,l,!0),r.child}function GM(n){var r=n.stateNode;r.pendingContext?wk(n,r.pendingContext,r.pendingContext!==r.context):r.context&&wk(n,r.context,!1),bx(n,r.containerInfo)}function IF(n,r,l){if(GM(r),n===null)throw new Error("Should have a current fiber. This is a bug in React.");var u=r.pendingProps,d=r.memoizedState,v=d.element;$k(n,r),_g(r,u,null,l);var b=r.memoizedState,x=r.stateNode,T=b.element;if(d.isDehydrated){var P={element:T,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},z=r.updateQueue;if(z.baseState=P,r.memoizedState=P,r.flags&Ml){var Z=Xu(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),r);return YM(n,r,T,l,Z)}else if(T!==v){var q=Xu(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),r);return YM(n,r,T,l,q)}else{BI(r);var fe=rM(r,null,T,l);r.child=fe;for(var ce=fe;ce;)ce.flags=ce.flags&~yr|Rl,ce=ce.sibling}}else{if(Pf(),T===v)return Hl(n,r,l);Oi(n,r,T,l)}return r.child}function YM(n,r,l,u,d){return Pf(),WS(d),r.flags|=Ml,Oi(n,r,l,u),r.child}function FF(n,r,l){aM(r),n===null&&$S(r);var u=r.type,d=r.pendingProps,v=n!==null?n.memoizedProps:null,b=d.children,x=LS(u,d);return x?b=null:v!==null&&LS(u,v)&&(r.flags|=yp),$M(n,r),Oi(n,r,b,l),r.child}function jF(n,r){return n===null&&$S(r),null}function UF(n,r,l,u){ny(n,r);var d=r.pendingProps,v=l,b=v._payload,x=v._init,T=x(b);r.type=T;var P=r.tag=$U(T),z=Lo(T,d),Z;switch(P){case g:return lE(r,T),r.type=T=Kf(T),Z=aE(null,r,T,z,u),Z;case y:return r.type=T=FE(T),Z=WM(null,r,T,z,u),Z;case E:return r.type=T=jE(T),Z=UM(null,r,T,z,u),Z;case U:{if(r.type!==r.elementType){var q=T.propTypes;q&&Eo(q,z,"prop",me(T))}return Z=BM(null,r,T,Lo(T.type,z),u),Z}}var fe="";throw T!==null&&typeof T=="object"&&T.$$typeof===ct&&(fe=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+T+". "+("Lazy element type must resolve to a class or function."+fe))}function BF(n,r,l,u,d){ny(n,r),r.tag=y;var v;return al(l)?(v=!0,dg(r)):v=!1,Nf(r,d),Jk(r,l,u),px(r,l,u,d),oE(null,r,l,!0,v,d)}function HF(n,r,l,u){ny(n,r);var d=r.pendingProps,v;{var b=Mf(r,l,!1);v=Rf(r,b)}Nf(r,u);var x,T;xp(r);{if(l.prototype&&typeof l.prototype.render=="function"){var P=me(l)||"Unknown";eE[P]||(p("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",P,P),eE[P]=!0)}r.mode&br&&Co.recordLegacyContextWarning(r,null),Zt(!0),Sh.current=r,x=Hf(null,r,l,d,v,u),T=Vf(),Zt(!1)}if(vf(),r.flags|=pf,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0){var z=me(l)||"Unknown";xh[z]||(p("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",z,z,z),xh[z]=!0)}if(typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0){{var Z=me(l)||"Unknown";xh[Z]||(p("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Z,Z,Z),xh[Z]=!0)}r.tag=y,r.memoizedState=null,r.updateQueue=null;var q=!1;return al(l)?(q=!0,dg(r)):q=!1,r.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,ex(r),Kk(r,x),px(r,l,d,u),oE(null,r,l,!0,q,u)}else{if(r.tag=g,r.mode&br){Fr(!0);try{x=Hf(null,r,l,d,v,u),T=Vf()}finally{Fr(!1)}}return Kr()&&T&&jS(r),Oi(null,r,x,u),lE(r,l),r.child}}function lE(n,r){{if(r&&r.childContextTypes&&p("%s(...): childContextTypes cannot be defined on a function component.",r.displayName||r.name||"Component"),n.ref!==null){var l="",u=Mn();u&&(l+=`
82
+
83
+ Check the render method of \``+u+"`.");var d=u||"",v=n._debugSource;v&&(d=v.fileName+":"+v.lineNumber),rE[d]||(rE[d]=!0,p("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",l))}if(typeof r.getDerivedStateFromProps=="function"){var b=me(r)||"Unknown";nE[b]||(p("%s: Function components do not support getDerivedStateFromProps.",b),nE[b]=!0)}if(typeof r.contextType=="object"&&r.contextType!==null){var x=me(r)||"Unknown";tE[x]||(p("%s: Function components do not support contextType.",x),tE[x]=!0)}}}var sE={dehydrated:null,treeContext:null,retryLane:jr};function uE(n){return{baseLanes:n,cachePool:DF(),transitions:null}}function VF(n,r){var l=null;return{baseLanes:kt(n.baseLanes,r),cachePool:l,transitions:n.transitions}}function $F(n,r,l,u){if(r!==null){var d=r.memoizedState;if(d===null)return!1}return Ex(n,dh)}function WF(n,r){return Nm(n.childLanes,r)}function qM(n,r,l){var u=r.pendingProps;aB(r)&&(r.flags|=Jt);var d=To.current,v=!1,b=(r.flags&Jt)!==ht;if(b||$F(d,n)?(v=!0,r.flags&=~Jt):(n===null||n.memoizedState!==null)&&(d=pF(d,lM)),d=Ff(d),Os(r,d),n===null){$S(r);var x=r.memoizedState;if(x!==null){var T=x.dehydrated;if(T!==null)return QF(r,T)}var P=u.children,z=u.fallback;if(v){var Z=GF(r,P,z,l),q=r.child;return q.memoizedState=uE(l),r.memoizedState=sE,Z}else return cE(r,P)}else{var fe=n.memoizedState;if(fe!==null){var ce=fe.dehydrated;if(ce!==null)return KF(n,r,b,u,ce,fe,l)}if(v){var he=u.fallback,qe=u.children,ft=qF(n,r,qe,he,l),ot=r.child,Nt=n.child.memoizedState;return ot.memoizedState=Nt===null?uE(l):VF(Nt,l),ot.childLanes=WF(n,l),r.memoizedState=sE,ft}else{var zt=u.children,ae=YF(n,r,zt,l);return r.memoizedState=null,ae}}}function cE(n,r,l){var u=n.mode,d={mode:"visible",children:r},v=fE(d,u);return v.return=n,n.child=v,v}function GF(n,r,l,u){var d=n.mode,v=n.child,b={mode:"hidden",children:r},x,T;return(d&Bt)===vt&&v!==null?(x=v,x.childLanes=Me,x.pendingProps=b,n.mode&gn&&(x.actualDuration=0,x.actualStartTime=-1,x.selfBaseDuration=0,x.treeBaseDuration=0),T=js(l,d,u,null)):(x=fE(b,d),T=js(l,d,u,null)),x.return=n,T.return=n,x.sibling=T,n.child=x,T}function fE(n,r,l){return QR(n,r,Me,null)}function ZM(n,r){return ac(n,r)}function YF(n,r,l,u){var d=n.child,v=d.sibling,b=ZM(d,{mode:"visible",children:l});if((r.mode&Bt)===vt&&(b.lanes=u),b.return=r,b.sibling=null,v!==null){var x=r.deletions;x===null?(r.deletions=[v],r.flags|=Ou):x.push(v)}return r.child=b,b}function qF(n,r,l,u,d){var v=r.mode,b=n.child,x=b.sibling,T={mode:"hidden",children:l},P;if((v&Bt)===vt&&r.child!==b){var z=r.child;P=z,P.childLanes=Me,P.pendingProps=T,r.mode&gn&&(P.actualDuration=0,P.actualStartTime=-1,P.selfBaseDuration=b.selfBaseDuration,P.treeBaseDuration=b.treeBaseDuration),r.deletions=null}else P=ZM(b,T),P.subtreeFlags=b.subtreeFlags&Dl;var Z;return x!==null?Z=ac(x,u):(Z=js(u,v,d,null),Z.flags|=yr),Z.return=r,P.return=r,P.sibling=Z,r.child=P,Z}function ty(n,r,l,u){u!==null&&WS(u),zf(r,n.child,null,l);var d=r.pendingProps,v=d.children,b=cE(r,v);return b.flags|=yr,r.memoizedState=null,b}function ZF(n,r,l,u,d){var v=r.mode,b={mode:"visible",children:l},x=fE(b,v),T=js(u,v,d,null);return T.flags|=yr,x.return=r,T.return=r,x.sibling=T,r.child=x,(r.mode&Bt)!==vt&&zf(r,n.child,null,d),T}function QF(n,r,l){return(n.mode&Bt)===vt?(p("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),n.lanes=wt):MS(r)?n.lanes=Fu:n.lanes=va,null}function KF(n,r,l,u,d,v,b){if(l)if(r.flags&Ml){r.flags&=~Ml;var ae=Kx(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return ty(n,r,b,ae)}else{if(r.memoizedState!==null)return r.child=n.child,r.flags|=Jt,null;var ye=u.children,oe=u.fallback,De=ZF(n,r,ye,oe,b),Ke=r.child;return Ke.memoizedState=uE(b),r.memoizedState=sE,De}else{if(jI(),(r.mode&Bt)===vt)return ty(n,r,b,null);if(MS(d)){var x,T,P;{var z=nI(d);x=z.digest,T=z.message,P=z.stack}var Z;T?Z=new Error(T):Z=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var q=Kx(Z,x,P);return ty(n,r,b,q)}var fe=ma(b,n.childLanes);if(ko||fe){var ce=dy();if(ce!==null){var he=sA(ce,b);if(he!==jr&&he!==v.retryLane){v.retryLane=he;var qe=An;Qi(n,he),Dr(ce,n,he,qe)}}PE();var ft=Kx(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return ty(n,r,b,ft)}else if(gk(d)){r.flags|=Jt,r.child=n.child;var ot=_U.bind(null,n);return rI(d,ot),null}else{HI(r,d,v.treeContext);var Nt=u.children,zt=cE(r,Nt);return zt.flags|=Rl,zt}}}function QM(n,r,l){n.lanes=kt(n.lanes,r);var u=n.alternate;u!==null&&(u.lanes=kt(u.lanes,r)),QS(n.return,r,l)}function JF(n,r,l){for(var u=r;u!==null;){if(u.tag===F){var d=u.memoizedState;d!==null&&QM(u,l,n)}else if(u.tag===re)QM(u,l,n);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===n)return;for(;u.sibling===null;){if(u.return===null||u.return===n)return;u=u.return}u.sibling.return=u.return,u=u.sibling}}function XF(n){for(var r=n,l=null;r!==null;){var u=r.alternate;u!==null&&Ag(u)===null&&(l=r),r=r.sibling}return l}function ej(n){if(n!==void 0&&n!=="forwards"&&n!=="backwards"&&n!=="together"&&!iE[n])if(iE[n]=!0,typeof n=="string")switch(n.toLowerCase()){case"together":case"forwards":case"backwards":{p('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',n,n.toLowerCase());break}case"forward":case"backward":{p('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',n,n.toLowerCase());break}default:p('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n);break}else p('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n)}function tj(n,r){n!==void 0&&!ey[n]&&(n!=="collapsed"&&n!=="hidden"?(ey[n]=!0,p('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',n)):r!=="forwards"&&r!=="backwards"&&(ey[n]=!0,p('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',n)))}function KM(n,r){{var l=Yr(n),u=!l&&typeof Yo(n)=="function";if(l||u){var d=l?"array":"iterable";return p("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",d,r,d),!1}}return!0}function nj(n,r){if((r==="forwards"||r==="backwards")&&n!==void 0&&n!==null&&n!==!1)if(Yr(n)){for(var l=0;l<n.length;l++)if(!KM(n[l],l))return}else{var u=Yo(n);if(typeof u=="function"){var d=u.call(n);if(d)for(var v=d.next(),b=0;!v.done;v=d.next()){if(!KM(v.value,b))return;b++}}else p('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',r)}}function dE(n,r,l,u,d){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:d}:(v.isBackwards=r,v.rendering=null,v.renderingStartTime=0,v.last=u,v.tail=l,v.tailMode=d)}function JM(n,r,l){var u=r.pendingProps,d=u.revealOrder,v=u.tail,b=u.children;ej(d),tj(v,d),nj(b,d),Oi(n,r,b,l);var x=To.current,T=Ex(x,dh);if(T)x=wx(x,dh),r.flags|=Jt;else{var P=n!==null&&(n.flags&Jt)!==ht;P&&JF(r,r.child,l),x=Ff(x)}if(Os(r,x),(r.mode&Bt)===vt)r.memoizedState=null;else switch(d){case"forwards":{var z=XF(r.child),Z;z===null?(Z=r.child,r.child=null):(Z=z.sibling,z.sibling=null),dE(r,!1,Z,z,v);break}case"backwards":{var q=null,fe=r.child;for(r.child=null;fe!==null;){var ce=fe.alternate;if(ce!==null&&Ag(ce)===null){r.child=fe;break}var he=fe.sibling;fe.sibling=q,q=fe,fe=he}dE(r,!0,q,null,v);break}case"together":{dE(r,!1,null,null,void 0);break}default:r.memoizedState=null}return r.child}function rj(n,r,l){bx(r,r.stateNode.containerInfo);var u=r.pendingProps;return n===null?r.child=zf(r,null,u,l):Oi(n,r,u,l),r.child}var XM=!1;function ij(n,r,l){var u=r.type,d=u._context,v=r.pendingProps,b=r.memoizedProps,x=v.value;{"value"in v||XM||(XM=!0,p("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var T=r.type.propTypes;T&&Eo(T,v,"prop","Context.Provider")}if(Uk(r,d,x),b!==null){var P=b.value;if(ba(P,x)){if(b.children===v.children&&!cg())return Hl(n,r,l)}else JI(r,d,l)}var z=v.children;return Oi(n,r,z,l),r.child}var eR=!1;function aj(n,r,l){var u=r.type;u._context===void 0?u!==u.Consumer&&(eR||(eR=!0,p("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):u=u._context;var d=r.pendingProps,v=d.children;typeof v!="function"&&p("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Nf(r,l);var b=Sr(u);xp(r);var x;return Sh.current=r,Zt(!0),x=v(b),Zt(!1),vf(),r.flags|=pf,Oi(n,r,x,l),r.child}function Eh(){ko=!0}function ny(n,r){(r.mode&Bt)===vt&&n!==null&&(n.alternate=null,r.alternate=null,r.flags|=yr)}function Hl(n,r,l){return n!==null&&(r.dependencies=n.dependencies),NM(),Ah(r.lanes),ma(l,r.childLanes)?(cF(n,r),r.child):null}function oj(n,r,l){{var u=r.return;if(u===null)throw new Error("Cannot swap the root fiber.");if(n.alternate=null,r.alternate=null,l.index=r.index,l.sibling=r.sibling,l.return=r.return,l.ref=r.ref,r===u.child)u.child=l;else{var d=u.child;if(d===null)throw new Error("Expected parent to have a child.");for(;d.sibling!==r;)if(d=d.sibling,d===null)throw new Error("Expected to find the previous sibling.");d.sibling=l}var v=u.deletions;return v===null?(u.deletions=[n],u.flags|=Ou):v.push(n),l.flags|=yr,l}}function pE(n,r){var l=n.lanes;return!!ma(l,r)}function lj(n,r,l){switch(r.tag){case C:GM(r);var u=r.stateNode;Pf();break;case _:aM(r);break;case y:{var d=r.type;al(d)&&dg(r);break}case M:bx(r,r.stateNode.containerInfo);break;case D:{var v=r.memoizedProps.value,b=r.type._context;Uk(r,b,v);break}case k:{var x=ma(l,r.childLanes);x&&(r.flags|=Gt);{var T=r.stateNode;T.effectDuration=0,T.passiveEffectDuration=0}}break;case F:{var P=r.memoizedState;if(P!==null){if(P.dehydrated!==null)return Os(r,Ff(To.current)),r.flags|=Jt,null;var z=r.child,Z=z.childLanes;if(ma(l,Z))return qM(n,r,l);Os(r,Ff(To.current));var q=Hl(n,r,l);return q!==null?q.sibling:null}else Os(r,Ff(To.current));break}case re:{var fe=(n.flags&Jt)!==ht,ce=ma(l,r.childLanes);if(fe){if(ce)return JM(n,r,l);r.flags|=Jt}var he=r.memoizedState;if(he!==null&&(he.rendering=null,he.tail=null,he.lastEffect=null),Os(r,To.current),ce)break;return null}case Y:case ue:return r.lanes=Me,VM(n,r,l)}return Hl(n,r,l)}function tR(n,r,l){if(r._debugNeedsRemount&&n!==null)return oj(n,r,$E(r.type,r.key,r.pendingProps,r._debugOwner||null,r.mode,r.lanes));if(n!==null){var u=n.memoizedProps,d=r.pendingProps;if(u!==d||cg()||r.type!==n.type)ko=!0;else{var v=pE(n,l);if(!v&&(r.flags&Jt)===ht)return ko=!1,lj(n,r,l);(n.flags&b1)!==ht?ko=!0:ko=!1}}else if(ko=!1,Kr()&&PI(r)){var b=r.index,x=AI();kk(r,x,b)}switch(r.lanes=Me,r.tag){case w:return HF(n,r,r.type,l);case W:{var T=r.elementType;return UF(n,r,T,l)}case g:{var P=r.type,z=r.pendingProps,Z=r.elementType===P?z:Lo(P,z);return aE(n,r,P,Z,l)}case y:{var q=r.type,fe=r.pendingProps,ce=r.elementType===q?fe:Lo(q,fe);return WM(n,r,q,ce,l)}case C:return IF(n,r,l);case _:return FF(n,r,l);case A:return jF(n,r);case F:return qM(n,r,l);case M:return rj(n,r,l);case E:{var he=r.type,qe=r.pendingProps,ft=r.elementType===he?qe:Lo(he,qe);return UM(n,r,he,ft,l)}case I:return AF(n,r,l);case $:return NF(n,r,l);case k:return zF(n,r,l);case D:return ij(n,r,l);case R:return aj(n,r,l);case U:{var ot=r.type,Nt=r.pendingProps,zt=Lo(ot,Nt);if(r.type!==r.elementType){var ae=ot.propTypes;ae&&Eo(ae,zt,"prop",me(ot))}return zt=Lo(ot.type,zt),BM(n,r,ot,zt,l)}case N:return HM(n,r,r.type,r.pendingProps,l);case K:{var ye=r.type,oe=r.pendingProps,De=r.elementType===ye?oe:Lo(ye,oe);return BF(n,r,ye,De,l)}case re:return JM(n,r,l);case Le:break;case Y:return VM(n,r,l)}throw new Error("Unknown unit of work tag ("+r.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function $f(n){n.flags|=Gt}function nR(n){n.flags|=gs,n.flags|=S1}var rR,hE,iR,aR;rR=function(n,r,l,u){for(var d=r.child;d!==null;){if(d.tag===_||d.tag===A)Rz(n,d.stateNode);else if(d.tag!==M){if(d.child!==null){d.child.return=d,d=d.child;continue}}if(d===r)return;for(;d.sibling===null;){if(d.return===null||d.return===r)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},hE=function(n,r){},iR=function(n,r,l,u,d){var v=n.memoizedProps;if(v!==u){var b=r.stateNode,x=Sx(),T=Dz(b,l,v,u,d,x);r.updateQueue=T,T&&$f(r)}},aR=function(n,r,l,u){l!==u&&$f(r)};function wh(n,r){if(!Kr())switch(n.tailMode){case"hidden":{for(var l=n.tail,u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?n.tail=null:u.sibling=null;break}case"collapsed":{for(var d=n.tail,v=null;d!==null;)d.alternate!==null&&(v=d),d=d.sibling;v===null?!r&&n.tail!==null?n.tail.sibling=null:n.tail=null:v.sibling=null;break}}}function Xr(n){var r=n.alternate!==null&&n.alternate.child===n.child,l=Me,u=ht;if(r){if((n.mode&gn)!==vt){for(var T=n.selfBaseDuration,P=n.child;P!==null;)l=kt(l,kt(P.lanes,P.childLanes)),u|=P.subtreeFlags&Dl,u|=P.flags&Dl,T+=P.treeBaseDuration,P=P.sibling;n.treeBaseDuration=T}else for(var z=n.child;z!==null;)l=kt(l,kt(z.lanes,z.childLanes)),u|=z.subtreeFlags&Dl,u|=z.flags&Dl,z.return=n,z=z.sibling;n.subtreeFlags|=u}else{if((n.mode&gn)!==vt){for(var d=n.actualDuration,v=n.selfBaseDuration,b=n.child;b!==null;)l=kt(l,kt(b.lanes,b.childLanes)),u|=b.subtreeFlags,u|=b.flags,d+=b.actualDuration,v+=b.treeBaseDuration,b=b.sibling;n.actualDuration=d,n.treeBaseDuration=v}else for(var x=n.child;x!==null;)l=kt(l,kt(x.lanes,x.childLanes)),u|=x.subtreeFlags,u|=x.flags,x.return=n,x=x.sibling;n.subtreeFlags|=u}return n.childLanes=l,r}function sj(n,r,l){if(YI()&&(r.mode&Bt)!==vt&&(r.flags&Jt)===ht)return Nk(r),Pf(),r.flags|=Ml|bp|Ri,!1;var u=gg(r);if(l!==null&&l.dehydrated!==null)if(n===null){if(!u)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(WI(r),Xr(r),(r.mode&gn)!==vt){var d=l!==null;if(d){var v=r.child;v!==null&&(r.treeBaseDuration-=v.treeBaseDuration)}}return!1}else{if(Pf(),(r.flags&Jt)===ht&&(r.memoizedState=null),r.flags|=Gt,Xr(r),(r.mode&gn)!==vt){var b=l!==null;if(b){var x=r.child;x!==null&&(r.treeBaseDuration-=x.treeBaseDuration)}}return!1}else return zk(),!0}function oR(n,r,l){var u=r.pendingProps;switch(US(r),r.tag){case w:case W:case N:case g:case E:case I:case $:case k:case R:case U:return Xr(r),null;case y:{var d=r.type;return al(d)&&fg(r),Xr(r),null}case C:{var v=r.stateNode;if(If(r),zS(r),Lx(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),n===null||n.child===null){var b=gg(r);if(b)$f(r);else if(n!==null){var x=n.memoizedState;(!x.isDehydrated||(r.flags&Ml)!==ht)&&(r.flags|=Du,zk())}}return hE(n,r),Xr(r),null}case _:{xx(r);var T=iM(),P=r.type;if(n!==null&&r.stateNode!=null)iR(n,r,P,u,T),n.ref!==r.ref&&nR(r);else{if(!u){if(r.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Xr(r),null}var z=Sx(),Z=gg(r);if(Z)VI(r,T,z)&&$f(r);else{var q=Mz(P,u,T,z,r);rR(q,r,!1,!1),r.stateNode=q,Oz(q,P,u,T)&&$f(r)}r.ref!==null&&nR(r)}return Xr(r),null}case A:{var fe=u;if(n&&r.stateNode!=null){var ce=n.memoizedProps;aR(n,r,ce,fe)}else{if(typeof fe!="string"&&r.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var he=iM(),qe=Sx(),ft=gg(r);ft?$I(r)&&$f(r):r.stateNode=Pz(fe,he,qe,r)}return Xr(r),null}case F:{jf(r);var ot=r.memoizedState;if(n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){var Nt=sj(n,r,ot);if(!Nt)return r.flags&Ri?r:null}if((r.flags&Jt)!==ht)return r.lanes=l,(r.mode&gn)!==vt&&Qx(r),r;var zt=ot!==null,ae=n!==null&&n.memoizedState!==null;if(zt!==ae&&zt){var ye=r.child;if(ye.flags|=Pu,(r.mode&Bt)!==vt){var oe=n===null&&(r.memoizedProps.unstable_avoidThisFallback!==!0||!ge);oe||Ex(To.current,lM)?hU():PE()}}var De=r.updateQueue;if(De!==null&&(r.flags|=Gt),Xr(r),(r.mode&gn)!==vt&&zt){var Ke=r.child;Ke!==null&&(r.treeBaseDuration-=Ke.treeBaseDuration)}return null}case M:return If(r),hE(n,r),n===null&&TI(r.stateNode.containerInfo),Xr(r),null;case D:var Ge=r.type._context;return ZS(Ge,r),Xr(r),null;case K:{var bt=r.type;return al(bt)&&fg(r),Xr(r),null}case re:{jf(r);var Tt=r.memoizedState;if(Tt===null)return Xr(r),null;var bn=(r.flags&Jt)!==ht,Qt=Tt.rendering;if(Qt===null)if(bn)wh(Tt,!1);else{var hr=mU()&&(n===null||(n.flags&Jt)===ht);if(!hr)for(var Kt=r.child;Kt!==null;){var ur=Ag(Kt);if(ur!==null){bn=!0,r.flags|=Jt,wh(Tt,!1);var gi=ur.updateQueue;return gi!==null&&(r.updateQueue=gi,r.flags|=Gt),r.subtreeFlags=ht,fF(r,l),Os(r,wx(To.current,dh)),r.child}Kt=Kt.sibling}Tt.tail!==null&&Ir()>kR()&&(r.flags|=Jt,bn=!0,wh(Tt,!1),r.lanes=i_)}else{if(!bn){var ii=Ag(Qt);if(ii!==null){r.flags|=Jt,bn=!0;var Ea=ii.updateQueue;if(Ea!==null&&(r.updateQueue=Ea,r.flags|=Gt),wh(Tt,!0),Tt.tail===null&&Tt.tailMode==="hidden"&&!Qt.alternate&&!Kr())return Xr(r),null}else Ir()*2-Tt.renderingStartTime>kR()&&l!==va&&(r.flags|=Jt,bn=!0,wh(Tt,!1),r.lanes=i_)}if(Tt.isBackwards)Qt.sibling=r.child,r.child=Qt;else{var Ai=Tt.last;Ai!==null?Ai.sibling=Qt:r.child=Qt,Tt.last=Qt}}if(Tt.tail!==null){var Ni=Tt.tail;Tt.rendering=Ni,Tt.tail=Ni.sibling,Tt.renderingStartTime=Ir(),Ni.sibling=null;var yi=To.current;return bn?yi=wx(yi,dh):yi=Ff(yi),Os(r,yi),Ni}return Xr(r),null}case Le:break;case Y:case ue:{DE(r);var Yl=r.memoizedState,Jf=Yl!==null;if(n!==null){var jh=n.memoizedState,pl=jh!==null;pl!==Jf&&!le&&(r.flags|=Pu)}return!Jf||(r.mode&Bt)===vt?Xr(r):ma(dl,va)&&(Xr(r),r.subtreeFlags&(yr|Gt)&&(r.flags|=Pu)),null}case xe:return null;case Pe:return null}throw new Error("Unknown unit of work tag ("+r.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function uj(n,r,l){switch(US(r),r.tag){case y:{var u=r.type;al(u)&&fg(r);var d=r.flags;return d&Ri?(r.flags=d&~Ri|Jt,(r.mode&gn)!==vt&&Qx(r),r):null}case C:{var v=r.stateNode;If(r),zS(r),Lx();var b=r.flags;return(b&Ri)!==ht&&(b&Jt)===ht?(r.flags=b&~Ri|Jt,r):null}case _:return xx(r),null;case F:{jf(r);var x=r.memoizedState;if(x!==null&&x.dehydrated!==null){if(r.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Pf()}var T=r.flags;return T&Ri?(r.flags=T&~Ri|Jt,(r.mode&gn)!==vt&&Qx(r),r):null}case re:return jf(r),null;case M:return If(r),null;case D:var P=r.type._context;return ZS(P,r),null;case Y:case ue:return DE(r),null;case xe:return null;default:return null}}function lR(n,r,l){switch(US(r),r.tag){case y:{var u=r.type.childContextTypes;u!=null&&fg(r);break}case C:{var d=r.stateNode;If(r),zS(r),Lx();break}case _:{xx(r);break}case M:If(r);break;case F:jf(r);break;case re:jf(r);break;case D:var v=r.type._context;ZS(v,r);break;case Y:case ue:DE(r);break}}var sR=null;sR=new Set;var ry=!1,ei=!1,cj=typeof WeakSet=="function"?WeakSet:Set,rt=null,Wf=null,Gf=null;function fj(n){m1(null,function(){throw n}),g1()}var dj=function(n,r){if(r.props=n.memoizedProps,r.state=n.memoizedState,n.mode&gn)try{cl(),r.componentWillUnmount()}finally{ul(n)}else r.componentWillUnmount()};function uR(n,r){try{As(Tr,n)}catch(l){On(n,r,l)}}function vE(n,r,l){try{dj(n,l)}catch(u){On(n,r,u)}}function pj(n,r,l){try{l.componentDidMount()}catch(u){On(n,r,u)}}function cR(n,r){try{pR(n)}catch(l){On(n,r,l)}}function Yf(n,r){var l=n.ref;if(l!==null)if(typeof l=="function"){var u;try{if(je&&we&&n.mode&gn)try{cl(),u=l(null)}finally{ul(n)}else u=l(null)}catch(d){On(n,r,d)}typeof u=="function"&&p("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",be(n))}else l.current=null}function iy(n,r,l){try{l()}catch(u){On(n,r,u)}}var fR=null,dR=!1;function hj(n,r){fR=_z(n.containerInfo),rt=r,vj();var l=dR;return dR=!1,fR=null,l}function vj(){for(;rt!==null;){var n=rt,r=n.child;(n.subtreeFlags&E1)!==ht&&r!==null?(r.return=n,rt=r):mj()}}function mj(){for(;rt!==null;){var n=rt;yt(n);try{gj(n)}catch(l){On(n,n.return,l)}Ie();var r=n.sibling;if(r!==null){r.return=n.return,rt=r;return}rt=n.return}}function gj(n){var r=n.alternate,l=n.flags;if((l&Du)!==ht){switch(yt(n),n.tag){case g:case E:case N:break;case y:{if(r!==null){var u=r.memoizedProps,d=r.memoizedState,v=n.stateNode;n.type===n.elementType&&!ec&&(v.props!==n.memoizedProps&&p("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",be(n)||"instance"),v.state!==n.memoizedState&&p("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",be(n)||"instance"));var b=v.getSnapshotBeforeUpdate(n.elementType===n.type?u:Lo(n.type,u),d);{var x=sR;b===void 0&&!x.has(n.type)&&(x.add(n.type),p("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",be(n)))}v.__reactInternalSnapshotBeforeUpdate=b}break}case C:{{var T=n.stateNode;Jz(T.containerInfo)}break}case _:case A:case M:case K:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Ie()}}function Mo(n,r,l){var u=r.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var v=d.next,b=v;do{if((b.tag&n)===n){var x=b.destroy;b.destroy=void 0,x!==void 0&&((n&Jr)!==Ki?P7(r):(n&Tr)!==Ki&&XT(r),(n&ol)!==Ki&&zh(!0),iy(r,l,x),(n&ol)!==Ki&&zh(!1),(n&Jr)!==Ki?A7():(n&Tr)!==Ki&&e_())}b=b.next}while(b!==v)}}function As(n,r){var l=r.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var d=u.next,v=d;do{if((v.tag&n)===n){(n&Jr)!==Ki?O7(r):(n&Tr)!==Ki&&N7(r);var b=v.create;(n&ol)!==Ki&&zh(!0),v.destroy=b(),(n&ol)!==Ki&&zh(!1),(n&Jr)!==Ki?D7():(n&Tr)!==Ki&&z7();{var x=v.destroy;if(x!==void 0&&typeof x!="function"){var T=void 0;(v.tag&Tr)!==ht?T="useLayoutEffect":(v.tag&ol)!==ht?T="useInsertionEffect":T="useEffect";var P=void 0;x===null?P=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof x.then=="function"?P=`
84
+
85
+ It looks like you wrote `+T+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
86
+
87
+ `+T+`(() => {
88
+ async function fetchData() {
89
+ // You can await here
90
+ const response = await MyAPI.getData(someId);
91
+ // ...
92
+ }
93
+ fetchData();
94
+ }, [someId]); // Or [] if effect doesn't need props or state
95
+
96
+ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:P=" You returned: "+x,p("%s must not return anything besides a function, which is used for clean-up.%s",T,P)}}}v=v.next}while(v!==d)}}function yj(n,r){if((r.flags&Gt)!==ht)switch(r.tag){case k:{var l=r.stateNode.passiveEffectDuration,u=r.memoizedProps,d=u.id,v=u.onPostCommit,b=PM(),x=r.alternate===null?"mount":"update";DM()&&(x="nested-update"),typeof v=="function"&&v(d,x,l,b);var T=r.return;e:for(;T!==null;){switch(T.tag){case C:var P=T.stateNode;P.passiveEffectDuration+=l;break e;case k:var z=T.stateNode;z.passiveEffectDuration+=l;break e}T=T.return}break}}}function bj(n,r,l,u){if((l.flags&Sp)!==ht)switch(l.tag){case g:case E:case N:{if(!ei)if(l.mode&gn)try{cl(),As(Tr|Lr,l)}finally{ul(l)}else As(Tr|Lr,l);break}case y:{var d=l.stateNode;if(l.flags&Gt&&!ei)if(r===null)if(l.type===l.elementType&&!ec&&(d.props!==l.memoizedProps&&p("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",be(l)||"instance"),d.state!==l.memoizedState&&p("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",be(l)||"instance")),l.mode&gn)try{cl(),d.componentDidMount()}finally{ul(l)}else d.componentDidMount();else{var v=l.elementType===l.type?r.memoizedProps:Lo(l.type,r.memoizedProps),b=r.memoizedState;if(l.type===l.elementType&&!ec&&(d.props!==l.memoizedProps&&p("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",be(l)||"instance"),d.state!==l.memoizedState&&p("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",be(l)||"instance")),l.mode&gn)try{cl(),d.componentDidUpdate(v,b,d.__reactInternalSnapshotBeforeUpdate)}finally{ul(l)}else d.componentDidUpdate(v,b,d.__reactInternalSnapshotBeforeUpdate)}var x=l.updateQueue;x!==null&&(l.type===l.elementType&&!ec&&(d.props!==l.memoizedProps&&p("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",be(l)||"instance"),d.state!==l.memoizedState&&p("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",be(l)||"instance")),Gk(l,x,d));break}case C:{var T=l.updateQueue;if(T!==null){var P=null;if(l.child!==null)switch(l.child.tag){case _:P=l.child.stateNode;break;case y:P=l.child.stateNode;break}Gk(l,T,P)}break}case _:{var z=l.stateNode;if(r===null&&l.flags&Gt){var Z=l.type,q=l.memoizedProps;Fz(z,Z,q)}break}case A:break;case M:break;case k:{{var fe=l.memoizedProps,ce=fe.onCommit,he=fe.onRender,qe=l.stateNode.effectDuration,ft=PM(),ot=r===null?"mount":"update";DM()&&(ot="nested-update"),typeof he=="function"&&he(l.memoizedProps.id,ot,l.actualDuration,l.treeBaseDuration,l.actualStartTime,ft);{typeof ce=="function"&&ce(l.memoizedProps.id,ot,qe,ft),xU(l);var Nt=l.return;e:for(;Nt!==null;){switch(Nt.tag){case C:var zt=Nt.stateNode;zt.effectDuration+=qe;break e;case k:var ae=Nt.stateNode;ae.effectDuration+=qe;break e}Nt=Nt.return}}}break}case F:{_j(n,l);break}case re:case K:case Le:case Y:case ue:case Pe:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}ei||l.flags&gs&&pR(l)}function Sj(n){switch(n.tag){case g:case E:case N:{if(n.mode&gn)try{cl(),uR(n,n.return)}finally{ul(n)}else uR(n,n.return);break}case y:{var r=n.stateNode;typeof r.componentDidMount=="function"&&pj(n,n.return,r),cR(n,n.return);break}case _:{cR(n,n.return);break}}}function xj(n,r){for(var l=null,u=n;;){if(u.tag===_){if(l===null){l=u;try{var d=u.stateNode;r?qz(d):Qz(u.stateNode,u.memoizedProps)}catch(b){On(n,n.return,b)}}}else if(u.tag===A){if(l===null)try{var v=u.stateNode;r?Zz(v):Kz(v,u.memoizedProps)}catch(b){On(n,n.return,b)}}else if(!((u.tag===Y||u.tag===ue)&&u.memoizedState!==null&&u!==n)){if(u.child!==null){u.child.return=u,u=u.child;continue}}if(u===n)return;for(;u.sibling===null;){if(u.return===null||u.return===n)return;l===u&&(l=null),u=u.return}l===u&&(l=null),u.sibling.return=u.return,u=u.sibling}}function pR(n){var r=n.ref;if(r!==null){var l=n.stateNode,u;switch(n.tag){case _:u=l;break;default:u=l}if(typeof r=="function"){var d;if(n.mode&gn)try{cl(),d=r(u)}finally{ul(n)}else d=r(u);typeof d=="function"&&p("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",be(n))}else r.hasOwnProperty("current")||p("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",be(n)),r.current=u}}function Ej(n){var r=n.alternate;r!==null&&(r.return=null),n.return=null}function hR(n){var r=n.alternate;r!==null&&(n.alternate=null,hR(r));{if(n.child=null,n.deletions=null,n.sibling=null,n.tag===_){var l=n.stateNode;l!==null&&MI(l)}n.stateNode=null,n._debugOwner=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}}function wj(n){for(var r=n.return;r!==null;){if(vR(r))return r;r=r.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function vR(n){return n.tag===_||n.tag===C||n.tag===M}function mR(n){var r=n;e:for(;;){for(;r.sibling===null;){if(r.return===null||vR(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==_&&r.tag!==A&&r.tag!==G;){if(r.flags&yr||r.child===null||r.tag===M)continue e;r.child.return=r,r=r.child}if(!(r.flags&yr))return r.stateNode}}function Cj(n){var r=wj(n);switch(r.tag){case _:{var l=r.stateNode;r.flags&yp&&(mk(l),r.flags&=~yp);var u=mR(n);gE(n,u,l);break}case C:case M:{var d=r.stateNode.containerInfo,v=mR(n);mE(n,v,d);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function mE(n,r,l){var u=n.tag,d=u===_||u===A;if(d){var v=n.stateNode;r?$z(l,v,r):Hz(l,v)}else if(u!==M){var b=n.child;if(b!==null){mE(b,r,l);for(var x=b.sibling;x!==null;)mE(x,r,l),x=x.sibling}}}function gE(n,r,l){var u=n.tag,d=u===_||u===A;if(d){var v=n.stateNode;r?Vz(l,v,r):Bz(l,v)}else if(u!==M){var b=n.child;if(b!==null){gE(b,r,l);for(var x=b.sibling;x!==null;)gE(x,r,l),x=x.sibling}}}var ti=null,Ro=!1;function Lj(n,r,l){{var u=r;e:for(;u!==null;){switch(u.tag){case _:{ti=u.stateNode,Ro=!1;break e}case C:{ti=u.stateNode.containerInfo,Ro=!0;break e}case M:{ti=u.stateNode.containerInfo,Ro=!0;break e}}u=u.return}if(ti===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");gR(n,r,l),ti=null,Ro=!1}Ej(l)}function Ns(n,r,l){for(var u=l.child;u!==null;)gR(n,r,u),u=u.sibling}function gR(n,r,l){switch(_7(l),l.tag){case _:ei||Yf(l,r);case A:{{var u=ti,d=Ro;ti=null,Ns(n,r,l),ti=u,Ro=d,ti!==null&&(Ro?Gz(ti,l.stateNode):Wz(ti,l.stateNode))}return}case G:{ti!==null&&(Ro?Yz(ti,l.stateNode):kS(ti,l.stateNode));return}case M:{{var v=ti,b=Ro;ti=l.stateNode.containerInfo,Ro=!0,Ns(n,r,l),ti=v,Ro=b}return}case g:case E:case U:case N:{if(!ei){var x=l.updateQueue;if(x!==null){var T=x.lastEffect;if(T!==null){var P=T.next,z=P;do{var Z=z,q=Z.destroy,fe=Z.tag;q!==void 0&&((fe&ol)!==Ki?iy(l,r,q):(fe&Tr)!==Ki&&(XT(l),l.mode&gn?(cl(),iy(l,r,q),ul(l)):iy(l,r,q),e_())),z=z.next}while(z!==P)}}}Ns(n,r,l);return}case y:{if(!ei){Yf(l,r);var ce=l.stateNode;typeof ce.componentWillUnmount=="function"&&vE(l,r,ce)}Ns(n,r,l);return}case Le:{Ns(n,r,l);return}case Y:{if(l.mode&Bt){var he=ei;ei=he||l.memoizedState!==null,Ns(n,r,l),ei=he}else Ns(n,r,l);break}default:{Ns(n,r,l);return}}}function Tj(n){var r=n.memoizedState}function _j(n,r){var l=r.memoizedState;if(l===null){var u=r.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var v=d.dehydrated;v!==null&&dI(v)}}}}function yR(n){var r=n.updateQueue;if(r!==null){n.updateQueue=null;var l=n.stateNode;l===null&&(l=n.stateNode=new cj),r.forEach(function(u){var d=kU.bind(null,n,u);if(!l.has(u)){if(l.add(u),So)if(Wf!==null&&Gf!==null)Nh(Gf,Wf);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");u.then(d,d)}})}}function kj(n,r,l){Wf=l,Gf=n,yt(r),bR(r,n),yt(r),Wf=null,Gf=null}function Oo(n,r,l){var u=r.deletions;if(u!==null)for(var d=0;d<u.length;d++){var v=u[d];try{Lj(n,r,v)}catch(T){On(v,r,T)}}var b=rn();if(r.subtreeFlags&w1)for(var x=r.child;x!==null;)yt(x),bR(x,n),x=x.sibling;yt(b)}function bR(n,r,l){var u=n.alternate,d=n.flags;switch(n.tag){case g:case E:case U:case N:{if(Oo(r,n),fl(n),d&Gt){try{Mo(ol|Lr,n,n.return),As(ol|Lr,n)}catch(bt){On(n,n.return,bt)}if(n.mode&gn){try{cl(),Mo(Tr|Lr,n,n.return)}catch(bt){On(n,n.return,bt)}ul(n)}else try{Mo(Tr|Lr,n,n.return)}catch(bt){On(n,n.return,bt)}}return}case y:{Oo(r,n),fl(n),d&gs&&u!==null&&Yf(u,u.return);return}case _:{Oo(r,n),fl(n),d&gs&&u!==null&&Yf(u,u.return);{if(n.flags&yp){var v=n.stateNode;try{mk(v)}catch(bt){On(n,n.return,bt)}}if(d&Gt){var b=n.stateNode;if(b!=null){var x=n.memoizedProps,T=u!==null?u.memoizedProps:x,P=n.type,z=n.updateQueue;if(n.updateQueue=null,z!==null)try{jz(b,z,P,T,x,n)}catch(bt){On(n,n.return,bt)}}}}return}case A:{if(Oo(r,n),fl(n),d&Gt){if(n.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var Z=n.stateNode,q=n.memoizedProps,fe=u!==null?u.memoizedProps:q;try{Uz(Z,fe,q)}catch(bt){On(n,n.return,bt)}}return}case C:{if(Oo(r,n),fl(n),d&Gt&&u!==null){var ce=u.memoizedState;if(ce.isDehydrated)try{fI(r.containerInfo)}catch(bt){On(n,n.return,bt)}}return}case M:{Oo(r,n),fl(n);return}case F:{Oo(r,n),fl(n);var he=n.child;if(he.flags&Pu){var qe=he.stateNode,ft=he.memoizedState,ot=ft!==null;if(qe.isHidden=ot,ot){var Nt=he.alternate!==null&&he.alternate.memoizedState!==null;Nt||pU()}}if(d&Gt){try{Tj(n)}catch(bt){On(n,n.return,bt)}yR(n)}return}case Y:{var zt=u!==null&&u.memoizedState!==null;if(n.mode&Bt){var ae=ei;ei=ae||zt,Oo(r,n),ei=ae}else Oo(r,n);if(fl(n),d&Pu){var ye=n.stateNode,oe=n.memoizedState,De=oe!==null,Ke=n;if(ye.isHidden=De,De&&!zt&&(Ke.mode&Bt)!==vt){rt=Ke;for(var Ge=Ke.child;Ge!==null;)rt=Ge,Rj(Ge),Ge=Ge.sibling}xj(Ke,De)}return}case re:{Oo(r,n),fl(n),d&Gt&&yR(n);return}case Le:return;default:{Oo(r,n),fl(n);return}}}function fl(n){var r=n.flags;if(r&yr){try{Cj(n)}catch(l){On(n,n.return,l)}n.flags&=~yr}r&Rl&&(n.flags&=~Rl)}function Mj(n,r,l){Wf=l,Gf=r,rt=n,SR(n,r,l),Wf=null,Gf=null}function SR(n,r,l){for(var u=(n.mode&Bt)!==vt;rt!==null;){var d=rt,v=d.child;if(d.tag===Y&&u){var b=d.memoizedState!==null,x=b||ry;if(x){yE(n,r,l);continue}else{var T=d.alternate,P=T!==null&&T.memoizedState!==null,z=P||ei,Z=ry,q=ei;ry=x,ei=z,ei&&!q&&(rt=d,Oj(d));for(var fe=v;fe!==null;)rt=fe,SR(fe,r,l),fe=fe.sibling;rt=d,ry=Z,ei=q,yE(n,r,l);continue}}(d.subtreeFlags&Sp)!==ht&&v!==null?(v.return=d,rt=v):yE(n,r,l)}}function yE(n,r,l){for(;rt!==null;){var u=rt;if((u.flags&Sp)!==ht){var d=u.alternate;yt(u);try{bj(r,d,u,l)}catch(b){On(u,u.return,b)}Ie()}if(u===n){rt=null;return}var v=u.sibling;if(v!==null){v.return=u.return,rt=v;return}rt=u.return}}function Rj(n){for(;rt!==null;){var r=rt,l=r.child;switch(r.tag){case g:case E:case U:case N:{if(r.mode&gn)try{cl(),Mo(Tr,r,r.return)}finally{ul(r)}else Mo(Tr,r,r.return);break}case y:{Yf(r,r.return);var u=r.stateNode;typeof u.componentWillUnmount=="function"&&vE(r,r.return,u);break}case _:{Yf(r,r.return);break}case Y:{var d=r.memoizedState!==null;if(d){xR(n);continue}break}}l!==null?(l.return=r,rt=l):xR(n)}}function xR(n){for(;rt!==null;){var r=rt;if(r===n){rt=null;return}var l=r.sibling;if(l!==null){l.return=r.return,rt=l;return}rt=r.return}}function Oj(n){for(;rt!==null;){var r=rt,l=r.child;if(r.tag===Y){var u=r.memoizedState!==null;if(u){ER(n);continue}}l!==null?(l.return=r,rt=l):ER(n)}}function ER(n){for(;rt!==null;){var r=rt;yt(r);try{Sj(r)}catch(u){On(r,r.return,u)}if(Ie(),r===n){rt=null;return}var l=r.sibling;if(l!==null){l.return=r.return,rt=l;return}rt=r.return}}function Dj(n,r,l,u){rt=r,Pj(r,n,l,u)}function Pj(n,r,l,u){for(;rt!==null;){var d=rt,v=d.child;(d.subtreeFlags&hf)!==ht&&v!==null?(v.return=d,rt=v):Aj(n,r,l,u)}}function Aj(n,r,l,u){for(;rt!==null;){var d=rt;if((d.flags&bo)!==ht){yt(d);try{Nj(r,d,l,u)}catch(b){On(d,d.return,b)}Ie()}if(d===n){rt=null;return}var v=d.sibling;if(v!==null){v.return=d.return,rt=v;return}rt=d.return}}function Nj(n,r,l,u){switch(r.tag){case g:case E:case N:{if(r.mode&gn){Zx();try{As(Jr|Lr,r)}finally{qx(r)}}else As(Jr|Lr,r);break}}}function zj(n){rt=n,Ij()}function Ij(){for(;rt!==null;){var n=rt,r=n.child;if((rt.flags&Ou)!==ht){var l=n.deletions;if(l!==null){for(var u=0;u<l.length;u++){var d=l[u];rt=d,Uj(d,n)}{var v=n.alternate;if(v!==null){var b=v.child;if(b!==null){v.child=null;do{var x=b.sibling;b.sibling=null,b=x}while(b!==null)}}}rt=n}}(n.subtreeFlags&hf)!==ht&&r!==null?(r.return=n,rt=r):Fj()}}function Fj(){for(;rt!==null;){var n=rt;(n.flags&bo)!==ht&&(yt(n),jj(n),Ie());var r=n.sibling;if(r!==null){r.return=n.return,rt=r;return}rt=n.return}}function jj(n){switch(n.tag){case g:case E:case N:{n.mode&gn?(Zx(),Mo(Jr|Lr,n,n.return),qx(n)):Mo(Jr|Lr,n,n.return);break}}}function Uj(n,r){for(;rt!==null;){var l=rt;yt(l),Hj(l,r),Ie();var u=l.child;u!==null?(u.return=l,rt=u):Bj(n)}}function Bj(n){for(;rt!==null;){var r=rt,l=r.sibling,u=r.return;if(hR(r),r===n){rt=null;return}if(l!==null){l.return=u,rt=l;return}rt=u}}function Hj(n,r){switch(n.tag){case g:case E:case N:{n.mode&gn?(Zx(),Mo(Jr,n,r),qx(n)):Mo(Jr,n,r);break}}}function Vj(n){switch(n.tag){case g:case E:case N:{try{As(Tr|Lr,n)}catch(l){On(n,n.return,l)}break}case y:{var r=n.stateNode;try{r.componentDidMount()}catch(l){On(n,n.return,l)}break}}}function $j(n){switch(n.tag){case g:case E:case N:{try{As(Jr|Lr,n)}catch(r){On(n,n.return,r)}break}}}function Wj(n){switch(n.tag){case g:case E:case N:{try{Mo(Tr|Lr,n,n.return)}catch(l){On(n,n.return,l)}break}case y:{var r=n.stateNode;typeof r.componentWillUnmount=="function"&&vE(n,n.return,r);break}}}function Gj(n){switch(n.tag){case g:case E:case N:try{Mo(Jr|Lr,n,n.return)}catch(r){On(n,n.return,r)}}}var Yj=0,qj=1,Zj=2,Qj=3,Kj=4;if(typeof Symbol=="function"&&Symbol.for){var Ch=Symbol.for;Yj=Ch("selector.component"),qj=Ch("selector.has_pseudo_class"),Zj=Ch("selector.role"),Qj=Ch("selector.test_id"),Kj=Ch("selector.text")}var Jj=[];function Xj(){Jj.forEach(function(n){return n()})}var eU=a.ReactCurrentActQueue;function tU(n){{var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,l=typeof jest<"u";return l&&r!==!1}}function wR(){{var n=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!n&&eU.current!==null&&p("The current testing environment is not configured to support act(...)"),n}}var nU=Math.ceil,bE=a.ReactCurrentDispatcher,SE=a.ReactCurrentOwner,ni=a.ReactCurrentBatchConfig,Do=a.ReactCurrentActQueue,Mr=0,CR=1,ri=2,qa=4,Vl=0,Lh=1,tc=2,ay=3,Th=4,LR=5,xE=6,Ht=Mr,Di=null,nr=null,Rr=Me,dl=Me,EE=Ls(Me),Or=Vl,_h=null,wE=Me,oy=Me,kh=Me,ly=Me,Mh=null,Ji=null,CE=0,TR=500,_R=1/0,rU=500,$l=null;function Rh(){_R=Ir()+rU}function kR(){return _R}var sy=!1,LE=null,qf=null,nc=!1,zs=null,Oh=Me,TE=[],_E=null,iU=50,Dh=0,kE=null,ME=!1,uy=!1,aU=50,Zf=0,cy=null,Ph=An,fy=Me,MR=!1;function dy(){return Di}function Pi(){return(Ht&(ri|qa))!==Mr?Ir():(Ph!==An||(Ph=Ir()),Ph)}function Is(n){var r=n.mode;if((r&Bt)===vt)return wt;if((Ht&ri)!==Mr&&Rr!==Me)return _p(Rr);var l=QI()!==ZI;if(l){if(ni.transition!==null){var u=ni.transition;u._updatedFibers||(u._updatedFibers=new Set),u._updatedFibers.add(n)}return fy===jr&&(fy=s_()),fy}var d=xo();if(d!==jr)return d;var v=Az();return v}function oU(n){var r=n.mode;return(r&Bt)===vt?wt:iA()}function Dr(n,r,l,u){RU(),MR&&p("useInsertionEffect must not schedule updates."),ME&&(uy=!0),kp(n,l,u),(Ht&ri)!==Me&&n===Di?PU(r):(So&&f_(n,r,l),AU(r),n===Di&&((Ht&ri)===Mr&&(kh=kt(kh,l)),Or===Th&&Fs(n,Rr)),Xi(n,u),l===wt&&Ht===Mr&&(r.mode&Bt)===vt&&!Do.isBatchingLegacy&&(Rh(),_k()))}function lU(n,r,l){var u=n.current;u.lanes=r,kp(n,r,l),Xi(n,l)}function sU(n){return(Ht&ri)!==Mr}function Xi(n,r){var l=n.callbackNode;J7(n,r);var u=Pm(n,n===Di?Rr:Me);if(u===Me){l!==null&&WR(l),n.callbackNode=null,n.callbackPriority=jr;return}var d=Uu(u),v=n.callbackPriority;if(v===d&&!(Do.current!==null&&l!==zE)){l==null&&v!==wt&&p("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}l!=null&&WR(l);var b;if(d===wt)n.tag===Ts?(Do.isBatchingLegacy!==null&&(Do.didScheduleLegacyUpdate=!0),DI(DR.bind(null,n))):Tk(DR.bind(null,n)),Do.current!==null?Do.current.push(_s):zz(function(){(Ht&(ri|qa))===Mr&&_s()}),b=null;else{var x;switch(h_(u)){case ga:x=Mm;break;case Al:x=C1;break;case Nl:x=zu;break;case zm:x=L1;break;default:x=zu;break}b=IE(x,RR.bind(null,n))}n.callbackPriority=d,n.callbackNode=b}function RR(n,r){if(LF(),Ph=An,fy=Me,(Ht&(ri|qa))!==Mr)throw new Error("Should not already be working.");var l=n.callbackNode,u=Gl();if(u&&n.callbackNode!==l)return null;var d=Pm(n,n===Di?Rr:Me);if(d===Me)return null;var v=!Am(n,d)&&!rA(n,d)&&!r,b=v?yU(n,d):hy(n,d);if(b!==Vl){if(b===tc){var x=Y1(n);x!==Me&&(d=x,b=RE(n,x))}if(b===Lh){var T=_h;throw rc(n,Me),Fs(n,d),Xi(n,Ir()),T}if(b===xE)Fs(n,d);else{var P=!Am(n,d),z=n.current.alternate;if(P&&!cU(z)){if(b=hy(n,d),b===tc){var Z=Y1(n);Z!==Me&&(d=Z,b=RE(n,Z))}if(b===Lh){var q=_h;throw rc(n,Me),Fs(n,d),Xi(n,Ir()),q}}n.finishedWork=z,n.finishedLanes=d,uU(n,b,d)}}return Xi(n,Ir()),n.callbackNode===l?RR.bind(null,n):null}function RE(n,r){var l=Mh;if(Im(n)){var u=rc(n,r);u.flags|=Ml,LI(n.containerInfo)}var d=hy(n,r);if(d!==tc){var v=Ji;Ji=l,v!==null&&OR(v)}return d}function OR(n){Ji===null?Ji=n:Ji.push.apply(Ji,n)}function uU(n,r,l){switch(r){case Vl:case Lh:throw new Error("Root did not complete. This is a bug in React.");case tc:{ic(n,Ji,$l);break}case ay:{if(Fs(n,l),o_(l)&&!GR()){var u=CE+TR-Ir();if(u>10){var d=Pm(n,Me);if(d!==Me)break;var v=n.suspendedLanes;if(!bf(v,l)){var b=Pi();c_(n,v);break}n.timeoutHandle=TS(ic.bind(null,n,Ji,$l),u);break}}ic(n,Ji,$l);break}case Th:{if(Fs(n,l),nA(l))break;if(!GR()){var x=Q7(n,l),T=x,P=Ir()-T,z=MU(P)-P;if(z>10){n.timeoutHandle=TS(ic.bind(null,n,Ji,$l),z);break}}ic(n,Ji,$l);break}case LR:{ic(n,Ji,$l);break}default:throw new Error("Unknown root exit status.")}}function cU(n){for(var r=n;;){if(r.flags&_m){var l=r.updateQueue;if(l!==null){var u=l.stores;if(u!==null)for(var d=0;d<u.length;d++){var v=u[d],b=v.getSnapshot,x=v.value;try{if(!ba(b(),x))return!1}catch{return!1}}}}var T=r.child;if(r.subtreeFlags&_m&&T!==null){T.return=r,r=T;continue}if(r===n)return!0;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}return!0}function Fs(n,r){r=Nm(r,ly),r=Nm(r,kh),oA(n,r)}function DR(n){if(TF(),(Ht&(ri|qa))!==Mr)throw new Error("Should not already be working.");Gl();var r=Pm(n,Me);if(!ma(r,wt))return Xi(n,Ir()),null;var l=hy(n,r);if(n.tag!==Ts&&l===tc){var u=Y1(n);u!==Me&&(r=u,l=RE(n,u))}if(l===Lh){var d=_h;throw rc(n,Me),Fs(n,r),Xi(n,Ir()),d}if(l===xE)throw new Error("Root did not complete. This is a bug in React.");var v=n.current.alternate;return n.finishedWork=v,n.finishedLanes=r,ic(n,Ji,$l),Xi(n,Ir()),null}function fU(n,r){r!==Me&&(K1(n,kt(r,wt)),Xi(n,Ir()),(Ht&(ri|qa))===Mr&&(Rh(),_s()))}function OE(n,r){var l=Ht;Ht|=CR;try{return n(r)}finally{Ht=l,Ht===Mr&&!Do.isBatchingLegacy&&(Rh(),_k())}}function dU(n,r,l,u,d){var v=xo(),b=ni.transition;try{return ni.transition=null,Ur(ga),n(r,l,u,d)}finally{Ur(v),ni.transition=b,Ht===Mr&&Rh()}}function Wl(n){zs!==null&&zs.tag===Ts&&(Ht&(ri|qa))===Mr&&Gl();var r=Ht;Ht|=CR;var l=ni.transition,u=xo();try{return ni.transition=null,Ur(ga),n?n():void 0}finally{Ur(u),ni.transition=l,Ht=r,(Ht&(ri|qa))===Mr&&_s()}}function PR(){return(Ht&(ri|qa))!==Mr}function py(n,r){vi(EE,dl,n),dl=kt(dl,r),wE=kt(wE,r)}function DE(n){dl=EE.current,hi(EE,n)}function rc(n,r){n.finishedWork=null,n.finishedLanes=Me;var l=n.timeoutHandle;if(l!==_S&&(n.timeoutHandle=_S,Nz(l)),nr!==null)for(var u=nr.return;u!==null;){var d=u.alternate;lR(d,u),u=u.return}Di=n;var v=ac(n.current,null);return nr=v,Rr=dl=wE=r,Or=Vl,_h=null,oy=Me,kh=Me,ly=Me,Mh=null,Ji=null,eF(),Co.discardPendingWarnings(),v}function AR(n,r){do{var l=nr;try{if(xg(),uM(),Ie(),SE.current=null,l===null||l.return===null){Or=Lh,_h=r,nr=null;return}if(je&&l.mode&gn&&Xg(l,!0),Oe)if(vf(),r!==null&&typeof r=="object"&&typeof r.then=="function"){var u=r;F7(l,u,Rr)}else I7(l,r,Rr);OF(n,l.return,l,r,Rr),FR(l)}catch(d){r=d,nr===l&&l!==null?(l=l.return,nr=l):l=nr;continue}return}while(!0)}function NR(){var n=bE.current;return bE.current=qg,n===null?qg:n}function zR(n){bE.current=n}function pU(){CE=Ir()}function Ah(n){oy=kt(n,oy)}function hU(){Or===Vl&&(Or=ay)}function PE(){(Or===Vl||Or===ay||Or===tc)&&(Or=Th),Di!==null&&(q1(oy)||q1(kh))&&Fs(Di,Rr)}function vU(n){Or!==Th&&(Or=tc),Mh===null?Mh=[n]:Mh.push(n)}function mU(){return Or===Vl}function hy(n,r){var l=Ht;Ht|=ri;var u=NR();if(Di!==n||Rr!==r){if(So){var d=n.memoizedUpdaters;d.size>0&&(Nh(n,Rr),d.clear()),d_(n,r)}$l=p_(),rc(n,r)}t_(r);do try{gU();break}catch(v){AR(n,v)}while(!0);if(xg(),Ht=l,zR(u),nr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return n_(),Di=null,Rr=Me,Or}function gU(){for(;nr!==null;)IR(nr)}function yU(n,r){var l=Ht;Ht|=ri;var u=NR();if(Di!==n||Rr!==r){if(So){var d=n.memoizedUpdaters;d.size>0&&(Nh(n,Rr),d.clear()),d_(n,r)}$l=p_(),Rh(),rc(n,r)}t_(r);do try{bU();break}catch(v){AR(n,v)}while(!0);return xg(),zR(u),Ht=l,nr!==null?(V7(),Vl):(n_(),Di=null,Rr=Me,Or)}function bU(){for(;nr!==null&&!g7();)IR(nr)}function IR(n){var r=n.alternate;yt(n);var l;(n.mode&gn)!==vt?(Yx(n),l=AE(r,n,dl),Xg(n,!0)):l=AE(r,n,dl),Ie(),n.memoizedProps=n.pendingProps,l===null?FR(n):nr=l,SE.current=null}function FR(n){var r=n;do{var l=r.alternate,u=r.return;if((r.flags&bp)===ht){yt(r);var d=void 0;if((r.mode&gn)===vt?d=oR(l,r,dl):(Yx(r),d=oR(l,r,dl),Xg(r,!1)),Ie(),d!==null){nr=d;return}}else{var v=uj(l,r);if(v!==null){v.flags&=f7,nr=v;return}if((r.mode&gn)!==vt){Xg(r,!1);for(var b=r.actualDuration,x=r.child;x!==null;)b+=x.actualDuration,x=x.sibling;r.actualDuration=b}if(u!==null)u.flags|=bp,u.subtreeFlags=ht,u.deletions=null;else{Or=xE,nr=null;return}}var T=r.sibling;if(T!==null){nr=T;return}r=u,nr=r}while(r!==null);Or===Vl&&(Or=LR)}function ic(n,r,l){var u=xo(),d=ni.transition;try{ni.transition=null,Ur(ga),SU(n,r,l,u)}finally{ni.transition=d,Ur(u)}return null}function SU(n,r,l,u){do Gl();while(zs!==null);if(OU(),(Ht&(ri|qa))!==Mr)throw new Error("Should not already be working.");var d=n.finishedWork,v=n.finishedLanes;if(R7(v),d===null)return JT(),null;if(v===Me&&p("root.finishedLanes should not be empty during a commit. This is a bug in React."),n.finishedWork=null,n.finishedLanes=Me,d===n.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");n.callbackNode=null,n.callbackPriority=jr;var b=kt(d.lanes,d.childLanes);lA(n,b),n===Di&&(Di=null,nr=null,Rr=Me),((d.subtreeFlags&hf)!==ht||(d.flags&hf)!==ht)&&(nc||(nc=!0,_E=l,IE(zu,function(){return Gl(),null})));var x=(d.subtreeFlags&(E1|w1|Sp|hf))!==ht,T=(d.flags&(E1|w1|Sp|hf))!==ht;if(x||T){var P=ni.transition;ni.transition=null;var z=xo();Ur(ga);var Z=Ht;Ht|=qa,SE.current=null;var q=hj(n,d);AM(),kj(n,d,v),kz(n.containerInfo),n.current=d,j7(v),Mj(d,n,v),U7(),y7(),Ht=Z,Ur(z),ni.transition=P}else n.current=d,AM();var fe=nc;if(nc?(nc=!1,zs=n,Oh=v):(Zf=0,cy=null),b=n.pendingLanes,b===Me&&(qf=null),fe||HR(n.current,!1),L7(d.stateNode,u),So&&n.memoizedUpdaters.clear(),Xj(),Xi(n,Ir()),r!==null)for(var ce=n.onRecoverableError,he=0;he<r.length;he++){var qe=r[he],ft=qe.stack,ot=qe.digest;ce(qe.value,{componentStack:ft,digest:ot})}if(sy){sy=!1;var Nt=LE;throw LE=null,Nt}return ma(Oh,wt)&&n.tag!==Ts&&Gl(),b=n.pendingLanes,ma(b,wt)?(CF(),n===kE?Dh++:(Dh=0,kE=n)):Dh=0,_s(),JT(),null}function Gl(){if(zs!==null){var n=h_(Oh),r=fA(Nl,n),l=ni.transition,u=xo();try{return ni.transition=null,Ur(r),EU()}finally{Ur(u),ni.transition=l}}return!1}function xU(n){TE.push(n),nc||(nc=!0,IE(zu,function(){return Gl(),null}))}function EU(){if(zs===null)return!1;var n=_E;_E=null;var r=zs,l=Oh;if(zs=null,Oh=Me,(Ht&(ri|qa))!==Mr)throw new Error("Cannot flush passive effects while already rendering.");ME=!0,uy=!1,B7(l);var u=Ht;Ht|=qa,zj(r.current),Dj(r,r.current,l,n);{var d=TE;TE=[];for(var v=0;v<d.length;v++){var b=d[v];yj(r,b)}}H7(),HR(r.current,!0),Ht=u,_s(),uy?r===cy?Zf++:(Zf=0,cy=r):Zf=0,ME=!1,uy=!1,T7(r);{var x=r.current.stateNode;x.effectDuration=0,x.passiveEffectDuration=0}return!0}function jR(n){return qf!==null&&qf.has(n)}function wU(n){qf===null?qf=new Set([n]):qf.add(n)}function CU(n){sy||(sy=!0,LE=n)}var LU=CU;function UR(n,r,l){var u=Xu(l,r),d=zM(n,u,wt),v=Ms(n,d,wt),b=Pi();v!==null&&(kp(v,wt,b),Xi(v,b))}function On(n,r,l){if(fj(l),zh(!1),n.tag===C){UR(n,n,l);return}var u=null;for(u=r;u!==null;){if(u.tag===C){UR(u,n,l);return}else if(u.tag===y){var d=u.type,v=u.stateNode;if(typeof d.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&!jR(v)){var b=Xu(l,n),x=Xx(u,b,wt),T=Ms(u,x,wt),P=Pi();T!==null&&(kp(T,wt,P),Xi(T,P));return}}u=u.return}p(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
97
+
98
+ Error message:
99
+
100
+ %s`,l)}function TU(n,r,l){var u=n.pingCache;u!==null&&u.delete(r);var d=Pi();c_(n,l),NU(n),Di===n&&bf(Rr,l)&&(Or===Th||Or===ay&&o_(Rr)&&Ir()-CE<TR?rc(n,Me):ly=kt(ly,l)),Xi(n,d)}function BR(n,r){r===jr&&(r=oU(n));var l=Pi(),u=Qi(n,r);u!==null&&(kp(u,r,l),Xi(u,l))}function _U(n){var r=n.memoizedState,l=jr;r!==null&&(l=r.retryLane),BR(n,l)}function kU(n,r){var l=jr,u;switch(n.tag){case F:u=n.stateNode;var d=n.memoizedState;d!==null&&(l=d.retryLane);break;case re:u=n.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}u!==null&&u.delete(r),BR(n,l)}function MU(n){return n<120?120:n<480?480:n<1080?1080:n<1920?1920:n<3e3?3e3:n<4320?4320:nU(n/1960)*1960}function RU(){if(Dh>iU)throw Dh=0,kE=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Zf>aU&&(Zf=0,cy=null,p("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function OU(){Co.flushLegacyContextWarning(),Co.flushPendingUnsafeLifecycleWarnings()}function HR(n,r){yt(n),vy(n,Ol,Wj),r&&vy(n,km,Gj),vy(n,Ol,Vj),r&&vy(n,km,$j),Ie()}function vy(n,r,l){for(var u=n,d=null;u!==null;){var v=u.subtreeFlags&r;u!==d&&u.child!==null&&v!==ht?u=u.child:((u.flags&r)!==ht&&l(u),u.sibling!==null?u=u.sibling:u=d=u.return)}}var my=null;function VR(n){{if((Ht&ri)!==Mr||!(n.mode&Bt))return;var r=n.tag;if(r!==w&&r!==C&&r!==y&&r!==g&&r!==E&&r!==U&&r!==N)return;var l=be(n)||"ReactComponent";if(my!==null){if(my.has(l))return;my.add(l)}else my=new Set([l]);var u=Qe;try{yt(n),p("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{u?yt(n):Ie()}}}var AE;{var DU=null;AE=function(n,r,l){var u=KR(DU,r);try{return tR(n,r,l)}catch(v){if(UI()||v!==null&&typeof v=="object"&&typeof v.then=="function")throw v;if(xg(),uM(),lR(n,r),KR(r,u),r.mode&gn&&Yx(r),m1(null,tR,null,n,r,l),l7()){var d=g1();typeof d=="object"&&d!==null&&d._suppressLogging&&typeof v=="object"&&v!==null&&!v._suppressLogging&&(v._suppressLogging=!0)}throw v}}}var $R=!1,NE;NE=new Set;function PU(n){if(dt&&!xF())switch(n.tag){case g:case E:case N:{var r=nr&&be(nr)||"Unknown",l=r;if(!NE.has(l)){NE.add(l);var u=be(n)||"Unknown";p("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",u,r,r)}break}case y:{$R||(p("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),$R=!0);break}}}function Nh(n,r){if(So){var l=n.memoizedUpdaters;l.forEach(function(u){f_(n,u,r)})}}var zE={};function IE(n,r){{var l=Do.current;return l!==null?(l.push(r),zE):KT(n,r)}}function WR(n){if(n!==zE)return m7(n)}function GR(){return Do.current!==null}function AU(n){{if(n.mode&Bt){if(!wR())return}else if(!tU()||Ht!==Mr||n.tag!==g&&n.tag!==E&&n.tag!==N)return;if(Do.current===null){var r=Qe;try{yt(n),p(`An update to %s inside a test was not wrapped in act(...).
101
+
102
+ When testing, code that causes React state updates should be wrapped into act(...):
103
+
104
+ act(() => {
105
+ /* fire events that update state */
106
+ });
107
+ /* assert on the output */
108
+
109
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,be(n))}finally{r?yt(n):Ie()}}}}function NU(n){n.tag!==Ts&&wR()&&Do.current===null&&p(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
110
+
111
+ When testing, code that resolves suspended data should be wrapped into act(...):
112
+
113
+ act(() => {
114
+ /* finish loading suspended data */
115
+ });
116
+ /* assert on the output */
117
+
118
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function zh(n){MR=n}var Za=null,Qf=null,zU=function(n){Za=n};function Kf(n){{if(Za===null)return n;var r=Za(n);return r===void 0?n:r.current}}function FE(n){return Kf(n)}function jE(n){{if(Za===null)return n;var r=Za(n);if(r===void 0){if(n!=null&&typeof n.render=="function"){var l=Kf(n.render);if(n.render!==l){var u={$$typeof:lt,render:l};return n.displayName!==void 0&&(u.displayName=n.displayName),u}}return n}return r.current}}function YR(n,r){{if(Za===null)return!1;var l=n.elementType,u=r.type,d=!1,v=typeof u=="object"&&u!==null?u.$$typeof:null;switch(n.tag){case y:{typeof u=="function"&&(d=!0);break}case g:{(typeof u=="function"||v===ct)&&(d=!0);break}case E:{(v===lt||v===ct)&&(d=!0);break}case U:case N:{(v===Mt||v===ct)&&(d=!0);break}default:return!1}if(d){var b=Za(l);if(b!==void 0&&b===Za(u))return!0}return!1}}function qR(n){{if(Za===null||typeof WeakSet!="function")return;Qf===null&&(Qf=new WeakSet),Qf.add(n)}}var IU=function(n,r){{if(Za===null)return;var l=r.staleFamilies,u=r.updatedFamilies;Gl(),Wl(function(){UE(n.current,u,l)})}},FU=function(n,r){{if(n.context!==Sa)return;Gl(),Wl(function(){Ih(r,n,null,null)})}};function UE(n,r,l){{var u=n.alternate,d=n.child,v=n.sibling,b=n.tag,x=n.type,T=null;switch(b){case g:case N:case y:T=x;break;case E:T=x.render;break}if(Za===null)throw new Error("Expected resolveFamily to be set during hot reload.");var P=!1,z=!1;if(T!==null){var Z=Za(T);Z!==void 0&&(l.has(Z)?z=!0:r.has(Z)&&(b===y?z=!0:P=!0))}if(Qf!==null&&(Qf.has(n)||u!==null&&Qf.has(u))&&(z=!0),z&&(n._debugNeedsRemount=!0),z||P){var q=Qi(n,wt);q!==null&&Dr(q,n,wt,An)}d!==null&&!z&&UE(d,r,l),v!==null&&UE(v,r,l)}}var jU=function(n,r){{var l=new Set,u=new Set(r.map(function(d){return d.current}));return BE(n.current,u,l),l}};function BE(n,r,l){{var u=n.child,d=n.sibling,v=n.tag,b=n.type,x=null;switch(v){case g:case N:case y:x=b;break;case E:x=b.render;break}var T=!1;x!==null&&r.has(x)&&(T=!0),T?UU(n,l):u!==null&&BE(u,r,l),d!==null&&BE(d,r,l)}}function UU(n,r){{var l=BU(n,r);if(l)return;for(var u=n;;){switch(u.tag){case _:r.add(u.stateNode);return;case M:r.add(u.stateNode.containerInfo);return;case C:r.add(u.stateNode.containerInfo);return}if(u.return===null)throw new Error("Expected to reach root first.");u=u.return}}}function BU(n,r){for(var l=n,u=!1;;){if(l.tag===_)u=!0,r.add(l.stateNode);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)return u;for(;l.sibling===null;){if(l.return===null||l.return===n)return u;l=l.return}l.sibling.return=l.return,l=l.sibling}return!1}var HE;{HE=!1;try{var ZR=Object.preventExtensions({})}catch{HE=!0}}function HU(n,r,l,u){this.tag=n,this.key=l,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=r,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=u,this.flags=ht,this.subtreeFlags=ht,this.deletions=null,this.lanes=Me,this.childLanes=Me,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!HE&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var xa=function(n,r,l,u){return new HU(n,r,l,u)};function VE(n){var r=n.prototype;return!!(r&&r.isReactComponent)}function VU(n){return typeof n=="function"&&!VE(n)&&n.defaultProps===void 0}function $U(n){if(typeof n=="function")return VE(n)?y:g;if(n!=null){var r=n.$$typeof;if(r===lt)return E;if(r===Mt)return U}return w}function ac(n,r){var l=n.alternate;l===null?(l=xa(n.tag,r,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l._debugSource=n._debugSource,l._debugOwner=n._debugOwner,l._debugHookTypes=n._debugHookTypes,l.alternate=n,n.alternate=l):(l.pendingProps=r,l.type=n.type,l.flags=ht,l.subtreeFlags=ht,l.deletions=null,l.actualDuration=0,l.actualStartTime=-1),l.flags=n.flags&Dl,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue;var u=n.dependencies;switch(l.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l.selfBaseDuration=n.selfBaseDuration,l.treeBaseDuration=n.treeBaseDuration,l._debugNeedsRemount=n._debugNeedsRemount,l.tag){case w:case g:case N:l.type=Kf(n.type);break;case y:l.type=FE(n.type);break;case E:l.type=jE(n.type);break}return l}function WU(n,r){n.flags&=Dl|yr;var l=n.alternate;if(l===null)n.childLanes=Me,n.lanes=r,n.child=null,n.subtreeFlags=ht,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null,n.selfBaseDuration=0,n.treeBaseDuration=0;else{n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.subtreeFlags=ht,n.deletions=null,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type;var u=l.dependencies;n.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},n.selfBaseDuration=l.selfBaseDuration,n.treeBaseDuration=l.treeBaseDuration}return n}function GU(n,r,l){var u;return n===pg?(u=Bt,r===!0&&(u|=br,u|=nl)):u=vt,So&&(u|=gn),xa(C,null,null,u)}function $E(n,r,l,u,d,v){var b=w,x=n;if(typeof n=="function")VE(n)?(b=y,x=FE(x)):x=Kf(x);else if(typeof n=="string")b=_;else{e:switch(n){case Go:return js(l.children,d,v,r);case Ia:b=$,d|=br,(d&Bt)!==vt&&(d|=nl);break;case B:return YU(l,d,v,r);case Ot:return qU(l,d,v,r);case Yt:return ZU(l,d,v,r);case jn:return QR(l,d,v,r);case mn:case wr:case uo:case Vc:case Fn:default:{if(typeof n=="object"&&n!==null)switch(n.$$typeof){case _e:b=D;break e;case Ue:b=R;break e;case lt:b=E,x=jE(x);break e;case Mt:b=U;break e;case ct:b=W,x=null;break e}var T="";{(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(T+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var P=u?be(u):null;P&&(T+=`
119
+
120
+ Check the render method of \``+P+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(n==null?n:typeof n)+"."+T))}}}var z=xa(b,l,r,d);return z.elementType=n,z.type=x,z.lanes=v,z._debugOwner=u,z}function WE(n,r,l){var u=null;u=n._owner;var d=n.type,v=n.key,b=n.props,x=$E(d,v,b,u,r,l);return x._debugSource=n._source,x._debugOwner=n._owner,x}function js(n,r,l,u){var d=xa(I,n,u,r);return d.lanes=l,d}function YU(n,r,l,u){typeof n.id!="string"&&p('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof n.id);var d=xa(k,n,u,r|gn);return d.elementType=B,d.lanes=l,d.stateNode={effectDuration:0,passiveEffectDuration:0},d}function qU(n,r,l,u){var d=xa(F,n,u,r);return d.elementType=Ot,d.lanes=l,d}function ZU(n,r,l,u){var d=xa(re,n,u,r);return d.elementType=Yt,d.lanes=l,d}function QR(n,r,l,u){var d=xa(Y,n,u,r);d.elementType=jn,d.lanes=l;var v={isHidden:!1};return d.stateNode=v,d}function GE(n,r,l){var u=xa(A,n,null,r);return u.lanes=l,u}function QU(){var n=xa(_,null,null,vt);return n.elementType="DELETED",n}function KU(n){var r=xa(G,null,null,vt);return r.stateNode=n,r}function YE(n,r,l){var u=n.children!==null?n.children:[],d=xa(M,u,n.key,r);return d.lanes=l,d.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},d}function KR(n,r){return n===null&&(n=xa(w,null,null,vt)),n.tag=r.tag,n.key=r.key,n.elementType=r.elementType,n.type=r.type,n.stateNode=r.stateNode,n.return=r.return,n.child=r.child,n.sibling=r.sibling,n.index=r.index,n.ref=r.ref,n.pendingProps=r.pendingProps,n.memoizedProps=r.memoizedProps,n.updateQueue=r.updateQueue,n.memoizedState=r.memoizedState,n.dependencies=r.dependencies,n.mode=r.mode,n.flags=r.flags,n.subtreeFlags=r.subtreeFlags,n.deletions=r.deletions,n.lanes=r.lanes,n.childLanes=r.childLanes,n.alternate=r.alternate,n.actualDuration=r.actualDuration,n.actualStartTime=r.actualStartTime,n.selfBaseDuration=r.selfBaseDuration,n.treeBaseDuration=r.treeBaseDuration,n._debugSource=r._debugSource,n._debugOwner=r._debugOwner,n._debugNeedsRemount=r._debugNeedsRemount,n._debugHookTypes=r._debugHookTypes,n}function JU(n,r,l,u,d){this.tag=r,this.containerInfo=n,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=_S,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=jr,this.eventTimes=Q1(Me),this.expirationTimes=Q1(An),this.pendingLanes=Me,this.suspendedLanes=Me,this.pingedLanes=Me,this.expiredLanes=Me,this.mutableReadLanes=Me,this.finishedLanes=Me,this.entangledLanes=Me,this.entanglements=Q1(Me),this.identifierPrefix=u,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var v=this.pendingUpdatersLaneMap=[],b=0;b<_1;b++)v.push(new Set)}switch(r){case pg:this._debugRootType=l?"hydrateRoot()":"createRoot()";break;case Ts:this._debugRootType=l?"hydrate()":"render()";break}}function JR(n,r,l,u,d,v,b,x,T,P){var z=new JU(n,r,l,x,T),Z=GU(r,v);z.current=Z,Z.stateNode=z;{var q={element:u,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null};Z.memoizedState=q}return ex(Z),z}var qE="18.2.0";function XU(n,r,l){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Dt(u),{$$typeof:ca,key:u==null?null:""+u,children:n,containerInfo:r,implementation:l}}var ZE,QE;ZE=!1,QE={};function XR(n){if(!n)return Sa;var r=df(n),l=OI(r);if(r.tag===y){var u=r.type;if(al(u))return Ck(r,u,l)}return l}function eB(n,r){{var l=df(n);if(l===void 0){if(typeof n.render=="function")throw new Error("Unable to find node on an unmounted component.");var u=Object.keys(n).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+u)}var d=qT(l);if(d===null)return null;if(d.mode&br){var v=be(l)||"Component";if(!QE[v]){QE[v]=!0;var b=Qe;try{yt(d),l.mode&br?p("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",r,r,v):p("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",r,r,v)}finally{b?yt(b):Ie()}}}return d.stateNode}}function e3(n,r,l,u,d,v,b,x){var T=!1,P=null;return JR(n,r,T,P,l,u,d,v,b)}function t3(n,r,l,u,d,v,b,x,T,P){var z=!0,Z=JR(l,u,z,n,d,v,b,x,T);Z.context=XR(null);var q=Z.current,fe=Pi(),ce=Is(q),he=Bl(fe,ce);return he.callback=r??null,Ms(q,he,ce),lU(Z,ce,fe),Z}function Ih(n,r,l,u){C7(r,n);var d=r.current,v=Pi(),b=Is(d);$7(b);var x=XR(l);r.context===null?r.context=x:r.pendingContext=x,dt&&Qe!==null&&!ZE&&(ZE=!0,p(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
121
+
122
+ Check the render method of %s.`,be(Qe)||"Unknown"));var T=Bl(v,b);T.payload={element:n},u=u===void 0?null:u,u!==null&&(typeof u!="function"&&p("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",u),T.callback=u);var P=Ms(d,T,b);return P!==null&&(Dr(P,d,b,v),Tg(P,d,b)),b}function gy(n){var r=n.current;if(!r.child)return null;switch(r.child.tag){case _:return r.child.stateNode;default:return r.child.stateNode}}function tB(n){switch(n.tag){case C:{var r=n.stateNode;if(Im(r)){var l=X7(r);fU(r,l)}break}case F:{Wl(function(){var d=Qi(n,wt);if(d!==null){var v=Pi();Dr(d,n,wt,v)}});var u=wt;KE(n,u);break}}}function n3(n,r){var l=n.memoizedState;l!==null&&l.dehydrated!==null&&(l.retryLane=aA(l.retryLane,r))}function KE(n,r){n3(n,r);var l=n.alternate;l&&n3(l,r)}function nB(n){if(n.tag===F){var r=Cp,l=Qi(n,r);if(l!==null){var u=Pi();Dr(l,n,r,u)}KE(n,r)}}function rB(n){if(n.tag===F){var r=Is(n),l=Qi(n,r);if(l!==null){var u=Pi();Dr(l,n,r,u)}KE(n,r)}}function r3(n){var r=v7(n);return r===null?null:r.stateNode}var i3=function(n){return null};function iB(n){return i3(n)}var a3=function(n){return!1};function aB(n){return a3(n)}var o3=null,l3=null,s3=null,u3=null,c3=null,f3=null,d3=null,p3=null,h3=null;{var v3=function(n,r,l){var u=r[l],d=Yr(n)?n.slice():At({},n);return l+1===r.length?(Yr(d)?d.splice(u,1):delete d[u],d):(d[u]=v3(n[u],r,l+1),d)},m3=function(n,r){return v3(n,r,0)},g3=function(n,r,l,u){var d=r[u],v=Yr(n)?n.slice():At({},n);if(u+1===r.length){var b=l[u];v[b]=v[d],Yr(v)?v.splice(d,1):delete v[d]}else v[d]=g3(n[d],r,l,u+1);return v},y3=function(n,r,l){if(r.length!==l.length){f("copyWithRename() expects paths of the same length");return}else for(var u=0;u<l.length-1;u++)if(r[u]!==l[u]){f("copyWithRename() expects paths to be the same except for the deepest key");return}return g3(n,r,l,0)},b3=function(n,r,l,u){if(l>=r.length)return u;var d=r[l],v=Yr(n)?n.slice():At({},n);return v[d]=b3(n[d],r,l+1,u),v},S3=function(n,r,l){return b3(n,r,0,l)},JE=function(n,r){for(var l=n.memoizedState;l!==null&&r>0;)l=l.next,r--;return l};o3=function(n,r,l,u){var d=JE(n,r);if(d!==null){var v=S3(d.memoizedState,l,u);d.memoizedState=v,d.baseState=v,n.memoizedProps=At({},n.memoizedProps);var b=Qi(n,wt);b!==null&&Dr(b,n,wt,An)}},l3=function(n,r,l){var u=JE(n,r);if(u!==null){var d=m3(u.memoizedState,l);u.memoizedState=d,u.baseState=d,n.memoizedProps=At({},n.memoizedProps);var v=Qi(n,wt);v!==null&&Dr(v,n,wt,An)}},s3=function(n,r,l,u){var d=JE(n,r);if(d!==null){var v=y3(d.memoizedState,l,u);d.memoizedState=v,d.baseState=v,n.memoizedProps=At({},n.memoizedProps);var b=Qi(n,wt);b!==null&&Dr(b,n,wt,An)}},u3=function(n,r,l){n.pendingProps=S3(n.memoizedProps,r,l),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var u=Qi(n,wt);u!==null&&Dr(u,n,wt,An)},c3=function(n,r){n.pendingProps=m3(n.memoizedProps,r),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var l=Qi(n,wt);l!==null&&Dr(l,n,wt,An)},f3=function(n,r,l){n.pendingProps=y3(n.memoizedProps,r,l),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var u=Qi(n,wt);u!==null&&Dr(u,n,wt,An)},d3=function(n){var r=Qi(n,wt);r!==null&&Dr(r,n,wt,An)},p3=function(n){i3=n},h3=function(n){a3=n}}function oB(n){var r=qT(n);return r===null?null:r.stateNode}function lB(n){return null}function sB(){return Qe}function uB(n){var r=n.findFiberByHostInstance,l=a.ReactCurrentDispatcher;return w7({bundleType:n.bundleType,version:n.version,rendererPackageName:n.rendererPackageName,rendererConfig:n.rendererConfig,overrideHookState:o3,overrideHookStateDeletePath:l3,overrideHookStateRenamePath:s3,overrideProps:u3,overridePropsDeletePath:c3,overridePropsRenamePath:f3,setErrorHandler:p3,setSuspenseHandler:h3,scheduleUpdate:d3,currentDispatcherRef:l,findHostInstanceByFiber:oB,findFiberByHostInstance:r||lB,findHostInstancesForRefresh:jU,scheduleRefresh:IU,scheduleRoot:FU,setRefreshHandler:zU,getCurrentFiber:sB,reconcilerVersion:qE})}var x3=typeof reportError=="function"?reportError:function(n){console.error(n)};function XE(n){this._internalRoot=n}yy.prototype.render=XE.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?p("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):by(arguments[1])?p("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&p("You passed a second argument to root.render(...) but it only accepts one argument.");var l=r.containerInfo;if(l.nodeType!==tr){var u=r3(r.current);u&&u.parentNode!==l&&p("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}Ih(n,r,null,null)},yy.prototype.unmount=XE.prototype.unmount=function(){typeof arguments[0]=="function"&&p("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;PR()&&p("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Wl(function(){Ih(null,n,null,null)}),bk(r)}};function cB(n,r){if(!by(n))throw new Error("createRoot(...): Target container is not a DOM element.");E3(n);var l=!1,u=!1,d="",v=x3,b=null;r!=null&&(r.hydrate?f("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof r=="object"&&r!==null&&r.$$typeof===za&&p(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
123
+
124
+ let root = createRoot(domContainer);
125
+ root.render(<App />);`),r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(d=r.identifierPrefix),r.onRecoverableError!==void 0&&(v=r.onRecoverableError),r.transitionCallbacks!==void 0&&(b=r.transitionCallbacks));var x=e3(n,pg,null,l,u,d,v);og(x.current,n);var T=n.nodeType===tr?n.parentNode:n;return Wp(T),new XE(x)}function yy(n){this._internalRoot=n}function fB(n){n&&EA(n)}yy.prototype.unstable_scheduleHydration=fB;function dB(n,r,l){if(!by(n))throw new Error("hydrateRoot(...): Target container is not a DOM element.");E3(n),r===void 0&&p("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var u=l??null,d=l!=null&&l.hydratedSources||null,v=!1,b=!1,x="",T=x3;l!=null&&(l.unstable_strictMode===!0&&(v=!0),l.identifierPrefix!==void 0&&(x=l.identifierPrefix),l.onRecoverableError!==void 0&&(T=l.onRecoverableError));var P=t3(r,null,n,pg,u,v,b,x,T);if(og(P.current,n),Wp(n),d)for(var z=0;z<d.length;z++){var Z=d[z];vF(P,Z)}return new yy(P)}function by(n){return!!(n&&(n.nodeType===Cr||n.nodeType===Ua||n.nodeType===tf||!ve))}function Fh(n){return!!(n&&(n.nodeType===Cr||n.nodeType===Ua||n.nodeType===tf||n.nodeType===tr&&n.nodeValue===" react-mount-point-unstable "))}function E3(n){n.nodeType===Cr&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&p("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),nh(n)&&(n._reactRootContainer?p("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):p("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var pB=a.ReactCurrentOwner,w3;w3=function(n){if(n._reactRootContainer&&n.nodeType!==tr){var r=r3(n._reactRootContainer.current);r&&r.parentNode!==n&&p("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var l=!!n._reactRootContainer,u=ew(n),d=!!(u&&Cs(u));d&&!l&&p("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),n.nodeType===Cr&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&p("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function ew(n){return n?n.nodeType===Ua?n.documentElement:n.firstChild:null}function C3(){}function hB(n,r,l,u,d){if(d){if(typeof u=="function"){var v=u;u=function(){var q=gy(b);v.call(q)}}var b=t3(r,u,n,Ts,null,!1,!1,"",C3);n._reactRootContainer=b,og(b.current,n);var x=n.nodeType===tr?n.parentNode:n;return Wp(x),Wl(),b}else{for(var T;T=n.lastChild;)n.removeChild(T);if(typeof u=="function"){var P=u;u=function(){var q=gy(z);P.call(q)}}var z=e3(n,Ts,null,!1,!1,"",C3);n._reactRootContainer=z,og(z.current,n);var Z=n.nodeType===tr?n.parentNode:n;return Wp(Z),Wl(function(){Ih(r,z,l,u)}),z}}function vB(n,r){n!==null&&typeof n!="function"&&p("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r,n)}function Sy(n,r,l,u,d){w3(l),vB(d===void 0?null:d,"render");var v=l._reactRootContainer,b;if(!v)b=hB(l,r,n,d,u);else{if(b=v,typeof d=="function"){var x=d;d=function(){var T=gy(b);x.call(T)}}Ih(r,b,n,d)}return gy(b)}function mB(n){{var r=pB.current;if(r!==null&&r.stateNode!==null){var l=r.stateNode._warnedAboutRefsInRender;l||p("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",me(r.type)||"A component"),r.stateNode._warnedAboutRefsInRender=!0}}return n==null?null:n.nodeType===Cr?n:eB(n,"findDOMNode")}function gB(n,r,l){if(p("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Fh(r))throw new Error("Target container is not a DOM element.");{var u=nh(r)&&r._reactRootContainer===void 0;u&&p("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return Sy(null,n,r,!0,l)}function yB(n,r,l){if(p("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Fh(r))throw new Error("Target container is not a DOM element.");{var u=nh(r)&&r._reactRootContainer===void 0;u&&p("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Sy(null,n,r,!1,l)}function bB(n,r,l,u){if(p("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Fh(l))throw new Error("Target container is not a DOM element.");if(n==null||!s7(n))throw new Error("parentComponent must be a valid React Component");return Sy(n,r,l,!1,u)}function SB(n){if(!Fh(n))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var r=nh(n)&&n._reactRootContainer===void 0;r&&p("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(n._reactRootContainer){{var l=ew(n),u=l&&!Cs(l);u&&p("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Wl(function(){Sy(null,null,n,!1,function(){n._reactRootContainer=null,bk(n)})}),!0}else{{var d=ew(n),v=!!(d&&Cs(d)),b=n.nodeType===Cr&&Fh(n.parentNode)&&!!n.parentNode._reactRootContainer;v&&p("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",b?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}dA(tB),hA(nB),vA(rB),mA(xo),gA(uA),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&p("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),KP(yz),e7(OE,dU,Wl);function xB(n,r){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!by(r))throw new Error("Target container is not a DOM element.");return XU(n,r,null,l)}function EB(n,r,l,u){return bB(n,r,l,u)}var tw={usingClientEntryPoint:!1,Events:[Cs,kf,lg,zT,IT,OE]};function wB(n,r){return tw.usingClientEntryPoint||p('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),cB(n,r)}function CB(n,r,l){return tw.usingClientEntryPoint||p('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),dB(n,r,l)}function LB(n){return PR()&&p("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Wl(n)}var TB=uB({findFiberByHostInstance:$u,bundleType:1,version:qE,rendererPackageName:"react-dom"});if(!TB&&Lt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var L3=window.location.protocol;/^(https?|file):$/.test(L3)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(L3==="file:"?`
126
+ You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ra.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tw,Ra.createPortal=xB,Ra.createRoot=wB,Ra.findDOMNode=mB,Ra.flushSync=LB,Ra.hydrate=gB,Ra.hydrateRoot=CB,Ra.render=yB,Ra.unmountComponentAtNode=SB,Ra.unstable_batchedUpdates=OE,Ra.unstable_renderSubtreeIntoContainer=EB,Ra.version=qE,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()});var su=ln((WX,yL)=>{"use strict";function Z4(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Z4)}catch(e){console.error(e)}}}process.env.NODE_ENV==="production"?(Z4(),yL.exports=Y4()):yL.exports=q4()});var F9=ln((a2,o2)=>{(function(e,t){typeof a2=="object"&&typeof o2<"u"?o2.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self).MapboxDraw=t()})(a2,function(){"use strict";var e=function(m,S){var O={drag:[],click:[],mousemove:[],mousedown:[],mouseup:[],mouseout:[],keydown:[],keyup:[],touchstart:[],touchmove:[],touchend:[],tap:[]},H={on:function(J,te,Re){if(O[J]===void 0)throw new Error("Invalid event type: "+J);O[J].push({selector:te,fn:Re})},render:function(J){S.store.featureChanged(J)}},ne=function(J,te){for(var Re=O[J],me=Re.length;me--;){var Be=Re[me];if(Be.selector(te)){Be.fn.call(H,te)||S.store.render(),S.ui.updateMapClasses();break}}};return m.start.call(H),{render:m.render,stop:function(){m.stop&&m.stop()},trash:function(){m.trash&&(m.trash(),S.store.render())},combineFeatures:function(){m.combineFeatures&&m.combineFeatures()},uncombineFeatures:function(){m.uncombineFeatures&&m.uncombineFeatures()},drag:function(J){ne("drag",J)},click:function(J){ne("click",J)},mousemove:function(J){ne("mousemove",J)},mousedown:function(J){ne("mousedown",J)},mouseup:function(J){ne("mouseup",J)},mouseout:function(J){ne("mouseout",J)},keydown:function(J){ne("keydown",J)},keyup:function(J){ne("keyup",J)},touchstart:function(J){ne("touchstart",J)},touchmove:function(J){ne("touchmove",J)},touchend:function(J){ne("touchend",J)},tap:function(J){ne("tap",J)}}},t=6378137;function a(m){var S=0;if(m&&m.length>0){S+=Math.abs(o(m[0]));for(var O=1;O<m.length;O++)S-=Math.abs(o(m[O]))}return S}function o(m){var S,O,H,ne,J,te,Re=0,me=m.length;if(me>2){for(te=0;te<me;te++)te===me-2?(H=me-2,ne=me-1,J=0):te===me-1?(H=me-1,ne=0,J=1):(H=te,ne=te+1,J=te+2),S=m[H],O=m[ne],Re+=(s(m[J][0])-s(S[0]))*Math.sin(s(O[1]));Re=Re*t*t/2}return Re}function s(m){return m*Math.PI/180}var f={geometry:function m(S){var O,H=0;switch(S.type){case"Polygon":return a(S.coordinates);case"MultiPolygon":for(O=0;O<S.coordinates.length;O++)H+=a(S.coordinates[O]);return H;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(O=0;O<S.geometries.length;O++)H+=m(S.geometries[O]);return H}},ring:o},p="mapboxgl-ctrl",h="mapbox-gl-draw_ctrl-draw-btn",g="mapbox-gl-draw_line",y="mapbox-gl-draw_polygon",w="mapbox-gl-draw_point",C="mapbox-gl-draw_trash",M="mapbox-gl-draw_combine",_="mapbox-gl-draw_uncombine",A="mapboxgl-ctrl-group",I="active",$="mapbox-gl-draw_boxselect",R="mapbox-gl-draw-hot",D="mapbox-gl-draw-cold",E="add",k="move",F="drag",U="pointer",N="none",W={POLYGON:"polygon",LINE:"line_string",POINT:"point"},K="Feature",G="Polygon",re="LineString",Le="Point",Y="FeatureCollection",ue="Multi",xe="MultiPoint",Pe="MultiLineString",ke="MultiPolygon",V={DRAW_LINE_STRING:"draw_line_string",DRAW_POLYGON:"draw_polygon",DRAW_POINT:"draw_point",SIMPLE_SELECT:"simple_select",DIRECT_SELECT:"direct_select",STATIC:"static"},Q="draw.create",le="draw.delete",ge="draw.update",ve="draw.selectionchange",de="draw.modechange",ie="draw.actionable",Oe="draw.render",je="draw.combine",we="draw.uncombine",ut="move",Je="change_coordinates",Ve="feature",_t="midpoint",Ae="vertex",Lt="true",tt="false",fn=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate"],dn={Point:0,LineString:1,Polygon:2};function er(m,S){var O=dn[m.geometry.type]-dn[S.geometry.type];return O===0&&m.geometry.type===G?m.area-S.area:O}function pn(m){if(this._items={},this._nums={},this._length=m?m.length:0,m)for(var S=0,O=m.length;S<O;S++)this.add(m[S]),m[S]!==void 0&&(typeof m[S]=="string"?this._items[m[S]]=S:this._nums[m[S]]=S)}pn.prototype.add=function(m){return this.has(m)||(this._length++,typeof m=="string"?this._items[m]=this._length:this._nums[m]=this._length),this},pn.prototype.delete=function(m){return this.has(m)===!1||(this._length--,delete this._items[m],delete this._nums[m]),this},pn.prototype.has=function(m){return(typeof m=="string"||typeof m=="number")&&(this._items[m]!==void 0||this._nums[m]!==void 0)},pn.prototype.values=function(){var m=this,S=[];return Object.keys(this._items).forEach(function(O){S.push({k:O,v:m._items[O]})}),Object.keys(this._nums).forEach(function(O){S.push({k:JSON.parse(O),v:m._nums[O]})}),S.sort(function(O,H){return O.v-H.v}).map(function(O){return O.k})},pn.prototype.clear=function(){return this._length=0,this._items={},this._nums={},this};var Dt=[Ve,_t,Ae],qt={click:function(m,S,O){return Wt(m,S,O,O.options.clickBuffer)},touch:function(m,S,O){return Wt(m,S,O,O.options.touchBuffer)}};function Wt(m,S,O,H){if(O.map===null)return[];var ne=m?function(Be,se){return se===void 0&&(se=0),[[Be.point.x-se,Be.point.y-se],[Be.point.x+se,Be.point.y+se]]}(m,H):S,J={};O.options.styles&&(J.layers=O.options.styles.map(function(Be){return Be.id}));var te=O.map.queryRenderedFeatures(ne,J).filter(function(Be){return Dt.indexOf(Be.properties.meta)!==-1}),Re=new pn,me=[];return te.forEach(function(Be){var se=Be.properties.id;Re.has(se)||(Re.add(se),me.push(Be))}),function(Be){return Be.map(function(se){return se.geometry.type===G&&(se.area=f.geometry({type:K,property:{},geometry:se.geometry})),se}).sort(er).map(function(se){return delete se.area,se})}(me)}function un(m,S){var O=qt.click(m,null,S),H={mouse:N};return O[0]&&(H.mouse=O[0].properties.active===Lt?k:U,H.feature=O[0].properties.meta),S.events.currentModeName().indexOf("draw")!==-1&&(H.mouse=E),S.ui.queueMapClasses(H),S.ui.updateMapClasses(),O[0]}function jt(m,S){var O=m.x-S.x,H=m.y-S.y;return Math.sqrt(O*O+H*H)}function In(m,S,O){O===void 0&&(O={});var H=O.fineTolerance!=null?O.fineTolerance:4,ne=O.grossTolerance!=null?O.grossTolerance:12,J=O.interval!=null?O.interval:500;m.point=m.point||S.point,m.time=m.time||S.time;var te=jt(m.point,S.point);return te<H||te<ne&&S.time-m.time<J}function Sn(m,S,O){O===void 0&&(O={});var H=O.tolerance!=null?O.tolerance:25,ne=O.interval!=null?O.interval:250;return m.point=m.point||S.point,m.time=m.time||S.time,jt(m.point,S.point)<H&&S.time-m.time<ne}function hn(m,S){return m(S={exports:{}},S.exports),S.exports}var vn=hn(function(m){var S=m.exports=function(O,H){if(H||(H=16),O===void 0&&(O=128),O<=0)return"0";for(var ne=Math.log(Math.pow(2,O))/Math.log(H),J=2;ne===1/0;J*=2)ne=Math.log(Math.pow(2,O/J))/Math.log(H)*J;var te=ne-Math.floor(ne),Re="";for(J=0;J<Math.floor(ne);J++)Re=Math.floor(Math.random()*H).toString(H)+Re;if(te){var me=Math.pow(H,te);Re=Math.floor(Math.random()*me).toString(H)+Re}var Be=parseInt(Re,H);return Be!==1/0&&Be>=Math.pow(2,O)?S(O,H):Re};S.rack=function(O,H,ne){var J=function(Re){var me=0;do{if(me++>10){if(!ne)throw new Error("too many ID collisions, use more bits");O+=ne}var Be=S(O,H)}while(Object.hasOwnProperty.call(te,Be));return te[Be]=Re,Be},te=J.hats={};return J.get=function(Re){return J.hats[Re]},J.set=function(Re,me){return J.hats[Re]=me,J},J.bits=O||128,J.base=H||16,J}}),Pt=function(m,S){this.ctx=m,this.properties=S.properties||{},this.coordinates=S.geometry.coordinates,this.id=S.id||vn(),this.type=S.geometry.type};Pt.prototype.changed=function(){this.ctx.store.featureChanged(this.id)},Pt.prototype.incomingCoords=function(m){this.setCoordinates(m)},Pt.prototype.setCoordinates=function(m){this.coordinates=m,this.changed()},Pt.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.coordinates))},Pt.prototype.setProperty=function(m,S){this.properties[m]=S},Pt.prototype.toGeoJSON=function(){return JSON.parse(JSON.stringify({id:this.id,type:K,properties:this.properties,geometry:{coordinates:this.getCoordinates(),type:this.type}}))},Pt.prototype.internal=function(m){var S={id:this.id,meta:Ve,"meta:type":this.type,active:tt,mode:m};if(this.ctx.options.userProperties)for(var O in this.properties)S["user_"+O]=this.properties[O];return{type:K,properties:S,geometry:{coordinates:this.getCoordinates(),type:this.type}}};var _n=function(m,S){Pt.call(this,m,S)};(_n.prototype=Object.create(Pt.prototype)).isValid=function(){return typeof this.coordinates[0]=="number"&&typeof this.coordinates[1]=="number"},_n.prototype.updateCoordinate=function(m,S,O){this.coordinates=arguments.length===3?[S,O]:[m,S],this.changed()},_n.prototype.getCoordinate=function(){return this.getCoordinates()};var kn=function(m,S){Pt.call(this,m,S)};(kn.prototype=Object.create(Pt.prototype)).isValid=function(){return this.coordinates.length>1},kn.prototype.addCoordinate=function(m,S,O){this.changed();var H=parseInt(m,10);this.coordinates.splice(H,0,[S,O])},kn.prototype.getCoordinate=function(m){var S=parseInt(m,10);return JSON.parse(JSON.stringify(this.coordinates[S]))},kn.prototype.removeCoordinate=function(m){this.changed(),this.coordinates.splice(parseInt(m,10),1)},kn.prototype.updateCoordinate=function(m,S,O){var H=parseInt(m,10);this.coordinates[H]=[S,O],this.changed()};var Ne=function(m,S){Pt.call(this,m,S),this.coordinates=this.coordinates.map(function(O){return O.slice(0,-1)})};(Ne.prototype=Object.create(Pt.prototype)).isValid=function(){return this.coordinates.length!==0&&this.coordinates.every(function(m){return m.length>2})},Ne.prototype.incomingCoords=function(m){this.coordinates=m.map(function(S){return S.slice(0,-1)}),this.changed()},Ne.prototype.setCoordinates=function(m){this.coordinates=m,this.changed()},Ne.prototype.addCoordinate=function(m,S,O){this.changed();var H=m.split(".").map(function(ne){return parseInt(ne,10)});this.coordinates[H[0]].splice(H[1],0,[S,O])},Ne.prototype.removeCoordinate=function(m){this.changed();var S=m.split(".").map(function(H){return parseInt(H,10)}),O=this.coordinates[S[0]];O&&(O.splice(S[1],1),O.length<3&&this.coordinates.splice(S[0],1))},Ne.prototype.getCoordinate=function(m){var S=m.split(".").map(function(H){return parseInt(H,10)}),O=this.coordinates[S[0]];return JSON.parse(JSON.stringify(O[S[1]]))},Ne.prototype.getCoordinates=function(){return this.coordinates.map(function(m){return m.concat([m[0]])})},Ne.prototype.updateCoordinate=function(m,S,O){this.changed();var H=m.split("."),ne=parseInt(H[0],10),J=parseInt(H[1],10);this.coordinates[ne]===void 0&&(this.coordinates[ne]=[]),this.coordinates[ne][J]=[S,O]};var nt={MultiPoint:_n,MultiLineString:kn,MultiPolygon:Ne},Et=function(m,S,O,H,ne){var J=O.split("."),te=parseInt(J[0],10),Re=J[1]?J.slice(1).join("."):null;return m[te][S](Re,H,ne)},pt=function(m,S){if(Pt.call(this,m,S),delete this.coordinates,this.model=nt[S.geometry.type],this.model===void 0)throw new TypeError(S.geometry.type+" is not a valid type");this.features=this._coordinatesToFeatures(S.geometry.coordinates)};function et(m){this.map=m.map,this.drawConfig=JSON.parse(JSON.stringify(m.options||{})),this._ctx=m}(pt.prototype=Object.create(Pt.prototype))._coordinatesToFeatures=function(m){var S=this,O=this.model.bind(this);return m.map(function(H){return new O(S.ctx,{id:vn(),type:K,properties:{},geometry:{coordinates:H,type:S.type.replace("Multi","")}})})},pt.prototype.isValid=function(){return this.features.every(function(m){return m.isValid()})},pt.prototype.setCoordinates=function(m){this.features=this._coordinatesToFeatures(m),this.changed()},pt.prototype.getCoordinate=function(m){return Et(this.features,"getCoordinate",m)},pt.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.features.map(function(m){return m.type===G?m.getCoordinates():m.coordinates})))},pt.prototype.updateCoordinate=function(m,S,O){Et(this.features,"updateCoordinate",m,S,O),this.changed()},pt.prototype.addCoordinate=function(m,S,O){Et(this.features,"addCoordinate",m,S,O),this.changed()},pt.prototype.removeCoordinate=function(m){Et(this.features,"removeCoordinate",m),this.changed()},pt.prototype.getFeatures=function(){return this.features},et.prototype.setSelected=function(m){return this._ctx.store.setSelected(m)},et.prototype.setSelectedCoordinates=function(m){var S=this;this._ctx.store.setSelectedCoordinates(m),m.reduce(function(O,H){return O[H.feature_id]===void 0&&(O[H.feature_id]=!0,S._ctx.store.get(H.feature_id).changed()),O},{})},et.prototype.getSelected=function(){return this._ctx.store.getSelected()},et.prototype.getSelectedIds=function(){return this._ctx.store.getSelectedIds()},et.prototype.isSelected=function(m){return this._ctx.store.isSelected(m)},et.prototype.getFeature=function(m){return this._ctx.store.get(m)},et.prototype.select=function(m){return this._ctx.store.select(m)},et.prototype.deselect=function(m){return this._ctx.store.deselect(m)},et.prototype.deleteFeature=function(m,S){return S===void 0&&(S={}),this._ctx.store.delete(m,S)},et.prototype.addFeature=function(m){return this._ctx.store.add(m)},et.prototype.clearSelectedFeatures=function(){return this._ctx.store.clearSelected()},et.prototype.clearSelectedCoordinates=function(){return this._ctx.store.clearSelectedCoordinates()},et.prototype.setActionableState=function(m){m===void 0&&(m={});var S={trash:m.trash||!1,combineFeatures:m.combineFeatures||!1,uncombineFeatures:m.uncombineFeatures||!1};return this._ctx.events.actionable(S)},et.prototype.changeMode=function(m,S,O){return S===void 0&&(S={}),O===void 0&&(O={}),this._ctx.events.changeMode(m,S,O)},et.prototype.updateUIClasses=function(m){return this._ctx.ui.queueMapClasses(m)},et.prototype.activateUIButton=function(m){return this._ctx.ui.setActiveButton(m)},et.prototype.featuresAt=function(m,S,O){if(O===void 0&&(O="click"),O!=="click"&&O!=="touch")throw new Error("invalid buffer type");return qt[O](m,S,this._ctx)},et.prototype.newFeature=function(m){var S=m.geometry.type;return S===Le?new _n(this._ctx,m):S===re?new kn(this._ctx,m):S===G?new Ne(this._ctx,m):new pt(this._ctx,m)},et.prototype.isInstanceOf=function(m,S){if(m===Le)return S instanceof _n;if(m===re)return S instanceof kn;if(m===G)return S instanceof Ne;if(m==="MultiFeature")return S instanceof pt;throw new Error("Unknown feature class: "+m)},et.prototype.doRender=function(m){return this._ctx.store.featureChanged(m)},et.prototype.onSetup=function(){},et.prototype.onDrag=function(){},et.prototype.onClick=function(){},et.prototype.onMouseMove=function(){},et.prototype.onMouseDown=function(){},et.prototype.onMouseUp=function(){},et.prototype.onMouseOut=function(){},et.prototype.onKeyUp=function(){},et.prototype.onKeyDown=function(){},et.prototype.onTouchStart=function(){},et.prototype.onTouchMove=function(){},et.prototype.onTouchEnd=function(){},et.prototype.onTap=function(){},et.prototype.onStop=function(){},et.prototype.onTrash=function(){},et.prototype.onCombineFeature=function(){},et.prototype.onUncombineFeature=function(){},et.prototype.toDisplayFeatures=function(){throw new Error("You must overwrite toDisplayFeatures")};var Gn={drag:"onDrag",click:"onClick",mousemove:"onMouseMove",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseout:"onMouseOut",keyup:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",tap:"onTap"},Yn=Object.keys(Gn);function Er(m){var S=Object.keys(m);return function(O,H){H===void 0&&(H={});var ne={},J=S.reduce(function(te,Re){return te[Re]=m[Re],te},new et(O));return{start:function(){var te=this;ne=J.onSetup(H),Yn.forEach(function(Re){var me,Be=Gn[Re],se=function(){return!1};m[Be]&&(se=function(){return!0}),te.on(Re,se,(me=Be,function(be){return J[me](ne,be)}))})},stop:function(){J.onStop(ne)},trash:function(){J.onTrash(ne)},combineFeatures:function(){J.onCombineFeatures(ne)},uncombineFeatures:function(){J.onUncombineFeatures(ne)},render:function(te,Re){J.toDisplayFeatures(ne,te,Re)}}}}function nn(m){return[].concat(m).filter(function(S){return S!==void 0})}function fi(){var m=this;if(!(m.ctx.map&&m.ctx.map.getSource(R)!==void 0))return me();var S=m.ctx.events.currentModeName();m.ctx.ui.queueMapClasses({mode:S});var O=[],H=[];m.isDirty?H=m.getAllIds():(O=m.getChangedIds().filter(function(Be){return m.get(Be)!==void 0}),H=m.sources.hot.filter(function(Be){return Be.properties.id&&O.indexOf(Be.properties.id)===-1&&m.get(Be.properties.id)!==void 0}).map(function(Be){return Be.properties.id})),m.sources.hot=[];var ne=m.sources.cold.length;m.sources.cold=m.isDirty?[]:m.sources.cold.filter(function(Be){var se=Be.properties.id||Be.properties.parent;return O.indexOf(se)===-1});var J=ne!==m.sources.cold.length||H.length>0;function te(Be,se){var be=m.get(Be).internal(S);m.ctx.events.currentModeRender(be,function($e){m.sources[se].push($e)})}if(O.forEach(function(Be){return te(Be,"hot")}),H.forEach(function(Be){return te(Be,"cold")}),J&&m.ctx.map.getSource(D).setData({type:Y,features:m.sources.cold}),m.ctx.map.getSource(R).setData({type:Y,features:m.sources.hot}),m._emitSelectionChange&&(m.ctx.map.fire(ve,{features:m.getSelected().map(function(Be){return Be.toGeoJSON()}),points:m.getSelectedCoordinates().map(function(Be){return{type:K,properties:{},geometry:{type:Le,coordinates:Be.coordinates}}})}),m._emitSelectionChange=!1),m._deletedFeaturesToEmit.length){var Re=m._deletedFeaturesToEmit.map(function(Be){return Be.toGeoJSON()});m._deletedFeaturesToEmit=[],m.ctx.map.fire(le,{features:Re})}function me(){m.isDirty=!1,m.clearChangedIds()}me(),m.ctx.map.fire(Oe,{})}function gt(m){var S,O=this;this._features={},this._featureIds=new pn,this._selectedFeatureIds=new pn,this._selectedCoordinates=[],this._changedFeatureIds=new pn,this._deletedFeaturesToEmit=[],this._emitSelectionChange=!1,this._mapInitialConfig={},this.ctx=m,this.sources={hot:[],cold:[]},this.render=function(){S||(S=requestAnimationFrame(function(){S=null,fi.call(O)}))},this.isDirty=!1}function xn(m,S){var O=m._selectedCoordinates.filter(function(H){return m._selectedFeatureIds.has(H.feature_id)});m._selectedCoordinates.length===O.length||S.silent||(m._emitSelectionChange=!0),m._selectedCoordinates=O}gt.prototype.createRenderBatch=function(){var m=this,S=this.render,O=0;return this.render=function(){O++},function(){m.render=S,O>0&&m.render()}},gt.prototype.setDirty=function(){return this.isDirty=!0,this},gt.prototype.featureChanged=function(m){return this._changedFeatureIds.add(m),this},gt.prototype.getChangedIds=function(){return this._changedFeatureIds.values()},gt.prototype.clearChangedIds=function(){return this._changedFeatureIds.clear(),this},gt.prototype.getAllIds=function(){return this._featureIds.values()},gt.prototype.add=function(m){return this.featureChanged(m.id),this._features[m.id]=m,this._featureIds.add(m.id),this},gt.prototype.delete=function(m,S){var O=this;return S===void 0&&(S={}),nn(m).forEach(function(H){O._featureIds.has(H)&&(O._featureIds.delete(H),O._selectedFeatureIds.delete(H),S.silent||O._deletedFeaturesToEmit.indexOf(O._features[H])===-1&&O._deletedFeaturesToEmit.push(O._features[H]),delete O._features[H],O.isDirty=!0)}),xn(this,S),this},gt.prototype.get=function(m){return this._features[m]},gt.prototype.getAll=function(){var m=this;return Object.keys(this._features).map(function(S){return m._features[S]})},gt.prototype.select=function(m,S){var O=this;return S===void 0&&(S={}),nn(m).forEach(function(H){O._selectedFeatureIds.has(H)||(O._selectedFeatureIds.add(H),O._changedFeatureIds.add(H),S.silent||(O._emitSelectionChange=!0))}),this},gt.prototype.deselect=function(m,S){var O=this;return S===void 0&&(S={}),nn(m).forEach(function(H){O._selectedFeatureIds.has(H)&&(O._selectedFeatureIds.delete(H),O._changedFeatureIds.add(H),S.silent||(O._emitSelectionChange=!0))}),xn(this,S),this},gt.prototype.clearSelected=function(m){return m===void 0&&(m={}),this.deselect(this._selectedFeatureIds.values(),{silent:m.silent}),this},gt.prototype.setSelected=function(m,S){var O=this;return S===void 0&&(S={}),m=nn(m),this.deselect(this._selectedFeatureIds.values().filter(function(H){return m.indexOf(H)===-1}),{silent:S.silent}),this.select(m.filter(function(H){return!O._selectedFeatureIds.has(H)}),{silent:S.silent}),this},gt.prototype.setSelectedCoordinates=function(m){return this._selectedCoordinates=m,this._emitSelectionChange=!0,this},gt.prototype.clearSelectedCoordinates=function(){return this._selectedCoordinates=[],this._emitSelectionChange=!0,this},gt.prototype.getSelectedIds=function(){return this._selectedFeatureIds.values()},gt.prototype.getSelected=function(){var m=this;return this._selectedFeatureIds.values().map(function(S){return m.get(S)})},gt.prototype.getSelectedCoordinates=function(){var m=this;return this._selectedCoordinates.map(function(S){return{coordinates:m.get(S.feature_id).getCoordinate(S.coord_path)}})},gt.prototype.isSelected=function(m){return this._selectedFeatureIds.has(m)},gt.prototype.setFeatureProperty=function(m,S,O){this.get(m).setProperty(S,O),this.featureChanged(m)},gt.prototype.storeMapConfig=function(){var m=this;fn.forEach(function(S){m.ctx.map[S]&&(m._mapInitialConfig[S]=m.ctx.map[S].isEnabled())})},gt.prototype.restoreMapConfig=function(){var m=this;Object.keys(this._mapInitialConfig).forEach(function(S){m._mapInitialConfig[S]?m.ctx.map[S].enable():m.ctx.map[S].disable()})},gt.prototype.getInitialConfigValue=function(m){return this._mapInitialConfig[m]===void 0||this._mapInitialConfig[m]};var Wr=function(){for(var m=arguments,S={},O=0;O<arguments.length;O++){var H=m[O];for(var ne in H)ua.call(H,ne)&&(S[ne]=H[ne])}return S},ua=Object.prototype.hasOwnProperty,Vo=["mode","feature","mouse"];function so(m){var S=null,O=null,H={onRemove:function(){return m.map.off("load",H.connect),clearInterval(O),H.removeLayers(),m.store.restoreMapConfig(),m.ui.removeButtons(),m.events.removeEventListeners(),m.ui.clearMapClasses(),m.map=null,m.container=null,m.store=null,S&&S.parentNode&&S.parentNode.removeChild(S),S=null,this},connect:function(){m.map.off("load",H.connect),clearInterval(O),H.addLayers(),m.store.storeMapConfig(),m.events.addEventListeners()},onAdd:function(ne){var J=ne.fire;return ne.fire=function(te,Re){var me=arguments;return J.length===1&&arguments.length!==1&&(me=[Wr({},{type:te},Re)]),J.apply(ne,me)},m.map=ne,m.events=function(te){var Re=Object.keys(te.options.modes).reduce(function(Ee,Ie){return Ee[Ie]=Er(te.options.modes[Ie]),Ee},{}),me={},Be={},se={},be=null,$e=null;se.drag=function(Ee,Ie){Ie({point:Ee.point,time:new Date().getTime()})?(te.ui.queueMapClasses({mouse:F}),$e.drag(Ee)):Ee.originalEvent.stopPropagation()},se.mousedrag=function(Ee){se.drag(Ee,function(Ie){return!In(me,Ie)})},se.touchdrag=function(Ee){se.drag(Ee,function(Ie){return!Sn(Be,Ie)})},se.mousemove=function(Ee){if((Ee.originalEvent.buttons!==void 0?Ee.originalEvent.buttons:Ee.originalEvent.which)===1)return se.mousedrag(Ee);var Ie=un(Ee,te);Ee.featureTarget=Ie,$e.mousemove(Ee)},se.mousedown=function(Ee){me={time:new Date().getTime(),point:Ee.point};var Ie=un(Ee,te);Ee.featureTarget=Ie,$e.mousedown(Ee)},se.mouseup=function(Ee){var Ie=un(Ee,te);Ee.featureTarget=Ie,In(me,{point:Ee.point,time:new Date().getTime()})?$e.click(Ee):$e.mouseup(Ee)},se.mouseout=function(Ee){$e.mouseout(Ee)},se.touchstart=function(Ee){if(Ee.originalEvent.preventDefault(),te.options.touchEnabled){Be={time:new Date().getTime(),point:Ee.point};var Ie=qt.touch(Ee,null,te)[0];Ee.featureTarget=Ie,$e.touchstart(Ee)}},se.touchmove=function(Ee){if(Ee.originalEvent.preventDefault(),te.options.touchEnabled)return $e.touchmove(Ee),se.touchdrag(Ee)},se.touchend=function(Ee){if(Ee.originalEvent.preventDefault(),te.options.touchEnabled){var Ie=qt.touch(Ee,null,te)[0];Ee.featureTarget=Ie,Sn(Be,{time:new Date().getTime(),point:Ee.point})?$e.tap(Ee):$e.touchend(Ee)}};var Qe=function(Ee){return!(Ee===8||Ee===46||Ee>=48&&Ee<=57)};function dt(Ee,Ie,yt){yt===void 0&&(yt={}),$e.stop();var rn=Re[Ee];if(rn===void 0)throw new Error(Ee+" is not valid");be=Ee;var Zt=rn(te,Ie);$e=e(Zt,te),yt.silent||te.map.fire(de,{mode:Ee}),te.store.setDirty(),te.store.render()}se.keydown=function(Ee){(Ee.srcElement||Ee.target).classList[0]==="mapboxgl-canvas"&&(Ee.keyCode!==8&&Ee.keyCode!==46||!te.options.controls.trash?Qe(Ee.keyCode)?$e.keydown(Ee):Ee.keyCode===49&&te.options.controls.point?dt(V.DRAW_POINT):Ee.keyCode===50&&te.options.controls.line_string?dt(V.DRAW_LINE_STRING):Ee.keyCode===51&&te.options.controls.polygon&&dt(V.DRAW_POLYGON):(Ee.preventDefault(),$e.trash()))},se.keyup=function(Ee){Qe(Ee.keyCode)&&$e.keyup(Ee)},se.zoomend=function(){te.store.changeZoom()},se.data=function(Ee){if(Ee.dataType==="style"){var Ie=te.setup,yt=te.map,rn=te.options,Zt=te.store;rn.styles.some(function(Xe){return yt.getLayer(Xe.id)})||(Ie.addLayers(),Zt.setDirty(),Zt.render())}};var Mn={trash:!1,combineFeatures:!1,uncombineFeatures:!1};return{start:function(){be=te.options.defaultMode,$e=e(Re[be](te),te)},changeMode:dt,actionable:function(Ee){var Ie=!1;Object.keys(Ee).forEach(function(yt){if(Mn[yt]===void 0)throw new Error("Invalid action type");Mn[yt]!==Ee[yt]&&(Ie=!0),Mn[yt]=Ee[yt]}),Ie&&te.map.fire(ie,{actions:Mn})},currentModeName:function(){return be},currentModeRender:function(Ee,Ie){return $e.render(Ee,Ie)},fire:function(Ee,Ie){se[Ee]&&se[Ee](Ie)},addEventListeners:function(){te.map.on("mousemove",se.mousemove),te.map.on("mousedown",se.mousedown),te.map.on("mouseup",se.mouseup),te.map.on("data",se.data),te.map.on("touchmove",se.touchmove),te.map.on("touchstart",se.touchstart),te.map.on("touchend",se.touchend),te.container.addEventListener("mouseout",se.mouseout),te.options.keybindings&&(te.container.addEventListener("keydown",se.keydown),te.container.addEventListener("keyup",se.keyup))},removeEventListeners:function(){te.map.off("mousemove",se.mousemove),te.map.off("mousedown",se.mousedown),te.map.off("mouseup",se.mouseup),te.map.off("data",se.data),te.map.off("touchmove",se.touchmove),te.map.off("touchstart",se.touchstart),te.map.off("touchend",se.touchend),te.container.removeEventListener("mouseout",se.mouseout),te.options.keybindings&&(te.container.removeEventListener("keydown",se.keydown),te.container.removeEventListener("keyup",se.keyup))},trash:function(Ee){$e.trash(Ee)},combineFeatures:function(){$e.combineFeatures()},uncombineFeatures:function(){$e.uncombineFeatures()},getMode:function(){return be}}}(m),m.ui=function(te){var Re={},me=null,Be={mode:null,feature:null,mouse:null},se={mode:null,feature:null,mouse:null};function be(Ee){se=Wr(se,Ee)}function $e(){var Ee,Ie;if(te.container){var yt=[],rn=[];Vo.forEach(function(Zt){se[Zt]!==Be[Zt]&&(yt.push(Zt+"-"+Be[Zt]),se[Zt]!==null&&rn.push(Zt+"-"+se[Zt]))}),yt.length>0&&(Ee=te.container.classList).remove.apply(Ee,yt),rn.length>0&&(Ie=te.container.classList).add.apply(Ie,rn),Be=Wr(Be,se)}}function Qe(Ee,Ie){Ie===void 0&&(Ie={});var yt=document.createElement("button");return yt.className=h+" "+Ie.className,yt.setAttribute("title",Ie.title),Ie.container.appendChild(yt),yt.addEventListener("click",function(rn){if(rn.preventDefault(),rn.stopPropagation(),rn.target===me)return dt(),void Ie.onDeactivate();Mn(Ee),Ie.onActivate()},!0),yt}function dt(){me&&(me.classList.remove(I),me=null)}function Mn(Ee){dt();var Ie=Re[Ee];Ie&&Ie&&Ee!=="trash"&&(Ie.classList.add(I),me=Ie)}return{setActiveButton:Mn,queueMapClasses:be,updateMapClasses:$e,clearMapClasses:function(){be({mode:null,feature:null,mouse:null}),$e()},addButtons:function(){var Ee=te.options.controls,Ie=document.createElement("div");return Ie.className=A+" "+p,Ee&&(Ee[W.LINE]&&(Re[W.LINE]=Qe(W.LINE,{container:Ie,className:g,title:"LineString tool "+(te.options.keybindings?"(l)":""),onActivate:function(){return te.events.changeMode(V.DRAW_LINE_STRING)},onDeactivate:function(){return te.events.trash()}})),Ee[W.POLYGON]&&(Re[W.POLYGON]=Qe(W.POLYGON,{container:Ie,className:y,title:"Polygon tool "+(te.options.keybindings?"(p)":""),onActivate:function(){return te.events.changeMode(V.DRAW_POLYGON)},onDeactivate:function(){return te.events.trash()}})),Ee[W.POINT]&&(Re[W.POINT]=Qe(W.POINT,{container:Ie,className:w,title:"Marker tool "+(te.options.keybindings?"(m)":""),onActivate:function(){return te.events.changeMode(V.DRAW_POINT)},onDeactivate:function(){return te.events.trash()}})),Ee.trash&&(Re.trash=Qe("trash",{container:Ie,className:C,title:"Delete",onActivate:function(){te.events.trash()}})),Ee.combine_features&&(Re.combine_features=Qe("combineFeatures",{container:Ie,className:M,title:"Combine",onActivate:function(){te.events.combineFeatures()}})),Ee.uncombine_features&&(Re.uncombine_features=Qe("uncombineFeatures",{container:Ie,className:_,title:"Uncombine",onActivate:function(){te.events.uncombineFeatures()}}))),Ie},removeButtons:function(){Object.keys(Re).forEach(function(Ee){var Ie=Re[Ee];Ie.parentNode&&Ie.parentNode.removeChild(Ie),delete Re[Ee]})}}}(m),m.container=ne.getContainer(),m.store=new gt(m),S=m.ui.addButtons(),m.options.boxSelect&&(ne.boxZoom.disable(),ne.dragPan.disable(),ne.dragPan.enable()),ne.loaded()?H.connect():(ne.on("load",H.connect),O=setInterval(function(){ne.loaded()&&H.connect()},16)),m.events.start(),S},addLayers:function(){m.map.addSource(D,{data:{type:Y,features:[]},type:"geojson"}),m.map.addSource(R,{data:{type:Y,features:[]},type:"geojson"}),m.options.styles.forEach(function(ne){m.map.addLayer(ne)}),m.store.setDirty(!0),m.store.render()},removeLayers:function(){m.options.styles.forEach(function(ne){m.map.getLayer(ne.id)&&m.map.removeLayer(ne.id)}),m.map.getSource(D)&&m.map.removeSource(D),m.map.getSource(R)&&m.map.removeSource(R)}};return m.setup=H,H}function $o(m){return function(S){var O=S.featureTarget;return!!O&&!!O.properties&&O.properties.meta===m}}function Vi(m){return!!m.featureTarget&&!!m.featureTarget.properties&&m.featureTarget.properties.active===Lt&&m.featureTarget.properties.meta===Ve}function $i(m){return!!m.featureTarget&&!!m.featureTarget.properties&&m.featureTarget.properties.active===tt&&m.featureTarget.properties.meta===Ve}function xt(m){return m.featureTarget===void 0}function Ll(m){var S=m.featureTarget;return!!S&&!!S.properties&&S.properties.meta===Ae}function Wo(m){return!!m.originalEvent&&m.originalEvent.shiftKey===!0}function za(m){return m.keyCode===27}function ca(m){return m.keyCode===13}var Go=Ia;function Ia(m,S){this.x=m,this.y=S}function B(m,S){var O=S.getBoundingClientRect();return new Go(m.clientX-O.left-(S.clientLeft||0),m.clientY-O.top-(S.clientTop||0))}function _e(m,S,O,H){return{type:K,properties:{meta:Ae,parent:m,coord_path:O,active:H?Lt:tt},geometry:{type:Le,coordinates:S}}}function Ue(m,S,O){S===void 0&&(S={}),O===void 0&&(O=null);var H,ne=m.geometry,J=ne.type,te=ne.coordinates,Re=m.properties&&m.properties.id,me=[];function Be(be,$e){var Qe="",dt=null;be.forEach(function(Mn,Ee){var Ie=$e!=null?$e+"."+Ee:String(Ee),yt=_e(Re,Mn,Ie,se(Ie));if(S.midpoints&&dt){var rn=function(Xe,pi,Ko){var Ut=pi.geometry.coordinates,Wi=Ko.geometry.coordinates;if(Ut[1]>85||Ut[1]<-85||Wi[1]>85||Wi[1]<-85)return null;var Gr={lng:(Ut[0]+Wi[0])/2,lat:(Ut[1]+Wi[1])/2};return{type:K,properties:{meta:_t,parent:Xe,lng:Gr.lng,lat:Gr.lat,coord_path:Ko.properties.coord_path},geometry:{type:Le,coordinates:[Gr.lng,Gr.lat]}}}(Re,dt,yt);rn&&me.push(rn)}dt=yt;var Zt=JSON.stringify(Mn);Qe!==Zt&&me.push(yt),Ee===0&&(Qe=Zt)})}function se(be){return!!S.selectedPaths&&S.selectedPaths.indexOf(be)!==-1}return J===Le?me.push(_e(Re,te,O,se(O))):J===G?te.forEach(function(be,$e){Be(be,O!==null?O+"."+$e:String($e))}):J===re?Be(te,O):J.indexOf(ue)===0&&(H=J.replace(ue,""),te.forEach(function(be,$e){var Qe={type:K,properties:m.properties,geometry:{type:H,coordinates:be}};me=me.concat(Ue(Qe,S,$e))})),me}Ia.prototype={clone:function(){return new Ia(this.x,this.y)},add:function(m){return this.clone()._add(m)},sub:function(m){return this.clone()._sub(m)},multByPoint:function(m){return this.clone()._multByPoint(m)},divByPoint:function(m){return this.clone()._divByPoint(m)},mult:function(m){return this.clone()._mult(m)},div:function(m){return this.clone()._div(m)},rotate:function(m){return this.clone()._rotate(m)},rotateAround:function(m,S){return this.clone()._rotateAround(m,S)},matMult:function(m){return this.clone()._matMult(m)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(m){return this.x===m.x&&this.y===m.y},dist:function(m){return Math.sqrt(this.distSqr(m))},distSqr:function(m){var S=m.x-this.x,O=m.y-this.y;return S*S+O*O},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(m){return Math.atan2(this.y-m.y,this.x-m.x)},angleWith:function(m){return this.angleWithSep(m.x,m.y)},angleWithSep:function(m,S){return Math.atan2(this.x*S-this.y*m,this.x*m+this.y*S)},_matMult:function(m){var S=m[0]*this.x+m[1]*this.y,O=m[2]*this.x+m[3]*this.y;return this.x=S,this.y=O,this},_add:function(m){return this.x+=m.x,this.y+=m.y,this},_sub:function(m){return this.x-=m.x,this.y-=m.y,this},_mult:function(m){return this.x*=m,this.y*=m,this},_div:function(m){return this.x/=m,this.y/=m,this},_multByPoint:function(m){return this.x*=m.x,this.y*=m.y,this},_divByPoint:function(m){return this.x/=m.x,this.y/=m.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var m=this.y;return this.y=this.x,this.x=-m,this},_rotate:function(m){var S=Math.cos(m),O=Math.sin(m),H=S*this.x-O*this.y,ne=O*this.x+S*this.y;return this.x=H,this.y=ne,this},_rotateAround:function(m,S){var O=Math.cos(m),H=Math.sin(m),ne=S.x+O*(this.x-S.x)-H*(this.y-S.y),J=S.y+H*(this.x-S.x)+O*(this.y-S.y);return this.x=ne,this.y=J,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Ia.convert=function(m){return m instanceof Ia?m:Array.isArray(m)?new Ia(m[0],m[1]):m};var lt=function(m){setTimeout(function(){m.map&&m.map.doubleClickZoom&&m._ctx&&m._ctx.store&&m._ctx.store.getInitialConfigValue&&m._ctx.store.getInitialConfigValue("doubleClickZoom")&&m.map.doubleClickZoom.enable()},0)},Ot=function(m){setTimeout(function(){m.map&&m.map.doubleClickZoom&&m.map.doubleClickZoom.disable()},0)},Yt=function(m){if(!m||!m.type)return null;var S=Mt[m.type];if(!S)return null;if(S==="geometry")return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:m}]};if(S==="feature")return{type:"FeatureCollection",features:[m]};if(S==="featurecollection")return m},Mt={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"};function ct(m){switch(m&&m.type||null){case"FeatureCollection":return m.features=m.features.reduce(function(S,O){return S.concat(ct(O))},[]),m;case"Feature":return m.geometry?ct(m.geometry).map(function(S){var O={type:"Feature",properties:JSON.parse(JSON.stringify(m.properties)),geometry:S};return m.id!==void 0&&(O.id=m.id),O}):[m];case"MultiPoint":return m.coordinates.map(function(S){return{type:"Point",coordinates:S}});case"MultiPolygon":return m.coordinates.map(function(S){return{type:"Polygon",coordinates:S}});case"MultiLineString":return m.coordinates.map(function(S){return{type:"LineString",coordinates:S}});case"GeometryCollection":return m.geometries.map(ct).reduce(function(S,O){return S.concat(O)},[]);case"Point":case"Polygon":case"LineString":return[m]}}var wr=function(m){if(!m)return[];var S=ct(Yt(m)),O=[];return S.features.forEach(function(H){H.geometry&&(O=O.concat(function ne(J){return Array.isArray(J)&&J.length&&typeof J[0]=="number"?[J]:J.reduce(function(te,Re){return Array.isArray(Re)&&Array.isArray(Re[0])?te.concat(ne(Re)):(te.push(Re),te)},[])}(H.geometry.coordinates)))}),O},Fn=hn(function(m){var S=m.exports=function(se){return new O(se)};function O(se){this.value=se}function H(se,be,$e){var Qe=[],dt=[],Mn=!0;return function Ee(Ie){var yt=$e?ne(Ie):Ie,rn={},Zt=!0,Xe={node:yt,node_:Ie,path:[].concat(Qe),parent:dt[dt.length-1],parents:dt,key:Qe.slice(-1)[0],isRoot:Qe.length===0,level:Qe.length,circular:null,update:function(Ut,Wi){Xe.isRoot||(Xe.parent.node[Xe.key]=Ut),Xe.node=Ut,Wi&&(Zt=!1)},delete:function(Ut){delete Xe.parent.node[Xe.key],Ut&&(Zt=!1)},remove:function(Ut){Re(Xe.parent.node)?Xe.parent.node.splice(Xe.key,1):delete Xe.parent.node[Xe.key],Ut&&(Zt=!1)},keys:null,before:function(Ut){rn.before=Ut},after:function(Ut){rn.after=Ut},pre:function(Ut){rn.pre=Ut},post:function(Ut){rn.post=Ut},stop:function(){Mn=!1},block:function(){Zt=!1}};if(!Mn)return Xe;function pi(){if(typeof Xe.node=="object"&&Xe.node!==null){Xe.keys&&Xe.node_===Xe.node||(Xe.keys=J(Xe.node)),Xe.isLeaf=Xe.keys.length==0;for(var Ut=0;Ut<dt.length;Ut++)if(dt[Ut].node_===Ie){Xe.circular=dt[Ut];break}}else Xe.isLeaf=!0,Xe.keys=null;Xe.notLeaf=!Xe.isLeaf,Xe.notRoot=!Xe.isRoot}pi();var Ko=be.call(Xe,Xe.node);return Ko!==void 0&&Xe.update&&Xe.update(Ko),rn.before&&rn.before.call(Xe,Xe.node),Zt&&(typeof Xe.node!="object"||Xe.node===null||Xe.circular||(dt.push(Xe),pi(),me(Xe.keys,function(Ut,Wi){Qe.push(Ut),rn.pre&&rn.pre.call(Xe,Xe.node[Ut],Ut);var Gr=Ee(Xe.node[Ut]);$e&&Be.call(Xe.node,Ut)&&(Xe.node[Ut]=Gr.node),Gr.isLast=Wi==Xe.keys.length-1,Gr.isFirst=Wi==0,rn.post&&rn.post.call(Xe,Gr),Qe.pop()}),dt.pop()),rn.after&&rn.after.call(Xe,Xe.node)),Xe}(se).node}function ne(se){if(typeof se=="object"&&se!==null){var be;if(Re(se))be=[];else if(te(se)==="[object Date]")be=new Date(se.getTime?se.getTime():se);else if(function(dt){return te(dt)==="[object RegExp]"}(se))be=new RegExp(se);else if(function(dt){return te(dt)==="[object Error]"}(se))be={message:se.message};else if(function(dt){return te(dt)==="[object Boolean]"}(se))be=new Boolean(se);else if(function(dt){return te(dt)==="[object Number]"}(se))be=new Number(se);else if(function(dt){return te(dt)==="[object String]"}(se))be=new String(se);else if(Object.create&&Object.getPrototypeOf)be=Object.create(Object.getPrototypeOf(se));else if(se.constructor===Object)be={};else{var $e=se.constructor&&se.constructor.prototype||se.__proto__||{},Qe=function(){};Qe.prototype=$e,be=new Qe}return me(J(se),function(dt){be[dt]=se[dt]}),be}return se}O.prototype.get=function(se){for(var be=this.value,$e=0;$e<se.length;$e++){var Qe=se[$e];if(!be||!Be.call(be,Qe)){be=void 0;break}be=be[Qe]}return be},O.prototype.has=function(se){for(var be=this.value,$e=0;$e<se.length;$e++){var Qe=se[$e];if(!be||!Be.call(be,Qe))return!1;be=be[Qe]}return!0},O.prototype.set=function(se,be){for(var $e=this.value,Qe=0;Qe<se.length-1;Qe++){var dt=se[Qe];Be.call($e,dt)||($e[dt]={}),$e=$e[dt]}return $e[se[Qe]]=be,be},O.prototype.map=function(se){return H(this.value,se,!0)},O.prototype.forEach=function(se){return this.value=H(this.value,se,!1),this.value},O.prototype.reduce=function(se,be){var $e=arguments.length===1,Qe=$e?this.value:be;return this.forEach(function(dt){this.isRoot&&$e||(Qe=se.call(this,Qe,dt))}),Qe},O.prototype.paths=function(){var se=[];return this.forEach(function(be){se.push(this.path)}),se},O.prototype.nodes=function(){var se=[];return this.forEach(function(be){se.push(this.node)}),se},O.prototype.clone=function(){var se=[],be=[];return function $e(Qe){for(var dt=0;dt<se.length;dt++)if(se[dt]===Qe)return be[dt];if(typeof Qe=="object"&&Qe!==null){var Mn=ne(Qe);return se.push(Qe),be.push(Mn),me(J(Qe),function(Ee){Mn[Ee]=$e(Qe[Ee])}),se.pop(),be.pop(),Mn}return Qe}(this.value)};var J=Object.keys||function(se){var be=[];for(var $e in se)be.push($e);return be};function te(se){return Object.prototype.toString.call(se)}var Re=Array.isArray||function(se){return Object.prototype.toString.call(se)==="[object Array]"},me=function(se,be){if(se.forEach)return se.forEach(be);for(var $e=0;$e<se.length;$e++)be(se[$e],$e,se)};me(J(O.prototype),function(se){S[se]=function(be){var $e=[].slice.call(arguments,1),Qe=new O(be);return Qe[se].apply(Qe,$e)}});var Be=Object.hasOwnProperty||function(se,be){return be in se}}),jn=mn;function mn(m){if(!(this instanceof mn))return new mn(m);this._bbox=m||[1/0,1/0,-1/0,-1/0],this._valid=!!m}mn.prototype.include=function(m){return this._valid=!0,this._bbox[0]=Math.min(this._bbox[0],m[0]),this._bbox[1]=Math.min(this._bbox[1],m[1]),this._bbox[2]=Math.max(this._bbox[2],m[0]),this._bbox[3]=Math.max(this._bbox[3],m[1]),this},mn.prototype.equals=function(m){var S;return S=m instanceof mn?m.bbox():m,this._bbox[0]==S[0]&&this._bbox[1]==S[1]&&this._bbox[2]==S[2]&&this._bbox[3]==S[3]},mn.prototype.center=function(m){return this._valid?[(this._bbox[0]+this._bbox[2])/2,(this._bbox[1]+this._bbox[3])/2]:null},mn.prototype.union=function(m){var S;return this._valid=!0,S=m instanceof mn?m.bbox():m,this._bbox[0]=Math.min(this._bbox[0],S[0]),this._bbox[1]=Math.min(this._bbox[1],S[1]),this._bbox[2]=Math.max(this._bbox[2],S[2]),this._bbox[3]=Math.max(this._bbox[3],S[3]),this},mn.prototype.bbox=function(){return this._valid?this._bbox:null},mn.prototype.contains=function(m){if(!m)return this._fastContains();if(!this._valid)return null;var S=m[0],O=m[1];return this._bbox[0]<=S&&this._bbox[1]<=O&&this._bbox[2]>=S&&this._bbox[3]>=O},mn.prototype.intersect=function(m){return this._valid?(S=m instanceof mn?m.bbox():m,!(this._bbox[0]>S[2]||this._bbox[2]<S[0]||this._bbox[3]<S[1]||this._bbox[1]>S[3])):null;var S},mn.prototype._fastContains=function(){if(!this._valid)return new Function("return null;");var m="return "+this._bbox[0]+"<= ll[0] &&"+this._bbox[1]+"<= ll[1] &&"+this._bbox[2]+">= ll[0] &&"+this._bbox[3]+">= ll[1]";return new Function("ll",m)},mn.prototype.polygon=function(){return this._valid?{type:"Polygon",coordinates:[[[this._bbox[0],this._bbox[1]],[this._bbox[2],this._bbox[1]],[this._bbox[2],this._bbox[3]],[this._bbox[0],this._bbox[3]],[this._bbox[0],this._bbox[1]]]]}:null};var uo={features:["FeatureCollection"],coordinates:["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],geometry:["Feature"],geometries:["GeometryCollection"]},Vc=Object.keys(uo),di=function(m){return Zd(m).bbox()};function Zd(m){for(var S=jn(),O=wr(m),H=0;H<O.length;H++)S.include(O[H]);return S}di.polygon=function(m){return Zd(m).polygon()},di.bboxify=function(m){return Fn(m).map(function(S){S&&Vc.some(function(O){return!!S[O]&&uo[O].indexOf(S.type)!==-1})&&(S.bbox=Zd(S).bbox(),this.update(S))})};function Yo(m,S){var O=-90,H=90,ne=-90,J=90,te=270,Re=-270;m.forEach(function(Be){var se=di(Be),be=se[1],$e=se[3],Qe=se[0],dt=se[2];be>O&&(O=be),$e<H&&(H=$e),$e>ne&&(ne=$e),be<J&&(J=be),Qe<te&&(te=Qe),dt>Re&&(Re=dt)});var me=S;return O+me.lat>85&&(me.lat=85-O),ne+me.lat>90&&(me.lat=90-ne),H+me.lat<-85&&(me.lat=-85-H),J+me.lat<-90&&(me.lat=-90-J),te+me.lng<=-270&&(me.lng+=360*Math.ceil(Math.abs(me.lng)/360)),Re+me.lng>=270&&(me.lng-=360*Math.ceil(Math.abs(me.lng)/360)),me}function At(m,S){var O=Yo(m.map(function(H){return H.toGeoJSON()}),S);m.forEach(function(H){var ne,J=H.getCoordinates(),te=function(me){var Be={lng:me[0]+O.lng,lat:me[1]+O.lat};return[Be.lng,Be.lat]},Re=function(me){return me.map(function(Be){return te(Be)})};H.type===Le?ne=te(J):H.type===re||H.type===xe?ne=J.map(te):H.type===G||H.type===Pe?ne=J.map(Re):H.type===ke&&(ne=J.map(function(me){return me.map(function(Be){return Re(Be)})})),H.incomingCoords(ne)})}var qn={onSetup:function(m){var S=this,O={dragMoveLocation:null,boxSelectStartLocation:null,boxSelectElement:void 0,boxSelecting:!1,canBoxSelect:!1,dragMoving:!1,canDragMove:!1,initiallySelectedFeatureIds:m.featureIds||[]};return this.setSelected(O.initiallySelectedFeatureIds.filter(function(H){return S.getFeature(H)!==void 0})),this.fireActionable(),this.setActionableState({combineFeatures:!0,uncombineFeatures:!0,trash:!0}),O},fireUpdate:function(){this.map.fire(ge,{action:ut,features:this.getSelected().map(function(m){return m.toGeoJSON()})})},fireActionable:function(){var m=this,S=this.getSelected(),O=S.filter(function(Re){return m.isInstanceOf("MultiFeature",Re)}),H=!1;if(S.length>1){H=!0;var ne=S[0].type.replace("Multi","");S.forEach(function(Re){Re.type.replace("Multi","")!==ne&&(H=!1)})}var J=O.length>0,te=S.length>0;this.setActionableState({combineFeatures:H,uncombineFeatures:J,trash:te})},getUniqueIds:function(m){return m.length?m.map(function(S){return S.properties.id}).filter(function(S){return S!==void 0}).reduce(function(S,O){return S.add(O),S},new pn).values():[]},stopExtendedInteractions:function(m){m.boxSelectElement&&(m.boxSelectElement.parentNode&&m.boxSelectElement.parentNode.removeChild(m.boxSelectElement),m.boxSelectElement=null),this.map.dragPan.enable(),m.boxSelecting=!1,m.canBoxSelect=!1,m.dragMoving=!1,m.canDragMove=!1},onStop:function(){lt(this)},onMouseMove:function(m){return this.stopExtendedInteractions(m),!0},onMouseOut:function(m){return!m.dragMoving||this.fireUpdate()}};qn.onTap=qn.onClick=function(m,S){return xt(S)?this.clickAnywhere(m,S):$o(Ae)(S)?this.clickOnVertex(m,S):function(O){return!!O.featureTarget&&!!O.featureTarget.properties&&O.featureTarget.properties.meta===Ve}(S)?this.clickOnFeature(m,S):void 0},qn.clickAnywhere=function(m){var S=this,O=this.getSelectedIds();O.length&&(this.clearSelectedFeatures(),O.forEach(function(H){return S.doRender(H)})),lt(this),this.stopExtendedInteractions(m)},qn.clickOnVertex=function(m,S){this.changeMode(V.DIRECT_SELECT,{featureId:S.featureTarget.properties.parent,coordPath:S.featureTarget.properties.coord_path,startPos:S.lngLat}),this.updateUIClasses({mouse:k})},qn.startOnActiveFeature=function(m,S){this.stopExtendedInteractions(m),this.map.dragPan.disable(),this.doRender(S.featureTarget.properties.id),m.canDragMove=!0,m.dragMoveLocation=S.lngLat},qn.clickOnFeature=function(m,S){var O=this;Ot(this),this.stopExtendedInteractions(m);var H=Wo(S),ne=this.getSelectedIds(),J=S.featureTarget.properties.id,te=this.isSelected(J);if(!H&&te&&this.getFeature(J).type!==Le)return this.changeMode(V.DIRECT_SELECT,{featureId:J});te&&H?(this.deselect(J),this.updateUIClasses({mouse:U}),ne.length===1&&lt(this)):!te&&H?(this.select(J),this.updateUIClasses({mouse:k})):te||H||(ne.forEach(function(Re){return O.doRender(Re)}),this.setSelected(J),this.updateUIClasses({mouse:k})),this.doRender(J)},qn.onMouseDown=function(m,S){return Vi(S)?this.startOnActiveFeature(m,S):this.drawConfig.boxSelect&&function(O){return!!O.originalEvent&&!!O.originalEvent.shiftKey&&O.originalEvent.button===0}(S)?this.startBoxSelect(m,S):void 0},qn.startBoxSelect=function(m,S){this.stopExtendedInteractions(m),this.map.dragPan.disable(),m.boxSelectStartLocation=B(S.originalEvent,this.map.getContainer()),m.canBoxSelect=!0},qn.onTouchStart=function(m,S){if(Vi(S))return this.startOnActiveFeature(m,S)},qn.onDrag=function(m,S){return m.canDragMove?this.dragMove(m,S):this.drawConfig.boxSelect&&m.canBoxSelect?this.whileBoxSelect(m,S):void 0},qn.whileBoxSelect=function(m,S){m.boxSelecting=!0,this.updateUIClasses({mouse:E}),m.boxSelectElement||(m.boxSelectElement=document.createElement("div"),m.boxSelectElement.classList.add($),this.map.getContainer().appendChild(m.boxSelectElement));var O=B(S.originalEvent,this.map.getContainer()),H=Math.min(m.boxSelectStartLocation.x,O.x),ne=Math.max(m.boxSelectStartLocation.x,O.x),J=Math.min(m.boxSelectStartLocation.y,O.y),te=Math.max(m.boxSelectStartLocation.y,O.y),Re="translate("+H+"px, "+J+"px)";m.boxSelectElement.style.transform=Re,m.boxSelectElement.style.WebkitTransform=Re,m.boxSelectElement.style.width=ne-H+"px",m.boxSelectElement.style.height=te-J+"px"},qn.dragMove=function(m,S){m.dragMoving=!0,S.originalEvent.stopPropagation();var O={lng:S.lngLat.lng-m.dragMoveLocation.lng,lat:S.lngLat.lat-m.dragMoveLocation.lat};At(this.getSelected(),O),m.dragMoveLocation=S.lngLat},qn.onMouseUp=function(m,S){var O=this;if(m.dragMoving)this.fireUpdate();else if(m.boxSelecting){var H=[m.boxSelectStartLocation,B(S.originalEvent,this.map.getContainer())],ne=this.featuresAt(null,H,"click"),J=this.getUniqueIds(ne).filter(function(te){return!O.isSelected(te)});J.length&&(this.select(J),J.forEach(function(te){return O.doRender(te)}),this.updateUIClasses({mouse:k}))}this.stopExtendedInteractions(m)},qn.toDisplayFeatures=function(m,S,O){S.properties.active=this.isSelected(S.properties.id)?Lt:tt,O(S),this.fireActionable(),S.properties.active===Lt&&S.geometry.type!==Le&&Ue(S).forEach(O)},qn.onTrash=function(){this.deleteFeature(this.getSelectedIds()),this.fireActionable()},qn.onCombineFeatures=function(){var m=this.getSelected();if(!(m.length===0||m.length<2)){for(var S=[],O=[],H=m[0].type.replace("Multi",""),ne=0;ne<m.length;ne++){var J=m[ne];if(J.type.replace("Multi","")!==H)return;J.type.includes("Multi")?J.getCoordinates().forEach(function(Re){S.push(Re)}):S.push(J.getCoordinates()),O.push(J.toGeoJSON())}if(O.length>1){var te=this.newFeature({type:K,properties:O[0].properties,geometry:{type:"Multi"+H,coordinates:S}});this.addFeature(te),this.deleteFeature(this.getSelectedIds(),{silent:!0}),this.setSelected([te.id]),this.map.fire(je,{createdFeatures:[te.toGeoJSON()],deletedFeatures:O})}this.fireActionable()}},qn.onUncombineFeatures=function(){var m=this,S=this.getSelected();if(S.length!==0){for(var O=[],H=[],ne=function(te){var Re=S[te];m.isInstanceOf("MultiFeature",Re)&&(Re.getFeatures().forEach(function(me){m.addFeature(me),me.properties=Re.properties,O.push(me.toGeoJSON()),m.select([me.id])}),m.deleteFeature(Re.id,{silent:!0}),H.push(Re.toGeoJSON()))},J=0;J<S.length;J++)ne(J);O.length>1&&this.map.fire(we,{createdFeatures:O,deletedFeatures:H}),this.fireActionable()}};var Qd=$o(Ae),dm=$o(_t),co={fireUpdate:function(){this.map.fire(ge,{action:Je,features:this.getSelected().map(function(m){return m.toGeoJSON()})})},fireActionable:function(m){this.setActionableState({combineFeatures:!1,uncombineFeatures:!1,trash:m.selectedCoordPaths.length>0})},startDragging:function(m,S){this.map.dragPan.disable(),m.canDragMove=!0,m.dragMoveLocation=S.lngLat},stopDragging:function(m){this.map.dragPan.enable(),m.dragMoving=!1,m.canDragMove=!1,m.dragMoveLocation=null},onVertex:function(m,S){this.startDragging(m,S);var O=S.featureTarget.properties,H=m.selectedCoordPaths.indexOf(O.coord_path);Wo(S)||H!==-1?Wo(S)&&H===-1&&m.selectedCoordPaths.push(O.coord_path):m.selectedCoordPaths=[O.coord_path];var ne=this.pathsToCoordinates(m.featureId,m.selectedCoordPaths);this.setSelectedCoordinates(ne)},onMidpoint:function(m,S){this.startDragging(m,S);var O=S.featureTarget.properties;m.feature.addCoordinate(O.coord_path,O.lng,O.lat),this.fireUpdate(),m.selectedCoordPaths=[O.coord_path]},pathsToCoordinates:function(m,S){return S.map(function(O){return{feature_id:m,coord_path:O}})},onFeature:function(m,S){m.selectedCoordPaths.length===0?this.startDragging(m,S):this.stopDragging(m)},dragFeature:function(m,S,O){At(this.getSelected(),O),m.dragMoveLocation=S.lngLat},dragVertex:function(m,S,O){for(var H=m.selectedCoordPaths.map(function(Re){return m.feature.getCoordinate(Re)}),ne=Yo(H.map(function(Re){return{type:K,properties:{},geometry:{type:Le,coordinates:Re}}}),O),J=0;J<H.length;J++){var te=H[J];m.feature.updateCoordinate(m.selectedCoordPaths[J],te[0]+ne.lng,te[1]+ne.lat)}},clickNoTarget:function(){this.changeMode(V.SIMPLE_SELECT)},clickInactive:function(){this.changeMode(V.SIMPLE_SELECT)},clickActiveFeature:function(m){m.selectedCoordPaths=[],this.clearSelectedCoordinates(),m.feature.changed()},onSetup:function(m){var S=m.featureId,O=this.getFeature(S);if(!O)throw new Error("You must provide a featureId to enter direct_select mode");if(O.type===Le)throw new TypeError("direct_select mode doesn't handle point features");var H={featureId:S,feature:O,dragMoveLocation:m.startPos||null,dragMoving:!1,canDragMove:!1,selectedCoordPaths:m.coordPath?[m.coordPath]:[]};return this.setSelectedCoordinates(this.pathsToCoordinates(S,H.selectedCoordPaths)),this.setSelected(S),Ot(this),this.setActionableState({trash:!0}),H},onStop:function(){lt(this),this.clearSelectedCoordinates()},toDisplayFeatures:function(m,S,O){m.featureId===S.properties.id?(S.properties.active=Lt,O(S),Ue(S,{map:this.map,midpoints:!0,selectedPaths:m.selectedCoordPaths}).forEach(O)):(S.properties.active=tt,O(S)),this.fireActionable(m)},onTrash:function(m){m.selectedCoordPaths.sort(function(S,O){return O.localeCompare(S,"en",{numeric:!0})}).forEach(function(S){return m.feature.removeCoordinate(S)}),this.fireUpdate(),m.selectedCoordPaths=[],this.clearSelectedCoordinates(),this.fireActionable(m),m.feature.isValid()===!1&&(this.deleteFeature([m.featureId]),this.changeMode(V.SIMPLE_SELECT,{}))},onMouseMove:function(m,S){var O=Vi(S),H=Qd(S),ne=m.selectedCoordPaths.length===0;return O&&ne||H&&!ne?this.updateUIClasses({mouse:k}):this.updateUIClasses({mouse:N}),this.stopDragging(m),!0},onMouseOut:function(m){return m.dragMoving&&this.fireUpdate(),!0}};co.onTouchStart=co.onMouseDown=function(m,S){return Qd(S)?this.onVertex(m,S):Vi(S)?this.onFeature(m,S):dm(S)?this.onMidpoint(m,S):void 0},co.onDrag=function(m,S){if(m.canDragMove===!0){m.dragMoving=!0,S.originalEvent.stopPropagation();var O={lng:S.lngLat.lng-m.dragMoveLocation.lng,lat:S.lngLat.lat-m.dragMoveLocation.lat};m.selectedCoordPaths.length>0?this.dragVertex(m,S,O):this.dragFeature(m,S,O),m.dragMoveLocation=S.lngLat}},co.onClick=function(m,S){return xt(S)?this.clickNoTarget(m,S):Vi(S)?this.clickActiveFeature(m,S):$i(S)?this.clickInactive(m,S):void this.stopDragging(m)},co.onTap=function(m,S){return xt(S)?this.clickNoTarget(m,S):Vi(S)?this.clickActiveFeature(m,S):$i(S)?this.clickInactive(m,S):void 0},co.onTouchEnd=co.onMouseUp=function(m){m.dragMoving&&this.fireUpdate(),this.stopDragging(m)};var fa={};function $c(m,S){return!!m.lngLat&&m.lngLat.lng===S[0]&&m.lngLat.lat===S[1]}fa.onSetup=function(){var m=this.newFeature({type:K,properties:{},geometry:{type:Le,coordinates:[]}});return this.addFeature(m),this.clearSelectedFeatures(),this.updateUIClasses({mouse:E}),this.activateUIButton(W.POINT),this.setActionableState({trash:!0}),{point:m}},fa.stopDrawingAndRemove=function(m){this.deleteFeature([m.point.id],{silent:!0}),this.changeMode(V.SIMPLE_SELECT)},fa.onTap=fa.onClick=function(m,S){this.updateUIClasses({mouse:k}),m.point.updateCoordinate("",S.lngLat.lng,S.lngLat.lat),this.map.fire(Q,{features:[m.point.toGeoJSON()]}),this.changeMode(V.SIMPLE_SELECT,{featureIds:[m.point.id]})},fa.onStop=function(m){this.activateUIButton(),m.point.getCoordinate().length||this.deleteFeature([m.point.id],{silent:!0})},fa.toDisplayFeatures=function(m,S,O){var H=S.properties.id===m.point.id;if(S.properties.active=H?Lt:tt,!H)return O(S)},fa.onTrash=fa.stopDrawingAndRemove,fa.onKeyUp=function(m,S){if(za(S)||ca(S))return this.stopDrawingAndRemove(m,S)};var qo={onSetup:function(){var m=this.newFeature({type:K,properties:{},geometry:{type:G,coordinates:[[]]}});return this.addFeature(m),this.clearSelectedFeatures(),Ot(this),this.updateUIClasses({mouse:E}),this.activateUIButton(W.POLYGON),this.setActionableState({trash:!0}),{polygon:m,currentVertexPosition:0}},clickAnywhere:function(m,S){if(m.currentVertexPosition>0&&$c(S,m.polygon.coordinates[0][m.currentVertexPosition-1]))return this.changeMode(V.SIMPLE_SELECT,{featureIds:[m.polygon.id]});this.updateUIClasses({mouse:E}),m.polygon.updateCoordinate("0."+m.currentVertexPosition,S.lngLat.lng,S.lngLat.lat),m.currentVertexPosition++,m.polygon.updateCoordinate("0."+m.currentVertexPosition,S.lngLat.lng,S.lngLat.lat)},clickOnVertex:function(m){return this.changeMode(V.SIMPLE_SELECT,{featureIds:[m.polygon.id]})},onMouseMove:function(m,S){m.polygon.updateCoordinate("0."+m.currentVertexPosition,S.lngLat.lng,S.lngLat.lat),Ll(S)&&this.updateUIClasses({mouse:U})}};qo.onTap=qo.onClick=function(m,S){return Ll(S)?this.clickOnVertex(m,S):this.clickAnywhere(m,S)},qo.onKeyUp=function(m,S){za(S)?(this.deleteFeature([m.polygon.id],{silent:!0}),this.changeMode(V.SIMPLE_SELECT)):ca(S)&&this.changeMode(V.SIMPLE_SELECT,{featureIds:[m.polygon.id]})},qo.onStop=function(m){this.updateUIClasses({mouse:N}),lt(this),this.activateUIButton(),this.getFeature(m.polygon.id)!==void 0&&(m.polygon.removeCoordinate("0."+m.currentVertexPosition),m.polygon.isValid()?this.map.fire(Q,{features:[m.polygon.toGeoJSON()]}):(this.deleteFeature([m.polygon.id],{silent:!0}),this.changeMode(V.SIMPLE_SELECT,{},{silent:!0})))},qo.toDisplayFeatures=function(m,S,O){var H=S.properties.id===m.polygon.id;if(S.properties.active=H?Lt:tt,!H)return O(S);if(S.geometry.coordinates.length!==0){var ne=S.geometry.coordinates[0].length;if(!(ne<3)){if(S.properties.meta=Ve,O(_e(m.polygon.id,S.geometry.coordinates[0][0],"0.0",!1)),ne>3){var J=S.geometry.coordinates[0].length-3;O(_e(m.polygon.id,S.geometry.coordinates[0][J],"0."+J,!1))}if(ne<=4){var te=[[S.geometry.coordinates[0][0][0],S.geometry.coordinates[0][0][1]],[S.geometry.coordinates[0][1][0],S.geometry.coordinates[0][1][1]]];if(O({type:K,properties:S.properties,geometry:{coordinates:te,type:re}}),ne===3)return}return O(S)}}},qo.onTrash=function(m){this.deleteFeature([m.polygon.id],{silent:!0}),this.changeMode(V.SIMPLE_SELECT)};var Zo={onSetup:function(m){var S,O,H=(m=m||{}).featureId,ne="forward";if(H){if(!(S=this.getFeature(H)))throw new Error("Could not find a feature with the provided featureId");var J=m.from;if(J&&J.type==="Feature"&&J.geometry&&J.geometry.type==="Point"&&(J=J.geometry),J&&J.type==="Point"&&J.coordinates&&J.coordinates.length===2&&(J=J.coordinates),!J||!Array.isArray(J))throw new Error("Please use the `from` property to indicate which point to continue the line from");var te=S.coordinates.length-1;if(S.coordinates[te][0]===J[0]&&S.coordinates[te][1]===J[1])O=te+1,S.addCoordinate.apply(S,[O].concat(S.coordinates[te]));else{if(S.coordinates[0][0]!==J[0]||S.coordinates[0][1]!==J[1])throw new Error("`from` should match the point at either the start or the end of the provided LineString");ne="backwards",O=0,S.addCoordinate.apply(S,[O].concat(S.coordinates[0]))}}else S=this.newFeature({type:K,properties:{},geometry:{type:re,coordinates:[]}}),O=0,this.addFeature(S);return this.clearSelectedFeatures(),Ot(this),this.updateUIClasses({mouse:E}),this.activateUIButton(W.LINE),this.setActionableState({trash:!0}),{line:S,currentVertexPosition:O,direction:ne}},clickAnywhere:function(m,S){if(m.currentVertexPosition>0&&$c(S,m.line.coordinates[m.currentVertexPosition-1])||m.direction==="backwards"&&$c(S,m.line.coordinates[m.currentVertexPosition+1]))return this.changeMode(V.SIMPLE_SELECT,{featureIds:[m.line.id]});this.updateUIClasses({mouse:E}),m.line.updateCoordinate(m.currentVertexPosition,S.lngLat.lng,S.lngLat.lat),m.direction==="forward"?(m.currentVertexPosition++,m.line.updateCoordinate(m.currentVertexPosition,S.lngLat.lng,S.lngLat.lat)):m.line.addCoordinate(0,S.lngLat.lng,S.lngLat.lat)},clickOnVertex:function(m){return this.changeMode(V.SIMPLE_SELECT,{featureIds:[m.line.id]})},onMouseMove:function(m,S){m.line.updateCoordinate(m.currentVertexPosition,S.lngLat.lng,S.lngLat.lat),Ll(S)&&this.updateUIClasses({mouse:U})}};Zo.onTap=Zo.onClick=function(m,S){if(Ll(S))return this.clickOnVertex(m,S);this.clickAnywhere(m,S)},Zo.onKeyUp=function(m,S){ca(S)?this.changeMode(V.SIMPLE_SELECT,{featureIds:[m.line.id]}):za(S)&&(this.deleteFeature([m.line.id],{silent:!0}),this.changeMode(V.SIMPLE_SELECT))},Zo.onStop=function(m){lt(this),this.activateUIButton(),this.getFeature(m.line.id)!==void 0&&(m.line.removeCoordinate(""+m.currentVertexPosition),m.line.isValid()?this.map.fire(Q,{features:[m.line.toGeoJSON()]}):(this.deleteFeature([m.line.id],{silent:!0}),this.changeMode(V.SIMPLE_SELECT,{},{silent:!0})))},Zo.onTrash=function(m){this.deleteFeature([m.line.id],{silent:!0}),this.changeMode(V.SIMPLE_SELECT)},Zo.toDisplayFeatures=function(m,S,O){var H=S.properties.id===m.line.id;if(S.properties.active=H?Lt:tt,!H)return O(S);S.geometry.coordinates.length<2||(S.properties.meta=Ve,O(_e(m.line.id,S.geometry.coordinates[m.direction==="forward"?S.geometry.coordinates.length-2:1],""+(m.direction==="forward"?S.geometry.coordinates.length-2:1),!1)),O(S))};var Kd={simple_select:qn,direct_select:co,draw_point:fa,draw_polygon:qo,draw_line_string:Zo},t1={defaultMode:V.SIMPLE_SELECT,keybindings:!0,touchEnabled:!0,clickBuffer:2,touchBuffer:25,boxSelect:!0,displayControlsDefault:!0,styles:[{id:"gl-draw-polygon-fill-inactive",type:"fill",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],paint:{"fill-color":"#3bb2d0","fill-outline-color":"#3bb2d0","fill-opacity":.1}},{id:"gl-draw-polygon-fill-active",type:"fill",filter:["all",["==","active","true"],["==","$type","Polygon"]],paint:{"fill-color":"#fbb03b","fill-outline-color":"#fbb03b","fill-opacity":.1}},{id:"gl-draw-polygon-midpoint",type:"circle",filter:["all",["==","$type","Point"],["==","meta","midpoint"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-stroke-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-polygon-stroke-active",type:"line",filter:["all",["==","active","true"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-line-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","LineString"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-line-active",type:"line",filter:["all",["==","$type","LineString"],["==","active","true"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-polygon-and-line-vertex-stroke-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-color":"#fff"}},{id:"gl-draw-polygon-and-line-vertex-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-point-point-stroke-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-opacity":1,"circle-color":"#fff"}},{id:"gl-draw-point-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#3bb2d0"}},{id:"gl-draw-point-stroke-active",type:"circle",filter:["all",["==","$type","Point"],["==","active","true"],["!=","meta","midpoint"]],paint:{"circle-radius":7,"circle-color":"#fff"}},{id:"gl-draw-point-active",type:"circle",filter:["all",["==","$type","Point"],["!=","meta","midpoint"],["==","active","true"]],paint:{"circle-radius":5,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-fill-static",type:"fill",filter:["all",["==","mode","static"],["==","$type","Polygon"]],paint:{"fill-color":"#404040","fill-outline-color":"#404040","fill-opacity":.1}},{id:"gl-draw-polygon-stroke-static",type:"line",filter:["all",["==","mode","static"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-line-static",type:"line",filter:["all",["==","mode","static"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-point-static",type:"circle",filter:["all",["==","mode","static"],["==","$type","Point"]],paint:{"circle-radius":5,"circle-color":"#404040"}}],modes:Kd,controls:{},userProperties:!1},n1={point:!0,line_string:!0,polygon:!0,trash:!0,combine_features:!0,uncombine_features:!0},Jd={point:!1,line_string:!1,polygon:!1,trash:!1,combine_features:!1,uncombine_features:!1};function Wc(m,S){return m.map(function(O){return O.source?O:Wr(O,{id:O.id+"."+S,source:S==="hot"?R:D})})}var Qo=hn(function(m,S){var O="[object Arguments]",H="[object Map]",ne="[object Object]",J="[object Set]",te=/^\[object .+?Constructor\]$/,Re=/^(?:0|[1-9]\d*)$/,me={};me["[object Float32Array]"]=me["[object Float64Array]"]=me["[object Int8Array]"]=me["[object Int16Array]"]=me["[object Int32Array]"]=me["[object Uint8Array]"]=me["[object Uint8ClampedArray]"]=me["[object Uint16Array]"]=me["[object Uint32Array]"]=!0,me[O]=me["[object Array]"]=me["[object ArrayBuffer]"]=me["[object Boolean]"]=me["[object DataView]"]=me["[object Date]"]=me["[object Error]"]=me["[object Function]"]=me[H]=me["[object Number]"]=me[ne]=me["[object RegExp]"]=me[J]=me["[object String]"]=me["[object WeakMap]"]=!1;var Be=typeof global=="object"&&global&&global.Object===Object&&global,se=typeof self=="object"&&self&&self.Object===Object&&self,be=Be||se||Function("return this")(),$e=S&&!S.nodeType&&S,Qe=$e&&m&&!m.nodeType&&m,dt=Qe&&Qe.exports===$e,Mn=dt&&Be.process,Ee=function(){try{return Mn&&Mn.binding&&Mn.binding("util")}catch{}}(),Ie=Ee&&Ee.isTypedArray;function yt(X,pe){for(var Fe=-1,st=X==null?0:X.length;++Fe<st;)if(pe(X[Fe],Fe,X))return!0;return!1}function rn(X){var pe=-1,Fe=Array(X.size);return X.forEach(function(st,Rn){Fe[++pe]=[Rn,st]}),Fe}function Zt(X){var pe=-1,Fe=Array(X.size);return X.forEach(function(st){Fe[++pe]=st}),Fe}var Xe,pi,Ko,Ut=Array.prototype,Wi=Function.prototype,Gr=Object.prototype,ep=be["__core-js_shared__"],pm=Wi.toString,Fa=Gr.hasOwnProperty,Eu=(Xe=/[^.]+$/.exec(ep&&ep.keys&&ep.keys.IE_PROTO||""))?"Symbol(src)_1."+Xe:"",tp=Gr.toString,qc=RegExp("^"+pm.call(Fa).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),np=dt?be.Buffer:void 0,wu=be.Symbol,rp=be.Uint8Array,ip=Gr.propertyIsEnumerable,hm=Ut.splice,fo=wu?wu.toStringTag:void 0,ap=Object.getOwnPropertySymbols,vm=np?np.isBuffer:void 0,op=(pi=Object.keys,Ko=Object,function(X){return pi(Ko(X))}),Zc=hs(be,"DataView"),Cu=hs(be,"Map"),lp=hs(be,"Promise"),Lu=hs(be,"Set"),Qc=hs(be,"WeakMap"),ds=hs(Object,"create"),mm=Tl(Zc),gm=Tl(Cu),i1=Tl(lp),a1=Tl(Lu),Yr=Tl(Qc),Kc=wu?wu.prototype:void 0,Jc=Kc?Kc.valueOf:void 0;function Jo(X){var pe=-1,Fe=X==null?0:X.length;for(this.clear();++pe<Fe;){var st=X[pe];this.set(st[0],st[1])}}function po(X){var pe=-1,Fe=X==null?0:X.length;for(this.clear();++pe<Fe;){var st=X[pe];this.set(st[0],st[1])}}function Gi(X){var pe=-1,Fe=X==null?0:X.length;for(this.clear();++pe<Fe;){var st=X[pe];this.set(st[0],st[1])}}function ps(X){var pe=-1,Fe=X==null?0:X.length;for(this.__data__=new Gi;++pe<Fe;)this.add(X[pe])}function ho(X){var pe=this.__data__=new po(X);this.size=pe.size}function o1(X,pe){var Fe=Cr(X),st=!Fe&&xm(X),Rn=!Fe&&!st&&da(X),It=!Fe&&!st&&!Rn&&Em(X),Un=Fe||st||Rn||It,lr=Un?function(sr,qr){for(var ha=-1,zr=Array(sr);++ha<sr;)zr[ha]=qr(ha);return zr}(X.length,String):[],pa=lr.length;for(var pr in X)!pe&&!Fa.call(X,pr)||Un&&(pr=="length"||Rn&&(pr=="offset"||pr=="parent")||It&&(pr=="buffer"||pr=="byteLength"||pr=="byteOffset")||fp(pr,pa))||lr.push(pr);return lr}function Xc(X,pe){for(var Fe=X.length;Fe--;)if(_u(X[Fe][0],pe))return Fe;return-1}function Tu(X){return X==null?X===void 0?"[object Undefined]":"[object Null]":fo&&fo in Object(X)?function(pe){var Fe=Fa.call(pe,fo),st=pe[fo];try{pe[fo]=void 0;var Rn=!0}catch{}var It=tp.call(pe);return Rn&&(Fe?pe[fo]=st:delete pe[fo]),It}(X):function(pe){return tp.call(pe)}(X)}function sp(X){return Xo(X)&&Tu(X)==O}function ef(X,pe,Fe,st,Rn){return X===pe||(X==null||pe==null||!Xo(X)&&!Xo(pe)?X!=X&&pe!=pe:function(It,Un,lr,pa,pr,sr){var qr=Cr(It),ha=Cr(Un),zr=qr?"[object Array]":ja(It),Ba=ha?"[object Array]":ja(Un),vs=(zr=zr==O?ne:zr)==ne,nf=(Ba=Ba==O?ne:Ba)==ne,ms=zr==Ba;if(ms&&da(It)){if(!da(Un))return!1;qr=!0,vs=!1}if(ms&&!vs)return sr||(sr=new ho),qr||Em(It)?up(It,Un,lr,pa,pr,sr):function(En,an,rf,vo,dp,qi,mo){switch(rf){case"[object DataView]":if(En.byteLength!=an.byteLength||En.byteOffset!=an.byteOffset)return!1;En=En.buffer,an=an.buffer;case"[object ArrayBuffer]":return!(En.byteLength!=an.byteLength||!qi(new rp(En),new rp(an)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _u(+En,+an);case"[object Error]":return En.name==an.name&&En.message==an.message;case"[object RegExp]":case"[object String]":return En==an+"";case H:var el=rn;case J:var _l=1&vo;if(el||(el=Zt),En.size!=an.size&&!_l)return!1;var Ha=mo.get(En);if(Ha)return Ha==an;vo|=2,mo.set(En,an);var go=up(el(En),el(an),vo,dp,qi,mo);return mo.delete(En),go;case"[object Symbol]":if(Jc)return Jc.call(En)==Jc.call(an)}return!1}(It,Un,zr,lr,pa,pr,sr);if(!(1&lr)){var Mu=vs&&Fa.call(It,"__wrapped__"),wm=nf&&Fa.call(Un,"__wrapped__");if(Mu||wm){var l1=Mu?It.value():It,s1=wm?Un.value():Un;return sr||(sr=new ho),pr(l1,s1,lr,pa,sr)}}return ms?(sr||(sr=new ho),function(En,an,rf,vo,dp,qi){var mo=1&rf,el=Sm(En),_l=el.length,Ha=Sm(an).length;if(_l!=Ha&&!mo)return!1;for(var go=_l;go--;){var yo=el[go];if(!(mo?yo in an:Fa.call(an,yo)))return!1}var kl=qi.get(En);if(kl&&qi.get(an))return kl==an;var af=!0;qi.set(En,an),qi.set(an,En);for(var pp=mo;++go<_l;){yo=el[go];var of=En[yo],lf=an[yo];if(vo)var Cm=mo?vo(lf,of,yo,an,En,qi):vo(of,lf,yo,En,an,qi);if(!(Cm===void 0?of===lf||dp(of,lf,rf,vo,qi):Cm)){af=!1;break}pp||(pp=yo=="constructor")}if(af&&!pp){var Ru=En.constructor,sf=an.constructor;Ru==sf||!("constructor"in En)||!("constructor"in an)||typeof Ru=="function"&&Ru instanceof Ru&&typeof sf=="function"&&sf instanceof sf||(af=!1)}return qi.delete(En),qi.delete(an),af}(It,Un,lr,pa,pr,sr)):!1}(X,pe,Fe,st,ef,Rn))}function ym(X){return!(!tf(X)||function(pe){return!!Eu&&Eu in pe}(X))&&(tr(X)?qc:te).test(Tl(X))}function bm(X){if(Fe=(pe=X)&&pe.constructor,st=typeof Fe=="function"&&Fe.prototype||Gr,pe!==st)return op(X);var pe,Fe,st,Rn=[];for(var It in Object(X))Fa.call(X,It)&&It!="constructor"&&Rn.push(It);return Rn}function up(X,pe,Fe,st,Rn,It){var Un=1&Fe,lr=X.length,pa=pe.length;if(lr!=pa&&!(Un&&pa>lr))return!1;var pr=It.get(X);if(pr&&It.get(pe))return pr==pe;var sr=-1,qr=!0,ha=2&Fe?new ps:void 0;for(It.set(X,pe),It.set(pe,X);++sr<lr;){var zr=X[sr],Ba=pe[sr];if(st)var vs=Un?st(Ba,zr,sr,pe,X,It):st(zr,Ba,sr,X,pe,It);if(vs!==void 0){if(vs)continue;qr=!1;break}if(ha){if(!yt(pe,function(nf,ms){if(Mu=ms,!ha.has(Mu)&&(zr===nf||Rn(zr,nf,Fe,st,It)))return ha.push(ms);var Mu})){qr=!1;break}}else if(zr!==Ba&&!Rn(zr,Ba,Fe,st,It)){qr=!1;break}}return It.delete(X),It.delete(pe),qr}function Sm(X){return function(pe,Fe,st){var Rn=Fe(pe);return Cr(pe)?Rn:function(It,Un){for(var lr=-1,pa=Un.length,pr=It.length;++lr<pa;)It[pr+lr]=Un[lr];return It}(Rn,st(pe))}(X,ku,cp)}function Yi(X,pe){var Fe,st,Rn=X.__data__;return((st=typeof(Fe=pe))=="string"||st=="number"||st=="symbol"||st=="boolean"?Fe!=="__proto__":Fe===null)?Rn[typeof pe=="string"?"string":"hash"]:Rn.map}function hs(X,pe){var Fe=function(st,Rn){return st==null?void 0:st[Rn]}(X,pe);return ym(Fe)?Fe:void 0}Jo.prototype.clear=function(){this.__data__=ds?ds(null):{},this.size=0},Jo.prototype.delete=function(X){var pe=this.has(X)&&delete this.__data__[X];return this.size-=pe?1:0,pe},Jo.prototype.get=function(X){var pe=this.__data__;if(ds){var Fe=pe[X];return Fe==="__lodash_hash_undefined__"?void 0:Fe}return Fa.call(pe,X)?pe[X]:void 0},Jo.prototype.has=function(X){var pe=this.__data__;return ds?pe[X]!==void 0:Fa.call(pe,X)},Jo.prototype.set=function(X,pe){var Fe=this.__data__;return this.size+=this.has(X)?0:1,Fe[X]=ds&&pe===void 0?"__lodash_hash_undefined__":pe,this},po.prototype.clear=function(){this.__data__=[],this.size=0},po.prototype.delete=function(X){var pe=this.__data__,Fe=Xc(pe,X);return!(Fe<0)&&(Fe==pe.length-1?pe.pop():hm.call(pe,Fe,1),--this.size,!0)},po.prototype.get=function(X){var pe=this.__data__,Fe=Xc(pe,X);return Fe<0?void 0:pe[Fe][1]},po.prototype.has=function(X){return Xc(this.__data__,X)>-1},po.prototype.set=function(X,pe){var Fe=this.__data__,st=Xc(Fe,X);return st<0?(++this.size,Fe.push([X,pe])):Fe[st][1]=pe,this},Gi.prototype.clear=function(){this.size=0,this.__data__={hash:new Jo,map:new(Cu||po),string:new Jo}},Gi.prototype.delete=function(X){var pe=Yi(this,X).delete(X);return this.size-=pe?1:0,pe},Gi.prototype.get=function(X){return Yi(this,X).get(X)},Gi.prototype.has=function(X){return Yi(this,X).has(X)},Gi.prototype.set=function(X,pe){var Fe=Yi(this,X),st=Fe.size;return Fe.set(X,pe),this.size+=Fe.size==st?0:1,this},ps.prototype.add=ps.prototype.push=function(X){return this.__data__.set(X,"__lodash_hash_undefined__"),this},ps.prototype.has=function(X){return this.__data__.has(X)},ho.prototype.clear=function(){this.__data__=new po,this.size=0},ho.prototype.delete=function(X){var pe=this.__data__,Fe=pe.delete(X);return this.size=pe.size,Fe},ho.prototype.get=function(X){return this.__data__.get(X)},ho.prototype.has=function(X){return this.__data__.has(X)},ho.prototype.set=function(X,pe){var Fe=this.__data__;if(Fe instanceof po){var st=Fe.__data__;if(!Cu||st.length<199)return st.push([X,pe]),this.size=++Fe.size,this;Fe=this.__data__=new Gi(st)}return Fe.set(X,pe),this.size=Fe.size,this};var cp=ap?function(X){return X==null?[]:(X=Object(X),function(pe,Fe){for(var st=-1,Rn=pe==null?0:pe.length,It=0,Un=[];++st<Rn;){var lr=pe[st];Fe(lr,st,pe)&&(Un[It++]=lr)}return Un}(ap(X),function(pe){return ip.call(X,pe)}))}:function(){return[]},ja=Tu;function fp(X,pe){return!!(pe=pe??9007199254740991)&&(typeof X=="number"||Re.test(X))&&X>-1&&X%1==0&&X<pe}function Tl(X){if(X!=null){try{return pm.call(X)}catch{}try{return X+""}catch{}}return""}function _u(X,pe){return X===pe||X!=X&&pe!=pe}(Zc&&ja(new Zc(new ArrayBuffer(1)))!="[object DataView]"||Cu&&ja(new Cu)!=H||lp&&ja(lp.resolve())!="[object Promise]"||Lu&&ja(new Lu)!=J||Qc&&ja(new Qc)!="[object WeakMap]")&&(ja=function(X){var pe=Tu(X),Fe=pe==ne?X.constructor:void 0,st=Fe?Tl(Fe):"";if(st)switch(st){case mm:return"[object DataView]";case gm:return H;case i1:return"[object Promise]";case a1:return J;case Yr:return"[object WeakMap]"}return pe});var xm=sp(function(){return arguments}())?sp:function(X){return Xo(X)&&Fa.call(X,"callee")&&!ip.call(X,"callee")},Cr=Array.isArray,da=vm||function(){return!1};function tr(X){if(!tf(X))return!1;var pe=Tu(X);return pe=="[object Function]"||pe=="[object GeneratorFunction]"||pe=="[object AsyncFunction]"||pe=="[object Proxy]"}function Ua(X){return typeof X=="number"&&X>-1&&X%1==0&&X<=9007199254740991}function tf(X){var pe=typeof X;return X!=null&&(pe=="object"||pe=="function")}function Xo(X){return X!=null&&typeof X=="object"}var Em=Ie?function(X){return function(pe){return X(pe)}}(Ie):function(X){return Xo(X)&&Ua(X.length)&&!!me[Tu(X)]};function ku(X){return(pe=X)!=null&&Ua(pe.length)&&!tr(pe)?o1(X):bm(X);var pe}m.exports=function(X,pe){return ef(X,pe)}}),Xd={Polygon:Ne,LineString:kn,Point:_n,MultiPolygon:pt,MultiLineString:pt,MultiPoint:pt};function Gc(m,S){return S.modes=V,S.getFeatureIdsAt=function(O){return qt.click({point:O},null,m).map(function(H){return H.properties.id})},S.getSelectedIds=function(){return m.store.getSelectedIds()},S.getSelected=function(){return{type:Y,features:m.store.getSelectedIds().map(function(O){return m.store.get(O)}).map(function(O){return O.toGeoJSON()})}},S.getSelectedPoints=function(){return{type:Y,features:m.store.getSelectedCoordinates().map(function(O){return{type:K,properties:{},geometry:{type:Le,coordinates:O.coordinates}}})}},S.set=function(O){if(O.type===void 0||O.type!==Y||!Array.isArray(O.features))throw new Error("Invalid FeatureCollection");var H=m.store.createRenderBatch(),ne=m.store.getAllIds().slice(),J=S.add(O),te=new pn(J);return(ne=ne.filter(function(Re){return!te.has(Re)})).length&&S.delete(ne),H(),J},S.add=function(O){var H=JSON.parse(JSON.stringify(Yt(O))).features.map(function(ne){if(ne.id=ne.id||vn(),ne.geometry===null)throw new Error("Invalid geometry: null");if(m.store.get(ne.id)===void 0||m.store.get(ne.id).type!==ne.geometry.type){var J=Xd[ne.geometry.type];if(J===void 0)throw new Error("Invalid geometry type: "+ne.geometry.type+".");var te=new J(m,ne);m.store.add(te)}else{var Re=m.store.get(ne.id);Re.properties=ne.properties,Qo(Re.getCoordinates(),ne.geometry.coordinates)||Re.incomingCoords(ne.geometry.coordinates)}return ne.id});return m.store.render(),H},S.get=function(O){var H=m.store.get(O);if(H)return H.toGeoJSON()},S.getAll=function(){return{type:Y,features:m.store.getAll().map(function(O){return O.toGeoJSON()})}},S.delete=function(O){return m.store.delete(O,{silent:!0}),S.getMode()!==V.DIRECT_SELECT||m.store.getSelectedIds().length?m.store.render():m.events.changeMode(V.SIMPLE_SELECT,void 0,{silent:!0}),S},S.deleteAll=function(){return m.store.delete(m.store.getAllIds(),{silent:!0}),S.getMode()===V.DIRECT_SELECT?m.events.changeMode(V.SIMPLE_SELECT,void 0,{silent:!0}):m.store.render(),S},S.changeMode=function(O,H){return H===void 0&&(H={}),O===V.SIMPLE_SELECT&&S.getMode()===V.SIMPLE_SELECT?(ne=H.featureIds||[],J=m.store.getSelectedIds(),ne.length===J.length&&JSON.stringify(ne.map(function(te){return te}).sort())===JSON.stringify(J.map(function(te){return te}).sort())||(m.store.setSelected(H.featureIds,{silent:!0}),m.store.render()),S):(O===V.DIRECT_SELECT&&S.getMode()===V.DIRECT_SELECT&&H.featureId===m.store.getSelectedIds()[0]||m.events.changeMode(O,H,{silent:!0}),S);var ne,J},S.getMode=function(){return m.events.getMode()},S.trash=function(){return m.events.trash({silent:!0}),S},S.combineFeatures=function(){return m.events.combineFeatures({silent:!0}),S},S.uncombineFeatures=function(){return m.events.uncombineFeatures({silent:!0}),S},S.setFeatureProperty=function(O,H,ne){return m.store.setFeatureProperty(O,H,ne),S},S}var r1=function(m,S){var O={options:m=function(ne){ne===void 0&&(ne={});var J=Wr(ne);return ne.controls||(J.controls={}),ne.displayControlsDefault===!1?J.controls=Wr(Jd,ne.controls):J.controls=Wr(n1,ne.controls),(J=Wr(t1,J)).styles=Wc(J.styles,"cold").concat(Wc(J.styles,"hot")),J}(m)};S=Gc(O,S),O.api=S;var H=so(O);return S.onAdd=H.onAdd,S.onRemove=H.onRemove,S.types=W,S.options=m,S};function Yc(m){r1(m,this)}return Yc.modes=Kd,Yc})});var G9=ln(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0});var XG=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);Vv.cssPropertyAlias=function(e){return XG.get(e)},Vv.cssPropertyPrefixFlags=function(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl))|(tab-|column(?!-s)|text-align-l)|(ap)|(u|hy))/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0},Vv.cssValuePrefixFlags=function(e,t){var a=/^(?:(pos)|(cli)|(background-i)|((?:max-|min-)?(?:block-s|inl|he|widt))|(dis))/i.exec(e);return a?a[1]?/^sti/i.test(t)?1:0:a[2]?/^pat/i.test(t)?1:0:a[3]?/^image-/i.test(t)?1:0:a[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}});var MD=ln(k2=>{var eY=Object.create,fb=Object.defineProperty,tY=Object.getPrototypeOf,rD=Object.prototype.hasOwnProperty,nY=Object.getOwnPropertyNames,rY=Object.getOwnPropertyDescriptor,Y9=Object.getOwnPropertySymbols,iY=Object.prototype.propertyIsEnumerable,at=Object.assign,iD=e=>fb(e,"__esModule",{value:!0}),aY=(e,t)=>{var a={};for(var o in e)rD.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&Y9)for(var o of Y9(e))t.indexOf(o)<0&&iY.call(e,o)&&(a[o]=e[o]);return a},oY=(e,t)=>{for(var a in t)fb(e,a,{get:t[a],enumerable:!0})},lY=(e,t,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of nY(t))!rD.call(e,o)&&o!=="default"&&fb(e,o,{get:()=>t[o],enumerable:!(a=rY(t,o))||a.enumerable});return e},aD=e=>lY(iD(fb(e!=null?eY(tY(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);iD(k2);oY(k2,{apply:()=>dD,autoprefix:()=>SD,create:()=>kD,cssomSheet:()=>mD,directive:()=>_2,expandGroups:()=>VY,hash:()=>ab,mode:()=>pb,noprefix:()=>El,setup:()=>HY,silent:()=>bD,strict:()=>yD,theme:()=>LY,tw:()=>BY,voidSheet:()=>gD,warn:()=>w2});var sY=aD(Ka("url")),kne=(0,sY.pathToFileURL)(__filename),Jn=(e,t)=>!!~e.indexOf(t),tn=(e,t="-")=>e.join(t),y2=(e,t)=>tn(e.filter(Boolean),t),en=(e,t=1)=>e.slice(t),uY=e=>e,oD=()=>{},ls=e=>e[0].toUpperCase()+en(e),C2=e=>e.replace(/[A-Z]/g,"-$&").toLowerCase(),Mc=(e,t)=>{for(;typeof e=="function";)e=e(t);return e},lD=(e,t)=>{e.size>t&&e.delete(e.keys().next().value)},sD=(e,t)=>!Jn("@:&",e[0])&&(Jn("rg",(typeof t)[5])||Array.isArray(t)),L2=(e,t,a)=>t?Object.keys(t).reduce((o,s)=>{let f=Mc(t[s],a);return sD(s,f)?o[C2(s)]=f:o[s]=s[0]=="@"&&Jn("figa",s[1])?(o[s]||[]).concat(f):L2(o[s]||{},f,a),o},e):e,uD=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& ")),db=e=>(Array.isArray(e)||(e=[e]),"@media "+tn(e.map(t=>(typeof t=="string"&&(t={min:t}),t.raw||tn(Object.keys(t).map(a=>`(${a}-width:${t[a]})`)," and "))),",")),ab=e=>{for(var t=9,a=e.length;a--;)t=Math.imul(t^e.charCodeAt(a),1597334677);return"tw-"+((t^t>>>9)>>>0).toString(36)},cY=(e,t)=>{for(var a=0,o=e.length;a<o;){let s=o+a>>1;e[s]<=t?a=s+1:o=s}return o},ss,Pd,hu=(e="")=>(ss.push(e),""),T2=e=>{ss.length=Math.max(ss.lastIndexOf("")+~~e,0)},fY=e=>e&&!Jn("!:",e[0]),dY=e=>e[0]==":",cD=(e,t)=>{Pd.push({v:ss.filter(dY),d:e,n:t,i:Jn(ss,"!"),$:""})},q9=e=>{let t=e[0]=="-";t&&(e=en(e));let a=tn(ss.filter(fY));return cD(e=="&"?a:(a&&a+"-")+e,t),""},qv=(e,t)=>{let a="";for(let o,s=!1,f=0;o=e[f++];){if(s||o=="["){a+=o,s=o!="]";continue}switch(o){case":":a=a&&hu(":"+(e[f]==o?e[f++]:"")+a);break;case"(":a=a&&hu(a),hu();break;case"!":hu(o);break;case")":case" ":case" ":case`
127
+ `:case"\r":a=a&&q9(a),T2(o!==")");break;default:a+=o}}a&&(t?hu(":"+a):a.slice(-1)=="-"?hu(a.slice(0,-1)):q9(a))},fD=e=>{hu(),sb(e),T2()},pY=(e,t)=>{if(t){hu();let a=Jn("tbu",(typeof t)[1]);qv(e,a),a&&fD(t),T2()}},sb=e=>{switch(typeof e){case"string":qv(e);break;case"function":cD(e);break;case"object":Array.isArray(e)?e.forEach(fD):e&&Object.keys(e).forEach(t=>{pY(t,e[t])})}},Z9=new WeakMap,hY=e=>{let t=Z9.get(e);if(!t){let a=NaN,o="";t=e.map((s,f)=>{if(a!==a&&(s.slice(-1)=="["||Jn(":-(",(e[f+1]||"")[0]))&&(a=f),f>=a)return g=>{f==a&&(o=""),o+=s,Jn("rg",(typeof g)[5])?o+=g:g&&(qv(o),o="",sb(g)),f==e.length-1&&qv(o)};let p=Pd=[];qv(s);let h=[...ss];return Pd=[],g=>{Pd.push(...p),ss=[...h],g&&sb(g)}}),Z9.set(e,t)}return t},ub=e=>(ss=[],Pd=[],Array.isArray(e[0])&&Array.isArray(e[0].raw)?hY(e[0]).forEach((t,a)=>t(e[a+1])):sb(e),Pd),b2,vY=(e,t)=>(typeof t=="function"&&(b2=!1),t),mY=e=>{b2=!0;let t=JSON.stringify(e,vY);return b2&&t},Q9=new WeakMap,_2=(e,t)=>{let a=mY(t),o;if(a){var s=Q9.get(e);s||Q9.set(e,s=new Map),o=s.get(a)}return o||(o=Object.defineProperty((f,p)=>(p=Array.isArray(f)?p:f,Mc(e(t,p),p)),"toJSON",{value:()=>a||t}),s&&(s.set(a,o),lD(s,1e4))),o},gY=(e,{css:t})=>t(ub(e)),dD=(...e)=>_2(gY,e),pD=e=>(t,a,o,s)=>{if(t){let f=a&&e(a);if(f&&f.length>0)return f.reduce((p,h)=>(p[y2([o,h,s])]=t,p),{})}},yY=pD(e=>({t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-left","bottom-right"],l:["bottom-left","top-left"],tl:["top-left"],tr:["top-right"],bl:["bottom-left"],br:["bottom-right"]})[e]),ob=e=>{let t=({x:"lr",y:"tb"}[e]||e||"").split("").sort();for(let a=t.length;a--;)if(!(t[a]={t:"top",r:"right",b:"bottom",l:"left"}[t[a]]))return;if(t.length)return t},S2=pD(ob),bY=(e,t)=>e+(t[1]==":"?en(t,2)+":":en(t))+":",x2=(e,t=e.d)=>typeof t=="function"?"":e.v.reduce(bY,"")+(e.i?"!":"")+(e.n?"-":"")+t,Te,kc,Tn,tb=e=>e=="cols"?"columns":"rows",Zv=e=>(t,a,o)=>({[e]:o+((Te=tn(t))&&"-"+Te)}),mr=(e,t)=>(a,o,s)=>(Te=tn(a,t))&&{[e||s]:Te},_i=e=>(t,{theme:a},o)=>(Te=a(e||o,t))&&{[e||o]:Te},nb=(e,t)=>(a,{theme:o},s)=>(Te=o(e||s,a,tn(a,t)))&&{[e||s]:Te},xl=(e,t)=>(a,o)=>e(a,o,t),os=Zv("display"),$v=Zv("position"),Od=Zv("textTransform"),Dd=Zv("textDecoration"),rb=Zv("fontStyle"),du=e=>(t,a,o)=>({["--tw-"+e]:o,fontVariantNumeric:"var(--tw-ordinal,/*!*/ /*!*/) var(--tw-slashed-zero,/*!*/ /*!*/) var(--tw-numeric-figure,/*!*/ /*!*/) var(--tw-numeric-spacing,/*!*/ /*!*/) var(--tw-numeric-fraction,/*!*/ /*!*/)"}),ib=(e,{theme:t},a)=>(Te=t("inset",e))&&{[a]:Te},Yv=(e,t,a,o=a)=>(Te=t(o+"Opacity",en(e)))&&{[`--tw-${a}-opacity`]:Te},d2=(e,t)=>Math.round(parseInt(e,16)*t),cb=(e,t,a)=>e&&e[0]=="#"&&(Te=(e.length-1)/3)&&(Tn=[17,1,.062272][Te-1])?`rgba(${d2(e.substr(1,Te),Tn)},${d2(e.substr(1+Te,Te),Tn)},${d2(e.substr(1+2*Te,Te),Tn)},${t?`var(--tw-${t}${a?","+a:""})`:a||1})`:e,lb=(e,t,a)=>a&&typeof a=="string"?(Te=cb(a,t+"-opacity"))&&Te!==a?{[`--tw-${t}-opacity`]:"1",[e]:[a,Te]}:{[e]:a}:void 0,K9=e=>(Tn=cb(e,"","0"))==Te?"transparent":Tn,J9=(e,{theme:t},a,o,s,f)=>(Te={x:["right","left"],y:["bottom","top"]}[e[0]])&&(Tn=`--tw-${a}-${e[0]}-reverse`)?e[1]=="reverse"?{[Tn]:"1"}:{[Tn]:"0",[y2([s,Te[0],f])]:(kc=t(o,en(e)))&&`calc(${kc} * var(${Tn}))`,[y2([s,Te[1],f])]:kc&&[kc,`calc(${kc} * calc(1 - var(${Tn})))`]}:void 0,hD=(e,t)=>t[0]&&{[e]:(Jn("wun",(t[0]||"")[3])?"space-":"")+t[0]},p2=e=>t=>Jn(["start","end"],t[0])?{[e]:"flex-"+t[0]}:hD(e,t),X9=e=>(t,{theme:a})=>{if(Te=a("grid"+ls(e),t,""))return{["grid-"+e]:Te};switch(t[0]){case"span":return t[1]&&{["grid-"+e]:`span ${t[1]} / span ${t[1]}`};case"start":case"end":return(Te=a("grid"+ls(e)+ls(t[0]),en(t),tn(en(t))))&&{[`grid-${e}-${t[0]}`]:Te}}},eD=(e,{theme:t},a)=>{switch(e[0]){case"solid":case"dashed":case"dotted":case"double":case"none":return mr("borderStyle")(e);case"collapse":case"separate":return mr("borderCollapse")(e);case"opacity":return Yv(e,t,a)}return(Te=t(a+"Width",e,""))?{borderWidth:Te}:lb("borderColor",a,t(a+"Color",e))},E2=e=>(e?"translate3d(var(--tw-translate-x,0),var(--tw-translate-y,0),0)":"translateX(var(--tw-translate-x,0)) translateY(var(--tw-translate-y,0))")+" rotate(var(--tw-rotate,0)) skewX(var(--tw-skew-x,0)) skewY(var(--tw-skew-y,0)) scaleX(var(--tw-scale-x,1)) scaleY(var(--tw-scale-y,1))",h2=(e,t,a)=>e[0]&&(Te=t.theme(a,e[1]||e[0]))&&{[`--tw-${a}-x`]:e[0]!=="y"&&Te,[`--tw-${a}-y`]:e[0]!=="x"&&Te,transform:[`${a}${e[1]?e[0].toUpperCase():""}(${Te})`,E2()]},vD=e=>(t,a,o)=>o[1]?S2(a.theme(e,t),o[1],e):_i(e)(t,a,o),Tc=vD("padding"),_c=vD("margin"),tD=(e,{theme:t},a)=>(Te={w:"width",h:"height"}[e[0]])&&{[Te=`${a}${ls(Te)}`]:t(Te,en(e))},Ho=(e,{theme:t},a)=>{let o=a.split("-"),s=o[0]=="backdrop"?o[0]+"-":"";if(s||e.unshift(...o),e[0]=="filter"){let f=["blur","brightness","contrast","grayscale","hue-rotate","invert",s&&"opacity","saturate","sepia",!s&&"drop-shadow"].filter(Boolean);return e[1]=="none"?{[s+"filter"]:"none"}:f.reduce((p,h)=>(p["--tw-"+s+h]="var(--tw-empty,/*!*/ /*!*/)",p),{[s+"filter"]:f.map(p=>`var(--tw-${s}${p})`).join(" ")})}return Tn=e.shift(),Jn(["hue","drop"],Tn)&&(Tn+=ls(e.shift())),(Te=t(s?"backdrop"+ls(Tn):Tn,e))&&{["--tw-"+s+Tn]:(Array.isArray(Te)?Te:[Te]).map(f=>`${C2(Tn)}(${f})`).join(" ")}},SY={group:(e,{tag:t},a)=>t(tn([a,...e])),hidden:xl(os,"none"),inline:os,block:os,contents:os,flow:os,table:(e,t,a)=>Jn(["auto","fixed"],e[0])?{tableLayout:e[0]}:os(e,t,a),flex(e,t,a){switch(e[0]){case"row":case"col":return{flexDirection:tn(e[0]=="col"?["column",...en(e)]:e)};case"nowrap":case"wrap":return{flexWrap:tn(e)};case"grow":case"shrink":return Te=t.theme("flex"+ls(e[0]),en(e),e[1]||1),Te!=null&&{["flex-"+e[0]]:""+Te}}return(Te=t.theme("flex",e,""))?{flex:Te}:os(e,t,a)},grid(e,t,a){switch(e[0]){case"cols":case"rows":return(Te=t.theme("gridTemplate"+ls(tb(e[0])),en(e),e.length==2&&Number(e[1])?`repeat(${e[1]},minmax(0,1fr))`:tn(en(e))))&&{["gridTemplate-"+tb(e[0])]:Te};case"flow":return e.length>1&&{gridAutoFlow:tn(e[1]=="col"?["column",...en(e,2)]:en(e)," ")}}return os(e,t,a)},auto:(e,{theme:t})=>Jn(["cols","rows"],e[0])&&(Te=t("gridAuto"+ls(tb(e[0])),en(e),tn(en(e))))&&{["gridAuto-"+tb(e[0])]:Te},static:$v,fixed:$v,absolute:$v,relative:$v,sticky:$v,visible:{visibility:"visible"},invisible:{visibility:"hidden"},antialiased:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},"subpixel-antialiased":{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"},truncate:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"},"not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"},resize:e=>({resize:{x:"horizontal",y:"vertical"}[e[0]]||e[0]||"both"}),box:e=>e[0]&&{boxSizing:e[0]+"-box"},appearance:mr(),cursor:nb(),float:mr(),clear:mr(),decoration:mr("boxDecorationBreak"),isolate:{isolation:"isolate"},isolation:mr(),"mix-blend":mr("mixBlendMode"),top:ib,right:ib,bottom:ib,left:ib,inset:(e,{theme:t})=>(Te=ob(e[0]))?S2(t("inset",en(e)),e[0]):(Te=t("inset",e))&&{top:Te,right:Te,bottom:Te,left:Te},underline:Dd,"line-through":Dd,"no-underline":xl(Dd,"none"),"text-underline":xl(Dd,"underline"),"text-no-underline":xl(Dd,"none"),"text-line-through":xl(Dd,"line-through"),uppercase:Od,lowercase:Od,capitalize:Od,"normal-case":xl(Od,"none"),"text-normal-case":xl(Od,"none"),italic:rb,"not-italic":xl(rb,"normal"),"font-italic":xl(rb,"italic"),"font-not-italic":xl(rb,"normal"),font:(e,t,a)=>(Te=t.theme("fontFamily",e,""))?{fontFamily:Te}:_i("fontWeight")(e,t,a),items:e=>e[0]&&{alignItems:Jn(["start","end"],e[0])?"flex-"+e[0]:tn(e)},"justify-self":mr(),"justify-items":mr(),justify:p2("justifyContent"),content:p2("alignContent"),self:p2("alignSelf"),place:e=>e[0]&&hD("place-"+e[0],en(e)),overscroll:e=>e[0]&&{["overscrollBehavior"+(e[1]?"-"+e[0]:"")]:e[1]||e[0]},col:X9("column"),row:X9("row"),duration:_i("transitionDuration"),delay:_i("transitionDelay"),tracking:_i("letterSpacing"),leading:_i("lineHeight"),z:_i("zIndex"),opacity:_i(),ease:_i("transitionTimingFunction"),p:Tc,py:Tc,px:Tc,pt:Tc,pr:Tc,pb:Tc,pl:Tc,m:_c,my:_c,mx:_c,mt:_c,mr:_c,mb:_c,ml:_c,w:_i("width"),h:_i("height"),min:tD,max:tD,fill:_i(),order:_i(),origin:nb("transformOrigin"," "),select:mr("userSelect"),"pointer-events":mr(),align:mr("verticalAlign"),whitespace:mr("whiteSpace"),"normal-nums":{fontVariantNumeric:"normal"},ordinal:du("ordinal"),"slashed-zero":du("slashed-zero"),"lining-nums":du("numeric-figure"),"oldstyle-nums":du("numeric-figure"),"proportional-nums":du("numeric-spacing"),"tabular-nums":du("numeric-spacing"),"diagonal-fractions":du("numeric-fraction"),"stacked-fractions":du("numeric-fraction"),overflow:(e,t,a)=>Jn(["ellipsis","clip"],e[0])?mr("textOverflow")(e):e[1]?{["overflow-"+e[0]]:e[1]}:mr()(e,t,a),transform:e=>e[0]=="none"?{transform:"none"}:{"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1",transform:E2(e[0]=="gpu")},rotate:(e,{theme:t})=>(Te=t("rotate",e))&&{"--tw-rotate":Te,transform:[`rotate(${Te})`,E2()]},scale:h2,translate:h2,skew:h2,gap:(e,t,a)=>(Te={x:"column",y:"row"}[e[0]])?{[Te+"Gap"]:t.theme("gap",en(e))}:_i("gap")(e,t,a),stroke:(e,t,a)=>(Te=t.theme("stroke",e,""))?{stroke:Te}:_i("strokeWidth")(e,t,a),outline:(e,{theme:t})=>(Te=t("outline",e))&&{outline:Te[0],outlineOffset:Te[1]},"break-normal":{wordBreak:"normal",overflowWrap:"normal"},"break-words":{overflowWrap:"break-word"},"break-all":{wordBreak:"break-all"},text(e,{theme:t},a){switch(e[0]){case"left":case"center":case"right":case"justify":return{textAlign:e[0]};case"uppercase":case"lowercase":case"capitalize":return Od([],Te,e[0]);case"opacity":return Yv(e,t,a)}let o=t("fontSize",e,"");return o?typeof o=="string"?{fontSize:o}:at({fontSize:o[0]},typeof o[1]=="string"?{lineHeight:o[1]}:o[1]):lb("color","text",t("textColor",e))},bg(e,{theme:t},a){switch(e[0]){case"fixed":case"local":case"scroll":return mr("backgroundAttachment",",")(e);case"bottom":case"center":case"left":case"right":case"top":return mr("backgroundPosition"," ")(e);case"no":return e[1]=="repeat"&&mr("backgroundRepeat")(e);case"repeat":return Jn("xy",e[1])?mr("backgroundRepeat")(e):{backgroundRepeat:e[1]||e[0]};case"opacity":return Yv(e,t,a,"background");case"clip":case"origin":return e[1]&&{["background-"+e[0]]:e[1]+(e[1]=="text"?"":"-box")};case"blend":return mr("background-blend-mode")(en(e));case"gradient":if(e[1]=="to"&&(Te=ob(e[2])))return{backgroundImage:`linear-gradient(to ${tn(Te," ")},var(--tw-gradient-stops))`}}return(Te=t("backgroundPosition",e,""))?{backgroundPosition:Te}:(Te=t("backgroundSize",e,""))?{backgroundSize:Te}:(Te=t("backgroundImage",e,""))?{backgroundImage:Te}:lb("backgroundColor","bg",t("backgroundColor",e))},from:(e,{theme:t})=>(Te=t("gradientColorStops",e))&&{"--tw-gradient-from":Te,"--tw-gradient-stops":`var(--tw-gradient-from),var(--tw-gradient-to,${K9(Te)})`},via:(e,{theme:t})=>(Te=t("gradientColorStops",e))&&{"--tw-gradient-stops":`var(--tw-gradient-from),${Te},var(--tw-gradient-to,${K9(Te)})`},to:(e,{theme:t})=>(Te=t("gradientColorStops",e))&&{"--tw-gradient-to":Te},border:(e,t,a)=>ob(e[0])?S2(t.theme("borderWidth",en(e)),e[0],"border","width"):eD(e,t,a),divide:(e,t,a)=>(Te=J9(e,t,a,"divideWidth","border","width")||eD(e,t,a))&&{"&>:not([hidden])~:not([hidden])":Te},space:(e,t,a)=>(Te=J9(e,t,a,"space","margin"))&&{"&>:not([hidden])~:not([hidden])":Te},placeholder:(e,{theme:t},a)=>(Te=e[0]=="opacity"?Yv(e,t,a):lb("color","placeholder",t("placeholderColor",e)))&&{"&::placeholder":Te},shadow:(e,{theme:t})=>(Te=t("boxShadow",e))&&{":global":{"*":{"--tw-shadow":"0 0 transparent"}},"--tw-shadow":Te=="none"?"0 0 transparent":Te,boxShadow:[Te,"var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)"]},animate:(e,{theme:t,tag:a})=>{if(Tn=t("animation",e)){let o=Tn.split(" ");return(Te=t("keyframes",o[0],kc={}))!==kc?(Tn=a(o[0]))&&{animation:Tn+" "+tn(en(o)," "),["@keyframes "+Tn]:Te}:{animation:Tn}}},ring(e,{theme:t},a){switch(e[0]){case"inset":return{"--tw-ring-inset":"inset"};case"opacity":return Yv(e,t,a);case"offset":return(Te=t("ringOffsetWidth",en(e),""))?{"--tw-ring-offset-width":Te}:{"--tw-ring-offset-color":t("ringOffsetColor",en(e))}}return(Te=t("ringWidth",e,""))?{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${Te} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)",":global":{"*":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":t("ringOffsetColor","","#fff"),"--tw-ring-color":cb(t("ringColor","","#93c5fd"),"ring-opacity",t("ringOpacity","","0.5")),"--tw-ring-offset-shadow":"0 0 transparent","--tw-ring-shadow":"0 0 transparent"}}}:{"--tw-ring-opacity":"1","--tw-ring-color":cb(t("ringColor",e),"ring-opacity")}},object:(e,t,a)=>Jn(["contain","cover","fill","none","scale-down"],tn(e))?{objectFit:tn(e)}:nb("objectPosition"," ")(e,t,a),list:(e,t,a)=>tn(e)=="item"?os(e,t,a):Jn(["inside","outside"],tn(e))?{listStylePosition:e[0]}:nb("listStyleType")(e,t,a),rounded:(e,t,a)=>yY(t.theme("borderRadius",en(e),""),e[0],"border","radius")||_i("borderRadius")(e,t,a),"transition-none":{transitionProperty:"none"},transition:(e,{theme:t})=>({transitionProperty:t("transitionProperty",e),transitionTimingFunction:t("transitionTimingFunction",""),transitionDuration:t("transitionDuration","")}),container:(e,{theme:t})=>{let{screens:a=t("screens"),center:o,padding:s}=t("container"),f=p=>(Te=s&&(typeof s=="string"?s:s[p]||s.DEFAULT))?{paddingRight:Te,paddingLeft:Te}:{};return Object.keys(a).reduce((p,h)=>((Tn=a[h])&&typeof Tn=="string"&&(p[db(Tn)]={"&":at({"max-width":Tn},f(h))}),p),at(at({width:"100%"},o?{marginRight:"auto",marginLeft:"auto"}:{}),f("xs")))},filter:Ho,blur:Ho,brightness:Ho,contrast:Ho,grayscale:Ho,"hue-rotate":Ho,invert:Ho,saturate:Ho,sepia:Ho,"drop-shadow":Ho,backdrop:Ho},xY=e=>({":root":{tabSize:4},"body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre,fieldset,ol,ul":{margin:"0"},button:{backgroundColor:"transparent",backgroundImage:"none"},'button,[type="button"],[type="reset"],[type="submit"]':{WebkitAppearance:"button"},"button:focus":{outline:["1px dotted","5px auto -webkit-focus-ring-color"]},"fieldset,ol,ul,legend":{padding:"0"},"ol,ul":{listStyle:"none"},html:{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",fontFamily:e("fontFamily.sans","ui-sans-serif,system-ui,sans-serif")},body:{fontFamily:"inherit",lineHeight:"inherit"},"*,::before,::after":{boxSizing:"border-box",border:`0 solid ${e("borderColor.DEFAULT","currentColor")}`},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},img:{borderStyle:"solid"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:"1",color:e("placeholderColor.DEFAULT",e("colors.gray.400","#a1a1aa"))},'button,[role="button"]':{cursor:"pointer"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",margin:"0",padding:"0",lineHeight:"inherit",color:"inherit"},"button,select":{textTransform:"none"},"::-moz-focus-inner":{borderStyle:"none",padding:"0"},":-moz-focusring":{outline:"1px dotted ButtonText"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},'[type="search"]':{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"abbr[title]":{textDecoration:"underline dotted"},"b,strong":{fontWeight:"bolder"},"pre,code,kbd,samp":{fontFamily:e("fontFamily","mono","ui-monospace,monospace"),fontSize:"1em"},"sub,sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"}}),EY={dark:"@media (prefers-color-scheme:dark)",sticky:"@supports ((position: -webkit-sticky) or (position:sticky))","motion-reduce":"@media (prefers-reduced-motion:reduce)","motion-safe":"@media (prefers-reduced-motion:no-preference)",first:"&:first-child",last:"&:last-child",even:"&:nth-child(2n)",odd:"&:nth-child(odd)",children:"&>*",siblings:"&~*",sibling:"&+*",override:"&&"},nD="__twind",wY=e=>{let t=self[nD];return t||(t=document.head.appendChild(document.createElement("style")),t.id=nD,e&&(t.nonce=e),t.appendChild(document.createTextNode(""))),t},mD=({nonce:e,target:t=wY(e).sheet}={})=>{let a=t.cssRules.length;return{target:t,insert:(o,s)=>t.insertRule(o,a+s)}},gD=()=>({target:null,insert:oD}),pb=e=>({unknown(t,a=[],o,s){o||this.report({id:"UNKNOWN_THEME_VALUE",key:t+"."+tn(a)},s)},report(t){var{id:a}=t,o=aY(t,["id"]);return e(`[${a}] ${JSON.stringify(o)}`)}}),w2=pb(e=>console.warn(e)),yD=pb(e=>{throw new Error(e)}),bD=pb(oD),v2=aD(G9()),El=(e,t,a)=>`${e}:${t}${a?" !important":""}`,SD=(e,t,a)=>{let o="",s=(0,v2.cssPropertyAlias)(e);s&&(o+=`${El(s,t,a)};`);let f=(0,v2.cssPropertyPrefixFlags)(e);return f&1&&(o+=`-webkit-${El(e,t,a)};`),f&2&&(o+=`-moz-${El(e,t,a)};`),f&4&&(o+=`-ms-${El(e,t,a)};`),f=(0,v2.cssValuePrefixFlags)(e,t),f&1&&(o+=`${El(e,`-webkit-${t}`,a)};`),f&2&&(o+=`${El(e,`-moz-${t}`,a)};`),f&4&&(o+=`${El(e,`-ms-${t}`,a)};`),o+=El(e,t,a),o},Wv=(e,t)=>{let a={};do for(let o=1;o<e;o++)a[`${o}/${e}`]=Number((o/e*100).toFixed(6))+"%";while(++e<=t);return a},pu=(e,t,a=0)=>{let o={};for(;a<=e;a=a*2||1)o[a]=a+t;return o},sa=(e,t="",a=1,o=0,s=1,f={})=>{for(;o<=e;o+=s)f[o]=o/a+t;return f},$n=e=>t=>t(e),CY=(e,{theme:t})=>t(...e),LY=(...e)=>_2(CY,e),TY={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{transparent:"transparent",current:"currentColor",black:"#000",white:"#fff",gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},yellow:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},green:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},purple:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"}},spacing:at(at(at(at(at({px:"1px",0:"0px"},sa(4,"rem",4,.5,.5)),sa(12,"rem",4,5)),{14:"3.5rem"}),sa(64,"rem",4,16,4)),{72:"18rem",80:"20rem",96:"24rem"}),durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},backdropBlur:$n("blur"),backdropBrightness:$n("brightness"),backdropContrast:$n("contrast"),backdropGrayscale:$n("grayscale"),backdropHueRotate:$n("hueRotate"),backdropInvert:$n("invert"),backdropOpacity:$n("opacity"),backdropSaturate:$n("saturate"),backdropSepia:$n("sepia"),backgroundColor:$n("colors"),backgroundImage:{none:"none"},backgroundOpacity:$n("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:at(at(at({},sa(200,"",100,0,50)),sa(110,"",100,90,5)),{75:"0.75",125:"1.25"}),borderColor:e=>at(at({},e("colors")),{DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:$n("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderWidth:at({DEFAULT:"1px"},pu(8,"px")),boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none"},contrast:at(at({},sa(200,"",100,0,50)),{75:"0.75",125:"1.25"}),divideColor:$n("borderColor"),divideOpacity:$n("borderOpacity"),divideWidth:$n("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:{current:"currentColor"},grayscale:{0:"0",DEFAULT:"100%"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{0:"0",DEFAULT:"100%"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gridTemplateColumns:{},gridTemplateRows:{},gridAutoColumns:{min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gap:$n("spacing"),gradientColorStops:$n("colors"),height:e=>at(at(at({auto:"auto"},e("spacing")),Wv(2,6)),{full:"100%",screen:"100vh"}),inset:e=>at(at(at({auto:"auto"},e("spacing")),Wv(2,4)),{full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:at({none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},sa(10,"rem",4,3)),margin:e=>at({auto:"auto"},e("spacing")),maxHeight:e=>at(at({},e("spacing")),{full:"100%",screen:"100vh"}),maxWidth:(e,{breakpoints:t})=>at({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",prose:"65ch"},t(e("screens"))),minHeight:{0:"0px",full:"100%",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content"},opacity:at(at({},sa(100,"",100,0,10)),{5:"0.05",25:"0.25",75:"0.75",95:"0.95"}),order:at({first:"-9999",last:"9999",none:"0"},sa(12,"",1,1)),outline:{none:["2px solid transparent","2px"],white:["2px dotted white","2px"],black:["2px dotted black","2px"]},padding:$n("spacing"),placeholderColor:$n("colors"),placeholderOpacity:$n("opacity"),ringColor:e=>at({DEFAULT:e("colors.blue.500","#3b82f6")},e("colors")),ringOffsetColor:$n("colors"),ringOffsetWidth:pu(8,"px"),ringOpacity:e=>at({DEFAULT:"0.5"},e("opacity")),ringWidth:at({DEFAULT:"3px"},pu(8,"px")),rotate:at(at(at({},pu(2,"deg")),pu(12,"deg",3)),pu(180,"deg",45)),saturate:sa(200,"",100,0,50),scale:at(at(at({},sa(150,"",100,0,50)),sa(110,"",100,90,5)),{75:"0.75",125:"1.25"}),sepia:{0:"0",DEFAULT:"100%"},skew:at(at({},pu(2,"deg")),pu(12,"deg",3)),space:$n("spacing"),stroke:{current:"currentColor"},strokeWidth:sa(2),textColor:$n("colors"),textOpacity:$n("opacity"),transitionDuration:e=>at({DEFAULT:"150ms"},e("durations")),transitionDelay:$n("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"background-color,border-color,color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:e=>at(at(at({},e("spacing")),Wv(2,4)),{full:"100%"}),width:e=>at(at(at(at({auto:"auto"},e("spacing")),Wv(2,6)),Wv(12,12)),{screen:"100vw",full:"100%",min:"min-content",max:"max-content"}),zIndex:at({auto:"auto"},sa(50,"",1,0,10))},xD=(e,t={},a=[])=>(Object.keys(e).forEach(o=>{let s=e[o];o=="DEFAULT"&&(t[tn(a)]=s,t[tn(a,".")]=s);let f=[...a,o];t[tn(f)]=s,t[tn(f,".")]=s,s&&typeof s=="object"&&xD(s,t,f)},t),t),_Y={negative:()=>({}),breakpoints:e=>Object.keys(e).filter(t=>typeof e[t]=="string").reduce((t,a)=>(t["screen-"+a]=e[a],t),{})},kY=(e,t)=>(t=t[0]=="["&&t.slice(-1)=="]"&&t.slice(1,-1))&&Jn(e,"olor")==/^(#|(hsl|rgb)a?\(|[a-z]+$)/.test(t)&&(Jn(t,"calc(")?t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "):t),MY=e=>{let t=new Map,a=at(at({},TY),e),o=(f,p)=>{let h=f&&f[p],g=typeof h=="function"?h(s,_Y):h;return g&&p=="colors"?xD(g):g},s=(f,p,h)=>{let g=f.split(".");f=g[0],g.length>1&&(h=p,p=tn(en(g),"."));let y=t.get(f);if(y||(t.set(f,y=at({},o(a,f))),Object.assign(y,o(a.extend,f))),p!=null){p=(Array.isArray(p)?tn(p):p)||"DEFAULT";let w=kY(f,p)||y[p];return w==null?h:Array.isArray(w)&&!Jn(["fontSize","outline","dropShadow"],f)?tn(w,","):w}return y};return s},RY=(e,t)=>(a,o)=>{if(typeof a.d=="function")return a.d(t);let s=a.d.split(/-(?![^[]*])/g);if(!o&&s[0]=="tw"&&a.$==a.d)return a.$;for(let f=s.length;f;f--){let p=tn(s.slice(0,f));if(Object.prototype.hasOwnProperty.call(e,p)){let h=e[p];return typeof h=="function"?h(en(s,f),t,p):typeof h=="string"?t[o?"css":"tw"](h):h}}},Gv,ED=/^:(group(?:(?!-focus).+?)*)-(.+)$/,wD=/^(:not)-(.+)/,CD=e=>e[1]=="["?en(e):e,OY=(e,t,{theme:a,tag:o})=>{let s=(f,p)=>(Gv=a("screens",en(p),""))?{[db(Gv)]:f}:p==":dark"&&e=="class"?{".dark &":f}:(Gv=ED.exec(p))?{[`.${uD(o(Gv[1]))}:${Gv[2]} &`]:f}:{[t[en(p)]||"&"+p.replace(wD,(h,g,y)=>g+"("+CD(":"+y)+")")]:f};return(f,p)=>p.v.reduceRight(s,f)},Hi,LD=e=>(((Hi=/(?:^|min-width: *)(\d+(?:.\d+)?)(p)?/.exec(e))?+Hi[1]/(Hi[2]?15:1)/10:0)&31)<<22,TD=e=>{Hi=0;for(let t=e.length;t--;)Hi+=Jn("-:,",e[t]);return Hi},_D=e=>(TD(e)&15)<<18,DY=["rst","st","en","d","nk","sited","pty","ecked","cus-w","ver","cus","cus-v","tive","sable","ad-on","tiona","quire"],PY=e=>1<<(~(Hi=DY.indexOf(e.replace(ED,":$2").slice(3,8)))?Hi:17),AY=(e,t)=>(a,o)=>a|((Hi=e("screens",en(o),""))?1<<27|LD(db(Hi)):o==":dark"?1<<30:(Hi=t[o]||o.replace(wD,":$2"))[0]=="@"?_D(Hi):PY(o)),NY=e=>e[0]=="-"?0:TD(e)+((Hi=/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.exec(e))?+!!Hi[1]||-!!Hi[2]:0)+1,m2=(e,t)=>t+"{"+e+"}",zY=(e,t,a)=>{let{theme:o,tag:s}=a,f=(C,M)=>"--"+s(M),p=C=>`${C}`.replace(/--(tw-[\w-]+)\b/g,f),h=(C,M,_)=>(C=p(C),Array.isArray(M)?tn(M.filter(Boolean).map(A=>e(C,p(A),_)),";"):e(C,p(M),_)),g,y=(C,M,_,A,I)=>{if(Array.isArray(A)){A.forEach(E=>E&&y(C,M,_,E,I));return}let $="",R=0,D=0;A["@apply"]&&(A=L2(Mc(dD(A["@apply"]),a),at(at({},A),{"@apply":void 0}),a)),Object.keys(A).forEach(E=>{let k=Mc(A[E],a);if(sD(E,k)){if(k!==""&&E.length>1){let F=C2(E);D+=1,R=Math.max(R,NY(F)),$=($&&$+";")+h(F,k,I)}}else if(k)if(E==":global"&&(E="@global"),E[0]=="@")if(E[1]=="g")y([],"",0,k,I);else if(E[1]=="f")y([],E,0,k,I);else if(E[1]=="k"){let F=g.length;y([],"",0,k,I);let U=g.splice(F,g.length-F);g.push({r:m2(tn(U.map(N=>N.r),""),E),p:U.reduce((N,W)=>N+W.p,0)})}else E[1]=="i"?(Array.isArray(k)?k:[k]).forEach(F=>F&&g.push({p:0,r:`${E} ${F};`})):(E[2]=="c"&&(E=db(a.theme("screens",en(E,8).trim()))),y([...C,E],M,_|LD(E)|_D(E),k,I));else y(C,M?M.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(F,U,N)=>E.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(W,K,G)=>(Jn(K,"&")?K.replace(/&/g,U):(U&&U+" ")+K)+G)+N):E,_,k,I)}),D&&g.push({r:C.reduceRight(m2,m2($,M)),p:_*(1<<8)+((Math.max(0,15-D)&15)<<4|(R||15)&15)})},w=AY(o,t);return(C,M,_,A=0)=>(A<<=28,g=[],y([],M?"."+uD(M):"",_?_.v.reduceRight(w,A):A,C,_&&_.i),g)},IY=(e,t,a,o)=>{let s;a((p=[])=>s=p);let f;return a((p=new Set)=>f=p),({r:p,p:h})=>{if(!f.has(p)){f.add(p);let g=cY(s,h);try{e.insert(p,g),s.splice(g,0,h)}catch(y){/:-[mwo]/.test(p)||t.report({id:"INJECT_CSS_ERROR",css:p,error:y},o)}}}},g2=(e,t,a,o=t)=>e===!1?a:e===!0?o:e||t,FY=e=>(typeof e=="string"?{t:yD,a:w2,i:bD}[e[1]]:e)||w2,jY={_:{value:"",writable:!0}},UY=(e={})=>{let t=MY(e.theme),a=FY(e.mode),o=g2(e.hash,!1,!1,ab),s=e.important,f={v:[]},p=0,h=[],g={tw:(...N)=>F(N),theme:(N,W,K)=>{var G;let re=(G=t(N,W,K))!=null?G:a.unknown(N,W==null||Array.isArray(W)?W:W.split("."),K!=null,g);return f.n&&re&&Jn("rg",(typeof re)[5])?`calc(${re} * -1)`:re},tag:N=>o?o(N):N,css:N=>{p++;let W=h.length;try{(typeof N=="string"?ub([N]):N).forEach(k);let K=Object.create(null,jY);for(let G=W;G<h.length;G++){let re=h[G];if(re)switch(typeof re){case"object":L2(K,re,g);break;case"string":K._+=(K._&&" ")+re}}return K}finally{h.length=W,p--}}},y=RY(at(at({},SY),e.plugins),g),w=N=>{let W=f;f=N;try{return Mc(y(N),g)}finally{f=W}},C=at(at({},EY),e.variants),M=OY(e.darkMode||"media",C,g),_=zY(g2(e.prefix,SD,El),C,g),A=e.sheet||(typeof window>"u"?gD():mD(e)),{init:I=N=>N()}=A,$=IY(A,a,I,g),R;I((N=new Map)=>R=N);let D=new WeakMap,E=(N,W)=>N=="_"?void 0:typeof W=="function"?JSON.stringify(Mc(W,g),E):W,k=N=>{!p&&f.v.length&&(N=at(at({},N),{v:[...f.v,...N.v],$:""})),N.$||(N.$=x2(N,D.get(N.d)));let W=p?null:R.get(N.$);if(W==null){let K=w(N);if(N.$||(N.$=ab(JSON.stringify(K,E)),D.set(N.d,N.$),N.$=x2(N,N.$)),K&&typeof K=="object")if(N.v=N.v.map(CD),s&&(N.i=s),K=M(K,N),p)h.push(K);else{let G=typeof N.d=="function"?typeof K._=="string"?1:3:2;W=o||typeof N.d=="function"?(o||ab)(G+N.$):N.$,_(K,W,N,G).forEach($),K._&&(W+=" "+K._)}else typeof K=="string"?W=K:(W=N.$,a.report({id:"UNKNOWN_DIRECTIVE",rule:W},g)),p&&typeof N.d!="function"&&h.push(W);p||(R.set(N.$,W),lD(R,3e4))}return W},F=N=>tn(ub(N).map(k).filter(Boolean)," "),U=g2(e.preflight,uY,!1);if(U){let N=xY(t),W=_(typeof U=="function"?Mc(U(N,g),g)||N:at(at({},N),U));I((K=(W.forEach($),!0))=>K)}return{init:()=>a.report({id:"LATE_SETUP_CALL"},g),process:F}},kD=e=>{let t=f=>(a(),t(f)),a=f=>{({process:t,init:a}=UY(f))};e&&a(e);let o;return{tw:Object.defineProperties((...f)=>t(f),{theme:{get:(f=>()=>(o||t([p=>(o=p,"")]),o[f]))("theme")}}),setup:f=>a(f)}},{tw:BY,setup:HY}=kD(),VY=e=>ub(e).map(t=>x2(t)).join(" ")});var AD=ln((Yne,PD)=>{(function(){function e(E,k){k=k||[];for(var F=k.length,U=0;U<E.length;U++)Array.isArray(E[U])&&Array.isArray(E[U][0])?(e(E[U],k),F=k.length):k[F++]=E[U];return Array.isArray(k[0])?k:[k]}function t(E){return Math.max.apply(null,E.map(function(k){return k[1]}))}function a(E){return Math.max.apply(null,E.map(function(k){return k[0]}))}function o(E){return Math.min.apply(null,E.map(function(k){return k[1]}))}function s(E){return Math.min.apply(null,E.map(function(k){return k[0]}))}function f(E){var k={minLng:s(E),minLat:o(E),maxLng:a(E),maxLat:t(E)};return{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[k.minLng,k.minLat],[k.minLng,k.maxLat],[k.maxLng,k.maxLat],[k.maxLng,k.minLat],[k.minLng,k.minLat]]]}}}function p(E){return[s(E),o(E),a(E),t(E)]}function h(E){for(var k={x:0,y:0},F=0,U=0,N=0,W=0,K=0,G=0,re=0;re<E.length-1;re++)U=E[re][0],N=E[re][1],W=E[re+1][0],K=E[re+1][1],G=U*K-W*N,F+=G,k.x+=(U+W)*G,k.y+=(N+K)*G;return U=E[E.length-1][0],N=E[E.length-1][1],W=E[0][0],K=E[0][1],G=U*K-W*N,F+=G,k.x+=(U+W)*G,k.y+=(N+K)*G,F=F*.5,k.x=k.x/(6*F),k.y=k.y/(6*F),[k.x,k.y]}function g(E){return e(E.geometry.coordinates)}function y(E){return e(E.features.map(g))}function w(E){return e(E.geometries.map(C))}function C(E){if(!E)return[];switch(E.type){case"Feature":return g(E);case"GeometryCollection":return w(E);case"FeatureCollection":return y(E);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiPolygon":case"MultiLineString":return e(E.coordinates);default:return[]}}function M(E){return f(C(E))}function _(E){return p(C(E))}function A(E){return h(C(E))}function I(E){return s(C(E))}function $(E){return a(C(E))}function R(E){return o(C(E))}function D(E){return t(C(E))}PD.exports={envelope:M,extent:_,centroid:A,xMin:I,xMax:$,yMin:R,yMax:D}})()});var ND=ln((qne,hb)=>{var WY=function(){var e={km:6371,mile:3960,meter:6371e3,nmi:3440},t=function(o){return o*Math.PI/180},a=function(o,s){switch(o){case"[lat,lon]":return{latitude:s[0],longitude:s[1]};case"[lon,lat]":return{latitude:s[1],longitude:s[0]};case"{lon,lat}":return{latitude:s.lat,longitude:s.lon};case"{lat,lng}":return{latitude:s.lat,longitude:s.lng};case"geojson":return{latitude:s.geometry.coordinates[1],longitude:s.geometry.coordinates[0]};default:return s}};return function(s,f,p){p=p||{};var h=p.unit in e?e[p.unit]:e.km,g=a(p.format,s),y=a(p.format,f),w=t(y.latitude-g.latitude),C=t(y.longitude-g.longitude),M=t(g.latitude),_=t(y.latitude),A=Math.sin(w/2)*Math.sin(w/2)+Math.sin(C/2)*Math.sin(C/2)*Math.cos(M)*Math.cos(_),I=2*Math.atan2(Math.sqrt(A),Math.sqrt(1-A));return p.threshold?p.threshold>h*I:h*I}}();typeof hb<"u"&&hb.exports&&(hb.exports=WY)});var ID=ln((Zne,vb)=>{"use strict";var zD=AD(),GY=ND();function cn(e){let t;if(e===null||typeof e>"u"){this.minlat=-90,this.minlon=-180,this.maxlat=90,this.maxlon=180;return}if(typeof e.getSouthWest=="function"){let o=e.getSouthWest().wrap(),s=e.getNorthEast().wrap();e={minlat:o.lat,minlon:o.lng,maxlat:s.lat,maxlon:s.lng}}if(e.type==="Feature"){let o;e.geometry.type==="GeometryCollection"?o=e.geometry.geometries.map(f=>{let p=new cn({type:"Feature",geometry:f});return[p.minlon,p.minlat,p.maxlon,p.maxlat]}):["MultiPoint","MultiPolygon","MultiLineString"].includes(e.geometry.type)?o=e.geometry.coordinates.map(f=>zD.extent({type:"Feature",geometry:{type:e.geometry.type.substr(5),coordinates:f}})):o=[zD.extent(e)];let s=o.shift();this.minlat=s[1],this.minlon=s[0],this.maxlat=s[3],this.maxlon=s[2],o.forEach(f=>this.extend({minlat:f[1],minlon:f[0],maxlat:f[3],maxlon:f[2]})),this._wrap();return}else if(e.type==="FeatureCollection"){if(e.features.length===0)return;let o=new cn(e.features[0]);for(let s=1;s<e.features.length;s++)o.extend(e.features[s]);this.minlat=o.minlat,this.minlon=o.minlon,this.maxlat=o.maxlat,this.maxlon=o.maxlon;return}"bounds"in e&&(e=e.bounds),e.lat&&(this.minlat=+e.lat,this.maxlat=+e.lat),e.lon&&(this.minlon=+e.lon,this.maxlon=+e.lon),e.latitude&&(this.minlat=+e.latitude,this.maxlat=+e.latitude,this.minlon=+e.longitude,this.maxlon=+e.longitude),Array.isArray(e)&&(this.minlat=+e[0],this.maxlat=+e[0],this.minlon=+e[1],this.maxlon=+e[1]),e.lng&&(this.minlon=+e.lng,this.maxlon=+e.lng);let a=["minlon","minlat","maxlon","maxlat"];for(let o=0;o<a.length;o++)t=a[o],t in e&&(this[t]=e[t]);this._wrap()}cn.prototype.wrapMaxLon=function(){return this.minlon>this.maxlon?this.maxlon+360:this.maxlon};cn.prototype.wrapMinLon=function(){return this.minlon>this.maxlon?this.minlon-360:this.minlon};cn.prototype._wrap=function(){return(this.minlon<-180||this.minlon>180)&&(this.minlon=(this.minlon+180)%360-180),(this.maxlon<-180||this.maxlon>180)&&(this.maxlon=(this.maxlon+180)%360-180),this};cn.prototype.intersects=function(e){return e instanceof cn||(e=new cn(e)),e.maxlat<this.minlat||e.minlat>this.maxlat?!1:this.wrapMaxLon()>=e.minlon&&this.minlon<=e.wrapMaxLon()||this.maxlon>=e.wrapMinLon()&&this.wrapMinLon()<=e.maxlon};cn.prototype.within=function(e){return e instanceof cn||(e=new cn(e)),e.maxlat<this.maxlat||e.minlat>this.minlat?!1:this.wrapMinLon()>=e.wrapMinLon()&&this.maxlon<=e.maxlon||this.minlon>=e.minlon&&this.wrapMaxLon()<=e.wrapMaxLon()};cn.prototype.toTile=function(){return new cn({minlat:Math.floor(this.minlat*10)/10,minlon:Math.floor(this.minlon*10)/10,maxlat:Math.ceil(this.maxlat*10)/10,maxlon:Math.ceil(this.maxlon*10)/10})};cn.prototype.toLonLatString=function(){return this.minlon+","+this.minlat+","+this.maxlon+","+this.maxlat};cn.prototype.toBBoxString=cn.prototype.toLonLatString;cn.prototype.toLatLonString=function(){return this.minlat+","+this.minlon+","+this.maxlat+","+this.maxlon};cn.prototype.diagonalLength=function(){let e=this.maxlat-this.minlat,t=this.wrapMaxLon()-this.minlon;return Math.sqrt(e*e+t*t)};cn.prototype.diagonalDistance=function(e={}){return GY({latitude:this.minlat,longitude:this.minlon},{latitude:this.maxlat,longitude:this.maxlon},e)};cn.prototype.getCenter=function(){let e=this.maxlat-this.minlat,t=this.wrapMaxLon()-this.minlon,a=this.minlon+t/2;return(a<-180||a>180)&&(a=(a+180)%360-180),{lat:this.minlat+e/2,lon:a}};cn.prototype.getNorth=function(){return this.maxlat};cn.prototype.getSouth=function(){return this.minlat};cn.prototype.getEast=function(){return this.maxlon};cn.prototype.getWest=function(){return this.minlon};cn.prototype.extend=function(e){e instanceof cn||(e=new cn(e)),e.minlat<this.minlat&&(this.minlat=e.minlat),e.maxlat>this.maxlat&&(this.maxlat=e.maxlat);for(let f=-360;f<=360;f+=360)if(e.wrapMaxLon()+f>this.minlon&&e.minlon+f<this.wrapMaxLon()){this.minlon=Math.min(this.minlon,e.minlon+f),this.maxlon=Math.max(this.wrapMaxLon(),e.wrapMaxLon()+f),this._wrap();return}let t=Math.min(this.minlon,e.minlon),a=Math.max(this.minlon,e.minlon),o=Math.max(this.wrapMaxLon(),e.wrapMaxLon()),s=Math.min(this.wrapMaxLon(),e.wrapMaxLon());o-t<s-a+360?(this.minlon=t,this.maxlon=o):(this.minlon=a,this.maxlon=s),this._wrap()};cn.prototype.toGeoJSON=function(){return this.minlon>this.maxlon?{type:"Feature",properties:{},geometry:{type:"MultiPolygon",coordinates:[[[[this.minlon,this.minlat],[180,this.minlat],[180,this.maxlat],[this.minlon,this.maxlat],[this.minlon,this.minlat]]],[[[-180,this.minlat],[this.maxlon,this.minlat],[this.maxlon,this.maxlat],[-180,this.maxlat],[-180,this.minlat]]]]}}:{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[this.minlon,this.minlat],[this.maxlon,this.minlat],[this.maxlon,this.maxlat],[this.minlon,this.maxlat],[this.minlon,this.minlat]]]}}};cn.prototype.toLeaflet=function(e={}){return"shiftWorld"in e||(e.shiftWorld=[0,0]),L.latLngBounds(L.latLng(this.minlat,this.minlon+(this.minlon<0?e.shiftWorld[0]:e.shiftWorld[1])),L.latLng(this.maxlat,this.maxlon+(this.maxlon<0?e.shiftWorld[0]:e.shiftWorld[1])))};typeof vb<"u"&&vb.exports&&(vb.exports=cn);typeof window<"u"&&(window.BoundingBox=cn)});var FD=ln(mb=>{var YY=function(){BITS=[16,8,4,2,1],BASE32="0123456789bcdefghjkmnpqrstuvwxyz",NEIGHBORS={right:{even:"bc01fg45238967deuvhjyznpkmstqrwx"},left:{even:"238967debc01fg45kmstqrwxuvhjyznp"},top:{even:"p0r21436x8zb9dcf5h7kjnmqesgutwvy"},bottom:{even:"14365h7k9dcfesgujnmqp0r2twvyx8zb"}},BORDERS={right:{even:"bcfguvyz"},left:{even:"0145hjnp"},top:{even:"prxz"},bottom:{even:"028b"}},NEIGHBORS.bottom.odd=NEIGHBORS.left.even,NEIGHBORS.top.odd=NEIGHBORS.right.even,NEIGHBORS.left.odd=NEIGHBORS.bottom.even,NEIGHBORS.right.odd=NEIGHBORS.top.even,BORDERS.bottom.odd=BORDERS.left.even,BORDERS.top.odd=BORDERS.right.even,BORDERS.left.odd=BORDERS.bottom.even,BORDERS.right.odd=BORDERS.top.even;var e=function(t,a,o){a&o?t[0]=(t[0]+t[1])/2:t[1]=(t[0]+t[1])/2};return{encodeGeoHash:function(t,a){var o=1,s=0,f=[],p=[],h=0,g=0,y=12;for(geohash="",f[0]=-90,f[1]=90,p[0]=-180,p[1]=180;geohash.length<y;)o?(mid=(p[0]+p[1])/2,a>mid?(g|=BITS[h],p[0]=mid):p[1]=mid):(mid=(f[0]+f[1])/2,t>mid?(g|=BITS[h],f[0]=mid):f[1]=mid),o=!o,h<4?h++:(geohash+=BASE32[g],h=0,g=0);return geohash},decodeGeoHash:function(t){var a=1,o=[],s=[];for(o[0]=-90,o[1]=90,s[0]=-180,s[1]=180,lat_err=90,lon_err=180,i=0;i<t.length;i++)for(c=t[i],cd=BASE32.indexOf(c),j=0;j<5;j++)mask=BITS[j],a?(lon_err/=2,e(s,cd,mask)):(lat_err/=2,e(o,cd,mask)),a=!a;return o[2]=(o[0]+o[1])/2,s[2]=(s[0]+s[1])/2,{latitude:o,longitude:s}},calculateAdjacent:function(t,a){t=t.toLowerCase();var o=t.charAt(t.length-1),s=t.length%2?"odd":"even",f=t.substring(0,t.length-1);return BORDERS[a][s].indexOf(o)!=-1&&(f=calculateAdjacent(f,a)),f+BASE32[NEIGHBORS[a][s].indexOf(o)]}}}();typeof mb>"u"&&(mb={});mb.GeoHash=YY});var d8=ln((Hre,f8)=>{"use strict";var Dq=process.env.NODE_ENV,Pq=function(e,t,a,o,s,f,p,h){if(Dq!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var g;if(t===void 0)g=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var y=[a,o,s,f,p,h],w=0;g=new Error(t.replace(/%s/g,function(){return y[w++]})),g.name="Invariant Violation"}throw g.framesToPop=1,g}};f8.exports=Pq});var h8=ln(Cn=>{"use strict";var $r=typeof Symbol=="function"&&Symbol.for,iT=$r?Symbol.for("react.element"):60103,aT=$r?Symbol.for("react.portal"):60106,wb=$r?Symbol.for("react.fragment"):60107,Cb=$r?Symbol.for("react.strict_mode"):60108,Lb=$r?Symbol.for("react.profiler"):60114,Tb=$r?Symbol.for("react.provider"):60109,_b=$r?Symbol.for("react.context"):60110,oT=$r?Symbol.for("react.async_mode"):60111,kb=$r?Symbol.for("react.concurrent_mode"):60111,Mb=$r?Symbol.for("react.forward_ref"):60112,Rb=$r?Symbol.for("react.suspense"):60113,Aq=$r?Symbol.for("react.suspense_list"):60120,Ob=$r?Symbol.for("react.memo"):60115,Db=$r?Symbol.for("react.lazy"):60116,Nq=$r?Symbol.for("react.block"):60121,zq=$r?Symbol.for("react.fundamental"):60117,Iq=$r?Symbol.for("react.responder"):60118,Fq=$r?Symbol.for("react.scope"):60119;function Na(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case iT:switch(e=e.type,e){case oT:case kb:case wb:case Lb:case Cb:case Rb:return e;default:switch(e=e&&e.$$typeof,e){case _b:case Mb:case Db:case Ob:case Tb:return e;default:return t}}case aT:return t}}}function p8(e){return Na(e)===kb}Cn.AsyncMode=oT;Cn.ConcurrentMode=kb;Cn.ContextConsumer=_b;Cn.ContextProvider=Tb;Cn.Element=iT;Cn.ForwardRef=Mb;Cn.Fragment=wb;Cn.Lazy=Db;Cn.Memo=Ob;Cn.Portal=aT;Cn.Profiler=Lb;Cn.StrictMode=Cb;Cn.Suspense=Rb;Cn.isAsyncMode=function(e){return p8(e)||Na(e)===oT};Cn.isConcurrentMode=p8;Cn.isContextConsumer=function(e){return Na(e)===_b};Cn.isContextProvider=function(e){return Na(e)===Tb};Cn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===iT};Cn.isForwardRef=function(e){return Na(e)===Mb};Cn.isFragment=function(e){return Na(e)===wb};Cn.isLazy=function(e){return Na(e)===Db};Cn.isMemo=function(e){return Na(e)===Ob};Cn.isPortal=function(e){return Na(e)===aT};Cn.isProfiler=function(e){return Na(e)===Lb};Cn.isStrictMode=function(e){return Na(e)===Cb};Cn.isSuspense=function(e){return Na(e)===Rb};Cn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wb||e===kb||e===Lb||e===Cb||e===Rb||e===Aq||typeof e=="object"&&e!==null&&(e.$$typeof===Db||e.$$typeof===Ob||e.$$typeof===Tb||e.$$typeof===_b||e.$$typeof===Mb||e.$$typeof===zq||e.$$typeof===Iq||e.$$typeof===Fq||e.$$typeof===Nq)};Cn.typeOf=Na});var v8=ln(Ln=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,f=e?Symbol.for("react.profiler"):60114,p=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,g=e?Symbol.for("react.async_mode"):60111,y=e?Symbol.for("react.concurrent_mode"):60111,w=e?Symbol.for("react.forward_ref"):60112,C=e?Symbol.for("react.suspense"):60113,M=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,A=e?Symbol.for("react.lazy"):60116,I=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function E(Ae){return typeof Ae=="string"||typeof Ae=="function"||Ae===o||Ae===y||Ae===f||Ae===s||Ae===C||Ae===M||typeof Ae=="object"&&Ae!==null&&(Ae.$$typeof===A||Ae.$$typeof===_||Ae.$$typeof===p||Ae.$$typeof===h||Ae.$$typeof===w||Ae.$$typeof===$||Ae.$$typeof===R||Ae.$$typeof===D||Ae.$$typeof===I)}function k(Ae){if(typeof Ae=="object"&&Ae!==null){var Lt=Ae.$$typeof;switch(Lt){case t:var tt=Ae.type;switch(tt){case g:case y:case o:case f:case s:case C:return tt;default:var fn=tt&&tt.$$typeof;switch(fn){case h:case w:case A:case _:case p:return fn;default:return Lt}}case a:return Lt}}}var F=g,U=y,N=h,W=p,K=t,G=w,re=o,Le=A,Y=_,ue=a,xe=f,Pe=s,ke=C,V=!1;function Q(Ae){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),le(Ae)||k(Ae)===g}function le(Ae){return k(Ae)===y}function ge(Ae){return k(Ae)===h}function ve(Ae){return k(Ae)===p}function de(Ae){return typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===t}function ie(Ae){return k(Ae)===w}function Oe(Ae){return k(Ae)===o}function je(Ae){return k(Ae)===A}function we(Ae){return k(Ae)===_}function ut(Ae){return k(Ae)===a}function Je(Ae){return k(Ae)===f}function Ve(Ae){return k(Ae)===s}function _t(Ae){return k(Ae)===C}Ln.AsyncMode=F,Ln.ConcurrentMode=U,Ln.ContextConsumer=N,Ln.ContextProvider=W,Ln.Element=K,Ln.ForwardRef=G,Ln.Fragment=re,Ln.Lazy=Le,Ln.Memo=Y,Ln.Portal=ue,Ln.Profiler=xe,Ln.StrictMode=Pe,Ln.Suspense=ke,Ln.isAsyncMode=Q,Ln.isConcurrentMode=le,Ln.isContextConsumer=ge,Ln.isContextProvider=ve,Ln.isElement=de,Ln.isForwardRef=ie,Ln.isFragment=Oe,Ln.isLazy=je,Ln.isMemo=we,Ln.isPortal=ut,Ln.isProfiler=Je,Ln.isStrictMode=Ve,Ln.isSuspense=_t,Ln.isValidElementType=E,Ln.typeOf=k}()});var sT=ln((eie,lT)=>{"use strict";process.env.NODE_ENV==="production"?lT.exports=h8():lT.exports=v8()});var y8=ln((tie,g8)=>{"use strict";var m8=Object.getOwnPropertySymbols,jq=Object.prototype.hasOwnProperty,Uq=Object.prototype.propertyIsEnumerable;function Bq(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Hq(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;var o=Object.getOwnPropertyNames(t).map(function(f){return t[f]});if(o.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(f){s[f]=f}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}g8.exports=Hq()?Object.assign:function(e,t){for(var a,o=Bq(e),s,f=1;f<arguments.length;f++){a=Object(arguments[f]);for(var p in a)jq.call(a,p)&&(o[p]=a[p]);if(m8){s=m8(a);for(var h=0;h<s.length;h++)Uq.call(a,s[h])&&(o[s[h]]=a[s[h]])}}return o}});var Pb=ln((nie,b8)=>{"use strict";var Vq="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";b8.exports=Vq});var uT=ln((rie,S8)=>{S8.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var L8=ln((iie,C8)=>{"use strict";var cT=function(){};process.env.NODE_ENV!=="production"&&(x8=Pb(),Ab={},E8=uT(),cT=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});var x8,Ab,E8;function w8(e,t,a,o,s){if(process.env.NODE_ENV!=="production"){for(var f in e)if(E8(e,f)){var p;try{if(typeof e[f]!="function"){var h=Error((o||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=e[f](t,f,o,a,null,x8)}catch(y){p=y}if(p&&!(p instanceof Error)&&cT((o||"React class")+": type specification of "+a+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in Ab)){Ab[p.message]=!0;var g=s?s():"";cT("Failed "+a+" type: "+p.message+(g??""))}}}}w8.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Ab={})};C8.exports=w8});var k8=ln((aie,_8)=>{"use strict";var $q=sT(),Wq=y8(),jd=Pb(),fT=uT(),T8=L8(),Ud=function(){};process.env.NODE_ENV!=="production"&&(Ud=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});function Nb(){return null}_8.exports=function(e,t){var a=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function s(Y){var ue=Y&&(a&&Y[a]||Y[o]);if(typeof ue=="function")return ue}var f="<<anonymous>>",p={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:C(),arrayOf:M,element:_(),elementType:A(),instanceOf:I,node:E(),objectOf:R,oneOf:$,oneOfType:D,shape:F,exact:U};function h(Y,ue){return Y===ue?Y!==0||1/Y===1/ue:Y!==Y&&ue!==ue}function g(Y,ue){this.message=Y,this.data=ue&&typeof ue=="object"?ue:{},this.stack=""}g.prototype=Error.prototype;function y(Y){if(process.env.NODE_ENV!=="production")var ue={},xe=0;function Pe(V,Q,le,ge,ve,de,ie){if(ge=ge||f,de=de||le,ie!==jd){if(t){var Oe=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Oe.name="Invariant Violation",Oe}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var je=ge+":"+le;!ue[je]&&xe<3&&(Ud("You are manually calling a React.PropTypes validation function for the `"+de+"` prop on `"+ge+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ue[je]=!0,xe++)}}return Q[le]==null?V?Q[le]===null?new g("The "+ve+" `"+de+"` is marked as required "+("in `"+ge+"`, but its value is `null`.")):new g("The "+ve+" `"+de+"` is marked as required in "+("`"+ge+"`, but its value is `undefined`.")):null:Y(Q,le,ge,ve,de)}var ke=Pe.bind(null,!1);return ke.isRequired=Pe.bind(null,!0),ke}function w(Y){function ue(xe,Pe,ke,V,Q,le){var ge=xe[Pe],ve=K(ge);if(ve!==Y){var de=G(ge);return new g("Invalid "+V+" `"+Q+"` of type "+("`"+de+"` supplied to `"+ke+"`, expected ")+("`"+Y+"`."),{expectedType:Y})}return null}return y(ue)}function C(){return y(Nb)}function M(Y){function ue(xe,Pe,ke,V,Q){if(typeof Y!="function")return new g("Property `"+Q+"` of component `"+ke+"` has invalid PropType notation inside arrayOf.");var le=xe[Pe];if(!Array.isArray(le)){var ge=K(le);return new g("Invalid "+V+" `"+Q+"` of type "+("`"+ge+"` supplied to `"+ke+"`, expected an array."))}for(var ve=0;ve<le.length;ve++){var de=Y(le,ve,ke,V,Q+"["+ve+"]",jd);if(de instanceof Error)return de}return null}return y(ue)}function _(){function Y(ue,xe,Pe,ke,V){var Q=ue[xe];if(!e(Q)){var le=K(Q);return new g("Invalid "+ke+" `"+V+"` of type "+("`"+le+"` supplied to `"+Pe+"`, expected a single ReactElement."))}return null}return y(Y)}function A(){function Y(ue,xe,Pe,ke,V){var Q=ue[xe];if(!$q.isValidElementType(Q)){var le=K(Q);return new g("Invalid "+ke+" `"+V+"` of type "+("`"+le+"` supplied to `"+Pe+"`, expected a single ReactElement type."))}return null}return y(Y)}function I(Y){function ue(xe,Pe,ke,V,Q){if(!(xe[Pe]instanceof Y)){var le=Y.name||f,ge=Le(xe[Pe]);return new g("Invalid "+V+" `"+Q+"` of type "+("`"+ge+"` supplied to `"+ke+"`, expected ")+("instance of `"+le+"`."))}return null}return y(ue)}function $(Y){if(!Array.isArray(Y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?Ud("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):Ud("Invalid argument supplied to oneOf, expected an array.")),Nb;function ue(xe,Pe,ke,V,Q){for(var le=xe[Pe],ge=0;ge<Y.length;ge++)if(h(le,Y[ge]))return null;var ve=JSON.stringify(Y,function(ie,Oe){var je=G(Oe);return je==="symbol"?String(Oe):Oe});return new g("Invalid "+V+" `"+Q+"` of value `"+String(le)+"` "+("supplied to `"+ke+"`, expected one of "+ve+"."))}return y(ue)}function R(Y){function ue(xe,Pe,ke,V,Q){if(typeof Y!="function")return new g("Property `"+Q+"` of component `"+ke+"` has invalid PropType notation inside objectOf.");var le=xe[Pe],ge=K(le);if(ge!=="object")return new g("Invalid "+V+" `"+Q+"` of type "+("`"+ge+"` supplied to `"+ke+"`, expected an object."));for(var ve in le)if(fT(le,ve)){var de=Y(le,ve,ke,V,Q+"."+ve,jd);if(de instanceof Error)return de}return null}return y(ue)}function D(Y){if(!Array.isArray(Y))return process.env.NODE_ENV!=="production"&&Ud("Invalid argument supplied to oneOfType, expected an instance of array."),Nb;for(var ue=0;ue<Y.length;ue++){var xe=Y[ue];if(typeof xe!="function")return Ud("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+re(xe)+" at index "+ue+"."),Nb}function Pe(ke,V,Q,le,ge){for(var ve=[],de=0;de<Y.length;de++){var ie=Y[de],Oe=ie(ke,V,Q,le,ge,jd);if(Oe==null)return null;Oe.data&&fT(Oe.data,"expectedType")&&ve.push(Oe.data.expectedType)}var je=ve.length>0?", expected one of type ["+ve.join(", ")+"]":"";return new g("Invalid "+le+" `"+ge+"` supplied to "+("`"+Q+"`"+je+"."))}return y(Pe)}function E(){function Y(ue,xe,Pe,ke,V){return N(ue[xe])?null:new g("Invalid "+ke+" `"+V+"` supplied to "+("`"+Pe+"`, expected a ReactNode."))}return y(Y)}function k(Y,ue,xe,Pe,ke){return new g((Y||"React class")+": "+ue+" type `"+xe+"."+Pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ke+"`.")}function F(Y){function ue(xe,Pe,ke,V,Q){var le=xe[Pe],ge=K(le);if(ge!=="object")return new g("Invalid "+V+" `"+Q+"` of type `"+ge+"` "+("supplied to `"+ke+"`, expected `object`."));for(var ve in Y){var de=Y[ve];if(typeof de!="function")return k(ke,V,Q,ve,G(de));var ie=de(le,ve,ke,V,Q+"."+ve,jd);if(ie)return ie}return null}return y(ue)}function U(Y){function ue(xe,Pe,ke,V,Q){var le=xe[Pe],ge=K(le);if(ge!=="object")return new g("Invalid "+V+" `"+Q+"` of type `"+ge+"` "+("supplied to `"+ke+"`, expected `object`."));var ve=Wq({},xe[Pe],Y);for(var de in ve){var ie=Y[de];if(fT(Y,de)&&typeof ie!="function")return k(ke,V,Q,de,G(ie));if(!ie)return new g("Invalid "+V+" `"+Q+"` key `"+de+"` supplied to `"+ke+"`.\nBad object: "+JSON.stringify(xe[Pe],null," ")+`
128
+ Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var Oe=ie(le,de,ke,V,Q+"."+de,jd);if(Oe)return Oe}return null}return y(ue)}function N(Y){switch(typeof Y){case"number":case"string":case"undefined":return!0;case"boolean":return!Y;case"object":if(Array.isArray(Y))return Y.every(N);if(Y===null||e(Y))return!0;var ue=s(Y);if(ue){var xe=ue.call(Y),Pe;if(ue!==Y.entries){for(;!(Pe=xe.next()).done;)if(!N(Pe.value))return!1}else for(;!(Pe=xe.next()).done;){var ke=Pe.value;if(ke&&!N(ke[1]))return!1}}else return!1;return!0;default:return!1}}function W(Y,ue){return Y==="symbol"?!0:ue?ue["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ue instanceof Symbol:!1}function K(Y){var ue=typeof Y;return Array.isArray(Y)?"array":Y instanceof RegExp?"object":W(ue,Y)?"symbol":ue}function G(Y){if(typeof Y>"u"||Y===null)return""+Y;var ue=K(Y);if(ue==="object"){if(Y instanceof Date)return"date";if(Y instanceof RegExp)return"regexp"}return ue}function re(Y){var ue=G(Y);switch(ue){case"array":case"object":return"an "+ue;case"boolean":case"date":case"regexp":return"a "+ue;default:return ue}}function Le(Y){return!Y.constructor||!Y.constructor.name?f:Y.constructor.name}return p.checkPropTypes=T8,p.resetWarningCache=T8.resetWarningCache,p.PropTypes=p,p}});var D8=ln((oie,O8)=>{"use strict";var Gq=Pb();function M8(){}function R8(){}R8.resetWarningCache=M8;O8.exports=function(){function e(o,s,f,p,h,g){if(g!==Gq){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:R8,resetWarningCache:M8};return a.PropTypes=a,a}});var N8=ln((lie,dT)=>{process.env.NODE_ENV!=="production"?(P8=sT(),A8=!0,dT.exports=k8()(P8.isElement,A8)):dT.exports=D8()();var P8,A8});var eP=ln(Bb=>{"use strict";Object.defineProperty(Bb,"__esModule",{value:!0});Bb.PopoverPortal=void 0;var OZ=Ka("react"),DZ=su(),PZ=function(e){var t=e.container,a=e.element,o=e.scoutElement,s=e.children;return OZ.useLayoutEffect(function(){return t.appendChild(a),t.appendChild(o),function(){t.removeChild(a),t.removeChild(o)}},[t,a]),DZ.createPortal(s,a)};Bb.PopoverPortal=PZ});var Hb=ln(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.getNudgedPopoverRect=Wn.getNewPopoverRect=Wn.popoverRectForPosition=Wn.getBoundingRectNeglectingPositionalTransform=Wn.createContainer=Wn.targetPositionHasChanged=Wn.popoverStatesAreEqual=Wn.rectsAreEqual=Wn.arrayUnique=Wn.Constants=void 0;Wn.Constants={POPOVER_CONTAINER_CLASS_NAME:"react-tiny-popover-container",DEFAULT_ALIGN:"center",OBSERVER_THRESHOLDS:Array(1e3).fill(null).map(function(e,t){return t/1e3}).reverse(),DEFAULT_POSITIONS:["top","left","right","bottom"],EMPTY_CLIENT_RECT:{top:0,left:0,bottom:0,height:0,right:0,width:0}};var AZ=function(e){return e.filter(function(t,a,o){return o.indexOf(t)===a})};Wn.arrayUnique=AZ;var NZ=function(e,t){return e===t||(e==null?void 0:e.bottom)===(t==null?void 0:t.bottom)&&(e==null?void 0:e.height)===(t==null?void 0:t.height)&&(e==null?void 0:e.left)===(t==null?void 0:t.left)&&(e==null?void 0:e.right)===(t==null?void 0:t.right)&&(e==null?void 0:e.top)===(t==null?void 0:t.top)&&(e==null?void 0:e.width)===(t==null?void 0:t.width)};Wn.rectsAreEqual=NZ;var zZ=function(e,t){return e===t||(e==null?void 0:e.align)===(t==null?void 0:t.align)&&(e==null?void 0:e.nudgedLeft)===(t==null?void 0:t.nudgedLeft)&&(e==null?void 0:e.nudgedTop)===(t==null?void 0:t.nudgedTop)&&e.padding===t.padding&&Wn.rectsAreEqual(e==null?void 0:e.popoverRect,t==null?void 0:t.popoverRect)&&Wn.rectsAreEqual(e==null?void 0:e.childRect,t==null?void 0:t.childRect)&&(e==null?void 0:e.position)===(t==null?void 0:t.position)};Wn.popoverStatesAreEqual=zZ;var IZ=function(e,t){return e===void 0||e.left!==t.left||e.top!==t.top||e.width!==t.width||e.height!==t.height};Wn.targetPositionHasChanged=IZ;var FZ=function(e,t){var a=window.document.createElement("div");return t&&(a.className=t),Object.assign(a.style,e),a};Wn.createContainer=FZ;var jZ=function(e){if(e!=null){var t=e,a=0,o=0;do a+=t.offsetTop,o+=t.offsetLeft,t=t.offsetParent;while(t!=null);var s=0,f=0;t=e;do s+=t.scrollTop,f+=t.scrollLeft,t=t.parentElement;while(t!=null);a-=s,o-=f;var p=e.getBoundingClientRect(),h=p.width,g=p.height;return{top:a,left:o,width:h,height:g,bottom:a+g,right:o+h}}};Wn.getBoundingRectNeglectingPositionalTransform=jZ;var UZ=function(e,t,a,o,s){var f=t.left+t.width/2,p=t.top+t.height/2,h=a.width,g=a.height,y,w;switch(e){case"left":y=p-g/2,w=t.left-o-h,s==="start"&&(y=t.top),s==="end"&&(y=t.bottom-g);break;case"bottom":y=t.bottom+o,w=f-h/2,s==="start"&&(w=t.left),s==="end"&&(w=t.right-h);break;case"right":y=p-g/2,w=t.right+o,s==="start"&&(y=t.top),s==="end"&&(y=t.bottom-g);break;default:y=t.top-g-o,w=f-h/2,s==="start"&&(w=t.left),s==="end"&&(w=t.right-h);break}return{top:y,left:w,width:h,height:g,right:w+h,bottom:y+g}};Wn.popoverRectForPosition=UZ;var BZ=function(e,t){var a=e.position,o=e.align,s=e.childRect,f=e.popoverRect,p=e.boundaryRect,h=e.padding,g=e.reposition,y=Wn.popoverRectForPosition(a,s,f,h,o),w=g&&(a==="top"&&y.top<p.top+t||a==="left"&&y.left<p.left+t||a==="right"&&y.right>p.right-t||a==="bottom"&&y.bottom>p.bottom-t);return{rect:y,boundaryViolation:w}};Wn.getNewPopoverRect=BZ;var HZ=function(e,t,a){var o=t.top+a,s=t.left+a,f=t.right-a,p=t.bottom-a,h=e.top<o?o:e.top;h=h+e.height>p?p-e.height:h;var g=e.left<s?s:e.left;return g=g+e.width>f?f-e.width:g,{top:h,left:g,width:e.width,height:e.height,right:g+e.width,bottom:h+e.height}};Wn.getNudgedPopoverRect=HZ});var nP=ln(Vb=>{"use strict";Object.defineProperty(Vb,"__esModule",{value:!0});Vb.useElementRef=void 0;var tP=Ka("react"),VZ=Hb(),$Z=function(e,t){var a=tP.useMemo(function(){return VZ.createContainer(t,e)},[e,t]);return tP.useRef(a)};Vb.useElementRef=$Z});var aP=ln($b=>{"use strict";Object.defineProperty($b,"__esModule",{value:!0});$b.usePopover=void 0;var WZ=Ka("react"),rP=Hb(),iP=nP(),GZ=function(e){var t=e.childRef,a=e.positions,o=e.containerClassName,s=e.parentElement,f=e.contentLocation,p=e.align,h=e.padding,g=e.reposition,y=e.boundaryInset,w=e.boundaryElement,C=e.onPositionPopover,M=iP.useElementRef(o,{position:"fixed",overflow:"visible",top:"0px",left:"0px"}),_=iP.useElementRef("react-tiny-popover-scout",{position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"}),A=WZ.useCallback(function(I){var $,R,D=I===void 0?{}:I,E=D.positionIndex,k=E===void 0?0:E,F=D.parentRect,U=F===void 0?s.getBoundingClientRect():F,N=D.childRect,W=N===void 0?($=t==null?void 0:t.current)===null||$===void 0?void 0:$.getBoundingClientRect():N,K=D.scoutRect,G=K===void 0?(R=_==null?void 0:_.current)===null||R===void 0?void 0:R.getBoundingClientRect():K,re=D.popoverRect,Le=re===void 0?M.current.getBoundingClientRect():re,Y=D.boundaryRect,ue=Y===void 0?w===s?U:w.getBoundingClientRect():Y;if(!(!W||!U)){if(f){var xe=typeof f=="function"?f({childRect:W,popoverRect:Le,parentRect:U,boundaryRect:ue,padding:h,nudgedTop:0,nudgedLeft:0,boundaryInset:y}):f,Pe=xe.top,ke=xe.left,V=U.left+ke,Q=U.top+Pe;M.current.style.transform="translate("+(V-G.left)+"px, "+(Q-G.top)+"px)",C({childRect:W,popoverRect:Le,parentRect:U,boundaryRect:ue,padding:h,nudgedTop:0,nudgedLeft:0,boundaryInset:y});return}var le=k===a.length,ge=le?a[0]:a[k],ve=rP.getNewPopoverRect({childRect:W,popoverRect:Le,boundaryRect:ue,position:ge,align:p,padding:h,reposition:g},y),de=ve.rect,ie=ve.boundaryViolation;if(ie&&g&&!le){A({positionIndex:k+1,childRect:W,popoverRect:Le,parentRect:U,boundaryRect:ue});return}var Oe=de.top,je=de.left,we=de.width,ut=de.height,Je=g&&!le,Ve=rP.getNudgedPopoverRect(de,ue,y),_t=Ve.left,Ae=Ve.top,Lt=Oe,tt=je;Je&&(Lt=Ae,tt=_t),M.current.style.transform="translate("+(tt-G.left)+"px, "+(Lt-G.top)+"px)",C({childRect:W,popoverRect:{top:Lt,left:tt,width:we,height:ut,right:tt+we,bottom:Lt+ut},parentRect:U,boundaryRect:ue,position:ge,align:p,padding:h,nudgedTop:Ae-Oe,nudgedLeft:_t-je,boundaryInset:y})}},[s,t,M,w,f,a,p,h,g,y,C]);return{positionPopover:A,popoverRef:M,scoutRef:_}};$b.usePopover=GZ});var lP=ln(Wb=>{"use strict";Object.defineProperty(Wb,"__esModule",{value:!0});Wb.useMemoizedArray=void 0;var oP=Ka("react"),YZ=function(e){var t=oP.useRef(e),a=oP.useMemo(function(){if(t.current===e)return t.current;if(t.current.length!==e.length)return t.current=e,e;for(var o=0;o<e.length;o+=1)if(e[o]!==t.current[o])return t.current=e,e;return t.current},[e]);return a};Wb.useMemoizedArray=YZ});var ST=ln(Vd=>{"use strict";var bT=Vd&&Vd.__assign||function(){return bT=Object.assign||function(e){for(var t,a=1,o=arguments.length;a<o;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},bT.apply(this,arguments)};Object.defineProperty(Vd,"__esModule",{value:!0});Vd.useArrowContainer=void 0;var sP=Ka("react"),qZ=function(e){var t=e.childRect,a=e.popoverRect,o=e.position,s=e.arrowSize,f=e.arrowColor,p=sP.useMemo(function(){return{padding:s}},[s]),h=sP.useMemo(function(){return bT({position:"absolute"},function(){var g=s*2,y=t.top-a.top+t.height/2-g/2,w=t.left-a.left+t.width/2-g/2,C=s,M=a.width-s,_=a.height-s;switch(w=w<C?C:w,w=w+g>M?M-g:w,y=y<C?C:y,y=y+g>_?_-g:y,y=Number.isNaN(y)?0:y,w=Number.isNaN(w)?0:w,o){case"right":return{borderTop:s+"px solid transparent",borderBottom:s+"px solid transparent",borderRight:s+"px solid "+f,left:0,top:y};case"left":return{borderTop:s+"px solid transparent",borderBottom:s+"px solid transparent",borderLeft:s+"px solid "+f,right:0,top:y};case"bottom":return{borderLeft:s+"px solid transparent",borderRight:s+"px solid transparent",borderBottom:s+"px solid "+f,top:0,left:w};case"top":return{borderLeft:s+"px solid transparent",borderRight:s+"px solid transparent",borderTop:s+"px solid "+f,bottom:0,left:w};default:return{display:"hidden"}}}())},[f,s,t.height,t.left,t.top,t.width,a.height,a.left,a.top,a.width,o]);return{arrowContainerStyle:p,arrowStyle:h}};Vd.useArrowContainer=qZ});var fP=ln($d=>{"use strict";var jc=$d&&$d.__assign||function(){return jc=Object.assign||function(e){for(var t,a=1,o=arguments.length;a<o;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},jc.apply(this,arguments)};Object.defineProperty($d,"__esModule",{value:!0});$d.ArrowContainer=void 0;var uP=Ka("react/jsx-runtime"),cP=Ka("react"),ZZ=ST(),QZ=function(e){var t=e.childRect,a=e.popoverRect,o=e.position,s=e.arrowColor,f=e.arrowSize,p=e.arrowClassName,h=e.arrowStyle,g=e.className,y=e.children,w=e.style,C=ZZ.useArrowContainer({childRect:t,popoverRect:a,position:o,arrowColor:s,arrowSize:f}),M=C.arrowContainerStyle,_=C.arrowStyle,A=cP.useMemo(function(){return jc(jc({},M),w)},[M,w]),I=cP.useMemo(function(){return jc(jc({},_),h)},[_,h]);return uP.jsxs("div",jc({className:g,style:A},{children:[uP.jsx("div",{style:I,className:p},void 0),y]}),void 0)};$d.ArrowContainer=QZ});var pP=ln(oo=>{"use strict";var Yb=oo&&oo.__assign||function(){return Yb=Object.assign||function(e){for(var t,a=1,o=arguments.length;a<o;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Yb.apply(this,arguments)};Object.defineProperty(oo,"__esModule",{value:!0});oo.Popover=oo.usePopover=oo.ArrowContainer=oo.useArrowContainer=void 0;var Gb=Ka("react/jsx-runtime"),ki=Ka("react"),KZ=eP(),Uc=Hb(),dP=aP();Object.defineProperty(oo,"usePopover",{enumerable:!0,get:function(){return dP.usePopover}});var JZ=lP(),XZ=ST();Object.defineProperty(oo,"useArrowContainer",{enumerable:!0,get:function(){return XZ.useArrowContainer}});var eQ=fP();Object.defineProperty(oo,"ArrowContainer",{enumerable:!0,get:function(){return eQ.ArrowContainer}});var tQ=ki.forwardRef(function(e,t){var a=e.isOpen,o=e.children,s=e.content,f=e.positions,p=f===void 0?Uc.Constants.DEFAULT_POSITIONS:f,h=e.align,g=h===void 0?Uc.Constants.DEFAULT_ALIGN:h,y=e.padding,w=y===void 0?0:y,C=e.reposition,M=C===void 0?!0:C,_=e.parentElement,A=_===void 0?window.document.body:_,I=e.boundaryElement,$=I===void 0?A:I,R=e.containerClassName,D=R===void 0?"react-tiny-popover-container":R,E=e.containerStyle,k=e.contentLocation,F=e.boundaryInset,U=F===void 0?0:F,N=e.onClickOutside,W=JZ.useMemoizedArray(p),K=ki.useRef(!1),G=ki.useRef(),re=ki.useRef(),Le=ki.useRef(M),Y=ki.useRef(),ue=ki.useState({align:g,nudgedLeft:0,nudgedTop:0,position:W[0],padding:w,childRect:Uc.Constants.EMPTY_CLIENT_RECT,popoverRect:Uc.Constants.EMPTY_CLIENT_RECT,parentRect:Uc.Constants.EMPTY_CLIENT_RECT,boundaryRect:Uc.Constants.EMPTY_CLIENT_RECT,boundaryInset:U}),xe=ue[0],Pe=ue[1],ke=ki.useCallback(function(we){return Pe(we)},[]),V=dP.usePopover({childRef:Y,containerClassName:D,parentElement:A,boundaryElement:$,contentLocation:k,positions:W,align:g,padding:w,boundaryInset:U,reposition:M,onPositionPopover:ke}),Q=V.positionPopover,le=V.popoverRef,ge=V.scoutRef;ki.useLayoutEffect(function(){var we=!0,ut=function(){var Je,Ve;if(a&&we){var _t=(Je=Y==null?void 0:Y.current)===null||Je===void 0?void 0:Je.getBoundingClientRect(),Ae=(Ve=le==null?void 0:le.current)===null||Ve===void 0?void 0:Ve.getBoundingClientRect();_t!=null&&Ae!=null&&(!Uc.rectsAreEqual(_t,{top:xe.childRect.top,left:xe.childRect.left,width:xe.childRect.width,height:xe.childRect.height,bottom:xe.childRect.top+xe.childRect.height,right:xe.childRect.left+xe.childRect.width})||Ae.width!==xe.popoverRect.width||Ae.height!==xe.popoverRect.height||xe.padding!==w||xe.align!==g||W!==G.current||k!==re.current||M!==Le.current)&&Q(),W!==G.current&&(G.current=W),k!==re.current&&(re.current=k),M!==Le.current&&(Le.current=M),we&&window.requestAnimationFrame(ut)}K.current=a};return window.requestAnimationFrame(ut),function(){we=!1}},[g,k,a,w,le,xe.align,xe.childRect.height,xe.childRect.left,xe.childRect.top,xe.childRect.width,xe.padding,xe.popoverRect.height,xe.popoverRect.width,Q,W,M]),ki.useEffect(function(){var we=le.current;return Object.assign(we.style,E),function(){Object.keys(E??{}).forEach(function(ut){return delete we.style[ut]})}},[E,a,le]);var ve=ki.useCallback(function(we){var ut,Je;a&&!(!((ut=le.current)===null||ut===void 0)&&ut.contains(we.target))&&!(!((Je=Y.current)===null||Je===void 0)&&Je.contains(we.target))&&(N==null||N(we))},[a,N,le]),de=ki.useCallback(function(){Y.current&&window.requestAnimationFrame(function(){return Q()})},[Q]);ki.useEffect(function(){return window.addEventListener("click",ve),window.addEventListener("resize",de),function(){window.removeEventListener("click",ve),window.removeEventListener("resize",de)}},[ve,de]);var ie=ki.useCallback(function(we){Y.current=we,t!=null&&(typeof t=="object"?t.current=we:typeof t=="function"&&t(we))},[t]),Oe=function(){return ki.cloneElement(o,{ref:ie})},je=function(){return a?Gb.jsx(KZ.PopoverPortal,Yb({element:le.current,scoutElement:ge.current,container:A},{children:typeof s=="function"?s(xe):s}),void 0):null};return Gb.jsxs(Gb.Fragment,{children:[Oe(),je()]},void 0)});oo.Popover=ki.forwardRef(function(e,t){return typeof window>"u"?e.children:Gb.jsx(tQ,Yb({},e,{ref:t}),void 0)})});import MB,{createContext as RB,useContext as OB}from"react";import{useEffect as PB,useState as AB}from"react";var T3=["formatted_address","geometry","name"],Uh={DEFAULT:["drawing","places"],AUTOCOMPLETE:["drawing","places"]},_3={"CC-BY":"//creativecommons.org/licenses/by/4.0","BY-SA":"//creativecommons.org/licenses/by-sa/4.0","BY-ND":"//creativecommons.org/licenses/by-nd/4.0","BY-NC":"//creativecommons.org/licenses/by-nc/4.0","BY-NC-SA":"//creativecommons.org/licenses/by-nc-sa/4.0","BY-NC-ND":"//creativecommons.org/licenses/by-nc-nd/4.0"},nw=(e=>(e.MAP_STREETS="0",e.MAP_SATELLITE="1",e.MAP_DARK="2",e.MAP_OSM="3",e))(nw||{}),ql={latitude:22.5,longitude:79,zoom:3,bearing:0,pitch:0},Us=[{text:"Streets",key:"0",style:"mapbox://styles/biodiv/cku4aoj5k1g9h17o5r3tjsntn"},{text:"Satellite",key:"1",style:"mapbox://styles/biodiv/cku49ca8q1esz18o7gxfjmh5r"},{text:"Dark",key:"2",style:"mapbox://styles/biodiv/cku4a35961fgo17mykoq76se1"},{text:"OSM",key:"3",style:"https://unpkg.com/maplibre-gl-styles@0.0.1/styles/osm-mapnik/v8/india.json"}],NX=["admin-0-boundary","admin-1-boundary","admin-0-boundary-disputed","admin-1-boundary-bg","admin-0-boundary-bg"],DB=(e,t)=>(t.split(".").forEach(function(a){!e||(e=e[a])}),e),k3=RB({}),M3=({localeStrings:e,lang:t="en",children:a})=>{let o=s=>{let f=DB(e[t],s);return f||console.warn(`Translation '${s}' for locale '${t}' not found.`),f};return MB.createElement(k3.Provider,{value:{t:o}},a)};function Br(){return OB(k3)}function R3(e,t){let[a,o]=AB(e);return PB(()=>{let s=setTimeout(()=>{o(e)},t);return()=>{clearTimeout(s)}},[e,t]),a}var xy=(e=ql,t=1)=>({center:{lat:e.latitude,lng:e.longitude},zoom:e.zoom+t}),FX=e=>{let t=e.getFullYear().toString(),a=(e.getMonth()+101).toString().substring(1),o=(e.getDate()+100).toString().substring(1);return`${t}-${a}-${o}`};var Q6=wa(su()),Bv=wa(su());import*as zV from"react";import Y6,{createContext as IV,useContext as aa,memo as Ci,useState as Se,useRef as Iv,useEffect as ee,PureComponent as Kn,createRef as G0,useMemo as FV,Children as as,isValidElement as q6,cloneElement as Z6}from"react";var jV=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fr={exports:{}},Dv={};var Q4;function UV(){if(Q4)return Dv;Q4=1;var e=Y6,t=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function p(h,g,y){var w,C={},M=null,_=null;y!==void 0&&(M=""+y),g.key!==void 0&&(M=""+g.key),g.ref!==void 0&&(_=g.ref);for(w in g)o.call(g,w)&&!f.hasOwnProperty(w)&&(C[w]=g[w]);if(h&&h.defaultProps)for(w in g=h.defaultProps,g)C[w]===void 0&&(C[w]=g[w]);return{$$typeof:t,type:h,key:M,ref:_,props:C,_owner:s.current}}return Dv.Fragment=a,Dv.jsx=p,Dv.jsxs=p,Dv}var Pv={};var K4;function BV(){return K4||(K4=1,process.env.NODE_ENV!=="production"&&function(){var e=Y6,t=!1,a=!1,o=!1,s=!1,f=!1,p=Symbol.for("react.element"),h=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),M=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),E=Symbol.iterator,k="@@iterator";function F(B){if(B===null||typeof B!="object")return null;var _e=E&&B[E]||B[k];return typeof _e=="function"?_e:null}var U=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function N(B){{for(var _e=arguments.length,Ue=new Array(_e>1?_e-1:0),lt=1;lt<_e;lt++)Ue[lt-1]=arguments[lt];W("error",B,Ue)}}function W(B,_e,Ue){{var lt=U.ReactDebugCurrentFrame,Ot=lt.getStackAddendum();Ot!==""&&(_e+="%s",Ue=Ue.concat([Ot]));var Yt=Ue.map(function(Mt){return String(Mt)});Yt.unshift("Warning: "+_e),Function.prototype.apply.call(console[B],console,Yt)}}var K;K=Symbol.for("react.module.reference");function G(B){return!!(typeof B=="string"||typeof B=="function"||B===g||B===w||f||B===y||B===A||B===I||s||B===D||t||a||o||typeof B=="object"&&B!==null&&(B.$$typeof===R||B.$$typeof===$||B.$$typeof===C||B.$$typeof===M||B.$$typeof===_||B.$$typeof===K||B.getModuleId!==void 0))}function re(B,_e,Ue){var lt=B.displayName;if(lt)return lt;var Ot=_e.displayName||_e.name||"";return Ot!==""?Ue+"("+Ot+")":Ue}function Le(B){return B.displayName||"Context"}function Y(B){if(B==null)return null;if(typeof B.tag=="number"&&N("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof B=="function")return B.displayName||B.name||null;if(typeof B=="string")return B;switch(B){case g:return"Fragment";case h:return"Portal";case w:return"Profiler";case y:return"StrictMode";case A:return"Suspense";case I:return"SuspenseList"}if(typeof B=="object")switch(B.$$typeof){case M:var _e=B;return Le(_e)+".Consumer";case C:var Ue=B;return Le(Ue._context)+".Provider";case _:return re(B,B.render,"ForwardRef");case $:var lt=B.displayName||null;return lt!==null?lt:Y(B.type)||"Memo";case R:{var Ot=B,Yt=Ot._payload,Mt=Ot._init;try{return Y(Mt(Yt))}catch{return null}}}return null}var ue=Object.assign,xe=0,Pe,ke,V,Q,le,ge,ve;function de(){}de.__reactDisabledLog=!0;function ie(){{if(xe===0){Pe=console.log,ke=console.info,V=console.warn,Q=console.error,le=console.group,ge=console.groupCollapsed,ve=console.groupEnd;var B={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:B,log:B,warn:B,error:B,group:B,groupCollapsed:B,groupEnd:B})}xe++}}function Oe(){{if(xe--,xe===0){var B={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ue({},B,{value:Pe}),info:ue({},B,{value:ke}),warn:ue({},B,{value:V}),error:ue({},B,{value:Q}),group:ue({},B,{value:le}),groupCollapsed:ue({},B,{value:ge}),groupEnd:ue({},B,{value:ve})})}xe<0&&N("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var je=U.ReactCurrentDispatcher,we;function ut(B,_e,Ue){{if(we===void 0)try{throw Error()}catch(Ot){var lt=Ot.stack.trim().match(/\n( *(at )?)/);we=lt&&lt[1]||""}return`
129
+ `+we+B}}var Je=!1,Ve;{var _t=typeof WeakMap=="function"?WeakMap:Map;Ve=new _t}function Ae(B,_e){if(!B||Je)return"";{var Ue=Ve.get(B);if(Ue!==void 0)return Ue}var lt;Je=!0;var Ot=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Yt;Yt=je.current,je.current=null,ie();try{if(_e){var Mt=function(){throw Error()};if(Object.defineProperty(Mt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Mt,[])}catch(di){lt=di}Reflect.construct(B,[],Mt)}else{try{Mt.call()}catch(di){lt=di}B.call(Mt.prototype)}}else{try{throw Error()}catch(di){lt=di}B()}}catch(di){if(di&&lt&&typeof di.stack=="string"){for(var ct=di.stack.split(`
130
+ `),wr=lt.stack.split(`
131
+ `),Fn=ct.length-1,jn=wr.length-1;Fn>=1&&jn>=0&&ct[Fn]!==wr[jn];)jn--;for(;Fn>=1&&jn>=0;Fn--,jn--)if(ct[Fn]!==wr[jn]){if(Fn!==1||jn!==1)do if(Fn--,jn--,jn<0||ct[Fn]!==wr[jn]){var mn=`
132
+ `+ct[Fn].replace(" at new "," at ");return B.displayName&&mn.includes("<anonymous>")&&(mn=mn.replace("<anonymous>",B.displayName)),typeof B=="function"&&Ve.set(B,mn),mn}while(Fn>=1&&jn>=0);break}}}finally{Je=!1,je.current=Yt,Oe(),Error.prepareStackTrace=Ot}var uo=B?B.displayName||B.name:"",Vc=uo?ut(uo):"";return typeof B=="function"&&Ve.set(B,Vc),Vc}function Lt(B,_e,Ue){return Ae(B,!1)}function tt(B){var _e=B.prototype;return!!(_e&&_e.isReactComponent)}function fn(B,_e,Ue){if(B==null)return"";if(typeof B=="function")return Ae(B,tt(B));if(typeof B=="string")return ut(B);switch(B){case A:return ut("Suspense");case I:return ut("SuspenseList")}if(typeof B=="object")switch(B.$$typeof){case _:return Lt(B.render);case $:return fn(B.type,_e,Ue);case R:{var lt=B,Ot=lt._payload,Yt=lt._init;try{return fn(Yt(Ot),_e,Ue)}catch{}}}return""}var dn=Object.prototype.hasOwnProperty,er={},pn=U.ReactDebugCurrentFrame;function Dt(B){if(B){var _e=B._owner,Ue=fn(B.type,B._source,_e?_e.type:null);pn.setExtraStackFrame(Ue)}else pn.setExtraStackFrame(null)}function qt(B,_e,Ue,lt,Ot){{var Yt=Function.call.bind(dn);for(var Mt in B)if(Yt(B,Mt)){var ct=void 0;try{if(typeof B[Mt]!="function"){var wr=Error((lt||"React class")+": "+Ue+" type `"+Mt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof B[Mt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw wr.name="Invariant Violation",wr}ct=B[Mt](_e,Mt,lt,Ue,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Fn){ct=Fn}ct&&!(ct instanceof Error)&&(Dt(Ot),N("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",lt||"React class",Ue,Mt,typeof ct),Dt(null)),ct instanceof Error&&!(ct.message in er)&&(er[ct.message]=!0,Dt(Ot),N("Failed %s type: %s",Ue,ct.message),Dt(null))}}}var Wt=Array.isArray;function un(B){return Wt(B)}function jt(B){{var _e=typeof Symbol=="function"&&Symbol.toStringTag,Ue=_e&&B[Symbol.toStringTag]||B.constructor.name||"Object";return Ue}}function In(B){try{return Sn(B),!1}catch{return!0}}function Sn(B){return""+B}function hn(B){if(In(B))return N("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",jt(B)),Sn(B)}var vn=U.ReactCurrentOwner,Pt={key:!0,ref:!0,__self:!0,__source:!0},_n,kn,Ne;Ne={};function nt(B){if(dn.call(B,"ref")){var _e=Object.getOwnPropertyDescriptor(B,"ref").get;if(_e&&_e.isReactWarning)return!1}return B.ref!==void 0}function Et(B){if(dn.call(B,"key")){var _e=Object.getOwnPropertyDescriptor(B,"key").get;if(_e&&_e.isReactWarning)return!1}return B.key!==void 0}function pt(B,_e){if(typeof B.ref=="string"&&vn.current&&_e&&vn.current.stateNode!==_e){var Ue=Y(vn.current.type);Ne[Ue]||(N('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Y(vn.current.type),B.ref),Ne[Ue]=!0)}}function et(B,_e){{var Ue=function(){_n||(_n=!0,N("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",_e))};Ue.isReactWarning=!0,Object.defineProperty(B,"key",{get:Ue,configurable:!0})}}function Gn(B,_e){{var Ue=function(){kn||(kn=!0,N("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",_e))};Ue.isReactWarning=!0,Object.defineProperty(B,"ref",{get:Ue,configurable:!0})}}var Yn=function(B,_e,Ue,lt,Ot,Yt,Mt){var ct={$$typeof:p,type:B,key:_e,ref:Ue,props:Mt,_owner:Yt};return ct._store={},Object.defineProperty(ct._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ct,"_self",{configurable:!1,enumerable:!1,writable:!1,value:lt}),Object.defineProperty(ct,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ot}),Object.freeze&&(Object.freeze(ct.props),Object.freeze(ct)),ct};function Er(B,_e,Ue,lt,Ot){{var Yt,Mt={},ct=null,wr=null;Ue!==void 0&&(hn(Ue),ct=""+Ue),Et(_e)&&(hn(_e.key),ct=""+_e.key),nt(_e)&&(wr=_e.ref,pt(_e,Ot));for(Yt in _e)dn.call(_e,Yt)&&!Pt.hasOwnProperty(Yt)&&(Mt[Yt]=_e[Yt]);if(B&&B.defaultProps){var Fn=B.defaultProps;for(Yt in Fn)Mt[Yt]===void 0&&(Mt[Yt]=Fn[Yt])}if(ct||wr){var jn=typeof B=="function"?B.displayName||B.name||"Unknown":B;ct&&et(Mt,jn),wr&&Gn(Mt,jn)}return Yn(B,ct,wr,Ot,lt,vn.current,Mt)}}var nn=U.ReactCurrentOwner,fi=U.ReactDebugCurrentFrame;function gt(B){if(B){var _e=B._owner,Ue=fn(B.type,B._source,_e?_e.type:null);fi.setExtraStackFrame(Ue)}else fi.setExtraStackFrame(null)}var xn;xn=!1;function Wr(B){return typeof B=="object"&&B!==null&&B.$$typeof===p}function ua(){{if(nn.current){var B=Y(nn.current.type);if(B)return`
133
+
134
+ Check the render method of \``+B+"`."}return""}}function Vo(B){{if(B!==void 0){var _e=B.fileName.replace(/^.*[\\\/]/,""),Ue=B.lineNumber;return`
135
+
136
+ Check your code at `+_e+":"+Ue+"."}return""}}var so={};function $o(B){{var _e=ua();if(!_e){var Ue=typeof B=="string"?B:B.displayName||B.name;Ue&&(_e=`
137
+
138
+ Check the top-level render call using <`+Ue+">.")}return _e}}function Vi(B,_e){{if(!B._store||B._store.validated||B.key!=null)return;B._store.validated=!0;var Ue=$o(_e);if(so[Ue])return;so[Ue]=!0;var lt="";B&&B._owner&&B._owner!==nn.current&&(lt=" It was passed a child from "+Y(B._owner.type)+"."),gt(B),N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ue,lt),gt(null)}}function $i(B,_e){{if(typeof B!="object")return;if(un(B))for(var Ue=0;Ue<B.length;Ue++){var lt=B[Ue];Wr(lt)&&Vi(lt,_e)}else if(Wr(B))B._store&&(B._store.validated=!0);else if(B){var Ot=F(B);if(typeof Ot=="function"&&Ot!==B.entries)for(var Yt=Ot.call(B),Mt;!(Mt=Yt.next()).done;)Wr(Mt.value)&&Vi(Mt.value,_e)}}}function xt(B){{var _e=B.type;if(_e==null||typeof _e=="string")return;var Ue;if(typeof _e=="function")Ue=_e.propTypes;else if(typeof _e=="object"&&(_e.$$typeof===_||_e.$$typeof===$))Ue=_e.propTypes;else return;if(Ue){var lt=Y(_e);qt(Ue,B.props,"prop",lt,B)}else if(_e.PropTypes!==void 0&&!xn){xn=!0;var Ot=Y(_e);N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ot||"Unknown")}typeof _e.getDefaultProps=="function"&&!_e.getDefaultProps.isReactClassApproved&&N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ll(B){{for(var _e=Object.keys(B.props),Ue=0;Ue<_e.length;Ue++){var lt=_e[Ue];if(lt!=="children"&&lt!=="key"){gt(B),N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",lt),gt(null);break}}B.ref!==null&&(gt(B),N("Invalid attribute `ref` supplied to `React.Fragment`."),gt(null))}}function Wo(B,_e,Ue,lt,Ot,Yt){{var Mt=G(B);if(!Mt){var ct="";(B===void 0||typeof B=="object"&&B!==null&&Object.keys(B).length===0)&&(ct+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var wr=Vo(Ot);wr?ct+=wr:ct+=ua();var Fn;B===null?Fn="null":un(B)?Fn="array":B!==void 0&&B.$$typeof===p?(Fn="<"+(Y(B.type)||"Unknown")+" />",ct=" Did you accidentally export a JSX literal instead of a component?"):Fn=typeof B,N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Fn,ct)}var jn=Er(B,_e,Ue,Ot,Yt);if(jn==null)return jn;if(Mt){var mn=_e.children;if(mn!==void 0)if(lt)if(un(mn)){for(var uo=0;uo<mn.length;uo++)$i(mn[uo],B);Object.freeze&&Object.freeze(mn)}else N("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $i(mn,B)}return B===g?Ll(jn):xt(jn),jn}}function za(B,_e,Ue){return Wo(B,_e,Ue,!0)}function ca(B,_e,Ue){return Wo(B,_e,Ue,!1)}var Go=ca,Ia=za;Pv.Fragment=g,Pv.jsx=Go,Pv.jsxs=Ia}()),Pv}(function(e){process.env.NODE_ENV==="production"?e.exports=UV():e.exports=BV()})(fr);var HV=process.env.NODE_ENV,VV=function(e,t,a,o,s,f,p,h){if(HV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var g;if(t===void 0)g=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var y=[a,o,s,f,p,h],w=0;g=new Error(t.replace(/%s/g,function(){return y[w++]})),g.name="Invariant Violation"}throw g.framesToPop=1,g}},si=VV,$t=IV(null);function $V(){si(!!aa,"useGoogleMap is React hook and requires React version 16.8+");let e=aa($t);return si(!!e,"useGoogleMap needs a GoogleMap available up in the tree"),e}function WV(e,t,a){return Object.keys(e).reduce(function(s,f){return t(s,e[f],f)},a)}function GV(e,t){Object.keys(e).forEach(a=>t(e[a],a))}function YV(e,t,a,o){let s={};return GV(e,(p,h)=>{let g=a[h];g!==t[h]&&(s[h]=g,p(o,g))}),s}function qV(e,t,a){return WV(a,function(f,p,h){return typeof e[h]=="function"&&f.push(google.maps.event.addListener(t,p,e[h])),f},[])}function ZV(e){google.maps.event.removeListener(e)}function Vt(e=[]){e.forEach(ZV)}function Ft({updaterMap:e,eventMap:t,prevProps:a,nextProps:o,instance:s}){let f=qV(o,s,t);return YV(e,a,o,s),f}var J4={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},X4={extraMapTypes(e,t){t.forEach(function(o,s){e.mapTypes.set(String(s),o)})},center(e,t){e.setCenter(t)},clickableIcons(e,t){e.setClickableIcons(t)},heading(e,t){e.setHeading(t)},mapTypeId(e,t){e.setMapTypeId(t)},options(e,t){e.setOptions(t)},streetView(e,t){e.setStreetView(t)},tilt(e,t){e.setTilt(t)},zoom(e,t){e.setZoom(t)}};function QV({children:e,options:t,id:a,mapContainerStyle:o,mapContainerClassName:s,center:f,onClick:p,onDblClick:h,onDrag:g,onDragEnd:y,onDragStart:w,onMouseMove:C,onMouseOut:M,onMouseOver:_,onMouseDown:A,onMouseUp:I,onRightClick:$,onCenterChanged:R,onLoad:D,onUnmount:E}){let[k,F]=Se(null),U=Iv(null),[N,W]=Se(null),[K,G]=Se(null),[re,Le]=Se(null),[Y,ue]=Se(null),[xe,Pe]=Se(null),[ke,V]=Se(null),[Q,le]=Se(null),[ge,ve]=Se(null),[de,ie]=Se(null),[Oe,je]=Se(null),[we,ut]=Se(null),[Je,Ve]=Se(null);return ee(()=>{t&&k!==null&&k.setOptions(t)},[k,t]),ee(()=>{k!==null&&typeof f<"u"&&k.setCenter(f)},[k,f]),ee(()=>{k&&h&&(K!==null&&google.maps.event.removeListener(K),G(google.maps.event.addListener(k,"dblclick",h)))},[h]),ee(()=>{k&&y&&(re!==null&&google.maps.event.removeListener(re),Le(google.maps.event.addListener(k,"dragend",y)))},[h]),ee(()=>{k&&w&&(Y!==null&&google.maps.event.removeListener(Y),ue(google.maps.event.addListener(k,"dragstart",w)))},[w]),ee(()=>{k&&A&&(xe!==null&&google.maps.event.removeListener(xe),Pe(google.maps.event.addListener(k,"mousedown",A)))},[A]),ee(()=>{k&&C&&(ke!==null&&google.maps.event.removeListener(ke),V(google.maps.event.addListener(k,"mousemove",C)))},[C]),ee(()=>{k&&M&&(Q!==null&&google.maps.event.removeListener(Q),le(google.maps.event.addListener(k,"mouseout",M)))},[M]),ee(()=>{k&&_&&(ge!==null&&google.maps.event.removeListener(ge),ve(google.maps.event.addListener(k,"mouseover",_)))},[_]),ee(()=>{k&&I&&(de!==null&&google.maps.event.removeListener(de),ie(google.maps.event.addListener(k,"mouseup",I)))},[I]),ee(()=>{k&&$&&(Oe!==null&&google.maps.event.removeListener(Oe),je(google.maps.event.addListener(k,"rightclick",$)))},[$]),ee(()=>{k&&p&&(we!==null&&google.maps.event.removeListener(we),ut(google.maps.event.addListener(k,"click",p)))},[p]),ee(()=>{k&&g&&(Je!==null&&google.maps.event.removeListener(Je),Ve(google.maps.event.addListener(k,"drag",g)))},[g]),ee(()=>{k&&R&&(N!==null&&google.maps.event.removeListener(N),W(google.maps.event.addListener(k,"center_changed",R)))},[p]),ee(()=>{let _t=U.current===null?null:new google.maps.Map(U.current,t);return F(_t),_t!==null&&D&&D(_t),()=>{_t!==null&&E&&E(_t)}},[]),fr.exports.jsx("div",Object.assign({id:a,ref:U,style:o,className:s},{children:fr.exports.jsx($t.Provider,Object.assign({value:k},{children:k!==null?e:fr.exports.jsx(fr.exports.Fragment,{})}))}))}Ci(QV);var Md=class extends Kn{constructor(){super(...arguments),this.state={map:null},this.registeredEvents=[],this.mapRef=null,this.getInstance=()=>this.mapRef===null?null:new google.maps.Map(this.mapRef,this.props.options),this.panTo=t=>{let a=this.getInstance();a&&a.panTo(t)},this.setMapCallback=()=>{this.state.map!==null&&this.props.onLoad&&this.props.onLoad(this.state.map)},this.getRef=t=>{this.mapRef=t}}componentDidMount(){let t=this.getInstance();this.registeredEvents=Ft({updaterMap:X4,eventMap:J4,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{map:t}},this.setMapCallback)}componentDidUpdate(t){this.state.map!==null&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:X4,eventMap:J4,prevProps:t,nextProps:this.props,instance:this.state.map}))}componentWillUnmount(){this.state.map!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),Vt(this.registeredEvents))}render(){return fr.exports.jsx("div",Object.assign({id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName},{children:fr.exports.jsx($t.Provider,Object.assign({value:this.state.map},{children:this.state.map!==null?this.props.children:fr.exports.jsx(fr.exports.Fragment,{})}))}))}};function WL(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(a[o[s]]=e[o[s]]);return a}function KV(e,t,a,o){function s(f){return f instanceof a?f:new a(function(p){p(f)})}return new(a||(a=Promise))(function(f,p){function h(w){try{y(o.next(w))}catch(C){p(C)}}function g(w){try{y(o.throw(w))}catch(C){p(C)}}function y(w){w.done?f(w.value):s(w.value).then(h,g)}y((o=o.apply(e,t||[])).next())})}var xc=typeof document<"u";function K6({url:e,id:t,nonce:a}){return xc?new Promise(function(s,f){let p=document.getElementById(t),h=window;if(p){let y=p.getAttribute("data-state");if(p.src===e&&y!=="error"){if(y==="ready")return s(t);{let w=h.initMap,C=p.onerror;h.initMap=function(){w&&w(),s(t)},p.onerror=function(M){C&&C(M),f(M)};return}}else p.remove()}let g=document.createElement("script");g.type="text/javascript",g.src=e,g.id=t,g.async=!0,g.nonce=a,g.onerror=function(w){g.setAttribute("data-state","error"),f(w)},h.initMap=function(){g.setAttribute("data-state","ready"),s(t)},document.head.appendChild(g)}).catch(o=>{throw console.error("injectScript error: ",o),o}):Promise.reject(new Error("document is undefined"))}function e6(e){let t=e.href;return t&&(t.indexOf("https://fonts.googleapis.com/css?family=Roboto")===0||t.indexOf("https://fonts.googleapis.com/css?family=Google+Sans+Text")===0)?!0:e.tagName.toLowerCase()==="style"&&e.styleSheet&&e.styleSheet.cssText&&e.styleSheet.cssText.replace(`\r
139
+ `,"").indexOf(".gm-style")===0?(e.styleSheet.cssText="",!0):e.tagName.toLowerCase()==="style"&&e.innerHTML&&e.innerHTML.replace(`\r
140
+ `,"").indexOf(".gm-style")===0?(e.innerHTML="",!0):e.tagName.toLowerCase()==="style"&&!e.styleSheet&&!e.innerHTML}function J6(){let e=document.getElementsByTagName("head")[0],t=e.insertBefore.bind(e);e.insertBefore=function(s,f){e6(s)||Reflect.apply(t,e,[s,f])};let a=e.appendChild.bind(e);e.appendChild=function(s){e6(s)||Reflect.apply(a,e,[s])}}function X6({googleMapsApiKey:e,googleMapsClientId:t,version:a="weekly",language:o,region:s,libraries:f,channel:p,mapIds:h,authReferrerPolicy:g}){let y=[];return si(e&&t||!(e&&t),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),e?y.push(`key=${e}`):t&&y.push(`client=${t}`),a&&y.push(`v=${a}`),o&&y.push(`language=${o}`),s&&y.push(`region=${s}`),f&&f.length&&y.push(`libraries=${f.sort().join(",")}`),p&&y.push(`channel=${p}`),h&&h.length&&y.push(`map_ids=${h.join(",")}`),g&&y.push(`auth_referrer_policy=${g}`),y.push("callback=initMap"),`https://maps.googleapis.com/maps/api/js?${y.join("&")}`}var Av=!1;function e9(){return fr.exports.jsx("div",{children:"Loading..."})}var bL={id:"script-loader",version:"weekly"},SL=class extends Kn{constructor(){super(...arguments),this.check=G0(),this.state={loaded:!1},this.cleanupCallback=()=>{delete window.google.maps,this.injectScript()},this.isCleaningUp=()=>KV(this,void 0,void 0,function*(){function t(a){if(!Av)a();else if(xc){let o=window.setInterval(function(){Av||(window.clearInterval(o),a())},1)}}return new Promise(t)}),this.cleanup=()=>{Av=!0;let t=document.getElementById(this.props.id);t&&t.parentNode&&t.parentNode.removeChild(t),Array.prototype.slice.call(document.getElementsByTagName("script")).filter(function(o){return typeof o.src=="string"&&o.src.includes("maps.googleapis")}).forEach(function(o){o.parentNode&&o.parentNode.removeChild(o)}),Array.prototype.slice.call(document.getElementsByTagName("link")).filter(function(o){return o.href==="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"}).forEach(function(o){o.parentNode&&o.parentNode.removeChild(o)}),Array.prototype.slice.call(document.getElementsByTagName("style")).filter(function(o){return o.innerText!==void 0&&o.innerText.length>0&&o.innerText.includes(".gm-")}).forEach(function(o){o.parentNode&&o.parentNode.removeChild(o)})},this.injectScript=()=>{this.props.preventGoogleFontsLoading&&J6(),si(!!this.props.id,'LoadScript requires "id" prop to be a string: %s',this.props.id);let t={id:this.props.id,nonce:this.props.nonce,url:X6(this.props)};K6(t).then(()=>{this.props.onLoad&&this.props.onLoad(),this.setState(function(){return{loaded:!0}})}).catch(a=>{this.props.onError&&this.props.onError(a),console.error(`
141
+ There has been an Error with loading Google Maps API script, please check that you provided correct google API key (${this.props.googleMapsApiKey||"-"}) or Client ID (${this.props.googleMapsClientId||"-"}) to <LoadScript />
142
+ Otherwise it is a Network issue.
143
+ `)})}}componentDidMount(){if(xc){if(window.google&&window.google.maps&&!Av){console.error("google api is already presented");return}this.isCleaningUp().then(this.injectScript).catch(function(a){console.error("Error at injecting script after cleaning up: ",a)})}}componentDidUpdate(t){this.props.libraries!==t.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),xc&&t.language!==this.props.language&&(this.cleanup(),this.setState(function(){return{loaded:!1}},this.cleanupCallback))}componentWillUnmount(){if(xc){this.cleanup();let t=()=>{this.check.current||(delete window.google,Av=!1)};window.setTimeout(t,1),this.props.onUnmount&&this.props.onUnmount()}}render(){return fr.exports.jsxs(fr.exports.Fragment,{children:[fr.exports.jsx("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||fr.exports.jsx(e9,{})]})}};SL.defaultProps=bL;var t6;function JV({id:e=bL.id,version:t=bL.version,nonce:a,googleMapsApiKey:o,googleMapsClientId:s,language:f,region:p,libraries:h,preventGoogleFontsLoading:g,channel:y,mapIds:w,authReferrerPolicy:C}){let M=Iv(!1),[_,A]=Se(!1),[I,$]=Se(void 0);ee(function(){return M.current=!0,()=>{M.current=!1}},[]),ee(function(){xc&&g&&J6()},[g]),ee(function(){_&&si(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")},[_]);let R=X6({version:t,googleMapsApiKey:o,googleMapsClientId:s,language:f,region:p,libraries:h,channel:y,mapIds:w,authReferrerPolicy:C});ee(function(){if(!xc)return;function k(){M.current&&(A(!0),t6=R)}if(window.google&&window.google.maps&&t6===R){k();return}K6({id:e,url:R,nonce:a}).then(k).catch(function(U){M.current&&$(U),console.warn(`
144
+ There has been an Error with loading Google Maps API script, please check that you provided correct google API key (${o||"-"}) or Client ID (${s||"-"})
145
+ Otherwise it is a Network issue.
146
+ `),console.error(U)})},[e,R,a]);let D=Iv();return ee(function(){D.current&&h!==D.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),D.current=h},[h]),{isLoaded:_,loadError:I,url:R}}var XV=fr.exports.jsx(e9,{});function e$(e){var{loadingElement:t,onLoad:a,onError:o,onUnmount:s,children:f}=e,p=WL(e,["loadingElement","onLoad","onError","onUnmount","children"]);let{isLoaded:h,loadError:g}=JV(p);return ee(function(){h&&typeof a=="function"&&a()},[h,a]),ee(function(){g&&typeof o=="function"&&o(g)},[g,o]),ee(function(){return()=>{s&&s()}},[s]),h?f:t||XV}var Y0=Ci(e$);var n6;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(n6||(n6={}));var r6={},i6={options(e,t){e.setOptions(t)}};function t$({options:e,onLoad:t,onUnmount:a}){let o=aa($t),[s,f]=Se(null);return ee(()=>{s!==null&&s.setMap(o)},[o]),ee(()=>{e&&s!==null&&s.setOptions(e)},[s,e]),ee(()=>{let p=new google.maps.TrafficLayer(Object.assign(Object.assign({},e||{}),{map:o}));return f(p),t&&t(p),()=>{s!==null&&(a&&a(s),s.setMap(null))}},[]),null}var YX=Ci(t$),xL=class extends Kn{constructor(){super(...arguments),this.state={trafficLayer:null},this.setTrafficLayerCallback=()=>{this.state.trafficLayer!==null&&this.props.onLoad&&this.props.onLoad(this.state.trafficLayer)},this.registeredEvents=[]}componentDidMount(){let t=new google.maps.TrafficLayer(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=Ft({updaterMap:i6,eventMap:r6,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{trafficLayer:t}},this.setTrafficLayerCallback)}componentDidUpdate(t){this.state.trafficLayer!==null&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:i6,eventMap:r6,prevProps:t,nextProps:this.props,instance:this.state.trafficLayer}))}componentWillUnmount(){this.state.trafficLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),Vt(this.registeredEvents),this.state.trafficLayer.setMap(null))}render(){return null}};xL.contextType=$t;function n$({onLoad:e,onUnmount:t}){let a=aa($t),[o,s]=Se(null);return ee(()=>{o!==null&&o.setMap(a)},[a]),ee(()=>{let f=new google.maps.BicyclingLayer;return s(f),f.setMap(a),e&&e(f),()=>{f!==null&&(t&&t(f),f.setMap(null))}},[]),null}var qX=Ci(n$),EL=class extends Kn{constructor(){super(...arguments),this.state={bicyclingLayer:null},this.setBicyclingLayerCallback=()=>{this.state.bicyclingLayer!==null&&(this.state.bicyclingLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.bicyclingLayer))}}componentDidMount(){let t=new google.maps.BicyclingLayer;this.setState(()=>({bicyclingLayer:t}),this.setBicyclingLayerCallback)}componentWillUnmount(){this.state.bicyclingLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))}render(){return null}};EL.contextType=$t;function r$({onLoad:e,onUnmount:t}){let a=aa($t),[o,s]=Se(null);return ee(()=>{o!==null&&o.setMap(a)},[a]),ee(()=>{let f=new google.maps.TransitLayer;return s(f),f.setMap(a),e&&e(f),()=>{o!==null&&(t&&t(o),this.state.transitLayer.setMap(null))}},[]),null}var ZX=Ci(r$),wL=class extends Kn{constructor(){super(...arguments),this.state={transitLayer:null},this.setTransitLayerCallback=()=>{this.state.transitLayer!==null&&(this.state.transitLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.transitLayer))}}componentDidMount(){let t=new google.maps.TransitLayer;this.setState(function(){return{transitLayer:t}},this.setTransitLayerCallback)}componentWillUnmount(){this.state.transitLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))}render(){return null}};wL.contextType=$t;var a6={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},o6={drawingMode(e,t){e.setDrawingMode(t)},options(e,t){e.setOptions(t)}};function i$({options:e,drawingMode:t,onCircleComplete:a,onMarkerComplete:o,onOverlayComplete:s,onPolygonComplete:f,onPolylineComplete:p,onRectangleComplete:h,onLoad:g,onUnmount:y}){let w=aa($t),[C,M]=Se(null),[_,A]=Se(null),[I,$]=Se(null),[R,D]=Se(null),[E,k]=Se(null),[F,U]=Se(null),[N,W]=Se(null);return ee(()=>{C!==null&&C.setMap(w)},[w]),ee(()=>{e&&C!==null&&C.setOptions(e)},[C,e]),ee(()=>{t&&C!==null&&C.setDrawingMode(t)},[C,t]),ee(()=>{C&&a&&(_!==null&&google.maps.event.removeListener(_),A(google.maps.event.addListener(C,"circlecomplete",a)))},[C,a]),ee(()=>{C&&o&&(I!==null&&google.maps.event.removeListener(I),$(google.maps.event.addListener(C,"markercomplete",o)))},[C,o]),ee(()=>{C&&s&&(R!==null&&google.maps.event.removeListener(R),D(google.maps.event.addListener(C,"overlaycomplete",s)))},[C,s]),ee(()=>{C&&f&&(E!==null&&google.maps.event.removeListener(E),k(google.maps.event.addListener(C,"polygoncomplete",f)))},[C,f]),ee(()=>{C&&p&&(F!==null&&google.maps.event.removeListener(F),U(google.maps.event.addListener(C,"polylinecomplete",p)))},[C,p]),ee(()=>{C&&h&&(N!==null&&google.maps.event.removeListener(N),W(google.maps.event.addListener(C,"rectanglecomplete",h)))},[C,h]),ee(()=>{si(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing);let K=new google.maps.drawing.DrawingManager(Object.assign(Object.assign({},e||{}),{map:w}));return t&&K.setDrawingMode(t),a&&A(google.maps.event.addListener(K,"circlecomplete",a)),o&&$(google.maps.event.addListener(K,"markercomplete",o)),s&&D(google.maps.event.addListener(K,"overlaycomplete",s)),f&&k(google.maps.event.addListener(K,"polygoncomplete",f)),p&&U(google.maps.event.addListener(K,"polylinecomplete",p)),h&&W(google.maps.event.addListener(K,"rectanglecomplete",h)),M(K),g&&g(K),()=>{C!==null&&(_&&google.maps.event.removeListener(_),I&&google.maps.event.removeListener(I),R&&google.maps.event.removeListener(R),E&&google.maps.event.removeListener(E),F&&google.maps.event.removeListener(F),N&&google.maps.event.removeListener(N),y&&y(C),C.setMap(null))}},[]),null}var QX=Ci(i$),CL=class extends Kn{constructor(t){super(t),this.registeredEvents=[],this.state={drawingManager:null},this.setDrawingManagerCallback=()=>{this.state.drawingManager!==null&&this.props.onLoad&&this.props.onLoad(this.state.drawingManager)},si(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing)}componentDidMount(){let t=new google.maps.drawing.DrawingManager(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=Ft({updaterMap:o6,eventMap:a6,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{drawingManager:t}},this.setDrawingManagerCallback)}componentDidUpdate(t){this.state.drawingManager!==null&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:o6,eventMap:a6,prevProps:t,nextProps:this.props,instance:this.state.drawingManager}))}componentWillUnmount(){this.state.drawingManager!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),Vt(this.registeredEvents),this.state.drawingManager.setMap(null))}render(){return null}};CL.contextType=$t;var l6={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},s6={animation(e,t){e.setAnimation(t)},clickable(e,t){e.setClickable(t)},cursor(e,t){e.setCursor(t)},draggable(e,t){e.setDraggable(t)},icon(e,t){e.setIcon(t)},label(e,t){e.setLabel(t)},map(e,t){e.setMap(t)},opacity(e,t){e.setOpacity(t)},options(e,t){e.setOptions(t)},position(e,t){e.setPosition(t)},shape(e,t){e.setShape(t)},title(e,t){e.setTitle(t)},visible(e,t){e.setVisible(t)},zIndex(e,t){e.setZIndex(t)}},V0={};function a$({position:e,options:t,clusterer:a,noClustererRedraw:o,children:s,draggable:f,visible:p,animation:h,clickable:g,cursor:y,icon:w,label:C,opacity:M,shape:_,title:A,zIndex:I,onClick:$,onDblClick:R,onDrag:D,onDragEnd:E,onDragStart:k,onMouseOut:F,onMouseOver:U,onMouseUp:N,onMouseDown:W,onRightClick:K,onClickableChanged:G,onCursorChanged:re,onAnimationChanged:Le,onDraggableChanged:Y,onFlatChanged:ue,onIconChanged:xe,onPositionChanged:Pe,onShapeChanged:ke,onTitleChanged:V,onVisibleChanged:Q,onZindexChanged:le,onLoad:ge,onUnmount:ve}){let de=aa($t),[ie,Oe]=Se(null),[je,we]=Se(null),[ut,Je]=Se(null),[Ve,_t]=Se(null),[Ae,Lt]=Se(null),[tt,fn]=Se(null),[dn,er]=Se(null),[pn,Dt]=Se(null),[qt,Wt]=Se(null),[un,jt]=Se(null),[In,Sn]=Se(null),[hn,vn]=Se(null),[Pt,_n]=Se(null),[kn,Ne]=Se(null),[nt,Et]=Se(null),[pt,et]=Se(null),[Gn,Yn]=Se(null),[Er,nn]=Se(null),[fi,gt]=Se(null),[xn,Wr]=Se(null),[ua,Vo]=Se(null),[so,$o]=Se(null);ee(()=>{ie!==null&&ie.setMap(de)},[de]),ee(()=>{typeof t<"u"&&ie!==null&&ie.setOptions(t)},[ie,t]),ee(()=>{typeof f<"u"&&ie!==null&&ie.setDraggable(f)},[ie,f]),ee(()=>{e&&ie!==null&&ie.setPosition(e)},[ie,e]),ee(()=>{typeof p<"u"&&ie!==null&&ie.setVisible(p)},[ie,p]),ee(()=>{h&&ie!==null&&ie.setAnimation(h)},[ie,h]),ee(()=>{ie&&R&&(je!==null&&google.maps.event.removeListener(je),we(google.maps.event.addListener(ie,"dblclick",R)))},[R]),ee(()=>{ie&&E&&(ut!==null&&google.maps.event.removeListener(ut),Je(google.maps.event.addListener(ie,"dragend",E)))},[R]),ee(()=>{ie&&k&&(Ve!==null&&google.maps.event.removeListener(Ve),_t(google.maps.event.addListener(ie,"dragstart",k)))},[k]),ee(()=>{ie&&W&&(Ae!==null&&google.maps.event.removeListener(Ae),Lt(google.maps.event.addListener(ie,"mousedown",W)))},[W]),ee(()=>{ie&&F&&(tt!==null&&google.maps.event.removeListener(tt),fn(google.maps.event.addListener(ie,"mouseout",F)))},[F]),ee(()=>{ie&&U&&(dn!==null&&google.maps.event.removeListener(dn),er(google.maps.event.addListener(ie,"mouseover",U)))},[U]),ee(()=>{ie&&N&&(pn!==null&&google.maps.event.removeListener(pn),Dt(google.maps.event.addListener(ie,"mouseup",N)))},[N]),ee(()=>{ie&&K&&(qt!==null&&google.maps.event.removeListener(qt),Wt(google.maps.event.addListener(ie,"rightclick",K)))},[K]),ee(()=>{ie&&$&&(un!==null&&google.maps.event.removeListener(un),jt(google.maps.event.addListener(ie,"click",$)))},[$]),ee(()=>{ie&&D&&(In!==null&&google.maps.event.removeListener(In),Sn(google.maps.event.addListener(ie,"drag",D)))},[D]),ee(()=>{ie&&G&&(hn!==null&&google.maps.event.removeListener(hn),vn(google.maps.event.addListener(ie,"clickable_changed",G)))},[G]),ee(()=>{ie&&re&&(Pt!==null&&google.maps.event.removeListener(Pt),_n(google.maps.event.addListener(ie,"cursor_changed",re)))},[re]),ee(()=>{ie&&Le&&(kn!==null&&google.maps.event.removeListener(kn),Ne(google.maps.event.addListener(ie,"animation_changed",Le)))},[Le]),ee(()=>{ie&&Y&&(nt!==null&&google.maps.event.removeListener(nt),Et(google.maps.event.addListener(ie,"draggable_changed",Y)))},[Y]),ee(()=>{ie&&ue&&(pt!==null&&google.maps.event.removeListener(pt),et(google.maps.event.addListener(ie,"flat_changed",ue)))},[ue]),ee(()=>{ie&&xe&&(Gn!==null&&google.maps.event.removeListener(Gn),Yn(google.maps.event.addListener(ie,"icon_changed",xe)))},[xe]),ee(()=>{ie&&Pe&&(Er!==null&&google.maps.event.removeListener(Er),nn(google.maps.event.addListener(ie,"position_changed",Pe)))},[Pe]),ee(()=>{ie&&ke&&(fi!==null&&google.maps.event.removeListener(fi),gt(google.maps.event.addListener(ie,"shape_changed",ke)))},[ke]),ee(()=>{ie&&V&&(xn!==null&&google.maps.event.removeListener(xn),Wr(google.maps.event.addListener(ie,"title_changed",V)))},[V]),ee(()=>{ie&&Q&&(ua!==null&&google.maps.event.removeListener(ua),Vo(google.maps.event.addListener(ie,"visible_changed",Q)))},[Q]),ee(()=>{ie&&le&&(so!==null&&google.maps.event.removeListener(so),$o(google.maps.event.addListener(ie,"zindex_changed",le)))},[le]),ee(()=>{let $i=Object.assign(Object.assign(Object.assign({},t||V0),a?V0:{map:de}),{position:e}),xt=new google.maps.Marker($i);return a?a.addMarker(xt,!!o):xt.setMap(de),e&&xt.setPosition(e),typeof p<"u"&&xt.setVisible(p),typeof f<"u"&&xt.setDraggable(f),typeof g<"u"&&xt.setClickable(g),typeof y=="string"&&xt.setCursor(y),w&&xt.setIcon(w),typeof C<"u"&&xt.setLabel(C),typeof M<"u"&&xt.setOpacity(M),_&&xt.setShape(_),typeof A=="string"&&xt.setTitle(A),typeof I=="number"&&xt.setZIndex(I),R&&we(google.maps.event.addListener(xt,"dblclick",R)),E&&Je(google.maps.event.addListener(xt,"dragend",E)),k&&_t(google.maps.event.addListener(xt,"dragstart",k)),W&&Lt(google.maps.event.addListener(xt,"mousedown",W)),F&&fn(google.maps.event.addListener(xt,"mouseout",F)),U&&er(google.maps.event.addListener(xt,"mouseover",U)),N&&Dt(google.maps.event.addListener(xt,"mouseup",N)),K&&Wt(google.maps.event.addListener(xt,"rightclick",K)),$&&jt(google.maps.event.addListener(xt,"click",$)),D&&Sn(google.maps.event.addListener(xt,"drag",D)),G&&vn(google.maps.event.addListener(xt,"clickable_changed",G)),re&&_n(google.maps.event.addListener(xt,"cursor_changed",re)),Le&&Ne(google.maps.event.addListener(xt,"animation_changed",Le)),Y&&Et(google.maps.event.addListener(xt,"draggable_changed",Y)),ue&&et(google.maps.event.addListener(xt,"flat_changed",ue)),xe&&Yn(google.maps.event.addListener(xt,"icon_changed",xe)),Pe&&nn(google.maps.event.addListener(xt,"position_changed",Pe)),ke&&gt(google.maps.event.addListener(xt,"shape_changed",ke)),V&&Wr(google.maps.event.addListener(xt,"title_changed",V)),Q&&Vo(google.maps.event.addListener(xt,"visible_changed",Q)),le&&$o(google.maps.event.addListener(xt,"zindex_changed",le)),Oe(xt),ge&&ge(xt),()=>{je!==null&&google.maps.event.removeListener(je),ut!==null&&google.maps.event.removeListener(ut),Ve!==null&&google.maps.event.removeListener(Ve),Ae!==null&&google.maps.event.removeListener(Ae),tt!==null&&google.maps.event.removeListener(tt),dn!==null&&google.maps.event.removeListener(dn),pn!==null&&google.maps.event.removeListener(pn),qt!==null&&google.maps.event.removeListener(qt),un!==null&&google.maps.event.removeListener(un),hn!==null&&google.maps.event.removeListener(hn),Pt!==null&&google.maps.event.removeListener(Pt),kn!==null&&google.maps.event.removeListener(kn),nt!==null&&google.maps.event.removeListener(nt),pt!==null&&google.maps.event.removeListener(pt),Gn!==null&&google.maps.event.removeListener(Gn),Er!==null&&google.maps.event.removeListener(Er),xn!==null&&google.maps.event.removeListener(xn),ua!==null&&google.maps.event.removeListener(ua),so!==null&&google.maps.event.removeListener(so),ve&&ve(xt),a?a.removeMarker(xt,!!o):xt&&xt.setMap(null)}},[]);let Vi=FV(()=>s?as.map(s,$i=>q6($i)?Z6($i,{anchor:ie}):$i):null,[s,ie]);return fr.exports.jsx(fr.exports.Fragment,{children:Vi})||null}var KX=Ci(a$),LL=class extends Kn{constructor(){super(...arguments),this.registeredEvents=[]}componentDidMount(){let t=Object.assign(Object.assign(Object.assign({},this.props.options||V0),this.props.clusterer?V0:{map:this.context}),{position:this.props.position});this.marker=new google.maps.Marker(t),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=Ft({updaterMap:s6,eventMap:l6,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)}componentDidUpdate(t){this.marker&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:s6,eventMap:l6,prevProps:t,nextProps:this.props,instance:this.marker}))}componentWillUnmount(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),Vt(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))}render(){let t=null;return this.props.children&&(t=as.map(this.props.children,a=>q6(a)?Z6(a,{anchor:this.marker}):a)),t||null}};LL.contextType=$t;var o$=function(){function e(t,a){t.getClusterer().extend(e,google.maps.OverlayView),this.cluster=t,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=a,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.cMouseDownInCluster=null,this.cDraggingMapByCluster=null,this.timeOut=null,this.setMap(t.getMap()),this.onBoundsChanged=this.onBoundsChanged.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onAdd=this.onAdd.bind(this),this.onRemove=this.onRemove.bind(this),this.draw=this.draw.bind(this),this.hide=this.hide.bind(this),this.show=this.show.bind(this),this.useStyle=this.useStyle.bind(this),this.setCenter=this.setCenter.bind(this),this.getPosFromLatLng=this.getPosFromLatLng.bind(this)}return e.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},e.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},e.prototype.onClick=function(t){if(this.cMouseDownInCluster=!1,!this.cDraggingMapByCluster){var a=this.cluster.getClusterer();if(google.maps.event.trigger(a,"click",this.cluster),google.maps.event.trigger(a,"clusterclick",this.cluster),a.getZoomOnClick()){var o=a.getMaxZoom(),s=this.cluster.getBounds(),f=a.getMap();f!==null&&"fitBounds"in f&&f.fitBounds(s),this.timeOut=window.setTimeout(function(){var p=a.getMap();if(p!==null){"fitBounds"in p&&p.fitBounds(s);var h=p.getZoom()||0;o!==null&&h>o&&p.setZoom(o+1)}},100)}t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()}},e.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},e.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},e.prototype.onAdd=function(){var t;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),(t=this.getPanes())===null||t===void 0||t.overlayMouseTarget.appendChild(this.div);var a=this.getMap();a!==null&&(this.boundsChangedListener=google.maps.event.addListener(a,"bounds_changed",this.onBoundsChanged),this.div.addEventListener("mousedown",this.onMouseDown),this.div.addEventListener("click",this.onClick),this.div.addEventListener("mouseover",this.onMouseOver),this.div.addEventListener("mouseout",this.onMouseOut))},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),this.boundsChangedListener!==null&&google.maps.event.removeListener(this.boundsChangedListener),this.div.removeEventListener("mousedown",this.onMouseDown),this.div.removeEventListener("click",this.onClick),this.div.removeEventListener("mouseover",this.onMouseOver),this.div.removeEventListener("mouseout",this.onMouseOut),this.div.parentNode.removeChild(this.div),this.timeOut!==null&&(window.clearTimeout(this.timeOut),this.timeOut=null),this.div=null)},e.prototype.draw=function(){if(this.visible&&this.div!==null&&this.center){var t=this.getPosFromLatLng(this.center);this.div.style.top=t!==null?"".concat(t.y,"px"):"0",this.div.style.left=t!==null?"".concat(t.x,"px"):"0"}},e.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},e.prototype.show=function(){var t;if(this.div&&this.center){var a="",o=this.backgroundPosition.split(" "),s=parseInt(o[0].replace(/^\s+|\s+$/g,""),10),f=parseInt(o[1].replace(/^\s+|\s+$/g,""),10),p=this.getPosFromLatLng(this.center);this.sums===null||typeof this.sums.title>"u"||this.sums.title===""?a=this.cluster.getClusterer().getTitle():a=this.sums.title,this.div.className=this.className,this.div.style.cursor="pointer",this.div.style.position="absolute",this.div.style.top=p!==null?"".concat(p.y,"px"):"0",this.div.style.left=p!==null?"".concat(p.x,"px"):"0",this.div.style.width="".concat(this.width,"px"),this.div.style.height="".concat(this.height,"px");var h=document.createElement("img");h.alt=a,h.src=this.url,h.width=this.width,h.height=this.height,h.style.position="absolute",h.style.top="".concat(f,"px"),h.style.left="".concat(s,"px"),this.cluster.getClusterer().enableRetinaIcons||(h.style.clip="rect(-".concat(f,"px, -").concat(s+this.width,"px, -").concat(f+this.height,", -").concat(s,")"));var g=document.createElement("div");g.style.position="absolute",g.style.top="".concat(this.anchorText[0],"px"),g.style.left="".concat(this.anchorText[1],"px"),g.style.color=this.textColor,g.style.fontSize="".concat(this.textSize,"px"),g.style.fontFamily=this.fontFamily,g.style.fontWeight=this.fontWeight,g.style.fontStyle=this.fontStyle,g.style.textDecoration=this.textDecoration,g.style.textAlign="center",g.style.width="".concat(this.width,"px"),g.style.lineHeight="".concat(this.height,"px"),g.innerText="".concat((t=this.sums)===null||t===void 0?void 0:t.text),this.div.innerHTML="",this.div.appendChild(h),this.div.appendChild(g),this.div.title=a,this.div.style.display=""}this.visible=!0},e.prototype.useStyle=function(t){this.sums=t;var a=this.cluster.getClusterer().getStyles(),o=a[Math.min(a.length-1,Math.max(0,t.index-1))];this.url=o.url,this.height=o.height,this.width=o.width,o.className&&(this.className="".concat(this.clusterClassName," ").concat(o.className)),this.anchorText=o.anchorText||[0,0],this.anchorIcon=o.anchorIcon||[this.height/2,this.width/2],this.textColor=o.textColor||"black",this.textSize=o.textSize||11,this.textDecoration=o.textDecoration||"none",this.fontWeight=o.fontWeight||"bold",this.fontStyle=o.fontStyle||"normal",this.fontFamily=o.fontFamily||"Arial,sans-serif",this.backgroundPosition=o.backgroundPosition||"0 0"},e.prototype.setCenter=function(t){this.center=t},e.prototype.getPosFromLatLng=function(t){var a=this.getProjection().fromLatLngToDivPixel(t);return a!==null&&(a.x-=this.anchorIcon[1],a.y-=this.anchorIcon[0]),a},e}(),l$=function(){function e(t){this.markerClusterer=t,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new o$(this,this.markerClusterer.getStyles()),this.getSize=this.getSize.bind(this),this.getMarkers=this.getMarkers.bind(this),this.getCenter=this.getCenter.bind(this),this.getMap=this.getMap.bind(this),this.getClusterer=this.getClusterer.bind(this),this.getBounds=this.getBounds.bind(this),this.remove=this.remove.bind(this),this.addMarker=this.addMarker.bind(this),this.isMarkerInClusterBounds=this.isMarkerInClusterBounds.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.updateIcon=this.updateIcon.bind(this),this.isMarkerAlreadyAdded=this.isMarkerAlreadyAdded.bind(this)}return e.prototype.getSize=function(){return this.markers.length},e.prototype.getMarkers=function(){return this.markers},e.prototype.getCenter=function(){return this.center},e.prototype.getMap=function(){return this.map},e.prototype.getClusterer=function(){return this.markerClusterer},e.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center,this.center),a=this.getMarkers(),o=0;o<a.length;o++){var s=a[o].getPosition();s&&t.extend(s)}return t},e.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},e.prototype.addMarker=function(t){var a;if(this.isMarkerAlreadyAdded(t))return!1;if(this.center){if(this.averageCenter){var o=t.getPosition();if(o){var s=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(s-1)+o.lat())/s,(this.center.lng()*(s-1)+o.lng())/s),this.calculateBounds()}}}else{var o=t.getPosition();o&&(this.center=o,this.calculateBounds())}t.isAdded=!0,this.markers.push(t);var f=this.markers.length,p=this.markerClusterer.getMaxZoom(),h=(a=this.map)===null||a===void 0?void 0:a.getZoom();if(p!==null&&typeof h<"u"&&h>p)t.getMap()!==this.map&&t.setMap(this.map);else if(f<this.minClusterSize)t.getMap()!==this.map&&t.setMap(this.map);else if(f===this.minClusterSize)for(var g=0;g<f;g++)this.markers[g].setMap(null);else t.setMap(null);return!0},e.prototype.isMarkerInClusterBounds=function(t){if(this.bounds!==null){var a=t.getPosition();if(a)return this.bounds.contains(a)}return!1},e.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},e.prototype.updateIcon=function(){var t,a=this.markers.length,o=this.markerClusterer.getMaxZoom(),s=(t=this.map)===null||t===void 0?void 0:t.getZoom();if(o!==null&&typeof s<"u"&&s>o){this.clusterIcon.hide();return}if(a<this.minClusterSize){this.clusterIcon.hide();return}this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show()},e.prototype.isMarkerAlreadyAdded=function(t){if(this.markers.includes)return this.markers.includes(t);for(var a=0;a<this.markers.length;a++)if(t===this.markers[a])return!0;return!1},e}();function s$(e,t){var a=e.length,o=a.toString().length,s=Math.min(o,t);return{text:a.toString(),index:s,title:""}}var u$=2e3,c$=500,f$="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",d$="png",p$=[53,56,66,78,90],h$="cluster",v$=function(){function e(t,a,o){a===void 0&&(a=[]),o===void 0&&(o={}),this.getMinimumClusterSize=this.getMinimumClusterSize.bind(this),this.setMinimumClusterSize=this.setMinimumClusterSize.bind(this),this.getEnableRetinaIcons=this.getEnableRetinaIcons.bind(this),this.setEnableRetinaIcons=this.setEnableRetinaIcons.bind(this),this.addToClosestCluster=this.addToClosestCluster.bind(this),this.getImageExtension=this.getImageExtension.bind(this),this.setImageExtension=this.setImageExtension.bind(this),this.getExtendedBounds=this.getExtendedBounds.bind(this),this.getAverageCenter=this.getAverageCenter.bind(this),this.setAverageCenter=this.setAverageCenter.bind(this),this.getTotalClusters=this.getTotalClusters.bind(this),this.fitMapToMarkers=this.fitMapToMarkers.bind(this),this.getIgnoreHidden=this.getIgnoreHidden.bind(this),this.setIgnoreHidden=this.setIgnoreHidden.bind(this),this.getClusterClass=this.getClusterClass.bind(this),this.setClusterClass=this.setClusterClass.bind(this),this.getTotalMarkers=this.getTotalMarkers.bind(this),this.getZoomOnClick=this.getZoomOnClick.bind(this),this.setZoomOnClick=this.setZoomOnClick.bind(this),this.getBatchSizeIE=this.getBatchSizeIE.bind(this),this.setBatchSizeIE=this.setBatchSizeIE.bind(this),this.createClusters=this.createClusters.bind(this),this.onZoomChanged=this.onZoomChanged.bind(this),this.getImageSizes=this.getImageSizes.bind(this),this.setImageSizes=this.setImageSizes.bind(this),this.getCalculator=this.getCalculator.bind(this),this.setCalculator=this.setCalculator.bind(this),this.removeMarkers=this.removeMarkers.bind(this),this.resetViewport=this.resetViewport.bind(this),this.getImagePath=this.getImagePath.bind(this),this.setImagePath=this.setImagePath.bind(this),this.pushMarkerTo=this.pushMarkerTo.bind(this),this.removeMarker=this.removeMarker.bind(this),this.clearMarkers=this.clearMarkers.bind(this),this.setupStyles=this.setupStyles.bind(this),this.getGridSize=this.getGridSize.bind(this),this.setGridSize=this.setGridSize.bind(this),this.getClusters=this.getClusters.bind(this),this.getMaxZoom=this.getMaxZoom.bind(this),this.setMaxZoom=this.setMaxZoom.bind(this),this.getMarkers=this.getMarkers.bind(this),this.addMarkers=this.addMarkers.bind(this),this.getStyles=this.getStyles.bind(this),this.setStyles=this.setStyles.bind(this),this.addMarker=this.addMarker.bind(this),this.onRemove=this.onRemove.bind(this),this.getTitle=this.getTitle.bind(this),this.setTitle=this.setTitle.bind(this),this.repaint=this.repaint.bind(this),this.onIdle=this.onIdle.bind(this),this.redraw=this.redraw.bind(this),this.extend=this.extend.bind(this),this.onAdd=this.onAdd.bind(this),this.draw=this.draw.bind(this),this.extend(e,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=o.gridSize||60,this.minClusterSize=o.minimumClusterSize||2,this.maxZoom=o.maxZoom||null,this.styles=o.styles||[],this.title=o.title||"",this.zoomOnClick=!0,o.zoomOnClick!==void 0&&(this.zoomOnClick=o.zoomOnClick),this.averageCenter=!1,o.averageCenter!==void 0&&(this.averageCenter=o.averageCenter),this.ignoreHidden=!1,o.ignoreHidden!==void 0&&(this.ignoreHidden=o.ignoreHidden),this.enableRetinaIcons=!1,o.enableRetinaIcons!==void 0&&(this.enableRetinaIcons=o.enableRetinaIcons),this.imagePath=o.imagePath||f$,this.imageExtension=o.imageExtension||d$,this.imageSizes=o.imageSizes||p$,this.calculator=o.calculator||s$,this.batchSize=o.batchSize||u$,this.batchSizeIE=o.batchSizeIE||c$,this.clusterClass=o.clusterClass||h$,navigator.userAgent.toLowerCase().indexOf("msie")!==-1&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(a,!0),this.setMap(t)}return e.prototype.onZoomChanged=function(){var t,a;this.resetViewport(!1),(((t=this.getMap())===null||t===void 0?void 0:t.getZoom())===(this.get("minZoom")||0)||((a=this.getMap())===null||a===void 0?void 0:a.getZoom())===this.get("maxZoom"))&&google.maps.event.trigger(this,"idle")},e.prototype.onIdle=function(){this.redraw()},e.prototype.onAdd=function(){var t=this.getMap();this.activeMap=t,this.ready=!0,this.repaint(),t!==null&&(this.listeners=[google.maps.event.addListener(t,"zoom_changed",this.onZoomChanged),google.maps.event.addListener(t,"idle",this.onIdle)])},e.prototype.onRemove=function(){for(var t=0;t<this.markers.length;t++)this.markers[t].getMap()!==this.activeMap&&this.markers[t].setMap(this.activeMap);for(var t=0;t<this.clusters.length;t++)this.clusters[t].remove();this.clusters=[];for(var t=0;t<this.listeners.length;t++)google.maps.event.removeListener(this.listeners[t]);this.listeners=[],this.activeMap=null,this.ready=!1},e.prototype.draw=function(){},e.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var t=0;t<this.imageSizes.length;t++)this.styles.push({url:"".concat(this.imagePath+(t+1),".").concat(this.imageExtension),height:this.imageSizes[t],width:this.imageSizes[t]})},e.prototype.fitMapToMarkers=function(){for(var t=this.getMarkers(),a=new google.maps.LatLngBounds,o=0;o<t.length;o++){var s=t[o].getPosition();s&&a.extend(s)}var f=this.getMap();f!==null&&"fitBounds"in f&&f.fitBounds(a)},e.prototype.getGridSize=function(){return this.gridSize},e.prototype.setGridSize=function(t){this.gridSize=t},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize},e.prototype.setMinimumClusterSize=function(t){this.minClusterSize=t},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.setMaxZoom=function(t){this.maxZoom=t},e.prototype.getStyles=function(){return this.styles},e.prototype.setStyles=function(t){this.styles=t},e.prototype.getTitle=function(){return this.title},e.prototype.setTitle=function(t){this.title=t},e.prototype.getZoomOnClick=function(){return this.zoomOnClick},e.prototype.setZoomOnClick=function(t){this.zoomOnClick=t},e.prototype.getAverageCenter=function(){return this.averageCenter},e.prototype.setAverageCenter=function(t){this.averageCenter=t},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden},e.prototype.setIgnoreHidden=function(t){this.ignoreHidden=t},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},e.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons=t},e.prototype.getImageExtension=function(){return this.imageExtension},e.prototype.setImageExtension=function(t){this.imageExtension=t},e.prototype.getImagePath=function(){return this.imagePath},e.prototype.setImagePath=function(t){this.imagePath=t},e.prototype.getImageSizes=function(){return this.imageSizes},e.prototype.setImageSizes=function(t){this.imageSizes=t},e.prototype.getCalculator=function(){return this.calculator},e.prototype.setCalculator=function(t){this.calculator=t},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE},e.prototype.setBatchSizeIE=function(t){this.batchSizeIE=t},e.prototype.getClusterClass=function(){return this.clusterClass},e.prototype.setClusterClass=function(t){this.clusterClass=t},e.prototype.getMarkers=function(){return this.markers},e.prototype.getTotalMarkers=function(){return this.markers.length},e.prototype.getClusters=function(){return this.clusters},e.prototype.getTotalClusters=function(){return this.clusters.length},e.prototype.addMarker=function(t,a){this.pushMarkerTo(t),a||this.redraw()},e.prototype.addMarkers=function(t,a){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&this.pushMarkerTo(t[o]);a||this.redraw()},e.prototype.pushMarkerTo=function(t){var a=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",function(){a.ready&&(t.isAdded=!1,a.repaint())}),t.isAdded=!1,this.markers.push(t)},e.prototype.removeMarker_=function(t){var a=-1;if(this.markers.indexOf)a=this.markers.indexOf(t);else for(var o=0;o<this.markers.length;o++)if(t===this.markers[o]){a=o;break}return a===-1?!1:(t.setMap(null),this.markers.splice(a,1),!0)},e.prototype.removeMarker=function(t,a){var o=this.removeMarker_(t);return!a&&o&&this.repaint(),o},e.prototype.removeMarkers=function(t,a){for(var o=!1,s=0;s<t.length;s++)o=o||this.removeMarker_(t[s]);return!a&&o&&this.repaint(),o},e.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},e.prototype.repaint=function(){var t=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout(function(){for(var o=0;o<t.length;o++)t[o].remove()},0)},e.prototype.getExtendedBounds=function(t){var a=this.getProjection(),o=a.fromLatLngToDivPixel(new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()));o!==null&&(o.x+=this.gridSize,o.y-=this.gridSize);var s=a.fromLatLngToDivPixel(new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()));if(s!==null&&(s.x-=this.gridSize,s.y+=this.gridSize),o!==null){var f=a.fromDivPixelToLatLng(o);f!==null&&t.extend(f)}if(s!==null){var p=a.fromDivPixelToLatLng(s);p!==null&&t.extend(p)}return t},e.prototype.redraw=function(){this.createClusters(0)},e.prototype.resetViewport=function(t){for(var a=0;a<this.clusters.length;a++)this.clusters[a].remove();this.clusters=[];for(var a=0;a<this.markers.length;a++){var o=this.markers[a];o.isAdded=!1,t&&o.setMap(null)}},e.prototype.distanceBetweenPoints=function(t,a){var o=6371,s=(a.lat()-t.lat())*Math.PI/180,f=(a.lng()-t.lng())*Math.PI/180,p=Math.sin(s/2)*Math.sin(s/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(a.lat()*Math.PI/180)*Math.sin(f/2)*Math.sin(f/2);return o*(2*Math.atan2(Math.sqrt(p),Math.sqrt(1-p)))},e.prototype.isMarkerInBounds=function(t,a){var o=t.getPosition();return o?a.contains(o):!1},e.prototype.addToClosestCluster=function(t){for(var a,o=4e4,s=null,f=0;f<this.clusters.length;f++){a=this.clusters[f];var p=a.getCenter(),h=t.getPosition();if(p&&h){var g=this.distanceBetweenPoints(p,h);g<o&&(o=g,s=a)}}s&&s.isMarkerInClusterBounds(t)?s.addMarker(t):(a=new l$(this),a.addMarker(t),this.clusters.push(a))},e.prototype.createClusters=function(t){var a=this;if(!!this.ready){t===0&&(google.maps.event.trigger(this,"clusteringbegin",this),this.timerRefStatic!==null&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var o=this.getMap(),s=o!==null&&("getBounds"in o)?o.getBounds():null,f=(o==null?void 0:o.getZoom())||0,p=f>3?new google.maps.LatLngBounds(s==null?void 0:s.getSouthWest(),s==null?void 0:s.getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),h=this.getExtendedBounds(p),g=Math.min(t+this.batchSize,this.markers.length),y=t;y<g;y++){var w=this.markers[y];!w.isAdded&&this.isMarkerInBounds(w,h)&&(!this.ignoreHidden||this.ignoreHidden&&w.getVisible())&&this.addToClosestCluster(w)}if(g<this.markers.length)this.timerRefStatic=window.setTimeout(function(){a.createClusters(g)},0);else{this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this);for(var y=0;y<this.clusters.length;y++)this.clusters[y].updateIcon()}}},e.prototype.extend=function(t,a){return function(s){for(var f in s.prototype)this.prototype[f]=s.prototype[f];return this}.apply(t,[a])},e}(),u6={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},c6={averageCenter(e,t){e.setAverageCenter(t)},batchSizeIE(e,t){e.setBatchSizeIE(t)},calculator(e,t){e.setCalculator(t)},clusterClass(e,t){e.setClusterClass(t)},enableRetinaIcons(e,t){e.setEnableRetinaIcons(t)},gridSize(e,t){e.setGridSize(t)},ignoreHidden(e,t){e.setIgnoreHidden(t)},imageExtension(e,t){e.setImageExtension(t)},imagePath(e,t){e.setImagePath(t)},imageSizes(e,t){e.setImageSizes(t)},maxZoom(e,t){e.setMaxZoom(t)},minimumClusterSize(e,t){e.setMinimumClusterSize(t)},styles(e,t){e.setStyles(t)},title(e,t){e.setTitle(t)},zoomOnClick(e,t){e.setZoomOnClick(t)}};function m$({children:e}){let[t]=Se(null);return t!==null&&e(t)||null}Ci(m$);var TL=class extends Kn{constructor(){super(...arguments),this.registeredEvents=[],this.state={markerClusterer:null},this.setClustererCallback=()=>{this.state.markerClusterer!==null&&this.props.onLoad&&this.props.onLoad(this.state.markerClusterer)}}componentDidMount(){if(this.context){let t=new v$(this.context,[],this.props.options);this.registeredEvents=Ft({updaterMap:c6,eventMap:u6,prevProps:{},nextProps:this.props,instance:t}),this.setState(()=>({markerClusterer:t}),this.setClustererCallback)}}componentDidUpdate(t){this.state.markerClusterer&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:c6,eventMap:u6,prevProps:t,nextProps:this.props,instance:this.state.markerClusterer}))}componentWillUnmount(){this.state.markerClusterer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),Vt(this.registeredEvents),this.state.markerClusterer.setMap(null))}render(){return this.state.markerClusterer!==null?this.props.children(this.state.markerClusterer):null}};TL.contextType=$t;function f6(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}var t9=function(){function e(t){t===void 0&&(t={}),this.getCloseClickHandler=this.getCloseClickHandler.bind(this),this.closeClickHandler=this.closeClickHandler.bind(this),this.createInfoBoxDiv=this.createInfoBoxDiv.bind(this),this.addClickHandler=this.addClickHandler.bind(this),this.getCloseBoxImg=this.getCloseBoxImg.bind(this),this.getBoxWidths=this.getBoxWidths.bind(this),this.setBoxStyle=this.setBoxStyle.bind(this),this.setPosition=this.setPosition.bind(this),this.getPosition=this.getPosition.bind(this),this.setOptions=this.setOptions.bind(this),this.setContent=this.setContent.bind(this),this.setVisible=this.setVisible.bind(this),this.getContent=this.getContent.bind(this),this.getVisible=this.getVisible.bind(this),this.setZIndex=this.setZIndex.bind(this),this.getZIndex=this.getZIndex.bind(this),this.onRemove=this.onRemove.bind(this),this.panBox=this.panBox.bind(this),this.extend=this.extend.bind(this),this.close=this.close.bind(this),this.draw=this.draw.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.open=this.open.bind(this),this.extend(e,google.maps.OverlayView),this.content=t.content||"",this.disableAutoPan=t.disableAutoPan||!1,this.maxWidth=t.maxWidth||0,this.pixelOffset=t.pixelOffset||new google.maps.Size(0,0),this.position=t.position||new google.maps.LatLng(0,0),this.zIndex=t.zIndex||null,this.boxClass=t.boxClass||"infoBox",this.boxStyle=t.boxStyle||{},this.closeBoxMargin=t.closeBoxMargin||"2px",this.closeBoxURL=t.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",t.closeBoxURL===""&&(this.closeBoxURL=""),this.infoBoxClearance=t.infoBoxClearance||new google.maps.Size(1,1),typeof t.visible>"u"&&(typeof t.isHidden>"u"?t.visible=!0:t.visible=!t.isHidden),this.isHidden=!t.visible,this.alignBottom=t.alignBottom||!1,this.pane=t.pane||"floatPane",this.enableEventPropagation=t.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return e.prototype.createInfoBoxDiv=function(){var t=this,a=function(h){h.returnValue=!1,h.preventDefault&&h.preventDefault(),t.enableEventPropagation||f6(h)};if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),typeof this.content=="string"?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var o=this.getPanes();if(o!==null&&o[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(this.maxWidth!==0&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var s=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-s.left-s.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var f=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],p=0;p<f.length;p++)this.eventListeners.push(google.maps.event.addListener(this.div,f[p],f6));this.eventListeners.push(google.maps.event.addListener(this.div,"mouseover",function(){t.div&&(t.div.style.cursor="default")}))}this.contextListener=google.maps.event.addListener(this.div,"contextmenu",a),google.maps.event.trigger(this,"domready")}},e.prototype.getCloseBoxImg=function(){var t="";return this.closeBoxURL!==""&&(t='<img alt=""',t+=' aria-hidden="true"',t+=" src='"+this.closeBoxURL+"'",t+=" align=right",t+=" style='",t+=" position: relative;",t+=" cursor: pointer;",t+=" margin: "+this.closeBoxMargin+";",t+="'>"),t},e.prototype.addClickHandler=function(){this.closeListener=this.div&&this.div.firstChild&&this.closeBoxURL!==""?google.maps.event.addListener(this.div.firstChild,"click",this.getCloseClickHandler()):null},e.prototype.closeClickHandler=function(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation(),google.maps.event.trigger(this,"closeclick"),this.close()},e.prototype.getCloseClickHandler=function(){return this.closeClickHandler},e.prototype.panBox=function(t){if(this.div&&!t){var a=this.getMap();if(a instanceof google.maps.Map){var o=0,s=0,f=a.getBounds();f&&!f.contains(this.position)&&a.setCenter(this.position);var p=a.getDiv(),h=p.offsetWidth,g=p.offsetHeight,y=this.pixelOffset.width,w=this.pixelOffset.height,C=this.div.offsetWidth,M=this.div.offsetHeight,_=this.infoBoxClearance.width,A=this.infoBoxClearance.height,I=this.getProjection(),$=I.fromLatLngToContainerPixel(this.position);$!==null&&($.x<-y+_?o=$.x+y-_:$.x+C+y+_>h&&(o=$.x+C+y+_-h),this.alignBottom?$.y<-w+A+M?s=$.y+w-A-M:$.y+w+A>g&&(s=$.y+w+A-g):$.y<-w+A?s=$.y+w-A:$.y+M+w+A>g&&(s=$.y+M+w+A-g)),o===0&&s===0||a.panBy(o,s)}}},e.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var t=this.boxStyle;for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(this.div.style[a]=t[a]);if(this.div.style.webkitTransform="translateZ(0)",typeof this.div.style.opacity<"u"&&this.div.style.opacity!==""){var o=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+o*100+')"',this.div.style.filter="alpha(opacity="+o*100+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",this.zIndex!==null&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},e.prototype.getBoxWidths=function(){var t={top:0,bottom:0,left:0,right:0};if(!this.div)return t;if(document.defaultView){var a=this.div.ownerDocument,o=a&&a.defaultView?a.defaultView.getComputedStyle(this.div,""):null;o&&(t.top=parseInt(o.borderTopWidth||"",10)||0,t.bottom=parseInt(o.borderBottomWidth||"",10)||0,t.left=parseInt(o.borderLeftWidth||"",10)||0,t.right=parseInt(o.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var s=this.div.currentStyle;s&&(t.top=parseInt(s.borderTopWidth||"",10)||0,t.bottom=parseInt(s.borderBottomWidth||"",10)||0,t.left=parseInt(s.borderLeftWidth||"",10)||0,t.right=parseInt(s.borderRightWidth||"",10)||0)}return t},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},e.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var t=this.getProjection(),a=t.fromLatLngToDivPixel(this.position);a!==null&&(this.div.style.left=a.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(a.y+this.pixelOffset.height)+"px":this.div.style.top=a.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},e.prototype.setOptions=function(t){t===void 0&&(t={}),typeof t.boxClass<"u"&&(this.boxClass=t.boxClass,this.setBoxStyle()),typeof t.boxStyle<"u"&&(this.boxStyle=t.boxStyle,this.setBoxStyle()),typeof t.content<"u"&&this.setContent(t.content),typeof t.disableAutoPan<"u"&&(this.disableAutoPan=t.disableAutoPan),typeof t.maxWidth<"u"&&(this.maxWidth=t.maxWidth),typeof t.pixelOffset<"u"&&(this.pixelOffset=t.pixelOffset),typeof t.alignBottom<"u"&&(this.alignBottom=t.alignBottom),typeof t.position<"u"&&this.setPosition(t.position),typeof t.zIndex<"u"&&this.setZIndex(t.zIndex),typeof t.closeBoxMargin<"u"&&(this.closeBoxMargin=t.closeBoxMargin),typeof t.closeBoxURL<"u"&&(this.closeBoxURL=t.closeBoxURL),typeof t.infoBoxClearance<"u"&&(this.infoBoxClearance=t.infoBoxClearance),typeof t.isHidden<"u"&&(this.isHidden=t.isHidden),typeof t.visible<"u"&&(this.isHidden=!t.visible),typeof t.enableEventPropagation<"u"&&(this.enableEventPropagation=t.enableEventPropagation),this.div&&this.draw()},e.prototype.setContent=function(t){this.content=t,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),typeof t=="string"?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px",typeof t=="string"?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},e.prototype.setPosition=function(t){this.position=t,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},e.prototype.setVisible=function(t){this.isHidden=!t,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},e.prototype.setZIndex=function(t){this.zIndex=t,this.div&&(this.div.style.zIndex=t+""),google.maps.event.trigger(this,"zindex_changed")},e.prototype.getContent=function(){return this.content},e.prototype.getPosition=function(){return this.position},e.prototype.getZIndex=function(){return this.zIndex},e.prototype.getVisible=function(){var t=this.getMap();return typeof t>"u"||t===null?!1:!this.isHidden},e.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},e.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},e.prototype.open=function(t,a){var o=this;a&&(this.position=a.getPosition(),this.moveListener=google.maps.event.addListener(a,"position_changed",function(){var s=a.getPosition();o.setPosition(s)}),this.mapListener=google.maps.event.addListener(a,"map_changed",function(){o.setMap(a.map)})),this.setMap(t),this.div&&this.panBox()},e.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var t=0;t<this.eventListeners.length;t++)google.maps.event.removeListener(this.eventListeners[t]);this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},e.prototype.extend=function(t,a){return function(s){for(var f in s.prototype)Object.prototype.hasOwnProperty.call(this,f)||(this.prototype[f]=s.prototype[f]);return this}.apply(t,[a])},e}(),d6={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},p6={options(e,t){e.setOptions(t)},position(e,t){t instanceof google.maps.LatLng?e.setPosition(t):e.setPosition(new google.maps.LatLng(t.lat,t.lng))},visible(e,t){e.setVisible(t)},zIndex(e,t){e.setZIndex(t)}},g$={};function y$({children:e,anchor:t,options:a,position:o,zIndex:s,onCloseClick:f,onDomReady:p,onContentChanged:h,onPositionChanged:g,onZindexChanged:y,onLoad:w,onUnmount:C}){let M=aa($t),[_,A]=Se(null),[I,$]=Se(null),[R,D]=Se(null),[E,k]=Se(null),[F,U]=Se(null),[N,W]=Se(null),K=Iv(null);return ee(()=>{M&&_!==null&&(_.close(),t?_.open(M,t):_.getPosition()&&_.open(M))},[M,_,t]),ee(()=>{a&&_!==null&&_.setOptions(a)},[_,a]),ee(()=>{if(o&&_!==null){let G=o instanceof google.maps.LatLng?o:new google.maps.LatLng(o.lat,o.lng);_.setPosition(G)}},[o]),ee(()=>{typeof s=="number"&&_!==null&&_.setZIndex(s)},[s]),ee(()=>{_&&f&&(I!==null&&google.maps.event.removeListener(I),$(google.maps.event.addListener(_,"closeclick",f)))},[f]),ee(()=>{_&&p&&(R!==null&&google.maps.event.removeListener(R),D(google.maps.event.addListener(_,"domready",p)))},[p]),ee(()=>{_&&h&&(E!==null&&google.maps.event.removeListener(E),k(google.maps.event.addListener(_,"content_changed",h)))},[h]),ee(()=>{_&&g&&(F!==null&&google.maps.event.removeListener(F),U(google.maps.event.addListener(_,"position_changed",g)))},[g]),ee(()=>{_&&y&&(N!==null&&google.maps.event.removeListener(N),W(google.maps.event.addListener(_,"zindex_changed",y)))},[y]),ee(()=>{if(M){let G=a||g$,{position:re}=G,Le=WL(G,["position"]),Y;re&&!(re instanceof google.maps.LatLng)&&(Y=new google.maps.LatLng(re.lat,re.lng));let ue=new t9(Object.assign(Object.assign({},Le),Y?{position:Y}:{}));K.current=document.createElement("div"),A(ue),f&&$(google.maps.event.addListener(ue,"circlecomplete",f)),p&&D(google.maps.event.addListener(ue,"domready",p)),h&&k(google.maps.event.addListener(ue,"content_changed",h)),g&&U(google.maps.event.addListener(ue,"position_changed",g)),y&&W(google.maps.event.addListener(ue,"zindex_changed",y)),ue.setContent(K.current),t?ue.open(M,t):ue.getPosition()?ue.open(M):si(!1,"You must provide either an anchor or a position prop for <InfoBox>."),w&&w(ue)}return()=>{_!==null&&(I&&google.maps.event.removeListener(I),E&&google.maps.event.removeListener(E),R&&google.maps.event.removeListener(R),F&&google.maps.event.removeListener(F),N&&google.maps.event.removeListener(N),C&&C(_),_.close())}},[]),K.current?(0,Bv.createPortal)(as.only(e),K.current):null}var JX=Ci(y$),_L=class extends Kn{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=null,this.state={infoBox:null},this.open=(t,a)=>{a?t.open(this.context,a):t.getPosition()?t.open(this.context):si(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},this.setInfoBoxCallback=()=>{this.state.infoBox!==null&&this.containerElement!==null&&(this.state.infoBox.setContent(this.containerElement),this.open(this.state.infoBox,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoBox))}}componentDidMount(){let t=this.props.options||{},{position:a}=t,o=WL(t,["position"]),s;a&&!(a instanceof google.maps.LatLng)&&(s=new google.maps.LatLng(a.lat,a.lng));let f=new t9(Object.assign(Object.assign({},o),s?{position:s}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=Ft({updaterMap:p6,eventMap:d6,prevProps:{},nextProps:this.props,instance:f}),this.setState({infoBox:f},this.setInfoBoxCallback)}componentDidUpdate(t){let{infoBox:a}=this.state;a!==null&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:p6,eventMap:d6,prevProps:t,nextProps:this.props,instance:a}))}componentWillUnmount(){let{onUnmount:t}=this.props,{infoBox:a}=this.state;a!==null&&(t&&t(a),Vt(this.registeredEvents),a.close())}render(){return this.containerElement?(0,Bv.createPortal)(as.only(this.props.children),this.containerElement):null}};_L.contextType=$t;var n9={exports:{}};(function(e,t){(function(a,o){e.exports=o()})(jV,function(){function a(M,_,A,I,$,R){if(!($-I<=A)){var D=I+$>>1;o(M,_,D,I,$,R%2),a(M,_,A,I,D-1,R+1),a(M,_,A,D+1,$,R+1)}}function o(M,_,A,I,$,R){for(;$>I;){if($-I>600){var D=$-I+1,E=A-I+1,k=Math.log(D),F=.5*Math.exp(2*k/3),U=.5*Math.sqrt(k*F*(D-F)/D)*(E-D/2<0?-1:1),N=Math.max(I,Math.floor(A-E*F/D+U)),W=Math.min($,Math.floor(A+(D-E)*F/D+U));o(M,_,A,N,W,R)}var K=_[2*A+R],G=I,re=$;for(s(M,_,I,A),_[2*$+R]>K&&s(M,_,I,$);G<re;){for(s(M,_,G,re),G++,re--;_[2*G+R]<K;)G++;for(;_[2*re+R]>K;)re--}_[2*I+R]===K?s(M,_,I,re):(re++,s(M,_,re,$)),re<=A&&(I=re+1),A<=re&&($=re-1)}}function s(M,_,A,I){f(M,A,I),f(_,2*A,2*I),f(_,2*A+1,2*I+1)}function f(M,_,A){var I=M[_];M[_]=M[A],M[A]=I}function p(M,_,A,I,$,R,D){for(var E=[0,M.length-1,0],k=[],F,U;E.length;){var N=E.pop(),W=E.pop(),K=E.pop();if(W-K<=D){for(var G=K;G<=W;G++)F=_[2*G],U=_[2*G+1],F>=A&&F<=$&&U>=I&&U<=R&&k.push(M[G]);continue}var re=Math.floor((K+W)/2);F=_[2*re],U=_[2*re+1],F>=A&&F<=$&&U>=I&&U<=R&&k.push(M[re]);var Le=(N+1)%2;(N===0?A<=F:I<=U)&&(E.push(K),E.push(re-1),E.push(Le)),(N===0?$>=F:R>=U)&&(E.push(re+1),E.push(W),E.push(Le))}return k}function h(M,_,A,I,$,R){for(var D=[0,M.length-1,0],E=[],k=$*$;D.length;){var F=D.pop(),U=D.pop(),N=D.pop();if(U-N<=R){for(var W=N;W<=U;W++)g(_[2*W],_[2*W+1],A,I)<=k&&E.push(M[W]);continue}var K=Math.floor((N+U)/2),G=_[2*K],re=_[2*K+1];g(G,re,A,I)<=k&&E.push(M[K]);var Le=(F+1)%2;(F===0?A-$<=G:I-$<=re)&&(D.push(N),D.push(K-1),D.push(Le)),(F===0?A+$>=G:I+$>=re)&&(D.push(K+1),D.push(U),D.push(Le))}return E}function g(M,_,A,I){var $=M-A,R=_-I;return $*$+R*R}var y=function(M){return M[0]},w=function(M){return M[1]},C=function(_,A,I,$,R){A===void 0&&(A=y),I===void 0&&(I=w),$===void 0&&($=64),R===void 0&&(R=Float64Array),this.nodeSize=$,this.points=_;for(var D=_.length<65536?Uint16Array:Uint32Array,E=this.ids=new D(_.length),k=this.coords=new R(_.length*2),F=0;F<_.length;F++)E[F]=F,k[2*F]=A(_[F]),k[2*F+1]=I(_[F]);a(E,k,$,0,E.length-1,0)};return C.prototype.range=function(_,A,I,$){return p(this.ids,this.coords,_,A,I,$,this.nodeSize)},C.prototype.within=function(_,A,I){return h(this.ids,this.coords,_,A,I,this.nodeSize)},C})})(n9);var h6=n9.exports,b$={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},$0=Math.fround||(e=>t=>(e[0]=+t,e[0]))(new Float32Array(1)),kL=class{constructor(t){this.options=Nv(Object.create(b$),t),this.trees=new Array(this.options.maxZoom+1)}load(t){let{log:a,minZoom:o,maxZoom:s,nodeSize:f}=this.options;a&&console.time("total time");let p=`prepare ${t.length} points`;a&&console.time(p),this.points=t;let h=[];for(let g=0;g<t.length;g++)!t[g].geometry||h.push(x$(t[g],g));this.trees[s+1]=new h6(h,m6,g6,f,Float32Array),a&&console.timeEnd(p);for(let g=s;g>=o;g--){let y=+Date.now();h=this._cluster(h,g),this.trees[g]=new h6(h,m6,g6,f,Float32Array),a&&console.log("z%d: %d clusters in %dms",g,h.length,+Date.now()-y)}return a&&console.timeEnd("total time"),this}getClusters(t,a){let o=((t[0]+180)%360+360)%360-180,s=Math.max(-90,Math.min(90,t[1])),f=t[2]===180?180:((t[2]+180)%360+360)%360-180,p=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)o=-180,f=180;else if(o>f){let w=this.getClusters([o,s,180,p],a),C=this.getClusters([-180,s,f,p],a);return w.concat(C)}let h=this.trees[this._limitZoom(a)],g=h.range(B0(o),H0(p),B0(f),H0(s)),y=[];for(let w of g){let C=h.points[w];y.push(C.numPoints?v6(C):this.points[C.index])}return y}getChildren(t){let a=this._getOriginId(t),o=this._getOriginZoom(t),s="No cluster with the specified id.",f=this.trees[o];if(!f)throw new Error(s);let p=f.points[a];if(!p)throw new Error(s);let h=this.options.radius/(this.options.extent*Math.pow(2,o-1)),g=f.within(p.x,p.y,h),y=[];for(let w of g){let C=f.points[w];C.parentId===t&&y.push(C.numPoints?v6(C):this.points[C.index])}if(y.length===0)throw new Error(s);return y}getLeaves(t,a,o){a=a||10,o=o||0;let s=[];return this._appendLeaves(s,t,a,o,0),s}getTile(t,a,o){let s=this.trees[this._limitZoom(t)],f=Math.pow(2,t),{extent:p,radius:h}=this.options,g=h/p,y=(o-g)/f,w=(o+1+g)/f,C={features:[]};return this._addTileFeatures(s.range((a-g)/f,y,(a+1+g)/f,w),s.points,a,o,f,C),a===0&&this._addTileFeatures(s.range(1-g/f,y,1,w),s.points,f,o,f,C),a===f-1&&this._addTileFeatures(s.range(0,y,g/f,w),s.points,-1,o,f,C),C.features.length?C:null}getClusterExpansionZoom(t){let a=this._getOriginZoom(t)-1;for(;a<=this.options.maxZoom;){let o=this.getChildren(t);if(a++,o.length!==1)break;t=o[0].properties.cluster_id}return a}_appendLeaves(t,a,o,s,f){let p=this.getChildren(a);for(let h of p){let g=h.properties;if(g&&g.cluster?f+g.point_count<=s?f+=g.point_count:f=this._appendLeaves(t,g.cluster_id,o,s,f):f<s?f++:t.push(h),t.length===o)break}return f}_addTileFeatures(t,a,o,s,f,p){for(let h of t){let g=a[h],y=g.numPoints,w,C,M;if(y)w=r9(g),C=g.x,M=g.y;else{let I=this.points[g.index];w=I.properties,C=B0(I.geometry.coordinates[0]),M=H0(I.geometry.coordinates[1])}let _={type:1,geometry:[[Math.round(this.options.extent*(C*f-o)),Math.round(this.options.extent*(M*f-s))]],tags:w},A;y?A=g.id:this.options.generateId?A=g.index:this.points[g.index].id&&(A=this.points[g.index].id),A!==void 0&&(_.id=A),p.features.push(_)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(+t,this.options.maxZoom+1))}_cluster(t,a){let o=[],{radius:s,extent:f,reduce:p,minPoints:h}=this.options,g=s/(f*Math.pow(2,a));for(let y=0;y<t.length;y++){let w=t[y];if(w.zoom<=a)continue;w.zoom=a;let C=this.trees[a+1],M=C.within(w.x,w.y,g),_=w.numPoints||1,A=_;for(let I of M){let $=C.points[I];$.zoom>a&&(A+=$.numPoints||1)}if(A>_&&A>=h){let I=w.x*_,$=w.y*_,R=p&&_>1?this._map(w,!0):null,D=(y<<5)+(a+1)+this.points.length;for(let E of M){let k=C.points[E];if(k.zoom<=a)continue;k.zoom=a;let F=k.numPoints||1;I+=k.x*F,$+=k.y*F,k.parentId=D,p&&(R||(R=this._map(w,!0)),p(R,this._map(k)))}w.parentId=D,o.push(S$(I/A,$/A,D,A,R))}else if(o.push(w),A>1)for(let I of M){let $=C.points[I];$.zoom<=a||($.zoom=a,o.push($))}}return o}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,a){if(t.numPoints)return a?Nv({},t.properties):t.properties;let o=this.points[t.index].properties,s=this.options.map(o);return a&&s===o?Nv({},s):s}};function S$(e,t,a,o,s){return{x:$0(e),y:$0(t),zoom:1/0,id:a,parentId:-1,numPoints:o,properties:s}}function x$(e,t){let[a,o]=e.geometry.coordinates;return{x:$0(B0(a)),y:$0(H0(o)),zoom:1/0,index:t,parentId:-1}}function v6(e){return{type:"Feature",id:e.id,properties:r9(e),geometry:{type:"Point",coordinates:[E$(e.x),w$(e.y)]}}}function r9(e){let t=e.numPoints,a=t>=1e4?`${Math.round(t/1e3)}k`:t>=1e3?`${Math.round(t/100)/10}k`:t;return Nv(Nv({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:a})}function B0(e){return e/360+.5}function H0(e){let t=Math.sin(e*Math.PI/180),a=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return a<0?0:a>1?1:a}function E$(e){return(e-.5)*360}function w$(e){let t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function Nv(e,t){for(let a in t)e[a]=t[a];return e}function m6(e){return e.x}function g6(e){return e.y}var y6=function e(t,a){if(t===a)return!0;if(t&&a&&typeof t=="object"&&typeof a=="object"){if(t.constructor!==a.constructor)return!1;var o,s,f;if(Array.isArray(t)){if(o=t.length,o!=a.length)return!1;for(s=o;s--!==0;)if(!e(t[s],a[s]))return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if(f=Object.keys(t),o=f.length,o!==Object.keys(a).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(a,f[s]))return!1;for(s=o;s--!==0;){var p=f[s];if(!e(t[p],a[p]))return!1}return!0}return t!==t&&a!==a};function C$(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(a[o[s]]=e[o[s]]);return a}var Fv=class{constructor({markers:t,position:a}){this.markers=t,a&&(a instanceof google.maps.LatLng?this._position=a:this._position=new google.maps.LatLng(a))}get bounds(){if(!(this.markers.length===0&&!this._position))return this.markers.reduce((t,a)=>t.extend(a.getPosition()),new google.maps.LatLngBounds(this._position,this._position))}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(t=>t.getVisible()).length}push(t){this.markers.push(t)}delete(){this.marker&&(this.marker.setMap(null),delete this.marker),this.markers.length=0}};var ML=class{constructor({maxZoom:t=16}){this.maxZoom=t}noop({markers:t}){return L$(t)}};var L$=e=>e.map(a=>new Fv({position:a.getPosition(),markers:[a]}));var RL=class extends ML{constructor(t){var{maxZoom:a,radius:o=60}=t,s=C$(t,["maxZoom","radius"]);super({maxZoom:a}),this.superCluster=new kL(Object.assign({maxZoom:this.maxZoom,radius:o},s)),this.state={zoom:null}}calculate(t){let a=!1;if(!y6(t.markers,this.markers)){a=!0,this.markers=[...t.markers];let s=this.markers.map(f=>({type:"Feature",geometry:{type:"Point",coordinates:[f.getPosition().lng(),f.getPosition().lat()]},properties:{marker:f}}));this.superCluster.load(s)}let o={zoom:t.map.getZoom()};return a||this.state.zoom>this.maxZoom&&o.zoom>this.maxZoom||(a=a||!y6(this.state,o)),this.state=o,a&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:a}}cluster({map:t}){return this.superCluster.getClusters([-180,-90,180,90],Math.round(t.getZoom())).map(this.transformCluster.bind(this))}transformCluster({geometry:{coordinates:[t,a]},properties:o}){if(o.cluster)return new Fv({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map(s=>s.properties.marker),position:new google.maps.LatLng({lat:a,lng:t})});{let s=o.marker;return new Fv({markers:[s],position:s.getPosition()})}}},OL=class{constructor(t,a){this.markers={sum:t.length};let o=a.map(f=>f.count),s=o.reduce((f,p)=>f+p,0);this.clusters={count:a.length,markers:{mean:s/a.length,sum:s,min:Math.min(...o),max:Math.max(...o)}}}},DL=class{render({count:t,position:a},o){let s=t>Math.max(10,o.clusters.markers.mean)?"#ff0000":"#0000ff",f=window.btoa(`
147
+ <svg fill="${s}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">
148
+ <circle cx="120" cy="120" opacity=".6" r="70" />
149
+ <circle cx="120" cy="120" opacity=".3" r="90" />
150
+ <circle cx="120" cy="120" opacity=".2" r="110" />
151
+ </svg>`);return new google.maps.Marker({position:a,icon:{url:`data:image/svg+xml;base64,${f}`,scaledSize:new google.maps.Size(45,45)},label:{text:String(t),color:"rgba(255,255,255,0.9)",fontSize:"12px"},title:`Cluster of ${t} markers`,zIndex:Number(google.maps.Marker.MAX_ZINDEX)+t})}};function T$(e,t){for(let a in t.prototype)e.prototype[a]=t.prototype[a]}var jv=class{constructor(){T$(jv,google.maps.OverlayView)}},zv;(function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"})(zv||(zv={}));var _$=(e,t,a)=>{a.fitBounds(t.bounds)},PL=class extends jv{constructor({map:t,markers:a=[],algorithm:o=new RL({}),renderer:s=new DL,onClusterClick:f=_$}){super(),this.markers=[...a],this.clusters=[],this.algorithm=o,this.renderer=s,this.onClusterClick=f,t&&this.setMap(t)}addMarker(t,a){this.markers.includes(t)||(this.markers.push(t),a||this.render())}addMarkers(t,a){t.forEach(o=>{this.addMarker(o,!0)}),a||this.render()}removeMarker(t,a){let o=this.markers.indexOf(t);return o===-1?!1:(t.setMap(null),this.markers.splice(o,1),a||this.render(),!0)}removeMarkers(t,a){let o=!1;return t.forEach(s=>{o=this.removeMarker(s,!0)||o}),o&&!a&&this.render(),o}clearMarkers(t){this.markers.length=0,t||this.render()}render(){let t=this.getMap();if(t instanceof google.maps.Map&&this.getProjection()){google.maps.event.trigger(this,zv.CLUSTERING_BEGIN,this);let{clusters:a,changed:o}=this.algorithm.calculate({markers:this.markers,map:t,mapCanvasProjection:this.getProjection()});(o||o==null)&&(this.reset(),this.clusters=a,this.renderClusters()),google.maps.event.trigger(this,zv.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(t=>t.setMap(null)),this.clusters.forEach(t=>t.delete()),this.clusters=[]}renderClusters(){let t=new OL(this.markers,this.clusters),a=this.getMap();this.clusters.forEach(o=>{o.markers.length===1?o.marker=o.markers[0]:(o.marker=this.renderer.render(o,t),this.onClusterClick&&o.marker.addListener("click",s=>{google.maps.event.trigger(this,zv.CLUSTER_CLICK,o),this.onClusterClick(s,o,a)})),o.marker.setMap(a)})}};function k$(e){let t=$V(),[a,o]=Se(null);return ee(()=>{if(t&&a===null){let s=new PL(Object.assign(Object.assign({},e),{map:t}));o(s)}},[t]),a}function M$({children:e,options:t}){let a=k$(t);return a!==null?e(a):null}var XX=Ci(M$),b6={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},S6={options(e,t){e.setOptions(t)},position(e,t){e.setPosition(t)},zIndex(e,t){e.setZIndex(t)}};function R$({children:e,anchor:t,options:a,position:o,zIndex:s,onCloseClick:f,onDomReady:p,onContentChanged:h,onPositionChanged:g,onZindexChanged:y,onLoad:w,onUnmount:C}){let M=aa($t),[_,A]=Se(null),[I,$]=Se(null),[R,D]=Se(null),[E,k]=Se(null),[F,U]=Se(null),[N,W]=Se(null),K=Iv(null);return ee(()=>{_!==null&&(_.close(),t?_.open(M,t):_.getPosition()&&_.open(M))},[M,_,t]),ee(()=>{a&&_!==null&&_.setOptions(a)},[_,a]),ee(()=>{o&&_!==null&&_.setPosition(o)},[o]),ee(()=>{typeof s=="number"&&_!==null&&_.setZIndex(s)},[s]),ee(()=>{_&&f&&(I!==null&&google.maps.event.removeListener(I),$(google.maps.event.addListener(_,"closeclick",f)))},[f]),ee(()=>{_&&p&&(R!==null&&google.maps.event.removeListener(R),D(google.maps.event.addListener(_,"domready",p)))},[p]),ee(()=>{_&&h&&(E!==null&&google.maps.event.removeListener(E),k(google.maps.event.addListener(_,"content_changed",h)))},[h]),ee(()=>{_&&g&&(F!==null&&google.maps.event.removeListener(F),U(google.maps.event.addListener(_,"position_changed",g)))},[g]),ee(()=>{_&&y&&(N!==null&&google.maps.event.removeListener(N),W(google.maps.event.addListener(_,"zindex_changed",y)))},[y]),ee(()=>{let G=new google.maps.InfoWindow(Object.assign({},a||{}));return A(G),K.current=document.createElement("div"),f&&$(google.maps.event.addListener(G,"circlecomplete",f)),p&&D(google.maps.event.addListener(G,"domready",p)),h&&k(google.maps.event.addListener(G,"content_changed",h)),g&&U(google.maps.event.addListener(G,"position_changed",g)),y&&W(google.maps.event.addListener(G,"zindex_changed",y)),G.setContent(K.current),o&&G.setPosition(o),s&&G.setZIndex(s),t?G.open(M,t):G.getPosition()?G.open(M):si(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."),w&&w(G),()=>{I&&google.maps.event.removeListener(I),E&&google.maps.event.removeListener(E),R&&google.maps.event.removeListener(R),F&&google.maps.event.removeListener(F),N&&google.maps.event.removeListener(N),C&&C(G),G.close()}},[]),K.current?(0,Bv.createPortal)(as.only(e),K.current):null}var eee=Ci(R$),AL=class extends Kn{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=null,this.state={infoWindow:null},this.open=(t,a)=>{a?t.open(this.context,a):t.getPosition()?t.open(this.context):si(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},this.setInfoWindowCallback=()=>{this.state.infoWindow!==null&&this.containerElement!==null&&(this.state.infoWindow.setContent(this.containerElement),this.open(this.state.infoWindow,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoWindow))}}componentDidMount(){let t=new google.maps.InfoWindow(Object.assign({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=Ft({updaterMap:S6,eventMap:b6,prevProps:{},nextProps:this.props,instance:t}),this.setState(()=>({infoWindow:t}),this.setInfoWindowCallback)}componentDidUpdate(t){this.state.infoWindow!==null&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:S6,eventMap:b6,prevProps:t,nextProps:this.props,instance:this.state.infoWindow}))}componentWillUnmount(){this.state.infoWindow!==null&&(Vt(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())}render(){return this.containerElement?(0,Bv.createPortal)(as.only(this.props.children),this.containerElement):null}};AL.contextType=$t;var x6={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},E6={draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},path(e,t){e.setPath(t)},visible(e,t){e.setVisible(t)}},O$={};function D$({options:e,draggable:t,editable:a,visible:o,path:s,onDblClick:f,onDragEnd:p,onDragStart:h,onMouseDown:g,onMouseMove:y,onMouseOut:w,onMouseOver:C,onMouseUp:M,onRightClick:_,onClick:A,onDrag:I,onLoad:$,onUnmount:R}){let D=aa($t),[E,k]=Se(null),[F,U]=Se(null),[N,W]=Se(null),[K,G]=Se(null),[re,Le]=Se(null),[Y,ue]=Se(null),[xe,Pe]=Se(null),[ke,V]=Se(null),[Q,le]=Se(null),[ge,ve]=Se(null),[de,ie]=Se(null),[Oe,je]=Se(null);return ee(()=>{E!==null&&E.setMap(D)},[D]),ee(()=>{typeof e<"u"&&E!==null&&E.setOptions(e)},[E,e]),ee(()=>{typeof t<"u"&&E!==null&&E.setDraggable(t)},[E,t]),ee(()=>{typeof a<"u"&&E!==null&&E.setEditable(a)},[E,a]),ee(()=>{typeof o<"u"&&E!==null&&E.setVisible(o)},[E,o]),ee(()=>{typeof s<"u"&&E!==null&&E.setPath(s)},[E,s]),ee(()=>{E&&f&&(F!==null&&google.maps.event.removeListener(F),U(google.maps.event.addListener(E,"dblclick",f)))},[f]),ee(()=>{E&&p&&(N!==null&&google.maps.event.removeListener(N),W(google.maps.event.addListener(E,"dragend",p)))},[f]),ee(()=>{E&&h&&(K!==null&&google.maps.event.removeListener(K),G(google.maps.event.addListener(E,"dragstart",h)))},[h]),ee(()=>{E&&g&&(re!==null&&google.maps.event.removeListener(re),Le(google.maps.event.addListener(E,"mousedown",g)))},[g]),ee(()=>{E&&y&&(Y!==null&&google.maps.event.removeListener(Y),ue(google.maps.event.addListener(E,"mousemove",y)))},[y]),ee(()=>{E&&w&&(xe!==null&&google.maps.event.removeListener(xe),Pe(google.maps.event.addListener(E,"mouseout",w)))},[w]),ee(()=>{E&&C&&(ke!==null&&google.maps.event.removeListener(ke),V(google.maps.event.addListener(E,"mouseover",C)))},[C]),ee(()=>{E&&M&&(Q!==null&&google.maps.event.removeListener(Q),le(google.maps.event.addListener(E,"mouseup",M)))},[M]),ee(()=>{E&&_&&(ge!==null&&google.maps.event.removeListener(ge),ve(google.maps.event.addListener(E,"rightclick",_)))},[_]),ee(()=>{E&&A&&(de!==null&&google.maps.event.removeListener(de),ie(google.maps.event.addListener(E,"click",A)))},[A]),ee(()=>{E&&I&&(Oe!==null&&google.maps.event.removeListener(Oe),je(google.maps.event.addListener(E,"drag",I)))},[I]),ee(()=>{let we=new google.maps.Polyline(Object.assign(Object.assign({},e||O$),{map:D}));return s&&we.setPath(s),typeof o<"u"&&we.setVisible(o),typeof a<"u"&&we.setEditable(a),typeof t<"u"&&we.setDraggable(t),f&&U(google.maps.event.addListener(we,"dblclick",f)),p&&W(google.maps.event.addListener(we,"dragend",p)),h&&G(google.maps.event.addListener(we,"dragstart",h)),g&&Le(google.maps.event.addListener(we,"mousedown",g)),y&&ue(google.maps.event.addListener(we,"mousemove",y)),w&&Pe(google.maps.event.addListener(we,"mouseout",w)),C&&V(google.maps.event.addListener(we,"mouseover",C)),M&&le(google.maps.event.addListener(we,"mouseup",M)),_&&ve(google.maps.event.addListener(we,"rightclick",_)),A&&ie(google.maps.event.addListener(we,"click",A)),I&&je(google.maps.event.addListener(we,"drag",I)),k(we),$&&$(we),()=>{F!==null&&google.maps.event.removeListener(F),N!==null&&google.maps.event.removeListener(N),K!==null&&google.maps.event.removeListener(K),re!==null&&google.maps.event.removeListener(re),Y!==null&&google.maps.event.removeListener(Y),xe!==null&&google.maps.event.removeListener(xe),ke!==null&&google.maps.event.removeListener(ke),Q!==null&&google.maps.event.removeListener(Q),ge!==null&&google.maps.event.removeListener(ge),de!==null&&google.maps.event.removeListener(de),R&&R(we),we.setMap(null)}},[]),null}var tee=Ci(D$),NL=class extends Kn{constructor(){super(...arguments),this.registeredEvents=[],this.state={polyline:null},this.setPolylineCallback=()=>{this.state.polyline!==null&&this.props.onLoad&&this.props.onLoad(this.state.polyline)}}componentDidMount(){let t=new google.maps.Polyline(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=Ft({updaterMap:E6,eventMap:x6,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{polyline:t}},this.setPolylineCallback)}componentDidUpdate(t){this.state.polyline!==null&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:E6,eventMap:x6,prevProps:t,nextProps:this.props,instance:this.state.polyline}))}componentWillUnmount(){this.state.polyline!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),Vt(this.registeredEvents),this.state.polyline.setMap(null))}render(){return null}};NL.contextType=$t;var w6={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},C6={draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},path(e,t){e.setPath(t)},paths(e,t){e.setPaths(t)},visible(e,t){e.setVisible(t)}};function P$({options:e,draggable:t,editable:a,visible:o,path:s,onDblClick:f,onDragEnd:p,onDragStart:h,onMouseDown:g,onMouseMove:y,onMouseOut:w,onMouseOver:C,onMouseUp:M,onRightClick:_,onClick:A,onDrag:I,onLoad:$,onUnmount:R}){let D=aa($t),[E,k]=Se(null),[F,U]=Se(null),[N,W]=Se(null),[K,G]=Se(null),[re,Le]=Se(null),[Y,ue]=Se(null),[xe,Pe]=Se(null),[ke,V]=Se(null),[Q,le]=Se(null),[ge,ve]=Se(null),[de,ie]=Se(null),[Oe,je]=Se(null);return ee(()=>{E!==null&&E.setMap(D)},[D]),ee(()=>{typeof e<"u"&&E!==null&&E.setOptions(e)},[E,e]),ee(()=>{typeof t<"u"&&E!==null&&E.setDraggable(t)},[E,t]),ee(()=>{typeof a<"u"&&E!==null&&E.setEditable(a)},[E,a]),ee(()=>{typeof o<"u"&&E!==null&&E.setVisible(o)},[E,o]),ee(()=>{typeof s<"u"&&E!==null&&E.setPath(s)},[E,s]),ee(()=>{E&&f&&(F!==null&&google.maps.event.removeListener(F),U(google.maps.event.addListener(E,"dblclick",f)))},[f]),ee(()=>{E&&p&&(N!==null&&google.maps.event.removeListener(N),W(google.maps.event.addListener(E,"dragend",p)))},[p]),ee(()=>{E&&h&&(K!==null&&google.maps.event.removeListener(K),G(google.maps.event.addListener(E,"dragstart",h)))},[h]),ee(()=>{E&&g&&(re!==null&&google.maps.event.removeListener(re),Le(google.maps.event.addListener(E,"mousedown",g)))},[g]),ee(()=>{E&&y&&(Y!==null&&google.maps.event.removeListener(Y),ue(google.maps.event.addListener(E,"mousemove",y)))},[y]),ee(()=>{E&&w&&(xe!==null&&google.maps.event.removeListener(xe),Pe(google.maps.event.addListener(E,"mouseout",w)))},[w]),ee(()=>{E&&C&&(ke!==null&&google.maps.event.removeListener(ke),V(google.maps.event.addListener(E,"mouseover",C)))},[C]),ee(()=>{E&&M&&(Q!==null&&google.maps.event.removeListener(Q),le(google.maps.event.addListener(E,"mouseup",M)))},[M]),ee(()=>{E&&_&&(ge!==null&&google.maps.event.removeListener(ge),ve(google.maps.event.addListener(E,"rightclick",_)))},[_]),ee(()=>{E&&A&&(de!==null&&google.maps.event.removeListener(de),ie(google.maps.event.addListener(E,"click",A)))},[A]),ee(()=>{E&&I&&(Oe!==null&&google.maps.event.removeListener(Oe),je(google.maps.event.addListener(E,"drag",I)))},[I]),ee(()=>{let we=new google.maps.Polygon(Object.assign(Object.assign({},e||{}),{map:D}));return s&&we.setPath(s),typeof o<"u"&&we.setVisible(o),typeof a<"u"&&we.setEditable(a),typeof t<"u"&&we.setDraggable(t),f&&U(google.maps.event.addListener(we,"dblclick",f)),p&&W(google.maps.event.addListener(we,"dragend",p)),h&&G(google.maps.event.addListener(we,"dragstart",h)),g&&Le(google.maps.event.addListener(we,"mousedown",g)),y&&ue(google.maps.event.addListener(we,"mousemove",y)),w&&Pe(google.maps.event.addListener(we,"mouseout",w)),C&&V(google.maps.event.addListener(we,"mouseover",C)),M&&le(google.maps.event.addListener(we,"mouseup",M)),_&&ve(google.maps.event.addListener(we,"rightclick",_)),A&&ie(google.maps.event.addListener(we,"click",A)),I&&je(google.maps.event.addListener(we,"drag",I)),k(we),$&&$(we),()=>{F!==null&&google.maps.event.removeListener(F),N!==null&&google.maps.event.removeListener(N),K!==null&&google.maps.event.removeListener(K),re!==null&&google.maps.event.removeListener(re),Y!==null&&google.maps.event.removeListener(Y),xe!==null&&google.maps.event.removeListener(xe),ke!==null&&google.maps.event.removeListener(ke),Q!==null&&google.maps.event.removeListener(Q),ge!==null&&google.maps.event.removeListener(ge),de!==null&&google.maps.event.removeListener(de),R&&R(we),we.setMap(null)}},[]),null}var nee=Ci(P$),zL=class extends Kn{constructor(){super(...arguments),this.registeredEvents=[],this.state={polygon:null},this.setPolygonCallback=()=>{this.state.polygon!==null&&this.props.onLoad&&this.props.onLoad(this.state.polygon)}}componentDidMount(){let t=new google.maps.Polygon(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=Ft({updaterMap:C6,eventMap:w6,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{polygon:t}},this.setPolygonCallback)}componentDidUpdate(t){this.state.polygon!==null&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:C6,eventMap:w6,prevProps:t,nextProps:this.props,instance:this.state.polygon}))}componentWillUnmount(){this.state.polygon!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),Vt(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))}render(){return null}};zL.contextType=$t;var L6={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},T6={bounds(e,t){e.setBounds(t)},draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},visible(e,t){e.setVisible(t)}};function A$({options:e,bounds:t,draggable:a,editable:o,visible:s,onDblClick:f,onDragEnd:p,onDragStart:h,onMouseDown:g,onMouseMove:y,onMouseOut:w,onMouseOver:C,onMouseUp:M,onRightClick:_,onClick:A,onDrag:I,onBoundsChanged:$,onLoad:R,onUnmount:D}){let E=aa($t),[k,F]=Se(null),[U,N]=Se(null),[W,K]=Se(null),[G,re]=Se(null),[Le,Y]=Se(null),[ue,xe]=Se(null),[Pe,ke]=Se(null),[V,Q]=Se(null),[le,ge]=Se(null),[ve,de]=Se(null),[ie,Oe]=Se(null),[je,we]=Se(null),[ut,Je]=Se(null);return ee(()=>{k!==null&&k.setMap(E)},[E]),ee(()=>{typeof e<"u"&&k!==null&&k.setOptions(e)},[k,e]),ee(()=>{typeof a<"u"&&k!==null&&k.setDraggable(a)},[k,a]),ee(()=>{typeof o<"u"&&k!==null&&k.setEditable(o)},[k,o]),ee(()=>{typeof s<"u"&&k!==null&&k.setVisible(s)},[k,s]),ee(()=>{typeof t<"u"&&k!==null&&k.setBounds(t)},[k,t]),ee(()=>{k&&f&&(U!==null&&google.maps.event.removeListener(U),N(google.maps.event.addListener(k,"dblclick",f)))},[f]),ee(()=>{k&&p&&(W!==null&&google.maps.event.removeListener(W),K(google.maps.event.addListener(k,"dragend",p)))},[f]),ee(()=>{k&&h&&(G!==null&&google.maps.event.removeListener(G),re(google.maps.event.addListener(k,"dragstart",h)))},[h]),ee(()=>{k&&g&&(Le!==null&&google.maps.event.removeListener(Le),Y(google.maps.event.addListener(k,"mousedown",g)))},[g]),ee(()=>{k&&y&&(ue!==null&&google.maps.event.removeListener(ue),xe(google.maps.event.addListener(k,"mousemove",y)))},[y]),ee(()=>{k&&w&&(Pe!==null&&google.maps.event.removeListener(Pe),ke(google.maps.event.addListener(k,"mouseout",w)))},[w]),ee(()=>{k&&C&&(V!==null&&google.maps.event.removeListener(V),Q(google.maps.event.addListener(k,"mouseover",C)))},[C]),ee(()=>{k&&M&&(le!==null&&google.maps.event.removeListener(le),ge(google.maps.event.addListener(k,"mouseup",M)))},[M]),ee(()=>{k&&_&&(ve!==null&&google.maps.event.removeListener(ve),de(google.maps.event.addListener(k,"rightclick",_)))},[_]),ee(()=>{k&&A&&(ie!==null&&google.maps.event.removeListener(ie),Oe(google.maps.event.addListener(k,"click",A)))},[A]),ee(()=>{k&&I&&(je!==null&&google.maps.event.removeListener(je),we(google.maps.event.addListener(k,"drag",I)))},[I]),ee(()=>{k&&$&&(ut!==null&&google.maps.event.removeListener(ut),Je(google.maps.event.addListener(k,"bounds_changed",$)))},[$]),ee(()=>{let Ve=new google.maps.Rectangle(Object.assign(Object.assign({},e||{}),{map:E}));return typeof s<"u"&&Ve.setVisible(s),typeof o<"u"&&Ve.setEditable(o),typeof a<"u"&&Ve.setDraggable(a),typeof t<"u"&&Ve.setBounds(t),f&&N(google.maps.event.addListener(Ve,"dblclick",f)),p&&K(google.maps.event.addListener(Ve,"dragend",p)),h&&re(google.maps.event.addListener(Ve,"dragstart",h)),g&&Y(google.maps.event.addListener(Ve,"mousedown",g)),y&&xe(google.maps.event.addListener(Ve,"mousemove",y)),w&&ke(google.maps.event.addListener(Ve,"mouseout",w)),C&&Q(google.maps.event.addListener(Ve,"mouseover",C)),M&&ge(google.maps.event.addListener(Ve,"mouseup",M)),_&&de(google.maps.event.addListener(Ve,"rightclick",_)),A&&Oe(google.maps.event.addListener(Ve,"click",A)),I&&we(google.maps.event.addListener(Ve,"drag",I)),$&&Je(google.maps.event.addListener(Ve,"bounds_changed",$)),F(Ve),R&&R(Ve),()=>{U!==null&&google.maps.event.removeListener(U),W!==null&&google.maps.event.removeListener(W),G!==null&&google.maps.event.removeListener(G),Le!==null&&google.maps.event.removeListener(Le),ue!==null&&google.maps.event.removeListener(ue),Pe!==null&&google.maps.event.removeListener(Pe),V!==null&&google.maps.event.removeListener(V),le!==null&&google.maps.event.removeListener(le),ve!==null&&google.maps.event.removeListener(ve),ie!==null&&google.maps.event.removeListener(ie),je!==null&&google.maps.event.removeListener(je),ut!==null&&google.maps.event.removeListener(ut),D&&D(Ve),Ve.setMap(null)}},[]),null}var ree=Ci(A$),IL=class extends Kn{constructor(){super(...arguments),this.registeredEvents=[],this.state={rectangle:null},this.setRectangleCallback=()=>{this.state.rectangle!==null&&this.props.onLoad&&this.props.onLoad(this.state.rectangle)}}componentDidMount(){let t=new google.maps.Rectangle(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=Ft({updaterMap:T6,eventMap:L6,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{rectangle:t}},this.setRectangleCallback)}componentDidUpdate(t){this.state.rectangle!==null&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:T6,eventMap:L6,prevProps:t,nextProps:this.props,instance:this.state.rectangle}))}componentWillUnmount(){this.state.rectangle!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),Vt(this.registeredEvents),this.state.rectangle.setMap(null))}render(){return null}};IL.contextType=$t;var _6={onCenterChanged:"center_changed",onRadiusChanged:"radius_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},k6={center(e,t){e.setCenter(t)},draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},radius(e,t){e.setRadius(t)},visible(e,t){e.setVisible(t)}},N$={};function z$({options:e,center:t,radius:a,draggable:o,editable:s,visible:f,onDblClick:p,onDragEnd:h,onDragStart:g,onMouseDown:y,onMouseMove:w,onMouseOut:C,onMouseOver:M,onMouseUp:_,onRightClick:A,onClick:I,onDrag:$,onCenterChanged:R,onRadiusChanged:D,onLoad:E,onUnmount:k}){let F=aa($t),[U,N]=Se(null),[W,K]=Se(null),[G,re]=Se(null),[Le,Y]=Se(null),[ue,xe]=Se(null),[Pe,ke]=Se(null),[V,Q]=Se(null),[le,ge]=Se(null),[ve,de]=Se(null),[ie,Oe]=Se(null),[je,we]=Se(null),[ut,Je]=Se(null),[Ve,_t]=Se(null),[Ae,Lt]=Se(null);return ee(()=>{U!==null&&U.setMap(F)},[F]),ee(()=>{typeof e<"u"&&U!==null&&U.setOptions(e)},[U,e]),ee(()=>{typeof o<"u"&&U!==null&&U.setDraggable(o)},[U,o]),ee(()=>{typeof s<"u"&&U!==null&&U.setEditable(s)},[U,s]),ee(()=>{typeof f<"u"&&U!==null&&U.setVisible(f)},[U,f]),ee(()=>{typeof a=="number"&&U!==null&&U.setRadius(a)},[U,a]),ee(()=>{typeof t<"u"&&U!==null&&U.setCenter(t)},[U,t]),ee(()=>{U&&p&&(W!==null&&google.maps.event.removeListener(W),K(google.maps.event.addListener(U,"dblclick",p)))},[p]),ee(()=>{U&&h&&(G!==null&&google.maps.event.removeListener(G),re(google.maps.event.addListener(U,"dragend",h)))},[p]),ee(()=>{U&&g&&(Le!==null&&google.maps.event.removeListener(Le),Y(google.maps.event.addListener(U,"dragstart",g)))},[g]),ee(()=>{U&&y&&(ue!==null&&google.maps.event.removeListener(ue),xe(google.maps.event.addListener(U,"mousedown",y)))},[y]),ee(()=>{U&&w&&(Pe!==null&&google.maps.event.removeListener(Pe),ke(google.maps.event.addListener(U,"mousemove",w)))},[w]),ee(()=>{U&&C&&(V!==null&&google.maps.event.removeListener(V),Q(google.maps.event.addListener(U,"mouseout",C)))},[C]),ee(()=>{U&&M&&(le!==null&&google.maps.event.removeListener(le),ge(google.maps.event.addListener(U,"mouseover",M)))},[M]),ee(()=>{U&&_&&(ve!==null&&google.maps.event.removeListener(ve),de(google.maps.event.addListener(U,"mouseup",_)))},[_]),ee(()=>{U&&A&&(ie!==null&&google.maps.event.removeListener(ie),Oe(google.maps.event.addListener(U,"rightclick",A)))},[A]),ee(()=>{U&&I&&(je!==null&&google.maps.event.removeListener(je),we(google.maps.event.addListener(U,"click",I)))},[I]),ee(()=>{U&&$&&(ut!==null&&google.maps.event.removeListener(ut),Je(google.maps.event.addListener(U,"drag",$)))},[$]),ee(()=>{U&&R&&(Ve!==null&&google.maps.event.removeListener(Ve),_t(google.maps.event.addListener(U,"center_changed",R)))},[I]),ee(()=>{U&&D&&(Ae!==null&&google.maps.event.removeListener(Ae),Lt(google.maps.event.addListener(U,"radius_changed",D)))},[D]),ee(()=>{let tt=new google.maps.Circle(Object.assign(Object.assign({},e||N$),{map:F}));return typeof a=="number"&&tt.setRadius(a),typeof t<"u"&&tt.setCenter(t),typeof a=="number"&&tt.setRadius(a),typeof f<"u"&&tt.setVisible(f),typeof s<"u"&&tt.setEditable(s),typeof o<"u"&&tt.setDraggable(o),p&&K(google.maps.event.addListener(tt,"dblclick",p)),h&&re(google.maps.event.addListener(tt,"dragend",h)),g&&Y(google.maps.event.addListener(tt,"dragstart",g)),y&&xe(google.maps.event.addListener(tt,"mousedown",y)),w&&ke(google.maps.event.addListener(tt,"mousemove",w)),C&&Q(google.maps.event.addListener(tt,"mouseout",C)),M&&ge(google.maps.event.addListener(tt,"mouseover",M)),_&&de(google.maps.event.addListener(tt,"mouseup",_)),A&&Oe(google.maps.event.addListener(tt,"rightclick",A)),I&&we(google.maps.event.addListener(tt,"click",I)),$&&Je(google.maps.event.addListener(tt,"drag",$)),R&&_t(google.maps.event.addListener(tt,"center_changed",R)),D&&Lt(google.maps.event.addListener(tt,"radius_changed",D)),N(tt),E&&E(tt),()=>{W!==null&&google.maps.event.removeListener(W),G!==null&&google.maps.event.removeListener(G),Le!==null&&google.maps.event.removeListener(Le),ue!==null&&google.maps.event.removeListener(ue),Pe!==null&&google.maps.event.removeListener(Pe),V!==null&&google.maps.event.removeListener(V),le!==null&&google.maps.event.removeListener(le),ve!==null&&google.maps.event.removeListener(ve),ie!==null&&google.maps.event.removeListener(ie),je!==null&&google.maps.event.removeListener(je),Ve!==null&&google.maps.event.removeListener(Ve),Ae!==null&&google.maps.event.removeListener(Ae),k&&k(tt),tt.setMap(null)}},[]),null}var iee=Ci(z$),FL=class extends Kn{constructor(){super(...arguments),this.registeredEvents=[],this.state={circle:null},this.setCircleCallback=()=>{this.state.circle!==null&&this.props.onLoad&&this.props.onLoad(this.state.circle)}}componentDidMount(){let t=new google.maps.Circle(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=Ft({updaterMap:k6,eventMap:_6,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{circle:t}},this.setCircleCallback)}componentDidUpdate(t){this.state.circle!==null&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:k6,eventMap:_6,prevProps:t,nextProps:this.props,instance:this.state.circle}))}componentWillUnmount(){this.state.circle!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),Vt(this.registeredEvents),this.state.circle&&this.state.circle.setMap(null))}render(){return null}};FL.contextType=$t;var M6={onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAddFeature:"addfeature",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},R6={add(e,t){e.add(t)},addgeojson(e,t,a){e.addGeoJson(t,a)},contains(e,t){e.contains(t)},foreach(e,t){e.forEach(t)},loadgeojson(e,t,a,o){e.loadGeoJson(t,a,o)},overridestyle(e,t,a){e.overrideStyle(t,a)},remove(e,t){e.remove(t)},revertstyle(e,t){e.revertStyle(t)},controlposition(e,t){e.setControlPosition(t)},controls(e,t){e.setControls(t)},drawingmode(e,t){e.setDrawingMode(t)},map(e,t){e.setMap(t)},style(e,t){e.setStyle(t)},togeojson(e,t){e.toGeoJson(t)}};function I$({options:e,onClick:t,onDblClick:a,onMouseDown:o,onMouseMove:s,onMouseOut:f,onMouseOver:p,onMouseUp:h,onRightClick:g,onAddFeature:y,onRemoveFeature:w,onRemoveProperty:C,onSetGeometry:M,onSetProperty:_,onLoad:A,onUnmount:I}){let $=aa($t),[R,D]=Se(null),[E,k]=Se(null),[F,U]=Se(null),[N,W]=Se(null),[K,G]=Se(null),[re,Le]=Se(null),[Y,ue]=Se(null),[xe,Pe]=Se(null),[ke,V]=Se(null),[Q,le]=Se(null),[ge,ve]=Se(null),[de,ie]=Se(null),[Oe,je]=Se(null),[we,ut]=Se(null);return ee(()=>{R!==null&&R.setMap($)},[$]),ee(()=>{R&&a&&(E!==null&&google.maps.event.removeListener(E),k(google.maps.event.addListener(R,"dblclick",a)))},[a]),ee(()=>{R&&o&&(F!==null&&google.maps.event.removeListener(F),U(google.maps.event.addListener(R,"mousedown",o)))},[o]),ee(()=>{R&&s&&(N!==null&&google.maps.event.removeListener(N),W(google.maps.event.addListener(R,"mousemove",s)))},[s]),ee(()=>{R&&f&&(K!==null&&google.maps.event.removeListener(K),G(google.maps.event.addListener(R,"mouseout",f)))},[f]),ee(()=>{R&&p&&(re!==null&&google.maps.event.removeListener(re),Le(google.maps.event.addListener(R,"mouseover",p)))},[p]),ee(()=>{R&&h&&(Y!==null&&google.maps.event.removeListener(Y),ue(google.maps.event.addListener(R,"mouseup",h)))},[h]),ee(()=>{R&&g&&(xe!==null&&google.maps.event.removeListener(xe),Pe(google.maps.event.addListener(R,"rightclick",g)))},[g]),ee(()=>{R&&t&&(ke!==null&&google.maps.event.removeListener(ke),V(google.maps.event.addListener(R,"click",t)))},[t]),ee(()=>{R&&y&&(Q!==null&&google.maps.event.removeListener(Q),le(google.maps.event.addListener(R,"addfeature",y)))},[y]),ee(()=>{R&&w&&(ge!==null&&google.maps.event.removeListener(ge),ve(google.maps.event.addListener(R,"removefeature",w)))},[w]),ee(()=>{R&&C&&(de!==null&&google.maps.event.removeListener(de),ie(google.maps.event.addListener(R,"removeproperty",C)))},[C]),ee(()=>{R&&M&&(Oe!==null&&google.maps.event.removeListener(Oe),je(google.maps.event.addListener(R,"setgeometry",M)))},[M]),ee(()=>{R&&_&&(we!==null&&google.maps.event.removeListener(we),ut(google.maps.event.addListener(R,"setproperty",_)))},[_]),ee(()=>{if($!==null){let Je=new google.maps.Data(Object.assign(Object.assign({},e||{}),{map:$}));a&&k(google.maps.event.addListener(Je,"dblclick",a)),o&&U(google.maps.event.addListener(Je,"mousedown",o)),s&&W(google.maps.event.addListener(Je,"mousemove",s)),f&&G(google.maps.event.addListener(Je,"mouseout",f)),p&&Le(google.maps.event.addListener(Je,"mouseover",p)),h&&ue(google.maps.event.addListener(Je,"mouseup",h)),g&&Pe(google.maps.event.addListener(Je,"rightclick",g)),t&&V(google.maps.event.addListener(Je,"click",t)),y&&le(google.maps.event.addListener(Je,"addfeature",y)),w&&ve(google.maps.event.addListener(Je,"removefeature",w)),C&&ie(google.maps.event.addListener(Je,"removeproperty",C)),M&&je(google.maps.event.addListener(Je,"setgeometry",M)),_&&ut(google.maps.event.addListener(Je,"setproperty",_)),D(Je),A&&A(Je)}return()=>{R&&(E!==null&&google.maps.event.removeListener(E),F!==null&&google.maps.event.removeListener(F),N!==null&&google.maps.event.removeListener(N),K!==null&&google.maps.event.removeListener(K),re!==null&&google.maps.event.removeListener(re),Y!==null&&google.maps.event.removeListener(Y),xe!==null&&google.maps.event.removeListener(xe),ke!==null&&google.maps.event.removeListener(ke),Q!==null&&google.maps.event.removeListener(Q),ge!==null&&google.maps.event.removeListener(ge),de!==null&&google.maps.event.removeListener(de),Oe!==null&&google.maps.event.removeListener(Oe),we!==null&&google.maps.event.removeListener(we),I&&I(R),R.setMap(null))}},[]),null}var aee=Ci(I$),Uv=class extends Kn{constructor(){super(...arguments),this.registeredEvents=[],this.state={data:null},this.setDataCallback=()=>{this.state.data!==null&&this.props.onLoad&&this.props.onLoad(this.state.data)}}componentDidMount(){if(this.context!==null){let t=new google.maps.Data(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=Ft({updaterMap:R6,eventMap:M6,prevProps:{},nextProps:this.props,instance:t}),this.setState(()=>({data:t}),this.setDataCallback)}}componentDidUpdate(t){this.state.data!==null&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:R6,eventMap:M6,prevProps:t,nextProps:this.props,instance:this.state.data}))}componentWillUnmount(){this.state.data!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),Vt(this.registeredEvents),this.state.data&&this.state.data.setMap(null))}render(){return null}};Uv.contextType=$t;var O6={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},D6={options(e,t){e.setOptions(t)},url(e,t){e.setUrl(t)},zIndex(e,t){e.setZIndex(t)}},jL=class extends Kn{constructor(){super(...arguments),this.registeredEvents=[],this.state={kmlLayer:null},this.setKmlLayerCallback=()=>{this.state.kmlLayer!==null&&this.props.onLoad&&this.props.onLoad(this.state.kmlLayer)}}componentDidMount(){let t=new google.maps.KmlLayer(Object.assign(Object.assign({},this.props.options),{map:this.context}));this.registeredEvents=Ft({updaterMap:D6,eventMap:O6,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{kmlLayer:t}},this.setKmlLayerCallback)}componentDidUpdate(t){this.state.kmlLayer!==null&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:D6,eventMap:O6,prevProps:t,nextProps:this.props,instance:this.state.kmlLayer}))}componentWillUnmount(){this.state.kmlLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),Vt(this.registeredEvents),this.state.kmlLayer.setMap(null))}render(){return null}};jL.contextType=$t;function F$(e,t){return typeof t=="function"?t(e.offsetWidth,e.offsetHeight):{}}function j$(e,t){return new t(e.lat,e.lng)}function U$(e,t){return new t(new google.maps.LatLng(e.ne.lat,e.ne.lng),new google.maps.LatLng(e.sw.lat,e.sw.lng))}function B$(e,t,a){return e instanceof t?e:a(e,t)}function H$(e,t,a){return e instanceof t?e:a(e,t)}function V$(e,t,a){let o=e&&e.fromLatLngToDivPixel(a.getNorthEast()),s=e&&e.fromLatLngToDivPixel(a.getSouthWest());return o&&s?{left:`${s.x+t.x}px`,top:`${o.y+t.y}px`,width:`${o.x-s.x-t.x}px`,height:`${s.y-o.y-t.y}px`}:{left:"-9999px",top:"-9999px"}}function $$(e,t,a){let o=e&&e.fromLatLngToDivPixel(a);if(o){let{x:s,y:f}=o;return{left:`${s+t.x}px`,top:`${f+t.y}px`}}return{left:"-9999px",top:"-9999px"}}function W$(e,t,a,o){return a!==void 0?V$(e,t,H$(a,google.maps.LatLngBounds,U$)):$$(e,t,B$(o,google.maps.LatLng,j$))}function G$(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.height&&e.height===t.height}function P6(e){return e?(e instanceof google.maps.LatLng?e:new google.maps.LatLng(e.lat,e.lng))+"":""}function A6(e){return e?(e instanceof google.maps.LatLngBounds?e:new google.maps.LatLngBounds(new google.maps.LatLng(e.south,e.east),new google.maps.LatLng(e.north,e.west)))+"":""}var uu=class extends Kn{constructor(t){super(t),this.state={paneEl:null,containerStyle:{position:"absolute"}},this.updatePane=()=>{let o=this.props.mapPaneName,s=this.overlayView.getPanes();si(!!o,"OverlayView requires props.mapPaneName but got %s",o),s?this.setState({paneEl:s[o]}):this.setState({paneEl:null})},this.onAdd=()=>{var o,s;this.updatePane(),(s=(o=this.props).onLoad)===null||s===void 0||s.call(o,this.overlayView)},this.onPositionElement=()=>{let o=this.overlayView.getProjection(),s=Object.assign({x:0,y:0},this.containerRef.current?F$(this.containerRef.current,this.props.getPixelPositionOffset):{}),f=W$(o,s,this.props.bounds,this.props.position),{left:p,top:h,width:g,height:y}=this.state.containerStyle;G$(f,{left:p,top:h,width:g,height:y})||this.setState({containerStyle:Object.assign(Object.assign({},f),{position:"absolute"})})},this.draw=()=>{this.onPositionElement()},this.onRemove=()=>{var o,s;this.setState(()=>({paneEl:null})),(s=(o=this.props).onUnmount)===null||s===void 0||s.call(o,this.overlayView)},this.containerRef=G0();let a=new google.maps.OverlayView;a.onAdd=this.onAdd,a.draw=this.draw,a.onRemove=this.onRemove,this.overlayView=a}componentDidMount(){this.overlayView.setMap(this.context)}componentDidUpdate(t){let a=P6(t.position),o=P6(this.props.position),s=A6(t.bounds),f=A6(this.props.bounds);(a!==o||s!==f)&&this.overlayView.draw(),t.mapPaneName!==this.props.mapPaneName&&this.updatePane()}componentWillUnmount(){this.overlayView.setMap(null)}render(){let t=this.state.paneEl;return t?Q6.createPortal(fr.exports.jsx("div",Object.assign({ref:this.containerRef,style:this.state.containerStyle},{children:as.only(this.props.children)})),t):null}};uu.FLOAT_PANE="floatPane";uu.MAP_PANE="mapPane";uu.MARKER_LAYER="markerLayer";uu.OVERLAY_LAYER="overlayLayer";uu.OVERLAY_MOUSE_TARGET="overlayMouseTarget";uu.contextType=$t;function Y$(){}var N6={onDblClick:"dblclick",onClick:"click"},z6={opacity(e,t){e.setOpacity(t)}},W0=class extends Kn{constructor(){super(...arguments),this.registeredEvents=[],this.state={groundOverlay:null},this.setGroundOverlayCallback=()=>{this.state.groundOverlay!==null&&this.props.onLoad&&this.props.onLoad(this.state.groundOverlay)}}componentDidMount(){si(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");let t=new google.maps.GroundOverlay(this.props.url,this.props.bounds,Object.assign(Object.assign({},this.props.options),{map:this.context}));this.registeredEvents=Ft({updaterMap:z6,eventMap:N6,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{groundOverlay:t}},this.setGroundOverlayCallback)}componentDidUpdate(t){this.state.groundOverlay!==null&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:z6,eventMap:N6,prevProps:t,nextProps:this.props,instance:this.state.groundOverlay}))}componentWillUnmount(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))}render(){return null}};W0.defaultProps={onLoad:Y$};W0.contextType=$t;var I6={},F6={data(e,t){e.setData(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)}},UL=class extends Kn{constructor(){super(...arguments),this.registeredEvents=[],this.state={heatmapLayer:null},this.setHeatmapLayerCallback=()=>{this.state.heatmapLayer!==null&&this.props.onLoad&&this.props.onLoad(this.state.heatmapLayer)}}componentDidMount(){si(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),si(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);let t=new google.maps.visualization.HeatmapLayer(Object.assign(Object.assign({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=Ft({updaterMap:F6,eventMap:I6,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{heatmapLayer:t}},this.setHeatmapLayerCallback)}componentDidUpdate(t){Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:F6,eventMap:I6,prevProps:t,nextProps:this.props,instance:this.state.heatmapLayer})}componentWillUnmount(){this.state.heatmapLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),Vt(this.registeredEvents),this.state.heatmapLayer.setMap(null))}render(){return null}};UL.contextType=$t;var j6={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},U6={register(e,t,a){e.registerPanoProvider(t,a)},links(e,t){e.setLinks(t)},motionTracking(e,t){e.setMotionTracking(t)},options(e,t){e.setOptions(t)},pano(e,t){e.setPano(t)},position(e,t){e.setPosition(t)},pov(e,t){e.setPov(t)},visible(e,t){e.setVisible(t)},zoom(e,t){e.setZoom(t)}},BL=class extends Kn{constructor(){super(...arguments),this.registeredEvents=[],this.state={streetViewPanorama:null},this.setStreetViewPanoramaCallback=()=>{this.state.streetViewPanorama!==null&&this.props.onLoad&&this.props.onLoad(this.state.streetViewPanorama)}}componentDidMount(){let t=this.context.getStreetView();this.registeredEvents=Ft({updaterMap:U6,eventMap:j6,prevProps:{},nextProps:this.props,instance:t}),this.setState(()=>({streetViewPanorama:t}),this.setStreetViewPanoramaCallback)}componentDidUpdate(t){this.state.streetViewPanorama!==null&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:U6,eventMap:j6,prevProps:t,nextProps:this.props,instance:this.state.streetViewPanorama}))}componentWillUnmount(){this.state.streetViewPanorama!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),Vt(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))}render(){return null}};BL.contextType=$t;var HL=class extends Kn{constructor(){super(...arguments),this.state={streetViewService:null},this.setStreetViewServiceCallback=()=>{this.state.streetViewService!==null&&this.props.onLoad&&this.props.onLoad(this.state.streetViewService)}}componentDidMount(){let t=new google.maps.StreetViewService;this.setState(function(){return{streetViewService:t}},this.setStreetViewServiceCallback)}componentWillUnmount(){this.state.streetViewService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)}render(){return null}};HL.contextType=$t;var B6={onDirectionsChanged:"directions_changed"},H6={directions(e,t){e.setDirections(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},panel(e,t){e.setPanel(t)},routeIndex(e,t){e.setRouteIndex(t)}},VL=class extends Kn{constructor(){super(...arguments),this.registeredEvents=[],this.state={directionsRenderer:null},this.setDirectionsRendererCallback=()=>{this.state.directionsRenderer!==null&&(this.state.directionsRenderer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.directionsRenderer))}}componentDidMount(){let t=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=Ft({updaterMap:H6,eventMap:B6,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{directionsRenderer:t}},this.setDirectionsRendererCallback)}componentDidUpdate(t){this.state.directionsRenderer!==null&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:H6,eventMap:B6,prevProps:t,nextProps:this.props,instance:this.state.directionsRenderer}))}componentWillUnmount(){this.state.directionsRenderer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),Vt(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))}render(){return fr.exports.jsx(fr.exports.Fragment,{})}};VL.contextType=$t;var V6={onPlacesChanged:"places_changed"},$6={bounds(e,t){e.setBounds(t)}},$L=class extends Kn{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=G0(),this.state={searchBox:null},this.setSearchBoxCallback=()=>{this.state.searchBox!==null&&this.props.onLoad&&this.props.onLoad(this.state.searchBox)}}componentDidMount(){if(si(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),this.containerElement!==null&&this.containerElement.current!==null){let t=this.containerElement.current.querySelector("input");if(t!==null){let a=new google.maps.places.SearchBox(t,this.props.options);this.registeredEvents=Ft({updaterMap:$6,eventMap:V6,prevProps:{},nextProps:this.props,instance:a}),this.setState(function(){return{searchBox:a}},this.setSearchBoxCallback)}}}componentDidUpdate(t){this.state.searchBox!==null&&(Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:$6,eventMap:V6,prevProps:t,nextProps:this.props,instance:this.state.searchBox}))}componentWillUnmount(){this.state.searchBox!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),Vt(this.registeredEvents))}render(){return fr.exports.jsx("div",Object.assign({ref:this.containerElement},{children:as.only(this.props.children)}))}};$L.contextType=$t;var W6={onPlaceChanged:"place_changed"},G6={bounds(e,t){e.setBounds(t)},restrictions(e,t){e.setComponentRestrictions(t)},fields(e,t){e.setFields(t)},options(e,t){e.setOptions(t)},types(e,t){e.setTypes(t)}},Rd=class extends Kn{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=G0(),this.state={autocomplete:null},this.setAutocompleteCallback=()=>{this.state.autocomplete!==null&&this.props.onLoad&&this.props.onLoad(this.state.autocomplete)}}componentDidMount(){si(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);let t=this.containerElement.current.querySelector("input");if(t){let a=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=Ft({updaterMap:G6,eventMap:W6,prevProps:{},nextProps:this.props,instance:a}),this.setState(()=>({autocomplete:a}),this.setAutocompleteCallback)}}componentDidUpdate(t){Vt(this.registeredEvents),this.registeredEvents=Ft({updaterMap:G6,eventMap:W6,prevProps:t,nextProps:this.props,instance:this.state.autocomplete})}componentWillUnmount(){this.state.autocomplete!==null&&Vt(this.registeredEvents)}render(){return fr.exports.jsx("div",Object.assign({ref:this.containerElement,className:this.props.className},{children:as.only(this.props.children)}))}};Rd.defaultProps={className:""};Rd.contextType=$t;import Ui,{useEffect as o9,useMemo as J$,useReducer as X$,useRef as eW,useState as tW}from"react";import nW,{useState as rW}from"react";var ji=63710088e-1,lee={centimeters:ji*100,centimetres:ji*100,degrees:ji/111325,feet:ji*3.28084,inches:ji*39.37,kilometers:ji/1e3,kilometres:ji/1e3,meters:ji,metres:ji,miles:ji/1609.344,millimeters:ji*1e3,millimetres:ji*1e3,nauticalmiles:ji/1852,radians:1,yards:ji*1.0936},see={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/ji,yards:1.0936133};function GL(e,t,a){if(e!==null)for(var o,s,f,p,h,g,y,w=0,C=0,M,_=e.type,A=_==="FeatureCollection",I=_==="Feature",$=A?e.features.length:1,R=0;R<$;R++){y=A?e.features[R].geometry:I?e.geometry:e,M=y?y.type==="GeometryCollection":!1,h=M?y.geometries.length:1;for(var D=0;D<h;D++){var E=0,k=0;if(p=M?y.geometries[D]:y,p!==null){g=p.coordinates;var F=p.type;switch(w=a&&(F==="Polygon"||F==="MultiPolygon")?1:0,F){case null:break;case"Point":if(t(g,C,R,E,k)===!1)return!1;C++,E++;break;case"LineString":case"MultiPoint":for(o=0;o<g.length;o++){if(t(g[o],C,R,E,k)===!1)return!1;C++,F==="MultiPoint"&&E++}F==="LineString"&&E++;break;case"Polygon":case"MultiLineString":for(o=0;o<g.length;o++){for(s=0;s<g[o].length-w;s++){if(t(g[o][s],C,R,E,k)===!1)return!1;C++}F==="MultiLineString"&&E++,F==="Polygon"&&k++}F==="Polygon"&&E++;break;case"MultiPolygon":for(o=0;o<g.length;o++){for(k=0,s=0;s<g[o].length;s++){for(f=0;f<g[o][s].length-w;f++){if(t(g[o][s][f],C,R,E,k)===!1)return!1;C++}k++}E++}break;case"GeometryCollection":for(o=0;o<p.geometries.length;o++)if(GL(p.geometries[o],t,a)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function YL(e){var t=[1/0,1/0,-1/0,-1/0];return GL(e,function(a){t[0]>a[0]&&(t[0]=a[0]),t[1]>a[1]&&(t[1]=a[1]),t[2]<a[0]&&(t[2]=a[0]),t[3]<a[1]&&(t[3]=a[1])}),t}YL.default=YL;var cu=YL;import q0 from"react";import qL,{useRef as dW}from"react";import l9,{useEffect as vW,useState as s9}from"react";import{useState as u9,useEffect as mW}from"react";var q$=Object.defineProperty,i9=Object.getOwnPropertySymbols,Z$=Object.prototype.hasOwnProperty,Q$=Object.prototype.propertyIsEnumerable,a9=(e,t,a)=>t in e?q$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,K$=(e,t)=>{for(var a in t||(t={}))Z$.call(t,a)&&a9(e,a,t[a]);if(i9)for(var a of i9(t))Q$.call(t,a)&&a9(e,a,t[a]);return e},Bi={POINT:"Point",POLYGON:"Polygon",LINESTRING:"LineString",RECTANGLE:"Rectangle",RAW:"Raw",NONE:null},iW={mapTypeControlOptions:{position:10}},aW=e=>({type:Bi.POINT,properties:{id:new Date().getTime(),name:e.name,formatted_address:e.formatted_address},coordinates:Object.values(e.geometry.location.toJSON()).reverse()}),oW=e=>{let t=new Date().getTime();switch(e.getType()){case Bi.POINT:return{type:Bi.POINT,properties:{id:t},coordinates:Object.values(e.get().toJSON()).reverse()};case Bi.POLYGON:{let a=[],o=s=>a.push([s.lng(),s.lat()]);return e.forEachLatLng(o),a.push(a[0]),{type:Bi.POLYGON,properties:{id:t},coordinates:[a]}}case Bi.RAW:{let a=e.data;return a.push(a[0]),{type:Bi.POLYGON,properties:{id:t},coordinates:[a]}}case Bi.LINESTRING:{let a=[],o=s=>a.push([s.lng(),s.lat()]);return e.forEachLatLng(o),{type:Bi.LINESTRING,properties:{id:t},coordinates:a}}default:return null}},lW=e=>{let t=(e||[]).filter(a=>a);return t.length===0?!1:{type:"FeatureCollection",features:t.map(a=>({type:"Feature",properties:{},geometry:a}))}},sW=e=>{let t=cu(e);return{east:t[2],north:t[3],south:t[1],west:t[0]}};function uW({InputComponent:e,addFeature:t,gmapRegion:a}){let[o,s]=rW();return nW.createElement(Rd,{onLoad:f=>{s(f)},fields:T3,onPlaceChanged:()=>{let f=aW(o==null?void 0:o.getPlace());t(f)},options:a?{componentRestrictions:{country:a}}:{},children:e})}var cW={background:"white",position:"absolute",top:"5px",left:"106px",padding:"0.4rem",borderRadius:"0.15rem",outline:0,boxShadow:"rgba(0, 0, 0, 0.3) 0px 1px 4px -1px"};function fW({onClick:e}){return q0.createElement("button",{type:"button",title:"Clear",onClick:e,style:cW},q0.createElement("svg",{viewBox:"0 0 24 24",width:"12",height:"12"},q0.createElement("g",{fill:"#E53E3E"},q0.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))))}function pW({addFeature:e,InputComponent:t,ButtonComponent:a}){let o=dW(),s=()=>{var f,p;try{let h=(f=o==null?void 0:o.current)==null?void 0:f.value,g=(p=h.split(",").map(Number))==null?void 0:p.reverse();e({type:Bi.POINT,properties:{id:new Date().getTime(),name:h,formatted_address:h},coordinates:g})}catch(h){console.error(h)}};return qL.createElement("div",{style:{display:"flex"}},qL.cloneElement(t,{ref:o}),qL.cloneElement(a,{onClick:s,type:"button"}))}var Ec={ADD:"add",CLEAR:"clear",REPLACE:"replace"};function hW(e,{action:t,data:a,isMultiple:o}){switch(t){case Ec.ADD:return o?[...e||[],a]:[a];case Ec.CLEAR:return[];case Ec.REPLACE:return a;default:return e}}var gW={enableHighAccuracy:!1,timeout:1/0,maximumAge:0},yW=(e,t=gW)=>{let[a,o]=u9(),[s,f]=u9(),p=({coords:g})=>{o([g.longitude,g.latitude])},h=g=>{f(g.message)};return mW(()=>{if(!navigator||!navigator.geolocation){f("Geolocation is not supported");return}let g=null;return e?g=navigator.geolocation.watchPosition(p,h,t):g&&navigator.geolocation.clearWatch(g),()=>g&&navigator.geolocation.clearWatch(g)},[t,e]),{position:a,error:s}};function bW({TraceButtonComponent:e,onFeatureAdded:t}){let[a,o]=s9([]),[s,f]=s9(!1),{position:p}=yW(s);vW(()=>{s&&p&&o([...a,p])},[s,p]);let h=()=>{s?(f(!1),t({getType:()=>Bi.RAW,data:[...a]}),o([])):f(!0)};return l9.createElement("div",null,l9.cloneElement(e,{onClick:h,isTracking:s}))}var Mee=Ui.forwardRef(({defaultViewState:e,defaultDrawingMode:t,data:a,onDataChange:o,gmapAccessToken:s,isControlled:f,isReadOnly:p,isMultiple:h,isImport:g,isAutocomplete:y,gmapRegion:w,autoCompleteRegion:C,mapStyle:M,importInputComponent:_,importButtonComponent:A,autocompleteComponent:I,showTrace:$,traceButtonComponent:R,maxZoom:D,options:E},k)=>{let F=eW(null),[U,N]=X$(hW,a),[W,K]=tW(),G=J$(()=>xy(e),[e]),re=()=>{F.current.state.map.data.forEach(function(V){F.current.state.map.data.remove(V)});let ke=lW(U);if(ke){ke&&F.current.state.map.data.addGeoJson(ke);let V=sW(ke);V&&F.current.state.map.fitBounds(V),D&&google.maps.event.addListenerOnce(F.current.state.map,"idle",function(){let Q=F.current.state.map.getZoom();F.current.state.map.setZoom(Math.min(D,Q))})}};o9(()=>{W&&(o&&o(U),k&&(k.current={addFeature:Le,replaceFeature:Y}),re())},[W,U]),o9(()=>{f&&JSON.stringify(U)!==JSON.stringify(a)&&N({action:Ec.REPLACE,data:a})},[a]);let Le=ke=>{N({action:Ec.ADD,data:ke,isMultiple:h})},Y=ke=>{N({action:Ec.REPLACE,data:[ke]})},ue=ke=>{let V=oW(ke);Le(V)},xe=()=>{N({action:Ec.CLEAR})},Pe=()=>K(!0);return Ui.createElement(Y0,{googleMapsApiKey:s,region:w,libraries:y?Uh.AUTOCOMPLETE:Uh.DEFAULT},Ui.createElement(Ui.Fragment,null,Ui.createElement("div",{className:"map-toolbar",style:{display:"flex"}},y&&Ui.createElement(uW,{InputComponent:I||Ui.createElement("input",null),addFeature:Le,gmapRegion:C??w}),g&&Ui.createElement(pW,{InputComponent:_||Ui.createElement("input",null),ButtonComponent:A||Ui.createElement("button",{children:"import"}),addFeature:Le})),$&&Ui.createElement(bW,{TraceButtonComponent:R||Ui.createElement("button",{children:"trace"}),onFeatureAdded:ue}),Ui.createElement(Md,{id:"naksha-gmaps-draw",mapContainerStyle:M||{height:"100%",width:"100%"},zoom:G.zoom,center:G.center,options:iW,ref:F,onLoad:Pe},h&&Ui.createElement(fW,{onClick:xe}),!p&&Ui.createElement(Uv,{options:K$({controls:[Bi.POINT,Bi.POLYGON,Bi.LINESTRING],drawingMode:t||Bi.POLYGON,featureFactory:ue},E||{})}))))});import p9,{useEffect as wW,useRef as CW,useState as h9}from"react";var SW=Object.defineProperty,c9=Object.getOwnPropertySymbols,xW=Object.prototype.hasOwnProperty,EW=Object.prototype.propertyIsEnumerable,f9=(e,t,a)=>t in e?SW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,d9=(e,t)=>{for(var a in t||(t={}))xW.call(t,a)&&f9(e,a,t[a]);if(c9)for(var a of c9(t))EW.call(t,a)&&f9(e,a,t[a]);return e},LW={mapTypeControlOptions:{position:10}},TW=e=>{let t=cu(e);return{east:t[2],north:t[3],south:t[1],west:t[0]}};function Nee({defaultViewState:e,gmapAccessToken:t,gmapRegion:a,features:o,mapStyle:s,maxZoom:f,options:p}){let h=CW(null),[g]=h9(xy(e)),[y,w]=h9(),C=()=>{h.current.state.map.data.forEach(function(A){h.current.state.map.data.remove(A)});let _=Array.isArray(o)?{type:"FeatureCollection",features:o}:o;if(_){_&&h.current.state.map.data.addGeoJson(_);let A=TW(_);A&&h.current.state.map.fitBounds(A),f&&google.maps.event.addListenerOnce(h.current.state.map,"idle",function(){let I=h.current.state.map.getZoom();h.current.state.map.setZoom(Math.min(f,I))})}};wW(()=>{y&&C()},[y,o]);let M=()=>w(!0);return p9.createElement(Y0,{googleMapsApiKey:t,region:a,libraries:Uh.DEFAULT},p9.createElement(Md,{id:"naksha-gmaps-view",mapContainerStyle:s||{height:"100%",width:"100%"},zoom:g.zoom,center:g.center,options:d9(d9({},LW),p||{}),ref:h,onLoad:M}))}import V9 from"react";import*as Hv from"react";import{useState as jW,useRef as x9,useEffect as UW,useContext as BW,useMemo as HW,forwardRef as VW,useImperativeHandle as $W}from"react";import*as Z0 from"react";import{useState as _W,useCallback as v9,useMemo as kW,useContext as m9}from"react";var Q0=Z0.createContext(null),wc=e=>{let[t,a]=_W({}),o=v9((f,p="default")=>{a(h=>{if(p==="current")throw new Error("'current' cannot be used as map id");if(h[p])throw new Error(`Multiple maps with the same id: ${p}`);return Qa(Zn({},h),{[p]:f})})},[]),s=v9((f="default")=>{a(p=>{if(p[f]){let h=Zn({},p);return delete h[f],h}return p})},[]);return Z0.createElement(Q0.Provider,{value:{maps:t,onMapMount:o,onMapUnmount:s}},e.children)};function Oa(){var e;let t=(e=m9(Q0))===null||e===void 0?void 0:e.maps,a=m9(Da);return kW(()=>Qa(Zn({},t),{current:a==null?void 0:a.map}),[t,a])}function ZL(e){let t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function QL(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function KL(e,t){let a=t.viewState||t,o=!1;if("longitude"in a&&"latitude"in a){let s=e.center;e.center=new s.constructor(a.longitude,a.latitude),o=o||s!==e.center}if("zoom"in a){let s=e.zoom;e.zoom=a.zoom,o=o||s!==e.zoom}if("bearing"in a){let s=e.bearing;e.bearing=a.bearing,o=o||s!==e.bearing}if("pitch"in a){let s=e.pitch;e.pitch=a.pitch,o=o||s!==e.pitch}return a.padding&&!e.isPaddingEqual(a.padding)&&(o=!0,e.padding=a.padding),o}var MW=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function JL(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;let t={};for(let o of e.layers)t[o.id]=o;let a=e.layers.map(o=>{let s=t[o.ref],f=null;if("interactive"in o&&(f=Zn({},o),delete f.interactive),s){f=f||Zn({},o),delete f.ref;for(let p of MW)p in s&&(f[p]=s[p])}return f||o});return Qa(Zn({},e),{layers:a})}function g9(e,t){let a=Array.isArray(e)?e[0]:e?e.x:0,o=Array.isArray(e)?e[1]:e?e.y:0,s=Array.isArray(t)?t[0]:t?t.x:0,f=Array.isArray(t)?t[1]:t?t.y:0;return a===s&&o===f}function Li(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(!Li(e[a],t[a]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(let s of a)if(!t.hasOwnProperty(s)||!Li(e[s],t[s]))return!1;return!0}return!1}var y9={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},XL={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},b9={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},RW=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],OW=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"],Sl=class{constructor(t,a,o){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=s=>{let f=this.props[b9[s.type]];f&&f(s)},this._onPointerEvent=s=>{(s.type==="mousemove"||s.type==="mouseout")&&this._updateHover(s);let f=this.props[y9[s.type]];if(f){if(this.props.interactiveLayerIds&&s.type!=="mouseover"&&s.type!=="mouseout"){let p=this._hoveredFeatures||this._map.queryRenderedFeatures(s.point,{layers:this.props.interactiveLayerIds});if(!p.length)return;s.features=p}f(s),delete s.features}},this._onCameraEvent=s=>{if(!this._internalUpdate){let f=this.props[XL[s.type]];f&&f(s)}s.type in this._deferredEvents&&(this._deferredEvents[s.type]=!1)},this._MapClass=t,this.props=a,this._initialize(o)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){let a=this.props;this.props=t;let o=this._updateSettings(t,a);o&&(this._renderTransform=ZL(this._map.transform));let s=this._updateSize(t),f=this._updateViewState(t,!0);this._updateStyle(t,a),this._updateStyleComponents(t,a),this._updateHandlers(t,a),(o||s||f&&!this._map.isMoving())&&this.redraw()}static reuse(t,a){let o=Sl.savedMaps.pop();if(!o)return null;let s=o.map,f=s.getContainer();for(a.className=f.className;f.childNodes.length>0;)a.appendChild(f.childNodes[0]);return s._container=a,t.initialViewState&&o._updateViewState(t.initialViewState,!1),s.resize(),o.setProps(Qa(Zn({},t),{styleDiffing:!1})),s.isStyleLoaded()?s.fire("load"):s.once("styledata",()=>s.fire("load")),o}_initialize(t){let{props:a}=this,o=Qa(Zn(Zn({},a),a.initialViewState),{accessToken:a.mapboxAccessToken||DW()||null,container:t,style:JL(a.mapStyle)}),s=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),a.gl){let y=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=y,a.gl)}let f=new this._MapClass(o);s.padding&&f.setPadding(s.padding),a.cursor&&(f.getCanvas().style.cursor=a.cursor),this._renderTransform=ZL(f.transform);let p=f._render;f._render=y=>{this._inRender=!0,p.call(f,y),this._inRender=!1};let h=f._renderTaskQueue.run;f._renderTaskQueue.run=y=>{h.call(f._renderTaskQueue,y),this._onBeforeRepaint()},f.on("render",()=>this._onAfterRepaint());let g=f.fire;f.fire=this._fireEvent.bind(this,g),f.on("resize",()=>{this._renderTransform.resize(f.transform.width,f.transform.height)}),f.on("styledata",()=>this._updateStyleComponents(this.props,{})),f.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(let y in y9)f.on(y,this._onPointerEvent);for(let y in XL)f.on(y,this._onCameraEvent);for(let y in b9)f.on(y,this._onEvent);this._map=f}recycle(){Sl.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){let t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_updateSize(t){let{viewState:a}=t;if(a){let o=this._map;if(a.width!==o.transform.width||a.height!==o.transform.height)return o.resize(),!0}return!1}_updateViewState(t,a){if(this._internalUpdate)return!1;let o=this._map,s=this._renderTransform,{zoom:f,pitch:p,bearing:h}=s,g=KL(s,Zn(Zn({},QL(o.transform)),t));if(g&&a){let y=this._deferredEvents;y.move=!0,y.zoom||(y.zoom=f!==s.zoom),y.rotate||(y.rotate=h!==s.bearing),y.pitch||(y.pitch=p!==s.pitch)}return o.isMoving()||KL(o.transform,t),g}_updateSettings(t,a){let o=this._map,s=!1;for(let f of RW)f in t&&!Li(t[f],a[f])&&(s=!0,o[`set${f[0].toUpperCase()}${f.slice(1)}`](t[f]));return s}_updateStyle(t,a){if(t.cursor!==a.cursor&&(this._map.getCanvas().style.cursor=t.cursor),t.mapStyle!==a.mapStyle){let o={diff:t.styleDiffing};return"localIdeographFontFamily"in t&&(o.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(JL(t.mapStyle),o),!0}return!1}_updateStyleComponents(t,a){let o=this._map,s=!1;return o.style.loaded()&&("light"in t&&!Li(t.light,a.light)&&(s=!0,o.setLight(t.light)),"fog"in t&&!Li(t.fog,a.fog)&&(s=!0,o.setFog(t.fog)),"terrain"in t&&!Li(t.terrain,a.terrain)&&(!t.terrain||o.getSource(t.terrain.source))&&(s=!0,o.setTerrain(t.terrain))),s}_updateHandlers(t,a){let o=this._map,s=!1;for(let f of OW){let p=t[f];Li(p,a[f])||(s=!0,p?o[f].enable(p):o[f].disable())}return s}_updateHover(t){var a;let{props:o}=this;if(o.interactiveLayerIds&&(o.onMouseMove||o.onMouseEnter||o.onMouseLeave)){let f=t.type,p=((a=this._hoveredFeatures)===null||a===void 0?void 0:a.length)>0,h;if(f==="mousemove")try{h=this._map.queryRenderedFeatures(t.point,{layers:o.interactiveLayerIds})}catch{h=[]}else h=[];let g=h.length>0;!g&&p&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=h,g&&!p&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=f}else this._hoveredFeatures=null}_fireEvent(t,a,o){let s=this._map,f=s.transform,p=typeof a=="string"?a:a.type;return p==="move"&&this._updateViewState(this.props,!1),p in XL&&(typeof a=="object"&&(a.viewState=QL(f)),this._map.isMoving())?(s.transform=this._renderTransform,t.call(s,a,o),s.transform=f,s):(t.call(s,a,o),s)}_onBeforeRepaint(){let t=this._map;this._internalUpdate=!0;for(let o in this._deferredEvents)this._deferredEvents[o]&&t.fire(o);this._internalUpdate=!1;let a=this._map.transform;this._map.transform=this._renderTransform,this._map.painter.transform=this._renderTransform,this._onAfterRepaint=()=>{(a.elevation=this._renderTransform.elevation)&&a.updateElevation(!1),this._map.transform=a}}};Sl.savedMaps=[];function DW(){let e=null;if(typeof location<"u"){let t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}var PW=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function e2(e,t){if(!e)return null;let a=e.map,o={getMap:()=>a,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:s=>e.transform.locationPoint(t.LngLat.convert(s)),unproject:s=>e.transform.pointLocation(t.Point.convert(s))};for(let s of AW(a))!(s in o)&&!PW.includes(s)&&(o[s]=a[s].bind(a));return o}function AW(e){let t=new Set,a=e;for(;a;){for(let o of Object.getOwnPropertyNames(a))o[0]!=="_"&&typeof e[o]=="function"&&o!=="fire"&&o!=="setEventedParent"&&t.add(o);a=Object.getPrototypeOf(a)}return Array.from(t)}import{useEffect as NW,useLayoutEffect as zW}from"react";var IW=typeof document<"u"?zW:NW,S9=IW;var FW=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function t2(e,t){for(let a of FW)a in t&&(e[a]=t[a]);t.RTLTextPlugin&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(t.RTLTextPlugin,a=>{a&&console.error(a)},!1)}var Da=Hv.createContext(null),WW={minZoom:0,maxZoom:22,minPitch:0,maxPitch:60,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,mapStyle:{version:8,sources:{},layers:[]},styleDiffing:!0,projection:"mercator",renderWorldCopies:!0,onError:e=>console.error(e.error),RTLTextPlugin:"https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"},n2=VW((e,t)=>{let a=BW(Q0),[o,s]=jW(null),f=x9(),{current:p}=x9({mapLib:null,map:null});UW(()=>{let g=e.mapLib,y=!0,w;return Promise.resolve(g||import("./mapbox-gl-Q3G2EFTE.js")).then(C=>{if(!!y){if(C.Map||(C=C.default),!C||!C.Map)throw new Error("Invalid mapLib");if(C.supported(e))t2(C,e),e.reuseMaps&&(w=Sl.reuse(e,f.current)),w||(w=new Sl(C.Map,e,f.current)),p.map=e2(w,C),p.mapLib=C,s(w),a==null||a.onMapMount(p.map,e.id);else throw new Error("Map is not supported by this browser")}}).catch(C=>{e.onError({type:"error",target:null,originalEvent:null,error:C})}),()=>{y=!1,w&&(a==null||a.onMapUnmount(e.id),e.reuseMaps?w.recycle():w.destroy())}},[]),S9(()=>{o&&o.setProps(e)}),$W(t,()=>p.map,[o]);let h=HW(()=>Zn({position:"relative",width:"100%",height:"100%"},e.style),[e.style]);return Hv.createElement("div",{id:e.id,ref:f,style:h},o&&Hv.createElement(Da.Provider,{value:p},e.children))});n2.displayName="Map";n2.defaultProps=WW;var fu=n2;var w9=wa(su());import*as K0 from"react";import{useEffect as E9,useMemo as YW,useRef as qW,useContext as ZW}from"react";var GW=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function oa(e,t){if(!e||!t)return;let a=e.style;for(let o in t){let s=t[o];Number.isFinite(s)&&!GW.test(o)?a[o]=`${s}px`:a[o]=s}}var QW={draggable:!1,popup:null,rotation:0,rotationAlignment:"auto",pitchAlignment:"auto"};function C9(e){let{map:t,mapLib:a}=ZW(Da),o=qW({props:e});o.current.props=e;let s=YW(()=>{let f=!1;K0.Children.forEach(e.children,g=>{g&&(f=!0)});let p=Qa(Zn({},e),{element:f?document.createElement("div"):null}),h=new a.Marker(p).setLngLat([e.longitude,e.latitude]);return h.getElement().addEventListener("click",g=>{var y,w;(w=(y=o.current.props).onClick)===null||w===void 0||w.call(y,{type:"click",target:h,originalEvent:g})}),h.on("dragstart",g=>{var y,w;let C=g;C.lngLat=s.getLngLat(),(w=(y=o.current.props).onDragStart)===null||w===void 0||w.call(y,C)}),h.on("drag",g=>{var y,w;let C=g;C.lngLat=s.getLngLat(),(w=(y=o.current.props).onDrag)===null||w===void 0||w.call(y,C)}),h.on("dragend",g=>{var y,w;let C=g;C.lngLat=s.getLngLat(),(w=(y=o.current.props).onDragEnd)===null||w===void 0||w.call(y,C)}),h},[]);return E9(()=>(s.addTo(t.getMap()),()=>{s.remove()}),[]),E9(()=>{oa(s.getElement(),e.style)},[e.style]),(s.getLngLat().lng!==e.longitude||s.getLngLat().lat!==e.latitude)&&s.setLngLat([e.longitude,e.latitude]),e.offset&&!g9(s.getOffset(),e.offset)&&s.setOffset(e.offset),s.isDraggable()!==e.draggable&&s.setDraggable(e.draggable),s.getRotation()!==e.rotation&&s.setRotation(e.rotation),s.getRotationAlignment()!==e.rotationAlignment&&s.setRotationAlignment(e.rotationAlignment),s.getPitchAlignment()!==e.pitchAlignment&&s.setPitchAlignment(e.pitchAlignment),s.getPopup()!==e.popup&&s.setPopup(e.popup),(0,w9.createPortal)(e.children,s.getElement())}C9.defaultProps=QW;var r2=K0.memo(C9);var M9=wa(su());import*as k9 from"react";import{useEffect as L9,useMemo as T9,useRef as KW,useContext as JW}from"react";function _9(e){return new Set(e?e.trim().split(/\s+/):[])}function XW(e){let{map:t,mapLib:a}=JW(Da),o=T9(()=>document.createElement("div"),[]),s=KW({props:e});s.current.props=e;let f=T9(()=>{let p=Zn({},e),h=new a.Popup(p).setLngLat([e.longitude,e.latitude]);return h.once("open",g=>{var y,w;(w=(y=s.current.props).onOpen)===null||w===void 0||w.call(y,g)}),h},[]);if(L9(()=>{let p=h=>{var g,y;(y=(g=s.current.props).onClose)===null||y===void 0||y.call(g,h)};return f.on("close",p),f.setDOMContent(o).addTo(t.getMap()),()=>{f.off("close",p),f.isOpen()&&f.remove()}},[]),L9(()=>{oa(f.getElement(),e.style)},[e.style]),f.isOpen()&&((f.getLngLat().lng!==e.longitude||f.getLngLat().lat!==e.latitude)&&f.setLngLat([e.longitude,e.latitude]),e.offset&&!Li(f.options.offset,e.offset)&&f.setOffset(e.offset),(f.options.anchor!==e.anchor||f.options.maxWidth!==e.maxWidth)&&(f.options.anchor=e.anchor,f.setMaxWidth(e.maxWidth)),f.options.className!==e.className)){let p=_9(f.options.className),h=_9(e.className);for(let g of p)h.has(g)||f.removeClassName(g);for(let g of h)p.has(g)||f.addClassName(g);f.options.className=e.className}return(0,M9.createPortal)(e.children,o)}var i2=k9.memo(XW);import*as R9 from"react";import{useEffect as rG}from"react";import{useContext as eG,useMemo as tG,useEffect as nG}from"react";function la(e,t,a){let o=eG(Da),s=tG(()=>e(o),[]);return nG(()=>{var f;let{map:p}=o;return p.hasControl(s)||p.addControl(s,(f=a||t)===null||f===void 0?void 0:f.position),()=>{typeof t=="function"&&t(o),p.hasControl(s)&&p.removeControl(s)}},[]),s}function iG(e){let t=la(({mapLib:a})=>new a.AttributionControl(e),{position:e.position});return rG(()=>{oa(t._container,e.style)},[e.style]),null}var aG=R9.memo(iG);import*as O9 from"react";import{useEffect as oG}from"react";function lG(e){let t=la(({mapLib:a})=>new a.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return oG(()=>{oa(t._controlContainer,e.style)},[e.style]),null}var sG=O9.memo(lG);import*as D9 from"react";import{forwardRef as uG,useImperativeHandle as cG,useRef as fG,useEffect as dG}from"react";var P9=uG((e,t)=>{let a=fG({props:e}),o=la(({mapLib:s})=>{let f=new s.GeolocateControl(e),p=f._setupUI;return f._setupUI=h=>{f._container.hasChildNodes()||p(h)},f.on("geolocate",h=>{var g,y;(y=(g=a.current.props).onGeolocate)===null||y===void 0||y.call(g,h)}),f.on("error",h=>{var g,y;(y=(g=a.current.props).onError)===null||y===void 0||y.call(g,h)}),f.on("outofmaxbounds",h=>{var g,y;(y=(g=a.current.props).onOutOfMaxBounds)===null||y===void 0||y.call(g,h)}),f.on("trackuserlocationstart",h=>{var g,y;(y=(g=a.current.props).onTrackUserLocationStart)===null||y===void 0||y.call(g,h)}),f.on("trackuserlocationend",h=>{var g,y;(y=(g=a.current.props).onTrackUserLocationEnd)===null||y===void 0||y.call(g,h)}),f},{position:e.position});return a.current.props=e,cG(t,()=>({trigger:()=>o.trigger()}),[]),dG(()=>{oa(o._container,e.style)},[e.style]),null});P9.displayName="GeolocateControl";var pG=D9.memo(P9);import*as A9 from"react";import{useEffect as hG}from"react";function vG(e){let t=la(({mapLib:a})=>new a.NavigationControl(e),{position:e.position});return hG(()=>{oa(t._container,e.style)},[e.style]),null}var Cc=A9.memo(vG);import*as N9 from"react";import{useEffect as mG}from"react";var gG={unit:"metric",maxWidth:100};function z9(e){let t=la(({mapLib:a})=>new a.ScaleControl(e),{position:e.position});return(t.options.unit!==e.unit||t.options.maxWidth!==e.maxWidth)&&(t.options.maxWidth=e.maxWidth,t.setUnit(e.unit)),mG(()=>{oa(t._container,e.style)},[e.style]),null}z9.defaultProps=gG;var yG=N9.memo(z9);import*as I9 from"react";import{useContext as bG,useEffect as SG,useMemo as xG,useState as EG,useRef as wG}from"react";import{cloneElement as CG}from"react";function Lc(e,t){if(!e)throw new Error(t)}var LG=0;function TG(e,t,a){if(e.style&&e.style._loaded){let o=Zn({},a);return delete o.id,delete o.children,e.addSource(t,o),e.getSource(t)}return null}function _G(e,t,a){Lc(t.id===a.id,"source id changed"),Lc(t.type===a.type,"source type changed");let o="",s=0;for(let p in t)p!=="children"&&p!=="id"&&!Li(a[p],t[p])&&(o=p,s++);if(!s)return;let f=t.type;if(f==="geojson")e.setData(t.data);else if(f==="image")e.updateImage({url:t.url,coordinates:t.coordinates});else if((f==="canvas"||f==="video")&&s===1&&o==="coordinates")e.setCoordinates(t.coordinates);else if(f==="vector"&&"setUrl"in e)switch(o){case"url":e.setUrl(t.url);break;case"tiles":e.setTiles(t.tiles);break;default:}else console.warn(`Unable to update <Source> prop: ${o}`)}function kG(e){let t=bG(Da).map.getMap(),a=wG(e),[,o]=EG(0),s=xG(()=>e.id||`jsx-source-${LG++}`,[]);SG(()=>{if(t){let p=()=>o(h=>h+1);return t.on("styledata",p),p(),()=>{var h;if(t.off("styledata",p),t.style&&t.style._loaded&&t.getSource(s)){let g=(h=t.getStyle())===null||h===void 0?void 0:h.layers;if(g)for(let y of g)y.source===s&&t.removeLayer(y.id);t.removeSource(s)}}}},[t]);let f=t&&t.style&&t.getSource(s);return f?_G(f,e,a.current):f=TG(t,s,e),a.current=e,f&&I9.Children.map(e.children,p=>p&&CG(p,{source:s}))||null}var Bo=kG;import{useContext as MG,useEffect as RG,useMemo as OG,useState as DG,useRef as PG}from"react";function AG(e,t,a,o){if(Lc(a.id===o.id,"layer id changed"),Lc(a.type===o.type,"layer type changed"),a.type==="custom"||o.type==="custom")return;let{layout:s={},paint:f={},filter:p,minzoom:h,maxzoom:g,beforeId:y}=a;if(y!==o.beforeId&&e.moveLayer(t,y),s!==o.layout){let w=o.layout||{};for(let C in s)Li(s[C],w[C])||e.setLayoutProperty(t,C,s[C]);for(let C in w)s.hasOwnProperty(C)||e.setLayoutProperty(t,C,void 0)}if(f!==o.paint){let w=o.paint||{};for(let C in f)Li(f[C],w[C])||e.setPaintProperty(t,C,f[C]);for(let C in w)f.hasOwnProperty(C)||e.setPaintProperty(t,C,void 0)}Li(p,o.filter)||e.setFilter(t,p),(h!==o.minzoom||g!==o.maxzoom)&&e.setLayerZoomRange(t,h,g)}function NG(e,t,a){if(e.style&&e.style._loaded&&(!("source"in a)||e.getSource(a.source))){let o=Qa(Zn({},a),{id:t});delete o.beforeId,e.addLayer(o,a.beforeId)}}var zG=0;function IG(e){let t=MG(Da).map.getMap(),a=PG(e),[,o]=DG(0),s=OG(()=>e.id||`jsx-layer-${zG++}`,[]);if(RG(()=>{if(t){let p=()=>o(h=>h+1);return t.on("styledata",p),p(),()=>{t.off("styledata",p),t.style&&t.style._loaded&&t.getLayer(s)&&t.removeLayer(s)}}},[t]),t&&t.style&&t.getLayer(s))try{AG(t,s,e,a.current)}catch(p){console.warn(p)}else NG(t,s,e);return a.current=e,null}var Ti=IG;import J0,{useEffect as $9,useState as u2}from"react";var W9=wa(F9());import $G from"react";import l2 from"react";function FG(e){return e=e||Object.create(null),{on:function(a,o){(e[a]||(e[a]=[])).push(o)},off:function(a,o){e[a]&&e[a].splice(e[a].indexOf(o)>>>0,1)},emit:function(a,o){(e[a]||[]).slice().map(function(s){s(o)}),(e["*"]||[]).slice().map(function(s){s(a,o)})}}}var j9=FG(),jG=l2.createContext(j9),UG=function(){return l2.useContext(jG)},U9=function(e,t){var a=UG();l2.useEffect(function(){return t.map(function(o){return a.on(o,e)}),function(){t.map(function(o){return a.off(o,e)})}},[a,t,e])},s2=j9.emit;import c2 from"react";import X0 from"react";var BG=Object.defineProperty,B9=Object.getOwnPropertySymbols,HG=Object.prototype.hasOwnProperty,VG=Object.prototype.propertyIsEnumerable,H9=(e,t,a)=>t in e?BG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,eb=(e,t)=>{for(var a in t||(t={}))HG.call(t,a)&&H9(e,a,t[a]);if(B9)for(var a of B9(t))VG.call(t,a)&&H9(e,a,t[a]);return e};function WG({onDelete:e}){return c2.createElement("div",{className:"mapboxgl-ctrl-top-left",style:{marginTop:"100px"}},c2.createElement("div",{className:"mapboxgl-ctrl-group mapboxgl-ctrl"},c2.createElement("button",{className:"mapbox-gl-draw_ctrl-draw-btn mapbox-gl-draw_trash",title:"Delete",onClick:e})))}var f2="rmsc-draw-updated";function GG(e){U9(t,[f2]);function t(o){let s=[...e.features,...o.features],f=e.isMultiple?s:[s[s.length-1]];a.deleteAll(),e.setFeatures(f)}let a=la(({map:o})=>(o.on("draw.create",s=>s2(f2,s)),o.on("draw.update",s=>s2(f2,s)),new W9.default({displayControlsDefault:!1,controls:{polygon:!0,line_string:!0,point:!0}})),()=>{},{position:"top-left"});return $G.createElement(WG,{onDelete:()=>e.setFeatures([])})}var YG={id:"data",type:"fill",paint:{"fill-color":"#f03b20","fill-opacity":.2},filter:["==",["geometry-type"],"Polygon"]},qG={type:"circle",paint:{"circle-radius":8,"circle-color":"#f03b20","circle-opacity":.8},filter:["==",["geometry-type"],"Point"]},ZG={type:"line",paint:{"line-color":"#f03b20","line-width":1.6,"line-dasharray":[6,3],"line-opacity":.8},filter:["==",["geometry-type"],"LineString"]};function QG({features:e}){return e!=null&&e.length?X0.createElement(Bo,{type:"geojson",data:{type:"FeatureCollection",features:e}},X0.createElement(Ti,eb({},qG)),X0.createElement(Ti,eb({},ZG)),X0.createElement(Ti,eb({},YG))):null}var KG=Cc;function JG(e){let{mapv:t}=Oa(),[a]=u2(Us[(e==null?void 0:e.mapStyle)||0].style),[o]=u2(e.defaultViewState||ql),[s,f]=u2(e.features||[]),p=()=>{if(!(s!=null&&s.length)||!t)return;let h=cu({type:"FeatureCollection",features:s});t.fitBounds(h,{padding:40,duration:1e3})};return $9(()=>{e.onFeaturesChange&&e.onFeaturesChange(s),p()},[s]),$9(()=>{e.isControlled&&JSON.stringify(s)!==JSON.stringify(e.features)&&f(e.features||[])},[e.features]),J0.createElement(fu,{id:"mapv",cursor:"default",initialViewState:o,mapboxAccessToken:e.mapboxAccessToken,style:{width:"100%",height:"100%"},mapStyle:a,onLoad:p},J0.createElement(KG,{position:"bottom-right",showZoom:!0,showCompass:!0}),J0.createElement(GG,{features:s,setFeatures:f,isControlled:e.isControlled,isMultiple:e.isMultiple}),J0.createElement(QG,{features:s}))}var Lne=e=>V9.createElement(wc,null,V9.createElement(JG,eb({},e)));import sm from"react";var RD=wa(MD(),1),{apply:Rne,autoprefix:One,create:Dne,cssomSheet:Pne,directive:Ane,expandGroups:Nne,hash:zne,mode:Ine,noprefix:Fne,setup:OD,silent:jne,strict:Une,theme:Bne,tw:We,voidSheet:Hne,warn:Vne}=RD.default;import yu,{useMemo as HK,useState as VK}from"react";import mP,{createContext as $K,useContext as WK,useEffect as gP,useMemo as GK,useState as Cl}from"react";var $Y={schemeGroups:{sequential:["BuGn","BuPu","GnBu","OrRd","PuBu","PuBuGn","PuRd","RdPu","YlGn","YlGnBu","YlOrBr","YlOrRd"],singlehue:["Blues","Greens","Greys","Oranges","Purples","Reds"],diverging:["BrBG","PiYG","PRGn","PuOr","RdBu","RdGy","RdYlBu","RdYlGn","Spectral"],qualitative:["Accent","Dark2","Paired","Pastel1","Pastel2","Set1","Set2","Set3"]},YlGn:{3:["#f7fcb9","#addd8e","#31a354"],4:["#ffffcc","#c2e699","#78c679","#238443"],5:["#ffffcc","#c2e699","#78c679","#31a354","#006837"],6:["#ffffcc","#d9f0a3","#addd8e","#78c679","#31a354","#006837"],7:["#ffffcc","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#005a32"],8:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#005a32"],9:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"]},YlGnBu:{3:["#edf8b1","#7fcdbb","#2c7fb8"],4:["#ffffcc","#a1dab4","#41b6c4","#225ea8"],5:["#ffffcc","#a1dab4","#41b6c4","#2c7fb8","#253494"],6:["#ffffcc","#c7e9b4","#7fcdbb","#41b6c4","#2c7fb8","#253494"],7:["#ffffcc","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#0c2c84"],8:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#0c2c84"],9:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"]},GnBu:{3:["#e0f3db","#a8ddb5","#43a2ca"],4:["#f0f9e8","#bae4bc","#7bccc4","#2b8cbe"],5:["#f0f9e8","#bae4bc","#7bccc4","#43a2ca","#0868ac"],6:["#f0f9e8","#ccebc5","#a8ddb5","#7bccc4","#43a2ca","#0868ac"],7:["#f0f9e8","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#08589e"],8:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#08589e"],9:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"]},BuGn:{3:["#e5f5f9","#99d8c9","#2ca25f"],4:["#edf8fb","#b2e2e2","#66c2a4","#238b45"],5:["#edf8fb","#b2e2e2","#66c2a4","#2ca25f","#006d2c"],6:["#edf8fb","#ccece6","#99d8c9","#66c2a4","#2ca25f","#006d2c"],7:["#edf8fb","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#005824"],8:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#005824"],9:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"]},PuBuGn:{3:["#ece2f0","#a6bddb","#1c9099"],4:["#f6eff7","#bdc9e1","#67a9cf","#02818a"],5:["#f6eff7","#bdc9e1","#67a9cf","#1c9099","#016c59"],6:["#f6eff7","#d0d1e6","#a6bddb","#67a9cf","#1c9099","#016c59"],7:["#f6eff7","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016450"],8:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016450"],9:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"]},PuBu:{3:["#ece7f2","#a6bddb","#2b8cbe"],4:["#f1eef6","#bdc9e1","#74a9cf","#0570b0"],5:["#f1eef6","#bdc9e1","#74a9cf","#2b8cbe","#045a8d"],6:["#f1eef6","#d0d1e6","#a6bddb","#74a9cf","#2b8cbe","#045a8d"],7:["#f1eef6","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#034e7b"],8:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#034e7b"],9:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"]},BuPu:{3:["#e0ecf4","#9ebcda","#8856a7"],4:["#edf8fb","#b3cde3","#8c96c6","#88419d"],5:["#edf8fb","#b3cde3","#8c96c6","#8856a7","#810f7c"],6:["#edf8fb","#bfd3e6","#9ebcda","#8c96c6","#8856a7","#810f7c"],7:["#edf8fb","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#6e016b"],8:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#6e016b"],9:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"]},RdPu:{3:["#fde0dd","#fa9fb5","#c51b8a"],4:["#feebe2","#fbb4b9","#f768a1","#ae017e"],5:["#feebe2","#fbb4b9","#f768a1","#c51b8a","#7a0177"],6:["#feebe2","#fcc5c0","#fa9fb5","#f768a1","#c51b8a","#7a0177"],7:["#feebe2","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177"],8:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177"],9:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"]},PuRd:{3:["#e7e1ef","#c994c7","#dd1c77"],4:["#f1eef6","#d7b5d8","#df65b0","#ce1256"],5:["#f1eef6","#d7b5d8","#df65b0","#dd1c77","#980043"],6:["#f1eef6","#d4b9da","#c994c7","#df65b0","#dd1c77","#980043"],7:["#f1eef6","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#91003f"],8:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#91003f"],9:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"]},OrRd:{3:["#fee8c8","#fdbb84","#e34a33"],4:["#fef0d9","#fdcc8a","#fc8d59","#d7301f"],5:["#fef0d9","#fdcc8a","#fc8d59","#e34a33","#b30000"],6:["#fef0d9","#fdd49e","#fdbb84","#fc8d59","#e34a33","#b30000"],7:["#fef0d9","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#990000"],8:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#990000"],9:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"]},YlOrRd:{3:["#ffeda0","#feb24c","#f03b20"],4:["#ffffb2","#fecc5c","#fd8d3c","#e31a1c"],5:["#ffffb2","#fecc5c","#fd8d3c","#f03b20","#bd0026"],6:["#ffffb2","#fed976","#feb24c","#fd8d3c","#f03b20","#bd0026"],7:["#ffffb2","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#b10026"],8:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#b10026"],9:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"]},YlOrBr:{3:["#fff7bc","#fec44f","#d95f0e"],4:["#ffffd4","#fed98e","#fe9929","#cc4c02"],5:["#ffffd4","#fed98e","#fe9929","#d95f0e","#993404"],6:["#ffffd4","#fee391","#fec44f","#fe9929","#d95f0e","#993404"],7:["#ffffd4","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#8c2d04"],8:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#8c2d04"],9:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"]},Purples:{3:["#efedf5","#bcbddc","#756bb1"],4:["#f2f0f7","#cbc9e2","#9e9ac8","#6a51a3"],5:["#f2f0f7","#cbc9e2","#9e9ac8","#756bb1","#54278f"],6:["#f2f0f7","#dadaeb","#bcbddc","#9e9ac8","#756bb1","#54278f"],7:["#f2f0f7","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#4a1486"],8:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#4a1486"],9:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"]},Blues:{3:["#deebf7","#9ecae1","#3182bd"],4:["#eff3ff","#bdd7e7","#6baed6","#2171b5"],5:["#eff3ff","#bdd7e7","#6baed6","#3182bd","#08519c"],6:["#eff3ff","#c6dbef","#9ecae1","#6baed6","#3182bd","#08519c"],7:["#eff3ff","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#084594"],8:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#084594"],9:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"]},Greens:{3:["#e5f5e0","#a1d99b","#31a354"],4:["#edf8e9","#bae4b3","#74c476","#238b45"],5:["#edf8e9","#bae4b3","#74c476","#31a354","#006d2c"],6:["#edf8e9","#c7e9c0","#a1d99b","#74c476","#31a354","#006d2c"],7:["#edf8e9","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#005a32"],8:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#005a32"],9:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"]},Oranges:{3:["#fee6ce","#fdae6b","#e6550d"],4:["#feedde","#fdbe85","#fd8d3c","#d94701"],5:["#feedde","#fdbe85","#fd8d3c","#e6550d","#a63603"],6:["#feedde","#fdd0a2","#fdae6b","#fd8d3c","#e6550d","#a63603"],7:["#feedde","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#8c2d04"],8:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#8c2d04"],9:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"]},Reds:{3:["#fee0d2","#fc9272","#de2d26"],4:["#fee5d9","#fcae91","#fb6a4a","#cb181d"],5:["#fee5d9","#fcae91","#fb6a4a","#de2d26","#a50f15"],6:["#fee5d9","#fcbba1","#fc9272","#fb6a4a","#de2d26","#a50f15"],7:["#fee5d9","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#99000d"],8:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#99000d"],9:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"]},Greys:{3:["#f0f0f0","#bdbdbd","#636363"],4:["#f7f7f7","#cccccc","#969696","#525252"],5:["#f7f7f7","#cccccc","#969696","#636363","#252525"],6:["#f7f7f7","#d9d9d9","#bdbdbd","#969696","#636363","#252525"],7:["#f7f7f7","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525"],8:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525"],9:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"]},PuOr:{3:["#f1a340","#f7f7f7","#998ec3"],4:["#e66101","#fdb863","#b2abd2","#5e3c99"],5:["#e66101","#fdb863","#f7f7f7","#b2abd2","#5e3c99"],6:["#b35806","#f1a340","#fee0b6","#d8daeb","#998ec3","#542788"],7:["#b35806","#f1a340","#fee0b6","#f7f7f7","#d8daeb","#998ec3","#542788"],8:["#b35806","#e08214","#fdb863","#fee0b6","#d8daeb","#b2abd2","#8073ac","#542788"],9:["#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788"],10:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],11:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"]},BrBG:{3:["#d8b365","#f5f5f5","#5ab4ac"],4:["#a6611a","#dfc27d","#80cdc1","#018571"],5:["#a6611a","#dfc27d","#f5f5f5","#80cdc1","#018571"],6:["#8c510a","#d8b365","#f6e8c3","#c7eae5","#5ab4ac","#01665e"],7:["#8c510a","#d8b365","#f6e8c3","#f5f5f5","#c7eae5","#5ab4ac","#01665e"],8:["#8c510a","#bf812d","#dfc27d","#f6e8c3","#c7eae5","#80cdc1","#35978f","#01665e"],9:["#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e"],10:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],11:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"]},PRGn:{3:["#af8dc3","#f7f7f7","#7fbf7b"],4:["#7b3294","#c2a5cf","#a6dba0","#008837"],5:["#7b3294","#c2a5cf","#f7f7f7","#a6dba0","#008837"],6:["#762a83","#af8dc3","#e7d4e8","#d9f0d3","#7fbf7b","#1b7837"],7:["#762a83","#af8dc3","#e7d4e8","#f7f7f7","#d9f0d3","#7fbf7b","#1b7837"],8:["#762a83","#9970ab","#c2a5cf","#e7d4e8","#d9f0d3","#a6dba0","#5aae61","#1b7837"],9:["#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837"],10:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],11:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"]},PiYG:{3:["#e9a3c9","#f7f7f7","#a1d76a"],4:["#d01c8b","#f1b6da","#b8e186","#4dac26"],5:["#d01c8b","#f1b6da","#f7f7f7","#b8e186","#4dac26"],6:["#c51b7d","#e9a3c9","#fde0ef","#e6f5d0","#a1d76a","#4d9221"],7:["#c51b7d","#e9a3c9","#fde0ef","#f7f7f7","#e6f5d0","#a1d76a","#4d9221"],8:["#c51b7d","#de77ae","#f1b6da","#fde0ef","#e6f5d0","#b8e186","#7fbc41","#4d9221"],9:["#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221"],10:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],11:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"]},RdBu:{3:["#ef8a62","#f7f7f7","#67a9cf"],4:["#ca0020","#f4a582","#92c5de","#0571b0"],5:["#ca0020","#f4a582","#f7f7f7","#92c5de","#0571b0"],6:["#b2182b","#ef8a62","#fddbc7","#d1e5f0","#67a9cf","#2166ac"],7:["#b2182b","#ef8a62","#fddbc7","#f7f7f7","#d1e5f0","#67a9cf","#2166ac"],8:["#b2182b","#d6604d","#f4a582","#fddbc7","#d1e5f0","#92c5de","#4393c3","#2166ac"],9:["#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac"],10:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],11:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"]},RdGy:{3:["#ef8a62","#ffffff","#999999"],4:["#ca0020","#f4a582","#bababa","#404040"],5:["#ca0020","#f4a582","#ffffff","#bababa","#404040"],6:["#b2182b","#ef8a62","#fddbc7","#e0e0e0","#999999","#4d4d4d"],7:["#b2182b","#ef8a62","#fddbc7","#ffffff","#e0e0e0","#999999","#4d4d4d"],8:["#b2182b","#d6604d","#f4a582","#fddbc7","#e0e0e0","#bababa","#878787","#4d4d4d"],9:["#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d"],10:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],11:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"]},RdYlBu:{3:["#fc8d59","#ffffbf","#91bfdb"],4:["#d7191c","#fdae61","#abd9e9","#2c7bb6"],5:["#d7191c","#fdae61","#ffffbf","#abd9e9","#2c7bb6"],6:["#d73027","#fc8d59","#fee090","#e0f3f8","#91bfdb","#4575b4"],7:["#d73027","#fc8d59","#fee090","#ffffbf","#e0f3f8","#91bfdb","#4575b4"],8:["#d73027","#f46d43","#fdae61","#fee090","#e0f3f8","#abd9e9","#74add1","#4575b4"],9:["#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4"],10:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],11:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"]},Spectral:{3:["#fc8d59","#ffffbf","#99d594"],4:["#d7191c","#fdae61","#abdda4","#2b83ba"],5:["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],6:["#d53e4f","#fc8d59","#fee08b","#e6f598","#99d594","#3288bd"],7:["#d53e4f","#fc8d59","#fee08b","#ffffbf","#e6f598","#99d594","#3288bd"],8:["#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd"],9:["#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd"],10:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],11:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]},RdYlGn:{3:["#fc8d59","#ffffbf","#91cf60"],4:["#d7191c","#fdae61","#a6d96a","#1a9641"],5:["#d7191c","#fdae61","#ffffbf","#a6d96a","#1a9641"],6:["#d73027","#fc8d59","#fee08b","#d9ef8b","#91cf60","#1a9850"],7:["#d73027","#fc8d59","#fee08b","#ffffbf","#d9ef8b","#91cf60","#1a9850"],8:["#d73027","#f46d43","#fdae61","#fee08b","#d9ef8b","#a6d96a","#66bd63","#1a9850"],9:["#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850"],10:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],11:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"]},Accent:{3:["#7fc97f","#beaed4","#fdc086"],4:["#7fc97f","#beaed4","#fdc086","#ffff99"],5:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0"],6:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f"],7:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17"],8:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"]},Dark2:{3:["#1b9e77","#d95f02","#7570b3"],4:["#1b9e77","#d95f02","#7570b3","#e7298a"],5:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e"],6:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02"],7:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d"],8:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"]},Paired:{3:["#a6cee3","#1f78b4","#b2df8a"],4:["#a6cee3","#1f78b4","#b2df8a","#33a02c"],5:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99"],6:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c"],7:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f"],8:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00"],9:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6"],10:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a"],11:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99"],12:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"]},Pastel1:{3:["#fbb4ae","#b3cde3","#ccebc5"],4:["#fbb4ae","#b3cde3","#ccebc5","#decbe4"],5:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6"],6:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc"],7:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd"],8:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec"],9:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},Pastel2:{3:["#b3e2cd","#fdcdac","#cbd5e8"],4:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4"],5:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9"],6:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae"],7:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc"],8:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"]},Set1:{3:["#e41a1c","#377eb8","#4daf4a"],4:["#e41a1c","#377eb8","#4daf4a","#984ea3"],5:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00"],6:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33"],7:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628"],8:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf"],9:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"]},Set2:{3:["#66c2a5","#fc8d62","#8da0cb"],4:["#66c2a5","#fc8d62","#8da0cb","#e78ac3"],5:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854"],6:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f"],7:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494"],8:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"]},Set3:{3:["#8dd3c7","#ffffb3","#bebada"],4:["#8dd3c7","#ffffb3","#bebada","#fb8072"],5:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3"],6:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462"],7:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69"],8:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5"],9:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9"],10:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd"],11:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5"],12:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"]}},DD=$Y;var vu=function e(t){function a(s,f,p){var h,g={};if(Array.isArray(s))return s.concat(f);for(h in s)g[p?h.toLowerCase():h]=s[h];for(h in f){var y=p?h.toLowerCase():h,w=f[h];g[y]=y in g&&typeof w=="object"?a(g[y],w,y=="headers"):w}return g}function o(s,f,p,h,g){var y=typeof s!="string"?(f=s).url:s,w={config:f},C=a(t,f),M={};h=h||C.data,(C.transformRequest||[]).map(function(_){h=_(h,C.headers)||h}),C.auth&&(M.authorization=C.auth),h&&typeof h=="object"&&typeof h.append!="function"&&typeof h.text!="function"&&(h=JSON.stringify(h),M["content-type"]="application/json");try{M[C.xsrfHeaderName]=decodeURIComponent(document.cookie.match(RegExp("(^|; )"+C.xsrfCookieName+"=([^;]*)"))[2])}catch{}return C.baseURL&&(y=y.replace(/^(?!.*\/\/)\/?/,C.baseURL+"/")),C.params&&(y+=(~y.indexOf("?")?"&":"?")+(C.paramsSerializer?C.paramsSerializer(C.params):new URLSearchParams(C.params))),(C.fetch||fetch)(y,{method:(p||C.method||"get").toUpperCase(),body:h,headers:a(C.headers,M,!0),credentials:C.withCredentials?"include":g}).then(function(_){for(var A in _)typeof _[A]!="function"&&(w[A]=_[A]);return C.responseType=="stream"?(w.data=_.body,w):_[C.responseType||"text"]().then(function(I){w.data=I,w.data=JSON.parse(I)}).catch(Object).then(function(){return(C.validateStatus?C.validateStatus(_.status):_.ok)?w:Promise.reject(w)})})}return t=t||{},o.request=o,o.get=function(s,f){return o(s,f,"get")},o.delete=function(s,f){return o(s,f,"delete")},o.head=function(s,f){return o(s,f,"head")},o.options=function(s,f){return o(s,f,"options")},o.post=function(s,f,p){return o(s,p,"post",f)},o.put=function(s,f,p){return o(s,p,"put",f)},o.patch=function(s,f,p){return o(s,p,"patch",f)},o.all=Promise.all.bind(Promise),o.spread=function(s){return s.apply.bind(s,s)},o.CancelToken=typeof AbortController=="function"?AbortController:Object,o.defaults=t,o.create=e,o}();var RT=wa(ID()),Jb=wa(FD());function ui(e){for(var t=arguments.length,a=Array(t>1?t-1:0),o=1;o<t;o++)a[o-1]=arguments[o];if(process.env.NODE_ENV!=="production"){var s=tq[e],f=s?typeof s=="function"?s.apply(null,a):s:"unknown error nr: "+e;throw Error("[Immer] "+f)}throw Error("[Immer] minified error nr: "+e+(a.length?" "+a.map(function(p){return"'"+p+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ad(e){return!!e&&!!e[Pa]}function Oc(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var a=Object.getPrototypeOf(t);if(a===null)return!0;var o=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===nq}(e)||Array.isArray(e)||!!e[GD]||!!e.constructor[GD]||F2(e)||j2(e))}function Kv(e,t,a){a===void 0&&(a=!1),zd(e)===0?(a?Object.keys:$2)(e).forEach(function(o){a&&typeof o=="symbol"||t(o,e[o],e)}):e.forEach(function(o,s){return t(s,o,e)})}function zd(e){var t=e[Pa];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:F2(e)?2:j2(e)?3:0}function P2(e,t){return zd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function qY(e,t){return zd(e)===2?e.get(t):e[t]}function YD(e,t,a){var o=zd(e);o===2?e.set(t,a):o===3?(e.delete(t),e.add(a)):e[t]=a}function ZY(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function F2(e){return XY&&e instanceof Map}function j2(e){return eq&&e instanceof Set}function Rc(e){return e.o||e.t}function U2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=rq(e);delete t[Pa];for(var a=$2(t),o=0;o<a.length;o++){var s=a[o],f=t[s];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(t[s]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),t)}function B2(e,t){return t===void 0&&(t=!1),H2(e)||Ad(e)||!Oc(e)||(zd(e)>1&&(e.set=e.add=e.clear=e.delete=QY),Object.freeze(e),t&&Kv(e,function(a,o){return B2(o,!0)},!0)),e}function QY(){ui(2)}function H2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function wl(e){var t=iq[e];return t||ui(18,e),t}function jD(){return process.env.NODE_ENV==="production"||Nd||ui(0),Nd}function M2(e,t){t&&(wl("Patches"),e.u=[],e.s=[],e.v=t)}function gb(e){A2(e),e.p.forEach(KY),e.p=null}function A2(e){e===Nd&&(Nd=e.l)}function UD(e){return Nd={p:[],l:Nd,h:e,m:!0,_:0}}function KY(e){var t=e[Pa];t.i===0||t.i===1?t.j():t.O=!0}function R2(e,t){t._=t.p.length;var a=t.p[0],o=e!==void 0&&e!==a;return t.h.g||wl("ES5").S(t,e,o),o?(a[Pa].P&&(gb(t),ui(4)),Oc(e)&&(e=yb(t,e),t.l||bb(t,e)),t.u&&wl("Patches").M(a[Pa].t,e,t.u,t.s)):e=yb(t,a,[]),gb(t),t.u&&t.v(t.u,t.s),e!==qD?e:void 0}function yb(e,t,a){if(H2(t))return t;var o=t[Pa];if(!o)return Kv(t,function(f,p){return BD(e,o,t,f,p,a)},!0),t;if(o.A!==e)return t;if(!o.P)return bb(e,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var s=o.i===4||o.i===5?o.o=U2(o.k):o.o;Kv(o.i===3?new Set(s):s,function(f,p){return BD(e,o,s,f,p,a)}),bb(e,s,!1),a&&e.u&&wl("Patches").R(o,a,e.u,e.s)}return o.o}function BD(e,t,a,o,s,f){if(process.env.NODE_ENV!=="production"&&s===a&&ui(5),Ad(s)){var p=yb(e,s,f&&t&&t.i!==3&&!P2(t.D,o)?f.concat(o):void 0);if(YD(a,o,p),!Ad(p))return;e.m=!1}if(Oc(s)&&!H2(s)){if(!e.h.F&&e._<1)return;yb(e,s),t&&t.A.l||bb(e,s)}}function bb(e,t,a){a===void 0&&(a=!1),e.h.F&&e.m&&B2(t,a)}function O2(e,t){var a=e[Pa];return(a?Rc(a):e)[t]}function HD(e,t){if(t in e)for(var a=Object.getPrototypeOf(e);a;){var o=Object.getOwnPropertyDescriptor(a,t);if(o)return o;a=Object.getPrototypeOf(a)}}function N2(e){e.P||(e.P=!0,e.l&&N2(e.l))}function D2(e){e.o||(e.o=U2(e.t))}function z2(e,t,a){var o=F2(t)?wl("MapSet").N(t,a):j2(t)?wl("MapSet").T(t,a):e.g?function(s,f){var p=Array.isArray(s),h={i:p?1:0,A:f?f.A:jD(),P:!1,I:!1,D:{},l:f,t:s,k:null,o:null,j:null,C:!1},g=h,y=I2;p&&(g=[h],y=Qv);var w=Proxy.revocable(g,y),C=w.revoke,M=w.proxy;return h.k=M,h.j=C,M}(t,a):wl("ES5").J(t,a);return(a?a.A:jD()).p.push(o),o}function JY(e){return Ad(e)||ui(22,e),function t(a){if(!Oc(a))return a;var o,s=a[Pa],f=zd(a);if(s){if(!s.P&&(s.i<4||!wl("ES5").K(s)))return s.t;s.I=!0,o=VD(a,f),s.I=!1}else o=VD(a,f);return Kv(o,function(p,h){s&&qY(s.t,p)===h||YD(o,p,t(h))}),f===3?new Set(o):o}(e)}function VD(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return U2(e)}var $D,Nd,V2=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",XY=typeof Map<"u",eq=typeof Set<"u",WD=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",qD=V2?Symbol.for("immer-nothing"):(($D={})["immer-nothing"]=!0,$D),GD=V2?Symbol.for("immer-draftable"):"__$immer_draftable",Pa=V2?Symbol.for("immer-state"):"__$immer_state";var tq={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},nq=""+Object.prototype.constructor,$2=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,rq=Object.getOwnPropertyDescriptors||function(e){var t={};return $2(e).forEach(function(a){t[a]=Object.getOwnPropertyDescriptor(e,a)}),t},iq={},I2={get:function(e,t){if(t===Pa)return e;var a=Rc(e);if(!P2(a,t))return function(s,f,p){var h,g=HD(f,p);return g?"value"in g?g.value:(h=g.get)===null||h===void 0?void 0:h.call(s.k):void 0}(e,a,t);var o=a[t];return e.I||!Oc(o)?o:o===O2(e.t,t)?(D2(e),e.o[t]=z2(e.A.h,o,e)):o},has:function(e,t){return t in Rc(e)},ownKeys:function(e){return Reflect.ownKeys(Rc(e))},set:function(e,t,a){var o=HD(Rc(e),t);if(o!=null&&o.set)return o.set.call(e.k,a),!0;if(!e.P){var s=O2(Rc(e),t),f=s==null?void 0:s[Pa];if(f&&f.t===a)return e.o[t]=a,e.D[t]=!1,!0;if(ZY(a,s)&&(a!==void 0||P2(e.t,t)))return!0;D2(e),N2(e)}return e.o[t]===a&&typeof a!="number"&&(a!==void 0||t in e.o)||(e.o[t]=a,e.D[t]=!0,!0)},deleteProperty:function(e,t){return O2(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,D2(e),N2(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var a=Rc(e),o=Reflect.getOwnPropertyDescriptor(a,t);return o&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:o.enumerable,value:a[t]}},defineProperty:function(){ui(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ui(12)}},Qv={};Kv(I2,function(e,t){Qv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Qv.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ui(13),Qv.set.call(this,e,t,void 0)},Qv.set=function(e,t,a){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ui(14),I2.set.call(this,e[0],t,a,e[0])};var aq=function(){function e(a){var o=this;this.g=WD,this.F=!0,this.produce=function(s,f,p){if(typeof s=="function"&&typeof f!="function"){var h=f;f=s;var g=o;return function(I){var $=this;I===void 0&&(I=h);for(var R=arguments.length,D=Array(R>1?R-1:0),E=1;E<R;E++)D[E-1]=arguments[E];return g.produce(I,function(k){var F;return(F=f).call.apply(F,[$,k].concat(D))})}}var y;if(typeof f!="function"&&ui(6),p!==void 0&&typeof p!="function"&&ui(7),Oc(s)){var w=UD(o),C=z2(o,s,void 0),M=!0;try{y=f(C),M=!1}finally{M?gb(w):A2(w)}return typeof Promise<"u"&&y instanceof Promise?y.then(function(I){return M2(w,p),R2(I,w)},function(I){throw gb(w),I}):(M2(w,p),R2(y,w))}if(!s||typeof s!="object"){if((y=f(s))===void 0&&(y=s),y===qD&&(y=void 0),o.F&&B2(y,!0),p){var _=[],A=[];wl("Patches").M(s,y,_,A),p(_,A)}return y}ui(21,s)},this.produceWithPatches=function(s,f){if(typeof s=="function")return function(y){for(var w=arguments.length,C=Array(w>1?w-1:0),M=1;M<w;M++)C[M-1]=arguments[M];return o.produceWithPatches(y,function(_){return s.apply(void 0,[_].concat(C))})};var p,h,g=o.produce(s,f,function(y,w){p=y,h=w});return typeof Promise<"u"&&g instanceof Promise?g.then(function(y){return[y,p,h]}):[g,p,h]},typeof(a==null?void 0:a.useProxies)=="boolean"&&this.setUseProxies(a.useProxies),typeof(a==null?void 0:a.autoFreeze)=="boolean"&&this.setAutoFreeze(a.autoFreeze)}var t=e.prototype;return t.createDraft=function(a){Oc(a)||ui(8),Ad(a)&&(a=JY(a));var o=UD(this),s=z2(this,a,void 0);return s[Pa].C=!0,A2(o),s},t.finishDraft=function(a,o){var s=a&&a[Pa];process.env.NODE_ENV!=="production"&&(s&&s.C||ui(9),s.I&&ui(10));var f=s.A;return M2(f,o),R2(void 0,f)},t.setAutoFreeze=function(a){this.F=a},t.setUseProxies=function(a){a&&!WD&&ui(20),this.g=a},t.applyPatches=function(a,o){var s;for(s=o.length-1;s>=0;s--){var f=o[s];if(f.path.length===0&&f.op==="replace"){a=f.value;break}}s>-1&&(o=o.slice(s+1));var p=wl("Patches").$;return Ad(a)?p(a,o):this.produce(a,function(h){return p(h,o)})},e}(),Aa=new aq,oq=Aa.produce,Kne=Aa.produceWithPatches.bind(Aa),Jne=Aa.setAutoFreeze.bind(Aa),Xne=Aa.setUseProxies.bind(Aa),ere=Aa.applyPatches.bind(Aa),tre=Aa.createDraft.bind(Aa),nre=Aa.finishDraft.bind(Aa),ZD=oq;import yP,{useEffect as dJ,useState as pJ}from"react";import Hc from"react";import mt from"react";import lo from"react";import QD,{createContext as KD,useState as uq,useContext as Sb,useMemo as cq,isValidElement as lre,cloneElement as sre}from"react";import{useRef as lq}from"react";function sq(e){var t=lq();return t.current||(t.current={v:e()}),t.current.v}var Jv=sq;var W2=KD(),G2=KD(),JD=({state:e,children:t})=>{let a=uq(0),o=Jv(()=>({tabs:0,panels:0})),s=e||a;return QD.createElement(G2.Provider,{value:o},QD.createElement(W2.Provider,{value:s},t))},XD=()=>{let[e,t]=Sb(W2),a=Sb(G2),o=Jv(()=>{let p=a.tabs;return a.tabs+=1,p}),s=Jv(()=>()=>t(o));return cq(()=>({isActive:e===o,onClick:s}),[e,s,o])},e8=()=>{let[e]=Sb(W2),t=Sb(G2);return Jv(()=>{let o=t.panels;return t.panels+=1,o})===e};function t8(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(a=t8(e[t]))&&(o&&(o+=" "),o+=a);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Id(){for(var e=0,t,a,o="";e<arguments.length;)(t=arguments[e++])&&(a=t8(t))&&(o&&(o+=" "),o+=a);return o}import Xb from"react";import cs from"react";import SP from"react";import bu,{useEffect as DJ,useState as xP}from"react";import EP,{useEffect as zJ,useState as IJ}from"react";import ci from"react";import LT from"react";import Su,{useMemo as FJ}from"react";import dr from"react";function Dc(){return Dc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},Dc.apply(this,arguments)}function fq(e,t){if(e==null)return{};var a={},o=Object.keys(e),s,f;for(f=0;f<o.length;f++)s=o[f],!(t.indexOf(s)>=0)&&(a[s]=e[s]);return a}var dq=["bottom","height","left","right","top","width"],pq=function(t,a){return t===void 0&&(t={}),a===void 0&&(a={}),dq.some(function(o){return t[o]!==a[o]})},mu=new Map,n8,hq=function e(){var t=[];mu.forEach(function(a,o){var s=o.getBoundingClientRect();pq(s,a.rect)&&(a.rect=s,t.push(a))}),t.forEach(function(a){a.callbacks.forEach(function(o){return o(a.rect)})}),n8=window.requestAnimationFrame(e)};function vq(e,t){return{observe:function(){var o=mu.size===0;mu.has(e)?mu.get(e).callbacks.push(t):mu.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),o&&hq()},unobserve:function(){var o=mu.get(e);if(o){var s=o.callbacks.indexOf(t);s>=0&&o.callbacks.splice(s,1),o.callbacks.length||mu.delete(e),mu.size||cancelAnimationFrame(n8)}}}}var xb=typeof window<"u"?dr.useLayoutEffect:dr.useEffect;function mq(e,t){t===void 0&&(t={width:0,height:0});var a=dr.useState(e.current),o=a[0],s=a[1],f=dr.useReducer(gq,t),p=f[0],h=f[1],g=dr.useRef(!1);return xb(function(){e.current!==o&&s(e.current)}),xb(function(){if(o&&!g.current){g.current=!0;var y=o.getBoundingClientRect();h({rect:y})}},[o]),dr.useEffect(function(){if(!!o){var y=vq(o,function(w){h({rect:w})});return y.observe(),function(){y.unobserve()}}},[o]),p}function gq(e,t){var a=t.rect;return e.height!==a.height||e.width!==a.width?a:e}var yq=function(){return 50},bq=function(t){return t},Sq=function(t,a){var o=a?"offsetWidth":"offsetHeight";return t[o]},xq=function(t){for(var a=Math.max(t.start-t.overscan,0),o=Math.min(t.end+t.overscan,t.size-1),s=[],f=a;f<=o;f++)s.push(f);return s};function r8(e){var t,a=e.size,o=a===void 0?0:a,s=e.estimateSize,f=s===void 0?yq:s,p=e.overscan,h=p===void 0?1:p,g=e.paddingStart,y=g===void 0?0:g,w=e.paddingEnd,C=w===void 0?0:w,M=e.parentRef,_=e.horizontal,A=e.scrollToFn,I=e.useObserver,$=e.initialRect,R=e.onScrollElement,D=e.scrollOffsetFn,E=e.keyExtractor,k=E===void 0?bq:E,F=e.measureSize,U=F===void 0?Sq:F,N=e.rangeExtractor,W=N===void 0?xq:N,K=_?"width":"height",G=_?"scrollLeft":"scrollTop",re=dr.useRef({scrollOffset:0,measurements:[]}),Le=dr.useState(0),Y=Le[0],ue=Le[1];re.current.scrollOffset=Y;var xe=I||mq,Pe=xe(M,$),ke=Pe[K];re.current.outerSize=ke;var V=dr.useCallback(function(Dt){M.current&&(M.current[G]=Dt)},[M,G]),Q=A||V;A=dr.useCallback(function(Dt){Q(Dt,V)},[V,Q]);var le=dr.useState({}),ge=le[0],ve=le[1],de=dr.useCallback(function(){return ve({})},[]),ie=dr.useRef([]),Oe=dr.useMemo(function(){var Dt=ie.current.length>0?Math.min.apply(Math,ie.current):0;ie.current=[];for(var qt=re.current.measurements.slice(0,Dt),Wt=Dt;Wt<o;Wt++){var un=k(Wt),jt=ge[un],In=qt[Wt-1]?qt[Wt-1].end:y,Sn=typeof jt=="number"?jt:f(Wt),hn=In+Sn;qt[Wt]={index:Wt,start:In,size:Sn,end:hn,key:un}}return qt},[f,ge,y,o,k]),je=(((t=Oe[o-1])==null?void 0:t.end)||y)+C;re.current.measurements=Oe,re.current.totalSize=je;var we=R?R.current:M.current,ut=dr.useRef(D);ut.current=D,xb(function(){if(!we){ue(0);return}var Dt=function(Wt){var un=ut.current?ut.current(Wt):we[G];ue(un)};return Dt(),we.addEventListener("scroll",Dt,{capture:!1,passive:!0}),function(){we.removeEventListener("scroll",Dt)}},[we,G]);var Je=wq(re.current),Ve=Je.start,_t=Je.end,Ae=dr.useMemo(function(){return W({start:Ve,end:_t,overscan:h,size:Oe.length})},[Ve,_t,h,Oe.length,W]),Lt=dr.useRef(U);Lt.current=U;var tt=dr.useMemo(function(){for(var Dt=[],qt=function(In,Sn){var hn=Ae[In],vn=Oe[hn],Pt=Dc(Dc({},vn),{},{measureRef:function(kn){if(kn){var Ne=Lt.current(kn,_);if(Ne!==Pt.size){var nt=re.current.scrollOffset;Pt.start<nt&&V(nt+(Ne-Pt.size)),ie.current.push(hn),ve(function(Et){var pt;return Dc(Dc({},Et),{},(pt={},pt[Pt.key]=Ne,pt))})}}}});Dt.push(Pt)},Wt=0,un=Ae.length;Wt<un;Wt++)qt(Wt);return Dt},[Ae,V,_,Oe]),fn=dr.useRef(!1);xb(function(){fn.current&&ve({}),fn.current=!0},[f]);var dn=dr.useCallback(function(Dt,qt){var Wt=qt===void 0?{}:qt,un=Wt.align,jt=un===void 0?"start":un,In=re.current,Sn=In.scrollOffset,hn=In.outerSize;jt==="auto"&&(Dt<=Sn?jt="start":Dt>=Sn+hn?jt="end":jt="start"),jt==="start"?A(Dt):jt==="end"?A(Dt-hn):jt==="center"&&A(Dt-hn/2)},[A]),er=dr.useCallback(function(Dt,qt){var Wt=qt===void 0?{}:qt,un=Wt.align,jt=un===void 0?"auto":un,In=fq(Wt,["align"]),Sn=re.current,hn=Sn.measurements,vn=Sn.scrollOffset,Pt=Sn.outerSize,_n=hn[Math.max(0,Math.min(Dt,o-1))];if(!!_n){if(jt==="auto")if(_n.end>=vn+Pt)jt="end";else if(_n.start<=vn)jt="start";else return;var kn=jt==="center"?_n.start+_n.size/2:jt==="end"?_n.end:_n.start;dn(kn,Dc({align:jt},In))}},[dn,o]),pn=dr.useCallback(function(){for(var Dt=arguments.length,qt=new Array(Dt),Wt=0;Wt<Dt;Wt++)qt[Wt]=arguments[Wt];er.apply(void 0,qt),requestAnimationFrame(function(){er.apply(void 0,qt)})},[er]);return{virtualItems:tt,totalSize:je,scrollToOffset:dn,scrollToIndex:pn,measure:de}}var Eq=function(t,a,o,s){for(;t<=a;){var f=(t+a)/2|0,p=o(f);if(p<s)t=f+1;else if(p>s)a=f-1;else return f}return t>0?t-1:0};function wq(e){for(var t=e.measurements,a=e.outerSize,o=e.scrollOffset,s=t.length-1,f=function(y){return t[y].start},p=Eq(0,s,f,o),h=p;h<s&&t[h].end<o+a;)h++;return{start:p,end:h}}import{createElement as Cq,PureComponent as Lq}from"react";var Tq=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},_q=function(){function e(t,a){for(var o=0;o<a.length;o++){var s=a[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(t,a,o){return a&&e(t.prototype,a),o&&e(t,o),t}}(),kq=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},Mq=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},i8=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Rq=function(){function e(t,a){var o=[],s=!0,f=!1,p=void 0;try{for(var h=t[Symbol.iterator](),g;!(s=(g=h.next()).done)&&(o.push(g.value),!(a&&o.length===a));s=!0);}catch(y){f=!0,p=y}finally{try{!s&&h.return&&h.return()}finally{if(f)throw p}}return o}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ao=void 0;typeof window<"u"?ao=window:typeof self<"u"?ao=self:ao=global;var Z2=null,Q2=null,a8=20,Y2=ao.clearTimeout,o8=ao.setTimeout,q2=ao.cancelAnimationFrame||ao.mozCancelAnimationFrame||ao.webkitCancelAnimationFrame,l8=ao.requestAnimationFrame||ao.mozRequestAnimationFrame||ao.webkitRequestAnimationFrame;q2==null||l8==null?(Z2=Y2,Q2=function(t){return o8(t,a8)}):(Z2=function(t){var a=Rq(t,2),o=a[0],s=a[1];q2(o),Y2(s)},Q2=function(t){var a=l8(function(){Y2(o),t()}),o=o8(function(){q2(a),t()},a8);return[a,o]});function Oq(e){var t=void 0,a=void 0,o=void 0,s=void 0,f=void 0,p=void 0,h=void 0,g=typeof document<"u"&&document.attachEvent;if(!g){p=function(k){var F=k.__resizeTriggers__,U=F.firstElementChild,N=F.lastElementChild,W=U.firstElementChild;N.scrollLeft=N.scrollWidth,N.scrollTop=N.scrollHeight,W.style.width=U.offsetWidth+1+"px",W.style.height=U.offsetHeight+1+"px",U.scrollLeft=U.scrollWidth,U.scrollTop=U.scrollHeight},f=function(k){return k.offsetWidth!==k.__resizeLast__.width||k.offsetHeight!==k.__resizeLast__.height},h=function(k){if(!(k.target.className&&typeof k.target.className.indexOf=="function"&&k.target.className.indexOf("contract-trigger")<0&&k.target.className.indexOf("expand-trigger")<0)){var F=this;p(this),this.__resizeRAF__&&Z2(this.__resizeRAF__),this.__resizeRAF__=Q2(function(){f(F)&&(F.__resizeLast__.width=F.offsetWidth,F.__resizeLast__.height=F.offsetHeight,F.__resizeListeners__.forEach(function(W){W.call(F,k)}))})}};var y=!1,w="";o="animationstart";var C="Webkit Moz O ms".split(" "),M="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),_="";{var A=document.createElement("fakeelement");if(A.style.animationName!==void 0&&(y=!0),y===!1){for(var I=0;I<C.length;I++)if(A.style[C[I]+"AnimationName"]!==void 0){_=C[I],w="-"+_.toLowerCase()+"-",o=M[I],y=!0;break}}}a="resizeanim",t="@"+w+"keyframes "+a+" { from { opacity: 0; } to { opacity: 0; } } ",s=w+"animation: 1ms "+a+"; "}var $=function(k){if(!k.getElementById("detectElementResize")){var F=(t||"")+".resize-triggers { "+(s||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',U=k.head||k.getElementsByTagName("head")[0],N=k.createElement("style");N.id="detectElementResize",N.type="text/css",e!=null&&N.setAttribute("nonce",e),N.styleSheet?N.styleSheet.cssText=F:N.appendChild(k.createTextNode(F)),U.appendChild(N)}},R=function(k,F){if(g)k.attachEvent("onresize",F);else{if(!k.__resizeTriggers__){var U=k.ownerDocument,N=ao.getComputedStyle(k);N&&N.position==="static"&&(k.style.position="relative"),$(U),k.__resizeLast__={},k.__resizeListeners__=[],(k.__resizeTriggers__=U.createElement("div")).className="resize-triggers";var W=U.createElement("div");W.className="expand-trigger",W.appendChild(U.createElement("div"));var K=U.createElement("div");K.className="contract-trigger",k.__resizeTriggers__.appendChild(W),k.__resizeTriggers__.appendChild(K),k.appendChild(k.__resizeTriggers__),p(k),k.addEventListener("scroll",h,!0),o&&(k.__resizeTriggers__.__animationListener__=function(re){re.animationName===a&&p(k)},k.__resizeTriggers__.addEventListener(o,k.__resizeTriggers__.__animationListener__))}k.__resizeListeners__.push(F)}},D=function(k,F){if(g)k.detachEvent("onresize",F);else if(k.__resizeListeners__.splice(k.__resizeListeners__.indexOf(F),1),!k.__resizeListeners__.length){k.removeEventListener("scroll",h,!0),k.__resizeTriggers__.__animationListener__&&(k.__resizeTriggers__.removeEventListener(o,k.__resizeTriggers__.__animationListener__),k.__resizeTriggers__.__animationListener__=null);try{k.__resizeTriggers__=!k.removeChild(k.__resizeTriggers__)}catch{}}};return{addResizeListener:R,removeResizeListener:D}}var s8=function(e){Mq(t,e);function t(){var a,o,s,f;Tq(this,t);for(var p=arguments.length,h=Array(p),g=0;g<p;g++)h[g]=arguments[g];return f=(o=(s=i8(this,(a=t.__proto__||Object.getPrototypeOf(t)).call.apply(a,[this].concat(h))),s),s.state={height:s.props.defaultHeight||0,width:s.props.defaultWidth||0},s._onResize=function(){var y=s.props,w=y.disableHeight,C=y.disableWidth,M=y.onResize;if(s._parentNode){var _=s._parentNode.offsetHeight||0,A=s._parentNode.offsetWidth||0,I=window.getComputedStyle(s._parentNode)||{},$=parseInt(I.paddingLeft,10)||0,R=parseInt(I.paddingRight,10)||0,D=parseInt(I.paddingTop,10)||0,E=parseInt(I.paddingBottom,10)||0,k=_-D-E,F=A-$-R;(!w&&s.state.height!==k||!C&&s.state.width!==F)&&(s.setState({height:_-D-E,width:A-$-R}),M({height:_,width:A}))}},s._setRef=function(y){s._autoSizer=y},o),i8(s,f)}return _q(t,[{key:"componentDidMount",value:function(){var o=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=Oq(o),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var o=this.props,s=o.children,f=o.className,p=o.disableHeight,h=o.disableWidth,g=o.style,y=this.state,w=y.height,C=y.width,M={overflow:"visible"},_={},A=!1;return p||(w===0&&(A=!0),M.height=0,_.height=w),h||(C===0&&(A=!0),M.width=0,_.width=C),Cq("div",{className:f,ref:this._setRef,style:kq({},M,g)},!A&&s(_))}}]),t}(Lq);s8.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var u8=s8;import Xn,{useMemo as jJ,useState as wP}from"react";function Pc(){return Pc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},Pc.apply(this,arguments)}function K2(e){if(Array.isArray(e))return e}function J2(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var o=[],s=!0,f=!1,p,h;try{for(a=a.call(e);!(s=(p=a.next()).done)&&(o.push(p.value),!(t&&o.length===t));s=!0);}catch(g){f=!0,h=g}finally{try{!s&&a.return!=null&&a.return()}finally{if(f)throw h}}return o}}function Fd(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,o=new Array(t);a<t;a++)o[a]=e[a];return o}function Xv(e,t){if(!!e){if(typeof e=="string")return Fd(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Fd(e,t)}}function X2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
152
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eb(e,t){return K2(e)||J2(e,t)||Xv(e,t)||X2()}function sn(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function em(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&o.push.apply(o,Object.getOwnPropertySymbols(a).filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),o.forEach(function(s){sn(e,s,a[s])})}return e}function Ac(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c8(e,t){for(var a=0;a<t.length;a++){var o=t[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Nc(e,t,a){return t&&c8(e.prototype,t),a&&c8(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function tm(e){return tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tm(e)}function Rt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nm(e,t){if(t&&(tm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rt(e)}function zc(e){return zc=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},zc(e)}function rm(e,t){return rm=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},rm(e,t)}function im(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rm(e,t)}var Ub=wa(su()),gu=wa(d8());import{createRef as vT,createElement as jb,Component as mT,createContext as Yq}from"react";function eT(e){if(Array.isArray(e))return Fd(e)}function tT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
153
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rT(e){return eT(e)||tT(e)||Xv(e)||nT()}var St=wa(N8()),qq=function(){function e(){Ac(this,e),sn(this,"refs",{})}return Nc(e,[{key:"add",value:function(a,o){this.refs[a]||(this.refs[a]=[]),this.refs[a].push(o)}},{key:"remove",value:function(a,o){var s=this.getIndex(a,o);s!==-1&&this.refs[a].splice(s,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var a=this;return this.refs[this.active.collection].find(function(o){var s=o.node;return s.sortableInfo.index==a.active.index})}},{key:"getIndex",value:function(a,o){return this.refs[a].indexOf(o)}},{key:"getOrderedRefs",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[a].sort(Zq)}}]),e}();function Zq(e,t){var a=e.node.sortableInfo.index,o=t.node.sortableInfo.index;return a-o}function j8(e,t){return Object.keys(e).reduce(function(a,o){return t.indexOf(o)===-1&&(a[o]=e[o]),a},{})}var Bd={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},U8=function(){if(typeof window>"u"||typeof document>"u")return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||e.OLink===""&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function zb(e,t){Object.keys(t).forEach(function(a){e.style[a]=t[a]})}function Ib(e,t){e.style["".concat(U8,"Transform")]=t==null?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function pT(e,t){e.style["".concat(U8,"TransitionDuration")]=t==null?"":"".concat(t,"ms")}function om(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function z8(e,t,a){return Math.max(e,Math.min(a,t))}function Hd(e){return e.substr(-2)==="px"?parseFloat(e):0}function Qq(e){var t=window.getComputedStyle(e);return{bottom:Hd(t.marginBottom),left:Hd(t.marginLeft),right:Hd(t.marginRight),top:Hd(t.marginTop)}}function gT(e,t){var a=t.displayName||t.name;return a?"".concat(e,"(").concat(a,")"):e}function hT(e,t){var a=e.getBoundingClientRect();return{top:a.top+t.top,left:a.left+t.left}}function am(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function Kq(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function Fb(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!!e){var o={left:a.left+e.offsetLeft,top:a.top+e.offsetTop};return e.parentNode===t?o:Fb(e.parentNode,t,o)}}function Jq(e,t,a){return e<a&&e>t?e-1:e>a&&e<t?e+1:e}function I8(e){var t=e.lockOffset,a=e.width,o=e.height,s=t,f=t,p="px";if(typeof t=="string"){var h=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);(0,gu.default)(h!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),s=parseFloat(t),f=parseFloat(t),p=h[1]}return(0,gu.default)(isFinite(s)&&isFinite(f),"lockOffset value should be a finite. Given %s",t),p==="%"&&(s=s*a/100,f=f*o/100),{x:s,y:f}}function Xq(e){var t=e.height,a=e.width,o=e.lockOffset,s=Array.isArray(o)?o:[o,o];(0,gu.default)(s.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",o);var f=Eb(s,2),p=f[0],h=f[1];return[I8({height:t,lockOffset:p,width:a}),I8({height:t,lockOffset:h,width:a})]}function eZ(e){var t=window.getComputedStyle(e),a=/(auto|scroll)/,o=["overflow","overflowX","overflowY"];return o.find(function(s){return a.test(t[s])})}function B8(e){return e instanceof HTMLElement?eZ(e)?e:B8(e.parentNode):null}function tZ(e){var t=window.getComputedStyle(e);return t.display==="grid"?{x:Hd(t.gridColumnGap),y:Hd(t.gridRowGap)}:{x:0,y:0}}var Ic={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},Fc={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function nZ(e){var t="input, textarea, select, canvas, [contenteditable]",a=e.querySelectorAll(t),o=e.cloneNode(!0),s=rT(o.querySelectorAll(t));return s.forEach(function(f,p){if(f.type!=="file"&&(f.value=a[p].value),f.type==="radio"&&f.name&&(f.name="__sortableClone__".concat(f.name)),f.tagName===Fc.Canvas&&a[p].width>0&&a[p].height>0){var h=f.getContext("2d");h.drawImage(a[p],0,0)}}),o}function H8(e){var t,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return a=t=function(s){im(f,s);function f(){var p,h;Ac(this,f);for(var g=arguments.length,y=new Array(g),w=0;w<g;w++)y[w]=arguments[w];return h=nm(this,(p=zc(f)).call.apply(p,[this].concat(y))),sn(Rt(Rt(h)),"wrappedInstance",vT()),h}return Nc(f,[{key:"componentDidMount",value:function(){var h=(0,Ub.findDOMNode)(this);h.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return(0,gu.default)(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var h=o.withRef?this.wrappedInstance:null;return jb(e,Pc({ref:h},this.props))}}]),f}(mT),sn(t,"displayName",gT("sortableHandle",e)),a}function F8(e){return e.sortableHandle!=null}var rZ=function(){function e(t,a){Ac(this,e),this.container=t,this.onScrollCallback=a}return Nc(e,[{key:"clear",value:function(){this.interval!=null&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(a){var o=this,s=a.translate,f=a.minTranslate,p=a.maxTranslate,h=a.width,g=a.height,y={x:0,y:0},w={x:1,y:1},C={x:10,y:10},M=this.container,_=M.scrollTop,A=M.scrollLeft,I=M.scrollHeight,$=M.scrollWidth,R=M.clientHeight,D=M.clientWidth,E=_===0,k=I-_-R===0,F=A===0,U=$-A-D===0;s.y>=p.y-g/2&&!k?(y.y=1,w.y=C.y*Math.abs((p.y-g/2-s.y)/g)):s.x>=p.x-h/2&&!U?(y.x=1,w.x=C.x*Math.abs((p.x-h/2-s.x)/h)):s.y<=f.y+g/2&&!E?(y.y=-1,w.y=C.y*Math.abs((s.y-g/2-f.y)/g)):s.x<=f.x+h/2&&!F&&(y.x=-1,w.x=C.x*Math.abs((s.x-h/2-f.x)/h)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(y.x!==0||y.y!==0)&&(this.interval=setInterval(function(){o.isAutoScrolling=!0;var N={left:w.x*y.x,top:w.y*y.y};o.container.scrollTop+=N.top,o.container.scrollLeft+=N.left,o.onScrollCallback(N)},5))}}]),e}();function iZ(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}}function aZ(e){var t=[Fc.Input,Fc.Textarea,Fc.Select,Fc.Option,Fc.Button];return!!(t.indexOf(e.target.tagName)!==-1||om(e.target,function(a){return a.contentEditable==="true"}))}var V8={axis:St.default.oneOf(["x","y","xy"]),contentWindow:St.default.any,disableAutoscroll:St.default.bool,distance:St.default.number,getContainer:St.default.func,getHelperDimensions:St.default.func,helperClass:St.default.string,helperContainer:St.default.oneOfType([St.default.func,typeof HTMLElement>"u"?St.default.any:St.default.instanceOf(HTMLElement)]),hideSortableGhost:St.default.bool,keyboardSortingTransitionDuration:St.default.number,lockAxis:St.default.string,lockOffset:St.default.oneOfType([St.default.number,St.default.string,St.default.arrayOf(St.default.oneOfType([St.default.number,St.default.string]))]),lockToContainerEdges:St.default.bool,onSortEnd:St.default.func,onSortMove:St.default.func,onSortOver:St.default.func,onSortStart:St.default.func,pressDelay:St.default.number,pressThreshold:St.default.number,keyCodes:St.default.shape({lift:St.default.arrayOf(St.default.number),drop:St.default.arrayOf(St.default.number),cancel:St.default.arrayOf(St.default.number),up:St.default.arrayOf(St.default.number),down:St.default.arrayOf(St.default.number)}),shouldCancelStart:St.default.func,transitionDuration:St.default.number,updateBeforeSortStart:St.default.func,useDragHandle:St.default.bool,useWindowAsScrollContainer:St.default.bool},$8={lift:[Ic.SPACE],drop:[Ic.SPACE],cancel:[Ic.ESC],up:[Ic.UP,Ic.LEFT],down:[Ic.DOWN,Ic.RIGHT]},oZ={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:iZ,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:$8,shouldCancelStart:aZ,transitionDuration:300,useWindowAsScrollContainer:!1},lZ=Object.keys(V8);function sZ(e){(0,gu.default)(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function uZ(e,t){try{var a=e()}catch(o){return t(!0,o)}return a&&a.then?a.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}var W8=Yq({manager:{}});function G8(e){var t,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return a=t=function(s){im(f,s);function f(p){var h;Ac(this,f),h=nm(this,zc(f).call(this,p)),sn(Rt(Rt(h)),"state",{}),sn(Rt(Rt(h)),"handleStart",function(y){var w=h.props,C=w.distance,M=w.shouldCancelStart;if(!(y.button===2||M(y))){h.touched=!0,h.position=am(y);var _=om(y.target,function(E){return E.sortableInfo!=null});if(_&&_.sortableInfo&&h.nodeIsChild(_)&&!h.state.sorting){var A=h.props.useDragHandle,I=_.sortableInfo,$=I.index,R=I.collection,D=I.disabled;if(D||A&&!om(y.target,F8))return;h.manager.active={collection:R,index:$},!Kq(y)&&y.target.tagName===Fc.Anchor&&y.preventDefault(),C||(h.props.pressDelay===0?h.handlePress(y):h.pressTimer=setTimeout(function(){return h.handlePress(y)},h.props.pressDelay))}}}),sn(Rt(Rt(h)),"nodeIsChild",function(y){return y.sortableInfo.manager===h.manager}),sn(Rt(Rt(h)),"handleMove",function(y){var w=h.props,C=w.distance,M=w.pressThreshold;if(!h.state.sorting&&h.touched&&!h._awaitingUpdateBeforeSortStart){var _=am(y),A={x:h.position.x-_.x,y:h.position.y-_.y},I=Math.abs(A.x)+Math.abs(A.y);h.delta=A,!C&&(!M||I>=M)?(clearTimeout(h.cancelTimer),h.cancelTimer=setTimeout(h.cancel,0)):C&&I>=C&&h.manager.isActive()&&h.handlePress(y)}}),sn(Rt(Rt(h)),"handleEnd",function(){h.touched=!1,h.cancel()}),sn(Rt(Rt(h)),"cancel",function(){var y=h.props.distance,w=h.state.sorting;w||(y||clearTimeout(h.pressTimer),h.manager.active=null)}),sn(Rt(Rt(h)),"handlePress",function(y){try{var w=h.manager.getActive(),C=function(){if(w){var M=function(){var G=F.sortableInfo.index,re=Qq(F),Le=tZ(h.container),Y=h.scrollContainer.getBoundingClientRect(),ue=I({index:G,node:F,collection:U});if(h.node=F,h.margin=re,h.gridGap=Le,h.width=ue.width,h.height=ue.height,h.marginOffset={x:h.margin.left+h.margin.right+h.gridGap.x,y:Math.max(h.margin.top,h.margin.bottom,h.gridGap.y)},h.boundingClientRect=F.getBoundingClientRect(),h.containerBoundingRect=Y,h.index=G,h.newIndex=G,h.axis={x:A.indexOf("x")>=0,y:A.indexOf("y")>=0},h.offsetEdge=Fb(F,h.container),N?h.initialOffset=am(em({},y,{pageX:h.boundingClientRect.left,pageY:h.boundingClientRect.top})):h.initialOffset=am(y),h.initialScroll={left:h.scrollContainer.scrollLeft,top:h.scrollContainer.scrollTop},h.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},h.helper=h.helperContainer.appendChild(nZ(F)),zb(h.helper,{boxSizing:"border-box",height:"".concat(h.height,"px"),left:"".concat(h.boundingClientRect.left-re.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(h.boundingClientRect.top-re.top,"px"),width:"".concat(h.width,"px")}),N&&h.helper.focus(),R&&(h.sortableGhost=F,zb(F,{opacity:0,visibility:"hidden"})),h.minTranslate={},h.maxTranslate={},N){var xe=k?{top:0,left:0,width:h.contentWindow.innerWidth,height:h.contentWindow.innerHeight}:h.containerBoundingRect,Pe=xe.top,ke=xe.left,V=xe.width,Q=xe.height,le=Pe+Q,ge=ke+V;h.axis.x&&(h.minTranslate.x=ke-h.boundingClientRect.left,h.maxTranslate.x=ge-(h.boundingClientRect.left+h.width)),h.axis.y&&(h.minTranslate.y=Pe-h.boundingClientRect.top,h.maxTranslate.y=le-(h.boundingClientRect.top+h.height))}else h.axis.x&&(h.minTranslate.x=(k?0:Y.left)-h.boundingClientRect.left-h.width/2,h.maxTranslate.x=(k?h.contentWindow.innerWidth:Y.left+Y.width)-h.boundingClientRect.left-h.width/2),h.axis.y&&(h.minTranslate.y=(k?0:Y.top)-h.boundingClientRect.top-h.height/2,h.maxTranslate.y=(k?h.contentWindow.innerHeight:Y.top+Y.height)-h.boundingClientRect.top-h.height/2);$&&$.split(" ").forEach(function(ve){return h.helper.classList.add(ve)}),h.listenerNode=y.touches?y.target:h.contentWindow,N?(h.listenerNode.addEventListener("wheel",h.handleKeyEnd,!0),h.listenerNode.addEventListener("mousedown",h.handleKeyEnd,!0),h.listenerNode.addEventListener("keydown",h.handleKeyDown)):(Bd.move.forEach(function(ve){return h.listenerNode.addEventListener(ve,h.handleSortMove,!1)}),Bd.end.forEach(function(ve){return h.listenerNode.addEventListener(ve,h.handleSortEnd,!1)})),h.setState({sorting:!0,sortingIndex:G}),E&&E({node:F,index:G,collection:U,isKeySorting:N,nodes:h.manager.getOrderedRefs(),helper:h.helper},y),N&&h.keyMove(0)},_=h.props,A=_.axis,I=_.getHelperDimensions,$=_.helperClass,R=_.hideSortableGhost,D=_.updateBeforeSortStart,E=_.onSortStart,k=_.useWindowAsScrollContainer,F=w.node,U=w.collection,N=h.manager.isKeySorting,W=function(){if(typeof D=="function"){h._awaitingUpdateBeforeSortStart=!0;var K=uZ(function(){var G=F.sortableInfo.index;return Promise.resolve(D({collection:U,index:G,node:F,isKeySorting:N},y)).then(function(){})},function(G,re){if(h._awaitingUpdateBeforeSortStart=!1,G)throw re;return re});if(K&&K.then)return K.then(function(){})}}();return W&&W.then?W.then(M):M(W)}}();return Promise.resolve(C&&C.then?C.then(function(){}):void 0)}catch(M){return Promise.reject(M)}}),sn(Rt(Rt(h)),"handleSortMove",function(y){var w=h.props.onSortMove;typeof y.preventDefault=="function"&&y.cancelable&&y.preventDefault(),h.updateHelperPosition(y),h.animateNodes(),h.autoscroll(),w&&w(y)}),sn(Rt(Rt(h)),"handleSortEnd",function(y){var w=h.props,C=w.hideSortableGhost,M=w.onSortEnd,_=h.manager,A=_.active.collection,I=_.isKeySorting,$=h.manager.getOrderedRefs();h.listenerNode&&(I?(h.listenerNode.removeEventListener("wheel",h.handleKeyEnd,!0),h.listenerNode.removeEventListener("mousedown",h.handleKeyEnd,!0),h.listenerNode.removeEventListener("keydown",h.handleKeyDown)):(Bd.move.forEach(function(F){return h.listenerNode.removeEventListener(F,h.handleSortMove)}),Bd.end.forEach(function(F){return h.listenerNode.removeEventListener(F,h.handleSortEnd)}))),h.helper.parentNode.removeChild(h.helper),C&&h.sortableGhost&&zb(h.sortableGhost,{opacity:"",visibility:""});for(var R=0,D=$.length;R<D;R++){var E=$[R],k=E.node;E.edgeOffset=null,E.boundingClientRect=null,Ib(k,null),pT(k,null),E.translate=null}h.autoScroller.clear(),h.manager.active=null,h.manager.isKeySorting=!1,h.setState({sorting:!1,sortingIndex:null}),typeof M=="function"&&M({collection:A,newIndex:h.newIndex,oldIndex:h.index,isKeySorting:I,nodes:$},y),h.touched=!1}),sn(Rt(Rt(h)),"autoscroll",function(){var y=h.props.disableAutoscroll,w=h.manager.isKeySorting;if(y){h.autoScroller.clear();return}if(w){var C=em({},h.translate),M=0,_=0;h.axis.x&&(C.x=Math.min(h.maxTranslate.x,Math.max(h.minTranslate.x,h.translate.x)),M=h.translate.x-C.x),h.axis.y&&(C.y=Math.min(h.maxTranslate.y,Math.max(h.minTranslate.y,h.translate.y)),_=h.translate.y-C.y),h.translate=C,Ib(h.helper,h.translate),h.scrollContainer.scrollLeft+=M,h.scrollContainer.scrollTop+=_;return}h.autoScroller.update({height:h.height,maxTranslate:h.maxTranslate,minTranslate:h.minTranslate,translate:h.translate,width:h.width})}),sn(Rt(Rt(h)),"onAutoScroll",function(y){h.translate.x+=y.left,h.translate.y+=y.top,h.animateNodes()}),sn(Rt(Rt(h)),"handleKeyDown",function(y){var w=y.keyCode,C=h.props,M=C.shouldCancelStart,_=C.keyCodes,A=_===void 0?{}:_,I=em({},$8,A);h.manager.active&&!h.manager.isKeySorting||!h.manager.active&&(!I.lift.includes(w)||M(y)||!h.isValidSortingTarget(y))||(y.stopPropagation(),y.preventDefault(),I.lift.includes(w)&&!h.manager.active?h.keyLift(y):I.drop.includes(w)&&h.manager.active?h.keyDrop(y):I.cancel.includes(w)?(h.newIndex=h.manager.active.index,h.keyDrop(y)):I.up.includes(w)?h.keyMove(-1):I.down.includes(w)&&h.keyMove(1))}),sn(Rt(Rt(h)),"keyLift",function(y){var w=y.target,C=om(w,function(I){return I.sortableInfo!=null}),M=C.sortableInfo,_=M.index,A=M.collection;h.initialFocusedNode=w,h.manager.isKeySorting=!0,h.manager.active={index:_,collection:A},h.handlePress(y)}),sn(Rt(Rt(h)),"keyMove",function(y){var w=h.manager.getOrderedRefs(),C=w[w.length-1].node.sortableInfo.index,M=h.newIndex+y,_=h.newIndex;if(!(M<0||M>C)){h.prevIndex=_,h.newIndex=M;var A=Jq(h.newIndex,h.prevIndex,h.index),I=w.find(function(N){var W=N.node;return W.sortableInfo.index===A}),$=I.node,R=h.containerScrollDelta,D=I.boundingClientRect||hT($,R),E=I.translate||{x:0,y:0},k={top:D.top+E.y-R.top,left:D.left+E.x-R.left},F=_<M,U={x:F&&h.axis.x?$.offsetWidth-h.width:0,y:F&&h.axis.y?$.offsetHeight-h.height:0};h.handleSortMove({pageX:k.left+U.x,pageY:k.top+U.y,ignoreTransition:y===0})}}),sn(Rt(Rt(h)),"keyDrop",function(y){h.handleSortEnd(y),h.initialFocusedNode&&h.initialFocusedNode.focus()}),sn(Rt(Rt(h)),"handleKeyEnd",function(y){h.manager.active&&h.keyDrop(y)}),sn(Rt(Rt(h)),"isValidSortingTarget",function(y){var w=h.props.useDragHandle,C=y.target,M=om(C,function(_){return _.sortableInfo!=null});return M&&M.sortableInfo&&!M.sortableInfo.disabled&&(w?F8(C):C.sortableInfo)});var g=new qq;return sZ(p),h.manager=g,h.wrappedInstance=vT(),h.sortableContextValue={manager:g},h.events={end:h.handleEnd,move:h.handleMove,start:h.handleStart},h}return Nc(f,[{key:"componentDidMount",value:function(){var h=this,g=this.props.useWindowAsScrollContainer,y=this.getContainer();Promise.resolve(y).then(function(w){h.container=w,h.document=h.container.ownerDocument||document;var C=h.props.contentWindow||h.document.defaultView||window;h.contentWindow=typeof C=="function"?C():C,h.scrollContainer=g?h.document.scrollingElement||h.document.documentElement:B8(h.container)||h.container,h.autoScroller=new rZ(h.scrollContainer,h.onAutoScroll),Object.keys(h.events).forEach(function(M){return Bd[M].forEach(function(_){return h.container.addEventListener(_,h.events[M],!1)})}),h.container.addEventListener("keydown",h.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var h=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach(function(g){return Bd[g].forEach(function(y){return h.container.removeEventListener(y,h.events[g])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(h){var g=this.props,y=g.lockAxis,w=g.lockOffset,C=g.lockToContainerEdges,M=g.transitionDuration,_=g.keyboardSortingTransitionDuration,A=_===void 0?M:_,I=this.manager.isKeySorting,$=h.ignoreTransition,R=am(h),D={x:R.x-this.initialOffset.x,y:R.y-this.initialOffset.y};if(D.y-=window.pageYOffset-this.initialWindowScroll.top,D.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=D,C){var E=Xq({height:this.height,lockOffset:w,width:this.width}),k=Eb(E,2),F=k[0],U=k[1],N={x:this.width/2-F.x,y:this.height/2-F.y},W={x:this.width/2-U.x,y:this.height/2-U.y};D.x=z8(this.minTranslate.x+N.x,this.maxTranslate.x-W.x,D.x),D.y=z8(this.minTranslate.y+N.y,this.maxTranslate.y-W.y,D.y)}y==="x"?D.y=0:y==="y"&&(D.x=0),I&&A&&!$&&pT(this.helper,A),Ib(this.helper,D)}},{key:"animateNodes",value:function(){var h=this.props,g=h.transitionDuration,y=h.hideSortableGhost,w=h.onSortOver,C=this.containerScrollDelta,M=this.windowScrollDelta,_=this.manager.getOrderedRefs(),A={left:this.offsetEdge.left+this.translate.x+C.left,top:this.offsetEdge.top+this.translate.y+C.top},I=this.manager.isKeySorting,$=this.newIndex;this.newIndex=null;for(var R=0,D=_.length;R<D;R++){var E=_[R].node,k=E.sortableInfo.index,F=E.offsetWidth,U=E.offsetHeight,N={height:this.height>U?U/2:this.height/2,width:this.width>F?F/2:this.width/2},W=I&&k>this.index&&k<=$,K=I&&k<this.index&&k>=$,G={x:0,y:0},re=_[R].edgeOffset;re||(re=Fb(E,this.container),_[R].edgeOffset=re,I&&(_[R].boundingClientRect=hT(E,C)));var Le=R<_.length-1&&_[R+1],Y=R>0&&_[R-1];if(Le&&!Le.edgeOffset&&(Le.edgeOffset=Fb(Le.node,this.container),I&&(Le.boundingClientRect=hT(Le.node,C))),k===this.index){y&&(this.sortableGhost=E,zb(E,{opacity:0,visibility:"hidden"}));continue}g&&pT(E,g),this.axis.x?this.axis.y?K||k<this.index&&(A.left+M.left-N.width<=re.left&&A.top+M.top<=re.top+N.height||A.top+M.top+N.height<=re.top)?(G.x=this.width+this.marginOffset.x,re.left+G.x>this.containerBoundingRect.width-N.width&&Le&&(G.x=Le.edgeOffset.left-re.left,G.y=Le.edgeOffset.top-re.top),this.newIndex===null&&(this.newIndex=k)):(W||k>this.index&&(A.left+M.left+N.width>=re.left&&A.top+M.top+N.height>=re.top||A.top+M.top+N.height>=re.top+U))&&(G.x=-(this.width+this.marginOffset.x),re.left+G.x<this.containerBoundingRect.left+N.width&&Y&&(G.x=Y.edgeOffset.left-re.left,G.y=Y.edgeOffset.top-re.top),this.newIndex=k):W||k>this.index&&A.left+M.left+N.width>=re.left?(G.x=-(this.width+this.marginOffset.x),this.newIndex=k):(K||k<this.index&&A.left+M.left<=re.left+N.width)&&(G.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=k)):this.axis.y&&(W||k>this.index&&A.top+M.top+N.height>=re.top?(G.y=-(this.height+this.marginOffset.y),this.newIndex=k):(K||k<this.index&&A.top+M.top<=re.top+N.height)&&(G.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=k))),Ib(E,G),_[R].translate=G}this.newIndex==null&&(this.newIndex=this.index),I&&(this.newIndex=$);var ue=I?this.prevIndex:$;w&&this.newIndex!==ue&&w({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:ue,isKeySorting:I,nodes:_,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return(0,gu.default)(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var h=this.props.getContainer;return typeof h!="function"?(0,Ub.findDOMNode)(this):h(o.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var h=o.withRef?this.wrappedInstance:null;return jb(W8.Provider,{value:this.sortableContextValue},jb(e,Pc({ref:h},j8(this.props,lZ))))}},{key:"helperContainer",get:function(){var h=this.props.helperContainer;return typeof h=="function"?h():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var h=this.props.useWindowAsScrollContainer;return h?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),f}(mT),sn(t,"displayName",gT("sortableList",e)),sn(t,"defaultProps",oZ),sn(t,"propTypes",V8),a}var Y8={index:St.default.number.isRequired,collection:St.default.oneOfType([St.default.number,St.default.string]),disabled:St.default.bool},cZ=Object.keys(Y8);function q8(e){var t,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return a=t=function(s){im(f,s);function f(){var p,h;Ac(this,f);for(var g=arguments.length,y=new Array(g),w=0;w<g;w++)y[w]=arguments[w];return h=nm(this,(p=zc(f)).call.apply(p,[this].concat(y))),sn(Rt(Rt(h)),"wrappedInstance",vT()),h}return Nc(f,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(h){this.node&&(h.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),h.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),h.collection!==this.props.collection&&(this.unregister(h.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var h=this.props,g=h.collection,y=h.disabled,w=h.index,C=(0,Ub.findDOMNode)(this);C.sortableInfo={collection:g,disabled:y,index:w,manager:this.context.manager},this.node=C,this.ref={node:C},this.context.manager.add(g,this.ref)}},{key:"unregister",value:function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(h,this.ref)}},{key:"getWrappedInstance",value:function(){return(0,gu.default)(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var h=o.withRef?this.wrappedInstance:null;return jb(e,Pc({ref:h},j8(this.props,cZ)))}}]),f}(mT),sn(t,"displayName",gT("sortableElement",e)),sn(t,"contextType",W8),sn(t,"propTypes",Y8),sn(t,"defaultProps",{collection:0}),a}var K8=wa(su());import Pn,{useState as fZ,useCallback as yT,useMemo as dZ,cloneElement as pZ}from"react";function Z8(e,t,a,o,s,f,p){try{var h=e[f](p),g=h.value}catch(y){a(y);return}h.done?t(g):Promise.resolve(g).then(o,s)}function hZ(e){return function(){var t=this,a=arguments;return new Promise(function(o,s){var f=e.apply(t,a);function p(g){Z8(f,o,s,p,h,"next",g)}function h(g){Z8(f,o,s,p,h,"throw",g)}p(void 0)})}}function lm(){return lm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},lm.apply(this,arguments)}function vZ(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Q8=vZ(function(e){var t=function(a){var o=Object.prototype,s=o.hasOwnProperty,f,p=typeof Symbol=="function"?Symbol:{},h=p.iterator||"@@iterator",g=p.asyncIterator||"@@asyncIterator",y=p.toStringTag||"@@toStringTag";function w(V,Q,le){return Object.defineProperty(V,Q,{value:le,enumerable:!0,configurable:!0,writable:!0}),V[Q]}try{w({},"")}catch{w=function(Q,le,ge){return Q[le]=ge}}function C(V,Q,le,ge){var ve=Q&&Q.prototype instanceof D?Q:D,de=Object.create(ve.prototype),ie=new xe(ge||[]);return de._invoke=re(V,le,ie),de}a.wrap=C;function M(V,Q,le){try{return{type:"normal",arg:V.call(Q,le)}}catch(ge){return{type:"throw",arg:ge}}}var _="suspendedStart",A="suspendedYield",I="executing",$="completed",R={};function D(){}function E(){}function k(){}var F={};F[h]=function(){return this};var U=Object.getPrototypeOf,N=U&&U(U(Pe([])));N&&N!==o&&s.call(N,h)&&(F=N);var W=k.prototype=D.prototype=Object.create(F);E.prototype=W.constructor=k,k.constructor=E,E.displayName=w(k,y,"GeneratorFunction");function K(V){["next","throw","return"].forEach(function(Q){w(V,Q,function(le){return this._invoke(Q,le)})})}a.isGeneratorFunction=function(V){var Q=typeof V=="function"&&V.constructor;return Q?Q===E||(Q.displayName||Q.name)==="GeneratorFunction":!1},a.mark=function(V){return Object.setPrototypeOf?Object.setPrototypeOf(V,k):(V.__proto__=k,w(V,y,"GeneratorFunction")),V.prototype=Object.create(W),V},a.awrap=function(V){return{__await:V}};function G(V,Q){function le(de,ie,Oe,je){var we=M(V[de],V,ie);if(we.type==="throw")je(we.arg);else{var ut=we.arg,Je=ut.value;return Je&&typeof Je=="object"&&s.call(Je,"__await")?Q.resolve(Je.__await).then(function(Ve){le("next",Ve,Oe,je)},function(Ve){le("throw",Ve,Oe,je)}):Q.resolve(Je).then(function(Ve){ut.value=Ve,Oe(ut)},function(Ve){return le("throw",Ve,Oe,je)})}}var ge;function ve(de,ie){function Oe(){return new Q(function(je,we){le(de,ie,je,we)})}return ge=ge?ge.then(Oe,Oe):Oe()}this._invoke=ve}K(G.prototype),G.prototype[g]=function(){return this},a.AsyncIterator=G,a.async=function(V,Q,le,ge,ve){ve===void 0&&(ve=Promise);var de=new G(C(V,Q,le,ge),ve);return a.isGeneratorFunction(Q)?de:de.next().then(function(ie){return ie.done?ie.value:de.next()})};function re(V,Q,le){var ge=_;return function(de,ie){if(ge===I)throw new Error("Generator is already running");if(ge===$){if(de==="throw")throw ie;return ke()}for(le.method=de,le.arg=ie;;){var Oe=le.delegate;if(Oe){var je=Le(Oe,le);if(je){if(je===R)continue;return je}}if(le.method==="next")le.sent=le._sent=le.arg;else if(le.method==="throw"){if(ge===_)throw ge=$,le.arg;le.dispatchException(le.arg)}else le.method==="return"&&le.abrupt("return",le.arg);ge=I;var we=M(V,Q,le);if(we.type==="normal"){if(ge=le.done?$:A,we.arg===R)continue;return{value:we.arg,done:le.done}}else we.type==="throw"&&(ge=$,le.method="throw",le.arg=we.arg)}}}function Le(V,Q){var le=V.iterator[Q.method];if(le===f){if(Q.delegate=null,Q.method==="throw"){if(V.iterator.return&&(Q.method="return",Q.arg=f,Le(V,Q),Q.method==="throw"))return R;Q.method="throw",Q.arg=new TypeError("The iterator does not provide a 'throw' method")}return R}var ge=M(le,V.iterator,Q.arg);if(ge.type==="throw")return Q.method="throw",Q.arg=ge.arg,Q.delegate=null,R;var ve=ge.arg;if(!ve)return Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,R;if(ve.done)Q[V.resultName]=ve.value,Q.next=V.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=f);else return ve;return Q.delegate=null,R}K(W),w(W,y,"Generator"),W[h]=function(){return this},W.toString=function(){return"[object Generator]"};function Y(V){var Q={tryLoc:V[0]};1 in V&&(Q.catchLoc=V[1]),2 in V&&(Q.finallyLoc=V[2],Q.afterLoc=V[3]),this.tryEntries.push(Q)}function ue(V){var Q=V.completion||{};Q.type="normal",delete Q.arg,V.completion=Q}function xe(V){this.tryEntries=[{tryLoc:"root"}],V.forEach(Y,this),this.reset(!0)}a.keys=function(V){var Q=[];for(var le in V)Q.push(le);return Q.reverse(),function ge(){for(;Q.length;){var ve=Q.pop();if(ve in V)return ge.value=ve,ge.done=!1,ge}return ge.done=!0,ge}};function Pe(V){if(V){var Q=V[h];if(Q)return Q.call(V);if(typeof V.next=="function")return V;if(!isNaN(V.length)){var le=-1,ge=function ve(){for(;++le<V.length;)if(s.call(V,le))return ve.value=V[le],ve.done=!1,ve;return ve.value=f,ve.done=!0,ve};return ge.next=ge}}return{next:ke}}a.values=Pe;function ke(){return{value:f,done:!0}}return xe.prototype={constructor:xe,reset:function(V){if(this.prev=0,this.next=0,this.sent=this._sent=f,this.done=!1,this.delegate=null,this.method="next",this.arg=f,this.tryEntries.forEach(ue),!V)for(var Q in this)Q.charAt(0)==="t"&&s.call(this,Q)&&!isNaN(+Q.slice(1))&&(this[Q]=f)},stop:function(){this.done=!0;var V=this.tryEntries[0],Q=V.completion;if(Q.type==="throw")throw Q.arg;return this.rval},dispatchException:function(V){if(this.done)throw V;var Q=this;function le(je,we){return de.type="throw",de.arg=V,Q.next=je,we&&(Q.method="next",Q.arg=f),!!we}for(var ge=this.tryEntries.length-1;ge>=0;--ge){var ve=this.tryEntries[ge],de=ve.completion;if(ve.tryLoc==="root")return le("end");if(ve.tryLoc<=this.prev){var ie=s.call(ve,"catchLoc"),Oe=s.call(ve,"finallyLoc");if(ie&&Oe){if(this.prev<ve.catchLoc)return le(ve.catchLoc,!0);if(this.prev<ve.finallyLoc)return le(ve.finallyLoc)}else if(ie){if(this.prev<ve.catchLoc)return le(ve.catchLoc,!0)}else if(Oe){if(this.prev<ve.finallyLoc)return le(ve.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(V,Q){for(var le=this.tryEntries.length-1;le>=0;--le){var ge=this.tryEntries[le];if(ge.tryLoc<=this.prev&&s.call(ge,"finallyLoc")&&this.prev<ge.finallyLoc){var ve=ge;break}}ve&&(V==="break"||V==="continue")&&ve.tryLoc<=Q&&Q<=ve.finallyLoc&&(ve=null);var de=ve?ve.completion:{};return de.type=V,de.arg=Q,ve?(this.method="next",this.next=ve.finallyLoc,R):this.complete(de)},complete:function(V,Q){if(V.type==="throw")throw V.arg;return V.type==="break"||V.type==="continue"?this.next=V.arg:V.type==="return"?(this.rval=this.arg=V.arg,this.method="return",this.next="end"):V.type==="normal"&&Q&&(this.next=Q),R},finish:function(V){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var le=this.tryEntries[Q];if(le.finallyLoc===V)return this.complete(le.completion,le.afterLoc),ue(le),R}},catch:function(V){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var le=this.tryEntries[Q];if(le.tryLoc===V){var ge=le.completion;if(ge.type==="throw"){var ve=ge.arg;ue(le)}return ve}}throw new Error("illegal catch attempt")},delegateYield:function(V,Q,le){return this.delegate={iterator:Pe(V),resultName:Q,nextLoc:le},this.method==="next"&&(this.arg=f),R}},a}(e.exports);try{regeneratorRuntime=t}catch{Function("r","regeneratorRuntime = r")(t)}}),mZ={position:"fixed",left:0,top:0,width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.4)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",zIndex:1400},gZ=".web-share-fade{animation:simpleFade 0.5s;animation-fill-mode:both }@keyframes simpleFade{0%{opacity:0 }100%{opacity:1 }}.web-share-fade-in-up{animation:fadeInUp 0.5s;animation-fill-mode:both }@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px) }100%{opacity:1;transform:translateY(0) }}";function yZ(e){var t=e.children,a=e.onClose,o=function(f){f.target===f.currentTarget&&a(f)};return Pn.createElement("div",{onClick:o,className:"web-share-fade",style:mZ},Pn.createElement("style",{children:gZ}),t)}var us=function(t){return window.open(t,"_blank","noopener")},J8={facebook:{path:Pn.createElement("path",{d:"M24 12a12 12 0 10-13.9 11.9v-8.4h-3V12h3V9.4c0-3 1.8-4.7 4.6-4.7l2.6.2v3h-1.5c-1.5 0-2 .9-2 1.8V12h3.4l-.5 3.5h-2.8v8.4A12 12 0 0024 12z"}),color:"#0076FB",e:function(t){return us("https://www.facebook.com/sharer/sharer.php?u="+t)}},twitter:{path:Pn.createElement("path",{d:"M24 4.6a10 10 0 01-2.9.7 5 5 0 002.2-2.7c-1 .6-2 1-3.1 1.2a5 5 0 00-8.4 4.5A14 14 0 011.6 3.2 4.8 4.8 0 001 5.6a5 5 0 002.2 4.1 4.9 4.9 0 01-2.3-.6A5 5 0 005 14a5 5 0 01-2.2 0 5 5 0 004.6 3.5 9.9 9.9 0 01-6.1 2.1H0a14 14 0 007.6 2.2c9 0 14-7.5 14-14V7A10 10 0 0024 4.6z"}),color:"#1DA1F2",e:function(t,a){return us("https://twitter.com/intent/tweet?text="+a+"&url="+t)}},whatsapp:{path:Pn.createElement("path",{d:"M17.5 14.4l-2-1c-.3 0-.5-.1-.7.2l-1 1.1c-.1.2-.3.3-.6.1s-1.3-.5-2.4-1.5a9 9 0 01-1.7-2c-.1-.3 0-.5.2-.6l.4-.6c.2-.1.2-.3.3-.5v-.5L9 7c-.2-.6-.4-.5-.6-.5h-.6c-.2 0-.5 0-.8.4-.2.3-1 1-1 2.5s1 2.8 1.2 3c.2.2 2.1 3.2 5.1 4.5l1.7.6a4 4 0 001.9.2c.5-.1 1.7-.8 2-1.5.2-.6.2-1.2.1-1.4l-.5-.3M12 21.8a9.9 9.9 0 01-5-1.4l-.4-.2-3.7 1 1-3.7-.2-.3a9.9 9.9 0 01-1.5-5.3 9.9 9.9 0 0116.8-7 9.8 9.8 0 013 7 9.9 9.9 0 01-10 9.9m8.4-18.3A11.8 11.8 0 0012.1 0 12 12 0 001.8 17.8L0 24l6.4-1.6a11.9 11.9 0 005.6 1.4 12 12 0 0012-11.9 11.8 11.8 0 00-3.5-8.4z"}),color:"#25D366",e:function(t,a){return us("https://api.whatsapp.com/send?text="+a+" "+t)}},reddit:{path:Pn.createElement("path",{d:"M12 0A12 12 0 000 12a12 12 0 0012 12 12 12 0 0012-12A12 12 0 0012 0zm5.01 4.74c.69 0 1.25.56 1.25 1.25a1.25 1.25 0 01-2.5.06l-2.6-.55-.8 3.75c1.83.07 3.48.63 4.68 1.49.3-.31.73-.5 1.2-.5.97 0 1.76.8 1.76 1.76 0 .72-.43 1.33-1.01 1.61a3.11 3.11 0 01.04.52c0 2.7-3.13 4.87-7 4.87-3.88 0-7-2.17-7-4.87 0-.18 0-.36.04-.53A1.75 1.75 0 014.03 12a1.75 1.75 0 012.96-1.26 8.52 8.52 0 014.74-1.5l.89-4.17a.34.34 0 01.14-.2.35.35 0 01.24-.04l2.9.62a1.21 1.21 0 011.11-.7zM9.25 12a1.25 1.25 0 101.25 1.25c0-.69-.56-1.25-1.25-1.25zm5.5 0a1.25 1.25 0 000 2.5 1.25 1.25 0 000-2.5zm-5.47 3.99a.33.33 0 00-.23.1.33.33 0 000 .46c.84.84 2.49.91 2.96.91.48 0 2.1-.06 2.96-.91a.36.36 0 00.03-.47.33.33 0 00-.46 0c-.55.54-1.68.73-2.51.73-.83 0-1.98-.2-2.51-.73a.33.33 0 00-.24-.1z"}),color:"#FF4500",e:function(t,a){return us("https://www.reddit.com/submit?url="+t+"&title="+a)}},telegram:{path:Pn.createElement("path",{d:"M23.91 3.79L20.3 20.84c-.25 1.21-.98 1.5-2 .94l-5.5-4.07-2.66 2.57c-.3.3-.55.56-1.1.56-.72 0-.6-.27-.84-.95L6.3 13.7.85 12c-1.18-.35-1.19-1.16.26-1.75l21.26-8.2c.97-.43 1.9.24 1.53 1.73z"}),color:"#0088CC",e:function(t,a){return us("https://telegram.me/share/msg?url="+t+"&text="+a)}},linkedin:{path:Pn.createElement("path",{d:"M6.5 21.5h-5v-13h5v13zM4 6.5C2.5 6.5 1.5 5.3 1.5 4s1-2.4 2.5-2.4c1.6 0 2.5 1 2.6 2.5 0 1.4-1 2.5-2.6 2.5zm11.5 6c-1 0-2 1-2 2v7h-5v-13h5V10s1.6-1.5 4-1.5c3 0 5 2.2 5 6.3v6.7h-5v-7c0-1-1-2-2-2z"}),color:"#0073b1",e:function(t,a,o){return us("https://www.linkedin.com/shareArticle?mini=true&url="+t+"&title="+o+"&summary="+a)}},mail:{path:Pn.createElement("path",{d:"M20 4H4a2 2 0 00-2 2v12c0 1.1.9 2 2 2h16a2 2 0 002-2V6a2 2 0 00-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"}),color:"#E53E3E",e:function(t,a){return us("mailto:?body="+t+"&subject="+a)}},copy:{path:Pn.createElement("path",{d:"M16 1H4a2 2 0 00-2 2v14h2V3h12V1zm3 4H8a2 2 0 00-2 2v14c0 1.1.9 2 2 2h11a2 2 0 002-2V7a2 2 0 00-2-2zm0 16H8V7h11v14z"}),color:"#718096",e:function(t){return navigator.clipboard.writeText(decodeURIComponent(t))}},vk:{path:Pn.createElement("path",{d:"M22.7 6.24c.16-.52 0-.9-.73-.9H19.5c-.62 0-.91.32-1.06.69 0 0-1.25 3.04-3.02 5.02-.57.57-.83.75-1.15.75-.15 0-.39-.18-.39-.7V6.24c0-.63-.17-.9-.69-.9H9.34c-.39 0-.62.29-.62.56 0 .59.88.72.97 2.4v3.6c0 .8-.14.95-.45.95-.84 0-2.86-3.06-4.06-6.56-.24-.68-.48-.96-1.1-.96H1.61c-.7 0-.85.33-.85.7 0 .65.84 3.88 3.88 8.14 2.03 2.92 4.9 4.5 7.5 4.5 1.55 0 1.75-.35 1.75-.96 0-2.78-.15-3.04.64-3.04.36 0 .99.18 2.44 1.58 1.67 1.67 1.95 2.42 2.88 2.42h2.45c.7 0 1.06-.35.85-1.05-.46-1.45-3.62-4.44-3.76-4.64-.36-.47-.26-.68 0-1.1 0 0 3-4.21 3.3-5.64Z"}),color:"#07f",e:function(t,a,o){return us("http://vk.com/share.php?url="+t+"&title="+o+"&comment="+a)}},okru:{path:Pn.createElement("path",{d:"M13.6 16.4c1-.3 2-.7 2.8-1.2a1.5 1.5 0 0 0-1.5-2.5 6.3 6.3 0 0 1-6.7 0 1.5 1.5 0 1 0-1.5 2.5c.9.5 1.8 1 2.9 1.2L6.8 19a1.4 1.4 0 1 0 2 2l2.8-2.6 2.7 2.7a1.5 1.5 0 1 0 2-2l-2.7-2.8Zm-2-11.1a2 2 0 1 1 0 4.1 2 2 0 0 1 0-4.1Zm0 7a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z"}),color:"#e27e35",e:function(t){return us("https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&st.shareUrl="+t)}}},bZ=function(t){var a=t.children,o=document.createElement("div");return Pn.useEffect(function(){return document.body.appendChild(o),function(){document.body.removeChild(o)}},[o]),(0,K8.createPortal)(a,o)},SZ={background:"#edf2f7",cursor:"pointer",padding:"0.75rem",display:"block",width:"100%",border:0,fontSize:"1rem"};function xZ(e){var t=e.onClose,a=e.closeText;return Pn.createElement("button",{style:SZ,"aria-label":"Close",type:"button",onClick:t},a||"Close")}var EZ={padding:"1rem 1.25rem",fontSize:"1.25rem",fontWeight:600,paddingBottom:0};function wZ(e){var t=e.title;return Pn.createElement("header",{style:EZ},t)}var CZ={width:"100%",height:"auto",cursor:"pointer",border:0,background:"#1A78F6",padding:"0.75rem",borderRadius:"0.5rem",fontSize:0};function LZ(e){var t=e.name,a=e.data,o=e.onClose,s=e.onClick,f=J8[t],p=f.path,h=f.viewBox,g=h===void 0?"0 0 24 24":h,y=f.color,w=f.e,C=function(){s&&s(),w(encodeURIComponent(a.url),a.text,a.title),o()};return Pn.createElement("button",{onClick:C,"aria-label":t,style:lm({},CZ,{background:y})},Pn.createElement("svg",{fill:"white",viewBox:g},p))}var TZ={maxWidth:"24rem",width:"90%",backgroundColor:"white",borderRadius:"0.5rem",borderBottomLeftRadius:0,borderBottomRightRadius:0},_Z={padding:"1.25rem",display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gridGap:"1.25rem"};function kZ(e){var t=e.onClose,a=e.sites,o=e.data,s=e.closeText,f=e.onClick;return Pn.createElement("section",{role:"dialog","aria-modal":"true",className:"web-share-fade-in-up",style:TZ},Pn.createElement(wZ,{title:o.title}),Pn.createElement("div",{style:_Z},a.map(function(p){return Pn.createElement(LZ,{name:p,key:p,data:o,onClose:t,onClick:f})})),Pn.createElement(xZ,{onClose:t,closeText:s}))}function MZ(e){e===void 0&&(e=!1);var t=fZ(e),a=t[0],o=t[1],s=yT(function(){return o(!0)},[]),f=yT(function(){return o(!1)},[]),p=yT(function(){return o(function(h){return!h})},[]);return{isOpen:a,onOpen:s,onClose:f,onToggle:p}}var RZ=Object.keys(J8).slice(0,8),X8=function(t){var a=t.children,o=t.closeText,s=t.data,f=t.onClick,p=t.sites,h=p===void 0?RZ:p,g=MZ(),y=g.onOpen,w=g.onClose,C=g.isOpen,M=dZ(function(){return lm({},s,{title:s.title||"share",text:s.text||"",url:s.url||typeof window<"u"&&window.location.href||""})},[s]),_=function(){var A=hZ(Q8.mark(function I(){return Q8.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(!window.navigator.share){R.next=12;break}return R.prev=1,R.next=4,window.navigator.share(M);case 4:f(),R.next=10;break;case 7:R.prev=7,R.t0=R.catch(1),console.warn(R.t0);case 10:R.next=13;break;case 12:y();case 13:case"end":return R.stop()}},I,null,[[1,7]])}));return function(){return A.apply(this,arguments)}}();return Pn.createElement(Pn.Fragment,null,pZ(a,lm({},a==null?void 0:a.props,{onClick:_})),C&&Pn.createElement(bZ,null,Pn.createElement(yZ,{onClose:w},Pn.createElement(kZ,{onClose:w,sites:h,data:M,closeText:o,onClick:f}))))};import Wd from"react";import xu from"react";import CP,{useState as BJ}from"react";var zP=wa(pP());import or,{useState as VJ}from"react";import um from"react";import cm,{useMemo as GJ}from"react";import LP from"react";import qb from"react";import MT from"react";import Zb from"react";import Qb from"react";import TP,{useEffect as lX,useState as sX}from"react";import TT,{useMemo as cX}from"react";import kP from"react";import Kb,{useMemo as hX}from"react";import fs from"react";var nQ=Object.defineProperty,rQ=Object.defineProperties,iQ=Object.getOwnPropertyDescriptors,hP=Object.getOwnPropertySymbols,aQ=Object.prototype.hasOwnProperty,oQ=Object.prototype.propertyIsEnumerable,vP=(e,t,a)=>t in e?nQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,gr=(e,t)=>{for(var a in t||(t={}))aQ.call(t,a)&&vP(e,a,t[a]);if(hP)for(var a of hP(t))oQ.call(t,a)&&vP(e,a,t[a]);return e},Bc=(e,t)=>rQ(e,iQ(t)),lQ="Are you sure?",sQ="Base Style",uQ="Clear Selection",cQ="Attribution",fQ="Created On",dQ="Delete",pQ="Download",hQ="Find layer by name",vQ="Attributes at Clicked Location",mQ="Information",gQ="Layer Selection",yQ="All Layers",bQ="Top Layer Only",SQ="Layers",xQ="Legend",EQ="Less",wQ="License",CQ="List Layers",LQ="Pending",TQ="Publish",_Q="Remove",kQ="Selected",MQ="Settings",RQ="Square",OQ="Tags",DQ="Toggle Publishing",PQ="Uploaded",AQ="Uploader",NQ="URL",zQ="Visiblity",IQ={are_you_sure:lQ,base_style:sQ,clear:uQ,created_by:cQ,created_on:fQ,delete:dQ,download:pQ,find_layer_by_name:hQ,infobar:vQ,information:mQ,layer_selection:gQ,layer_selection_all:yQ,layer_selection_top:bQ,layers:SQ,legend:xQ,less:EQ,license:wQ,list_layers:CQ,pending:LQ,publish:TQ,remove:_Q,selected:kQ,settings:MQ,square:RQ,tags:OQ,toggle:DQ,uploaded:PQ,uploader:AQ,url:NQ,visiblity:zQ},FQ="\xCAtes-vous s\xFBr?",jQ="Style de base",UQ="Effacer la s\xE9lection",BQ="Attribution",HQ="Cr\xE9\xE9 sur",VQ="Effacer",$Q="T\xE9l\xE9charger",WQ="Trouver la couche par nom",GQ="Attributs \xE0 l'emplacement cliqu\xE9",YQ="Informations",qQ="Toutes les couches",ZQ="Couche sup\xE9rieure uniquement",QQ="S\xE9lection de calque",KQ="Couches",JQ="L\xE9gende",XQ="Moins",eK="Licence",tK="Liste des couches",nK="En attente",rK="Publier",iK="Supprimer",aK="Choisie",oK="Param\xE8tres",lK="Carr\xE9",sK="Basculer la publication",uK="T\xE9l\xE9charg\xE9",cK="url",fK={are_you_sure:FQ,base_style:jQ,clear:UQ,created_by:BQ,created_on:HQ,delete:VQ,download:$Q,find_layer_by_name:WQ,infobar:GQ,information:YQ,layer_selection_all:qQ,layer_selection_top:ZQ,layer_selection:QQ,layers:KQ,legend:JQ,less:XQ,license:eK,list_layers:tK,pending:nK,publish:rK,remove:iK,selected:aK,settings:oK,square:lK,toggle:sK,uploaded:uK,url:cK},dK="\u0915\u094D\u092F\u093E \u0906\u092A\u0915\u094B \u092F\u0915\u0940\u0928 \u0939\u0948?",pK="\u0906\u0927\u093E\u0930 \u0936\u0948\u0932\u0940",hK="\u091A\u092F\u0928 \u0938\u093E\u092B\u093C \u0915\u0930\u0947\u0902",vK="\u0906\u0930\u094B\u092A\u0923",mK="\u092A\u0930 \u092C\u0928\u093E\u092F\u093E",gK="\u0939\u091F\u093E\u090F\u0902",yK="\u0921\u093E\u0909\u0928\u0932\u094B\u0921",bK="\u0928\u093E\u092E \u0938\u0947 \u092A\u0930\u0924 \u0916\u094B\u091C\u0947\u0902",SK="\u0915\u094D\u0932\u093F\u0915 \u0915\u093F\u090F \u0917\u090F \u0938\u094D\u0925\u093E\u0928 \u092A\u0930 \u0935\u093F\u0936\u0947\u0937\u0924\u093E\u090F\u0902",xK="\u091C\u093E\u0928\u0915\u093E\u0930\u0940",EK="\u0938\u092D\u0940 \u092A\u0930\u0924\u0947\u0902",wK="\u0915\u0947\u0935\u0932 \u0936\u0940\u0930\u094D\u0937 \u092A\u0930\u0924",CK="\u092A\u0930\u0924 \u091A\u092F\u0928",LK="\u092A\u0930\u0924\u0947\u0902",TK="\u0915\u093F\u0902\u0935\u0926\u0902\u0924\u0940",_K="\u0915\u092E",kK="\u0932\u093E\u0907\u0938\u0947\u0902\u0938",MK="\u0938\u0942\u091A\u0940 \u092A\u0930\u0924\u0947\u0902",RK="\u0932\u0902\u092C\u093F\u0924",OK="\u092A\u094D\u0930\u0915\u093E\u0936\u093F\u0924",DK="\u0939\u091F\u093E\u0928\u093E",PK="\u091A\u092F\u0928\u093F\u0924",AK="\u0938\u092E\u093E\u092F\u094B\u091C\u0928",NK="\u0938\u094D\u0915\u094D\u0935\u093E\u092F\u0930",zK="\u091F\u0948\u0917",IK="\u092A\u094D\u0930\u0915\u093E\u0936\u0928 \u091F\u0949\u0917\u0932 \u0915\u0930\u0947\u0902",FK="\u0905\u092A\u0932\u094B\u0921 \u0915\u093F\u092F\u093E \u0917\u092F\u093E",jK="\u092F\u0942\u0906\u0930\u090F\u0932",UK={are_you_sure:dK,base_style:pK,clear:hK,created_by:vK,created_on:mK,delete:gK,download:yK,find_layer_by_name:bK,infobar:SK,information:xK,layer_selection_all:EK,layer_selection_top:wK,layer_selection:CK,layers:LK,legend:TK,less:_K,license:kK,list_layers:MK,pending:RK,publish:OK,remove:DK,selected:PK,settings:AK,square:NK,tags:zK,toggle:IK,uploaded:FK,url:jK},BK={en:IQ,fr:fK,hi:UK},YK={defaultViewState:ql,mapboxAccessToken:"pk.xxx",nakshaApiEndpoint:"/naksha-api/api",geoserver:{endpoint:"/geoserver",workspace:"biodiv",store:"ibp"},mapStyle:nw.MAP_STREETS,layers:[],selectedLayers:[]},qK="data:image/svg+xml,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cpath fill='%23fff' d='M0 0h72v72H0z'/%3E%3Cpath d='M35.981 48.293l-13.853-10.77-3.045 2.368L36 53.048l16.917-13.157-3.064-2.387-13.872 10.789zM36 43.519l13.834-10.77 3.083-2.388L36 17.204 19.083 30.36l3.064 2.387L36 43.518z' fill='%23A0AEC0'/%3E%3C/svg%3E",MP={display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",wordBreak:"break-word"},ZK=Bc(gr({},MP),{WebkitLineClamp:2}),Yd="ogc_fid",xT={ACTIVE:"Active",PENDING:"Pending"},_T={TOP:"layer_selection_top",ALL:"layer_selection_all"},QK=e=>e<6?[4,1,39.2]:e<7?[5,0,19.6]:e<8?[5,1,9.8]:e<9?[5,-1,4.9]:e<10?[6,0,2.45]:e<11?[6,1,1.225]:e<12?[7,0,.612]:e<13?[7,1,.306]:e<14?[7,-1,.153]:e<15?[8,0,.077]:[8,1,.039],ET="0123456789bcdefghjkmnpqrstuvwxyz",KK=(e,t,a)=>{a=a||16/2**(1-e.length&1)/4**t;let o=e.slice(0,-1),s=~~(ET.indexOf(e.slice(-1))/a);return[o+ET[a*s],o+ET[a*(s+1)-1]]},JK=function(e,t){var a=new Map,o=new Map;let s=[];for(let[f,p]of Object.entries(e)){let[h,g]=KK(f,t);o.set(h,g),a.has(h)||a.set(h,0),a.set(h,a.get(h)+p)}return a.forEach((f,p)=>{let h=Jb.GeoHash.decodeGeoHash(p),g=Jb.GeoHash.decodeGeoHash(o.get(p)),y=new RT.default({minlat:h.latitude[0],minlon:h.longitude[0],maxlat:g.latitude[1],maxlon:g.longitude[1]}).toGeoJSON();s.push(Bc(gr({},y),{properties:{count:f,[Yd]:p}}))}),s},XK=e=>{let t=[];for(let[a,o]of Object.entries(e)){let s=Jb.GeoHash.decodeGeoHash(a),f=new RT.default({minlat:s.latitude[0],minlon:s.longitude[0],maxlat:s.latitude[1],maxlon:s.longitude[1]}).toGeoJSON();t.push(Bc(gr({},f),{properties:{count:o,[Yd]:a}}))}return t},eJ=(e,t)=>({type:"FeatureCollection",features:Object.keys(e).length===0?[]:t===-1?XK(e):JK(e,t)}),tJ=(e,t)=>{let a=Object.values(e).sort((f,p)=>f-p),o=Math.floor(a.length/t),s=new Array(t-1).fill(0).map((f,p)=>a[o*(p+1)]);return s.push(a[a.length-1]),s},nJ=async(e,t,a,o)=>{let s=[];for(let f of e){let p=o.includes(f.name),h=Bc(gr({},f),{id:f.name,thumbnail:t+f.thumbnail,source:{type:f.layerType.toLowerCase()==="raster"?"raster":"vector",scheme:"tms",tiles:[`${a.endpoint}/gwc/service/tms/1.0.0/${a.workspace}:${f.name}@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf`]},data:{styles:[]},isAdded:p});if(p){let g=await RP(h,0,t,a);s.push(Bc(gr({},h),{data:g}))}else s.push(h)}return s},RP=async(e,t,a,o)=>ZD(e.data,async s=>{var f;if(s.styles.length===0){let{success:p,data:h}=await iJ(e.id,a);p&&(s.layerName=h.layerName,s.styles=h.styles,s.summaryColumn=h.summaryColumn,s.titleColumn=h.titleColumn,s.propertyMap=Object.fromEntries(h.styles.map(g=>[g.styleName,g.styleTitle])))}s.styles[t]&&!((f=s.styles[t])!=null&&f.colors)&&(s.styles[t].colors=await sJ(e.id,o==null?void 0:o.workspace,s.styles[t].styleName,a)),s.styleIndex=t}),rJ=async(e,t,a,o)=>{try{let s=await vu.get(`${t}/layer/all`,{headers:{Authorization:e}});return await nJ(s.data,t,a,o)}catch(s){return console.error(s),[]}},iJ=async(e,t)=>{try{let{data:a}=await vu.get(`${t}/layer/onClick/${e}`);return{success:!0,data:a}}catch(a){return console.error(a),{success:!1}}},aJ=async(e,t,a)=>{let o={service:"WMS",version:"1.1.1",request:"GetFeatureInfo",info_format:"application/json",width:100,height:100,x:50,y:50,srs:"EPSG:4326"};try{let s=await vu.get(`${e}/${t}/wms`,{params:gr(gr({},a),o)});return{success:!0,data:s.data}}catch(s){return console.error(s),{success:!1,data:[]}}},oJ=async(e,t,a,o)=>{try{return await vu.put(`${t}/layer/${o?"active":"pending"}/${a}`,{},{headers:{Authorization:e}}),!0}catch(s){return console.error(s),!1}},lJ=async(e,t,a)=>{try{return await vu.delete(`${t}/layer/${a}`,{headers:{Authorization:e}}),!0}catch(o){return console.error(o),!1}},sJ=async(e,t,a,o)=>{var s,f;try{return(f=(s=(await vu.get(`${o}/geoserver/workspaces/${t}/styles/${e}_${a}.mbstyle`)).data)==null?void 0:s.layers)==null?void 0:f[0]}catch(p){return console.error(p),{}}},uJ=async(e,t,a,o=6,s="YlOrRd")=>{try{let[f,p,h]=QK(a),{_ne:g,_sw:y}=t,w={top:g.lat,left:y.lng,bottom:y.lat,right:g.lng,geoAggegationPrecision:f},C=await e(w),M=eJ(C,p),_=tJ(C,o).map((A,I)=>[A,DD[s][o][I]]);return{success:!0,geojson:M,paint:{"fill-color":{property:"count",default:"yellow",stops:_},"fill-outline-color":"rgba(0,0,0,0.2)","fill-opacity":.7},stops:_,squareSize:h}}catch(f){return console.error(f),{success:!1,geojson:{},paint:{},stops:[],squareSize:0}}},cJ=async(e,t,a,o)=>{try{await vu.post(`${e}/layer/download`,{layerName:a,layerTitle:o,attributeList:[],filterArray:[]},{headers:{Authorization:t}})}catch(s){console.error(s)}},OP=$K({}),fJ=({mp:e,children:t})=>{let[a,o]=Cl(e),{mapl:s}=Oa(),[f,p]=Cl(""),h=R3(f,500),[g,y]=Cl(Us[(a==null?void 0:a.mapStyle)||0].style),[w,C]=Cl(_T.TOP),[M,_]=Cl({}),[A,I]=Cl(),[$,R]=Cl(e.layers||[]),[D,E]=Cl(a.selectedLayers||[]),[k,F]=Cl(),[U,N]=Cl(),W=GK(()=>{var de;let ie={};for(let Oe of U||[])ie[Oe.sourceLayer]=[...ie[Oe.sourceLayer]||[],(de=Oe==null?void 0:Oe.properties)==null?void 0:de[Yd]];return Object.keys(ie).length?ie:void 0},[U]),K=mP.useMemo(()=>{let de=$.filter(Oe=>D.includes(Oe.id)),ie=new Array(D.length);for(let Oe of de){let je=D.findIndex(we=>Oe.id===we);je>-1&&(ie[je]=Oe)}return ie},[$,D]),G=de=>$.findIndex(ie=>ie.id===de),re=(de,ie)=>{R(Oe=>Oe.map(je=>je.id===de?gr(gr({},je),ie):je))},Le=async(de,ie,Oe)=>{let je=$[de],we=await RP(je,ie,a.nakshaApiEndpoint,a.geoserver);re(je.id,{data:we}),Oe&&(s==null||s.fitBounds(je.bbox,{padding:40,duration:1e3}))},Y=async(de,ie)=>{let Oe=G(de);Le(Oe,ie,!1)},ue=async de=>{var ie,Oe,je,we;if(!(!D.length||!s))try{let ut=D[0],Je=s.queryRenderedFeatures(de.point,{layers:[ut]});if(Je.length){let Ve=((ie=Je[0])==null?void 0:ie.id)||((je=(Oe=Je[0])==null?void 0:Oe.properties)==null?void 0:je[Yd]);if(Ve===(k==null?void 0:k.id))return;let _t=$[G(ut)],Ae=(we=_t==null?void 0:_t.data)==null?void 0:we.summaryColumn.map(Lt=>{var tt,fn,dn;return[((fn=(tt=_t.data)==null?void 0:tt.propertyMap)==null?void 0:fn[Lt])||Lt,(dn=Je[0].properties)==null?void 0:dn[Lt]]});F({id:Ve,title:_t.title,data:Ae})}else F(void 0)}catch{}},xe=async({layerId:de,add:ie,styleIndex:Oe=0,focus:je=!0})=>{var we;if(!ie){E(D.filter(Ve=>de!==Ve));return}let ut=G(de),Je=(we=$[ut])==null?void 0:we.source.type;await Le(ut,Oe,je),E(Ve=>[de,...Ve.filter(_t=>_t!==de)])},Pe=async()=>E([]),ke=(de,ie)=>{o(Bc(gr({},a),{[de]:ie}))},V=(de,ie)=>{let Oe=ie===xT.PENDING;oJ(a.nakshaEndpointToken,a.nakshaApiEndpoint,de,Oe),re(de,{layerStatus:Oe?xT.ACTIVE:xT.PENDING})},Q=async(de,ie)=>{confirm(ie)&&(lJ(a.nakshaEndpointToken,a.nakshaApiEndpoint,de),R($.filter(Oe=>Oe.id!==de)))},le=de=>{let ie=G(de),Oe=$[ie];s==null||s.fitBounds(Oe.bbox,{padding:40,duration:1e3})},ge=()=>[A.lng,A.lat,A.lng+.1,A.lat+.1],ve=()=>{if(A)try{let de=s==null?void 0:s.project([A.lng,A.lat]),ie=s==null?void 0:s.queryRenderedFeatures(de,{layers:w===_T.TOP?[D[0]]:D});N(ie&&(ie==null?void 0:ie.length)<=0?[{sourceLayer:D[0],layerType:"raster",bbox:ge()}]:ie)}catch(de){console.error(de)}};return gP(()=>{a.onSelectedLayersChange&&a.onSelectedLayersChange(D)},[D]),gP(()=>{setTimeout(ve,300)},[A,w,D]),mP.createElement(OP.Provider,{value:{mp:a,updateMP:ke,layer:{mapStyle:g,setMapStyle:y,all:$,setAll:R,selectedIds:D,setSelectedIds:E,selectedLayers:K,clearAll:Pe,toggle:xe,updateStyle:Y,selectedFeatures:U,selectedFeaturesId:W,setSelectedFeatures:N,togglePublish:V,delete:Q,selectionStyle:w,setSelectionStyle:C,zoomToExtent:le,gridLegends:M,setGridLegends:_},query:{term:h,setTerm:p,clickedLngLat:A,setClickedLngLat:I},hover:{onHover:ue,features:k}}},t)};function Nr(){return WK(OP)}var hJ=()=>mt.createElement("svg",{fill:"none",className:We`w-5 h-5 text-gray-400`,width:"24",height:"24",viewBox:"0 0 24 24"},mt.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})),kT=()=>mt.createElement("svg",{width:"18",height:"18",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24"},mt.createElement("path",{d:"M12 2L2 7 12 12 22 7 12 2z"}),mt.createElement("path",{d:"M2 17L12 22 22 17"}),mt.createElement("path",{d:"M2 12L12 17 22 12"})),DP=()=>mt.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},mt.createElement("circle",{cx:"12",cy:"12",r:"10"}),mt.createElement("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),mt.createElement("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})),vJ=()=>mt.createElement("svg",{width:"18",height:"18",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24"},mt.createElement("path",{d:"M4 21L4 14"}),mt.createElement("path",{d:"M4 10L4 3"}),mt.createElement("path",{d:"M12 21L12 12"}),mt.createElement("path",{d:"M12 8L12 3"}),mt.createElement("path",{d:"M20 21L20 16"}),mt.createElement("path",{d:"M20 12L20 3"}),mt.createElement("path",{d:"M1 14L7 14"}),mt.createElement("path",{d:"M9 8L15 8"}),mt.createElement("path",{d:"M17 16L23 16"}));function bP(){return mt.createElement("svg",{width:"14",height:"14",viewBox:"0 0 16 16",style:{display:"inline-block"}},mt.createElement("path",{fillRule:"evenodd",fill:"currentColor",d:"M5.5 3.5a2 2 0 100 4 2 2 0 000-4zM2 5.5a3.5 3.5 0 115.898 2.549 5.507 5.507 0 013.034 4.084.75.75 0 11-1.482.235 4.001 4.001 0 00-7.9 0 .75.75 0 01-1.482-.236A5.507 5.507 0 013.102 8.05 3.49 3.49 0 012 5.5zM11 4a.75.75 0 100 1.5 1.5 1.5 0 01.666 2.844.75.75 0 00-.416.672v.352a.75.75 0 00.574.73c1.2.289 2.162 1.2 2.522 2.372a.75.75 0 101.434-.44 5.01 5.01 0 00-2.56-3.012A3 3 0 0011 4z"}))}function mJ(){return mt.createElement("svg",{width:"14",height:"14",viewBox:"0 0 16 16",style:{display:"inline-block"}},mt.createElement("path",{fillRule:"evenodd",fill:"currentColor",d:"M2.5 7.775V2.75a.25.25 0 01.25-.25h5.025a.25.25 0 01.177.073l6.25 6.25a.25.25 0 010 .354l-5.025 5.025a.25.25 0 01-.354 0l-6.25-6.25a.25.25 0 01-.073-.177zm-1.5 0V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 010 2.474l-5.026 5.026a1.75 1.75 0 01-2.474 0l-6.25-6.25A1.75 1.75 0 011 7.775zM6 5a1 1 0 100 2 1 1 0 000-2z"}))}function gJ(){return mt.createElement("svg",{width:"14",height:"14",viewBox:"0 0 16 16",style:{display:"inline-block"}},mt.createElement("path",{fillRule:"evenodd",fill:"currentColor",d:"M8.75.75a.75.75 0 00-1.5 0V2h-.984c-.305 0-.604.08-.869.23l-1.288.737A.25.25 0 013.984 3H1.75a.75.75 0 000 1.5h.428L.066 9.192a.75.75 0 00.154.838l.53-.53-.53.53v.001l.002.002.002.002.006.006.016.015.045.04a3.514 3.514 0 00.686.45A4.492 4.492 0 003 11c.88 0 1.556-.22 2.023-.454a3.515 3.515 0 00.686-.45l.045-.04.016-.015.006-.006.002-.002.001-.002L5.25 9.5l.53.53a.75.75 0 00.154-.838L3.822 4.5h.162c.305 0 .604-.08.869-.23l1.289-.737a.25.25 0 01.124-.033h.984V13h-2.5a.75.75 0 000 1.5h6.5a.75.75 0 000-1.5h-2.5V3.5h.984a.25.25 0 01.124.033l1.29.736c.264.152.563.231.868.231h.162l-2.112 4.692a.75.75 0 00.154.838l.53-.53-.53.53v.001l.002.002.002.002.006.006.016.015.045.04a3.517 3.517 0 00.686.45A4.492 4.492 0 0013 11c.88 0 1.556-.22 2.023-.454a3.512 3.512 0 00.686-.45l.045-.04.01-.01.006-.005.006-.006.002-.002.001-.002-.529-.531.53.53a.75.75 0 00.154-.838L13.823 4.5h.427a.75.75 0 000-1.5h-2.234a.25.25 0 01-.124-.033l-1.29-.736A1.75 1.75 0 009.735 2H8.75V.75zM1.695 9.227c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L3 6.327l-1.305 2.9zm10 0c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L13 6.327l-1.305 2.9z"}))}function yJ(){return mt.createElement("svg",{viewBox:"0 0 16 16",width:"14",height:"14",style:{display:"inline-block"}},mt.createElement("path",{fillRule:"evenodd",fill:"currentColor",d:"M1.679 7.932c.412-.621 1.242-1.75 2.366-2.717C5.175 4.242 6.527 3.5 8 3.5c1.473 0 2.824.742 3.955 1.715 1.124.967 1.954 2.096 2.366 2.717a.119.119 0 010 .136c-.412.621-1.242 1.75-2.366 2.717C10.825 11.758 9.473 12.5 8 12.5c-1.473 0-2.824-.742-3.955-1.715C2.92 9.818 2.09 8.69 1.679 8.068a.119.119 0 010-.136zM8 2c-1.981 0-3.67.992-4.933 2.078C1.797 5.169.88 6.423.43 7.1a1.619 1.619 0 000 1.798c.45.678 1.367 1.932 2.637 3.024C4.329 13.008 6.019 14 8 14c1.981 0 3.67-.992 4.933-2.078 1.27-1.091 2.187-2.345 2.637-3.023a1.619 1.619 0 000-1.798c-.45-.678-1.367-1.932-2.637-3.023C11.671 2.992 9.981 2 8 2zm0 8a2 2 0 100-4 2 2 0 000 4z"}))}function bJ(){return mt.createElement("svg",{viewBox:"0 0 16 16",width:"14",height:"14",style:{display:"inline-block"}},mt.createElement("path",{fillRule:"evenodd",fill:"currentColor",d:"M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zm.5 4.75a.75.75 0 00-1.5 0v3.5a.75.75 0 00.471.696l2.5 1a.75.75 0 00.557-1.392L8.5 7.742V4.75z"}))}function SJ(){return mt.createElement("svg",{viewBox:"0 0 16 16",width:"16",height:"16",style:{display:"inline-block"}},mt.createElement("path",{fillRule:"evenodd",fill:"currentColor",d:"M7.47 10.78a.75.75 0 001.06 0l3.75-3.75a.75.75 0 00-1.06-1.06L8.75 8.44V1.75a.75.75 0 00-1.5 0v6.69L4.78 5.97a.75.75 0 00-1.06 1.06l3.75 3.75zM3.75 13a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5z"}))}function xJ(){return mt.createElement("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{display:"inline-block"}},mt.createElement("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"}))}function EJ(){return mt.createElement("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{display:"inline-block"}},mt.createElement("circle",{cx:"18",cy:"5",r:"3"}),mt.createElement("circle",{cx:"6",cy:"12",r:"3"}),mt.createElement("circle",{cx:"18",cy:"19",r:"3"}),mt.createElement("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),mt.createElement("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"}))}function wJ(){return mt.createElement("svg",{viewBox:"0 0 16 16",width:"16",height:"16",style:{display:"inline-block"}},mt.createElement("path",{fillRule:"evenodd",d:"M10 13a1 1 0 100-2 1 1 0 000 2zm-4 0a1 1 0 100-2 1 1 0 000 2zm1-5a1 1 0 11-2 0 1 1 0 012 0zm3 1a1 1 0 100-2 1 1 0 000 2zm1-5a1 1 0 11-2 0 1 1 0 012 0zM6 5a1 1 0 100-2 1 1 0 000 2z"}))}function CJ(){return mt.createElement("svg",{style:{display:"inline-block"},width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},mt.createElement("circle",{cx:"12",cy:"12",r:"10"}),mt.createElement("line",{x1:"22",y1:"12",x2:"18",y2:"12"}),mt.createElement("line",{x1:"6",y1:"12",x2:"2",y2:"12"}),mt.createElement("line",{x1:"12",y1:"6",x2:"12",y2:"2"}),mt.createElement("line",{x1:"12",y1:"22",x2:"12",y2:"18"}))}function LJ(){return mt.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{display:"inline-block"}},mt.createElement("polyline",{points:"6 9 12 15 18 9"}))}function TJ(){return mt.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{display:"inline-block"}},mt.createElement("polyline",{points:"18 15 12 9 6 15"}))}var fm=Hc.forwardRef((e,t)=>Hc.createElement("button",gr({ref:t,type:"button",className:We`h-8 px-3 py-2 rounded-md focus:outline-none focus:ring cursor-pointer text-md flex align-middle items-center gap-2 bg-gray-100 hover:bg-gray-200 text-gray-700 disabled:cursor-not-allowed disabled:bg-gray-100! disabled:opacity-50`},e))),PP=e=>Hc.createElement("button",gr({className:We`absolute top-0 right-0 h-12 w-12 bg-red-100 cursor-pointer hover:bg-red-200 text-red-800 text-lg`,children:"\u2715"},e)),_J=e=>Hc.createElement("button",gr({className:We`absolute top-4 left-4 rounded-lg z-10 h-10 w-10 bg-white cursor-pointer hover:bg-gray-100 text-gray-700 text-lg flex items-center justify-center`},e),Hc.createElement(kT,null)),kJ=e=>Hc.createElement("button",gr({className:We`absolute top-4 right-4 rounded-lg z-10 h-10 w-10 bg-white cursor-pointer hover:bg-gray-100 text-gray-700 text-lg flex items-center justify-center`},e),Hc.createElement(DP,null)),OT=e=>lo.createElement("div",null,e.label&&lo.createElement("label",{className:We`text-gray-700`,htmlFor:e.name},e.label),lo.createElement("select",gr({id:e.name,name:e.name,className:We`block w-full px-4 py-2 mt-2 text-gray-700 border bg-white border-gray-200 rounded-md focus:outline-none focus:ring appearance-none text-base`,style:{backgroundImage:`url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E")`,backgroundPosition:"right 0.75rem center",backgroundSize:"16px 12px",backgroundRepeat:"no-repeat"}},e))),MJ=e=>lo.createElement("div",{className:"relative"},lo.createElement("span",{className:We`absolute inset-y-0 left-0 flex items-center pl-3`},lo.createElement(hJ,null)),lo.createElement("input",gr({type:"search",className:We`w-full py-2 pl-10 pr-4 text-gray-700 bg-white border border-gray-300 text-base rounded-md focus:outline-none focus:ring`},e))),RJ=e=>e.isLoading?lo.createElement("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",className:We`inline text-gray-200 animate-spin dark:text-gray-600`},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("g",{fill:"#212121",fillRule:"nonzero"},lo.createElement("path",{d:"M10,3 C6.13401,3 3,6.13401 3,10 C3,10.2761 2.77614,10.5 2.5,10.5 C2.22386,10.5 2,10.2761 2,10 C2,5.58172 5.58172,2 10,2 C14.4183,2 18,5.58172 18,10 C18,14.4183 14.4183,18 10,18 C9.72386,18 9.5,17.7761 9.5,17.5 C9.5,17.2239 9.72386,17 10,17 C13.866,17 17,13.866 17,10 C17,6.13401 13.866,3 10,3 Z"})))):lo.createElement("input",{type:"checkbox",className:We`w-5 h-5 border-gray-100 focus:outline-none focus:ring focus:ring-blue-300 focus:ring-opacity-80`,name:e.name,checked:e.checked,onChange:e.onChange}),wT=({children:e,icon:t})=>{let{onClick:a,isActive:o}=XD(),s=Id(["flex items-center justify-center h-12 px-2 py-2 bg-transparent -mb-px border-b-2 -px-1 whitespace-nowrap focus:outline-none w-full cursor-pointer",{"text-blue-600 border-blue-500":o,"text-gray-700 border-gray-300 hover:border-gray-400":!o}]);return Xb.createElement("button",{className:We(s),onClick:a},t,Xb.createElement("span",{className:We`ml-2 text-base`},e))},CT=({children:e})=>e8()?Xb.createElement("div",{className:We`w-full flex flex-grow-1 overflow-auto`},e):null,OJ=({children:e})=>Xb.createElement("div",{className:We`flex flex-shrink-0 border-b border-gray-200 justify-around pr-12`},e);function AP({hideLabel:e}){let{layer:t}=Nr(),{t:a}=Br(),o=s=>{t.setSelectionStyle(s.target.value)};return SP.createElement(OT,{name:"layer_selection",label:e?null:a("layer_selection"),defaultValue:t.selectionStyle,onChange:o},Object.values(_T).map(s=>SP.createElement("option",{key:s,value:s},a(s))))}function PJ({data:e}){let[t,a]=xP(!0),[o,s]=xP({title:e.sourceLayer,properties:[]}),{layer:f,mp:p}=Nr(),h=async()=>{var g,y,w,C,M,_;let A,I=f.selectedLayers.find($=>$.id===(e.sourceLayer||e.source));if(I.layerType.toLowerCase()==="raster"){let{data:$}=await aJ((g=p.geoserver)==null?void 0:g.endpoint,(y=p.geoserver)==null?void 0:y.workspace,{bbox:e.bbox.toString(),query_layers:`${(w=p.geoserver)==null?void 0:w.workspace}:${I.id}`,layers:`${(C=p.geoserver)==null?void 0:C.workspace}:${I.id}`});A=$!=null&&$.features[0]?Object.entries((M=$.features[0])==null?void 0:M.properties).map(([R,D])=>[R,D||"-"]):[]}else A=Object.entries(((_=I==null?void 0:I.data)==null?void 0:_.propertyMap)||{}).map(([$,R])=>{var D;return[R,(D=e==null?void 0:e.properties)==null?void 0:D[$]]});s({title:I.title,properties:A})};return DJ(()=>{h()},[]),bu.createElement("div",{className:We`bg-gray-100 rounded-lg`},bu.createElement("button",{className:We(Id(["px-4 h-10 flex items-center justify-between bg-gray-100 hover:bg-gray-200 transition-colors cursor-pointer w-full focus:outline-none focus:ring",{"bg-gray-200 rounded-t-lg":t,"rounded-lg":!t}])),onClick:()=>a(!t)},o.title," ",t?bu.createElement(TJ,null):bu.createElement(LJ,null)),t&&bu.createElement("div",{className:We`px-4 py-3 flex flex-col gap-3`},o.properties.map(([g,y],w)=>bu.createElement("div",{key:g+y+w},bu.createElement("div",{className:We`text-gray-600`},g),bu.createElement("div",null,y)))))}function AJ({onClose:e}){let{layer:t}=Nr(),{t:a}=Br();return cs.createElement("div",{className:We`absolute top-0 right-0 bottom-0 left-0 md:top-4 md:right-4 md:bottom-4 md:left-auto bg-white rounded-lg overflow-hidden shadow-md md:max-w-sm w-full z-20 flex flex-col`},cs.createElement("div",{className:"flex w-full"},cs.createElement("div",{className:We`h-12 px-4 flex items-center gap-3 flex-grow bg-gray-200`},cs.createElement(CJ,null)," ",a("infobar")),cs.createElement(PP,{onClick:e})),cs.createElement("div",{className:We`bg-gray-100 p-4 flex-shrink-0 rt`},cs.createElement(AP,{hideLabel:!0})),cs.createElement("div",{className:We`flex flex-col flex-grow overflow-auto gap-3 p-4`},t.selectedFeatures.map(o=>cs.createElement(PJ,{key:o.sourceLayer+(o==null?void 0:o.properties)?0:o==null?void 0:o.properties[Yd],data:o}))))}function NJ(){var e;let{layer:t,query:{clickedLngLat:a}}=Nr(),[o,s]=pJ(!0);if(!((e=t.selectedFeatures)!=null&&e.length))return null;let f=()=>s(!o);return dJ(()=>{var p;((p=t.selectedFeatures[0])==null?void 0:p.layerType)==="raster"&&f()},[a]),o?yP.createElement(AJ,{onClose:f}):yP.createElement(kJ,{onClick:f})}var UJ=({text:e="",highlight:t=""})=>{if(!t.trim())return Wd.createElement(Wd.Fragment,null,e);let a=new RegExp(`(${t})`,"gi"),o=e.split(a);return Wd.createElement(Wd.Fragment,null,o.filter(s=>s).map((s,f)=>a.test(s)?Wd.createElement("mark",{key:f},s):Wd.createElement("span",{key:f},s)))};function NP({children:e}){let[t,a]=BJ(!1),{t:o}=Br();return CP.createElement("div",null,t&&e,CP.createElement("button",{onClick:()=>a(!t),className:We`text-blue-600 focus:outline-none focus:outline focus:ring`},o(t?"less":"legend")))}function HJ({item:e}){let{layer:t}=Nr(),a=t.gridLegends[e.id];return a?xu.createElement(NP,null,xu.createElement("ul",{style:{margin:0,padding:0}},a==null?void 0:a.stops.map(([o,s],f,p)=>{let h=(p[f-1]||[0])[0];return h===o?xu.createElement("div",{key:s}):xu.createElement("li",{className:We`flex gap-2 items-center mb-1`,key:s},xu.createElement("svg",{viewBox:"0 0 24 24",height:"14",width:"14",focusable:"false"},xu.createElement("circle",{cx:"12",fill:s,cy:"12",r:"12",stroke:"none"})),xu.createElement("div",null,h," - ",o))}),xu.createElement("li",null,"1 Square = ",a==null?void 0:a.squareSize," x ",a==null?void 0:a.squareSize," km"))):null}var Gd=({icon:e,name:t,title:a,link:o,children:s})=>{let f=or.createElement("span",null,s||"-");return or.createElement("div",{className:We`flex gap-3 text-sm text-gray-600 break-all`,title:t&&a&&`${t}: ${a}`},or.createElement("div",null,e),o?or.createElement("a",{className:We`text-blue-700 focus:outline-none focus:ring`,target:"_blank",rel:"noopener",href:o},f):f)};function $J({item:e,containerStyle:t}){var a;let{t:o}=Br(),{layer:s,mp:f}=Nr(),p=e.license||"CC-BY",h=(e==null?void 0:e.createdDate)&&new Date(e.createdDate).toLocaleDateString(),g=(a=e.tags)==null?void 0:a.join(", ");return or.createElement("div",{className:We`flex flex-col gap-1 bg-white p-4 rounded-lg w-72 border border-gray-300 border-solid`,style:t},f.managePublishing&&e.layerStatus&&or.createElement(Gd,{icon:or.createElement(yJ,null),name:o("visiblity"),title:e.layerStatus},e.layerStatus,or.createElement("button",{className:We`text-blue-600 focus:outline-none ml-4`,onClick:()=>s.togglePublish(e.id,e==null?void 0:e.layerStatus)},o("toggle")),or.createElement("button",{className:We`text-red-600 focus:outline-none ml-4`,onClick:()=>s.delete(e.id,o("are_you_sure"))},o("delete"))),or.createElement(Gd,{icon:or.createElement(bP,null),link:e.url,name:o("uploader"),title:e.createdBy},e.createdBy),or.createElement(Gd,{icon:or.createElement(bP,null),link:e.url,name:o("created_by"),title:e.attribution},e.attribution),or.createElement(Gd,{icon:or.createElement(bJ,null),name:o("created_on"),title:h},h),or.createElement(Gd,{icon:or.createElement(mJ,null),name:o("tags"),title:g,children:g}),or.createElement(Gd,{name:o("license"),title:p,link:p&&_3[p],icon:or.createElement(gJ,null)},p))}var WJ=({item:e})=>{let[t,a]=VJ(!1),o=()=>a(!t);return or.createElement(zP.Popover,{isOpen:t,padding:10,positions:["right"],containerStyle:{zIndex:99},onClickOutside:o,content:or.createElement($J,{item:e})},or.createElement(fm,{onClick:o,children:or.createElement(DP,null),title:"Information"}))};function YJ({item:e}){let t=GJ(()=>{var a,o,s,f,p,h,g,y,w,C,M,_;return((h=(p=(f=(s=(o=(a=e==null?void 0:e.data)==null?void 0:a.styles)==null?void 0:o[e.data.styleIndex])==null?void 0:s.colors)==null?void 0:f.paint)==null?void 0:p["fill-color"])==null?void 0:h.stops)||((_=(M=(C=(w=(y=(g=e==null?void 0:e.data)==null?void 0:g.styles)==null?void 0:y[e.data.styleIndex])==null?void 0:w.colors)==null?void 0:C.paint)==null?void 0:M["circle-color"])==null?void 0:_.stops)||[]},[e]);return cm.createElement("ul",{style:{margin:0,padding:0}},t.map(([a,o])=>cm.createElement("li",{className:We`flex gap-2 items-center mb-1`,key:o},cm.createElement("svg",{viewBox:"0 0 24 24",height:"14",width:"14",focusable:"false"},cm.createElement("circle",{cx:"12",fill:o,cy:"12",r:"12",stroke:"none"})),cm.createElement("div",null,a))))}function qJ({item:e}){var t,a;if(!((t=e.data)!=null&&t.styles))return null;let{layer:o}=Nr(),s=f=>{o.updateStyle(e.id,Number(f.target.value))};return um.createElement("div",{className:We`flex flex-col gap-4 pt-2`},um.createElement(OT,{onChange:s},(a=e.data)==null?void 0:a.styles.map((f,p)=>um.createElement("option",{key:p,value:p},f.styleTitle))),um.createElement(NP,null,um.createElement(YJ,{item:e})))}var ZJ=H8(()=>Xn.createElement("div",{className:We`mt-1 w-6 text-center cursor-move`},Xn.createElement(wJ,null)));function IP({item:e,extended:t}){let{t:a}=Br(),{layer:o,query:s,mp:f}=Nr(),[p,h]=wP(o.selectedIds.includes(e.id)),[g,y]=wP(!1),w=jJ(()=>f.canLayerShare?{url:`${window.location.href.split("?")[0]}?layers=${e.id}`,title:e.title}:void 0,[e.id]),C=async()=>{y(!0),await o.toggle({layerId:e.id,add:!p}),h(!p),y(!1)},M=async()=>{await cJ(f.nakshaApiEndpoint,f.nakshaEndpointToken,e.id,e.title),f==null||f.onLayerDownload(e.id)},_=()=>o.zoomToExtent(e.id);return Xn.createElement("div",{className:We`z-20 p-3 bg-white`,style:{borderTop:"1px solid #e5e7eb"}},Xn.createElement("div",{className:We`flex gap-3`},Xn.createElement("div",{className:We`flex-shrink-0`},Xn.createElement(RJ,{name:e.id,checked:p,onChange:C,isLoading:g}),t&&Xn.createElement(ZJ,null)),Xn.createElement("img",{className:We`flex-shrink-0 overflow-hidden h-16 w-16 p-1 mb-2 object-cover border border-gray-200 rounded`,src:e.thumbnail||qK}),Xn.createElement("div",null,Xn.createElement("div",{title:e.title,className:We`mb-1 leading-tight`,style:MP},Xn.createElement(UJ,{text:e.title,highlight:s.term})),Xn.createElement("p",{title:e.description,className:We`text-gray-600 text-sm`,style:ZK},e.description))),Xn.createElement("div",{className:We`flex justify-between`},Xn.createElement(fm,{onClick:M,disabled:!e.isDownloadable},Xn.createElement(SJ,null)," ",a("download")),Xn.createElement("div",{className:We`flex gap-3`},w&&Xn.createElement(X8,{data:w},Xn.createElement(fm,{title:"Share",children:Xn.createElement(EJ,null)})),t&&Xn.createElement(fm,{onClick:_,title:"Zoom To Extent",children:Xn.createElement(xJ,null)}),Xn.createElement(WJ,{item:e}))),t&&Xn.createElement(qJ,{item:e}),t&&e.source.type==="grid"&&Xn.createElement(HJ,{item:e}))}function QJ(){let{layer:e,query:t}=Nr(),a=FJ(()=>t.term?e.all.filter(f=>f.title.toLowerCase().includes(t.term.toLowerCase())):e.all,[e.all,t.term]),o=Su.useRef(),s=r8({size:a.length,parentRef:o});return Su.createElement("div",{className:We`flex-grow-1 relative`},Su.createElement(u8,{disableWidth:!0},f=>Su.createElement("div",{ref:o,className:"List",style:{height:f.height,overflow:"auto"}},Su.createElement("div",{style:{height:s.totalSize,width:"100%",position:"relative"}},s.virtualItems.map(p=>Su.createElement("div",{key:p.index,ref:p.measureRef,className:We`absolute top-0 left-0 w-full`,style:{transform:`translateY(${p.start}px)`}},Su.createElement("div",{style:{height:146}},Su.createElement(IP,{item:a[p.index]}))))))))}function KJ(){let{t:e}=Br(),{query:t}=Nr(),a=o=>t.setTerm(o.target.value);return LP.createElement("div",{className:We`flex-shrink-0 border-b-2 p-4`},LP.createElement(MJ,{name:"lyr_search",placeholder:e("find_layer_by_name"),onChange:a}))}function JJ(){return LT.createElement("div",{className:We`flex flex-col w-full`},LT.createElement(KJ,null),LT.createElement(QJ,null))}function XJ(e,t,a){let o=t<0?e.length+t:t;if(o>=0&&o<e.length){let s=a<0?e.length+a:a,[f]=e.splice(t,1);e.splice(s,0,f)}}function eX(e,t,a){return e=[...e],XJ(e,t,a),e}var tX=q8(({item:e,extended:t})=>MT.createElement(IP,{item:e,extended:t})),nX=G8(({layerList:e})=>MT.createElement("div",null,e.map((t,a)=>MT.createElement(tX,{key:t.id,index:a,item:t,extended:!0}))));function rX(){let{layer:e}=Nr(),{t}=Br(),a=({oldIndex:o,newIndex:s})=>{e.setSelectedIds(eX(e.selectedIds,o,s))};return qb.createElement("div",{className:We`flex flex-col gap-3 w-full`},e.selectedIds.length>0&&qb.createElement("div",{className:We`p-3 pb-0`},qb.createElement(fm,{onClick:()=>e.clearAll()},"\u2715 ",t("clear"))),qb.createElement(nX,{layerList:e.selectedLayers,useDragHandle:!0,onSortEnd:a}))}function iX(){let{layer:e}=Nr(),{t}=Br(),a=o=>e.setMapStyle(o.target.value);return Zb.createElement("div",{className:We`w-full p-4 flex flex-col gap-4`},Zb.createElement(OT,{name:"base_style",label:t("base_style"),defaultValue:e.mapStyle,onChange:a},Us.map(o=>Zb.createElement("option",{key:o.key,value:o.style},o.text))),Zb.createElement(AP,null))}function aX({onClose:e}){let{t}=Br();return ci.createElement("div",{className:We`absolute top-0 right-0 bottom-0 left-0 md:right-auto md:top-4 md:left-4 md:bottom-4 bg-white rounded-lg shadow-md md:max-w-sm w-full z-20 overflow-hidden`},ci.createElement(PP,{onClick:e}),ci.createElement("div",{className:We`flex flex-col h-full`},ci.createElement(JD,null,ci.createElement(OJ,null,ci.createElement(wT,{icon:ci.createElement(kT,null)},t("layers")),ci.createElement(wT,{icon:ci.createElement(kT,null)},t("selected")),ci.createElement(wT,{icon:ci.createElement(vJ,null)},t("settings"))),ci.createElement(CT,null,ci.createElement(JJ,null)),ci.createElement(CT,null,ci.createElement(rX,null)),ci.createElement(CT,null,ci.createElement(iX,null)))))}function oX(){let{mp:e,layer:t}=Nr(),[a,o]=IJ(e.showToC),{mapl:s}=Oa(),f=()=>o(!a);async function p(){let h=await rJ(e.nakshaEndpointToken,e.nakshaApiEndpoint,e.geoserver,e.selectedLayers),g=[...e.layers||[],...h];if(t.setAll(g),t.selectedIds.length){let y=g.find(w=>w.id===t.selectedIds[0]);y!=null&&y.bbox&&(s==null||s.fitBounds(y.bbox,{padding:40,duration:1e3}))}}return zJ(()=>{s&&e.loadToC&&p()},[s]),a?EP.createElement(aX,{onClose:f}):EP.createElement(_J,{onClick:f})}function uX({data:e,beforeId:t}){let{layer:a}=Nr(),{mapl:o}=Oa(),[s,f]=sX({geojson:{},paint:{}}),p=async()=>{let{success:h,geojson:g,paint:y,stops:w,squareSize:C}=await uJ(e.source.fetcher,o==null?void 0:o.getBounds(),o==null?void 0:o.getZoom());h&&(f({geojson:g,paint:y}),a.setGridLegends({[e.id]:{stops:w,squareSize:C}}))};return lX(()=>{o==null||o.on("idle",p)},[]),TP.createElement(Bo,{id:e.id,type:"geojson",data:s.geojson},TP.createElement(Ti,{beforeId:t,id:e.id,type:"fill",paint:s.paint}))}var fX={fill:{"line-color":"red","line-width":2},circle:{"circle-stroke-color":"red","circle-stroke-width":2,"circle-opacity":0}};function _P({layer:e,beforeId:t}){var a;let{layer:o}=Nr(),s=cX(()=>{var p,h,g,y;return(y=(g=(p=e.data)==null?void 0:p.styles)==null?void 0:g[(h=e.data)==null?void 0:h.styleIndex])==null?void 0:y.colors},[e,o.selectedFeatures]),f=(a=o.selectedFeaturesId)==null?void 0:a[e.id];return TT.createElement(Bo,gr({},e.source),s&&TT.createElement(Ti,gr({beforeId:t},s)),f&&s&&TT.createElement(Ti,Bc(gr({},s),{beforeId:t,id:`hl_${e.id}`,filter:["in",Yd,...f],type:s.type==="fill"?"line":s.type,paint:fX[s.type]})))}function dX({data:e,beforeId:t}){var a;let{mp:o}=Nr();return kP.createElement(Bo,{id:e.id,type:"raster",tiles:[`${(a=o==null?void 0:o.geoserver)==null?void 0:a.endpoint}/wms?bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&srs=EPSG:3857&width=256&height=256&transparent=true&layers=biodiv:${e.id}`],tileSize:256},kP.createElement(Ti,{id:e.id,beforeId:t,type:"raster",source:"biodiv",layout:{visibility:"visible"},paint:{}}))}function pX({layer:e,beforeId:t}){let{mapl:a}=Oa();if(!a)return null;switch(e.source.type){case"vector":return Qb.createElement(_P,{beforeId:t,layer:e});case"grid":return Qb.createElement(uX,{beforeId:t,data:e});case"raster":return Qb.createElement(dX,{beforeId:t,data:e});default:return Qb.createElement(_P,{beforeId:t,layer:e})}}var vX=r2,mX=()=>{let{mp:e}=Nr(),t=hX(()=>e.markers,[e.markers]);return Kb.createElement(Kb.Fragment,null,t==null?void 0:t.map(({latitude:a,longitude:o,colorHex:s},f)=>Kb.createElement(vX,{key:f,latitude:a,longitude:o},Kb.createElement("img",{style:{cursor:"pointer"},alt:"Marker",src:`https://a.tiles.mapbox.com/v4/marker/pin-m+${s}.png?access_token=${e.mapboxAccessToken}`}))))},gX=mX,yX=i2;function bX({coordinates:e}){let{hover:t}=Nr();return(e==null?void 0:e.lat)&&t.features?fs.createElement(yX,{latitude:e.lat,longitude:e.lng,closeButton:!1},fs.createElement("table",{className:We`table-auto border`},fs.createElement("thead",null,fs.createElement("tr",null,fs.createElement("th",{className:We`bg-gray-200 py-1 px-2`,colSpan:2},t.features.title))),fs.createElement("tbody",null,t.features.data.map(([a,o],s)=>fs.createElement("tr",{key:a+o,className:We(Id({"bg-gray-50":s%2===0,"border-gray-100 border-t":1}))},fs.createElement("td",{className:We`py-1 px-2`},a),fs.createElement("td",{className:We`py-1 px-2 border-l border-gray-100`},o)))))):null}var SX=Cc;function xX(){var e;let{mp:t,layer:a,hover:o,query:s}=Nr(),[f,p]=VK(),h=HK(()=>t.defaultViewState||ql,[t.defaultViewState]),g=w=>s.setClickedLngLat(w.lngLat),y=w=>{p(w.lngLat),o.onHover(w)};return yu.createElement("div",{className:We`h-full w-full relative bg-gray-100`},t.loadToC&&yu.createElement(oX,null),((e=a.selectedFeatures)==null?void 0:e.length)>0&&yu.createElement(NJ,null),yu.createElement(fu,{id:"mapl",cursor:"default",initialViewState:h,mapboxAccessToken:t.mapboxAccessToken,style:{width:"100%",height:"100%"},mapStyle:a.mapStyle,onClick:g,onMouseMove:y},yu.createElement(SX,{position:"bottom-right",showZoom:!0,showCompass:!0}),yu.createElement(gX,null),a.selectedLayers.map((w,C)=>{let M=C>0?a.selectedIds[C-1]:void 0;return yu.createElement(pX,{key:w.id,layer:w,beforeId:M})}),yu.createElement(bX,{key:"popup",coordinates:f})))}OD({preflight:!1});var foe=e=>{let t=sm.useMemo(()=>gr(gr({},YK),e),[e]);return sm.createElement(wc,null,sm.createElement(M3,{localeStrings:BK,lang:t.lang},sm.createElement(fJ,{mp:t},sm.createElement(xX,null))))};import UP from"react";import qd,{useEffect as LX,useState as BP}from"react";var EX=Object.defineProperty,FP=Object.getOwnPropertySymbols,wX=Object.prototype.hasOwnProperty,CX=Object.prototype.propertyIsEnumerable,jP=(e,t,a)=>t in e?EX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,e1=(e,t)=>{for(var a in t||(t={}))wX.call(t,a)&&jP(e,a,t[a]);if(FP)for(var a of FP(t))CX.call(t,a)&&jP(e,a,t[a]);return e},TX={id:"data",type:"fill",paint:{"fill-color":"#f03b20","fill-opacity":.2},filter:["==",["geometry-type"],"Polygon"]},_X={type:"circle",paint:{"circle-radius":8,"circle-color":"#f03b20","circle-opacity":.8},filter:["==",["geometry-type"],"Point"]},kX={type:"line",paint:{"line-color":"#f03b20","line-width":1.6,"line-dasharray":[6,3],"line-opacity":.8},filter:["==",["geometry-type"],"LineString"]},MX=Cc;function RX(e){let{mapv:t}=Oa(),[a]=BP(Us[(e==null?void 0:e.mapStyle)||0].style),[o]=BP(e.defaultViewState||ql),s=()=>{if(!e.data||!t)return;let f=cu(e.data);t.fitBounds(f,{padding:40,duration:1e3})};return LX(()=>{s()},[e.data]),qd.createElement(fu,{id:"mapv",cursor:"default",initialViewState:o,mapboxAccessToken:e.mapboxAccessToken,style:{width:"100%",height:"100%"},mapStyle:a,onLoad:s},qd.createElement(MX,{position:"bottom-right",showZoom:!0,showCompass:!0}),e.data&&qd.createElement(Bo,{type:"geojson",data:e.data},qd.createElement(Ti,e1({},_X)),qd.createElement(Ti,e1({},kX)),qd.createElement(Ti,e1({},TX))))}var boe=e=>UP.createElement(wc,null,UP.createElement(RX,e1({},e)));export{T3 as GMAPS_AUTOCOMPLETE_FIELDS,Uh as GMAPS_LIBRARIES,Bi as GMAP_FEATURE_TYPES,_3 as LICENSES,nw as MapStyles,Mee as NakshaGmapsDraw,Nee as NakshaGmapsView,Lne as NakshaMapboxDraw,foe as NakshaMapboxList,boe as NakshaMapboxView,M3 as TranslationProvider,NX as adminBoundries,Us as defaultMapStyles,ql as defaultViewState,FX as formatDate,DB as getByPath,xy as mapboxToGmapsViewState,R3 as useDebounce,Br as useT};
154
+ /*
155
+ object-assign
156
+ (c) Sindre Sorhus
157
+ @license MIT
158
+ */
159
+ /*! *****************************************************************************
160
+ Copyright (c) Microsoft Corporation.
161
+
162
+ Permission to use, copy, modify, and/or distribute this software for any
163
+ purpose with or without fee is hereby granted.
164
+
165
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
166
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
167
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
168
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
169
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
170
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
171
+ PERFORMANCE OF THIS SOFTWARE.
172
+ ***************************************************************************** */
173
+ /**
174
+ * @license React
175
+ * react-dom.development.js
176
+ *
177
+ * Copyright (c) Facebook, Inc. and its affiliates.
178
+ *
179
+ * This source code is licensed under the MIT license found in the
180
+ * LICENSE file in the root directory of this source tree.
181
+ */
182
+ /**
183
+ * @license React
184
+ * react-dom.production.min.js
185
+ *
186
+ * Copyright (c) Facebook, Inc. and its affiliates.
187
+ *
188
+ * This source code is licensed under the MIT license found in the
189
+ * LICENSE file in the root directory of this source tree.
190
+ */
191
+ /**
192
+ * @license React
193
+ * react-jsx-runtime.development.js
194
+ *
195
+ * Copyright (c) Facebook, Inc. and its affiliates.
196
+ *
197
+ * This source code is licensed under the MIT license found in the
198
+ * LICENSE file in the root directory of this source tree.
199
+ */
200
+ /**
201
+ * @license React
202
+ * react-jsx-runtime.production.min.js
203
+ *
204
+ * Copyright (c) Facebook, Inc. and its affiliates.
205
+ *
206
+ * This source code is licensed under the MIT license found in the
207
+ * LICENSE file in the root directory of this source tree.
208
+ */
209
+ /**
210
+ * @license React
211
+ * scheduler.development.js
212
+ *
213
+ * Copyright (c) Facebook, Inc. and its affiliates.
214
+ *
215
+ * This source code is licensed under the MIT license found in the
216
+ * LICENSE file in the root directory of this source tree.
217
+ */
218
+ /**
219
+ * @license React
220
+ * scheduler.production.min.js
221
+ *
222
+ * Copyright (c) Facebook, Inc. and its affiliates.
223
+ *
224
+ * This source code is licensed under the MIT license found in the
225
+ * LICENSE file in the root directory of this source tree.
226
+ */
227
+ /**
228
+ * Checks if an event is supported in the current execution environment.
229
+ *
230
+ * NOTE: This will not work correctly for non-generic events such as `change`,
231
+ * `reset`, `load`, `error`, and `select`.
232
+ *
233
+ * Borrows from Modernizr.
234
+ *
235
+ * @param {string} eventNameSuffix Event name, e.g. "click".
236
+ * @return {boolean} True if the event is supported.
237
+ * @internal
238
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
239
+ */
240
+ /** @license React v16.13.1
241
+ * react-is.development.js
242
+ *
243
+ * Copyright (c) Facebook, Inc. and its affiliates.
244
+ *
245
+ * This source code is licensed under the MIT license found in the
246
+ * LICENSE file in the root directory of this source tree.
247
+ */
248
+ /** @license React v16.13.1
249
+ * react-is.production.min.js
250
+ *
251
+ * Copyright (c) Facebook, Inc. and its affiliates.
252
+ *
253
+ * This source code is licensed under the MIT license found in the
254
+ * LICENSE file in the root directory of this source tree.
255
+ */