1/*! For license information please see 569.js.LICENSE.txt */ 2(self.webpackChunk=self.webpackChunk||[]).push([[569],{8031:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});r(6540);var n=r(4848);function o(e){e.className;return(0,n.jsx)("div",{className:"flex w-full",children:(0,n.jsx)("div",{className:"flex-shrink-0 flex items-center",children:(0,n.jsx)("img",{className:"h-10 lg:h-14 w-auto cursor-pointer",src:"/storage/re-tree-logo-new.png",alt:"RE-TREE"})})})}},3745:(e,t,r)=>{"use strict";r.d(t,{A:()=>ne});var n=r(6540),o=r(8368);function i(){let e=[],t={addEventListener:(e,r,n,o)=>(e.addEventListener(r,n,o),t.add((()=>e.removeEventListener(r,n,o)))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(r)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let r=setTimeout(...e);return t.add((()=>clearTimeout(r)))},microTask(...e){let r={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{r.current&&e[0]()})),t.add((()=>{r.current=!1}))},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add((()=>{Object.assign(e.style,{[t]:n})}))},group(e){let t=i();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function s(){let[e]=(0,n.useState)(i);return(0,n.useEffect)((()=>()=>e.dispose()),[e]),e}var a=Object.defineProperty,l=(e,t,r)=>(((e,t,r)=>{t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);let c=new class{constructor(){l(this,"current",this.detect()),l(this,"handoffState","pending"),l(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},u=(e,t)=>{c.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)};function d(e){let t=(0,n.useRef)(e);return u((()=>{t.current=e}),[e]),t}let f=function(e){let t=d(e);return n.useCallback(((...e)=>t.current(...e)),[t])};function p(){let e=(0,n.useRef)(!1);return u((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function h(e=0){let[t,r]=(0,n.useState)(e),o=p(),i=(0,n.useCallback)((e=>{o.current&&r((t=>t|e))}),[t,o]),s=(0,n.useCallback)((e=>Boolean(t&e)),[t]),a=(0,n.useCallback)((e=>{o.current&&r((t=>t&~e))}),[r,o]),l=(0,n.useCallback)((e=>{o.current&&r((t=>t^e))}),[r]);return{flags:t,addFlag:i,hasFlag:s,removeFlag:a,toggleFlag:l}}function m(){let[e,t]=n.useState(c.isHandoffComplete);return e&&!1===c.isHandoffComplete&&t(!1),n.useEffect((()=>{!0!==e&&t(!0)}),[e]),n.useEffect((()=>c.handoff()),[]),e}let g=Symbol();function y(...e){let t=(0,n.useRef)(e);(0,n.useEffect)((()=>{t.current=e}),[e]);let r=f((e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[g])))?void 0:r}function v(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,v),n}function b(e,...t){e&&t.length>0&&e.classList.add(...t)}function x(e,...t){e&&t.length>0&&e.classList.remove(...t)}function j(e,t,r,n){let o=r?"enter":"leave",s=i(),a=void 0!==n?function(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}(n):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let l=v(o,{enter:()=>t.enter,leave:()=>t.leave}),c=v(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}
2),u=v(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return x(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),b(e,...t.base,...l,...u),s.nextFrame((()=>{x(e,...t.base,...l,...u),b(e,...t.base,...l,...c),function(e,t){let r=i();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:o}=getComputedStyle(e),[s,a]=[n,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),l=s+a;if(0!==l){r.group((r=>{r.setTimeout((()=>{t(),r.dispose()}),l),r.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&r.dispose()}))}));let n=r.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),n())}))}else t();r.add((()=>t())),r.dispose}(e,(()=>(x(e,...t.base,...l),b(e,...t.base,...t.entered),a())))})),s.dispose}function w({immediate:e,container:t,direction:r,classes:n,onStart:o,onStop:a}){let l=p(),c=s(),f=d(r);u((()=>{e&&(f.current="enter")}),[e]),u((()=>{let e=i();c.add(e.dispose);let r=t.current;if(r&&"idle"!==f.current&&l.current)return e.dispose(),o.current(f.current),e.add(j(r,n.current,"enter"===f.current,(()=>{e.dispose(),a.current(f.current)}))),e.dispose}),[r])}let N=(0,n.createContext)(null);N.displayName="OpenClosedContext";var E,O=((E=O||{})[E.Open=1]="Open",E[E.Closed=2]="Closed",E[E.Closing=4]="Closing",E[E.Opening=8]="Opening",E);function T(){return(0,n.useContext)(N)}function C({value:e,children:t}){return n.createElement(N.Provider,{value:e},t)}function S(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var k=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(k||{}),_=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_||{});function R({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:i=!0,name:s,mergeRefs:a}){a=null!=a?a:A;let l=P(t,e);if(i)return L(l,r,n,s,a);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return L(t,r,n,s,a)}if(1&c){let{unmount:e=!0,...t}=l;return v(e?0:1,{0:()=>null,1:()=>L({...t,hidden:!0,style:{display:"none"}},r,n,s,a)})}return L(l,r,n,s,a)}function L(e,t={},r,o,i){let{as:s=r,children:a,refName:l="ref",...c}=M(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof a?a(t):a;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t));let f={};if(t){let e=!1,r=[];for(let[n,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&r.push(n);e&&(f["data-headlessui-state"]=r.join(" "))}if(s===n.Fragment&&Object.keys(F(c)).length>0){if(!(0,n.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=d.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>S(null==e?void 0:e.className(...t),c.className):S(null==e?void 0:e.className,c.className),r=t?{className:t}:{};return(0,n.cloneElement)(d,Object.assign({},P(d.props,F(M(c,["ref"]))),f,u,{ref:i(d.ref,u.ref)},r))}return(0,n.createElement)(s,Object.assign({},M(c,["ref"]),s!==n.Fragment&&u,s!==n.Fragment&&f),d)}function A(...e){return e.every((e=>null==e))?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function P(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map((e=>[e,void 0]))));for(let e in r)Object.assign(t,{[e](t,...n){let o=r[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...n)}}});return t}function I(e){var t;return Object.assign((0,n.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function F(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function M(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}function $(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let B=(0,n.createContext)(null);B.displayName="TransitionContext";var D=(e=>(e.Visible="visible",e.Hidden="hidden",e))(D||{});let U=(0,n.createContext)(null);function H(e){return"children"in e?H(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function z(e,t){let r=d(e),o=(0,n.useRef)([]),i=p(),a=s(),l=f(((e,t=_.Hidden)=>{let n=o.current.findIndex((({el:t})=>t===e));-1!==n&&(v(t,{[_.Unmount](){o.current.splice(n,1)},[_.Hidden](){o.current[n].state="hidden"}}),a.microTask((()=>{var e;!H(o)&&i.current&&(null==(e=r.current)||e.call(r))})))})),c=f((e=>
2{let t=o.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):o.current.push({el:e,state:"visible"}),()=>l(e,_.Unmount)})),u=(0,n.useRef)([]),h=(0,n.useRef)(Promise.resolve()),m=(0,n.useRef)({enter:[],leave:[],idle:[]}),g=f(((e,r,n)=>{u.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter((([t])=>t!==e))),null==t||t.chains.current[r].push([e,new Promise((e=>{u.current.push(e)}))]),null==t||t.chains.current[r].push([e,new Promise((e=>{Promise.all(m.current[r].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===r?h.current=h.current.then((()=>null==t?void 0:t.wait.current)).then((()=>n(r))):n(r)})),y=f(((e,t,r)=>{Promise.all(m.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=u.current.shift())||e()})).then((()=>r(t)))}));return(0,n.useMemo)((()=>({children:o,register:c,unregister:l,onStart:g,onStop:y,wait:h,chains:m})),[c,l,o,g,y,m,h])}function q(){}U.displayName="NestingContext";let W=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function V(e){var t;let r={};for(let n of W)r[n]=null!=(t=e[n])?t:q;return r}let G=k.RenderStrategy;let Q=I((function(e,t){let{show:r,appear:o=!1,unmount:i=!0,...s}=e,a=(0,n.useRef)(null),l=y(a,t);m();let c=T();if(void 0===r&&null!==c&&(r=(c&O.Open)===O.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,p]=(0,n.useState)(r?"visible":"hidden"),h=z((()=>{p("hidden")})),[g,v]=(0,n.useState)(!0),b=(0,n.useRef)([r]);u((()=>{!1!==g&&b.current[b.current.length-1]!==r&&(b.current.push(r),v(!1))}),[b,r]);let x=(0,n.useMemo)((()=>({show:r,appear:o,initial:g})),[r,o,g]);(0,n.useEffect)((()=>{if(r)p("visible");else if(H(h)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&p("hidden")}else p("hidden")}),[r,h]);let j={unmount:i},w=f((()=>{var t;g&&v(!1),null==(t=e.beforeEnter)||t.call(e)})),N=f((()=>{var t;g&&v(!1),null==(t=e.beforeLeave)||t.call(e)}));return n.createElement(U.Provider,{value:h},n.createElement(B.Provider,{value:x},R({ourProps:{...j,as:n.Fragment,children:n.createElement(Y,{ref:l,...j,...s,beforeEnter:w,beforeLeave:N})},theirProps:{},defaultTag:n.Fragment,features:G,visible:"visible"===d,name:"Transition"})))})),Y=I((function(e,t){var r,o;let{beforeEnter:i,afterEnter:s,beforeLeave:a,afterLeave:l,enter:c,enterFrom:u,enterTo:p,entered:g,leave:b,leaveFrom:x,leaveTo:j,...N}=e,E=(0,n.useRef)(null),T=y(E,t),k=null==(r=N.unmount)||r?_.Unmount:_.Hidden,{show:L,appear:A,initial:P}=function(){let e=(0,n.useContext)(B);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[I,F]=(0,n.useState)(L?"visible":"hidden"),M=function(){let e=(0,n.useContext)(U);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:D,unregister:q}=M;(0,n.useEffect)((()=>D(E)),[D,E]),(0,n.useEffect)((()=>{if(k===_.Hidden&&E.current)return L&&"visible"!==I?void F("visible"):v(I,{hidden:()=>q(E),visible:()=>D(E)})}),[I,E,D,q,L,k]);let W=d({base:$(N.className),enter:$(c),enterFrom:$(u),enterTo:$(p),entered:$(g),leave:$(b),leaveFrom:$(x),leaveTo:$(j)}),Q=function(e){let t=(0,n.useRef)(V(e));return(0,n.useEffect)((()=>{t.current=V(e)}),[e]),t}({beforeEnter:i,afterEnter:s,beforeLeave:a,afterLeave:l}),Y=m();(0,n.useEffect)((()=>{if(Y&&"visible"===I&&null===E.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[E,I,Y]);let K=A&&L&&P,X=!Y||P&&!A?"idle":L?"enter":"leave",J=h(0),Z=f((e=>v(e,{enter:()=>{J.addFlag(O.Opening),Q.current.beforeEnter()},leave:()=>{J.addFlag(O.Closing),Q.current.beforeLeave()},idle:()=>{}}))),ee=f((e=>v(e,{enter:()=>{J.removeFlag(O.Opening),Q.current.afterEnter()},leave:()=>{J.removeFlag(O.Closing),Q.current.afterLeave()},idle:()=>{}}))),te=z((()=>{F("hidden"),q(E)}),M),re=(0,n.useRef)(!1);w({immediate:K,container:E,classes:W,direction:X,onStart:d((e=>{re.current=!0,te.onStart(E,e,Z)})),onStop:d((e=>{re.current=!1,te.onStop(E,e,ee),"leave"===e&&!H(te)&&(F("hidden"),q(E))}))});let ne=N,oe={ref:T};return K?ne={...ne,className:S(N.className,...W.current.enter,...W.current.enterFrom)}:re.current&&(ne.className=S(N.className,null==(o=E.current)?void 0:o.className),""===ne.className&&delete ne.className),n.createElement(U.Provider,{value:te},n.createElement(C,{value:v(I,{visible:O.Open,hidden:O.Closed})|J.flags},R({ourProps:oe,theirProps:ne,defaultTag:"div",features:G,visible:"visible"===I,name:"Transition.Child"})))})),K=I((function(e,t){let r=null!==(0,n.useContext)(B),o=null!==T();return n.createElement(n.Fragment,null,!r&&o?n.createElement(Q,{ref:t,...e}):n.createElement(Y,{ref:t,...e}))})),X=Object.assign(Q,{Child:K,Root:Q});var J=r(4848);function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}
2finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ee(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ee(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var te=n.createContext(),re=function(e){var t=e.children,r=Z((0,n.useState)(!1),2),o=r[0],i=r[1];return(0,J.jsx)(te.Provider,{value:{open:o,setOpen:i,toggleOpen:function(){i((function(e){return!e}))}},children:(0,J.jsx)("div",{className:"relative",children:t})})};re.Trigger=function(e){var t=e.children,r=(0,n.useContext)(te),o=r.open,i=r.setOpen,s=r.toggleOpen;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("div",{onClick:s,children:t}),o&&(0,J.jsx)("div",{className:"fixed inset-0 z-40",onClick:function(){return i(!1)}})]})},re.Content=function(e){var t=e.align,r=void 0===t?"right":t,o=e.width,i=void 0===o?"48":o,s=e.contentClasses,a=void 0===s?"py-1 bg-white":s,l=e.children,c=(0,n.useContext)(te),u=c.open,d=c.setOpen,f="origin-top";"left"===r?f="origin-top-left left-0":"right"===r&&(f="origin-top-right right-0");var p="";return"48"===i&&(p="w-48"),(0,J.jsx)(J.Fragment,{children:(0,J.jsx)(X,{as:n.Fragment,show:u,enter:"transition ease-out duration-200",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,J.jsx)("div",{className:"absolute z-50 mt-2 rounded-md shadow-lg ".concat(f," ").concat(p),onClick:function(){return d(!1)},children:(0,J.jsx)("div",{className:"rounded-md ring-1 ring-black ring-opacity-5 "+a,children:l})})})})},re.Link=function(e){var t=e.href,r=e.method,n=void 0===r?"post":r,i=e.as,s=void 0===i?"a":i,a=e.children;return(0,J.jsx)(o.N_,{href:t,method:n,as:s,className:"block w-full px-4 py-2 text-left text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out",children:a})};const ne=re},3487:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(6540);var n=r(8368),o=r(4848);function i(e){var t=e.href,r=e.active,i=e.children;return(0,o.jsx)(n.N_,{href:t,className:r?"inline-flex items-center px-1 pt-1 border-b-2 border-primary-400 text-sm font-medium leading-5 text-gray-900 focus:outline-none focus:border-primary-700 transition duration-150 ease-in-out":"inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out",children:i})}},8273:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(6540);var n=r(8368),o=r(4848);function i(e){var t=e.method,r=void 0===t?"get":t,i=e.as,s=void 0===i?"a":i,a=e.href,l=e.active,c=void 0!==l&&l,u=e.children;return(0,o.jsx)(n.N_,{method:r,as:s,href:a,className:"w-full flex items-start pl-3 pr-4 py-2 border-l-4 ".concat(c?"border-indigo-400 text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700":"border-transparent text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300"," text-base font-medium focus:outline-none transition duration-150 ease-in-out"),children:u})}},6906:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});r(6540);var n=r(4848);function o(e){var t=e.errors;return Object.keys(t).length>0&&(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("div",{className:"font-medium text-red-600",children:"Whoops! Something went wrong."}),(0,n.jsx)("ul",{className:"mt-3 list-disc list-inside text-sm text-red-600",children:Object.keys(t).map((function(e,r){return(0,n.jsx)("li",{children:t[e]},r)}))})]})}},2228:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(6540),o=r(8031),i=r(3745),s=r(3487),a=r(8273),l=r(8368),c=r(4848);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}
2finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function f(e){var t=e.auth,r=e.header,d=e.children,f=e.background,p=u((0,n.useState)(!1),2),h=p[0],m=p[1],g=t.user.first_name.slice(0,1).toLowerCase(),y=t.user.last_name.slice(0,1).toLowerCase(),v="";return null!=g&&void 0!==y&&(v="https://i2.wp.com/cdn.auth0.com/avatars/".concat(g).concat(y,".png?ssl=1")),(0,c.jsxs)("div",{className:"min-h-screen bg-".concat(f,"-100"),children:[(0,c.jsxs)("nav",{className:"bg-white border-b border-gray-100",children:[(0,c.jsx)("div",{className:"mx-auto container",children:(0,c.jsxs)("div",{className:"flex justify-between h-16",children:[(0,c.jsx)("div",{className:"flex w-full",children:(0,c.jsx)(l.N_,{href:"/",children:(0,c.jsx)(o.A,{className:"block h-9 w-auto text-gray-500"})})}),(0,c.jsxs)("div",{className:"hidden space-x-8 lg:-my-px lg:ml-10 lg:flex lg:items-center whitespace-nowrap",children:[(0,c.jsx)(s.A,{href:route("catalog"),active:route().current("catalog"),children:"Browse Collection"}),(0,c.jsx)(s.A,{href:route("tree-finder-dashboard"),active:route().current("tree-finder-dashboard"),children:"Tree Finder"}),(0,c.jsx)(s.A,{href:route("how-it-works"),children:"How it Works"}),(0,c.jsx)(s.A,{href:route("our-story"),children:"Our Story"}),(0,c.jsx)(s.A,{href:route("upload"),active:route().current("upload"),children:"Submit Tree"}),(0,c.jsx)("a",{href:route("blog"),className:route().current("blog")?"inline-flex items-center px-1 pt-1 border-b-2 border-primary-400 text-sm font-medium leading-5 text-gray-900 focus:outline-none focus:border-primary-700 transition duration-150 ease-in-out":"inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out",children:"Blog"})]}),(0,c.jsx)("div",{className:"hidden lg:flex lg:items-center lg:ml-6",children:(0,c.jsx)("div",{className:"ml-3 relative",children:(0,c.jsxs)(i.A,{children:[(0,c.jsx)(i.A.Trigger,{children:(0,c.jsxs)("span",{className:"inline-flex rounded-md",children:[g&&y?(0,c.jsx)("img",{className:"h-8 w-12 rounded-full",src:v}):t.user.first_name,(0,c.jsx)("button",{type:"button",className:"inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 bg-white hover:text-gray-700 focus:outline-none transition ease-in-out duration-150"})]})}),(0,c.jsxs)(i.A.Content,{children:[(0,c.jsx)(i.A.Link,{href:route("settings"),method:"get",as:"button",children:"Settings"}),(0,c.jsx)(i.A.Link,{href:route("listings"),method:"get",as:"button",children:"My Listings"}),t.user&&"Admin"==t.user.role&&(0,c.jsx)(i.A.Link,{href:route("admin_settings"),method:"get",as:"button",children:"Administration"}),(0,c.jsx)(i.A.Link,{href:route("logout"),method:"post",as:"button",children:"Log Out"})]})]})})}),(0,c.jsx)("div",{className:" flex items-center lg:hidden",children:(0,c.jsx)("button",{onClick:function(){return m((function(e){return!e}))},className:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out",children:(0,c.jsxs)("svg",{className:"h-6 w-6",stroke:"currentColor",fill:"none",viewBox:"0 0 24 24",children:[(0,c.jsx)("path",{className:h?"hidden":"inline-flex",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"}),(0,c.jsx)("path",{className:h?"inline-flex":"hidden",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})]})})})]})}),(0,c.jsxs)("div",{className:(h?"block":"hidden")+" lg:hidden",children:[(0,c.jsxs)("div",{className:"pt-2 pb-3 space-y-1",children:[(0,c.jsx)(a.A,{href:route("catalog"),active:route().current("catalog"),children:"Browse Collection"}),(0,c.jsx)(a.A,{href:route("tree-finder-dashboard"),active:route().current("tree-finder-dashboard"),
2children:"Tree Finder"}),(0,c.jsx)(a.A,{href:route("how-it-works"),children:"How it Works"}),(0,c.jsx)(a.A,{href:route("our-story"),children:"Our Story"}),(0,c.jsx)(a.A,{href:route("upload"),active:route().current("upload"),children:"Submit Tree"})]}),(0,c.jsxs)("div",{className:"pt-4 pb-1 border-t border-gray-200",children:[(0,c.jsxs)("div",{className:"px-4",children:[(0,c.jsx)("div",{className:"font-medium text-base text-gray-800",children:t.user.first_name}),(0,c.jsx)("div",{className:"font-medium text-sm text-gray-500",children:t.user.email})]}),(0,c.jsxs)("div",{className:"mt-3 space-y-1",children:[(0,c.jsx)(a.A,{href:route("listings"),active:route().current("listings"),children:"My Listings"}),t.user&&"Admin"==t.user.role&&(0,c.jsx)(i.A.Link,{href:route("admin_settings"),method:"get",as:"button",children:"Administration"}),(0,c.jsx)(a.A,{href:route("settings"),active:route().current("settings"),children:"Settings"}),(0,c.jsx)("a",{href:route("blog"),className:"w-full flex items-start pl-3 pr-4 py-2 border-l-4 border-transparent text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 text-base font-medium focus:outline-none transition duration-150 ease-in-out",children:"Blog"}),(0,c.jsx)(a.A,{method:"post",href:route("logout"),as:"button",children:"Log Out"})]})]})]})]}),r&&(0,c.jsx)("header",{className:"bg-white shadow",children:(0,c.jsx)("div",{className:"max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8",children:r})}),(0,c.jsx)("main",{children:d})]})}},6035:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(6540),o=r(2228),i=r(8031),s=r(8368),a=r(3487),l=r(8273),c=r(4848);function u(e){var t=e.method,r=void 0===t?"get":t,n=e.as,o=void 0===n?"a":n,i=e.href,s=e.active,a=void 0!==s&&s,l=e.children;return(0,c.jsx)("a",{method:r,as:o,href:i,className:"w-full flex items-start pl-3 pr-4 py-2 border-l-4 ".concat(a?"border-indigo-400 text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700":"border-transparent text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300"," text-base font-medium focus:outline-none transition duration-150 ease-in-out"),children:l})}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function p(e){e.header;var t=e.children,r=e.background,o=d((0,n.useState)(!1),2),f=o[0],p=o[1];return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("nav",{className:'"bg-white border-b border-gray-100"',children:[(0,c.jsx)("div",{className:"container mx-auto",children:(0,c.jsxs)("div",{className:"flex justify-between h-16",children:[(0,c.jsx)("div",{className:"flex w-full",children:(0,c.jsx)(s.N_,{href:"/",children:(0,c.jsx)(i.A,{className:"block h-9 w-auto text-gray-500"})})}),(0,c.jsxs)("div",{className:"hidden space-x-8 lg:-my-px lg:ml-10 lg:flex lg:items-center whitespace-nowrap",children:[(0,c.jsx)(a.A,{href:route("catalog"),active:route().current("catalog"),children:"Browse Collection"}),(0,c.jsx)(a.A,{href:route("tree-finder-dashboard"),active:route().current("tree-finder-dashboard"),children:"Tree Finder"}),(0,c.jsx)(a.A,{href:route("how-it-works"),active:route().current("how-it-works"),children:"How it Works"}),(0,c.jsx)(a.A,{href:route("our-story"),active:route().current("our-story"),children:"Our Story"}),(0,c.jsx)(a.A,{href:route("login"),active:route().current("login"),children:"Sign In"}),(0,c.jsx)(a.A,{href:route("register"),active:route().current("register"),children:"Get Started"}),(0,c.jsx)(a.A,{href:route("guest-sell"),active:route().current("guest-sell"),children:"Submit Tree"}),(0,c.jsx)("a",{href:route("blog"),className:route().current("blog")?"inline-flex items-center px-1 pt-1 border-b-2 border-primary-400 text-sm font-medium leading-5 text-gray-900 focus:outline-none focus:border-primary-700 transition duration-150 ease-in-out":"inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out",children:"Blog"})]}),(0,c.jsx)("div",{className:"hidden lg:flex lg:items-center lg:ml-6"}),(0,c.jsx)("div",{className:" flex items-center lg:hidden",children:(0,c.jsx)("button",{onClick:function(){return p((function(e){return!e}))},className:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out",children:(0,c.jsxs)("svg",{className:"h-6 w-6",stroke:"currentColor",fill:"none",viewBox:"0 0 24 24",children:[(0,c.jsx)("path",{className:f?"hidden":"inline-flex",
2strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"}),(0,c.jsx)("path",{className:f?"inline-flex":"hidden",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})]})})})]})}),(0,c.jsx)("div",{className:(f?"block":"hidden")+" lg:hidden",children:(0,c.jsxs)("div",{className:"pt-2 pb-3 space-y-1",children:[(0,c.jsx)(l.A,{href:route("catalog"),active:route().current("catalog"),children:"Browse Collection"}),(0,c.jsx)(l.A,{href:route("tree-finder-dashboard"),active:route().current("tree-finder-dashboard"),children:"Tree Finder"}),(0,c.jsx)(u,{href:route("how-it-works"),active:route().current("how-it-works"),children:"How it Works"}),(0,c.jsx)(u,{href:route("our-story"),active:route().current("our-story"),children:"Our Story"}),(0,c.jsx)(l.A,{href:route("login"),active:route().current("login"),children:"Sign In"}),(0,c.jsx)(l.A,{href:route("register"),active:route().current("register"),children:"Get Started"}),(0,c.jsx)(l.A,{href:route("upload"),active:route().current("upload"),children:"Submit Tree"}),(0,c.jsx)("a",{href:route("blog"),className:"w-full flex items-start pl-3 pr-4 py-2 border-l-4 border-transparent text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 text-base font-medium focus:outline-none transition duration-150 ease-in-out",children:"Blog"})]})})]}),(0,c.jsx)("div",{className:"min-h-screen flex flex-col items-start pt-6 sm:pt-0 bg-".concat(r,"-100"),children:(0,c.jsx)("div",{className:"items-start w-full",children:t})})]})}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function g(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}function y(e,t,r){return t=b(t),function(e,t){if(t&&("object"==h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,r||[],b(e).constructor):t.apply(e,r))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function x(e,t){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x(e,t)}const j=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),y(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props.gradient,t=(new Date).getFullYear();return(0,c.jsx)("div",{children:(0,c.jsxs)("section",{children:[e&&(0,c.jsx)("div",{className:"skew skew-top ml-for-radius",children:(0,c.jsx)("svg",{className:"h-8 md:h-12 lg:h-20 w-full text-gray-50",viewBox:"0 0 10 10",preserveAspectRatio:"none",children:(0,c.jsx)("polygon",{fill:"currentColor",points:"0 10 10 0 10 10"})})}),(0,c.jsx)("div",{className:"py-10 bg-gray-50 radius-for-skewed",children:(0,c.jsxs)("div",{className:"container mx-auto px-4",children:[(0,c.jsxs)("div",{className:"flex flex-wrap",children:[(0,c.jsxs)("div",{className:"w-full lg:w-1/2 justify-center ",children:[(0,c.jsx)("a",{href:"/",children:(0,c.jsx)("img",{className:"h-12",src:"/storage/re-tree-logo-new.png",alt:"logo"})}),(0,c.jsx)("p",{className:"mb-4 mt-4 max-w-sm text-gray-800 leading-loose",children:"RE-TREE makes it easy for property owners to buy, sell or relocate unique mature trees responsibly."}),(0,c.jsxs)("div",{children:[(0,c.jsx)("a",{target:"_blank",className:"inline-block w-10 mr-2 p-2 bg-gray-50 hover:bg-green-100 rounded",href:"https://www.facebook.com/ReTreeOrg/",children:(0,c.jsx)("img",{className:"mx-auto",src:"/storage/assets/facebook_logo.svg"})}),(0,c.jsx)("a",{target:"_blank",className:"inline-block w-10 mr-2 p-2 bg-gray-50 hover:bg-green-100 rounded",href:"https://www.instagram.com/re__tree__/",children:(0,c.jsx)("img",{className:"mx-auto",src:"/storage/assets/instagram_logo.webp"})}),(0,c.jsx)("a",{target:"_blank",className:"inline-block w-10 mr-2 p-2 bg-gray-50 hover:bg-green-100 rounded",href:"https://www.linkedin.com/company/re-tree/",children:(0,c.jsx)("img",{className:"mx-auto",src:"/storage/assets/linkedIn_logo.png"})})]}),(0,c.jsxs)("div",{children:[(0,c.jsx)("a",{target:"_blank",className:"inline-block w-36 p-2 bg-gray-50 hover:bg-green-100 rounded",href:"https://www.wbenc.org/",children:(0,c.jsx)("img",{className:"mx-auto",src:"/storage/assets/wbenc.jpg"})}),(0,c.jsx)("a",{target:"_blank",className:"inline-block w-36 sm:w-60 mr-2 p-2 bg-gray-50 hover:bg-green-100 rounded",href:"https://www.asm-isa.org/",children:(0,c.jsx)("img",{className:"mx-auto",src:"/storage/assets/isa-banner.jpeg"})})]})]}),(0,c.jsx)("div",{className:"w-full lg:w-1/2 flex flex-wrap justify-left",children:(0,c.jsxs)("div",{className:"w-full md:w-1/3 lg:w-auto mb-16 md:mb-0",children:[(0,c.jsx)("h3",{className:"mb-6 text-2xl font-bold text-black",children:"Resources"}),(0,c.jsxs)("ul",{className:"text-sm font-semibold",children:[(0,c.jsx)("li",{className:"mb-4",children:(0,c.jsx)("a",{className:"text-gray-800 hover:text-green-600",href:route("blog"),children:"Blog"})}),(0,c.jsx)("li",{className:"mb-4",children:(0,c.jsx)("a",{className:"text-gray-800 hover:text-green-600",href:route("commercial-program"),children:"Commercial Tree Revenue Program"})}),(0,c.jsx)("li",{className:"mb-4",children:(0,c.jsx)("a",{className:"text-gray-800 hover:text-green-600",href:route("health-care-services"),children:"Plant Health Care Services"})}),(0,c.jsx)("li",{className:"mb-4",children:(0,c.jsx)("a",{className:"text-gray-800 hover:text-green-600",href:route("contact-us"),children:"Contact Us"})}),(0,c.jsx)("li",{className:"mb-4",children:(0,c.jsx)("a",{className:"text-gray-800 hover:text-green-600",href:route("how-it-works"),children:"How It Works"})}),(0,c.jsx)("li",{className:"mb-4",children:(0,c.jsx)("a",{className:"text-gray-800 hover:text-green-600",href:route("privacy-policy"),children:"Terms of Use & Privacy"})})]})]})})]}),(0,c.jsxs)("p",{className:"text-center text-sm text-gray-400 border-t border-gray-100 pt-5 mt-2",children:["© ",t," RE-TREE App LLC. All rights reserved."]})]})})]})})}}])&&m(r.prototype,n),o&&m(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(n.Component);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E(n.key),n)}}function E(e){var t=function(e,t){if("object"!=w(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==w(t)?t:t+""}function O(e,t,r){return t=C(t),function(e,t){if(t&&("object"==w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,T()?Reflect.construct(t,r||[],C(e).constructor):t.apply(e,r))}function T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(T=function(){return!!e})()}
2function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}const k=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),O(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e,t,r=this.props,n=r.auth,i=r.children,s=null!==(e=this.props.gradient)&&void 0!==e&&e,a=null!==(t=this.props.background)&&void 0!==t?t:"white";return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"bg-white-100 bg-gray-100"}),null==n.user?(0,c.jsx)(p,{background:a,children:i}):(0,c.jsx)(o.A,{auth:n,background:a,children:i}),(0,c.jsx)(j,{gradient:s})]})}}])&&N(r.prototype,n),i&&N(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(n.Component)},1569:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(6906),o=r(6035),i=r(2505),s=r.n(i),a=r(6540),l=r(2099),c=r(9306),u=r(4848);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v(n.key),n)}}function p(e,t,r){return t=m(t),function(e,t){if(t&&("object"==d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,r||[],m(e).constructor):t.apply(e,r))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function y(e,t,r){return(t=v(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}const b=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return y(e=p(this,t,[].concat(n)),"state",{form:{email:"",message:"",recaptcha:""},errors:{}}),y(e,"handleUpdate",(function(t,r){var n=e.state.form;n[t]=r,e.setState({form:n})})),y(e,"handleRecaptcha",(function(t){var r=e.state.form;r.recaptcha=t,e.setState({form:r})})),y(e,"submit",(function(){var t=e.state.form;s().post(route("delete.account.send"),t).then((function(t){e.setState({errors:{},form:{email:"",message:"",recaptcha:""}}),(0,l.oR)("Message Sent!")})).catch((function(t){var r=t.response.data.errors;e.setState({errors:r})}))})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(t,e),r=t,i=[{key:"render",value:function(){var e=this,t=this.props.auth,r=this.state.form,i=r.email,s=r.message,a=this.state.errors;return(0,u.jsxs)(o.A,{auth:t,children:[(0,u.jsx)("div",{className:"container mx-auto my-8",children:(0,u.jsx)("div",{className:"mb-4",children:(0,u.jsx)("div",{className:"bg-white",children:(0,u.jsx)("div",{className:"max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-12 lg:px-8",children:(0,u.jsx)("div",{className:"grid grid-cols-1 gap-16",children:(0,u.jsx)("div",{className:"bg-white py-6 px-4 overflow-hidden sm:px-6 lg:px-8 lg:py-6",children:(0,u.jsxs)("div",{className:"relative max-w-xl mx-auto",children:[(0,u.jsxs)("svg",{className:"absolute left-full transform translate-x-1/2",width:"404",height:"404",fill:"none",viewBox:"0 0 404 404",children:[(0,u.jsx)("defs",{children:(0,u.jsx)("pattern",{id:"85737c0e-0916-41d7-917f-596dc7edfa27",x:"0",y:"0",width:"20",height:"20",patternUnits:"userSpaceOnUse",children:(0,u.jsx)("rect",{className:"text-gray-200",x:"0",y:"0",width:"4",height:"4",fill:"
2currentColor"})})}),(0,u.jsx)("rect",{width:"404",height:"404",fill:"url(#85737c0e-0916-41d7-917f-596dc7edfa27)"})]}),(0,u.jsxs)("svg",{className:"absolute right-full bottom-0 transform -translate-x-1/2",width:"404",height:"404",fill:"none",viewBox:"0 0 404 404",children:[(0,u.jsx)("defs",{children:(0,u.jsx)("pattern",{id:"85737c0e-0916-41d7-917f-596dc7edfa27",x:"0",y:"0",width:"20",height:"20",patternUnits:"userSpaceOnUse",children:(0,u.jsx)("rect",{className:"text-gray-200",x:"0",y:"0",width:"4",height:"4",fill:"currentColor"})})}),(0,u.jsx)("rect",{width:"404",height:"404",fill:"url(#85737c0e-0916-41d7-917f-596dc7edfa27)"})]}),(0,u.jsxs)("div",{className:"text-center",children:[(0,u.jsx)("h1",{className:"text-3xl leading-9 font-extrabold tracking-tight text-gray-900 sm:text-4xl sm:leading-10",children:"Delete Account"}),(0,u.jsxs)("p",{className:"mt-4 text-lg leading-6 text-gray-500",children:["We're sad to see you go! You're invited back if you change your mind!",(0,u.jsxs)("span",{children:[" ",(0,u.jsx)("a",{href:"tel:5175455067",className:"underline decoration-sky-500 text-sky-500",children:"(517) 545-5067"})," "]})]})]}),(0,u.jsxs)("div",{role:"form",children:[(0,u.jsxs)("div",{className:"screen-reader-response",children:[(0,u.jsx)("p",{role:"status","aria-live":"polite","aria-atomic":"true"}),(0,u.jsx)("ul",{})]}),(0,u.jsx)(n.A,{errors:a}),(0,u.jsxs)("form",{className:"init","data-status":"init",children:[(0,u.jsxs)("div",{className:"sm:col-span-2",children:[(0,u.jsx)("label",{className:"block text-sm mt-4 font-medium leading-5 text-gray-700",htmlFor:"email",children:"Email"}),(0,u.jsx)("div",{className:"mt-4",children:(0,u.jsx)("input",{type:"email",name:"email",value:i,size:"40",className:"py-3 px-4 block w-full shadow-sm border-grey-900 border rounded-md",id:"email","aria-required":"true",onChange:function(t){e.handleUpdate("email",t.target.value)},"aria-invalid":"false"})})]}),(0,u.jsxs)("div",{className:"sm:col-span-2",children:[(0,u.jsx)("label",{className:"block text-sm font-medium mt-4 leading-5 text-gray-700",htmlFor:"message",children:"Message"}),(0,u.jsx)("div",{className:"mt-4 relative rounded-md shadow-sm",children:(0,u.jsx)("textarea",{name:"message",cols:"40",rows:"10",className:"mb-2 py-3 px-4 block mb-4 w-full shadow-sm border-grey-900 border rounded-md",id:"message","aria-required":"true",value:s,placeholder:"I would like to delete my account!",onChange:function(t){e.handleUpdate("message",t.target.value)},"aria-invalid":"false"})})]}),(0,u.jsx)(c.A,{sitekey:"6LeUTLQoAAAAAJQAY55K1KcpG5MEePk9r6M9V-G4",onChange:this.handleRecaptcha}),(0,u.jsxs)("div",{className:"sm:col-span-2",children:[(0,u.jsx)("br",{}),(0,u.jsx)("input",{type:"button",onClick:this.submit,value:"Let's Talk",className:"w-full inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-green-600 transition ease-in-out duration-150"})]})]})]})]})})})})})})}),(0,u.jsx)(l.N9,{hideProgressBar:!0})]})}}],i&&f(r.prototype,i),a&&f(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,a}(a.Component)},4146:(e,t,r)=>{"use strict";var n=r(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||o}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var s=u(r);d&&(s=s.concat(d(r)));for(var a=l(t),m=l(r),g=0;g<s.length;++g){var y=s[g];if(!(i[y]||n&&n[y]||m&&m[y]||a&&a[y])){var v=f(r,y);try{c(t,y,v)}catch(e){}}}}return t}},2694:(e,t,r)=>{"use strict";var n=r(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,s){if(s!==n){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
vendor: 9,920 bytes, line 2
2:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},5556:(e,t,r)=>{e.exports=r(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9306:(e,t,r)=>{"use strict";r.d(t,{A:()=>j});var n=r(6540),o=r(5556),i=r.n(o),s=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}var u=function(e){var t,r;function o(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(l(t)),t.handleErrored=t.handleErrored.bind(l(t)),t.handleChange=t.handleChange.bind(l(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(l(t)),t}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,c(t,r);var i=o.prototype;return i.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},i.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},i.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},i.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},i.executeAsync=function(){var e=this;return new Promise((function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()}))},i.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},i.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},i.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},i.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},i.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},i.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},i.componentDidMount=function(){this.explicitRender()},i.componentDidUpdate=function(){this.explicitRender()},i.handleRecaptchaRef=function(e){this.captcha=e},i.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,s));return n.createElement("div",a({},t,{ref:this.handleRecaptchaRef}))},o}(n.Component);u.displayName="ReCAPTCHA",u.propTypes={sitekey:i().string.isRequired,onChange:i().func,grecaptcha:i().object,theme:i().oneOf(["dark","light"]),type:i().oneOf(["image","audio"]),tabindex:i().number,onExpired:i().func,onErrored:i().func,size:i().oneOf(["compact","normal","invisible"]),stoken:i().string,hl:i().string,badge:i().oneOf(["bottomright","bottomleft","inline"]),isolated:i().bool},u.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var d=r(4146),f=r.n(d);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}var h={},m=0;var g="onloadcallback";function y(){return"undefined"!=typeof window&&window.recaptchaOptions||{}}const v=(b=function(){var e=y(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+g+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+g+"&render=explicit"},x=(x={callbackName:g,globalName:"grecaptcha",attributes:y().nonce?{nonce:y().nonce}:{}})||{},function(e){var t=e.displayName||e.name||"Component",r=function(t){var r,o;function i(e,r){var n;return(n=t.call(this,e,r)||this).state={},n.__scriptURL="",n}o=t,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var s=i.prototype;return s.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+m++),this.__scriptLoaderID},s.setupScriptURL=function(){return this.__scriptURL="function"==typeof b?b():b,this.__scriptURL},s.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},s.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=h[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[x.callbackName]},s.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=x,o=n.globalName,i=n.callbackName,s=n.scriptId;if(o&&void 0!==window[o]&&(h[t]={loaded:!0,observers:{}}),h[t]){var a=h[t];return a&&(a.loaded||a.errored)?void this.asyncScriptLoaderHandleLoad(a):void(a.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var l={};l[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},h[t]={loaded:!1,observers:l};var c=document.createElement("script");for(var u in c.src=t,c.async=!0,x.attributes)c.setAttribute(u,x.attributes[u]);s&&(c.id=s);var d=function(e){if(h[t]){var r=h[t].observers;for(var n in r)e(r[n])&&delete r[n]}};i&&"undefined"!=typeof window&&(window[i]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),c.onload=function(){var e=h[t];e&&(e.loaded=!0,d((function(t){return!i&&(t(e),!0)})))},c.onerror=function(){var e=h[t];e&&(e.errored=!0,d((function(t){return t(e),!0})))},document.body.appendChild(c)},s.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===x.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=h[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===x.removeOnUnmount&&delete h[e])},s.render=function(){var t=x.globalName,r=this.props,o=(r.asyncScriptOnLoad,r.forwardedRef),i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(r,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(i[t]=void 0!==window[t]?window[t]:void 0),i.ref=o,(0,n.createElement)(e,i)},i}(n.Component),o=(0,n.forwardRef)((function(e,t){return(0,n.createElement)(r,p({},e,{forwardedRef:t}))}));return o.displayName="AsyncScriptLoader("+t+")",o.propTypes={asyncScriptOnLoad:i().func},f()(o,e)})(u);var b,x;const j=v},2799:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case i:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function w(e){return j(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||j(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return j(e)===c},t.isContextProvider=function(e){return j(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return j(e)===f},t.isFragment=function(e){return j(e)===i},t.isLazy=function(e){return j(e)===g},t.isMemo=function(e){return j(e)===m},t.isPortal=function(e){return j(e)===o},t.isProfiler=function(e){return j(e)===a},t.isStrictMode=function(e){return j(e)===s},t.isSuspense=function(e){return j(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===x||e.$$typeof===y)},t.typeOf=j}
2,4363:(e,t,r)=>{"use strict";e.exports=r(2799)},2099:(e,t,r)=>{"use strict";r.d(t,{N9:()=>O,oR:()=>I});var n=r(6540);function o(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=o(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const i=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=o(e))&&(n&&(n+=" "),n+=t);return n},s=e=>"number"==typeof e&&!isNaN(e),a=e=>"string"==typeof e,l=e=>"function"==typeof e,c=e=>a(e)||l(e)?e:null,u=e=>(0,n.isValidElement)(e)||a(e)||l(e)||s(e);function d(e){let{enter:t,exit:r,appendPosition:o=!1,collapse:i=!0,collapseDuration:s=300}=e;return function(e){let{children:a,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:f}=e;const p=o?`${t}--${l}`:t,h=o?`${r}--${l}`:r,m=(0,n.useRef)(0);return(0,n.useLayoutEffect)((()=>{const e=d.current,t=p.split(" "),r=n=>{n.target===d.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===m.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)}),[]),(0,n.useEffect)((()=>{const e=d.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,r){void 0===r&&(r=300);const{scrollHeight:n,style:o}=e;requestAnimationFrame((()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame((()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,r)}))}))}(e,u,s):u()};f||(c?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[f]),n.createElement(n.Fragment,null,a)}}function f(e,t){return null!=e?{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 p={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const r=this.list.get(e).filter((e=>e!==t));return this.list.set(e,r),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const r=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(r)}))}},h=e=>{let{theme:t,type:r,...o}=e;return n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${r})`,...o})},m={info:function(e){return n.createElement(h,{...e},n.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 n.createElement(h,{...e},n.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 n.createElement(h,{...e},n.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 n.createElement(h,{...e},n.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 n.createElement("div",{className:"Toastify__spinner"})}};function g(e){const[,t]=(0,n.useReducer)((e=>
2e+1),0),[r,o]=(0,n.useState)([]),i=(0,n.useRef)(null),d=(0,n.useRef)(new Map).current,h=e=>-1!==r.indexOf(e),g=(0,n.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:h,getToast:e=>d.get(e)}).current;function y(e){let{containerId:t}=e;const{limit:r}=g.props;!r||t&&g.containerId!==t||(g.count-=g.queue.length,g.queue=[])}function v(e){o((t=>null==e?[]:t.filter((t=>t!==e))))}function b(){const{toastContent:e,toastProps:t,staleId:r}=g.queue.shift();j(e,t,r)}function x(e,r){let{delay:o,staleId:h,...y}=r;if(!u(e)||function(e){return!i.current||g.props.enableMultiContainer&&e.containerId!==g.props.containerId||d.has(e.toastId)&&null==e.updateId}(y))return;const{toastId:x,updateId:w,data:N}=y,{props:E}=g,O=()=>v(x),T=null==w;T&&g.count++;const C={...E,style:E.toastStyle,key:g.toastKey++,...Object.fromEntries(Object.entries(y).filter((e=>{let[t,r]=e;return null!=r}))),toastId:x,updateId:w,data:N,closeToast:O,isIn:!1,className:c(y.className||E.toastClassName),bodyClassName:c(y.bodyClassName||E.bodyClassName),progressClassName:c(y.progressClassName||E.progressClassName),autoClose:!y.isLoading&&(S=y.autoClose,k=E.autoClose,!1===S||s(S)&&S>0?S:k),deleteToast(){const e=f(d.get(x),"removed");d.delete(x),p.emit(4,e);const r=g.queue.length;if(g.count=null==x?g.count-g.displayedToast:g.count-1,g.count<0&&(g.count=0),r>0){const e=null==x?g.props.limit:1;if(1===r||1===e)g.displayedToast++,b();else{const t=e>r?r:e;g.displayedToast=t;for(let e=0;e<t;e++)b()}}else t()}};var S,k;C.iconOut=function(e){let{theme:t,type:r,isLoading:o,icon:i}=e,c=null;const u={theme:t,type:r};return!1===i||(l(i)?c=i(u):(0,n.isValidElement)(i)?c=(0,n.cloneElement)(i,u):a(i)||s(i)?c=i:o?c=m.spinner():(e=>e in m)(r)&&(c=m[r](u))),c}(C),l(y.onOpen)&&(C.onOpen=y.onOpen),l(y.onClose)&&(C.onClose=y.onClose),C.closeButton=E.closeButton,!1===y.closeButton||u(y.closeButton)?C.closeButton=y.closeButton:!0===y.closeButton&&(C.closeButton=!u(E.closeButton)||E.closeButton);let _=e;(0,n.isValidElement)(e)&&!a(e.type)?_=(0,n.cloneElement)(e,{closeToast:O,toastProps:C,data:N}):l(e)&&(_=e({closeToast:O,toastProps:C,data:N})),E.limit&&E.limit>0&&g.count>E.limit&&T?g.queue.push({toastContent:_,toastProps:C,staleId:h}):s(o)?setTimeout((()=>{j(_,C,h)}),o):j(_,C,h)}function j(e,t,r){const{toastId:n}=t;r&&d.delete(r);const i={content:e,props:t};d.set(n,i),o((e=>[...e,n].filter((e=>e!==r)))),p.emit(4,f(i,null==i.props.updateId?"added":"updated"))}return(0,n.useEffect)((()=>(g.containerId=e.containerId,p.cancelEmit(3).on(0,x).on(1,(e=>i.current&&v(e))).on(5,y).emit(2,g),()=>{d.clear(),p.emit(3,g)})),[]),(0,n.useEffect)((()=>{g.props=e,g.isToastActive=h,g.displayedToast=r.length})),{getToastToRender:function(t){const r=new Map,n=Array.from(d.values());return e.newestOnTop&&n.reverse(),n.forEach((e=>{const{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)})),Array.from(r,(e=>t(e[0],e[1])))},containerRef:i,isToastActive:h}}function y(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function v(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function b(e){const[t,r]=(0,n.useState)(!1),[o,i]=(0,n.useState)(!1),s=(0,n.useRef)(null),a=(0,n.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,n.useRef)(e),{autoClose:u,pauseOnHover:d,closeToast:f,onClick:p,closeOnClick:h}=e;function m(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),a.didMove=!1,document.addEventListener("mousemove",j),document.addEventListener("mouseup",w),document.addEventListener("touchmove",j),document.addEventListener("touchend",w);const r=s.current;a.canCloseOnClick=!0,a.canDrag=!0,a.boundingRect=r.getBoundingClientRect(),r.style.transition="",a.x=y(t.nativeEvent),a.y=v(t.nativeEvent),"x"===e.draggableDirection?(a.start=a.x,a.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(a.start=a.y,a.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function g(t){if(a.boundingRect){const{top:r,bottom:n,left:o,right:i}=a.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&a.x>=o&&a.x<=i&&a.y>
2=r&&a.y<=n?x():b()}}function b(){r(!0)}function x(){r(!1)}function j(r){const n=s.current;a.canDrag&&n&&(a.didMove=!0,t&&x(),a.x=y(r),a.y=v(r),a.delta="x"===e.draggableDirection?a.x-a.start:a.y-a.start,a.start!==a.x&&(a.canCloseOnClick=!1),n.style.transform=`translate${e.draggableDirection}(${a.delta}px)`,n.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function w(){document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",w),document.removeEventListener("touchmove",j),document.removeEventListener("touchend",w);const t=s.current;if(a.canDrag&&a.didMove&&t){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,n.useEffect)((()=>{c.current=e})),(0,n.useEffect)((()=>(s.current&&s.current.addEventListener("d",b,{once:!0}),l(e.onOpen)&&e.onOpen((0,n.isValidElement)(e.children)&&e.children.props),()=>{const e=c.current;l(e.onClose)&&e.onClose((0,n.isValidElement)(e.children)&&e.children.props)})),[]),(0,n.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||x(),window.addEventListener("focus",b),window.addEventListener("blur",x)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",b),window.removeEventListener("blur",x))})),[e.pauseOnFocusLoss]);const N={onMouseDown:m,onTouchStart:m,onMouseUp:g,onTouchEnd:g};return u&&d&&(N.onMouseEnter=x,N.onMouseLeave=b),h&&(N.onClick=e=>{p&&p(e),a.canCloseOnClick&&f()}),{playToast:b,pauseToast:x,isRunning:t,preventExitTransition:o,toastRef:s,eventHandlers:N}}function x(e){let{closeToast:t,theme:r,ariaLabel:o="close"}=e;return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":o},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.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"})))}function j(e){let{delay:t,isRunning:r,closeToast:o,type:s="default",hide:a,className:c,style:u,controlledProgress:d,progress:f,rtl:p,isIn:h,theme:m}=e;const g=a||d&&0===f,y={...u,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused",opacity:g?0:1};d&&(y.transform=`scaleX(${f})`);const v=i("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${s}`,{"Toastify__progress-bar--rtl":p}),b=l(c)?c({rtl:p,type:s,defaultClassName:v}):i(v,c);return n.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:b,style:y,[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]:d&&f<1?null:()=>{h&&o()}})}const w=e=>{const{isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:s}=b(e),{closeButton:a,children:c,autoClose:u,onClick:d,type:f,hideProgressBar:p,closeToast:h,transition:m,position:g,className:y,style:v,bodyClassName:w,bodyStyle:N,progressClassName:E,progressStyle:O,updateId:T,role:C,progress:S,rtl:k,toastId:_,deleteToast:R,isIn:L,isLoading:A,iconOut:P,closeOnClick:I,theme:F}=e,M=i("Toastify__toast",`Toastify__toast-theme--${F}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":I}),$=l(y)?y({rtl:k,position:g,type:f,defaultClassName:M}):i(M,y),B=!!S||!u,D={closeToast:h,type:f,theme:F};let U=null;return!1===a||(U=l(a)?a(D):(0,n.isValidElement)(a)?(0,n.cloneElement)(a,D):x(D)),n.createElement(m,{isIn:L,done:R,position:g,preventExitTransition:r,nodeRef:o},n.createElement("div",{id:_,onClick:d,className:$,...s,style:v,ref:o},n.createElement("div",{...L&&{role:C},className:l(w)?w({type:f}):i("Toastify__toast-body",w),style:N},null!=P&&n.createElement("div",{className:i("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},P),n.createElement("div",null,c)),U,n.createElement(j,{...T&&!B?{key:`pb-${T}`}:{},rtl:k,theme:F,delay:u,isRunning:t,isIn:L,closeToast:h,hide:p,type:f,style:O,className:E,
2controlledProgress:B,progress:S||0})))},N=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},E=d(N("bounce",!0)),O=(d(N("slide",!0)),d(N("zoom")),d(N("flip")),(0,n.forwardRef)(((e,t)=>{const{getToastToRender:r,containerRef:o,isToastActive:s}=g(e),{className:a,style:u,rtl:d,containerId:f}=e;function p(e){const t=i("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return l(a)?a({position:e,rtl:d,defaultClassName:t}):i(t,c(a))}return(0,n.useEffect)((()=>{t&&(t.current=o.current)}),[]),n.createElement("div",{ref:o,className:"Toastify",id:f},r(((e,t)=>{const r=t.length?{...u}:{...u,pointerEvents:"none"};return n.createElement("div",{className:p(e),style:r,key:`container-${e}`},t.map(((e,r)=>{let{content:o,props:i}=e;return n.createElement(w,{...i,isIn:s(i.toastId),style:{...i.style,"--nth":r+1,"--len":t.length},key:`toast-${i.key}`},o)})))})))})));O.displayName="ToastContainer",O.defaultProps={position:"top-right",transition:E,autoClose:5e3,closeButton:x,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let T,C=new Map,S=[],k=1;function _(){return""+k++}function R(e){return e&&(a(e.toastId)||s(e.toastId))?e.toastId:_()}function L(e,t){return C.size>0?p.emit(0,e,t):S.push({content:e,options:t}),t.toastId}function A(e,t){return{...t,type:t&&t.type||e,toastId:R(t)}}function P(e){return(t,r)=>L(t,A(e,r))}function I(e,t){return L(e,A("default",t))}I.loading=(e,t)=>
2L(e,A("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),I.promise=function(e,t,r){let n,{pending:o,error:i,success:s}=t;o&&(n=a(o)?I.loading(o,r):I.loading(o.render,{...r,...o}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(e,t,o)=>{if(null==t)return void I.dismiss(n);const i={type:e,...c,...r,data:o},s=a(t)?{render:t}:t;return n?I.update(n,{...i,...s}):I(s.render,{...i,...s}),o},d=l(e)?e():e;return d.then((e=>u("success",s,e))).catch((e=>u("error",i,e))),d},I.success=P("success"),I.info=P("info"),I.error=P("error"),I.warning=P("warning"),I.warn=I.warning,I.dark=(e,t)=>L(e,A("default",{theme:"dark",...t})),I.dismiss=e=>{C.size>0?p.emit(1,e):S=S.filter((t=>null!=e&&t.options.toastId!==e))},I.clearWaitingQueue=function(e){return void 0===e&&(e={}),p.emit(5,e)},I.isActive=e=>{let t=!1;return C.forEach((r=>{r.isToastActive&&r.isToastActive(e)&&(t=!0)})),t},I.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const r=function(e,t){let{containerId:r}=t;const n=C.get(r||T);return n&&n.getToast(e)}(e,t);if(r){const{props:n,content:o}=r,i={delay:100,...n,...t,toastId:t.toastId||e,updateId:_()};i.toastId!==e&&(i.staleId=e);const s=i.render||o;delete i.render,L(s,i)}}),0)},I.done=e=>{I.update(e,{progress:1})},I.onChange=e=>(p.on(4,e),()=>{p.off(4,e)}),I.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},I.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},p.on(2,(e=>{T=e.containerId||e,C.set(T,e),S.forEach((e=>{p.emit(0,e.content,e.options)})),S=[]})).on(3,(e=>{C.delete(e.containerId||e),0===C.size&&p.off(0).off(1).off(5)}))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.