diff --git a/dist/PAWS.png b/dist/PAWS.png new file mode 100644 index 00000000..caaf9b25 Binary files /dev/null and b/dist/PAWS.png differ diff --git a/dist/assets/Map-CsvriB2Z.js b/dist/assets/Map-CsvriB2Z.js new file mode 100644 index 00000000..1b651c1f --- /dev/null +++ b/dist/assets/Map-CsvriB2Z.js @@ -0,0 +1 @@ +import{c as k,l as d,a as p,e as h,b as x,r as u,L as b,j as g,M as z,T as M,P as r}from"./index-DiDRyuqP.js";const C=k(function({position:t,...e},c){const o=new d.Marker(t,e);return p(o,h(c,{overlayContainer:o}))},function(t,e,c){e.position!==c.position&&t.setLatLng(e.position),e.icon!=null&&e.icon!==c.icon&&t.setIcon(e.icon),e.zIndexOffset!=null&&e.zIndexOffset!==c.zIndexOffset&&t.setZIndexOffset(e.zIndexOffset),e.opacity!=null&&e.opacity!==c.opacity&&t.setOpacity(e.opacity),t.dragging!=null&&e.draggable!==c.draggable&&(e.draggable===!0?t.dragging.enable():t.dragging.disable())}),m=x(function(t,e){const c=new d.Popup(t,e.overlayContainer);return p(c,e)},function(t,e,{position:c},o){u.useEffect(function(){const{instance:a}=t;function i(s){s.popup===a&&(a.update(),o(!0))}function A(s){s.popup===a&&o(!1)}return e.map.on({popupopen:i,popupclose:A}),e.overlayContainer==null?(c!=null&&a.setLatLng(c),a.openOn(e.map)):e.overlayContainer.bindPopup(a),function(){var l;e.map.off({popupopen:i,popupclose:A}),(l=e.overlayContainer)==null||l.unbindPopup(),e.map.removeLayer(a)}},[t,e,o,c])}),w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",E="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC";delete b.Icon.Default.prototype._getIconUrl;b.Icon.Default.mergeOptions({iconRetinaUrl:w,iconUrl:E,shadowUrl:N});const B=({zoom:n=13,customCenter:t})=>{const[e,c]=u.useState(0),[o,f]=u.useState(null);return u.useEffect(()=>{c(a=>a+1)},[t]),u.useEffect(()=>{navigator.geolocation.getCurrentPosition(a=>{f([a.coords.latitude,a.coords.longitude])})},[]),g.jsx("div",{className:"map-container w-full h-full",children:g.jsxs(z,{className:"w-[335px] h-full flex flex-col items-center justify-center rounded-lg",center:t||o,zoom:n,attributionControl:!1,preferCanvas:!1,children:[g.jsx(M,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:"© Pawss"}),o&&g.jsx(C,{position:o,children:g.jsx(m,{children:"The animal is here!~"})})]},e)})};B.propTypes={zoom:r.number,customCenter:r.array};export{B as default}; diff --git a/dist/assets/index-DiDRyuqP.js b/dist/assets/index-DiDRyuqP.js new file mode 100644 index 00000000..f1da3115 --- /dev/null +++ b/dist/assets/index-DiDRyuqP.js @@ -0,0 +1,1728 @@ +var kL=Object.defineProperty;var EL=(e,t,n)=>t in e?kL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var he=(e,t,n)=>EL(e,typeof t!="symbol"?t+"":t,n);function TL(e,t){for(var n=0;ni[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();var Qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ad(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function PL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return e[i]}})}),n}var qk={exports:{}},Ap={},Xk={exports:{}},je={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ld=Symbol.for("react.element"),OL=Symbol.for("react.portal"),ML=Symbol.for("react.fragment"),LL=Symbol.for("react.strict_mode"),AL=Symbol.for("react.profiler"),RL=Symbol.for("react.provider"),IL=Symbol.for("react.context"),NL=Symbol.for("react.forward_ref"),DL=Symbol.for("react.suspense"),jL=Symbol.for("react.memo"),zL=Symbol.for("react.lazy"),D_=Symbol.iterator;function $L(e){return e===null||typeof e!="object"?null:(e=D_&&e[D_]||e["@@iterator"],typeof e=="function"?e:null)}var Qk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jk=Object.assign,eE={};function Vl(e,t,n){this.props=e,this.context=t,this.refs=eE,this.updater=n||Qk}Vl.prototype.isReactComponent={};Vl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Vl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tE(){}tE.prototype=Vl.prototype;function vb(e,t,n){this.props=e,this.context=t,this.refs=eE,this.updater=n||Qk}var yb=vb.prototype=new tE;yb.constructor=vb;Jk(yb,Vl.prototype);yb.isPureReactComponent=!0;var j_=Array.isArray,nE=Object.prototype.hasOwnProperty,bb={current:null},iE={key:!0,ref:!0,__self:!0,__source:!0};function rE(e,t,n){var i,r={},o=null,s=null;if(t!=null)for(i in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)nE.call(t,i)&&!iE.hasOwnProperty(i)&&(r[i]=t[i]);var l=arguments.length-2;if(l===1)r.children=n;else if(1>>1,X=z[J];if(0>>1;Jr(oe,H))Kr(ae,oe)?(z[J]=ae,z[K]=H,J=K):(z[J]=oe,z[ne]=H,J=ne);else if(Kr(ae,H))z[J]=ae,z[K]=H,J=K;else break e}}return q}function r(z,q){var H=z.sortIndex-q.sortIndex;return H!==0?H:z.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],u=[],h=1,f=null,m=3,b=!1,v=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(z){for(var q=n(u);q!==null;){if(q.callback===null)i(u);else if(q.startTime<=z)i(u),q.sortIndex=q.expirationTime,t(c,q);else break;q=n(u)}}function T(z){if(y=!1,k(z),!v)if(n(c)!==null)v=!0,V(P);else{var q=n(u);q!==null&&G(T,q.startTime-z)}}function P(z,q){v=!1,y&&(y=!1,x(R),R=-1),b=!0;var H=m;try{for(k(q),f=n(c);f!==null&&(!(f.expirationTime>q)||z&&!$());){var J=f.callback;if(typeof J=="function"){f.callback=null,m=f.priorityLevel;var X=J(f.expirationTime<=q);q=e.unstable_now(),typeof X=="function"?f.callback=X:f===n(c)&&i(c),k(q)}else i(c);f=n(c)}if(f!==null)var re=!0;else{var ne=n(u);ne!==null&&G(T,ne.startTime-q),re=!1}return re}finally{f=null,m=H,b=!1}}var O=!1,M=null,R=-1,N=5,I=-1;function $(){return!(e.unstable_now()-Iz||125J?(z.sortIndex=H,t(u,z),n(c)===null&&z===n(u)&&(y?(x(R),R=-1):y=!0,G(T,H-J))):(z.sortIndex=X,t(c,z),v||b||(v=!0,V(P))),z},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(z){var q=m;return function(){var H=m;m=q;try{return z.apply(this,arguments)}finally{m=H}}}})(lE);aE.exports=lE;var qL=aE.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var cE=C,di=qL;function ie(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c0=Object.prototype.hasOwnProperty,XL=/^[: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]*$/,$_={},B_={};function QL(e){return c0.call(B_,e)?!0:c0.call($_,e)?!1:XL.test(e)?B_[e]=!0:($_[e]=!0,!1)}function JL(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eA(e,t,n,i){if(t===null||typeof t>"u"||JL(e,t,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function zn(e,t,n,i,r,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var bn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){bn[e]=new zn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];bn[t]=new zn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){bn[e]=new zn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){bn[e]=new zn(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){bn[e]=new zn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){bn[e]=new zn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){bn[e]=new zn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){bn[e]=new zn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){bn[e]=new zn(e,5,!1,e.toLowerCase(),null,!1,!1)});var _b=/[\-:]([a-z])/g;function wb(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(_b,wb);bn[t]=new zn(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(_b,wb);bn[t]=new zn(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(_b,wb);bn[t]=new zn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){bn[e]=new zn(e,1,!1,e.toLowerCase(),null,!1,!1)});bn.xlinkHref=new zn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){bn[e]=new zn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Sb(e,t,n,i){var r=bn.hasOwnProperty(t)?bn[t]:null;(r!==null?r.type!==0:i||!(2l||r[s]!==o[l]){var c=` +`+r[s].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=l);break}}}finally{Ig=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Bc(e):""}function tA(e){switch(e.tag){case 5:return Bc(e.type);case 16:return Bc("Lazy");case 13:return Bc("Suspense");case 19:return Bc("SuspenseList");case 0:case 2:case 15:return e=Ng(e.type,!1),e;case 11:return e=Ng(e.type.render,!1),e;case 1:return e=Ng(e.type,!0),e;default:return""}}function f0(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 Za:return"Fragment";case Ua:return"Portal";case u0:return"Profiler";case Cb:return"StrictMode";case d0:return"Suspense";case h0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hE:return(e.displayName||"Context")+".Consumer";case dE:return(e._context.displayName||"Context")+".Provider";case kb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Eb:return t=e.displayName||null,t!==null?t:f0(e.type)||"Memo";case Io:t=e._payload,e=e._init;try{return f0(e(t))}catch{}}return null}function nA(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 f0(t);case 8:return t===Cb?"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 ss(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iA(e){var t=pE(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){i=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Kd(e){e._valueTracker||(e._valueTracker=iA(e))}function mE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=pE(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function bf(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 p0(e,t){var n=t.checked;return St({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function H_(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=ss(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gE(e,t){t=t.checked,t!=null&&Sb(e,"checked",t,!1)}function m0(e,t){gE(e,t);var n=ss(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?g0(e,t.type,n):t.hasOwnProperty("defaultValue")&&g0(e,t.type,ss(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function V_(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function g0(e,t,n){(t!=="number"||bf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fc=Array.isArray;function ll(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=qd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var eu={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},rA=["Webkit","ms","Moz","O"];Object.keys(eu).forEach(function(e){rA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),eu[t]=eu[e]})});function xE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||eu.hasOwnProperty(e)&&eu[e]?(""+t).trim():t+"px"}function _E(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=xE(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}var oA=St({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 b0(e,t){if(t){if(oA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ie(62))}}function x0(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 _0=null;function Tb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var w0=null,cl=null,ul=null;function Z_(e){if(e=dd(e)){if(typeof w0!="function")throw Error(ie(280));var t=e.stateNode;t&&(t=jp(t),w0(e.stateNode,e.type,t))}}function wE(e){cl?ul?ul.push(e):ul=[e]:cl=e}function SE(){if(cl){var e=cl,t=ul;if(ul=cl=null,Z_(e),t)for(e=0;e>>=0,e===0?32:31-(gA(e)/vA|0)|0}var Xd=64,Qd=4194304;function Hc(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 Sf(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~r;l!==0?i=Hc(l):(o&=s,o!==0&&(i=Hc(o)))}else s=n&~r,s!==0?i=Hc(s):o!==0&&(i=Hc(o));if(i===0)return 0;if(t!==0&&t!==i&&!(t&r)&&(r=i&-i,o=t&-t,r>=o||r===16&&(o&4194240)!==0))return t;if(i&4&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0n;n++)t.push(e);return t}function cd(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-er(t),e[t]=n}function _A(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0=nu),tw=" ",nw=!1;function VE(e,t){switch(e){case"keyup":return KA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function WE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ga=!1;function XA(e,t){switch(e){case"compositionend":return WE(t);case"keypress":return t.which!==32?null:(nw=!0,tw);case"textInput":return e=t.data,e===tw&&nw?null:e;default:return null}}function QA(e,t){if(Ga)return e==="compositionend"||!Nb&&VE(e,t)?(e=FE(),Vh=Ab=Bo=null,Ga=!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)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=sw(n)}}function YE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?YE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function KE(){for(var e=window,t=bf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bf(e.document)}return t}function Db(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 aR(e){var t=KE(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&YE(n.ownerDocument.documentElement,n)){if(i!==null&&Db(n)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,o=Math.min(i.start,r);i=i.end===void 0?o:Math.min(i.end,r),!e.extend&&o>i&&(r=i,i=o,o=r),r=aw(n,o);var s=aw(n,i);r&&s&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),o>i?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ya=null,P0=null,ru=null,O0=!1;function lw(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;O0||Ya==null||Ya!==bf(i)||(i=Ya,"selectionStart"in i&&Db(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ru&&ku(ru,i)||(ru=i,i=Ef(P0,"onSelect"),0Xa||(e.current=N0[Xa],N0[Xa]=null,Xa--)}function rt(e,t){Xa++,N0[Xa]=e.current,e.current=t}var as={},Pn=fs(as),Kn=fs(!1),ta=as;function Cl(e,t){var n=e.type.contextTypes;if(!n)return as;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=t[o];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function qn(e){return e=e.childContextTypes,e!=null}function Pf(){ht(Kn),ht(Pn)}function mw(e,t,n){if(Pn.current!==as)throw Error(ie(168));rt(Pn,t),rt(Kn,n)}function rT(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in t))throw Error(ie(108,nA(e)||"Unknown",r));return St({},n,i)}function Of(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||as,ta=Pn.current,rt(Pn,e),rt(Kn,Kn.current),!0}function gw(e,t,n){var i=e.stateNode;if(!i)throw Error(ie(169));n?(e=rT(e,t,ta),i.__reactInternalMemoizedMergedChildContext=e,ht(Kn),ht(Pn),rt(Pn,e)):ht(Kn),rt(Kn,n)}var Gr=null,zp=!1,Kg=!1;function oT(e){Gr===null?Gr=[e]:Gr.push(e)}function bR(e){zp=!0,oT(e)}function ps(){if(!Kg&&Gr!==null){Kg=!0;var e=0,t=qe;try{var n=Gr;for(qe=1;e>=s,r-=s,qr=1<<32-er(t)+r|n<R?(N=M,M=null):N=M.sibling;var I=m(x,M,k[R],T);if(I===null){M===null&&(M=N);break}e&&M&&I.alternate===null&&t(x,M),S=o(I,S,R),O===null?P=I:O.sibling=I,O=I,M=N}if(R===k.length)return n(x,M),vt&&Ms(x,R),P;if(M===null){for(;RR?(N=M,M=null):N=M.sibling;var $=m(x,M,I.value,T);if($===null){M===null&&(M=N);break}e&&M&&$.alternate===null&&t(x,M),S=o($,S,R),O===null?P=$:O.sibling=$,O=$,M=N}if(I.done)return n(x,M),vt&&Ms(x,R),P;if(M===null){for(;!I.done;R++,I=k.next())I=f(x,I.value,T),I!==null&&(S=o(I,S,R),O===null?P=I:O.sibling=I,O=I);return vt&&Ms(x,R),P}for(M=i(x,M);!I.done;R++,I=k.next())I=b(M,x,R,I.value,T),I!==null&&(e&&I.alternate!==null&&M.delete(I.key===null?R:I.key),S=o(I,S,R),O===null?P=I:O.sibling=I,O=I);return e&&M.forEach(function(j){return t(x,j)}),vt&&Ms(x,R),P}function w(x,S,k,T){if(typeof k=="object"&&k!==null&&k.type===Za&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case Yd:e:{for(var P=k.key,O=S;O!==null;){if(O.key===P){if(P=k.type,P===Za){if(O.tag===7){n(x,O.sibling),S=r(O,k.props.children),S.return=x,x=S;break e}}else if(O.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Io&&Sw(P)===O.type){n(x,O.sibling),S=r(O,k.props),S.ref=_c(x,O,k),S.return=x,x=S;break e}n(x,O);break}else t(x,O);O=O.sibling}k.type===Za?(S=Ys(k.props.children,x.mode,T,k.key),S.return=x,x=S):(T=Xh(k.type,k.key,k.props,null,x.mode,T),T.ref=_c(x,S,k),T.return=x,x=T)}return s(x);case Ua:e:{for(O=k.key;S!==null;){if(S.key===O)if(S.tag===4&&S.stateNode.containerInfo===k.containerInfo&&S.stateNode.implementation===k.implementation){n(x,S.sibling),S=r(S,k.children||[]),S.return=x,x=S;break e}else{n(x,S);break}else t(x,S);S=S.sibling}S=iv(k,x.mode,T),S.return=x,x=S}return s(x);case Io:return O=k._init,w(x,S,O(k._payload),T)}if(Fc(k))return v(x,S,k,T);if(gc(k))return y(x,S,k,T);oh(x,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,S!==null&&S.tag===6?(n(x,S.sibling),S=r(S,k),S.return=x,x=S):(n(x,S),S=nv(k,x.mode,T),S.return=x,x=S),s(x)):n(x,S)}return w}var El=fT(!0),pT=fT(!1),hd={},Sr=fs(hd),Ou=fs(hd),Mu=fs(hd);function Bs(e){if(e===hd)throw Error(ie(174));return e}function Ub(e,t){switch(rt(Mu,t),rt(Ou,e),rt(Sr,hd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:y0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=y0(t,e)}ht(Sr),rt(Sr,t)}function Tl(){ht(Sr),ht(Ou),ht(Mu)}function mT(e){Bs(Mu.current);var t=Bs(Sr.current),n=y0(t,e.type);t!==n&&(rt(Ou,e),rt(Sr,n))}function Zb(e){Ou.current===e&&(ht(Sr),ht(Ou))}var _t=fs(0);function Nf(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qg=[];function Gb(){for(var e=0;en?n:4,e(!0);var i=Xg.transition;Xg.transition={};try{e(!1),t()}finally{qe=n,Xg.transition=i}}function LT(){return Ai().memoizedState}function SR(e,t,n){var i=Jo(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},AT(e))RT(t,n);else if(n=cT(e,t,n,i),n!==null){var r=Dn();tr(n,e,i,r),IT(n,t,i)}}function CR(e,t,n){var i=Jo(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(AT(e))RT(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(r.hasEagerState=!0,r.eagerState=l,rr(l,s)){var c=t.interleaved;c===null?(r.next=r,Vb(t)):(r.next=c.next,c.next=r),t.interleaved=r;return}}catch{}finally{}n=cT(e,t,r,i),n!==null&&(r=Dn(),tr(n,e,i,r),IT(n,t,i))}}function AT(e){var t=e.alternate;return e===wt||t!==null&&t===wt}function RT(e,t){ou=Df=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function IT(e,t,n){if(n&4194240){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ob(e,n)}}var jf={readContext:Li,useCallback:wn,useContext:wn,useEffect:wn,useImperativeHandle:wn,useInsertionEffect:wn,useLayoutEffect:wn,useMemo:wn,useReducer:wn,useRef:wn,useState:wn,useDebugValue:wn,useDeferredValue:wn,useTransition:wn,useMutableSource:wn,useSyncExternalStore:wn,useId:wn,unstable_isNewReconciler:!1},kR={readContext:Li,useCallback:function(e,t){return fr().memoizedState=[e,t===void 0?null:t],e},useContext:Li,useEffect:kw,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Gh(4194308,4,ET.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gh(4,2,e,t)},useMemo:function(e,t){var n=fr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=fr();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=SR.bind(null,wt,e),[i.memoizedState,e]},useRef:function(e){var t=fr();return e={current:e},t.memoizedState=e},useState:Cw,useDebugValue:Qb,useDeferredValue:function(e){return fr().memoizedState=e},useTransition:function(){var e=Cw(!1),t=e[0];return e=wR.bind(null,e[1]),fr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=wt,r=fr();if(vt){if(n===void 0)throw Error(ie(407));n=n()}else{if(n=t(),cn===null)throw Error(ie(349));ia&30||yT(i,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,kw(xT.bind(null,i,o,e),[e]),i.flags|=2048,Ru(9,bT.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=fr(),t=cn.identifierPrefix;if(vt){var n=Xr,i=qr;n=(i&~(1<<32-er(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=Lu++,0<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=s.createElement(n,{is:i.is}):(e=s.createElement(n),n==="select"&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,n),e[yr]=t,e[Pu]=i,VT(e,t,!1,!1),t.stateNode=e;e:{switch(s=x0(n,i),n){case"dialog":at("cancel",e),at("close",e),r=i;break;case"iframe":case"object":case"embed":at("load",e),r=i;break;case"video":case"audio":for(r=0;rOl&&(t.flags|=128,i=!0,wc(o,!1),t.lanes=4194304)}else{if(!i)if(e=Nf(s),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!vt)return Sn(t),null}else 2*It()-o.renderingStartTime>Ol&&n!==1073741824&&(t.flags|=128,i=!0,wc(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=It(),t.sibling=null,n=_t.current,rt(_t,i?n&1|2:n&1),t):(Sn(t),null);case 22:case 23:return rx(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?ri&1073741824&&(Sn(t),t.subtreeFlags&6&&(t.flags|=8192)):Sn(t),null;case 24:return null;case 25:return null}throw Error(ie(156,t.tag))}function RR(e,t){switch(zb(t),t.tag){case 1:return qn(t.type)&&Pf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tl(),ht(Kn),ht(Pn),Gb(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Zb(t),null;case 13:if(ht(_t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ie(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ht(_t),null;case 4:return Tl(),null;case 10:return Hb(t.type._context),null;case 22:case 23:return rx(),null;case 24:return null;default:return null}}var ah=!1,En=!1,IR=typeof WeakSet=="function"?WeakSet:Set,de=null;function tl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){Et(e,t,i)}else n.current=null}function G0(e,t,n){try{n()}catch(i){Et(e,t,i)}}var Iw=!1;function NR(e,t){if(M0=Cf,e=KE(),Db(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,c=-1,u=0,h=0,f=e,m=null;t:for(;;){for(var b;f!==n||r!==0&&f.nodeType!==3||(l=s+r),f!==o||i!==0&&f.nodeType!==3||(c=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(b=f.firstChild)!==null;)m=f,f=b;for(;;){if(f===e)break t;if(m===n&&++u===r&&(l=s),m===o&&++h===i&&(c=s),(b=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=b}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(L0={focusedElem:e,selectionRange:n},Cf=!1,de=t;de!==null;)if(t=de,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,de=e;else for(;de!==null;){t=de;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,w=v.memoizedState,x=t.stateNode,S=x.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ki(t.type,y),w);x.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ie(163))}}catch(T){Et(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,de=e;break}de=t.return}return v=Iw,Iw=!1,v}function su(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&e)===e){var o=r.destroy;r.destroy=void 0,o!==void 0&&G0(t,n,o)}r=r.next}while(r!==i)}}function Fp(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function Y0(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ZT(e){var t=e.alternate;t!==null&&(e.alternate=null,ZT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yr],delete t[Pu],delete t[I0],delete t[vR],delete t[yR])),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 GT(e){return e.tag===5||e.tag===3||e.tag===4}function Nw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||GT(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 K0(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Tf));else if(i!==4&&(e=e.child,e!==null))for(K0(e,t,n),e=e.sibling;e!==null;)K0(e,t,n),e=e.sibling}function q0(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(q0(e,t,n),e=e.sibling;e!==null;)q0(e,t,n),e=e.sibling}var mn=null,qi=!1;function Eo(e,t,n){for(n=n.child;n!==null;)YT(e,t,n),n=n.sibling}function YT(e,t,n){if(wr&&typeof wr.onCommitFiberUnmount=="function")try{wr.onCommitFiberUnmount(Rp,n)}catch{}switch(n.tag){case 5:En||tl(n,t);case 6:var i=mn,r=qi;mn=null,Eo(e,t,n),mn=i,qi=r,mn!==null&&(qi?(e=mn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):mn.removeChild(n.stateNode));break;case 18:mn!==null&&(qi?(e=mn,n=n.stateNode,e.nodeType===8?Yg(e.parentNode,n):e.nodeType===1&&Yg(e,n),Su(e)):Yg(mn,n.stateNode));break;case 4:i=mn,r=qi,mn=n.stateNode.containerInfo,qi=!0,Eo(e,t,n),mn=i,qi=r;break;case 0:case 11:case 14:case 15:if(!En&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var o=r,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&G0(n,t,s),r=r.next}while(r!==i)}Eo(e,t,n);break;case 1:if(!En&&(tl(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(l){Et(n,t,l)}Eo(e,t,n);break;case 21:Eo(e,t,n);break;case 22:n.mode&1?(En=(i=En)||n.memoizedState!==null,Eo(e,t,n),En=i):Eo(e,t,n);break;default:Eo(e,t,n)}}function Dw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new IR),t.forEach(function(i){var r=WR.bind(null,e,i);n.has(i)||(n.add(i),i.then(r,r))})}}function Wi(e,t){var n=t.deletions;if(n!==null)for(var i=0;ir&&(r=s),i&=~o}if(i=r,i=It()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*jR(i/1960))-i,10e?16:e,Fo===null)var i=!1;else{if(e=Fo,Fo=null,Bf=0,Fe&6)throw Error(ie(331));var r=Fe;for(Fe|=4,de=e.current;de!==null;){var o=de,s=o.child;if(de.flags&16){var l=o.deletions;if(l!==null){for(var c=0;cIt()-nx?Gs(e,0):tx|=n),Xn(e,t)}function nP(e,t){t===0&&(e.mode&1?(t=Qd,Qd<<=1,!(Qd&130023424)&&(Qd=4194304)):t=1);var n=Dn();e=lo(e,t),e!==null&&(cd(e,t,n),Xn(e,n))}function VR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nP(e,n)}function WR(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(ie(314))}i!==null&&i.delete(t),nP(e,n)}var iP;iP=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Kn.current)Gn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Gn=!1,LR(e,t,n);Gn=!!(e.flags&131072)}else Gn=!1,vt&&t.flags&1048576&&sT(t,Lf,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Yh(e,t),e=t.pendingProps;var r=Cl(t,Pn.current);hl(t,n),r=Kb(null,t,i,e,r,n);var o=qb();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qn(i)?(o=!0,Of(t)):o=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Wb(t),r.updater=$p,t.stateNode=r,r._reactInternals=t,B0(t,i,e,n),t=V0(null,t,i,!0,o,n)):(t.tag=0,vt&&o&&jb(t),Rn(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Yh(e,t),e=t.pendingProps,r=i._init,i=r(i._payload),t.type=i,r=t.tag=ZR(i),e=Ki(i,e),r){case 0:t=H0(null,t,i,e,n);break e;case 1:t=Lw(null,t,i,e,n);break e;case 11:t=Ow(null,t,i,e,n);break e;case 14:t=Mw(null,t,i,Ki(i.type,e),n);break e}throw Error(ie(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:Ki(i,r),H0(e,t,i,r,n);case 1:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:Ki(i,r),Lw(e,t,i,r,n);case 3:e:{if(BT(t),e===null)throw Error(ie(387));i=t.pendingProps,o=t.memoizedState,r=o.element,uT(e,t),If(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){r=Pl(Error(ie(423)),t),t=Aw(e,t,i,n,r);break e}else if(i!==r){r=Pl(Error(ie(424)),t),t=Aw(e,t,i,n,r);break e}else for(si=qo(t.stateNode.containerInfo.firstChild),li=t,vt=!0,Qi=null,n=pT(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(kl(),i===r){t=co(e,t,n);break e}Rn(e,t,i,n)}t=t.child}return t;case 5:return mT(t),e===null&&j0(t),i=t.type,r=t.pendingProps,o=e!==null?e.memoizedProps:null,s=r.children,A0(i,r)?s=null:o!==null&&A0(i,o)&&(t.flags|=32),$T(e,t),Rn(e,t,s,n),t.child;case 6:return e===null&&j0(t),null;case 13:return FT(e,t,n);case 4:return Ub(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=El(t,null,i,n):Rn(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:Ki(i,r),Ow(e,t,i,r,n);case 7:return Rn(e,t,t.pendingProps,n),t.child;case 8:return Rn(e,t,t.pendingProps.children,n),t.child;case 12:return Rn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,o=t.memoizedProps,s=r.value,rt(Af,i._currentValue),i._currentValue=s,o!==null)if(rr(o.value,s)){if(o.children===r.children&&!Kn.current){t=co(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var c=l.firstContext;c!==null;){if(c.context===i){if(o.tag===1){c=Jr(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?c.next=c:(c.next=h.next,h.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),z0(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(ie(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),z0(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Rn(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,hl(t,n),r=Li(r),i=i(r),t.flags|=1,Rn(e,t,i,n),t.child;case 14:return i=t.type,r=Ki(i,t.pendingProps),r=Ki(i.type,r),Mw(e,t,i,r,n);case 15:return jT(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:Ki(i,r),Yh(e,t),t.tag=1,qn(i)?(e=!0,Of(t)):e=!1,hl(t,n),hT(t,i,r),B0(t,i,r,n),V0(null,t,i,!0,e,n);case 19:return HT(e,t,n);case 22:return zT(e,t,n)}throw Error(ie(156,t.tag))};function rP(e,t){return ME(e,t)}function UR(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ei(e,t,n,i){return new UR(e,t,n,i)}function sx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ZR(e){if(typeof e=="function")return sx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kb)return 11;if(e===Eb)return 14}return 2}function es(e,t){var n=e.alternate;return n===null?(n=Ei(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xh(e,t,n,i,r,o){var s=2;if(i=e,typeof e=="function")sx(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Za:return Ys(n.children,r,o,t);case Cb:s=8,r|=8;break;case u0:return e=Ei(12,n,t,r|2),e.elementType=u0,e.lanes=o,e;case d0:return e=Ei(13,n,t,r),e.elementType=d0,e.lanes=o,e;case h0:return e=Ei(19,n,t,r),e.elementType=h0,e.lanes=o,e;case fE:return Vp(n,r,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case dE:s=10;break e;case hE:s=9;break e;case kb:s=11;break e;case Eb:s=14;break e;case Io:s=16,i=null;break e}throw Error(ie(130,e==null?e:typeof e,""))}return t=Ei(s,n,t,r),t.elementType=e,t.type=i,t.lanes=o,t}function Ys(e,t,n,i){return e=Ei(7,e,i,t),e.lanes=n,e}function Vp(e,t,n,i){return e=Ei(22,e,i,t),e.elementType=fE,e.lanes=n,e.stateNode={isHidden:!1},e}function nv(e,t,n){return e=Ei(6,e,null,t),e.lanes=n,e}function iv(e,t,n){return t=Ei(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function GR(e,t,n,i,r){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=jg(0),this.expirationTimes=jg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jg(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function ax(e,t,n,i,r,o,s,l,c){return e=new GR(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ei(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wb(o),e}function YR(e,t,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lP)}catch(e){console.error(e)}}lP(),sE.exports=hi;var fd=sE.exports;const uh=ad(fd);var Ww=fd;l0.createRoot=Ww.createRoot,l0.hydrateRoot=Ww.hydrateRoot;/** + * @remix-run/router v1.15.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Nu(){return Nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function cP(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function eI(){return Math.random().toString(36).substr(2,8)}function Zw(e,t){return{usr:e.state,key:e.key,idx:t}}function ty(e,t,n,i){return n===void 0&&(n=null),Nu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Zl(t):t,{state:n,key:t&&t.key||i||eI()})}function Vf(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function Zl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function tI(e,t,n,i){i===void 0&&(i={});let{window:r=document.defaultView,v5Compat:o=!1}=i,s=r.history,l=Ho.Pop,c=null,u=h();u==null&&(u=0,s.replaceState(Nu({},s.state,{idx:u}),""));function h(){return(s.state||{idx:null}).idx}function f(){l=Ho.Pop;let w=h(),x=w==null?null:w-u;u=w,c&&c({action:l,location:y.location,delta:x})}function m(w,x){l=Ho.Push;let S=ty(y.location,w,x);u=h()+1;let k=Zw(S,u),T=y.createHref(S);try{s.pushState(k,"",T)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;r.location.assign(T)}o&&c&&c({action:l,location:y.location,delta:1})}function b(w,x){l=Ho.Replace;let S=ty(y.location,w,x);u=h();let k=Zw(S,u),T=y.createHref(S);s.replaceState(k,"",T),o&&c&&c({action:l,location:y.location,delta:0})}function v(w){let x=r.location.origin!=="null"?r.location.origin:r.location.href,S=typeof w=="string"?w:Vf(w);return S=S.replace(/ $/,"%20"),Yt(x,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,x)}let y={get action(){return l},get location(){return e(r,s)},listen(w){if(c)throw new Error("A history only accepts one active listener");return r.addEventListener(Uw,f),c=w,()=>{r.removeEventListener(Uw,f),c=null}},createHref(w){return t(r,w)},createURL:v,encodeLocation(w){let x=v(w);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:m,replace:b,go(w){return s.go(w)}};return y}var Gw;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Gw||(Gw={}));function nI(e,t,n){n===void 0&&(n="/");let i=typeof t=="string"?Zl(t):t,r=dx(i.pathname||"/",n);if(r==null)return null;let o=uP(e);iI(o);let s=null;for(let l=0;s==null&&l{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};c.relativePath.startsWith("/")&&(Yt(c.relativePath.startsWith(i),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(i.length));let u=ts([i,c.relativePath]),h=n.concat(c);o.children&&o.children.length>0&&(Yt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),uP(o.children,t,h,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:uI(u,o.index),routesMeta:h})};return e.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))r(o,s);else for(let c of dP(o.path))r(o,s,c)}),t}function dP(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,r=n.endsWith("?"),o=n.replace(/\?$/,"");if(i.length===0)return r?[o,""]:[o];let s=dP(i.join("/")),l=[];return l.push(...s.map(c=>c===""?o:[o,c].join("/"))),r&&l.push(...s),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function iI(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:dI(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const rI=/^:[\w-]+$/,oI=3,sI=2,aI=1,lI=10,cI=-2,Yw=e=>e==="*";function uI(e,t){let n=e.split("/"),i=n.length;return n.some(Yw)&&(i+=cI),t&&(i+=sI),n.filter(r=>!Yw(r)).reduce((r,o)=>r+(rI.test(o)?oI:o===""?aI:lI),i)}function dI(e,t){return e.length===t.length&&e.slice(0,-1).every((i,r)=>i===t[r])?e[e.length-1]-t[t.length-1]:0}function hI(e,t){let{routesMeta:n}=e,i={},r="/",o=[];for(let s=0;s{let{paramName:m,isOptional:b}=h;if(m==="*"){let y=l[f]||"";s=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const v=l[f];return b&&!v?u[m]=void 0:u[m]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function pI(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),cP(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let i=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,c)=>(i.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),i]}function mI(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cP(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function dx(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}function gI(e,t){t===void 0&&(t="/");let{pathname:n,search:i="",hash:r=""}=typeof e=="string"?Zl(e):e;return{pathname:n?n.startsWith("/")?n:vI(n,t):t,search:xI(i),hash:_I(r)}}function vI(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function rv(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function yI(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function hP(e,t){let n=yI(e);return t?n.map((i,r)=>r===e.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function fP(e,t,n,i){i===void 0&&(i=!1);let r;typeof e=="string"?r=Zl(e):(r=Nu({},e),Yt(!r.pathname||!r.pathname.includes("?"),rv("?","pathname","search",r)),Yt(!r.pathname||!r.pathname.includes("#"),rv("#","pathname","hash",r)),Yt(!r.search||!r.search.includes("#"),rv("#","search","hash",r)));let o=e===""||r.pathname==="",s=o?"/":r.pathname,l;if(s==null)l=n;else{let f=t.length-1;if(!i&&s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),f-=1;r.pathname=m.join("/")}l=f>=0?t[f]:"/"}let c=gI(r,l),u=s&&s!=="/"&&s.endsWith("/"),h=(o||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||h)&&(c.pathname+="/"),c}const ts=e=>e.join("/").replace(/\/\/+/g,"/"),bI=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xI=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_I=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function wI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const pP=["post","put","patch","delete"];new Set(pP);const SI=["get",...pP];new Set(SI);/** + * React Router v6.22.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Du(){return Du=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),C.useCallback(function(u,h){if(h===void 0&&(h={}),!l.current)return;if(typeof u=="number"){i.go(u);return}let f=fP(u,JSON.parse(s),o,h.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ts([t,f.pathname])),(h.replace?i.replace:i.push)(f,h.state,h)},[t,i,s,o,e])}function TI(){let{matches:e}=C.useContext(ms),t=e[e.length-1];return t?t.params:{}}function vP(e,t){let{relative:n}=t===void 0?{}:t,{future:i}=C.useContext(ba),{matches:r}=C.useContext(ms),{pathname:o}=xa(),s=JSON.stringify(hP(r,i.v7_relativeSplatPath));return C.useMemo(()=>fP(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function PI(e,t){return OI(e,t)}function OI(e,t,n,i){pd()||Yt(!1);let{navigator:r}=C.useContext(ba),{matches:o}=C.useContext(ms),s=o[o.length-1],l=s?s.params:{};s&&s.pathname;let c=s?s.pathnameBase:"/";s&&s.route;let u=xa(),h;if(t){var f;let w=typeof t=="string"?Zl(t):t;c==="/"||(f=w.pathname)!=null&&f.startsWith(c)||Yt(!1),h=w}else h=u;let m=h.pathname||"/",b=m;if(c!=="/"){let w=c.replace(/^\//,"").split("/");b="/"+m.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=nI(e,{pathname:b}),y=II(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:ts([c,r.encodeLocation?r.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:ts([c,r.encodeLocation?r.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n,i);return t&&y?C.createElement(Yp.Provider,{value:{location:Du({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Ho.Pop}},y):y}function MI(){let e=zI(),t=wI(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:r},n):null,null)}const LI=C.createElement(MI,null);class AI extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?C.createElement(ms.Provider,{value:this.props.routeContext},C.createElement(mP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RI(e){let{routeContext:t,match:n,children:i}=e,r=C.useContext(hx);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(ms.Provider,{value:t},i)}function II(e,t,n,i){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),i===void 0&&(i=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let s=e,l=(r=n)==null?void 0:r.errors;if(l!=null){let h=s.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id]));h>=0||Yt(!1),s=s.slice(0,Math.min(s.length,h+1))}let c=!1,u=-1;if(n&&i&&i.v7_partialHydration)for(let h=0;h=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((h,f,m)=>{let b,v=!1,y=null,w=null;n&&(b=l&&f.route.id?l[f.route.id]:void 0,y=f.route.errorElement||LI,c&&(u<0&&m===0?(v=!0,w=null):u===m&&(v=!0,w=f.route.hydrateFallbackElement||null)));let x=t.concat(s.slice(0,m+1)),S=()=>{let k;return b?k=y:v?k=w:f.route.Component?k=C.createElement(f.route.Component,null):f.route.element?k=f.route.element:k=h,C.createElement(RI,{match:f,routeContext:{outlet:h,matches:x,isDataRoute:n!=null},children:k})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?C.createElement(AI,{location:n.location,revalidation:n.revalidation,component:y,error:b,children:S(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):S()},null)}var yP=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(yP||{}),Wf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Wf||{});function NI(e){let t=C.useContext(hx);return t||Yt(!1),t}function DI(e){let t=C.useContext(CI);return t||Yt(!1),t}function jI(e){let t=C.useContext(ms);return t||Yt(!1),t}function bP(e){let t=jI(),n=t.matches[t.matches.length-1];return n.route.id||Yt(!1),n.route.id}function zI(){var e;let t=C.useContext(mP),n=DI(Wf.UseRouteError),i=bP(Wf.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[i]}function $I(){let{router:e}=NI(yP.UseNavigateStable),t=bP(Wf.UseNavigateStable),n=C.useRef(!1);return gP(()=>{n.current=!0}),C.useCallback(function(r,o){o===void 0&&(o={}),n.current&&(typeof r=="number"?e.navigate(r):e.navigate(r,Du({fromRouteId:t},o)))},[e,t])}function Rt(e){Yt(!1)}function BI(e){let{basename:t="/",children:n=null,location:i,navigationType:r=Ho.Pop,navigator:o,static:s=!1,future:l}=e;pd()&&Yt(!1);let c=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:c,navigator:o,static:s,future:Du({v7_relativeSplatPath:!1},l)}),[c,l,o,s]);typeof i=="string"&&(i=Zl(i));let{pathname:h="/",search:f="",hash:m="",state:b=null,key:v="default"}=i,y=C.useMemo(()=>{let w=dx(h,c);return w==null?null:{location:{pathname:w,search:f,hash:m,state:b,key:v},navigationType:r}},[c,h,f,m,b,v,r]);return y==null?null:C.createElement(ba.Provider,{value:u},C.createElement(Yp.Provider,{children:n,value:y}))}function FI(e){let{children:t,location:n}=e;return PI(ny(t),n)}new Promise(()=>{});function ny(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(i,r)=>{if(!C.isValidElement(i))return;let o=[...t,r];if(i.type===C.Fragment){n.push.apply(n,ny(i.props.children,o));return}i.type!==Rt&&Yt(!1),!i.props.index||!i.props.children||Yt(!1);let s={id:i.props.id||o.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(s.children=ny(i.props.children,o)),n.push(s)}),n}/** + * React Router DOM v6.22.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function iy(){return iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[r]=e[r]);return n}function VI(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function WI(e,t){return e.button===0&&(!t||t==="_self")&&!VI(e)}const UI=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ZI="6";try{window.__reactRouterVersion=ZI}catch{}const GI="startTransition",Kw=yf[GI];function YI(e){let{basename:t,children:n,future:i,window:r}=e,o=C.useRef();o.current==null&&(o.current=JR({window:r,v5Compat:!0}));let s=o.current,[l,c]=C.useState({action:s.action,location:s.location}),{v7_startTransition:u}=i||{},h=C.useCallback(f=>{u&&Kw?Kw(()=>c(f)):c(f)},[c,u]);return C.useLayoutEffect(()=>s.listen(h),[s,h]),C.createElement(BI,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:i})}const KI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",qI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ct=C.forwardRef(function(t,n){let{onClick:i,relative:r,reloadDocument:o,replace:s,state:l,target:c,to:u,preventScrollReset:h,unstable_viewTransition:f}=t,m=HI(t,UI),{basename:b}=C.useContext(ba),v,y=!1;if(typeof u=="string"&&qI.test(u)&&(v=u,KI))try{let k=new URL(window.location.href),T=u.startsWith("//")?new URL(k.protocol+u):new URL(u),P=dx(T.pathname,b);T.origin===k.origin&&P!=null?u=P+T.search+T.hash:y=!0}catch{}let w=kI(u,{relative:r}),x=XI(u,{replace:s,state:l,target:c,preventScrollReset:h,relative:r,unstable_viewTransition:f});function S(k){i&&i(k),k.defaultPrevented||x(k)}return C.createElement("a",iy({},m,{href:v||w,onClick:y||o?i:S,ref:n,target:c}))});var qw;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(qw||(qw={}));var Xw;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Xw||(Xw={}));function XI(e,t){let{target:n,replace:i,state:r,preventScrollReset:o,relative:s,unstable_viewTransition:l}=t===void 0?{}:t,c=Kp(),u=xa(),h=vP(e,{relative:s});return C.useCallback(f=>{if(WI(f,n)){f.preventDefault();let m=i!==void 0?i:Vf(u)===Vf(h);c(e,{replace:m,state:r,preventScrollReset:o,relative:s,unstable_viewTransition:l})}},[u,c,h,i,r,n,e,o,s,l])}function xP(e,t){return function(){return e.apply(t,arguments)}}const{toString:QI}=Object.prototype,{getPrototypeOf:fx}=Object,qp=(e=>t=>{const n=QI.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Or=e=>(e=e.toLowerCase(),t=>qp(t)===e),Xp=e=>t=>typeof t===e,{isArray:Gl}=Array,ju=Xp("undefined");function JI(e){return e!==null&&!ju(e)&&e.constructor!==null&&!ju(e.constructor)&&Oi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _P=Or("ArrayBuffer");function eN(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_P(e.buffer),t}const tN=Xp("string"),Oi=Xp("function"),wP=Xp("number"),Qp=e=>e!==null&&typeof e=="object",nN=e=>e===!0||e===!1,Qh=e=>{if(qp(e)!=="object")return!1;const t=fx(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},iN=Or("Date"),rN=Or("File"),oN=Or("Blob"),sN=Or("FileList"),aN=e=>Qp(e)&&Oi(e.pipe),lN=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Oi(e.append)&&((t=qp(e))==="formdata"||t==="object"&&Oi(e.toString)&&e.toString()==="[object FormData]"))},cN=Or("URLSearchParams"),uN=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function md(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,r;if(typeof e!="object"&&(e=[e]),Gl(e))for(i=0,r=e.length;i0;)if(r=n[i],t===r.toLowerCase())return r;return null}const CP=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,kP=e=>!ju(e)&&e!==CP;function ry(){const{caseless:e}=kP(this)&&this||{},t={},n=(i,r)=>{const o=e&&SP(t,r)||r;Qh(t[o])&&Qh(i)?t[o]=ry(t[o],i):Qh(i)?t[o]=ry({},i):Gl(i)?t[o]=i.slice():t[o]=i};for(let i=0,r=arguments.length;i(md(t,(r,o)=>{n&&Oi(r)?e[o]=xP(r,n):e[o]=r},{allOwnKeys:i}),e),hN=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fN=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},pN=(e,t,n,i)=>{let r,o,s;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)s=r[o],(!i||i(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&fx(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},mN=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},gN=e=>{if(!e)return null;if(Gl(e))return e;let t=e.length;if(!wP(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},vN=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fx(Uint8Array)),yN=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=i.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},bN=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},xN=Or("HTMLFormElement"),_N=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),Qw=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wN=Or("RegExp"),EP=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};md(n,(r,o)=>{let s;(s=t(r,o,e))!==!1&&(i[o]=s||r)}),Object.defineProperties(e,i)},SN=e=>{EP(e,(t,n)=>{if(Oi(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Oi(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},CN=(e,t)=>{const n={},i=r=>{r.forEach(o=>{n[o]=!0})};return Gl(e)?i(e):i(String(e).split(t)),n},kN=()=>{},EN=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ov="abcdefghijklmnopqrstuvwxyz",Jw="0123456789",TP={DIGIT:Jw,ALPHA:ov,ALPHA_DIGIT:ov+ov.toUpperCase()+Jw},TN=(e=16,t=TP.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function PN(e){return!!(e&&Oi(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ON=e=>{const t=new Array(10),n=(i,r)=>{if(Qp(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[r]=i;const o=Gl(i)?[]:{};return md(i,(s,l)=>{const c=n(s,r+1);!ju(c)&&(o[l]=c)}),t[r]=void 0,o}}return i};return n(e,0)},MN=Or("AsyncFunction"),LN=e=>e&&(Qp(e)||Oi(e))&&Oi(e.then)&&Oi(e.catch),Q={isArray:Gl,isArrayBuffer:_P,isBuffer:JI,isFormData:lN,isArrayBufferView:eN,isString:tN,isNumber:wP,isBoolean:nN,isObject:Qp,isPlainObject:Qh,isUndefined:ju,isDate:iN,isFile:rN,isBlob:oN,isRegExp:wN,isFunction:Oi,isStream:aN,isURLSearchParams:cN,isTypedArray:vN,isFileList:sN,forEach:md,merge:ry,extend:dN,trim:uN,stripBOM:hN,inherits:fN,toFlatObject:pN,kindOf:qp,kindOfTest:Or,endsWith:mN,toArray:gN,forEachEntry:yN,matchAll:bN,isHTMLForm:xN,hasOwnProperty:Qw,hasOwnProp:Qw,reduceDescriptors:EP,freezeMethods:SN,toObjectSet:CN,toCamelCase:_N,noop:kN,toFiniteNumber:EN,findKey:SP,global:CP,isContextDefined:kP,ALPHABET:TP,generateString:TN,isSpecCompliantForm:PN,toJSONObject:ON,isAsyncFn:MN,isThenable:LN};function Be(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}Q.inherits(Be,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const PP=Be.prototype,OP={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{OP[e]={value:e}});Object.defineProperties(Be,OP);Object.defineProperty(PP,"isAxiosError",{value:!0});Be.from=(e,t,n,i,r,o)=>{const s=Object.create(PP);return Q.toFlatObject(e,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Be.call(s,e.message,t,n,i,r),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const AN=null;function oy(e){return Q.isPlainObject(e)||Q.isArray(e)}function MP(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function e2(e,t,n){return e?e.concat(t).map(function(r,o){return r=MP(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function RN(e){return Q.isArray(e)&&!e.some(oy)}const IN=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function Jp(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,w){return!Q.isUndefined(w[y])});const i=n.metaTokens,r=n.visitor||h,o=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(r))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(Q.isDate(v))return v.toISOString();if(!c&&Q.isBlob(v))throw new Be("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(v)||Q.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function h(v,y,w){let x=v;if(v&&!w&&typeof v=="object"){if(Q.endsWith(y,"{}"))y=i?y:y.slice(0,-2),v=JSON.stringify(v);else if(Q.isArray(v)&&RN(v)||(Q.isFileList(v)||Q.endsWith(y,"[]"))&&(x=Q.toArray(v)))return y=MP(y),x.forEach(function(k,T){!(Q.isUndefined(k)||k===null)&&t.append(s===!0?e2([y],T,o):s===null?y:y+"[]",u(k))}),!1}return oy(v)?!0:(t.append(e2(w,y,o),u(v)),!1)}const f=[],m=Object.assign(IN,{defaultVisitor:h,convertValue:u,isVisitable:oy});function b(v,y){if(!Q.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(v),Q.forEach(v,function(x,S){(!(Q.isUndefined(x)||x===null)&&r.call(t,x,Q.isString(S)?S.trim():S,y,m))===!0&&b(x,y?y.concat(S):[S])}),f.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return b(e),t}function t2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function px(e,t){this._pairs=[],e&&Jp(e,this,t)}const LP=px.prototype;LP.append=function(t,n){this._pairs.push([t,n])};LP.toString=function(t){const n=t?function(i){return t.call(this,i,t2)}:t2;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function NN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function AP(e,t,n){if(!t)return e;const i=n&&n.encode||NN,r=n&&n.serialize;let o;if(r?o=r(t,n):o=Q.isURLSearchParams(t)?t.toString():new px(t,n).toString(i),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class n2{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(i){i!==null&&t(i)})}}const RP={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},DN=typeof URLSearchParams<"u"?URLSearchParams:px,jN=typeof FormData<"u"?FormData:null,zN=typeof Blob<"u"?Blob:null,$N={isBrowser:!0,classes:{URLSearchParams:DN,FormData:jN,Blob:zN},protocols:["http","https","file","blob","url","data"]},IP=typeof window<"u"&&typeof document<"u",BN=(e=>IP&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),FN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",HN=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:IP,hasStandardBrowserEnv:BN,hasStandardBrowserWebWorkerEnv:FN},Symbol.toStringTag,{value:"Module"})),xr={...HN,...$N};function VN(e,t){return Jp(e,new xr.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,o){return xr.isNode&&Q.isBuffer(n)?(this.append(i,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function WN(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function UN(e){const t={},n=Object.keys(e);let i;const r=n.length;let o;for(i=0;i=n.length;return s=!s&&Q.isArray(r)?r.length:s,c?(Q.hasOwnProp(r,s)?r[s]=[r[s],i]:r[s]=i,!l):((!r[s]||!Q.isObject(r[s]))&&(r[s]=[]),t(n,i,r[s],o)&&Q.isArray(r[s])&&(r[s]=UN(r[s])),!l)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(i,r)=>{t(WN(i),r,n,0)}),n}return null}function ZN(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const gd={transitional:RP,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",r=i.indexOf("application/json")>-1,o=Q.isObject(t);if(o&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return r&&r?JSON.stringify(NP(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return VN(t,this.formSerializer).toString();if((l=Q.isFileList(t))||i.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Jp(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),ZN(t)):t}],transformResponse:[function(t){const n=this.transitional||gd.transitional,i=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&Q.isString(t)&&(i&&!this.responseType||r)){const s=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?Be.from(l,Be.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xr.classes.FormData,Blob:xr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{gd.headers[e]={}});const GN=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),YN=e=>{const t={};let n,i,r;return e&&e.split(` +`).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),i=s.substring(r+1).trim(),!(!n||t[n]&&GN[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},i2=Symbol("internals");function Cc(e){return e&&String(e).trim().toLowerCase()}function Jh(e){return e===!1||e==null?e:Q.isArray(e)?e.map(Jh):String(e)}function KN(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const qN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function sv(e,t,n,i,r){if(Q.isFunction(i))return i.call(this,t,n);if(r&&(t=n),!!Q.isString(t)){if(Q.isString(i))return t.indexOf(i)!==-1;if(Q.isRegExp(i))return i.test(t)}}function XN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function QN(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(r,o,s){return this[i].call(this,t,r,o,s)},configurable:!0})})}class Mi{constructor(t){t&&this.set(t)}set(t,n,i){const r=this;function o(l,c,u){const h=Cc(c);if(!h)throw new Error("header name must be a non-empty string");const f=Q.findKey(r,h);(!f||r[f]===void 0||u===!0||u===void 0&&r[f]!==!1)&&(r[f||c]=Jh(l))}const s=(l,c)=>Q.forEach(l,(u,h)=>o(u,h,c));return Q.isPlainObject(t)||t instanceof this.constructor?s(t,n):Q.isString(t)&&(t=t.trim())&&!qN(t)?s(YN(t),n):t!=null&&o(n,t,i),this}get(t,n){if(t=Cc(t),t){const i=Q.findKey(this,t);if(i){const r=this[i];if(!n)return r;if(n===!0)return KN(r);if(Q.isFunction(n))return n.call(this,r,i);if(Q.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Cc(t),t){const i=Q.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||sv(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let r=!1;function o(s){if(s=Cc(s),s){const l=Q.findKey(i,s);l&&(!n||sv(i,i[l],l,n))&&(delete i[l],r=!0)}}return Q.isArray(t)?t.forEach(o):o(t),r}clear(t){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const o=n[i];(!t||sv(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const n=this,i={};return Q.forEach(this,(r,o)=>{const s=Q.findKey(i,o);if(s){n[s]=Jh(r),delete n[o];return}const l=t?XN(o):String(o).trim();l!==o&&delete n[o],n[l]=Jh(r),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Q.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=t&&Q.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(r=>i.set(r)),i}static accessor(t){const i=(this[i2]=this[i2]={accessors:{}}).accessors,r=this.prototype;function o(s){const l=Cc(s);i[l]||(QN(r,s),i[l]=!0)}return Q.isArray(t)?t.forEach(o):o(t),this}}Mi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Q.reduceDescriptors(Mi.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});Q.freezeMethods(Mi);function av(e,t){const n=this||gd,i=t||n,r=Mi.from(i.headers);let o=i.data;return Q.forEach(e,function(l){o=l.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function DP(e){return!!(e&&e.__CANCEL__)}function vd(e,t,n){Be.call(this,e??"canceled",Be.ERR_CANCELED,t,n),this.name="CanceledError"}Q.inherits(vd,Be,{__CANCEL__:!0});function JN(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new Be("Request failed with status code "+n.status,[Be.ERR_BAD_REQUEST,Be.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const eD=xr.hasStandardBrowserEnv?{write(e,t,n,i,r,o){const s=[e+"="+encodeURIComponent(t)];Q.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Q.isString(i)&&s.push("path="+i),Q.isString(r)&&s.push("domain="+r),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function tD(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nD(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function jP(e,t){return e&&!tD(t)?nD(e,t):t}const iD=xr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function r(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=r(window.location.href),function(s){const l=Q.isString(s)?r(s):s;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function rD(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function oD(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r=0,o=0,s;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),h=i[o];s||(s=u),n[r]=c,i[r]=u;let f=o,m=0;for(;f!==r;)m+=n[f++],f=f%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),u-s{const o=r.loaded,s=r.lengthComputable?r.total:void 0,l=o-n,c=i(l),u=o<=s;n=o;const h={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:r};h[t?"download":"upload"]=!0,e(h)}}const sD=typeof XMLHttpRequest<"u",aD=sD&&function(e){return new Promise(function(n,i){let r=e.data;const o=Mi.from(e.headers).normalize();let{responseType:s,withXSRFToken:l}=e,c;function u(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let h;if(Q.isFormData(r)){if(xr.hasStandardBrowserEnv||xr.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((h=o.getContentType())!==!1){const[y,...w]=h?h.split(";").map(x=>x.trim()).filter(Boolean):[];o.setContentType([y||"multipart/form-data",...w].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(y+":"+w))}const m=jP(e.baseURL,e.url);f.open(e.method.toUpperCase(),AP(m,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function b(){if(!f)return;const y=Mi.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:y,config:e,request:f};JN(function(k){n(k),u()},function(k){i(k),u()},x),f=null}if("onloadend"in f?f.onloadend=b:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(b)},f.onabort=function(){f&&(i(new Be("Request aborted",Be.ECONNABORTED,e,f)),f=null)},f.onerror=function(){i(new Be("Network Error",Be.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const x=e.transitional||RP;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),i(new Be(w,x.clarifyTimeoutError?Be.ETIMEDOUT:Be.ECONNABORTED,e,f)),f=null},xr.hasStandardBrowserEnv&&(l&&Q.isFunction(l)&&(l=l(e)),l||l!==!1&&iD(m))){const y=e.xsrfHeaderName&&e.xsrfCookieName&&eD.read(e.xsrfCookieName);y&&o.set(e.xsrfHeaderName,y)}r===void 0&&o.setContentType(null),"setRequestHeader"in f&&Q.forEach(o.toJSON(),function(w,x){f.setRequestHeader(x,w)}),Q.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),s&&s!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",r2(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",r2(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=y=>{f&&(i(!y||y.type?new vd(null,e,f):y),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const v=rD(m);if(v&&xr.protocols.indexOf(v)===-1){i(new Be("Unsupported protocol "+v+":",Be.ERR_BAD_REQUEST,e));return}f.send(r||null)})},sy={http:AN,xhr:aD};Q.forEach(sy,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const o2=e=>`- ${e}`,lD=e=>Q.isFunction(e)||e===null||e===!1,zP={getAdapter:e=>{e=Q.isArray(e)?e:[e];const{length:t}=e;let n,i;const r={};for(let o=0;o`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : +`+o.map(o2).join(` +`):" "+o2(o[0]):"as no adapter specified";throw new Be("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i},adapters:sy};function lv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vd(null,e)}function s2(e){return lv(e),e.headers=Mi.from(e.headers),e.data=av.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),zP.getAdapter(e.adapter||gd.adapter)(e).then(function(i){return lv(e),i.data=av.call(e,e.transformResponse,i),i.headers=Mi.from(i.headers),i},function(i){return DP(i)||(lv(e),i&&i.response&&(i.response.data=av.call(e,e.transformResponse,i.response),i.response.headers=Mi.from(i.response.headers))),Promise.reject(i)})}const a2=e=>e instanceof Mi?e.toJSON():e;function Ml(e,t){t=t||{};const n={};function i(u,h,f){return Q.isPlainObject(u)&&Q.isPlainObject(h)?Q.merge.call({caseless:f},u,h):Q.isPlainObject(h)?Q.merge({},h):Q.isArray(h)?h.slice():h}function r(u,h,f){if(Q.isUndefined(h)){if(!Q.isUndefined(u))return i(void 0,u,f)}else return i(u,h,f)}function o(u,h){if(!Q.isUndefined(h))return i(void 0,h)}function s(u,h){if(Q.isUndefined(h)){if(!Q.isUndefined(u))return i(void 0,u)}else return i(void 0,h)}function l(u,h,f){if(f in t)return i(u,h);if(f in e)return i(void 0,u)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,h)=>r(a2(u),a2(h),!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),function(h){const f=c[h]||r,m=f(e[h],t[h],h);Q.isUndefined(m)&&f!==l||(n[h]=m)}),n}const $P="1.6.5",mx={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{mx[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const l2={};mx.transitional=function(t,n,i){function r(o,s){return"[Axios v"+$P+"] Transitional option '"+o+"'"+s+(i?". "+i:"")}return(o,s,l)=>{if(t===!1)throw new Be(r(s," has been removed"+(n?" in "+n:"")),Be.ERR_DEPRECATED);return n&&!l2[s]&&(l2[s]=!0,console.warn(r(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,l):!0}};function cD(e,t,n){if(typeof e!="object")throw new Be("options must be an object",Be.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const o=i[r],s=t[o];if(s){const l=e[o],c=l===void 0||s(l,o,e);if(c!==!0)throw new Be("option "+o+" must be "+c,Be.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Be("Unknown option "+o,Be.ERR_BAD_OPTION)}}const ay={assertOptions:cD,validators:mx},To=ay.validators;class Ks{constructor(t){this.defaults=t,this.interceptors={request:new n2,response:new n2}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ml(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:o}=n;i!==void 0&&ay.assertOptions(i,{silentJSONParsing:To.transitional(To.boolean),forcedJSONParsing:To.transitional(To.boolean),clarifyTimeoutError:To.transitional(To.boolean)},!1),r!=null&&(Q.isFunction(r)?n.paramsSerializer={serialize:r}:ay.assertOptions(r,{encode:To.function,serialize:To.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&Q.merge(o.common,o[n.method]);o&&Q.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=Mi.concat(s,o);const l=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let h,f=0,m;if(!c){const v=[s2.bind(this),void 0];for(v.unshift.apply(v,l),v.push.apply(v,u),m=v.length,h=Promise.resolve(n);f{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](r);i._listeners=null}),this.promise.then=r=>{let o;const s=new Promise(l=>{i.subscribe(l),o=l}).then(r);return s.cancel=function(){i.unsubscribe(o)},s},t(function(o,s,l){i.reason||(i.reason=new vd(o,s,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new gx(function(r){t=r}),cancel:t}}}function uD(e){return function(n){return e.apply(null,n)}}function dD(e){return Q.isObject(e)&&e.isAxiosError===!0}const ly={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ly).forEach(([e,t])=>{ly[t]=e});function BP(e){const t=new Ks(e),n=xP(Ks.prototype.request,t);return Q.extend(n,Ks.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return BP(Ml(e,r))},n}const Me=BP(gd);Me.Axios=Ks;Me.CanceledError=vd;Me.CancelToken=gx;Me.isCancel=DP;Me.VERSION=$P;Me.toFormData=Jp;Me.AxiosError=Be;Me.Cancel=Me.CanceledError;Me.all=function(t){return Promise.all(t)};Me.spread=uD;Me.isAxiosError=dD;Me.mergeConfig=Ml;Me.AxiosHeaders=Mi;Me.formToJSON=e=>NP(Q.isHTMLForm(e)?new FormData(e):e);Me.getAdapter=zP.getAdapter;Me.HttpStatusCode=ly;Me.default=Me;const zu=e=>/^[0-9]{10}$/.test(e),yd=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),hD="modulepreload",fD=function(e){return"/"+e},c2={},pD=function(t,n,i){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.all(n.map(l=>{if(l=fD(l),l in c2)return;c2[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":hD,c||(h.as="script",h.crossOrigin=""),h.href=l,s&&h.setAttribute("nonce",s),document.head.appendChild(h),c)return new Promise((f,m)=>{h.addEventListener("load",f),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>t()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})};var FP={exports:{}},mD="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gD=mD,vD=gD;function HP(){}function VP(){}VP.resetWarningCache=HP;var yD=function(){function e(i,r,o,s,l,c){if(c!==vD){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={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:VP,resetWarningCache:HP};return n.PropTypes=n,n};FP.exports=yD();var bD=FP.exports;const fe=ad(bD);var WP={},vx={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getListFiles=e.getImage=e.getBase64=e.getAcceptTypeString=e.openFileDialog=void 0,e.openFileDialog=function(t){t.current&&t.current.click()},e.getAcceptTypeString=function(t,n){return t!=null&&t.length?t.map(function(i){return"."+i}).join(", "):n?"":"image/*"},e.getBase64=function(t){var n=new FileReader;return new Promise(function(i){n.addEventListener("load",function(){return i(String(n.result))}),n.readAsDataURL(t)})},e.getImage=function(t){var n=new Image;return new Promise(function(i){n.addEventListener("load",function(){return i(n)}),n.src=URL.createObjectURL(t)})},e.getListFiles=function(t,n){for(var i=[],r=0;r0&&h[h.length-1])&&(v[0]===6||v[0]===2)){l=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]=l&&o.height>=c)return!0;break}}return!1},e.isImageValid=function(o){return!!o.includes("image")},e.isMaxFileSizeValid=function(o,s){return s?o<=s:!0},e.isAcceptTypeValid=function(o,s){if(o&&o.length>0){var l=s.split(".").pop()||"";if(o.findIndex(function(c){return c.toLowerCase()===l.toLowerCase()})<0)return!1}return!0},e.isMaxNumberValid=function(o,s,l){if(s!==0&&!s)return!0;if(l===i.DEFAULT_NULL_INDEX){if(o<=s)return!0}else if(o<=s+1)return!0;return!1},e.getErrorValidation=function(o){var s=o.fileList,l=o.value,c=o.maxNumber,u=o.keyUpdate,h=o.acceptType,f=o.maxFileSize,m=o.resolutionType,b=o.resolutionWidth,v=o.resolutionHeight,y=o.allowNonImageType;return t(void 0,void 0,void 0,function(){var w,x,S,k,T;return n(this,function(P){switch(P.label){case 0:return w={},e.isMaxNumberValid(s.length+l.length,c,u)?[3,1]:(w.maxNumber=!0,[3,5]);case 1:x=0,P.label=2;case 2:return x0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]Po.DEFAULT_NULL_INDEX)$n=we[0],ot=dv(P),ot[R]=$n,We.push(R);else if(u)for(ot=dv(P,we),hn=P.length;hnPo.DEFAULT_NULL_INDEX&&N(Po.DEFAULT_NULL_INDEX),O.current&&(O.current.value=""),[2]}})})},ne=Ui.useMemo(function(){return hv.getAcceptTypeString(m,T)},[m,T]),oe=function(ce){ce.preventDefault(),ce.stopPropagation()},K=function(ce){ce.preventDefault(),ce.stopPropagation(),ce.dataTransfer.items&&ce.dataTransfer.items.length>0&&Z(!0)},ae=function(ce){ce.preventDefault(),ce.stopPropagation(),Z(!1)},ye=function(ce){ce.preventDefault(),ce.stopPropagation(),Z(!1),ce.dataTransfer.files&&ce.dataTransfer.files.length>0&&X(ce.dataTransfer.files)},pe=function(ce){ce.preventDefault(),ce.stopPropagation(),ce.dataTransfer.clearData()};return Ui.default.createElement(Ui.default.Fragment,null,Ui.default.createElement("input",cy({type:"file",accept:ne,ref:O,multiple:u&&R===Po.DEFAULT_NULL_INDEX,onChange:re,style:{display:"none"}},S)),o==null?void 0:o({imageList:P,onImageUpload:G,onImageRemoveAll:z,onImageUpdate:H,onImageRemove:q,errors:$,dragProps:{onDrop:ye,onDragEnter:K,onDragLeave:ae,onDragOver:oe,onDragStart:pe},isDragging:W}))},ZP=WP.default=CD,kD=["color","size","title"];function uy(){return uy=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function TD(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o=0)&&(n[r]=e[r]);return n}var yx=C.forwardRef(function(e,t){var n=e.color,i=e.size,r=e.title,o=ED(e,kD);return ee.createElement("svg",uy({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:i,height:i,fill:n},o),r?ee.createElement("title",null,r):null,ee.createElement("path",{d:"M11.534 7h3.932a.25.25 0 0 1 .192.41l-1.966 2.36a.25.25 0 0 1-.384 0l-1.966-2.36a.25.25 0 0 1 .192-.41zm-11 2h3.932a.25.25 0 0 0 .192-.41L2.692 6.23a.25.25 0 0 0-.384 0L.342 8.59A.25.25 0 0 0 .534 9z"}),ee.createElement("path",{fillRule:"evenodd",d:"M8 3c-1.552 0-2.94.707-3.857 1.818a.5.5 0 1 1-.771-.636A6.002 6.002 0 0 1 13.917 7H12.9A5.002 5.002 0 0 0 8 3zM3.1 9a5.002 5.002 0 0 0 8.757 2.182.5.5 0 1 1 .771.636A6.002 6.002 0 0 1 2.083 9H3.1z"}))});yx.propTypes={color:fe.string,size:fe.oneOfType([fe.string,fe.number]),title:fe.string};yx.defaultProps={color:"currentColor",size:"1em",title:null};var PD=["color","size","title"];function dy(){return dy=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function MD(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o=0)&&(n[r]=e[r]);return n}var Uf=C.forwardRef(function(e,t){var n=e.color,i=e.size,r=e.title,o=OD(e,PD);return ee.createElement("svg",dy({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:i,height:i,fill:n},o),r?ee.createElement("title",null,r):null,ee.createElement("path",{d:"M15 12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1.172a3 3 0 0 0 2.12-.879l.83-.828A1 1 0 0 1 6.827 3h2.344a1 1 0 0 1 .707.293l.828.828A3 3 0 0 0 12.828 5H14a1 1 0 0 1 1 1v6zM2 4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-1.172a2 2 0 0 1-1.414-.586l-.828-.828A2 2 0 0 0 9.172 2H6.828a2 2 0 0 0-1.414.586l-.828.828A2 2 0 0 1 3.172 4H2z"}),ee.createElement("path",{d:"M8 11a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5zm0 1a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM3 6.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0z"}))});Uf.propTypes={color:fe.string,size:fe.oneOfType([fe.string,fe.number]),title:fe.string};Uf.defaultProps={color:"currentColor",size:"1em",title:null};const $u=async(e,t)=>{const n="https://api.cloudinary.com/v1_1/dff97ky68/upload",i="mnxkqfco",r=new FormData;r.append("file",e),r.append("upload_preset",i);try{const o=await fetch(n,{method:"POST",body:r});if(!o.ok)throw new Error(`Failed to upload image to Cloudinary: ${o.statusText}`);return(await o.json()).secure_url}catch(o){console.error("Error uploading image to Cloudinary:",o),t&&(t(s=>({...s,imgUpLoading:"An error occurred while uploading the image.Check your internet connection"})),setTimeout(()=>{t(s=>({...s,imgUpLoading:""}))},5e3))}};function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[r]=e[r]);return n}function Zf(e,t){return Zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},Zf(e,t)}function bx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zf(e,t)}function LD(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function AD(e,t){e.classList?e.classList.add(t):LD(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function u2(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function RD(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=u2(e.className,t):e.setAttribute("class",u2(e.className&&e.className.baseVal||"",t))}const d2={disabled:!1},Gf=ee.createContext(null);var GP=function(t){return t.scrollTop},Wc="unmounted",As="exited",Rs="entering",Wa="entered",hy="exiting",or=function(e){bx(t,e);function t(i,r){var o;o=e.call(this,i,r)||this;var s=r,l=s&&!s.isMounting?i.enter:i.appear,c;return o.appearStatus=null,i.in?l?(c=As,o.appearStatus=Rs):c=Wa:i.unmountOnExit||i.mountOnEnter?c=Wc:c=As,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(r,o){var s=r.in;return s&&o.status===Wc?{status:As}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var s=this.state.status;this.props.in?s!==Rs&&s!==Wa&&(o=Rs):(s===Rs||s===Wa)&&(o=hy)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,s,l;return o=s=l=r,r!=null&&typeof r!="number"&&(o=r.exit,s=r.enter,l=r.appear!==void 0?r.appear:s),{exit:o,enter:s,appear:l}},n.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===Rs){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:uh.findDOMNode(this);s&&GP(s)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===As&&this.setState({status:Wc})},n.performEnter=function(r){var o=this,s=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[uh.findDOMNode(this),l],u=c[0],h=c[1],f=this.getTimeouts(),m=l?f.appear:f.enter;if(!r&&!s||d2.disabled){this.safeSetState({status:Wa},function(){o.props.onEntered(u)});return}this.props.onEnter(u,h),this.safeSetState({status:Rs},function(){o.props.onEntering(u,h),o.onTransitionEnd(m,function(){o.safeSetState({status:Wa},function(){o.props.onEntered(u,h)})})})},n.performExit=function(){var r=this,o=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:uh.findDOMNode(this);if(!o||d2.disabled){this.safeSetState({status:As},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:hy},function(){r.props.onExiting(l),r.onTransitionEnd(s.exit,function(){r.safeSetState({status:As},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,o.nextCallback=null,r(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:uh.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=c[0],h=c[1];this.props.addEndListener(u,h)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Wc)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=Oe(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ee.createElement(Gf.Provider,{value:null},typeof s=="function"?s(r,l):ee.cloneElement(ee.Children.only(s),l))},t}(ee.Component);or.contextType=Gf;or.propTypes={};function Aa(){}or.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Aa,onEntering:Aa,onEntered:Aa,onExit:Aa,onExiting:Aa,onExited:Aa};or.UNMOUNTED=Wc;or.EXITED=As;or.ENTERING=Rs;or.ENTERED=Wa;or.EXITING=hy;var ID=function(t,n){return t&&n&&n.split(" ").forEach(function(i){return AD(t,i)})},fv=function(t,n){return t&&n&&n.split(" ").forEach(function(i){return RD(t,i)})},xx=function(e){bx(t,e);function t(){for(var i,r=arguments.length,o=new Array(r),s=0;s{const[i,r]=C.useState(!1),[o,s]=C.useState("environment"),l=C.useRef(null);C.useEffect(()=>(i?h():f(),()=>{f()}));const c=()=>{r(!0)},u=()=>{s(y=>y==="user"?"environment":"user"),f(),h()},h=()=>{navigator.mediaDevices.getUserMedia({video:{facingMode:o}}).then(y=>{l.current&&(l.current.srcObject=y,l.current.play())}).catch(y=>{console.error("Error accessing camera:",y)})},f=()=>{l.current&&l.current.srcObject&&(l.current.srcObject.getTracks().forEach(x=>{x.stop()}),l.current.srcObject=null)},m=async()=>{const y=document.createElement("canvas");y.width=l.current.videoWidth,y.height=l.current.videoHeight,y.getContext("2d").drawImage(l.current,0,0);const x=y.toDataURL("image/png");try{const S=await $u(b(x,"image.png"));t({...e,image:S}),r(!1)}catch(S){console.error("Error uploading image to Cloudinary:",S)}},b=(y,w)=>{const x=y.split(","),S=x[0].match(/:(.*?);/)[1],k=atob(x[1]);let T=k.length;const P=new Uint8Array(T);for(;T--;)P[T]=k.charCodeAt(T);return new File([P],w,{type:S})},v=async y=>{if(y.length>0){const w=y[0].data_url;try{const x=await $u(b(w,"image.png"));t({...e,image:x}),n(y)}catch(x){console.error("Error uploading image to Cloudinary:",x)}}};return g.jsxs("div",{className:"relative z-50 pt-0 pb-4",children:[" ",g.jsx(ZP,{value:[e],onChange:v,dataURLKey:"data_url",children:({onImageUpload:y,isDragging:w,dragProps:x})=>g.jsxs("div",{className:"relative flex flex-col items-center p-5 rounded-8xl ",children:[g.jsx("div",{className:`w-[23rem] h-[15rem] bg-white bg-opacity-57 shadow-lg ring-1 ring-gray-300 flex justify-center border-1 items-center p-4 rounded-3xl backdrop-blur-[6px] ${e.image&&"mb-10"}`,children:e.image?g.jsx("img",{src:e.image,alt:"Uploaded",className:"w-full h-full object-cover rounded-lg animate-fade-in"}):g.jsx(Uf,{className:"text-gray-400 h-12 w-12"})}),g.jsxs("div",{className:`absolute bottom-0 flex justify-center space-x-4 transition-all duration-700 ease-in-out transform ${e.image?"translate-y-1 delay-100":"delay-0"}`,children:[g.jsx("button",{className:`text-[1rem] leading-4 mt-3 text-white shadow-buttonShadow bg-gradient-to-b from-green-500 to-green-600 font-semibold focus:outline-none rounded-[30px] px-5 py-4 bg-opacity-20 ${w&&"opacity-50"}`,onClick:c,...x,children:w?"Uploading...":"Take Photo"}),g.jsx("button",{className:"text-base mt-3 text-white bg-gradient-to-b from-green-500 to-green-600 shadow-buttonShadow focus:outline-none rounded-[30px] px-5 py-4 bg-opacity-20 font-semibold",onClick:y,children:"Add Photo"})]})]})}),i&&g.jsx(xx,{in:i,timeout:300,classNames:"zoom",unmountOnExit:!0,children:g.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-75 animate-zoom-in",children:g.jsxs("div",{className:"w-full max-w-md h-auto max-h-[80vh] z-[30] bg-white rounded-3xl bg-opacity-57 backdrop-blur-[5px] shadow-lg ring-1 ring-gray-300 animate-zoom-in",children:[g.jsx("button",{className:"absolute top-0 right-0 text-base mt-3 text-white bg-gradient-to-b from-red-300 to-red-500 focus:outline-none rounded-[30px] mr-3 px-5 py-3 bg-opacity-20 font-semibold",onClick:()=>r(!1),children:"X"}),g.jsx("video",{ref:l,className:"w-full mt-[4rem] max-h-[60vh] object-contain"}),g.jsxs("div",{className:"flex justify-center mt-1",children:[g.jsx("button",{className:"text-base mt-3 text-white bg-gradient-to-b from-blue-300 to-emerald-500 focus:outline-none rounded-[30px] mr-3 px-3 py-4 bg-opacity-20 font-semibold",onClick:m,children:"Capture"}),g.jsx("button",{className:"text-base mt-3 text-white bg-gradient-to-b from-blue-300 to-emerald-500 focus:outline-none rounded-[30px] px-5 py-4 bg-opacity-20 font-semibold",onClick:u,children:o==="user"?g.jsx(yx,{style:{fontSize:"24px"}}):g.jsx(Uf,{})})]})]})})})]})};KP.propTypes={formData:fe.object.isRequired,setFormData:fe.func.isRequired,onChange:fe.func.isRequired};var pv={VITE_BACKEND_URL:"https://paws-backend.azurewebsites.net",VITE_GOOGLE_MAPS_API_KEY:"AIzaSyBBUSExqFtg19K7UZQ4LzGE7MygnoxibRo",VITE_CLOUDINARY_UPLOAD_URL:"https://api.cloudinary.com/v1_1/dff97ky68/upload",VITE_CLOUDINARY_UPLOAD_PRESET:"mnxkqfco",VITE_VAPID_KEY:"BPcsdCOoYvVHjgNVZUQJGBMm_f8OFU9oURvh2ukHhl5-kNoF0IEzJpOsMOlMskk7d7sOdakGdCP0cy6OI9yzWvw",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},BD={};const FD=async(e,t,n,i)=>{try{const r=await $u(e[0].file,n);console.log(r),t({target:{name:"image",value:r}});let o=null,s=0,l=[];const c=pv.VITE_PREDICTION_URL_ANIMAL,u=pv.VITE_PREDICTION_KEY_ANIMAL,h=await fetch(c,{method:"POST",headers:{"Prediction-Key":u,"Content-Type":"application/json"},body:JSON.stringify({Url:r})});if(h.ok){const y=await h.json();y.predictions&&y.predictions.length>0&&y.predictions.sort((x,S)=>S.probability-x.probability).slice(0,4).forEach(x=>{x.probability>.5&&(s++,o||(o=x.tagName,t({target:{name:"predictedAnimal",value:o}})))})}const f=pv.VITE_PREDICTION_URL_INJURY,m=BD.VITE_PREDICTION_KEY_INJURY,b=await fetch(f,{method:"POST",headers:{"Prediction-Key":m,"Content-Type":"application/json"},body:JSON.stringify({Url:r})});if(b.ok){const y=await b.json();y.predictions&&y.predictions.length>0&&(l=y.predictions.sort((x,S)=>S.probability-x.probability).slice(0,4).filter(x=>x.probability>.5).map(x=>x.tagName))}let v;s===1?v="one":s===2?v="two":s>=3?v="more":v="",t({target:{name:"numberOfAnimals",value:v}}),t({target:{name:"description",value:l[0]}}),t({target:{name:"image",value:r}}),i(y=>({...y,image:r,predictedAnimal:o,predictedNumberOfAnimals:v,predictedDescription:l[0]}))}catch(r){console.error("Error handling image change:",r)}},Ri=()=>g.jsx("div",{className:"fixed top-0 w-full h-screen p-4 bg-cover bg-center sm-max:bg-custom-mobile sm-max:bg-no-repeat sm-max:bg-cover",style:{backgroundImage:"url('./images/background.png')",backgroundRepeat:"no-repeat",backgroundSize:"cover"}});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var to=function(){return to=Object.assign||function(t){for(var n,i=1,r=arguments.length;ig.jsx(no,{speed:3,width:"100%",height:153.3,backgroundColor:"#daebc8",foregroundColor:"#ecebeb",...e,children:g.jsx("rect",{x:"0",y:"0",rx:"20",ry:"20",width:"100%",height:"135.3"})}),Sx="-";function YD(e){const t=qD(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;function r(s){const l=s.split(Sx);return l[0]===""&&l.length!==1&&l.shift(),qP(l,t)||KD(s)}function o(s,l){const c=n[s]||[];return l&&i[s]?[...c,...i[s]]:c}return{getClassGroupId:r,getConflictingClassGroupIds:o}}function qP(e,t){var s;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),r=i?qP(e.slice(1),i):void 0;if(r)return r;if(t.validators.length===0)return;const o=e.join(Sx);return(s=t.validators.find(({validator:l})=>l(o)))==null?void 0:s.classGroupId}const h2=/^\[(.+)\]$/;function KD(e){if(h2.test(e)){const t=h2.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function qD(e){const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return QD(Object.entries(e.classGroups),n).forEach(([o,s])=>{fy(s,i,o,t)}),i}function fy(e,t,n,i){e.forEach(r=>{if(typeof r=="string"){const o=r===""?t:f2(t,r);o.classGroupId=n;return}if(typeof r=="function"){if(XD(r)){fy(r(i),t,n,i);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([o,s])=>{fy(s,f2(t,o),n,i)})})}function f2(e,t){let n=e;return t.split(Sx).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n}function XD(e){return e.isThemeGetter}function QD(e,t){return t?e.map(([n,i])=>{const r=i.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,l])=>[t+s,l])):o);return[n,r]}):e}function JD(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;function r(o,s){n.set(o,s),t++,t>e&&(t=0,i=n,n=new Map)}return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=i.get(o))!==void 0)return r(o,s),s},set(o,s){n.has(o)?n.set(o,s):r(o,s)}}}const XP="!";function ej(e){const t=e.separator,n=t.length===1,i=t[0],r=t.length;return function(s){const l=[];let c=0,u=0,h;for(let y=0;yu?h-u:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:v}}}function tj(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(i=>{i[0]==="["?(t.push(...n.sort(),i),n=[]):n.push(i)}),t.push(...n.sort()),t}function nj(e){return{cache:JD(e.cacheSize),splitModifiers:ej(e),...YD(e)}}const ij=/\s+/;function rj(e,t){const{splitModifiers:n,getClassGroupId:i,getConflictingClassGroupIds:r}=t,o=new Set;return e.trim().split(ij).map(s=>{const{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:h}=n(s);let f=i(h?u.substring(0,h):u),m=!!h;if(!f){if(!h)return{isTailwindClass:!1,originalClassName:s};if(f=i(u),!f)return{isTailwindClass:!1,originalClassName:s};m=!1}const b=tj(l).join(":");return{isTailwindClass:!0,modifierId:c?b+XP:b,classGroupId:f,originalClassName:s,hasPostfixModifier:m}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:l,classGroupId:c,hasPostfixModifier:u}=s,h=l+c;return o.has(h)?!1:(o.add(h),r(c,u).forEach(f=>o.add(l+f)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function oj(){let e=0,t,n,i="";for(;ef(h),e());return n=nj(u),i=n.cache.get,r=n.cache.set,o=l,l(c)}function l(c){const u=i(c);if(u)return u;const h=rj(c,n);return r(c,h),h}return function(){return o(oj.apply(null,arguments))}}function st(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const JP=/^\[(?:([a-z-]+):)?(.+)\]$/i,aj=/^\d+\/\d+$/,lj=new Set(["px","full","screen"]),cj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Br(e){return Hs(e)||lj.has(e)||aj.test(e)}function Oo(e){return Yl(e,"length",_j)}function Hs(e){return!!e&&!Number.isNaN(Number(e))}function dh(e){return Yl(e,"number",Hs)}function kc(e){return!!e&&Number.isInteger(Number(e))}function pj(e){return e.endsWith("%")&&Hs(e.slice(0,-1))}function Ee(e){return JP.test(e)}function Mo(e){return cj.test(e)}const mj=new Set(["length","size","percentage"]);function gj(e){return Yl(e,mj,eO)}function vj(e){return Yl(e,"position",eO)}const yj=new Set(["image","url"]);function bj(e){return Yl(e,yj,Sj)}function xj(e){return Yl(e,"",wj)}function Ec(){return!0}function Yl(e,t,n){const i=JP.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):n(i[2]):!1}function _j(e){return uj.test(e)&&!dj.test(e)}function eO(){return!1}function wj(e){return hj.test(e)}function Sj(e){return fj.test(e)}function Cj(){const e=st("colors"),t=st("spacing"),n=st("blur"),i=st("brightness"),r=st("borderColor"),o=st("borderRadius"),s=st("borderSpacing"),l=st("borderWidth"),c=st("contrast"),u=st("grayscale"),h=st("hueRotate"),f=st("invert"),m=st("gap"),b=st("gradientColorStops"),v=st("gradientColorStopPositions"),y=st("inset"),w=st("margin"),x=st("opacity"),S=st("padding"),k=st("saturate"),T=st("scale"),P=st("sepia"),O=st("skew"),M=st("space"),R=st("translate"),N=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",Ee,t],j=()=>[Ee,t],B=()=>["",Br,Oo],W=()=>["auto",Hs,Ee],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],z=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",Ee],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>[Hs,dh],X=()=>[Hs,Ee];return{cacheSize:500,separator:":",theme:{colors:[Ec],spacing:[Br,Oo],blur:["none","",Mo,Ee],brightness:J(),borderColor:[e],borderRadius:["none","","full",Mo,Ee],borderSpacing:j(),borderWidth:B(),contrast:J(),grayscale:q(),hueRotate:X(),invert:q(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[pj,Oo],inset:$(),margin:$(),opacity:J(),padding:j(),saturate:J(),scale:J(),sepia:q(),skew:X(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",Ee]}],container:["container"],columns:[{columns:[Mo]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Z(),Ee]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",kc,Ee]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ee]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",kc,Ee]}],"grid-cols":[{"grid-cols":[Ec]}],"col-start-end":[{col:["auto",{span:["full",kc,Ee]},Ee]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[Ec]}],"row-start-end":[{row:["auto",{span:[kc,Ee]},Ee]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ee]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ee]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ee,t]}],"min-w":[{"min-w":[Ee,t,"min","max","fit"]}],"max-w":[{"max-w":[Ee,t,"none","full","min","max","fit","prose",{screen:[Mo]},Mo]}],h:[{h:[Ee,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ee,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ee,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ee,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Mo,Oo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",dh]}],"font-family":[{font:[Ec]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ee]}],"line-clamp":[{"line-clamp":["none",Hs,dh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Br,Ee]}],"list-image":[{"list-image":["none",Ee]}],"list-style-type":[{list:["none","disc","decimal",Ee]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Br,Oo]}],"underline-offset":[{"underline-offset":["auto",Br,Ee]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),vj]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},bj]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:V()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[Br,Ee]}],"outline-w":[{outline:[Br,Oo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Br,Oo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Mo,xj]}],"shadow-color":[{shadow:[Ec]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":G()}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Mo,Ee]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[f]}],saturate:[{saturate:[k]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ee]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",Ee]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ee]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[kc,Ee]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ee]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ee]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ee]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Br,Oo,dh]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const kj=sj(Cj),vn=({text:e,clas:t,onClick:n,disabled:i})=>{var r="text-white focus:outline-none rounded-[30px] shadow-buttonShadow bg-gradient-to-b from-green-600 to-green-700 rounded-[35px] drop-shadow-md shadow-buttonShadow py-3 px-4 text-[1.5rem] ";return g.jsx("button",{className:kj(r,t),disabled:i,onClick:n,children:e})};vn.propTypes={text:fe.oneOfType([fe.string,fe.object]),clas:fe.string,onClick:fe.func};var tO={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",s=0;s0,Mj=function(t){var n=(t.animationType==="enter"?t.enterAnimation:t.leaveAnimation)||t.animation,i="rodal-dialog rodal-"+n+"-"+t.animationType,r=t.showCloseButton?ee.createElement("span",{className:"rodal-close",onClick:t.onClose,onKeyPress:function(v){t.onClose&&v.which===13&&t.onClose(v)},tabIndex:0}):null,o=t.width,s=t.height,l=t.measure,c=t.duration,u=t.customStyles,h=t.id,f={width:o+l,height:s+l,animationDuration:c+"ms",WebkitAnimationDuration:c+"ms"},m=Kf({},f,u);return ee.createElement("div",{style:m,className:i,id:h},t.children,r)},em=function(e){Tj(t,e);function t(){for(var i,r=arguments.length,o=new Array(r),s=0;spD(()=>import("./Map-CsvriB2Z.js"),[]));function Aj({formData:e,handleChange:t,handleNextPage:n,errors:i,setErrors:r,setFormData:o}){const[s,l]=C.useState(null),[c,u]=C.useState(!1),[h,f]=C.useState(null);C.useEffect(()=>{const y=setTimeout(()=>{Me.get(`https://paws-backend.azurewebsites.net/nearest_ngo?lat=${e.latitude}&lon=${e.longitude}`).then(x=>{f(x.data),u(!0)}).catch(x=>{console.error(x)})},3e4);return l(y),()=>clearTimeout(y)},[e.latitude,e.longitude]);const m=y=>{const w=e.landmark;FD(y,t,r,o),w!=null&&o(x=>({...x,landmark:w}))},b=C.useRef(),v=C.useMemo(()=>e.landmark!==""?e.landmark:b.current,[e.landmark]);return g.jsxs("div",{className:"relative z-[3] h-fit w-full flex flex-col gap-3 justify-center items-center overflow-x-hidden",children:[g.jsx(Ri,{}),g.jsx(em,{visible:c,animation:"zoom",showCloseButton:!0,closeMaskOnClick:!0,onClose:()=>{u(!1)},closeOnEsc:!0,className:"bg-black bg-opacity-60 backdrop-blur-md ",width:360,height:290,children:g.jsxs("div",{className:"flex flex-col relative w-full h-full",children:[g.jsx("p",{className:"font-breeSerif text-xl mb-4 font-normal text-balance",children:"Having issues ?"}),g.jsxs("p",{className:"font-breeSerif text-lg mb-2 font-normal text-balance",children:["Nearest Ngo :"," ",h===null?"loading...":h.name]}),g.jsxs("p",{className:"font-breeSerif text-lg mb-2 font-normal text-balance",children:["Contact Number :"," ",h===null?"Loading...":h.phone_number]}),g.jsxs("p",{className:"font-breeSerif text-lg mb-13 font-normal text-balance",children:["Emergency Contact Number :"," ",h===null?"Loading...":h.emergency_contact_number]}),g.jsx("div",{className:"absolute bottom-3 w-full flex items-center justify-center",children:g.jsx("a",{href:`sms:${h?h.phone_number:""}?&body=Hello,%0A%0AI'm%20reporting%20an%20urgent%20animal%20rescue%20situation%20that%20needs%20immediate%20attention:%0A%0A- Description:%20[Data%20to%20describe%20what%20happened]%0A- Animal%20Type:%20[Species]%0A- Severity:%20[Urgency%20level]%0A- Location:%20${e.address?e.address:"[Enter%20Your%20Address]"}%0A%0APlease%20let%20me%20know%20if%20you%20need%20further%20details%20or%20assistance.%0A%0AThank%20you,%0A`,className:"px-4 py-4 bg-gradient-to-b tracking-wider rounded-2xl from-green-300 to-green-800 text-white shadow-lg",children:"Send Message Directly"})})]})}),g.jsx("h1",{className:" mt-5 text-center pb-1 pl-2 pr-2 z-[3] text-indigo-900 font-bold tracking-wide text-[1.5em] underline",children:"Upload Image and Location"}),g.jsx(KP,{formData:e,setFormData:o,onChange:m}),g.jsx("div",{className:"w-[23rem] z-[30] bg-white rounded-3xl bg-opacity-57 backdrop-blur-[5px] shadow-lg ring-1 ring-gray-300",children:g.jsxs("div",{className:" flex-col justify-center items-center gap-6 p-4 ",children:[g.jsx("div",{className:"w-full h-[200px] flex pb-5",children:g.jsx(C.Suspense,{fallback:g.jsx(GD,{}),children:g.jsx(Rj,{formData:e})})}),g.jsxs("div",{className:" z-[30] justify-center flex flex-col justify-items-center gap-3",children:[g.jsx("label",{children:g.jsxs("p",{className:"text-base font-semibold pr-5 text-indigo-900 border-1 overflow-wrap break-word",children:["Address: ",e.address?e.address:"loading.."]})}),g.jsx("textarea",{className:"w-[21rem] flex items-center justify-center text-[1rem] p-2 rounded-3xl",name:"landmark",value:v,onChange:t,rows:1,placeholder:"Enter a landmark"})]})]})}),i&&g.jsx("p",{className:"text-red-500",children:i.landmark||i.image||i.imgUpLoading||i.latitude}),g.jsx(vn,{text:"Next",clas:"mb-24 font-semibold tracking-wider px-8 text-white bg-gradient-to-b from-green-500 to-green-600",onClick:n})]})}function Rj({formData:e}){const[t,n]=C.useState([22.5595,88.39644]);return C.useEffect(()=>{const i=parseFloat(e.latitude),r=parseFloat(e.longitude);!isNaN(i)&&!isNaN(r)&&n([i,r])},[e.latitude,e.longitude]),g.jsx(Lj,{zoom:18,customCenter:t})}const Ll=Math.min,qs=Math.max,qf=Math.round,hh=Math.floor,ls=e=>({x:e,y:e}),Ij={left:"right",right:"left",bottom:"top",top:"bottom"},Nj={start:"end",end:"start"};function my(e,t,n){return qs(e,Ll(t,n))}function bd(e,t){return typeof e=="function"?e(t):e}function sa(e){return e.split("-")[0]}function xd(e){return e.split("-")[1]}function nO(e){return e==="x"?"y":"x"}function Cx(e){return e==="y"?"height":"width"}function tm(e){return["top","bottom"].includes(sa(e))?"y":"x"}function kx(e){return nO(tm(e))}function Dj(e,t,n){n===void 0&&(n=!1);const i=xd(e),r=kx(e),o=Cx(r);let s=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Xf(s)),[s,Xf(s)]}function jj(e){const t=Xf(e);return[gy(e),t,gy(t)]}function gy(e){return e.replace(/start|end/g,t=>Nj[t])}function zj(e,t,n){const i=["left","right"],r=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:i:t?i:r;case"left":case"right":return t?o:s;default:return[]}}function $j(e,t,n,i){const r=xd(e);let o=zj(sa(e),n==="start",i);return r&&(o=o.map(s=>s+"-"+r),t&&(o=o.concat(o.map(gy)))),o}function Xf(e){return e.replace(/left|right|bottom|top/g,t=>Ij[t])}function Bj(e){return{top:0,right:0,bottom:0,left:0,...e}}function iO(e){return typeof e!="number"?Bj(e):{top:e,right:e,bottom:e,left:e}}function Qf(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function m2(e,t,n){let{reference:i,floating:r}=e;const o=tm(t),s=kx(t),l=Cx(s),c=sa(t),u=o==="y",h=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,m=i[l]/2-r[l]/2;let b;switch(c){case"top":b={x:h,y:i.y-r.height};break;case"bottom":b={x:h,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:f};break;case"left":b={x:i.x-r.width,y:f};break;default:b={x:i.x,y:i.y}}switch(xd(t)){case"start":b[s]-=m*(n&&u?-1:1);break;case"end":b[s]+=m*(n&&u?-1:1);break}return b}const Fj=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:s}=n,l=o.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:f}=m2(u,i,c),m=i,b={},v=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:o,platform:s,elements:l,middlewareData:c}=t,{element:u,padding:h=0}=bd(e,t)||{};if(u==null)return{};const f=iO(h),m={x:n,y:i},b=kx(r),v=Cx(b),y=await s.getDimensions(u),w=b==="y",x=w?"top":"left",S=w?"bottom":"right",k=w?"clientHeight":"clientWidth",T=o.reference[v]+o.reference[b]-m[b]-o.floating[v],P=m[b]-o.reference[b],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let M=O?O[k]:0;(!M||!await(s.isElement==null?void 0:s.isElement(O)))&&(M=l.floating[k]||o.floating[v]);const R=T/2-P/2,N=M/2-y[v]/2-1,I=Ll(f[x],N),$=Ll(f[S],N),j=I,B=M-y[v]-$,W=M/2-y[v]/2+R,Z=my(j,W,B),V=!c.arrow&&xd(r)!=null&&W!==Z&&o.reference[v]/2-(Wj<=0)){var N,I;const j=(((N=o.flip)==null?void 0:N.index)||0)+1,B=P[j];if(B)return{data:{index:j,overflows:R},reset:{placement:B}};let W=(I=R.filter(Z=>Z.overflows[0]<=0).sort((Z,V)=>Z.overflows[1]-V.overflows[1])[0])==null?void 0:I.placement;if(!W)switch(b){case"bestFit":{var $;const Z=($=R.map(V=>[V.placement,V.overflows.filter(G=>G>0).reduce((G,z)=>G+z,0)]).sort((V,G)=>V[1]-G[1])[0])==null?void 0:$[0];Z&&(W=Z);break}case"initialPlacement":W=l;break}if(r!==W)return{reset:{placement:W}}}return{}}}};async function Wj(e,t){const{placement:n,platform:i,elements:r}=e,o=await(i.isRTL==null?void 0:i.isRTL(r.floating)),s=sa(n),l=xd(n),c=tm(n)==="y",u=["left","top"].includes(s)?-1:1,h=o&&c?-1:1,f=bd(t,e);let{mainAxis:m,crossAxis:b,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof v=="number"&&(b=l==="end"?v*-1:v),c?{x:b*h,y:m*u}:{x:m*u,y:b*h}}const Uj=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:r,y:o,placement:s,middlewareData:l}=t,c=await Wj(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:r+c.x,y:o+c.y,data:{...c,placement:s}}}}},Zj=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x,y:S}=w;return{x,y:S}}},...c}=bd(e,t),u={x:n,y:i},h=await rO(t,c),f=tm(sa(r)),m=nO(f);let b=u[m],v=u[f];if(o){const w=m==="y"?"top":"left",x=m==="y"?"bottom":"right",S=b+h[w],k=b-h[x];b=my(S,b,k)}if(s){const w=f==="y"?"top":"left",x=f==="y"?"bottom":"right",S=v+h[w],k=v-h[x];v=my(S,v,k)}const y=l.fn({...t,[m]:b,[f]:v});return{...y,data:{x:y.x-n,y:y.y-i}}}}};function cs(e){return oO(e)?(e.nodeName||"").toLowerCase():"#document"}function ci(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function po(e){var t;return(t=(oO(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function oO(e){return e instanceof Node||e instanceof ci(e).Node}function uo(e){return e instanceof Element||e instanceof ci(e).Element}function Er(e){return e instanceof HTMLElement||e instanceof ci(e).HTMLElement}function g2(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ci(e).ShadowRoot}function _d(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Ii(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(r)}function Gj(e){return["table","td","th"].includes(cs(e))}function Ex(e){const t=Tx(),n=Ii(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function sO(e){let t=Al(e);for(;Er(t)&&!nm(t);){if(Ex(t))return t;t=Al(t)}return null}function Tx(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function nm(e){return["html","body","#document"].includes(cs(e))}function Ii(e){return ci(e).getComputedStyle(e)}function im(e){return uo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Al(e){if(cs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||g2(e)&&e.host||po(e);return g2(t)?t.host:t}function aO(e){const t=Al(e);return nm(t)?e.ownerDocument?e.ownerDocument.body:e.body:Er(t)&&_d(t)?t:aO(t)}function Bu(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=aO(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),s=ci(r);return o?t.concat(s,s.visualViewport||[],_d(r)?r:[],s.frameElement&&n?Bu(s.frameElement):[]):t.concat(r,Bu(r,[],n))}function lO(e){const t=Ii(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=Er(e),o=r?e.offsetWidth:n,s=r?e.offsetHeight:i,l=qf(n)!==o||qf(i)!==s;return l&&(n=o,i=s),{width:n,height:i,$:l}}function Px(e){return uo(e)?e:e.contextElement}function pl(e){const t=Px(e);if(!Er(t))return ls(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=lO(t);let s=(o?qf(n.width):n.width)/i,l=(o?qf(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Yj=ls(0);function cO(e){const t=ci(e);return!Tx()||!t.visualViewport?Yj:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kj(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ci(e)?!1:t}function aa(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=Px(e);let s=ls(1);t&&(i?uo(i)&&(s=pl(i)):s=pl(e));const l=Kj(o,n,i)?cO(o):ls(0);let c=(r.left+l.x)/s.x,u=(r.top+l.y)/s.y,h=r.width/s.x,f=r.height/s.y;if(o){const m=ci(o),b=i&&uo(i)?ci(i):i;let v=m.frameElement;for(;v&&i&&b!==m;){const y=pl(v),w=v.getBoundingClientRect(),x=Ii(v),S=w.left+(v.clientLeft+parseFloat(x.paddingLeft))*y.x,k=w.top+(v.clientTop+parseFloat(x.paddingTop))*y.y;c*=y.x,u*=y.y,h*=y.x,f*=y.y,c+=S,u+=k,v=ci(v).frameElement}}return Qf({width:h,height:f,x:c,y:u})}const qj=[":popover-open",":modal"];function uO(e){let t=!1,n=0,i=0;function r(o){try{t=t||e.matches(o)}catch{}}if(qj.forEach(o=>{r(o)}),t){const o=sO(e);if(o){const s=o.getBoundingClientRect();n=s.x,i=s.y}}return[t,n,i]}function Xj(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const o=po(i),[s]=t?uO(t.floating):[!1];if(i===o||s)return n;let l={scrollLeft:0,scrollTop:0},c=ls(1);const u=ls(0),h=Er(i);if((h||!h&&r!=="fixed")&&((cs(i)!=="body"||_d(o))&&(l=im(i)),Er(i))){const f=aa(i);c=pl(i),u.x=f.x+i.clientLeft,u.y=f.y+i.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}}function Qj(e){return Array.from(e.getClientRects())}function dO(e){return aa(po(e)).left+im(e).scrollLeft}function Jj(e){const t=po(e),n=im(e),i=e.ownerDocument.body,r=qs(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=qs(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+dO(e);const l=-n.scrollTop;return Ii(i).direction==="rtl"&&(s+=qs(t.clientWidth,i.clientWidth)-r),{width:r,height:o,x:s,y:l}}function e6(e,t){const n=ci(e),i=po(e),r=n.visualViewport;let o=i.clientWidth,s=i.clientHeight,l=0,c=0;if(r){o=r.width,s=r.height;const u=Tx();(!u||u&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:o,height:s,x:l,y:c}}function t6(e,t){const n=aa(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,o=Er(e)?pl(e):ls(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,c=r*o.x,u=i*o.y;return{width:s,height:l,x:c,y:u}}function v2(e,t,n){let i;if(t==="viewport")i=e6(e,n);else if(t==="document")i=Jj(po(e));else if(uo(t))i=t6(t,n);else{const r=cO(e);i={...t,x:t.x-r.x,y:t.y-r.y}}return Qf(i)}function hO(e,t){const n=Al(e);return n===t||!uo(n)||nm(n)?!1:Ii(n).position==="fixed"||hO(n,t)}function n6(e,t){const n=t.get(e);if(n)return n;let i=Bu(e,[],!1).filter(l=>uo(l)&&cs(l)!=="body"),r=null;const o=Ii(e).position==="fixed";let s=o?Al(e):e;for(;uo(s)&&!nm(s);){const l=Ii(s),c=Ex(s);!c&&l.position==="fixed"&&(r=null),(o?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||_d(s)&&!c&&hO(e,s))?i=i.filter(h=>h!==s):r=l,s=Al(s)}return t.set(e,i),i}function i6(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const s=[...n==="clippingAncestors"?n6(t,this._c):[].concat(n),i],l=s[0],c=s.reduce((u,h)=>{const f=v2(t,h,r);return u.top=qs(f.top,u.top),u.right=Ll(f.right,u.right),u.bottom=Ll(f.bottom,u.bottom),u.left=qs(f.left,u.left),u},v2(t,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function r6(e){const{width:t,height:n}=lO(e);return{width:t,height:n}}function o6(e,t,n,i){const r=Er(t),o=po(t),s=n==="fixed",l=aa(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const u=ls(0);if(r||!r&&!s)if((cs(t)!=="body"||_d(o))&&(c=im(t)),r){const y=aa(t,!0,s,t);u.x=y.x+t.clientLeft,u.y=y.y+t.clientTop}else o&&(u.x=dO(o));let h=l.left+c.scrollLeft-u.x,f=l.top+c.scrollTop-u.y;const[m,b,v]=uO(i);return m&&(h+=b,f+=v,r&&(h+=t.clientLeft,f+=t.clientTop)),{x:h,y:f,width:l.width,height:l.height}}function y2(e,t){return!Er(e)||Ii(e).position==="fixed"?null:t?t(e):e.offsetParent}function fO(e,t){const n=ci(e);if(!Er(e))return n;let i=y2(e,t);for(;i&&Gj(i)&&Ii(i).position==="static";)i=y2(i,t);return i&&(cs(i)==="html"||cs(i)==="body"&&Ii(i).position==="static"&&!Ex(i))?n:i||sO(e)||n}const s6=async function(e){const t=this.getOffsetParent||fO,n=this.getDimensions;return{reference:o6(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function a6(e){return Ii(e).direction==="rtl"}const l6={convertOffsetParentRelativeRectToViewportRelativeRect:Xj,getDocumentElement:po,getClippingRect:i6,getOffsetParent:fO,getElementRects:s6,getClientRects:Qj,getDimensions:r6,getScale:pl,isElement:uo,isRTL:a6};function c6(e,t){let n=null,i;const r=po(e);function o(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),o();const{left:u,top:h,width:f,height:m}=e.getBoundingClientRect();if(l||t(),!f||!m)return;const b=hh(h),v=hh(r.clientWidth-(u+f)),y=hh(r.clientHeight-(h+m)),w=hh(u),S={rootMargin:-b+"px "+-v+"px "+-y+"px "+-w+"px",threshold:qs(0,Ll(1,c))||1};let k=!0;function T(P){const O=P[0].intersectionRatio;if(O!==c){if(!k)return s();O?s(!1,O):i=setTimeout(()=>{s(!1,1e-7)},100)}k=!1}try{n=new IntersectionObserver(T,{...S,root:r.ownerDocument})}catch{n=new IntersectionObserver(T,S)}n.observe(e)}return s(!0),o}function pO(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=i,u=Px(e),h=r||o?[...u?Bu(u):[],...Bu(t)]:[];h.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const f=u&&l?c6(u,n):null;let m=-1,b=null;s&&(b=new ResizeObserver(x=>{let[S]=x;S&&S.target===u&&b&&(b.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var k;(k=b)==null||k.observe(t)})),n()}),u&&!c&&b.observe(u),b.observe(t));let v,y=c?aa(e):null;c&&w();function w(){const x=aa(e);y&&(x.x!==y.x||x.y!==y.y||x.width!==y.width||x.height!==y.height)&&n(),y=x,v=requestAnimationFrame(w)}return n(),()=>{var x;h.forEach(S=>{r&&S.removeEventListener("scroll",n),o&&S.removeEventListener("resize",n)}),f==null||f(),(x=b)==null||x.disconnect(),b=null,c&&cancelAnimationFrame(v)}}const u6=Zj,d6=Vj,h6=Hj,b2=(e,t,n)=>{const i=new Map,r={platform:l6,...n},o={...r.platform,_c:i};return Fj(e,t,{...r,platform:o})};var x2={};const f6="react-tooltip-core-styles",p6="react-tooltip-base-styles",_2={core:!1,base:!1};function w2({css:e,id:t=p6,type:n="base",ref:i}){var r,o;if(!e||typeof document>"u"||_2[n]||n==="core"&&typeof process<"u"&&(!((r=process==null?void 0:x2)===null||r===void 0)&&r.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:x2)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=f6),i||(i={});const{insertAt:s}=i;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const l=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.id=t,c.type="text/css",s==="top"&&l.firstChild?l.insertBefore(c,l.firstChild):l.appendChild(c),c.styleSheet?c.styleSheet.cssText=e:c.appendChild(document.createTextNode(e)),_2[n]=!0}const S2=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:i="top",offset:r=10,strategy:o="absolute",middlewares:s=[Uj(Number(r)),d6({fallbackAxisSideDirection:"start"}),u6({padding:5})],border:l})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:i};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:i};const c=s;return n?(c.push(h6({element:n,padding:5})),b2(e,t,{placement:i,strategy:o,middleware:c}).then(({x:u,y:h,placement:f,middlewareData:m})=>{var b,v;const y={left:`${u}px`,top:`${h}px`,border:l},{x:w,y:x}=(b=m.arrow)!==null&&b!==void 0?b:{x:0,y:0},S=(v={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&v!==void 0?v:"bottom",k=l&&{borderBottom:l,borderRight:l};let T=0;if(l){const P=`${l}`.match(/(\d+)px/);T=P!=null&&P[1]?Number(P[1]):1}return{tooltipStyles:y,tooltipArrowStyles:{left:w!=null?`${w}px`:"",top:x!=null?`${x}px`:"",right:"",bottom:"",...k,[S]:`-${4+T}px`},place:f}})):b2(e,t,{placement:"bottom",strategy:o,middleware:c}).then(({x:u,y:h,placement:f})=>({tooltipStyles:{left:`${u}px`,top:`${h}px`},tooltipArrowStyles:{},place:f}))},C2=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),k2=(e,t,n)=>{let i=null;const r=function(...o){const s=()=>{i=null};!i&&(e.apply(this,o),i=setTimeout(s,t))};return r.cancel=()=>{i&&(clearTimeout(i),i=null)},r},E2=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",vy=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((r,o)=>vy(r,t[o]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!E2(e)||!E2(t))return e===t;const n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&n.every(r=>vy(e[r],t[r]))},m6=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const i=t.getPropertyValue(n);return i==="auto"||i==="scroll"})},T2=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(m6(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},g6=typeof window<"u"?C.useLayoutEffect:C.useEffect,v6="DEFAULT_TOOLTIP_ID",y6={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},b6=C.createContext({getTooltipData:()=>y6});function mO(e=v6){return C.useContext(b6).getTooltipData(e)}var Ra={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},mv={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const x6=({forwardRef:e,id:t,className:n,classNameArrow:i,variant:r="dark",anchorId:o,anchorSelect:s,place:l="top",offset:c=10,events:u=["hover"],openOnClick:h=!1,positionStrategy:f="absolute",middlewares:m,wrapper:b,delayShow:v=0,delayHide:y=0,float:w=!1,hidden:x=!1,noArrow:S=!1,clickable:k=!1,closeOnEsc:T=!1,closeOnScroll:P=!1,closeOnResize:O=!1,openEvents:M,closeEvents:R,globalCloseEvents:N,imperativeModeOnly:I,style:$,position:j,afterShow:B,afterHide:W,content:Z,contentWrapperRef:V,isOpen:G,defaultIsOpen:z=!1,setIsOpen:q,activeAnchor:H,setActiveAnchor:J,border:X,opacity:re,arrowColor:ne,role:oe="tooltip"})=>{var K;const ae=C.useRef(null),ye=C.useRef(null),pe=C.useRef(null),ce=C.useRef(null),we=C.useRef(null),[Le,ot]=C.useState({tooltipStyles:{},tooltipArrowStyles:{},place:l}),[We,$n]=C.useState(!1),[hn,fn]=C.useState(!1),[Ge,Lr]=C.useState(null),mi=C.useRef(!1),Jn=C.useRef(null),{anchorRefs:sr,setActiveAnchor:Ar}=mO(t),ei=C.useRef(!1),[xn,zi]=C.useState([]),ti=C.useRef(!1),$i=h||u.includes("click"),_e=$i||(M==null?void 0:M.click)||(M==null?void 0:M.dblclick)||(M==null?void 0:M.mousedown),gi=M?{...M}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!M&&$i&&Object.assign(gi,{mouseenter:!1,focus:!1,click:!0});const ar=R?{...R}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!R&&$i&&Object.assign(ar,{mouseleave:!1,blur:!1});const _n=N?{...N}:{escape:T||!1,scroll:P||!1,resize:O||!1,clickOutsideAnchor:_e||!1};I&&(Object.assign(gi,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(ar,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(_n,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),g6(()=>(ti.current=!0,()=>{ti.current=!1}),[]);const ft=se=>{ti.current&&(se&&fn(!0),setTimeout(()=>{ti.current&&(q==null||q(se),G===void 0&&$n(se))},10))};C.useEffect(()=>{if(G===void 0)return()=>null;G&&fn(!0);const se=setTimeout(()=>{$n(G)},10);return()=>{clearTimeout(se)}},[G]),C.useEffect(()=>{if(We!==mi.current)if(we.current&&clearTimeout(we.current),mi.current=We,We)B==null||B();else{const se=(be=>{const Se=be.match(/^([\d.]+)(ms|s)$/);if(!Se)return 0;const[,Ft,tn]=Se;return Number(Ft)*(tn==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));we.current=setTimeout(()=>{fn(!1),Lr(null),W==null||W()},se+25)}},[We]);const mo=se=>{ot(be=>vy(be,se)?be:se)},go=(se=v)=>{pe.current&&clearTimeout(pe.current),hn?ft(!0):pe.current=setTimeout(()=>{ft(!0)},se)},vo=(se=y)=>{ce.current&&clearTimeout(ce.current),ce.current=setTimeout(()=>{ei.current||ft(!1)},se)},Bi=se=>{var be;if(!se)return;const Se=(be=se.currentTarget)!==null&&be!==void 0?be:se.target;if(!(Se!=null&&Se.isConnected))return J(null),void Ar({current:null});v?go():ft(!0),J(Se),Ar({current:Se}),ce.current&&clearTimeout(ce.current)},yo=()=>{k?vo(y||100):y?vo():ft(!1),pe.current&&clearTimeout(pe.current)},bo=({x:se,y:be})=>{var Se;const Ft={getBoundingClientRect:()=>({x:se,y:be,width:0,height:0,top:be,left:se,right:se,bottom:be})};S2({place:(Se=Ge==null?void 0:Ge.place)!==null&&Se!==void 0?Se:l,offset:c,elementReference:Ft,tooltipReference:ae.current,tooltipArrowReference:ye.current,strategy:f,middlewares:m,border:X}).then(tn=>{mo(tn)})},Rr=se=>{if(!se)return;const be=se,Se={x:be.clientX,y:be.clientY};bo(Se),Jn.current=Se},xo=se=>{var be;if(!We)return;const Se=se.target;Se.isConnected&&(!((be=ae.current)===null||be===void 0)&&be.contains(Se)||[document.querySelector(`[id='${o}']`),...xn].some(Ft=>Ft==null?void 0:Ft.contains(Se))||(ft(!1),pe.current&&clearTimeout(pe.current)))},ys=k2(Bi,50),Bt=k2(yo,50),Bn=se=>{Bt.cancel(),ys(se)},ve=()=>{ys.cancel(),Bt()},Ne=C.useCallback(()=>{var se,be;const Se=(se=Ge==null?void 0:Ge.position)!==null&&se!==void 0?se:j;Se?bo(Se):w?Jn.current&&bo(Jn.current):H!=null&&H.isConnected&&S2({place:(be=Ge==null?void 0:Ge.place)!==null&&be!==void 0?be:l,offset:c,elementReference:H,tooltipReference:ae.current,tooltipArrowReference:ye.current,strategy:f,middlewares:m,border:X}).then(Ft=>{ti.current&&mo(Ft)})},[We,H,Z,$,l,Ge==null?void 0:Ge.place,c,f,j,Ge==null?void 0:Ge.position,w]);C.useEffect(()=>{var se,be;const Se=new Set(sr);xn.forEach(Qe=>{Se.add({current:Qe})});const Ft=document.querySelector(`[id='${o}']`);Ft&&Se.add({current:Ft});const tn=()=>{ft(!1)},Lt=T2(H),ue=T2(ae.current);_n.scroll&&(window.addEventListener("scroll",tn),Lt==null||Lt.addEventListener("scroll",tn),ue==null||ue.addEventListener("scroll",tn));let nn=null;_n.resize?window.addEventListener("resize",tn):H&&ae.current&&(nn=pO(H,ae.current,Ne,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Ln=Qe=>{Qe.key==="Escape"&&ft(!1)};_n.escape&&window.addEventListener("keydown",Ln),_n.clickOutsideAnchor&&window.addEventListener("click",xo);const et=[],_o=Qe=>{We&&(Qe==null?void 0:Qe.target)===H||Bi(Qe)},ec=Qe=>{We&&(Qe==null?void 0:Qe.target)===H&&yo()},tc=["mouseenter","mouseleave","focus","blur"],Nr=["click","dblclick","mousedown","mouseup"];Object.entries(gi).forEach(([Qe,Fi])=>{Fi&&(tc.includes(Qe)?et.push({event:Qe,listener:Bn}):Nr.includes(Qe)&&et.push({event:Qe,listener:_o}))}),Object.entries(ar).forEach(([Qe,Fi])=>{Fi&&(tc.includes(Qe)?et.push({event:Qe,listener:ve}):Nr.includes(Qe)&&et.push({event:Qe,listener:ec}))}),w&&et.push({event:"pointermove",listener:Rr});const nc=()=>{ei.current=!0},Od=()=>{ei.current=!1,yo()};return k&&!_e&&((se=ae.current)===null||se===void 0||se.addEventListener("mouseenter",nc),(be=ae.current)===null||be===void 0||be.addEventListener("mouseleave",Od)),et.forEach(({event:Qe,listener:Fi})=>{Se.forEach(ic=>{var wo;(wo=ic.current)===null||wo===void 0||wo.addEventListener(Qe,Fi)})}),()=>{var Qe,Fi;_n.scroll&&(window.removeEventListener("scroll",tn),Lt==null||Lt.removeEventListener("scroll",tn),ue==null||ue.removeEventListener("scroll",tn)),_n.resize?window.removeEventListener("resize",tn):nn==null||nn(),_n.clickOutsideAnchor&&window.removeEventListener("click",xo),_n.escape&&window.removeEventListener("keydown",Ln),k&&!_e&&((Qe=ae.current)===null||Qe===void 0||Qe.removeEventListener("mouseenter",nc),(Fi=ae.current)===null||Fi===void 0||Fi.removeEventListener("mouseleave",Od)),et.forEach(({event:ic,listener:wo})=>{Se.forEach(sg=>{var So;(So=sg.current)===null||So===void 0||So.removeEventListener(ic,wo)})})}},[H,Ne,hn,sr,xn,M,R,N,$i,v,y]),C.useEffect(()=>{var se,be;let Se=(be=(se=Ge==null?void 0:Ge.anchorSelect)!==null&&se!==void 0?se:s)!==null&&be!==void 0?be:"";!Se&&t&&(Se=`[data-tooltip-id='${t}']`);const Ft=new MutationObserver(tn=>{const Lt=[],ue=[];tn.forEach(nn=>{if(nn.type==="attributes"&&nn.attributeName==="data-tooltip-id"&&(nn.target.getAttribute("data-tooltip-id")===t?Lt.push(nn.target):nn.oldValue===t&&ue.push(nn.target)),nn.type==="childList"){if(H){const Ln=[...nn.removedNodes].filter(et=>et.nodeType===1);if(Se)try{ue.push(...Ln.filter(et=>et.matches(Se))),ue.push(...Ln.flatMap(et=>[...et.querySelectorAll(Se)]))}catch{}Ln.some(et=>{var _o;return!!(!((_o=et==null?void 0:et.contains)===null||_o===void 0)&&_o.call(et,H))&&(fn(!1),ft(!1),J(null),pe.current&&clearTimeout(pe.current),ce.current&&clearTimeout(ce.current),!0)})}if(Se)try{const Ln=[...nn.addedNodes].filter(et=>et.nodeType===1);Lt.push(...Ln.filter(et=>et.matches(Se))),Lt.push(...Ln.flatMap(et=>[...et.querySelectorAll(Se)]))}catch{}}}),(Lt.length||ue.length)&&zi(nn=>[...nn.filter(Ln=>!ue.includes(Ln)),...Lt])});return Ft.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Ft.disconnect()}},[t,s,Ge==null?void 0:Ge.anchorSelect,H]),C.useEffect(()=>{Ne()},[Ne]),C.useEffect(()=>{if(!(V!=null&&V.current))return()=>null;const se=new ResizeObserver(()=>{setTimeout(()=>Ne())});return se.observe(V.current),()=>{se.disconnect()}},[Z,V==null?void 0:V.current]),C.useEffect(()=>{var se;const be=document.querySelector(`[id='${o}']`),Se=[...xn,be];H&&Se.includes(H)||J((se=xn[0])!==null&&se!==void 0?se:be)},[o,xn,H]),C.useEffect(()=>(z&&ft(!0),()=>{pe.current&&clearTimeout(pe.current),ce.current&&clearTimeout(ce.current)}),[]),C.useEffect(()=>{var se;let be=(se=Ge==null?void 0:Ge.anchorSelect)!==null&&se!==void 0?se:s;if(!be&&t&&(be=`[data-tooltip-id='${t}']`),be)try{const Se=Array.from(document.querySelectorAll(be));zi(Se)}catch{zi([])}},[t,s,Ge==null?void 0:Ge.anchorSelect]),C.useEffect(()=>{pe.current&&(clearTimeout(pe.current),go(v))},[v]);const Mn=(K=Ge==null?void 0:Ge.content)!==null&&K!==void 0?K:Z,Ir=We&&Object.keys(Le.tooltipStyles).length>0;return C.useImperativeHandle(e,()=>({open:se=>{if(se!=null&&se.anchorSelect)try{document.querySelector(se.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${se.anchorSelect}" is not a valid CSS selector`)}Lr(se??null),se!=null&&se.delay?go(se.delay):ft(!0)},close:se=>{se!=null&&se.delay?vo(se.delay):ft(!1)},activeAnchor:H,place:Le.place,isOpen:!!(hn&&!x&&Mn&&Ir)})),hn&&!x&&Mn?ee.createElement(b,{id:t,role:oe,className:Yf("react-tooltip",Ra.tooltip,mv.tooltip,mv[r],n,`react-tooltip__place-${Le.place}`,Ra[Ir?"show":"closing"],Ir?"react-tooltip__show":"react-tooltip__closing",f==="fixed"&&Ra.fixed,k&&Ra.clickable),onTransitionEnd:se=>{we.current&&clearTimeout(we.current),We||se.propertyName!=="opacity"||(fn(!1),Lr(null),W==null||W())},style:{...$,...Le.tooltipStyles,opacity:re!==void 0&&Ir?re:void 0},ref:ae},Mn,ee.createElement(b,{className:Yf("react-tooltip-arrow",Ra.arrow,mv.arrow,i,S&&Ra.noArrow),style:{...Le.tooltipArrowStyles,background:ne?`linear-gradient(to right bottom, transparent 50%, ${ne} 50%)`:void 0},ref:ye})):null},_6=({content:e})=>ee.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),w6=ee.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:i,html:r,render:o,className:s,classNameArrow:l,variant:c="dark",place:u="top",offset:h=10,wrapper:f="div",children:m=null,events:b=["hover"],openOnClick:v=!1,positionStrategy:y="absolute",middlewares:w,delayShow:x=0,delayHide:S=0,float:k=!1,hidden:T=!1,noArrow:P=!1,clickable:O=!1,closeOnEsc:M=!1,closeOnScroll:R=!1,closeOnResize:N=!1,openEvents:I,closeEvents:$,globalCloseEvents:j,imperativeModeOnly:B=!1,style:W,position:Z,isOpen:V,defaultIsOpen:G=!1,disableStyleInjection:z=!1,border:q,opacity:H,arrowColor:J,setIsOpen:X,afterShow:re,afterHide:ne,role:oe="tooltip"},K)=>{const[ae,ye]=C.useState(i),[pe,ce]=C.useState(r),[we,Le]=C.useState(u),[ot,We]=C.useState(c),[$n,hn]=C.useState(h),[fn,Ge]=C.useState(x),[Lr,mi]=C.useState(S),[Jn,sr]=C.useState(k),[Ar,ei]=C.useState(T),[xn,zi]=C.useState(f),[ti,$i]=C.useState(b),[_e,gi]=C.useState(y),[ar,_n]=C.useState(null),[ft,mo]=C.useState(null),go=C.useRef(z),{anchorRefs:vo,activeAnchor:Bi}=mO(e),yo=Bt=>Bt==null?void 0:Bt.getAttributeNames().reduce((Bn,ve)=>{var Ne;return ve.startsWith("data-tooltip-")&&(Bn[ve.replace(/^data-tooltip-/,"")]=(Ne=Bt==null?void 0:Bt.getAttribute(ve))!==null&&Ne!==void 0?Ne:null),Bn},{}),bo=Bt=>{const Bn={place:ve=>{var Ne;Le((Ne=ve)!==null&&Ne!==void 0?Ne:u)},content:ve=>{ye(ve??i)},html:ve=>{ce(ve??r)},variant:ve=>{var Ne;We((Ne=ve)!==null&&Ne!==void 0?Ne:c)},offset:ve=>{hn(ve===null?h:Number(ve))},wrapper:ve=>{var Ne;zi((Ne=ve)!==null&&Ne!==void 0?Ne:f)},events:ve=>{const Ne=ve==null?void 0:ve.split(" ");$i(Ne??b)},"position-strategy":ve=>{var Ne;gi((Ne=ve)!==null&&Ne!==void 0?Ne:y)},"delay-show":ve=>{Ge(ve===null?x:Number(ve))},"delay-hide":ve=>{mi(ve===null?S:Number(ve))},float:ve=>{sr(ve===null?k:ve==="true")},hidden:ve=>{ei(ve===null?T:ve==="true")},"class-name":ve=>{_n(ve)}};Object.values(Bn).forEach(ve=>ve(null)),Object.entries(Bt).forEach(([ve,Ne])=>{var Mn;(Mn=Bn[ve])===null||Mn===void 0||Mn.call(Bn,Ne)})};C.useEffect(()=>{ye(i)},[i]),C.useEffect(()=>{ce(r)},[r]),C.useEffect(()=>{Le(u)},[u]),C.useEffect(()=>{We(c)},[c]),C.useEffect(()=>{hn(h)},[h]),C.useEffect(()=>{Ge(x)},[x]),C.useEffect(()=>{mi(S)},[S]),C.useEffect(()=>{sr(k)},[k]),C.useEffect(()=>{ei(T)},[T]),C.useEffect(()=>{gi(y)},[y]),C.useEffect(()=>{go.current!==z&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[z]),C.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:z==="core",disableBase:z}}))},[]),C.useEffect(()=>{var Bt;const Bn=new Set(vo);let ve=n;if(!ve&&e&&(ve=`[data-tooltip-id='${e}']`),ve)try{document.querySelectorAll(ve).forEach(be=>{Bn.add({current:be})})}catch{console.warn(`[react-tooltip] "${ve}" is not a valid CSS selector`)}const Ne=document.querySelector(`[id='${t}']`);if(Ne&&Bn.add({current:Ne}),!Bn.size)return()=>null;const Mn=(Bt=ft??Ne)!==null&&Bt!==void 0?Bt:Bi.current,Ir=new MutationObserver(be=>{be.forEach(Se=>{var Ft;if(!Mn||Se.type!=="attributes"||!(!((Ft=Se.attributeName)===null||Ft===void 0)&&Ft.startsWith("data-tooltip-")))return;const tn=yo(Mn);bo(tn)})}),se={attributes:!0,childList:!1,subtree:!1};if(Mn){const be=yo(Mn);bo(be),Ir.observe(Mn,se)}return()=>{Ir.disconnect()}},[vo,Bi,ft,t,n]),C.useEffect(()=>{W!=null&&W.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),q&&!C2("border",`${q}`)&&console.warn(`[react-tooltip] "${q}" is not a valid \`border\`.`),W!=null&&W.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),H&&!C2("opacity",`${H}`)&&console.warn(`[react-tooltip] "${H}" is not a valid \`opacity\`.`)},[]);let Rr=m;const xo=C.useRef(null);if(o){const Bt=o({content:(ft==null?void 0:ft.getAttribute("data-tooltip-content"))||ae||null,activeAnchor:ft});Rr=Bt?ee.createElement("div",{ref:xo,className:"react-tooltip-content-wrapper"},Bt):null}else ae&&(Rr=ae);pe&&(Rr=ee.createElement(_6,{content:pe}));const ys={forwardRef:K,id:e,anchorId:t,anchorSelect:n,className:Yf(s,ar),classNameArrow:l,content:Rr,contentWrapperRef:xo,place:we,variant:ot,offset:$n,wrapper:xn,events:ti,openOnClick:v,positionStrategy:_e,middlewares:w,delayShow:fn,delayHide:Lr,float:Jn,hidden:Ar,noArrow:P,clickable:O,closeOnEsc:M,closeOnScroll:R,closeOnResize:N,openEvents:I,closeEvents:$,globalCloseEvents:j,imperativeModeOnly:B,style:W,position:Z,isOpen:V,defaultIsOpen:G,border:q,opacity:H,arrowColor:J,setIsOpen:X,afterShow:re,afterHide:ne,activeAnchor:ft,setActiveAnchor:Bt=>mo(Bt),role:oe};return ee.createElement(x6,{...ys})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||w2({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||w2({css:` +.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function S6({formData:e,setFormData:t,errors:n,handleChange:i,handleBackPage:r,handleNextPage:o}){const[s,l]=C.useState(!1),[c,u]=C.useState(!1),[h,f]=C.useState(!1),[m,b]=C.useState(!1),[v,y]=C.useState(!1),[w,x]=C.useState(!1),[S,k]=C.useState(!1),[T,P]=C.useState(!1),[O,M]=C.useState(0),[R,N]=C.useState(),I=C.useRef(null),$=C.useRef(null),j=C.useRef(null),B=C.useRef(null),W=C.useRef(null),Z=C.useRef(null);return C.useEffect(()=>{if(e.predictedAnimal==="poultry"&&I.current&&B.current){const V=I.current.offsetLeft;B.current.scrollLeft=V}else if(e.predictedAnimal==="bird"&&$.current&&B.current){const V=$.current.offsetLeft;B.current.scrollLeft=V}else if(e.predictedAnimal==="sheep"&&j.current&&B.current){const V=j.current.offsetLeft;B.current.scrollLeft=V}else if(e.predictedAnimal===null&&W.current&&B.current){const V=W.current.offsetLeft;B.current.scrollLeft=V}else if(e.predictedAnimal==="rabbit"&&Z.current&&B.current){const V=Z.current.offsetLeft;B.current.scrollLeft=V}},[s,c,h,m,v,T,w,S,e.predictedAnimal]),C.useEffect(()=>{M(V=>V+1)},[]),C.useEffect(()=>{e.predictedAnimal==="dog"?l(!0):e.predictedAnimal==="cat"?u(!0):e.predictedAnimal==="cattle"?f(!0):e.predictedAnimal==="bird"?b(!0):e.predictedAnimal==="sheep"?y(!0):e.predictedAnimal==="poultry"?x(!0):e.predictedAnimal==="rabbit"?P(!0):e.predictedAnimal===null&&(t(V=>({...V,animal_type:"other"})),k(!0))},[e.predictedAnimal,t]),C.useEffect(()=>{N(!0),setTimeout(()=>{N(!1)},1e4)},[e.predictedAnimal]),g.jsxs("div",{children:[g.jsx(Ri,{}),g.jsx("h1",{className:"text-center mt-[20px] pb-1 z-[3] text-indigo-900 font-bold tracking-wide text-[2em] underline",children:"Describe The Issue"}),g.jsx("div",{style:{position:"relative",zIndex:50},children:g.jsx(w6,{anchorSelect:".show-tooltip",isOpen:R,disableStyleInjection:!0},O)}),g.jsx(g.Fragment,{children:g.jsxs("div",{className:"relative z-[3] flex flex-col p-4 gap-5 mb-20 ",children:[g.jsxs("div",{className:" p-[10px] border-1 flex flex-col gap-[10px] rounded-3xl shadow-lg ring-1 ring-gray-300 bg-opacity-57 bg-white backdrop-blur-[6px]",children:[g.jsx("label",{children:g.jsxs("p",{className:"font-extrabold text-indigo-900 pl-5 text-[1.4rem] leading-normal tracking-wider overflow-scroll",children:[" ","Animal Type:"]})}),g.jsxs("div",{ref:B,className:"flex overflow-x-auto gap-4 scrollbar-hide z-[5]",children:[g.jsxs("div",{className:s?"show-tooltip":"","data-tooltip-html":"Predicted
To be a dog
",children:[g.jsx("input",{type:"radio",id:"dog",name:"predictedAnimal",value:"dog",checked:e.predictedAnimal==="dog"||e.animal_type==="dog",onChange:i,hidden:!0}),g.jsx("label",{htmlFor:"dog",children:g.jsx("div",{className:" w-[80px] h-[80px] relative mb-[8px] ",children:g.jsx("img",{className:"rounded-[50%] w-full h-full object-cover object-center",src:"./images/dog.jpg",alt:""})})})]}),g.jsxs("div",{className:c?"show-tooltip":"","data-tooltip-html":"Predicted
To be a Cat
",children:[g.jsx("input",{type:"radio",id:"cat",name:"predictedAnimal",value:"cat",checked:e.predictedAnimal==="cat"||e.animal_type==="cat",onChange:i,hidden:!0}),g.jsx("label",{htmlFor:"cat",children:g.jsx("div",{className:" w-[80px] h-[80px] relative mb-[8px] ",children:g.jsx("img",{className:"rounded-[50%] w-full h-full object-cover object-center ",src:"./images/cat.jpg",alt:""})})})]}),g.jsxs("div",{className:h?"show-tooltip":"","data-tooltip-html":"Predicted
To be a Cattle
",children:[g.jsx("input",{type:"radio",id:"cattle",name:"predictedAnimal",value:"cattle",checked:e.predictedAnimal==="cattle"||e.animal_type==="cattle",onChange:i,hidden:!0}),g.jsx("label",{htmlFor:"cattle",children:g.jsx("div",{className:" w-[80px] h-[80px] mb-[8px] relative ",children:g.jsx("img",{className:"rounded-[50%] w-full h-full object-cover object-center ",src:"./images/cow.jpg",alt:""})})})]}),g.jsxs("div",{ref:$,className:m?"show-tooltip":"","data-tooltip-html":"Predicted
To be a bird.
",children:[g.jsx("input",{type:"radio",id:"bird",name:"predictedAnimal",value:"bird",checked:e.predictedAnimal==="bird"||e.animal_type==="bird",onChange:i,hidden:!0}),g.jsx("label",{htmlFor:"bird",children:g.jsx("div",{className:"w-[80px] h-[80px] relative mb-[8px]",children:g.jsx("img",{className:"rounded-[50%] w-full h-full object-cover object-center",src:"./images/bird.jpeg",alt:""})})})]}),g.jsxs("div",{ref:I,className:w?"show-tooltip":"","data-tooltip-html":"Predicted
To be a poultry.
",children:[g.jsx("input",{type:"radio",id:"poultry",name:"predictedAnimal",value:"poultry",checked:e.predictedAnimal==="poultry"||e.animal_type==="poultry",onChange:i,hidden:!0}),g.jsx("label",{htmlFor:"poultry",children:g.jsx("div",{className:"w-[80px] h-[80px] relative mb-[8px]",children:g.jsx("img",{className:"rounded-[50%] w-full h-full object-cover object-center",src:"./images/poultry.jpeg",alt:""})})})]}),g.jsxs("div",{ref:j,className:v?"show-tooltip":"","data-tooltip-html":"Predicted
To be a sheep.
",children:[g.jsx("input",{type:"radio",id:"sheep",name:"predictedAnimal",value:"sheep",checked:e.predictedAnimal==="sheep"||e.animal_type==="sheep",onChange:i,hidden:!0}),g.jsx("label",{htmlFor:"sheep",children:g.jsx("div",{className:"w-[80px] h-[80px] relative mb-[8px]",children:g.jsx("img",{className:"rounded-[50%] w-full h-full object-cover object-center",src:"./images/sheep.jpg",alt:""})})})]}),g.jsxs("div",{ref:Z,className:T?"show-tooltip":"","data-tooltip-html":"Predicted
To be a rabbit.
",children:[g.jsx("input",{type:"radio",id:"rabbit",name:"predictedAnimal",value:"rabbit",checked:e.predictedAnimal==="rabbit"||e.animal_type==="rabbit",onChange:i,hidden:!0}),g.jsx("label",{htmlFor:"rabbit",children:g.jsx("div",{className:"w-[80px] h-[80px] relative mb-[8px]",children:g.jsx("img",{className:"rounded-[50%] w-full h-full object-cover object-center",src:"./images/rabbit.jpg",alt:""})})})]}),g.jsxs("div",{ref:W,className:S?"show-tooltip":"",children:[g.jsx("input",{type:"radio",id:"other",name:"predictedAnimal",value:"other",checked:e.predictedAnimal===null||e.animal_type==="other",onChange:i,hidden:!0}),g.jsx("label",{htmlFor:"other",children:g.jsx("div",{className:" w-[80px] h-[80px] relative mb-[8px]",children:g.jsx("img",{className:"rounded-[50%] w-full h-full object-cover object-center ",src:"./images/more.jpg",alt:""})})})]})]}),(e.predictedAnimal===null||e.animal_type==="other")&&g.jsxs("label",{className:" text-xl flex items-center gap-2",children:["Please specify:",g.jsx("input",{className:"w-1/2 h-8 p-2 text-sm rounded-lg bg-white border-2 border-zinc-800 ",type:"text",name:"otherAnimalType",onChange:i})]})]}),g.jsxs("div",{className:"bg-white bg-opacity-57 shadow-lg ring-1 ring-gray-300 flex flex-col gap-2 justify-center border-1 p-4 rounded-3xl backdrop-blur-[6px]",children:[g.jsx("label",{children:g.jsxs("p",{className:"font-extrabold text-indigo-900 pl-5 text-[1.4rem] leading-normal tracking-wider",children:[" ","How many animals:"]})}),g.jsxs("div",{className:"w-full flex justify-evenly",children:[g.jsxs("label",{className:"flex flex-col items-center justify-center text-lg font-medium",children:[g.jsx("p",{children:"One"}),g.jsx("input",{type:"radio",className:"w-9 h-9 ",name:"numberOfAnimals",value:"One",checked:e.numberOfAnimals==="One"||e.predictedNumberOfAnimals==="one",onChange:i})]}),g.jsxs("label",{className:"flex flex-col items-center justify-center text-lg font-medium",children:[g.jsx("p",{children:"Two"}),g.jsx("input",{type:"radio",className:"w-9 h-9",name:"numberOfAnimals",value:"Two",checked:e.numberOfAnimals==="Two"||e.predictedNumberOfAnimals==="two",onChange:i})]}),g.jsxs("label",{className:"flex flex-col items-center justify-center text-lg font-medium",children:[g.jsx("p",{children:"More"}),g.jsx("input",{className:"w-9 h-9",type:"radio",name:"numberOfAnimals",value:"More",checked:e.numberOfAnimals==="More"||e.predictedNumberOfAnimals==="more",onChange:i})]})]}),g.jsx("small",{})]}),g.jsxs("div",{className:"bg-white bg-opacity-57 shadow-lg ring-1 ring-gray-300 flex flex-col justify-center border-1 gap-2 p-5 rounded-3xl backdrop-blur-[6px]",children:[g.jsx("label",{children:g.jsx("p",{className:"font-extrabold text-indigo-900 pl-5 text-[1.3rem] leading-normal tracking-[0.02rem]",children:"Describe what Happened:"})}),g.jsx("textarea",{className:"pt-3 pl-2 m-auto rounded-[10px] border-0 outline-none text-gray-800 w-[90%] h-12 ",name:"description",value:e.description||e.predictedDescription,onChange:i,rows:4,placeholder:"Describe here"}),g.jsx("small",{className:"text-sm text-red-500",children:n.description})]}),g.jsxs("div",{className:"bg-white bg-opacity-57 shadow-lg ring-1 ring-gray-300 flex flex-col gap-2 justify-center border-1 p-5 rounded-3xl backdrop-blur-[6px]",children:[g.jsxs("label",{children:[" ",g.jsx("p",{className:"font-extrabold text-indigo-900 pl-5 text-[1.4rem] leading-normal tracking-wider",children:"Describe Severity:"})]}),g.jsxs("label",{className:"flex flex-row justify-evenly",children:[g.jsxs("div",{className:"flex flex-col-reverse items-center justify-center",children:[g.jsx("input",{type:"radio",className:"w-9 h-9",id:"urgent",name:"condition",value:"Urgent",checked:e.condition==="Urgent",onChange:i}),g.jsx("label",{htmlFor:"urgent",className:"text-lg font-medium",children:"Urgent"})]}),g.jsxs("div",{className:"flex flex-col-reverse items-center justify-center text-lg font-semibold",children:[g.jsx("input",{type:"radio",className:"w-9 h-9",id:"Critical",name:"condition",value:"Critical",checked:e.condition==="Critical",onChange:i}),g.jsx("label",{htmlFor:"Critical",className:"text-lg font-medium",children:"Critical"})]}),g.jsxs("div",{className:"flex flex-col-reverse items-center justify-center text-lg font-semibold",children:[g.jsx("input",{type:"radio",className:"w-9 h-9",id:"Normal",name:"condition",value:"Normal",checked:e.condition==="Normal",onChange:i}),g.jsx("label",{htmlFor:"Normal",className:"text-lg font-medium",children:"Normal"})]})]}),g.jsx("small",{className:"text-sm text-red-500",children:n.condition})]}),g.jsxs("div",{className:"mt-4 w-full flex flex-wrap justify-evenly gap-4",children:[g.jsx(vn,{text:"Back",clas:"font-semibold tracking-wider px-6 font-poppins text-white",onClick:r}),g.jsx(vn,{text:"Next",clas:"font-semibold tracking-wider px-6 text-white bg-gradient-to-b from-blue-600 to-blue-800 shadow-buttonShadow focus:outline-none ",onClick:o})]})]})})]})}const Kl=C.createContext(),C6=({children:e})=>{const[t,n]=C.useState(null),[i,r]=C.useState(!0),[o,s]=C.useState(null),[l,c]=C.useState(0);return C.useEffect(()=>{let u=!0;const h=async()=>{const f=localStorage.getItem("csrftoken");if(!f){s("You are need be logged in as a User."),r(!1);return}if(localStorage.getItem("userType")!=="ngo")try{const v=await Me.get("https://paws-backend.azurewebsites.net/info/user/",{headers:{Authorization:`Token ${f}`},withCredentials:!0});u&&(n(v.data),r(!1))}catch(b){u&&(s(b.message),r(!1))}};if(localStorage.getItem("userType")!=="ngo")return h(),()=>{u=!1}},[l]),g.jsx(Kl.Provider,{value:{userData:t,loading:i,error:o,setKey:c},children:e})};function Tt({name:e="none",placeholder:t="",type:n="text",value:i="",onChange:r,required:o,className:s,min:l}){return n==="textarea"?g.jsx("textarea",{className:s,type:n,placeholder:t,value:i,onChange:r,required:o,name:e}):n==="date"?g.jsx(g.Fragment,{children:g.jsx("input",{className:s,type:n,placeholder:t,value:i,onChange:r,required:o,name:e,min:l})}):g.jsx("input",{className:s,type:n,placeholder:t,value:i,onChange:r,required:o,name:e})}Tt.propTypes={name:fe.string,placeholder:fe.string,type:fe.string.isRequired,value:fe.string.isRequired,onChange:fe.func.isRequired,required:fe.bool,className:fe.string};Tt.defaultProps={name:"none"};function k6({formData:e,setFormData:t,errors:n,handleBackPage:i,handleChange:r,handleSubmit:o,validatePage:s,handleNextPage:l}){const{userData:c}=C.useContext(Kl),u=localStorage.getItem("csrftoken"),[h,f]=C.useState(!1);return C.useEffect(()=>{c&&t(m=>({...m,user_name:c.name,user_phone:c.phone_number,user_email:c.email}))},[c,t]),g.jsxs("div",{className:"h-screen w-screen font-breeSerif",children:[g.jsx(Ri,{}),g.jsxs("div",{className:" flex flex-col justify-center md:h-[100%] items-center relative ",children:[g.jsxs("div",{className:"my-10 xs:py-8 relative w-full gap-[20px] flex flex-col items-center ",children:[g.jsx("h1",{className:"text-center mt-[20px] xs:text-[25px] pb-1 z-[3] text-[#0B0553DE] font-black tracking-wide text-[2rem] underline",children:"CONTACT DETAILS"}),g.jsxs("div",{className:"bg-gray-200 bg-opacity-20 w-[90%] md:w-[75%]C py-8 px-4 rounded-3xl backdrop-blur-[6px] flex flex-col justify-evenly items-center gap-[10px] shadow-dashBoardCardImageShadow",children:[g.jsxs("div",{className:"flex flex-col gap-[7px]",children:[g.jsx(Tt,{className:" h-16 bg-opacity-15 backdrop-blur-[6px] w-[300px] md:w-[250px] xs:w-[200px] xs:h-12 px-4 leading-[px] items-center outline-0 rounded-[30px] text-lg xs:text-[16px] placeholder-stone bg-white bg-opacity-47 shadow-dashBoardCardImageShadow",type:"text",placeholder:"Name",name:"user_name",value:e.user_name,onChange:r,required:!0,backgroundColor:"#D9D9D9",outline:!0}),g.jsx("small",{className:"text-sm text-red-500",children:n.user_name}),g.jsx("div",{className:"error",children:n.first_name})]}),g.jsxs("div",{className:"flex flex-col gap-[10px]",children:[g.jsx(Tt,{className:" h-16 bg-opacity-15 backdrop-blur-[6px] w-[300px] md:w-[250px] xs:w-[200px] xs:h-12 px-4 leading-[px] items-center outline-0 rounded-[30px] text-lg xs:text-[16px] placeholder-stone bg-white bg-opacity-47 shadow-dashBoardCardImageShadow",type:"tel",placeholder:"Phone Number",name:"user_phone",value:e.user_phone,onChange:r,required:!0,outline:!0}),g.jsx("small",{className:"text-sm text-red-500",children:n.user_phone})]}),g.jsxs("div",{className:"flex flex-col gap-[10px]",children:[g.jsx("input",{className:" h-16 bg-opacity-15 backdrop-blur-[6px] w-[300px] md:w-[250px] xs:w-[200px] xs:h-12 px-4 leading-[px] items-center outline-0 rounded-[30px] text-lg xs:text-[16px] placeholder-stone bg-white bg-opacity-47 shadow-dashBoardCardImageShadow",type:"email",placeholder:"E-mail",name:"user_email",value:e.user_email,onChange:r,required:!0,disabled:!!u}),g.jsx("small",{className:"text-sm text-red-500",children:n.user_email})]})]}),g.jsx("p",{className:"text-breeSerif xs:text-[16px] font-medium text-center w-9/10 mx-auto text-violet-900 cursor-pointer underline text-[18px]",onClick:()=>f(!0),children:"Learn why we need that data"}),g.jsxs("div",{className:"flex justify-evenly sm:justify-center gap-5 items-center w-full",children:[g.jsx(vn,{text:"Back",clas:"tracking-wider md:text-[23px] md:px-7 xs:text-[20px] xs:px-7 px-16 text-white focus:outline-none",onClick:i}),g.jsx(vn,{text:"Submit",clas:"tracking-wider md:text-[23px] md:px-5 xs:text-[20px] xs:px-5 px-14 text-white bg-gradient-to-b from-blue-600 to-blue-800 shadow-buttonShadow focus:outline-none",onClick:m=>{s()&&(l(),o(m))}})]})]}),g.jsx(em,{visible:h,animation:"zoom",showCloseButton:!0,closeMaskOnClick:!0,onClose:()=>{f(!1)},closeOnEsc:!0,className:"bg-black bg-opacity-60 backdrop-blur-md",width:300,height:290,children:g.jsxs("div",{className:"font-breeSerif text-[17px] pt-3 px-2 flex flex-col space-y-4 text-justify",children:[g.jsx("p",{className:"",children:"Your name, email, and phone number are essential for us to contact you and coordinate the rescue process effectively."}),g.jsx("p",{children:" Providing accurate information will help us rescue animals promptly and ensure their safety and well-being. Thank you for your cooperation."})]})})]})]})}function Rl(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?gn(ql,--Qn):0,Il--,Wt===10&&(Il=1,om--),Wt}function ui(){return Wt=Qn2||Hu(Wt)>3?"":" "}function F6(e,t){for(;--t&&ui()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return wd(e,ef()+(t<6&&Cr()==32&&ui()==32))}function by(e){for(;ui();)switch(Wt){case e:return Qn;case 34:case 39:e!==34&&e!==39&&by(Wt);break;case 40:e===41&&by(e);break;case 92:ui();break}return Qn}function H6(e,t){for(;ui()&&e+Wt!==57;)if(e+Wt===84&&Cr()===47)break;return"/*"+wd(t,Qn-1)+"*"+rm(e===47?e:ui())}function V6(e){for(;!Hu(Cr());)ui();return wd(e,Qn)}function W6(e){return wO(nf("",null,null,null,[""],e=_O(e),0,[0],e))}function nf(e,t,n,i,r,o,s,l,c){for(var u=0,h=0,f=s,m=0,b=0,v=0,y=1,w=1,x=1,S=0,k="",T=r,P=o,O=i,M=k;w;)switch(v=S,S=ui()){case 40:if(v!=108&&gn(M,f-1)==58){yy(M+=Ze(tf(S),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:M+=tf(S);break;case 9:case 10:case 13:case 32:M+=B6(v);break;case 92:M+=F6(ef()-1,7);continue;case 47:switch(Cr()){case 42:case 47:fh(U6(H6(ui(),ef()),t,n),c);break;default:M+="/"}break;case 123*y:l[u++]=mr(M)*x;case 125*y:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+h:x==-1&&(M=Ze(M,/\f/g,"")),b>0&&mr(M)-f&&fh(b>32?O2(M+";",i,n,f-1):O2(Ze(M," ","")+";",i,n,f-2),c);break;case 59:M+=";";default:if(fh(O=P2(M,t,n,u,h,r,l,k,T=[],P=[],f),o),S===123)if(h===0)nf(M,t,O,O,T,o,f,l,P);else switch(m===99&&gn(M,3)===110?100:m){case 100:case 108:case 109:case 115:nf(e,O,O,i&&fh(P2(e,O,O,0,0,r,l,k,r,T=[],f),P),r,P,f,l,i?T:P);break;default:nf(M,O,O,O,[""],P,0,l,P)}}u=h=b=0,y=x=1,k=M="",f=s;break;case 58:f=1+mr(M),b=v;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&$6()==125)continue}switch(M+=rm(S),S*y){case 38:x=h>0?1:(M+="\f",-1);break;case 44:l[u++]=(mr(M)-1)*x,x=1;break;case 64:Cr()===45&&(M+=tf(ui())),m=Cr(),h=f=mr(k=M+=V6(ef())),S++;break;case 45:v===45&&mr(M)==2&&(y=0)}}return o}function P2(e,t,n,i,r,o,s,l,c,u,h){for(var f=r-1,m=r===0?o:[""],b=Ax(m),v=0,y=0,w=0;v0?m[x]+" "+S:Ze(S,/&\f/g,m[x])))&&(c[w++]=k);return sm(e,t,n,r===0?Mx:l,c,u,h)}function U6(e,t,n){return sm(e,t,n,vO,rm(z6()),Fu(e,2,-2),0)}function O2(e,t,n,i){return sm(e,t,n,Lx,Fu(e,0,i),Fu(e,i+1,-1),i)}function ml(e,t){for(var n="",i=Ax(e),r=0;r6)switch(gn(e,t+1)){case 109:if(gn(e,t+4)!==45)break;case 102:return Ze(e,/(.+:)(.+)-([^]+)/,"$1"+Ue+"$2-$3$1"+Jf+(gn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~yy(e,"stretch")?SO(Ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(gn(e,t+1)!==115)break;case 6444:switch(gn(e,mr(e)-3-(~yy(e,"!important")&&10))){case 107:return Ze(e,":",":"+Ue)+e;case 101:return Ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ue+(gn(e,14)===45?"inline-":"")+"box$3$1"+Ue+"$2$3$1"+Cn+"$2box$3")+e}break;case 5936:switch(gn(e,t+11)){case 114:return Ue+e+Cn+Ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ue+e+Cn+Ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ue+e+Cn+Ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ue+e+Cn+e+e}return e}var e8=function(t,n,i,r){if(t.length>-1&&!t.return)switch(t.type){case Lx:t.return=SO(t.value,t.length);break;case yO:return ml([Tc(t,{value:Ze(t.value,"@","@"+Ue)})],r);case Mx:if(t.length)return j6(t.props,function(o){switch(D6(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ml([Tc(t,{props:[Ze(o,/:(read-\w+)/,":"+Jf+"$1")]})],r);case"::placeholder":return ml([Tc(t,{props:[Ze(o,/:(plac\w+)/,":"+Ue+"input-$1")]}),Tc(t,{props:[Ze(o,/:(plac\w+)/,":"+Jf+"$1")]}),Tc(t,{props:[Ze(o,/:(plac\w+)/,Cn+"input-$1")]})],r)}return""})}},t8=[e8],n8=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var r=t.stylisPlugins||t8,o={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),x=1;x=4;++i,r-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var f8={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},p8=/[A-Z]|^ms/g,m8=/_EMO_([^_]+?)_([^]*?)_EMO_/g,MO=function(t){return t.charCodeAt(1)===45},L2=function(t){return t!=null&&typeof t!="boolean"},gv=gO(function(e){return MO(e)?e:e.replace(p8,"-$&").toLowerCase()}),A2=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(m8,function(i,r,o){return gr={name:r,styles:o,next:gr},r})}return f8[t]!==1&&!MO(t)&&typeof n=="number"&&n!==0?n+"px":n};function Vu(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return gr={name:n.name,styles:n.styles,next:gr},n.name;if(n.styles!==void 0){var i=n.next;if(i!==void 0)for(;i!==void 0;)gr={name:i.name,styles:i.styles,next:gr},i=i.next;var r=n.styles+";";return r}return g8(e,t,n)}case"function":{if(e!==void 0){var o=gr,s=n(e);return gr=o,Vu(e,t,s)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function g8(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r96?S8:C8},N2=function(t,n,i){var r;if(n){var o=n.shouldForwardProp;r=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof r!="function"&&i&&(r=t.__emotion_forwardProp),r},k8=function(t){var n=t.cache,i=t.serialized,r=t.isStringTag;return Dx(n,i,r),LO(function(){return OO(n,i,r)}),null},E8=function e(t,n){var i=t.__emotion_real===t,r=i&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var l=N2(t,n,i),c=l||I2(r),u=!c("as");return function(){var h=arguments,f=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),h[0]==null||h[0].raw===void 0)f.push.apply(f,h);else{f.push(h[0][0]);for(var m=h.length,b=1;b{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function Kr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function IO(e){if(!Kr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=IO(e[n])}),t}function nr(e,t,n={clone:!0}){const i=n.clone?F({},e):e;return Kr(e)&&Kr(t)&&Object.keys(t).forEach(r=>{r!=="__proto__"&&(Kr(t[r])&&r in e&&Kr(e[r])?i[r]=nr(e[r],t[r],n):n.clone?i[r]=Kr(t[r])?IO(t[r]):t[r]:i[r]=t[r])}),i}function un(e){if(typeof e!="string")throw new Error(Rl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function wy(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function M8(e,t=166){let n;function i(...r){const o=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(o,t)}return i.clear=()=>{clearTimeout(n)},i}function L8(e,t){return()=>null}function A8(e,t){var n,i;return C.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(i=e.type)==null||(i=i._payload)==null||(i=i.value)==null?void 0:i.muiName)!==-1}function io(e){return e&&e.ownerDocument||document}function ym(e){return io(e).defaultView||window}function R8(e,t){return()=>null}function ep(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const tp=typeof window<"u"?C.useLayoutEffect:C.useEffect;let D2=0;function I8(e){const[t,n]=C.useState(e),i=e||t;return C.useEffect(()=>{t==null&&(D2+=1,n(`mui-${D2}`))},[t]),i}const j2=yf.useId;function NO(e){if(j2!==void 0){const t=j2();return e??t}return I8(e)}function N8(e,t,n,i,r){return null}function DO({controlled:e,default:t,name:n,state:i="value"}){const{current:r}=C.useRef(e!==void 0),[o,s]=C.useState(t),l=r?e:o,c=C.useCallback(u=>{r||s(u)},[]);return[l,c]}function Vs(e){const t=C.useRef(e);return tp(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function Tr(...e){return C.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ep(n,t)})},e)}let bm=!0,Sy=!1,z2;const D8={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function j8(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&D8[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function z8(e){e.metaKey||e.altKey||e.ctrlKey||(bm=!0)}function vv(){bm=!1}function $8(){this.visibilityState==="hidden"&&Sy&&(bm=!0)}function B8(e){e.addEventListener("keydown",z8,!0),e.addEventListener("mousedown",vv,!0),e.addEventListener("pointerdown",vv,!0),e.addEventListener("touchstart",vv,!0),e.addEventListener("visibilitychange",$8,!0)}function F8(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return bm||j8(t)}function jO(){const e=C.useCallback(r=>{r!=null&&B8(r.ownerDocument)},[]),t=C.useRef(!1);function n(){return t.current?(Sy=!0,window.clearTimeout(z2),z2=window.setTimeout(()=>{Sy=!1},100),t.current=!1,!0):!1}function i(r){return F8(r)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:i,onBlur:n,ref:e}}function H8(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function zO(e,t){const n=F({},t);return Object.keys(e).forEach(i=>{if(i.toString().match(/^(components|slots)$/))n[i]=F({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const r=e[i]||{},o=t[i];n[i]={},!o||!Object.keys(o)?n[i]=r:!r||!Object.keys(r)?n[i]=o:(n[i]=F({},o),Object.keys(r).forEach(s=>{n[i][s]=zO(r[s],o[s])}))}else n[i]===void 0&&(n[i]=e[i])}),n}function Kt(e,t,n=void 0){const i={};return Object.keys(e).forEach(r=>{i[r]=e[r].reduce((o,s)=>{if(s){const l=t(s);l!==""&&o.push(l),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),i}const $2=e=>e,V8=()=>{let e=$2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$2}}},$O=V8(),W8={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Dt(e,t,n="Mui"){const i=W8[t];return i?`${n}-${i}`:`${$O.generate(e)}-${t}`}function jt(e,t,n="Mui"){const i={};return t.forEach(r=>{i[r]=Dt(e,r,n)}),i}function U8(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Z8=["values","unit","step"],G8=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,i)=>n.val-i.val),t.reduce((n,i)=>F({},n,{[i.key]:i.val}),{})};function Y8(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5}=e,r=Oe(e,Z8),o=G8(t),s=Object.keys(o);function l(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-i/100}${n})`}function u(m,b){const v=s.indexOf(b);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:b)-i/100}${n})`}function h(m){return s.indexOf(m)+1`@media (min-width:${Fx[e]}px)`};function ho(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const o=i.breakpoints||B2;return t.reduce((s,l,c)=>(s[o.up(o.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const o=i.breakpoints||B2;return Object.keys(t).reduce((s,l)=>{if(Object.keys(o.values||Fx).indexOf(l)!==-1){const c=o.up(l);s[c]=n(t[l],l)}else{const c=l;s[c]=t[c]}return s},{})}return n(t)}function q8(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((i,r)=>{const o=e.up(r);return i[o]={},i},{}))||{}}function X8(e,t){return e.reduce((n,i)=>{const r=n[i];return(!r||Object.keys(r).length===0)&&delete n[i],n},t)}function xm(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const i=`vars.${t}`.split(".").reduce((r,o)=>r&&r[o]?r[o]:null,e);if(i!=null)return i}return t.split(".").reduce((i,r)=>i&&i[r]!=null?i[r]:null,e)}function np(e,t,n,i=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||i:r=xm(e,n)||i,t&&(r=t(r,i,e)),r}function zt(e){const{prop:t,cssProperty:n=e.prop,themeKey:i,transform:r}=e,o=s=>{if(s[t]==null)return null;const l=s[t],c=s.theme,u=xm(c,i)||{};return ho(s,l,f=>{let m=np(u,r,f);return f===m&&typeof f=="string"&&(m=np(u,r,`${t}${f==="default"?"":un(f)}`,f)),n===!1?m:{[n]:m}})};return o.propTypes={},o.filterProps=[t],o}function Q8(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const J8={m:"margin",p:"padding"},ez={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},F2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},tz=Q8(e=>{if(e.length>2)if(F2[e])e=F2[e];else return[e];const[t,n]=e.split(""),i=J8[t],r=ez[n]||"";return Array.isArray(r)?r.map(o=>i+o):[i+r]}),Hx=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vx=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Hx,...Vx];function Sd(e,t,n,i){var r;const o=(r=xm(e,t,!1))!=null?r:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function BO(e){return Sd(e,"spacing",8)}function Cd(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),i=e(n);return t>=0?i:typeof i=="number"?-i:`-${i}`}function nz(e,t){return n=>e.reduce((i,r)=>(i[r]=Cd(t,n),i),{})}function iz(e,t,n,i){if(t.indexOf(n)===-1)return null;const r=tz(n),o=nz(r,i),s=e[n];return ho(e,s,o)}function FO(e,t){const n=BO(e.theme);return Object.keys(e).map(i=>iz(e,t,i,n)).reduce(cu,{})}function Ct(e){return FO(e,Hx)}Ct.propTypes={};Ct.filterProps=Hx;function kt(e){return FO(e,Vx)}kt.propTypes={};kt.filterProps=Vx;function rz(e=8){if(e.mui)return e;const t=BO({spacing:e}),n=(...i)=>(i.length===0?[1]:i).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function _m(...e){const t=e.reduce((i,r)=>(r.filterProps.forEach(o=>{i[o]=r}),i),{}),n=i=>Object.keys(i).reduce((r,o)=>t[o]?cu(r,t[o](i)):r,{});return n.propTypes={},n.filterProps=e.reduce((i,r)=>i.concat(r.filterProps),[]),n}function ki(e){return typeof e!="number"?e:`${e}px solid`}function Di(e,t){return zt({prop:e,themeKey:"borders",transform:t})}const oz=Di("border",ki),sz=Di("borderTop",ki),az=Di("borderRight",ki),lz=Di("borderBottom",ki),cz=Di("borderLeft",ki),uz=Di("borderColor"),dz=Di("borderTopColor"),hz=Di("borderRightColor"),fz=Di("borderBottomColor"),pz=Di("borderLeftColor"),mz=Di("outline",ki),gz=Di("outlineColor"),wm=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Sd(e.theme,"shape.borderRadius",4),n=i=>({borderRadius:Cd(t,i)});return ho(e,e.borderRadius,n)}return null};wm.propTypes={};wm.filterProps=["borderRadius"];_m(oz,sz,az,lz,cz,uz,dz,hz,fz,pz,wm,mz,gz);const Sm=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Sd(e.theme,"spacing",8),n=i=>({gap:Cd(t,i)});return ho(e,e.gap,n)}return null};Sm.propTypes={};Sm.filterProps=["gap"];const Cm=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Sd(e.theme,"spacing",8),n=i=>({columnGap:Cd(t,i)});return ho(e,e.columnGap,n)}return null};Cm.propTypes={};Cm.filterProps=["columnGap"];const km=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Sd(e.theme,"spacing",8),n=i=>({rowGap:Cd(t,i)});return ho(e,e.rowGap,n)}return null};km.propTypes={};km.filterProps=["rowGap"];const vz=zt({prop:"gridColumn"}),yz=zt({prop:"gridRow"}),bz=zt({prop:"gridAutoFlow"}),xz=zt({prop:"gridAutoColumns"}),_z=zt({prop:"gridAutoRows"}),wz=zt({prop:"gridTemplateColumns"}),Sz=zt({prop:"gridTemplateRows"}),Cz=zt({prop:"gridTemplateAreas"}),kz=zt({prop:"gridArea"});_m(Sm,Cm,km,vz,yz,bz,xz,_z,wz,Sz,Cz,kz);function gl(e,t){return t==="grey"?t:e}const Ez=zt({prop:"color",themeKey:"palette",transform:gl}),Tz=zt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gl}),Pz=zt({prop:"backgroundColor",themeKey:"palette",transform:gl});_m(Ez,Tz,Pz);function oi(e){return e<=1&&e!==0?`${e*100}%`:e}const Oz=zt({prop:"width",transform:oi}),Wx=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,r;const o=((i=e.theme)==null||(i=i.breakpoints)==null||(i=i.values)==null?void 0:i[n])||Fx[n];return o?((r=e.theme)==null||(r=r.breakpoints)==null?void 0:r.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:oi(n)}};return ho(e,e.maxWidth,t)}return null};Wx.filterProps=["maxWidth"];const Mz=zt({prop:"minWidth",transform:oi}),Lz=zt({prop:"height",transform:oi}),Az=zt({prop:"maxHeight",transform:oi}),Rz=zt({prop:"minHeight",transform:oi});zt({prop:"size",cssProperty:"width",transform:oi});zt({prop:"size",cssProperty:"height",transform:oi});const Iz=zt({prop:"boxSizing"});_m(Oz,Wx,Mz,Lz,Az,Rz,Iz);const Em={border:{themeKey:"borders",transform:ki},borderTop:{themeKey:"borders",transform:ki},borderRight:{themeKey:"borders",transform:ki},borderBottom:{themeKey:"borders",transform:ki},borderLeft:{themeKey:"borders",transform:ki},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ki},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:wm},color:{themeKey:"palette",transform:gl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gl},backgroundColor:{themeKey:"palette",transform:gl},p:{style:kt},pt:{style:kt},pr:{style:kt},pb:{style:kt},pl:{style:kt},px:{style:kt},py:{style:kt},padding:{style:kt},paddingTop:{style:kt},paddingRight:{style:kt},paddingBottom:{style:kt},paddingLeft:{style:kt},paddingX:{style:kt},paddingY:{style:kt},paddingInline:{style:kt},paddingInlineStart:{style:kt},paddingInlineEnd:{style:kt},paddingBlock:{style:kt},paddingBlockStart:{style:kt},paddingBlockEnd:{style:kt},m:{style:Ct},mt:{style:Ct},mr:{style:Ct},mb:{style:Ct},ml:{style:Ct},mx:{style:Ct},my:{style:Ct},margin:{style:Ct},marginTop:{style:Ct},marginRight:{style:Ct},marginBottom:{style:Ct},marginLeft:{style:Ct},marginX:{style:Ct},marginY:{style:Ct},marginInline:{style:Ct},marginInlineStart:{style:Ct},marginInlineEnd:{style:Ct},marginBlock:{style:Ct},marginBlockStart:{style:Ct},marginBlockEnd:{style:Ct},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Sm},rowGap:{style:km},columnGap:{style:Cm},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:oi},maxWidth:{style:Wx},minWidth:{transform:oi},height:{transform:oi},maxHeight:{transform:oi},minHeight:{transform:oi},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Nz(...e){const t=e.reduce((i,r)=>i.concat(Object.keys(r)),[]),n=new Set(t);return e.every(i=>n.size===Object.keys(i).length)}function Dz(e,t){return typeof e=="function"?e(t):e}function jz(){function e(n,i,r,o){const s={[n]:i,theme:r},l=o[n];if(!l)return{[n]:i};const{cssProperty:c=n,themeKey:u,transform:h,style:f}=l;if(i==null)return null;if(u==="typography"&&i==="inherit")return{[n]:i};const m=xm(r,u)||{};return f?f(s):ho(s,i,v=>{let y=np(m,h,v);return v===y&&typeof v=="string"&&(y=np(m,h,`${n}${v==="default"?"":un(v)}`,v)),c===!1?y:{[c]:y}})}function t(n){var i;const{sx:r,theme:o={}}=n||{};if(!r)return null;const s=(i=o.unstable_sxConfig)!=null?i:Em;function l(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;const h=q8(o.breakpoints),f=Object.keys(h);let m=h;return Object.keys(u).forEach(b=>{const v=Dz(u[b],o);if(v!=null)if(typeof v=="object")if(s[b])m=cu(m,e(b,v,o,s));else{const y=ho({theme:o},v,w=>({[b]:w}));Nz(y,v)?m[b]=t({sx:v,theme:o}):m=cu(m,y)}else m=cu(m,e(b,v,o,s))}),X8(f,m)}return Array.isArray(r)?r.map(l):l(r)}return t}const Tm=jz();Tm.filterProps=["sx"];const zz=["breakpoints","palette","spacing","shape"];function Ux(e={},...t){const{breakpoints:n={},palette:i={},spacing:r,shape:o={}}=e,s=Oe(e,zz),l=Y8(n),c=rz(r);let u=nr({breakpoints:l,direction:"ltr",components:{},palette:F({mode:"light"},i),spacing:c,shape:F({},K8,o)},s);return u=t.reduce((h,f)=>nr(h,f),u),u.unstable_sxConfig=F({},Em,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return Tm({sx:f,theme:this})},u}function $z(e){return Object.keys(e).length===0}function Bz(e=null){const t=C.useContext($x);return!t||$z(t)?e:t}const Fz=Ux();function HO(e=Fz){return Bz(e)}const Hz=["sx"],Vz=e=>{var t,n;const i={systemProps:{},otherProps:{}},r=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Em;return Object.keys(e).forEach(o=>{r[o]?i.systemProps[o]=e[o]:i.otherProps[o]=e[o]}),i};function Wz(e){const{sx:t}=e,n=Oe(e,Hz),{systemProps:i,otherProps:r}=Vz(n);let o;return Array.isArray(t)?o=[i,...t]:typeof t=="function"?o=(...s)=>{const l=t(...s);return Kr(l)?F({},i,l):i}:o=F({},i,t),F({},r,{sx:o})}function VO(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t{r==="color"?i+=H2(i)?e[r]:un(e[r]):i+=`${H2(i)?r:un(r)}${un(e[r].toString())}`}),i}const Zz=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Gz(e){return Object.keys(e).length===0}function Yz(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Kz=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,ip=e=>{let t=0;const n={};return e&&e.forEach(i=>{let r="";typeof i.props=="function"?(r=`callback${t}`,t+=1):r=WO(i.props),n[r]=i.style}),n},qz=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),ip(n)},rp=(e,t,n)=>{const{ownerState:i={}}=e,r=[];let o=0;return n&&n.forEach(s=>{let l=!0;if(typeof s.props=="function"){const c=F({},e,i);l=s.props(c)}else Object.keys(s.props).forEach(c=>{i[c]!==s.props[c]&&e[c]!==s.props[c]&&(l=!1)});l&&(typeof s.props=="function"?r.push(t[`callback${o}`]):r.push(t[WO(s.props)])),typeof s.props=="function"&&(o+=1)}),r},Xz=(e,t,n,i)=>{var r;const o=n==null||(r=n.components)==null||(r=r[i])==null?void 0:r.variants;return rp(e,t,o)};function rf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Qz=Ux(),Jz=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function of({defaultTheme:e,theme:t,themeId:n}){return Gz(t)?e:t[n]||t}function e$(e){return e?(t,n)=>n[e]:null}const V2=({styledArg:e,props:t,defaultTheme:n,themeId:i})=>{const r=e(F({},t,{theme:of(F({},t,{defaultTheme:n,themeId:i}))}));let o;if(r&&r.variants&&(o=r.variants,delete r.variants),o){const s=rp(t,ip(o),o);return[r,...s]}return r};function t$(e={}){const{themeId:t,defaultTheme:n=Qz,rootShouldForwardProp:i=rf,slotShouldForwardProp:r=rf}=e,o=s=>Tm(F({},s,{theme:of(F({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,l={})=>{O8(s,T=>T.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:h,skipSx:f,overridesResolver:m=e$(Jz(u))}=l,b=Oe(l,Zz),v=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,y=f||!1;let w,x=rf;u==="Root"||u==="root"?x=i:u?x=r:Yz(s)&&(x=void 0);const S=P8(s,F({shouldForwardProp:x,label:w},b)),k=(T,...P)=>{const O=P?P.map(I=>{if(typeof I=="function"&&I.__emotion_real!==I)return $=>V2({styledArg:I,props:$,defaultTheme:n,themeId:t});if(Kr(I)){let $=I,j;return I&&I.variants&&(j=I.variants,delete $.variants,$=B=>{let W=I;return rp(B,ip(j),j).forEach(V=>{W=nr(W,V)}),W}),$}return I}):[];let M=T;if(Kr(T)){let I;T&&T.variants&&(I=T.variants,delete M.variants,M=$=>{let j=T;return rp($,ip(I),I).forEach(W=>{j=nr(j,W)}),j})}else typeof T=="function"&&T.__emotion_real!==T&&(M=I=>V2({styledArg:T,props:I,defaultTheme:n,themeId:t}));c&&m&&O.push(I=>{const $=of(F({},I,{defaultTheme:n,themeId:t})),j=Kz(c,$);if(j){const B={};return Object.entries(j).forEach(([W,Z])=>{B[W]=typeof Z=="function"?Z(F({},I,{theme:$})):Z}),m(I,B)}return null}),c&&!v&&O.push(I=>{const $=of(F({},I,{defaultTheme:n,themeId:t}));return Xz(I,qz(c,$),$,c)}),y||O.push(o);const R=O.length-P.length;if(Array.isArray(T)&&R>0){const I=new Array(R).fill("");M=[...T,...I],M.raw=[...T.raw,...I]}const N=S(M,...O);return s.muiName&&(N.muiName=s.muiName),N};return S.withConfig&&(k.withConfig=S.withConfig),k}}function n$(e){const{theme:t,name:n,props:i}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?i:zO(t.components[n].defaultProps,i)}function i$({props:e,name:t,defaultTheme:n,themeId:i}){let r=HO(n);return i&&(r=r[i]||r),n$({theme:r,name:t,props:e})}function Zx(e,t=0,n=1){return U8(e,t,n)}function r$(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(i=>i+i)),n?`rgb${n.length===4?"a":""}(${n.map((i,r)=>r<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function la(e){if(e.type)return e;if(e.charAt(0)==="#")return la(r$(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Rl(9,e));let i=e.substring(t+1,e.length-1),r;if(n==="color"){if(i=i.split(" "),r=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error(Rl(10,r))}else i=i.split(",");return i=i.map(o=>parseFloat(o)),{type:n,values:i,colorSpace:r}}function Pm(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return t.indexOf("rgb")!==-1?i=i.map((r,o)=>o<3?parseInt(r,10):r):t.indexOf("hsl")!==-1&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.indexOf("color")!==-1?i=`${n} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function o$(e){e=la(e);const{values:t}=e,n=t[0],i=t[1]/100,r=t[2]/100,o=i*Math.min(r,1-r),s=(u,h=(u+n/30)%12)=>r-o*Math.max(Math.min(h-3,9-h,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Pm({type:l,values:c})}function W2(e){e=la(e);let t=e.type==="hsl"||e.type==="hsla"?la(o$(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s$(e,t){const n=W2(e),i=W2(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function U2(e,t){return e=la(e),t=Zx(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Pm(e)}function a$(e,t){if(e=la(e),t=Zx(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Pm(e)}function l$(e,t){if(e=la(e),t=Zx(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Pm(e)}function c$(e,t){return F({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Wu={black:"#000",white:"#fff"},u$={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ia={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Na={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Pc={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Do={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Da={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ja={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},d$=["mode","contrastThreshold","tonalOffset"],Z2={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Wu.white,default:Wu.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},yv={text:{primary:Wu.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Wu.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function G2(e,t,n,i){const r=i.light||i,o=i.dark||i*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=l$(e.main,r):t==="dark"&&(e.dark=a$(e.main,o)))}function h$(e="light"){return e==="dark"?{main:Do[200],light:Do[50],dark:Do[400]}:{main:Do[700],light:Do[400],dark:Do[800]}}function f$(e="light"){return e==="dark"?{main:Ia[200],light:Ia[50],dark:Ia[400]}:{main:Ia[500],light:Ia[300],dark:Ia[700]}}function p$(e="light"){return e==="dark"?{main:Na[500],light:Na[300],dark:Na[700]}:{main:Na[700],light:Na[400],dark:Na[800]}}function m$(e="light"){return e==="dark"?{main:Da[400],light:Da[300],dark:Da[700]}:{main:Da[700],light:Da[500],dark:Da[900]}}function g$(e="light"){return e==="dark"?{main:ja[400],light:ja[300],dark:ja[700]}:{main:ja[800],light:ja[500],dark:ja[900]}}function v$(e="light"){return e==="dark"?{main:Pc[400],light:Pc[300],dark:Pc[700]}:{main:"#ed6c02",light:Pc[500],dark:Pc[900]}}function y$(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2}=e,r=Oe(e,d$),o=e.primary||h$(t),s=e.secondary||f$(t),l=e.error||p$(t),c=e.info||m$(t),u=e.success||g$(t),h=e.warning||v$(t);function f(y){return s$(y,yv.text.primary)>=n?yv.text.primary:Z2.text.primary}const m=({color:y,name:w,mainShade:x=500,lightShade:S=300,darkShade:k=700})=>{if(y=F({},y),!y.main&&y[x]&&(y.main=y[x]),!y.hasOwnProperty("main"))throw new Error(Rl(11,w?` (${w})`:"",x));if(typeof y.main!="string")throw new Error(Rl(12,w?` (${w})`:"",JSON.stringify(y.main)));return G2(y,"light",S,i),G2(y,"dark",k,i),y.contrastText||(y.contrastText=f(y.main)),y},b={dark:yv,light:Z2};return nr(F({common:F({},Wu),mode:t,primary:m({color:o,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:l,name:"error"}),warning:m({color:h,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:u,name:"success"}),grey:u$,contrastThreshold:n,getContrastText:f,augmentColor:m,tonalOffset:i},b[t]),r)}const b$=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function x$(e){return Math.round(e*1e5)/1e5}const Y2={textTransform:"uppercase"},K2='"Roboto", "Helvetica", "Arial", sans-serif';function _$(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:i=K2,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:h,pxToRem:f}=n,m=Oe(n,b$),b=r/14,v=f||(x=>`${x/u*b}rem`),y=(x,S,k,T,P)=>F({fontFamily:i,fontWeight:x,fontSize:v(S),lineHeight:k},i===K2?{letterSpacing:`${x$(T/S)}em`}:{},P,h),w={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(l,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(l,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(l,14,1.75,.4,Y2),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Y2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nr(F({htmlFontSize:u,pxToRem:v,fontFamily:i,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:c},w),m,{clone:!1})}const w$=.2,S$=.14,C$=.12;function pt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${w$})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${S$})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${C$})`].join(",")}const k$=["none",pt(0,2,1,-1,0,1,1,0,0,1,3,0),pt(0,3,1,-2,0,2,2,0,0,1,5,0),pt(0,3,3,-2,0,3,4,0,0,1,8,0),pt(0,2,4,-1,0,4,5,0,0,1,10,0),pt(0,3,5,-1,0,5,8,0,0,1,14,0),pt(0,3,5,-1,0,6,10,0,0,1,18,0),pt(0,4,5,-2,0,7,10,1,0,2,16,1),pt(0,5,5,-3,0,8,10,1,0,3,14,2),pt(0,5,6,-3,0,9,12,1,0,3,16,2),pt(0,6,6,-3,0,10,14,1,0,4,18,3),pt(0,6,7,-4,0,11,15,1,0,4,20,3),pt(0,7,8,-4,0,12,17,2,0,5,22,4),pt(0,7,8,-4,0,13,19,2,0,5,24,4),pt(0,7,9,-4,0,14,21,2,0,5,26,4),pt(0,8,9,-5,0,15,22,2,0,6,28,5),pt(0,8,10,-5,0,16,24,2,0,6,30,5),pt(0,8,11,-5,0,17,26,2,0,6,32,5),pt(0,9,11,-5,0,18,28,2,0,7,34,6),pt(0,9,12,-6,0,19,29,2,0,7,36,6),pt(0,10,13,-6,0,20,31,3,0,8,38,7),pt(0,10,13,-6,0,21,33,3,0,8,40,7),pt(0,10,14,-6,0,22,35,3,0,8,42,7),pt(0,11,14,-7,0,23,36,3,0,9,44,8),pt(0,11,15,-7,0,24,38,3,0,9,46,8)],E$=["duration","easing","delay"],T$={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},UO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function q2(e){return`${Math.round(e)}ms`}function P$(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function O$(e){const t=F({},T$,e.easing),n=F({},UO,e.duration);return F({getAutoHeightDuration:P$,create:(r=["all"],o={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:c=0}=o;return Oe(o,E$),(Array.isArray(r)?r:[r]).map(u=>`${u} ${typeof s=="string"?s:q2(s)} ${l} ${typeof c=="string"?c:q2(c)}`).join(",")}},e,{easing:t,duration:n})}const M$={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},L$=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function A$(e={},...t){const{mixins:n={},palette:i={},transitions:r={},typography:o={}}=e,s=Oe(e,L$);if(e.vars)throw new Error(Rl(18));const l=y$(i),c=Ux(e);let u=nr(c,{mixins:c$(c.breakpoints,n),palette:l,shadows:k$.slice(),typography:_$(l,o),transitions:O$(r),zIndex:F({},M$),applyDarkStyles(h){return this.vars?{[this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)")]:h}:this.palette.mode==="dark"?h:{}}});return u=nr(u,s),u=t.reduce((h,f)=>nr(h,f),u),u.unstable_sxConfig=F({},Em,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return Tm({sx:f,theme:this})},u}const Gx=A$();function Yx(){const e=HO(Gx);return e[Ox]||e}function $t({props:e,name:t}){return i$({props:e,name:t,defaultTheme:Gx,themeId:Ox})}const ZO=e=>rf(e)&&e!=="classes",Ie=t$({themeId:Ox,defaultTheme:Gx,rootShouldForwardProp:ZO}),X2=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};var Kx={},GO={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(GO);var YO=GO.exports,bv={};function R$(e){return Dt("MuiSvgIcon",e)}jt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const I$=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],N$=e=>{const{color:t,fontSize:n,classes:i}=e,r={root:["root",t!=="inherit"&&`color${un(t)}`,`fontSize${un(n)}`]};return Kt(r,R$,i)},D$=Ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${un(n.color)}`],t[`fontSize${un(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,i,r,o,s,l,c,u,h,f,m,b,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(i=n.create)==null?void 0:i.call(n,"fill",{duration:(r=e.transitions)==null||(r=r.duration)==null?void 0:r.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(h=u.pxToRem)==null?void 0:h.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(m=(e.vars||e).palette)==null||(m=m[t.color])==null?void 0:m.main)!=null?f:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),Cy=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiSvgIcon"}),{children:r,className:o,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:h=!1,titleAccess:f,viewBox:m="0 0 24 24"}=i,b=Oe(i,I$),v=C.isValidElement(r)&&r.type==="svg",y=F({},i,{color:s,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:m,hasSvgAsChild:v}),w={};h||(w.viewBox=m);const x=N$(y);return g.jsxs(D$,F({as:l,className:Ce(x.root,o),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},w,b,v&&r.props,{ownerState:y,children:[v?r.props.children:r,f?g.jsx("title",{children:f}):null]}))});Cy.muiName="SvgIcon";function qx(e,t){function n(i,r){return g.jsx(Cy,F({"data-testid":`${t}Icon`,ref:r},i,{children:e}))}return n.muiName=Cy.muiName,C.memo(C.forwardRef(n))}const j$={configure:e=>{$O.configure(e)}},z$=Object.freeze(Object.defineProperty({__proto__:null,capitalize:un,createChainedFunction:wy,createSvgIcon:qx,debounce:M8,deprecatedPropType:L8,isMuiElement:A8,ownerDocument:io,ownerWindow:ym,requirePropFactory:R8,setRef:ep,unstable_ClassNameGenerator:j$,unstable_useEnhancedEffect:tp,unstable_useId:NO,unsupportedProp:N8,useControlled:DO,useEventCallback:Vs,useForkRef:Tr,useIsFocusVisible:jO},Symbol.toStringTag,{value:"Module"})),$$=PL(z$);var Q2;function KO(){return Q2||(Q2=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=$$}(bv)),bv}var B$=YO;Object.defineProperty(Kx,"__esModule",{value:!0});var qO=Kx.default=void 0,F$=B$(KO()),H$=g;qO=Kx.default=(0,F$.default)((0,H$.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIosSharp");var Je={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Xx=Symbol.for("react.element"),Qx=Symbol.for("react.portal"),Om=Symbol.for("react.fragment"),Mm=Symbol.for("react.strict_mode"),Lm=Symbol.for("react.profiler"),Am=Symbol.for("react.provider"),Rm=Symbol.for("react.context"),V$=Symbol.for("react.server_context"),Im=Symbol.for("react.forward_ref"),Nm=Symbol.for("react.suspense"),Dm=Symbol.for("react.suspense_list"),jm=Symbol.for("react.memo"),zm=Symbol.for("react.lazy"),W$=Symbol.for("react.offscreen"),XO;XO=Symbol.for("react.module.reference");function ji(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Xx:switch(e=e.type,e){case Om:case Lm:case Mm:case Nm:case Dm:return e;default:switch(e=e&&e.$$typeof,e){case V$:case Rm:case Im:case zm:case jm:case Am:return e;default:return t}}case Qx:return t}}}Je.ContextConsumer=Rm;Je.ContextProvider=Am;Je.Element=Xx;Je.ForwardRef=Im;Je.Fragment=Om;Je.Lazy=zm;Je.Memo=jm;Je.Portal=Qx;Je.Profiler=Lm;Je.StrictMode=Mm;Je.Suspense=Nm;Je.SuspenseList=Dm;Je.isAsyncMode=function(){return!1};Je.isConcurrentMode=function(){return!1};Je.isContextConsumer=function(e){return ji(e)===Rm};Je.isContextProvider=function(e){return ji(e)===Am};Je.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xx};Je.isForwardRef=function(e){return ji(e)===Im};Je.isFragment=function(e){return ji(e)===Om};Je.isLazy=function(e){return ji(e)===zm};Je.isMemo=function(e){return ji(e)===jm};Je.isPortal=function(e){return ji(e)===Qx};Je.isProfiler=function(e){return ji(e)===Lm};Je.isStrictMode=function(e){return ji(e)===Mm};Je.isSuspense=function(e){return ji(e)===Nm};Je.isSuspenseList=function(e){return ji(e)===Dm};Je.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Om||e===Lm||e===Mm||e===Nm||e===Dm||e===W$||typeof e=="object"&&e!==null&&(e.$$typeof===zm||e.$$typeof===jm||e.$$typeof===Am||e.$$typeof===Rm||e.$$typeof===Im||e.$$typeof===XO||e.getModuleId!==void 0)};Je.typeOf=ji;const U$=e=>e.scrollTop;function op(e,t){var n,i;const{timeout:r,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof r=="number"?r:r[t.mode]||0,easing:(i=s.transitionTimingFunction)!=null?i:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function Z$(e){return Dt("MuiCollapse",e)}jt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const G$=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Y$=e=>{const{orientation:t,classes:n}=e,i={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Kt(i,Z$,n)},K$=Ie("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>F({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&F({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),q$=Ie("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>F({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),X$=Ie("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>F({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),QO=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiCollapse"}),{addEndListener:r,children:o,className:s,collapsedSize:l="0px",component:c,easing:u,in:h,onEnter:f,onEntered:m,onEntering:b,onExit:v,onExited:y,onExiting:w,orientation:x="vertical",style:S,timeout:k=UO.standard,TransitionComponent:T=or}=i,P=Oe(i,G$),O=F({},i,{orientation:x,collapsedSize:l}),M=Y$(O),R=Yx(),N=C.useRef(),I=C.useRef(null),$=C.useRef(),j=typeof l=="number"?`${l}px`:l,B=x==="horizontal",W=B?"width":"height";C.useEffect(()=>()=>{clearTimeout(N.current)},[]);const Z=C.useRef(null),V=Tr(n,Z),G=K=>ae=>{if(K){const ye=Z.current;ae===void 0?K(ye):K(ye,ae)}},z=()=>I.current?I.current[B?"clientWidth":"clientHeight"]:0,q=G((K,ae)=>{I.current&&B&&(I.current.style.position="absolute"),K.style[W]=j,f&&f(K,ae)}),H=G((K,ae)=>{const ye=z();I.current&&B&&(I.current.style.position="");const{duration:pe,easing:ce}=op({style:S,timeout:k,easing:u},{mode:"enter"});if(k==="auto"){const we=R.transitions.getAutoHeightDuration(ye);K.style.transitionDuration=`${we}ms`,$.current=we}else K.style.transitionDuration=typeof pe=="string"?pe:`${pe}ms`;K.style[W]=`${ye}px`,K.style.transitionTimingFunction=ce,b&&b(K,ae)}),J=G((K,ae)=>{K.style[W]="auto",m&&m(K,ae)}),X=G(K=>{K.style[W]=`${z()}px`,v&&v(K)}),re=G(y),ne=G(K=>{const ae=z(),{duration:ye,easing:pe}=op({style:S,timeout:k,easing:u},{mode:"exit"});if(k==="auto"){const ce=R.transitions.getAutoHeightDuration(ae);K.style.transitionDuration=`${ce}ms`,$.current=ce}else K.style.transitionDuration=typeof ye=="string"?ye:`${ye}ms`;K.style[W]=j,K.style.transitionTimingFunction=pe,w&&w(K)}),oe=K=>{k==="auto"&&(N.current=setTimeout(K,$.current||0)),r&&r(Z.current,K)};return g.jsx(T,F({in:h,onEnter:q,onEntered:J,onEntering:H,onExit:X,onExited:re,onExiting:ne,addEndListener:oe,nodeRef:Z,timeout:k==="auto"?null:k},P,{children:(K,ae)=>g.jsx(K$,F({as:c,className:Ce(M.root,s,{entered:M.entered,exited:!h&&j==="0px"&&M.hidden}[K]),style:F({[B?"minWidth":"minHeight"]:j},S),ownerState:F({},O,{state:K}),ref:V},ae,{children:g.jsx(q$,{ownerState:F({},O,{state:K}),className:M.wrapper,ref:I,children:g.jsx(X$,{ownerState:F({},O,{state:K}),className:M.wrapperInner,children:o})})}))}))});QO.muiSupportAuto=!0;function Q$(e){return Dt("MuiPaper",e)}jt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const J$=["className","component","elevation","square","variant"],eB=e=>{const{square:t,elevation:n,variant:i,classes:r}=e,o={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return Kt(o,Q$,r)},tB=Ie("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return F({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${U2("#fff",X2(t.elevation))}, ${U2("#fff",X2(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),$m=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiPaper"}),{className:r,component:o="div",elevation:s=1,square:l=!1,variant:c="elevation"}=i,u=Oe(i,J$),h=F({},i,{component:o,elevation:s,square:l,variant:c}),f=eB(h);return g.jsx(tB,F({as:o,ownerState:h,className:Ce(f.root,r),ref:n},u))}),JO=C.createContext({});function nB(e){return typeof e=="string"}function e5(e,t,n){return e===void 0||nB(e)?t:F({},t,{ownerState:F({},t.ownerState,n)})}function t5(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}function n5(e,t,n){return typeof e=="function"?e(t,n):e}function J2(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function i5(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:r,className:o}=e;if(!t){const b=Ce(n==null?void 0:n.className,o,r==null?void 0:r.className,i==null?void 0:i.className),v=F({},n==null?void 0:n.style,r==null?void 0:r.style,i==null?void 0:i.style),y=F({},n,r,i);return b.length>0&&(y.className=b),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const s=t5(F({},r,i)),l=J2(i),c=J2(r),u=t(s),h=Ce(u==null?void 0:u.className,n==null?void 0:n.className,o,r==null?void 0:r.className,i==null?void 0:i.className),f=F({},u==null?void 0:u.style,n==null?void 0:n.style,r==null?void 0:r.style,i==null?void 0:i.style),m=F({},u,n,c,l);return h.length>0&&(m.className=h),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:u.ref}}const iB=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function eS(e){var t;const{elementType:n,externalSlotProps:i,ownerState:r,skipResolvingSlotProps:o=!1}=e,s=Oe(e,iB),l=o?{}:n5(i,r),{props:c,internalRef:u}=i5(F({},s,{externalSlotProps:l})),h=Tr(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return e5(n,F({},c,{ref:h}),r)}const rB=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],oB=["component","slots","slotProps"],sB=["component"];function aB(e,t){const{className:n,elementType:i,ownerState:r,externalForwardedProps:o,getSlotOwnerState:s,internalForwardedProps:l}=t,c=Oe(t,rB),{component:u,slots:h={[e]:void 0},slotProps:f={[e]:void 0}}=o;Oe(o,oB);const m=h[e]||i,b=n5(f[e],r),v=i5(F({className:n},c,{externalForwardedProps:void 0,externalSlotProps:b})),{props:{component:y},internalRef:w}=v,x=Oe(v.props,sB),S=Tr(w,b==null?void 0:b.ref,t.ref),k=s?s(x):{},T=F({},r,k),P=y,O=e5(m,F({},e==="root",!h[e]&&l,x,P&&{as:P},{ref:S}),T);return Object.keys(k).forEach(M=>{delete O[M]}),[m,O]}function lB(e){return Dt("MuiAccordion",e)}const ph=jt("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),cB=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],uB=e=>{const{classes:t,square:n,expanded:i,disabled:r,disableGutters:o}=e;return Kt({root:["root",!n&&"rounded",i&&"expanded",r&&"disabled",!o&&"gutters"],region:["region"]},lB,t)},dB=Ie($m,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ph.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${ph.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${ph.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>F({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${ph.expanded}`]:{margin:"16px 0"}})),hB=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiAccordion"}),{children:r,className:o,defaultExpanded:s=!1,disabled:l=!1,disableGutters:c=!1,expanded:u,onChange:h,square:f=!1,slots:m={},slotProps:b={},TransitionComponent:v,TransitionProps:y}=i,w=Oe(i,cB),[x,S]=DO({controlled:u,default:s,name:"Accordion",state:"expanded"}),k=C.useCallback(B=>{S(!x),h&&h(B,!x)},[x,h,S]),[T,...P]=C.Children.toArray(r),O=C.useMemo(()=>({expanded:x,disabled:l,disableGutters:c,toggle:k}),[x,l,c,k]),M=F({},i,{square:f,disabled:l,disableGutters:c,expanded:x}),R=uB(M),N=F({transition:v},m),I=F({transition:y},b),[$,j]=aB("transition",{elementType:QO,externalForwardedProps:{slots:N,slotProps:I},ownerState:M});return delete j.ownerState,g.jsxs(dB,F({className:Ce(R.root,o),ref:n,ownerState:M,square:f},w,{children:[g.jsx(JO.Provider,{value:O,children:T}),g.jsx($,F({in:x,timeout:"auto"},j,{children:g.jsx("div",{"aria-labelledby":T.props.id,id:T.props["aria-controls"],role:"region",className:R.region,children:P})}))]}))});function fB(e){const{className:t,classes:n,pulsate:i=!1,rippleX:r,rippleY:o,rippleSize:s,in:l,onExited:c,timeout:u}=e,[h,f]=C.useState(!1),m=Ce(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),b={width:s,height:s,top:-(s/2)+o,left:-(s/2)+r},v=Ce(n.child,h&&n.childLeaving,i&&n.childPulsate);return!l&&!h&&f(!0),C.useEffect(()=>{if(!l&&c!=null){const y=setTimeout(c,u);return()=>{clearTimeout(y)}}},[c,l,u]),g.jsx("span",{className:m,style:b,children:g.jsx("span",{className:v})})}const wi=jt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),pB=["center","classes","className"];let Bm=e=>e,tS,nS,iS,rS;const ky=550,mB=80,gB=vm(tS||(tS=Bm` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),vB=vm(nS||(nS=Bm` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),yB=vm(iS||(iS=Bm` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),bB=Ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),xB=Ie(fB,{name:"MuiTouchRipple",slot:"Ripple"})(rS||(rS=Bm` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),wi.rippleVisible,gB,ky,({theme:e})=>e.transitions.easing.easeInOut,wi.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,wi.child,wi.childLeaving,vB,ky,({theme:e})=>e.transitions.easing.easeInOut,wi.childPulsate,yB,({theme:e})=>e.transitions.easing.easeInOut),_B=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:s}=i,l=Oe(i,pB),[c,u]=C.useState([]),h=C.useRef(0),f=C.useRef(null);C.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const m=C.useRef(!1),b=C.useRef(0),v=C.useRef(null),y=C.useRef(null);C.useEffect(()=>()=>{b.current&&clearTimeout(b.current)},[]);const w=C.useCallback(T=>{const{pulsate:P,rippleX:O,rippleY:M,rippleSize:R,cb:N}=T;u(I=>[...I,g.jsx(xB,{classes:{ripple:Ce(o.ripple,wi.ripple),rippleVisible:Ce(o.rippleVisible,wi.rippleVisible),ripplePulsate:Ce(o.ripplePulsate,wi.ripplePulsate),child:Ce(o.child,wi.child),childLeaving:Ce(o.childLeaving,wi.childLeaving),childPulsate:Ce(o.childPulsate,wi.childPulsate)},timeout:ky,pulsate:P,rippleX:O,rippleY:M,rippleSize:R},h.current)]),h.current+=1,f.current=N},[o]),x=C.useCallback((T={},P={},O=()=>{})=>{const{pulsate:M=!1,center:R=r||P.pulsate,fakeElement:N=!1}=P;if((T==null?void 0:T.type)==="mousedown"&&m.current){m.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(m.current=!0);const I=N?null:y.current,$=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,B,W;if(R||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)j=Math.round($.width/2),B=Math.round($.height/2);else{const{clientX:Z,clientY:V}=T.touches&&T.touches.length>0?T.touches[0]:T;j=Math.round(Z-$.left),B=Math.round(V-$.top)}if(R)W=Math.sqrt((2*$.width**2+$.height**2)/3),W%2===0&&(W+=1);else{const Z=Math.max(Math.abs((I?I.clientWidth:0)-j),j)*2+2,V=Math.max(Math.abs((I?I.clientHeight:0)-B),B)*2+2;W=Math.sqrt(Z**2+V**2)}T!=null&&T.touches?v.current===null&&(v.current=()=>{w({pulsate:M,rippleX:j,rippleY:B,rippleSize:W,cb:O})},b.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},mB)):w({pulsate:M,rippleX:j,rippleY:B,rippleSize:W,cb:O})},[r,w]),S=C.useCallback(()=>{x({},{pulsate:!0})},[x]),k=C.useCallback((T,P)=>{if(clearTimeout(b.current),(T==null?void 0:T.type)==="touchend"&&v.current){v.current(),v.current=null,b.current=setTimeout(()=>{k(T,P)});return}v.current=null,u(O=>O.length>0?O.slice(1):O),f.current=P},[]);return C.useImperativeHandle(n,()=>({pulsate:S,start:x,stop:k}),[S,x,k]),g.jsx(bB,F({className:Ce(wi.root,o.root,s),ref:y},l,{children:g.jsx(wx,{component:null,exit:!0,children:c})}))});function wB(e){return Dt("MuiButtonBase",e)}const SB=jt("MuiButtonBase",["root","disabled","focusVisible"]),CB=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],kB=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:i,classes:r}=e,s=Kt({root:["root",t&&"disabled",n&&"focusVisible"]},wB,r);return n&&i&&(s.root+=` ${i}`),s},EB=Ie("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${SB.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),r5=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:s,className:l,component:c="button",disabled:u=!1,disableRipple:h=!1,disableTouchRipple:f=!1,focusRipple:m=!1,LinkComponent:b="a",onBlur:v,onClick:y,onContextMenu:w,onDragLeave:x,onFocus:S,onFocusVisible:k,onKeyDown:T,onKeyUp:P,onMouseDown:O,onMouseLeave:M,onMouseUp:R,onTouchEnd:N,onTouchMove:I,onTouchStart:$,tabIndex:j=0,TouchRippleProps:B,touchRippleRef:W,type:Z}=i,V=Oe(i,CB),G=C.useRef(null),z=C.useRef(null),q=Tr(z,W),{isFocusVisibleRef:H,onFocus:J,onBlur:X,ref:re}=jO(),[ne,oe]=C.useState(!1);u&&ne&&oe(!1),C.useImperativeHandle(r,()=>({focusVisible:()=>{oe(!0),G.current.focus()}}),[]);const[K,ae]=C.useState(!1);C.useEffect(()=>{ae(!0)},[]);const ye=K&&!h&&!u;C.useEffect(()=>{ne&&m&&!h&&K&&z.current.pulsate()},[h,m,ne,K]);function pe(_e,gi,ar=f){return Vs(_n=>(gi&&gi(_n),!ar&&z.current&&z.current[_e](_n),!0))}const ce=pe("start",O),we=pe("stop",w),Le=pe("stop",x),ot=pe("stop",R),We=pe("stop",_e=>{ne&&_e.preventDefault(),M&&M(_e)}),$n=pe("start",$),hn=pe("stop",N),fn=pe("stop",I),Ge=pe("stop",_e=>{X(_e),H.current===!1&&oe(!1),v&&v(_e)},!1),Lr=Vs(_e=>{G.current||(G.current=_e.currentTarget),J(_e),H.current===!0&&(oe(!0),k&&k(_e)),S&&S(_e)}),mi=()=>{const _e=G.current;return c&&c!=="button"&&!(_e.tagName==="A"&&_e.href)},Jn=C.useRef(!1),sr=Vs(_e=>{m&&!Jn.current&&ne&&z.current&&_e.key===" "&&(Jn.current=!0,z.current.stop(_e,()=>{z.current.start(_e)})),_e.target===_e.currentTarget&&mi()&&_e.key===" "&&_e.preventDefault(),T&&T(_e),_e.target===_e.currentTarget&&mi()&&_e.key==="Enter"&&!u&&(_e.preventDefault(),y&&y(_e))}),Ar=Vs(_e=>{m&&_e.key===" "&&z.current&&ne&&!_e.defaultPrevented&&(Jn.current=!1,z.current.stop(_e,()=>{z.current.pulsate(_e)})),P&&P(_e),y&&_e.target===_e.currentTarget&&mi()&&_e.key===" "&&!_e.defaultPrevented&&y(_e)});let ei=c;ei==="button"&&(V.href||V.to)&&(ei=b);const xn={};ei==="button"?(xn.type=Z===void 0?"button":Z,xn.disabled=u):(!V.href&&!V.to&&(xn.role="button"),u&&(xn["aria-disabled"]=u));const zi=Tr(n,re,G),ti=F({},i,{centerRipple:o,component:c,disabled:u,disableRipple:h,disableTouchRipple:f,focusRipple:m,tabIndex:j,focusVisible:ne}),$i=kB(ti);return g.jsxs(EB,F({as:ei,className:Ce($i.root,l),ownerState:ti,onBlur:Ge,onClick:y,onContextMenu:we,onFocus:Lr,onKeyDown:sr,onKeyUp:Ar,onMouseDown:ce,onMouseLeave:We,onMouseUp:ot,onDragLeave:Le,onTouchEnd:hn,onTouchMove:fn,onTouchStart:$n,ref:zi,tabIndex:u?-1:j,type:Z},xn,V,{children:[s,ye?g.jsx(_B,F({ref:q,center:o},B)):null]}))});function TB(e){return Dt("MuiAccordionSummary",e)}const il=jt("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),PB=["children","className","expandIcon","focusVisibleClassName","onClick"],OB=e=>{const{classes:t,expanded:n,disabled:i,disableGutters:r}=e;return Kt({root:["root",n&&"expanded",i&&"disabled",!r&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!r&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},TB,t)},MB=Ie(r5,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return F({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${il.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${il.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${il.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${il.expanded}`]:{minHeight:64}})}),LB=Ie("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>F({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${il.expanded}`]:{margin:"20px 0"}})),AB=Ie("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${il.expanded}`]:{transform:"rotate(180deg)"}})),RB=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiAccordionSummary"}),{children:r,className:o,expandIcon:s,focusVisibleClassName:l,onClick:c}=i,u=Oe(i,PB),{disabled:h=!1,disableGutters:f,expanded:m,toggle:b}=C.useContext(JO),v=x=>{b&&b(x),c&&c(x)},y=F({},i,{expanded:m,disabled:h,disableGutters:f}),w=OB(y);return g.jsxs(MB,F({focusRipple:!1,disableRipple:!0,disabled:h,component:"div","aria-expanded":m,className:Ce(w.root,o),focusVisibleClassName:Ce(w.focusVisible,l),onClick:v,ref:n,ownerState:y},u,{children:[g.jsx(LB,{className:w.content,ownerState:y,children:r}),s&&g.jsx(AB,{className:w.expandIconWrapper,ownerState:y,children:s})]}))});function IB(e){return Dt("MuiAccordionDetails",e)}jt("MuiAccordionDetails",["root"]);const NB=["className"],DB=e=>{const{classes:t}=e;return Kt({root:["root"]},IB,t)},jB=Ie("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),zB=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiAccordionDetails"}),{className:r}=i,o=Oe(i,NB),s=i,l=DB(s);return g.jsx(jB,F({className:Ce(l.root,r),ref:n,ownerState:s},o))});function $B(e){return Dt("MuiTypography",e)}jt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const BB=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],FB=e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:r,variant:o,classes:s}=e,l={root:["root",o,e.align!=="inherit"&&`align${un(t)}`,n&&"gutterBottom",i&&"noWrap",r&&"paragraph"]};return Kt(l,$B,s)},HB=Ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${un(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>F({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),oS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},VB={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},WB=e=>VB[e]||e,jo=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiTypography"}),r=WB(i.color),o=Wz(F({},i,{color:r})),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:h=!1,paragraph:f=!1,variant:m="body1",variantMapping:b=oS}=o,v=Oe(o,BB),y=F({},o,{align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:h,paragraph:f,variant:m,variantMapping:b}),w=c||(f?"p":b[m]||oS[m])||"span",x=FB(y);return g.jsx(HB,F({as:w,ref:n,ownerState:y,className:Ce(x.root,l)},v))}),xv=Ie(e=>g.jsx(hB,{disableGutters:!0,elevation:0,square:!0,...e}))(({theme:e})=>({border:`1px solid ${e.palette.divider}`,borderRadius:"7px","&:not(:last-child)":{borderBottom:0},"&::before":{display:"none"},backdropFilter:"blur(4px)",backgroundColor:"rgba(255, 255, 255, 0.6)"})),_v=Ie(e=>g.jsx(RB,{expandIcon:g.jsx(qO,{sx:{fontSize:"0.6rem"}}),...e}))(({theme:e})=>({flexDirection:"row-reverse","& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(90deg)"},"& .MuiAccordionSummary-content":{marginLeft:e.spacing(.7)}})),wv=Ie(zB)(({theme:e})=>({padding:e.spacing(2),borderTop:"1px solid rgba(0, 0, 0, .125)",textAlign:"left","@media (max-width: 600px)":{padding:e.spacing(1)}})),Sv=Ie("img")(({theme:e})=>({borderRadius:"10px",width:"100%",height:"auto","@media (max-width: 600px)":{width:"100%"}}));function UB(){const[e,t]=C.useState(null),n=i=>(r,o)=>{t(o?i:!1)};return g.jsxs("div",{children:[g.jsxs(xv,{expanded:e==="panel1",onChange:n("panel1"),children:[g.jsx(_v,{"aria-controls":"panel2d-content",id:"panel1d-header",children:g.jsx(jo,{variant:"body1",sx:{fontSize:{xs:"1rem",sm:"1.25rem"}},children:"Determine how badly the animal is injured"})}),g.jsx(wv,{children:g.jsxs(jo,{variant:"body2",sx:{fontSize:{xs:"0.875rem",sm:"1rem"}},children:["Some injuries need urgent care, like severe bleeding or serious distress. Minor injuries, like a mobile animal without distress, can be treated at home. Assess the situation and decide if the animal needs immediate medical attention based on its behavior.",g.jsx(Sv,{src:"./images/determining.jpeg",alt:"Determining injury"})]})})]}),g.jsxs(xv,{expanded:e==="panel2",onChange:n("panel2"),children:[g.jsx(_v,{"aria-controls":"panel1d-content",id:"panel2d-header",children:g.jsx(jo,{variant:"body1",sx:{fontSize:{xs:"1rem",sm:"1.25rem"}},children:"Provide first aid, if possible"})}),g.jsx(wv,{children:g.jsxs(jo,{variant:"body2",sx:{fontSize:{xs:"0.875rem",sm:"1rem"}},children:["For minor injuries, clean cuts with soap and water, cover with a bandage. Treat minor burns with cool water and a dry cloth. If unconscious, check for injuries and provide aid as needed.",g.jsx(Sv,{src:"./images/petdoc.webp",alt:"First aid"})]})})]}),g.jsxs(xv,{expanded:e==="panel3",onChange:n("panel3"),children:[g.jsx(_v,{"aria-controls":"panel3d-content",id:"panel3d-header",children:g.jsx(jo,{variant:"body1",sx:{fontSize:{xs:"1rem",sm:"1.25rem"}},children:"Approach the streetie slowly and calmly"})}),g.jsx(wv,{children:g.jsxs(jo,{variant:"body2",sx:{fontSize:{xs:"0.875rem",sm:"1rem"}},children:["If a stray dog shows aggression like growling, keep your distance and seek professional help. Approach calmly if the dog seems friendly, speaking softly to reassure it.",g.jsx(Sv,{src:"./images/caution.jpeg",alt:"Approach calmly"})]})})]})]})}const ZB=localStorage.getItem("csrftoken");function GB(){const e=[["name1: ","number1"],["name2: ","number2"],["name3: ","number3"]];return g.jsx("div",{className:"z-[-2] mb-10 min-h-screen bg-custom-gradient flex items-center justify-center p-4 md:p-10",children:g.jsxs("div",{className:"pt-7 w-full max-w-4xl text-center mb-10 flex flex-col items-center gap-5",children:[g.jsx("div",{className:"px-10 rounded-full bg-gradient-to-br from-blue-400 to-blue-800 shadow-dashBoardCardImageShadow flex text-white items-end justify-center text-[4rem] md:text-[7rem]",children:"✓"}),g.jsx("p",{className:"text-center text-opacity-90 text-xl md:text-2xl font-breeSerif drop-shadow-2xl tracking-widest font-bold",children:"Your report has been submitted successfully."}),g.jsxs("div",{className:"flex flex-wrap items-center w-full justify-center gap-4",children:[g.jsx(vn,{text:g.jsx(ct,{to:"/",children:"Home"}),clas:"bg-gradient-to-b from-blue-600 to-blue-800 px-4 py-2 md:px-7 md:py-3 text-sm md:text-base font-semibold"}),ZB?g.jsx(vn,{text:g.jsx(ct,{to:"/view-reports",children:"View Reports"}),clas:"px-4 py-2 md:px-7 md:py-3 text-sm md:text-base font-semibold"}):g.jsx(vn,{text:g.jsx(ct,{to:"/login",children:"Login"}),clas:"px-4 py-2 md:px-7 md:py-3 text-sm md:text-base font-semibold"})]}),g.jsxs("div",{className:"w-full md:w-[92%] bg-red-50 rounded-xl bg-opacity-75 p-5 md:p-8",children:[g.jsx("div",{className:"flex flex-row items-center w-full justify-start",children:g.jsx("h1",{className:"mt-1 mb-1 text-xl md:text-2xl font-bold tracking-wider text-red-900 font-breeSerif",children:"Contact the nearest NGO if you can!"})}),g.jsxs("div",{children:[g.jsx("h3",{className:"mb-2 text-left",children:"These are the closest NGOs. Let them know a streetie needs help!"}),g.jsxs("ol",{className:"pl-5 md:pl-10 mb-5 font-bold text-lg font-sans text-left list-decimal",children:[g.jsx("li",{children:e[0]}),g.jsx("li",{children:e[1]}),g.jsx("li",{children:e[2]})]}),g.jsx("p",{className:"mb-2 text-left",children:"Doing this can let the animal receive help quicker."})]})]}),g.jsxs("div",{className:"w-full md:w-[92%] mt-12",children:[g.jsx("div",{className:"flex flex-row items-center w-full justify-start",children:g.jsx("h1",{className:"mb-3 text-xl md:text-2xl font-bold tracking-wider font-breeSerif",children:"Here's what you can do in the meantime"})}),g.jsx(UB,{})]}),g.jsxs("div",{className:"text-lg",children:["Give your valuable  ",g.jsx(ct,{to:"/feedback",className:"underline underline-offset-2 font-medium active:text-blue-800",children:"feedback!"})]})]})})}function YB(){const{userData:e,setKey:t}=C.useContext(Kl),[n,i]=C.useState(1),[r,o]=C.useState(!1),[s,l]=C.useState({user_name:"",user_email:"",user_phone:"",animal_type:"",predictedAnimal:"",predictedNumberOfAnimals:"",predictedDescription:"",otherAnimalType:"",description:"",condition:"",image:null,latitude:"",longitude:"",landmark:"",status:"Received",numberOfAnimals:""}),[c,u]=C.useState({user_name:"",user_email:"",user_phone:"",animal_type:"",description:"",condition:"",image:"",latitude:"",longitude:"",landmark:"",status:"",numberOfAnimals:"",imgUpLoading:""});C.useEffect(()=>{async function S(k,T){const P="https://paws-backend.azurewebsites.net";try{const O=await Me.put(`${P}/info/user/`,{no_reports:k+1},{headers:{Authorization:`Token ${T}`},withCredentials:!0});console.log(O.data)}catch(O){console.error(O)}}if(r){const k=localStorage.getItem("csrftoken");if(!k)return;S(e.no_reports,k)}else return},[r,e]);const h=()=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(async S=>{const{latitude:k,longitude:T}=S.coords;try{const O=await(await fetch(`https://maps.googleapis.com/maps/api/geocode/json?latlng=${k},${T}&key=AIzaSyBBUSExqFtg19K7UZQ4LzGE7MygnoxibRo`)).json();if(O.results&&O.results.length>0){const M=O.results[0].formatted_address;l(R=>({...R,latitude:k,longitude:T,address:M}))}else console.log("No results found")}catch(P){console.error("Error fetching address:",P)}},S=>{console.error("Error getting geolocation:",S)},{enableHighAccuracy:!0,timeout:1e4,maximumAge:0}):console.log("Geolocation is not supported by this browser.")};C.useEffect(()=>{h()},[]);const f=S=>{const{name:k,value:T}=S.target;l(k==="predictedAnimal"?P=>({...P,predictedAnimal:"",animal_type:T}):k==="otherAnimalType"?P=>({...P,otherAnimalType:T}):k==="numberOfAnimals"?P=>({...P,predictedNumberOfAnimals:"",numberOfAnimals:T}):k==="description"?P=>({...P,predictedDescription:"",description:T}):P=>({...P,[k]:T})),u(P=>({...P,[k]:""}))},m=()=>{y(n)&&i(S=>S+1)},b=()=>{i(S=>S-1)},v=async S=>{S&&S.preventDefault(),s.animal_type==="other"&&(s.animal_type=s.otherAnimalType),delete s.otherAnimalType,delete s.predictedAnimal,delete s.predictedNumberOfAnimals,delete s.predictedDescription,console.log("Submitting form:",s);try{if(w()){const T=await fetch("https://paws-backend.azurewebsites.net/api/animals/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(T.ok){t(O=>O+1),o(!0);const P=await T.json();console.log("Success:",P),i(4)}else console.error("Error:",T.statusText)}else console.log("Form is not valid")}catch(k){console.error("Error:",k)}},y=S=>{const k=s;console.log(k);const T={};switch(S){case 1:k.image||(T.image="Image is required."),(!k.latitude||!k.longitude)&&(T.latitude="Location is required. Please enable location services in your browser."),k.landmark||(T.landmark="Landmark is required.");break;case 2:k.animal_type||(T.animal_type="Animal type is required."),k.description||(T.description="Description is required."),k.condition||(T.condition="Condition is required.");break;case 3:k.user_name||(T.user_name="Name is required."),k.user_phone?zu(k.user_phone)||(T.user_phone="Invalid phone number."):T.user_phone="Phone number is required.",k.user_email?yd(k.user_email)||(T.user_email="Invalid email address."):T.user_email="Email is required.";break}return u(P=>({...P,...T})),Object.values(T).every(P=>P==="")},w=()=>Object.keys(s).every(S=>s[S]!==""&&S!=="userLocation"),x=()=>{switch(n){case 1:return g.jsx(Aj,{formData:s,errors:c,handleChange:f,handleNextPage:m,setErrors:u,setFormData:l});case 2:return g.jsx(S6,{formData:s,setFormData:l,errors:c,handleChange:f,handleNextPage:m,handleBackPage:b});case 3:return g.jsx(k6,{formData:s,setFormData:l,errors:c,handleBackPage:b,handleChange:f,handleNextPage:m,handleSubmit:v,validatePage:()=>y(n)});case 4:return g.jsx(GB,{});default:return null}};return g.jsx("div",{children:x()})}var o5={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},sS=ee.createContext&&ee.createContext(o5),KB=["attr","size","title"];function qB(e,t){if(e==null)return{};var n=XB(e,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function XB(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o=0)&&(n[r]=e[r]);return n}function sp(){return sp=Object.assign?Object.assign.bind():function(e){for(var t=1;tee.createElement(t.tag,ap({key:n},t.attr),s5(t.child)))}function qt(e){return t=>ee.createElement(tF,sp({attr:ap({},e.attr)},t),s5(e.child))}function tF(e){var t=n=>{var{attr:i,size:r,title:o}=e,s=qB(e,KB),l=r||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),ee.createElement("svg",sp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,s,{className:c,style:ap(ap({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),o&&ee.createElement("title",null,o),e.children)};return sS!==void 0?ee.createElement(sS.Consumer,null,n=>t(n)):t(o5)}function Cv(e){return qt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"},child:[]}]})(e)}function a5(e){return qt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z"},child:[]}]})(e)}function nF(e){return qt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function iF(e){return qt({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"},child:[]}]})(e)}function rF(e){return qt({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M624 208h-64v-64c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v64h-64c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h64v64c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-64h64c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},child:[]}]})(e)}function sf(e){return qt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},child:[]}]})(e)}function oF(e){return qt({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M232.76,137.88A28.39,28.39,0,0,0,208.13,133L172,141.26c0-.42,0-.84,0-1.26a32,32,0,0,0-32-32H89.94a35.76,35.76,0,0,0-25.45,10.54L43,140H20A20,20,0,0,0,0,160v40a20,20,0,0,0,20,20H120a11.89,11.89,0,0,0,2.91-.36l64-16a11.4,11.4,0,0,0,1.79-.6l38.82-16.54c.23-.09.45-.19.67-.3a28.61,28.61,0,0,0,4.57-48.32ZM24,164H36v32H24Zm193.68.61-37.51,16L118.52,196H60V157l21.46-21.46A11.93,11.93,0,0,1,89.94,132H140a8,8,0,0,1,0,16H112a12,12,0,0,0,0,24h32a12.19,12.19,0,0,0,2.69-.3l67-15.41.47-.12a4.61,4.61,0,0,1,5.82,4.44A4.58,4.58,0,0,1,217.68,164.61ZM164,100c1.1,0,2.2-.06,3.28-.15A40,40,0,1,0,204,44c-1.1,0-2.18.06-3.26.14A40,40,0,1,0,164,100Zm56-16a16,16,0,1,1-16-16A16,16,0,0,1,220,84ZM164,44a16,16,0,0,1,14.5,9.21A40,40,0,0,0,164.81,76c-.27,0-.54,0-.81,0a16,16,0,0,1,0-32Z"},child:[]}]})(e)}function mh(e){return qt({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M240,108a28,28,0,1,1-28-28A28,28,0,0,1,240,108ZM72,108a28,28,0,1,0-28,28A28,28,0,0,0,72,108ZM92,88A28,28,0,1,0,64,60,28,28,0,0,0,92,88Zm72,0a28,28,0,1,0-28-28A28,28,0,0,0,164,88Zm23.12,60.86a35.3,35.3,0,0,1-16.87-21.14,44,44,0,0,0-84.5,0A35.25,35.25,0,0,1,69,148.82,40,40,0,0,0,88,224a39.48,39.48,0,0,0,15.52-3.13,64.09,64.09,0,0,1,48.87,0,40,40,0,0,0,34.73-72Z"},child:[]}]})(e)}const sF=Array.from({length:45},(e,t)=>g.jsx(iF,{className:"absolute text-white animate-ping opacity-75",style:{top:`${Math.random()*70}vh`,left:`${Math.random()*95}vw`,fontSize:`${Math.random()*1.5}rem`,animationDuration:`${Math.random()*12+1.1}s`}},t));function aF(){const e=Kp(),t=localStorage.getItem("csrftoken"),n=localStorage.getItem("userType");return C.useEffect(()=>{const i=new Image;return i.src="./images/paws.webp",document.body.style.overflow="hidden",document.body.style.touchAction="manipulation",()=>{document.body.style.overflow="",document.body.style.touchAction=""}},[]),C.useEffect(()=>{t&&n==="ngo"&&e("/stats")},[t,n,e]),g.jsx("div",{style:{overflowY:"scroll",height:"100vh",scrollbarWidth:"thin",scrollbarColor:"#888 transparent"},children:g.jsx("div",{children:g.jsxs("div",{className:"z-[-2] h-[120vh] bg-custom-gradient w-full flex flex-col items-center font-VarelaRound",children:[sF,g.jsx("div",{className:"flex flex-col items-center justify-between h-[70vh] gap-2.5",children:g.jsxs("div",{className:"flex flex-col items-center gap-2 max-h-[650px] -mt-[40px]",children:[g.jsxs("div",{className:"mt-[50px] relative",children:[g.jsxs("div",{className:"absolute top-3 right-[-2rem] flex flex-row items-start",children:[g.jsx(mh,{className:"text-white text-[2.2rem] transform rotate-45 "}),g.jsx(mh,{className:"text-white text-[2rem] transform -rotate-12 mt-4"})]}),g.jsx("h2",{style:{textShadow:"2px 4px 6px black"},className:" text-[6rem] text-white drop-shadow-3xl font-extrabold font-VarelaRound tracking-wider`",children:"Paws"}),g.jsxs("div",{className:"absolute bottom-0 left-[-2rem] flex flex-row items-start",children:[g.jsx(mh,{className:"text-white text-[2.2rem] transform rotate-45 "}),g.jsx(mh,{className:"text-white text-[2rem] transform -rotate-12 mt-4 "})]})]}),g.jsx("img",{className:"mx-auto my-auto h-72 backdrop-blur",src:"./images/paws.webp",alt:"Paws"}),g.jsx("p",{className:"text-[24px] drop-shadow-3xl w-full px-4 text-center font-semibold tracking-wider h-md:hidden",children:"Pause to save Paws"}),g.jsxs("div",{className:"text-[18px] text-center max-width-[95%] pt-3 font-baijam drop- tracking-wider",children:[g.jsx("p",{children:'"Save lives - Click below to report'}),g.jsx("p",{children:'injured animals to authorities."'})]}),g.jsx("div",{className:"",children:g.jsx("button",{type:"submit",className:"bg-gradient-to-r from-[#f27b79] via-[#e6466c] to-[#f3285b] text-white focus:outline-none rounded-[40px] shadow-buttonShadow py-4 font-bold tracking-widest text-[2rem] px-10",children:g.jsx(ct,{to:"/report-incident",children:"Report"})})})]})})]})})})}function lF(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var r=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(r!=null){var o,s,l,c,u=[],h=!0,f=!1;try{if(l=(r=r.call(n)).next,i!==0)for(;!(h=(o=l.call(r)).done)&&(u.push(o.value),u.length!==i);h=!0);}catch(m){f=!0,s=m}finally{try{if(!h&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(f)throw s}}return u}}(e,t)||function(n,i){if(n){if(typeof n=="string")return lS(n,i);var r=Object.prototype.toString.call(n).slice(8,-1);if(r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set")return Array.from(n);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lS(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function lS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n>6|192,t[n++]=r&63|128):(r&64512)===55296&&i+1>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=r&63|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=r&63|128)}return t},yF=function(e){const t=[];let n=0,i=0;for(;n191&&r<224){const o=e[n++];t[i++]=String.fromCharCode((r&31)<<6|o&63)}else if(r>239&&r<365){const o=e[n++],s=e[n++],l=e[n++],c=((r&7)<<18|(o&63)<<12|(s&63)<<6|l&63)-65536;t[i++]=String.fromCharCode(55296+(c>>10)),t[i++]=String.fromCharCode(56320+(c&1023))}else{const o=e[n++],s=e[n++];t[i++]=String.fromCharCode((r&15)<<12|(o&63)<<6|s&63)}}return t.join("")},u5={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[];for(let r=0;r>2,f=(o&3)<<4|l>>4;let m=(l&15)<<2|u>>6,b=u&63;c||(b=64,s||(m=64)),i.push(n[h],n[f],n[m],n[b])}return i.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(c5(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):yF(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let r=0;r>4;if(i.push(m),u!==64){const b=l<<4&240|u>>2;if(i.push(b),f!==64){const v=u<<6&192|f;i.push(v)}}}return i},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class bF extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const xF=function(e){const t=c5(e);return u5.encodeByteArray(t,!0)},d5=function(e){return xF(e).replace(/\./g,"")},_F=function(e){try{return u5.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/** + * @license + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */function wF(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** + * @license + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const SF=()=>wF().__FIREBASE_DEFAULTS__,CF=()=>{if(typeof process>"u"||typeof fS>"u")return;const e=fS.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},kF=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&_F(e[1]);return t&&JSON.parse(t)},EF=()=>{try{return SF()||CF()||kF()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},h5=()=>{var e;return(e=EF())===null||e===void 0?void 0:e.config};/** + * @license + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */class TF{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,i)=>{n?this.reject(n):this.resolve(i),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,i))}}}function f5(){try{return typeof indexedDB=="object"}catch{return!1}}function p5(){return new Promise((e,t)=>{try{let n=!0;const i="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(i);r.onsuccess=()=>{r.result.close(),n||self.indexedDB.deleteDatabase(i),e(!0)},r.onupgradeneeded=()=>{n=!1},r.onerror=()=>{var o;t(((o=r.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){t(n)}})}function PF(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/** + * @license + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const OF="FirebaseError";class Xl extends Error{constructor(t,n,i){super(n),this.code=t,this.customData=i,this.name=OF,Object.setPrototypeOf(this,Xl.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Fm.prototype.create)}}class Fm{constructor(t,n,i){this.service=t,this.serviceName=n,this.errors=i}create(t,...n){const i=n[0]||{},r=`${this.service}/${t}`,o=this.errors[t],s=o?MF(o,i):"Error",l=`${this.serviceName}: ${s} (${r}).`;return new Xl(r,l,i)}}function MF(e,t){return e.replace(LF,(n,i)=>{const r=t[i];return r!=null?String(r):`<${i}?>`})}const LF=/\{\$([^}]+)}/g;function Ey(e,t){if(e===t)return!0;const n=Object.keys(e),i=Object.keys(t);for(const r of n){if(!i.includes(r))return!1;const o=e[r],s=t[r];if(pS(o)&&pS(s)){if(!Ey(o,s))return!1}else if(o!==s)return!1}for(const r of i)if(!n.includes(r))return!1;return!0}function pS(e){return e!==null&&typeof e=="object"}/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */function Jx(e){return e&&e._delegate?e._delegate:e}class us{constructor(t,n,i){this.name=t,this.instanceFactory=n,this.type=i,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const Is="[DEFAULT]";/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */class AF{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const i=new TF;if(this.instancesDeferred.set(n,i),this.isInitialized(n)||this.shouldAutoInitialize())try{const r=this.getOrInitializeService({instanceIdentifier:n});r&&i.resolve(r)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const i=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),r=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(i)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:i})}catch(o){if(r)return null;throw o}else{if(r)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(IF(t))try{this.getOrInitializeService({instanceIdentifier:Is})}catch{}for(const[n,i]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:r});i.resolve(o)}catch{}}}}clearInstance(t=Is){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=Is){return this.instances.has(t)}getOptions(t=Is){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,i=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(i))throw Error(`${this.name}(${i}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:i,options:n});for(const[o,s]of this.instancesDeferred.entries()){const l=this.normalizeInstanceIdentifier(o);i===l&&s.resolve(r)}return r}onInit(t,n){var i;const r=this.normalizeInstanceIdentifier(n),o=(i=this.onInitCallbacks.get(r))!==null&&i!==void 0?i:new Set;o.add(t),this.onInitCallbacks.set(r,o);const s=this.instances.get(r);return s&&t(s,r),()=>{o.delete(t)}}invokeOnInitCallbacks(t,n){const i=this.onInitCallbacks.get(n);if(i)for(const r of i)try{r(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let i=this.instances.get(t);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:RF(t),options:n}),this.instances.set(t,i),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(i,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,i)}catch{}return i||null}normalizeInstanceIdentifier(t=Is){return this.component?this.component.multipleInstances?t:Is:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function RF(e){return e===Is?void 0:e}function IF(e){return e.instantiationMode==="EAGER"}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */class NF{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new AF(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/** + * @license + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */var ut;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(ut||(ut={}));const DF={debug:ut.DEBUG,verbose:ut.VERBOSE,info:ut.INFO,warn:ut.WARN,error:ut.ERROR,silent:ut.SILENT},jF=ut.INFO,zF={[ut.DEBUG]:"log",[ut.VERBOSE]:"log",[ut.INFO]:"info",[ut.WARN]:"warn",[ut.ERROR]:"error"},$F=(e,t,...n)=>{if(tt.some(n=>e instanceof n);let mS,gS;function HF(){return mS||(mS=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function VF(){return gS||(gS=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const m5=new WeakMap,Ty=new WeakMap,g5=new WeakMap,Ev=new WeakMap,e1=new WeakMap;function WF(e){const t=new Promise((n,i)=>{const r=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(ro(e.result)),r()},s=()=>{i(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&m5.set(n,e)}).catch(()=>{}),e1.set(t,e),t}function UF(e){if(Ty.has(e))return;const t=new Promise((n,i)=>{const r=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{n(),r()},s=()=>{i(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});Ty.set(e,t)}let Py={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Ty.get(e);if(t==="objectStoreNames")return e.objectStoreNames||g5.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ro(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function ZF(e){Py=e(Py)}function GF(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const i=e.call(Tv(this),t,...n);return g5.set(i,t.sort?t.sort():[t]),ro(i)}:VF().includes(e)?function(...t){return e.apply(Tv(this),t),ro(m5.get(this))}:function(...t){return ro(e.apply(Tv(this),t))}}function YF(e){return typeof e=="function"?GF(e):(e instanceof IDBTransaction&&UF(e),FF(e,HF())?new Proxy(e,Py):e)}function ro(e){if(e instanceof IDBRequest)return WF(e);if(Ev.has(e))return Ev.get(e);const t=YF(e);return t!==e&&(Ev.set(e,t),e1.set(t,e)),t}const Tv=e=>e1.get(e);function Hm(e,t,{blocked:n,upgrade:i,blocking:r,terminated:o}={}){const s=indexedDB.open(e,t),l=ro(s);return i&&s.addEventListener("upgradeneeded",c=>{i(ro(s.result),c.oldVersion,c.newVersion,ro(s.transaction),c)}),n&&s.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),l.then(c=>{o&&c.addEventListener("close",()=>o()),r&&c.addEventListener("versionchange",u=>r(u.oldVersion,u.newVersion,u))}).catch(()=>{}),l}function Pv(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",i=>t(i.oldVersion,i)),ro(n).then(()=>{})}const KF=["get","getKey","getAll","getAllKeys","count"],qF=["put","add","delete","clear"],Ov=new Map;function vS(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Ov.get(t))return Ov.get(t);const n=t.replace(/FromIndex$/,""),i=t!==n,r=qF.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!(r||KF.includes(n)))return;const o=async function(s,...l){const c=this.transaction(s,r?"readwrite":"readonly");let u=c.store;return i&&(u=u.index(l.shift())),(await Promise.all([u[n](...l),r&&c.done]))[0]};return Ov.set(t,o),o}ZF(e=>({...e,get:(t,n,i)=>vS(t,n)||e.get(t,n,i),has:(t,n)=>!!vS(t,n)||e.has(t,n)}));/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */class XF{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(QF(n)){const i=n.getImmediate();return`${i.library}/${i.version}`}else return null}).filter(n=>n).join(" ")}}function QF(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const Oy="@firebase/app",yS="0.10.5";/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const ca=new BF("@firebase/app"),JF="@firebase/app-compat",e9="@firebase/analytics-compat",t9="@firebase/analytics",n9="@firebase/app-check-compat",i9="@firebase/app-check",r9="@firebase/auth",o9="@firebase/auth-compat",s9="@firebase/database",a9="@firebase/database-compat",l9="@firebase/functions",c9="@firebase/functions-compat",u9="@firebase/installations",d9="@firebase/installations-compat",h9="@firebase/messaging",f9="@firebase/messaging-compat",p9="@firebase/performance",m9="@firebase/performance-compat",g9="@firebase/remote-config",v9="@firebase/remote-config-compat",y9="@firebase/storage",b9="@firebase/storage-compat",x9="@firebase/firestore",_9="@firebase/vertexai-preview",w9="@firebase/firestore-compat",S9="firebase";/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const My="[DEFAULT]",C9={[Oy]:"fire-core",[JF]:"fire-core-compat",[t9]:"fire-analytics",[e9]:"fire-analytics-compat",[i9]:"fire-app-check",[n9]:"fire-app-check-compat",[r9]:"fire-auth",[o9]:"fire-auth-compat",[s9]:"fire-rtdb",[a9]:"fire-rtdb-compat",[l9]:"fire-fn",[c9]:"fire-fn-compat",[u9]:"fire-iid",[d9]:"fire-iid-compat",[h9]:"fire-fcm",[f9]:"fire-fcm-compat",[p9]:"fire-perf",[m9]:"fire-perf-compat",[g9]:"fire-rc",[v9]:"fire-rc-compat",[y9]:"fire-gcs",[b9]:"fire-gcs-compat",[x9]:"fire-fst",[w9]:"fire-fst-compat",[_9]:"fire-vertex","fire-js":"fire-js",[S9]:"fire-js-all"};/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const cp=new Map,k9=new Map,Ly=new Map;function bS(e,t){try{e.container.addComponent(t)}catch(n){ca.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function ua(e){const t=e.name;if(Ly.has(t))return ca.debug(`There were multiple attempts to register component ${t}.`),!1;Ly.set(t,e);for(const n of cp.values())bS(n,e);for(const n of k9.values())bS(n,e);return!0}function t1(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const E9={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},ns=new Fm("app","Firebase",E9);/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */class T9{constructor(t,n,i){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=i,this.container.addComponent(new us("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw ns.create("app-deleted",{appName:this._name})}}function v5(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const i=Object.assign({name:My,automaticDataCollectionEnabled:!1},t),r=i.name;if(typeof r!="string"||!r)throw ns.create("bad-app-name",{appName:String(r)});if(n||(n=h5()),!n)throw ns.create("no-options");const o=cp.get(r);if(o){if(Ey(n,o.options)&&Ey(i,o.config))return o;throw ns.create("duplicate-app",{appName:r})}const s=new NF(r);for(const c of Ly.values())s.addComponent(c);const l=new T9(n,i,s);return cp.set(r,l),l}function P9(e=My){const t=cp.get(e);if(!t&&e===My&&h5())return v5();if(!t)throw ns.create("no-app",{appName:e});return t}function is(e,t,n){var i;let r=(i=C9[e])!==null&&i!==void 0?i:e;n&&(r+=`-${n}`);const o=r.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const l=[`Unable to register library "${r}" with version "${t}":`];o&&l.push(`library name "${r}" contains illegal characters (whitespace or "/")`),o&&s&&l.push("and"),s&&l.push(`version name "${t}" contains illegal characters (whitespace or "/")`),ca.warn(l.join(" "));return}ua(new us(`${r}-version`,()=>({library:r,version:t}),"VERSION"))}/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const O9="firebase-heartbeat-database",M9=1,Uu="firebase-heartbeat-store";let Mv=null;function y5(){return Mv||(Mv=Hm(O9,M9,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Uu)}catch(n){console.warn(n)}}}}).catch(e=>{throw ns.create("idb-open",{originalErrorMessage:e.message})})),Mv}async function L9(e){try{const n=(await y5()).transaction(Uu),i=await n.objectStore(Uu).get(b5(e));return await n.done,i}catch(t){if(t instanceof Xl)ca.warn(t.message);else{const n=ns.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});ca.warn(n.message)}}}async function xS(e,t){try{const i=(await y5()).transaction(Uu,"readwrite");await i.objectStore(Uu).put(t,b5(e)),await i.done}catch(n){if(n instanceof Xl)ca.warn(n.message);else{const i=ns.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});ca.warn(i.message)}}}function b5(e){return`${e.name}!${e.options.appId}`}/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const A9=1024,R9=30*24*60*60*1e3;class I9{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new D9(n),this._heartbeatsCachePromise=this._storage.read().then(i=>(this._heartbeatsCache=i,i))}async triggerHeartbeat(){var t,n;const r=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=_S();if(!(((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null))&&!(this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(s=>s.date===o)))return this._heartbeatsCache.heartbeats.push({date:o,agent:r}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const l=new Date(s.date).valueOf();return Date.now()-l<=R9}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var t;if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=_S(),{heartbeatsToSend:i,unsentEntries:r}=N9(this._heartbeatsCache.heartbeats),o=d5(JSON.stringify({version:2,heartbeats:i}));return this._heartbeatsCache.lastSentHeartbeatDate=n,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}}function _S(){return new Date().toISOString().substring(0,10)}function N9(e,t=A9){const n=[];let i=e.slice();for(const r of e){const o=n.find(s=>s.agent===r.agent);if(o){if(o.dates.push(r.date),wS(n)>t){o.dates.pop();break}}else if(n.push({agent:r.agent,dates:[r.date]}),wS(n)>t){n.pop();break}i=i.slice(1)}return{heartbeatsToSend:n,unsentEntries:i}}class D9{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return f5()?p5().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await L9(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const r=await this.read();return xS(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:r.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const r=await this.read();return xS(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...t.heartbeats]})}else return}}function wS(e){return d5(JSON.stringify({version:2,heartbeats:e})).length}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */function j9(e){ua(new us("platform-logger",t=>new XF(t),"PRIVATE")),ua(new us("heartbeat",t=>new I9(t),"PRIVATE")),is(Oy,yS,e),is(Oy,yS,"esm2017"),is("fire-js","")}j9("");const x5="@firebase/installations",n1="0.6.7";/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const _5=1e4,w5=`w:${n1}`,S5="FIS_v2",z9="https://firebaseinstallations.googleapis.com/v1",$9=60*60*1e3,B9="installations",F9="Installations";/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const H9={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},da=new Fm(B9,F9,H9);function C5(e){return e instanceof Xl&&e.code.includes("request-failed")}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */function k5({projectId:e}){return`${z9}/projects/${e}/installations`}function E5(e){return{token:e.token,requestStatus:2,expiresIn:W9(e.expiresIn),creationTime:Date.now()}}async function T5(e,t){const i=(await t.json()).error;return da.create("request-failed",{requestName:e,serverCode:i.code,serverMessage:i.message,serverStatus:i.status})}function P5({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function V9(e,{refreshToken:t}){const n=P5(e);return n.append("Authorization",U9(t)),n}async function O5(e){const t=await e();return t.status>=500&&t.status<600?e():t}function W9(e){return Number(e.replace("s","000"))}function U9(e){return`${S5} ${e}`}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */async function Z9({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const i=k5(e),r=P5(e),o=t.getImmediate({optional:!0});if(o){const u=await o.getHeartbeatsHeader();u&&r.append("x-firebase-client",u)}const s={fid:n,authVersion:S5,appId:e.appId,sdkVersion:w5},l={method:"POST",headers:r,body:JSON.stringify(s)},c=await O5(()=>fetch(i,l));if(c.ok){const u=await c.json();return{fid:u.fid||n,registrationStatus:2,refreshToken:u.refreshToken,authToken:E5(u.authToken)}}else throw await T5("Create Installation",c)}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */function M5(e){return new Promise(t=>{setTimeout(t,e)})}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */function G9(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const Y9=/^[cdef][\w-]{21}$/,Ay="";function K9(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=q9(e);return Y9.test(n)?n:Ay}catch{return Ay}}function q9(e){return G9(e).substr(0,22)}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */function Vm(e){return`${e.appName}!${e.appId}`}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const L5=new Map;function A5(e,t){const n=Vm(e);R5(n,t),X9(n,t)}function R5(e,t){const n=L5.get(e);if(n)for(const i of n)i(t)}function X9(e,t){const n=Q9();n&&n.postMessage({key:e,fid:t}),J9()}let Ws=null;function Q9(){return!Ws&&"BroadcastChannel"in self&&(Ws=new BroadcastChannel("[Firebase] FID Change"),Ws.onmessage=e=>{R5(e.data.key,e.data.fid)}),Ws}function J9(){L5.size===0&&Ws&&(Ws.close(),Ws=null)}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const e7="firebase-installations-database",t7=1,ha="firebase-installations-store";let Lv=null;function i1(){return Lv||(Lv=Hm(e7,t7,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(ha)}}})),Lv}async function up(e,t){const n=Vm(e),r=(await i1()).transaction(ha,"readwrite"),o=r.objectStore(ha),s=await o.get(n);return await o.put(t,n),await r.done,(!s||s.fid!==t.fid)&&A5(e,t.fid),t}async function I5(e){const t=Vm(e),i=(await i1()).transaction(ha,"readwrite");await i.objectStore(ha).delete(t),await i.done}async function Wm(e,t){const n=Vm(e),r=(await i1()).transaction(ha,"readwrite"),o=r.objectStore(ha),s=await o.get(n),l=t(s);return l===void 0?await o.delete(n):await o.put(l,n),await r.done,l&&(!s||s.fid!==l.fid)&&A5(e,l.fid),l}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */async function r1(e){let t;const n=await Wm(e.appConfig,i=>{const r=n7(i),o=i7(e,r);return t=o.registrationPromise,o.installationEntry});return n.fid===Ay?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function n7(e){const t=e||{fid:K9(),registrationStatus:0};return N5(t)}function i7(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const r=Promise.reject(da.create("app-offline"));return{installationEntry:t,registrationPromise:r}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},i=r7(e,n);return{installationEntry:n,registrationPromise:i}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:o7(e)}:{installationEntry:t}}async function r7(e,t){try{const n=await Z9(e,t);return up(e.appConfig,n)}catch(n){throw C5(n)&&n.customData.serverCode===409?await I5(e.appConfig):await up(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function o7(e){let t=await SS(e.appConfig);for(;t.registrationStatus===1;)await M5(100),t=await SS(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:i}=await r1(e);return i||n}return t}function SS(e){return Wm(e,t=>{if(!t)throw da.create("installation-not-found");return N5(t)})}function N5(e){return s7(e)?{fid:e.fid,registrationStatus:0}:e}function s7(e){return e.registrationStatus===1&&e.registrationTime+_5fetch(i,l));if(c.ok){const u=await c.json();return E5(u)}else throw await T5("Generate Auth Token",c)}function l7(e,{fid:t}){return`${k5(e)}/${t}/authTokens:generate`}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */async function o1(e,t=!1){let n;const i=await Wm(e.appConfig,o=>{if(!D5(o))throw da.create("not-registered");const s=o.authToken;if(!t&&d7(s))return o;if(s.requestStatus===1)return n=c7(e,t),o;{if(!navigator.onLine)throw da.create("app-offline");const l=f7(o);return n=u7(e,l),l}});return n?await n:i.authToken}async function c7(e,t){let n=await CS(e.appConfig);for(;n.authToken.requestStatus===1;)await M5(100),n=await CS(e.appConfig);const i=n.authToken;return i.requestStatus===0?o1(e,t):i}function CS(e){return Wm(e,t=>{if(!D5(t))throw da.create("not-registered");const n=t.authToken;return p7(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function u7(e,t){try{const n=await a7(e,t),i=Object.assign(Object.assign({},t),{authToken:n});return await up(e.appConfig,i),n}catch(n){if(C5(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await I5(e.appConfig);else{const i=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await up(e.appConfig,i)}throw n}}function D5(e){return e!==void 0&&e.registrationStatus===2}function d7(e){return e.requestStatus===2&&!h7(e)}function h7(e){const t=Date.now();return t{const t=e.getProvider("app").getImmediate(),n=y7(t),i=t1(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:i,_delete:()=>Promise.resolve()}},_7=e=>{const t=e.getProvider("app").getImmediate(),n=t1(t,j5).getImmediate();return{getId:()=>m7(n),getToken:r=>g7(n,r)}};function w7(){ua(new us(j5,x7,"PUBLIC")),ua(new us(b7,_7,"PRIVATE"))}w7();is(x5,n1);is(x5,n1,"esm2017");/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const S7="/firebase-messaging-sw.js",C7="/firebase-cloud-messaging-push-scope",z5="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",k7="https://fcmregistrations.googleapis.com/v1",$5="google.c.a.c_id",E7="google.c.a.c_l",T7="google.c.a.ts",P7="google.c.a.e";var kS;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(kS||(kS={}));/** + * @license + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */var Zu;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"})(Zu||(Zu={}));/** + * @license + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */function Ur(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function O7(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),i=atob(n),r=new Uint8Array(i.length);for(let o=0;oo.name).includes(Rv))return null;let t=null;return(await Hm(Rv,M7,{upgrade:async(i,r,o,s)=>{var l;if(r<2||!i.objectStoreNames.contains(ES))return;const c=s.objectStore(ES),u=await c.index("fcmSenderId").get(e);if(await c.clear(),!!u){if(r===2){const h=u;if(!h.auth||!h.p256dh||!h.endpoint)return;t={token:h.fcmToken,createTime:(l=h.createTime)!==null&&l!==void 0?l:Date.now(),subscriptionOptions:{auth:h.auth,p256dh:h.p256dh,endpoint:h.endpoint,swScope:h.swScope,vapidKey:typeof h.vapidKey=="string"?h.vapidKey:Ur(h.vapidKey)}}}else if(r===3){const h=u;t={token:h.fcmToken,createTime:h.createTime,subscriptionOptions:{auth:Ur(h.auth),p256dh:Ur(h.p256dh),endpoint:h.endpoint,swScope:h.swScope,vapidKey:Ur(h.vapidKey)}}}else if(r===4){const h=u;t={token:h.fcmToken,createTime:h.createTime,subscriptionOptions:{auth:Ur(h.auth),p256dh:Ur(h.p256dh),endpoint:h.endpoint,swScope:h.swScope,vapidKey:Ur(h.vapidKey)}}}}}})).close(),await Pv(Rv),await Pv("fcm_vapid_details_db"),await Pv("undefined"),A7(t)?t:null}function A7(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return typeof e.createTime=="number"&&e.createTime>0&&typeof e.token=="string"&&e.token.length>0&&typeof t.auth=="string"&&t.auth.length>0&&typeof t.p256dh=="string"&&t.p256dh.length>0&&typeof t.endpoint=="string"&&t.endpoint.length>0&&typeof t.swScope=="string"&&t.swScope.length>0&&typeof t.vapidKey=="string"&&t.vapidKey.length>0}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const R7="firebase-messaging-database",I7=1,Gu="firebase-messaging-store";let Iv=null;function B5(){return Iv||(Iv=Hm(R7,I7,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Gu)}}})),Iv}async function N7(e){const t=F5(e),i=await(await B5()).transaction(Gu).objectStore(Gu).get(t);if(i)return i;{const r=await L7(e.appConfig.senderId);if(r)return await s1(e,r),r}}async function s1(e,t){const n=F5(e),r=(await B5()).transaction(Gu,"readwrite");return await r.objectStore(Gu).put(t,n),await r.done,t}function F5({appConfig:e}){return e.appId}/** + * @license + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const D7={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},Tn=new Fm("messaging","Messaging",D7);/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */async function j7(e,t){const n=await l1(e),i=H5(t),r={method:"POST",headers:n,body:JSON.stringify(i)};let o;try{o=await(await fetch(a1(e.appConfig),r)).json()}catch(s){throw Tn.create("token-subscribe-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw Tn.create("token-subscribe-failed",{errorInfo:s})}if(!o.token)throw Tn.create("token-subscribe-no-token");return o.token}async function z7(e,t){const n=await l1(e),i=H5(t.subscriptionOptions),r={method:"PATCH",headers:n,body:JSON.stringify(i)};let o;try{o=await(await fetch(`${a1(e.appConfig)}/${t.token}`,r)).json()}catch(s){throw Tn.create("token-update-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw Tn.create("token-update-failed",{errorInfo:s})}if(!o.token)throw Tn.create("token-update-no-token");return o.token}async function $7(e,t){const i={method:"DELETE",headers:await l1(e)};try{const o=await(await fetch(`${a1(e.appConfig)}/${t}`,i)).json();if(o.error){const s=o.error.message;throw Tn.create("token-unsubscribe-failed",{errorInfo:s})}}catch(r){throw Tn.create("token-unsubscribe-failed",{errorInfo:r==null?void 0:r.toString()})}}function a1({projectId:e}){return`${k7}/projects/${e}/registrations`}async function l1({appConfig:e,installations:t}){const n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function H5({p256dh:e,auth:t,endpoint:n,vapidKey:i}){const r={web:{endpoint:n,auth:t,p256dh:e}};return i!==z5&&(r.web.applicationPubKey=i),r}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const B7=7*24*60*60*1e3;async function F7(e){const t=await V7(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:Ur(t.getKey("auth")),p256dh:Ur(t.getKey("p256dh"))},i=await N7(e.firebaseDependencies);if(i){if(W7(i.subscriptionOptions,n))return Date.now()>=i.createTime+B7?H7(e,{token:i.token,createTime:Date.now(),subscriptionOptions:n}):i.token;try{await $7(e.firebaseDependencies,i.token)}catch(r){console.warn(r)}return TS(e.firebaseDependencies,n)}else return TS(e.firebaseDependencies,n)}async function H7(e,t){try{const n=await z7(e.firebaseDependencies,t),i=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await s1(e.firebaseDependencies,i),n}catch(n){throw n}}async function TS(e,t){const i={token:await j7(e,t),createTime:Date.now(),subscriptionOptions:t};return await s1(e,i),i.token}async function V7(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:O7(t)})}function W7(e,t){const n=t.vapidKey===e.vapidKey,i=t.endpoint===e.endpoint,r=t.auth===e.auth,o=t.p256dh===e.p256dh;return n&&i&&r&&o}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */function PS(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return U7(t,e),Z7(t,e),G7(t,e),t}function U7(e,t){if(!t.notification)return;e.notification={};const n=t.notification.title;n&&(e.notification.title=n);const i=t.notification.body;i&&(e.notification.body=i);const r=t.notification.image;r&&(e.notification.image=r);const o=t.notification.icon;o&&(e.notification.icon=o)}function Z7(e,t){t.data&&(e.data=t.data)}function G7(e,t){var n,i,r,o,s;if(!t.fcmOptions&&!(!((n=t.notification)===null||n===void 0)&&n.click_action))return;e.fcmOptions={};const l=(r=(i=t.fcmOptions)===null||i===void 0?void 0:i.link)!==null&&r!==void 0?r:(o=t.notification)===null||o===void 0?void 0:o.click_action;l&&(e.fcmOptions.link=l);const c=(s=t.fcmOptions)===null||s===void 0?void 0:s.analytics_label;c&&(e.fcmOptions.analyticsLabel=c)}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */function Y7(e){return typeof e=="object"&&!!e&&$5 in e}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */V5("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o");V5("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");function V5(e,t){const n=[];for(let i=0;i{})}catch(t){throw Tn.create("failed-service-worker-registration",{browserErrorMessage:t==null?void 0:t.message})}}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */async function Q7(e,t){if(!t&&!e.swRegistration&&await X7(e),!(!t&&e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw Tn.create("invalid-sw-registration");e.swRegistration=t}}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */async function J7(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=z5)}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */async function W5(e,t){if(!navigator)throw Tn.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw Tn.create("permission-blocked");return await J7(e,t==null?void 0:t.vapidKey),await Q7(e,t==null?void 0:t.serviceWorkerRegistration),F7(e)}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */async function eH(e,t,n){const i=tH(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(i,{message_id:n[$5],message_name:n[E7],message_time:n[T7],message_device_time:Math.floor(Date.now()/1e3)})}function tH(e){switch(e){case Zu.NOTIFICATION_CLICKED:return"notification_open";case Zu.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/** + * @license + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */async function nH(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===Zu.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler(PS(n)):e.onMessageHandler.next(PS(n)));const i=n.data;Y7(i)&&i[P7]==="1"&&await eH(e,n.messageType,i)}const OS="@firebase/messaging",MS="0.12.9";/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */const iH=e=>{const t=new q7(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>nH(t,n)),t},rH=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:i=>W5(t,i)}};function oH(){ua(new us("messaging",iH,"PUBLIC")),ua(new us("messaging-internal",rH,"PRIVATE")),is(OS,MS),is(OS,MS,"esm2017")}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */async function sH(){try{await p5()}catch{return!1}return typeof window<"u"&&f5()&&PF()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */function aH(e,t){if(!navigator)throw Tn.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}}/** + * @license + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */function lH(e=P9()){return sH().then(t=>{if(!t)throw Tn.create("unsupported-browser")},t=>{throw Tn.create("indexed-db-unsupported")}),t1(Jx(e),"messaging").getImmediate()}async function cH(e,t){return e=Jx(e),W5(e,t)}function U5(e,t){return e=Jx(e),aH(e,t)}oH();var uH="firebase",dH="10.12.2";/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */is(uH,dH,"app");const hH={apiKey:"AIzaSyBgRI7QrEqlrtj94hZ-MKtYc77XunOc_9w",authDomain:"paws-b9b64.firebaseapp.com",projectId:"paws-b9b64",storageBucket:"paws-b9b64.appspot.com",messagingSenderId:"610215952536",appId:"1:610215952536:web:4f832813ef5d58acb010ed",measurementId:"G-3TBQ0B47KK"},fH=v5(hH),c1=lH(fH),Dv=localStorage.getItem("csrftoken"),Z5=async()=>{if(Dv)try{const e=await Notification.requestPermission();if((e==="granted"||e==="default"||e==="denied")&&Dv){const t=await cH(c1,{vapidKey:"BPcsdCOoYvVHjgNVZUQJGBMm_f8OFU9oURvh2ukHhl5-kNoF0IEzJpOsMOlMskk7d7sOdakGdCP0cy6OI9yzWvw"}),i=await Me.post("https://paws-backend.azurewebsites.net/update_token",{token:t},{headers:{Authorization:`Token ${Dv}`}});console.log(i.data)}else e==="denied"?localStorage.setItem("notification","denied"):localStorage.setItem("notification","default")}catch(e){console.error(e)}},pH=async(e,t,n,i)=>{if(!yd(e)){n("Enter a valid email address.");return}try{n(""),i("loading");const o=await Me.post("https://paws-backend.azurewebsites.net/login/",{email:e,password:t});i("success");const s=o.data.token,l=o.data.is_ngo?"ngo":"user";Z5(),l==="ngo"?window.location.href="/stats":window.location.href="/",localStorage.setItem("csrftoken",s),localStorage.setItem("userType",l)}catch(r){i("error"),r.response&&r.response.data.error?n(r.response.data.error):r.message==="Network Error"?n("Network error.Please check your internet connection."):n("An error occurred while logging in.")}},mH=async(e,t,n,i,r,o)=>{if(!yd(n)){r("Enter a valid email address.");return}if(!zu(t)){r("Enter a valid phone number.");return}try{r(""),o("loading");const l=await Me.post("https://paws-backend.azurewebsites.net/register/user",{name:e,phone_number:t,email:n,password:i});o("success");const c=l.data.token;return localStorage.setItem("csrftoken",c),localStorage.setItem("userType","user"),!0}catch(s){return o("error"),s.response&&s.response.data.error?r(s.response.data.error):s.message==="Network Error"?r("Network error.Please check your internet connection."):r("An error occurred while registering."),!1}};function dp({text:e,link:t,linkText:n,position:i,topPosition:r,bottomPosition:o,leftPosition:s,rightPosition:l}){return g.jsxs("p",{className:"text-gray-500 text-[16px] font-bold",children:[e||"Already have an account?",g.jsx(ct,{to:t||"/login",className:"text-sky-400 cursor-pointer hover:text-[#312E81] hover:font-bold transition-all ease-in-out tracking-wider text-sm font-medium underline inline-block mx-1",children:n||"Login now!"})]})}function gH(e){const t=io(e);return t.body===e?ym(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function uu(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function LS(e){return parseInt(ym(e).getComputedStyle(e).paddingRight,10)||0}function vH(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function AS(e,t,n,i,r){const o=[t,n,...i];[].forEach.call(e.children,s=>{const l=o.indexOf(s)===-1,c=!vH(s);l&&c&&uu(s,r)})}function jv(e,t){let n=-1;return e.some((i,r)=>t(i)?(n=r,!0):!1),n}function yH(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(gH(i)){const s=H8(io(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${LS(i)+s}px`;const l=io(i).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${LS(c)+s}px`})}let o;if(i.parentNode instanceof DocumentFragment)o=io(i).body;else{const s=i.parentElement,l=ym(i);o=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:i}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:s,property:l})=>{o?s.style.setProperty(l,o):s.style.removeProperty(l)})}}function bH(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class xH{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&uu(t.modalRef,!1);const r=bH(n);AS(n,t.mount,t.modalRef,r,!0);const o=jv(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),i)}mount(t,n){const i=jv(this.containers,o=>o.modals.indexOf(t)!==-1),r=this.containers[i];r.restore||(r.restore=yH(r,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const r=jv(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(i,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&uu(t.modalRef,n),AS(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&uu(s.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function _H(e){return typeof e=="function"?e():e}function wH(e){return e?e.props.hasOwnProperty("in"):!1}const SH=new xH;function CH(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,manager:r=SH,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:u,open:h,rootRef:f}=e,m=C.useRef({}),b=C.useRef(null),v=C.useRef(null),y=Tr(v,f),[w,x]=C.useState(!h),S=wH(c);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const T=()=>io(b.current),P=()=>(m.current.modalRef=v.current,m.current.mount=b.current,m.current),O=()=>{r.mount(P(),{disableScrollLock:i}),v.current&&(v.current.scrollTop=0)},M=Vs(()=>{const V=_H(t)||T().body;r.add(P(),V),v.current&&O()}),R=C.useCallback(()=>r.isTopModal(P()),[r]),N=Vs(V=>{b.current=V,V&&(h&&R()?O():v.current&&uu(v.current,k))}),I=C.useCallback(()=>{r.remove(P(),k)},[k,r]);C.useEffect(()=>()=>{I()},[I]),C.useEffect(()=>{h?M():(!S||!o)&&I()},[h,I,S,o,M]);const $=V=>G=>{var z;(z=V.onKeyDown)==null||z.call(V,G),!(G.key!=="Escape"||G.which===229||!R())&&(n||(G.stopPropagation(),u&&u(G,"escapeKeyDown")))},j=V=>G=>{var z;(z=V.onClick)==null||z.call(V,G),G.target===G.currentTarget&&u&&u(G,"backdropClick")};return{getRootProps:(V={})=>{const G=t5(e);delete G.onTransitionEnter,delete G.onTransitionExited;const z=F({},G,V);return F({role:"presentation"},z,{onKeyDown:$(z),ref:y})},getBackdropProps:(V={})=>{const G=V;return F({"aria-hidden":!0},G,{onClick:j(G),open:h})},getTransitionProps:()=>{const V=()=>{x(!1),s&&s()},G=()=>{x(!0),l&&l(),o&&I()};return{onEnter:wy(V,c==null?void 0:c.props.onEnter),onExited:wy(G,c==null?void 0:c.props.onExited)}},rootRef:y,portalRef:N,isTopModal:R,exited:w,hasTransition:S}}const kH=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function EH(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function TH(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function PH(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||TH(e))}function OH(e){const t=[],n=[];return Array.from(e.querySelectorAll(kH)).forEach((i,r)=>{const o=EH(i);o===-1||!PH(i)||(o===0?t.push(i):n.push({documentOrder:r,tabIndex:o,node:i}))}),n.sort((i,r)=>i.tabIndex===r.tabIndex?i.documentOrder-r.documentOrder:i.tabIndex-r.tabIndex).map(i=>i.node).concat(t)}function MH(){return!0}function LH(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:r=!1,getTabbable:o=OH,isEnabled:s=MH,open:l}=e,c=C.useRef(!1),u=C.useRef(null),h=C.useRef(null),f=C.useRef(null),m=C.useRef(null),b=C.useRef(!1),v=C.useRef(null),y=Tr(t.ref,v),w=C.useRef(null);C.useEffect(()=>{!l||!v.current||(b.current=!n)},[n,l]),C.useEffect(()=>{if(!l||!v.current)return;const k=io(v.current);return v.current.contains(k.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),b.current&&v.current.focus()),()=>{r||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),C.useEffect(()=>{if(!l||!v.current)return;const k=io(v.current),T=M=>{w.current=M,!(i||!s()||M.key!=="Tab")&&k.activeElement===v.current&&M.shiftKey&&(c.current=!0,h.current&&h.current.focus())},P=()=>{const M=v.current;if(M===null)return;if(!k.hasFocus()||!s()||c.current){c.current=!1;return}if(M.contains(k.activeElement)||i&&k.activeElement!==u.current&&k.activeElement!==h.current)return;if(k.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!b.current)return;let R=[];if((k.activeElement===u.current||k.activeElement===h.current)&&(R=o(v.current)),R.length>0){var N,I;const $=!!((N=w.current)!=null&&N.shiftKey&&((I=w.current)==null?void 0:I.key)==="Tab"),j=R[0],B=R[R.length-1];typeof j!="string"&&typeof B!="string"&&($?B.focus():j.focus())}else M.focus()};k.addEventListener("focusin",P),k.addEventListener("keydown",T,!0);const O=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(O),k.removeEventListener("focusin",P),k.removeEventListener("keydown",T,!0)}},[n,i,r,s,l,o]);const x=k=>{f.current===null&&(f.current=k.relatedTarget),b.current=!0,m.current=k.target;const T=t.props.onFocus;T&&T(k)},S=k=>{f.current===null&&(f.current=k.relatedTarget),b.current=!0};return g.jsxs(C.Fragment,{children:[g.jsx("div",{tabIndex:l?0:-1,onFocus:S,ref:u,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:y,onFocus:x}),g.jsx("div",{tabIndex:l?0:-1,onFocus:S,ref:h,"data-testid":"sentinelEnd"})]})}function AH(e){return typeof e=="function"?e():e}const RH=C.forwardRef(function(t,n){const{children:i,container:r,disablePortal:o=!1}=t,[s,l]=C.useState(null),c=Tr(C.isValidElement(i)?i.ref:null,n);if(tp(()=>{o||l(AH(r)||document.body)},[r,o]),tp(()=>{if(s&&!o)return ep(n,s),()=>{ep(n,null)}},[n,s,o]),o){if(C.isValidElement(i)){const u={ref:c};return C.cloneElement(i,u)}return g.jsx(C.Fragment,{children:i})}return g.jsx(C.Fragment,{children:s&&fd.createPortal(i,s)})}),IH=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],NH={entering:{opacity:1},entered:{opacity:1}},G5=C.forwardRef(function(t,n){const i=Yx(),r={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,easing:c,in:u,onEnter:h,onEntered:f,onEntering:m,onExit:b,onExited:v,onExiting:y,style:w,timeout:x=r,TransitionComponent:S=or}=t,k=Oe(t,IH),T=C.useRef(null),P=Tr(T,l.ref,n),O=W=>Z=>{if(W){const V=T.current;Z===void 0?W(V):W(V,Z)}},M=O(m),R=O((W,Z)=>{U$(W);const V=op({style:w,timeout:x,easing:c},{mode:"enter"});W.style.webkitTransition=i.transitions.create("opacity",V),W.style.transition=i.transitions.create("opacity",V),h&&h(W,Z)}),N=O(f),I=O(y),$=O(W=>{const Z=op({style:w,timeout:x,easing:c},{mode:"exit"});W.style.webkitTransition=i.transitions.create("opacity",Z),W.style.transition=i.transitions.create("opacity",Z),b&&b(W)}),j=O(v),B=W=>{o&&o(T.current,W)};return g.jsx(S,F({appear:s,in:u,nodeRef:T,onEnter:R,onEntered:N,onEntering:M,onExit:$,onExited:j,onExiting:I,addEndListener:B,timeout:x},k,{children:(W,Z)=>C.cloneElement(l,F({style:F({opacity:0,visibility:W==="exited"&&!u?"hidden":void 0},NH[W],w,l.props.style),ref:P},Z))}))});function DH(e){return Dt("MuiBackdrop",e)}jt("MuiBackdrop",["root","invisible"]);const jH=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],zH=e=>{const{classes:t,invisible:n}=e;return Kt({root:["root",n&&"invisible"]},DH,t)},$H=Ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>F({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Y5=C.forwardRef(function(t,n){var i,r,o;const s=$t({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:u="div",components:h={},componentsProps:f={},invisible:m=!1,open:b,slotProps:v={},slots:y={},TransitionComponent:w=G5,transitionDuration:x}=s,S=Oe(s,jH),k=F({},s,{component:u,invisible:m}),T=zH(k),P=(i=v.root)!=null?i:f.root;return g.jsx(w,F({in:b,timeout:x},S,{children:g.jsx($H,F({"aria-hidden":!0},P,{as:(r=(o=y.root)!=null?o:h.Root)!=null?r:u,className:Ce(T.root,c,P==null?void 0:P.className),ownerState:F({},k,P==null?void 0:P.ownerState),classes:T,ref:n,children:l}))}))});function BH(e){return Dt("MuiModal",e)}jt("MuiModal",["root","hidden","backdrop"]);const FH=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],HH=e=>{const{open:t,exited:n,classes:i}=e;return Kt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},BH,i)},VH=Ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),WH=Ie(Y5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),UH=C.forwardRef(function(t,n){var i,r,o,s,l,c;const u=$t({name:"MuiModal",props:t}),{BackdropComponent:h=WH,BackdropProps:f,className:m,closeAfterTransition:b=!1,children:v,container:y,component:w,components:x={},componentsProps:S={},disableAutoFocus:k=!1,disableEnforceFocus:T=!1,disableEscapeKeyDown:P=!1,disablePortal:O=!1,disableRestoreFocus:M=!1,disableScrollLock:R=!1,hideBackdrop:N=!1,keepMounted:I=!1,onBackdropClick:$,open:j,slotProps:B,slots:W}=u,Z=Oe(u,FH),V=F({},u,{closeAfterTransition:b,disableAutoFocus:k,disableEnforceFocus:T,disableEscapeKeyDown:P,disablePortal:O,disableRestoreFocus:M,disableScrollLock:R,hideBackdrop:N,keepMounted:I}),{getRootProps:G,getBackdropProps:z,getTransitionProps:q,portalRef:H,isTopModal:J,exited:X,hasTransition:re}=CH(F({},V,{rootRef:n})),ne=F({},V,{exited:X}),oe=HH(ne),K={};if(v.props.tabIndex===void 0&&(K.tabIndex="-1"),re){const{onEnter:ot,onExited:We}=q();K.onEnter=ot,K.onExited=We}const ae=(i=(r=W==null?void 0:W.root)!=null?r:x.Root)!=null?i:VH,ye=(o=(s=W==null?void 0:W.backdrop)!=null?s:x.Backdrop)!=null?o:h,pe=(l=B==null?void 0:B.root)!=null?l:S.root,ce=(c=B==null?void 0:B.backdrop)!=null?c:S.backdrop,we=eS({elementType:ae,externalSlotProps:pe,externalForwardedProps:Z,getSlotProps:G,additionalProps:{ref:n,as:w},ownerState:ne,className:Ce(m,pe==null?void 0:pe.className,oe==null?void 0:oe.root,!ne.open&&ne.exited&&(oe==null?void 0:oe.hidden))}),Le=eS({elementType:ye,externalSlotProps:ce,additionalProps:f,getSlotProps:ot=>z(F({},ot,{onClick:We=>{$&&$(We),ot!=null&&ot.onClick&&ot.onClick(We)}})),className:Ce(ce==null?void 0:ce.className,f==null?void 0:f.className,oe==null?void 0:oe.backdrop),ownerState:ne});return!I&&!j&&(!re||X)?null:g.jsx(RH,{ref:H,container:y,disablePortal:O,children:g.jsxs(ae,F({},we,{children:[!N&&h?g.jsx(ye,F({},Le)):null,g.jsx(LH,{disableEnforceFocus:T,disableAutoFocus:k,disableRestoreFocus:M,isEnabled:J,open:j,children:C.cloneElement(v,K)})]}))})});function ZH(e){return Dt("MuiDialog",e)}const zv=jt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),K5=C.createContext({}),GH=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],YH=Ie(Y5,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),KH=e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:r,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${un(n)}`],paper:["paper",`paperScroll${un(n)}`,`paperWidth${un(String(i))}`,r&&"paperFullWidth",o&&"paperFullScreen"]};return Kt(s,ZH,t)},qH=Ie(UH,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),XH=Ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${un(n.scroll)}`]]}})(({ownerState:e})=>F({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),QH=Ie($m,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${un(n.scroll)}`],t[`paperWidth${un(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>F({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${zv.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${zv.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${zv.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),q5=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiDialog"}),r=Yx(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,BackdropComponent:c,BackdropProps:u,children:h,className:f,disableEscapeKeyDown:m=!1,fullScreen:b=!1,fullWidth:v=!1,maxWidth:y="sm",onBackdropClick:w,onClose:x,open:S,PaperComponent:k=$m,PaperProps:T={},scroll:P="paper",TransitionComponent:O=G5,transitionDuration:M=o,TransitionProps:R}=i,N=Oe(i,GH),I=F({},i,{disableEscapeKeyDown:m,fullScreen:b,fullWidth:v,maxWidth:y,scroll:P}),$=KH(I),j=C.useRef(),B=G=>{j.current=G.target===G.currentTarget},W=G=>{j.current&&(j.current=null,w&&w(G),x&&x(G,"backdropClick"))},Z=NO(l),V=C.useMemo(()=>({titleId:Z}),[Z]);return g.jsx(qH,F({className:Ce($.root,f),closeAfterTransition:!0,components:{Backdrop:YH},componentsProps:{backdrop:F({transitionDuration:M,as:c},u)},disableEscapeKeyDown:m,onClose:x,open:S,ref:n,onClick:W,ownerState:I},N,{children:g.jsx(O,F({appear:!0,in:S,timeout:M,role:"presentation"},R,{children:g.jsx(XH,{className:Ce($.container),onMouseDown:B,ownerState:I,children:g.jsx(QH,F({as:k,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":Z},T,{className:Ce($.paper,T.className),ownerState:I,children:g.jsx(K5.Provider,{value:V,children:h})}))})}))}))});function JH(e){return Dt("MuiDialogActions",e)}jt("MuiDialogActions",["root","spacing"]);const eV=["className","disableSpacing"],tV=e=>{const{classes:t,disableSpacing:n}=e;return Kt({root:["root",!n&&"spacing"]},JH,t)},nV=Ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>F({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),iV=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1}=i,s=Oe(i,eV),l=F({},i,{disableSpacing:o}),c=tV(l);return g.jsx(nV,F({className:Ce(c.root,r),ownerState:l,ref:n},s))});function rV(e){return Dt("MuiDialogContent",e)}jt("MuiDialogContent",["root","dividers"]);function oV(e){return Dt("MuiDialogTitle",e)}const sV=jt("MuiDialogTitle",["root"]),aV=["className","dividers"],lV=e=>{const{classes:t,dividers:n}=e;return Kt({root:["root",n&&"dividers"]},rV,t)},cV=Ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>F({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${sV.root} + &`]:{paddingTop:0}})),X5=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiDialogContent"}),{className:r,dividers:o=!1}=i,s=Oe(i,aV),l=F({},i,{dividers:o}),c=lV(l);return g.jsx(cV,F({className:Ce(c.root,r),ownerState:l,ref:n},s))});function uV(e){return Dt("MuiDialogContentText",e)}jt("MuiDialogContentText",["root"]);const dV=["children","className"],hV=e=>{const{classes:t}=e,i=Kt({root:["root"]},uV,t);return F({},t,i)},fV=Ie(jo,{shouldForwardProp:e=>ZO(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pV=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiDialogContentText"}),{className:r}=i,o=Oe(i,dV),s=hV(o);return g.jsx(fV,F({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:o,className:Ce(s.root,r)},i,{classes:s}))}),mV=["className","id"],gV=e=>{const{classes:t}=e;return Kt({root:["root"]},oV,t)},vV=Ie(jo,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Q5=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiDialogTitle"}),{className:r,id:o}=i,s=Oe(i,mV),l=i,c=gV(l),{titleId:u=o}=C.useContext(K5);return g.jsx(vV,F({component:"h2",className:Ce(c.root,r),ownerState:l,ref:n,variant:"h6",id:o??u},s))});function J5({open:e,handleClose:t}){return g.jsxs(q5,{open:e,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",sx:{textAlign:"center",width:500,margin:"auto"},children:[g.jsx(Q5,{id:"alert-dialog-title",children:"You've successfully registered."}),g.jsx(X5,{children:g.jsx(pV,{id:"alert-dialog-description",children:"Would you like to upload a profile picture to personalize your account?"})}),g.jsxs(iV,{sx:{justifyContent:"center",paddingBottom:"20px"},children:[g.jsx("button",{className:"px-4 py-4 text-white bg-gradient-to-b from-green-600 to-green-700 bg-opacity-35 rounded-[35px] drop-shadow-md shadow-buttonShadow text-[1rem] leading-[1rem] tracking-widest",onClick:()=>t(!0),children:"Skip for Now"}),g.jsx("button",{className:"px-4 py-4 text-white bg-gradient-to-b from-green-600 to-green-700 bg-opacity-35 rounded-[35px] drop-shadow-md shadow-buttonShadow text-[1rem] leading-[1rem] tracking-widest",onClick:()=>t(!1),children:"Upload Picture"})]})]})}function yV({image:e}){return g.jsx("div",{className:"fixed top-0 left-0 w-full h-full bg-cover bg-center z-[-1]",style:{backgroundImage:`url(${e})`}})}function RS(){const e=xa(),[t,n]=C.useState(!1);C.useState(!1);const i=e.pathname!=="/register",r={borderRadius:"20px",background:"linear-gradient(to bottom, #b3d9ff, #3399ff)",padding:"20px 40px",fontSize:"22px",fontWeight:"800",boxShadow:"rgb(38, 57, 77) 0px 15px 30px -10px",letterSpacing:"0.1rem",width:"fit-content"},[o,s]=C.useState(""),[l,c]=C.useState(""),[u,h]=C.useState(""),[f,m]=C.useState(""),[b,v]=C.useState(""),[y,w]=C.useState("idle"),[x,S]=C.useState(!1),[k,T]=C.useState(!1),[P,O]=C.useState(!1),[M,R]=C.useState(!1),[N,I]=C.useState(!1),[$,j]=C.useState(!1);C.useEffect(()=>{v("")},[i]);const B=G=>{S(G.length>=8),T(/[A-Z]/.test(G)),O(/[a-z]/.test(G)),R(/[0-9]/.test(G)),I(/[^A-Za-z0-9]/.test(G))},W=async G=>{G.preventDefault(),await mH(o,l,u,f,v,w)&&setTimeout(()=>{j(!0)},3e3)},Z=async G=>{G.preventDefault(),await pH(u,f,v,w)},V=G=>{G?window.location.href="/":window.location.href="/user?upload=true",j(!1)};return g.jsxs("div",{className:"flex items-center justify-center mb-[60px] overflow-x-hidden",children:[g.jsx(yV,{image:pF}),g.jsx("div",{style:{overflowY:"scroll",height:"100vh",scrollbarWidth:"thin",scrollbarColor:"#888 transparent"},className:"p-10 md:p-0",children:g.jsxs("div",{className:" w-full flex justify-center items-center shadow-[0_2px_20px_rgba(0,0,0,0.5)] rounded-3xl md:rounded-none md:shadow-[0_0px_0px_rgba(0,0,0,0)]",children:[g.jsxs("form",{className:"w-[50%] md:w-full gap-[1rem] flex flex-col justify-center items-center py-20",onSubmit:i?Z:W,children:[!i&&g.jsxs(g.Fragment,{children:[g.jsx("h1",{className:"w-[85%] text-center z-[3] text-indigo-900 font-semibold text-[2.5em] md:text-[2rem]",children:"Create Account"}),g.jsx(Tt,{className:"placeholder-stone h-12 md:h-12 mt-5 bg-opacity-45 w-80 sm:w-60 px-4 py-2 items-center outline-0 border-b-2 border-blue-800 text-black text-lg bg-white shadow-dashBoardCardImageShadow",type:"text",placeholder:"Full Name",value:o,onChange:G=>{v(""),s(G.target.value)},required:!0}),g.jsx(Tt,{className:"placeholder-stone h-12 md:h-12 mt-5 bg-opacity-45 w-80 sm:w-60 px-4 py-2 items-center outline-0 border-b-2 border-blue-800 text-black text-lg bg-white shadow-dashBoardCardImageShadow",type:"tel",placeholder:"Phone Number",value:l,onChange:G=>{v(""),c(G.target.value)},required:!0})]}),i&&g.jsx(g.Fragment,{children:g.jsx("h1",{className:"mt-[60px] text-center pb-1 pl-2 pr-2 z-[3] text-indigo-900 font-bold tracking-wide text-[2.5em]",children:"Welcome Back"})}),g.jsx(Tt,{className:"placeholder-stone h-12 md:h-12 mt-5 bg-opacity-45 w-80 sm:w-60 px-4 py-2 items-center outline-0 border-b-2 border-blue-800 text-black text-lg bg-white shadow-dashBoardCardImageShadow",type:"email",placeholder:"Email",value:u,onChange:G=>{v(""),h(G.target.value)},required:!0}),g.jsxs("div",{className:"relative w-80 sm:w-60 flex justify-center items-center",children:[g.jsx(Tt,{className:"placeholder-stone h-12 md:h-12 mt-5 bg-opacity-45 w-full px-4 py-2 items-center outline-0 border-b-2 border-blue-800 text-black text-lg bg-white shadow-dashBoardCardImageShadow",type:t?"text":"password",placeholder:"Password",value:f,onChange:G=>{v(""),m(G.target.value),B(G.target.value)},required:!0}),t?g.jsx(gF,{className:"absolute right-6 text-[#5979eb] top-[45%] z-[1]",onClick:()=>n(!1),size:25}):g.jsx(mF,{className:"absolute right-6 text-[#5979eb] top-[45%] z-[1]",onClick:()=>n(!0),size:25})]}),!i&&g.jsxs("div",{className:"text-left w-80 sm:w-60",children:[g.jsx("p",{style:{color:x?"green":"red"},children:"• Minimum 8 characters"}),g.jsx("p",{style:{color:k?"green":"red"},children:"• At least one uppercase letter"}),g.jsx("p",{style:{color:P?"green":"red"},children:"• At least one lowercase letter"}),g.jsx("p",{style:{color:M?"green":"red"},children:"• At least one number"}),g.jsx("p",{style:{color:N?"green":"red"},children:"• At least one symbol"})]}),!i&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"w-screen relative h-20 flex justify-center",children:[g.jsx(lp,{style:r,buttonState:y,idleText:"Register",loadingText:"wait..",successText:"Registered",errorText:"Register",type:"submit",messageDuration:3e3,disabled:!(x&&k&&P&&M&&N)}),b&&g.jsx("p",{className:"absolute top-[-25px] w-screen tracking-wide text-red-500 font-semibold text-center",style:{marginLeft:"35%",marginRight:"35%"},children:b})]}),g.jsx(dp,{text:"Register as an NGO",link:"/ngoregister",linkText:"Here!"})]}),i&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"w-screen relative h-20 flex justify-center",children:[g.jsx(lp,{style:r,buttonState:y,type:"submit",idleText:"Login",loadingText:"wait..",successText:"Logging In",errorText:"Login"}),b&&g.jsx("p",{className:"absolute w-screen top-[-40px] tracking-wide text-red-500 font-semibold text-center",children:b})]}),g.jsx(dp,{text:"register now",link:"/register",linkText:"Here!"})]})]}),g.jsx("div",{className:"w-[50%] flex justify-center items-center md:hidden",children:g.jsx("img",{className:"rounded-xl w-[20rem]",id:"scaledImage",src:vF,alt:"Cute dog"})})]})}),g.jsx(J5,{open:$,handleClose:V})]})}var u1={},bV=YO;Object.defineProperty(u1,"__esModule",{value:!0});var d1=u1.default=void 0,xV=bV(KO()),_V=g;d1=u1.default=(0,xV.default)((0,_V.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function wV(e){return Dt("MuiCard",e)}jt("MuiCard",["root"]);const SV=["className","raised"],CV=e=>{const{classes:t}=e;return Kt({root:["root"]},wV,t)},kV=Ie($m,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),e4=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiCard"}),{className:r,raised:o=!1}=i,s=Oe(i,SV),l=F({},i,{raised:o}),c=CV(l);return g.jsx(kV,F({className:Ce(c.root,r),elevation:o?8:void 0,ref:n,ownerState:l},s))}),EV=e=>g.jsx(g.Fragment,{children:g.jsxs(no,{speed:1,width:"100%",height:"100%",backgroundColor:"#ffffff66",foregroundColor:"rgba(255, 255, 255, 0.7)",...e,children:[g.jsx("rect",{x:"20%",y:"0",rx:"15",ry:"15",width:"60%",height:"48",transform:"translate(-50%, 0)"}),g.jsx("rect",{x:"5%",y:"70",rx:"20",ry:"20",width:350,height:250,transform:"translate(-50%, 0)"}),g.jsx("rect",{x:"5%",y:"335",rx:"20",ry:"20",width:350,height:250,transform:"translate(-50%, 0)"}),g.jsx("rect",{x:"5%",y:"610",rx:"20",ry:"20",width:350,height:220,transform:"translate(-50%, 0)"})]})}),Yu=e=>typeof e=="number"&&!isNaN(e),Xs=e=>typeof e=="string",ai=e=>typeof e=="function",af=e=>Xs(e)||ai(e)?e:null,Ry=e=>C.isValidElement(e)||Xs(e)||ai(e)||Yu(e);function TV(e,t,n){n===void 0&&(n=300);const{scrollHeight:i,style:r}=e;requestAnimationFrame(()=>{r.minHeight="initial",r.height=i+"px",r.transition=`all ${n}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(t,n)})})}function Um(e){let{enter:t,exit:n,appendPosition:i=!1,collapse:r=!0,collapseDuration:o=300}=e;return function(s){let{children:l,position:c,preventExitTransition:u,done:h,nodeRef:f,isIn:m,playToast:b}=s;const v=i?`${t}--${c}`:t,y=i?`${n}--${c}`:n,w=C.useRef(0);return C.useLayoutEffect(()=>{const x=f.current,S=v.split(" "),k=T=>{T.target===f.current&&(b(),x.removeEventListener("animationend",k),x.removeEventListener("animationcancel",k),w.current===0&&T.type!=="animationcancel"&&x.classList.remove(...S))};x.classList.add(...S),x.addEventListener("animationend",k),x.addEventListener("animationcancel",k)},[]),C.useEffect(()=>{const x=f.current,S=()=>{x.removeEventListener("animationend",S),r?TV(x,h,o):h()};m||(u?S():(w.current=1,x.className+=` ${y}`,x.addEventListener("animationend",S)))},[m]),ee.createElement(ee.Fragment,null,l)}}function IS(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const In=new Map;let Ku=[];const Iy=new Set,PV=e=>Iy.forEach(t=>t(e)),t4=()=>In.size>0;function n4(e,t){var n;if(t)return!((n=In.get(t))==null||!n.isToastActive(e));let i=!1;return In.forEach(r=>{r.isToastActive(e)&&(i=!0)}),i}function i4(e,t){Ry(e)&&(t4()||Ku.push({content:e,options:t}),In.forEach(n=>{n.buildToast(e,t)}))}function NS(e,t){In.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function OV(e){const{subscribe:t,getSnapshot:n,setProps:i}=C.useRef(function(o){const s=o.containerId||1;return{subscribe(l){const c=function(h,f,m){let b=1,v=0,y=[],w=[],x=[],S=f;const k=new Map,T=new Set,P=()=>{x=Array.from(k.values()),T.forEach(R=>R())},O=R=>{w=R==null?[]:w.filter(N=>N!==R),P()},M=R=>{const{toastId:N,onOpen:I,updateId:$,children:j}=R.props,B=$==null;R.staleId&&k.delete(R.staleId),k.set(N,R),w=[...w,R.props.toastId].filter(W=>W!==R.staleId),P(),m(IS(R,B?"added":"updated")),B&&ai(I)&&I(C.isValidElement(j)&&j.props)};return{id:h,props:S,observe:R=>(T.add(R),()=>T.delete(R)),toggle:(R,N)=>{k.forEach(I=>{N!=null&&N!==I.props.toastId||ai(I.toggle)&&I.toggle(R)})},removeToast:O,toasts:k,clearQueue:()=>{v-=y.length,y=[]},buildToast:(R,N)=>{if((X=>{let{containerId:re,toastId:ne,updateId:oe}=X;const K=re?re!==h:h!==1,ae=k.has(ne)&&oe==null;return K||ae})(N))return;const{toastId:I,updateId:$,data:j,staleId:B,delay:W}=N,Z=()=>{O(I)},V=$==null;V&&v++;const G={...S,style:S.toastStyle,key:b++,...Object.fromEntries(Object.entries(N).filter(X=>{let[re,ne]=X;return ne!=null})),toastId:I,updateId:$,data:j,closeToast:Z,isIn:!1,className:af(N.className||S.toastClassName),bodyClassName:af(N.bodyClassName||S.bodyClassName),progressClassName:af(N.progressClassName||S.progressClassName),autoClose:!N.isLoading&&(z=N.autoClose,q=S.autoClose,z===!1||Yu(z)&&z>0?z:q),deleteToast(){const X=k.get(I),{onClose:re,children:ne}=X.props;ai(re)&&re(C.isValidElement(ne)&&ne.props),m(IS(X,"removed")),k.delete(I),v--,v<0&&(v=0),y.length>0?M(y.shift()):P()}};var z,q;G.closeButton=S.closeButton,N.closeButton===!1||Ry(N.closeButton)?G.closeButton=N.closeButton:N.closeButton===!0&&(G.closeButton=!Ry(S.closeButton)||S.closeButton);let H=R;C.isValidElement(R)&&!Xs(R.type)?H=C.cloneElement(R,{closeToast:Z,toastProps:G,data:j}):ai(R)&&(H=R({closeToast:Z,toastProps:G,data:j}));const J={content:H,props:G,staleId:B};S.limit&&S.limit>0&&v>S.limit&&V?y.push(J):Yu(W)?setTimeout(()=>{M(J)},W):M(J)},setProps(R){S=R},setToggle:(R,N)=>{k.get(R).toggle=N},isToastActive:R=>w.some(N=>N===R),getSnapshot:()=>S.newestOnTop?x.reverse():x}}(s,o,PV);In.set(s,c);const u=c.observe(l);return Ku.forEach(h=>i4(h.content,h.options)),Ku=[],()=>{u(),In.delete(s)}},setProps(l){var c;(c=In.get(s))==null||c.setProps(l)},getSnapshot(){var l;return(l=In.get(s))==null?void 0:l.getSnapshot()}}}(e)).current;i(e);const r=C.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!r)return[];const s=new Map;return r.forEach(l=>{const{position:c}=l.props;s.has(c)||s.set(c,[]),s.get(c).push(l)}),Array.from(s,l=>o(l[0],l[1]))},isToastActive:n4,count:r==null?void 0:r.length}}function MV(e){const[t,n]=C.useState(!1),[i,r]=C.useState(!1),o=C.useRef(null),s=C.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:c,closeToast:u,onClick:h,closeOnClick:f}=e;var m,b;function v(){n(!0)}function y(){n(!1)}function w(k){const T=o.current;s.canDrag&&T&&(s.didMove=!0,t&&y(),s.delta=e.draggableDirection==="x"?k.clientX-s.start:k.clientY-s.start,s.start!==k.clientX&&(s.canCloseOnClick=!1),T.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,T.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function x(){document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",x);const k=o.current;if(s.canDrag&&s.didMove&&k){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return r(!0),e.closeToast(),void e.collapseAll();k.style.transition="transform 0.2s, opacity 0.2s",k.style.removeProperty("transform"),k.style.removeProperty("opacity")}}(b=In.get((m={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||b.setToggle(m.id,m.fn),C.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||y(),window.addEventListener("focus",v),window.addEventListener("blur",y),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",y)}},[e.pauseOnFocusLoss]);const S={onPointerDown:function(k){if(e.draggable===!0||e.draggable===k.pointerType){s.didMove=!1,document.addEventListener("pointermove",w),document.addEventListener("pointerup",x);const T=o.current;s.canCloseOnClick=!0,s.canDrag=!0,T.style.transition="none",e.draggableDirection==="x"?(s.start=k.clientX,s.removalDistance=T.offsetWidth*(e.draggablePercent/100)):(s.start=k.clientY,s.removalDistance=T.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(k){const{top:T,bottom:P,left:O,right:M}=o.current.getBoundingClientRect();k.nativeEvent.type!=="touchend"&&e.pauseOnHover&&k.clientX>=O&&k.clientX<=M&&k.clientY>=T&&k.clientY<=P?y():v()}};return l&&c&&(S.onMouseEnter=y,e.stacked||(S.onMouseLeave=v)),f&&(S.onClick=k=>{h&&h(k),s.canCloseOnClick&&u()}),{playToast:v,pauseToast:y,isRunning:t,preventExitTransition:i,toastRef:o,eventHandlers:S}}function LV(e){let{delay:t,isRunning:n,closeToast:i,type:r="default",hide:o,className:s,style:l,controlledProgress:c,progress:u,rtl:h,isIn:f,theme:m}=e;const b=o||c&&u===0,v={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(v.transform=`scaleX(${u})`);const y=Ce("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":h}),w=ai(s)?s({rtl:h,type:r,defaultClassName:y}):Ce(y,s),x={[c&&u>=1?"onTransitionEnd":"onAnimationEnd"]:c&&u<1?null:()=>{f&&i()}};return ee.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":b},ee.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${m} Toastify__progress-bar--${r}`}),ee.createElement("div",{role:"progressbar","aria-hidden":b?"true":"false","aria-label":"notification timer",className:w,style:v,...x}))}let AV=1;const r4=()=>""+AV++;function RV(e){return e&&(Xs(e.toastId)||Yu(e.toastId))?e.toastId:r4()}function du(e,t){return i4(e,t),t.toastId}function hp(e,t){return{...t,type:t&&t.type||e,toastId:RV(t)}}function gh(e){return(t,n)=>du(t,hp(e,n))}function tt(e,t){return du(e,hp("default",t))}tt.loading=(e,t)=>du(e,hp("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),tt.promise=function(e,t,n){let i,{pending:r,error:o,success:s}=t;r&&(i=Xs(r)?tt.loading(r,n):tt.loading(r.render,{...n,...r}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(h,f,m)=>{if(f==null)return void tt.dismiss(i);const b={type:h,...l,...n,data:m},v=Xs(f)?{render:f}:f;return i?tt.update(i,{...b,...v}):tt(v.render,{...b,...v}),m},u=ai(e)?e():e;return u.then(h=>c("success",s,h)).catch(h=>c("error",o,h)),u},tt.success=gh("success"),tt.info=gh("info"),tt.error=gh("error"),tt.warning=gh("warning"),tt.warn=tt.warning,tt.dark=(e,t)=>du(e,hp("default",{theme:"dark",...t})),tt.dismiss=function(e){(function(t){var n;if(t4()){if(t==null||Xs(n=t)||Yu(n))In.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const i=In.get(t.containerId);i?i.removeToast(t.id):In.forEach(r=>{r.removeToast(t.id)})}}else Ku=Ku.filter(i=>t!=null&&i.options.toastId!==t)})(e)},tt.clearWaitingQueue=function(e){e===void 0&&(e={}),In.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},tt.isActive=n4,tt.update=function(e,t){t===void 0&&(t={});const n=((i,r)=>{var o;let{containerId:s}=r;return(o=In.get(s||1))==null?void 0:o.toasts.get(i)})(e,t);if(n){const{props:i,content:r}=n,o={delay:100,...i,...t,toastId:t.toastId||e,updateId:r4()};o.toastId!==e&&(o.staleId=e);const s=o.render||r;delete o.render,du(s,o)}},tt.done=e=>{tt.update(e,{progress:1})},tt.onChange=function(e){return Iy.add(e),()=>{Iy.delete(e)}},tt.play=e=>NS(!0,e),tt.pause=e=>NS(!1,e);const IV=typeof window<"u"?C.useLayoutEffect:C.useEffect,vh=e=>{let{theme:t,type:n,isLoading:i,...r}=e;return ee.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},$v={info:function(e){return ee.createElement(vh,{...e},ee.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return ee.createElement(vh,{...e},ee.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return ee.createElement(vh,{...e},ee.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return ee.createElement(vh,{...e},ee.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ee.createElement("div",{className:"Toastify__spinner"})}},NV=e=>{const{isRunning:t,preventExitTransition:n,toastRef:i,eventHandlers:r,playToast:o}=MV(e),{closeButton:s,children:l,autoClose:c,onClick:u,type:h,hideProgressBar:f,closeToast:m,transition:b,position:v,className:y,style:w,bodyClassName:x,bodyStyle:S,progressClassName:k,progressStyle:T,updateId:P,role:O,progress:M,rtl:R,toastId:N,deleteToast:I,isIn:$,isLoading:j,closeOnClick:B,theme:W}=e,Z=Ce("Toastify__toast",`Toastify__toast-theme--${W}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":R},{"Toastify__toast--close-on-click":B}),V=ai(y)?y({rtl:R,position:v,type:h,defaultClassName:Z}):Ce(Z,y),G=function(J){let{theme:X,type:re,isLoading:ne,icon:oe}=J,K=null;const ae={theme:X,type:re};return oe===!1||(ai(oe)?K=oe({...ae,isLoading:ne}):C.isValidElement(oe)?K=C.cloneElement(oe,ae):ne?K=$v.spinner():(ye=>ye in $v)(re)&&(K=$v[re](ae))),K}(e),z=!!M||!c,q={closeToast:m,type:h,theme:W};let H=null;return s===!1||(H=ai(s)?s(q):C.isValidElement(s)?C.cloneElement(s,q):function(J){let{closeToast:X,theme:re,ariaLabel:ne="close"}=J;return ee.createElement("button",{className:`Toastify__close-button Toastify__close-button--${re}`,type:"button",onClick:oe=>{oe.stopPropagation(),X(oe)},"aria-label":ne},ee.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ee.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(q)),ee.createElement(b,{isIn:$,done:I,position:v,preventExitTransition:n,nodeRef:i,playToast:o},ee.createElement("div",{id:N,onClick:u,"data-in":$,className:V,...r,style:w,ref:i},ee.createElement("div",{...$&&{role:O},className:ai(x)?x({type:h}):Ce("Toastify__toast-body",x),style:S},G!=null&&ee.createElement("div",{className:Ce("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!j})},G),ee.createElement("div",null,l)),H,ee.createElement(LV,{...P&&!z?{key:`pb-${P}`}:{},rtl:R,theme:W,delay:c,isRunning:t,isIn:$,closeToast:m,hide:f,type:h,style:T,className:k,controlledProgress:z,progress:M||0})))},Zm=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},DV=Um(Zm("bounce",!0));Um(Zm("slide",!0));Um(Zm("zoom"));Um(Zm("flip"));const jV={position:"top-right",transition:DV,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function o4(e){let t={...jV,...e};const n=e.stacked,[i,r]=C.useState(!0),o=C.useRef(null),{getToastToRender:s,isToastActive:l,count:c}=OV(t),{className:u,style:h,rtl:f,containerId:m}=t;function b(y){const w=Ce("Toastify__toast-container",`Toastify__toast-container--${y}`,{"Toastify__toast-container--rtl":f});return ai(u)?u({position:y,rtl:f,defaultClassName:w}):Ce(w,af(u))}function v(){n&&(r(!0),tt.play())}return IV(()=>{if(n){var y;const w=o.current.querySelectorAll('[data-in="true"]'),x=12,S=(y=t.position)==null?void 0:y.includes("top");let k=0,T=0;Array.from(w).reverse().forEach((P,O)=>{const M=P;M.classList.add("Toastify__toast--stacked"),O>0&&(M.dataset.collapsed=`${i}`),M.dataset.pos||(M.dataset.pos=S?"top":"bot");const R=k*(i?.2:1)+(i?0:x*O);M.style.setProperty("--y",`${S?R:-1*R}px`),M.style.setProperty("--g",`${x}`),M.style.setProperty("--s",""+(1-(i?T:0))),k+=M.offsetHeight,T+=.025})}},[i,c,n]),ee.createElement("div",{ref:o,className:"Toastify",id:m,onMouseEnter:()=>{n&&(r(!1),tt.pause())},onMouseLeave:v},s((y,w)=>{const x=w.length?{...h}:{...h,pointerEvents:"none"};return ee.createElement("div",{className:b(y),style:x,key:`container-${y}`},w.map(S=>{let{content:k,props:T}=S;return ee.createElement(NV,{...T,stacked:n,collapseAll:v,isIn:l(T.toastId,T.containerId),style:T.style,key:`toast-${T.key}`},k)}))}))}function zV(){const{userData:e}=C.useContext(Kl),[t,n]=C.useState([]),[i,r]=C.useState(!0),[o,s]=C.useState({});C.useEffect(()=>{const u=async()=>{try{if(e){const v=(await Me.get(`https://paws-backend.azurewebsites.net/api/animals/?user_email=${e.email}`)).data.reverse().map(y=>({...y,expanded:!1,reported_time:new Date(y.reported_time).toLocaleString("en-US",{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})}));n(v),console.log(v),r(!1)}}catch(f){console.error("Error fetching reports:",f)}};u();const h=U5(c1,async f=>{console.log("Background message received:",f),await u(),tt.info(f.notification.body)});return()=>{h()}},[e]),C.useEffect(()=>{i||(async()=>{const h={};await Promise.all(t.map(async f=>{if(f.assigned_to){const m=await l(f.assigned_to);m?h[f.id]=m.name:h[f.id]="Unknown NGO"}})),s(h)})()},[t,i]);const l=async u=>{try{return(await Me.get(`https://paws-backend.azurewebsites.net/ngo?email=${u}`)).data}catch(h){return console.error("Error fetching NGO data:",h),null}},c=u=>{const h=[...t];h[u].expanded=!h[u].expanded,n(h),console.log(t)};return g.jsxs(g.Fragment,{children:[g.jsx(o4,{position:"top-right",autoClose:5e3}),g.jsx("div",{children:g.jsxs("div",{className:"bg-custom-gradient min-h-screen max-h-fit flex flex-col font-ChauPhilomeneOne pb-[120px]",children:[!i&&g.jsxs(g.Fragment,{children:[g.jsx("h2",{className:"mx-auto mt-6 text-center text-5xl underline line-height-[6.9rem] text-[#40025D] tracking-wider drop-shadow-2xl",children:"MY REPORTS"}),t.length===0?g.jsx("p",{className:"text-center text-gray-500 text-2xl tracking-wider mt-10",children:"No reports uploaded."}):g.jsx("ul",{className:"w-screen flex flex-col justify-center p-4 items-center gap-5",children:t.map((u,h)=>g.jsx(g.Fragment,{children:g.jsxs(e4,{className:"bg-gradient-to-b from-[#1e85e420] to-[#1E85E440] flex flex-col w-full items-center justify-center p-2 shadow-dashBoardCardImageShadow",style:{border:"1px solid #75757575",borderRadius:"15px"},children:[g.jsx("img",{src:u.image,alt:u.description,className:" h-auto max-h-[22rem] w-[18.3rem] rounded-[20px] object-cover shadow-dashBoardCardImageShadow m-2"}),g.jsxs("div",{className:"flex w-full pt-1 p-3 flex-col justify-center text-[17px] font-ChauPhilomeneOne text-[#090443] drop-shadow-2xl leading-relaxed ",children:[g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsxs("p",{className:"text-2xl capitalize",children:["Animal Type : ",u.animal_type]}),g.jsx("div",{children:g.jsx(d1,{onClick:()=>c(h),className:`${u.expanded?"rotate-180 absolute bottom-1 right-3 ":""}`})})]}),u.expanded&&g.jsxs("div",{className:"pt-2 flex flex-col gap-1",children:[g.jsxs("p",{className:" drop-shadow-xl ",children:[g.jsx("span",{className:"font-semibold mr-1 border-t-white tracking-widest",children:"Description:"})," ",u.description]}),g.jsxs("p",{children:[g.jsx("span",{className:"font-semibold mr-1 tracking-widest",children:"Address:"}),g.jsxs("span",{children:[" ",u.address]})]}),g.jsxs("p",{children:[g.jsx("span",{className:"font-semibold mr-1 tracking-widest",children:"Landmark:"})," ",u.landmark]}),g.jsxs("p",{children:[g.jsx("span",{className:"font-semibold mr-1 tracking-widest",children:"Reported At:"}),u.reported_time]}),g.jsxs("p",{children:[g.jsx("span",{className:"font-semibold mr-1 tracking-widest",children:"Condition:"})," ",u.condition]}),g.jsxs("p",{children:[g.jsx("span",{className:"font-semibold mr-1 tracking-widest",children:"Reported To:"}),u.assigned_to?g.jsx("span",{children:o[u.id]||"Loading..."}):"Not Assigned"]}),g.jsxs("p",{className:"",children:[g.jsx("span",{className:"font-semibold mr-1 tracking-widest",children:"Status:"}),u.status||"No status"]})]})]})]},u.id)}))})]}),i&&g.jsx("div",{className:"w-screen h-screen flex flex-col items-center mt-10",children:g.jsx(EV,{})})]})})]})}function $V(e){return Dt("MuiBottomNavigation",e)}jt("MuiBottomNavigation",["root"]);const BV=["children","className","component","onChange","showLabels","value"],FV=e=>{const{classes:t}=e;return Kt({root:["root"]},$V,t)},HV=Ie("div",{name:"MuiBottomNavigation",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",height:56,backgroundColor:(e.vars||e).palette.background.paper})),VV=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiBottomNavigation"}),{children:r,className:o,component:s="div",onChange:l,showLabels:c=!1,value:u}=i,h=Oe(i,BV),f=F({},i,{component:s,showLabels:c}),m=FV(f);return g.jsx(HV,F({as:s,className:Ce(m.root,o),ref:n,ownerState:f},h,{children:C.Children.map(r,(b,v)=>{if(!C.isValidElement(b))return null;const y=b.props.value===void 0?v:b.props.value;return C.cloneElement(b,{selected:y===u,showLabel:b.props.showLabel!==void 0?b.props.showLabel:c,value:y,onChange:l})})}))});function WV(e){return Dt("MuiBottomNavigationAction",e)}const s4=jt("MuiBottomNavigationAction",["root","iconOnly","selected","label"]),UV=["className","icon","label","onChange","onClick","selected","showLabel","value"],ZV=e=>{const{classes:t,showLabel:n,selected:i}=e;return Kt({root:["root",!n&&!i&&"iconOnly",i&&"selected"],label:["label",!n&&!i&&"iconOnly",i&&"selected"]},WV,t)},GV=Ie(r5,{name:"MuiBottomNavigationAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.showLabel&&!n.selected&&t.iconOnly]}})(({theme:e,ownerState:t})=>F({transition:e.transitions.create(["color","padding-top"],{duration:e.transitions.duration.short}),padding:"0px 12px",minWidth:80,maxWidth:168,color:(e.vars||e).palette.text.secondary,flexDirection:"column",flex:"1"},!t.showLabel&&!t.selected&&{paddingTop:14},!t.showLabel&&!t.selected&&!t.label&&{paddingTop:0},{[`&.${s4.selected}`]:{color:(e.vars||e).palette.primary.main}})),YV=Ie("span",{name:"MuiBottomNavigationAction",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e,ownerState:t})=>F({fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s"},!t.showLabel&&!t.selected&&{opacity:0,transitionDelay:"0s"},{[`&.${s4.selected}`]:{fontSize:e.typography.pxToRem(14)}})),Zi=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiBottomNavigationAction"}),{className:r,icon:o,label:s,onChange:l,onClick:c,value:u}=i,h=Oe(i,UV),f=i,m=ZV(f),b=v=>{l&&l(v,u),c&&c(v)};return g.jsxs(GV,F({ref:n,className:Ce(m.root,r),focusRipple:!0,onClick:b,ownerState:f},h,{children:[o,g.jsx(YV,{className:m.label,ownerState:f,children:s})]}))});function DS(e){return qt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"},child:[]}]})(e)}function KV(e){return qt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 5h2v3h10V5h2v5h2V5c0-1.1-.9-2-2-2h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},child:[]},{tag:"path",attr:{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4-2.7-2.7zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"},child:[]}]})(e)}function qV(e){return qt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 11v2h4v-2h-4zm-2 6.61c.96.71 2.21 1.65 3.2 2.39.4-.53.8-1.07 1.2-1.6-.99-.74-2.24-1.68-3.2-2.4-.4.54-.8 1.08-1.2 1.61zM20.4 5.6c-.4-.53-.8-1.07-1.2-1.6-.99.74-2.24 1.68-3.2 2.4.4.53.8 1.07 1.2 1.6.96-.72 2.21-1.65 3.2-2.4zM4 9c-1.1 0-2 .9-2 2v2c0 1.1.9 2 2 2h1v4h2v-4h1l5 3V6L8 9H4zm11.5 3c0-1.33-.58-2.53-1.5-3.35v6.69c.92-.81 1.5-2.01 1.5-3.34z"},child:[]}]})(e)}function XV(e){return qt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M240 216V32H92a12 12 0 0 0-12 12v424a12 12 0 0 0 12 12h328a12 12 0 0 0 12-12V224H248a8 8 0 0 1-8-8z"},child:[]},{tag:"path",attr:{d:"M272 41.69V188a4 4 0 0 0 4 4h146.31a2 2 0 0 0 1.42-3.41L275.41 40.27a2 2 0 0 0-3.41 1.42z"},child:[]}]})(e)}function QV(e){return qt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M440.08 341.31c-1.66-2-3.29-4-4.89-5.93-22-26.61-35.31-42.67-35.31-118 0-39-9.33-71-27.72-95-13.56-17.73-31.89-31.18-56.05-41.12a3 3 0 0 1-.82-.67C306.6 51.49 282.82 32 256 32s-50.59 19.49-59.28 48.56a3.13 3.13 0 0 1-.81.65c-56.38 23.21-83.78 67.74-83.78 136.14 0 75.36-13.29 91.42-35.31 118-1.6 1.93-3.23 3.89-4.89 5.93a35.16 35.16 0 0 0-4.65 37.62c6.17 13 19.32 21.07 34.33 21.07H410.5c14.94 0 28-8.06 34.19-21a35.17 35.17 0 0 0-4.61-37.66zM256 480a80.06 80.06 0 0 0 70.44-42.13 4 4 0 0 0-3.54-5.87H189.12a4 4 0 0 0-3.55 5.87A80.06 80.06 0 0 0 256 480z"},child:[]}]})(e)}function JV(e){return qt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M336 256c-20.56 0-40.44-9.18-56-25.84-15.13-16.25-24.37-37.92-26-61-1.74-24.62 5.77-47.26 21.14-63.76S312 80 336 80c23.83 0 45.38 9.06 60.7 25.52 15.47 16.62 23 39.22 21.26 63.63-1.67 23.11-10.9 44.77-26 61C376.44 246.82 356.57 256 336 256zm66-88zm65.83 264H204.18a27.71 27.71 0 0 1-22-10.67 30.22 30.22 0 0 1-5.26-25.79c8.42-33.81 29.28-61.85 60.32-81.08C264.79 297.4 299.86 288 336 288c36.85 0 71 9 98.71 26.05 31.11 19.13 52 47.33 60.38 81.55a30.27 30.27 0 0 1-5.32 25.78A27.68 27.68 0 0 1 467.83 432zM147 260c-35.19 0-66.13-32.72-69-72.93-1.42-20.6 5-39.65 18-53.62 12.86-13.83 31-21.45 51-21.45s38 7.66 50.93 21.57c13.1 14.08 19.5 33.09 18 53.52-2.87 40.2-33.8 72.91-68.93 72.91zm65.66 31.45c-17.59-8.6-40.42-12.9-65.65-12.9-29.46 0-58.07 7.68-80.57 21.62-25.51 15.83-42.67 38.88-49.6 66.71a27.39 27.39 0 0 0 4.79 23.36A25.32 25.32 0 0 0 41.72 400h111a8 8 0 0 0 7.87-6.57c.11-.63.25-1.26.41-1.88 8.48-34.06 28.35-62.84 57.71-83.82a8 8 0 0 0-.63-13.39c-1.57-.92-3.37-1.89-5.42-2.89z"},child:[]}]})(e)}function eW(e){return qt({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M0 13h16v2h-16zM2 9h2v3h-2zM5 5h2v7h-2zM8 8h2v4h-2zM11 2h2v10h-2z"},child:[]}]})(e)}const tW=()=>{const e=localStorage.getItem("csrftoken"),t=localStorage.getItem("userType"),[n,i]=C.useState(0),r=xa(),[o,s]=C.useState(!1);return C.useEffect(()=>{i(r.pathname),s(window.innerHeight{i(c)},style:{width:"100%",margin:"0",display:"flex",alignItems:"center",justifyContent:"space-evenly",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",backgroundColor:"#b8ddfa"},children:e&&t==="user"?[g.jsx(Zi,{value:"/",component:ct,to:"/",icon:g.jsx(DS,{size:30})},"home"),g.jsx(Zi,{value:"/campaignList",component:ct,to:"/campaignList",icon:g.jsx(JV,{size:28})},"campaignList"),g.jsx(Zi,{value:"/donationfront",component:ct,to:"/donationfront",icon:g.jsx(oF,{size:28})},"donationfront"),g.jsx(Zi,{value:"/user",component:ct,to:"/user",icon:g.jsx(sf,{size:24})},"profile")]:e&&t==="ngo"?[g.jsx(Zi,{value:"/stats",component:ct,to:"/stats",icon:g.jsx(eW,{size:26})},"stats"),g.jsx(Zi,{value:"/dashboard",component:ct,to:"/dashboard",icon:g.jsx(KV,{size:28})},"reports"),g.jsx(Zi,{value:"/createcampaign",component:ct,to:"/createcampaign",icon:g.jsx(qV,{size:32,style:{transform:"rotate(-15deg)"}})},"createcampaign"),g.jsx(Zi,{value:"/ngoProfile",component:ct,to:"/ngoProfile",icon:g.jsx(sf,{size:24})},"ngoprofile")]:[g.jsx(Zi,{value:"/",component:ct,to:"/",icon:g.jsx(DS,{size:30}),showLabel:!0,label:"Home"},"home"),g.jsx(Zi,{value:"/register",showLabel:!0,label:"Register",component:ct,to:"/register",icon:g.jsx(rF,{size:28})},"register"),g.jsx(Zi,{value:"/login",showLabel:!0,label:"Login",component:ct,to:"/login",icon:g.jsx(sf,{size:24})},"login")]})})})};function a4(e){return qt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M460.6 147.3L353 256.9c-.8.8-.8 2 0 2.8l75.3 80.2c5.1 5.1 5.1 13.3 0 18.4-2.5 2.5-5.9 3.8-9.2 3.8s-6.7-1.3-9.2-3.8l-75-79.9c-.8-.8-2.1-.8-2.9 0L313.7 297c-15.3 15.5-35.6 24.1-57.4 24.2-22.1.1-43.1-9.2-58.6-24.9l-17.6-17.9c-.8-.8-2.1-.8-2.9 0l-75 79.9c-2.5 2.5-5.9 3.8-9.2 3.8s-6.7-1.3-9.2-3.8c-5.1-5.1-5.1-13.3 0-18.4l75.3-80.2c.7-.8.7-2 0-2.8L51.4 147.3c-1.3-1.3-3.4-.4-3.4 1.4V368c0 17.6 14.4 32 32 32h352c17.6 0 32-14.4 32-32V148.7c0-1.8-2.2-2.6-3.4-1.4z"},child:[]},{tag:"path",attr:{d:"M256 295.1c14.8 0 28.7-5.8 39.1-16.4L452 119c-5.5-4.4-12.3-7-19.8-7H79.9c-7.5 0-14.4 2.6-19.8 7L217 278.7c10.3 10.5 24.2 16.4 39 16.4z"},child:[]}]})(e)}function nW(e){return qt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14.0049 2.00293C18.4232 2.00293 22.0049 5.58465 22.0049 10.0029C22.0049 13.2475 20.0733 16.041 17.2973 17.2962C16.0422 20.0719 13.249 22.0029 10.0049 22.0029C5.5866 22.0029 2.00488 18.4212 2.00488 14.0029C2.00488 10.7588 3.9359 7.96566 6.71122 6.71024C7.96681 3.9345 10.7603 2.00293 14.0049 2.00293ZM10.0049 8.00293C6.69117 8.00293 4.00488 10.6892 4.00488 14.0029C4.00488 17.3166 6.69117 20.0029 10.0049 20.0029C13.3186 20.0029 16.0049 17.3166 16.0049 14.0029C16.0049 10.6892 13.3186 8.00293 10.0049 8.00293ZM11.0049 9.00293V10.0029H13.0049V12.0029H9.00488C8.72874 12.0029 8.50488 12.2268 8.50488 12.5029C8.50488 12.7484 8.68176 12.9525 8.91501 12.9949L9.00488 13.0029H11.0049C12.3856 13.0029 13.5049 14.1222 13.5049 15.5029C13.5049 16.8836 12.3856 18.0029 11.0049 18.0029V19.0029H9.00488V18.0029H7.00488V16.0029H11.0049C11.281 16.0029 11.5049 15.7791 11.5049 15.5029C11.5049 15.2575 11.328 15.0533 11.0948 15.011L11.0049 15.0029H9.00488C7.62417 15.0029 6.50488 13.8836 6.50488 12.5029C6.50488 11.1222 7.62417 10.0029 9.00488 10.0029V9.00293H11.0049ZM14.0049 4.00293C12.2214 4.00293 10.6196 4.78109 9.52064 6.01642C9.68133 6.00776 9.84254 6.00293 10.0049 6.00293C14.4232 6.00293 18.0049 9.58465 18.0049 14.0029C18.0049 14.1656 18 14.3272 17.9905 14.4874C19.2265 13.3887 20.0049 11.7867 20.0049 10.0029C20.0049 6.68922 17.3186 4.00293 14.0049 4.00293Z"},child:[]}]})(e)}var Yn=function(){return Yn=Object.assign||function(t){for(var n,i=1,r=arguments.length;i0?an(Ql,--Ni):0,Dl--,Ut===10&&(Dl=1,Ym--),Ut}function ir(){return Ut=Ni2||Dy(Ut)>3?"":" "}function hW(e,t){for(;--t&&ir()&&!(Ut<48||Ut>102||Ut>57&&Ut<65||Ut>70&&Ut<97););return qm(e,cf()+(t<6&&Qs()==32&&ir()==32))}function jy(e){for(;ir();)switch(Ut){case e:return Ni;case 34:case 39:e!==34&&e!==39&&jy(Ut);break;case 40:e===41&&jy(e);break;case 92:ir();break}return Ni}function fW(e,t){for(;ir()&&e+Ut!==57;)if(e+Ut===84&&Qs()===47)break;return"/*"+qm(t,Ni-1)+"*"+f1(e===47?e:ir())}function pW(e){for(;!Dy(Qs());)ir();return qm(e,Ni)}function mW(e){return uW(uf("",null,null,null,[""],e=cW(e),0,[0],e))}function uf(e,t,n,i,r,o,s,l,c){for(var u=0,h=0,f=s,m=0,b=0,v=0,y=1,w=1,x=1,S=0,k="",T=r,P=o,O=i,M=k;w;)switch(v=S,S=ir()){case 40:if(v!=108&&an(M,f-1)==58){lf(M+=Pe(Bv(S),"&","&\f"),"&\f",u4(u?l[u-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:M+=Bv(S);break;case 9:case 10:case 13:case 32:M+=dW(v);break;case 92:M+=hW(cf()-1,7);continue;case 47:switch(Qs()){case 42:case 47:Uc(gW(fW(ir(),cf()),t,n,c),c);break;default:M+="/"}break;case 123*y:l[u++]=vr(M)*x;case 125*y:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+h:x==-1&&(M=Pe(M,/\f/g,"")),b>0&&vr(M)-f&&Uc(b>32?$S(M+";",i,n,f-1,c):$S(Pe(M," ","")+";",i,n,f-2,c),c);break;case 59:M+=";";default:if(Uc(O=zS(M,t,n,u,h,r,l,k,T=[],P=[],f,o),o),S===123)if(h===0)uf(M,t,O,O,T,o,f,l,P);else switch(m===99&&an(M,3)===110?100:m){case 100:case 108:case 109:case 115:uf(e,O,O,i&&Uc(zS(e,O,O,0,0,r,l,k,r,T=[],f,P),P),r,P,f,l,i?T:P);break;default:uf(M,O,O,O,[""],P,0,l,P)}}u=h=b=0,y=x=1,k=M="",f=s;break;case 58:f=1+vr(M),b=v;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&lW()==125)continue}switch(M+=f1(S),S*y){case 38:x=h>0?1:(M+="\f",-1);break;case 44:l[u++]=(vr(M)-1)*x,x=1;break;case 64:Qs()===45&&(M+=Bv(ir())),m=Qs(),h=f=vr(k=M+=pW(cf())),S++;break;case 45:v===45&&vr(M)==2&&(y=0)}}return o}function zS(e,t,n,i,r,o,s,l,c,u,h,f){for(var m=r-1,b=r===0?o:[""],v=h4(b),y=0,w=0,x=0;y0?b[S]+" "+k:Pe(k,/&\f/g,b[S])))&&(c[x++]=T);return Km(e,t,n,r===0?Gm:l,c,u,h,f)}function gW(e,t,n,i){return Km(e,t,n,l4,f1(aW()),Nl(e,2,-2),0,i)}function $S(e,t,n,i,r){return Km(e,t,n,h1,Nl(e,0,i),Nl(e,i+1,-1),i,r)}function p4(e,t,n){switch(oW(e,t)){case 5103:return Ye+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ye+e+e;case 4789:return hu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ye+e+hu+e+lt+e+e;case 5936:switch(an(e,t+11)){case 114:return Ye+e+lt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ye+e+lt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ye+e+lt+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ye+e+lt+e+e;case 6165:return Ye+e+lt+"flex-"+e+e;case 5187:return Ye+e+Pe(e,/(\w+).+(:[^]+)/,Ye+"box-$1$2"+lt+"flex-$1$2")+e;case 5443:return Ye+e+lt+"flex-item-"+Pe(e,/flex-|-self/g,"")+(Zr(e,/flex-|baseline/)?"":lt+"grid-row-"+Pe(e,/flex-|-self/g,""))+e;case 4675:return Ye+e+lt+"flex-line-pack"+Pe(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ye+e+lt+Pe(e,"shrink","negative")+e;case 5292:return Ye+e+lt+Pe(e,"basis","preferred-size")+e;case 6060:return Ye+"box-"+Pe(e,"-grow","")+Ye+e+lt+Pe(e,"grow","positive")+e;case 4554:return Ye+Pe(e,/([^-])(transform)/g,"$1"+Ye+"$2")+e;case 6187:return Pe(Pe(Pe(e,/(zoom-|grab)/,Ye+"$1"),/(image-set)/,Ye+"$1"),e,"")+e;case 5495:case 3959:return Pe(e,/(image-set\([^]*)/,Ye+"$1$`$1");case 4968:return Pe(Pe(e,/(.+:)(flex-)?(.*)/,Ye+"box-pack:$3"+lt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ye+e+e;case 4200:if(!Zr(e,/flex-|baseline/))return lt+"grid-column-align"+Nl(e,t)+e;break;case 2592:case 3360:return lt+Pe(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,r){return t=r,Zr(i.props,/grid-\w+-end/)})?~lf(e+(n=n[t].value),"span",0)?e:lt+Pe(e,"-start","")+e+lt+"grid-row-span:"+(~lf(n,"span",0)?Zr(n,/\d+/):+Zr(n,/\d+/)-+Zr(e,/\d+/))+";":lt+Pe(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return Zr(i.props,/grid-\w+-start/)})?e:lt+Pe(Pe(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Pe(e,/(.+)-inline(.+)/,Ye+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(vr(e)-1-t>6)switch(an(e,t+1)){case 109:if(an(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+Ye+"$2-$3$1"+hu+(an(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~lf(e,"stretch",0)?p4(Pe(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Pe(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,r,o,s,l,c,u){return lt+r+":"+o+u+(s?lt+r+"-span:"+(l?c:+c-+o)+u:"")+e});case 4949:if(an(e,t+6)===121)return Pe(e,":",":"+Ye)+e;break;case 6444:switch(an(e,an(e,14)===45?18:11)){case 120:return Pe(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ye+(an(e,14)===45?"inline-":"")+"box$3$1"+Ye+"$2$3$1"+lt+"$2box$3")+e;case 100:return Pe(e,":",":"+lt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Pe(e,"scroll-","scroll-snap-")+e}return e}function fp(e,t){for(var n="",i=0;i-1&&!e.return)switch(e.type){case h1:e.return=p4(e.value,e.length,n);return;case c4:return fp([Ro(e,{value:Pe(e.value,"@","@"+Ye)})],i);case Gm:if(e.length)return sW(n=e.props,function(r){switch(Zr(r,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":za(Ro(e,{props:[Pe(r,/:(read-\w+)/,":"+hu+"$1")]})),za(Ro(e,{props:[r]})),Ny(e,{props:jS(n,i)});break;case"::placeholder":za(Ro(e,{props:[Pe(r,/:(plac\w+)/,":"+Ye+"input-$1")]})),za(Ro(e,{props:[Pe(r,/:(plac\w+)/,":"+hu+"$1")]})),za(Ro(e,{props:[Pe(r,/:(plac\w+)/,lt+"input-$1")]})),za(Ro(e,{props:[r]})),Ny(e,{props:jS(n,i)});break}return""})}}var _W={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ni={},jl=typeof process<"u"&&ni!==void 0&&(ni.REACT_APP_SC_ATTR||ni.SC_ATTR)||"data-styled",m4="active",g4="data-styled-version",Xm="6.1.8",p1=`/*!sc*/ +`,m1=typeof window<"u"&&"HTMLElement"in window,wW=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&ni!==void 0&&ni.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&ni.REACT_APP_SC_DISABLE_SPEEDY!==""?ni.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&ni.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&ni!==void 0&&ni.SC_DISABLE_SPEEDY!==void 0&&ni.SC_DISABLE_SPEEDY!==""&&ni.SC_DISABLE_SPEEDY!=="false"&&ni.SC_DISABLE_SPEEDY),Qm=Object.freeze([]),zl=Object.freeze({});function SW(e,t,n){return n===void 0&&(n=zl),e.theme!==n.theme&&e.theme||t||n.theme}var v4=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),CW=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,kW=/(^-|-$)/g;function BS(e){return e.replace(CW,"-").replace(kW,"")}var EW=/(a)(d)/gi,yh=52,FS=function(e){return String.fromCharCode(e+(e>25?39:97))};function zy(e){var t,n="";for(t=Math.abs(e);t>yh;t=t/yh|0)n=FS(t%yh)+n;return(FS(t%yh)+n).replace(EW,"$1-$2")}var Fv,y4=5381,rl=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},b4=function(e){return rl(y4,e)};function x4(e){return zy(b4(e)>>>0)}function TW(e){return e.displayName||e.name||"Component"}function Hv(e){return typeof e=="string"&&!0}var _4=typeof Symbol=="function"&&Symbol.for,w4=_4?Symbol.for("react.memo"):60115,PW=_4?Symbol.for("react.forward_ref"):60112,OW={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},MW={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},S4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},LW=((Fv={})[PW]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fv[w4]=S4,Fv);function HS(e){return("type"in(t=e)&&t.type.$$typeof)===w4?S4:"$$typeof"in e?LW[e.$$typeof]:OW;var t}var AW=Object.defineProperty,RW=Object.getOwnPropertyNames,VS=Object.getOwnPropertySymbols,IW=Object.getOwnPropertyDescriptor,NW=Object.getPrototypeOf,WS=Object.prototype;function C4(e,t,n){if(typeof t!="string"){if(WS){var i=NW(t);i&&i!==WS&&C4(e,i,n)}var r=RW(t);VS&&(r=r.concat(VS(t)));for(var o=HS(e),s=HS(t),l=0;l0?" Args: ".concat(t.join(", ")):""))}var DW=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,r=i.length,o=r;t>=o;)if((o<<=1)<0)throw kd(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=r;s=this.length||this.groupSizes[t]===0)return n;for(var i=this.groupSizes[t],r=this.indexOfGroup(t),o=r+i,s=r;s=0){var i=document.createTextNode(n);return this.element.insertBefore(i,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(w+="".concat(x,","))}),c+="".concat(v).concat(y,'{content:"').concat(w,'"}').concat(p1)},h=0;h0?".".concat(t):m},h=c.slice();h.push(function(m){m.type===Gm&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(GW,n).replace(i,u))}),s.prefix&&h.push(xW),h.push(vW);var f=function(m,b,v,y){b===void 0&&(b=""),v===void 0&&(v=""),y===void 0&&(y="&"),t=y,n=b,i=new RegExp("\\".concat(n,"\\b"),"g");var w=m.replace(YW,""),x=mW(v||b?"".concat(v," ").concat(b," { ").concat(w," }"):w);s.namespace&&(x=T4(x,s.namespace));var S=[];return fp(x,yW(h.concat(bW(function(k){return S.push(k)})))),S};return f.hash=c.length?c.reduce(function(m,b){return b.name||kd(15),rl(m,b.name)},y4).toString():"",f}var qW=new E4,Fy=KW(),P4=ee.createContext({shouldForwardProp:void 0,styleSheet:qW,stylis:Fy});P4.Consumer;ee.createContext(void 0);function ZS(){return C.useContext(P4)}var O4=function(){function e(t,n){var i=this;this.inject=function(r,o){o===void 0&&(o=Fy);var s=i.name+o.hash;r.hasNameForId(i.id,s)||r.insertRules(i.id,s,o(i.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,v1(this,function(){throw kd(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Fy),this.name+t.hash},e}(),XW=function(e){return e>="A"&&e<="Z"};function GS(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,s)){var l=i(o,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,l)}r=Us(r,s),this.staticRulesId=s}else{for(var c=rl(this.baseHash,i.hash),u="",h=0;h>>0);n.hasNameForId(this.componentId,b)||n.insertRules(this.componentId,b,i(u,".".concat(b),void 0,this.componentId)),r=Us(r,b)}}return r},e}(),A4=ee.createContext(void 0);A4.Consumer;var Vv={};function tU(e,t,n){var i=g1(e),r=e,o=!Hv(e),s=t.attrs,l=s===void 0?Qm:s,c=t.componentId,u=c===void 0?function(T,P){var O=typeof T!="string"?"sc":BS(T);Vv[O]=(Vv[O]||0)+1;var M="".concat(O,"-").concat(x4(Xm+O+Vv[O]));return P?"".concat(P,"-").concat(M):M}(t.displayName,t.parentComponentId):c,h=t.displayName,f=h===void 0?function(T){return Hv(T)?"styled.".concat(T):"Styled(".concat(TW(T),")")}(e):h,m=t.displayName&&t.componentId?"".concat(BS(t.displayName),"-").concat(t.componentId):t.componentId||u,b=i&&r.attrs?r.attrs.concat(l).filter(Boolean):l,v=t.shouldForwardProp;if(i&&r.shouldForwardProp){var y=r.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;v=function(T,P){return y(T,P)&&w(T,P)}}else v=y}var x=new eU(n,m,i?r.componentStyle:void 0);function S(T,P){return function(O,M,R){var N=O.attrs,I=O.componentStyle,$=O.defaultProps,j=O.foldedComponentIds,B=O.styledComponentId,W=O.target,Z=ee.useContext(A4),V=ZS(),G=O.shouldForwardProp||V.shouldForwardProp,z=SW(M,Z,$)||zl,q=function(oe,K,ae){for(var ye,pe=Yn(Yn({},K),{className:void 0,theme:ae}),ce=0;cee.$visible?"flex":"none"}; +`;const iU="http://www.w3.org/2000/svg",Yi=242.776657104492,rU=1.6,oU=y1` +12.5% { + stroke-dasharray: ${Yi*.14}px, ${Yi}px; + stroke-dashoffset: -${Yi*.11}px; +} +43.75% { + stroke-dasharray: ${Yi*.35}px, ${Yi}px; + stroke-dashoffset: -${Yi*.35}px; +} +100% { + stroke-dasharray: ${Yi*.01}px, ${Yi}px; + stroke-dashoffset: -${Yi*.99}px; +} +`;_a.path` + stroke-dasharray: ${Yi*.01}px, ${Yi}; + stroke-dashoffset: 0; + animation: ${oU} ${rU}s linear infinite; +`;const sU=y1` +to { + transform: rotate(360deg); + } +`;_a.svg` + animation: ${sU} 0.75s steps(12, end) infinite; + animation-duration: 0.75s; +`;_a.polyline` + stroke-width: ${e=>e.width}px; + stroke-linecap: round; + + &:nth-child(12n + 0) { + stroke-opacity: 0.08; + } + + &:nth-child(12n + 1) { + stroke-opacity: 0.17; + } + + &:nth-child(12n + 2) { + stroke-opacity: 0.25; + } + + &:nth-child(12n + 3) { + stroke-opacity: 0.33; + } + + &:nth-child(12n + 4) { + stroke-opacity: 0.42; + } + + &:nth-child(12n + 5) { + stroke-opacity: 0.5; + } + + &:nth-child(12n + 6) { + stroke-opacity: 0.58; + } + + &:nth-child(12n + 7) { + stroke-opacity: 0.66; + } + + &:nth-child(12n + 8) { + stroke-opacity: 0.75; + } + + &:nth-child(12n + 9) { + stroke-opacity: 0.83; + } + + &:nth-child(12n + 11) { + stroke-opacity: 0.92; + } +`;const aU=y1` +to { + stroke-dashoffset: 136; + } +`;_a.polygon` + stroke-dasharray: 17; + animation: ${aU} 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite; +`;_a.svg` + transform-origin: 50% 65%; +`;const lU=({visible:e=!0,height:t="80",width:n="80",wrapperClass:i="",wrapperStyle:r={},ariaLabel:o="magnifying-glass-loading",glassColor:s="#c0efff",color:l="#e15b64"})=>e?g.jsx("svg",{width:n,height:t,xmlns:iU,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",className:i,style:r,"aria-label":o,"data-testid":"magnifying-glass-svg",...nU,children:g.jsx("g",{transform:"translate(50,50)",children:g.jsx("g",{transform:"scale(0.82)",children:g.jsx("g",{transform:"translate(-50,-50)",children:g.jsxs("g",{transform:"translate(16.3636 -20)",children:[g.jsx("animateTransform",{attributeName:"transform",type:"translate",calcMode:"linear",values:"-20 -20;20 -20;0 20;-20 -20",keyTimes:"0;0.33;0.66;1",dur:"1s",begin:"0s",repeatCount:"indefinite"}),g.jsx("path",{d:"M44.19,26.158c-4.817,0-9.345,1.876-12.751,5.282c-3.406,3.406-5.282,7.934-5.282,12.751 c0,4.817,1.876,9.345,5.282,12.751c3.406,3.406,7.934,5.282,12.751,5.282s9.345-1.876,12.751-5.282 c3.406-3.406,5.282-7.934,5.282-12.751c0-4.817-1.876-9.345-5.282-12.751C53.536,28.033,49.007,26.158,44.19,26.158z",fill:s}),g.jsx("path",{d:"M78.712,72.492L67.593,61.373l-3.475-3.475c1.621-2.352,2.779-4.926,3.475-7.596c1.044-4.008,1.044-8.23,0-12.238 c-1.048-4.022-3.146-7.827-6.297-10.979C56.572,22.362,50.381,20,44.19,20C38,20,31.809,22.362,27.085,27.085 c-9.447,9.447-9.447,24.763,0,34.21C31.809,66.019,38,68.381,44.19,68.381c4.798,0,9.593-1.425,13.708-4.262l9.695,9.695 l4.899,4.899C73.351,79.571,74.476,80,75.602,80s2.251-0.429,3.11-1.288C80.429,76.994,80.429,74.209,78.712,72.492z M56.942,56.942 c-3.406,3.406-7.934,5.282-12.751,5.282s-9.345-1.876-12.751-5.282c-3.406-3.406-5.282-7.934-5.282-12.751 c0-4.817,1.876-9.345,5.282-12.751c3.406-3.406,7.934-5.282,12.751-5.282c4.817,0,9.345,1.876,12.751,5.282 c3.406,3.406,5.282,7.934,5.282,12.751C62.223,49.007,60.347,53.536,56.942,56.942z",fill:l})]})})})})}):null;function b1({visible:e,loadingText:t="Loading...",height:n=80,width:i=80,radius:r=40,color:o="#4fa94d",ariaLabel:s="watch-loading",wrapperClass:l}){return g.jsxs("div",{className:`fixed inset-0 flex flex-col justify-center items-center bg-black bg-opacity-50 backdrop-blur-md z-50 ${l}`,children:[g.jsx("h2",{className:"font-serif text-2xl text-white mb-5",children:t}),g.jsx(lU,{visible:e,height:n,width:i,radius:r,color:o,ariaLabel:s,className:"mt-5"})]})}b1.propTypes={visible:fe.bool.isRequired,height:fe.number,width:fe.number,radius:fe.number,color:fe.string,ariaLabel:fe.string,wrapperClass:fe.string};const cU=qx(g.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function uU(e){return Dt("MuiAvatar",e)}jt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const dU=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],hU=e=>{const{classes:t,variant:n,colorDefault:i}=e;return Kt({root:["root",n,i&&"colorDefault"],img:["img"],fallback:["fallback"]},uU,t)},fU=Ie("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:F({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:F({backgroundColor:e.palette.grey[400]},e.applyDarkStyles({backgroundColor:e.palette.grey[600]})))}]})),pU=Ie("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),mU=Ie(cU,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function gU({crossOrigin:e,referrerPolicy:t,src:n,srcSet:i}){const[r,o]=C.useState(!1);return C.useEffect(()=>{if(!n&&!i)return;o(!1);let s=!0;const l=new Image;return l.onload=()=>{s&&o("loaded")},l.onerror=()=>{s&&o("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,i&&(l.srcset=i),()=>{s=!1}},[e,t,n,i]),r}const qS=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiAvatar"}),{alt:r,children:o,className:s,component:l="div",imgProps:c,sizes:u,src:h,srcSet:f,variant:m="circular"}=i,b=Oe(i,dU);let v=null;const y=gU(F({},c,{src:h,srcSet:f})),w=h||f,x=w&&y!=="error",S=F({},i,{colorDefault:!x,component:l,variant:m}),k=hU(S);return x?v=g.jsx(pU,F({alt:r,srcSet:f,src:h,sizes:u,ownerState:S,className:k.img},c)):o!=null?v=o:w&&r?v=r[0]:v=g.jsx(mU,{ownerState:S,className:k.fallback}),g.jsx(fU,F({as:l,ownerState:S,className:Ce(k.root,s),ref:n},b,{children:v}))});function vU(e){return Dt("MuiCardContent",e)}jt("MuiCardContent",["root"]);const yU=["className","component"],bU=e=>{const{classes:t}=e;return Kt({root:["root"]},vU,t)},xU=Ie("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),_U=C.forwardRef(function(t,n){const i=$t({props:t,name:"MuiCardContent"}),{className:r,component:o="div"}=i,s=Oe(i,yU),l=F({},i,{component:o}),c=bU(l);return g.jsx(xU,F({as:o,className:Ce(c.root,r),ownerState:l,ref:n},s))}),wU=qx(g.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function N4({userDetails:e,setUserData:t}){const n=xa(),i=Kp(),r=new URLSearchParams(n.search).get("upload")?!0:null,[o,s]=C.useState(r||!1),[l,c]=C.useState(!1),[u,h]=C.useState(e.profile_image),[f,m]=C.useState(!1),b=localStorage.getItem("csrftoken"),v=(k,T)=>{const P=k.split(","),O=P[0].match(/:(.*?);/)[1],M=atob(P[1]);let R=M.length;const N=new Uint8Array(R);for(;R--;)N[R]=M.charCodeAt(R);return new File([N],T,{type:O})},y=async k=>{if(c(!0),k.length>0){const T=k[0].data_url;try{h(T)}catch(P){console.error("Error uploading image to Cloudinary:",P)}}},w=()=>{s(!1),c(!1),h(e.profile_image),x()},x=()=>{r&&i(n.pathname)},S=async()=>{m(!0);try{const k=await $u(v(u,"image.png"));t({...e,profile_image:k});const P=await fetch("https://paws-backend.azurewebsites.net/profile/",{method:"POST",headers:{Authorization:`Token ${b}`,"Content-Type":"application/json"},body:JSON.stringify({profile_image:k})});if(s(!1),c(!1),m(!1),x(),P.ok){const O=await P.json();console.log(O)}}catch(k){console.error("Error:",k),s(!1),m(!1)}};return g.jsxs(g.Fragment,{children:[g.jsxs("div",{onClick:()=>s(!0),className:"rounded-[50%] shadow-dashBoardCardImageShadow flex justify-center items-center cursor-pointer relative group",children:[g.jsx(qS,{alt:e.name,src:e.profile_image,sx:{color:"rgba(255,255,255,0.8)",width:"8rem",height:"8rem",fontSize:"3rem",bgcolor:Do[700],textTransform:"capitalize"},children:!e.profile_image&&e.name[0]}),g.jsx("div",{className:"absolute rounded-[50%] top-0 left-0 z-10 w-full h-full bg-blue-900 bg-opacity-80 flex justify-center items-center opacity-0 transform group-hover:opacity-100",style:{transition:"opacity 0.4s, transform 0.4s"},children:g.jsxs("div",{className:"flex justify-center items-center flex-col text-white opacity-60 gap-1 pt-4",children:[g.jsx("span",{children:"Upload Photo"}),g.jsx(Cv,{fontSize:25})]})})]}),g.jsxs(q5,{open:o,onClose:()=>s(!1),children:[g.jsx(Q5,{children:g.jsx("div",{className:"flex justify-end cursor-pointer",children:g.jsx(wU,{onClick:w})})}),g.jsx(X5,{sx:{width:"400px",height:"450px"},children:g.jsx("div",{className:"h-full",children:g.jsx(ZP,{value:[e],onChange:y,dataURLKey:"data_url",children:({onImageUpload:k})=>g.jsxs("div",{className:"flex justify-around items-center flex-col w-100 h-full",children:[g.jsx("div",{className:"shadow-dashBoardCardImageShadow rounded-[50%]",children:g.jsx(qS,{alt:e.name,src:u,sx:{color:"rgba(255,255,255,0.8)",width:"15rem",height:"15rem",fontSize:"5rem",bgcolor:Do[700],textTransform:"capitalize"},children:!u&&e.name[0]})}),g.jsxs("div",{className:"flex gap-6",children:[g.jsx("button",{className:"px-9 py-5 rounded-[35px] drop-shadow-md shadow-buttonShadow text-[1.2rem] leading-[1.3rem] tracking-widest",onClick:w,children:"Cancel"}),l?g.jsx("button",{className:"px-8 py-5 text-white bg-gradient-to-b from-green-600 to-green-700 bg-opacity-35 rounded-[35px] drop-shadow-md shadow-buttonShadow text-[1.2rem] leading-[1.3rem] tracking-widest",onClick:S,children:f?"Saving...":g.jsxs("div",{className:"flex gap-2",children:[g.jsx("span",{children:"Save"}),g.jsx(Cv,{})]})}):g.jsxs("button",{className:"flex gap-2 px-8 py-5 text-white bg-gradient-to-b from-green-600 to-green-700 bg-opacity-35 rounded-[35px] drop-shadow-md shadow-buttonShadow text-[1.2rem] leading-[1.3rem] tracking-widest",onClick:k,children:[g.jsx("span",{children:"Upload"}),g.jsx(Cv,{})]})]})]})})})})]})]})}function SU(){const[e,t]=C.useState(null),{userData:n,loading:i,error:r}=C.useContext(Kl);if(C.useEffect(()=>{!i&&!r&&n&&t(n)},[n,i,r]),r)return g.jsx("h1",{children:r});if(i)return g.jsx(b1,{visible:!0});if(e)return g.jsxs("div",{className:"flex flex-col font-Calistoga items-center justify-center gap-[30px] h-screen bg-custom-gradient",children:[g.jsx(N4,{userDetails:e,setUserData:t}),g.jsxs("div",{className:" min-w-80 p-5 border-1 flex flex-col gap-[15px] rounded-[30px] ring-1 ring-gray-300 bg-opacity-35 bg-white shadow-dashBoardCardImageShadow backdrop-blur-[5px]",children:[g.jsxs("div",{className:"flex gap-1 items-center text-xl drop-shadow-md",children:[g.jsx("span",{className:"rounded-full bg-blue-900 p-2 mr-2",children:g.jsx(sf,{color:"rgba(255,255,255,0.7)"})}),g.jsx("span",{children:e.name})]}),g.jsxs("div",{className:"flex gap-1 items-center text-xl drop-shadow-md",children:[g.jsx("span",{className:"rounded-full bg-blue-900 p-1 mr-2",children:g.jsx(a4,{fontSize:"30px",color:"rgba(255,255,255,0.7)"})}),e.email]}),g.jsxs("div",{className:"flex items-center gap-1 text-xl drop-shadow-md",children:[g.jsx("span",{className:"rounded-full bg-blue-900 p-2 mr-2",children:g.jsx(a5,{fontSize:"22px",color:"rgba(255,255,255,0.7)"})}),g.jsx("span",{children:e.phone_number})]}),g.jsxs("div",{className:"flex items-center gap-1 text-xl drop-shadow-md",children:[g.jsx("span",{className:"rounded-full bg-blue-900 p-2 mr-2",children:g.jsx(XV,{fontSize:"24px",color:"rgba(255,255,255,0.7)"})}),g.jsxs("span",{children:["Reports: ",e.no_reports]})]}),g.jsxs("p",{className:"flex items-center gap-1 drop-shadow-sm text-xl",children:[g.jsx("span",{className:"rounded-full bg-blue-900 p-2 mr-2",children:g.jsx(nW,{fontSize:"28px",color:"rgba(255,255,255,0.7)"})}),g.jsxs("span",{className:"tracking-wider",children:["Coins: ",e.coins]})]})]}),g.jsxs("div",{className:"flex gap-3",children:[g.jsx("button",{className:"px-6 py-5 text-white bg-gradient-to-b from-green-600 to-green-700 rounded-[35px] drop-shadow-md shadow-buttonShadow text-[1.3rem] leading-[1.3rem] tracking-widest",children:g.jsx(ct,{to:"/view-reports",children:"My Reports"})}),g.jsx("button",{className:"px-6 py-5 text-white bg-gradient-to-b from-green-600 to-green-700 rounded-[35px] drop-shadow-md shadow-buttonShadow text-[1.3rem] leading-[1.3rem] tracking-widest",children:g.jsx(ct,{to:"/logout",children:"Logout"})})]})]})}const Ed=C.createContext(),CU=({children:e})=>{const[t,n]=C.useState(null),[i,r]=C.useState(!0),[o,s]=C.useState(null);return C.useEffect(()=>{let l=!0;return(async()=>{const u=localStorage.getItem("csrftoken");if(!u){s("You are not logged in."),r(!1);return}if(localStorage.getItem("userType")==="user"){r(!1);return}try{const m=await Me.get("https://paws-backend.azurewebsites.net/info/ngo/",{headers:{Authorization:`Token ${u}`},withCredentials:!0});l&&(n(m.data),r(!1))}catch(f){l&&(s(f.message),r(!1))}})(),()=>{l=!1}},[]),g.jsx(Ed.Provider,{value:{NgoData:t,loading:i,error:o},children:e})},XS=()=>{const[e,t]=C.useState(null),{NgoData:n,loading:i,error:r}=C.useContext(Ed),[o,s]=C.useState();if(C.useEffect(()=>{!i&&!r&&n&&(t(n),s(n.animals_supported))},[n,i,r]),r)return g.jsx("h1",{children:r});if(i)return g.jsx(b1,{visible:!0});if(e)return g.jsx(g.Fragment,{children:g.jsxs("div",{className:"flex flex-col font-Calistoga items-center justify-center gap-[30px] min-h-screen bg-custom-gradient p-4 pb-[70px]",children:[g.jsxs("div",{className:"w-full md:w-[80%] mt-8 break-normal border-1 flex flex-col gap-[15px] rounded-[30px] bg-opacity-35 bg-white shadow-dashBoardCardImageShadow backdrop-blur-[5px] break-word",children:[g.jsxs("div",{className:"flex px-4 md:px-5 pt-5 gap-5 items-center",children:[g.jsx(N4,{userDetails:e,setUserData:t}),g.jsx("p",{className:"text-[30px] break-words",children:e.name})]}),g.jsxs("div",{className:"flex flex-col gap-2",children:[g.jsxs("div",{className:" px-5 py-2 flex border-t border-[#2e1ee49c] w-full flex-col gap-2",children:[g.jsx("p",{className:"text-xl tracking-wider drop-shadow-md",children:"Contact Details:"}),g.jsxs("div",{className:"flex max-w-full break-words gap-1 items-center text-xl drop-shadow-md",children:[g.jsx("span",{className:"rounded-full bg-blue-900 p-1 mr-2",children:g.jsx(a4,{fontSize:"30px",color:"rgba(255,255,255,0.7)"})}),g.jsx("span",{className:"max-w-[85%]",children:e.email})]}),g.jsxs("div",{className:"flex items-center gap-1 text-xl drop-shadow-md",children:[g.jsx("span",{className:"rounded-full bg-blue-900 p-2 mr-2",children:g.jsx(a5,{fontSize:"22px",color:"rgba(255,255,255,0.7)"})}),g.jsx("span",{className:"max-w-[85%]",children:e.phone_number})]})]}),g.jsxs("div",{className:"px-5 py-2 flex border-t border-blue-800 items-center gap-1 text-[18px] drop-shadow-md",children:[g.jsx("p",{className:"tracking-wider",children:"Reports Received :"}),g.jsx("span",{className:"max-w-[60%] break-words",children:e.no_received_reports})]}),g.jsxs("div",{className:"px-5 py-2 flex border-t border-blue-800 items-center gap-1 text-[18px] drop-shadow-md",children:[g.jsx("p",{className:"tracking-wider",children:"Date Joined :"}),g.jsx("span",{children:new Date(e.date_joined).toLocaleDateString("en-us",{year:"numeric",month:"long",day:"numeric"})})]}),g.jsxs("div",{className:"px-5 py-2 flex border-t border-blue-800 gap-1 text-[18px] drop-shadow-md",children:[g.jsx("p",{className:"tracking-wider",children:"Unique Darpan Id :"}),g.jsxs("span",{className:"max-w-[80%] ml-1 break-words",children:[e.website," "]})]}),g.jsxs("div",{className:"px-5 py-2 pb-3 flex border-t border-blue-800 gap-1 text-[18px] drop-shadow-md",children:[g.jsx("p",{className:"tracking-wider",children:"Animal Supported:"}),g.jsx("span",{className:"ml-1 max-w-[80%] break-words flex flex-wrap",children:o&&o.map((l,c)=>g.jsxs("p",{className:"mr-1",children:[l,c!==o.length-1&&","]},c))})]})]})]}),g.jsx("div",{className:"",children:g.jsx(vn,{clas:"px-8 py-4 text-white ",text:g.jsx(ct,{to:"/logout",className:"tracking-widest",children:"Logout"})})})]})})};function kU(){const e=Kp();return C.useEffect(()=>{const t=localStorage.getItem("csrftoken");if(!t)return;Me.post("https://paws-backend.azurewebsites.net/logout/",{},{headers:{Authorization:`Token ${t}`},withCredentials:!0}).then(()=>{e("/")}).catch(i=>{console.error(i)}).finally(()=>{localStorage.clear()})},[e]),null}const EU=async(e,t,n)=>{try{const r=new Date().toISOString().replace(/Z$/,"")+"Z",o=await Me.patch(`https://paws-backend.azurewebsites.net/api/animals/${e}/`,{status:t,response_time:r});o.status===200?n(s=>s.map(l=>l.id===e?{...l,status:t,response_time:r}:l)):console.error("Error updating status:",o.statusText)}catch(i){console.error("Error updating status:",i.message)}},QS=({report:e,index:t,statusOptions:n,toggleExpand:i,setReports:r})=>{const[o,s]=C.useState(e.status||"");return g.jsxs(e4,{className:`shadow-dashBoardCardShadow ${e.expanded?"h-auto":""}`,style:{display:"flex",flexDirection:"column",position:"relative",border:"1px solid #75757575",backgroundImage:"linear-gradient(to bottom ,#1E85E420,#1E85E440)",borderRadius:"15px",marginBottom:"30px",cursor:"pointer",opacity:"0.95",transition:"transform 0.3s",boxShadow:"0px 28.052980422973633px 28.052980422973633px 0px #1E85E426"},children:[g.jsxs(_U,{children:[g.jsx("div",{className:"flex justify-center ",children:g.jsx("img",{src:e.image,alt:e.description,className:"h-auto w-[18.3rem] max-h-[22rem] rounded-[17px] object-cover object-center shadow-dashBoardCardImageShadow mb-4 "})}),g.jsxs("p",{children:[g.jsx("span",{className:"text-center text-[25px] font-breeSerif ",children:"Animal Type : "}),g.jsx("span",{className:"text-center text-[25px] font-breeSerif",children:e.animal_type})]}),g.jsx("p",{children:g.jsx("a",{href:`https://www.google.com/maps/search/?api=1&query=${e.latitude},${e.longitude}`,target:"_blank",rel:"noopener noreferrer",className:"text-[#40025D] underline text-[15px] leading-relaxed ",children:g.jsx("b",{children:"Click here to get directions"})})}),g.jsxs("p",{className:"text-[#0B0553F5] font-ChauPhilomeneOne leading-relaxed text-[17px]",children:["Landmark : ",e.landmark]}),e.expanded&&g.jsxs(g.Fragment,{children:[g.jsxs("p",{className:"text-[#0B0553F5] font-ChauPhilomeneOne leading-relaxed text-[17px]",children:["Description : ",e.description]}),g.jsxs("p",{className:"text-[#0B0553F5] font-ChauPhilomeneOne leading-relaxed text-[17px]",children:["Condition : ",e.condition]}),g.jsxs("p",{className:"text-[#0B0553F5] font-ChauPhilomeneOne leading-relaxed text-[17px]",children:["Number of Animals : ",e.numberOfAnimals==="More"||e.numberOfAnimals==="more"?"More than two":`${e.numberOfAnimals}`]}),g.jsxs("p",{className:"text-[#0B0553F5] font-ChauPhilomeneOne leading-relaxed text-[17px]",children:["Name : ",e.user_name]}),g.jsxs("p",{className:"text-[#0B0553F5] font-ChauPhilomeneOne leading-relaxed text-[17px]",children:["Phone Number : ",e.user_phone]}),g.jsxs("p",{className:"text-[#0B0553F5] font-ChauPhilomeneOne leading-relaxed text-[17px]",children:["Email : ",e.user_email]}),g.jsxs("p",{className:"text-[#0B0553F5] font-ChauPhilomeneOne leading-relaxed text-[17px]",children:["Reported At : ",e.reported_time]}),g.jsxs("p",{className:"text-[#0B0553F5] font-ChauPhilomeneOne leading-relaxed text-[17px]",children:["Status:",g.jsx("select",{value:o,onChange:l=>{const c=l.target.value;s(c),EU(e.id,c,r)},children:n.map((l,c)=>g.jsx("option",{value:l,children:l},c))})]})]})]}),g.jsx("div",{children:g.jsx(d1,{onClick:()=>i(e.id),className:`absolute bottom-2 right-3 ${e.expanded?"rotate-180":""}`})})]},e.id)},Oc=e=>g.jsxs(no,{speed:3,opacity:.1,height:300,width:"100%",backgroundColor:"#b8b5b5;",foregroundColor:"#ffffff",...e,children:[g.jsx("rect",{x:"4",y:"3",rx:"15",ry:"15",width:"344",height:"200"}),g.jsx("rect",{x:"7",y:"210",rx:"10",ry:"10",width:"220",height:"20"}),g.jsx("rect",{x:"7",y:"262",rx:"10",ry:"10",width:"304",height:"20"}),g.jsx("rect",{x:"7",y:"235",rx:"10",ry:"10",width:"249",height:"20"})]});function TU(){const{NgoData:e}=C.useContext(Ed),[t,n]=C.useState([]),[i,r]=C.useState(),[o]=C.useState(["Received","In Progress","Not Found","Rescued","dead"]),[s,l]=C.useState(!0),[c,u]=C.useState([]),[h,f]=C.useState([!1,!1,!1]),m=["In Progress","Received","Rescued"];C.useEffect(()=>{const y=async()=>{try{if(e){const k=(await Me.get(`https://paws-backend.azurewebsites.net/api/animals/?assigned_to=${e.email}`)).data.reverse();r(k.length);const T=k.map(P=>({...P,reported_time:new Date(P.reported_time).toLocaleString("en-US",{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}),expanded:!1}));n(T),l(!1)}}catch(x){console.error("Error fetching reports:",x)}};y();const w=U5(c1,async x=>{console.log("Background message received:",x),x.notification.body==="A new report has been made near you."&&(await y(),tt.success("New report received near you."))});return()=>{w()}},[e]);const b=y=>{const w=[...t];w.map(x=>(x.id===y&&(x.expanded=!x.expanded),x)),n(w)},v=y=>{f(w=>{let x=[...w];return x[y]=!x[y],x}),u(w=>{let x=[...w];return x.includes(m[y])?x=x.filter(S=>S!==m[y]):x.unshift(m[y]),x})};return g.jsxs(g.Fragment,{children:[g.jsx(o4,{position:"top-right",autoClose:5e3}),g.jsx("div",{className:"fixed top-0 left-0 w-screen h-screen bg-custom-gradient z-0"}),g.jsxs("div",{className:"relative z-10 w-screen min-h-screen p-5 flex flex-col overflow-y-auto",children:[g.jsx("h2",{className:"mb-2 mt-3 mx-auto text-5xl font-bayon line-heigh-[6.9rem] text-[#40025D] tracking-widest",children:"NGO Dashboard"}),t.length>0&&g.jsx("div",{className:"flex w-full justify-around px-2 py-3 ",children:m.map((y,w)=>{const x=t.filter(S=>S.status===y).length;return g.jsxs("button",{className:`${h[w]?"bg-gray-400":"bg-gray-300"} bg-opacity-47 px-3 py-1 border border-gray-400 relative text-[20px] shadow-dashBoardCardImageShadow font-ChauPhilomeneOne rounded-[10px]`,onClick:()=>{v(w)},children:[y,x>0&&y!=="Rescued"&&g.jsx("div",{className:"px-2 py-[3px] text-center",style:{position:"absolute",top:"-16px",right:"-8px",backgroundColor:"red",fontSize:"14px",borderRadius:"50%",color:"white"},children:x})]},w)})}),s?g.jsxs("div",{children:[g.jsx(Oc,{}),g.jsx(Oc,{}),g.jsx(Oc,{}),g.jsx(Oc,{}),g.jsx(Oc,{})]}):i===0?g.jsx("p",{className:"text-2xl text-center font-bayon tracking-widest mt-[15rem]",children:"NO REPORTS ASSIGNED YET."}):c.length!==0?t.filter(y=>c.includes(y.status)).map((y,w)=>g.jsx(QS,{report:y,index:w,statusOptions:o,toggleExpand:b,setReports:n},y.id)):t.map((y,w)=>g.jsx(QS,{report:y,index:w,statusOptions:o,toggleExpand:b,setReports:n},y.id)),g.jsx("div",{className:"bottom-0 h-32 right-0 p-5"})]})]})}const PU="_image_1o3b2_1",D4={image:PU};function OU(){const[e,t]=C.useState(""),n=o=>{console.log("handleDonate");const s=`upi://pay?pa=rishipaulstudy@okhdfcbank&pn=Rishi%20Paul&am=${o}&cu=INR&aid=uGICAgMCerK_8eg`;window.location.href=s},i=o=>{t(o.target.value);const l=o.target.value.replace(/[^0-9]/g,"");t(l)},r=()=>{console.log("handleCustomAmountDonate"),e!==""&&n(e)};return g.jsxs("div",{className:"relative z-[3] font-baijam h-fit w-full flex flex-col gap-3 justify-center items-center overflow-x-hidden px-4 text-[#40025D] ",children:[g.jsx(Ri,{}),g.jsx("div",{className:"h-screen flex items-center",children:g.jsxs("div",{className:"w-full flex flex-col items-center gap-8",children:[g.jsxs("div",{className:" relative",children:[g.jsx("img",{className:D4.image,src:"./images/Donation.png",alt:""}),g.jsxs("h2",{className:"bg-white font-breeSerif rounded-3xl bg-opacity-57 backdrop-blur-[5px] shadow-dashBoardCardImageShadow px-4 text-center pb-3 pt-3 flex justify-center items-center flex-col",children:[" ",g.jsx("span",{className:"text-[#40025D] font-bold animate-fade-in-donation text-[1.6rem] ",children:"HELP US BRIGHTEN THEIR LIVES!"})]})]}),g.jsx("div",{className:"w-30",children:g.jsxs("div",{className:" bg-white flex flex-col items-center justify-center gap-4 shadow-dashBoardCardImageShadow rounded-[40px] bg-opacity-35 p-2 pb-4 backdrop-blur-[5px]",children:[g.jsx("p",{className:"text-center p-3 text-[#0b0553de] drop-shadow-xl text-[1.20rem] border-b border-black ",children:"Your generous donations play a crucial role in caring for our little friends and helping them find their forever homes."}),g.jsxs("div",{className:"flex flex-col items-center justify-center gap-[1.0rem]",children:[g.jsxs("div",{className:"flex items-center justify-center gap-2",children:[g.jsx(vn,{clas:" text-[#40025D] tracking-wider shadow-xl bg-gradient-to-b from-cyan-400 to-cyan-300 flex items-center text-[1.10rem]",text:g.jsxs(g.Fragment,{children:[" ",g.jsx(kv,{})," 100"]}),onClick:()=>n(100)}),g.jsx(vn,{clas:" text-[#40025D] tracking-wider shadow-xl bg-gradient-to-b from-cyan-400 to-cyan-300 flex items-center text-[1.10rem]",text:g.jsxs(g.Fragment,{children:[" ",g.jsx(kv,{})," 250"]}),onClick:()=>n(250)}),g.jsx(vn,{clas:" text-[#40025D] tracking-wider shadow-xl bg-gradient-to-b from-cyan-400 to-cyan-300 flex items-center text-[1.10rem]",text:g.jsxs(g.Fragment,{children:[" ",g.jsx(kv,{})," 500"]}),onClick:()=>n(500)})]}),g.jsxs("div",{className:"text-center text-[20px]",children:[g.jsx("h2",{children:"OR"}),g.jsx("label",{htmlFor:"password",children:"Custom Amount"})]}),g.jsx("div",{className:"w-full",children:g.jsx("input",{className:"w-full outline-0 placeholder-stone inset-0 text-[#40025D] font-semibold font-baijam bg-white bg-opacity-50 shadow-dashBoardCardImageShadow rounded-[30px] py-3 px-4",type:"text",id:"amount",name:"rupees",placeholder:"Enter custom amount...",value:e,onChange:i,required:!0})}),g.jsx(vn,{clas:"",onClick:r,text:"Donate Now"})]})]})})]})})]})}function fa(e){"@babel/helpers - typeof";return fa=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},fa(e)}function MU(e,t){if(fa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(fa(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function j4(e){var t=MU(e,"string");return fa(t)=="symbol"?t:t+""}function Zc(e,t,n){return t=j4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function me(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function HU(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Wy=C.useLayoutEffect,VU=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],gp=function(){};function WU(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function UU(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r-1}function ZU(e){return Jm(e)?window.innerHeight:e.clientHeight}function F4(e){return Jm(e)?window.pageYOffset:e.scrollTop}function yp(e,t){if(Jm(e)){window.scrollTo(0,t);return}e.scrollTop=t}function GU(e){var t=getComputedStyle(e),n=t.position==="absolute",i=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),!(n&&t.position==="static")&&i.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}function YU(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t}function xh(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:gp,r=F4(e),o=t-r,s=10,l=0;function c(){l+=s;var u=YU(l,r,o,n);yp(e,u),ln.bottom?yp(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):i.top-r1?n-1:0),r=1;r=v)return{placement:"bottom",maxHeight:t};if(N>=v&&!s)return o&&xh(c,I,j),{placement:"bottom",maxHeight:t};if(!s&&N>=i||s&&M>=i){o&&xh(c,I,j);var B=s?M-T:N-T;return{placement:"bottom",maxHeight:B}}if(r==="auto"||s){var W=t,Z=s?O:R;return Z>=i&&(W=Math.min(Z-T-l,t)),{placement:"top",maxHeight:W}}if(r==="bottom")return o&&yp(c,I),{placement:"bottom",maxHeight:t};break;case"top":if(O>=v)return{placement:"top",maxHeight:t};if(R>=v&&!s)return o&&xh(c,$,j),{placement:"top",maxHeight:t};if(!s&&R>=i||s&&O>=i){var V=t;return(!s&&R>=i||s&&O>=i)&&(V=s?O-P:R-P),o&&xh(c,$,j),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return u}function oZ(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var V4=function(t){return t==="auto"?"bottom":t},sZ=function(t,n){var i,r=t.placement,o=t.theme,s=o.borderRadius,l=o.spacing,c=o.colors;return me((i={label:"menu"},Zc(i,oZ(r),"100%"),Zc(i,"position","absolute"),Zc(i,"width","100%"),Zc(i,"zIndex",1),i),n?{}:{backgroundColor:c.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},W4=C.createContext(null),aZ=function(t){var n=t.children,i=t.minMenuHeight,r=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,l=t.menuShouldScrollIntoView,c=t.theme,u=C.useContext(W4)||{},h=u.setPortalPlacement,f=C.useRef(null),m=C.useState(r),b=oo(m,2),v=b[0],y=b[1],w=C.useState(null),x=oo(w,2),S=x[0],k=x[1],T=c.spacing.controlHeight;return Wy(function(){var P=f.current;if(P){var O=s==="fixed",M=l&&!O,R=rZ({maxHeight:r,menuEl:P,minHeight:i,placement:o,shouldScroll:M,isFixedPosition:O,controlHeight:T});y(R.maxHeight),k(R.placement),h==null||h(R.placement)}},[r,o,s,l,i,h,T]),n({ref:f,placerProps:me(me({},t),{},{placement:S||V4(o),maxHeight:v})})},lZ=function(t){var n=t.children,i=t.innerRef,r=t.innerProps;return ge("div",F({},Mt(t,"menu",{menu:!0}),{ref:i},r),n)},cZ=lZ,uZ=function(t,n){var i=t.maxHeight,r=t.theme.spacing.baseUnit;return me({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:r,paddingTop:r})},dZ=function(t){var n=t.children,i=t.innerProps,r=t.innerRef,o=t.isMulti;return ge("div",F({},Mt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},i),n)},U4=function(t,n){var i=t.theme,r=i.spacing.baseUnit,o=i.colors;return me({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},hZ=U4,fZ=U4,pZ=function(t){var n=t.children,i=n===void 0?"No options":n,r=t.innerProps,o=Mr(t,nZ);return ge("div",F({},Mt(me(me({},o),{},{children:i,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),i)},mZ=function(t){var n=t.children,i=n===void 0?"Loading...":n,r=t.innerProps,o=Mr(t,iZ);return ge("div",F({},Mt(me(me({},o),{},{children:i,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),i)},gZ=function(t){var n=t.rect,i=t.offset,r=t.position;return{left:n.left,position:r,top:i,width:n.width,zIndex:1}},vZ=function(t){var n=t.appendTo,i=t.children,r=t.controlElement,o=t.innerProps,s=t.menuPlacement,l=t.menuPosition,c=C.useRef(null),u=C.useRef(null),h=C.useState(V4(s)),f=oo(h,2),m=f[0],b=f[1],v=C.useMemo(function(){return{setPortalPlacement:b}},[]),y=C.useState(null),w=oo(y,2),x=w[0],S=w[1],k=C.useCallback(function(){if(r){var M=KU(r),R=l==="fixed"?0:window.pageYOffset,N=M[m]+R;(N!==(x==null?void 0:x.offset)||M.left!==(x==null?void 0:x.rect.left)||M.width!==(x==null?void 0:x.rect.width))&&S({offset:N,rect:M})}},[r,l,m,x==null?void 0:x.offset,x==null?void 0:x.rect.left,x==null?void 0:x.rect.width]);Wy(function(){k()},[k]);var T=C.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),r&&c.current&&(u.current=pO(r,c.current,k,{elementResize:"ResizeObserver"in window}))},[r,k]);Wy(function(){T()},[T]);var P=C.useCallback(function(M){c.current=M,T()},[T]);if(!n&&l!=="fixed"||!x)return null;var O=ge("div",F({ref:P},Mt(me(me({},t),{},{offset:x.offset,position:l,rect:x.rect}),"menuPortal",{"menu-portal":!0}),o),i);return ge(W4.Provider,{value:v},n?fd.createPortal(O,n):O)},yZ=function(t){var n=t.isDisabled,i=t.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},bZ=function(t){var n=t.children,i=t.innerProps,r=t.isDisabled,o=t.isRtl;return ge("div",F({},Mt(t,"container",{"--is-disabled":r,"--is-rtl":o}),i),n)},xZ=function(t,n){var i=t.theme.spacing,r=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return me({alignItems:"center",display:r&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},_Z=function(t){var n=t.children,i=t.innerProps,r=t.isMulti,o=t.hasValue;return ge("div",F({},Mt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),i),n)},wZ=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},SZ=function(t){var n=t.children,i=t.innerProps;return ge("div",F({},Mt(t,"indicatorsContainer",{indicators:!0}),i),n)},iC,CZ=["size"],kZ=["innerProps","isRtl","size"],EZ={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Z4=function(t){var n=t.size,i=Mr(t,CZ);return ge("svg",F({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:EZ},i))},x1=function(t){return ge(Z4,F({size:20},t),ge("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},G4=function(t){return ge(Z4,F({size:20},t),ge("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Y4=function(t,n){var i=t.isFocused,r=t.theme,o=r.spacing.baseUnit,s=r.colors;return me({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:i?s.neutral60:s.neutral20,padding:o*2,":hover":{color:i?s.neutral80:s.neutral40}})},TZ=Y4,PZ=function(t){var n=t.children,i=t.innerProps;return ge("div",F({},Mt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),n||ge(G4,null))},OZ=Y4,MZ=function(t){var n=t.children,i=t.innerProps;return ge("div",F({},Mt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),n||ge(x1,null))},LZ=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing.baseUnit,s=r.colors;return me({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:i?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},AZ=function(t){var n=t.innerProps;return ge("span",F({},n,Mt(t,"indicatorSeparator",{"indicator-separator":!0})))},RZ=vm(iC||(iC=HU([` + 0%, 80%, 100% { opacity: 0; } + 40% { opacity: 1; } +`]))),IZ=function(t,n){var i=t.isFocused,r=t.size,o=t.theme,s=o.colors,l=o.spacing.baseUnit;return me({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:i?s.neutral60:s.neutral20,padding:l*2})},Wv=function(t){var n=t.delay,i=t.offset;return ge("span",{css:Bx({animation:"".concat(RZ," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},NZ=function(t){var n=t.innerProps,i=t.isRtl,r=t.size,o=r===void 0?4:r,s=Mr(t,kZ);return ge("div",F({},Mt(me(me({},s),{},{innerProps:n,isRtl:i,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),ge(Wv,{delay:0,offset:i}),ge(Wv,{delay:160,offset:!0}),ge(Wv,{delay:320,offset:!i}))},DZ=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.theme,s=o.colors,l=o.borderRadius,c=o.spacing;return me({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:i?s.neutral5:s.neutral0,borderColor:i?s.neutral10:r?s.primary:s.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:r?s.primary:s.neutral30}})},jZ=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.innerRef,s=t.innerProps,l=t.menuIsOpen;return ge("div",F({ref:o},Mt(t,"control",{control:!0,"control--is-disabled":i,"control--is-focused":r,"control--menu-is-open":l}),s,{"aria-disabled":i||void 0}),n)},zZ=jZ,$Z=["data"],BZ=function(t,n){var i=t.theme.spacing;return n?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},FZ=function(t){var n=t.children,i=t.cx,r=t.getStyles,o=t.getClassNames,s=t.Heading,l=t.headingProps,c=t.innerProps,u=t.label,h=t.theme,f=t.selectProps;return ge("div",F({},Mt(t,"group",{group:!0}),c),ge(s,F({},l,{selectProps:f,theme:h,getStyles:r,getClassNames:o,cx:i}),u),ge("div",null,n))},HZ=function(t,n){var i=t.theme,r=i.colors,o=i.spacing;return me({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},VZ=function(t){var n=B4(t);n.data;var i=Mr(n,$Z);return ge("div",F({},Mt(t,"groupHeading",{"group-heading":!0}),i))},WZ=FZ,UZ=["innerRef","isDisabled","isHidden","inputClassName"],ZZ=function(t,n){var i=t.isDisabled,r=t.value,o=t.theme,s=o.spacing,l=o.colors;return me(me({visibility:i?"hidden":"visible",transform:r?"translateZ(0)":""},GZ),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:l.neutral80})},K4={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},GZ={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":me({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},K4)},YZ=function(t){return me({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},K4)},KZ=function(t){var n=t.cx,i=t.value,r=B4(t),o=r.innerRef,s=r.isDisabled,l=r.isHidden,c=r.inputClassName,u=Mr(r,UZ);return ge("div",F({},Mt(t,"input",{"input-container":!0}),{"data-value":i||""}),ge("input",F({className:n({input:!0},c),ref:o,style:YZ(l),disabled:s},u)))},qZ=KZ,XZ=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,s=i.colors;return me({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},QZ=function(t,n){var i=t.theme,r=i.borderRadius,o=i.colors,s=t.cropWithEllipsis;return me({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},JZ=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,s=i.colors,l=t.isFocused;return me({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:l?s.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},q4=function(t){var n=t.children,i=t.innerProps;return ge("div",i,n)},eG=q4,tG=q4;function nG(e){var t=e.children,n=e.innerProps;return ge("div",F({role:"button"},n),t||ge(x1,{size:14}))}var iG=function(t){var n=t.children,i=t.components,r=t.data,o=t.innerProps,s=t.isDisabled,l=t.removeProps,c=t.selectProps,u=i.Container,h=i.Label,f=i.Remove;return ge(u,{data:r,innerProps:me(me({},Mt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:c},ge(h,{data:r,innerProps:me({},Mt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},n),ge(f,{data:r,innerProps:me(me({},Mt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:c}))},rG=iG,oG=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.isSelected,s=t.theme,l=s.spacing,c=s.colors;return me({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?c.primary:r?c.primary25:"transparent",color:i?c.neutral20:o?c.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?c.primary:c.primary50}})},sG=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.isSelected,s=t.innerRef,l=t.innerProps;return ge("div",F({},Mt(t,"option",{option:!0,"option--is-disabled":i,"option--is-focused":r,"option--is-selected":o}),{ref:s,"aria-disabled":i},l),n)},aG=sG,lG=function(t,n){var i=t.theme,r=i.spacing,o=i.colors;return me({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},cG=function(t){var n=t.children,i=t.innerProps;return ge("div",F({},Mt(t,"placeholder",{placeholder:!0}),i),n)},uG=cG,dG=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing,s=r.colors;return me({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:i?s.neutral40:s.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},hG=function(t){var n=t.children,i=t.isDisabled,r=t.innerProps;return ge("div",F({},Mt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),r),n)},fG=hG,pG={ClearIndicator:MZ,Control:zZ,DropdownIndicator:PZ,DownChevron:G4,CrossIcon:x1,Group:WZ,GroupHeading:VZ,IndicatorsContainer:SZ,IndicatorSeparator:AZ,Input:qZ,LoadingIndicator:NZ,Menu:cZ,MenuList:dZ,MenuPortal:vZ,LoadingMessage:mZ,NoOptionsMessage:pZ,MultiValue:rG,MultiValueContainer:eG,MultiValueLabel:tG,MultiValueRemove:nG,Option:aG,Placeholder:uG,SelectContainer:bZ,SingleValue:fG,ValueContainer:_Z},mG=function(t){return me(me({},pG),t.components)},rC=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function gG(e,t){return!!(e===t||rC(e)&&rC(t))}function vG(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return s?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(t){var n=t.context,i=t.focused,r=t.options,o=t.label,s=o===void 0?"":o,l=t.selectValue,c=t.isDisabled,u=t.isSelected,h=t.isAppleDevice,f=function(y,w){return y&&y.length?"".concat(y.indexOf(w)+1," of ").concat(y.length):""};if(n==="value"&&l)return"value ".concat(s," focused, ").concat(f(l,i),".");if(n==="menu"&&h){var m=c?" disabled":"",b="".concat(u?" selected":"").concat(m);return"".concat(s).concat(b,", ").concat(f(r,i),".")}return""},onFilter:function(t){var n=t.inputValue,i=t.resultsMessage;return"".concat(i).concat(n?" for search term "+n:"",".")}},wG=function(t){var n=t.ariaSelection,i=t.focusedOption,r=t.focusedValue,o=t.focusableOptions,s=t.isFocused,l=t.selectValue,c=t.selectProps,u=t.id,h=t.isAppleDevice,f=c.ariaLiveMessages,m=c.getOptionLabel,b=c.inputValue,v=c.isMulti,y=c.isOptionDisabled,w=c.isSearchable,x=c.menuIsOpen,S=c.options,k=c.screenReaderStatus,T=c.tabSelectsValue,P=c.isLoading,O=c["aria-label"],M=c["aria-live"],R=C.useMemo(function(){return me(me({},_G),f||{})},[f]),N=C.useMemo(function(){var Z="";if(n&&R.onChange){var V=n.option,G=n.options,z=n.removedValue,q=n.removedValues,H=n.value,J=function(ye){return Array.isArray(ye)?null:ye},X=z||V||J(H),re=X?m(X):"",ne=G||q||void 0,oe=ne?ne.map(m):[],K=me({isDisabled:X&&y(X,l),label:re,labels:oe},n);Z=R.onChange(K)}return Z},[n,R,y,l,m]),I=C.useMemo(function(){var Z="",V=i||r,G=!!(i&&l&&l.includes(i));if(V&&R.onFocus){var z={focused:V,label:m(V),isDisabled:y(V,l),isSelected:G,options:o,context:V===i?"menu":"value",selectValue:l,isAppleDevice:h};Z=R.onFocus(z)}return Z},[i,r,m,y,R,o,l,h]),$=C.useMemo(function(){var Z="";if(x&&S.length&&!P&&R.onFilter){var V=k({count:o.length});Z=R.onFilter({inputValue:b,resultsMessage:V})}return Z},[o,b,x,R,S,k,P]),j=(n==null?void 0:n.action)==="initial-input-focus",B=C.useMemo(function(){var Z="";if(R.guidance){var V=r?"value":x?"menu":"input";Z=R.guidance({"aria-label":O,context:V,isDisabled:i&&y(i,l),isMulti:v,isSearchable:w,tabSelectsValue:T,isInitialFocus:j})}return Z},[O,i,r,v,y,w,x,R,l,T,j]),W=ge(C.Fragment,null,ge("span",{id:"aria-selection"},N),ge("span",{id:"aria-focused"},I),ge("span",{id:"aria-results"},$),ge("span",{id:"aria-guidance"},B));return ge(C.Fragment,null,ge(oC,{id:u},j&&W),ge(oC,{"aria-live":M,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!j&&W))},SG=wG,Uy=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],CG=new RegExp("["+Uy.map(function(e){return e.letters}).join("")+"]","g"),X4={};for(var Uv=0;Uv-1}},PG=["innerRef"];function OG(e){var t=e.innerRef,n=Mr(e,PG),i=tZ(n,"onExited","in","enter","exit","appear");return ge("input",F({ref:t},i,{css:Bx({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var MG=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function LG(e){var t=e.isEnabled,n=e.onBottomArrive,i=e.onBottomLeave,r=e.onTopArrive,o=e.onTopLeave,s=C.useRef(!1),l=C.useRef(!1),c=C.useRef(0),u=C.useRef(null),h=C.useCallback(function(w,x){if(u.current!==null){var S=u.current,k=S.scrollTop,T=S.scrollHeight,P=S.clientHeight,O=u.current,M=x>0,R=T-P-k,N=!1;R>x&&s.current&&(i&&i(w),s.current=!1),M&&l.current&&(o&&o(w),l.current=!1),M&&x>R?(n&&!s.current&&n(w),O.scrollTop=T,N=!0,s.current=!0):!M&&-x>k&&(r&&!l.current&&r(w),O.scrollTop=0,N=!0,l.current=!0),N&&MG(w)}},[n,i,r,o]),f=C.useCallback(function(w){h(w,w.deltaY)},[h]),m=C.useCallback(function(w){c.current=w.changedTouches[0].clientY},[]),b=C.useCallback(function(w){var x=c.current-w.changedTouches[0].clientY;h(w,x)},[h]),v=C.useCallback(function(w){if(w){var x=QU?{passive:!1}:!1;w.addEventListener("wheel",f,x),w.addEventListener("touchstart",m,x),w.addEventListener("touchmove",b,x)}},[b,m,f]),y=C.useCallback(function(w){w&&(w.removeEventListener("wheel",f,!1),w.removeEventListener("touchstart",m,!1),w.removeEventListener("touchmove",b,!1))},[b,m,f]);return C.useEffect(function(){if(t){var w=u.current;return v(w),function(){y(w)}}},[t,v,y]),function(w){u.current=w}}var aC=["boxSizing","height","overflow","paddingRight","position"],lC={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function cC(e){e.preventDefault()}function uC(e){e.stopPropagation()}function dC(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function hC(){return"ontouchstart"in window||navigator.maxTouchPoints}var fC=!!(typeof window<"u"&&window.document&&window.document.createElement),Mc=0,$a={capture:!1,passive:!1};function AG(e){var t=e.isEnabled,n=e.accountForScrollbars,i=n===void 0?!0:n,r=C.useRef({}),o=C.useRef(null),s=C.useCallback(function(c){if(fC){var u=document.body,h=u&&u.style;if(i&&aC.forEach(function(v){var y=h&&h[v];r.current[v]=y}),i&&Mc<1){var f=parseInt(r.current.paddingRight,10)||0,m=document.body?document.body.clientWidth:0,b=window.innerWidth-m+f||0;Object.keys(lC).forEach(function(v){var y=lC[v];h&&(h[v]=y)}),h&&(h.paddingRight="".concat(b,"px"))}u&&hC()&&(u.addEventListener("touchmove",cC,$a),c&&(c.addEventListener("touchstart",dC,$a),c.addEventListener("touchmove",uC,$a))),Mc+=1}},[i]),l=C.useCallback(function(c){if(fC){var u=document.body,h=u&&u.style;Mc=Math.max(Mc-1,0),i&&Mc<1&&aC.forEach(function(f){var m=r.current[f];h&&(h[f]=m)}),u&&hC()&&(u.removeEventListener("touchmove",cC,$a),c&&(c.removeEventListener("touchstart",dC,$a),c.removeEventListener("touchmove",uC,$a)))}},[i]);return C.useEffect(function(){if(t){var c=o.current;return s(c),function(){l(c)}}},[t,s,l]),function(c){o.current=c}}var RG=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},IG={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function NG(e){var t=e.children,n=e.lockEnabled,i=e.captureEnabled,r=i===void 0?!0:i,o=e.onBottomArrive,s=e.onBottomLeave,l=e.onTopArrive,c=e.onTopLeave,u=LG({isEnabled:r,onBottomArrive:o,onBottomLeave:s,onTopArrive:l,onTopLeave:c}),h=AG({isEnabled:n}),f=function(b){u(b),h(b)};return ge(C.Fragment,null,n&&ge("div",{onClick:RG,css:IG}),t(f))}var DG={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},jG=function(t){var n=t.name,i=t.onFocus;return ge("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:DG,value:"",onChange:function(){}})},zG=jG;function _1(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function $G(){return _1(/^iPhone/i)}function J4(){return _1(/^Mac/i)}function BG(){return _1(/^iPad/i)||J4()&&navigator.maxTouchPoints>1}function FG(){return $G()||BG()}function HG(){return J4()||FG()}var VG=function(t){return t.label},eM=function(t){return t.label},tM=function(t){return t.value},WG=function(t){return!!t.isDisabled},UG={clearIndicator:OZ,container:yZ,control:DZ,dropdownIndicator:TZ,group:BZ,groupHeading:HZ,indicatorsContainer:wZ,indicatorSeparator:LZ,input:ZZ,loadingIndicator:IZ,loadingMessage:fZ,menu:sZ,menuList:uZ,menuPortal:gZ,multiValue:XZ,multiValueLabel:QZ,multiValueRemove:JZ,noOptionsMessage:hZ,option:oG,placeholder:lG,singleValue:dG,valueContainer:xZ},ZG={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},GG=4,nM=4,YG=38,KG=nM*2,qG={baseUnit:nM,controlHeight:YG,menuGutter:KG},Yv={borderRadius:GG,colors:ZG,spacing:qG},XG={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:nC(),captureMenuScroll:!nC(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:TG(),formatGroupLabel:VG,getOptionLabel:eM,getOptionValue:tM,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:WG,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!qU(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function pC(e,t,n,i){var r=oM(e,t,n),o=sM(e,t,n),s=rM(e,t),l=bp(e,t);return{type:"option",data:t,isDisabled:r,isSelected:o,label:s,value:l,index:i}}function ff(e,t){return e.options.map(function(n,i){if("options"in n){var r=n.options.map(function(s,l){return pC(e,s,t,l)}).filter(function(s){return gC(e,s)});return r.length>0?{type:"group",data:n,options:r,index:i}:void 0}var o=pC(e,n,t,i);return gC(e,o)?o:void 0}).filter(JU)}function iM(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,vl(n.options.map(function(i){return i.data}))):t.push(n.data),t},[])}function mC(e,t){return e.reduce(function(n,i){return i.type==="group"?n.push.apply(n,vl(i.options.map(function(r){return{data:r.data,id:"".concat(t,"-").concat(i.index,"-").concat(r.index)}}))):n.push({data:i.data,id:"".concat(t,"-").concat(i.index)}),n},[])}function QG(e,t){return iM(ff(e,t))}function gC(e,t){var n=e.inputValue,i=n===void 0?"":n,r=t.data,o=t.isSelected,s=t.label,l=t.value;return(!lM(e)||!o)&&aM(e,{label:s,value:l,data:r},i)}function JG(e,t){var n=e.focusedValue,i=e.selectValue,r=i.indexOf(n);if(r>-1){var o=t.indexOf(n);if(o>-1)return n;if(r-1?n:t[0]}var Kv=function(t,n){var i,r=(i=t.find(function(o){return o.data===n}))===null||i===void 0?void 0:i.id;return r||null},rM=function(t,n){return t.getOptionLabel(n)},bp=function(t,n){return t.getOptionValue(n)};function oM(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function sM(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var i=bp(e,t);return n.some(function(r){return bp(e,r)===i})}function aM(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var lM=function(t){var n=t.hideSelectedOptions,i=t.isMulti;return n===void 0?i:n},tY=1,cM=function(e){RU(n,e);var t=NU(n);function n(i){var r;if(LU(this,n),r=t.call(this,i),r.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=HG(),r.controlRef=null,r.getControlRef=function(c){r.controlRef=c},r.focusedOptionRef=null,r.getFocusedOptionRef=function(c){r.focusedOptionRef=c},r.menuListRef=null,r.getMenuListRef=function(c){r.menuListRef=c},r.inputRef=null,r.getInputRef=function(c){r.inputRef=c},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(c,u){var h=r.props,f=h.onChange,m=h.name;u.name=m,r.ariaOnChange(c,u),f(c,u)},r.setValue=function(c,u,h){var f=r.props,m=f.closeMenuOnSelect,b=f.isMulti,v=f.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:v}),m&&(r.setState({inputIsHiddenAfterUpdate:!b}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(c,{action:u,option:h})},r.selectOption=function(c){var u=r.props,h=u.blurInputOnSelect,f=u.isMulti,m=u.name,b=r.state.selectValue,v=f&&r.isOptionSelected(c,b),y=r.isOptionDisabled(c,b);if(v){var w=r.getOptionValue(c);r.setValue(b.filter(function(x){return r.getOptionValue(x)!==w}),"deselect-option",c)}else if(!y)f?r.setValue([].concat(vl(b),[c]),"select-option",c):r.setValue(c,"select-option");else{r.ariaOnChange(c,{action:"select-option",option:c,name:m});return}h&&r.blurInput()},r.removeValue=function(c){var u=r.props.isMulti,h=r.state.selectValue,f=r.getOptionValue(c),m=h.filter(function(v){return r.getOptionValue(v)!==f}),b=Gc(u,m,m[0]||null);r.onChange(b,{action:"remove-value",removedValue:c}),r.focusInput()},r.clearValue=function(){var c=r.state.selectValue;r.onChange(Gc(r.props.isMulti,[],null),{action:"clear",removedValues:c})},r.popValue=function(){var c=r.props.isMulti,u=r.state.selectValue,h=u[u.length-1],f=u.slice(0,u.length-1),m=Gc(c,f,f[0]||null);r.onChange(m,{action:"pop-value",removedValue:h})},r.getFocusedOptionId=function(c){return Kv(r.state.focusableOptionsWithIds,c)},r.getFocusableOptionsWithIds=function(){return mC(ff(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var c=arguments.length,u=new Array(c),h=0;hb||m>b}},r.onTouchEnd=function(c){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(c.target)&&r.menuListRef&&!r.menuListRef.contains(c.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(c){r.userIsDragging||r.onControlMouseDown(c)},r.onClearIndicatorTouchEnd=function(c){r.userIsDragging||r.onClearIndicatorMouseDown(c)},r.onDropdownIndicatorTouchEnd=function(c){r.userIsDragging||r.onDropdownIndicatorMouseDown(c)},r.handleInputChange=function(c){var u=r.props.inputValue,h=c.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(h,{action:"input-change",prevInputValue:u}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(c){r.props.onFocus&&r.props.onFocus(c),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(c){var u=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(c),r.onInputChange("",{action:"input-blur",prevInputValue:u}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(c){if(!(r.blockOptionHover||r.state.focusedOption===c)){var u=r.getFocusableOptions(),h=u.indexOf(c);r.setState({focusedOption:c,focusedOptionId:h>-1?r.getFocusedOptionId(c):null})}},r.shouldHideSelectedOptions=function(){return lM(r.props)},r.onValueInputFocus=function(c){c.preventDefault(),c.stopPropagation(),r.focus()},r.onKeyDown=function(c){var u=r.props,h=u.isMulti,f=u.backspaceRemovesValue,m=u.escapeClearsValue,b=u.inputValue,v=u.isClearable,y=u.isDisabled,w=u.menuIsOpen,x=u.onKeyDown,S=u.tabSelectsValue,k=u.openMenuOnFocus,T=r.state,P=T.focusedOption,O=T.focusedValue,M=T.selectValue;if(!y&&!(typeof x=="function"&&(x(c),c.defaultPrevented))){switch(r.blockOptionHover=!0,c.key){case"ArrowLeft":if(!h||b)return;r.focusValue("previous");break;case"ArrowRight":if(!h||b)return;r.focusValue("next");break;case"Delete":case"Backspace":if(b)return;if(O)r.removeValue(O);else{if(!f)return;h?r.popValue():v&&r.clearValue()}break;case"Tab":if(r.isComposing||c.shiftKey||!w||!S||!P||k&&r.isOptionSelected(P,M))return;r.selectOption(P);break;case"Enter":if(c.keyCode===229)break;if(w){if(!P||r.isComposing)return;r.selectOption(P);break}return;case"Escape":w?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:b}),r.onMenuClose()):v&&m&&r.clearValue();break;case" ":if(b)return;if(!w){r.openMenu("first");break}if(!P)return;r.selectOption(P);break;case"ArrowUp":w?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":w?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!w)return;r.focusOption("pageup");break;case"PageDown":if(!w)return;r.focusOption("pagedown");break;case"Home":if(!w)return;r.focusOption("first");break;case"End":if(!w)return;r.focusOption("last");break;default:return}c.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++tY),r.state.selectValue=vp(i.value),i.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),s=r.buildFocusableOptions(),l=s.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=s[l],r.state.focusedOptionId=Kv(o,s[l])}return r}return AU(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&tC(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(r){var o=this.props,s=o.isDisabled,l=o.menuIsOpen,c=this.state.isFocused;(c&&!s&&r.isDisabled||c&&l&&!r.menuIsOpen)&&this.focusInput(),c&&s&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!c&&!s&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(tC(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,o){this.props.onInputChange(r,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var o=this,s=this.state,l=s.selectValue,c=s.isFocused,u=this.buildFocusableOptions(),h=r==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(l[0]);f>-1&&(h=f)}this.scrollToFocusedOptionOnUpdate=!(c&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[h],focusedOptionId:this.getFocusedOptionId(u[h])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(r){var o=this.state,s=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var c=s.indexOf(l);l||(c=-1);var u=s.length-1,h=-1;if(s.length){switch(r){case"previous":c===0?h=0:c===-1?h=u:h=c-1;break;case"next":c>-1&&c0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,s=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var c=0,u=l.indexOf(s);s||(u=-1),r==="up"?c=u>0?u-1:l.length-1:r==="down"?c=(u+1)%l.length:r==="pageup"?(c=u-o,c<0&&(c=0)):r==="pagedown"?(c=u+o,c>l.length-1&&(c=l.length-1)):r==="last"&&(c=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[c],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[c])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Yv):me(me({},Yv),this.props.theme):Yv}},{key:"getCommonProps",value:function(){var r=this.clearValue,o=this.cx,s=this.getStyles,l=this.getClassNames,c=this.getValue,u=this.selectOption,h=this.setValue,f=this.props,m=f.isMulti,b=f.isRtl,v=f.options,y=this.hasValue();return{clearValue:r,cx:o,getStyles:s,getClassNames:l,getValue:c,hasValue:y,isMulti:m,isRtl:b,options:v,selectOption:u,selectProps:f,setValue:h,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,o=r.isClearable,s=r.isMulti;return o===void 0?s:o}},{key:"isOptionDisabled",value:function(r,o){return oM(this.props,r,o)}},{key:"isOptionSelected",value:function(r,o){return sM(this.props,r,o)}},{key:"filterOption",value:function(r,o){return aM(this.props,r,o)}},{key:"formatOptionLabel",value:function(r,o){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(r,{context:o,inputValue:s,selectValue:l})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var r=this.props,o=r.isDisabled,s=r.isSearchable,l=r.inputId,c=r.inputValue,u=r.tabIndex,h=r.form,f=r.menuIsOpen,m=r.required,b=this.getComponents(),v=b.Input,y=this.state,w=y.inputIsHidden,x=y.ariaSelection,S=this.commonProps,k=l||this.getElementId("input"),T=me(me(me({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":m,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(x==null?void 0:x.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?C.createElement(v,F({},S,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:k,innerRef:this.getInputRef,isDisabled:o,isHidden:w,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:h,type:"text",value:c},T)):C.createElement(OG,F({id:k,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:gp,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:h,value:""},T))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,o=this.getComponents(),s=o.MultiValue,l=o.MultiValueContainer,c=o.MultiValueLabel,u=o.MultiValueRemove,h=o.SingleValue,f=o.Placeholder,m=this.commonProps,b=this.props,v=b.controlShouldRenderValue,y=b.isDisabled,w=b.isMulti,x=b.inputValue,S=b.placeholder,k=this.state,T=k.selectValue,P=k.focusedValue,O=k.isFocused;if(!this.hasValue()||!v)return x?null:C.createElement(f,F({},m,{key:"placeholder",isDisabled:y,isFocused:O,innerProps:{id:this.getElementId("placeholder")}}),S);if(w)return T.map(function(R,N){var I=R===P,$="".concat(r.getOptionLabel(R),"-").concat(r.getOptionValue(R));return C.createElement(s,F({},m,{components:{Container:l,Label:c,Remove:u},isFocused:I,isDisabled:y,key:$,index:N,removeProps:{onClick:function(){return r.removeValue(R)},onTouchEnd:function(){return r.removeValue(R)},onMouseDown:function(B){B.preventDefault()}},data:R}),r.formatOptionLabel(R,"value"))});if(x)return null;var M=T[0];return C.createElement(h,F({},m,{data:M,isDisabled:y}),this.formatOptionLabel(M,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),o=r.ClearIndicator,s=this.commonProps,l=this.props,c=l.isDisabled,u=l.isLoading,h=this.state.isFocused;if(!this.isClearable()||!o||c||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return C.createElement(o,F({},s,{innerProps:f,isFocused:h}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),o=r.LoadingIndicator,s=this.commonProps,l=this.props,c=l.isDisabled,u=l.isLoading,h=this.state.isFocused;if(!o||!u)return null;var f={"aria-hidden":"true"};return C.createElement(o,F({},s,{innerProps:f,isDisabled:c,isFocused:h}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator,s=r.IndicatorSeparator;if(!o||!s)return null;var l=this.commonProps,c=this.props.isDisabled,u=this.state.isFocused;return C.createElement(s,F({},l,{isDisabled:c,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator;if(!o)return null;var s=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return C.createElement(o,F({},s,{innerProps:u,isDisabled:l,isFocused:c}))}},{key:"renderMenu",value:function(){var r=this,o=this.getComponents(),s=o.Group,l=o.GroupHeading,c=o.Menu,u=o.MenuList,h=o.MenuPortal,f=o.LoadingMessage,m=o.NoOptionsMessage,b=o.Option,v=this.commonProps,y=this.state.focusedOption,w=this.props,x=w.captureMenuScroll,S=w.inputValue,k=w.isLoading,T=w.loadingMessage,P=w.minMenuHeight,O=w.maxMenuHeight,M=w.menuIsOpen,R=w.menuPlacement,N=w.menuPosition,I=w.menuPortalTarget,$=w.menuShouldBlockScroll,j=w.menuShouldScrollIntoView,B=w.noOptionsMessage,W=w.onMenuScrollToTop,Z=w.onMenuScrollToBottom;if(!M)return null;var V=function(re,ne){var oe=re.type,K=re.data,ae=re.isDisabled,ye=re.isSelected,pe=re.label,ce=re.value,we=y===K,Le=ae?void 0:function(){return r.onOptionHover(K)},ot=ae?void 0:function(){return r.selectOption(K)},We="".concat(r.getElementId("option"),"-").concat(ne),$n={id:We,onClick:ot,onMouseMove:Le,onMouseOver:Le,tabIndex:-1,role:"option","aria-selected":r.isAppleDevice?void 0:ye};return C.createElement(b,F({},v,{innerProps:$n,data:K,isDisabled:ae,isSelected:ye,key:We,label:pe,type:oe,value:ce,isFocused:we,innerRef:we?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(re.data,"menu"))},G;if(this.hasOptions())G=this.getCategorizedOptions().map(function(X){if(X.type==="group"){var re=X.data,ne=X.options,oe=X.index,K="".concat(r.getElementId("group"),"-").concat(oe),ae="".concat(K,"-heading");return C.createElement(s,F({},v,{key:K,data:re,options:ne,Heading:l,headingProps:{id:ae,data:X.data},label:r.formatGroupLabel(X.data)}),X.options.map(function(ye){return V(ye,"".concat(oe,"-").concat(ye.index))}))}else if(X.type==="option")return V(X,"".concat(X.index))});else if(k){var z=T({inputValue:S});if(z===null)return null;G=C.createElement(f,v,z)}else{var q=B({inputValue:S});if(q===null)return null;G=C.createElement(m,v,q)}var H={minMenuHeight:P,maxMenuHeight:O,menuPlacement:R,menuPosition:N,menuShouldScrollIntoView:j},J=C.createElement(aZ,F({},v,H),function(X){var re=X.ref,ne=X.placerProps,oe=ne.placement,K=ne.maxHeight;return C.createElement(c,F({},v,H,{innerRef:re,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:k,placement:oe}),C.createElement(NG,{captureEnabled:x,onTopArrive:W,onBottomArrive:Z,lockEnabled:$},function(ae){return C.createElement(u,F({},v,{innerRef:function(pe){r.getMenuListRef(pe),ae(pe)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:r.getElementId("listbox")},isLoading:k,maxHeight:K,focusedOption:y}),G)}))});return I||N==="fixed"?C.createElement(h,F({},v,{appendTo:I,controlElement:this.controlRef,menuPlacement:R,menuPosition:N}),J):J}},{key:"renderFormField",value:function(){var r=this,o=this.props,s=o.delimiter,l=o.isDisabled,c=o.isMulti,u=o.name,h=o.required,f=this.state.selectValue;if(h&&!this.hasValue()&&!l)return C.createElement(zG,{name:u,onFocus:this.onValueInputFocus});if(!(!u||l))if(c)if(s){var m=f.map(function(y){return r.getOptionValue(y)}).join(s);return C.createElement("input",{name:u,type:"hidden",value:m})}else{var b=f.length>0?f.map(function(y,w){return C.createElement("input",{key:"i-".concat(w),name:u,type:"hidden",value:r.getOptionValue(y)})}):C.createElement("input",{name:u,type:"hidden",value:""});return C.createElement("div",null,b)}else{var v=f[0]?this.getOptionValue(f[0]):"";return C.createElement("input",{name:u,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,o=this.state,s=o.ariaSelection,l=o.focusedOption,c=o.focusedValue,u=o.isFocused,h=o.selectValue,f=this.getFocusableOptions();return C.createElement(SG,F({},r,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:l,focusedValue:c,isFocused:u,selectValue:h,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),o=r.Control,s=r.IndicatorsContainer,l=r.SelectContainer,c=r.ValueContainer,u=this.props,h=u.className,f=u.id,m=u.isDisabled,b=u.menuIsOpen,v=this.state.isFocused,y=this.commonProps=this.getCommonProps();return C.createElement(l,F({},y,{className:h,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:m,isFocused:v}),this.renderLiveRegion(),C.createElement(o,F({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:m,isFocused:v,menuIsOpen:b}),C.createElement(c,F({},y,{isDisabled:m}),this.renderPlaceholderOrValue(),this.renderInput()),C.createElement(s,F({},y,{isDisabled:m}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,o){var s=o.prevProps,l=o.clearFocusValueOnUpdate,c=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,h=o.isFocused,f=o.prevWasFocused,m=o.instancePrefix,b=r.options,v=r.value,y=r.menuIsOpen,w=r.inputValue,x=r.isMulti,S=vp(v),k={};if(s&&(v!==s.value||b!==s.options||y!==s.menuIsOpen||w!==s.inputValue)){var T=y?QG(r,S):[],P=y?mC(ff(r,S),"".concat(m,"-option")):[],O=l?JG(o,S):null,M=eY(o,T),R=Kv(P,M);k={selectValue:S,focusedOption:M,focusedOptionId:R,focusableOptionsWithIds:P,focusedValue:O,clearFocusValueOnUpdate:!1}}var N=c!=null&&r!==s?{inputIsHidden:c,inputIsHiddenAfterUpdate:void 0}:{},I=u,$=h&&f;return h&&!$&&(I={value:Gc(x,S,S[0]||null),options:S,action:"initial-input-focus"},$=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(I=null),me(me(me({},k),N),{},{prevProps:r,ariaSelection:I,prevWasFocused:$})}}]),n}(C.Component);cM.defaultProps=XG;var nY=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function iY(e){var t=e.defaultInputValue,n=t===void 0?"":t,i=e.defaultMenuIsOpen,r=i===void 0?!1:i,o=e.defaultValue,s=o===void 0?null:o,l=e.inputValue,c=e.menuIsOpen,u=e.onChange,h=e.onInputChange,f=e.onMenuClose,m=e.onMenuOpen,b=e.value,v=Mr(e,nY),y=C.useState(l!==void 0?l:n),w=oo(y,2),x=w[0],S=w[1],k=C.useState(c!==void 0?c:r),T=oo(k,2),P=T[0],O=T[1],M=C.useState(b!==void 0?b:s),R=oo(M,2),N=R[0],I=R[1],$=C.useCallback(function(z,q){typeof u=="function"&&u(z,q),I(z)},[u]),j=C.useCallback(function(z,q){var H;typeof h=="function"&&(H=h(z,q)),S(H!==void 0?H:z)},[h]),B=C.useCallback(function(){typeof m=="function"&&m(),O(!0)},[m]),W=C.useCallback(function(){typeof f=="function"&&f(),O(!1)},[f]),Z=l!==void 0?l:x,V=c!==void 0?c:P,G=b!==void 0?b:N;return me(me({},v),{},{inputValue:Z,menuIsOpen:V,onChange:$,onInputChange:j,onMenuClose:W,onMenuOpen:B,value:G})}var rY=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],vC=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=String(t).toLowerCase(),o=String(i.getOptionValue(n)).toLowerCase(),s=String(i.getOptionLabel(n)).toLowerCase();return o===r||s===r},qv={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,i,r){return!(!t||n.some(function(o){return vC(t,o,r)})||i.some(function(o){return vC(t,o,r)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function oY(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,i=e.createOptionPosition,r=i===void 0?"last":i,o=e.formatCreateLabel,s=o===void 0?qv.formatCreateLabel:o,l=e.isValidNewOption,c=l===void 0?qv.isValidNewOption:l,u=e.getNewOptionData,h=u===void 0?qv.getNewOptionData:u,f=e.onCreateOption,m=e.options,b=m===void 0?[]:m,v=e.onChange,y=Mr(e,rY),w=y.getOptionValue,x=w===void 0?tM:w,S=y.getOptionLabel,k=S===void 0?eM:S,T=y.inputValue,P=y.isLoading,O=y.isMulti,M=y.value,R=y.name,N=C.useMemo(function(){return c(T,vp(M),b,{getOptionValue:x,getOptionLabel:k})?h(T,s(T)):void 0},[s,h,k,x,T,c,b,M]),I=C.useMemo(function(){return(n||!P)&&N?r==="first"?[N].concat(vl(b)):[].concat(vl(b),[N]):b},[n,r,P,N,b]),$=C.useCallback(function(j,B){if(B.action!=="select-option")return v(j,B);var W=Array.isArray(j)?j:[j];if(W[W.length-1]===N){if(f)f(T);else{var Z=h(T,T),V={action:"create-option",name:R,option:Z};v(Gc(O,[].concat(vl(vp(M)),[Z]),Z),V)}return}v(j,B)},[h,T,O,R,N,f,v,M]);return me(me({},y),{},{options:I,onChange:$})}var sY=C.forwardRef(function(e,t){var n=iY(e),i=oY(n);return C.createElement(cM,F({ref:t},i))}),uM=sY;const aY=async(e,t)=>{try{const n="https://paws-backend.azurewebsites.net",i=new FormData;i.append("id",e);const r=await Me.post(`${n}/check_ngo`,i,{headers:{"Content-Type":"multipart/form-data"}});return console.log(r.data.ngo_exists),r.data.ngo_exists}catch(n){throw n.response?t(n.response.data.error):n.request?t("No response received from the server."):t("An unexpected error occurred."),n}},lY=async(e,t,n,i,r,o,s,l,c,u,h,f)=>{if(!yd(n)){h("Enter a valid email address.");return}if(!zu(t)){h("Enter a valid phone number.");return}if(!zu(i)){h("Enter a valid emergency contact number.");return}if(l==="dev")console.log("welcome developer");else if(!await aY(l,h)){h("Enter a valid DARPAN ID");return}try{h(""),f("loading");const b=await Me.post("https://paws-backend.azurewebsites.net/register/ngo",{name:e,phone_number:t,email:n,password:r,emergency_contact_number:i,animals_supported:o,website:l,address:s,latitude:c,longitude:u});f("success");const v=b.data.token;return localStorage.setItem("csrftoken",v),localStorage.setItem("userType","ngo"),!0}catch(m){return f("error"),m.response&&m.response.data.error?h(m.response.data.error):h("An error occurred while registering."),!1}},cY=async(e,t,n)=>{navigator.geolocation&&navigator.geolocation.getCurrentPosition(async i=>{const{latitude:r,longitude:o}=i.coords;e(r),t(o),console.log(`latitude: ${r}, longitude: ${o}`)})},uY=[{value:1,label:"Dog"},{value:2,label:"Cat"},{value:3,label:"Cow"},{value:4,label:"Horse"},{value:6,label:"Sheep"},{value:7,label:"Chicken"},{value:10,label:"Rabbit"},{value:31,label:"Social Work"},{value:32,label:"Animal Rescue"},{value:33,label:"Environmental Conservation"},{value:34,label:"Education"},{value:35,label:"Healthcare Support"},{value:36,label:"Community Development"},{value:37,label:"Disaster Relief"},{value:38,label:"Youth Mentorship"},{value:39,label:"Elderly Care"},{value:40,label:"Homelessness Outreach"},{value:41,label:"Food Distribution"},{value:42,label:"Housing Assistance"},{value:43,label:"Job Training"},{value:44,label:"Legal Aid"},{value:45,label:"Mental Health Services"},{value:46,label:"Pet Behaviour Speaciallist"},{value:47,label:"Pet Grooming"},{value:48,label:"Pet Training"},{value:49,label:"Pet Walking"},{value:50,label:"Pet Foster Care"},{value:51,label:"Pet Adoption"},{value:52,label:"Pet Health Care"},{value:53,label:"Pet Food Distribution"},{value:54,label:"Pet Shelter Support"},{value:55,label:"Pet Transportation"},{value:56,label:"Pet Volunteer Coordination"},{value:57,label:"Pet Fundraising"},{value:58,label:"Pet Social Media Management"},{value:59,label:"Pet Photography"},{value:60,label:"Pet Videography"},{value:61,label:"Pet Graphic Design"},{value:62,label:"Pet Web Development"},{value:63,label:"Pet App Development"},{value:64,label:"Pet Writing"}];function dY(){const e={borderRadius:"40px",background:"linear-gradient(to bottom, #16a34a, #15803d)",padding:"20px 40px",marginTop:"0.675rem",fontSize:"19px",fontWeight:"700",boxShadow:"rgb(38, 57, 77) 0px 15px 30px -10px",letterSpacing:"0.2em",width:"fit-content",margin:"auto"},[t,n]=C.useState(""),[i,r]=C.useState([]),[o,s]=C.useState(""),[l,c]=C.useState(""),[u,h]=C.useState(""),[f,m]=C.useState(""),[b,v]=C.useState(""),[y,w]=C.useState("idle"),[x,S]=C.useState(""),[k,T]=C.useState(""),[P,O]=C.useState(0),[M,R]=C.useState(0),[N,I]=C.useState(!1);C.useEffect(()=>{cY(O,R)},[]);const $=async()=>{await lY(t,o,l,u,f,i,x,k,P,M,v,w)&&setTimeout(()=>{I(()=>!0)},3e3)},j=B=>{B?window.location.href="/":window.location.href="/ngoProfile?upload=true",I(!1)};return g.jsxs("div",{className:"h-full pt-9 w-screen flex items-center justify-center mb-[200px]",children:[g.jsx(Ri,{}),g.jsxs("form",{className:"flex gap-[20px] items-center justify-center flex-col",children:[g.jsxs(g.Fragment,{children:[g.jsx("h1",{className:"text-center pb-1 pl-2 pr-2 z-[3] text-indigo-900 font-bold text-[2.5em] underline",children:"Join Us Today"}),g.jsx(Tt,{className:"placeholder-stone h-16 bg-opacity-45 backdrop-blur-[6px] w-80 px-4 py-2 items-center outline-0 rounded-[30px] text-black text-lg bg-white shadow-dashBoardCardImageShadow",type:"text",placeholder:"Enter Your NGO's Name",value:t,onChange:B=>{v(""),n(B.target.value)},required:!0}),g.jsx(Tt,{className:"placeholder-stone h-16 bg-opacity-45 backdrop-blur-[6px] w-80 px-4 py-2 items-center outline-0 rounded-[30px] text-black text-lg bg-white shadow-dashBoardCardImageShadow",type:"tel",placeholder:"Phone Number",value:o,onChange:B=>{v(""),s(B.target.value)},required:!0}),g.jsx(Tt,{className:"placeholder-stone h-16 bg-opacity-45 backdrop-blur-[6px] w-80 px-4 py-2 items-center outline-0 rounded-[30px] text-black text-lg bg-white shadow-dashBoardCardImageShadow",type:"email",placeholder:"Email",value:l,onChange:B=>{v(""),c(B.target.value)},required:!0}),g.jsx(Tt,{className:"placeholder-stone h-16 bg-opacity-45 backdrop-blur-[6px] w-80 px-4 py-2 items-center outline-0 rounded-[30px] text-black text-lg bg-white shadow-dashBoardCardImageShadow",type:"password",placeholder:"Password",value:f,onChange:B=>{v(""),m(B.target.value)},required:!0}),g.jsx(Tt,{className:"placeholder-stone h-16 bg-opacity-45 backdrop-blur-[6px] w-80 px-4 py-2 items-center outline-0 rounded-[30px] text-black text-lg bg-white shadow-dashBoardCardImageShadow",type:"text",placeholder:"Address",value:x,onChange:B=>{v(""),S(B.target.value)}}),g.jsx(uM,{styles:{control:B=>({...B,height:"4rem",width:"20rem",border:"0",backgroundColor:"rgba(255, 255, 255, 0.5)",boxShadow:"3.847223997116089px 4.946430683135986px 14.289689064025879px 0px #00000040",borderRadius:"30px",padding:"0.5rem 1rem",fontSize:"16px",backdropFilter:"blur(6px)",outline:"0",overflow:"scroll",position:"relative"}),multiValue:(B,W)=>({...B,backgroundColor:"rgba(255, 255, 255, 0.5)",borderRadius:"30px",fontSize:"18px",marginLeft:"5px",padding:"2px"}),clearIndicator:(B,W)=>({...B,color:"rgb(244 63 94)"}),placeholder:B=>({...B,color:"#53605B",fontSize:"18px"}),dropdownIndicator:(B,W)=>({...B,color:"black",lineHeight:"32px"})},isMulti:!0,placeholder:"Animal Supported",options:uY,onChange:B=>{const W=B.map(Z=>Z.label);v(""),r(W)}}),g.jsx(Tt,{className:"placeholder-stone h-16 bg-opacity-45 backdrop-blur-[6px] w-80 px-4 py-2 items-center outline-0 rounded-[30px] text-black text-lg bg-white shadow-dashBoardCardImageShadow",type:"tel",placeholder:"Emergency Contact Number",value:u,onChange:B=>{v(""),h(B.target.value)}}),g.jsx(Tt,{className:"placeholder-stone h-16 bg-opacity-45 backdrop-blur-[6px] w-80 px-4 py-2 items-center outline-0 rounded-[30px] text-black text-lg bg-white shadow-dashBoardCardImageShadow",type:"text",placeholder:" NGO-DARPAN ID (STATE/YEAR/ID)",value:k,onChange:B=>{v(""),T(B.target.value)}})]}),g.jsx(g.Fragment,{children:g.jsxs("div",{className:"w-screen relative h-[70px] mt-5 flex justify-center",children:[g.jsx(lp,{style:e,buttonState:y,idleText:"Register",loadingText:"wait..",successText:"Logging In",errorText:"Register",messageDuration:3e3,onClick:$}),b&&g.jsx("p",{className:"absolute top-[-25px] tracking-wide text-red-500 font-semibold text-center",children:b})]})}),g.jsxs("div",{className:"w-screen h-fit flex flex-col mt-3 gap-2 items-center",children:[g.jsx(dp,{}),g.jsx(dp,{text:"Not an Ngo ?",link:"/register",linkText:"Register Here!"})]})]}),g.jsx(J5,{open:N,handleClose:j})]})}const hY=[{value:1,label:"Dog"},{value:2,label:"Cat"},{value:3,label:"Cow"},{value:4,label:"Horse"},{value:6,label:"Sheep"},{value:7,label:"Chicken"},{value:10,label:"Rabbit"},{value:31,label:"Social Work"},{value:32,label:"Animal Rescue"},{value:33,label:"Environmental Conservation"},{value:34,label:"Education"},{value:35,label:"Healthcare Support"},{value:36,label:"Community Development"},{value:37,label:"Disaster Relief"},{value:38,label:"Youth Mentorship"},{value:39,label:"Elderly Care"},{value:40,label:"Homelessness Outreach"},{value:41,label:"Food Distribution"},{value:42,label:"Housing Assistance"},{value:43,label:"Job Training"},{value:44,label:"Legal Aid"},{value:45,label:"Mental Health Services"},{value:46,label:"Pet Behaviour Speaciallist"},{value:47,label:"Pet Grooming"},{value:48,label:"Pet Training"},{value:49,label:"Pet Walking"},{value:50,label:"Pet Foster Care"},{value:51,label:"Pet Adoption"},{value:52,label:"Pet Health Care"},{value:53,label:"Pet Food Distribution"},{value:54,label:"Pet Shelter Support"},{value:55,label:"Pet Transportation"},{value:56,label:"Pet Volunteer Coordination"},{value:57,label:"Pet Fundraising"},{value:58,label:"Pet Social Media Management"},{value:59,label:"Pet Photography"},{value:60,label:"Pet Videography"},{value:61,label:"Pet Graphic Design"},{value:62,label:"Pet Web Development"},{value:63,label:"Pet App Development"},{value:64,label:"Pet Writing"}];/*! + * Cropper.js v1.6.1 + * https://fengyuanchen.github.io/cropperjs + * + * Copyright 2015-present Chen Fengyuan + * Released under the MIT license + * + * Date: 2023-09-17T03:44:19.860Z + */function yC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function dM(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);n
',MY=Number.isNaN||Pr.isNaN;function De(e){return typeof e=="number"&&!MY(e)}var LC=function(t){return t>0&&t<1/0};function Xv(e){return typeof e>"u"}function pa(e){return Zy(e)==="object"&&e!==null}var LY=Object.prototype.hasOwnProperty;function ol(e){if(!pa(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&LY.call(n,"isPrototypeOf")}catch{return!1}}function Vn(e){return typeof e=="function"}var AY=Array.prototype.slice;function _M(e){return Array.from?Array.from(e):AY.call(e)}function Gt(e,t){return e&&Vn(t)&&(Array.isArray(e)||De(e.length)?_M(e).forEach(function(n,i){t.call(e,n,i,e)}):pa(e)&&Object.keys(e).forEach(function(n){t.call(e,e[n],n,e)})),e}var gt=Object.assign||function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r0&&i.forEach(function(o){pa(o)&&Object.keys(o).forEach(function(s){t[s]=o[s]})}),t},RY=/\.\d*(?:0|9){12}\d*$/;function yl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return RY.test(e)?Math.round(e*t)/t:e}var IY=/^width|height|left|top|marginLeft|marginTop$/;function Vo(e,t){var n=e.style;Gt(t,function(i,r){IY.test(r)&&De(i)&&(i="".concat(i,"px")),n[r]=i})}function NY(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function on(e,t){if(t){if(De(e.length)){Gt(e,function(i){on(i,t)});return}if(e.classList){e.classList.add(t);return}var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function kr(e,t){if(t){if(De(e.length)){Gt(e,function(n){kr(n,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function sl(e,t,n){if(t){if(De(e.length)){Gt(e,function(i){sl(i,t,n)});return}n?on(e,t):kr(e,t)}}var DY=/([a-z\d])([A-Z])/g;function E1(e){return e.replace(DY,"$1-$2").toLowerCase()}function tb(e,t){return pa(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(E1(t)))}function Ju(e,t,n){pa(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(E1(t)),n)}function jY(e,t){if(pa(e[t]))try{delete e[t]}catch{e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch{e.dataset[t]=void 0}else e.removeAttribute("data-".concat(E1(t)))}var wM=/\s\s*/,SM=function(){var e=!1;if(eg){var t=!1,n=function(){},i=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(o){t=o}});Pr.addEventListener("test",n,i),Pr.removeEventListener("test",n,i)}return e}();function Gi(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;t.trim().split(wM).forEach(function(o){if(!SM){var s=e.listeners;s&&s[o]&&s[o][n]&&(r=s[o][n],delete s[o][n],Object.keys(s[o]).length===0&&delete s[o],Object.keys(s).length===0&&delete e.listeners)}e.removeEventListener(o,r,i)})}function _i(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;t.trim().split(wM).forEach(function(o){if(i.once&&!SM){var s=e.listeners,l=s===void 0?{}:s;r=function(){delete l[o][n],e.removeEventListener(o,r,i);for(var u=arguments.length,h=new Array(u),f=0;fMath.abs(n)&&(n=m)})}),n}function Sh(e,t){var n=e.pageX,i=e.pageY,r={endX:n,endY:i};return t?r:dM({startX:n,startY:i},r)}function BY(e){var t=0,n=0,i=0;return Gt(e,function(r){var o=r.startX,s=r.startY;t+=o,n+=s,i+=1}),t/=i,n/=i,{pageX:t,pageY:n}}function Wo(e){var t=e.aspectRatio,n=e.height,i=e.width,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",o=LC(i),s=LC(n);if(o&&s){var l=n*t;r==="contain"&&l>i||r==="cover"&&l90?{width:c,height:l}:{width:l,height:c}}function HY(e,t,n,i){var r=t.aspectRatio,o=t.naturalWidth,s=t.naturalHeight,l=t.rotate,c=l===void 0?0:l,u=t.scaleX,h=u===void 0?1:u,f=t.scaleY,m=f===void 0?1:f,b=n.aspectRatio,v=n.naturalWidth,y=n.naturalHeight,w=i.fillColor,x=w===void 0?"transparent":w,S=i.imageSmoothingEnabled,k=S===void 0?!0:S,T=i.imageSmoothingQuality,P=T===void 0?"low":T,O=i.maxWidth,M=O===void 0?1/0:O,R=i.maxHeight,N=R===void 0?1/0:R,I=i.minWidth,$=I===void 0?0:I,j=i.minHeight,B=j===void 0?0:j,W=document.createElement("canvas"),Z=W.getContext("2d"),V=Wo({aspectRatio:b,width:M,height:N}),G=Wo({aspectRatio:b,width:$,height:B},"cover"),z=Math.min(V.width,Math.max(G.width,v)),q=Math.min(V.height,Math.max(G.height,y)),H=Wo({aspectRatio:r,width:M,height:N}),J=Wo({aspectRatio:r,width:$,height:B},"cover"),X=Math.min(H.width,Math.max(J.width,o)),re=Math.min(H.height,Math.max(J.height,s)),ne=[-X/2,-re/2,X,re];return W.width=yl(z),W.height=yl(q),Z.fillStyle=x,Z.fillRect(0,0,z,q),Z.save(),Z.translate(z/2,q/2),Z.rotate(c*Math.PI/180),Z.scale(h,m),Z.imageSmoothingEnabled=k,Z.imageSmoothingQuality=P,Z.drawImage.apply(Z,[e].concat(hM(ne.map(function(oe){return Math.floor(yl(oe))})))),Z.restore(),W}var kM=String.fromCharCode;function VY(e,t,n){var i="";n+=t;for(var r=t;r0;)n.push(kM.apply(null,_M(r.subarray(0,i)))),r=r.subarray(i);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}function GY(e){var t=new DataView(e),n;try{var i,r,o;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var s=t.byteLength,l=2;l+1=8&&(o=u+f)}}}if(o){var m=t.getUint16(o,i),b,v;for(v=0;v=0?o:bM),height:Math.max(i.offsetHeight,s>=0?s:xM)};this.containerData=l,Vo(r,{width:l.width,height:l.height}),on(t,Wn),kr(r,Wn)},initCanvas:function(){var t=this.containerData,n=this.imageData,i=this.options.viewMode,r=Math.abs(n.rotate)%180===90,o=r?n.naturalHeight:n.naturalWidth,s=r?n.naturalWidth:n.naturalHeight,l=o/s,c=t.width,u=t.height;t.height*l>t.width?i===3?c=t.height*l:u=t.width/l:i===3?u=t.width/l:c=t.height*l;var h={aspectRatio:l,naturalWidth:o,naturalHeight:s,width:c,height:u};this.canvasData=h,this.limited=i===1||i===2,this.limitCanvas(!0,!0),h.width=Math.min(Math.max(h.width,h.minWidth),h.maxWidth),h.height=Math.min(Math.max(h.height,h.minHeight),h.maxHeight),h.left=(t.width-h.width)/2,h.top=(t.height-h.height)/2,h.oldLeft=h.left,h.oldTop=h.top,this.initialCanvasData=gt({},h)},limitCanvas:function(t,n){var i=this.options,r=this.containerData,o=this.canvasData,s=this.cropBoxData,l=i.viewMode,c=o.aspectRatio,u=this.cropped&&s;if(t){var h=Number(i.minCanvasWidth)||0,f=Number(i.minCanvasHeight)||0;l>1?(h=Math.max(h,r.width),f=Math.max(f,r.height),l===3&&(f*c>h?h=f*c:f=h/c)):l>0&&(h?h=Math.max(h,u?s.width:0):f?f=Math.max(f,u?s.height:0):u&&(h=s.width,f=s.height,f*c>h?h=f*c:f=h/c));var m=Wo({aspectRatio:c,width:h,height:f});h=m.width,f=m.height,o.minWidth=h,o.minHeight=f,o.maxWidth=1/0,o.maxHeight=1/0}if(n)if(l>(u?0:1)){var b=r.width-o.width,v=r.height-o.height;o.minLeft=Math.min(0,b),o.minTop=Math.min(0,v),o.maxLeft=Math.max(0,b),o.maxTop=Math.max(0,v),u&&this.limited&&(o.minLeft=Math.min(s.left,s.left+(s.width-o.width)),o.minTop=Math.min(s.top,s.top+(s.height-o.height)),o.maxLeft=s.left,o.maxTop=s.top,l===2&&(o.width>=r.width&&(o.minLeft=Math.min(0,b),o.maxLeft=Math.max(0,b)),o.height>=r.height&&(o.minTop=Math.min(0,v),o.maxTop=Math.max(0,v))))}else o.minLeft=-o.width,o.minTop=-o.height,o.maxLeft=r.width,o.maxTop=r.height},renderCanvas:function(t,n){var i=this.canvasData,r=this.imageData;if(n){var o=FY({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),s=o.width,l=o.height,c=i.width*(s/i.naturalWidth),u=i.height*(l/i.naturalHeight);i.left-=(c-i.width)/2,i.top-=(u-i.height)/2,i.width=c,i.height=u,i.aspectRatio=s/l,i.naturalWidth=s,i.naturalHeight=l,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.widthi.maxHeight||i.heightn.width?o.height=o.width/i:o.width=o.height*i),this.cropBoxData=o,this.limitCropBox(!0,!0),o.width=Math.min(Math.max(o.width,o.minWidth),o.maxWidth),o.height=Math.min(Math.max(o.height,o.minHeight),o.maxHeight),o.width=Math.max(o.minWidth,o.width*r),o.height=Math.max(o.minHeight,o.height*r),o.left=n.left+(n.width-o.width)/2,o.top=n.top+(n.height-o.height)/2,o.oldLeft=o.left,o.oldTop=o.top,this.initialCropBoxData=gt({},o)},limitCropBox:function(t,n){var i=this.options,r=this.containerData,o=this.canvasData,s=this.cropBoxData,l=this.limited,c=i.aspectRatio;if(t){var u=Number(i.minCropBoxWidth)||0,h=Number(i.minCropBoxHeight)||0,f=l?Math.min(r.width,o.width,o.width+o.left,r.width-o.left):r.width,m=l?Math.min(r.height,o.height,o.height+o.top,r.height-o.top):r.height;u=Math.min(u,r.width),h=Math.min(h,r.height),c&&(u&&h?h*c>u?h=u/c:u=h*c:u?h=u/c:h&&(u=h*c),m*c>f?m=f/c:f=m*c),s.minWidth=Math.min(u,f),s.minHeight=Math.min(h,m),s.maxWidth=f,s.maxHeight=m}n&&(l?(s.minLeft=Math.max(0,o.left),s.minTop=Math.max(0,o.top),s.maxLeft=Math.min(r.width,o.left+o.width)-s.width,s.maxTop=Math.min(r.height,o.top+o.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=r.width-s.width,s.maxTop=r.height-s.height))},renderCropBox:function(){var t=this.options,n=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.widthi.maxHeight||i.height=n.width&&i.height>=n.height?mM:C1),Vo(this.cropBox,gt({width:i.width,height:i.height},fu({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),bl(this.element,qy,this.getData())}},qY={initPreview:function(){var t=this.element,n=this.crossOrigin,i=this.options.preview,r=n?this.crossOriginUrl:this.url,o=t.alt||"The image to preview",s=document.createElement("img");if(n&&(s.crossOrigin=n),s.src=r,s.alt=o,this.viewBox.appendChild(s),this.viewBoxImage=s,!!i){var l=i;typeof i=="string"?l=t.ownerDocument.querySelectorAll(i):i.querySelector&&(l=[i]),this.previews=l,Gt(l,function(c){var u=document.createElement("img");Ju(c,wh,{width:c.offsetWidth,height:c.offsetHeight,html:c.innerHTML}),n&&(u.crossOrigin=n),u.src=r,u.alt=o,u.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',c.innerHTML="",c.appendChild(u)})}},resetPreview:function(){Gt(this.previews,function(t){var n=tb(t,wh);Vo(t,{width:n.width,height:n.height}),t.innerHTML=n.html,jY(t,wh)})},preview:function(){var t=this.imageData,n=this.canvasData,i=this.cropBoxData,r=i.width,o=i.height,s=t.width,l=t.height,c=i.left-n.left-t.left,u=i.top-n.top-t.top;!this.cropped||this.disabled||(Vo(this.viewBoxImage,gt({width:s,height:l},fu(gt({translateX:-c,translateY:-u},t)))),Gt(this.previews,function(h){var f=tb(h,wh),m=f.width,b=f.height,v=m,y=b,w=1;r&&(w=m/r,y=o*w),o&&y>b&&(w=b/o,v=r*w,y=b),Vo(h,{width:v,height:y}),Vo(h.getElementsByTagName("img")[0],gt({width:s*w,height:l*w},fu(gt({translateX:-c*w,translateY:-u*w},t))))}))}},XY={bind:function(){var t=this.element,n=this.options,i=this.cropper;Vn(n.cropstart)&&_i(t,Jy,n.cropstart),Vn(n.cropmove)&&_i(t,Qy,n.cropmove),Vn(n.cropend)&&_i(t,Xy,n.cropend),Vn(n.crop)&&_i(t,qy,n.crop),Vn(n.zoom)&&_i(t,eb,n.zoom),_i(i,SC,this.onCropStart=this.cropStart.bind(this)),n.zoomable&&n.zoomOnWheel&&_i(i,PC,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&_i(i,wC,this.onDblclick=this.dblclick.bind(this)),_i(t.ownerDocument,CC,this.onCropMove=this.cropMove.bind(this)),_i(t.ownerDocument,kC,this.onCropEnd=this.cropEnd.bind(this)),n.responsive&&_i(window,TC,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,n=this.options,i=this.cropper;Vn(n.cropstart)&&Gi(t,Jy,n.cropstart),Vn(n.cropmove)&&Gi(t,Qy,n.cropmove),Vn(n.cropend)&&Gi(t,Xy,n.cropend),Vn(n.crop)&&Gi(t,qy,n.crop),Vn(n.zoom)&&Gi(t,eb,n.zoom),Gi(i,SC,this.onCropStart),n.zoomable&&n.zoomOnWheel&&Gi(i,PC,this.onWheel,{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&Gi(i,wC,this.onDblclick),Gi(t.ownerDocument,CC,this.onCropMove),Gi(t.ownerDocument,kC,this.onCropEnd),n.responsive&&Gi(window,TC,this.onResize)}},QY={resize:function(){if(!this.disabled){var t=this.options,n=this.container,i=this.containerData,r=n.offsetWidth/i.width,o=n.offsetHeight/i.height,s=Math.abs(r-1)>Math.abs(o-1)?r:o;if(s!==1){var l,c;t.restore&&(l=this.getCanvasData(),c=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(Gt(l,function(u,h){l[h]=u*s})),this.setCropBoxData(Gt(c,function(u,h){c[h]=u*s})))}}},dblclick:function(){this.disabled||this.options.dragMode===yM||this.setDragMode(NY(this.dragBox,Yy)?vM:k1)},wheel:function(t){var n=this,i=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(t.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50),t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*i,t)))},cropStart:function(t){var n=t.buttons,i=t.button;if(!(this.disabled||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(De(n)&&n!==1||De(i)&&i!==0||t.ctrlKey))){var r=this.options,o=this.pointers,s;t.changedTouches?Gt(t.changedTouches,function(l){o[l.identifier]=Sh(l)}):o[t.pointerId||0]=Sh(t),Object.keys(o).length>1&&r.zoomable&&r.zoomOnTouch?s=gM:s=tb(t.target,Qu),kY.test(s)&&bl(this.element,Jy,{originalEvent:t,action:s})!==!1&&(t.preventDefault(),this.action=s,this.cropping=!1,s===pM&&(this.cropping=!0,on(this.dragBox,xp)))}},cropMove:function(t){var n=this.action;if(!(this.disabled||!n)){var i=this.pointers;t.preventDefault(),bl(this.element,Qy,{originalEvent:t,action:n})!==!1&&(t.changedTouches?Gt(t.changedTouches,function(r){gt(i[r.identifier]||{},Sh(r,!0))}):gt(i[t.pointerId||0]||{},Sh(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var n=this.action,i=this.pointers;t.changedTouches?Gt(t.changedTouches,function(r){delete i[r.identifier]}):delete i[t.pointerId||0],n&&(t.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,sl(this.dragBox,xp,this.cropped&&this.options.modal)),bl(this.element,Xy,{originalEvent:t,action:n}))}}},JY={change:function(t){var n=this.options,i=this.canvasData,r=this.containerData,o=this.cropBoxData,s=this.pointers,l=this.action,c=n.aspectRatio,u=o.left,h=o.top,f=o.width,m=o.height,b=u+f,v=h+m,y=0,w=0,x=r.width,S=r.height,k=!0,T;!c&&t.shiftKey&&(c=f&&m?f/m:1),this.limited&&(y=o.minLeft,w=o.minTop,x=y+Math.min(r.width,i.width,i.left+i.width),S=w+Math.min(r.height,i.height,i.top+i.height));var P=s[Object.keys(s)[0]],O={x:P.endX-P.startX,y:P.endY-P.startY},M=function(N){switch(N){case Cs:b+O.x>x&&(O.x=x-b);break;case ks:u+O.xS&&(O.y=S-v);break}};switch(l){case C1:u+=O.x,h+=O.y;break;case Cs:if(O.x>=0&&(b>=x||c&&(h<=w||v>=S))){k=!1;break}M(Cs),f+=O.x,f<0&&(l=ks,f=-f,u-=f),c&&(m=f/c,h+=(o.height-m)/2);break;case Lo:if(O.y<=0&&(h<=w||c&&(u<=y||b>=x))){k=!1;break}M(Lo),m-=O.y,h+=O.y,m<0&&(l=Ba,m=-m,h-=m),c&&(f=m*c,u+=(o.width-f)/2);break;case ks:if(O.x<=0&&(u<=y||c&&(h<=w||v>=S))){k=!1;break}M(ks),f-=O.x,u+=O.x,f<0&&(l=Cs,f=-f,u-=f),c&&(m=f/c,h+=(o.height-m)/2);break;case Ba:if(O.y>=0&&(v>=S||c&&(u<=y||b>=x))){k=!1;break}M(Ba),m+=O.y,m<0&&(l=Lo,m=-m,h-=m),c&&(f=m*c,u+=(o.width-f)/2);break;case Lc:if(c){if(O.y<=0&&(h<=w||b>=x)){k=!1;break}M(Lo),m-=O.y,h+=O.y,f=m*c}else M(Lo),M(Cs),O.x>=0?bw&&(m-=O.y,h+=O.y):(m-=O.y,h+=O.y);f<0&&m<0?(l=Ic,m=-m,f=-f,h-=m,u-=f):f<0?(l=Ac,f=-f,u-=f):m<0&&(l=Rc,m=-m,h-=m);break;case Ac:if(c){if(O.y<=0&&(h<=w||u<=y)){k=!1;break}M(Lo),m-=O.y,h+=O.y,f=m*c,u+=o.width-f}else M(Lo),M(ks),O.x<=0?u>y?(f-=O.x,u+=O.x):O.y<=0&&h<=w&&(k=!1):(f-=O.x,u+=O.x),O.y<=0?h>w&&(m-=O.y,h+=O.y):(m-=O.y,h+=O.y);f<0&&m<0?(l=Rc,m=-m,f=-f,h-=m,u-=f):f<0?(l=Lc,f=-f,u-=f):m<0&&(l=Ic,m=-m,h-=m);break;case Ic:if(c){if(O.x<=0&&(u<=y||v>=S)){k=!1;break}M(ks),f-=O.x,u+=O.x,m=f/c}else M(Ba),M(ks),O.x<=0?u>y?(f-=O.x,u+=O.x):O.y>=0&&v>=S&&(k=!1):(f-=O.x,u+=O.x),O.y>=0?v=0&&(b>=x||v>=S)){k=!1;break}M(Cs),f+=O.x,m=f/c}else M(Ba),M(Cs),O.x>=0?b=0&&v>=S&&(k=!1):f+=O.x,O.y>=0?v0?l=O.y>0?Rc:Lc:O.x<0&&(u-=f,l=O.y>0?Ic:Ac),O.y<0&&(h-=m),this.cropped||(kr(this.cropBox,Wn),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}k&&(o.width=f,o.height=m,o.left=u,o.top=h,this.action=l,this.renderCropBox()),Gt(s,function(R){R.startX=R.endX,R.startY=R.endY})}},eK={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&on(this.dragBox,xp),kr(this.cropBox,Wn),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=gt({},this.initialImageData),this.canvasData=gt({},this.initialCanvasData),this.cropBoxData=gt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(gt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),kr(this.dragBox,xp),on(this.cropBox,Wn)),this},replace:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&t&&(this.isImg&&(this.element.src=t),n?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,Gt(this.previews,function(i){i.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,kr(this.cropper,xC)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,on(this.cropper,xC)),this},destroy:function(){var t=this.element;return t[mt]?(t[mt]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,i=this.canvasData,r=i.left,o=i.top;return this.moveTo(Xv(t)?t:r+Number(t),Xv(n)?n:o+Number(n))},moveTo:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,i=this.canvasData,r=!1;return t=Number(t),n=Number(n),this.ready&&!this.disabled&&this.options.movable&&(De(t)&&(i.left=t,r=!0),De(n)&&(i.top=n,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(t,n){var i=this.canvasData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(i.width*t/i.naturalWidth,null,n)},zoomTo:function(t,n,i){var r=this.options,o=this.canvasData,s=o.width,l=o.height,c=o.naturalWidth,u=o.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&r.zoomable){var h=c*t,f=u*t;if(bl(this.element,eb,{ratio:t,oldRatio:s/c,originalEvent:i})===!1)return this;if(i){var m=this.pointers,b=CM(this.cropper),v=m&&Object.keys(m).length?BY(m):{pageX:i.pageX,pageY:i.pageY};o.left-=(h-s)*((v.pageX-b.left-o.left)/s),o.top-=(f-l)*((v.pageY-b.top-o.top)/l)}else ol(n)&&De(n.x)&&De(n.y)?(o.left-=(h-s)*((n.x-o.left)/s),o.top-=(f-l)*((n.y-o.top)/l)):(o.left-=(h-s)/2,o.top-=(f-l)/2);o.width=h,o.height=f,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),De(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var n=this.imageData.scaleY;return this.scale(t,De(n)?n:1)},scaleY:function(t){var n=this.imageData.scaleX;return this.scale(De(n)?n:1,t)},scale:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,i=this.imageData,r=!1;return t=Number(t),n=Number(n),this.ready&&!this.disabled&&this.options.scalable&&(De(t)&&(i.scaleX=t,r=!0),De(n)&&(i.scaleY=n,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.options,i=this.imageData,r=this.canvasData,o=this.cropBoxData,s;if(this.ready&&this.cropped){s={x:o.left-r.left,y:o.top-r.top,width:o.width,height:o.height};var l=i.width/i.naturalWidth;if(Gt(s,function(h,f){s[f]=h/l}),t){var c=Math.round(s.y+s.height),u=Math.round(s.x+s.width);s.x=Math.round(s.x),s.y=Math.round(s.y),s.width=u-s.x,s.height=c-s.y}}else s={x:0,y:0,width:0,height:0};return n.rotatable&&(s.rotate=i.rotate||0),n.scalable&&(s.scaleX=i.scaleX||1,s.scaleY=i.scaleY||1),s},setData:function(t){var n=this.options,i=this.imageData,r=this.canvasData,o={};if(this.ready&&!this.disabled&&ol(t)){var s=!1;n.rotatable&&De(t.rotate)&&t.rotate!==i.rotate&&(i.rotate=t.rotate,s=!0),n.scalable&&(De(t.scaleX)&&t.scaleX!==i.scaleX&&(i.scaleX=t.scaleX,s=!0),De(t.scaleY)&&t.scaleY!==i.scaleY&&(i.scaleY=t.scaleY,s=!0)),s&&this.renderCanvas(!0,!0);var l=i.width/i.naturalWidth;De(t.x)&&(o.left=t.x*l+r.left),De(t.y)&&(o.top=t.y*l+r.top),De(t.width)&&(o.width=t.width*l),De(t.height)&&(o.height=t.height*l),this.setCropBoxData(o)}return this},getContainerData:function(){return this.ready?gt({},this.containerData):{}},getImageData:function(){return this.sized?gt({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,n={};return this.ready&&Gt(["left","top","width","height","naturalWidth","naturalHeight"],function(i){n[i]=t[i]}),n},setCanvasData:function(t){var n=this.canvasData,i=n.aspectRatio;return this.ready&&!this.disabled&&ol(t)&&(De(t.left)&&(n.left=t.left),De(t.top)&&(n.top=t.top),De(t.width)?(n.width=t.width,n.height=t.width/i):De(t.height)&&(n.height=t.height,n.width=t.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var t=this.cropBoxData,n;return this.ready&&this.cropped&&(n={left:t.left,top:t.top,width:t.width,height:t.height}),n||{}},setCropBoxData:function(t){var n=this.cropBoxData,i=this.options.aspectRatio,r,o;return this.ready&&this.cropped&&!this.disabled&&ol(t)&&(De(t.left)&&(n.left=t.left),De(t.top)&&(n.top=t.top),De(t.width)&&t.width!==n.width&&(r=!0,n.width=t.width),De(t.height)&&t.height!==n.height&&(o=!0,n.height=t.height),i&&(r?n.height=n.width/i:o&&(n.width=n.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var n=this.canvasData,i=HY(this.image,this.imageData,n,t);if(!this.cropped)return i;var r=this.getData(t.rounded),o=r.x,s=r.y,l=r.width,c=r.height,u=i.width/Math.floor(n.naturalWidth);u!==1&&(o*=u,s*=u,l*=u,c*=u);var h=l/c,f=Wo({aspectRatio:h,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),m=Wo({aspectRatio:h,width:t.minWidth||0,height:t.minHeight||0},"cover"),b=Wo({aspectRatio:h,width:t.width||(u!==1?i.width:l),height:t.height||(u!==1?i.height:c)}),v=b.width,y=b.height;v=Math.min(f.width,Math.max(m.width,v)),y=Math.min(f.height,Math.max(m.height,y));var w=document.createElement("canvas"),x=w.getContext("2d");w.width=yl(v),w.height=yl(y),x.fillStyle=t.fillColor||"transparent",x.fillRect(0,0,v,y);var S=t.imageSmoothingEnabled,k=S===void 0?!0:S,T=t.imageSmoothingQuality;x.imageSmoothingEnabled=k,T&&(x.imageSmoothingQuality=T);var P=i.width,O=i.height,M=o,R=s,N,I,$,j,B,W;M<=-l||M>P?(M=0,N=0,$=0,B=0):M<=0?($=-M,M=0,N=Math.min(P,l+M),B=N):M<=P&&($=0,N=Math.min(l,P-M),B=N),N<=0||R<=-c||R>O?(R=0,I=0,j=0,W=0):R<=0?(j=-R,R=0,I=Math.min(O,c+R),W=I):R<=O&&(j=0,I=Math.min(c,O-R),W=I);var Z=[M,R,N,I];if(B>0&&W>0){var V=v/l;Z.push($*V,j*V,B*V,W*V)}return x.drawImage.apply(x,[i].concat(hM(Z.map(function(G){return Math.floor(yl(G))})))),w},setAspectRatio:function(t){var n=this.options;return!this.disabled&&!Xv(t)&&(n.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var n=this.options,i=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var o=t===k1,s=n.movable&&t===vM;t=o||s?t:yM,n.dragMode=t,Ju(i,Qu,t),sl(i,Yy,o),sl(i,Ky,s),n.cropBoxMovable||(Ju(r,Qu,t),sl(r,Yy,o),sl(r,Ky,s))}return this}},tK=Pr.Cropper,EM=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(fY(this,e),!t||!PY.test(t.tagName))throw new Error("The first argument is required and must be an or element.");this.element=t,this.options=gt({},MC,ol(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return pY(e,[{key:"init",value:function(){var n=this.element,i=n.tagName.toLowerCase(),r;if(!n[mt]){if(n[mt]=this,i==="img"){if(this.isImg=!0,r=n.getAttribute("src")||"",this.originalUrl=r,!r)return;r=n.src}else i==="canvas"&&window.HTMLCanvasElement&&(r=n.toDataURL());this.load(r)}}},{key:"load",value:function(n){var i=this;if(n){this.url=n,this.imageData={};var r=this.element,o=this.options;if(!o.rotatable&&!o.scalable&&(o.checkOrientation=!1),!o.checkOrientation||!window.ArrayBuffer){this.clone();return}if(EY.test(n)){TY.test(n)?this.read(UY(n)):this.clone();return}var s=new XMLHttpRequest,l=this.clone.bind(this);this.reloading=!0,this.xhr=s,s.onabort=l,s.onerror=l,s.ontimeout=l,s.onprogress=function(){s.getResponseHeader("content-type")!==OC&&s.abort()},s.onload=function(){i.read(s.response)},s.onloadend=function(){i.reloading=!1,i.xhr=null},o.checkCrossOrigin&&AC(n)&&r.crossOrigin&&(n=RC(n)),s.open("GET",n,!0),s.responseType="arraybuffer",s.withCredentials=r.crossOrigin==="use-credentials",s.send()}}},{key:"read",value:function(n){var i=this.options,r=this.imageData,o=GY(n),s=0,l=1,c=1;if(o>1){this.url=ZY(n,OC);var u=YY(o);s=u.rotate,l=u.scaleX,c=u.scaleY}i.rotatable&&(r.rotate=s),i.scalable&&(r.scaleX=l,r.scaleY=c),this.clone()}},{key:"clone",value:function(){var n=this.element,i=this.url,r=n.crossOrigin,o=i;this.options.checkCrossOrigin&&AC(i)&&(r||(r="anonymous"),o=RC(i)),this.crossOrigin=r,this.crossOriginUrl=o;var s=document.createElement("img");r&&(s.crossOrigin=r),s.src=o||i,s.alt=n.alt||"The image to crop",this.image=s,s.onload=this.start.bind(this),s.onerror=this.stop.bind(this),on(s,_C),n.parentNode.insertBefore(s,n.nextSibling)}},{key:"start",value:function(){var n=this,i=this.image;i.onload=null,i.onerror=null,this.sizing=!0;var r=Pr.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Pr.navigator.userAgent),o=function(u,h){gt(n.imageData,{naturalWidth:u,naturalHeight:h,aspectRatio:u/h}),n.initialImageData=gt({},n.imageData),n.sizing=!1,n.sized=!0,n.build()};if(i.naturalWidth&&!r){o(i.naturalWidth,i.naturalHeight);return}var s=document.createElement("img"),l=document.body||document.documentElement;this.sizingImage=s,s.onload=function(){o(s.width,s.height),r||l.removeChild(s)},s.src=i.src,r||(s.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",l.appendChild(s))}},{key:"stop",value:function(){var n=this.image;n.onload=null,n.onerror=null,n.parentNode.removeChild(n),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var n=this.element,i=this.options,r=this.image,o=n.parentNode,s=document.createElement("div");s.innerHTML=OY;var l=s.querySelector(".".concat(mt,"-container")),c=l.querySelector(".".concat(mt,"-canvas")),u=l.querySelector(".".concat(mt,"-drag-box")),h=l.querySelector(".".concat(mt,"-crop-box")),f=h.querySelector(".".concat(mt,"-face"));this.container=o,this.cropper=l,this.canvas=c,this.dragBox=u,this.cropBox=h,this.viewBox=l.querySelector(".".concat(mt,"-view-box")),this.face=f,c.appendChild(r),on(n,Wn),o.insertBefore(l,n.nextSibling),kr(r,_C),this.initPreview(),this.bind(),i.initialAspectRatio=Math.max(0,i.initialAspectRatio)||NaN,i.aspectRatio=Math.max(0,i.aspectRatio)||NaN,i.viewMode=Math.max(0,Math.min(3,Math.round(i.viewMode)))||0,on(h,Wn),i.guides||on(h.getElementsByClassName("".concat(mt,"-dashed")),Wn),i.center||on(h.getElementsByClassName("".concat(mt,"-center")),Wn),i.background&&on(l,"".concat(mt,"-bg")),i.highlight||on(f,_Y),i.cropBoxMovable&&(on(f,Ky),Ju(f,Qu,C1)),i.cropBoxResizable||(on(h.getElementsByClassName("".concat(mt,"-line")),Wn),on(h.getElementsByClassName("".concat(mt,"-point")),Wn)),this.render(),this.ready=!0,this.setDragMode(i.dragMode),i.autoCrop&&this.crop(),this.setData(i.data),Vn(i.ready)&&_i(n,EC,i.ready,{once:!0}),bl(n,EC)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var n=this.cropper.parentNode;n&&n.removeChild(this.cropper),kr(this.element,Wn)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=tK,e}},{key:"setDefaults",value:function(n){gt(MC,ol(n)&&n)}}]),e}();gt(EM.prototype,KY,qY,XY,QY,JY,eK);var js=function(){return js=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&R.zoomTo(G)}(M.currentTarget.cropper,k),w&&w(M)}}));x&&x(O)}return function(){var M,R;(R=(M=T.current)===null||M===void 0?void 0:M.cropper)===null||R===void 0||R.destroy()}},[T]);var P=function(O){return nK.reduce(function(M,R){var N=M,I=R;return N[I],Jv(N,[typeof I=="symbol"?I:I+""])},O)}(js(js({},S),{crossOrigin:c,src:o,alt:y}));return ee.createElement("div",{style:s,className:l},ee.createElement("img",js({},P,{style:iK,ref:T})))});const TM=({headerImgUrl:e,setheaderImgUrl:t,aspectRatio:n=4/3})=>{const[i,r]=C.useState(!0),o=C.useRef(),s=async()=>{var l;try{t("wait"),r(!0);const u=((l=o.current)==null?void 0:l.cropper).getCroppedCanvas();if(u){const h=await new Promise(m=>u.toBlob(m)),f=await $u(h);t(f)}}catch(c){console.error("Error cropping and uploading image:",c)}};return g.jsxs("fieldset",{className:"bg-white p-6 gap-[20px] rounded-[30px] bg-opacity-30 backdrop-blur-[5px] shadow-dashBoardCardImageShadow flex flex-col",children:[g.jsx("label",{className:"text-[1.6rem] font-extrabold underline uppercase tracking-wider text-center",children:"Upload Images"}),g.jsx("label",{htmlFor:"file-upload",className:"text-stone h-16 bg-opacity-45 backdrop-blur-[6px] w-[300px] px-4 items-center outline-0 rounded-[30px] text-lg leading-[64px] placeholder-stone bg-white bg-opacity-47 shadow-dashBoardCardImageShadow",children:"Upload Image"}),g.jsx("input",{className:"hidden",id:"file-upload",type:"file",accept:"image/png, image/jpeg, image/jpg",onChange:l=>{r(!1);const c=l.target.files[0],u=new FileReader;u.onloadend=()=>{t(u.result)},u.readAsDataURL(c)}}),!i&&g.jsxs("div",{children:[g.jsx(rK,{ref:o,src:e,style:{height:400,width:"100%"},aspectRatio:n,guides:!1}),g.jsx("button",{onClick:s,children:"Crop and select"})]})]})};TM.propTypes={headerImgUrl:fe.string.isRequired,setheaderImgUrl:fe.func.isRequired,aspectRatio:fe.number};const oK=async(e,t,n,i,r,o,s,l,c,u,h,f,m)=>{if(console.log("from create camp",e,t,n,i,r,o,s),!e){console.log("i am inside orgName"),f("Erorr Fetching Organization Name,Plese Login first");return}if(!zu(t)){console.log("i am inside phoneNumber"),f("Enter a Valid phone Number");return}if(!yd(n)){console.log("i am inside email"),f("Enter a Valid Email Address");return}if(!i){console.log("i am inside campaignTitle"),f("Campaign Title is required");return}if(!r){console.log("i am inside CampaignDescription"),f("Campaign Description is required");return}if(!o){console.log("i am inside tags"),f("Tags are required");return}if(!s){console.log("i am inside startDate"),f("Start Date is required");return}if(!l){console.log("i am inside endDate"),f("End Date is required");return}if(!c){console.log("i am inside ageGroup"),f("Age Group is required");return}if(!u){console.log("i am inside lastDate"),f("Last Date is required");return}if(h==="wait"){f("Please wait for the image to upload"),setTimeout(()=>{f("")},2e3);return}const b=e,v=i,y=r,w=t,x=s,S=l,k=u,T=c;f("");try{const P="https://paws-backend.azurewebsites.net";console.log("i am here finally"),await Me.post(`${P}/api/campaigns/`,{ngo_name:b,phone_number:w,email:n,title:v,description:y,tags:o,start_date:x,end_date:S,age_group:T,application_deadline:k,headerImgUrl:h}),m(!1)}catch(P){P.response&&P.response.data.error?f(P.response.data.error):f("An error occurred while creating campaign.")}},sK=()=>{const e=new Date;let t=e.getDate()+1,n=e.getMonth()+1,i=e.getFullYear();return n===2?i%4===0&&i%100!==0||i%400===0?t>29&&(t=1,n++):t>28&&(t=1,n++):[4,6,9,11].includes(n)?t>30&&(t=1,n++):t>31&&(t=1,n++),n===13&&(n=1,i++),`${i}-${n.toString().padStart(2,"0")}-${t.toString().padStart(2,"0")}`},aK=({setShowForm:e})=>{const{NgoData:t,loading:n,error:i}=C.useContext(Ed),[r,o]=C.useState("Ngo"),[s,l]=C.useState(""),[c,u]=C.useState(""),[h,f]=C.useState(""),[m,b]=C.useState(""),[v,y]=C.useState(""),[w,x]=C.useState(""),[S,k]=C.useState(""),[T,P]=C.useState(""),[O,M]=C.useState(""),[R,N]=C.useState(""),[I,$]=C.useState("");let j=sK();return C.useEffect(()=>{!n&&!i&&t&&o(t.name)},[t,n,i]),g.jsxs(g.Fragment,{children:[g.jsx(Ri,{}),g.jsxs("div",{className:"text-[#0B0553DE] min-h-screen py-12 overflow-x-hidden mx-auto flex flex-col gap-[30px] items-center mb-[120px]",children:[g.jsxs("fieldset",{className:"bg-white p-6 gap-[20px] rounded-[30px] bg-opacity-30 backdrop-blur-[5px] shadow-dashBoardCardImageShadow flex flex-col",children:[g.jsx("label",{className:"text-[1.6rem] font-extrabold underline tracking-wider uppercase text-center",children:"Description"}),g.jsx(Tt,{className:"placeholder-stone h-16 bg-opacity-45 backdrop-blur-[6px] w-[300px] px-4 items-center outline-0 rounded-[30px] text-black text-lg bg-white bg-opacity-47 shadow-dashBoardCardImageShadow",type:"text",placeholder:"Campaign Title",value:h,onChange:B=>{x(""),f(B.target.value)},required:!0}),g.jsx(Tt,{className:"placeholder-stone h-20 bg-opacity-45 backdrop-blur-[6px] w-[300px] px-4 leading-[80px] outline-0 rounded-[40px] text-lg bg-white bg-opacity-47 shadow-dashBoardCardImageShadow",type:"textarea",placeholder:"Campaign Description",value:m,onChange:B=>{x(""),b(B.target.value)},required:!0}),g.jsx(uM,{styles:{control:B=>({...B,width:"300px",backgroundColor:"#ffffff80",boxShadow:"3.847223997116089px 4.946430683135986px 14.289689064025879px 0px #00000040",borderRadius:"30px",padding:"0.5rem 1rem",fontSize:"16px",backdropFilter:"blur(6px)",outline:"0",overflow:"scroll",position:"relative"}),menu:B=>({...B,position:"relative"}),multiValue:(B,W)=>({...B,backgroundColor:"#fafafae6",borderRadius:"30px",fontSize:"18px",marginLeft:"5px",padding:"2px"}),clearIndicator:(B,W)=>({...B,color:"rgb(244 63 94)"}),dropdownIndicator:(B,W)=>({...B,color:"black",lineHeight:"32px"})},isMulti:!0,placeholder:"Enter tags",options:hY,onClick:()=>{},onChange:B=>{const W=B.map(Z=>Z.label);x(""),y(W)}})]}),g.jsxs("fieldset",{className:"bg-white p-6 gap-[20px] rounded-[30px] bg-opacity-30 backdrop-blur-[5px] shadow-dashBoardCardImageShadow flex flex-col",children:[g.jsx("label",{className:"text-[1.6rem] uppercase font-extrabold underline tracking-wider text-center",children:"Contact details"}),g.jsx(Tt,{className:"h-16 bg-opacity-45 backdrop-blur-[6px] w-[300px] px-4 leading-[px] items-center outline-0 rounded-[30px] text-lg placeholder-stone bg-white bg-opacity-47 shadow-dashBoardCardImageShadow",type:"tel",placeholder:"Phone Number",value:s,onChange:B=>{x(""),l(B.target.value)},required:!0}),g.jsx(Tt,{className:"h-16 bg-opacity-45 backdrop-blur-[6px] w-[300px] px-4 leading-[px] items-center outline-0 rounded-[30px] text-lg placeholder-stone bg-white bg-opacity-47 shadow-dashBoardCardImageShadow ",type:"email",placeholder:"Email",value:c,onChange:B=>{x(""),u(B.target.value)},required:!0})]}),g.jsxs("fieldset",{className:"bg-white p-6 gap-[20px] rounded-[30px] bg-opacity-30 backdrop-blur-[5px] shadow-dashBoardCardImageShadow flex flex-col",children:[g.jsx("label",{className:"text-[1.6rem] uppercase font-extrabold underline tracking-wider text-center",children:"Duration"}),g.jsxs("div",{className:"flex flex-col gap-[4px]",children:[g.jsx("label",{className:"text-[1.2rem] font-bold",children:"Start Date:"}),g.jsx(Tt,{className:"text-stone h-16 bg-opacity-45 backdrop-blur-[6px] w-[300px] px-4 leading-[px] items-center outline-0 rounded-[30px] text-lg placeholder-stone bg-white bg-opacity-47 shadow-dashBoardCardImageShadow",type:"date",value:S,min:j,onChange:B=>{x(""),k(B.target.value)},required:!0})]}),g.jsxs("div",{className:"flex flex-col gap-[4px]",children:[g.jsx("label",{className:"text-[1.2rem] font-bold",children:"End Date:"}),g.jsx(Tt,{className:"text-stone h-16 bg-opacity-45 backdrop-blur-[6px] w-[300px] px-4 leading-[px] items-center outline-0 rounded-[30px] text-lg placeholder-stone bg-white bg-opacity-47 shadow-dashBoardCardImageShadow",type:"date",value:T,min:j,onChange:B=>{x(""),P(B.target.value)},required:!0})]}),g.jsxs("div",{className:"flex flex-col gap-[4px]",children:[g.jsx("label",{className:"text-[1.2rem] font-bold",children:"Application Deadline:"}),g.jsx(Tt,{className:"text-stone h-16 bg-opacity-45 backdrop-blur-[6px] w-[300px] px-4 leading-[px] items-center outline-0 rounded-[30px] text-lg placeholder-stone bg-white bg-opacity-47 shadow-dashBoardCardImageShadow",type:"date",value:R,min:j,onChange:B=>{x(""),N(B.target.value)},required:!0})]}),g.jsxs("div",{className:"flex flex-col gap-[6px]",children:[g.jsx("label",{className:"text-[1.2rem] font-bold",children:" Age Group:"}),g.jsxs("div",{className:"bg-opacity-45 backdrop-blur-[6px] w-[300px] px-4 p-3 leading-[px] items-center outline-0 rounded-[40px] text-lg placeholder-stone bg-white bg-opacity-47 shadow-dashBoardCardImageShadow border-1 flex justify-evenly overflowX-scroll",children:[g.jsxs("div",{className:"flex justify-center flex-col gap-[5px] items-center",children:[g.jsx("label",{className:"text-[1.2rem] text-black font-semibold",htmlFor:"thirteen",children:"13"}),g.jsx("input",{className:"w-7 h-7",type:"radio",id:"thirteen",name:"age",value:"Thirteen Plus",checked:O===13,onChange:()=>{x(""),M(13)}})]}),g.jsxs("div",{className:"flex justify-center flex-col gap-[5px] items-center",children:[g.jsx("label",{className:"text-[1.2rem] text-black font-semibold",htmlFor:"eighteen",children:"18+"}),g.jsx("input",{className:"w-7 h-7",type:"radio",id:"eighteen",name:"age",value:"Eighteen Plus",checked:O===18,onChange:()=>{x(""),M(18)}})]}),g.jsxs("div",{className:"flex flex-col justify-center gap-[5px] items-center",children:[g.jsx("label",{className:"text-[1.2rem] text-black font-semibold",htmlFor:"all",children:"All Age"}),g.jsx("input",{type:"radio",className:"w-7 h-7",id:"all",name:"age",value:"Everybody",checked:O===1,onChange:()=>{x(""),M(1)}})]})]})]})]}),g.jsx(TM,{headerImgUrl:I,setheaderImgUrl:$}),!i&&g.jsx("p",{className:"text-red-600 tracking-wider drop-shadow-lg font-semibold text-base",children:w}),g.jsx(vn,{clas:" py-5 px-8 font-semibold tracking-wider text-[1.5rem] leading-[1.5rem]",onClick:async()=>{oK(r,s,c,h,m,v,S,T,O,R,I,x,e)},text:g.jsxs(g.Fragment,{children:[" ",g.jsxs("span",{className:"flex gap-2 items-center",children:[" Create ",g.jsx(nF,{fontSize:"18px"})]})," "]})})]})]})},PM=({text:e,icon:t,onClick:n,customstyle:i})=>{const r={boxShadow:"2px 3px 4px black",padding:"20px 30px",marginTop:"0.675rem",backdropFilter:"blur(10px)",fontWeight:"700",outline:"0",color:"white",...i};return g.jsxs("button",{style:r,className:"text-white focus:outline-none rounded-[40px] md:rounded-[45px] shadow-buttonShadow bg-gradient-to-b from-green-600 to-green-700 drop-shadow-md py-3 px-4 text-[1.5rem] md:text-[2rem] cursor-pointer",onClick:n,children:[e,t]})};PM.propTypes={text:fe.string.isRequired,onClick:fe.func.isRequired,icon:fe.element,customstyle:fe.object};const lK=({onClick:e})=>g.jsxs(g.Fragment,{children:[g.jsx(Ri,{}),g.jsxs("div",{className:" h-[60vh] flex z-[60] items-center justify-between flex-col",children:[g.jsx("h1",{className:"mt-[40px] text-[#40025D] text-center w-[90vw] backdrop-blur-[6px] font-baloo text-shadow shadow-custom bg-white bg-opacity-[0.5] rounded-[50px] py-[40px] px-[20px]",children:g.jsxs("p",{className:"text-[2rem] lg:text-[3rem] md:text-[2.2rem] leading-10 animate-fade-in-campaign font-extrabold flex flex-col gap-5 md:flex-row md:justify-center",children:[g.jsx("span",{children:"Protecting Paws,"}),g.jsx("span",{children:"Saving Lives"})]})}),g.jsx("div",{children:g.jsx(PM,{text:"Create Campaign",onClick:e})})]})]});function cK(){const[e,t]=C.useState(!1),n=()=>{t(!e)};return g.jsxs("div",{children:[!e&&g.jsx(lK,{onClick:n}),e&&g.jsx(aK,{setShowForm:t})]})}const Fa=({width:e,height:t,...n})=>g.jsx(g.Fragment,{children:g.jsx(no,{speed:1,width:e,height:t,backgroundColor:"#ffffff66",foregroundColor:"rgba(255, 255, 255, 0.7)",...n,children:g.jsx("rect",{x:"0",y:"0",rx:"30",ry:"30",width:e,height:t,children:g.jsx("animate",{attributeName:"fill",dur:"3s",repeatCount:"indefinite"})})})}),uK=()=>{const[e,t]=C.useState(!0),[n,i]=C.useState();return C.useEffect(()=>{(async()=>{try{const s=await Me.get("https://paws-backend.azurewebsites.net/api/campaigns");i(s.data),t(!1)}catch(o){console.error("Error fetching data:",o)}})()},[]),g.jsxs(g.Fragment,{children:[g.jsx(Ri,{}),!e&&g.jsx(g.Fragment,{children:g.jsxs("div",{className:"flex flex-col items-center font-breeSerif justify-center gap-[30px] mb-[70px] w-screen ",children:[g.jsxs("h1",{className:"text-center mt-[40px] pb-1 z-[3] text-[#40025D] font-extrabold tracking-widest text-4xl drop-shadow-xl flex flex-col",children:[g.jsx("span",{className:"mb-[5px]",children:"Volunteer Now,"}),g.jsx("span",{children:" Make Your Mark!"})]}),g.jsx("div",{children:n.map((r,o)=>g.jsx("div",{className:"flex justify-center w-screen",children:g.jsx("div",{className:" py-[8px] px-[15px] w-[90%] flex flex-col rounded-3xl shadow-dashBoardCardImageShadow bg-[#ffffff88] backdrop-blur-[5px] mb-[20px]",children:g.jsxs("div",{className:"flex flex-col gap-[10px]",children:[g.jsx("p",{className:"font-bold drop-shadow-md tracking-wide text-[1.3rem] text-[#0b0553de]",children:r.title}),g.jsxs("div",{className:"flex flex-col gap-1",children:[g.jsxs("small",{className:"text-[#0b4626ad] drop-shadow-md font-medium text-[16px]",children:["Duration: ",(new Date(r.end_date.split("T")[0])-new Date(r.start_date.split("T")[0]))/(1e3*60*60*24)," Days"]}),g.jsxs("p",{className:"text-[16px] font-medium",children:[r.description.slice(0,100)," ",g.jsx(ct,{to:`/campaignBlog/${r.campaign_id}`,className:"font-medium ml-1 underline text-[#40025D]",children:" Learn More..."})]})]})]})})},o))})]})}),e&&g.jsx(g.Fragment,{children:g.jsxs("div",{className:"flex flex-col gap-[15px] justify-center items-center my-[45px]",children:[g.jsx(Fa,{width:"calc(100vw - 40px)",height:150}),g.jsx(Fa,{width:"calc(100vw - 60px)",height:120}),g.jsx(Fa,{width:"calc(100vw - 60px)",height:120}),g.jsx(Fa,{width:"calc(100vw - 60px)",height:120}),g.jsx(Fa,{width:"calc(100vw - 60px)",height:120}),g.jsx(Fa,{width:"calc(100vw - 60px)",height:120})]})})]})},dK=({...e})=>g.jsx(g.Fragment,{children:g.jsxs("div",{className:"mt-[30px] w-[100vw] flex flex-col items-center gap-[30px]",children:[g.jsx(no,{speed:1,width:"340",height:"120",backgroundColor:"#ffffff66",foregroundColor:"rgba(255, 255, 255, 0.7)",...e,children:g.jsx("rect",{x:"0",y:"5",rx:"30",ry:"30",width:"340",height:"120",children:g.jsx("animate",{attributeName:"fill",dur:"3s",repeatCount:"indefinite"})})}),g.jsxs(no,{speed:1,width:"340",height:"215",backgroundColor:"#ffffff66",foregroundColor:"rgba(255, 255, 255, 0.7)",...e,children:[g.jsx("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"70%",height:"15"}),g.jsx("rect",{x:"0",y:"20",rx:"5",ry:"5",width:"100%",height:"15"}),g.jsx("rect",{x:"0",y:"40",rx:"5",ry:"5",width:"90%",height:"15"}),g.jsx("rect",{x:"0",y:"60",rx:"5",ry:"5",width:"95%",height:"15"}),g.jsx("rect",{x:"0",y:"80",rx:"5",ry:"5",width:"100%",height:"15"}),g.jsx("rect",{x:"0",y:"100",rx:"5",ry:"5",width:"90%",height:"15"}),g.jsx("rect",{x:"0",y:"120",rx:"5",ry:"5",width:"95%",height:"15"}),g.jsx("rect",{x:"0",y:"140",rx:"5",ry:"5",width:"100%",height:"15"}),g.jsx("rect",{x:"0",y:"160",rx:"5",ry:"5",width:"90%",height:"15"}),g.jsx("rect",{x:"0",y:"180",rx:"5",ry:"5",width:"95%",height:"15"}),g.jsx("rect",{x:"0",y:"200",rx:"5",ry:"5",width:"100%",height:"15"})]}),g.jsx(no,{speed:1,width:300,height:250,backgroundColor:"#ffffff66",foregroundColor:"rgba(255, 255, 255, 0.7)",...e,children:g.jsx("rect",{x:"0",y:"5",rx:"20",ry:"20",width:300,height:250,children:g.jsx("animate",{attributeName:"fill",dur:"3s",repeatCount:"indefinite"})})}),g.jsx(ZD,{backgroundColor:"#ffffff66",foregroundColor:"rgba(255, 255, 255, 0.7)",width:340})]})}),hK=async(e,t,n,i)=>{try{let s=(await Me.get(`https://paws-backend.azurewebsites.net/api/campaigns/${e}/`)).data.applicant_list;s===null?(s="",s=s.concat(t)):s=s.concat(",",t);const l=await Me.patch(`https://paws-backend.azurewebsites.net/api/campaigns/${e}/`,{applicant_list:s});l.status===200?(n("Interested"),i(!0)):console.error("Error showing interest:",l.statusText)}catch(r){console.error("Error showing interest:",r.message)}},fK=()=>{const{userData:e,loading:t,error:n}=C.useContext(Kl),[i,r]=C.useState(null),{campaignId:o}=TI(),[s,l]=C.useState(!0),[c,u]=C.useState(),[h,f]=C.useState(),[m,b]=C.useState(),[v,y]=C.useState(),[w,x]=C.useState(),[S,k]=C.useState("Show Interest"),[T,P]=C.useState(!1);C.useEffect(()=>{!t&&!n&&e&&r(e)},[e,t,n]),C.useEffect(()=>{(async()=>{try{if(i){const I=(await Me.get(`https://paws-backend.azurewebsites.net/api/campaigns/${o}`)).data;let j=new Date(I.start_date).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),W=new Date(I.end_date).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),V=new Date(I.application_deadline).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});b(j),y(W),x(V),l(!1),u(I),f(I.age_group),I.applicant_list.includes(i.email)&&(k("Interested"),P(!0))}}catch(R){console.error("Error fetching data:",R)}})()},[o,i]);const O=()=>h===0?"Open to All Age Groups":h+"+";return g.jsx("div",{children:g.jsxs(g.Fragment,{children:[!s&&g.jsxs(g.Fragment,{children:[g.jsx(Ri,{}),g.jsxs("div",{className:"font-breeSerif",children:[g.jsx("h1",{className:"text-center font-breeSerif text-[#40025D] leading-relaxed p-2 text-[30px] rounded-[30px] font-bold w-[90%] mx-auto mt-[30px] mb-5",children:c.title}),g.jsxs("small",{className:"text-[#000000] pb-[15px] tracking-wider font-bold float-right mr-4 text-sm",children:["Organised By- ",g.jsxs("u",{children:[" ",c.ngo_name]})]}),g.jsx("br",{}),g.jsxs("div",{className:" py-[8px] h-fit px-[20px] w-[95vw] flex flex-col gap-4 rounded-3xl shadow-dashBoardCardImageShadow bg-[#ffffff66] mb-[120px] backdrop-blur-[5px] m-auto",children:[g.jsx("h2",{className:"pt-[2px] text-[#0B0553] text-2xl drop-shadow-xl ",children:g.jsx("i",{children:"Description:"})}),c.description,g.jsxs("div",{className:"flex mt-[5px] w-full flex-col gap-[5px]",children:[g.jsxs("li",{className:"list-none",children:[g.jsx("b",{children:" Campaign starts on: "}),m]}),g.jsxs("li",{className:"list-none",children:[g.jsx("b",{children:" Campaign ends on: "}),v]}),g.jsxs("li",{className:"list-none",children:[g.jsx("b",{children:"Application Deadline: "}),w]}),g.jsxs("li",{className:"list-none",children:[g.jsx("b",{className:"mr-[5px]",children:" Age Accessibility:"}),O()]})]}),g.jsxs("p",{className:"p-[5px]",children:["For inquiries, contact us on:",g.jsx("li",{children:c.phone_number}),g.jsx("li",{children:c.email})]}),g.jsx("img",{className:"w-full rounded-[20px] object-center mt-[10px] shadow-dashBoardCardImageShadow",src:c.image_link,alt:""}),g.jsx("p",{className:"font-normal w-full text-base flex flex-wrap gap-[5px]",children:c.tags&&c.tags.map((M,R)=>g.jsxs("span",{className:"bg-gradient-to-b from-gray-200 to-gray-400 px-5 shadow-buttonShadow py-2 rounded-[20px]",children:[M," ",g.jsx("br",{})]},R))}),g.jsx("div",{className:"mt-4 w-full flex flex-wrap justify-evenly gap-4",children:g.jsx(vn,{text:S,clas:`text-2xl text-white font-normal focus:outline-none rounded-[30px] tracking-wider shadow-buttonShadow mb-7 ${T?"bg-gradient-to-b from-gray-500 to-gray-700":""}`,onClick:()=>hK(o,i.email,k,P),disabled:T})})]})]})]}),s&&g.jsxs(g.Fragment,{children:[g.jsx(Ri,{}),g.jsx("div",{children:g.jsx(dK,{})})]})]})})};/*! + * @kurkle/color v0.3.2 + * https://github.com/kurkle/color#readme + * (c) 2023 Jukka Kurkela + * Released under the MIT License + */function Td(e){return e+.5|0}const Uo=(e,t,n)=>Math.max(Math.min(e,n),t);function Yc(e){return Uo(Td(e*2.55),0,255)}function rs(e){return Uo(Td(e*255),0,255)}function Yr(e){return Uo(Td(e/2.55)/100,0,1)}function IC(e){return Uo(Td(e*100),0,100)}const xi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},nb=[..."0123456789ABCDEF"],pK=e=>nb[e&15],mK=e=>nb[(e&240)>>4]+nb[e&15],Ch=e=>(e&240)>>4===(e&15),gK=e=>Ch(e.r)&&Ch(e.g)&&Ch(e.b)&&Ch(e.a);function vK(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&xi[e[1]]*17,g:255&xi[e[2]]*17,b:255&xi[e[3]]*17,a:t===5?xi[e[4]]*17:255}:(t===7||t===9)&&(n={r:xi[e[1]]<<4|xi[e[2]],g:xi[e[3]]<<4|xi[e[4]],b:xi[e[5]]<<4|xi[e[6]],a:t===9?xi[e[7]]<<4|xi[e[8]]:255})),n}const yK=(e,t)=>e<255?t(e):"";function bK(e){var t=gK(e)?pK:mK;return e?"#"+t(e.r)+t(e.g)+t(e.b)+yK(e.a,t):void 0}const xK=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function OM(e,t,n){const i=t*Math.min(n,1-n),r=(o,s=(o+e/30)%12)=>n-i*Math.max(Math.min(s-3,9-s,1),-1);return[r(0),r(8),r(4)]}function _K(e,t,n){const i=(r,o=(r+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function wK(e,t,n){const i=OM(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function SK(e,t,n,i,r){return e===r?(t-n)/i+(t.5?h/(2-o-s):h/(o+s),c=SK(n,i,r,h,o),c=c*60+.5),[c|0,u||0,l]}function P1(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(rs)}function O1(e,t,n){return P1(OM,e,t,n)}function CK(e,t,n){return P1(wK,e,t,n)}function kK(e,t,n){return P1(_K,e,t,n)}function MM(e){return(e%360+360)%360}function EK(e){const t=xK.exec(e);let n=255,i;if(!t)return;t[5]!==i&&(n=t[6]?Yc(+t[5]):rs(+t[5]));const r=MM(+t[2]),o=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?i=CK(r,o,s):t[1]==="hsv"?i=kK(r,o,s):i=O1(r,o,s),{r:i[0],g:i[1],b:i[2],a:n}}function TK(e,t){var n=T1(e);n[0]=MM(n[0]+t),n=O1(n),e.r=n[0],e.g=n[1],e.b=n[2]}function PK(e){if(!e)return;const t=T1(e),n=t[0],i=IC(t[1]),r=IC(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${r}%, ${Yr(e.a)})`:`hsl(${n}, ${i}%, ${r}%)`}const NC={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},DC={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function OK(){const e={},t=Object.keys(DC),n=Object.keys(NC);let i,r,o,s,l;for(i=0;i>16&255,o>>8&255,o&255]}return e}let kh;function MK(e){kh||(kh=OK(),kh.transparent=[0,0,0,0]);const t=kh[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const LK=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function AK(e){const t=LK.exec(e);let n=255,i,r,o;if(t){if(t[7]!==i){const s=+t[7];n=t[8]?Yc(s):Uo(s*255,0,255)}return i=+t[1],r=+t[3],o=+t[5],i=255&(t[2]?Yc(i):Uo(i,0,255)),r=255&(t[4]?Yc(r):Uo(r,0,255)),o=255&(t[6]?Yc(o):Uo(o,0,255)),{r:i,g:r,b:o,a:n}}}function RK(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Yr(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const e0=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Ha=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function IK(e,t,n){const i=Ha(Yr(e.r)),r=Ha(Yr(e.g)),o=Ha(Yr(e.b));return{r:rs(e0(i+n*(Ha(Yr(t.r))-i))),g:rs(e0(r+n*(Ha(Yr(t.g))-r))),b:rs(e0(o+n*(Ha(Yr(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Eh(e,t,n){if(e){let i=T1(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,t===0?360:1)),i=O1(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function LM(e,t){return e&&Object.assign(t||{},e)}function jC(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=rs(e[3]))):(t=LM(e,{r:0,g:0,b:0,a:1}),t.a=rs(t.a)),t}function NK(e){return e.charAt(0)==="r"?AK(e):EK(e)}class ed{constructor(t){if(t instanceof ed)return t;const n=typeof t;let i;n==="object"?i=jC(t):n==="string"&&(i=vK(t)||MK(t)||NK(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=LM(this._rgb);return t&&(t.a=Yr(t.a)),t}set rgb(t){this._rgb=jC(t)}rgbString(){return this._valid?RK(this._rgb):void 0}hexString(){return this._valid?bK(this._rgb):void 0}hslString(){return this._valid?PK(this._rgb):void 0}mix(t,n){if(t){const i=this.rgb,r=t.rgb;let o;const s=n===o?.5:n,l=2*s-1,c=i.a-r.a,u=((l*c===-1?l:(l+c)/(1+l*c))+1)/2;o=1-u,i.r=255&u*i.r+o*r.r+.5,i.g=255&u*i.g+o*r.g+.5,i.b=255&u*i.b+o*r.b+.5,i.a=s*i.a+(1-s)*r.a,this.rgb=i}return this}interpolate(t,n){return t&&(this._rgb=IK(this._rgb,t._rgb,n)),this}clone(){return new ed(this.rgb)}alpha(t){return this._rgb.a=rs(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Td(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Eh(this._rgb,2,t),this}darken(t){return Eh(this._rgb,2,-t),this}saturate(t){return Eh(this._rgb,1,t),this}desaturate(t){return Eh(this._rgb,1,-t),this}rotate(t){return TK(this._rgb,t),this}}/*! + * Chart.js v4.4.2 + * https://www.chartjs.org + * (c) 2024 Chart.js Contributors + * Released under the MIT License + */function Fr(){}const DK=(()=>{let e=0;return()=>e++})();function dt(e){return e===null||typeof e>"u"}function Pt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Ve(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function ln(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function ii(e,t){return ln(e)?e:t}function Re(e,t){return typeof e>"u"?t:e}const jK=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,AM=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function it(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Ke(e,t,n,i){let r,o,s;if(Pt(e))for(o=e.length,r=0;re,x:e=>e.x,y:e=>e.y};function BK(e){const t=e.split("."),n=[];let i="";for(const r of t)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function FK(e){const t=BK(e);return n=>{for(const i of t){if(i==="")break;n=n&&n[i]}return n}}function nd(e,t){return(zC[t]||(zC[t]=FK(t)))(e)}function M1(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Sp=e=>typeof e<"u",ds=e=>typeof e=="function",$C=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function HK(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const bt=Math.PI,yt=2*bt,VK=yt+bt,Cp=Number.POSITIVE_INFINITY,WK=bt/180,Nt=bt/2,Es=bt/4,BC=bt*2/3,Zo=Math.log10,Bl=Math.sign;function mu(e,t,n){return Math.abs(e-t)r-o).pop(),t}function id(e){return!isNaN(parseFloat(e))&&isFinite(e)}function ZK(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function IM(e,t,n){let i,r,o;for(i=0,r=e.length;ic&&u=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function A1(e,t,n){n=n||(s=>e[s]1;)o=r+i>>1,n(o)?r=o:i=o;return{lo:r,hi:i}}const Zs=(e,t,n,i)=>A1(e,n,i?r=>{const o=e[r][t];return oe[r][t]A1(e,n,i=>e[i][t]>=n);function qK(e,t,n){let i=0,r=e.length;for(;ii&&e[r-1]>n;)r--;return i>0||r{const i="_onData"+M1(n),r=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const s=r.apply(this,o);return e._chartjs.listeners.forEach(l=>{typeof l[i]=="function"&&l[i](...o)}),s}})})}function VC(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(t);r!==-1&&i.splice(r,1),!(i.length>0)&&(DM.forEach(o=>{delete e[o]}),delete e._chartjs)}function QK(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const jM=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function zM(e,t){let n=[],i=!1;return function(...r){n=r,i||(i=!0,jM.call(window,()=>{i=!1,e.apply(t,n)}))}}function JK(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}const R1=e=>e==="start"?"left":e==="end"?"right":"center",kn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,eq=(e,t,n,i)=>e===(i?"left":"right")?n:e==="center"?(t+n)/2:t;function tq(e,t,n){const i=t.length;let r=0,o=i;if(e._sorted){const{iScale:s,_parsed:l}=e,c=s.axis,{min:u,max:h,minDefined:f,maxDefined:m}=s.getUserBounds();f&&(r=Nn(Math.min(Zs(l,c,u).lo,n?i:Zs(t,c,s.getPixelForValue(u)).lo),0,i-1)),m?o=Nn(Math.max(Zs(l,s.axis,h,!0).hi+1,n?0:Zs(t,c,s.getPixelForValue(h),!0).hi+1),r,i)-r:o=i-r}return{start:r,count:o}}function nq(e){const{xScale:t,yScale:n,_scaleRanges:i}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!i)return e._scaleRanges=r,!0;const o=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),o}const Th=e=>e===0||e===1,WC=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*yt/n)),UC=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*yt/n)+1,gu={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Nt)+1,easeOutSine:e=>Math.sin(e*Nt),easeInOutSine:e=>-.5*(Math.cos(bt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Th(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Th(e)?e:WC(e,.075,.3),easeOutElastic:e=>Th(e)?e:UC(e,.075,.3),easeInOutElastic(e){return Th(e)?e:e<.5?.5*WC(e*2,.1125,.45):.5+.5*UC(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-gu.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?gu.easeInBounce(e*2)*.5:gu.easeOutBounce(e*2-1)*.5+.5};function I1(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function ZC(e){return I1(e)?e:new ed(e)}function t0(e){return I1(e)?e:new ed(e).saturate(.5).darken(.1).hexString()}const iq=["x","y","borderWidth","radius","tension"],rq=["color","borderColor","backgroundColor"];function oq(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:rq},numbers:{type:"number",properties:iq}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function sq(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const GC=new Map;function aq(e,t){t=t||{};const n=e+JSON.stringify(t);let i=GC.get(n);return i||(i=new Intl.NumberFormat(e,t),GC.set(n,i)),i}function tg(e,t,n){return aq(t,n).format(e)}const $M={values(e){return Pt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const i=this.chart.options.locale;let r,o=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(r="scientific"),o=lq(e,n)}const s=Zo(Math.abs(o)),l=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),c={notation:r,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),tg(e,i,c)},logarithmic(e,t,n){if(e===0)return"0";const i=n[t].significand||e/Math.pow(10,Math.floor(Zo(e)));return[1,2,3,5,10,15].includes(i)||t>.8*n.length?$M.numeric.call(this,e,t,n):""}};function lq(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var ng={formatters:$M};function cq(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ng.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const ma=Object.create(null),rb=Object.create(null);function vu(e,t){if(!t)return e;const n=t.split(".");for(let i=0,r=n.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>t0(r.backgroundColor),this.hoverBorderColor=(i,r)=>t0(r.borderColor),this.hoverColor=(i,r)=>t0(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return n0(this,t,n)}get(t){return vu(this,t)}describe(t,n){return n0(rb,t,n)}override(t,n){return n0(ma,t,n)}route(t,n,i,r){const o=vu(this,t),s=vu(this,i),l="_"+n;Object.defineProperties(o,{[l]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const c=this[l],u=s[r];return Ve(c)?Object.assign({},u,c):Re(c,u)},set(c){this[l]=c}}})}apply(t){t.forEach(n=>n(this))}}var Ot=new uq({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[oq,sq,cq]);function dq(e){return!e||dt(e.size)||dt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function kp(e,t,n,i,r){let o=t[r];return o||(o=t[r]=e.measureText(r).width,n.push(r)),o>i&&(i=o),i}function hq(e,t,n,i){i=i||{};let r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},o=i.garbageCollect=[],i.font=t),e.save(),e.font=t;let s=0;const l=n.length;let c,u,h,f,m;for(c=0;cn.length){for(c=0;c0&&e.stroke()}}function Qr(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&o.strokeColor!=="";let c,u;for(e.save(),e.font=r.string,mq(e,o),c=0;c+e||0;function j1(e,t){const n={},i=Ve(t),r=i?Object.keys(t):t,o=Ve(e)?i?s=>Re(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of r)n[s]=_q(o(s));return n}function wq(e){return j1(e,{top:"y",right:"x",bottom:"y",left:"x"})}function xl(e){return j1(e,["topLeft","topRight","bottomLeft","bottomRight"])}function On(e){const t=wq(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function en(e,t){e=e||{},t=t||Ot.font;let n=Re(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let i=Re(e.style,t.style);i&&!(""+i).match(bq)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:Re(e.family,t.family),lineHeight:xq(Re(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:Re(e.weight,t.weight),string:""};return r.string=dq(r),r}function Ph(e,t,n,i){let r,o,s;for(r=0,o=e.length;rn&&l===0?0:l+c;return{min:s(i,-Math.abs(o)),max:s(r,o)}}function gs(e,t){return Object.assign(Object.create(e),t)}function z1(e,t=[""],n,i,r=()=>e[0]){const o=n||e;typeof i>"u"&&(i=WM("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:i,_getTarget:r,override:l=>z1([l,...e],t,o,i)};return new Proxy(s,{deleteProperty(l,c){return delete l[c],delete l._keys,delete e[0][c],!0},get(l,c){return HM(l,c,()=>Lq(c,t,e,l))},getOwnPropertyDescriptor(l,c){return Reflect.getOwnPropertyDescriptor(l._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(l,c){return qC(l).includes(c)},ownKeys(l){return qC(l)},set(l,c,u){const h=l._storage||(l._storage=r());return l[c]=h[c]=u,delete l._keys,!0}})}function Fl(e,t,n,i){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:FM(e,i),setContext:o=>Fl(e,o,n,i),override:o=>Fl(e.override(o),t,n,i)};return new Proxy(r,{deleteProperty(o,s){return delete o[s],delete e[s],!0},get(o,s,l){return HM(o,s,()=>kq(o,s,l))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(o,s,l){return e[s]=l,delete o[s],!0}})}function FM(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:i,isScriptable:ds(n)?n:()=>n,isIndexable:ds(i)?i:()=>i}}const Cq=(e,t)=>e?e+M1(t):t,$1=(e,t)=>Ve(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function HM(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const i=n();return e[t]=i,i}function kq(e,t,n){const{_proxy:i,_context:r,_subProxy:o,_descriptors:s}=e;let l=i[t];return ds(l)&&s.isScriptable(t)&&(l=Eq(t,l,e,n)),Pt(l)&&l.length&&(l=Tq(t,l,e,s.isIndexable)),$1(t,l)&&(l=Fl(l,r,o&&o[t],s)),l}function Eq(e,t,n,i){const{_proxy:r,_context:o,_subProxy:s,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);l.add(e);let c=t(o,s||i);return l.delete(e),$1(e,c)&&(c=B1(r._scopes,r,e,c)),c}function Tq(e,t,n,i){const{_proxy:r,_context:o,_subProxy:s,_descriptors:l}=n;if(typeof o.index<"u"&&i(e))return t[o.index%t.length];if(Ve(t[0])){const c=t,u=r._scopes.filter(h=>h!==c);t=[];for(const h of c){const f=B1(u,r,e,h);t.push(Fl(f,o,s&&s[e],l))}}return t}function VM(e,t,n){return ds(e)?e(t,n):e}const Pq=(e,t)=>e===!0?t:typeof e=="string"?nd(t,e):void 0;function Oq(e,t,n,i,r){for(const o of t){const s=Pq(n,o);if(s){e.add(s);const l=VM(s._fallback,n,r);if(typeof l<"u"&&l!==n&&l!==i)return l}else if(s===!1&&typeof i<"u"&&n!==i)return null}return!1}function B1(e,t,n,i){const r=t._rootScopes,o=VM(t._fallback,n,i),s=[...e,...r],l=new Set;l.add(i);let c=KC(l,s,n,o||n,i);return c===null||typeof o<"u"&&o!==n&&(c=KC(l,s,o,c,i),c===null)?!1:z1(Array.from(l),[""],r,o,()=>Mq(t,n,i))}function KC(e,t,n,i,r){for(;n;)n=Oq(e,t,n,i,r);return n}function Mq(e,t,n){const i=e._getTarget();t in i||(i[t]={});const r=i[t];return Pt(r)&&Ve(n)?n:r||{}}function Lq(e,t,n,i){let r;for(const o of t)if(r=WM(Cq(o,e),n),typeof r<"u")return $1(e,r)?B1(n,i,e,r):r}function WM(e,t){for(const n of t){if(!n)continue;const i=n[e];if(typeof i<"u")return i}}function qC(e){let t=e._keys;return t||(t=e._keys=Aq(e._scopes)),t}function Aq(e){const t=new Set;for(const n of e)for(const i of Object.keys(n).filter(r=>!r.startsWith("_")))t.add(i);return Array.from(t)}const Rq=Number.EPSILON||1e-14,Hl=(e,t)=>te==="x"?"y":"x";function Iq(e,t,n,i){const r=e.skip?t:e,o=t,s=n.skip?t:n,l=ib(o,r),c=ib(s,o);let u=l/(l+c),h=c/(l+c);u=isNaN(u)?0:u,h=isNaN(h)?0:h;const f=i*u,m=i*h;return{previous:{x:o.x-f*(s.x-r.x),y:o.y-f*(s.y-r.y)},next:{x:o.x+m*(s.x-r.x),y:o.y+m*(s.y-r.y)}}}function Nq(e,t,n){const i=e.length;let r,o,s,l,c,u=Hl(e,0);for(let h=0;h!u.skip)),t.cubicInterpolationMode==="monotone")jq(e,r);else{let u=i?e[e.length-1]:e[0];for(o=0,s=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function Bq(e,t){return ig(e).getPropertyValue(t)}const Fq=["top","right","bottom","left"];function ea(e,t,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const o=Fq[r];i[o]=parseFloat(e[t+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const Hq=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Vq(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:r,offsetY:o}=i;let s=!1,l,c;if(Hq(r,o,e.target))l=r,c=o;else{const u=t.getBoundingClientRect();l=i.clientX-u.left,c=i.clientY-u.top,s=!0}return{x:l,y:c,box:s}}function Ns(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,r=ig(n),o=r.boxSizing==="border-box",s=ea(r,"padding"),l=ea(r,"border","width"),{x:c,y:u,box:h}=Vq(e,n),f=s.left+(h&&l.left),m=s.top+(h&&l.top);let{width:b,height:v}=t;return o&&(b-=s.width+l.width,v-=s.height+l.height),{x:Math.round((c-f)/b*n.width/i),y:Math.round((u-m)/v*n.height/i)}}function Wq(e,t,n){let i,r;if(t===void 0||n===void 0){const o=H1(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const s=o.getBoundingClientRect(),l=ig(o),c=ea(l,"border","width"),u=ea(l,"padding");t=s.width-u.width-c.width,n=s.height-u.height-c.height,i=Tp(l.maxWidth,o,"clientWidth"),r=Tp(l.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:i||Cp,maxHeight:r||Cp}}const Mh=e=>Math.round(e*10)/10;function Uq(e,t,n,i){const r=ig(e),o=ea(r,"margin"),s=Tp(r.maxWidth,e,"clientWidth")||Cp,l=Tp(r.maxHeight,e,"clientHeight")||Cp,c=Wq(e,t,n);let{width:u,height:h}=c;if(r.boxSizing==="content-box"){const m=ea(r,"border","width"),b=ea(r,"padding");u-=b.width+m.width,h-=b.height+m.height}return u=Math.max(0,u-o.width),h=Math.max(0,i?u/i:h-o.height),u=Mh(Math.min(u,s,c.maxWidth)),h=Mh(Math.min(h,l,c.maxHeight)),u&&!h&&(h=Mh(u/2)),(t!==void 0||n!==void 0)&&i&&c.height&&h>c.height&&(h=c.height,u=Mh(Math.floor(h*i))),{width:u,height:h}}function XC(e,t,n){const i=t||1,r=Math.floor(e.height*i),o=Math.floor(e.width*i);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==i||s.height!==r||s.width!==o?(e.currentDevicePixelRatio=i,s.height=r,s.width=o,e.ctx.setTransform(i,0,0,i,0,0),!0):!1}const Zq=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};F1()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function QC(e,t){const n=Bq(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Ds(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Gq(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:i==="middle"?n<.5?e.y:t.y:i==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function Yq(e,t,n,i){const r={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},s=Ds(e,r,n),l=Ds(r,o,n),c=Ds(o,t,n),u=Ds(s,l,n),h=Ds(l,c,n);return Ds(u,h,n)}const Kq=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},qq=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function _l(e,t,n){return e?Kq(t,n):qq()}function ZM(e,t){let n,i;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function GM(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function YM(e){return e==="angle"?{between:rd,compare:GK,normalize:Xi}:{between:al,compare:(t,n)=>t-n,normalize:t=>t}}function JC({start:e,end:t,count:n,loop:i,style:r}){return{start:e%n,end:t%n,loop:i&&(t-e+1)%n===0,style:r}}function Xq(e,t,n){const{property:i,start:r,end:o}=n,{between:s,normalize:l}=YM(i),c=t.length;let{start:u,end:h,loop:f}=e,m,b;if(f){for(u+=c,h+=c,m=0,b=c;mc(r,k,x)&&l(r,k)!==0,P=()=>l(o,x)===0||c(o,k,x),O=()=>y||T(),M=()=>!y||P();for(let R=h,N=h;R<=f;++R)S=t[R%s],!S.skip&&(x=u(S[i]),x!==k&&(y=c(x,r,o),w===null&&O()&&(w=l(x,r)===0?R:N),w!==null&&M()&&(v.push(JC({start:w,end:R,loop:m,count:s,style:b})),w=null),N=R,k=x));return w!==null&&v.push(JC({start:w,end:f,loop:m,count:s,style:b})),v}function Jq(e,t){const n=[],i=e.segments;for(let r=0;rr&&e[o%t].skip;)o--;return o%=t,{start:r,end:o}}function tX(e,t,n,i){const r=e.length,o=[];let s=t,l=e[t],c;for(c=t+1;c<=n;++c){const u=e[c%r];u.skip||u.stop?l.skip||(i=!1,o.push({start:t%r,end:(c-1)%r,loop:i}),t=s=u.stop?c:null):(s=c,l.skip&&(t=c)),l=u}return s!==null&&o.push({start:t%r,end:s%r,loop:i}),o}function nX(e,t){const n=e.points,i=e.options.spanGaps,r=n.length;if(!r)return[];const o=!!e._loop,{start:s,end:l}=eX(n,r,o,i);if(i===!0)return ek(e,[{start:s,end:l,loop:o}],n,t);const c=ll({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(i-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=jM.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;const o=i.items;let s=o.length-1,l=!1,c;for(;s>=0;--s)c=o[s],c._active?(c._total>i.duration&&(i.duration=c._total),c.tick(t),l=!0):(o[s]=o[o.length-1],o.pop());l&&(r.draw(),this._notify(r,i,t,"progress")),o.length||(i.running=!1,this._notify(r,i,t,"complete"),i.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let i=n.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,i)),i}listen(t,n,i){this._getAnims(t).listeners[n].push(i)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const i=n.items;let r=i.length-1;for(;r>=0;--r)i[r].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Hr=new oX;const nk="transparent",sX={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const i=ZC(e||nk),r=i.valid&&ZC(t||nk);return r&&r.valid?r.mix(i,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class aX{constructor(t,n,i,r){const o=n[i];r=Ph([t.to,r,o,t.from]);const s=Ph([t.from,o,r]);this._active=!0,this._fn=t.fn||sX[t.type||typeof s],this._easing=gu[t.easing]||gu.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=i,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(t,n,i){if(this._active){this._notify(!1);const r=this._target[this._prop],o=i-this._start,s=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Ph([t.to,n,r,t.from]),this._from=Ph([t.from,r,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,i=this._duration,r=this._prop,o=this._from,s=this._loop,l=this._to;let c;if(this._active=o!==l&&(s||n1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[r]=this._fn(o,l,c)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,i)=>{t.push({res:n,rej:i})})}_notify(t){const n=t?"res":"rej",i=this._promises||[];for(let r=0;r{const o=t[r];if(!Ve(o))return;const s={};for(const l of n)s[l]=o[l];(Pt(o.properties)&&o.properties||[r]).forEach(l=>{(l===r||!i.has(l))&&i.set(l,s)})})}_animateOptions(t,n){const i=n.options,r=cX(t,i);if(!r)return[];const o=this._createAnimations(r,i);return i.$shared&&lX(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,n){const i=this._properties,r=[],o=t.$animations||(t.$animations={}),s=Object.keys(n),l=Date.now();let c;for(c=s.length-1;c>=0;--c){const u=s[c];if(u.charAt(0)==="$")continue;if(u==="options"){r.push(...this._animateOptions(t,n));continue}const h=n[u];let f=o[u];const m=i.get(u);if(f)if(m&&f.active()){f.update(m,h,l);continue}else f.cancel();if(!m||!m.duration){t[u]=h;continue}o[u]=f=new aX(m,t,u,h),r.push(f)}return r}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const i=this._createAnimations(t,n);if(i.length)return Hr.add(this._chart,i),!0}}function lX(e,t){const n=[],i=Object.keys(t);for(let r=0;r0||!n&&o<0)return r.index}return null}function ak(e,t){const{chart:n,_cachedMeta:i}=e,r=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:l}=i,c=o.axis,u=s.axis,h=fX(o,s,i),f=t.length;let m;for(let b=0;bn[i].axis===t).shift()}function gX(e,t){return gs(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function vX(e,t,n){return gs(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Nc(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const r of t){const o=r._stacks;if(!o||o[i]===void 0||o[i][n]===void 0)return;delete o[i][n],o[i]._visualValues!==void 0&&o[i]._visualValues[n]!==void 0&&delete o[i]._visualValues[n]}}}const r0=e=>e==="reset"||e==="none",lk=(e,t)=>t?e:Object.assign({},e),yX=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:qM(n,!0),values:null};class wl{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=ok(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Nc(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,i=this.getDataset(),r=(f,m,b,v)=>f==="x"?m:f==="r"?v:b,o=n.xAxisID=Re(i.xAxisID,i0(t,"x")),s=n.yAxisID=Re(i.yAxisID,i0(t,"y")),l=n.rAxisID=Re(i.rAxisID,i0(t,"r")),c=n.indexAxis,u=n.iAxisID=r(c,o,s,l),h=n.vAxisID=r(c,s,o,l);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&VC(this._data,this),t._stacked&&Nc(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(Ve(n))this._data=hX(n);else if(i!==n){if(i){VC(i,this);const r=this._cachedMeta;Nc(r),r._parsed=[]}n&&Object.isExtensible(n)&&XK(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,i=this.getDataset();let r=!1;this._dataCheck();const o=n._stacked;n._stacked=ok(n.vScale,n),n.stack!==i.stack&&(r=!0,Nc(n),n.stack=i.stack),this._resyncElements(t),(r||o!==n._stacked)&&ak(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:i,_data:r}=this,{iScale:o,_stacked:s}=i,l=o.axis;let c=t===0&&n===r.length?!0:i._sorted,u=t>0&&i._parsed[t-1],h,f,m;if(this._parsing===!1)i._parsed=r,i._sorted=!0,m=r;else{Pt(r[t])?m=this.parseArrayData(i,r,t,n):Ve(r[t])?m=this.parseObjectData(i,r,t,n):m=this.parsePrimitiveData(i,r,t,n);const b=()=>f[l]===null||u&&f[l]y||f=0;--m)if(!v()){this.updateRangeFromParsed(u,t,b,c);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,i=[];let r,o,s;for(r=0,o=n.length;r=0&&tthis.getContext(i,r,n),y=u.resolveNamedOptions(m,b,v,f);return y.$shared&&(y.$shared=c,o[s]=Object.freeze(lk(y,c))),y}_resolveAnimations(t,n,i){const r=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,l=o[s];if(l)return l;let c;if(r.options.animation!==!1){const h=this.chart.config,f=h.datasetAnimationScopeKeys(this._type,n),m=h.getOptionScopes(this.getDataset(),f);c=h.createResolver(m,this.getContext(t,i,n))}const u=new KM(r,c&&c.animations);return c&&c._cacheable&&(o[s]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||r0(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const i=this.resolveDataElementOptions(t,n),r=this._sharedOptions,o=this.getSharedOptions(i),s=this.includeOptions(n,o)||o!==r;return this.updateSharedOptions(o,n,i),{sharedOptions:o,includeOptions:s}}updateElement(t,n,i,r){r0(r)?Object.assign(t,i):this._resolveAnimations(n,r).update(t,i)}updateSharedOptions(t,n,i){t&&!r0(n)&&this._resolveAnimations(void 0,n).update(t,i)}_setStyle(t,n,i,r){t.active=r;const o=this.getStyle(n,r);this._resolveAnimations(n,i,r).update(t,{options:!r&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,n,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,i=this._cachedMeta.data;for(const[l,c,u]of this._syncList)this[l](c,u);this._syncList=[];const r=i.length,o=n.length,s=Math.min(o,r);s&&this.parse(0,s),o>r?this._insertElements(r,o-r,t):o{for(u.length+=n,l=u.length-1;l>=s;l--)u[l]=u[l-n]};for(c(o),l=t;lrd(k,l,c,!0)?1:Math.max(T,T*n,P,P*n),v=(k,T,P)=>rd(k,l,c,!0)?-1:Math.min(T,T*n,P,P*n),y=b(0,u,f),w=b(Nt,h,m),x=v(bt,u,f),S=v(bt+Nt,h,m);i=(y-x)/2,r=(w-S)/2,o=-(y+x)/2,s=-(w+S)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:s}}class Kc extends wl{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const i=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=i;else{let o=c=>+i[c];if(Ve(i[t])){const{key:c="value"}=this._parsing;o=u=>+nd(i[u],c)}let s,l;for(s=t,l=t+n;s0&&!isNaN(t)?yt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,i=this.chart,r=i.data.labels||[],o=tg(n._parsed[t],i.options.locale);return{label:r[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const i=this.chart;let r,o,s,l,c;if(!t){for(r=0,o=i.data.datasets.length;rt!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),he(Kc,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:r}}=t.legend.options;return n.labels.map((o,s)=>{const c=t.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:r,lineWidth:c.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}});class pf extends wl{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:i,data:r=[],_dataset:o}=n,s=this.chart._animationsDisabled;let{start:l,count:c}=tq(n,r,s);this._drawStart=l,this._drawCount=c,nq(n)&&(l=0,c=r.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=r;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(i,void 0,{animated:!s,options:u},t),this.updateElements(r,l,c,t)}updateElements(t,n,i,r){const o=r==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,{sharedOptions:h,includeOptions:f}=this._getSharedOptions(n,r),m=s.axis,b=l.axis,{spanGaps:v,segment:y}=this.options,w=id(v)?v:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||r==="none",S=n+i,k=t.length;let T=n>0&&this.getParsed(n-1);for(let P=0;P=S){M.skip=!0;continue}const R=this.getParsed(P),N=dt(R[b]),I=M[m]=s.getPixelForValue(R[m],P),$=M[b]=o||N?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,R,c):R[b],P);M.skip=isNaN(I)||isNaN($)||N,M.stop=P>0&&Math.abs(R[m]-T[m])>w,y&&(M.parsed=R,M.raw=u.data[P]),f&&(M.options=h||this.resolveDataElementOptions(P,O.active?"active":r)),x||this.updateElement(O,P,M,r),T=R}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,i=n.options&&n.options.borderWidth||0,r=t.data||[];if(!r.length)return i;const o=r[0].size(this.resolveDataElementOptions(0)),s=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(i,o,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}he(pf,"id","line"),he(pf,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),he(pf,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class sb extends Kc{}he(sb,"id","pie"),he(sb,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});function Ps(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class V1{constructor(t){he(this,"options");this.options=t||{}}static override(t){Object.assign(V1.prototype,t)}init(){}formats(){return Ps()}parse(){return Ps()}format(){return Ps()}add(){return Ps()}diff(){return Ps()}startOf(){return Ps()}endOf(){return Ps()}}var xX={_date:V1};function _X(e,t,n,i){const{controller:r,data:o,_sorted:s}=e,l=r._cachedMeta.iScale;if(l&&t===l.axis&&t!=="r"&&s&&o.length){const c=l._reversePixels?KK:Zs;if(i){if(r._sharedOptions){const u=o[0],h=typeof u.getRange=="function"&&u.getRange(t);if(h){const f=c(o,t,n-h),m=c(o,t,n+h);return{lo:f.lo,hi:m.hi}}}}else return c(o,t,n)}return{lo:0,hi:o.length-1}}function Pd(e,t,n,i,r){const o=e.getSortedVisibleDatasetMetas(),s=n[t];for(let l=0,c=o.length;l{c[s](t[n],r)&&(o.push({element:c,datasetIndex:u,index:h}),l=l||c.inRange(t.x,t.y,r))}),i&&!l?[]:o}var kX={evaluateInteractionItems:Pd,modes:{index(e,t,n,i){const r=Ns(t,e),o=n.axis||"x",s=n.includeInvisible||!1,l=n.intersect?o0(e,r,o,i,s):s0(e,r,o,!1,i,s),c=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const h=l[0].index,f=u.data[h];f&&!f.skip&&c.push({element:f,datasetIndex:u.index,index:h})}),c):[]},dataset(e,t,n,i){const r=Ns(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;let l=n.intersect?o0(e,r,o,i,s):s0(e,r,o,!1,i,s);if(l.length>0){const c=l[0].datasetIndex,u=e.getDatasetMeta(c).data;l=[];for(let h=0;hn.pos===t)}function uk(e,t){return e.filter(n=>XM.indexOf(n.pos)===-1&&n.box.axis===t)}function jc(e,t){return e.sort((n,i)=>{const r=t?i:n,o=t?n:i;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function EX(e){const t=[];let n,i,r,o,s,l;for(n=0,i=(e||[]).length;nu.box.fullSize),!0),i=jc(Dc(t,"left"),!0),r=jc(Dc(t,"right")),o=jc(Dc(t,"top"),!0),s=jc(Dc(t,"bottom")),l=uk(t,"x"),c=uk(t,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:r.concat(c).concat(s).concat(l),chartArea:Dc(t,"chartArea"),vertical:i.concat(r).concat(c),horizontal:o.concat(s).concat(l)}}function dk(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function QM(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function MX(e,t,n,i){const{pos:r,box:o}=n,s=e.maxPadding;if(!Ve(r)){n.size&&(e[r]-=n.size);const f=i[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?o.height:o.width),n.size=f.size/f.count,e[r]+=n.size}o.getPadding&&QM(s,o.getPadding());const l=Math.max(0,t.outerWidth-dk(s,e,"left","right")),c=Math.max(0,t.outerHeight-dk(s,e,"top","bottom")),u=l!==e.w,h=c!==e.h;return e.w=l,e.h=c,n.horizontal?{same:u,other:h}:{same:h,other:u}}function LX(e){const t=e.maxPadding;function n(i){const r=Math.max(t[i]-e[i],0);return e[i]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function AX(e,t){const n=t.maxPadding;function i(r){const o={left:0,top:0,right:0,bottom:0};return r.forEach(s=>{o[s]=Math.max(t[s],n[s])}),o}return i(e?["left","right"]:["top","bottom"])}function qc(e,t,n,i){const r=[];let o,s,l,c,u,h;for(o=0,s=e.length,u=0;o{typeof y.beforeLayout=="function"&&y.beforeLayout()});const h=c.reduce((y,w)=>w.box.options&&w.box.options.display===!1?y:y+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/h,hBoxMaxHeight:s/2}),m=Object.assign({},r);QM(m,On(i));const b=Object.assign({maxPadding:m,w:o,h:s,x:r.left,y:r.top},r),v=PX(c.concat(u),f);qc(l.fullSize,b,f,v),qc(c,b,f,v),qc(u,b,f,v)&&qc(c,b,f,v),LX(b),hk(l.leftAndTop,b,f,v),b.x+=b.w,b.y+=b.h,hk(l.rightAndBottom,b,f,v),e.chartArea={left:b.left,top:b.top,right:b.left+b.w,bottom:b.top+b.h,height:b.h,width:b.w},Ke(l.chartArea,y=>{const w=y.box;Object.assign(w,e.chartArea),w.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}};class JM{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,i){}removeEventListener(t,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,i,r){return n=Math.max(0,n||t.width),i=i||t.height,{width:n,height:Math.max(0,r?Math.floor(n/r):i)}}isAttached(t){return!0}updateConfig(t){}}class RX extends JM{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const mf="$chartjs",IX={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},fk=e=>e===null||e==="";function NX(e,t){const n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e[mf]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",fk(r)){const o=QC(e,"width");o!==void 0&&(e.width=o)}if(fk(i))if(e.style.height==="")e.height=e.width/(t||2);else{const o=QC(e,"height");o!==void 0&&(e.height=o)}return e}const e3=Zq?{passive:!0}:!1;function DX(e,t,n){e&&e.addEventListener(t,n,e3)}function jX(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,e3)}function zX(e,t){const n=IX[e.type]||e.type,{x:i,y:r}=Ns(e,t);return{type:n,chart:t,native:e,x:i!==void 0?i:null,y:r!==void 0?r:null}}function Pp(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function $X(e,t,n){const i=e.canvas,r=new MutationObserver(o=>{let s=!1;for(const l of o)s=s||Pp(l.addedNodes,i),s=s&&!Pp(l.removedNodes,i);s&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function BX(e,t,n){const i=e.canvas,r=new MutationObserver(o=>{let s=!1;for(const l of o)s=s||Pp(l.removedNodes,i),s=s&&!Pp(l.addedNodes,i);s&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const od=new Map;let pk=0;function t3(){const e=window.devicePixelRatio;e!==pk&&(pk=e,od.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function FX(e,t){od.size||window.addEventListener("resize",t3),od.set(e,t)}function HX(e){od.delete(e),od.size||window.removeEventListener("resize",t3)}function VX(e,t,n){const i=e.canvas,r=i&&H1(i);if(!r)return;const o=zM((l,c)=>{const u=r.clientWidth;n(l,c),u{const c=l[0],u=c.contentRect.width,h=c.contentRect.height;u===0&&h===0||o(u,h)});return s.observe(r),FX(e,o),s}function a0(e,t,n){n&&n.disconnect(),t==="resize"&&HX(e)}function WX(e,t,n){const i=e.canvas,r=zM(o=>{e.ctx!==null&&n(zX(o,e))},e);return DX(i,t,r),r}class UX extends JM{acquireContext(t,n){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(NX(t,n),i):null}releaseContext(t){const n=t.canvas;if(!n[mf])return!1;const i=n[mf].initial;["height","width"].forEach(o=>{const s=i[o];dt(s)?n.removeAttribute(o):n.setAttribute(o,s)});const r=i.style||{};return Object.keys(r).forEach(o=>{n.style[o]=r[o]}),n.width=n.width,delete n[mf],!0}addEventListener(t,n,i){this.removeEventListener(t,n);const r=t.$proxies||(t.$proxies={}),s={attach:$X,detach:BX,resize:VX}[n]||WX;r[n]=s(t,n,i)}removeEventListener(t,n){const i=t.$proxies||(t.$proxies={}),r=i[n];if(!r)return;({attach:a0,detach:a0,resize:a0}[n]||jX)(t,n,r),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,i,r){return Uq(t,n,i,r)}isAttached(t){const n=H1(t);return!!(n&&n.isConnected)}}function ZX(e){return!F1()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?RX:UX}var $h;let vs=($h=class{constructor(){he(this,"x");he(this,"y");he(this,"active",!1);he(this,"options");he(this,"$animations")}tooltipPosition(t){const{x:n,y:i}=this.getProps(["x","y"],t);return{x:n,y:i}}hasValue(){return id(this.x)&&id(this.y)}getProps(t,n){const i=this.$animations;if(!n||!i)return this;const r={};return t.forEach(o=>{r[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),r}},he($h,"defaults",{}),he($h,"defaultRoutes"),$h);function GX(e,t){const n=e.options.ticks,i=YX(e),r=Math.min(n.maxTicksLimit||i,i),o=n.major.enabled?qX(t):[],s=o.length,l=o[0],c=o[s-1],u=[];if(s>r)return XX(t,u,o,s/r),u;const h=KX(o,t,r);if(s>0){let f,m;const b=s>1?Math.round((c-l)/(s-1)):null;for(Ah(t,u,h,dt(b)?0:l-b,l),f=0,m=s-1;fr)return c}return Math.max(r,1)}function qX(e){const t=[];let n,i;for(n=0,i=e.length;ne==="left"?"right":e==="right"?"left":e,mk=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,gk=(e,t)=>Math.min(t||e,e);function vk(e,t){const n=[],i=e.length/t,r=e.length;let o=0;for(;os+l)))return c}function tQ(e,t){Ke(e,n=>{const i=n.gc,r=i.length/2;let o;if(r>t){for(o=0;oi?i:n,i=r&&n>i?n:i,{min:ii(n,ii(i,n)),max:ii(i,ii(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){it(this.options.beforeUpdate,[this])}update(t,n,i){const{beginAtZero:r,grace:o,ticks:s}=this.options,l=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Sq(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l=o||i<=1||!this.isHorizontal()){this.labelRotation=r;return}const h=this._getLabelSizes(),f=h.widest.width,m=h.highest.height,b=Nn(this.chart.width-f,0,this.maxWidth);l=t.offset?this.maxWidth/i:b/(i-1),f+6>l&&(l=b/(i-(t.offset?.5:1)),c=this.maxHeight-zc(t.grid)-n.padding-yk(t.title,this.chart.options.font),u=Math.sqrt(f*f+m*m),s=L1(Math.min(Math.asin(Nn((h.highest.height+6)/l,-1,1)),Math.asin(Nn(c/u,-1,1))-Math.asin(Nn(m/u,-1,1)))),s=Math.max(r,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){it(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){it(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:i,title:r,grid:o}}=this,s=this._isVisible(),l=this.isHorizontal();if(s){const c=yk(r,n.options.font);if(l?(t.width=this.maxWidth,t.height=zc(o)+c):(t.height=this.maxHeight,t.width=zc(o)+c),i.display&&this.ticks.length){const{first:u,last:h,widest:f,highest:m}=this._getLabelSizes(),b=i.padding*2,v=_r(this.labelRotation),y=Math.cos(v),w=Math.sin(v);if(l){const x=i.mirror?0:w*f.width+y*m.height;t.height=Math.min(this.maxHeight,t.height+x+b)}else{const x=i.mirror?0:y*f.width+w*m.height;t.width=Math.min(this.maxWidth,t.width+x+b)}this._calculatePadding(u,h,w,y)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,i,r){const{ticks:{align:o,padding:s},position:l}=this.options,c=this.labelRotation!==0,u=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let m=0,b=0;c?u?(m=r*t.width,b=i*n.height):(m=i*t.height,b=r*n.width):o==="start"?b=n.width:o==="end"?m=t.width:o!=="inner"&&(m=t.width/2,b=n.width/2),this.paddingLeft=Math.max((m-h+s)*this.width/(this.width-h),0),this.paddingRight=Math.max((b-f+s)*this.width/(this.width-f),0)}else{let h=n.height/2,f=t.height/2;o==="start"?(h=0,f=t.height):o==="end"&&(h=n.height,f=0),this.paddingTop=h+s,this.paddingBottom=f+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){it(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,i;for(n=0,i=t.length;n({width:s[N]||0,height:l[N]||0});return{first:R(0),last:R(n-1),widest:R(O),highest:R(M),widths:s,heights:l}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return YK(this._alignToPixels?Ts(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&tl*r?l/i:c/r:c*r0}_computeGridLineItems(t){const n=this.axis,i=this.chart,r=this.options,{grid:o,position:s,border:l}=r,c=o.offset,u=this.isHorizontal(),f=this.ticks.length+(c?1:0),m=zc(o),b=[],v=l.setContext(this.getContext()),y=v.display?v.width:0,w=y/2,x=function(V){return Ts(i,V,y)};let S,k,T,P,O,M,R,N,I,$,j,B;if(s==="top")S=x(this.bottom),M=this.bottom-m,N=S-w,$=x(t.top)+w,B=t.bottom;else if(s==="bottom")S=x(this.top),$=t.top,B=x(t.bottom)-w,M=S+w,N=this.top+m;else if(s==="left")S=x(this.right),O=this.right-m,R=S-w,I=x(t.left)+w,j=t.right;else if(s==="right")S=x(this.left),I=t.left,j=x(t.right)-w,O=S+w,R=this.left+m;else if(n==="x"){if(s==="center")S=x((t.top+t.bottom)/2+.5);else if(Ve(s)){const V=Object.keys(s)[0],G=s[V];S=x(this.chart.scales[V].getPixelForValue(G))}$=t.top,B=t.bottom,M=S+w,N=M+m}else if(n==="y"){if(s==="center")S=x((t.left+t.right)/2);else if(Ve(s)){const V=Object.keys(s)[0],G=s[V];S=x(this.chart.scales[V].getPixelForValue(G))}O=S-w,R=O-m,I=t.left,j=t.right}const W=Re(r.ticks.maxTicksLimit,f),Z=Math.max(1,Math.ceil(f/W));for(k=0;k0&&(K-=ne/2);break}J={left:K,top:oe,width:ne+X.width,height:re+X.height,color:Z.backdropColor}}w.push({label:T,font:N,textOffset:j,options:{rotation:y,color:G,strokeColor:z,strokeWidth:q,textAlign:H,textBaseline:B,translation:[P,O],backdrop:J}})}return w}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-_r(this.labelRotation))return t==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:i,mirror:r,padding:o}}=this.options,s=this._getLabelSizes(),l=t+o,c=s.widest.width;let u,h;return n==="left"?r?(h=this.right+o,i==="near"?u="left":i==="center"?(u="center",h+=c/2):(u="right",h+=c)):(h=this.right-l,i==="near"?u="right":i==="center"?(u="center",h-=c/2):(u="left",h=this.left)):n==="right"?r?(h=this.left+o,i==="near"?u="right":i==="center"?(u="center",h-=c/2):(u="left",h-=c)):(h=this.left+l,i==="near"?u="left":i==="center"?(u="center",h+=c/2):(u="right",h=this.right)):u="right",{textAlign:u,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:i,top:r,width:o,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(i,r,o,s),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(o=>o.value===t);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const n=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,s;const l=(c,u,h)=>{!h.width||!h.color||(i.save(),i.lineWidth=h.width,i.strokeStyle=h.color,i.setLineDash(h.borderDash||[]),i.lineDashOffset=h.borderDashOffset,i.beginPath(),i.moveTo(c.x,c.y),i.lineTo(u.x,u.y),i.stroke(),i.restore())};if(n.display)for(o=0,s=r.length;o{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[];let o,s;for(o=0,s=n.length;o{const i=n.split("."),r=i.pop(),o=[e].concat(i).join("."),s=t[n].split("."),l=s.pop(),c=s.join(".");Ot.route(o,r,c,l)})}function lQ(e){return"id"in e&&"defaults"in e}class cQ{constructor(){this.controllers=new Rh(wl,"datasets",!0),this.elements=new Rh(vs,"elements"),this.plugins=new Rh(Object,"plugins"),this.scales=new Rh(wa,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,i){[...n].forEach(r=>{const o=i||this._getRegistryForType(r);i||o.isForType(r)||o===this.plugins&&r.id?this._exec(t,o,r):Ke(r,s=>{const l=i||this._getRegistryForType(s);this._exec(t,l,s)})})}_exec(t,n,i){const r=M1(t);it(i["before"+r],[],i),n[t](i),it(i["after"+r],[],i)}_getRegistryForType(t){for(let n=0;no.filter(l=>!s.some(c=>l.plugin.id===c.plugin.id));this._notify(r(n,i),t,"stop"),this._notify(r(i,n),t,"start")}}function dQ(e){const t={},n=[],i=Object.keys(pr.plugins.items);for(let o=0;o1&&bk(e[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function xk(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function yQ(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(i=>i.xAxisID===e||i.yAxisID===e);if(n.length)return xk(e,"x",n[0])||xk(e,"y",n[0])}return{}}function bQ(e,t){const n=ma[e.type]||{scales:{}},i=t.scales||{},r=ab(e.type,t),o=Object.create(null);return Object.keys(i).forEach(s=>{const l=i[s];if(!Ve(l))return console.error(`Invalid scale configuration for scale: ${s}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const c=lb(s,l,yQ(s,e),Ot.scales[l.type]),u=gQ(c,r),h=n.scales||{};o[s]=pu(Object.create(null),[{axis:c},l,h[c],h[u]])}),e.data.datasets.forEach(s=>{const l=s.type||e.type,c=s.indexAxis||ab(l,t),h=(ma[l]||{}).scales||{};Object.keys(h).forEach(f=>{const m=mQ(f,c),b=s[m+"AxisID"]||m;o[b]=o[b]||Object.create(null),pu(o[b],[{axis:m},i[b],h[f]])})}),Object.keys(o).forEach(s=>{const l=o[s];pu(l,[Ot.scales[l.type],Ot.scale])}),o}function n3(e){const t=e.options||(e.options={});t.plugins=Re(t.plugins,{}),t.scales=bQ(e,t)}function i3(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function xQ(e){return e=e||{},e.data=i3(e.data),n3(e),e}const _k=new Map,r3=new Set;function Ih(e,t){let n=_k.get(e);return n||(n=t(),_k.set(e,n),r3.add(n)),n}const $c=(e,t,n)=>{const i=nd(t,n);i!==void 0&&e.add(i)};class _Q{constructor(t){this._config=xQ(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=i3(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),n3(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Ih(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Ih(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Ih(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,i=this.type;return Ih(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const i=this._scopeCache;let r=i.get(t);return(!r||n)&&(r=new Map,i.set(t,r)),r}getOptionScopes(t,n,i){const{options:r,type:o}=this,s=this._cachedScopes(t,i),l=s.get(n);if(l)return l;const c=new Set;n.forEach(h=>{t&&(c.add(t),h.forEach(f=>$c(c,t,f))),h.forEach(f=>$c(c,r,f)),h.forEach(f=>$c(c,ma[o]||{},f)),h.forEach(f=>$c(c,Ot,f)),h.forEach(f=>$c(c,rb,f))});const u=Array.from(c);return u.length===0&&u.push(Object.create(null)),r3.has(n)&&s.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,ma[n]||{},Ot.datasets[n]||{},{type:n},Ot,rb]}resolveNamedOptions(t,n,i,r=[""]){const o={$shared:!0},{resolver:s,subPrefixes:l}=wk(this._resolverCache,t,r);let c=s;if(SQ(s,n)){o.$shared=!1,i=ds(i)?i():i;const u=this.createResolver(t,i,l);c=Fl(s,i,u)}for(const u of n)o[u]=c[u];return o}createResolver(t,n,i=[""],r){const{resolver:o}=wk(this._resolverCache,t,i);return Ve(n)?Fl(o,n,void 0,r):o}}function wk(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const r=n.join();let o=i.get(r);return o||(o={resolver:z1(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},i.set(r,o)),o}const wQ=e=>Ve(e)&&Object.getOwnPropertyNames(e).some(t=>ds(e[t]));function SQ(e,t){const{isScriptable:n,isIndexable:i}=FM(e);for(const r of t){const o=n(r),s=i(r),l=(s||o)&&e[r];if(o&&(ds(l)||wQ(l))||s&&Pt(l))return!0}return!1}var CQ="4.4.2";const kQ=["top","bottom","left","right","chartArea"];function Sk(e,t){return e==="top"||e==="bottom"||kQ.indexOf(e)===-1&&t==="x"}function Ck(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function kk(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),it(n&&n.onComplete,[e],t)}function EQ(e){const t=e.chart,n=t.options.animation;it(n&&n.onProgress,[e],t)}function o3(e){return F1()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const gf={},Ek=e=>{const t=o3(e);return Object.values(gf).filter(n=>n.canvas===t).pop()};function TQ(e,t,n){const i=Object.keys(e);for(const r of i){const o=+r;if(o>=t){const s=e[r];delete e[r],(n>0||o>t)&&(e[o+n]=s)}}}function PQ(e,t,n,i){return!n||e.type==="mouseout"?null:i?t:e}function Nh(e,t,n){return e.options.clip?e[n]:t[n]}function OQ(e,t){const{xScale:n,yScale:i}=e;return n&&i?{left:Nh(n,t,"left"),right:Nh(n,t,"right"),top:Nh(i,t,"top"),bottom:Nh(i,t,"bottom")}:t}var Ao;let Jl=(Ao=class{static register(...t){pr.add(...t),Tk()}static unregister(...t){pr.remove(...t),Tk()}constructor(t,n){const i=this.config=new _Q(n),r=o3(t),o=Ek(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||ZX(r)),this.platform.updateConfig(i);const l=this.platform.acquireContext(r,s.aspectRatio),c=l&&l.canvas,u=c&&c.height,h=c&&c.width;if(this.id=DK(),this.ctx=l,this.canvas=c,this.width=h,this.height=u,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new uQ,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=JK(f=>this.update(f),s.resizeDelay||0),this._dataChanges=[],gf[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Hr.listen(this,"complete",kk),Hr.listen(this,"progress",EQ),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:i,height:r,_aspectRatio:o}=this;return dt(t)?n&&o?o:r?i/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return pr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():XC(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return YC(this.canvas,this.ctx),this}stop(){return Hr.stop(this),this}resize(t,n){Hr.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const i=this.options,r=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(r,t,n,o),l=i.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,XC(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),it(i.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ke(n,(i,r)=>{i.id=r})}buildOrUpdateScales(){const t=this.options,n=t.scales,i=this.scales,r=Object.keys(i).reduce((s,l)=>(s[l]=!1,s),{});let o=[];n&&(o=o.concat(Object.keys(n).map(s=>{const l=n[s],c=lb(s,l),u=c==="r",h=c==="x";return{options:l,dposition:u?"chartArea":h?"bottom":"left",dtype:u?"radialLinear":h?"category":"linear"}}))),Ke(o,s=>{const l=s.options,c=l.id,u=lb(c,l),h=Re(l.type,s.dtype);(l.position===void 0||Sk(l.position,u)!==Sk(s.dposition))&&(l.position=s.dposition),r[c]=!0;let f=null;if(c in i&&i[c].type===h)f=i[c];else{const m=pr.getScale(h);f=new m({id:c,type:h,ctx:this.ctx,chart:this}),i[f.id]=f}f.init(l,t)}),Ke(r,(s,l)=>{s||delete i[l]}),Ke(i,s=>{Ti.configure(this,s,s.options),Ti.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,i=t.length;if(t.sort((r,o)=>r.index-o.index),i>n){for(let r=n;rn.length&&delete this._stacks,t.forEach((i,r)=>{n.filter(o=>o===i._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let i,r;for(this._removeUnreferencedMetasets(),i=0,r=n.length;i{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let u=0,h=this.data.datasets.length;u{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Ck("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){Ke(this.scales,t=>{Ti.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!$C(n,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:r,count:o}of n){const s=i==="_removeElements"?-o:o;TQ(t,r,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=o=>new Set(t.filter(s=>s[0]===o).map((s,l)=>l+","+s.splice(1).join(","))),r=i(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Ti.update(this,this.width,this.height,t);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],Ke(this.boxes,r=>{i&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,o)=>{r._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,i=t._clip,r=!i.disabled,o=OQ(t,this.chartArea),s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(r&&N1(n,{left:i.left===!1?0:o.left-i.left,right:i.right===!1?this.width:o.right+i.right,top:i.top===!1?0:o.top-i.top,bottom:i.bottom===!1?this.height:o.bottom+i.bottom}),t.controller.draw(),r&&D1(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return Qr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,r){const o=kX.modes[n];return typeof o=="function"?o(this,t,i,r):[]}getDatasetMeta(t){const n=this.data.datasets[t],i=this._metasets;let r=i.filter(o=>o&&o._dataset===n).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},i.push(r)),r}getContext(){return this.$context||(this.$context=gs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(t,n){const i=this.getDatasetMeta(t);i.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,i){const r=i?"show":"hide",o=this.getDatasetMeta(t),s=o.controller._resolveAnimations(void 0,r);Sp(n)?(o.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),s.update(o,{visible:i}),this.update(l=>l.datasetIndex===t?r:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Hr.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,o,s),t[o]=s},r=(o,s,l)=>{o.offsetX=s,o.offsetY=l,this._eventHandler(o)};Ke(this.options.events,o=>i(o,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,i=(c,u)=>{n.addEventListener(this,c,u),t[c]=u},r=(c,u)=>{t[c]&&(n.removeEventListener(this,c,u),delete t[c])},o=(c,u)=>{this.canvas&&this.resize(c,u)};let s;const l=()=>{r("attach",l),this.attached=!0,this.resize(),i("resize",o),i("detach",s)};s=()=>{this.attached=!1,r("resize",o),this._stop(),this._resize(0,0),i("attach",l)},n.isAttached(this.canvas)?l():s()}unbindEvents(){Ke(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Ke(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,i){const r=i?"set":"remove";let o,s,l,c;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+r+"DatasetHoverStyle"]()),l=0,c=t.length;l{const l=this.getDatasetMeta(o);if(!l)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:l.data[s],index:s}});!_p(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(t,n,i){return this._plugins.notify(this,t,n,i)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,i){const r=this.options.hover,o=(c,u)=>c.filter(h=>!u.some(f=>h.datasetIndex===f.datasetIndex&&h.index===f.index)),s=o(n,t),l=i?t:o(t,n);s.length&&this.updateHoverStyle(s,r.mode,!1),l.length&&r.mode&&this.updateHoverStyle(l,r.mode,!0)}_eventHandler(t,n){const i={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},r=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,r)===!1)return;const o=this._handleEvent(t,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(o||i.changed)&&this.render(),this}_handleEvent(t,n,i){const{_active:r=[],options:o}=this,s=n,l=this._getActiveElements(t,r,i,s),c=HK(t),u=PQ(t,this._lastEvent,i,c);i&&(this._lastEvent=null,it(o.onHover,[t,l,this],this),c&&it(o.onClick,[t,l,this],this));const h=!_p(l,r);return(h||n)&&(this._active=l,this._updateHoverStyles(l,r,n)),this._lastEvent=u,h}_getActiveElements(t,n,i,r){if(t.type==="mouseout")return[];if(!i)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,r)}},he(Ao,"defaults",Ot),he(Ao,"instances",gf),he(Ao,"overrides",ma),he(Ao,"registry",pr),he(Ao,"version",CQ),he(Ao,"getChart",Ek),Ao);function Tk(){return Ke(Jl.instances,e=>e._plugins.invalidate())}function MQ(e,t,n){const{startAngle:i,pixelMargin:r,x:o,y:s,outerRadius:l,innerRadius:c}=t;let u=r/l;e.beginPath(),e.arc(o,s,l,i-u,n+u),c>r?(u=r/c,e.arc(o,s,c,n+u,i-u,!0)):e.arc(o,s,r,n+Nt,i-Nt),e.closePath(),e.clip()}function LQ(e){return j1(e,["outerStart","outerEnd","innerStart","innerEnd"])}function AQ(e,t,n,i){const r=LQ(e.options.borderRadius),o=(n-t)/2,s=Math.min(o,i*t/2),l=c=>{const u=(n-Math.min(o,c))*i/2;return Nn(c,0,Math.min(o,u))};return{outerStart:l(r.outerStart),outerEnd:l(r.outerEnd),innerStart:Nn(r.innerStart,0,s),innerEnd:Nn(r.innerEnd,0,s)}}function Va(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function Op(e,t,n,i,r,o){const{x:s,y:l,startAngle:c,pixelMargin:u,innerRadius:h}=t,f=Math.max(t.outerRadius+i+n-u,0),m=h>0?h+i+n+u:0;let b=0;const v=r-c;if(i){const Z=h>0?h-i:0,V=f>0?f-i:0,G=(Z+V)/2,z=G!==0?v*G/(G+i):v;b=(v-z)/2}const y=Math.max(.001,v*f-n/bt)/f,w=(v-y)/2,x=c+w+b,S=r-w-b,{outerStart:k,outerEnd:T,innerStart:P,innerEnd:O}=AQ(t,m,f,S-x),M=f-k,R=f-T,N=x+k/M,I=S-T/R,$=m+P,j=m+O,B=x+P/$,W=S-O/j;if(e.beginPath(),o){const Z=(N+I)/2;if(e.arc(s,l,f,N,Z),e.arc(s,l,f,Z,I),T>0){const q=Va(R,I,s,l);e.arc(q.x,q.y,T,I,S+Nt)}const V=Va(j,S,s,l);if(e.lineTo(V.x,V.y),O>0){const q=Va(j,W,s,l);e.arc(q.x,q.y,O,S+Nt,W+Math.PI)}const G=(S-O/m+(x+P/m))/2;if(e.arc(s,l,m,S-O/m,G,!0),e.arc(s,l,m,G,x+P/m,!0),P>0){const q=Va($,B,s,l);e.arc(q.x,q.y,P,B+Math.PI,x-Nt)}const z=Va(M,x,s,l);if(e.lineTo(z.x,z.y),k>0){const q=Va(M,N,s,l);e.arc(q.x,q.y,k,x-Nt,N)}}else{e.moveTo(s,l);const Z=Math.cos(N)*f+s,V=Math.sin(N)*f+l;e.lineTo(Z,V);const G=Math.cos(I)*f+s,z=Math.sin(I)*f+l;e.lineTo(G,z)}e.closePath()}function RQ(e,t,n,i,r){const{fullCircles:o,startAngle:s,circumference:l}=t;let c=t.endAngle;if(o){Op(e,t,n,i,c,r);for(let u=0;u=yt||rd(s,c,u),w=al(l,h+b,f+b);return y&&w}getCenterPoint(n){const{x:i,y:r,startAngle:o,endAngle:s,innerRadius:l,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:h}=this.options,f=(o+s)/2,m=(l+c+h+u)/2;return{x:i+Math.cos(f)*m,y:r+Math.sin(f)*m}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:r}=this,o=(i.offset||0)/4,s=(i.spacing||0)/2,l=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=r>yt?Math.floor(r/yt):0,r===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const c=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(c)*o,Math.sin(c)*o);const u=1-Math.sin(Math.min(bt,r||0)),h=o*u;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,RQ(n,this,h,s,l),IQ(n,this,h,s,l),n.restore()}}he(Xc,"id","arc"),he(Xc,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),he(Xc,"defaultRoutes",{backgroundColor:"backgroundColor"}),he(Xc,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function s3(e,t,n=t){e.lineCap=Re(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Re(n.borderDash,t.borderDash)),e.lineDashOffset=Re(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Re(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Re(n.borderWidth,t.borderWidth),e.strokeStyle=Re(n.borderColor,t.borderColor)}function NQ(e,t,n){e.lineTo(n.x,n.y)}function DQ(e){return e.stepped?fq:e.tension||e.cubicInterpolationMode==="monotone"?pq:NQ}function a3(e,t,n={}){const i=e.length,{start:r=0,end:o=i-1}=n,{start:s,end:l}=t,c=Math.max(r,s),u=Math.min(o,l),h=rl&&o>l;return{count:i,start:c,loop:t.loop,ilen:u(s+(u?l-T:T))%o,k=()=>{y!==w&&(e.lineTo(h,w),e.lineTo(h,y),e.lineTo(h,x))};for(c&&(b=r[S(0)],e.moveTo(b.x,b.y)),m=0;m<=l;++m){if(b=r[S(m)],b.skip)continue;const T=b.x,P=b.y,O=T|0;O===v?(Pw&&(w=P),h=(f*h+T)/++f):(k(),e.lineTo(T,P),v=O,f=0,y=w=P),x=P}k()}function cb(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?zQ:jQ}function $Q(e){return e.stepped?Gq:e.tension||e.cubicInterpolationMode==="monotone"?Yq:Ds}function BQ(e,t,n,i){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,i)&&r.closePath()),s3(e,t.options),e.stroke(r)}function FQ(e,t,n,i){const{segments:r,options:o}=t,s=cb(t);for(const l of r)s3(e,o,l.style),e.beginPath(),s(e,t,l,{start:n,end:n+i-1})&&e.closePath(),e.stroke()}const HQ=typeof Path2D=="function";function VQ(e,t,n,i){HQ&&!t.options.segment?BQ(e,t,n,i):FQ(e,t,n,i)}class Qc extends vs{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const r=i.spanGaps?this._loop:this._fullLoop;$q(this._points,i,t,r,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=nX(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,i=t.length;return i&&n[t[i-1].end]}interpolate(t,n){const i=this.options,r=t[n],o=this.points,s=Jq(this,{property:n,start:r,end:r});if(!s.length)return;const l=[],c=$Q(i);let u,h;for(u=0,h=s.length;ut!=="borderDash"&&t!=="fill"});function Pk(e,t,n,i){const r=e.options,{[n]:o}=e.getProps([n],i);return Math.abs(t-o){let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}},WQ=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Mk extends vs{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,i){this.maxWidth=t,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=it(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(i=>t.filter(i,this.chart.data))),t.sort&&(n=n.sort((i,r)=>t.sort(i,r,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,r=en(i.font),o=r.size,s=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=Ok(i,o);let u,h;n.font=r.string,this.isHorizontal()?(u=this.maxWidth,h=this._fitRows(s,o,l,c)+10):(h=this.maxHeight,u=this._fitCols(s,r,l,c)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,n,i,r){const{ctx:o,maxWidth:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],u=this.lineWidths=[0],h=r+l;let f=t;o.textAlign="left",o.textBaseline="middle";let m=-1,b=-h;return this.legendItems.forEach((v,y)=>{const w=i+n/2+o.measureText(v.text).width;(y===0||u[u.length-1]+w+2*l>s)&&(f+=h,u[u.length-(y>0?0:1)]=0,b+=h,m++),c[y]={left:0,top:b,row:m,width:w,height:r},u[u.length-1]+=w+l}),f}_fitCols(t,n,i,r){const{ctx:o,maxHeight:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],u=this.columnSizes=[],h=s-t;let f=l,m=0,b=0,v=0,y=0;return this.legendItems.forEach((w,x)=>{const{itemWidth:S,itemHeight:k}=UQ(i,n,o,w,r);x>0&&b+k+2*l>h&&(f+=m+l,u.push({width:m,height:b}),v+=m+l,y++,m=b=0),c[x]={left:v,top:b,col:y,width:S,height:k},m=Math.max(m,S),b+=k+l}),f+=m,u.push({width:m,height:b}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:r},rtl:o}}=this,s=_l(o,this.left,this.width);if(this.isHorizontal()){let l=0,c=kn(i,this.left+r,this.right-this.lineWidths[l]);for(const u of n)l!==u.row&&(l=u.row,c=kn(i,this.left+r,this.right-this.lineWidths[l])),u.top+=this.top+t+r,u.left=s.leftForLtr(s.x(c),u.width),c+=u.width+r}else{let l=0,c=kn(i,this.top+t+r,this.bottom-this.columnSizes[l].height);for(const u of n)u.col!==l&&(l=u.col,c=kn(i,this.top+t+r,this.bottom-this.columnSizes[l].height)),u.top=c,u.left+=this.left+r,u.left=s.leftForLtr(s.x(u.left),u.width),c+=u.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;N1(t,this),this._draw(),D1(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:i,ctx:r}=this,{align:o,labels:s}=t,l=Ot.color,c=_l(t.rtl,this.left,this.width),u=en(s.font),{padding:h}=s,f=u.size,m=f/2;let b;this.drawTitle(),r.textAlign=c.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=u.string;const{boxWidth:v,boxHeight:y,itemHeight:w}=Ok(s,f),x=function(O,M,R){if(isNaN(v)||v<=0||isNaN(y)||y<0)return;r.save();const N=Re(R.lineWidth,1);if(r.fillStyle=Re(R.fillStyle,l),r.lineCap=Re(R.lineCap,"butt"),r.lineDashOffset=Re(R.lineDashOffset,0),r.lineJoin=Re(R.lineJoin,"miter"),r.lineWidth=N,r.strokeStyle=Re(R.strokeStyle,l),r.setLineDash(Re(R.lineDash,[])),s.usePointStyle){const I={radius:y*Math.SQRT2/2,pointStyle:R.pointStyle,rotation:R.rotation,borderWidth:N},$=c.xPlus(O,v/2),j=M+m;BM(r,I,$,j,s.pointStyleWidth&&v)}else{const I=M+Math.max((f-y)/2,0),$=c.leftForLtr(O,v),j=xl(R.borderRadius);r.beginPath(),Object.values(j).some(B=>B!==0)?Ep(r,{x:$,y:I,w:v,h:y,radius:j}):r.rect($,I,v,y),r.fill(),N!==0&&r.stroke()}r.restore()},S=function(O,M,R){ga(r,R.text,O,M+w/2,u,{strikethrough:R.hidden,textAlign:c.textAlign(R.textAlign)})},k=this.isHorizontal(),T=this._computeTitleHeight();k?b={x:kn(o,this.left+h,this.right-i[0]),y:this.top+h+T,line:0}:b={x:this.left+h,y:kn(o,this.top+T+h,this.bottom-n[0].height),line:0},ZM(this.ctx,t.textDirection);const P=w+h;this.legendItems.forEach((O,M)=>{r.strokeStyle=O.fontColor,r.fillStyle=O.fontColor;const R=r.measureText(O.text).width,N=c.textAlign(O.textAlign||(O.textAlign=s.textAlign)),I=v+m+R;let $=b.x,j=b.y;c.setWidth(this.width),k?M>0&&$+I+h>this.right&&(j=b.y+=P,b.line++,$=b.x=kn(o,this.left+h,this.right-i[b.line])):M>0&&j+P>this.bottom&&($=b.x=$+n[b.line].width+h,b.line++,j=b.y=kn(o,this.top+T+h,this.bottom-n[b.line].height));const B=c.x($);if(x(B,j,O),$=eq(N,$+v+m,k?$+I:this.right,t.rtl),S(c.x($),j,O),k)b.x+=I+h;else if(typeof O.text!="string"){const W=u.lineHeight;b.y+=l3(O,W)+h}else b.y+=P}),GM(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,i=en(n.font),r=On(n.padding);if(!n.display)return;const o=_l(t.rtl,this.left,this.width),s=this.ctx,l=n.position,c=i.size/2,u=r.top+c;let h,f=this.left,m=this.width;if(this.isHorizontal())m=Math.max(...this.lineWidths),h=this.top+u,f=kn(t.align,f,this.right-m);else{const v=this.columnSizes.reduce((y,w)=>Math.max(y,w.height),0);h=u+kn(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const b=kn(l,f,f+m);s.textAlign=o.textAlign(R1(l)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=i.string,ga(s,n.text,b,h,i)}_computeTitleHeight(){const t=this.options.title,n=en(t.font),i=On(t.padding);return t.display?n.lineHeight+i.height:0}_getLegendItemAt(t,n){let i,r,o;if(al(t,this.left,this.right)&&al(n,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;io.length>s.length?o:s)),t+n.size/2+i.measureText(r).width}function GQ(e,t,n){let i=e;return typeof t.text!="string"&&(i=l3(t,n)),i}function l3(e,t){const n=e.text?e.text.length:0;return t*n}function YQ(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var KQ={id:"legend",_element:Mk,start(e,t,n){const i=e.legend=new Mk({ctx:e.ctx,options:n,chart:e});Ti.configure(e,i,n),Ti.addBox(e,i)},stop(e){Ti.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;Ti.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),t.hidden=!0):(r.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:o,useBorderRadius:s,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(c=>{const u=c.controller.getStyle(n?0:void 0),h=On(u.borderWidth);return{text:t[c.index].label,fillStyle:u.backgroundColor,fontColor:o,hidden:!c.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:u.borderColor,pointStyle:i||u.pointStyle,rotation:u.rotation,textAlign:r||u.textAlign,borderRadius:s&&(l||u.borderRadius),datasetIndex:c.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class c3 extends vs{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const r=Pt(i.text)?i.text.length:1;this._padding=On(i.padding);const o=r*en(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:i,bottom:r,right:o,options:s}=this,l=s.align;let c=0,u,h,f;return this.isHorizontal()?(h=kn(l,i,o),f=n+t,u=o-i):(s.position==="left"?(h=i+t,f=kn(l,r,n),c=bt*-.5):(h=o-t,f=kn(l,n,r),c=bt*.5),u=r-n),{titleX:h,titleY:f,maxWidth:u,rotation:c}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const i=en(n.font),o=i.lineHeight/2+this._padding.top,{titleX:s,titleY:l,maxWidth:c,rotation:u}=this._drawArgs(o);ga(t,n.text,0,0,i,{color:n.color,maxWidth:c,rotation:u,textAlign:R1(n.align),textBaseline:"middle",translation:[s,l]})}}function qQ(e,t){const n=new c3({ctx:e.ctx,options:t,chart:e});Ti.configure(e,n,t),Ti.addBox(e,n),e.titleBlock=n}var u3={id:"title",_element:c3,start(e,t,n){qQ(e,n)},stop(e){const t=e.titleBlock;Ti.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const i=e.titleBlock;Ti.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Jc={average(e){if(!e.length)return!1;let t,n,i=new Set,r=0,o=0;for(t=0,n=e.length;tl+c)/i.size,y:r/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,i=t.y,r=Number.POSITIVE_INFINITY,o,s,l;for(o=0,s=e.length;o-1?e.split(` +`):e}function XQ(e,t){const{element:n,datasetIndex:i,index:r}=t,o=e.getDatasetMeta(i).controller,{label:s,value:l}=o.getLabelAndValue(r);return{chart:e,label:s,parsed:o.getParsed(r),raw:e.data.datasets[i].data[r],formattedValue:l,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function Lk(e,t){const n=e.chart.ctx,{body:i,footer:r,title:o}=e,{boxWidth:s,boxHeight:l}=t,c=en(t.bodyFont),u=en(t.titleFont),h=en(t.footerFont),f=o.length,m=r.length,b=i.length,v=On(t.padding);let y=v.height,w=0,x=i.reduce((T,P)=>T+P.before.length+P.lines.length+P.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,f&&(y+=f*u.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),x){const T=t.displayColors?Math.max(l,c.lineHeight):c.lineHeight;y+=b*T+(x-b)*c.lineHeight+(x-1)*t.bodySpacing}m&&(y+=t.footerMarginTop+m*h.lineHeight+(m-1)*t.footerSpacing);let S=0;const k=function(T){w=Math.max(w,n.measureText(T).width+S)};return n.save(),n.font=u.string,Ke(e.title,k),n.font=c.string,Ke(e.beforeBody.concat(e.afterBody),k),S=t.displayColors?s+2+t.boxPadding:0,Ke(i,T=>{Ke(T.before,k),Ke(T.lines,k),Ke(T.after,k)}),S=0,n.font=h.string,Ke(e.footer,k),n.restore(),w+=v.width,{width:w,height:y}}function QQ(e,t){const{y:n,height:i}=t;return ne.height-i/2?"bottom":"center"}function JQ(e,t,n,i){const{x:r,width:o}=i,s=n.caretSize+n.caretPadding;if(e==="left"&&r+o+s>t.width||e==="right"&&r-o-s<0)return!0}function eJ(e,t,n,i){const{x:r,width:o}=n,{width:s,chartArea:{left:l,right:c}}=e;let u="center";return i==="center"?u=r<=(l+c)/2?"left":"right":r<=o/2?u="left":r>=s-o/2&&(u="right"),JQ(u,e,t,n)&&(u="center"),u}function Ak(e,t,n){const i=n.yAlign||t.yAlign||QQ(e,n);return{xAlign:n.xAlign||t.xAlign||eJ(e,t,n,i),yAlign:i}}function tJ(e,t){let{x:n,width:i}=e;return t==="right"?n-=i:t==="center"&&(n-=i/2),n}function nJ(e,t,n){let{y:i,height:r}=e;return t==="top"?i+=n:t==="bottom"?i-=r+n:i-=r/2,i}function Rk(e,t,n,i){const{caretSize:r,caretPadding:o,cornerRadius:s}=e,{xAlign:l,yAlign:c}=n,u=r+o,{topLeft:h,topRight:f,bottomLeft:m,bottomRight:b}=xl(s);let v=tJ(t,l);const y=nJ(t,c,u);return c==="center"?l==="left"?v+=u:l==="right"&&(v-=u):l==="left"?v-=Math.max(h,m)+r:l==="right"&&(v+=Math.max(f,b)+r),{x:Nn(v,0,i.width-t.width),y:Nn(y,0,i.height-t.height)}}function Dh(e,t,n){const i=On(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-i.right:e.x+i.left}function Ik(e){return hr([],Vr(e))}function iJ(e,t,n){return gs(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Nk(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const d3={beforeTitle:Fr,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex"u"?d3[t].call(n,i):r}class ub extends vs{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,i=this.options.setContext(this.getContext()),r=i.enabled&&n.options.animation&&i.animations,o=new KM(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=iJ(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:i}=n,r=Hn(i,"beforeTitle",this,t),o=Hn(i,"title",this,t),s=Hn(i,"afterTitle",this,t);let l=[];return l=hr(l,Vr(r)),l=hr(l,Vr(o)),l=hr(l,Vr(s)),l}getBeforeBody(t,n){return Ik(Hn(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:i}=n,r=[];return Ke(t,o=>{const s={before:[],lines:[],after:[]},l=Nk(i,o);hr(s.before,Vr(Hn(l,"beforeLabel",this,o))),hr(s.lines,Hn(l,"label",this,o)),hr(s.after,Vr(Hn(l,"afterLabel",this,o))),r.push(s)}),r}getAfterBody(t,n){return Ik(Hn(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:i}=n,r=Hn(i,"beforeFooter",this,t),o=Hn(i,"footer",this,t),s=Hn(i,"afterFooter",this,t);let l=[];return l=hr(l,Vr(r)),l=hr(l,Vr(o)),l=hr(l,Vr(s)),l}_createItems(t){const n=this._active,i=this.chart.data,r=[],o=[],s=[];let l=[],c,u;for(c=0,u=n.length;ct.filter(h,f,m,i))),t.itemSort&&(l=l.sort((h,f)=>t.itemSort(h,f,i))),Ke(l,h=>{const f=Nk(t.callbacks,h);r.push(Hn(f,"labelColor",this,h)),o.push(Hn(f,"labelPointStyle",this,h)),s.push(Hn(f,"labelTextColor",this,h))}),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=l,l}update(t,n){const i=this.options.setContext(this.getContext()),r=this._active;let o,s=[];if(!r.length)this.opacity!==0&&(o={opacity:0});else{const l=Jc[i.position].call(this,r,this._eventPosition);s=this._createItems(i),this.title=this.getTitle(s,i),this.beforeBody=this.getBeforeBody(s,i),this.body=this.getBody(s,i),this.afterBody=this.getAfterBody(s,i),this.footer=this.getFooter(s,i);const c=this._size=Lk(this,i),u=Object.assign({},l,c),h=Ak(this.chart,i,u),f=Rk(i,u,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,o={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,i,r){const o=this.getCaretPosition(t,i,r);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,i){const{xAlign:r,yAlign:o}=this,{caretSize:s,cornerRadius:l}=i,{topLeft:c,topRight:u,bottomLeft:h,bottomRight:f}=xl(l),{x:m,y:b}=t,{width:v,height:y}=n;let w,x,S,k,T,P;return o==="center"?(T=b+y/2,r==="left"?(w=m,x=w-s,k=T+s,P=T-s):(w=m+v,x=w+s,k=T-s,P=T+s),S=w):(r==="left"?x=m+Math.max(c,h)+s:r==="right"?x=m+v-Math.max(u,f)-s:x=this.caretX,o==="top"?(k=b,T=k-s,w=x-s,S=x+s):(k=b+y,T=k+s,w=x+s,S=x-s),P=k),{x1:w,x2:x,x3:S,y1:k,y2:T,y3:P}}drawTitle(t,n,i){const r=this.title,o=r.length;let s,l,c;if(o){const u=_l(i.rtl,this.x,this.width);for(t.x=Dh(this,i.titleAlign,i),n.textAlign=u.textAlign(i.titleAlign),n.textBaseline="middle",s=en(i.titleFont),l=i.titleSpacing,n.fillStyle=i.titleColor,n.font=s.string,c=0;cS!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Ep(t,{x:y,y:v,w:u,h:c,radius:x}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),Ep(t,{x:w,y:v+1,w:u-2,h:c-2,radius:x}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(y,v,u,c),t.strokeRect(y,v,u,c),t.fillStyle=s.backgroundColor,t.fillRect(w,v+1,u-2,c-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,n,i){const{body:r}=this,{bodySpacing:o,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:u,boxPadding:h}=i,f=en(i.bodyFont);let m=f.lineHeight,b=0;const v=_l(i.rtl,this.x,this.width),y=function(R){n.fillText(R,v.x(t.x+b),t.y+m/2),t.y+=m+o},w=v.textAlign(s);let x,S,k,T,P,O,M;for(n.textAlign=s,n.textBaseline="middle",n.font=f.string,t.x=Dh(this,w,i),n.fillStyle=i.bodyColor,Ke(this.beforeBody,y),b=l&&w!=="right"?s==="center"?u/2+h:u+2+h:0,T=0,O=r.length;T0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,i=this.$animations,r=i&&i.x,o=i&&i.y;if(r||o){const s=Jc[t.position].call(this,this._active,this._eventPosition);if(!s)return;const l=this._size=Lk(this,t),c=Object.assign({},s,this._size),u=Ak(n,t,c),h=Rk(t,c,u,n);(r._to!==h.x||o._to!==h.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const s=On(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,r,n),ZM(t,n.textDirection),o.y+=s.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),GM(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const i=this._active,r=t.map(({datasetIndex:l,index:c})=>{const u=this.chart.getDatasetMeta(l);if(!u)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:u.data[c],index:c}}),o=!_p(i,r),s=this._positionChanged(r,n);(o||s)&&(this._active=r,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],s=this._getActiveElements(t,o,n,i),l=this._positionChanged(s,t),c=n||!_p(s,o)||l;return c&&(this._active=s,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),c}_getActiveElements(t,n,i,r){const o=this.options;if(t.type==="mouseout")return[];if(!r)return n.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);const s=this.chart.getElementsAtEventForMode(t,o.mode,o,i);return o.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:i,caretY:r,options:o}=this,s=Jc[o.position].call(this,t,n);return s!==!1&&(i!==s.x||r!==s.y)}}he(ub,"positioners",Jc);var h3={id:"tooltip",_element:ub,positioners:Jc,afterInit(e,t,n){n&&(e.tooltip=new ub({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:d3},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const rJ=(e,t,n,i)=>(typeof t=="string"?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function oJ(e,t,n,i){const r=e.indexOf(t);if(r===-1)return rJ(e,t,n,i);const o=e.lastIndexOf(t);return r!==o?n:r}const sJ=(e,t)=>e===null?null:Nn(Math.round(e),0,t);function Dk(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}he(db,"id","category"),he(db,"defaults",{ticks:{callback:Dk}});function aJ(e,t){const n=[],{bounds:r,step:o,min:s,max:l,precision:c,count:u,maxTicks:h,maxDigits:f,includeBounds:m}=e,b=o||1,v=h-1,{min:y,max:w}=t,x=!dt(s),S=!dt(l),k=!dt(u),T=(w-y)/(f+1);let P=FC((w-y)/v/b)*b,O,M,R,N;if(P<1e-14&&!x&&!S)return[{value:y},{value:w}];N=Math.ceil(w/P)-Math.floor(y/P),N>v&&(P=FC(N*P/v/b)*b),dt(c)||(O=Math.pow(10,c),P=Math.ceil(P*O)/O),r==="ticks"?(M=Math.floor(y/P)*P,R=Math.ceil(w/P)*P):(M=y,R=w),x&&S&&o&&ZK((l-s)/o,P/1e3)?(N=Math.round(Math.min((l-s)/P,h)),P=(l-s)/N,M=s,R=l):k?(M=x?s:M,R=S?l:R,N=u-1,P=(R-M)/N):(N=(R-M)/P,mu(N,Math.round(N),P/1e3)?N=Math.round(N):N=Math.ceil(N));const I=Math.max(HC(P),HC(M));O=Math.pow(10,dt(c)?I:c),M=Math.round(M*O)/O,R=Math.round(R*O)/O;let $=0;for(x&&(m&&M!==s?(n.push({value:s}),Ml)break;n.push({value:j})}return S&&m&&R!==l?n.length&&mu(n[n.length-1].value,l,jk(l,T,e))?n[n.length-1].value=l:n.push({value:l}):(!S||R===l)&&n.push({value:R}),n}function jk(e,t,{horizontal:n,minRotation:i}){const r=_r(i),o=(n?Math.sin(r):Math.cos(r))||.001,s=.75*t*(""+e).length;return Math.min(t/o,s)}class Mp extends wa{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return dt(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:r,max:o}=this;const s=c=>r=n?r:c,l=c=>o=i?o:c;if(t){const c=Bl(r),u=Bl(o);c<0&&u<0?l(0):c>0&&u>0&&s(0)}if(r===o){let c=o===0?1:Math.abs(o*.05);l(o+c),t||s(r-c)}this.min=r,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=t,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),n=n||11),n&&(r=Math.min(n,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const r={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,s=aJ(r,o);return t.bounds==="ticks"&&IM(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const r=(i-n)/Math.max(t.length-1,1)/2;n-=r,i+=r}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(t){return tg(t,this.chart.options.locale,this.options.ticks.format)}}class hb extends Mp{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ln(t)?t:0,this.max=ln(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,i=_r(this.options.ticks.minRotation),r=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/r))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}he(hb,"id","linear"),he(hb,"defaults",{ticks:{callback:ng.formatters.numeric}});const sd=e=>Math.floor(Zo(e)),Os=(e,t)=>Math.pow(10,sd(e)+t);function zk(e){return e/Math.pow(10,sd(e))===1}function $k(e,t,n){const i=Math.pow(10,n),r=Math.floor(e/i);return Math.ceil(t/i)-r}function lJ(e,t){const n=t-e;let i=sd(n);for(;$k(e,t,i)>10;)i++;for(;$k(e,t,i)<10;)i--;return Math.min(i,sd(e))}function cJ(e,{min:t,max:n}){t=ii(e.min,t);const i=[],r=sd(t);let o=lJ(t,n),s=o<0?Math.pow(10,Math.abs(o)):1;const l=Math.pow(10,o),c=r>o?Math.pow(10,r):0,u=Math.round((t-c)*s)/s,h=Math.floor((t-c)/l/10)*l*10;let f=Math.floor((u-h)/Math.pow(10,o)),m=ii(e.min,Math.round((c+h+f*Math.pow(10,o))*s)/s);for(;m=10?f=f<15?15:20:f++,f>=20&&(o++,f=2,s=o>=0?1:s),m=Math.round((c+h+f*Math.pow(10,o))*s)/s;const b=ii(e.max,m);return i.push({value:b,major:zk(b),significand:f}),i}class Bk extends wa{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const i=Mp.prototype.parse.apply(this,[t,n]);if(i===0){this._zero=!0;return}return ln(i)&&i>0?i:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ln(t)?Math.max(0,t):null,this.max=ln(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ln(this._userMin)&&(this.min=t===Os(this.min,0)?Os(this.min,-1):Os(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let i=this.min,r=this.max;const o=l=>i=t?i:l,s=l=>r=n?r:l;i===r&&(i<=0?(o(1),s(10)):(o(Os(i,-1)),s(Os(r,1)))),i<=0&&o(Os(r,-1)),r<=0&&s(Os(i,1)),this.min=i,this.max=r}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},i=cJ(n,this);return t.bounds==="ticks"&&IM(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return t===void 0?"0":tg(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Zo(t),this._valueRange=Zo(this.max)-Zo(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Zo(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}he(Bk,"id","logarithmic"),he(Bk,"defaults",{ticks:{callback:ng.formatters.logarithmic,major:{enabled:!0}}});function fb(e){const t=e.ticks;if(t.display&&e.display){const n=On(t.backdropPadding);return Re(t.font&&t.font.size,Ot.font.size)+n.height}return 0}function uJ(e,t,n){return n=Pt(n)?n:[n],{w:hq(e,t.string,n),h:n.length*t.lineHeight}}function Fk(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:er?{start:t-n,end:t}:{start:t,end:t+n}}function dJ(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),i=[],r=[],o=e._pointLabels.length,s=e.options.pointLabels,l=s.centerPointLabels?bt/o:0;for(let c=0;ct.r&&(l=(i.end-t.r)/o,e.r=Math.max(e.r,t.r+l)),r.startt.b&&(c=(r.end-t.b)/s,e.b=Math.max(e.b,t.b+c))}function fJ(e,t,n){const i=e.drawingArea,{extra:r,additionalAngle:o,padding:s,size:l}=n,c=e.getPointPosition(t,i+r+s,o),u=Math.round(L1(Xi(c.angle+Nt))),h=yJ(c.y,l.h,u),f=gJ(u),m=vJ(c.x,l.w,f);return{visible:!0,x:c.x,y:h,textAlign:f,left:m,top:h,right:m+l.w,bottom:h+l.h}}function pJ(e,t){if(!t)return!0;const{left:n,top:i,right:r,bottom:o}=e;return!(Qr({x:n,y:i},t)||Qr({x:n,y:o},t)||Qr({x:r,y:i},t)||Qr({x:r,y:o},t))}function mJ(e,t,n){const i=[],r=e._pointLabels.length,o=e.options,{centerPointLabels:s,display:l}=o.pointLabels,c={extra:fb(o)/2,additionalAngle:s?bt/r:0};let u;for(let h=0;h270||n<90)&&(e-=t),e}function bJ(e,t,n){const{left:i,top:r,right:o,bottom:s}=n,{backdropColor:l}=t;if(!dt(l)){const c=xl(t.borderRadius),u=On(t.backdropPadding);e.fillStyle=l;const h=i-u.left,f=r-u.top,m=o-i+u.width,b=s-r+u.height;Object.values(c).some(v=>v!==0)?(e.beginPath(),Ep(e,{x:h,y:f,w:m,h:b,radius:c}),e.fill()):e.fillRect(h,f,m,b)}}function xJ(e,t){const{ctx:n,options:{pointLabels:i}}=e;for(let r=t-1;r>=0;r--){const o=e._pointLabelItems[r];if(!o.visible)continue;const s=i.setContext(e.getPointLabelContext(r));bJ(n,s,o);const l=en(s.font),{x:c,y:u,textAlign:h}=o;ga(n,e._pointLabels[r],c,u+l.lineHeight/2,l,{color:s.color,textAlign:h,textBaseline:"middle"})}}function f3(e,t,n,i){const{ctx:r}=e;if(n)r.arc(e.xCenter,e.yCenter,t,0,yt);else{let o=e.getPointPosition(0,t);r.moveTo(o.x,o.y);for(let s=1;s{const r=it(this.options.pointLabels.callback,[n,i],this);return r||r===0?r:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const t=this.options;t.display&&t.pointLabels.display?dJ(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,i,r){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,i,r))}getIndexAngle(t){const n=yt/(this._pointLabels.length||1),i=this.options.startAngle||0;return Xi(t*n+_r(i))}getDistanceFromCenterForValue(t){if(dt(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(dt(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(f!==0||f===0&&this.min<0){c=this.getDistanceFromCenterForValue(h.value);const m=this.getContext(f),b=r.setContext(m),v=o.setContext(m);_J(this,b,c,s,v)}}),i.display){for(t.save(),l=s-1;l>=0;l--){const h=i.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:m}=h;!m||!f||(t.lineWidth=m,t.strokeStyle=f,t.setLineDash(h.borderDash),t.lineDashOffset=h.borderDashOffset,c=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),u=this.getPointPosition(l,c),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(u.x,u.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const r=this.getIndexAngle(0);let o,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&this.min>=0&&!n.reverse)return;const u=i.setContext(this.getContext(c)),h=en(u.font);if(o=this.getDistanceFromCenterForValue(this.ticks[c].value),u.showLabelBackdrop){t.font=h.string,s=t.measureText(l.label).width,t.fillStyle=u.backdropColor;const f=On(u.backdropPadding);t.fillRect(-s/2-f.left,-o-h.size/2-f.top,s+f.width,h.size+f.height)}ga(t,l.label,0,-o,h,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),t.restore()}drawTitle(){}}he(jh,"id","radialLinear"),he(jh,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ng.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),he(jh,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),he(jh,"descriptors",{angleLines:{_fallback:"grid"}});const rg={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Zn=Object.keys(rg);function Hk(e,t){return e-t}function Vk(e,t){if(dt(t))return null;const n=e._adapter,{parser:i,round:r,isoWeekday:o}=e._parseOpts;let s=t;return typeof i=="function"&&(s=i(s)),ln(s)||(s=typeof i=="string"?n.parse(s,i):n.parse(s)),s===null?null:(r&&(s=r==="week"&&(id(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,r)),+s)}function Wk(e,t,n,i){const r=Zn.length;for(let o=Zn.indexOf(e);o=Zn.indexOf(n);o--){const s=Zn[o];if(rg[s].common&&e._adapter.diff(r,i,s)>=t-1)return s}return Zn[n?Zn.indexOf(n):0]}function CJ(e){for(let t=Zn.indexOf(e)+1,n=Zn.length;t=t?n[i]:n[r];e[o]=!0}}function kJ(e,t,n,i){const r=e._adapter,o=+r.startOf(t[0].value,i),s=t[t.length-1].value;let l,c;for(l=o;l<=s;l=+r.add(l,1,i))c=n[l],c>=0&&(t[c].major=!0);return t}function Zk(e,t,n){const i=[],r={},o=t.length;let s,l;for(s=0;s+t.value))}initOffsets(t=[]){let n=0,i=0,r,o;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),t.length===1?n=1-r:n=(this.getDecimalForValue(t[1])-r)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?i=o:i=(o-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=Nn(n,0,s),i=Nn(i,0,s),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const t=this._adapter,n=this.min,i=this.max,r=this.options,o=r.time,s=o.unit||Wk(o.minUnit,n,i,this._getLabelCapacity(n)),l=Re(r.ticks.stepSize,1),c=s==="week"?o.isoWeekday:!1,u=id(c)||c===!0,h={};let f=n,m,b;if(u&&(f=+t.startOf(f,"isoWeek",c)),f=+t.startOf(f,u?"day":s),t.diff(i,n,s)>1e5*l)throw new Error(n+" and "+i+" are too far apart with stepSize of "+l+" "+s);const v=r.ticks.source==="data"&&this.getDataTimestamps();for(m=f,b=0;m+y)}getLabelForValue(t){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(t,i.tooltipFormat):n.format(t,i.displayFormats.datetime)}format(t,n){const r=this.options.time.displayFormats,o=this._unit,s=n||r[o];return this._adapter.format(t,s)}_tickFormatFunction(t,n,i,r){const o=this.options,s=o.ticks.callback;if(s)return it(s,[t,n,i],this);const l=o.time.displayFormats,c=this._unit,u=this._majorUnit,h=c&&l[c],f=u&&l[u],m=i[n],b=u&&f&&m&&m.major;return this._adapter.format(t,r||(b?f:h))}generateTickLabels(t){let n,i,r;for(n=0,i=t.length;n0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,i;if(t.length)return t;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(n=0,i=r.length;n=e[i].pos&&t<=e[r].pos&&({lo:i,hi:r}=Zs(e,"pos",t)),{pos:o,time:l}=e[i],{pos:s,time:c}=e[r]):(t>=e[i].time&&t<=e[r].time&&({lo:i,hi:r}=Zs(e,"time",t)),{time:o,pos:l}=e[i],{time:s,pos:c}=e[r]);const u=s-o;return u?l+(c-l)*(t-o)/u:l}class Gk extends Lp{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=zh(n,this.min),this._tableRange=zh(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:i}=this,r=[],o=[];let s,l,c,u,h;for(s=0,l=t.length;s=n&&u<=i&&r.push(u);if(r.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(s=0,l=r.length;sr-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?t=this.normalize(n.concat(i)):t=n.length?n:i,t=this._cache.all=t,t}getDecimalForValue(t){return(zh(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return zh(this._table,i*this._tableRange+this._minPos,!0)}}he(Gk,"id","timeseries"),he(Gk,"defaults",Lp.defaults);const p3="label";function Yk(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function EJ(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function m3(e,t){e.labels=t}function g3(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p3;const i=[];e.datasets=t.map(r=>{const o=e.datasets.find(s=>s[n]===r[n]);return!o||!r.data||i.includes(o)?{...r}:(i.push(o),Object.assign(o,r),o)})}function TJ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p3;const n={labels:[],datasets:[]};return m3(n,e.labels),g3(n,e.datasets,t),n}function PJ(e,t){const{height:n=150,width:i=300,redraw:r=!1,datasetIdKey:o,type:s,data:l,options:c,plugins:u=[],fallbackContent:h,updateMode:f,...m}=e,b=C.useRef(null),v=C.useRef(),y=()=>{b.current&&(v.current=new Jl(b.current,{type:s,data:TJ(l,o),options:c&&{...c},plugins:u}),Yk(t,v.current))},w=()=>{Yk(t,null),v.current&&(v.current.destroy(),v.current=null)};return C.useEffect(()=>{!r&&v.current&&c&&EJ(v.current,c)},[r,c]),C.useEffect(()=>{!r&&v.current&&m3(v.current.config.data,l.labels)},[r,l.labels]),C.useEffect(()=>{!r&&v.current&&l.datasets&&g3(v.current.config.data,l.datasets,o)},[r,l.datasets]),C.useEffect(()=>{v.current&&(r?(w(),setTimeout(y)):v.current.update(f))},[r,c,l.labels,l.datasets,f]),C.useEffect(()=>{v.current&&(w(),setTimeout(y))},[s]),C.useEffect(()=>(y(),()=>w()),[]),ee.createElement("canvas",Object.assign({ref:b,role:"img",height:n,width:i},m),h)}const OJ=C.forwardRef(PJ);function v3(e,t){return Jl.register(t),C.forwardRef((n,i)=>ee.createElement(OJ,Object.assign({},n,{ref:i,type:e})))}const MJ=v3("line",pf),LJ=v3("pie",sb);Jl.register(Qc,db,hb,vf,u3,h3);const AJ=({data:e})=>{const[t,n]=C.useState("day"),i=l=>{const c={};l.forEach(b=>{const v=new Date(b.reported_time).toLocaleDateString("en-GB",{day:"2-digit",month:"2-digit"});c[v]=(c[v]||0)+1});const u=[],h=new Date(Math.min(...l.map(b=>new Date(b.reported_time)))),f=new Date(Math.max(...l.map(b=>new Date(b.reported_time))));for(let b=new Date(h);b<=f;b.setDate(b.getDate()+(t==="day"?1:t==="week"?7:t==="month"?30:t==="3months"?90:365))){const v=b.toLocaleDateString("en-GB",{day:"2-digit",month:"2-digit"});u.push(v),c[v]||(c[v]=0)}const m=u.map(b=>c[b]);return{dates:u,counts:m}},{dates:r,counts:o}=i(e),s={labels:r,datasets:[{label:"",data:o,borderColor:"#40025D",tension:.5}]};return g.jsxs("div",{children:[g.jsxs("div",{className:"w-ful px-6 pt-3 flex justify-between mb-2",children:[g.jsx("button",{onClick:()=>n("day"),style:{backgroundColor:t==="day"?"lightgray":"white"},className:" px-2 rounded-lg",children:"Daily"}),g.jsx("button",{onClick:()=>n("week"),style:{backgroundColor:t==="week"?"lightgray":"white"},className:"px-2 rounded-lg",children:"Weekly"}),g.jsx("button",{onClick:()=>n("month"),style:{backgroundColor:t==="month"?"lightgray":"white"},className:"px-2 rounded-lg",children:"Monthly"}),g.jsx("button",{onClick:()=>n("year"),style:{backgroundColor:t==="year"?"lightgray":"white"},className:"px-2 rounded-lg",children:"Yearly"})]}),g.jsx(MJ,{data:s,options:{plugins:{legend:{display:!1},tooltip:{mode:"index",intersect:!1}},elements:{line:{borderColor:"red",borderWidth:3,borderCapStyle:"bevel"},point:{radius:0}},scales:{x:{title:{display:!0,text:t==="day"?"Day":t==="week"?"Week":t==="month"?"Month":t==="3months"?"3 Months":"Year",color:"#40025D",family:"Sans-serif",font:{size:20,weight:"bold",lineHeight:1}}},y:{title:{display:!0,text:"Number of Reports",color:"#40025D",family:"Sans-serif",font:{size:20,weight:"bold"}}}}}})]})};function RJ(e){let t=0,n=0;if(e.forEach(i=>{if(i.response_time){const r=new Date(i.reported_time),l=(new Date(i.response_time)-r)/(1e3*60);t+=l,n++}}),n>0){const i=t/n,r=Math.floor(i/(24*60)),o=Math.floor(i%(24*60)/60),s=Math.floor(i%60);return`${r} days, ${o} hours, ${s} minutes`}else return"Loading..."}Jl.register(Xc,u3,h3,KQ);const IJ=({data:e})=>{const t=e.reduce((l,c)=>(l[c.animal_type]=(l[c.animal_type]||0)+1,l),{}),n=Object.keys(t),i=Object.values(t),o={labels:n,datasets:[{label:"report count",data:i,backgroundColor:["#FCB2E7","#1E85E47D","#B25CDB","#33FF9C","#339CFF","#FFC300","#FF5733"].slice(0,n.length)}]},s={id:"customCanvasBackgroundColor",beforeDraw:l=>{const c=l.ctx;c.save(),c.globalCompositeOperation="destination-over",c.fillStyle="rgba(255, 255, 255, 0)",c.fillRect(0,0,l.width,l.height),c.restore()}};return Jl.register(s),g.jsx("div",{children:g.jsx(LJ,{data:o,options:{plugins:{legend:{labels:{font:{size:15,style:"italic"},color:"#40025D;"}}}}})})};function y3(e,t){const n=C.useRef(t);C.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}const NJ=1;function DJ(e){return Object.freeze({__version:NJ,map:e})}function hee(e,t){return Object.freeze({...e,...t})}const b3=C.createContext(null),x3=b3.Provider;function W1(){const e=C.useContext(b3);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of ");return e}function jJ(e){function t(n,i){const{instance:r,context:o}=e(n).current;return C.useImperativeHandle(i,()=>r),n.children==null?null:ee.createElement(x3,{value:o},n.children)}return C.forwardRef(t)}function zJ(e){function t(n,i){const[r,o]=C.useState(!1),{instance:s}=e(n,o).current;C.useImperativeHandle(i,()=>s),C.useEffect(function(){r&&s.update()},[s,r,n.children]);const l=s._contentNode;return l?fd.createPortal(n.children,l):null}return C.forwardRef(t)}function $J(e){function t(n,i){const{instance:r}=e(n).current;return C.useImperativeHandle(i,()=>r),null}return C.forwardRef(t)}function _3(e,t){const n=C.useRef();C.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function U1(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function BJ(e,t){return function(i,r){const o=W1(),s=e(U1(i,o),o);return y3(o.map,i.attribution),_3(s.current,i.eventHandlers),t(s.current,o,i,r),s}}var pb={exports:{}};/* @preserve + * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com + * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade + */(function(e,t){(function(n,i){i(t)})(Qt,function(n){var i="1.9.4";function r(a){var d,p,_,E;for(p=1,_=arguments.length;p<_;p++){E=arguments[p];for(d in E)a[d]=E[d]}return a}var o=Object.create||function(){function a(){}return function(d){return a.prototype=d,new a}}();function s(a,d){var p=Array.prototype.slice;if(a.bind)return a.bind.apply(a,p.call(arguments,1));var _=p.call(arguments,2);return function(){return a.apply(d,_.length?_.concat(p.call(arguments)):arguments)}}var l=0;function c(a){return"_leaflet_id"in a||(a._leaflet_id=++l),a._leaflet_id}function u(a,d,p){var _,E,A,D;return D=function(){_=!1,E&&(A.apply(p,E),E=!1)},A=function(){_?E=arguments:(a.apply(p,arguments),setTimeout(D,d),_=!0)},A}function h(a,d,p){var _=d[1],E=d[0],A=_-E;return a===_&&p?a:((a-E)%A+A)%A+E}function f(){return!1}function m(a,d){if(d===!1)return a;var p=Math.pow(10,d===void 0?6:d);return Math.round(a*p)/p}function b(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function v(a){return b(a).split(/\s+/)}function y(a,d){Object.prototype.hasOwnProperty.call(a,"options")||(a.options=a.options?o(a.options):{});for(var p in d)a.options[p]=d[p];return a.options}function w(a,d,p){var _=[];for(var E in a)_.push(encodeURIComponent(p?E.toUpperCase():E)+"="+encodeURIComponent(a[E]));return(!d||d.indexOf("?")===-1?"?":"&")+_.join("&")}var x=/\{ *([\w_ -]+) *\}/g;function S(a,d){return a.replace(x,function(p,_){var E=d[_];if(E===void 0)throw new Error("No value provided for variable "+p);return typeof E=="function"&&(E=E(d)),E})}var k=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"};function T(a,d){for(var p=0;p"u"||!L||!L.Mixin)){a=k(a)?a:[a];for(var d=0;d0?Math.floor(a):Math.ceil(a)};z.prototype={clone:function(){return new z(this.x,this.y)},add:function(a){return this.clone()._add(H(a))},_add:function(a){return this.x+=a.x,this.y+=a.y,this},subtract:function(a){return this.clone()._subtract(H(a))},_subtract:function(a){return this.x-=a.x,this.y-=a.y,this},divideBy:function(a){return this.clone()._divideBy(a)},_divideBy:function(a){return this.x/=a,this.y/=a,this},multiplyBy:function(a){return this.clone()._multiplyBy(a)},_multiplyBy:function(a){return this.x*=a,this.y*=a,this},scaleBy:function(a){return new z(this.x*a.x,this.y*a.y)},unscaleBy:function(a){return new z(this.x/a.x,this.y/a.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=q(this.x),this.y=q(this.y),this},distanceTo:function(a){a=H(a);var d=a.x-this.x,p=a.y-this.y;return Math.sqrt(d*d+p*p)},equals:function(a){return a=H(a),a.x===this.x&&a.y===this.y},contains:function(a){return a=H(a),Math.abs(a.x)<=Math.abs(this.x)&&Math.abs(a.y)<=Math.abs(this.y)},toString:function(){return"Point("+m(this.x)+", "+m(this.y)+")"}};function H(a,d,p){return a instanceof z?a:k(a)?new z(a[0],a[1]):a==null?a:typeof a=="object"&&"x"in a&&"y"in a?new z(a.x,a.y):new z(a,d,p)}function J(a,d){if(a)for(var p=d?[a,d]:a,_=0,E=p.length;_=this.min.x&&p.x<=this.max.x&&d.y>=this.min.y&&p.y<=this.max.y},intersects:function(a){a=X(a);var d=this.min,p=this.max,_=a.min,E=a.max,A=E.x>=d.x&&_.x<=p.x,D=E.y>=d.y&&_.y<=p.y;return A&&D},overlaps:function(a){a=X(a);var d=this.min,p=this.max,_=a.min,E=a.max,A=E.x>d.x&&_.xd.y&&_.y=d.lat&&E.lat<=p.lat&&_.lng>=d.lng&&E.lng<=p.lng},intersects:function(a){a=ne(a);var d=this._southWest,p=this._northEast,_=a.getSouthWest(),E=a.getNorthEast(),A=E.lat>=d.lat&&_.lat<=p.lat,D=E.lng>=d.lng&&_.lng<=p.lng;return A&&D},overlaps:function(a){a=ne(a);var d=this._southWest,p=this._northEast,_=a.getSouthWest(),E=a.getNorthEast(),A=E.lat>d.lat&&_.latd.lng&&_.lng1,Mn=function(){var a=!1;try{var d=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("testPassiveEventSupport",f,d),window.removeEventListener("testPassiveEventSupport",f,d)}catch{}return a}(),Ir=function(){return!!document.createElement("canvas").getContext}(),se=!!(document.createElementNS&&$n("svg").createSVGRect),be=!!se&&function(){var a=document.createElement("div");return a.innerHTML="",(a.firstChild&&a.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Se=!se&&function(){try{var a=document.createElement("div");a.innerHTML='';var d=a.firstChild;return d.style.behavior="url(#default#VML)",d&&typeof d.adj=="object"}catch{return!1}}(),Ft=navigator.platform.indexOf("Mac")===0,tn=navigator.platform.indexOf("Linux")===0;function Lt(a){return navigator.userAgent.toLowerCase().indexOf(a)>=0}var ue={ie:Ge,ielt9:Lr,edge:mi,webkit:Jn,android:sr,android23:Ar,androidStock:xn,opera:zi,chrome:ti,gecko:$i,safari:_e,phantom:gi,opera12:ar,win:_n,ie3d:ft,webkit3d:mo,gecko3d:go,any3d:vo,mobile:Bi,mobileWebkit:yo,mobileWebkit3d:bo,msPointer:Rr,pointer:xo,touch:Bt,touchNative:ys,mobileOpera:Bn,mobileGecko:ve,retina:Ne,passiveEvents:Mn,canvas:Ir,svg:se,vml:Se,inlineSvg:be,mac:Ft,linux:tn},nn=ue.msPointer?"MSPointerDown":"pointerdown",Ln=ue.msPointer?"MSPointerMove":"pointermove",et=ue.msPointer?"MSPointerUp":"pointerup",_o=ue.msPointer?"MSPointerCancel":"pointercancel",ec={touchstart:nn,touchmove:Ln,touchend:et,touchcancel:_o},tc={touchstart:k3,touchmove:So,touchend:So,touchcancel:So},Nr={},nc=!1;function Od(a,d,p){return d==="touchstart"&&sg(),tc[d]?(p=tc[d].bind(this,p),a.addEventListener(ec[d],p,!1),p):(console.warn("wrong event specified:",d),f)}function Qe(a,d,p){if(!ec[d]){console.warn("wrong event specified:",d);return}a.removeEventListener(ec[d],p,!1)}function Fi(a){Nr[a.pointerId]=a}function ic(a){Nr[a.pointerId]&&(Nr[a.pointerId]=a)}function wo(a){delete Nr[a.pointerId]}function sg(){nc||(document.addEventListener(nn,Fi,!0),document.addEventListener(Ln,ic,!0),document.addEventListener(et,wo,!0),document.addEventListener(_o,wo,!0),nc=!0)}function So(a,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var p in Nr)d.touches.push(Nr[p]);d.changedTouches=[d],a(d)}}function k3(a,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&pn(d),So(a,d)}function E3(a){var d={},p,_;for(_ in a)p=a[_],d[_]=p&&p.bind?p.bind(a):p;return a=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var T3=200;function P3(a,d){a.addEventListener("dblclick",d);var p=0,_;function E(A){if(A.detail!==1){_=A.detail;return}if(!(A.pointerType==="mouse"||A.sourceCapabilities&&!A.sourceCapabilities.firesTouchEvents)){var D=Q1(A);if(!(D.some(function(Y){return Y instanceof HTMLLabelElement&&Y.attributes.for})&&!D.some(function(Y){return Y instanceof HTMLInputElement||Y instanceof HTMLSelectElement}))){var U=Date.now();U-p<=T3?(_++,_===2&&d(E3(A))):_=1,p=U}}}return a.addEventListener("click",E),{dblclick:d,simDblclick:E}}function O3(a,d){a.removeEventListener("dblclick",d.dblclick),a.removeEventListener("click",d.simDblclick)}var ag=Ad(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),rc=Ad(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Y1=rc==="webkitTransition"||rc==="OTransition"?rc+"End":"transitionend";function K1(a){return typeof a=="string"?document.getElementById(a):a}function oc(a,d){var p=a.style[d]||a.currentStyle&&a.currentStyle[d];if((!p||p==="auto")&&document.defaultView){var _=document.defaultView.getComputedStyle(a,null);p=_?_[d]:null}return p==="auto"?null:p}function He(a,d,p){var _=document.createElement(a);return _.className=d||"",p&&p.appendChild(_),_}function xt(a){var d=a.parentNode;d&&d.removeChild(a)}function Md(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function Sa(a){var d=a.parentNode;d&&d.lastChild!==a&&d.appendChild(a)}function Ca(a){var d=a.parentNode;d&&d.firstChild!==a&&d.insertBefore(a,d.firstChild)}function lg(a,d){if(a.classList!==void 0)return a.classList.contains(d);var p=Ld(a);return p.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(p)}function Te(a,d){if(a.classList!==void 0)for(var p=v(d),_=0,E=p.length;_0?2*window.devicePixelRatio:1;function e_(a){return ue.edge?a.wheelDeltaY/2:a.deltaY&&a.deltaMode===0?-a.deltaY/A3:a.deltaY&&a.deltaMode===1?-a.deltaY*20:a.deltaY&&a.deltaMode===2?-a.deltaY*60:a.deltaX||a.deltaZ?0:a.wheelDelta?(a.wheelDeltaY||a.wheelDelta)/2:a.detail&&Math.abs(a.detail)<32765?-a.detail*20:a.detail?a.detail/-32765*60:0}function xg(a,d){var p=d.relatedTarget;if(!p)return!0;try{for(;p&&p!==a;)p=p.parentNode}catch{return!1}return p!==a}var R3={__proto__:null,on:ke,off:nt,stopPropagation:_s,disableScrollPropagation:bg,disableClickPropagation:cc,preventDefault:pn,stop:ws,getPropagationPath:Q1,getMousePosition:J1,getWheelDelta:e_,isExternalTarget:xg,addListener:ke,removeListener:nt},t_=G.extend({run:function(a,d,p,_){this.stop(),this._el=a,this._inProgress=!0,this._duration=p||.25,this._easeOutPower=1/Math.max(_||.5,.2),this._startPos=xs(a),this._offset=d.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=$(this._animate,this),this._step()},_step:function(a){var d=+new Date-this._startTime,p=this._duration*1e3;dthis.options.maxZoom)?this.setZoom(a):this},panInsideBounds:function(a,d){this._enforcingBounds=!0;var p=this.getCenter(),_=this._limitCenter(p,this._zoom,ne(a));return p.equals(_)||this.panTo(_,d),this._enforcingBounds=!1,this},panInside:function(a,d){d=d||{};var p=H(d.paddingTopLeft||d.padding||[0,0]),_=H(d.paddingBottomRight||d.padding||[0,0]),E=this.project(this.getCenter()),A=this.project(a),D=this.getPixelBounds(),U=X([D.min.add(p),D.max.subtract(_)]),Y=U.getSize();if(!U.contains(A)){this._enforcingBounds=!0;var te=A.subtract(U.getCenter()),le=U.extend(A).getSize().subtract(Y);E.x+=te.x<0?-le.x:le.x,E.y+=te.y<0?-le.y:le.y,this.panTo(this.unproject(E),d),this._enforcingBounds=!1}return this},invalidateSize:function(a){if(!this._loaded)return this;a=r({animate:!1,pan:!0},a===!0?{animate:!0}:a);var d=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var p=this.getSize(),_=d.divideBy(2).round(),E=p.divideBy(2).round(),A=_.subtract(E);return!A.x&&!A.y?this:(a.animate&&a.pan?this.panBy(A):(a.pan&&this._rawPanBy(A),this.fire("move"),a.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:p}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(a){if(a=this._locateOptions=r({timeout:1e4,watch:!1},a),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var d=s(this._handleGeolocationResponse,this),p=s(this._handleGeolocationError,this);return a.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,p,a):navigator.geolocation.getCurrentPosition(d,p,a),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(a){if(this._container._leaflet_id){var d=a.code,p=a.message||(d===1?"permission denied":d===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:d,message:"Geolocation error: "+p+"."})}},_handleGeolocationResponse:function(a){if(this._container._leaflet_id){var d=a.coords.latitude,p=a.coords.longitude,_=new oe(d,p),E=_.toBounds(a.coords.accuracy*2),A=this._locateOptions;if(A.setView){var D=this.getBoundsZoom(E);this.setView(_,A.maxZoom?Math.min(D,A.maxZoom):D)}var U={latlng:_,bounds:E,timestamp:a.timestamp};for(var Y in a.coords)typeof a.coords[Y]=="number"&&(U[Y]=a.coords[Y]);this.fire("locationfound",U)}},addHandler:function(a,d){if(!d)return this;var p=this[a]=new d(this);return this._handlers.push(p),this.options[a]&&p.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),xt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(j(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var a;for(a in this._layers)this._layers[a].remove();for(a in this._panes)xt(this._panes[a]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(a,d){var p="leaflet-pane"+(a?" leaflet-"+a.replace("Pane","")+"-pane":""),_=He("div",p,d||this._mapPane);return a&&(this._panes[a]=_),_},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var a=this.getPixelBounds(),d=this.unproject(a.getBottomLeft()),p=this.unproject(a.getTopRight());return new re(d,p)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(a,d,p){a=ne(a),p=H(p||[0,0]);var _=this.getZoom()||0,E=this.getMinZoom(),A=this.getMaxZoom(),D=a.getNorthWest(),U=a.getSouthEast(),Y=this.getSize().subtract(p),te=X(this.project(U,_),this.project(D,_)).getSize(),le=ue.any3d?this.options.zoomSnap:1,xe=Y.x/te.x,Ae=Y.y/te.y,An=d?Math.max(xe,Ae):Math.min(xe,Ae);return _=this.getScaleZoom(An,_),le&&(_=Math.round(_/(le/100))*(le/100),_=d?Math.ceil(_/le)*le:Math.floor(_/le)*le),Math.max(E,Math.min(A,_))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(a,d){var p=this._getTopLeftPoint(a,d);return new J(p,p.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(a){return this.options.crs.getProjectedBounds(a===void 0?this.getZoom():a)},getPane:function(a){return typeof a=="string"?this._panes[a]:a},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(a,d){var p=this.options.crs;return d=d===void 0?this._zoom:d,p.scale(a)/p.scale(d)},getScaleZoom:function(a,d){var p=this.options.crs;d=d===void 0?this._zoom:d;var _=p.zoom(a*p.scale(d));return isNaN(_)?1/0:_},project:function(a,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(K(a),d)},unproject:function(a,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(H(a),d)},layerPointToLatLng:function(a){var d=H(a).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(a){var d=this.project(K(a))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(a){return this.options.crs.wrapLatLng(K(a))},wrapLatLngBounds:function(a){return this.options.crs.wrapLatLngBounds(ne(a))},distance:function(a,d){return this.options.crs.distance(K(a),K(d))},containerPointToLayerPoint:function(a){return H(a).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(a){return H(a).add(this._getMapPanePos())},containerPointToLatLng:function(a){var d=this.containerPointToLayerPoint(H(a));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(a){return this.layerPointToContainerPoint(this.latLngToLayerPoint(K(a)))},mouseEventToContainerPoint:function(a){return J1(a,this._container)},mouseEventToLayerPoint:function(a){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(a))},mouseEventToLatLng:function(a){return this.layerPointToLatLng(this.mouseEventToLayerPoint(a))},_initContainer:function(a){var d=this._container=K1(a);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");ke(d,"scroll",this._onScroll,this),this._containerId=c(d)},_initLayout:function(){var a=this._container;this._fadeAnimated=this.options.fadeAnimation&&ue.any3d,Te(a,"leaflet-container"+(ue.touch?" leaflet-touch":"")+(ue.retina?" leaflet-retina":"")+(ue.ielt9?" leaflet-oldie":"")+(ue.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=oc(a,"position");d!=="absolute"&&d!=="relative"&&d!=="fixed"&&d!=="sticky"&&(a.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var a=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ht(this._mapPane,new z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Te(a.markerPane,"leaflet-zoom-hide"),Te(a.shadowPane,"leaflet-zoom-hide"))},_resetView:function(a,d,p){Ht(this._mapPane,new z(0,0));var _=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var E=this._zoom!==d;this._moveStart(E,p)._move(a,d)._moveEnd(E),this.fire("viewreset"),_&&this.fire("load")},_moveStart:function(a,d){return a&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(a,d,p,_){d===void 0&&(d=this._zoom);var E=this._zoom!==d;return this._zoom=d,this._lastCenter=a,this._pixelOrigin=this._getNewPixelOrigin(a),_?p&&p.pinch&&this.fire("zoom",p):((E||p&&p.pinch)&&this.fire("zoom",p),this.fire("move",p)),this},_moveEnd:function(a){return a&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return j(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(a){Ht(this._mapPane,this._getMapPanePos().subtract(a))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(a){this._targets={},this._targets[c(this._container)]=this;var d=a?nt:ke;d(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&d(window,"resize",this._onResize,this),ue.any3d&&this.options.transform3DLimit&&(a?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){j(this._resizeRequest),this._resizeRequest=$(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var a=this._getMapPanePos();Math.max(Math.abs(a.x),Math.abs(a.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(a,d){for(var p=[],_,E=d==="mouseout"||d==="mouseover",A=a.target||a.srcElement,D=!1;A;){if(_=this._targets[c(A)],_&&(d==="click"||d==="preclick")&&this._draggableMoved(_)){D=!0;break}if(_&&_.listens(d,!0)&&(E&&!xg(A,a)||(p.push(_),E))||A===this._container)break;A=A.parentNode}return!p.length&&!D&&!E&&this.listens(d,!0)&&(p=[this]),p},_isClickDisabled:function(a){for(;a&&a!==this._container;){if(a._leaflet_disable_click)return!0;a=a.parentNode}},_handleDOMEvent:function(a){var d=a.target||a.srcElement;if(!(!this._loaded||d._leaflet_disable_events||a.type==="click"&&this._isClickDisabled(d))){var p=a.type;p==="mousedown"&&pg(d),this._fireDOMEvent(a,p)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(a,d,p){if(a.type==="click"){var _=r({},a);_.type="preclick",this._fireDOMEvent(_,_.type,p)}var E=this._findEventTargets(a,d);if(p){for(var A=[],D=0;D0?Math.round(a-d)/2:Math.max(0,Math.ceil(a))-Math.max(0,Math.floor(d))},_limitZoom:function(a){var d=this.getMinZoom(),p=this.getMaxZoom(),_=ue.any3d?this.options.zoomSnap:1;return _&&(a=Math.round(a/_)*_),Math.max(d,Math.min(p,a))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){At(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(a,d){var p=this._getCenterOffset(a)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(p)?!1:(this.panBy(p,d),!0)},_createAnimProxy:function(){var a=this._proxy=He("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(a),this.on("zoomanim",function(d){var p=ag,_=this._proxy.style[p];bs(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),_===this._proxy.style[p]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){xt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var a=this.getCenter(),d=this.getZoom();bs(this._proxy,this.project(a,d),this.getZoomScale(d,1))},_catchTransitionEnd:function(a){this._animatingZoom&&a.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(a,d,p){if(this._animatingZoom)return!0;if(p=p||{},!this._zoomAnimated||p.animate===!1||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var _=this.getZoomScale(d),E=this._getCenterOffset(a)._divideBy(1-1/_);return p.animate!==!0&&!this.getSize().contains(E)?!1:($(function(){this._moveStart(!0,p.noMoveStart||!1)._animateZoom(a,d,!0)},this),!0)},_animateZoom:function(a,d,p,_){this._mapPane&&(p&&(this._animatingZoom=!0,this._animateToCenter=a,this._animateToZoom=d,Te(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:a,zoom:d,noUpdate:_}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&At(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function I3(a,d){return new ze(a,d)}var Hi=W.extend({options:{position:"topright"},initialize:function(a){y(this,a)},getPosition:function(){return this.options.position},setPosition:function(a){var d=this._map;return d&&d.removeControl(this),this.options.position=a,d&&d.addControl(this),this},getContainer:function(){return this._container},addTo:function(a){this.remove(),this._map=a;var d=this._container=this.onAdd(a),p=this.getPosition(),_=a._controlCorners[p];return Te(d,"leaflet-control"),p.indexOf("bottom")!==-1?_.insertBefore(d,_.firstChild):_.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(xt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(a){this._map&&a&&a.screenX>0&&a.screenY>0&&this._map.getContainer().focus()}}),uc=function(a){return new Hi(a)};ze.include({addControl:function(a){return a.addTo(this),this},removeControl:function(a){return a.remove(),this},_initControlPos:function(){var a=this._controlCorners={},d="leaflet-",p=this._controlContainer=He("div",d+"control-container",this._container);function _(E,A){var D=d+E+" "+d+A;a[E+A]=He("div",D,p)}_("top","left"),_("top","right"),_("bottom","left"),_("bottom","right")},_clearControlPos:function(){for(var a in this._controlCorners)xt(this._controlCorners[a]);xt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var n_=Hi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(a,d,p,_){return p<_?-1:_1,this._baseLayersList.style.display=a?"":"none"),this._separator.style.display=d&&a?"":"none",this},_onLayerChange:function(a){this._handlingClick||this._update();var d=this._getLayer(c(a.target)),p=d.overlay?a.type==="add"?"overlayadd":"overlayremove":a.type==="add"?"baselayerchange":null;p&&this._map.fire(p,d)},_createRadioElement:function(a,d){var p='",_=document.createElement("div");return _.innerHTML=p,_.firstChild},_addItem:function(a){var d=document.createElement("label"),p=this._map.hasLayer(a.layer),_;a.overlay?(_=document.createElement("input"),_.type="checkbox",_.className="leaflet-control-layers-selector",_.defaultChecked=p):_=this._createRadioElement("leaflet-base-layers_"+c(this),p),this._layerControlInputs.push(_),_.layerId=c(a.layer),ke(_,"click",this._onInputClick,this);var E=document.createElement("span");E.innerHTML=" "+a.name;var A=document.createElement("span");d.appendChild(A),A.appendChild(_),A.appendChild(E);var D=a.overlay?this._overlaysList:this._baseLayersList;return D.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){if(!this._preventClick){var a=this._layerControlInputs,d,p,_=[],E=[];this._handlingClick=!0;for(var A=a.length-1;A>=0;A--)d=a[A],p=this._getLayer(d.layerId).layer,d.checked?_.push(p):d.checked||E.push(p);for(A=0;A=0;E--)d=a[E],p=this._getLayer(d.layerId).layer,d.disabled=p.options.minZoom!==void 0&&_p.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var a=this._section;this._preventClick=!0,ke(a,"click",pn),this.expand();var d=this;setTimeout(function(){nt(a,"click",pn),d._preventClick=!1})}}),N3=function(a,d,p){return new n_(a,d,p)},_g=Hi.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(a){var d="leaflet-control-zoom",p=He("div",d+" leaflet-bar"),_=this.options;return this._zoomInButton=this._createButton(_.zoomInText,_.zoomInTitle,d+"-in",p,this._zoomIn),this._zoomOutButton=this._createButton(_.zoomOutText,_.zoomOutTitle,d+"-out",p,this._zoomOut),this._updateDisabled(),a.on("zoomend zoomlevelschange",this._updateDisabled,this),p},onRemove:function(a){a.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(a){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(a.shiftKey?3:1))},_createButton:function(a,d,p,_,E){var A=He("a",p,_);return A.innerHTML=a,A.href="#",A.title=d,A.setAttribute("role","button"),A.setAttribute("aria-label",d),cc(A),ke(A,"click",ws),ke(A,"click",E,this),ke(A,"click",this._refocusOnMap,this),A},_updateDisabled:function(){var a=this._map,d="leaflet-disabled";At(this._zoomInButton,d),At(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||a._zoom===a.getMinZoom())&&(Te(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||a._zoom===a.getMaxZoom())&&(Te(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});ze.mergeOptions({zoomControl:!0}),ze.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new _g,this.addControl(this.zoomControl))});var D3=function(a){return new _g(a)},i_=Hi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(a){var d="leaflet-control-scale",p=He("div",d),_=this.options;return this._addScales(_,d+"-line",p),a.on(_.updateWhenIdle?"moveend":"move",this._update,this),a.whenReady(this._update,this),p},onRemove:function(a){a.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(a,d,p){a.metric&&(this._mScale=He("div",d,p)),a.imperial&&(this._iScale=He("div",d,p))},_update:function(){var a=this._map,d=a.getSize().y/2,p=a.distance(a.containerPointToLatLng([0,d]),a.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(p)},_updateScales:function(a){this.options.metric&&a&&this._updateMetric(a),this.options.imperial&&a&&this._updateImperial(a)},_updateMetric:function(a){var d=this._getRoundNum(a),p=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,p,d/a)},_updateImperial:function(a){var d=a*3.2808399,p,_,E;d>5280?(p=d/5280,_=this._getRoundNum(p),this._updateScale(this._iScale,_+" mi",_/p)):(E=this._getRoundNum(d),this._updateScale(this._iScale,E+" ft",E/d))},_updateScale:function(a,d,p){a.style.width=Math.round(this.options.maxWidth*p)+"px",a.innerHTML=d},_getRoundNum:function(a){var d=Math.pow(10,(Math.floor(a)+"").length-1),p=a/d;return p=p>=10?10:p>=5?5:p>=3?3:p>=2?2:1,d*p}}),j3=function(a){return new i_(a)},z3='',wg=Hi.extend({options:{position:"bottomright",prefix:''+(ue.inlineSvg?z3+" ":"")+"Leaflet"},initialize:function(a){y(this,a),this._attributions={}},onAdd:function(a){a.attributionControl=this,this._container=He("div","leaflet-control-attribution"),cc(this._container);for(var d in a._layers)a._layers[d].getAttribution&&this.addAttribution(a._layers[d].getAttribution());return this._update(),a.on("layeradd",this._addAttribution,this),this._container},onRemove:function(a){a.off("layeradd",this._addAttribution,this)},_addAttribution:function(a){a.layer.getAttribution&&(this.addAttribution(a.layer.getAttribution()),a.layer.once("remove",function(){this.removeAttribution(a.layer.getAttribution())},this))},setPrefix:function(a){return this.options.prefix=a,this._update(),this},addAttribution:function(a){return a?(this._attributions[a]||(this._attributions[a]=0),this._attributions[a]++,this._update(),this):this},removeAttribution:function(a){return a?(this._attributions[a]&&(this._attributions[a]--,this._update()),this):this},_update:function(){if(this._map){var a=[];for(var d in this._attributions)this._attributions[d]&&a.push(d);var p=[];this.options.prefix&&p.push(this.options.prefix),a.length&&p.push(a.join(", ")),this._container.innerHTML=p.join(' ')}}});ze.mergeOptions({attributionControl:!0}),ze.addInitHook(function(){this.options.attributionControl&&new wg().addTo(this)});var $3=function(a){return new wg(a)};Hi.Layers=n_,Hi.Zoom=_g,Hi.Scale=i_,Hi.Attribution=wg,uc.layers=N3,uc.zoom=D3,uc.scale=j3,uc.attribution=$3;var cr=W.extend({initialize:function(a){this._map=a},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});cr.addTo=function(a,d){return a.addHandler(d,this),this};var B3={Events:V},r_=ue.touch?"touchstart mousedown":"mousedown",Co=G.extend({options:{clickTolerance:3},initialize:function(a,d,p,_){y(this,_),this._element=a,this._dragStartTarget=d||a,this._preventOutline=p},enable:function(){this._enabled||(ke(this._dragStartTarget,r_,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Co._dragging===this&&this.finishDrag(!0),nt(this._dragStartTarget,r_,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(a){if(this._enabled&&(this._moved=!1,!lg(this._element,"leaflet-zoom-anim"))){if(a.touches&&a.touches.length!==1){Co._dragging===this&&this.finishDrag();return}if(!(Co._dragging||a.shiftKey||a.which!==1&&a.button!==1&&!a.touches)&&(Co._dragging=this,this._preventOutline&&pg(this._element),dg(),sc(),!this._moving)){this.fire("down");var d=a.touches?a.touches[0]:a,p=q1(this._element);this._startPoint=new z(d.clientX,d.clientY),this._startPos=xs(this._element),this._parentScale=mg(p);var _=a.type==="mousedown";ke(document,_?"mousemove":"touchmove",this._onMove,this),ke(document,_?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(a){if(this._enabled){if(a.touches&&a.touches.length>1){this._moved=!0;return}var d=a.touches&&a.touches.length===1?a.touches[0]:a,p=new z(d.clientX,d.clientY)._subtract(this._startPoint);!p.x&&!p.y||Math.abs(p.x)+Math.abs(p.y)A&&(D=U,A=Y);A>p&&(d[D]=1,Cg(a,d,p,_,D),Cg(a,d,p,D,E))}function W3(a,d){for(var p=[a[0]],_=1,E=0,A=a.length;_d&&(p.push(a[_]),E=_);return Ed.max.x&&(p|=2),a.yd.max.y&&(p|=8),p}function U3(a,d){var p=d.x-a.x,_=d.y-a.y;return p*p+_*_}function dc(a,d,p,_){var E=d.x,A=d.y,D=p.x-E,U=p.y-A,Y=D*D+U*U,te;return Y>0&&(te=((a.x-E)*D+(a.y-A)*U)/Y,te>1?(E=p.x,A=p.y):te>0&&(E+=D*te,A+=U*te)),D=a.x-E,U=a.y-A,_?D*D+U*U:new z(E,A)}function yi(a){return!k(a[0])||typeof a[0][0]!="object"&&typeof a[0][0]<"u"}function d_(a){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),yi(a)}function h_(a,d){var p,_,E,A,D,U,Y,te;if(!a||a.length===0)throw new Error("latlngs not passed");yi(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var le=K([0,0]),xe=ne(a),Ae=xe.getNorthWest().distanceTo(xe.getSouthWest())*xe.getNorthEast().distanceTo(xe.getNorthWest());Ae<1700&&(le=Sg(a));var An=a.length,rn=[];for(p=0;p_){Y=(A-_)/E,te=[U.x-Y*(U.x-D.x),U.y-Y*(U.y-D.y)];break}var Fn=d.unproject(H(te));return K([Fn.lat+le.lat,Fn.lng+le.lng])}var Z3={__proto__:null,simplify:a_,pointToSegmentDistance:l_,closestPointOnSegment:H3,clipSegment:u_,_getEdgeIntersection:Nd,_getBitCode:Ss,_sqClosestPointOnSegment:dc,isFlat:yi,_flat:d_,polylineCenter:h_},kg={project:function(a){return new z(a.lng,a.lat)},unproject:function(a){return new oe(a.y,a.x)},bounds:new J([-180,-90],[180,90])},Eg={R:6378137,R_MINOR:6356752314245179e-9,bounds:new J([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(a){var d=Math.PI/180,p=this.R,_=a.lat*d,E=this.R_MINOR/p,A=Math.sqrt(1-E*E),D=A*Math.sin(_),U=Math.tan(Math.PI/4-_/2)/Math.pow((1-D)/(1+D),A/2);return _=-p*Math.log(Math.max(U,1e-10)),new z(a.lng*d*p,_)},unproject:function(a){for(var d=180/Math.PI,p=this.R,_=this.R_MINOR/p,E=Math.sqrt(1-_*_),A=Math.exp(-a.y/p),D=Math.PI/2-2*Math.atan(A),U=0,Y=.1,te;U<15&&Math.abs(Y)>1e-7;U++)te=E*Math.sin(D),te=Math.pow((1-te)/(1+te),E/2),Y=Math.PI/2-2*Math.atan(A*te)-D,D+=Y;return new oe(D*d,a.x*d/p)}},G3={__proto__:null,LonLat:kg,Mercator:Eg,SphericalMercator:ce},Y3=r({},ye,{code:"EPSG:3395",projection:Eg,transformation:function(){var a=.5/(Math.PI*Eg.R);return Le(a,.5,-a,.5)}()}),f_=r({},ye,{code:"EPSG:4326",projection:kg,transformation:Le(1/180,1,-1/180,.5)}),K3=r({},ae,{projection:kg,transformation:Le(1,0,-1,0),scale:function(a){return Math.pow(2,a)},zoom:function(a){return Math.log(a)/Math.LN2},distance:function(a,d){var p=d.lng-a.lng,_=d.lat-a.lat;return Math.sqrt(p*p+_*_)},infinite:!0});ae.Earth=ye,ae.EPSG3395=Y3,ae.EPSG3857=ot,ae.EPSG900913=We,ae.EPSG4326=f_,ae.Simple=K3;var Vi=G.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(a){return a.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(a){return a&&a.removeLayer(this),this},getPane:function(a){return this._map.getPane(a?this.options[a]||a:this.options.pane)},addInteractiveTarget:function(a){return this._map._targets[c(a)]=this,this},removeInteractiveTarget:function(a){return delete this._map._targets[c(a)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(a){var d=a.target;if(d.hasLayer(this)){if(this._map=d,this._zoomAnimated=d._zoomAnimated,this.getEvents){var p=this.getEvents();d.on(p,this),this.once("remove",function(){d.off(p,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});ze.include({addLayer:function(a){if(!a._layerAdd)throw new Error("The provided object is not a Layer.");var d=c(a);return this._layers[d]?this:(this._layers[d]=a,a._mapToAdd=this,a.beforeAdd&&a.beforeAdd(this),this.whenReady(a._layerAdd,a),this)},removeLayer:function(a){var d=c(a);return this._layers[d]?(this._loaded&&a.onRemove(this),delete this._layers[d],this._loaded&&(this.fire("layerremove",{layer:a}),a.fire("remove")),a._map=a._mapToAdd=null,this):this},hasLayer:function(a){return c(a)in this._layers},eachLayer:function(a,d){for(var p in this._layers)a.call(d,this._layers[p]);return this},_addLayers:function(a){a=a?k(a)?a:[a]:[];for(var d=0,p=a.length;dthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&d[0]instanceof oe&&d[0].equals(d[p-1])&&d.pop(),d},_setLatLngs:function(a){jr.prototype._setLatLngs.call(this,a),yi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return yi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var a=this._renderer._bounds,d=this.options.weight,p=new z(d,d);if(a=new J(a.min.subtract(p),a.max.add(p)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(a))){if(this.options.noClip){this._parts=this._rings;return}for(var _=0,E=this._rings.length,A;_a.y!=E.y>a.y&&a.x<(E.x-_.x)*(a.y-_.y)/(E.y-_.y)+_.x&&(d=!d);return d||jr.prototype._containsPoint.call(this,a,!0)}});function iL(a,d){return new Ta(a,d)}var zr=Dr.extend({initialize:function(a,d){y(this,d),this._layers={},a&&this.addData(a)},addData:function(a){var d=k(a)?a:a.features,p,_,E;if(d){for(p=0,_=d.length;p<_;p++)E=d[p],(E.geometries||E.geometry||E.features||E.coordinates)&&this.addData(E);return this}var A=this.options;if(A.filter&&!A.filter(a))return this;var D=zd(a,A);return D?(D.feature=Fd(a),D.defaultOptions=D.options,this.resetStyle(D),A.onEachFeature&&A.onEachFeature(a,D),this.addLayer(D)):this},resetStyle:function(a){return a===void 0?this.eachLayer(this.resetStyle,this):(a.options=r({},a.defaultOptions),this._setLayerStyle(a,this.options.style),this)},setStyle:function(a){return this.eachLayer(function(d){this._setLayerStyle(d,a)},this)},_setLayerStyle:function(a,d){a.setStyle&&(typeof d=="function"&&(d=d(a.feature)),a.setStyle(d))}});function zd(a,d){var p=a.type==="Feature"?a.geometry:a,_=p?p.coordinates:null,E=[],A=d&&d.pointToLayer,D=d&&d.coordsToLatLng||Pg,U,Y,te,le;if(!_&&!p)return null;switch(p.type){case"Point":return U=D(_),m_(A,a,U,d);case"MultiPoint":for(te=0,le=_.length;te0&&E.push(E[0].slice()),E}function Pa(a,d){return a.feature?r({},a.feature,{geometry:d}):Fd(d)}function Fd(a){return a.type==="Feature"||a.type==="FeatureCollection"?a:{type:"Feature",properties:{},geometry:a}}var Mg={toGeoJSON:function(a){return Pa(this,{type:"Point",coordinates:Og(this.getLatLng(),a)})}};Dd.include(Mg),Tg.include(Mg),jd.include(Mg),jr.include({toGeoJSON:function(a){var d=!yi(this._latlngs),p=Bd(this._latlngs,d?1:0,!1,a);return Pa(this,{type:(d?"Multi":"")+"LineString",coordinates:p})}}),Ta.include({toGeoJSON:function(a){var d=!yi(this._latlngs),p=d&&!yi(this._latlngs[0]),_=Bd(this._latlngs,p?2:d?1:0,!0,a);return d||(_=[_]),Pa(this,{type:(p?"Multi":"")+"Polygon",coordinates:_})}}),ka.include({toMultiPoint:function(a){var d=[];return this.eachLayer(function(p){d.push(p.toGeoJSON(a).geometry.coordinates)}),Pa(this,{type:"MultiPoint",coordinates:d})},toGeoJSON:function(a){var d=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(d==="MultiPoint")return this.toMultiPoint(a);var p=d==="GeometryCollection",_=[];return this.eachLayer(function(E){if(E.toGeoJSON){var A=E.toGeoJSON(a);if(p)_.push(A.geometry);else{var D=Fd(A);D.type==="FeatureCollection"?_.push.apply(_,D.features):_.push(D)}}}),p?Pa(this,{geometries:_,type:"GeometryCollection"}):{type:"FeatureCollection",features:_}}});function g_(a,d){return new zr(a,d)}var rL=g_,Hd=Vi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(a,d,p){this._url=a,this._bounds=ne(d),y(this,p)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Te(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){xt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(a){return this.options.opacity=a,this._image&&this._updateOpacity(),this},setStyle:function(a){return a.opacity&&this.setOpacity(a.opacity),this},bringToFront:function(){return this._map&&Sa(this._image),this},bringToBack:function(){return this._map&&Ca(this._image),this},setUrl:function(a){return this._url=a,this._image&&(this._image.src=a),this},setBounds:function(a){return this._bounds=ne(a),this._map&&this._reset(),this},getEvents:function(){var a={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},setZIndex:function(a){return this.options.zIndex=a,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var a=this._url.tagName==="IMG",d=this._image=a?this._url:He("img");if(Te(d,"leaflet-image-layer"),this._zoomAnimated&&Te(d,"leaflet-zoom-animated"),this.options.className&&Te(d,this.options.className),d.onselectstart=f,d.onmousemove=f,d.onload=s(this.fire,this,"load"),d.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),a){this._url=d.src;return}d.src=this._url,d.alt=this.options.alt},_animateZoom:function(a){var d=this._map.getZoomScale(a.zoom),p=this._map._latLngBoundsToNewLayerBounds(this._bounds,a.zoom,a.center).min;bs(this._image,p,d)},_reset:function(){var a=this._image,d=new J(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),p=d.getSize();Ht(a,d.min),a.style.width=p.x+"px",a.style.height=p.y+"px"},_updateOpacity:function(){vi(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var a=this.options.errorOverlayUrl;a&&this._url!==a&&(this._url=a,this._image.src=a)},getCenter:function(){return this._bounds.getCenter()}}),oL=function(a,d,p){return new Hd(a,d,p)},v_=Hd.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var a=this._url.tagName==="VIDEO",d=this._image=a?this._url:He("video");if(Te(d,"leaflet-image-layer"),this._zoomAnimated&&Te(d,"leaflet-zoom-animated"),this.options.className&&Te(d,this.options.className),d.onselectstart=f,d.onmousemove=f,d.onloadeddata=s(this.fire,this,"load"),a){for(var p=d.getElementsByTagName("source"),_=[],E=0;E0?_:[d.src];return}k(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(d.style,"objectFit")&&(d.style.objectFit="fill"),d.autoplay=!!this.options.autoplay,d.loop=!!this.options.loop,d.muted=!!this.options.muted,d.playsInline=!!this.options.playsInline;for(var A=0;AE?(d.height=E+"px",Te(a,A)):At(a,A),this._containerWidth=this._container.offsetWidth},_animateZoom:function(a){var d=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center),p=this._getAnchor();Ht(this._container,d.add(p))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var a=this._map,d=parseInt(oc(this._container,"marginBottom"),10)||0,p=this._container.offsetHeight+d,_=this._containerWidth,E=new z(this._containerLeft,-p-this._containerBottom);E._add(xs(this._container));var A=a.layerPointToContainerPoint(E),D=H(this.options.autoPanPadding),U=H(this.options.autoPanPaddingTopLeft||D),Y=H(this.options.autoPanPaddingBottomRight||D),te=a.getSize(),le=0,xe=0;A.x+_+Y.x>te.x&&(le=A.x+_-te.x+Y.x),A.x-le-U.x<0&&(le=A.x-U.x),A.y+p+Y.y>te.y&&(xe=A.y+p-te.y+Y.y),A.y-xe-U.y<0&&(xe=A.y-U.y),(le||xe)&&(this.options.keepInView&&(this._autopanning=!0),a.fire("autopanstart").panBy([le,xe]))}},_getAnchor:function(){return H(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),lL=function(a,d){return new Vd(a,d)};ze.mergeOptions({closePopupOnClick:!0}),ze.include({openPopup:function(a,d,p){return this._initOverlay(Vd,a,d,p).openOn(this),this},closePopup:function(a){return a=arguments.length?a:this._popup,a&&a.close(),this}}),Vi.include({bindPopup:function(a,d){return this._popup=this._initOverlay(Vd,this._popup,a,d),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(a){return this._popup&&(this instanceof Dr||(this._popup._source=this),this._popup._prepareOpen(a||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(a){return this._popup&&this._popup.setContent(a),this},getPopup:function(){return this._popup},_openPopup:function(a){if(!(!this._popup||!this._map)){ws(a);var d=a.layer||a.target;if(this._popup._source===d&&!(d instanceof ko)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(a.latlng);return}this._popup._source=d,this.openPopup(a.latlng)}},_movePopup:function(a){this._popup.setLatLng(a.latlng)},_onKeyPress:function(a){a.originalEvent.keyCode===13&&this._openPopup(a)}});var Wd=ur.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(a){ur.prototype.onAdd.call(this,a),this.setOpacity(this.options.opacity),a.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(a){ur.prototype.onRemove.call(this,a),a.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var a=ur.prototype.getEvents.call(this);return this.options.permanent||(a.preclick=this.close),a},_initLayout:function(){var a="leaflet-tooltip",d=a+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=He("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(a){var d,p,_=this._map,E=this._container,A=_.latLngToContainerPoint(_.getCenter()),D=_.layerPointToContainerPoint(a),U=this.options.direction,Y=E.offsetWidth,te=E.offsetHeight,le=H(this.options.offset),xe=this._getAnchor();U==="top"?(d=Y/2,p=te):U==="bottom"?(d=Y/2,p=0):U==="center"?(d=Y/2,p=te/2):U==="right"?(d=0,p=te/2):U==="left"?(d=Y,p=te/2):D.xthis.options.maxZoom||p_?this._retainParent(E,A,D,_):!1)},_retainChildren:function(a,d,p,_){for(var E=2*a;E<2*a+2;E++)for(var A=2*d;A<2*d+2;A++){var D=new z(E,A);D.z=p+1;var U=this._tileCoordsToKey(D),Y=this._tiles[U];if(Y&&Y.active){Y.retain=!0;continue}else Y&&Y.loaded&&(Y.retain=!0);p+1<_&&this._retainChildren(E,A,p+1,_)}},_resetView:function(a){var d=a&&(a.pinch||a.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),d,d)},_animateZoom:function(a){this._setView(a.center,a.zoom,!0,a.noUpdate)},_clampZoom:function(a){var d=this.options;return d.minNativeZoom!==void 0&&athis.options.maxZoom||this.options.minZoom!==void 0&&E1){this._setView(a,p);return}for(var xe=E.min.y;xe<=E.max.y;xe++)for(var Ae=E.min.x;Ae<=E.max.x;Ae++){var An=new z(Ae,xe);if(An.z=this._tileZoom,!!this._isValidTile(An)){var rn=this._tiles[this._tileCoordsToKey(An)];rn?rn.current=!0:D.push(An)}}if(D.sort(function(Fn,Ma){return Fn.distanceTo(A)-Ma.distanceTo(A)}),D.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var bi=document.createDocumentFragment();for(Ae=0;Aep.max.x)||!d.wrapLat&&(a.yp.max.y))return!1}if(!this.options.bounds)return!0;var _=this._tileCoordsToBounds(a);return ne(this.options.bounds).overlaps(_)},_keyToBounds:function(a){return this._tileCoordsToBounds(this._keyToTileCoords(a))},_tileCoordsToNwSe:function(a){var d=this._map,p=this.getTileSize(),_=a.scaleBy(p),E=_.add(p),A=d.unproject(_,a.z),D=d.unproject(E,a.z);return[A,D]},_tileCoordsToBounds:function(a){var d=this._tileCoordsToNwSe(a),p=new re(d[0],d[1]);return this.options.noWrap||(p=this._map.wrapLatLngBounds(p)),p},_tileCoordsToKey:function(a){return a.x+":"+a.y+":"+a.z},_keyToTileCoords:function(a){var d=a.split(":"),p=new z(+d[0],+d[1]);return p.z=+d[2],p},_removeTile:function(a){var d=this._tiles[a];d&&(xt(d.el),delete this._tiles[a],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(a)}))},_initTile:function(a){Te(a,"leaflet-tile");var d=this.getTileSize();a.style.width=d.x+"px",a.style.height=d.y+"px",a.onselectstart=f,a.onmousemove=f,ue.ielt9&&this.options.opacity<1&&vi(a,this.options.opacity)},_addTile:function(a,d){var p=this._getTilePos(a),_=this._tileCoordsToKey(a),E=this.createTile(this._wrapCoords(a),s(this._tileReady,this,a));this._initTile(E),this.createTile.length<2&&$(s(this._tileReady,this,a,null,E)),Ht(E,p),this._tiles[_]={el:E,coords:a,current:!0},d.appendChild(E),this.fire("tileloadstart",{tile:E,coords:a})},_tileReady:function(a,d,p){d&&this.fire("tileerror",{error:d,tile:p,coords:a});var _=this._tileCoordsToKey(a);p=this._tiles[_],p&&(p.loaded=+new Date,this._map._fadeAnimated?(vi(p.el,0),j(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this)):(p.active=!0,this._pruneTiles()),d||(Te(p.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:p.el,coords:a})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ue.ielt9||!this._map._fadeAnimated?$(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(a){return a.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(a){var d=new z(this._wrapX?h(a.x,this._wrapX):a.x,this._wrapY?h(a.y,this._wrapY):a.y);return d.z=a.z,d},_pxBoundsToTileRange:function(a){var d=this.getTileSize();return new J(a.min.unscaleBy(d).floor(),a.max.unscaleBy(d).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var a in this._tiles)if(!this._tiles[a].loaded)return!1;return!0}});function dL(a){return new fc(a)}var Oa=fc.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(a,d){this._url=a,d=y(this,d),d.detectRetina&&ue.retina&&d.maxZoom>0?(d.tileSize=Math.floor(d.tileSize/2),d.zoomReverse?(d.zoomOffset--,d.minZoom=Math.min(d.maxZoom,d.minZoom+1)):(d.zoomOffset++,d.maxZoom=Math.max(d.minZoom,d.maxZoom-1)),d.minZoom=Math.max(0,d.minZoom)):d.zoomReverse?d.minZoom=Math.min(d.maxZoom,d.minZoom):d.maxZoom=Math.max(d.minZoom,d.maxZoom),typeof d.subdomains=="string"&&(d.subdomains=d.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(a,d){return this._url===a&&d===void 0&&(d=!0),this._url=a,d||this.redraw(),this},createTile:function(a,d){var p=document.createElement("img");return ke(p,"load",s(this._tileOnLoad,this,d,p)),ke(p,"error",s(this._tileOnError,this,d,p)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(p.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(p.referrerPolicy=this.options.referrerPolicy),p.alt="",p.src=this.getTileUrl(a),p},getTileUrl:function(a){var d={r:ue.retina?"@2x":"",s:this._getSubdomain(a),x:a.x,y:a.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var p=this._globalTileRange.max.y-a.y;this.options.tms&&(d.y=p),d["-y"]=p}return S(this._url,r(d,this.options))},_tileOnLoad:function(a,d){ue.ielt9?setTimeout(s(a,this,null,d),0):a(null,d)},_tileOnError:function(a,d,p){var _=this.options.errorTileUrl;_&&d.getAttribute("src")!==_&&(d.src=_),a(p,d)},_onTileRemove:function(a){a.tile.onload=null},_getZoomForUrl:function(){var a=this._tileZoom,d=this.options.maxZoom,p=this.options.zoomReverse,_=this.options.zoomOffset;return p&&(a=d-a),a+_},_getSubdomain:function(a){var d=Math.abs(a.x+a.y)%this.options.subdomains.length;return this.options.subdomains[d]},_abortLoading:function(){var a,d;for(a in this._tiles)if(this._tiles[a].coords.z!==this._tileZoom&&(d=this._tiles[a].el,d.onload=f,d.onerror=f,!d.complete)){d.src=P;var p=this._tiles[a].coords;xt(d),delete this._tiles[a],this.fire("tileabort",{tile:d,coords:p})}},_removeTile:function(a){var d=this._tiles[a];if(d)return d.el.setAttribute("src",P),fc.prototype._removeTile.call(this,a)},_tileReady:function(a,d,p){if(!(!this._map||p&&p.getAttribute("src")===P))return fc.prototype._tileReady.call(this,a,d,p)}});function x_(a,d){return new Oa(a,d)}var __=Oa.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(a,d){this._url=a;var p=r({},this.defaultWmsParams);for(var _ in d)_ in this.options||(p[_]=d[_]);d=y(this,d);var E=d.detectRetina&&ue.retina?2:1,A=this.getTileSize();p.width=A.x*E,p.height=A.y*E,this.wmsParams=p},onAdd:function(a){this._crs=this.options.crs||a.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var d=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[d]=this._crs.code,Oa.prototype.onAdd.call(this,a)},getTileUrl:function(a){var d=this._tileCoordsToNwSe(a),p=this._crs,_=X(p.project(d[0]),p.project(d[1])),E=_.min,A=_.max,D=(this._wmsVersion>=1.3&&this._crs===f_?[E.y,E.x,A.y,A.x]:[E.x,E.y,A.x,A.y]).join(","),U=Oa.prototype.getTileUrl.call(this,a);return U+w(this.wmsParams,U,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+D},setParams:function(a,d){return r(this.wmsParams,a),d||this.redraw(),this}});function hL(a,d){return new __(a,d)}Oa.WMS=__,x_.wms=hL;var $r=Vi.extend({options:{padding:.1},initialize:function(a){y(this,a),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Te(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var a={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(a.zoomanim=this._onAnimZoom),a},_onAnimZoom:function(a){this._updateTransform(a.center,a.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(a,d){var p=this._map.getZoomScale(d,this._zoom),_=this._map.getSize().multiplyBy(.5+this.options.padding),E=this._map.project(this._center,d),A=_.multiplyBy(-p).add(E).subtract(this._map._getNewPixelOrigin(a,d));ue.any3d?bs(this._container,A,p):Ht(this._container,A)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var a in this._layers)this._layers[a]._reset()},_onZoomEnd:function(){for(var a in this._layers)this._layers[a]._project()},_updatePaths:function(){for(var a in this._layers)this._layers[a]._update()},_update:function(){var a=this.options.padding,d=this._map.getSize(),p=this._map.containerPointToLayerPoint(d.multiplyBy(-a)).round();this._bounds=new J(p,p.add(d.multiplyBy(1+a*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),w_=$r.extend({options:{tolerance:0},getEvents:function(){var a=$r.prototype.getEvents.call(this);return a.viewprereset=this._onViewPreReset,a},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){$r.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var a=this._container=document.createElement("canvas");ke(a,"mousemove",this._onMouseMove,this),ke(a,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ke(a,"mouseout",this._handleMouseOut,this),a._leaflet_disable_events=!0,this._ctx=a.getContext("2d")},_destroyContainer:function(){j(this._redrawRequest),delete this._ctx,xt(this._container),nt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var a;this._redrawBounds=null;for(var d in this._layers)a=this._layers[d],a._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){$r.prototype._update.call(this);var a=this._bounds,d=this._container,p=a.getSize(),_=ue.retina?2:1;Ht(d,a.min),d.width=_*p.x,d.height=_*p.y,d.style.width=p.x+"px",d.style.height=p.y+"px",ue.retina&&this._ctx.scale(2,2),this._ctx.translate(-a.min.x,-a.min.y),this.fire("update")}},_reset:function(){$r.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(a){this._updateDashArray(a),this._layers[c(a)]=a;var d=a._order={layer:a,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=d),this._drawLast=d,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(a){this._requestRedraw(a)},_removePath:function(a){var d=a._order,p=d.next,_=d.prev;p?p.prev=_:this._drawLast=_,_?_.next=p:this._drawFirst=p,delete a._order,delete this._layers[c(a)],this._requestRedraw(a)},_updatePath:function(a){this._extendRedrawBounds(a),a._project(),a._update(),this._requestRedraw(a)},_updateStyle:function(a){this._updateDashArray(a),this._requestRedraw(a)},_updateDashArray:function(a){if(typeof a.options.dashArray=="string"){var d=a.options.dashArray.split(/[, ]+/),p=[],_,E;for(E=0;E')}}catch{}return function(a){return document.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),fL={_initContainer:function(){this._container=He("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||($r.prototype._update.call(this),this.fire("update"))},_initPath:function(a){var d=a._container=pc("shape");Te(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",a._path=pc("path"),d.appendChild(a._path),this._updateStyle(a),this._layers[c(a)]=a},_addPath:function(a){var d=a._container;this._container.appendChild(d),a.options.interactive&&a.addInteractiveTarget(d)},_removePath:function(a){var d=a._container;xt(d),a.removeInteractiveTarget(d),delete this._layers[c(a)]},_updateStyle:function(a){var d=a._stroke,p=a._fill,_=a.options,E=a._container;E.stroked=!!_.stroke,E.filled=!!_.fill,_.stroke?(d||(d=a._stroke=pc("stroke")),E.appendChild(d),d.weight=_.weight+"px",d.color=_.color,d.opacity=_.opacity,_.dashArray?d.dashStyle=k(_.dashArray)?_.dashArray.join(" "):_.dashArray.replace(/( *, *)/g," "):d.dashStyle="",d.endcap=_.lineCap.replace("butt","flat"),d.joinstyle=_.lineJoin):d&&(E.removeChild(d),a._stroke=null),_.fill?(p||(p=a._fill=pc("fill")),E.appendChild(p),p.color=_.fillColor||_.color,p.opacity=_.fillOpacity):p&&(E.removeChild(p),a._fill=null)},_updateCircle:function(a){var d=a._point.round(),p=Math.round(a._radius),_=Math.round(a._radiusY||p);this._setPath(a,a._empty()?"M0 0":"AL "+d.x+","+d.y+" "+p+","+_+" 0,"+65535*360)},_setPath:function(a,d){a._path.v=d},_bringToFront:function(a){Sa(a._container)},_bringToBack:function(a){Ca(a._container)}},Ud=ue.vml?pc:$n,mc=$r.extend({_initContainer:function(){this._container=Ud("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ud("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){xt(this._container),nt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){$r.prototype._update.call(this);var a=this._bounds,d=a.getSize(),p=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,p.setAttribute("width",d.x),p.setAttribute("height",d.y)),Ht(p,a.min),p.setAttribute("viewBox",[a.min.x,a.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(a){var d=a._path=Ud("path");a.options.className&&Te(d,a.options.className),a.options.interactive&&Te(d,"leaflet-interactive"),this._updateStyle(a),this._layers[c(a)]=a},_addPath:function(a){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(a._path),a.addInteractiveTarget(a._path)},_removePath:function(a){xt(a._path),a.removeInteractiveTarget(a._path),delete this._layers[c(a)]},_updatePath:function(a){a._project(),a._update()},_updateStyle:function(a){var d=a._path,p=a.options;d&&(p.stroke?(d.setAttribute("stroke",p.color),d.setAttribute("stroke-opacity",p.opacity),d.setAttribute("stroke-width",p.weight),d.setAttribute("stroke-linecap",p.lineCap),d.setAttribute("stroke-linejoin",p.lineJoin),p.dashArray?d.setAttribute("stroke-dasharray",p.dashArray):d.removeAttribute("stroke-dasharray"),p.dashOffset?d.setAttribute("stroke-dashoffset",p.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),p.fill?(d.setAttribute("fill",p.fillColor||p.color),d.setAttribute("fill-opacity",p.fillOpacity),d.setAttribute("fill-rule",p.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(a,d){this._setPath(a,hn(a._parts,d))},_updateCircle:function(a){var d=a._point,p=Math.max(Math.round(a._radius),1),_=Math.max(Math.round(a._radiusY),1)||p,E="a"+p+","+_+" 0 1,0 ",A=a._empty()?"M0 0":"M"+(d.x-p)+","+d.y+E+p*2+",0 "+E+-p*2+",0 ";this._setPath(a,A)},_setPath:function(a,d){a._path.setAttribute("d",d)},_bringToFront:function(a){Sa(a._path)},_bringToBack:function(a){Ca(a._path)}});ue.vml&&mc.include(fL);function C_(a){return ue.svg||ue.vml?new mc(a):null}ze.include({getRenderer:function(a){var d=a.options.renderer||this._getPaneRenderer(a.options.pane)||this.options.renderer||this._renderer;return d||(d=this._renderer=this._createRenderer()),this.hasLayer(d)||this.addLayer(d),d},_getPaneRenderer:function(a){if(a==="overlayPane"||a===void 0)return!1;var d=this._paneRenderers[a];return d===void 0&&(d=this._createRenderer({pane:a}),this._paneRenderers[a]=d),d},_createRenderer:function(a){return this.options.preferCanvas&&S_(a)||C_(a)}});var k_=Ta.extend({initialize:function(a,d){Ta.prototype.initialize.call(this,this._boundsToLatLngs(a),d)},setBounds:function(a){return this.setLatLngs(this._boundsToLatLngs(a))},_boundsToLatLngs:function(a){return a=ne(a),[a.getSouthWest(),a.getNorthWest(),a.getNorthEast(),a.getSouthEast()]}});function pL(a,d){return new k_(a,d)}mc.create=Ud,mc.pointsToPath=hn,zr.geometryToLayer=zd,zr.coordsToLatLng=Pg,zr.coordsToLatLngs=$d,zr.latLngToCoords=Og,zr.latLngsToCoords=Bd,zr.getFeature=Pa,zr.asFeature=Fd,ze.mergeOptions({boxZoom:!0});var E_=cr.extend({initialize:function(a){this._map=a,this._container=a._container,this._pane=a._panes.overlayPane,this._resetStateTimeout=0,a.on("unload",this._destroy,this)},addHooks:function(){ke(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){nt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){xt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(a){if(!a.shiftKey||a.which!==1&&a.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),sc(),dg(),this._startPoint=this._map.mouseEventToContainerPoint(a),ke(document,{contextmenu:ws,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(a){this._moved||(this._moved=!0,this._box=He("div","leaflet-zoom-box",this._container),Te(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(a);var d=new J(this._point,this._startPoint),p=d.getSize();Ht(this._box,d.min),this._box.style.width=p.x+"px",this._box.style.height=p.y+"px"},_finish:function(){this._moved&&(xt(this._box),At(this._container,"leaflet-crosshair")),ac(),hg(),nt(document,{contextmenu:ws,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(a){if(!(a.which!==1&&a.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var d=new re(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(d).fire("boxzoomend",{boxZoomBounds:d})}},_onKeyDown:function(a){a.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ze.addInitHook("addHandler","boxZoom",E_),ze.mergeOptions({doubleClickZoom:!0});var T_=cr.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(a){var d=this._map,p=d.getZoom(),_=d.options.zoomDelta,E=a.originalEvent.shiftKey?p-_:p+_;d.options.doubleClickZoom==="center"?d.setZoom(E):d.setZoomAround(a.containerPoint,E)}});ze.addInitHook("addHandler","doubleClickZoom",T_),ze.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var P_=cr.extend({addHooks:function(){if(!this._draggable){var a=this._map;this._draggable=new Co(a._mapPane,a._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),a.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),a.on("zoomend",this._onZoomEnd,this),a.whenReady(this._onZoomEnd,this))}Te(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){At(this._map._container,"leaflet-grab"),At(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var a=this._map;if(a._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=ne(this._map.options.maxBounds);this._offsetLimit=X(this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(d.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;a.fire("movestart").fire("dragstart"),a.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(a){if(this._map.options.inertia){var d=this._lastTime=+new Date,p=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(p),this._times.push(d),this._prunePositions(d)}this._map.fire("move",a).fire("drag",a)},_prunePositions:function(a){for(;this._positions.length>1&&a-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var a=this._map.getSize().divideBy(2),d=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=d.subtract(a).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(a,d){return a-(a-d)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var a=this._draggable._newPos.subtract(this._draggable._startPos),d=this._offsetLimit;a.xd.max.x&&(a.x=this._viscousLimit(a.x,d.max.x)),a.y>d.max.y&&(a.y=this._viscousLimit(a.y,d.max.y)),this._draggable._newPos=this._draggable._startPos.add(a)}},_onPreDragWrap:function(){var a=this._worldWidth,d=Math.round(a/2),p=this._initialWorldOffset,_=this._draggable._newPos.x,E=(_-d+p)%a+d-p,A=(_+d+p)%a-d-p,D=Math.abs(E+p)0?A:-A))-d;this._delta=0,this._startTime=null,D&&(a.options.scrollWheelZoom==="center"?a.setZoom(d+D):a.setZoomAround(this._lastMousePos,d+D))}});ze.addInitHook("addHandler","scrollWheelZoom",M_);var mL=600;ze.mergeOptions({tapHold:ue.touchNative&&ue.safari&&ue.mobile,tapTolerance:15});var L_=cr.extend({addHooks:function(){ke(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){nt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(a){if(clearTimeout(this._holdTimeout),a.touches.length===1){var d=a.touches[0];this._startPos=this._newPos=new z(d.clientX,d.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(ke(document,"touchend",pn),ke(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),mL),ke(document,"touchend touchcancel contextmenu",this._cancel,this),ke(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function a(){nt(document,"touchend",pn),nt(document,"touchend touchcancel",a)},_cancel:function(){clearTimeout(this._holdTimeout),nt(document,"touchend touchcancel contextmenu",this._cancel,this),nt(document,"touchmove",this._onMove,this)},_onMove:function(a){var d=a.touches[0];this._newPos=new z(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(a,d){var p=new MouseEvent(a,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});p._simulated=!0,d.target.dispatchEvent(p)}});ze.addInitHook("addHandler","tapHold",L_),ze.mergeOptions({touchZoom:ue.touch,bounceAtZoomLimits:!0});var A_=cr.extend({addHooks:function(){Te(this._map._container,"leaflet-touch-zoom"),ke(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){At(this._map._container,"leaflet-touch-zoom"),nt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(a){var d=this._map;if(!(!a.touches||a.touches.length!==2||d._animatingZoom||this._zooming)){var p=d.mouseEventToContainerPoint(a.touches[0]),_=d.mouseEventToContainerPoint(a.touches[1]);this._centerPoint=d.getSize()._divideBy(2),this._startLatLng=d.containerPointToLatLng(this._centerPoint),d.options.touchZoom!=="center"&&(this._pinchStartLatLng=d.containerPointToLatLng(p.add(_)._divideBy(2))),this._startDist=p.distanceTo(_),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),ke(document,"touchmove",this._onTouchMove,this),ke(document,"touchend touchcancel",this._onTouchEnd,this),pn(a)}},_onTouchMove:function(a){if(!(!a.touches||a.touches.length!==2||!this._zooming)){var d=this._map,p=d.mouseEventToContainerPoint(a.touches[0]),_=d.mouseEventToContainerPoint(a.touches[1]),E=p.distanceTo(_)/this._startDist;if(this._zoom=d.getScaleZoom(E,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoomd.getMaxZoom()&&E>1)&&(this._zoom=d._limitZoom(this._zoom)),d.options.touchZoom==="center"){if(this._center=this._startLatLng,E===1)return}else{var A=p._add(_)._divideBy(2)._subtract(this._centerPoint);if(E===1&&A.x===0&&A.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract(A),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),j(this._animRequest);var D=s(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=$(D,this,!0),pn(a)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,j(this._animRequest),nt(document,"touchmove",this._onTouchMove,this),nt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});ze.addInitHook("addHandler","touchZoom",A_),ze.BoxZoom=E_,ze.DoubleClickZoom=T_,ze.Drag=P_,ze.Keyboard=O_,ze.ScrollWheelZoom=M_,ze.TapHold=L_,ze.TouchZoom=A_,n.Bounds=J,n.Browser=ue,n.CRS=ae,n.Canvas=w_,n.Circle=Tg,n.CircleMarker=jd,n.Class=W,n.Control=Hi,n.DivIcon=b_,n.DivOverlay=ur,n.DomEvent=R3,n.DomUtil=L3,n.Draggable=Co,n.Evented=G,n.FeatureGroup=Dr,n.GeoJSON=zr,n.GridLayer=fc,n.Handler=cr,n.Icon=Ea,n.ImageOverlay=Hd,n.LatLng=oe,n.LatLngBounds=re,n.Layer=Vi,n.LayerGroup=ka,n.LineUtil=Z3,n.Map=ze,n.Marker=Dd,n.Mixin=B3,n.Path=ko,n.Point=z,n.PolyUtil=F3,n.Polygon=Ta,n.Polyline=jr,n.Popup=Vd,n.PosAnimation=t_,n.Projection=G3,n.Rectangle=k_,n.Renderer=$r,n.SVG=mc,n.SVGOverlay=y_,n.TileLayer=Oa,n.Tooltip=Wd,n.Transformation=we,n.Util=B,n.VideoOverlay=v_,n.bind=s,n.bounds=X,n.canvas=S_,n.circle=tL,n.circleMarker=eL,n.control=uc,n.divIcon=uL,n.extend=r,n.featureGroup=X3,n.geoJSON=g_,n.geoJson=rL,n.gridLayer=dL,n.icon=Q3,n.imageOverlay=oL,n.latLng=K,n.latLngBounds=ne,n.layerGroup=q3,n.map=I3,n.marker=J3,n.point=H,n.polygon=iL,n.polyline=nL,n.popup=lL,n.rectangle=pL,n.setOptions=y,n.stamp=c,n.svg=C_,n.svgOverlay=aL,n.tileLayer=x_,n.tooltip=cL,n.transformation=Le,n.version=i,n.videoOverlay=sL;var gL=window.L;n.noConflict=function(){return window.L=gL,this},window.L=n})})(pb,pb.exports);var Z1=pb.exports;const FJ=ad(Z1);function HJ(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function G1(e,t){return t==null?function(i,r){const o=C.useRef();return o.current||(o.current=e(i,r)),o}:function(i,r){const o=C.useRef();o.current||(o.current=e(i,r));const s=C.useRef(i),{instance:l}=o.current;return C.useEffect(function(){s.current!==i&&(t(l,i,s.current),s.current=i)},[l,i,r]),o}}function VJ(e,t){C.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var o;(o=t.layerContainer)==null||o.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function w3(e){return function(n){const i=W1(),r=e(U1(n,i),i);return y3(i.map,n.attribution),_3(r.current,n.eventHandlers),VJ(r.current,i),r}}function fee(e,t){const n=G1(e,t),i=w3(n);return jJ(i)}function pee(e,t){const n=G1(e),i=BJ(n,t);return zJ(i)}function WJ(e,t){const n=G1(e,t),i=w3(n);return $J(i)}function UJ(e,t,n){const{opacity:i,zIndex:r}=t;i!=null&&i!==n.opacity&&e.setOpacity(i),r!=null&&r!==n.zIndex&&e.setZIndex(r)}function ZJ(){return W1().map}function mb(){return mb=Object.assign||function(e){for(var t=1;t(b==null?void 0:b.map)??null,[b]);const y=C.useCallback(x=>{if(x!==null&&b===null){const S=new Z1.Map(x,h);n!=null&&u!=null?S.setView(n,u):e!=null&&S.fitBounds(e,t),c!=null&&S.whenReady(c),v(DJ(S))}},[]);C.useEffect(()=>()=>{b==null||b.map.remove()},[b]);const w=b?ee.createElement(x3,{value:b},i):s??null;return ee.createElement("div",mb({},m,{ref:y}),w)}const YJ=C.forwardRef(GJ),KJ=WJ(function({url:t,...n},i){const r=new Z1.TileLayer(t,U1(n,i));return HJ(r,i)},function(t,n,i){UJ(t,n,i);const{url:r}=n;r!=null&&r!==i.url&&t.setUrl(r)});(function(){function e(t){return this instanceof e?(this._canvas=t=typeof t=="string"?document.getElementById(t):t,this._ctx=t.getContext("2d"),this._width=t.width,this._height=t.height,this._max=1,void this.clear()):new e(t)}e.prototype={defaultRadius:25,defaultGradient:{.4:"blue",.6:"cyan",.7:"lime",.8:"yellow",1:"red"},data:function(t,n){return this._data=t,this},max:function(t){return this._max=t,this},add:function(t){return this._data.push(t),this},clear:function(){return this._data=[],this},radius:function(t,n){n=n||15;var i=this._circle=document.createElement("canvas"),r=i.getContext("2d"),o=this._r=t+n;return i.width=i.height=2*o,r.shadowOffsetX=r.shadowOffsetY=200,r.shadowBlur=n,r.shadowColor="black",r.beginPath(),r.arc(o-200,o-200,t,0,2*Math.PI,!0),r.closePath(),r.fill(),this},gradient:function(t){var n=document.createElement("canvas"),i=n.getContext("2d"),r=i.createLinearGradient(0,0,0,256);n.width=1,n.height=256;for(var o in t)r.addColorStop(o,t[o]);return i.fillStyle=r,i.fillRect(0,0,1,256),this._grad=i.getImageData(0,0,1,256).data,this},draw:function(t){this._circle||this.radius(this.defaultRadius),this._grad||this.gradient(this.defaultGradient);var n=this._ctx;n.clearRect(0,0,this._width,this._height);for(var i,r=0,o=this._data.length;o>r;r++)i=this._data[r],n.globalAlpha=Math.max(i[2]/this._max,t||.05),n.drawImage(this._circle,i[0]-this._r,i[1]-this._r);var s=n.getImageData(0,0,this._width,this._height);return this._colorize(s.data,this._grad),n.putImageData(s,0,0),this},_colorize:function(t,n){for(var i,r=3,o=t.length;o>r;r+=4)i=4*t[r],i&&(t[r-3]=n[i],t[r-2]=n[i+1],t[r-1]=n[i+2])}},window.simpleheat=e})(),L.HeatLayer=(L.Layer?L.Layer:L.Class).extend({initialize:function(e,t){this._latlngs=e,L.setOptions(this,t)},setLatLngs:function(e){return this._latlngs=e,this.redraw()},addLatLng:function(e){return this._latlngs.push(e),this.redraw()},setOptions:function(e){return L.setOptions(this,e),this._heat&&this._updateOptions(),this.redraw()},redraw:function(){return!this._heat||this._frame||this._map._animating||(this._frame=L.Util.requestAnimFrame(this._redraw,this)),this},onAdd:function(e){this._map=e,this._canvas||this._initCanvas(),e._panes.overlayPane.appendChild(this._canvas),e.on("moveend",this._reset,this),e.options.zoomAnimation&&L.Browser.any3d&&e.on("zoomanim",this._animateZoom,this),this._reset()},onRemove:function(e){e.getPanes().overlayPane.removeChild(this._canvas),e.off("moveend",this._reset,this),e.options.zoomAnimation&&e.off("zoomanim",this._animateZoom,this)},addTo:function(e){return e.addLayer(this),this},_initCanvas:function(){var e=this._canvas=L.DomUtil.create("canvas","leaflet-heatmap-layer leaflet-layer"),t=L.DomUtil.testProp(["transformOrigin","WebkitTransformOrigin","msTransformOrigin"]);e.style[t]="50% 50%";var n=this._map.getSize();e.width=n.x,e.height=n.y;var i=this._map.options.zoomAnimation&&L.Browser.any3d;L.DomUtil.addClass(e,"leaflet-zoom-"+(i?"animated":"hide")),this._heat=simpleheat(e),this._updateOptions()},_updateOptions:function(){this._heat.radius(this.options.radius||this._heat.defaultRadius,this.options.blur),this.options.gradient&&this._heat.gradient(this.options.gradient),this.options.max&&this._heat.max(this.options.max)},_reset:function(){var e=this._map.containerPointToLayerPoint([0,0]);L.DomUtil.setPosition(this._canvas,e);var t=this._map.getSize();this._heat._width!==t.x&&(this._canvas.width=this._heat._width=t.x),this._heat._height!==t.y&&(this._canvas.height=this._heat._height=t.y),this._redraw()},_redraw:function(){var e,t,n,i,r,o,s,l,c,u=[],h=this._heat._r,f=this._map.getSize(),m=new L.Bounds(L.point([-h,-h]),f.add([h,h])),b=this.options.max===void 0?1:this.options.max,v=this.options.maxZoom===void 0?this._map.getMaxZoom():this.options.maxZoom,y=1/Math.pow(2,Math.max(0,Math.min(v-this._map.getZoom(),12))),w=h/2,x=[],S=this._map._getMapPanePos(),k=S.x%w,T=S.y%w;for(e=0,t=this._latlngs.length;t>e;e++)if(n=this._map.latLngToContainerPoint(this._latlngs[e]),m.contains(n)){r=Math.floor((n.x-k)/w)+2,o=Math.floor((n.y-T)/w)+2;var P=this._latlngs[e].alt!==void 0?this._latlngs[e].alt:this._latlngs[e][2]!==void 0?+this._latlngs[e][2]:1;c=P*y,x[o]=x[o]||[],i=x[o][r],i?(i[0]=(i[0]*i[2]+n.x*c)/(i[2]+c),i[1]=(i[1]*i[2]+n.y*c)/(i[2]+c),i[2]+=c):x[o][r]=[n.x,n.y,c]}for(e=0,t=x.length;t>e;e++)if(x[e])for(s=0,l=x[e].length;l>s;s++)i=x[e][s],i&&u.push([Math.round(i[0]),Math.round(i[1]),Math.min(i[2],b)]);this._heat.data(u).draw(this.options.minOpacity),this._frame=null},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._getCenterOffset(e.center)._multiplyBy(-t).subtract(this._map._getMapPanePos());L.DomUtil.setTransform?L.DomUtil.setTransform(this._canvas,n,t):this._canvas.style[L.DomUtil.TRANSFORM]=L.DomUtil.getTranslateString(n)+" scale("+t+")"}}),L.heatLayer=function(e,t){return new L.HeatLayer(e,t)};const qJ=({onClick:e,reports:t})=>{const[n,i]=C.useState(null),{NgoData:r,loading:o,error:s}=C.useContext(Ed),[l,c]=C.useState([]);return C.useEffect(()=>{!o&&!s&&r&&i(r)},[r,o,s]),C.useEffect(()=>{n&&c(t.filter(u=>u.assigned_to===n.email).filter(u=>u.status==="In Progress"||u.status==="Received"))},[n,t]),g.jsx(g.Fragment,{children:g.jsx(ct,{to:"/dashboard",children:g.jsxs("div",{className:"flex w-screen justify-end relative",children:[g.jsx(QV,{style:{margin:"20px"},fontSize:"30px",color:"rgb(255,255,255)"}),g.jsx("div",{className:"px-2 py-[3px]",style:{position:"absolute",top:"5px",right:"10px",backgroundColor:"red",fontSize:"14px",borderRadius:"50%",color:"white"},children:l.length})]})})})};function XJ(){const[e,t]=C.useState([]),[n,i]=C.useState(!0),[r,o]=C.useState(null);C.useEffect(()=>{(async()=>{try{const h=(await Me.get("https://paws-backend.azurewebsites.net/api/animals")).data;t(h),i(!1)}catch(c){console.error("Error fetching reports:",c)}})()},[]),C.useEffect(()=>{if(e){const l=RJ(e);o(l)}},[e]);const s=()=>{console.log("Notification clicked!")};return g.jsxs(g.Fragment,{children:[g.jsx(Ri,{}),g.jsx(qJ,{onClick:s,reports:e}),g.jsxs("div",{className:"p-8 pt-0",children:[g.jsx("div",{className:"flex flex-col justify-center items-center ",children:g.jsx("h1",{className:"text-[3rem] text-white tracking-[8px] font-bayon md:text-[4rem]",children:"STATISTICS"})}),g.jsxs("div",{className:"px-[2.4rem] pt-2 mb-8 border-blue-200 mt-8 backdrop-blur-sm rounded-[2rem] md:mx-[5rem] ",children:[g.jsx("h1",{className:"ml-2 mt-2 mb-3 text-white font-Calistoga tracking-wide text-[1.6rem]",children:"Number of reports"}),g.jsx("div",{className:"pb-4 backdrop-blur-sm bg-white/30 cursor-pointer min-h-48 mb-9 rounded-2xl shadow-lg mx-auto",children:n&&!e?g.jsx("h1",{children:"Loading..."}):g.jsx(AJ,{data:e})}),g.jsx("h1",{className:"ml-2 mt-6 mb-3 text-white font-Calistoga tracking-wide text-[1.6rem]",children:"Heatmap of Reported Animals"}),g.jsxs(YJ,{center:[22.5722,88.3639],zoom:13,style:{height:"300px",width:"100%"},className:"backdrop-blur-sm bg-white/30 rounded-2xl shadow-lg mx-auto flex text-center justify-center mb-9 items-center",children:[g.jsx(KJ,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:"Paws"}),e&&!n&&g.jsx(QJ,{data:e,radius:70,blur:15,gradient:{.1:"blue",.3:"cyan",.6:"lime",.7:"yellow",.8:"orange",1:"red"}})]}),g.jsx("h1",{className:"ml-2 mt-6 mb-2 text-white font-Calistoga tracking-wide text-[1.6rem]",children:"Reported Animal Types"}),g.jsx("div",{className:"cursor-pointer backdrop-blur-sm bg-white/30 rounded-2xl shadow-lg mx-auto flex text-center justify-center mb-9 items-center",children:n&&!e?g.jsx("h1",{children:"Loading..."}):g.jsx(IJ,{data:e})}),g.jsxs("div",{className:"cursor-pointer backdrop-blur-sm bg-white/30 rounded-lg min-h-5 shadow-lg ",children:[g.jsx("h1",{className:"ml-2 mt-6 mb-2 text-white font-Calistoga tracking-wide text-[1.6rem]",children:"Average Response Time : "}),g.jsx("h1",{className:"ml-2",children:r?r.split(" ").map((l,c)=>isNaN(l)?g.jsxs("span",{children:[l," "]},c):g.jsxs("span",{style:{color:"#40025D",fontWeight:"bold",marginRight:"2px",fontSize:"18px"},children:[l," "]},c)):"Loading..."})]}),g.jsx("div",{className:"min-h-[100px]"})]})]})]})}function QJ({data:e}){const t=ZJ();return C.useEffect(()=>{const n=e.map(r=>[r.latitude,r.longitude,1]),i={radius:25,blur:15,max:1};FJ.heatLayer(n,i).addTo(t)},[e,t]),null}function og(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(u){try{c(i.next(u))}catch(h){o(h)}}function l(u){try{c(i.throw(u))}catch(h){o(h)}}function c(u){var h;u.done?r(u.value):(h=u.value,h instanceof n?h:new n(function(f){f(h)})).then(s,l)}c((i=i.apply(e,[])).next())})}function os(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(c){return function(u){return function(h){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&h[0]?i.return:h[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,h[1])).done)return r;switch(i=0,r&&(h=[2&h[0],r.value]),h[0]){case 0:case 1:r=h;break;case 4:return s.label++,{value:h[1],done:!1};case 5:s.label++,i=h[1],h=[0];continue;case 7:h=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!((r=r.length>0&&r[r.length-1])||h[0]!==6&&h[0]!==2)){s=0;continue}if(h[0]===3&&(!r||h[1]>r[0]&&h[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ji(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{for(;(t===void 0||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(l){r={error:l}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}function br(e,t,n){if(arguments.length===2)for(var i,r=0,o=t.length;ru.length||h===""){s=l;break}o=t.slice(s,t.length)}S.label=1;case 1:S.trys.push([1,6,7,8]),f=gb(function(k){var T,P,O,M,R,N,I;return os(this,function($){switch($.label){case 0:T=function(j){return os(this,function(B){switch(B.label){case 0:return[4,{op:function(W){return requestAnimationFrame(function(){return W.textContent=j})},opCode:function(W){var Z=W.textContent||"";return j===""||Z.length>j.length?"DELETE":"WRITING"}}];case 1:return B.sent(),[2]}})},$.label=1;case 1:$.trys.push([1,6,7,8]),P=gb(k),O=P.next(),$.label=2;case 2:return O.done?[3,5]:(M=O.value,[5,T(M)]);case 3:$.sent(),$.label=4;case 4:return O=P.next(),[3,2];case 5:return[3,8];case 6:return R=$.sent(),N={error:R},[3,8];case 7:try{O&&!O.done&&(I=P.return)&&I.call(P)}finally{if(N)throw N.error}return[7];case 8:return[2]}})}(o)),m=f.next(),S.label=2;case 2:return m.done?[3,5]:(b=m.value,v=b.opCode(e)==="WRITING"?n+n*(Math.random()-.5):i+i*(Math.random()-.5),b.op(e),[4,S3(v)]);case 3:S.sent(),S.label=4;case 4:return m=f.next(),[3,2];case 5:return[3,8];case 6:return y=S.sent(),w={error:y},[3,8];case 7:try{m&&!m.done&&(x=f.return)&&x.call(f)}finally{if(w)throw w.error}return[7];case 8:return[2]}})})}function tee(e,t,n){var i,r;return n===void 0&&(n=0),os(this,function(o){switch(o.label){case 0:i=t(e),r=i.length,o.label=1;case 1:return nn?[4,i.slice(0,--r).join("")]:[3,3];case 2:return o.sent(),[3,1];case 3:return[2]}})}var iee="index-module_type__E-SaG";(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(typeof document<"u"){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",n==="top"&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}})(`.index-module_type__E-SaG::after { + content: '|'; + animation: index-module_cursor__PQg0P 1.1s infinite step-start; +} + +@keyframes index-module_cursor__PQg0P { + 50% { + opacity: 0; + } +} +`);var C3=C.memo(C.forwardRef(function(e,t){var n=e.sequence,i=e.repeat,r=e.className,o=e.speed,s=o===void 0?40:o,l=e.deletionSpeed,c=e.omitDeletionAnimation,u=c!==void 0&&c,h=e.preRenderFirstString,f=h!==void 0&&h,m=e.wrapper,b=m===void 0?"span":m,v=e.splitter,y=v===void 0?function(H){return br([],Ji(H),!1)}:v,w=e.cursor,x=w===void 0||w,S=e.style,k=function(H,J){var X={};for(var re in H)Object.prototype.hasOwnProperty.call(H,re)&&J.indexOf(re)<0&&(X[re]=H[re]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function"){var ne=0;for(re=Object.getOwnPropertySymbols(H);neg.jsx("div",{className:"flex flex-col justify-center items-center h-screen bg-custom-gradient",children:g.jsxs("h1",{className:"text-3xl font-bold no-underline",children:[g.jsxs("div",{children:["Campaign created ",g.jsx("br",{})," ",g.jsx(C3,{sequence:["Successfully.",1e3],wrapper:"span",speed:.1})]}),g.jsx("div",{className:"pt-4",children:g.jsx(vn,{text:g.jsx(ct,{to:"/dashboard",children:" Back to dashboard"}),clas:"px-7 py-3 font-semibold tracking-wider"})})]})}),oee=()=>{const[e,t]=C.useState("us"),[n,i]=C.useState(!0),[r,o]=C.useState([]),[s,l]=C.useState(0),c=u=>{t(u),i(!0),l(h=>h+1)};return C.useEffect(()=>{(async()=>{try{const f=await fetch("https://paws-backend.azurewebsites.net/ngo");if(f.ok){const m=await f.json();o(m)}else console.error("Failed to fetch NGO names")}catch(h){console.error("Error fetching NGO names:",h)}})()},[]),g.jsxs("div",{children:[g.jsx(Ri,{}),g.jsxs("div",{className:"flex flex-col h-[90vh] font-breeSerif items-center justify-center gap-[30px] p-3",children:[g.jsxs("div",{className:" relative",children:[g.jsx("img",{className:D4.image,src:"./images/Donation.png",alt:""}),g.jsxs("h2",{className:"bg-white font-breeSerif rounded-3xl bg-opacity-57 backdrop-blur-[5px] shadow-dashBoardCardImageShadow px-4 text-center pb-3 pt-3 flex justify-center items-center flex-col",children:[" ",g.jsx("span",{className:"text-[#40025D] font-bold animate-fade-in-donation text-[1.6rem] drop-shadow-xl ",children:"HELP US BRIGHTEN THEIR LIVES!"})]})]}),g.jsxs("div",{className:"w-full",children:[g.jsxs("div",{className:"w-full flex justify-center gap-2 py-3",children:[g.jsx("button",{type:"button",className:"text-white focus:outline-none rounded-[30px] shadow-buttonShadow bg-gradient-to-b from-teal-400 to-teal-500 py-3 px-4 text-[1.5rem] sm:text-[1.5rem] hover:transform hover:duration-100 hover:scale-[1.01]",onClick:()=>c("us"),children:"Donate to US"}),g.jsx("button",{type:"button",className:"text-white focus:outline-none rounded-[30px] shadow-buttonShadow bg-gradient-to-b from-pink-400 to-pink-500 py-3 px-4 text-[1.5rem] sm:text-[1.5rem] hover:transform hover:duration-100 hover:scale-[1.01] ",onClick:()=>c("ngo"),children:"Donate to NGO"})]}),n&&g.jsx(g.Fragment,{children:g.jsx("div",{className:"bg-white bg-opacity-57 w-[100%] flex flex-col shadow-dashBoardCardImageShadow backdrop-blur-[5px] rounded-[40px]",children:g.jsxs("div",{className:"flex flex-col justify-between items-center gap-4",children:[g.jsxs("div",{children:[g.jsxs("div",{className:"text-[1.3rem] p-4 flex flex-col gap-[10px] drop-shadow-xl",children:[g.jsx(C3,{sequence:[`${e==="us"?"Donate to Us...":"Donate to an NGO..."}`,1e3],wrapper:"span",speed:1,style:{fontSize:"28px",display:"inline-block",fontWeight:"bold"}},s),e==="us"&&"To help us save our little friends!",e!=="us"&&"Choose an NGO and donate to make a difference!"]}),g.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e==="ngo"&&g.jsxs("select",{className:"rounded-[30px] p-2 text-[20px] bg-white bg-opacity-45 outline-0",children:[g.jsx("option",{children:"Choose an NGO"}),r.map((u,h)=>g.jsx("option",{value:u.name,children:u.name},h))]}),e==="us"&&g.jsxs("p",{className:"text-[22px]",children:[" Explore our ",g.jsx(ct,{className:"text-[20px] underline text-[#382f87] tracking-wider font-semibold font-baijam rounded-[30px] py-3 bg-opacity-47",to:"/team",children:"Crew!"})," "]})]})]}),g.jsx("div",{children:g.jsx("button",{type:"submit",className:"px-6 py-4 text-white bg-gradient-to-b from-green-600 to-green-700 rounded-[30px] drop-shadow-md shadow-buttonShadow text-[1.5rem] leading-[1.5rem] tracking-widest mb-4",children:g.jsx(ct,{to:"/donation",children:"Donate"})})})]})})})]})]})]})},see=()=>{const e=[{name:"Rishi Paul",position:"AI Engineer and Full Stack Developer",image:"https://media.licdn.com/dms/image/D5603AQFcc8_vrp3w-Q/profile-displayphoto-shrink_800_800/0/1714159671557?e=1725494400&v=beta&t=dLUd-g0ov1Qoqh8QjZsklxDMCh7974KEw8eOL_TSUc4",featureText:"Tests in Production, because who needs that silly staging environment anyway?",socialLinks:{linkedin:"https://www.linkedin.com/in/rishi-paul04/",github:"https://github.com/rishicds"}},{name:"Aditi Ghosh",position:"Frontend Developer & UI/UX Designer",image:"https://res.cloudinary.com/dff97ky68/image/upload/v1714333558/WhatsApp_Image_2024-04-29_at_12.31.12_AM_ohouce.jpg",featureText:"Code Fearlessly, Innovate Relentlessly.",socialLinks:{linkedin:"https://www.linkedin.com/in/aditighosh2005",github:"https://github.com/GhoshAditi"}},{name:"Arnab Mondal",position:"Frontend Developer",image:"https://media.licdn.com/dms/image/D5603AQF1SG1K-VPsTg/profile-displayphoto-shrink_200_200/0/1699975516118?e=2147483647&v=beta&t=4xv6oCwITHE6rqiGPoM0AfnsIzCAoRYLGRCuL-JgQDk",featureText:"it's not a bug; it's an undocumented feature",socialLinks:{linkedin:"https://in.linkedin.com/in/arnab-mondal-117616278",github:"https://github.com/codewarnab"}},{name:"Sutanuka Chakraborty",position:"UI/UX Designer",image:"https://media.licdn.com/dms/image/D4D03AQHYnR-kriTWSQ/profile-displayphoto-shrink_800_800/0/1713470417629?e=1725494400&v=beta&t=oS5J3FbLvcbwFlMs5gG9FNWH30FJFQl8ZRC0QwKJNMg",featureText:'Make sure to always "make it pop"!',socialLinks:{linkedin:"https://www.linkedin.com/in/sutanuka-chakraborty-148744275/"}},{name:"Anirban Majumdar",position:"Backend Developer",image:"https://media.licdn.com/dms/image/D5603AQG5LSd6uM5VsA/profile-displayphoto-shrink_800_800/0/1711645732216?e=1725494400&v=beta&t=fGL0LL4aRMISsmKEC6yfrYJLNHuqdI0hoIbQmDe0q_o",featureText:"It all starts with 0 or it's an error",socialLinks:{linkedin:"https://www.linkedin.com/in/anirbanmajumder0/",github:"https://github.com/anirbanmajumder0"}},{name:"Shreya Shaw",position:"Frontend Developer & UI/UX Designer",image:"https://media.licdn.com/dms/image/D5603AQFAH-ciYtM0ZA/profile-displayphoto-shrink_800_800/0/1711645818457?e=1725494400&v=beta&t=CBvFYRlhcl6TDZjtKypefLJZDe0iJdpcHlv-zQhvyeY",featureText:"Code, Create, Conquer - Engineering the Future..",socialLinks:{linkedin:"https://www.linkedin.com/in/shreya-shaw/",github:"https://github.com/shreyashaw05"}},{name:"Debayudh Basu",position:"Frontend and Payments Developer",image:"https://media.licdn.com/dms/image/D5603AQE3L9nP5ZM_vg/profile-displayphoto-shrink_800_800/0/1708620931019?e=1725494400&v=beta&t=OjUc594qjxY4_d_ZuvVaCxZm-uTFoQ51XPkBiVDse_M",featureText:"Who needs cocaine when you can sniff HTTP requests?",socialLinks:{linkedin:"https://www.linkedin.com/in/debayudh-basu-5280562b2/",github:"https://github.com/debayudh07"}},{name:"Chandrima Ghosh",position:"QA & Testing Engineer",image:"https://media.licdn.com/dms/image/D5603AQGQNKUH0VzDMQ/profile-displayphoto-shrink_800_800/0/1698230927367?e=1725494400&v=beta&t=Sl1t5i_GmkOsEhoKvEgwxLVmjAtp6FJFFBFF6-LSVm0",featureText:"Engineering the world differently.",socialLinks:{linkedin:"https://www.linkedin.com/in/chandrima-ghosh-476231295/",github:"https://github.com/chandrima25"}}];return g.jsx("div",{className:"bg-gradient-to-r from-blue-500 to-green-500 min-h-screen pb-4",children:g.jsxs("div",{className:"mx-auto mb-2 px-4 py-8 overflow-hidden",children:[g.jsx("h2",{className:"text-4xl font-semibold text-center mb-8 text-white",children:"Our Team"}),g.jsx("div",{className:"grid sm:grid-cols-1 md:grid-cols-1 grid-cols-3 gap-6 justify-center pb-4",children:e.map((t,n)=>g.jsxs("div",{className:"z-[30] bg-white rounded-3xl bg-opacity-57 backdrop-blur-[5px] shadow-lg ring-1 ring-gray-300",children:[g.jsx("img",{className:"w-40 mt-2 h-40 rounded-full border-4 border-emerald-500 mx-auto block object-cover",src:t.image,alt:t.name}),g.jsxs("div",{className:"px-6 py-4 text-center",children:[g.jsx("div",{className:"font-bold text-xl mb-2",children:t.name}),g.jsx("p",{className:"text-gray-700 text-base",children:t.position}),g.jsx("p",{className:"text-gray-700 text-base mt-2",children:t.featureText})]}),g.jsxs("div",{className:"px-6 py-4 text-center mb-2",children:[g.jsx("a",{href:t.socialLinks.linkedin,target:"_blank",rel:"noopener noreferrer",className:"text-base mt-3 text-white bg-gradient-to-b from-blue-300 to-emerald-500 focus:outline-none rounded-[30px] mr-3 px-3 py-4 bg-opacity-20 font-semibold",children:"LinkedIn"}),t.socialLinks.github&&g.jsx("a",{href:t.socialLinks.github,target:"_blank",rel:"noopener noreferrer",className:"text-base mt-3 text-white bg-gradient-to-b from-blue-300 to-emerald-500 focus:outline-none rounded-[30px] mr-3 px-3 py-4 bg-opacity-20 font-semibold",children:"GitHub"})]})]},n))})]})})};function aee(){return C.useEffect(()=>{Z5()},[]),g.jsx("div",{children:g.jsx(YI,{children:g.jsx(C6,{children:g.jsxs(CU,{children:[g.jsx(tW,{})," ",g.jsxs(FI,{children:[g.jsx(Rt,{path:"/",element:g.jsx(aF,{})})," ",g.jsx(Rt,{path:"/report-incident",element:g.jsx(YB,{})})," ",g.jsx(Rt,{path:"/view-reports",element:g.jsx(zV,{})})," ",g.jsx(Rt,{path:"/login",element:g.jsx(RS,{})})," ",g.jsx(Rt,{path:"/register",element:g.jsx(RS,{})})," ",g.jsx(Rt,{path:"/user",element:g.jsx(SU,{})})," ",g.jsx(Rt,{path:"/ngo",element:g.jsx(XS,{})})," ",g.jsx(Rt,{path:"/logout",element:g.jsx(kU,{})})," ",g.jsx(Rt,{path:"*",element:g.jsx(ErrorPage,{})})," ",g.jsx(Rt,{path:"/dashboard",element:g.jsx(TU,{})})," ",g.jsx(Rt,{path:"/donation",element:g.jsx(OU,{})})," ",g.jsx(Rt,{path:"/ngoregister",element:g.jsx(dY,{})})," ",g.jsx(Rt,{path:"/createcampaign",element:g.jsx(cK,{})})," ",g.jsx(Rt,{path:"/campaignList",element:g.jsx(uK,{})})," ",g.jsx(Rt,{path:"/campaignBlog/:campaignId",element:g.jsx(fK,{})}),g.jsx(Rt,{path:"/stats",element:g.jsx(XJ,{})}),g.jsx(Rt,{path:"/created",element:g.jsx(ree,{})}),g.jsx(Rt,{path:"/ngoProfile",element:g.jsx(XS,{})}),g.jsx(Rt,{path:"/donationfront",element:g.jsx(oee,{})}),g.jsx(Rt,{path:"/team",element:g.jsx(see,{})})]})]})})})})}const lee=l0.createRoot(document.getElementById("root"));lee.render(g.jsx(ee.StrictMode,{children:g.jsx(aee,{})}));"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(()=>{navigator.serviceWorker.register("%PUBLIC_URL%/service-worker.js").then(e=>{console.log("Service Worker registered with scope:",e.scope)}).catch(e=>{console.error("Service Worker registration failed:",e)})});export{FJ as L,YJ as M,fe as P,KJ as T,HJ as a,pee as b,fee as c,hee as e,g as j,Z1 as l,C as r}; diff --git a/dist/assets/index-IsnWFxM_.css b/dist/assets/index-IsnWFxM_.css new file mode 100644 index 00000000..4657f57d --- /dev/null +++ b/dist/assets/index-IsnWFxM_.css @@ -0,0 +1,9 @@ +@import"https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--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;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--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;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}@media (min-width: 1700px){.container{max-width:1700px}}@media (min-width: 2100px){.container{max-width:2100px}}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-2{bottom:.5rem}.bottom-3{bottom:.75rem}.left-0{left:0}.left-\[-10\%\]{left:-10%}.left-\[-2rem\]{left:-2rem}.right-0{right:0}.right-3{right:.75rem}.right-6{right:1.5rem}.right-\[-2rem\]{right:-2rem}.right-\[20\%\]{right:20%}.right-\[25\%\]{right:25%}.top-0{top:0}.top-3{top:.75rem}.top-\[-25px\]{top:-25px}.top-\[-40px\]{top:-40px}.top-\[20\%\]{top:20%}.top-\[45\%\]{top:45%}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.z-\[-1\]{z-index:-1}.z-\[-2\]{z-index:-2}.z-\[1\]{z-index:1}.z-\[30\]{z-index:30}.z-\[3\]{z-index:3}.z-\[5\]{z-index:5}.z-\[60\]{z-index:60}.float-right{float:right}.m-2{margin:.5rem}.m-auto{margin:auto}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-\[45px\]{margin-top:45px;margin-bottom:45px}.my-auto{margin-top:auto;margin-bottom:auto}.-mt-\[40px\]{margin-top:-40px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-24{margin-bottom:6rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-7{margin-bottom:1.75rem}.mb-8{margin-bottom:2rem}.mb-9{margin-bottom:2.25rem}.mb-\[120px\]{margin-bottom:120px}.mb-\[200px\]{margin-bottom:200px}.mb-\[20px\]{margin-bottom:20px}.mb-\[5px\]{margin-bottom:5px}.mb-\[60px\]{margin-bottom:60px}.mb-\[70px\]{margin-bottom:70px}.mb-\[8px\]{margin-bottom:8px}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-\[-10\%\]{margin-left:-10%}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mr-\[5px\]{margin-right:5px}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-\[10px\]{margin-top:10px}.mt-\[15rem\]{margin-top:15rem}.mt-\[20px\]{margin-top:20px}.mt-\[30px\]{margin-top:30px}.mt-\[40px\]{margin-top:40px}.mt-\[4rem\]{margin-top:4rem}.mt-\[50px\]{margin-top:50px}.mt-\[5px\]{margin-top:5px}.mt-\[60px\]{margin-top:60px}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-16{height:4rem}.h-20{height:5rem}.h-32{height:8rem}.h-40{height:10rem}.h-7{height:1.75rem}.h-72{height:18rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[120vh\]{height:120vh}.h-\[15rem\]{height:15rem}.h-\[200px\]{height:200px}.h-\[60\%\]{height:60%}.h-\[60vh\]{height:60vh}.h-\[70px\]{height:70px}.h-\[70vh\]{height:70vh}.h-\[80px\]{height:80px}.h-\[90vh\]{height:90vh}.h-auto{height:auto}.h-fit{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[22rem\]{max-height:22rem}.max-h-\[60vh\]{max-height:60vh}.max-h-\[650px\]{max-height:650px}.max-h-\[80vh\]{max-height:80vh}.max-h-fit{max-height:-webkit-fit-content;max-height:-moz-fit-content;max-height:fit-content}.min-h-48{min-height:12rem}.min-h-5{min-height:1.25rem}.min-h-\[100px\]{min-height:100px}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-12{width:3rem}.w-16{width:4rem}.w-40{width:10rem}.w-7{width:1.75rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\[100\%\]{width:100%}.w-\[100vw\]{width:100vw}.w-\[18\.3rem\]{width:18.3rem}.w-\[20rem\]{width:20rem}.w-\[21rem\]{width:21rem}.w-\[23rem\]{width:23rem}.w-\[300px\]{width:300px}.w-\[335px\]{width:335px}.w-\[40\%\]{width:40%}.w-\[50\%\]{width:50%}.w-\[70\%\]{width:70%}.w-\[80px\]{width:80px}.w-\[85\%\]{width:85%}.w-\[90\%\]{width:90%}.w-\[90vw\]{width:90vw}.w-\[95vw\]{width:95vw}.w-full{width:100%}.w-screen{width:100vw}.min-w-80{min-width:20rem}.max-w-4xl{max-width:56rem}.max-w-\[200px\]{max-width:200px}.max-w-\[60\%\]{max-width:60%}.max-w-\[80\%\]{max-width:80%}.max-w-\[85\%\]{max-width:85%}.max-w-full{max-width:100%}.max-w-md{max-width:28rem}.max-w-xl{max-width:36rem}.translate-y-1{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-12{--tw-rotate: -12deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-fade-in{animation:fade-in .5s ease-out}.animate-fade-in-campaign{animation:fade-in 2s infinite alternate}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in-donation{animation:fade-in 2s infinite alternate}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes zoom-in{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.animate-zoom-in{animation:zoom-in .3s}.cursor-pointer{cursor:pointer}.list-decimal{list-style-type:decimal}.list-none{list-style-type:none}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-evenly{justify-content:space-evenly}.justify-items-center{justify-items:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[1\.0rem\]{gap:1rem}.gap-\[10px\]{gap:10px}.gap-\[15px\]{gap:15px}.gap-\[1rem\]{gap:1rem}.gap-\[20px\]{gap:20px}.gap-\[30px\]{gap:30px}.gap-\[4px\]{gap:4px}.gap-\[5px\]{gap:5px}.gap-\[6px\]{gap:6px}.gap-\[7px\]{gap:7px}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.text-balance{text-wrap:balance}.break-normal{overflow-wrap:normal;word-break:normal}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\[10px\]{border-radius:10px}.rounded-\[17px\]{border-radius:17px}.rounded-\[20px\]{border-radius:20px}.rounded-\[2rem\]{border-radius:2rem}.rounded-\[30px\]{border-radius:30px}.rounded-\[35px\]{border-radius:35px}.rounded-\[40px\]{border-radius:40px}.rounded-\[50\%\]{border-radius:50%}.rounded-\[50px\]{border-radius:50px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-\[\#2e1ee49c\]{border-color:#2e1ee49c}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity))}.border-blue-800{--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity))}.border-emerald-500{--tw-border-opacity: 1;border-color:rgb(16 185 129 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-zinc-800{--tw-border-opacity: 1;border-color:rgb(39 39 42 / var(--tw-border-opacity))}.border-t-white{--tw-border-opacity: 1;border-top-color:rgb(255 255 255 / var(--tw-border-opacity))}.bg-\[\#ffffff66\]{background-color:#fff6}.bg-\[\#ffffff88\]{background-color:#fff8}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-900{--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-opacity-15{--tw-bg-opacity: .15}.bg-opacity-20{--tw-bg-opacity: .2}.bg-opacity-30{--tw-bg-opacity: .3}.bg-opacity-35{--tw-bg-opacity: .35}.bg-opacity-45{--tw-bg-opacity: .45}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-57{--tw-bg-opacity: .57}.bg-opacity-60{--tw-bg-opacity: .6}.bg-opacity-75{--tw-bg-opacity: .75}.bg-opacity-80{--tw-bg-opacity: .8}.bg-opacity-\[0\.5\]{--tw-bg-opacity: .5}.bg-custom-gradient{background-image:linear-gradient(to bottom right,#cedffb,#54d5fc,#2683f2,#1d81f3)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\[\#1e85e420\]{--tw-gradient-from: #1e85e420 var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 133 228 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-\[\#f27b79\]{--tw-gradient-from: #f27b79 var(--tw-gradient-from-position);--tw-gradient-to: rgb(242 123 121 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-\[rgba\(189\,255\,185\,0\.87\)\]{--tw-gradient-from: rgba(189,255,185,.87) var(--tw-gradient-from-position);--tw-gradient-to: rgba(189, 255, 185, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-300{--tw-gradient-from: #93c5fd var(--tw-gradient-from-position);--tw-gradient-to: rgb(147 197 253 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-400{--tw-gradient-from: #60a5fa var(--tw-gradient-from-position);--tw-gradient-to: rgb(96 165 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500{--tw-gradient-from: #3b82f6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-600{--tw-gradient-from: #2563eb var(--tw-gradient-from-position);--tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-400{--tw-gradient-from: #22d3ee var(--tw-gradient-from-position);--tw-gradient-to: rgb(34 211 238 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-200{--tw-gradient-from: #e5e7eb var(--tw-gradient-from-position);--tw-gradient-to: rgb(229 231 235 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-500{--tw-gradient-from: #6b7280 var(--tw-gradient-from-position);--tw-gradient-to: rgb(107 114 128 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-300{--tw-gradient-from: #86efac var(--tw-gradient-from-position);--tw-gradient-to: rgb(134 239 172 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-500{--tw-gradient-from: #22c55e var(--tw-gradient-from-position);--tw-gradient-to: rgb(34 197 94 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-600{--tw-gradient-from: #16a34a var(--tw-gradient-from-position);--tw-gradient-to: rgb(22 163 74 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-400{--tw-gradient-from: #f472b6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(244 114 182 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-300{--tw-gradient-from: #fca5a5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(252 165 165 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-400{--tw-gradient-from: #2dd4bf var(--tw-gradient-from-position);--tw-gradient-to: rgb(45 212 191 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-\[\#e6466c\]{--tw-gradient-to: rgb(230 70 108 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #e6466c var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-\[rgba\(155\,255\,160\,0\.93\)\]{--tw-gradient-to: rgba(155, 255, 160, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgba(155,255,160,.93) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-\[\#1E85E440\]{--tw-gradient-to: #1E85E440 var(--tw-gradient-to-position)}.to-\[\#f3285b\]{--tw-gradient-to: #f3285b var(--tw-gradient-to-position)}.to-\[rgb\(0\,238\,8\)\]{--tw-gradient-to: rgb(0,238,8) var(--tw-gradient-to-position)}.to-blue-800{--tw-gradient-to: #1e40af var(--tw-gradient-to-position)}.to-cyan-300{--tw-gradient-to: #67e8f9 var(--tw-gradient-to-position)}.to-emerald-500{--tw-gradient-to: #10b981 var(--tw-gradient-to-position)}.to-gray-400{--tw-gradient-to: #9ca3af var(--tw-gradient-to-position)}.to-gray-700{--tw-gradient-to: #374151 var(--tw-gradient-to-position)}.to-green-500{--tw-gradient-to: #22c55e var(--tw-gradient-to-position)}.to-green-600{--tw-gradient-to: #16a34a var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #15803d var(--tw-gradient-to-position)}.to-green-800{--tw-gradient-to: #166534 var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #ec4899 var(--tw-gradient-to-position)}.to-red-500{--tw-gradient-to: #ef4444 var(--tw-gradient-to-position)}.to-teal-500{--tw-gradient-to: #14b8a6 var(--tw-gradient-to-position)}.bg-cover{background-size:cover}.bg-center{background-position:center}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-center{object-position:center}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[10px\]{padding:10px}.p-\[5px\]{padding:5px}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-14{padding-left:3.5rem;padding-right:3.5rem}.px-16{padding-left:4rem;padding-right:4rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.px-8{padding-left:2rem;padding-right:2rem}.px-9{padding-left:2.25rem;padding-right:2.25rem}.px-\[15px\]{padding-left:15px;padding-right:15px}.px-\[2\.4rem\]{padding-left:2.4rem;padding-right:2.4rem}.px-\[20px\]{padding-left:20px;padding-right:20px}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[3px\]{padding-top:3px;padding-bottom:3px}.py-\[40px\]{padding-top:40px;padding-bottom:40px}.py-\[8px\]{padding-top:8px;padding-bottom:8px}.pb-1{padding-bottom:.25rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-\[120px\]{padding-bottom:120px}.pb-\[15px\]{padding-bottom:15px}.pb-\[70px\]{padding-bottom:70px}.pl-2{padding-left:.5rem}.pl-5{padding-left:1.25rem}.pr-2{padding-right:.5rem}.pr-5{padding-right:1.25rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-20{padding-top:5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-7{padding-top:1.75rem}.pt-9{padding-top:2.25rem}.pt-\[2px\]{padding-top:2px}.text-left{text-align:left}.text-center{text-align:center}.text-justify{text-align:justify}.font-Calistoga{font-family:Calistoga,sans-serif}.font-ChauPhilomeneOne{font-family:Chau Philomene One,sans-serif}.font-VarelaRound{font-family:VarelaRound,sans-serif}.font-baijam{font-family:Bai Jamjuree,sans-serif}.font-baloo{font-family:Baloo,sans-serif}.font-bayon{font-family:Bayon,sans-serif}.font-breeSerif{font-family:BreeSerif,sans-serif}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.font-serif{font-family:ui-serif,Georgia,Cambria,Times New Roman,Times,serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-\[1\.10rem\]{font-size:1.1rem}.text-\[1\.20rem\],.text-\[1\.2rem\]{font-size:1.2rem}.text-\[1\.3rem\]{font-size:1.3rem}.text-\[1\.4rem\]{font-size:1.4rem}.text-\[1\.5em\]{font-size:1.5em}.text-\[1\.5rem\]{font-size:1.5rem}.text-\[1\.6rem\]{font-size:1.6rem}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.text-\[17px\]{font-size:17px}.text-\[18px\]{font-size:18px}.text-\[1rem\]{font-size:1rem}.text-\[2\.2rem\]{font-size:2.2rem}.text-\[2\.5em\]{font-size:2.5em}.text-\[20px\]{font-size:20px}.text-\[22px\]{font-size:22px}.text-\[24px\]{font-size:24px}.text-\[25px\]{font-size:25px}.text-\[2em\]{font-size:2em}.text-\[2rem\]{font-size:2rem}.text-\[30px\]{font-size:30px}.text-\[3rem\]{font-size:3rem}.text-\[4rem\]{font-size:4rem}.text-\[6rem\]{font-size:6rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-10{line-height:2.5rem}.leading-4{line-height:1rem}.leading-\[1\.3rem\]{line-height:1.3rem}.leading-\[1\.5rem\]{line-height:1.5rem}.leading-\[1rem\]{line-height:1rem}.leading-\[64px\]{line-height:64px}.leading-\[80px\]{line-height:80px}.leading-\[px\]{line-height:px}.leading-normal{line-height:1.5}.leading-relaxed{line-height:1.625}.tracking-\[0\.02rem\]{letter-spacing:.02rem}.tracking-\[8px\]{letter-spacing:8px}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-\[\#000000\]{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-\[\#090443\]{--tw-text-opacity: 1;color:rgb(9 4 67 / var(--tw-text-opacity))}.text-\[\#0B0553DE\]{color:#0b0553de}.text-\[\#0B0553F5\]{color:#0b0553f5}.text-\[\#0B0553\]{--tw-text-opacity: 1;color:rgb(11 5 83 / var(--tw-text-opacity))}.text-\[\#0b0553de\]{color:#0b0553de}.text-\[\#0b4626ad\]{color:#0b4626ad}.text-\[\#382f87\]{--tw-text-opacity: 1;color:rgb(56 47 135 / var(--tw-text-opacity))}.text-\[\#40025D\]{--tw-text-opacity: 1;color:rgb(64 2 93 / var(--tw-text-opacity))}.text-\[\#5979eb\]{--tw-text-opacity: 1;color:rgb(89 121 235 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity))}.text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity))}.text-stone{--tw-text-opacity: 1;color:rgb(83 96 91 / var(--tw-text-opacity))}.text-violet-900{--tw-text-opacity: 1;color:rgb(76 29 149 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-opacity-90{--tw-text-opacity: .9}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.placeholder-stone::placeholder{--tw-placeholder-opacity: 1;color:rgb(83 96 91 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_2px_20px_rgba\(0\,0\,0\,0\.5\)\]{--tw-shadow: 0 2px 20px rgba(0,0,0,.5);--tw-shadow-colored: 0 2px 20px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-buttonShadow{--tw-shadow: rgba(0, 0, 0, .16) 0px 3px 6px, rgba(0, 0, 0, .23) 0px 3px 6px;--tw-shadow-colored: 0px 3px 6px var(--tw-shadow-color), 0px 3px 6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-custom{--tw-shadow: 14px 18px 30px 0px #1E85E47D;--tw-shadow-colored: 14px 18px 30px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-dashBoardCardImageShadow{--tw-shadow: 3.847223997116089px 4.946430683135986px 14.289689064025879px 0px #00000040;--tw-shadow-colored: 3.847223997116089px 4.946430683135986px 14.289689064025879px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-dashBoardCardShadow{--tw-shadow: 0px 28.052980422973633px 0px #1E85E426, 0px 28.052980422973633px 0px #1E85E426;--tw-shadow-colored: 0px 28.052980422973633px 0px var(--tw-shadow-color), 0px 28.052980422973633px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-0{outline-width:0px}.ring-1{--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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-xl{--tw-drop-shadow: drop-shadow(0 20px 13px rgb(0 0 0 / .03)) drop-shadow(0 8px 5px rgb(0 0 0 / .08));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-\[5px\]{--tw-backdrop-blur: blur(5px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-\[6px\]{--tw-backdrop-blur: blur(6px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-0{transition-delay:0ms}.delay-100{transition-delay:.1s}.duration-700{transition-duration:.7s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:scale-\[1\.01\]:hover{--tw-scale-x: 1.01;--tw-scale-y: 1.01;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:transform:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:font-bold:hover{font-weight:700}.hover\:text-\[\#312E81\]:hover{--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity))}.hover\:duration-100:hover{transition-duration:.1s}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.active\:text-blue-800:active{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.group:hover .group-hover\:opacity-100{opacity:1}@media (max-width: 600px){.sm\:w-60{width:15rem}.sm\:w-\[80\%\]{width:80%}.sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.sm\:items-center{align-items:center}.sm\:justify-center{justify-content:center}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-\[1\.5rem\]{font-size:1.5rem}}@media (max-width: 990px){.md\:mx-\[5rem\]{margin-left:5rem;margin-right:5rem}.md\:hidden{display:none}.md\:h-12{height:3rem}.md\:h-\[100\%\]{height:100%}.md\:w-\[250px\]{width:250px}.md\:w-\[75\%\]{width:75%}.md\:w-\[80\%\]{width:80%}.md\:w-\[92\%\]{width:92%}.md\:w-full{width:100%}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:justify-center{justify-content:center}.md\:rounded-\[45px\]{border-radius:45px}.md\:rounded-none{border-radius:0}.md\:p-0{padding:0}.md\:p-10{padding:2.5rem}.md\:p-8{padding:2rem}.md\:px-5{padding-left:1.25rem;padding-right:1.25rem}.md\:px-7{padding-left:1.75rem;padding-right:1.75rem}.md\:py-3{padding-top:.75rem;padding-bottom:.75rem}.md\:pl-10{padding-left:2.5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-\[2\.2rem\]{font-size:2.2rem}.md\:text-\[23px\]{font-size:23px}.md\:text-\[2rem\]{font-size:2rem}.md\:text-\[4rem\]{font-size:4rem}.md\:text-\[7rem\]{font-size:7rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:shadow-\[0_0px_0px_rgba\(0\,0\,0\,0\)\]{--tw-shadow: 0 0px 0px rgba(0,0,0,0);--tw-shadow-colored: 0 0px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media (max-width: 1800px){.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:text-\[3rem\]{font-size:3rem}}@media (max-height: 768px){.h-md\:hidden{display:none}}@media (max-width: 400px){.xs\:h-12{height:3rem}.xs\:w-\[200px\]{width:200px}.xs\:px-5{padding-left:1.25rem;padding-right:1.25rem}.xs\:px-7{padding-left:1.75rem;padding-right:1.75rem}.xs\:py-8{padding-top:2rem;padding-bottom:2rem}.xs\:text-\[16px\]{font-size:16px}.xs\:text-\[20px\]{font-size:20px}.xs\:text-\[25px\]{font-size:25px}}body{font-family:Poppins,sans-serif;margin:0;padding:0;box-sizing:border-box}*{box-sizing:inherit}@font-face{font-family:VarelaRound;src:url(/fonts/VarelaRound-Regular.ttf) format("truetype")}@font-face{font-family:Bayon;src:url(/fonts/bayon.ttf) format("truetype")}@font-face{font-family:BreeSerif;src:url(/fonts/BreeSerif-Regular.ttf) format("truetype")}@font-face{font-family:Chau Philomene One;src:url(/fonts/ChauPhilomeneOne-Regular.ttf) format("truetype")}@font-face{font-family:Bai Jamjuree;src:url(/fonts/BaiJamjuree.ttf) format("truetype")}@font-face{font-family:Calistoga;src:url(/fonts/Calistoga-Regular.ttf) format("truetype")}.rodal-dialog{background:linear-gradient(0deg,#c1dcf6,#cce1f7 10%,#caeaee)!important;border-radius:1.5rem!important}.divider:after,.divider:before{content:"";flex:1;height:1px;background:#eee}.h-custom{height:calc(100% - 73px)}@media (max-width: 450px){.h-custom{height:100%}.container{margin:20px;border-radius:10px;box-shadow:0 0 10px #0003}.form-title{margin-top:30px;font-size:2em}.input-field{margin-top:15px;padding:8px}.button-container,.additional-links{margin-top:15px}}.container{overflow:hidden;border-radius:20px;box-shadow:0 0 20px #00000080;margin:90px}.form-container{background:linear-gradient(to right,#4facfe,#00f2fe);padding:20px;border-radius:10px;box-shadow:0 0 20px #0000001a}.form-title{margin-top:60px;text-align:center;font-weight:700;font-size:2.5em;color:#fff}.input-field{width:100%;margin-top:20px;padding:10px;border:none;border-radius:5px;background-color:#eaeaea;box-shadow:inset 0 0 5px #0000001a}.button-container{margin-top:20px;display:flex;justify-content:center}.error-message{margin-top:10px;text-align:center;color:#f55}.additional-links{margin-top:20px;display:flex;flex-direction:column;align-items:center}.additional-links a{color:#fff;text-decoration:none}.additional-links a:hover{text-decoration:underline}@media screen and (max-width: 800px){.container{box-shadow:none;padding:0;margin:0}}:root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:.9;--rt-transition-show-delay:.15s;--rt-transition-closing-delay:.15s}.core-styles-module_tooltip__3vRRp{left:0;opacity:0;pointer-events:none;position:absolute;top:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{background:inherit;position:absolute}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay) ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay) ease-in}.styles-module_tooltip__mnnfp{border-radius:3px;font-size:90%;padding:8px 16px;width:-webkit-max-content;width:max-content}.styles-module_arrow__K0L3T{height:8px;width:8px}[class*=react-tooltip__place-top]>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*=react-tooltip__place-right]>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*=react-tooltip__place-bottom]>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*=react-tooltip__place-left]>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}.rodal,.rodal-mask{top:0;left:0;width:100%;height:100%;z-index:100}.rodal{position:fixed}.rodal-mask{position:absolute;background:#0000004d}.rodal-dialog{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;z-index:101;padding:15px;background:#fff;border-radius:3px;box-shadow:0 1px 3px #0003}.rodal-dialog:focus{outline:none}.rodal-close{position:absolute;cursor:pointer;top:16px;right:16px;width:16px;height:16px}.rodal-close:before,.rodal-close:after{position:absolute;content:"";height:2px;width:100%;top:50%;left:0;margin-top:-1px;background:#999;border-radius:100%;transition:background .2s}.rodal-close:before{transform:rotate(45deg)}.rodal-close:after{transform:rotate(-45deg)}.rodal-close:hover:before,.rodal-close:hover:after{background:#333}@keyframes rodal-fade-enter{0%{opacity:0}}.rodal-fade-enter{animation:rodal-fade-enter both ease-in}@keyframes rodal-fade-leave{to{opacity:0}}.rodal-fade-leave{animation:rodal-fade-leave both ease-out}@keyframes rodal-zoom-enter{0%{transform:scale3d(.3,.3,.3)}}.rodal-zoom-enter{animation:rodal-zoom-enter both cubic-bezier(.4,0,0,1.5)}@keyframes rodal-zoom-leave{to{transform:scale3d(.3,.3,.3)}}.rodal-zoom-leave{animation:rodal-zoom-leave both}@keyframes rodal-slideDown-enter{0%{transform:translate3d(0,-100px,0)}}.rodal-slideDown-enter{animation:rodal-slideDown-enter both cubic-bezier(.4,0,0,1.5)}@keyframes rodal-slideDown-leave{to{transform:translate3d(0,-100px,0)}}.rodal-slideDown-leave{animation:rodal-slideDown-leave both}@keyframes rodal-slideLeft-enter{0%{transform:translate3d(-150px,0,0)}}.rodal-slideLeft-enter{animation:rodal-slideLeft-enter both cubic-bezier(.4,0,0,1.5)}@keyframes rodal-slideLeft-leave{to{transform:translate3d(-150px,0,0)}}.rodal-slideLeft-leave{animation:rodal-slideLeft-leave both}@keyframes rodal-slideRight-enter{0%{transform:translate3d(150px,0,0)}}.rodal-slideRight-enter{animation:rodal-slideRight-enter both cubic-bezier(.4,0,0,1.5)}@keyframes rodal-slideRight-leave{to{transform:translate3d(150px,0,0)}}.rodal-slideRight-leave{animation:rodal-slideRight-leave both}@keyframes rodal-slideUp-enter{0%{transform:translate3d(0,100px,0)}}.rodal-slideUp-enter{animation:rodal-slideUp-enter both cubic-bezier(.4,0,0,1.5)}@keyframes rodal-slideUp-leave{to{transform:translate3d(0,100px,0)}}.rodal-slideUp-leave{animation:rodal-slideUp-leave both}@keyframes rodal-flip-enter{0%{transform:perspective(400px) rotateX(60deg)}70%{transform:perspective(400px) rotateX(-15deg)}to{transform:perspective(400px)}}.rodal-flip-enter{animation:rodal-flip-enter both ease-in;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@keyframes rodal-flip-leave{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-15deg)}to{transform:perspective(400px) rotateX(45deg)}}.rodal-flip-leave{animation:rodal-flip-leave both;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@keyframes rodal-rotate-enter{0%{transform:rotate3d(0,0,1,-180deg) scale3d(.3,.3,.3)}}.rodal-rotate-enter{animation:rodal-rotate-enter both;transform-origin:center}@keyframes rodal-rotate-leave{to{transform:rotate3d(0,0,1,180deg) scale3d(.3,.3,.3)}}.rodal-rotate-leave{animation:rodal-rotate-leave both;transform-origin:center}@keyframes rodal-door-enter{0%{transform:scale3d(0,1,1)}}.rodal-door-enter{animation:rodal-door-enter both cubic-bezier(.4,0,0,1.5)}@keyframes rodal-door-leave{60%{transform:scale3d(.01,1,1)}to{transform:scale3d(0,1,.1)}}.rodal-door-leave{animation:rodal-door-leave both}:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width : 480px){.Toastify__toast-container{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}}.Toastify__toast{--y: 0;position:relative;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;display:flex;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;flex:1 1 auto;padding:6px;display:flex;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;flex:1}.Toastify__toast-icon{margin-inline-end:10px;width:20px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width : 480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._image_1o3b2_1{z-index:3;position:absolute;top:-87px;left:22px;width:90%;object-fit:contain;height:100px}@media (max-width: 400px){._image_1o3b2_1{top:-85px;left:3px;width:100%}}/*! +* Cropper.js v1.6.1 +* https://fengyuanchen.github.io/cropperjs +* +* Copyright 2015-present Chen Fengyuan +* Released under the MIT license +* +* Date: 2023-09-17T03:44:17.565Z +*/.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;touch-action:none;-webkit-user-select:none;user-select:none}.cropper-container img{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-wrap-box,.cropper-canvas{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:calc(100% / 3);left:0;top:calc(100% / 3);width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:calc(100% / 3);top:0;width:calc(100% / 3)}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:before,.cropper-center:after{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width: 768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width: 992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width: 1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}} diff --git a/dist/assets/pngtree-blue-pastel-background-picture-image_1599663-DZdKdo3J.jpg b/dist/assets/pngtree-blue-pastel-background-picture-image_1599663-DZdKdo3J.jpg new file mode 100644 index 00000000..92f4971f Binary files /dev/null and b/dist/assets/pngtree-blue-pastel-background-picture-image_1599663-DZdKdo3J.jpg differ diff --git a/dist/assets/white-dog-pastel-blue-background-3d_89917-269-4XITitkF.jpg b/dist/assets/white-dog-pastel-blue-background-3d_89917-269-4XITitkF.jpg new file mode 100644 index 00000000..51fb99d3 Binary files /dev/null and b/dist/assets/white-dog-pastel-blue-background-3d_89917-269-4XITitkF.jpg differ diff --git a/dist/firebase-messaging-sw.js b/dist/firebase-messaging-sw.js new file mode 100644 index 00000000..c7e9913c --- /dev/null +++ b/dist/firebase-messaging-sw.js @@ -0,0 +1,35 @@ +/* eslint-disable no-undef */ +importScripts("https://www.gstatic.com/firebasejs/8.10.1/firebase-app.js"); +importScripts( + "https://www.gstatic.com/firebasejs/8.10.1/firebase-messaging.js" +); + +const firebaseConfig = { + apiKey: "AIzaSyBgRI7QrEqlrtj94hZ-MKtYc77XunOc_9w", + authDomain: "paws-b9b64.firebaseapp.com", + projectId: "paws-b9b64", + storageBucket: "paws-b9b64.appspot.com", + messagingSenderId: "610215952536", + appId: "1:610215952536:web:4f832813ef5d58acb010ed", + measurementId: "G-3TBQ0B47KK", +}; + +firebase.initializeApp(firebaseConfig); + +const messaging = firebase.messaging(); + +messaging.onBackgroundMessage((payload) => { + console.log( + "[firebase-messaging-sw.js] Received background message ", + payload + ); + + const notificationTitle = payload.notification.title; + const notificationOptions = { + body: payload.notification.body, + icon: "./notification_icon.ico", + }; + + // eslint-disable-next-line no-restricted-globals + self.registration.showNotification(notificationTitle, notificationOptions); +}); diff --git a/dist/fonts/BaiJamjuree.ttf b/dist/fonts/BaiJamjuree.ttf new file mode 100644 index 00000000..067aba53 Binary files /dev/null and b/dist/fonts/BaiJamjuree.ttf differ diff --git a/dist/fonts/Baloo-Regular.ttf b/dist/fonts/Baloo-Regular.ttf new file mode 100644 index 00000000..a3ab1c55 Binary files /dev/null and b/dist/fonts/Baloo-Regular.ttf differ diff --git a/dist/fonts/BigshotOne.ttf b/dist/fonts/BigshotOne.ttf new file mode 100644 index 00000000..d8ea2395 Binary files /dev/null and b/dist/fonts/BigshotOne.ttf differ diff --git a/dist/fonts/BreeSerif-Regular.ttf b/dist/fonts/BreeSerif-Regular.ttf new file mode 100644 index 00000000..20c8a27c Binary files /dev/null and b/dist/fonts/BreeSerif-Regular.ttf differ diff --git a/dist/fonts/Calistoga-Regular.ttf b/dist/fonts/Calistoga-Regular.ttf new file mode 100644 index 00000000..2fbdb165 Binary files /dev/null and b/dist/fonts/Calistoga-Regular.ttf differ diff --git a/dist/fonts/ChauPhilomeneOne-Regular.ttf b/dist/fonts/ChauPhilomeneOne-Regular.ttf new file mode 100644 index 00000000..4812d01a Binary files /dev/null and b/dist/fonts/ChauPhilomeneOne-Regular.ttf differ diff --git a/dist/fonts/VarelaRound-Regular.ttf b/dist/fonts/VarelaRound-Regular.ttf new file mode 100644 index 00000000..9d018125 Binary files /dev/null and b/dist/fonts/VarelaRound-Regular.ttf differ diff --git a/dist/fonts/bayon.ttf b/dist/fonts/bayon.ttf new file mode 100644 index 00000000..4a0705bd Binary files /dev/null and b/dist/fonts/bayon.ttf differ diff --git a/dist/images/13.png b/dist/images/13.png new file mode 100644 index 00000000..67cbe23c Binary files /dev/null and b/dist/images/13.png differ diff --git a/dist/images/18+.png b/dist/images/18+.png new file mode 100644 index 00000000..14b0595e Binary files /dev/null and b/dist/images/18+.png differ diff --git a/dist/images/Donation.png b/dist/images/Donation.png new file mode 100644 index 00000000..3c88b54a Binary files /dev/null and b/dist/images/Donation.png differ diff --git a/dist/images/all.png b/dist/images/all.png new file mode 100644 index 00000000..c46e9314 Binary files /dev/null and b/dist/images/all.png differ diff --git a/dist/images/background.png b/dist/images/background.png new file mode 100644 index 00000000..cc39bb59 Binary files /dev/null and b/dist/images/background.png differ diff --git a/dist/images/bird.jpeg b/dist/images/bird.jpeg new file mode 100644 index 00000000..6a01bfe7 Binary files /dev/null and b/dist/images/bird.jpeg differ diff --git a/dist/images/cat.jpg b/dist/images/cat.jpg new file mode 100644 index 00000000..717a9b90 Binary files /dev/null and b/dist/images/cat.jpg differ diff --git a/dist/images/caution.jpeg b/dist/images/caution.jpeg new file mode 100644 index 00000000..3f5eb4a7 Binary files /dev/null and b/dist/images/caution.jpeg differ diff --git a/dist/images/coin1.jpg b/dist/images/coin1.jpg new file mode 100644 index 00000000..4b012ae0 Binary files /dev/null and b/dist/images/coin1.jpg differ diff --git a/dist/images/cow.jpg b/dist/images/cow.jpg new file mode 100644 index 00000000..375d1c6a Binary files /dev/null and b/dist/images/cow.jpg differ diff --git a/dist/images/determining.jpeg b/dist/images/determining.jpeg new file mode 100644 index 00000000..99876c6c Binary files /dev/null and b/dist/images/determining.jpeg differ diff --git a/dist/images/dog.jpg b/dist/images/dog.jpg new file mode 100644 index 00000000..14f49988 Binary files /dev/null and b/dist/images/dog.jpg differ diff --git a/dist/images/logo.jpg b/dist/images/logo.jpg new file mode 100644 index 00000000..47a7c6d2 Binary files /dev/null and b/dist/images/logo.jpg differ diff --git a/dist/images/more.jpg b/dist/images/more.jpg new file mode 100644 index 00000000..a702f2c9 Binary files /dev/null and b/dist/images/more.jpg differ diff --git a/dist/images/paw.png b/dist/images/paw.png new file mode 100644 index 00000000..4d23d3dc Binary files /dev/null and b/dist/images/paw.png differ diff --git a/dist/images/pawBg.png b/dist/images/pawBg.png new file mode 100644 index 00000000..44ea1973 Binary files /dev/null and b/dist/images/pawBg.png differ diff --git a/dist/images/paws.png b/dist/images/paws.png new file mode 100644 index 00000000..63dec79e Binary files /dev/null and b/dist/images/paws.png differ diff --git a/dist/images/paws.webp b/dist/images/paws.webp new file mode 100644 index 00000000..32f4c185 Binary files /dev/null and b/dist/images/paws.webp differ diff --git a/dist/images/petdoc.webp b/dist/images/petdoc.webp new file mode 100644 index 00000000..a57ef5a2 Binary files /dev/null and b/dist/images/petdoc.webp differ diff --git a/dist/images/poultry.jpeg b/dist/images/poultry.jpeg new file mode 100644 index 00000000..db0d4739 Binary files /dev/null and b/dist/images/poultry.jpeg differ diff --git a/dist/images/profileIcon.png b/dist/images/profileIcon.png new file mode 100644 index 00000000..2f03aa43 Binary files /dev/null and b/dist/images/profileIcon.png differ diff --git a/dist/images/profile_icon.png b/dist/images/profile_icon.png new file mode 100644 index 00000000..d3379ab3 Binary files /dev/null and b/dist/images/profile_icon.png differ diff --git a/dist/images/rabbit.jpg b/dist/images/rabbit.jpg new file mode 100644 index 00000000..f1cd774e Binary files /dev/null and b/dist/images/rabbit.jpg differ diff --git a/dist/images/sheep.jpg b/dist/images/sheep.jpg new file mode 100644 index 00000000..050f83f2 Binary files /dev/null and b/dist/images/sheep.jpg differ diff --git a/dist/images/t1.png b/dist/images/t1.png new file mode 100644 index 00000000..d7f0a479 Binary files /dev/null and b/dist/images/t1.png differ diff --git a/dist/images/t2.png b/dist/images/t2.png new file mode 100644 index 00000000..210746ef Binary files /dev/null and b/dist/images/t2.png differ diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 00000000..11881f88 --- /dev/null +++ b/dist/index.html @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Paws + + + + + + +
+ + + + \ No newline at end of file diff --git a/dist/loader.gif b/dist/loader.gif new file mode 100644 index 00000000..3add183b Binary files /dev/null and b/dist/loader.gif differ diff --git a/dist/logo.png b/dist/logo.png new file mode 100644 index 00000000..d9968f60 Binary files /dev/null and b/dist/logo.png differ diff --git a/dist/manifest.json b/dist/manifest.json new file mode 100644 index 00000000..2aed0986 --- /dev/null +++ b/dist/manifest.json @@ -0,0 +1,31 @@ + +{ + "short_name": "Paws", + "name": "Pause to save Paws", + "icons": [ + { + "src": "favicon.ico", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + }, + { + "src": "logo192.png", + "type": "image/png", + "sizes": "192x192" + }, + { + "src": "logo512.png", + "type": "image/png", + "sizes": "512x512" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff", + "scope": "/", + "orientation": "portrait", + "serviceworker": { + "src": "/service-worker.js" + } +} diff --git a/dist/notification_icon.ico b/dist/notification_icon.ico new file mode 100644 index 00000000..885beb00 Binary files /dev/null and b/dist/notification_icon.ico differ diff --git a/dist/notification_icon.png b/dist/notification_icon.png new file mode 100644 index 00000000..6a14b990 Binary files /dev/null and b/dist/notification_icon.png differ diff --git a/dist/robots.txt b/dist/robots.txt new file mode 100644 index 00000000..e9e57dc4 --- /dev/null +++ b/dist/robots.txt @@ -0,0 +1,3 @@ +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Disallow: diff --git a/dist/service-worker.js b/dist/service-worker.js new file mode 100644 index 00000000..a68de158 --- /dev/null +++ b/dist/service-worker.js @@ -0,0 +1,21 @@ +// public/service-worker.js +self.addEventListener('install', (event) => { + event.waitUntil( + caches.open('your-cache-name').then((cache) => { + return cache.addAll([ + '/', + '/index.html', + // Add other files you want to cache + ]); + }) + ); + }); + + self.addEventListener('fetch', (event) => { + event.respondWith( + caches.match(event.request).then((response) => { + return response || fetch(event.request); + }) + ); + }); + \ No newline at end of file