PageSourceSearch

https://beinbr.com/assets/index-BLKRFDSI.js

js beinbr.com collected 2026-10-02 01:24:00 UTC 587,632 bytes, 162 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Index-DyB5HCy1.js","assets/WhatsAppButton-CpHeau2X.js","assets/index-DJpUxsIH.js","assets/button-Ct61uh-i.js","assets/arrow-left-Bhydx5GS.js","assets/search-BsJCFE8D.js","assets/MediaSection-gJjJ0fbP.js","assets/arrow-right-C-woKn_L.js","assets/useMediaMentions-DFi20MuF.js","assets/useMutation-D6SJaGsu.js","assets/skeleton-NyhdGcJx.js","assets/ContactSection-bnzXlz0r.js","assets/FormBase-9juOKQ8x.js","assets/user-BsLgkqr0.js","assets/phone-wvN0WU8Y.js","assets/users-NAYAgMj3.js","assets/list-L9UgMlND.js","assets/check-DsF94Bhj.js","assets/chevron-up-BfH8JIIi.js","assets/card-BLIFRdVb.js","assets/trash-2-CL19WbG3.js","assets/wrench-DE_tO0EF.js","assets/shield-C6Iv1nIn.js","assets/coffee-5pA_9zbQ.js","assets/calendar-DBALc-Pf.js","assets/message-square-CwEGhfBl.js","assets/file-text-DjZRpiHT.js","assets/EscritoriosSobMedida-BgI2x1ID.js","assets/pen-line-3CXRmqQK.js","assets/badge-PlAyE15B.js","assets/separator-CdJdF8US.js","assets/layout-template-UQyMji-B.js","assets/aspect-ratio-CPie7Qjr.js","assets/clock-Bl0MaPT2.js","assets/external-link-Dhr_RJy8.js","assets/breadcrumbSchema-CJchZEzJ.js","assets/QuemSomos-Cl0BfZlP.js","assets/award-Dv5k4HKY.js","assets/eye-Cth7zWxo.js","assets/star-
1B7Zi5Y91.js","assets/Contato-DyA7niEd.js","assets/NossasUnidades-B5B5JBok.js","assets/Blog-BwqpDBLq.js","assets/blogHelpers-Bug2kv-a.js","assets/chevron-left-DIDsna2w.js","assets/chevron-right-oZM7uQ8V.js","assets/BlogPost-BGRjBwA_.js","assets/Coworking-1RE2lDD6.js","assets/CoworkingDayPass-a768dvr9.js","assets/PriceCard-pLp7wS0M.js","assets/lock-Ddxi_FeR.js","assets/monitor-DrniNR24.js","assets/presentation-DzCGQmci.js","assets/CoworkingPinheiros-SPYn0o07.js","assets/CoworkingDetails-CiAe9SvZ.js","assets/lightbox-Ci9aMoBS.js","assets/sheet-BzuvcDGX.js","assets/wifi-Dx4mG0VB.js","assets/CoworkingBrooklin-DGn4j_ch.js","assets/Eventos-B8x0JB4m.js","assets/AuditorioGallery-DXXj0u3f.js","assets/LPAuditorio-D5cJIDS9.js","assets/circle-check-big-C2e7zlMQ.js","assets/EnderecoFiscal-DatkWcE0.js","assets/percent-DRuaYwZg.js","assets/accordion-CB-0tBpI.js","assets/index-BBN_A-bH.js","assets/index-B1YCcnrD.js","assets/FiscalAddress-DqQB8weg.js","assets/CaseMGI-DjZdMq_S.js","assets/EscritorioVirtual-Bt4feOt-.js","assets/SalasDeReuniao-CFw2qs0j.js","assets/AluguelDeEscritorio-DhrNs4We.js","assets/BuiltToSuit-BPImr2-j.js","assets/Login-DkUD0uwd.js","assets/input-CdfGE4AD.js","assets/label-r-bL42Zq.js","assets/alert-DmVbQnm4.js","assets/loader-circle-Dt64krhf.js","assets/OAuthConsent-CFpddngQ.js","assets/BlogAdmin-CCV_HFRZ.js","assets/switch-BigbSI4Y.js","assets/alert-dialog-DQ4-G0Ml.js","assets/BlogAdminLogin-CQO7ofCc.js","assets/BlogAdminPostEdit-CXb5Og3-.js","assets/ImageUpload-DxBRe-Wf.js","assets/MediaAdmin-DzeaIHCN.js","assets/MediaMentionEdit-DmOX_X7J.js","assets/ProtectedRoute-BfCG4OjT.js"])))=>i.map(i=>d[i]);
2var QO=Object.defineProperty;var C0=e=>{throw TypeError(e)};var JO=(e,t,n)=>t in e?QO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qr=(e,t,n)=>JO(e,typeof t!="symbol"?t+"":t,n),mh=(e,t,n)=>t.has(e)||C0("Cannot "+n);var W=(e,t,n)=>(mh(e,t,"read from private field"),n?n.call(e):t.get(e)),Le=(e,t,n)=>t.has(e)?C0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),be=(e,t,n,r)=>(mh(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Nt=(e,t,n
vendor: 5,888 bytes, lines 2-10
2)=>(mh(e,t,"access private method"),n);var Ku=(e,t,n,r)=>({set _(i){be(e,t,i,n)},get _(){return W(e,t,r)}});function YO(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Ba=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i1={exports:{}},Ed={},s1={exports:{}},Ce={};/**
3 * @license React
4 * react.production.min.js
5 *
6 * Copyright (c) Facebook, Inc. and its affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var Yl=Symbol.for("react.element"),XO=Symbol.for("react.portal"),ZO=Symbol.for("react.fragment"),eI=Symbol.for("react.strict_mode"),tI=Symbol.for("react.profiler"),nI=Symbol.for("react.provider"),rI=Symbol.for("react.context"),iI=Symbol.for("react.forward_ref"),sI=Symbol.for("react.suspense"),oI=Symbol.for("react.memo"),aI=Symbol.for("react.lazy"),k0=Symbol.iterator;function lI(e){return e===null||typeof e!="object"?null:(e=k0&&e[k0]||e["@@iterator"],typeof e=="function"?e:null)}var o1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},a1=Object.assign,l1={};function ha(e,t,n){this.props=e,this.context=t,this.refs=l1,this.updater=n||o1}ha.prototype.isReactComponent={};ha.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")};ha.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function u1(){}u1.prototype=ha.prototype;function Ng(e,t,n){this.props=e,this.context=t,this.refs=l1,this.updater=n||o1}var $g=Ng.prototype=new u1;$g.constructor=Ng;a1($g,ha.prototype);$g.isPureReactComponent=!0;var A0=Array.isArray,c1=Object.prototype.hasOwnProperty,Dg={current:null},d1={key:!0,ref:!0,__self:!0,__source:!0};function f1(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)c1.call(t,r)&&!d1.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var d=Array(u),f=0;f<u;f++)d[f]=arguments[f+2];i.children=d}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:Yl,type:e,key:o,ref:l,props:i,_owner:Dg.current}}function uI(e,t){return{$$typeof:Yl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function jg(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yl}function cI(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var R0=/\/+/g;function vh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?cI(""+e.key):t.toString(36)}function Ec(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Yl:case XO:l=!0}}if(l)return l=e,i=i(l),e=r===""?"."+vh(l,0):r,A0(i)?(n="",e!=null&&(n=e.replace(R0,"$&/")+"/"),Ec(i,t,n,"",function(f){return f})):i!=null&&(jg(i)&&(i=uI(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(R0,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=r===""?".":r+":",A0(e))for(var u=0;u<e.length;u++){o=e[u];var d=r+vh(o,u);l+=Ec(o,t,n,d,i)}else if(d=lI(e),typeof d=="function")for(e=d.call(e),u=0;!(o=e.next()).done;)o=o.value,d=r+vh(o,u++),l+=Ec(o,t,n,d,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Gu(e,t,n){if(e==null)return e;var r=[],i=0;return Ec(e,r,"","",function(o){return t.call(n,o,i++)}),r}function dI(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Kt={current:null},Sc={transition:null},fI={ReactCurrentDispatcher:Kt,ReactCurrentBatchConfig:Sc,ReactCurrentOwner:Dg};function h1(){throw Error("act(...) is not supported in production builds of React.")}Ce.Children={map:Gu,forEach:function(e,t,n){Gu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gu(e,function(){t++}),t},toArray:function(e){return Gu(e,function(t){return t})||[]},only:function(e){if(!jg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ce.Component=ha;Ce.Fragment=ZO;Ce.Profiler=tI;Ce.PureComponent=Ng;Ce.StrictMode=eI;Ce.Suspense=sI;
vendor: 4,024 bytes, lines 10-26
10Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fI;Ce.act=h1;Ce.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=a1({},e.props),i=e.key,o=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,l=Dg.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(d in t)c1.call(t,d)&&!d1.hasOwnProperty(d)&&(r[d]=t[d]===void 0&&u!==void 0?u[d]:t[d])}var d=arguments.length-2;if(d===1)r.children=n;else if(1<d){u=Array(d);for(var f=0;f<d;f++)u[f]=arguments[f+2];r.children=u}return{$$typeof:Yl,type:e.type,key:i,ref:o,props:r,_owner:l}};Ce.createContext=function(e){return e={$$typeof:rI,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:nI,_context:e},e.Consumer=e};Ce.createElement=f1;Ce.createFactory=function(e){var t=f1.bind(null,e);return t.type=e,t};Ce.createRef=function(){return{current:null}};Ce.forwardRef=function(e){return{$$typeof:iI,render:e}};Ce.isValidElement=jg;Ce.lazy=function(e){return{$$typeof:aI,_payload:{_status:-1,_result:e},_init:dI}};Ce.memo=function(e,t){return{$$typeof:oI,type:e,compare:t===void 0?null:t}};Ce.startTransition=function(e){var t=Sc.transition;Sc.transition={};try{e()}finally{Sc.transition=t}};Ce.unstable_act=h1;Ce.useCallback=function(e,t){return Kt.current.useCallback(e,t)};Ce.useContext=function(e){return Kt.current.useContext(e)};Ce.useDebugValue=function(){};Ce.useDeferredValue=function(e){return Kt.current.useDeferredValue(e)};Ce.useEffect=function(e,t){return Kt.current.useEffect(e,t)};Ce.useId=function(){return Kt.current.useId()};Ce.useImperativeHandle=function(e,t,n){return Kt.current.useImperativeHandle(e,t,n)};Ce.useInsertionEffect=function(e,t){return Kt.current.useInsertionEffect(e,t)};Ce.useLayoutEffect=function(e,t){return Kt.current.useLayoutEffect(e,t)};Ce.useMemo=function(e,t){return Kt.current.useMemo(e,t)};Ce.useReducer=function(e,t,n){return Kt.current.useReducer(e,t,n)};Ce.useRef=function(e){return Kt.current.useRef(e)};Ce.useState=function(e){return Kt.current.useState(e)};Ce.useSyncExternalStore=function(e,t,n){return Kt.current.useSyncExternalStore(e,t,n)};Ce.useTransition=function(){return Kt.current.useTransition()};Ce.version="18.3.1";s1.exports=Ce;var k=s1.exports;const V=Jl(k),hI=YO({__proto__:null,default:V},[k]);/**
11 * @license React
12 * react-jsx-runtime.production.min.js
13 *
14 * Copyright (c) Facebook, Inc. and its affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var pI=k,gI=Symbol.for("react.element"),mI=Symbol.for("react.fragment"),vI=Object.prototype.hasOwnProperty,yI=pI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wI={key:!0,ref:!0,__self:!0,__source:!0};function p1(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)vI.call(t,r)&&!wI.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:gI,type:e,key:o,ref:l,props:i,_owner:yI.current}}Ed.Fragment=mI;Ed.jsx=p1;Ed.jsxs=p1;i1.exports=Ed;var L=i1.exports,g1={exports:{}},An={},m1={exports:{}},v1={};/**
19 * @license React
20 * scheduler.production.min.js
21 *
22 * Copyright (c) Facebook, Inc. and its affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */(function(e){function t(j,K){var ne=j.length;j.push(K);e:for(;0<ne;){var Q=ne-1>>>1,oe=j[Q];if(0<i(oe,K))j[Q]=K,j[ne]=oe,ne=Q;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var K=j[0],ne=j.pop();if(ne!==K){j[0]=ne;e:for(var Q=0,oe=j.length,Se=oe>>>1;Q<Se;){var Ve=2*(Q+1)-1,dt=j[Ve],Re=Ve+1,ln=j[Re];if(0>i(dt,ne))Re<oe&&0>i(ln,dt)?(j[Q]=ln,j[Re]=ne,Q=Re):(j[Q]=dt,j[Ve]=ne,Q=Ve);else if(Re<oe&&0>
vendor: 3,247 bytes, line 26
26i(ln,ne))j[Q]=ln,j[Re]=ne,Q=Re;else break e}}return K}function i(j,K){var ne=j.sortIndex-K.sortIndex;return ne!==0?ne:j.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var d=[],f=[],p=1,m=null,g=3,w=!1,x=!1,E=!1,T=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(j){for(var K=n(f);K!==null;){if(K.callback===null)r(f);else if(K.startTime<=j)r(f),K.sortIndex=K.expirationTime,t(d,K);else break;K=n(f)}}function A(j){if(E=!1,b(j),!x)if(n(d)!==null)x=!0,de(O);else{var K=n(f);K!==null&&pe(A,K.startTime-j)}}function O(j,K){x=!1,E&&(E=!1,_(U),U=-1),w=!0;var ne=g;try{for(b(K),m=n(d);m!==null&&(!(m.expirationTime>K)||j&&!se());){var Q=m.callback;if(typeof Q=="function"){m.callback=null,g=m.priorityLevel;var oe=Q(m.expirationTime<=K);K=e.unstable_now(),typeof oe=="function"?m.callback=oe:m===n(d)&&r(d),b(K)}else r(d);m=n(d)}if(m!==null)var Se=!0;else{var Ve=n(f);Ve!==null&&pe(A,Ve.startTime-K),Se=!1}return Se}finally{m=null,g=ne,w=!1}}var $=!1,D=null,U=-1,G=5,Y=-1;function se(){return!(e.unstable_now()-Y<G)}function Z(){if(D!==null){var j=e.unstable_now();Y=j;var K=!0;try{K=D(!0,j)}finally{K?he():($=!1,D=null)}}else $=!1}var he;if(typeof v=="function")he=function(){v(Z)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,xe=X.port2;X.port1.onmessage=Z,he=function(){xe.postMessage(null)}}else he=function(){T(Z,0)};function de(j){D=j,$||($=!0,he())}function pe(j,K){U=T(function(){j(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){x||w||(x=!0,de(O))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(j){switch(g){case 1:case 2:case 3:var K=3;break;default:K=g}var ne=g;g=K;try{return j()}finally{g=ne}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,K){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var ne=g;g=j;try{return K()}finally{g=ne}},e.unstable_scheduleCallback=function(j,K,ne){var Q=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?Q+ne:Q):ne=Q,j){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=ne+oe,j={id:p++,callback:K,priorityLevel:j,startTime:ne,expirationTime:oe,sortIndex:-1},ne>Q?(j.sortIndex=ne,t(f,j),n(d)===null&&j===n(f)&&(E?(_(U),U=-1):E=!0,pe(A,ne-Q)
vendor: 4,449 bytes, lines 26-34
26)):(j.sortIndex=oe,t(d,j),x||w||(x=!0,de(O))),j},e.unstable_shouldYield=se,e.unstable_wrapCallback=function(j){var K=g;return function(){var ne=g;g=K;try{return j.apply(this,arguments)}finally{g=ne}}}})(v1);m1.exports=v1;var _I=m1.exports;/**
27 * @license React
28 * react-dom.production.min.js
29 *
30 * Copyright (c) Facebook, Inc. and its affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var bI=k,kn=_I;function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y1=new Set,yl={};function Hs(e,t){ia(e,t),ia(e+"Capture",t)}function ia(e,t){for(yl[e]=t,e=0;e<t.length;e++)y1.add(t[e])}var ni=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cp=Object.prototype.hasOwnProperty,xI=/^[: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]*$/,P0={},O0={};function EI(e){return cp.call(O0,e)?!0:cp.call(P0,e)?!1:xI.test(e)?O0[e]=!0:(P0[e]=!0,!1)}function SI(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function TI(e,t,n,r){if(t===null||typeof t>"u"||SI(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Gt(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var Ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ot[e]=new Gt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ot[t]=new Gt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ot[e]=new Gt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ot[e]=new Gt(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){Ot[e]=new Gt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ot[e]=new Gt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ot[e]=new Gt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ot[e]=new Gt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ot[e]=new Gt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Mg=/[\-:]([a-z])/g;function Ug(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
34-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(Mg,Ug);Ot[t]=new Gt(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(Mg,Ug);Ot[t]=new Gt(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(Mg,Ug);Ot[t]=new Gt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ot[e]=new Gt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ot.xlinkHref=new Gt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ot[e]=new Gt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Fg(e,t,n,r){var i=Ot.hasOwnProperty(t)?Ot[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(TI(t,n,i,r)&&(n=null),r||i===null?EI(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var li=bI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qu=Symbol.for("react.element"),To=Symbol.for("react.portal"),Co=Symbol.for("react.fragment"),Bg=Symbol.for("react.strict_mode"),dp=Symbol.for("react.profiler"),w1=Symbol.for("react.provider"),_1=Symbol.for("react.context"),zg=Symbol.for("react.forward_ref"),fp=Symbol.for("react.suspense"),hp=Symbol.for("react.suspense_list"),Wg=Symbol.for("react.memo"),Ci=Symbol.for("react.lazy"),b1=Symbol.for("react.offscreen"),I0=Symbol.iterator;function za(e){return e===null||typeof e!="object"?null:(e=I0&&e[I0]||e["@@iterator"],typeof e=="function"?e:null)}var nt=Object.assign,yh;function tl(e){if(yh===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);yh=t&&t[1]||""}return`
35`+yh+e}var wh=!1;function _h(e,t){if(!e||wh)return"";wh=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var i=f.stack.split(`
36`),o=r.stack.split(`
37`),l=i.length-1,u=o.length-1;1<=l&&0<=u&&i[l]!==o[u];)u--;for(;1<=l&&0<=u;l--,u--)if(i[l]!==o[u]){if(l!==1||u!==1)do if(l--,u--,0>u||i[l]!==o[u]){var d=`
38`+i[l].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=l&&0<=u);break}}}finally{wh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?tl(e):""}function CI(e){switch(e.tag){case 5:return tl(e.type);case 16:return tl("Lazy");case 13:return tl("Suspense");case 19:return tl("SuspenseList");case 0:case 2:case 15:return e=_h(e.type,!1),e;case 11:return e=_h(e.type.render,!1),e;case 1:return e=_h(e.type,!0),e;default:return""}}function pp(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 Co:return"Fragment";case To:return"Portal";case dp:return"Profiler";case Bg:return"StrictMode";case fp:return"Suspense";case hp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _1:return(e.displayName||"Context")+".Consumer";case w1:return(e._context.displayName||"Context")+".Provider";case zg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wg:return t=e.displayName||null,t!==null?t:pp(e.type)||"Memo";case Ci:t=e._payload,e=e._init;try{return pp(e(t))}catch{}}return null}function kI(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 pp(t);case 8:return t===Bg?"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 Qi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function x1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AI(e){var t=x1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ju(e){e._valueTracker||(e._valueTracker=AI(e))}function E1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=x1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Bc(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 gp(e,t){var n=t.checked;return nt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function L0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function S1(e,t){t=t.checked,t!=null&&Fg(e,"checked",t,!1)}function mp(e,t){S1(e,t);var n=Qi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vp(e,t.type,n):t.hasOwnProperty("defaultValue")&&vp(e,t.type,Qi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function N0(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function vp(e,t,n){(t!=="number"||Bc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var nl=Array.isArray;function Mo(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Qi(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function yp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(q(91));return nt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function $0(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(q(92));if(nl(n)){if(1<n.length)throw Error(q(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Qi(n)}}function T1(e,t){var n=Qi(t.value),r=Qi(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function D0(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function C1(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function wp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?C1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Yu,k1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Yu=Yu||document.createElement("div"),Yu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Yu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wl(e,t){if(t){var n=e.firstChild;
vendor: 11,445 bytes, line 38
38if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ol={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},RI=["Webkit","ms","Moz","O"];Object.keys(ol).forEach(function(e){RI.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ol[t]=ol[e]})});function A1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ol.hasOwnProperty(e)&&ol[e]?(""+t).trim():t+"px"}function R1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=A1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var PI=nt({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 _p(e,t){if(t){if(PI[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function bp(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 xp=null;function Hg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ep=null,Uo=null,Fo=null;function j0(e){if(e=eu(e)){if(typeof Ep!="function")throw Error(q(280));var t=e.stateNode;t&&(t=Ad(t),Ep(e.stateNode,e.type,t))}}function P1(e){Uo?Fo?Fo.push(e):Fo=[e]:Uo=e}function O1(){if(Uo){var e=Uo,t=Fo;if(Fo=Uo=null,j0(e),t)for(e=0;e<t.length;e++)j0(t[e])}}function I1(e,t){return e(t)}function L1(){}var bh=!1;function N1(e,t,n){if(bh)return e(t,n);bh=!0;try{return I1(e,t,n)}finally{bh=!1,(Uo!==null||Fo!==null)&&(L1(),O1())}}function _l(e,t){var n=e.stateNode;if(n===null)return null;var r=Ad(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(q(231,t,typeof n));return n}var Sp=!1;if(ni)try{var Wa={};Object.defineProperty(Wa,"passive",{get:function(){Sp=!0}}),window.addEventListener("test",Wa,Wa),window.removeEventListener("test",Wa,Wa)}catch{Sp=!1}function OI(e,t,n,r,i,o,l,u,d){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(p){this.onError(p)}}var al=!1,zc=null,Wc=!1,Tp=null,II={onError:function(e){al=!0,zc=e}};function LI(e,t,n,r,i,o,l,u,d){al=!1,zc=null,OI.apply(II,arguments)}function NI(e,t,n,r,i,o,l,u,d){if(LI.apply(this,arguments),al){if(al){var f=zc;al=!1,zc=null}else throw Error(q(198));Wc||(Wc=!0,Tp=f)}}function Vs(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function $1(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function M0(e){if(Vs(e)!==e)throw Error(q(188))}function $I(e){var t=e.alternate;if(!t){if(t=Vs(e),t===null)throw Error(q(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return M0(i),e;if(o===r)return M0(i),t;o=o.sibling}throw Error(q(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l){for(u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l)throw Error(q(189))}}if(n.alternate!==r)throw Error(q(190))}if(n.tag!==3)throw Error(q(188));return n.stateNode.current===n?e:t}function D1(e){return e=$I(e),e!==null?j1(e):null}function j1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=j1(e);if(t!==null)return t;e=e.sibling}return null}var M1=kn.unstable_scheduleCallback,U0=kn.unstable_cancelCallback,DI=kn.unstable_shouldYield,jI=kn.unstable_requestPaint,ut=kn.unstable_now,MI=kn.unstable_getCurrentPriorityLevel,Vg=kn.unstable_ImmediatePriority,U1=kn.unstable_UserBlockingPriority,Hc=kn.unstable_NormalPriority,UI=kn.unstable_LowPriority,F1=kn.unstable_IdlePriority,Sd=null,Rr=null;function FI(e){if(Rr&&typeof Rr.onCommitFiberRoot=="function")try{Rr.onCommitFiberRoot(Sd,e,void 0,(e.current.flags&128)===128)}catch{}}var ur=Math.clz32?Math.clz32:WI,BI=Math.log,zI=Math.LN2;function WI(e){return e>>>=0,e===0?32:31-(BI(e)/zI|0)|0}var Xu=64,Zu=4194304;function rl(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 Vc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var u=l&~i;u!==0?r=rl(u):(o&=l,o!==0&&(r=rl(o)))}else l=n&~i,l!==0?r=rl(l):o!==0&&(r=rl(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ur(t),i=1<<n,r|=e[n],t&=~i;return r}function HI(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function VI(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-ur(o),u=1<<l,d=i[l];d===-1?(!(u&n)||u&r)&&(i[l]=HI(u,t)):d<=t&&(e.expiredLanes|=u),o&=~u}}function Cp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function B1(){var e=Xu;return Xu<<=1,!(Xu&4194240)&&(Xu=64),e}function xh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ur(t),e[t]=n}function qI(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-ur(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function qg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ur(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var De=0;function z1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var W1,Kg,H1,V1,q1,kp=!1,ec=[],Fi=null,Bi=null,zi=null,bl=new Map,xl=new Map,Ri=[],KI="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function F0(e,t){switch(e){case"focusin":case"focusout":Fi=null;break;case"dragenter":case"dragleave":Bi=null;break;case"mouseover":case"mouseout":zi=null;break;case"pointerover":case"pointerout":bl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xl.delete(t.pointerId)}}function Ha(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=eu(t),t!==null&&Kg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function GI(e,t,n,r,i){switch(t){case"focusin":return Fi=Ha(Fi,e,t,n,r,i),!0;case"dragenter":return Bi=Ha(Bi,e,t,n,r,i),!0;case"mouseover":return zi=Ha(zi,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return bl.set(o,Ha(bl.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,xl.set(o,Ha(xl.get(o)||null,e,t,n,r,i)),!0}return!1}function K1(e){var t=Cs(e.target);if(t!==null){var n=Vs(t);if(n!==null){if(t=n.tag,t===13){if(t=$1(n),t!==null){e.blockedOn=t,q1(e.priority,function(){H1(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Tc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ap(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);xp=r,n.target.dispatchEvent(r),xp=null}else return t=eu(n),t!==null&&Kg(t),e.blockedOn=n,!1;t.shift()}return!0}function B0(e,t,n){Tc(e)&&n.delete(t)}function QI(){kp=!1,Fi!==null&&Tc(Fi)&&(Fi=null),Bi!==null&&Tc(Bi)&&(Bi=null),zi!==null&&Tc(zi)&&(zi=null),bl.forEach(B0),xl.forEach(B0)}function Va(e,t){e.blockedOn===t&&(e.blockedOn=null,kp||(kp=!0,kn.unstable_scheduleCallback(kn.unstable_NormalPriority,QI)))}function El(e){function t(i){return Va(i,e)}if(0<ec.length){Va(ec[0],e);for(var n=1;n<ec.length;n++){var r=ec[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Fi!==null&&Va(Fi,e),Bi!==null&&Va(Bi,e),zi!==null&&Va(zi,e),bl.forEach(t),xl.forEach(t),n=0;n<Ri.length;n++)r=Ri[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ri.length&&(n=Ri[0],n.blockedOn===null);)K1(n),n.blockedOn===null&&Ri.shift()}var Bo=li.ReactCurrentBatchConfig,qc=!0;function JI(e,t,n,r){var i=De,o=Bo.transition;Bo.transition=null;try{De=1,Gg(e,t,n,r)}finally{De=i,Bo.transition=o}}function YI(e,t,n,r){var i=De,o=Bo.transition;Bo.transition=null;try{De=4,Gg(e,t,n,r)}finally{De=i,Bo.transition=o}}function Gg(e,t,n,r){if(qc){var i=Ap(e,t,n,r);if(i===null)Ih(e,t,r,Kc,n),F0(e,r);else if(GI(i,e,t,n,r))r.stopPropagation();else if(F0(e,r),t&4&&-1<KI.indexOf(e)){for(;i!==null;){var o=eu(i);if(o!==null&&W1(o),o=Ap(e,t,n,r),o===null&&Ih(e,t,r,Kc,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Ih(e,t,r,null,n)}}var Kc=null;function Ap(e,t,n,r){if(Kc=null,e=Hg(r),e=Cs(e),e!==null)if(t=Vs(e),t===null)e=null;else if(n=t.tag,n===13){if(e=$1(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kc=e,null}
vendor: 12,178 bytes, line 38
38function G1(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(MI()){case Vg:return 1;case U1:return 4;case Hc:case UI:return 16;case F1:return 536870912;default:return 16}default:return 16}}var ji=null,Qg=null,Cc=null;function Q1(){if(Cc)return Cc;var e,t=Qg,n=t.length,r,i="value"in ji?ji.value:ji.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===i[o-r];r++);return Cc=i.slice(e,1<r?1-r:void 0)}function kc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function tc(){return!0}function z0(){return!1}function Rn(e){function t(n,r,i,o,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(o):o[u]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?tc:z0,this.isPropagationStopped=z0,this}return nt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=tc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=tc)},persist:function(){},isPersistent:tc}),t}var pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jg=Rn(pa),Zl=nt({},pa,{view:0,detail:0}),XI=Rn(Zl),Eh,Sh,qa,Td=nt({},Zl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==qa&&(qa&&e.type==="mousemove"?(Eh=e.screenX-qa.screenX,Sh=e.screenY-qa.screenY):Sh=Eh=0,qa=e),Eh)},movementY:function(e){return"movementY"in e?e.movementY:Sh}}),W0=Rn(Td),ZI=nt({},Td,{dataTransfer:0}),eL=Rn(ZI),tL=nt({},Zl,{relatedTarget:0}),Th=Rn(tL),nL=nt({},pa,{animationName:0,elapsedTime:0,pseudoElement:0}),rL=Rn(nL),iL=nt({},pa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sL=Rn(iL),oL=nt({},pa,{data:0}),H0=Rn(oL),aL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lL={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},uL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cL(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uL[e])?!!t[e]:!1}function Yg(){return cL}var dL=nt({},Zl,{key:function(e){if(e.key){var t=aL[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=kc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?lL[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yg,charCode:function(e){return e.type==="keypress"?kc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?kc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fL=Rn(dL),hL=nt({},Td,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),V0=Rn(hL),pL=nt({},Zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yg}),gL=Rn(pL),mL=nt({},pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),vL=Rn(mL),yL=nt({},Td,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),wL=Rn(yL),_L=[9,13,27,32],Xg=ni&&"CompositionEvent"in window,ll=null;ni&&"documentMode"in document&&(ll=document.documentMode);var bL=ni&&"TextEvent"in window&&!ll,J1=ni&&(!Xg||ll&&8<ll&&11>=ll),q0=" ",K0=!1;function Y1(e,t){switch(e){case"keyup":return _L.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function X1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ko=!1;function xL(e,t){switch(e){case"compositionend":return X1(t);case"keypress":return t.which!==32?null:(K0=!0,q0);case"textInput":return e=t.data,e===q0&&K0?null:e;default:return null}}function EL(e,t){if(ko)return e==="compositionend"||!Xg&&Y1(e,t)?(e=Q1(),Cc=Qg=ji=null,ko=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return J1&&t.locale!=="ko"?null:t.data;default:return null}}var SL={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function G0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!SL[e.type]:t==="textarea"}function Z1(e,t,n,r){P1(r),t=Gc(t,"onChange"),0<t.length&&(n=new Jg("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ul=null,Sl=null;function TL(e){cb(e,0)}function Cd(e){var t=Po(e);if(E1(t))return e}function CL(e,t){if(e==="change")return t}var eb=!1;if(ni){var Ch;if(ni){var kh="oninput"in document;if(!kh){var Q0=document.createElement("div");Q0.setAttribute("oninput","return;"),kh=typeof Q0.oninput=="function"}Ch=kh}else Ch=!1;eb=Ch&&(!document.documentMode||9<document.documentMode)}function J0(){ul&&(ul.detachEvent("onpropertychange",tb),Sl=ul=null)}function tb(e){if(e.propertyName==="value"&&Cd(Sl)){var t=[];Z1(t,Sl,e,Hg(e)),N1(TL,t)}}function kL(e,t,n){e==="focusin"?(J0(),ul=t,Sl=n,ul.attachEvent("onpropertychange",tb)):e==="focusout"&&J0()}function AL(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Cd(Sl)}function RL(e,t){if(e==="click")return Cd(t)}function PL(e,t){if(e==="input"||e==="change")return Cd(t)}function OL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dr=typeof Object.is=="function"?Object.is:OL;function Tl(e,t){if(dr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!cp.call(t,i)||!dr(e[i],t[i]))return!1}return!0}function Y0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function X0(e,t){var n=Y0(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Y0(n)}}function nb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rb(){for(var e=window,t=Bc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bc(e.document)}return t}function Zg(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 IL(e){var t=rb(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&nb(n.ownerDocument.documentElement,n)){if(r!==null&&Zg(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=X0(n,o);var l=X0(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var LL=ni&&"documentMode"in document&&11>=document.documentMode,Ao=null,Rp=null,cl=null,Pp=!1;function Z0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pp||Ao==null||Ao!==Bc(r)||(r=Ao,"selectionStart"in r&&Zg(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),cl&&Tl(cl,r)||(cl=r,r=Gc(Rp,"onSelect"),0<r.length&&(t=new Jg("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ao)))}function nc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ro={animationend:nc("Animation","AnimationEnd"),animationiteration:nc("Animation","AnimationIteration"),animationstart:nc("Animation","AnimationStart"),transitionend:nc("Transition","TransitionEnd")},Ah={},ib={};ni&&(ib=document.createElement("div").style,"AnimationEvent"in window||(delete Ro.animationend.animation,delete Ro.animationiteration.animation,delete Ro.animationstart.animation),"TransitionEvent"in window||delete Ro.transitionend.transition);function kd(e){if(Ah[e])return Ah[e];if(!Ro[e])return e;var t=Ro[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ib)return Ah[e]=t[n];return e}var sb=kd("animationend"),ob=kd("animationiteration"),ab=kd("animationstart"),lb=kd("transitionend"),ub=new Map,ew="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ts(e,t){ub.set(e,t),Hs(t,[e])}for(var Rh=0;Rh<ew.length;Rh++){var Ph=ew[Rh],NL=Ph.toLowerCase(),$L=Ph[0].toUpperCase()+Ph.slice(1);
vendor: 5,251 bytes, line 38
38ts(NL,"on"+$L)}ts(sb,"onAnimationEnd");ts(ob,"onAnimationIteration");ts(ab,"onAnimationStart");ts("dblclick","onDoubleClick");ts("focusin","onFocus");ts("focusout","onBlur");ts(lb,"onTransitionEnd");ia("onMouseEnter",["mouseout","mouseover"]);ia("onMouseLeave",["mouseout","mouseover"]);ia("onPointerEnter",["pointerout","pointerover"]);ia("onPointerLeave",["pointerout","pointerover"]);Hs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Hs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Hs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Hs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Hs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Hs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var il="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),DL=new Set("cancel close invalid load scroll toggle".split(" ").concat(il));function tw(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,NI(r,t,void 0,e),e.currentTarget=null}function cb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var l=r.length-1;0<=l;l--){var u=r[l],d=u.instance,f=u.currentTarget;if(u=u.listener,d!==o&&i.isPropagationStopped())break e;tw(i,u,f),o=d}else for(l=0;l<r.length;l++){if(u=r[l],d=u.instance,f=u.currentTarget,u=u.listener,d!==o&&i.isPropagationStopped())break e;tw(i,u,f),o=d}}}if(Wc)throw e=Tp,Wc=!1,Tp=null,e}function Ge(e,t){var n=t[$p];n===void 0&&(n=t[$p]=new Set);var r=e+"__bubble";n.has(r)||(db(t,e,2,!1),n.add(r))}function Oh(e,t,n){var r=0;t&&(r|=4),db(n,e,r,t)}var rc="_reactListening"+Math.random().toString(36).slice(2);function Cl(e){if(!e[rc]){e[rc]=!0,y1.forEach(function(n){n!=="selectionchange"&&(DL.has(n)||Oh(n,!1,e),Oh(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[rc]||(t[rc]=!0,Oh("selectionchange",!1,t))}}function db(e,t,n,r){switch(G1(t)){case 1:var i=JI;break;case 4:i=YI;break;default:i=Gg}n=i.bind(null,t,n,e),i=void 0,!Sp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ih(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var u=r.stateNode.containerInfo;if(u===i||u.nodeType===8&&u.parentNode===i)break;if(l===4)for(l=r.return;l!==null;){var d=l.tag;if((d===3||d===4)&&(d=l.stateNode.containerInfo,d===i||d.nodeType===8&&d.parentNode===i))return;l=l.return}for(;u!==null;){if(l=Cs(u),l===null)return;if(d=l.tag,d===5||d===6){r=o=l;continue e}u=u.parentNode}}r=r.return}N1(function(){var f=o,p=Hg(n),m=[];e:{var g=ub.get(e);if(g!==void 0){var w=Jg,x=e;switch(e){case"keypress":if(kc(n)===0)break e;case"keydown":case"keyup":w=fL;break;case"focusin":x="focus",w=Th;break;case"focusout":x="blur",w=Th;break;case"beforeblur":case"afterblur":w=Th;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":w=W0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=eL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=gL;break;case sb:case ob:case ab:w=rL;break;case lb:w=vL;break;case"scroll":w=XI;break;case"wheel":w=wL;break;case"copy":case"cut":case"paste":w=sL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=V0}var E=(t&4)!==0,T=!E&&e==="scroll",_=E?g!==null?g+"Capture":null:g;E=[];for(var v=f,b;v!==null;){b=v;var A=b.stateNode;if(b.tag===5&&A!==null&&(b=A,_!==null&&(A=_l(v,_),A!=null&&E.push(kl(v,A,b)))),T)break;v=v.return}0<E.length&&(g=new w(g,x,null,n,p),m.push({event:g,listeners:E}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",g&&n!==xp&&(x=n.relatedTarget||n.fromElement)&&(Cs(x)||x[ri]))break e;if((w||g)&&(g=p.window===p?p:(g=p.ownerDocument)?g.defaultView||g.parentWindow:window,w?(x=n.relatedTarget||n.toElement,w=f,x=x?Cs(x):null,x!==null&&(T=Vs(x),x!==T||x.tag!==5&&x.tag!==6)&&(x=null)):(w=null,x=f),w!==x)){if(E=W0,A="onMouseLeave",_="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(E=V0,A="onPointerLeave",_="onPointerEnter",v="pointer"),T=w==null?g:Po(w),b=x==null?g:Po(x),g=new E(A,v+"leave",w,n,p),g.target=T,g.relatedTarget=b,A=null,Cs(p)===f&&(E=new E(_,v+"enter",x,n,p),E.target=b,E.relatedTarget=T,A=E),T=A,w&&x)t:{for(E=w,_=x,v=0,b=E;b;b=ho(b))v++;for(b=0,A=_;A;A=ho(A))b++;for(;0<v-b;)E=ho(E),v--;for(;0<b-v;)_=ho(_),b--;for(;v--;){if(E===_||_!==null&&E===_.alternate)break t;E=ho(E),_=ho(_)}E=null}else E=null;w!==null&&nw(m,g,w,E,!1),x!==null&&T!==null&&nw(m,T,x,E,!0)}}
vendor: 6,372 bytes, lines 38-39
38e:{if(g=f?Po(f):window,w=g.nodeName&&g.nodeName.toLowerCase(),w==="select"||w==="input"&&g.type==="file")var O=CL;else if(G0(g))if(eb)O=PL;else{O=AL;var $=kL}else(w=g.nodeName)&&w.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(O=RL);if(O&&(O=O(e,f))){Z1(m,O,n,p);break e}$&&$(e,g,f),e==="focusout"&&($=g._wrapperState)&&$.controlled&&g.type==="number"&&vp(g,"number",g.value)}switch($=f?Po(f):window,e){case"focusin":(G0($)||$.contentEditable==="true")&&(Ao=$,Rp=f,cl=null);break;case"focusout":cl=Rp=Ao=null;break;case"mousedown":Pp=!0;break;case"contextmenu":case"mouseup":case"dragend":Pp=!1,Z0(m,n,p);break;case"selectionchange":if(LL)break;case"keydown":case"keyup":Z0(m,n,p)}var D;if(Xg)e:{switch(e){case"compositionstart":var U="onCompositionStart";break e;case"compositionend":U="onCompositionEnd";break e;case"compositionupdate":U="onCompositionUpdate";break e}U=void 0}else ko?Y1(e,n)&&(U="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(U="onCompositionStart");U&&(J1&&n.locale!=="ko"&&(ko||U!=="onCompositionStart"?U==="onCompositionEnd"&&ko&&(D=Q1()):(ji=p,Qg="value"in ji?ji.value:ji.textContent,ko=!0)),$=Gc(f,U),0<$.length&&(U=new H0(U,e,null,n,p),m.push({event:U,listeners:$}),D?U.data=D:(D=X1(n),D!==null&&(U.data=D)))),(D=bL?xL(e,n):EL(e,n))&&(f=Gc(f,"onBeforeInput"),0<f.length&&(p=new H0("onBeforeInput","beforeinput",null,n,p),m.push({event:p,listeners:f}),p.data=D))}cb(m,t)})}function kl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=_l(e,n),o!=null&&r.unshift(kl(e,o,i)),o=_l(e,t),o!=null&&r.push(kl(e,o,i))),e=e.return}return r}function ho(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function nw(e,t,n,r,i){for(var o=t._reactName,l=[];n!==null&&n!==r;){var u=n,d=u.alternate,f=u.stateNode;if(d!==null&&d===r)break;u.tag===5&&f!==null&&(u=f,i?(d=_l(n,o),d!=null&&l.unshift(kl(n,d,u))):i||(d=_l(n,o),d!=null&&l.push(kl(n,d,u)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var jL=/\r\n?/g,ML=/\u0000|\uFFFD/g;function rw(e){return(typeof e=="string"?e:""+e).replace(jL,`
39`).replace(ML,"")}function ic(e,t,n){if(t=rw(t),rw(e)!==t&&n)throw Error(q(425))}function Qc(){}var Op=null,Ip=null;function Lp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Np=typeof setTimeout=="function"?setTimeout:void 0,UL=typeof clearTimeout=="function"?clearTimeout:void 0,iw=typeof Promise=="function"?Promise:void 0,FL=typeof queueMicrotask=="function"?queueMicrotask:typeof iw<"u"?function(e){return iw.resolve(null).then(e).catch(BL)}:Np;function BL(e){setTimeout(function(){throw e})}function Lh(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),El(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);El(t)}function Wi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function sw(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ga=Math.random().toString(36).slice(2),Ar="__reactFiber$"+ga,Al="__reactProps$"+ga,ri="__reactContainer$"+ga,$p="__reactEvents$"+ga,zL="__reactListeners$"+ga,WL="__reactHandles$"+ga;function Cs(e){var t=e[Ar];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ri]||n[Ar]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=sw(e);e!==null;){if(n=e[Ar])return n;e=sw(e)}return t}e=n,n=e.parentNode}return null}function eu(e){return e=e[Ar]||e[ri],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Po(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(q(33))}function Ad(e){return e[Al]||null}var Dp=[],Oo=-1;function ns(e){return{current:e}}function Qe(e){0>Oo||(e.current=Dp[Oo],Dp[Oo]=null,Oo--)}function He(e,t){Oo++,Dp[Oo]=e.current,e.current=t}var Ji={},Ut=ns(Ji),rn=ns(!1),js=Ji;function sa(e,t){var n=e.type.contextTypes;if(!n)return Ji;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function sn(e){return e=e.childContextTypes,e!=null}function Jc(){Qe(rn),Qe(Ut)}function ow(e,t,n){if(Ut.current!==Ji)throw Error(q(168));He(Ut,t),He(rn,n)}function fb(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(q(108,kI(e)||"Unknown",i));return nt({},n,r)}function Yc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ji,js=Ut.current,He(Ut,e),He(rn,rn.current),!0}function aw(e,t,n){var r=e.stateNode;if(!r)throw Error(q(169));n?(e=fb(e,t,js),r.__reactInternalMemoizedMergedChildContext=e,Qe(rn),Qe(Ut),He(Ut,e)):Qe(rn),He(rn,n)}var Yr=null,Rd=!1,Nh=!1;function hb(e){Yr===null?Yr=[e]:Yr.push(e)}function HL(e){Rd=!0,hb(e)}function rs(){if(!Nh&&Yr!==null){Nh=!0;var e=0,t=De;try{var n=Yr;for(De=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Yr=null,Rd=!1}catch(i){throw Yr!==null&&(Yr=Yr.slice(e+1)),M1(Vg,rs),i}finally{De=t,Nh=!1}}return null}var Io=[],Lo=0,Xc=null,Zc=0,Wn=[],Hn=0,Ms=null,Zr=1,ei="";function bs(e,t){Io[Lo++]=Zc,Io[Lo++]=Xc,Xc=e,Zc=t}function pb(e,t,n){Wn[Hn++]=Zr,Wn[Hn++]=ei,Wn[Hn++]=Ms,Ms=e;var r=Zr;e=ei;var i=32-ur(r)-1;r&=~(1<<i),n+=1;var o=32-ur(t)+i;if(30<o){var l=i-i%5;o=(r&(1<<l)-1).toString(32),r>>=l,i-=l,Zr=1<<32-ur(t)+i|n<<i|r,ei=o+e}else Zr=1<<o|n<<i|r,ei=e}function em(e){e.return!==null&&(bs(e,1),pb(e,1,0))}function tm(e){for(;e===Xc;)Xc=Io[--Lo],Io[Lo]=null,Zc=Io[--Lo],Io[Lo]=null;for(;e===Ms;)Ms=Wn[--Hn],Wn[Hn]=null,ei=Wn[--Hn],Wn[Hn]=null,Zr=Wn[--Hn],Wn[Hn]=null}var Tn=null,Sn=null,Xe=!1,ar=null;function gb(e,t){var n=Vn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function lw(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 14,259 bytes, line 39
39return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Tn=e,Sn=Wi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Tn=e,Sn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ms!==null?{id:Zr,overflow:ei}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Vn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Tn=e,Sn=null,!0):!1;default:return!1}}function jp(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Mp(e){if(Xe){var t=Sn;if(t){var n=t;if(!lw(e,t)){if(jp(e))throw Error(q(418));t=Wi(n.nextSibling);var r=Tn;t&&lw(e,t)?gb(r,n):(e.flags=e.flags&-4097|2,Xe=!1,Tn=e)}}else{if(jp(e))throw Error(q(418));e.flags=e.flags&-4097|2,Xe=!1,Tn=e}}}function uw(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Tn=e}function sc(e){if(e!==Tn)return!1;if(!Xe)return uw(e),Xe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Lp(e.type,e.memoizedProps)),t&&(t=Sn)){if(jp(e))throw mb(),Error(q(418));for(;t;)gb(e,t),t=Wi(t.nextSibling)}if(uw(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Sn=Wi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Sn=null}}else Sn=Tn?Wi(e.stateNode.nextSibling):null;return!0}function mb(){for(var e=Sn;e;)e=Wi(e.nextSibling)}function oa(){Sn=Tn=null,Xe=!1}function nm(e){ar===null?ar=[e]:ar.push(e)}var VL=li.ReactCurrentBatchConfig;function Ka(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(q(309));var r=n.stateNode}if(!r)throw Error(q(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(l){var u=i.refs;l===null?delete u[o]:u[o]=l},t._stringRef=o,t)}if(typeof e!="string")throw Error(q(284));if(!n._owner)throw Error(q(290,e))}return e}function oc(e,t){throw e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function cw(e){var t=e._init;return t(e._payload)}function vb(e){function t(_,v){if(e){var b=_.deletions;b===null?(_.deletions=[v],_.flags|=16):b.push(v)}}function n(_,v){if(!e)return null;for(;v!==null;)t(_,v),v=v.sibling;return null}function r(_,v){for(_=new Map;v!==null;)v.key!==null?_.set(v.key,v):_.set(v.index,v),v=v.sibling;return _}function i(_,v){return _=Ki(_,v),_.index=0,_.sibling=null,_}function o(_,v,b){return _.index=b,e?(b=_.alternate,b!==null?(b=b.index,b<v?(_.flags|=2,v):b):(_.flags|=2,v)):(_.flags|=1048576,v)}function l(_){return e&&_.alternate===null&&(_.flags|=2),_}function u(_,v,b,A){return v===null||v.tag!==6?(v=Bh(b,_.mode,A),v.return=_,v):(v=i(v,b),v.return=_,v)}function d(_,v,b,A){var O=b.type;return O===Co?p(_,v,b.props.children,A,b.key):v!==null&&(v.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Ci&&cw(O)===v.type)?(A=i(v,b.props),A.ref=Ka(_,v,b),A.return=_,A):(A=Nc(b.type,b.key,b.props,null,_.mode,A),A.ref=Ka(_,v,b),A.return=_,A)}function f(_,v,b,A){return v===null||v.tag!==4||v.stateNode.containerInfo!==b.containerInfo||v.stateNode.implementation!==b.implementation?(v=zh(b,_.mode,A),v.return=_,v):(v=i(v,b.children||[]),v.return=_,v)}function p(_,v,b,A,O){return v===null||v.tag!==7?(v=Ds(b,_.mode,A,O),v.return=_,v):(v=i(v,b),v.return=_,v)}function m(_,v,b){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Bh(""+v,_.mode,b),v.return=_,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Qu:return b=Nc(v.type,v.key,v.props,null,_.mode,b),b.ref=Ka(_,null,v),b.return=_,b;case To:return v=zh(v,_.mode,b),v.return=_,v;case Ci:var A=v._init;return m(_,A(v._payload),b)}if(nl(v)||za(v))return v=Ds(v,_.mode,b,null),v.return=_,v;oc(_,v)}return null}function g(_,v,b,A){var O=v!==null?v.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return O!==null?null:u(_,v,""+b,A);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Qu:return b.key===O?d(_,v,b,A):null;case To:return b.key===O?f(_,v,b,A):null;case Ci:return O=b._init,g(_,v,O(b._payload),A)}if(nl(b)||za(b))return O!==null?null:p(_,v,b,A,null);oc(_,b)}return null}function w(_,v,b,A,O){if(typeof A=="string"&&A!==""||typeof A=="number")return _=_.get(b)||null,u(v,_,""+A,O);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case Qu:return _=_.get(A.key===null?b:A.key)||null,d(v,_,A,O);case To:return _=_.get(A.key===null?b:A.key)||null,f(v,_,A,O);case Ci:var $=A._init;return w(_,v,b,$(A._payload),O)}if(nl(A)||za(A))return _=_.get(b)||null,p(v,_,A,O,null);oc(v,A)}return null}function x(_,v,b,A){for(var O=null,$=null,D=v,U=v=0,G=null;D!==null&&U<b.length;U++){D.index>U?(G=D,D=null):G=D.sibling;var Y=g(_,D,b[U],A);if(Y===null){D===null&&(D=G);break}e&&D&&Y.alternate===null&&t(_,D),v=o(Y,v,U),$===null?O=Y:$.sibling=Y,$=Y,D=G}if(U===b.length)return n(_,D),Xe&&bs(_,U),O;if(D===null){for(;U<b.length;U++)D=m(_,b[U],A),D!==null&&(v=o(D,v,U),$===null?O=D:$.sibling=D,$=D);return Xe&&bs(_,U),O}for(D=r(_,D);U<b.length;U++)G=w(D,_,U,b[U],A),G!==null&&(e&&G.alternate!==null&&D.delete(G.key===null?U:G.key),v=o(G,v,U),$===null?O=G:$.sibling=G,$=G);return e&&D.forEach(function(se){return t(_,se)}),Xe&&bs(_,U),O}function E(_,v,b,A){var O=za(b);if(typeof O!="function")throw Error(q(150));if(b=O.call(b),b==null)throw Error(q(151));for(var $=O=null,D=v,U=v=0,G=null,Y=b.next();D!==null&&!Y.done;U++,Y=b.next()){D.index>U?(G=D,D=null):G=D.sibling;var se=g(_,D,Y.value,A);if(se===null){D===null&&(D=G);break}e&&D&&se.alternate===null&&t(_,D),v=o(se,v,U),$===null?O=se:$.sibling=se,$=se,D=G}if(Y.done)return n(_,D),Xe&&bs(_,U),O;if(D===null){for(;!Y.done;U++,Y=b.next())Y=m(_,Y.value,A),Y!==null&&(v=o(Y,v,U),$===null?O=Y:$.sibling=Y,$=Y);return Xe&&bs(_,U),O}for(D=r(_,D);!Y.done;U++,Y=b.next())Y=w(D,_,U,Y.value,A),Y!==null&&(e&&Y.alternate!==null&&D.delete(Y.key===null?U:Y.key),v=o(Y,v,U),$===null?O=Y:$.sibling=Y,$=Y);return e&&D.forEach(function(Z){return t(_,Z)}),Xe&&bs(_,U),O}function T(_,v,b,A){if(typeof b=="object"&&b!==null&&b.type===Co&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Qu:e:{for(var O=b.key,$=v;$!==null;){if($.key===O){if(O=b.type,O===Co){if($.tag===7){n(_,$.sibling),v=i($,b.props.children),v.return=_,_=v;break e}}else if($.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Ci&&cw(O)===$.type){n(_,$.sibling),v=i($,b.props),v.ref=Ka(_,$,b),v.return=_,_=v;break e}n(_,$);break}else t(_,$);$=$.sibling}b.type===Co?(v=Ds(b.props.children,_.mode,A,b.key),v.return=_,_=v):(A=Nc(b.type,b.key,b.props,null,_.mode,A),A.ref=Ka(_,v,b),A.return=_,_=A)}return l(_);case To:e:{for($=b.key;v!==null;){if(v.key===$)if(v.tag===4&&v.stateNode.containerInfo===b.containerInfo&&v.stateNode.implementation===b.implementation){n(_,v.sibling),v=i(v,b.children||[]),v.return=_,_=v;break e}else{n(_,v);break}else t(_,v);v=v.sibling}v=zh(b,_.mode,A),v.return=_,_=v}return l(_);case Ci:return $=b._init,T(_,v,$(b._payload),A)}if(nl(b))return x(_,v,b,A);if(za(b))return E(_,v,b,A);oc(_,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,v!==null&&v.tag===6?(n(_,v.sibling),v=i(v,b),v.return=_,_=v):(n(_,v),v=Bh(b,_.mode,A),v.return=_,_=v),l(_)):n(_,v)}return T}var aa=vb(!0),yb=vb(!1),ed=ns(null),td=null,No=null,rm=null;function im(){rm=No=td=null}function sm(e){var t=ed.current;Qe(ed),e._currentValue=t}function Up(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function zo(e,t){td=e,rm=No=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(nn=!0),e.firstContext=null)}function Kn(e){var t=e._currentValue;if(rm!==e)if(e={context:e,memoizedValue:t,next:null},No===null){if(td===null)throw Error(q(308));No=e,td.dependencies={lanes:0,firstContext:e}}else No=No.next=e;return t}var ks=null;function om(e){ks===null?ks=[e]:ks.push(e)}function wb(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,om(t)):(n.next=i.next,i.next=n),t.interleaved=n,ii(e,r)}function ii(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ki=!1;function am(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _b(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ti(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Pe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ii(e,n)}return i=r.interleaved,i===null?(t.next=t,om(r)):(t.next=i.next,i.next=t),r.interleaved=t,ii(e,n)}function Ac(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qg(e,n)}}function dw(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function nd(e,t,n,r){var i=e.updateQueue;ki=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var d=u,f=d.next;d.next=null,l===null?o=f:l.next=f,l=d;var p=e.alternate;p!==null&&(p=p.updateQueue,u=p.lastBaseUpdate,u!==l&&(u===null?p.firstBaseUpdate=f:u.next=f,p.lastBaseUpdate=d))}if(o!==null){var m=i.baseState;l=0,p=f=d=null,u=o;do{var g=u.lane,w=u.eventTime;if((r&g)===g){p!==null&&(p=p.next={eventTime:w,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var x=e,E=u;switch(g=t,w=n,E.tag){case 1:if(x=E.payload,typeof x=="function"){m=x.call(w,m,g);break e}m=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=E.payload,g=typeof x=="function"?x.call(w,m,g):x,g==null)break e;m=nt({},m,g);break e;case 2:ki=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,g=i.effects,g===null?i.effects=[u]:g.push(u))}else w={eventTime:w,lane:g,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(f=p=w,d=m):p=p.next=w,l|=g;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;g=u,u=g.next,g.next=null,i.lastBaseUpdate=g,i.shared.pending=null}}while(!0);if(p===null&&(d=m),i.baseState=d,i.firstBaseUpdate=f,i.lastBaseUpdate=p,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Fs|=l,e.lanes=l,e.memoizedState=m}}function fw(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(q(191,i));i.call(r)}}}var tu={},Pr=ns(tu),Rl=ns(tu),Pl=ns(tu);function As(e){if(e===tu)throw Error(q(174));return e}function lm(e,t){switch(He(Pl,t),He(Rl,e),He(Pr,tu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wp(t,e)}Qe(Pr),He(Pr,t)}function la(){Qe(Pr),Qe(Rl),Qe(Pl)}function bb(e){As(Pl.current);var t=As(Pr.current),n=wp(t,e.type);t!==n&&(He(Rl,e),He(Pr,n))}function um(e){Rl.current===e&&(Qe(Pr),Qe(Rl))}var et=ns(0);function rd(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 $h=[];function cm(){for(var e=0;e<$h.length;e++)$h[e]._workInProgressVersionPrimary=null;$h.length=0}var Rc=li.ReactCurrentDispatcher,Dh=li.ReactCurrentBatchConfig,Us=0,tt=null,yt=null,xt=null,id=!1,dl=!1,Ol=0,qL=0;function $t(){throw Error(q(321))}function dm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!dr(e[n],t[n]))return!1;return!0}function fm(e,t,n,r,i,o){if(Us=o,tt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Rc.current=e===null||e.memoizedState===null?JL:YL,e=n(r,i),dl){o=0;do{if(dl=!1,Ol=0,25<=o)throw Error(q(301));o+=1,xt=yt=null,t.updateQueue=null,Rc.current=XL,e=n(r,i)}while(dl)}if(Rc.current=sd,t=yt!==null&&yt.next!==null,Us=0,xt=yt=tt=null,id=!1,t)throw Error(q(300));return e}function hm(){var e=Ol!==0;return Ol=0,e}function Sr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xt===null?tt.memoizedState=xt=e:xt=xt.next=e,xt}function Gn(){if(yt===null){var e=tt.alternate;e=e!==null?e.memoizedState:null}else e=yt.next;var t=xt===null?tt.memoizedState:xt.next;if(t!==null)xt=t,yt=e;else{if(e===null)throw Error(q(310));yt=e,e={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},xt===null?tt.memoizedState=xt=e:xt=xt.next=e}return xt}function Il(e,t){return typeof t=="function"?t(e):t}function jh(e){var t=Gn(),n=t.queue;if(n===null)throw Error(q(311));n.lastRenderedReducer=e;var r=yt,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var u=l=null,d=null,f=o;do{var p=f.lane;if((Us&p)===p)d!==null&&(d=d.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var m={lane:p,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};d===null?(u=d=m,l=r):d=d.next=m,tt.lanes|=p,Fs|=p}f=f.next}
vendor: 5,156 bytes, line 39
39while(f!==null&&f!==o);d===null?l=r:d.next=u,dr(r,t.memoizedState)||(nn=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=d,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,tt.lanes|=o,Fs|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Mh(e){var t=Gn(),n=t.queue;if(n===null)throw Error(q(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do o=e(o,l.action),l=l.next;while(l!==i);dr(o,t.memoizedState)||(nn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function xb(){}function Eb(e,t){var n=tt,r=Gn(),i=t(),o=!dr(r.memoizedState,i);if(o&&(r.memoizedState=i,nn=!0),r=r.queue,pm(Cb.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||xt!==null&&xt.memoizedState.tag&1){if(n.flags|=2048,Ll(9,Tb.bind(null,n,r,i,t),void 0,null),Et===null)throw Error(q(349));Us&30||Sb(n,t,i)}return i}function Sb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=tt.updateQueue,t===null?(t={lastEffect:null,stores:null},tt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Tb(e,t,n,r){t.value=n,t.getSnapshot=r,kb(t)&&Ab(e)}function Cb(e,t,n){return n(function(){kb(t)&&Ab(e)})}function kb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!dr(e,n)}catch{return!0}}function Ab(e){var t=ii(e,1);t!==null&&cr(t,e,1,-1)}function hw(e){var t=Sr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Il,lastRenderedState:e},t.queue=e,e=e.dispatch=QL.bind(null,tt,e),[t.memoizedState,e]}function Ll(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=tt.updateQueue,t===null?(t={lastEffect:null,stores:null},tt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Rb(){return Gn().memoizedState}function Pc(e,t,n,r){var i=Sr();tt.flags|=e,i.memoizedState=Ll(1|t,n,void 0,r===void 0?null:r)}function Pd(e,t,n,r){var i=Gn();r=r===void 0?null:r;var o=void 0;if(yt!==null){var l=yt.memoizedState;if(o=l.destroy,r!==null&&dm(r,l.deps)){i.memoizedState=Ll(t,n,o,r);return}}tt.flags|=e,i.memoizedState=Ll(1|t,n,o,r)}function pw(e,t){return Pc(8390656,8,e,t)}function pm(e,t){return Pd(2048,8,e,t)}function Pb(e,t){return Pd(4,2,e,t)}function Ob(e,t){return Pd(4,4,e,t)}function Ib(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Lb(e,t,n){return n=n!=null?n.concat([e]):null,Pd(4,4,Ib.bind(null,t,e),n)}function gm(){}function Nb(e,t){var n=Gn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&dm(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $b(e,t){var n=Gn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&dm(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Db(e,t,n){return Us&21?(dr(n,t)||(n=B1(),tt.lanes|=n,Fs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,nn=!0),e.memoizedState=n)}function KL(e,t){var n=De;De=n!==0&&4>n?n:4,e(!0);var r=Dh.transition;Dh.transition={};try{e(!1),t()}finally{De=n,Dh.transition=r}}function jb(){return Gn().memoizedState}function GL(e,t,n){var r=qi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Mb(e))Ub(t,n);else if(n=wb(e,t,n,r),n!==null){var i=qt();cr(n,e,r,i),Fb(n,t,r)}}function QL(e,t,n){var r=qi(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mb(e))Ub(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,u=o(l,n);if(i.hasEagerState=!0,i.eagerState=u,dr(u,l)){var d=t.interleaved;d===null?(i.next=i,om(t)):(i.next=d.next,d.next=i),t.interleaved=i;return}}catch{}finally{}n=wb(e,t,i,r),n!==null&&(i=qt(),cr(n,e,r,i),Fb(n,t,r))}}function Mb(e){var t=e.alternate;return e===tt||t!==null&&t===tt}function Ub(e,t){dl=id=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fb(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qg(e,n)}}var sd={readContext:Kn,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useInsertionEffect:$t,useLayoutEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useMutableSource:$t,useSyncExternalStore:$t,useId:$t,unstable_isNewReconciler:!1},JL={readContext:Kn,useCallback:function(e,t){return Sr().memoizedState=[e,t===void 0?null:t],e},useContext:Kn,useEffect:pw,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pc(4194308,4,Ib.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pc(4,2,e,t)},useMemo:function(e,t){var n=Sr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Sr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=GL.bind(null,tt,e),[r.memoizedState,e]}
vendor: 4,424 bytes, lines 39-41
39,useRef:function(e){var t=Sr();return e={current:e},t.memoizedState=e},useState:hw,useDebugValue:gm,useDeferredValue:function(e){return Sr().memoizedState=e},useTransition:function(){var e=hw(!1),t=e[0];return e=KL.bind(null,e[1]),Sr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=tt,i=Sr();if(Xe){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),Et===null)throw Error(q(349));Us&30||Sb(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,pw(Cb.bind(null,r,o,e),[e]),r.flags|=2048,Ll(9,Tb.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Sr(),t=Et.identifierPrefix;if(Xe){var n=ei,r=Zr;n=(r&~(1<<32-ur(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ol++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=qL++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},YL={readContext:Kn,useCallback:Nb,useContext:Kn,useEffect:pm,useImperativeHandle:Lb,useInsertionEffect:Pb,useLayoutEffect:Ob,useMemo:$b,useReducer:jh,useRef:Rb,useState:function(){return jh(Il)},useDebugValue:gm,useDeferredValue:function(e){var t=Gn();return Db(t,yt.memoizedState,e)},useTransition:function(){var e=jh(Il)[0],t=Gn().memoizedState;return[e,t]},useMutableSource:xb,useSyncExternalStore:Eb,useId:jb,unstable_isNewReconciler:!1},XL={readContext:Kn,useCallback:Nb,useContext:Kn,useEffect:pm,useImperativeHandle:Lb,useInsertionEffect:Pb,useLayoutEffect:Ob,useMemo:$b,useReducer:Mh,useRef:Rb,useState:function(){return Mh(Il)},useDebugValue:gm,useDeferredValue:function(e){var t=Gn();return yt===null?t.memoizedState=e:Db(t,yt.memoizedState,e)},useTransition:function(){var e=Mh(Il)[0],t=Gn().memoizedState;return[e,t]},useMutableSource:xb,useSyncExternalStore:Eb,useId:jb,unstable_isNewReconciler:!1};function nr(e,t){if(e&&e.defaultProps){t=nt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Fp(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:nt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Od={isMounted:function(e){return(e=e._reactInternals)?Vs(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=qt(),i=qi(e),o=ti(r,i);o.payload=t,n!=null&&(o.callback=n),t=Hi(e,o,i),t!==null&&(cr(t,e,i,r),Ac(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=qt(),i=qi(e),o=ti(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Hi(e,o,i),t!==null&&(cr(t,e,i,r),Ac(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=qt(),r=qi(e),i=ti(n,r);i.tag=2,t!=null&&(i.callback=t),t=Hi(e,i,r),t!==null&&(cr(t,e,r,n),Ac(t,e,r))}};function gw(e,t,n,r,i,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,l):t.prototype&&t.prototype.isPureReactComponent?!Tl(n,r)||!Tl(i,o):!0}function Bb(e,t,n){var r=!1,i=Ji,o=t.contextType;return typeof o=="object"&&o!==null?o=Kn(o):(i=sn(t)?js:Ut.current,r=t.contextTypes,o=(r=r!=null)?sa(e,i):Ji),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Od,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function mw(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Od.enqueueReplaceState(t,t.state,null)}function Bp(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},am(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Kn(o):(o=sn(t)?js:Ut.current,i.context=sa(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Fp(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Od.enqueueReplaceState(i,i.state,null),nd(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ua(e,t){try{var n="",r=t;do n+=CI(r),r=r.return;while(r);var i=n}catch(o){i=`
40Error generating stack: `+o.message+`
41`+o.stack}return{value:e,source:t,stack:i,digest:null}}
vendor: 7,330 bytes, line 41
41function Uh(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function zp(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ZL=typeof WeakMap=="function"?WeakMap:Map;function zb(e,t,n){n=ti(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ad||(ad=!0,Xp=r),zp(e,t)},n}function Wb(e,t,n){n=ti(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){zp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){zp(e,t),typeof r!="function"&&(Vi===null?Vi=new Set([this]):Vi.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function vw(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ZL;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=hN.bind(null,e,t,n),t.then(e,e))}function yw(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ww(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ti(-1,1),t.tag=2,Hi(n,t,1))),n.lanes|=1),e)}var eN=li.ReactCurrentOwner,nn=!1;function Ht(e,t,n,r){t.child=e===null?yb(t,null,n,r):aa(t,e.child,n,r)}function _w(e,t,n,r,i){n=n.render;var o=t.ref;return zo(t,i),r=fm(e,t,n,r,o,i),n=hm(),e!==null&&!nn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,si(e,t,i)):(Xe&&n&&em(t),t.flags|=1,Ht(e,t,r,i),t.child)}function bw(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Em(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Hb(e,t,o,r,i)):(e=Nc(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Tl,n(l,r)&&e.ref===t.ref)return si(e,t,i)}return t.flags|=1,e=Ki(o,r),e.ref=t.ref,e.return=t,t.child=e}function Hb(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Tl(o,r)&&e.ref===t.ref)if(nn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(nn=!0);else return t.lanes=e.lanes,si(e,t,i)}return Wp(e,t,n,r,i)}function Vb(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},He(Do,xn),xn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,He(Do,xn),xn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,He(Do,xn),xn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,He(Do,xn),xn|=r;return Ht(e,t,i,n),t.child}function qb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wp(e,t,n,r,i){var o=sn(n)?js:Ut.current;return o=sa(t,o),zo(t,i),n=fm(e,t,n,r,o,i),r=hm(),e!==null&&!nn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,si(e,t,i)):(Xe&&r&&em(t),t.flags|=1,Ht(e,t,n,i),t.child)}function xw(e,t,n,r,i){if(sn(n)){var o=!0;Yc(t)}else o=!1;if(zo(t,i),t.stateNode===null)Oc(e,t),Bb(t,n,r),Bp(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,u=t.memoizedProps;l.props=u;var d=l.context,f=n.contextType;typeof f=="object"&&f!==null?f=Kn(f):(f=sn(n)?js:Ut.current,f=sa(t,f));var p=n.getDerivedStateFromProps,m=typeof p=="function"||typeof l.getSnapshotBeforeUpdate=="function";m||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==r||d!==f)&&mw(t,l,r,f),ki=!1;var g=t.memoizedState;l.state=g,nd(t,r,l,i),d=t.memoizedState,u!==r||g!==d||rn.current||ki?(typeof p=="function"&&(Fp(t,n,p,r),d=t.memoizedState),(u=ki||gw(t,n,u,r,g,d,f))?(m||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=d),l.props=r,l.state=d,l.context=f,r=u):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,_b(e,t),u=t.memoizedProps,f=t.type===t.elementType?u:nr(t.type,u),l.props=f,m=t.pendingProps,g=l.context,d=n.contextType,typeof d=="object"&&d!==null?d=Kn(d):(d=sn(n)?js:Ut.current,d=sa(t,d));var w=n.getDerivedStateFromProps;(p=typeof w=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==m||g!==d)&&mw(t,l,r,d),ki=!1,g=t.memoizedState,l.state=g,nd(t,r,l,i);var x=t.memoizedState;u!==m||g!==x||rn.current||ki?(typeof w=="function"&&(Fp(t,n,w,r),x=t.memoizedState),(f=ki||gw(t,n,f,r,g,x,d)||!1)?(p||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,x,d),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,x,d)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||u===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),l.props=r,l.state=x,l.context=d,r=f):(typeof l.componentDidUpdate!="function"||u===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return Hp(e,t,n,r,o,i)}function Hp(e,t,n,r,i,o){qb(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&aw(t,n,!1),si(e,t,o);r=t.stateNode,eN.current=t;var u=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=aa(t,e.child,null,o),t.child=aa(t,null,u,o)):Ht(e,t,u,o),t.memoizedState=r.state,i&&aw(t,n,!0),t.child}function Kb(e){var t=e.stateNode;t.pendingContext?ow(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ow(e,t.context,!1),lm(e,t.containerInfo)}function Ew(e,t,n,r,i){return oa(),nm(i),t.flags|=256,Ht(e,t,n,r),t.child}var Vp={dehydrated:null,treeContext:null,retryLane:0};function qp(e){return{baseLanes:e,cachePool:null,transitions:null}}function Gb(e,t,n){var r=t.pendingProps,i=et.current,o=!1,l=(t.flags&128)!==0,u;if((u=l)||(u=e!==null&&e.memoizedState===null?!1:(i&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),He(et,i&1),e===null)return Mp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=Nd(l,r,0,null),e=Ds(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=qp(n),t.memoizedState=Vp,e):mm(t,l));if(i=e.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return tN(e,t,l,r,u,
vendor: 6,298 bytes, line 41
41i,n);if(o){o=r.fallback,l=t.mode,i=e.child,u=i.sibling;var d={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=d,t.deletions=null):(r=Ki(i,d),r.subtreeFlags=i.subtreeFlags&14680064),u!==null?o=Ki(u,o):(o=Ds(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?qp(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Vp,r}return o=e.child,e=o.sibling,r=Ki(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function mm(e,t){return t=Nd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ac(e,t,n,r){return r!==null&&nm(r),aa(t,e.child,null,n),e=mm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tN(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=Uh(Error(q(422))),ac(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Nd({mode:"visible",children:r.children},i,0,null),o=Ds(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&aa(t,e.child,null,l),t.child.memoizedState=qp(l),t.memoizedState=Vp,o);if(!(t.mode&1))return ac(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(q(419)),r=Uh(o,r,void 0),ac(e,t,l,r)}if(u=(l&e.childLanes)!==0,nn||u){if(r=Et,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|l)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,ii(e,i),cr(r,e,i,-1))}return xm(),r=Uh(Error(q(421))),ac(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=pN.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Sn=Wi(i.nextSibling),Tn=t,Xe=!0,ar=null,e!==null&&(Wn[Hn++]=Zr,Wn[Hn++]=ei,Wn[Hn++]=Ms,Zr=e.id,ei=e.overflow,Ms=t),t=mm(t,r.children),t.flags|=4096,t)}function Sw(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Up(e.return,t,n)}function Fh(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Qb(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ht(e,t,r.children,n),r=et.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sw(e,n,t);else if(e.tag===19)Sw(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(He(et,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&rd(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Fh(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&rd(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Fh(t,!0,n,null,o);break;case"together":Fh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Oc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function si(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Fs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(q(153));if(t.child!==null){for(e=t.child,n=Ki(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ki(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nN(e,t,n){switch(t.tag){case 3:Kb(t),oa();break;case 5:bb(t);break;case 1:sn(t.type)&&Yc(t);break;case 4:lm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;He(ed,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(He(et,et.current&1),t.flags|=128,null):n&t.child.childLanes?Gb(e,t,n):(He(et,et.current&1),e=si(e,t,n),e!==null?e.sibling:null);He(et,et.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Qb(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),He(et,et.current),r)break;return null;case 22:case 23:return t.lanes=0,Vb(e,t,n)}return si(e,t,n)}var Jb,Kp,Yb,Xb;Jb=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Kp=function(){};Yb=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,As(Pr.current);var o=null;switch(n){case"input":i=gp(e,i),r=gp(e,r),o=[];break;case"select":i=nt({},i,{value:void 0}),r=nt({},r,{value:void 0}),o=[];break;case"textarea":i=yp(e,i),r=yp(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Qc)}_p(n,r);var l;n=null;for(f in i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var u=i[f];for(l in u)u.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(yl.hasOwnProperty(f)?o||(o=[]):(o=o||[]).push(f,null));for(f in r){var d=r[f];if(u=i!=null?i[f]:void 0,r.hasOwnProperty(f)&&d!==u&&(d!=null||u!=null))if(f==="style")if(u){for(l in u)!u.hasOwnProperty(l)||d&&d.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in d)d.hasOwnProperty(l)&&u[l]!==d[l]&&(n||(n={}),n[l]=d[l])}else n||(o||(o=[]),o.push(f,n)),n=d;else f==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,u=u?u.__html:void 0,d!=null&&u!==d&&(o=o||[]).push(f,d)):f==="children"?typeof d!="string"&&typeof d!="number"||(o=o||[]).push(f,""+d
vendor: 4,804 bytes, line 41
41):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(yl.hasOwnProperty(f)?(d!=null&&f==="onScroll"&&Ge("scroll",e),o||u===d||(o=[])):(o=o||[]).push(f,d))}n&&(o=o||[]).push("style",n);var f=o;(t.updateQueue=f)&&(t.flags|=4)}};Xb=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ga(e,t){if(!Xe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Dt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function rN(e,t,n){var r=t.pendingProps;switch(tm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(t),null;case 1:return sn(t.type)&&Jc(),Dt(t),null;case 3:return r=t.stateNode,la(),Qe(rn),Qe(Ut),cm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(sc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ar!==null&&(tg(ar),ar=null))),Kp(e,t),Dt(t),null;case 5:um(t);var i=As(Pl.current);if(n=t.type,e!==null&&t.stateNode!=null)Yb(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(q(166));return Dt(t),null}if(e=As(Pr.current),sc(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ar]=t,r[Al]=o,e=(t.mode&1)!==0,n){case"dialog":Ge("cancel",r),Ge("close",r);break;case"iframe":case"object":case"embed":Ge("load",r);break;case"video":case"audio":for(i=0;i<il.length;i++)Ge(il[i],r);break;case"source":Ge("error",r);break;case"img":case"image":case"link":Ge("error",r),Ge("load",r);break;case"details":Ge("toggle",r);break;case"input":L0(r,o),Ge("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ge("invalid",r);break;case"textarea":$0(r,o),Ge("invalid",r)}_p(n,o),i=null;for(var l in o)if(o.hasOwnProperty(l)){var u=o[l];l==="children"?typeof u=="string"?r.textContent!==u&&(o.suppressHydrationWarning!==!0&&ic(r.textContent,u,e),i=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&ic(r.textContent,u,e),i=["children",""+u]):yl.hasOwnProperty(l)&&u!=null&&l==="onScroll"&&Ge("scroll",r)}switch(n){case"input":Ju(r),N0(r,o,!0);break;case"textarea":Ju(r),D0(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Qc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=C1(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ar]=t,e[Al]=r,Jb(e,t,!1,!1),t.stateNode=e;e:{switch(l=bp(n,r),n){case"dialog":Ge("cancel",e),Ge("close",e),i=r;break;case"iframe":case"object":case"embed":Ge("load",e),i=r;break;case"video":case"audio":for(i=0;i<il.length;i++)Ge(il[i],e);i=r;break;case"source":Ge("error",e),i=r;break;case"img":case"image":case"link":Ge("error",e),Ge("load",e),i=r;break;case"details":Ge("toggle",e),i=r;break;case"input":L0(e,r),i=gp(e,r),Ge("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=nt({},r,{value:void 0}),Ge("invalid",e);break;case"textarea":$0(e,r),i=yp(e,r),Ge("invalid",e);break;default:i=r}_p(n,i),u=i;for(o in u)if(u.hasOwnProperty(o)){var d=u[o];o==="style"?R1(e,d):o==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&k1(e,d)):o==="children"?typeof d=="string"?(n!=="textarea"||d!=="")&&wl(e,d):typeof d=="number"&&wl(e,""+d):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(yl.hasOwnProperty(o)?d!=null&&o==="onScroll"&&Ge("scroll",e):d!=null&&Fg(e,o,d,l))}switch(n){case"input":Ju(e),N0(e,r,!1);break;case"textarea":Ju(e),D0(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Qi(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Mo(e,!!r.multiple,o,!1):r.defaultValue!=null&&Mo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Qc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}
vendor: 30,002 bytes, line 41
41return Dt(t),null;case 6:if(e&&t.stateNode!=null)Xb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(q(166));if(n=As(Pl.current),As(Pr.current),sc(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ar]=t,(o=r.nodeValue!==n)&&(e=Tn,e!==null))switch(e.tag){case 3:ic(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ic(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ar]=t,t.stateNode=r}return Dt(t),null;case 13:if(Qe(et),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Xe&&Sn!==null&&t.mode&1&&!(t.flags&128))mb(),oa(),t.flags|=98560,o=!1;else if(o=sc(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(q(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(q(317));o[Ar]=t}else oa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Dt(t),o=!1}else ar!==null&&(tg(ar),ar=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||et.current&1?_t===0&&(_t=3):xm())),t.updateQueue!==null&&(t.flags|=4),Dt(t),null);case 4:return la(),Kp(e,t),e===null&&Cl(t.stateNode.containerInfo),Dt(t),null;case 10:return sm(t.type._context),Dt(t),null;case 17:return sn(t.type)&&Jc(),Dt(t),null;case 19:if(Qe(et),o=t.memoizedState,o===null)return Dt(t),null;if(r=(t.flags&128)!==0,l=o.rendering,l===null)if(r)Ga(o,!1);else{if(_t!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=rd(e),l!==null){for(t.flags|=128,Ga(o,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,l=o.alternate,l===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return He(et,et.current&1|2),t.child}e=e.sibling}o.tail!==null&&ut()>ca&&(t.flags|=128,r=!0,Ga(o,!1),t.lanes=4194304)}else{if(!r)if(e=rd(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ga(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!Xe)return Dt(t),null}else 2*ut()-o.renderingStartTime>ca&&n!==1073741824&&(t.flags|=128,r=!0,Ga(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ut(),t.sibling=null,n=et.current,He(et,r?n&1|2:n&1),t):(Dt(t),null);case 22:case 23:return bm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xn&1073741824&&(Dt(t),t.subtreeFlags&6&&(t.flags|=8192)):Dt(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function iN(e,t){switch(tm(t),t.tag){case 1:return sn(t.type)&&Jc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return la(),Qe(rn),Qe(Ut),cm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return um(t),null;case 13:if(Qe(et),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qe(et),null;case 4:return la(),null;case 10:return sm(t.type._context),null;case 22:case 23:return bm(),null;case 24:return null;default:return null}}var lc=!1,Mt=!1,sN=typeof WeakSet=="function"?WeakSet:Set,te=null;function $o(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ot(e,t,r)}else n.current=null}function Gp(e,t,n){try{n()}catch(r){ot(e,t,r)}}var Tw=!1;function oN(e,t){if(Op=qc,e=rb(),Zg(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,u=-1,d=-1,f=0,p=0,m=e,g=null;t:for(;;){for(var w;m!==n||i!==0&&m.nodeType!==3||(u=l+i),m!==o||r!==0&&m.nodeType!==3||(d=l+r),m.nodeType===3&&(l+=m.nodeValue.length),(w=m.firstChild)!==null;)g=m,m=w;for(;;){if(m===e)break t;if(g===n&&++f===i&&(u=l),g===o&&++p===r&&(d=l),(w=m.nextSibling)!==null)break;m=g,g=m.parentNode}m=w}n=u===-1||d===-1?null:{start:u,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ip={focusedElem:e,selectionRange:n},qc=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var E=x.memoizedProps,T=x.memoizedState,_=t.stateNode,v=_.getSnapshotBeforeUpdate(t.elementType===t.type?E:nr(t.type,E),T);_.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(A){ot(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return x=Tw,Tw=!1,x}function fl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Gp(t,n,o)}i=i.next}while(i!==r)}}function Id(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Qp(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 Zb(e){var t=e.alternate;t!==null&&(e.alternate=null,Zb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ar],delete t[Al],delete t[$p],delete t[zL],delete t[WL])),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 ex(e){return e.tag===5||e.tag===3||e.tag===4}function Cw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ex(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 Jp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qc));else if(r!==4&&(e=e.child,e!==null))for(Jp(e,t,n),e=e.sibling;e!==null;)Jp(e,t,n),e=e.sibling}function Yp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Yp(e,t,n),e=e.sibling;e!==null;)Yp(e,t,n),e=e.sibling}var Rt=null,sr=!1;function bi(e,t,n){for(n=n.child;n!==null;)tx(e,t,n),n=n.sibling}function tx(e,t,n){if(Rr&&typeof Rr.onCommitFiberUnmount=="function")try{Rr.onCommitFiberUnmount(Sd,n)}catch{}switch(n.tag){case 5:Mt||$o(n,t);case 6:var r=Rt,i=sr;Rt=null,bi(e,t,n),Rt=r,sr=i,Rt!==null&&(sr?(e=Rt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Rt.removeChild(n.stateNode));break;case 18:Rt!==null&&(sr?(e=Rt,n=n.stateNode,e.nodeType===8?Lh(e.parentNode,n):e.nodeType===1&&Lh(e,n),El(e)):Lh(Rt,n.stateNode));break;case 4:r=Rt,i=sr,Rt=n.stateNode.containerInfo,sr=!0,bi(e,t,n),Rt=r,sr=i;break;case 0:case 11:case 14:case 15:if(!Mt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Gp(n,t,l),i=i.next}while(i!==r)}bi(e,t,n);break;case 1:if(!Mt&&($o(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){ot(n,t,u)}bi(e,t,n);break;case 21:bi(e,t,n);break;case 22:n.mode&1?(Mt=(r=Mt)||n.memoizedState!==null,bi(e,t,n),Mt=r):bi(e,t,n);break;default:bi(e,t,n)}}function kw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sN),t.forEach(function(r){var i=gN.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function er(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,l=t,u=l;e:for(;u!==null;){switch(u.tag){case 5:Rt=u.stateNode,sr=!1;break e;case 3:Rt=u.stateNode.containerInfo,sr=!0;break e;case 4:Rt=u.stateNode.containerInfo,sr=!0;break e}u=u.return}if(Rt===null)throw Error(q(160));tx(o,l,i),Rt=null,sr=!1;var d=i.alternate;d!==null&&(d.return=null),i.return=null}catch(f){ot(i,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)nx(t,e),t=t.sibling}function nx(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(er(t,e),Er(e),r&4){try{fl(3,e,e.return),Id(3,e)}catch(E){ot(e,e.return,E)}try{fl(5,e,e.return)}catch(E){ot(e,e.return,E)}}break;case 1:er(t,e),Er(e),r&512&&n!==null&&$o(n,n.return);break;case 5:if(er(t,e),Er(e),r&512&&n!==null&&$o(n,n.return),e.flags&32){var i=e.stateNode;try{wl(i,"")}catch(E){ot(e,e.return,E)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,l=n!==null?n.memoizedProps:o,u=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{u==="input"&&o.type==="radio"&&o.name!=null&&S1(i,o),bp(u,l);var f=bp(u,o);for(l=0;l<d.length;l+=2){var p=d[l],m=d[l+1];p==="style"?R1(i,m):p==="dangerouslySetInnerHTML"?k1(i,m):p==="children"?wl(i,m):Fg(i,p,m,f)}switch(u){case"input":mp(i,o);break;case"textarea":T1(i,o);break;case"select":var g=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var w=o.value;w!=null?Mo(i,!!o.multiple,w,!1):g!==!!o.multiple&&(o.defaultValue!=null?Mo(i,!!o.multiple,o.defaultValue,!0):Mo(i,!!o.multiple,o.multiple?[]:"",!1))}i[Al]=o}catch(E){ot(e,e.return,E)}}break;case 6:if(er(t,e),Er(e),r&4){if(e.stateNode===null)throw Error(q(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(E){ot(e,e.return,E)}}break;case 3:if(er(t,e),Er(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{El(t.containerInfo)}catch(E){ot(e,e.return,E)}break;case 4:er(t,e),Er(e);break;case 13:er(t,e),Er(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(wm=ut())),r&4&&kw(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(Mt=(f=Mt)||p,er(t,e),Mt=f):er(t,e),Er(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!p&&e.mode&1)for(te=e,p=e.child;p!==null;){for(m=te=p;te!==null;){switch(g=te,w=g.child,g.tag){case 0:case 11:case 14:case 15:fl(4,g,g.return);break;case 1:$o(g,g.return);var x=g.stateNode;if(typeof x.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(E){ot(r,n,E)}}break;case 5:$o(g,g.return);break;case 22:if(g.memoizedState!==null){Rw(m);continue}}w!==null?(w.return=g,te=w):Rw(m)}p=p.sibling}e:for(p=null,m=e;;){if(m.tag===5){if(p===null){p=m;try{i=m.stateNode,f?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(u=m.stateNode,d=m.memoizedProps.style,l=d!=null&&d.hasOwnProperty("display")?d.display:null,u.style.display=A1("display",l))}catch(E){ot(e,e.return,E)}}}else if(m.tag===6){if(p===null)try{m.stateNode.nodeValue=f?"":m.memoizedProps}catch(E){ot(e,e.return,E)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;p===m&&(p=null),m=m.return}p===m&&(p=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:er(t,e),Er(e),r&4&&kw(e);break;case 21:break;default:er(t,e),Er(e)}}function Er(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ex(n)){var r=n;break e}n=n.return}throw Error(q(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(wl(i,""),r.flags&=-33);var o=Cw(e);Yp(e,o,i);break;case 3:case 4:var l=r.stateNode.containerInfo,u=Cw(e);Jp(e,u,l);break;default:throw Error(q(161))}}catch(d){ot(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function aN(e,t,n){te=e,rx(e)}function rx(e,t,n){for(var r=(e.mode&1)!==0;te!==null;){var i=te,o=i.child;if(i.tag===22&&r){var l=i.memoizedState!==null||lc;if(!l){var u=i.alternate,d=u!==null&&u.memoizedState!==null||Mt;u=lc;var f=Mt;if(lc=l,(Mt=d)&&!f)for(te=i;te!==null;)l=te,d=l.child,l.tag===22&&l.memoizedState!==null?Pw(i):d!==null?(d.return=l,te=d):Pw(i);for(;o!==null;)te=o,rx(o),o=o.sibling;te=i,lc=u,Mt=f}Aw(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,te=o):Aw(e)}}function Aw(e){for(;te!==null;){var t=te;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Mt||Id(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Mt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:nr(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&fw(t,o,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}fw(t,l,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var d=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":d.autoFocus&&n.focus();break;case"img":d.src&&(n.src=d.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var p=f.memoizedState;if(p!==null){var m=p.dehydrated;m!==null&&El(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(q(163))}Mt||t.flags&512&&Qp(t)}catch(g){ot(t,t.return,g)}}if(t===e){te=null;break}if(n=t.sibling,n!==null){n.return=t.return,te=n;break}te=t.return}}function Rw(e){for(;te!==null;){var t=te;if(t===e){te=null;break}var n=t.sibling;if(n!==null){n.return=t.return,te=n;break}te=t.return}}function Pw(e){for(;te!==null;){var t=te;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Id(4,t)}catch(d){ot(t,n,d)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(d){ot(t,i,d)}}var o=t.return;try{Qp(t)}catch(d){ot(t,o,d)}break;case 5:var l=t.return;try{Qp(t)}catch(d){ot(t,l,d)}}}catch(d){ot(t,t.return,d)}if(t===e){te=null;break}var u=t.sibling;if(u!==null){u.return=t.return,te=u;break}te=t.return}}var lN=Math.ceil,od=li.ReactCurrentDispatcher,vm=li.ReactCurrentOwner,qn=li.ReactCurrentBatchConfig,Pe=0,Et=null,ht=null,Pt=0,xn=0,Do=ns(0),_t=0,Nl=null,Fs=0,Ld=0,ym=0,hl=null,tn=null,wm=0,ca=1/0,Qr=null,ad=!1,Xp=null,Vi=null,uc=!1,Mi=null,ld=0,pl=0,Zp=null,Ic=-1,Lc=0;function qt(){return Pe&6?ut():Ic!==-1?Ic:Ic=ut()}function qi(e){return e.mode&1?Pe&2&&Pt!==0?Pt&-Pt:VL.transition!==null?(Lc===0&&(Lc=B1()),Lc):(e=De,e!==0||(e=window.event,e=e===void 0?16:G1(e.type)),e):1}function cr(e,t,n,r){if(50<pl)throw pl=0,Zp=null,Error(q(185));Xl(e,n,r),(!(Pe&2)||e!==Et)&&(e===Et&&(!(Pe&2)&&(Ld|=n),_t===4&&Pi(e,Pt)),on(e,r),n===1&&Pe===0&&!(t.mode&1)&&(ca=ut()+500,Rd&&rs()))}function on(e,t){var n=e.callbackNode;VI(e,t);var r=Vc(e,e===Et?Pt:0);if(r===0)n!==null&&U0(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&U0(n),t===1)e.tag===0?HL(Ow.bind(null,e)):hb(Ow.bind(null,e)),FL(function(){!(Pe&6)&&rs()}),n=null;else{switch(z1(r)){case 1:n=Vg;break;case 4:n=U1;break;case 16:n=Hc;break;case 536870912:n=F1;break;default:n=Hc}n=dx(n,ix.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ix(e,t){if(Ic=-1,Lc=0,Pe&6)throw Error(q(327));var n=e.callbackNode;if(Wo()&&e.callbackNode!==n)return null;var r=Vc(e,e===Et?Pt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ud(e,r);else{t=r;var i=Pe;Pe|=2;var o=ox();(Et!==e||Pt!==t)&&(Qr=null,ca=ut()+500,$s(e,t));do try{dN();break}catch(u){sx(e,u)}while(!0);im(),od.current=o,Pe=i,ht!==null?t=0:(Et=null,Pt=0,t=_t)}if(t!==0){if(t===2&&(i=Cp(e),i!==0&&(r=i,t=eg(e,i))),t===1)throw n=Nl,$s(e,0),Pi(e,r),on(e,ut()),n;if(t===6)Pi(e,r);else{if(i=e.current.alternate,!(r&30)&&!uN(i)&&(t=ud(e,r),t===2&&(o=Cp(e),o!==0&&(r=o,t=eg(e,o))),t===1))throw n=Nl,$s(e,0),Pi(e,r),on(e,ut()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(q(345));case 2:xs(e,tn,Qr);break;case 3:if(Pi(e,r),(r&130023424)===r&&(t=wm+500-ut(),10<t)){if(Vc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){qt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Np(xs.bind(null,e,tn,Qr),t);break}xs(e,tn,Qr);break;case 4:if(Pi(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-ur(r);o=1<<l,l=t[l],l>i&&(i=l),r&=~o}if(r=i,r=ut()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*lN(r/1960))-r,10<r){e.timeoutHandle=Np(xs.bind(null,e,tn,Qr),r);break}xs(e,tn,Qr);break;case 5:xs(e,tn,Qr);break;default:throw Error(q(329))}}}return on(e,ut()),e.callbackNode===n?ix.bind(null,e):null}function eg(e,t){var n=hl;return e.current.memoizedState.isDehydrated&&($s(e,t).flags|=256),e=ud(e,t),e!==2&&(t=tn,tn=n,t!==null&&tg(t)),e}function tg(e){tn===null?tn=e:tn.push.apply(tn,e)}function uN(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!dr(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pi(e,t){for(t&=~ym,t&=~Ld,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ur(t),r=1<<n;e[n]=-1,t&=~r}}function Ow(e){if(Pe&6)throw Error(q(327));Wo();var t=Vc(e,0);if(!(t&1))return on(e,ut()),null;var n=ud(e,t);if(e.tag!==0&&n===2){var r=Cp(e);r!==0&&(t=r,n=eg(e,r))}if(n===1)throw n=Nl,$s(e,0),Pi(e,t),on(e,ut()),n;if(n===6)throw Error(q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e,tn,Qr),on(e,ut()),null}function _m(e,t){var n=Pe;Pe|=1;try{return e(t)}finally{Pe=n,Pe===0&&(ca=ut()+500,Rd&&rs())}}function Bs(e){Mi!==null&&Mi.tag===0&&!(Pe&6)&&Wo();var t=Pe;Pe|=1;var n=qn.transition,r=De;try{if(qn.transition=null,De=1,e)return e()}finally{De=r,qn.transition=n,Pe=t,!(Pe&6)&&rs()}}function bm(){xn=Do.current,Qe(Do)}function $s(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,UL(n)),ht!==null)for(n=ht.return;n!==null;){var r=n;switch(tm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Jc();break;case 3:la(),Qe(rn),Qe(Ut),cm();break;case 5:um(r);break;case 4:la();break;case 13:Qe(et);break;case 19:Qe(et);break;case 10:sm(r.type._context);break;case 22:case 23:bm()}n=n.return}if(Et=e,ht=e=Ki(e.current,null),Pt=xn=t,_t=0,Nl=null,ym=Ld=Fs=0,tn=hl=null,ks!==null){for(t=0;t<ks.length;t++)if(n=ks[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var l=o.next;o.next=i,r.next=l}n.pending=r}ks=null}return e}function sx(e,t){do{var n=ht;try{if(im(),Rc.current=sd,id){for(var r=tt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}id=!1}if(Us=0,xt=yt=tt=null,dl=!1,Ol=0,vm.current=null,n===null||n.return===null){_t=1,Nl=t,ht=null;break}e:{var o=e,l=n.return,u=n,d=t;if(t=Pt,u.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){var f=d,p=u,m=p.tag;if(!(p.mode&1)&&(m===0||m===11||m===15)){var g=p.alternate;g?(p.updateQueue=g.updateQueue,p.memoizedState=g.memoizedState,p.lanes=g.lanes):(p.updateQueue=null,p.memoizedState=null)}var w=yw(l);if(w!==null){w.flags&=-257,ww(w,l,u,o,t),w.mode&1&&vw(o,f,t),t=w,d=f;var x=t.updateQueue;if(x===null){var E=new Set;E.add(d),t.updateQueue=E}else x.add(d);break e}else{if(!(t&1)){vw(o,f,t),xm();break e}d=Error(q(426))}}else if(Xe&&u.mode&1){var T=yw(l);if(T!==null){!(T.flags&65536)&&(T.flags|=256),ww(T,l,u,o,t),nm(ua(d,u));break e}}o=d=ua(d,u),_t!==4&&(_t=2),hl===null?hl=[o]:hl.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var _=zb(o,d,t);dw(o,_);break e;case 1:u=d;var v=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof v.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Vi===null||!Vi.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var A=Wb(o,u,t);dw(o,A);break e}}o=o.return}while(o!==null)}lx(n)}catch(O){t=O,ht===n&&n!==null&&(ht=n=n.return);continue}break}while(!0)}function ox(){var e=od.current;return od.current=sd,e===null?sd:e}function xm(){(_t===0||_t===3||_t===2)&&(_t=4),Et===null||!(Fs&268435455)&&!(Ld&268435455)||Pi(Et,Pt)}function ud(e,t){var n=Pe;Pe|=2;var r=ox();(Et!==e||Pt!==t)&&(Qr=null,$s(e,t));do try{cN();break}catch(i){sx(e,i)}while(!0);if(im(),Pe=n,od.current=r,ht!==null)throw Error(q(261));return Et=null,Pt=0,_t}function cN(){for(;ht!==null;)ax(ht)}function dN(){for(;ht!==null&&!DI();)ax(ht)}function ax(e){var t=cx(e.alternate,e,xn);e.memoizedProps=e.pendingProps,t===null?lx(e):ht=t,vm.current=null}function lx(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=iN(n,t),n!==null){n.flags&=32767,ht=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{_t=6,ht=null;return}}else if(n=rN(n,t,xn),n!==null){ht=n;return}if(t=t.sibling,t!==null){ht=t;return}ht=t=e}while(t!==null);_t===0&&(_t=5)}function xs(e,t,n){var r=De,i=qn.transition;try{qn.transition=null,De=1,fN(e,t,n,r)}finally{qn.transition=i,De=r}return null}function fN(e,t,n,r){do Wo();while(Mi!==null);if(Pe&6)throw Error(q(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(q(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(qI(e,o),e===Et&&(ht=Et=null,Pt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||uc||(uc=!0,dx(Hc,function(){return Wo(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=qn.transition,qn.transition=null;var l=De;De=1;var u=Pe;Pe|=4,vm.current=null,oN(e,n),nx(n,e),IL(Ip),qc=!!Op,Ip=Op=null,e.current=n,aN(n),jI(),Pe=u,De=l,qn.transition=o}else e.current=n;if(uc&&(uc=!1,Mi=e,ld=i),o=e.pendingLanes,o===0&&(Vi=null),FI(n.stateNode),on(e,ut()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(ad)throw ad=!1,e=Xp,Xp=null,e;return ld&1&&e.tag!==0&&Wo(),o=e.pendingLanes,o&1?e===Zp?pl++:(pl=0,Zp=e):pl=0,rs(),null}function Wo(){if(Mi!==null){var e=z1(ld),t=qn.transition,n=De;try{if(qn.transition=null,De=16>e?16:e,Mi===null)var r=!1;else{if(e=Mi,Mi=null,ld=0,Pe&6)throw Error(q(331));var i=Pe;for(Pe|=4,te=e.current;te!==null;){var o=te,l=o.child;if(te.flags&16){var u=o.deletions;if(u!==null){for(var d=0;d<u.length;d++){var f=u[d];for(te=f;te!==null;){var p=te;switch(p.tag){case 0:case 11:case 15:fl(8,p,o)}var m=p.child;if(m!==null)m.return=p,te=m;else for(;te!==null;){p=te;var g=p.sibling,w=p.return;if(Zb(p),p===f){te=null;break}if(g!==null){g.return=w,te=g;break}te=w}}}var x=o.alternate;if(x!==null){var E=x.child;if(E!==null){x.child=null;do{var T=E.sibling;E.sibling=null,E=T}while(E!==null)}}te=o}}if(o.subtreeFlags&2064&&l!==null)l.return=o,te=l;else e:for(;te!==null;){if(o=te,o.flags&2048)switch(o.tag){case 0:case 11:case 15:fl(9,o,o.return)}var _=o.sibling;if(_!==null){_.return=o.return,te=_;break e}te=o.return}}var v=e.current;for(te=v;te!==null;){l=te;var b=l.child;if(l.subtreeFlags&2064&&b!==null)b.return=l,te=b;else e:for(l=v;te!==null;){if(u=te,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:Id(9,u)}}catch(O){ot(u,u.return,O)}if(u===l){te=null;break e}var A=u.sibling;if(A!==null){A.return=u.return,te=A;break e}te=u.return}}if(Pe=i,rs(),Rr&&typeof Rr.onPostCommitFiberRoot=="function")try{Rr.onPostCommitFiberRoot(Sd,e)}catch{}r=!0}return r}finally{De=n,qn.transition=t}}return!1}function Iw(e,t,n){t=ua(n,t),t=zb(e,t,1),e=Hi(e,t,1),t=qt(),e!==null&&(Xl(e,1,t),on(e,t))}function ot(e,t,n){if(e.tag===3)Iw(e,e,n);else for(;t!==null;){if(t.tag===3){Iw(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Vi===null||!Vi.has(r))){e=ua(n,e),e=Wb(t,e,1),t=Hi(t,e,1),e=qt(),t!==null&&(Xl(t,1,e),on(t,e));break}}t=t.return}}function hN(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=qt(),e.pingedLanes|=e.suspendedLanes&n,Et===e&&(Pt&n)===n&&(_t===4||_t===3&&(Pt&130023424)===Pt&&500>ut()-wm?$s(e,0):ym|=n),on(e,t)}function ux(e,t){t===0&&(e.mode&1?(t=Zu,Zu<<=1,!(Zu&130023424)&&(Zu=4194304)):t=1);var n=qt();e=ii(e,t),e!==null&&(Xl(e,t,n),on(e,n))}function pN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ux(e,n)}function gN(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(q(314))}r!==null&&r.delete(t),ux(e,n)}var cx;cx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rn.current)nn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return nn=!1,nN(e,t,n);nn=!!(e.flags&131072)}else nn=!1,Xe&&t.flags&1048576&&pb(t,Zc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oc(e,t),e=t.pendingProps;var i=sa(t,Ut.current);zo(t,n),i=fm(null,t,r,e,i,n);var o=hm();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,sn(r)?(o=!0,Yc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,am(t),i.updater=Od,t.stateNode=i,i._reactInternals=t,Bp(t,r,e,n),t=Hp(null,t,r,!0,o,n)):(t.tag=0,Xe&&o&&em(t),Ht(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=vN(r),e=nr(r,e),i){case 0:t=Wp(null,t,r,e,n);break e;case 1:t=xw(null,t,r,e,n);break e;case 11:t=_w(null,t,r,e,n);break e;case 14:t=bw(null,t,r,nr(r.type,e),n);break e}throw Error(q(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:nr(r,i),Wp(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:nr(r,i),xw(e,t,r,i,n);case 3:e:{if(Kb(t),e===null)throw Error(q(387));r=t.pendingProps,o=t.memoizedState,i=o.element,_b(e,t),nd(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ua(Error(q(423)),t),t=Ew(e,t,r,n,i);break e}else if(r!==i){i=ua(Error(q(424)),t),t=Ew(e,t,r,n,i);break e}else for(Sn=Wi(t.stateNode.containerInfo.firstChild),Tn=t,Xe=!0,ar=null,n=yb(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(oa(),r===i){t=si(e,t,n);break e}Ht(e,t,r,n)}t=t.child}return t;case 5:return bb(t),e===null&&Mp(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Lp(r,i)?l=null:o!==null&&Lp(r,o)&&(t.flags|=32),qb(e,t),Ht(e,t,l,n),t.child;case 6:return e===null&&Mp(t),null;case 13:return Gb(e,t,n);case 4:return lm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=aa(t,null,r,n):Ht(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:nr(r,i),_w(e,t,r,i,n);case 7:return Ht(e,t,t.pendingProps,n),t.child;case 8:return Ht(e,t,t.pendingProps.children,n),t.child;case 12:return Ht(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,He(ed,r._currentValue),r._currentValue=l,o!==null)if(dr(o.value,l)){if(o.children===i.children&&!rn.current){t=si(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){l=o.child;for(var d=u.firstContext;d!==null;){if(d.context===r){if(o.tag===1){d=ti(-1,n&-n),d.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?d.next=d:(d.next=p.next,p.next=d),f.pending=d}}o.lanes|=n,d=o.alternate,d!==null&&(d.lanes|=n),Up(o.return,n,t),u.lanes|=n;break}d=d.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(q(341));l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Up(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}Ht(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,zo(t,n),i=Kn(i),r=r(i),t.flags|=1,Ht(e,t,r,n),t.child;case 14:return r=t.type,i=nr(r,t.pendingProps),i=nr(r.type,i),bw(e,t,r,i,n);case 15:return Hb(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:nr(r,i),Oc(e,t),t.tag=1,sn(r)?(e=!0,Yc(t)):e=!1,zo(t,n),Bb(t,r,i),Bp(t,r,i,n),Hp(null,t,r,!0,e,n);case 19:return Qb(e,t,n);case 22:return Vb(e,t,n)}throw Error(q(156,t.tag))};function dx(e,t){return M1(e,t)}function mN(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vn(e,t,n,r){return new mN(e,t,n,r)}function Em(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vN(e){if(typeof e=="function")return Em(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zg)return 11;if(e===Wg)return 14}return 2}function Ki(e,t){var n=e.alternate;return n===null?(n=Vn(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.deleti
vendor: 4,167 bytes, line 41
41ons=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 Nc(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Em(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Co:return Ds(n.children,i,o,t);case Bg:l=8,i|=8;break;case dp:return e=Vn(12,n,t,i|2),e.elementType=dp,e.lanes=o,e;case fp:return e=Vn(13,n,t,i),e.elementType=fp,e.lanes=o,e;case hp:return e=Vn(19,n,t,i),e.elementType=hp,e.lanes=o,e;case b1:return Nd(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case w1:l=10;break e;case _1:l=9;break e;case zg:l=11;break e;case Wg:l=14;break e;case Ci:l=16,r=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=Vn(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ds(e,t,n,r){return e=Vn(7,e,r,t),e.lanes=n,e}function Nd(e,t,n,r){return e=Vn(22,e,r,t),e.elementType=b1,e.lanes=n,e.stateNode={isHidden:!1},e}function Bh(e,t,n){return e=Vn(6,e,null,t),e.lanes=n,e}function zh(e,t,n){return t=Vn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yN(e,t,n,r,i){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=xh(0),this.expirationTimes=xh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Sm(e,t,n,r,i,o,l,u,d){return e=new yN(e,t,n,u,d),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Vn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},am(o),e}function wN(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:To,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function fx(e){if(!e)return Ji;e=e._reactInternals;e:{if(Vs(e)!==e||e.tag!==1)throw Error(q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(sn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(q(171))}if(e.tag===1){var n=e.type;if(sn(n))return fb(e,n,t)}return t}function hx(e,t,n,r,i,o,l,u,d){return e=Sm(n,r,!0,e,i,o,l,u,d),e.context=fx(null),n=e.current,r=qt(),i=qi(n),o=ti(r,i),o.callback=t??null,Hi(n,o,i),e.current.lanes=i,Xl(e,i,r),on(e,r),e}function $d(e,t,n,r){var i=t.current,o=qt(),l=qi(i);return n=fx(n),t.context===null?t.context=n:t.pendingContext=n,t=ti(o,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Hi(i,t,l),e!==null&&(cr(e,i,l,o),Ac(e,i,l)),l}function cd(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Lw(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Tm(e,t){Lw(e,t),(e=e.alternate)&&Lw(e,t)}function _N(){return null}var px=typeof reportError=="function"?reportError:function(e){console.error(e)};function Cm(e){this._internalRoot=e}Dd.prototype.render=Cm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));$d(e,t,null,null)};Dd.prototype.unmount=Cm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bs(function(){$d(null,e,null,null)}),t[ri]=null}};function Dd(e){this._internalRoot=e}Dd.prototype.unstable_scheduleHydration=function(e){if(e){var t=V1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ri.length&&t!==0&&t<Ri[n].priority;n++);Ri.splice(n,0,e),n===0&&K1(e)}};function km(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}
vendor: 5,238 bytes, line 41
41function jd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Nw(){}function bN(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var f=cd(l);o.call(f)}}var l=hx(t,r,e,0,null,!1,!1,"",Nw);return e._reactRootContainer=l,e[ri]=l.current,Cl(e.nodeType===8?e.parentNode:e),Bs(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var u=r;r=function(){var f=cd(d);u.call(f)}}var d=Sm(e,0,!1,null,null,!1,!1,"",Nw);return e._reactRootContainer=d,e[ri]=d.current,Cl(e.nodeType===8?e.parentNode:e),Bs(function(){$d(t,d,n,r)}),d}function Md(e,t,n,r,i){var o=n._reactRootContainer;if(o){var l=o;if(typeof i=="function"){var u=i;i=function(){var d=cd(l);u.call(d)}}$d(t,l,e,i)}else l=bN(n,t,e,i,r);return cd(l)}W1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=rl(t.pendingLanes);n!==0&&(qg(t,n|1),on(t,ut()),!(Pe&6)&&(ca=ut()+500,rs()))}break;case 13:Bs(function(){var r=ii(e,1);if(r!==null){var i=qt();cr(r,e,1,i)}}),Tm(e,1)}};Kg=function(e){if(e.tag===13){var t=ii(e,134217728);if(t!==null){var n=qt();cr(t,e,134217728,n)}Tm(e,134217728)}};H1=function(e){if(e.tag===13){var t=qi(e),n=ii(e,t);if(n!==null){var r=qt();cr(n,e,t,r)}Tm(e,t)}};V1=function(){return De};q1=function(e,t){var n=De;try{return De=e,t()}finally{De=n}};Ep=function(e,t,n){switch(t){case"input":if(mp(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Ad(r);if(!i)throw Error(q(90));E1(r),mp(r,i)}}}break;case"textarea":T1(e,n);break;case"select":t=n.value,t!=null&&Mo(e,!!n.multiple,t,!1)}};I1=_m;L1=Bs;var xN={usingClientEntryPoint:!1,Events:[eu,Po,Ad,P1,O1,_m]},Qa={findFiberByHostInstance:Cs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},EN={bundleType:Qa.bundleType,version:Qa.version,rendererPackageName:Qa.rendererPackageName,rendererConfig:Qa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:li.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=D1(e),e===null?null:e.stateNode},findFiberByHostInstance:Qa.findFiberByHostInstance||_N,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cc.isDisabled&&cc.supportsFiber)try{Sd=cc.inject(EN),Rr=cc}catch{}}An.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xN;An.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!km(t))throw Error(q(200));return wN(e,t,null,n)};An.createRoot=function(e,t){if(!km(e))throw Error(q(299));var n=!1,r="",i=px;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Sm(e,1,!1,null,null,n,!1,r,i),e[ri]=t.current,Cl(e.nodeType===8?e.parentNode:e),new Cm(t)};An.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(q(188)):(e=Object.keys(e).join(","),Error(q(268,e)));return e=D1(t),e=e===null?null:e.stateNode,e};An.flushSync=function(e){return Bs(e)};An.hydrate=function(e,t,n){if(!jd(t))throw Error(q(200));return Md(null,e,t,!0,n)};An.hydrateRoot=function(e,t,n){if(!km(e))throw Error(q(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",l=px;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=hx(t,null,e,1,n??null,i,!1,o,l),e[ri]=t.current,Cl(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Dd(t)};An.render=function(e,t,n){if(!jd(t))throw Error(q(200));return Md(null,e,t,!1,n)};An.unmountComponentAtNode=function(e){if(!jd(e))throw Error(q(40));return e._reactRootContainer?(Bs(function(){Md(null,null,e,!1,function(){e._reactRootContainer=null,e[ri]=null})}),!0):!1};An.unstable_batchedUpdates=_m;An.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!jd(n))throw Error(q(200));if(e==null||e._reactInternals===void 0)throw Error(q(38));return Md(e,t,n,!1,r)};An.version="18.3.1-next-f1338f8080-20240426";function gx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gx)}catch(e){console.error(e)}}gx(),g1.exports=An;var nu=g1.exports;const mx=Jl(nu);var vx,$w=nu;vx=$w.createRoot,$w.hydrateRoot;var SN=typeof Element<"u",TN=typeof Map=="function",CN=typeof Set=="function",kN=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function $c(e,t){if(e===t)return!0;
41if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!$c(e[r],t[r]))return!1;return!0}var o;if(TN&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!$c(r.value[1],t.get(r.value[0])))return!1;return!0}if(CN&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(kN&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(SN&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!$c(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var AN=function(t,n){try{return $c(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const RN=Jl(AN);var PN=function(e,t,n,r,i,o,l,u){if(!e){var d;if(t===void 0)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,r,i,o,l,u],p=0;d=new Error(t.replace(/%s/g,function(){return f[p++]})),d.name="Invariant Violation"}throw d.framesToPop=1,d}},ON=PN;const Dw=Jl(ON);var IN=function(t,n,r,i){var o=r?r.call(i,t,n):void 0;if(o!==void 0)return!!o;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var l=Object.keys(t),u=Object.keys(n);if(l.length!==u.length)return!1;for(var d=Object.prototype.hasOwnProperty.bind(n),f=0;f<l.length;f++){var p=l[f];if(!d(p))return!1;var m=t[p],g=n[p];if(o=r?r.call(i,m,g,p):void 0,o===!1||o===void 0&&m!==g)return!1}return!0};const LN=Jl(IN);var yx=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(yx||{}),Wh={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},jw=Object.values(yx),Ud={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},wx=Object.entries(Ud).reduce((e,[t,n])=>(e[n]=t,e),{}),lr="data-rh",Ho={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Vo=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},NN=e=>{let t=Vo(e,"title");const n=Vo(e,Ho.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Vo(e,Ho.DEFAULT_TITLE);return t||r||void 0},$N=e=>Vo(e,Ho.ON_CHANGE_CLIENT_STATE)||(()=>{}),Hh=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),DN=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let o=0;o<i.length;o+=1){const u=i[o].toLowerCase();if(e.indexOf(u)!==-1&&r[u])return n.concat(r)}}return n},[]),jN=e=>console&&typeof console.warn=="function"&&console.warn(e),Ja=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&jN(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,o)=>{const l={};o.filter(d=>{let f;const p=Object.keys(d);for(let g=0;g<p.length;g+=1){const w=p[g],x=w.toLowerCase();t.indexOf(x)!==-1&&!(f==="rel"&&d[f].toLowerCase()==="canonical")&&!(x==="rel"&&d[x].toLowerCase()==="stylesheet")&&(f=x),t.indexOf(w)!==-1&&(w==="innerHTML"||w==="cssText"||w==="itemprop")&&(f=w)}if(!f||!d[f])return!1;const m=d[f].toLowerCase();return r[f]||(r[f]={}),l[f]||(l[f]={}),r[f][m]?!1:(l[f][m]=!0,!0)}
41).reverse().forEach(d=>i.push(d));const u=Object.keys(l);for(let d=0;d<u.length;d+=1){const f=u[d],p={...r[f],...l[f]};r[f]=p}return i},[]).reverse()},MN=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},UN=e=>({baseTag:DN(["href"],e),bodyAttributes:Hh("bodyAttributes",e),defer:Vo(e,Ho.DEFER),encode:Vo(e,Ho.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Hh("htmlAttributes",e),linkTags:Ja("link",["rel","href"],e),metaTags:Ja("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Ja("noscript",["innerHTML"],e),onChangeClientState:$N(e),scriptTags:Ja("script",["src","innerHTML"],e),styleTags:Ja("style",["cssText"],e),title:NN(e),titleAttributes:Hh("titleAttributes",e),prioritizeSeoTags:MN(e,Ho.PRIORITIZE_SEO_TAGS)}),_x=e=>Array.isArray(e)?e.join(""):e,FN=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Vh=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(FN(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Mw=(e,t)=>({...e,[t]:void 0}),BN=["noscript","script","style"],ng=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),bx=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),zN=(e,t,n,r)=>{const i=bx(n),o=_x(t);return i?`<${e} ${lr}="true" ${i}>${ng(o,r)}</${e}>`:`<${e} ${lr}="true">${ng(o,r)}</${e}>`},WN=(e,t,n=!0)=>t.reduce((r,i)=>{const o=i,l=Object.keys(o).filter(f=>!(f==="innerHTML"||f==="cssText")).reduce((f,p)=>{const m=typeof o[p]>"u"?p:`${p}="${ng(o[p],n)}"`;return f?`${f} ${m}`:m},""),u=o.innerHTML||o.cssText||"",d=BN.indexOf(e)===-1;return`${r}<${e} ${lr}="true" ${l}${d?"/>":`>${u}</${e}>`}`},""),xx=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=Ud[r];return n[i||r]=e[r],n},t),HN=(e,t,n)=>{const r={key:t,[lr]:!0},i=xx(n,r);return[V.createElement("title",i,t)]},Dc=(e,t)=>t.map((n,r)=>{const i={key:r,[lr]:!0};return Object.keys(n).forEach(o=>{const u=Ud[o]||o;if(u==="innerHTML"||u==="cssText"){const d=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:d}}else i[u]=n[o]}),V.createElement(e,i)}),Bn=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>HN(e,t.title,t.titleAttributes),toString:()=>zN(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>xx(t),toString:()=>bx(t)};default:return{toComponent:()=>Dc(e,t),toString:()=>WN(e,t,n)}}},VN=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=Vh(e,Wh.meta),o=Vh(t,Wh.link),l=Vh(n,Wh.script);return{priorityMethods:{toComponent:()=>[...Dc("meta",i.priority),...Dc("link",o.priority),...Dc("script",l.priority)],toString:()=>`${Bn("meta",i.priority,r)} ${Bn("link",o.priority,r)} ${Bn("script",l.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:l.default}},qN=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:l,title:u="",titleAttributes:d,prioritizeSeoTags:f}=e;let{linkTags:p,metaTags:m,scriptTags:g}=e,w={toComponent:()=>[],toString:()=>""};return f&&({priorityMethods:w,linkTags:p,metaTags:m,scriptTags:g}=VN(e)),{priority:w,base:Bn("base",t,r),bodyAttributes:Bn("bodyAttributes",n,r),htmlAttributes:Bn("htmlAttributes",i,r),link:Bn("link",p,r),meta:Bn("meta",m,r),noscript:Bn("noscript",o,r),script:Bn("script",g,r),style:Bn("style",l,r),title:Bn("title",{title:u,titleAttributes:d},r)}},rg=qN,dc=[],Am=!!(typeof window<"u"&&window.document&&window.document.createElement),ig=class{constructor(e,t){qr(this,"instances",[]);qr(this,"canUseDOM",Am);qr(this,"context");qr(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?dc:this.instances,add:e=>{(this.canUseDOM?dc:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?dc:this.instances).indexOf(e);(this.canUseDOM?dc:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=rg({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},KN=parseInt(V.version.split(".")[0],10),sg=KN>=19,GN={},Ex=V.createContext(GN),Ps,Sx=(Ps=class extends k.Component{constructor(n){super(n);qr(this,"helmetData");sg?this.helmetData=null:this.helmetData=new ig(this.props.context||{},Ps.canUseDOM)}render(){return sg?V.createElement(V.Fragment,null,this.props.children):V.createElement(Ex.Provider,{value:this.helmetData.value},this.props.children)}},qr(Ps,"canUseDOM",Am),Ps),po=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${lr}]`),i=[].slice.call(r),o=[];let l;return t&&t.length&&t.forEach(u=>{const d=document.createElement(e);for(const f in u)if(Object.prototype.hasOwnProperty.call(u,f))if(f==="innerHTML")d.innerHTML=u.innerHTML;else if(f==="cssText"){const p=u.cssText;d.appendChild(document.createTextNode(p))}else{const p=f,m=typeof u[p]>"u"?"":u[p];d.setAttribute(f,m)}d.setAttribute(lr,"true"),i.some((f,p)=>(l=p,d.isEqualNode(f)))?i.splice(l,1):o.push(d)}
41),i.forEach(u=>{var d;return(d=u.parentNode)==null?void 0:d.removeChild(u)}),o.forEach(u=>n.appendChild(u)),{oldTags:i,newTags:o}},og=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(lr),i=r?r.split(","):[],o=[...i],l=Object.keys(t);for(const u of l){const d=t[u]||"";n.getAttribute(u)!==d&&n.setAttribute(u,d),i.indexOf(u)===-1&&i.push(u);const f=o.indexOf(u);f!==-1&&o.splice(f,1)}for(let u=o.length-1;u>=0;u-=1)n.removeAttribute(o[u]);i.length===o.length?n.removeAttribute(lr):n.getAttribute(lr)!==l.join(",")&&n.setAttribute(lr,l.join(","))},QN=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=_x(e)),og("title",t)},Uw=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:l,noscriptTags:u,onChangeClientState:d,scriptTags:f,styleTags:p,title:m,titleAttributes:g}=e;og("body",r),og("html",i),QN(m,g);const w={baseTag:po("base",n),linkTags:po("link",o),metaTags:po("meta",l),noscriptTags:po("noscript",u),scriptTags:po("script",f),styleTags:po("style",p)},x={},E={};
41Object.keys(w).forEach(T=>{const{newTags:_,oldTags:v}=w[T];_.length&&(x[T]=_),v.length&&(E[T]=w[T].oldTags)}),t&&t(),d(e,x,E)},Ya=null,JN=e=>{Ya&&cancelAnimationFrame(Ya),e.defer?Ya=requestAnimationFrame(()=>{Uw(e,()=>{Ya=null})}):(Uw(e),Ya=null)},YN=JN,Fw=class extends k.Component{constructor(){super(...arguments);qr(this,"rendered",!1)}shouldComponentUpdate(t){return!LN(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=UN(t.get().map(o=>{const{context:l,...u}=o.props;return u}));Sx.canUseDOM?YN(i):rg&&(r=rg(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},jc=[],Bw=e=>{const t={};for(const n of Object.keys(e))t[wx[n]||n]=e[n];return t},ys=e=>{const t={};for(const n of Object.keys(e)){const r=Ud[n];t[r||n]=e[n]}return t},zw=(e,t)=>{if(!Am)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",i=n.getAttribute(r),o=i?i.split(","):[],l=Object.keys(t);for(const u of o)l.includes(u)||n.removeAttribute(u);for(const u of l){const d=t[u];d==null||d===!1?n.removeAttribute(u):d===!0?n.setAttribute(u,""):n.setAttribute(u,String(d))}l.length>0?n.setAttribute(r,l.join(",")):n.removeAttribute(r)},qh=()=>{const e={},t={};for(const n of jc){const{htmlAttributes:r,bodyAttributes:i}=n.props;r&&Object.assign(e,Bw(r)),i&&Object.assign(t,Bw(i))}zw("html",e),zw("body",t)},XN=class extends k.Component{componentDidMount(){jc.push(this),qh()}componentDidUpdate(){qh()}componentWillUnmount(){const e=jc.indexOf(this);e!==-1&&jc.splice(e,1),qh()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return V.createElement("title",ys(t),e)}renderBase(){const{base:e}=this.props;return e?V.createElement("base",ys(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>V.createElement("meta",{key:n,...ys(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>V.createElement("link",{key:n,...ys(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...i}=t,o=ys(i);return r&&(o.dangerouslySetInnerHTML={__html:r}),V.createElement("script",{key:n,...o})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...i}=t,o=ys(i);return r&&(o.dangerouslySetInnerHTML={__html:r}),V.createElement("style",{key:n,...o})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...i}=t,o=ys(i);return r&&(o.dangerouslySetInnerHTML={__html:r}),V.createElement("noscript",{key:n,...o})})}render(){return V.createElement(V.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},up,ZN=(up=class extends k.Component{shouldComponentUpdate(e){return!RN(Mw(this.props,"helmetData"),Mw(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}
41warnOnInvalidChildren(e,t){return Dw(jw.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${jw.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Dw(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return V.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...o}=r.props,l=Object.keys(o).reduce((d,f)=>(d[wx[f]||f]=o[f],d),{});let{type:u}=r;switch(typeof u=="symbol"?u=u.toString():this.warnOnInvalidChildren(r,i),u){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,l,i);break;default:t=this.mapObjectTypeChildren(r,t,l,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof ig)){const i=r;r=new ig(i.context,!0),delete n.helmetData}return sg?V.createElement(XN,{...n}):r?V.createElement(Fw,{...n,context:r.value}):V.createElement(Ex.Consumer,null,i=>V.createElement(Fw,{...n,context:i}))}},qr(up,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),up);const e2="modulepreload",t2=function(e){return"/"+e},Ww={},Fe=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),u=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.allSettled(n.map(d=>{if(d=t2(d),d in Ww)return;Ww[d]=!0;const f=d.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${p}`))return;const m=document.createElement("link");if(m.rel=f?"stylesheet":e2,f||(m.as="script"),m.crossOrigin="",m.href=d,u&&m.setAttribute("nonce",u),document.head.appendChild(m),f)return new Promise((g,w)=>{m.addEventListener("load",g),m.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return i.then(l=>{for(const u of l||[])u.status==="rejected"&&o(u.reason);return t().catch(o)})},n2=1,r2=1e6;let Kh=0;function i2(){return Kh=(Kh+1)%Number.MAX_SAFE_INTEGER,Kh.toString()}const Gh=new Map,Hw=e=>{if(Gh.has(e))return;const t=setTimeout(()=>{Gh.delete(e),gl({type:"REMOVE_TOAST",toastId:e})},r2);Gh.set(e,t)},s2=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,n2)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Hw(n):e.toasts.forEach(r=>{Hw(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Mc=[];let Uc={toasts:[]};function gl(e){Uc=s2(Uc,e),Mc.forEach(t=>{t(Uc)})}function o2({...e}){const t=i2(),n=i=>gl({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>gl({type:"DISMISS_TOAST",toastId:t});return gl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function a2(){const[e,t]=k.useState(Uc);return k.useEffect(()=>(Mc.push(t),()=>{const n=Mc.indexOf(t);n>-1&&Mc.splice(n,1)}),[e]),{...e,toast:o2,dismiss:n=>gl({type:"DISMISS_TOAST",toastId:n})}}function wt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function l2(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Tx(...e){return t=>e.forEach(n=>l2(n,t))}function fr(...e){return k.useCallback(Tx(...e),e)}function u2(e,t=[]){let n=[];function r(o,l){const u=k.createContext(l),d=n.length;n=[...n,l];function f(m){const{scope:g,children:w,...x}=m,E=(g==null?void 0:g[e][d])||u,T=k.useMemo(()=>x,Object.values(x));return L.jsx(E.Provider,{value:T,children:w})}function p(m,g){const w=(g==null?void 0:g[e][d])||u,x=k.useContext(w);if(x)return x;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${o}\``)}return f.displayName=o+"Provider",[f,p]}const i=()=>{const o=n.map(l=>k.createContext(l));
vendor: 8,570 bytes, line 41
41return function(u){const d=(u==null?void 0:u[e])||o;return k.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return i.scopeName=e,[r,c2(i,...t)]}function c2(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((u,{useScope:d,scopeName:f})=>{const m=d(o)[`__scope${f}`];return{...u,...m}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var dd=k.forwardRef((e,t)=>{const{children:n,...r}=e,i=k.Children.toArray(n),o=i.find(d2);if(o){const l=o.props.children,u=i.map(d=>d===o?k.Children.count(l)>1?k.Children.only(null):k.isValidElement(l)?l.props.children:null:d);return L.jsx(ag,{...r,ref:t,children:k.isValidElement(l)?k.cloneElement(l,void 0,u):null})}return L.jsx(ag,{...r,ref:t,children:n})});dd.displayName="Slot";var ag=k.forwardRef((e,t)=>{const{children:n,...r}=e;if(k.isValidElement(n)){const i=h2(n);return k.cloneElement(n,{...f2(r,n.props),ref:t?Tx(t,i):i})}return k.Children.count(n)>1?k.Children.only(null):null});ag.displayName="SlotClone";var Cx=({children:e})=>L.jsx(L.Fragment,{children:e});function d2(e){return k.isValidElement(e)&&e.type===Cx}function f2(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...u)=>{o(...u),i(...u)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function h2(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function p2(e){const t=e+"CollectionProvider",[n,r]=u2(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=w=>{const{scope:x,children:E}=w,T=V.useRef(null),_=V.useRef(new Map).current;return L.jsx(i,{scope:x,itemMap:_,collectionRef:T,children:E})};l.displayName=t;const u=e+"CollectionSlot",d=V.forwardRef((w,x)=>{const{scope:E,children:T}=w,_=o(u,E),v=fr(x,_.collectionRef);return L.jsx(dd,{ref:v,children:T})});d.displayName=u;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=V.forwardRef((w,x)=>{const{scope:E,children:T,..._}=w,v=V.useRef(null),b=fr(x,v),A=o(f,E);return V.useEffect(()=>(A.itemMap.set(v,{ref:v,..._}),()=>void A.itemMap.delete(v))),L.jsx(dd,{[p]:"",ref:b,children:T})});m.displayName=f;function g(w){const x=o(e+"CollectionConsumer",w);return V.useCallback(()=>{const T=x.collectionRef.current;if(!T)return[];const _=Array.from(T.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((A,O)=>_.indexOf(A.ref.current)-_.indexOf(O.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:l,Slot:d,ItemSlot:m},g,r]}function NB(e,t){const n=k.createContext(t),r=o=>{const{children:l,...u}=o,d=k.useMemo(()=>u,Object.values(u));return L.jsx(n.Provider,{value:d,children:l})};r.displayName=e+"Provider";function i(o){const l=k.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function kx(e,t=[]){let n=[];function r(o,l){const u=k.createContext(l),d=n.length;n=[...n,l];const f=m=>{var _;const{scope:g,children:w,...x}=m,E=((_=g==null?void 0:g[e])==null?void 0:_[d])||u,T=k.useMemo(()=>x,Object.values(x));return L.jsx(E.Provider,{value:T,children:w})};f.displayName=o+"Provider";function p(m,g){var E;const w=((E=g==null?void 0:g[e])==null?void 0:E[d])||u,x=k.useContext(w);if(x)return x;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${o}\``)}return[f,p]}const i=()=>{const o=n.map(l=>k.createContext(l));return function(u){const d=(u==null?void 0:u[e])||o;return k.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return i.scopeName=e,[r,g2(i,...t)]}function g2(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((u,{useScope:d,scopeName:f})=>{const m=d(o)[`__scope${f}`];return{...u,...m}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var m2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],an=m2.reduce((e,t)=>{const n=k.forwardRef((r,i)=>{const{asChild:o,...l}=r,u=o?dd:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),L.jsx(u,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ax(e,t){e&&nu.flushSync(()=>e.dispatchEvent(t))}function Or(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function v2(e,t=globalThis==null?void 0:globalThis.document){const n=Or(e);k.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var y2="DismissableLayer",lg="dismissableLayer.update",w2="dismissableLayer.pointerDownOutside",_2="dismissableLayer.focusOutside",Vw,Rx=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rm=k.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:u,...d}=e,f=k.useContext(Rx),[p,m]=k.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=k.useState({}),x=fr(t,D=>m(D)),E=Array.from(f.layers),[T]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),_=E.indexOf(T),v=p?E.indexOf(p):-1,b=f.layersWithOutsidePointerEventsDisabled.size>0,A=v>=_,O=x2(D=>{const U=D.target,G=[...f.branches].some(Y=>Y.contains(U));!A||G||(i==null||i(D),l==null||l(D),D.defaultPrevented||u==null||u())},g),$=E2(D=>{const U=D.target;[...f.branches].some(Y=>Y.contains(U))||(o==null||o(D),l==null||l(D),D.defaultPrevented||u==null||u())},g);return v2(D=>{v===f.layers.size-1&&(r==null||r(D),!D.defaultPrevented&&u&&(D.preventDefault(),u()))},g),k.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Vw=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),qw(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Vw)}},[p,g,n,f]),k.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),qw())},[p,f]),k.useEffect(()=>{const D=()=>w({});return document.addEventListener(lg,D),()=>document.removeEventListener(lg,D)},[]),L.jsx(an.div,{...d,ref:x,style:{pointerEvents:b?A?"auto":"none":void 0,...e.style},onFocusCapture:wt(e.onFocusCapture,$.onFocusCapture),onBlurCapture:wt(e.onBlurCapture,$.onBlurCapture),onPointerDownCapture:wt(e.onPointerDownCapture,O.onPointerDownCapture)})});Rm.displayName=y2;var b2="DismissableLayerBranch",Px=k.forwardRef((e,t)=>{const n=k.useContext(Rx),r=k.useRef(null),i=fr(t,r);return k.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),L.jsx(an.div,{...e,ref:i})});Px.displayName=b2;function x2(e,t=globalThis==null?void 0:globalThis.document){const n=Or(e),r=k.useRef(!1),i=k.useRef(()=>{});return k.useEffect(()=>{const o=u=>{if(u.target&&!r.current){let d=function(){Ox(w2,n,f,{discrete:!0})};const f={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=d,t.addEventListener("click",i.current,{once:!0})):d()}else t.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function E2(e,t=globalThis==null?void 0:globalThis.document){const n=Or(e),r=k.useRef(!1);return k.useEffect(()=>{const i=o=>{o.target&&!r.current&&Ox(_2,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qw(){const e=new CustomEvent(lg);document.dispatchEvent(e)}function Ox(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Ax(i,o):i.dispatchEvent(o)}var S2=Rm,T2=Px,zs=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},C2="Portal",Ix=k.forwardRef((e,t)=>
41{var u;const{container:n,...r}=e,[i,o]=k.useState(!1);zs(()=>o(!0),[]);const l=n||i&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return l?mx.createPortal(L.jsx(an.div,{...r,ref:t}),l):null});Ix.displayName=C2;function k2(e,t){return k.useReducer((n,r)=>t[n][r]??n,e)}var Pm=e=>{const{present:t,children:n}=e,r=A2(t),i=typeof n=="function"?n({present:r.isPresent}):k.Children.only(n),o=fr(r.ref,R2(i));return typeof n=="function"||r.isPresent?k.cloneElement(i,{ref:o}):null};Pm.displayName="Presence";function A2(e){const[t,n]=k.useState(),r=k.useRef({}),i=k.useRef(e),o=k.useRef("none"),l=e?"mounted":"unmounted",[u,d]=k2(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const f=fc(r.current);o.current=u==="mounted"?f:"none"},[u]),zs(()=>{const f=r.current,p=i.current;if(p!==e){const g=o.current,w=fc(f);e?d("MOUNT"):w==="none"||(f==null?void 0:f.display)==="none"?d("UNMOUNT"):d(p&&g!==w?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,d]),zs(()=>{if(t){let f;const p=t.ownerDocument.defaultView??window,m=w=>{const E=fc(r.current).includes(w.animationName);if(w.target===t&&E&&(d("ANIMATION_END"),!i.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",f=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},g=w=>{w.target===t&&(o.current=fc(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(f),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:k.useCallback(f=>{f&&(r.current=getComputedStyle(f)),n(f)},[])}}function fc(e){return(e==null?void 0:e.animationName)||"none"}function R2(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function P2({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=O2({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:r,u=Or(n),d=k.useCallback(f=>{if(o){const m=typeof f=="function"?f(e):f;m!==e&&u(m)}else i(f)},[o,e,i,u]);return[l,d]}function O2({defaultProp:e,onChange:t}){const n=k.useState(e),[r]=n,i=k.useRef(r),o=Or(t);return k.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var I2="VisuallyHidden",Fd=k.forwardRef((e,t)=>L.jsx(an.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Fd.displayName=I2;var L2=Fd,Om="ToastProvider",[Im,N2,$2]=p2("Toast"),[Lx,$B]=kx("Toast",[$2]),[D2,Bd]=Lx(Om),Nx=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:l}=e,[u,d]=k.useState(null),[f,p]=k.useState(0),m=k.useRef(!1),g=k.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Om}\`. Expected non-empty \`string\`.`),L.jsx(Im.Provider,{scope:t,children:L.jsx(D2,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:o,toastCount:f,viewport:u,onViewportChange:d,onToastAdd:k.useCallback(()=>p(w=>w+1),[]),onToastRemove:k.useCallback(()=>p(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:g,children:l})})};Nx.displayName=Om;var $x="ToastViewport",j2=["F8"],ug="toast.viewportPause",cg="toast.viewportResume",Dx=k.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=j2,label:i="Notifications ({hotkey})",...o}=e,l=Bd($x,n),u=N2(n),d=k.useRef(null),f=k.useRef(null),p=k.useRef(null),m=k.useRef(null),g=fr(t,m,l.onViewportChange),w=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=l.toastCount>0;k.useEffect(()=>{const T=_=>{var b;r.length!==0&&r.every(A=>
41_[A]||_.code===A)&&((b=m.current)==null||b.focus())};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[r]),k.useEffect(()=>{const T=d.current,_=m.current;if(x&&T&&_){const v=()=>{if(!l.isClosePausedRef.current){const $=new CustomEvent(ug);_.dispatchEvent($),l.isClosePausedRef.current=!0}},b=()=>{if(l.isClosePausedRef.current){const $=new CustomEvent(cg);_.dispatchEvent($),l.isClosePausedRef.current=!1}},A=$=>{!T.contains($.relatedTarget)&&b()},O=()=>{T.contains(document.activeElement)||b()};return T.addEventListener("focusin",v),T.addEventListener("focusout",A),T.addEventListener("pointermove",v),T.addEventListener("pointerleave",O),window.addEventListener("blur",v),window.addEventListener("focus",b),()=>{T.removeEventListener("focusin",v),T.removeEventListener("focusout",A),T.removeEventListener("pointermove",v),T.removeEventListener("pointerleave",O),window.removeEventListener("blur",v),window.removeEventListener("focus",b)}}},[x,l.isClosePausedRef]);const E=k.useCallback(({tabbingDirection:T})=>{const v=u().map(b=>{const A=b.ref.current,O=[A,...J2(A)];return T==="forwards"?O:O.reverse()});return(T==="forwards"?v.reverse():v).flat()},[u]);return k.useEffect(()=>{const T=m.current;if(T){const _=v=>{var O,$,D;const b=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!b){const U=document.activeElement,G=v.shiftKey;if(v.target===T&&G){(O=f.current)==null||O.focus();return}const Z=E({tabbingDirection:G?"backwards":"forwards"}),he=Z.findIndex(X=>X===U);Qh(Z.slice(he+1))?v.preventDefault():G?($=f.current)==null||$.focus():(D=p.current)==null||D.focus()}};return T.addEventListener("keydown",_),()=>T.removeEventListener("keydown",_)}},[u,E]),L.jsxs(T2,{ref:d,role:"region","aria-label":i.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&L.jsx(dg,{ref:f,onFocusFromOutsideViewport:()=>{const T=E({tabbingDirection:"forwards"});Qh(T)}}),L.jsx(Im.Slot,{scope:n,children:L.jsx(an.ol,{tabIndex:-1,...o,ref:g})}),x&&L.jsx(dg,{ref:p,onFocusFromOutsideViewport:()=>{const T=E({tabbingDirection:"backwards"});Qh(T)}})]})});Dx.displayName=$x;var jx="ToastFocusProxy",dg=k.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,o=Bd(jx,n);return L.jsx(Fd,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:l=>{var f;const u=l.relatedTarget;!((f=o.viewport)!=null&&f.contains(u))&&r()}})});dg.displayName=jx;var zd="Toast",M2="toast.swipeStart",U2="toast.swipeMove",F2="toast.swipeCancel",B2="toast.swipeEnd",Mx=k.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:o,...l}=e,[u=!0,d]=P2({prop:r,defaultProp:i,onChange:o});return L.jsx(Pm,{present:n||u,children:L.jsx(H2,{open:u,...l,ref:t,onClose:()=>d(!1),onPause:Or(e.onPause),onResume:Or(e.onResume),onSwipeStart:wt(e.onSwipeStart,f=>{f.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:wt(e.onSwipeMove,f=>{const{x:p,y:m}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","move"),f.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:wt(e.onSwipeCancel,f=>{f.currentTarget.setAttribute("data-swipe","cancel"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:wt(e.onSwipeEnd,f=>{const{x:p,y:m}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","end"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),d(!1)})})})});Mx.displayName=zd;var[z2,W2]=Lx(zd,{onClose(){}}),H2=k.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:o,onClose:l,onEscapeKeyDown:u,onPause:d,onResume:f,onSwipeStart:p,onSwipeMove:m,onSwipeCancel:g,onSwipeEnd:w,...x}=e,E=Bd(zd,n),[T,_]=k.useState(null),v=fr(t,X=>_(X)),b=k.useRef(null),A=k.useRef(null),O=i||E.duration,$=k.useRef(0),D=k.useRef(O),U=k.useRef(0),{onToastAdd:G,onToastRemove:Y}=E,se=Or(()=>{var xe;(T==null?void 0:T.contains(document.activeElement))&&((xe=E.viewport)==null||xe.focus()),l()}),Z=k.useCallback(X=>
41{!X||X===1/0||(window.clearTimeout(U.current),$.current=new Date().getTime(),U.current=window.setTimeout(se,X))},[se]);k.useEffect(()=>{const X=E.viewport;if(X){const xe=()=>{Z(D.current),f==null||f()},de=()=>{const pe=new Date().getTime()-$.current;D.current=D.current-pe,window.clearTimeout(U.current),d==null||d()};return X.addEventListener(ug,de),X.addEventListener(cg,xe),()=>{X.removeEventListener(ug,de),X.removeEventListener(cg,xe)}}},[E.viewport,O,d,f,Z]),k.useEffect(()=>{o&&!E.isClosePausedRef.current&&Z(O)},[o,O,E.isClosePausedRef,Z]),k.useEffect(()=>(G(),()=>Y()),[G,Y]);const he=k.useMemo(()=>T?Vx(T):null,[T]);return E.viewport?L.jsxs(L.Fragment,{children:[he&&L.jsx(V2,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:he}),L.jsx(z2,{scope:n,onClose:se,children:nu.createPortal(L.jsx(Im.ItemSlot,{scope:n,children:L.jsx(S2,{asChild:!0,onEscapeKeyDown:wt(u,()=>{E.isFocusedToastEscapeKeyDownRef.current||se(),E.isFocusedToastEscapeKeyDownRef.current=!1}),children:L.jsx(an.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":E.swipeDirection,...x,ref:v,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:wt(e.onKeyDown,X=>{X.key==="Escape"&&(u==null||u(X.nativeEvent),X.nativeEvent.defaultPrevented||(E.isFocusedToastEscapeKeyDownRef.current=!0,se()))}),onPointerDown:wt(e.onPointerDown,X=>{X.button===0&&(b.current={x:X.clientX,y:X.clientY})}),onPointerMove:wt(e.onPointerMove,X=>{if(!b.current)return;const xe=X.clientX-b.current.x,de=X.clientY-b.current.y,pe=!!A.current,j=["left","right"].includes(E.swipeDirection),K=["left","up"].includes(E.swipeDirection)?Math.min:Math.max,ne=j?K(0,xe):0,Q=j?0:K(0,de),oe=X.pointerType==="touch"?10:2,Se={x:ne,y:Q},Ve={originalEvent:X,delta:Se};pe?(A.current=Se,hc(U2,m,Ve,{discrete:!1})):Kw(Se,E.swipeDirection,oe)?(A.current=Se,hc(M2,p,Ve,{discrete:!1}),X.target.setPointerCapture(X.pointerId)):(Math.abs(xe)>oe||Math.abs(de)>oe)&&(b.current=null)}),onPointerUp:wt(e.onPointerUp,X=>{const xe=A.current,de=X.target;if(de.hasPointerCapture(X.pointerId)&&de.releasePointerCapture(X.pointerId),A.current=null,b.current=null,xe){const pe=X.currentTarget,j={originalEvent:X,delta:xe};Kw(xe,E.swipeDirection,E.swipeThreshold)?hc(B2,w,j,{discrete:!0}):hc(F2,g,j,{discrete:!0}),pe.addEventListener("click",K=>K.preventDefault(),{once:!0})}})})})}),E.viewport)})]}):null}),V2=e=>{const{__scopeToast:t,children:n,...r}=e,i=Bd(zd,t),[o,l]=k.useState(!1),[u,d]=k.useState(!1);return G2(()=>l(!0)),k.useEffect(()=>{const f=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(f)},[]),u?null:L.jsx(Ix,{asChild:!0,children:L.jsx(Fd,{...r,children:o&&L.jsxs(L.Fragment,{children:[i.label," ",n]})})})},q2="ToastTitle",Ux=k.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return L.jsx(an.div,{...r,ref:t})});Ux.displayName=q2;var K2="ToastDescription",Fx=k.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return L.jsx(an.div,{...r,ref:t})});Fx.displayName=K2;var Bx="ToastAction",zx=k.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?L.jsx(Hx,{altText:n,asChild:!0,children:L.jsx(Lm,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Bx}\`. Expected non-empty \`string\`.`),null)});zx.displayName=Bx;var Wx="ToastClose",Lm=k.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=W2(Wx,n);return L.jsx(Hx,{asChild:!0,children:L.jsx(an.button,{type:"button",...r,ref:t,onClick:wt(e.onClick,i.onClose)})})});Lm.displayName=Wx;var Hx=k.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return L.jsx(an.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function Vx(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Q2(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!i)if(o){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...Vx(r))}}),t}function hc(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Ax(i,o):i.dispatchEvent(o)}var Kw=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),o=r>i;return t==="left"||t==="right"?o&&r>n:!o&&i>n};function G2(e=()=>{}){const t=Or(e);zs(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}
vendor: 4,179 bytes, lines 41-66
41function Q2(e){return e.nodeType===e.ELEMENT_NODE}function J2(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Qh(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Y2=Nx,qx=Dx,Kx=Mx,Gx=Ux,Qx=Fx,Jx=zx,Yx=Lm;function Xx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Xx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Zx(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Xx(e))&&(r&&(r+=" "),r+=t);return r}const Gw=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Qw=Zx,X2=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Qw(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,l=Object.keys(i).map(f=>{const p=n==null?void 0:n[f],m=o==null?void 0:o[f];if(p===null)return null;const g=Gw(p)||Gw(m);return i[f][g]}),u=n&&Object.entries(n).reduce((f,p)=>{let[m,g]=p;return g===void 0||(f[m]=g),f},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,p)=>{let{class:m,className:g,...w}=p;return Object.entries(w).every(x=>{let[E,T]=x;return Array.isArray(T)?T.includes({...o,...u}[E]):{...o,...u}[E]===T})?[...f,m,g]:f},[]);return Qw(e,l,d,n==null?void 0:n.class,n==null?void 0:n.className)};/**
42 * @license lucide-react v0.462.0 - ISC
43 *
44 * This source code is licensed under the ISC license.
45 * See the LICENSE file in the root directory of this source tree.
46 */const Z2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),eE=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
47 * @license lucide-react v0.462.0 - ISC
48 *
49 * This source code is licensed under the ISC license.
50 * See the LICENSE file in the root directory of this source tree.
51 */var e$={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
52 * @license lucide-react v0.462.0 - ISC
53 *
54 * This source code is licensed under the ISC license.
55 * See the LICENSE file in the root directory of this source tree.
56 */const t$=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:l,...u},d)=>k.createElement("svg",{ref:d,...e$,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:eE("lucide",i),...u},[...l.map(([f,p])=>k.createElement(f,p)),...Array.isArray(o)?o:[o]]));/**
57 * @license lucide-react v0.462.0 - ISC
58 *
59 * This source code is licensed under the ISC license.
60 * See the LICENSE file in the root directory of this source tree.
61 */const n$=(e,t)=>{const n=k.forwardRef(({className:r,...i},o)=>k.createElement(t$,{ref:o,iconNode:t,className:eE(`lucide-${Z2(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
62 * @license lucide-react v0.462.0 - ISC
63 *
64 * This source code is licensed under the ISC license.
65 * See the LICENSE file in the root directory of this source tree.
66 */const r$=n$("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Nm="-",i$=e=>{const t=o$(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const u=l.split(Nm);return u[0]===""&&u.length!==1&&u.shift(),tE(u,t)||s$(l)},getConflictingClassGroupIds:(l,u)=>{const d=n[l]||[];return u&&r[l]?[...d,...r[l]]:d}}},tE=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?tE(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(Nm);return(l=t.validators.find(({validator:u})=>u(o)))==null?void 0:l.classGroupId},Jw=/^\[(.+)\]$/,s$=e=>{if(Jw.test(e)){const t=Jw.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},o$=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};
vendor: 5,126 bytes, line 66
66return l$(Object.entries(e.classGroups),n).forEach(([o,l])=>{fg(l,r,o,t)}),r},fg=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:Yw(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(a$(i)){fg(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,l])=>{fg(l,Yw(t,o),n,r)})})},Yw=(e,t)=>{let n=e;return t.split(Nm).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},a$=e=>e.isThemeGetter,l$=(e,t)=>t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([l,u])=>[t+l,u])):o);return[n,i]}):e,u$=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,l)=>{n.set(o,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let l=n.get(o);if(l!==void 0)return l;if((l=r.get(o))!==void 0)return i(o,l),l},set(o,l){n.has(o)?n.set(o,l):i(o,l)}}},nE="!",c$=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,l=u=>{const d=[];let f=0,p=0,m;for(let T=0;T<u.length;T++){let _=u[T];if(f===0){if(_===i&&(r||u.slice(T,T+o)===t)){d.push(u.slice(p,T)),p=T+o;continue}if(_==="/"){m=T;continue}}_==="["?f++:_==="]"&&f--}const g=d.length===0?u:u.substring(p),w=g.startsWith(nE),x=w?g.substring(1):g,E=m&&m>p?m-p:void 0;return{modifiers:d,hasImportantModifier:w,baseClassName:x,maybePostfixModifierPosition:E}};return n?u=>n({className:u,parseClassName:l}):l},d$=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},f$=e=>({cache:u$(e.cacheSize),parseClassName:c$(e),...i$(e)}),h$=/\s+/,p$=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],l=e.trim().split(h$);let u="";for(let d=l.length-1;d>=0;d-=1){const f=l[d],{modifiers:p,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:w}=n(f);let x=!!w,E=r(x?g.substring(0,w):g);if(!E){if(!x){u=f+(u.length>0?" "+u:u);continue}if(E=r(g),!E){u=f+(u.length>0?" "+u:u);continue}x=!1}const T=d$(p).join(":"),_=m?T+nE:T,v=_+E;if(o.includes(v))continue;o.push(v);const b=i(E,x);for(let A=0;A<b.length;++A){const O=b[A];o.push(_+O)}u=f+(u.length>0?" "+u:u)}return u};function g$(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=rE(t))&&(r&&(r+=" "),r+=n);return r}const rE=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=rE(e[r]))&&(n&&(n+=" "),n+=t);return n};function m$(e,...t){let n,r,i,o=l;function l(d){const f=t.reduce((p,m)=>m(p),e());return n=f$(f),r=n.cache.get,i=n.cache.set,o=u,u(d)}function u(d){const f=r(d);if(f)return f;const p=p$(d,n);return i(d,p),p}return function(){return o(g$.apply(null,arguments))}}const Ke=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},iE=/^\[(?:([a-z-]+):)?(.+)\]$/i,v$=/^\d+\/\d+$/,y$=new Set(["px","full","screen"]),w$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_$=/\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$/,b$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,x$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,E$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kr=e=>qo(e)||y$.has(e)||v$.test(e),xi=e=>ma(e,"length",O$),qo=e=>!!e&&!Number.isNaN(Number(e)),Jh=e=>ma(e,"number",qo),Xa=e=>!!e&&Number.isInteger(Number(e)),S$=e=>e.endsWith("%")&&qo(e.slice(0,-1)),we=e=>iE.test(e),Ei=e=>w$.test(e),T$=new Set(["length","size","percentage"]),C$=e=>ma(e,T$,sE),k$=e=>ma(e,"position",sE),A$=new Set(["image","url"]),R$=e=>ma(e,A$,L$),P$=e=>ma(e,"",I$),Za=()=>!0,ma=(e,t,n)=>{const r=iE.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},O$=e=>_$.test(e)&&!b$.test(e),sE=()=>!1,I$=e=>x$.test(e),L$=e=>E$.test(e),N$=()=>{const e=Ke("colors"),t=Ke("spacing"),n=Ke("blur"),r=Ke("brightness"),i=Ke("borderColor"),o=Ke("borderRadius"),l=Ke("borderSpacing"),u=Ke("borderWidth"),d=Ke("contrast"),f=Ke("grayscale"),p=Ke("hueRotate"),m=Ke("invert"),g=Ke("gap"),w=Ke("gradientColorStops"),x=Ke("gradientColorStopPositions"),E=Ke("inset"),T=Ke("margin"),_=Ke("opacity"),v=Ke("padding"),b=Ke("saturate"),A=Ke("scale"),O=Ke("sepia"),$=Ke("skew"),D=Ke("space"),U=Ke("translate"),G=()=>["auto","contain","none"],Y=()=>["auto","hidden","clip","visible","scroll"],se=()=>["auto",we,t],Z=()=>[we,t],he=()=>["",Kr,xi],X=()=>["auto",qo,we],xe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],de=()=>["solid","dashed","dotted","double","none"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",we],ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[qo,we];return{cacheSize:500,separator:":",theme:{colors:[Za],spacing:[Kr,xi],blur:["none","",Ei,we],brightness:Q(),borderColor:[e],borderRadius:["n
66one","","full",Ei,we],borderSpacing:Z(),borderWidth:he(),contrast:Q(),grayscale:K(),hueRotate:Q(),invert:K(),gap:Z(),gradientColorStops:[e],gradientColorStopPositions:[S$,xi],inset:se(),margin:se(),opacity:Q(),padding:Z(),saturate:Q(),scale:Q(),sepia:K(),skew:Q(),space:Z(),translate:Z()},classGroups:{aspect:[{aspect:["auto","square","video",we]}],container:["container"],columns:[{columns:[Ei]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"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:[...xe(),we]}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Xa,we]}],basis:[{basis:se()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",we]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",Xa,we]}],"grid-cols":[{"grid-cols":[Za]}],"col-start-end":[{col:["auto",{span:["full",Xa,we]},we]}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":[Za]}],"row-start-end":[{row:["auto",{span:[Xa,we]},we]}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",we]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",we]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",we,t]}],"min-w":[{"min-w":[we,t,"min","max","fit"]}],"max-w":[{"max-w":[we,t,"none","full","min","max","fit","prose",{screen:[Ei]},Ei]}],h:[{h:[we,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[we,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[we,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[we,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ei,xi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Jh]}],"font-family":[{font:[Za]}],"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",we]}],"line-clamp":[{"line-clamp":["none",qo,Jh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Kr,we]}],"list-image":[{"list-image":["none",we]}],"list-style-type":[{list:["none","disc","decimal",we]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Kr,xi]}],"underline-offset":[{"underline-offset":["auto",Kr,we]}],"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:Z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we]}],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",we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...xe(),k$]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",C$]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},R$]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}
vendor: 5,186 bytes, line 66
66],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],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:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...de(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:de()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...de()]}],"outline-offset":[{"outline-offset":[Kr,we]}],"outline-w":[{outline:[Kr,xi]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[Kr,xi]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ei,P$]}],"shadow-color":[{shadow:[Za]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...pe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":pe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Ei,we]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[m]}],saturate:[{saturate:[b]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",we]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",we]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",we]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[Xa,we]}],"translate-x":[{"translate-x":[U]}],"translate-y":[{"translate-y":[U]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",we]}],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",we]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Z()}],"scroll-mx":[{"scroll-mx":Z()}],"scroll-my":[{"scroll-my":Z()}],"scroll-ms":[{"scroll-ms":Z()}],"scroll-me":[{"scroll-me":Z()}],"scroll-mt":[{"scroll-mt":Z()}],"scroll-mr":[{"scroll-mr":Z()}],"scroll-mb":[{"scroll-mb":Z()}],"scroll-ml":[{"scroll-ml":Z()}],"scroll-p":[{"scroll-p":Z()}],"scroll-px":[{"scroll-px":Z()}],"scroll-py":[{"scroll-py":Z()}],"scroll-ps":[{"scroll-ps":Z()}],"scroll-pe":[{"scroll-pe":Z()}],"scroll-pt":[{"scroll-pt":Z()}],"scroll-pr":[{"scroll-pr":Z()}],"scroll-pb":[{"scroll-pb":Z()}],"scroll-pl":[{"scroll-pl":Z()}],"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"]}
66],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",we]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Kr,xi,Jh]}],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-s","border-color-e","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"]}}},$$=m$(N$);function qs(...e){return $$(Zx(e))}function DB(e){const t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth"})}const D$=Y2,oE=k.forwardRef(({className:e,...t},n)=>L.jsx(qx,{ref:n,className:qs("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));oE.displayName=qx.displayName;const j$=X2("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),aE=k.forwardRef(({className:e,variant:t,...n},r)=>L.jsx(Kx,{ref:r,className:qs(j$({variant:t}),e),...n}));aE.displayName=Kx.displayName;const M$=k.forwardRef(({className:e,...t},n)=>L.jsx(Jx,{ref:n,className:qs("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));M$.displayName=Jx.displayName;const lE=k.forwardRef(({className:e,...t},n)=>L.jsx(Yx,{ref:n,className:qs("absolute right-2 top-2 rounded-md p-1 text-foreground
66/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:L.jsx(r$,{className:"h-4 w-4"})}));lE.displayName=Yx.displayName;const uE=k.forwardRef(({className:e,...t},n)=>L.jsx(Gx,{ref:n,className:qs("text-sm font-semibold",e),...t}));uE.displayName=Gx.displayName;const cE=k.forwardRef(({className:e,...t},n)=>L.jsx(Qx,{ref:n,className:qs("text-sm opacity-90",e),...t}));cE.displayName=Qx.displayName;function U$(){const{toasts:e}=a2();return L.jsxs(D$,{children:[e.map(function({id:t,title:n,description:r,action:i,...o}){return L.jsxs(aE,{...o,children:[L.jsxs("div",{className:"grid gap-1",children:[n&&L.jsx(uE,{children:n}),r&&L.jsx(cE,{children:r})]}),i,L.jsx(lE,{})]},t)}),L.jsx(oE,{})]})}var Xw=["light","dark"],F$="(prefers-color-scheme: dark)",B$=k.createContext(void 0),z$={setTheme:e=>{},themes:[]},W$=()=>{var e;return(e=k.useContext(B$))!=null?e:z$};k.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:o,value:l,attrs:u,nonce:d})=>{let f=o==="system",p=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${u.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,m=i?Xw.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=(x,E=!1,T=!0)=>{let _=l?l[x]:x,v=E?x+"|| ''":`'${_}'`,b="";return i&&T&&!E&&Xw.includes(x)&&(b+=`d.style.colorScheme = '${x}';`),n==="class"?E||_?b+=`c.add(${v})`:b+="null":_&&(b+=`d[s](n,${v})`),b},w=e?`!function(){${p}${g(e)}}()`:r?`!function(){try{${p}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${F$}',m=window.matchMedia(t);if(m.media!==t||m.matches){${g("dark")}}else{${g("light")}}}else if(e){${l?`var x=${JSON.stringify(l)};`:""}${g(l?"x[e]":"e",!0)}}${f?"":"else{"+g(o,!1,!1)+"}"}${m}}catch(e){}}()`:`!function(){try{${p}var e=localStorage.getItem('${t}');if(e){${l?`var x=${JSON.stringify(l)};`:""}${g(l?"x[e]":"e",!0)}}else{${g(o,!1,!1)};}${m}}catch(t){}}();`;return k.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:w}})});var H$=e=>{switch(e){case"success":return K$;case"info":return Q$;case"warning":return G$;case"error":return J$;default:return null}},V$=Array(12).fill(0),q$=({visible:e})=>V.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},V.createElement("div",{className:"sonner-spinner"},V$.map((t,n)=>V.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),K$=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),G$=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Q$=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),J$=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Y$=()=>{let[e,t]=V.useState(document.hidden);return V.useEffect(()=>{let n=()=>{t(document.hidden)};
66return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},hg=1,X$=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:hg++,o=this.toasts.find(u=>u.id===i),l=e.dismissible===void 0?!0:e.dismissible;return o?this.toasts=this.toasts.map(u=>u.id===i?(this.publish({...u,...e,id:i,title:n}),{...u,...e,id:i,dismissible:l,title:n}):u):this.addToast({title:n,...r,dismissible:l,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
66this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),i=n!==void 0;return r.then(async o=>{if(eD(o)&&!o.ok){i=!1;let l=typeof t.error=="function"?await t.error(`HTTP error! status: ${o.status}`):t.error,u=typeof t.description=="function"?await t.description(`HTTP error! status: ${o.status}`):t.description;this.create({id:n,type:"error",message:l,description:u})}else if(t.success!==void 0){i=!1;let l=typeof t.success=="function"?await t.success(o):t.success,u=typeof t.description=="function"?await t.description(o):t.description;this.create({id:n,type:"success",message:l,description:u})}}).catch(async o=>{if(t.error!==void 0){i=!1;let l=typeof t.error=="function"?await t.error(o):t.error,u=typeof t.description=="function"?await t.description(o):t.description;this.create({id:n,type:"error",message:l,description:u})}}).finally(()=>{var o;i&&(this.dismiss(n),n=void 0),(o=t.finally)==null||o.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||hg++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},bn=new X$,Z$=(e,t)=>{let n=(t==null?void 0:t.id)||hg++;return bn.addToast({title:e,...t,id:n}),n},eD=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",tD=Z$,nD=()=>bn.toasts,jB=Object.assign(tD,{success:bn.success,info:bn.info,warning:bn.warning,error:bn.error,custom:bn.custom,message:bn.message,promise:bn.promise,dismiss:bn.dismiss,loading:bn.loading},{getHistory:nD});function rD(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}rD(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
66left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
66:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
67`);function pc(e){return e.label!==void 0}var iD=3,sD="32px",oD=4e3,aD=356,lD=14,uD=20,cD=200;function dD(...e){return e.filter(Boolean).join(" ")}var fD=e=>{var t,n,r,i,o,l,u,d,f,p;let{invert:m,toast:g,unstyled:w,interacting:x,setHeights:E,visibleToasts:T,heights:_,index:v,toasts:b,expanded:A,removeToast:O,defaultRichColors:$,closeButton:D,style:U,cancelButtonStyle:G,actionButtonStyle:Y,className:se="",descriptionClassName:Z="",duration:he,position:X,gap:xe,loadingIcon:de,expandByDefault:pe,classNames:j,icons:K,closeButtonAriaLabel:ne="Close toast",pauseWhenPageIsHidden:
67Q,cn:oe}=e,[Se,Ve]=V.useState(!1),[dt,Re]=V.useState(!1),[ln,Qt]=V.useState(!1),[Jt,gr]=V.useState(!1),[Nr,Qn]=V.useState(0),[mr,St]=V.useState(0),vr=V.useRef(null),yr=V.useRef(null),un=v===0,Ks=v+1<=T,pt=g.type,Pn=g.dismissible!==!1,cn=g.className||"",as=g.descriptionClassName||"",$r=V.useMemo(()=>_.findIndex(me=>me.toastId===g.id)||0,[_,g.id]),tf=V.useMemo(()=>{var me;return(me=g.closeButton)!=null?me:D},[g.closeButton,D]),di=V.useMemo(()=>g.duration||he||oD,[g.duration,he]),xa=V.useRef(0),On=V.useRef(0),Dr=V.useRef(0),wr=V.useRef(null),[Gs,Ea]=X.split("-"),Qs=V.useMemo(()=>_.reduce((me,Me,je)=>je>=$r?me:me+Me.height,0),[_,$r]),Js=Y$(),Sa=g.invert||m,ls=pt==="loading";On.current=V.useMemo(()=>$r*xe+Qs,[$r,Qs]),V.useEffect(()=>{Ve(!0)},[]),V.useLayoutEffect(()=>{if(!Se)return;let me=yr.current,Me=me.style.height;me.style.height="auto";let je=me.getBoundingClientRect().height;me.style.height=Me,St(je),E(dn=>dn.find(fn=>fn.toastId===g.id)?dn.map(fn=>fn.toastId===g.id?{...fn,height:je}:fn):[{toastId:g.id,height:je,position:g.position},...dn])},[Se,g.title,g.description,E,g.id]);let In=V.useCallback(()=>{Re(!0),Qn(On.current),E(me=>me.filter(Me=>Me.toastId!==g.id)),setTimeout(()=>{O(g)},cD)},[g,O,E,On]);V.useEffect(()=>{if(g.promise&&pt==="loading"||g.duration===1/0||g.type==="loading")return;let me,Me=di;return A||x||Q&&Js?(()=>{if(Dr.current<xa.current){let je=new Date().getTime()-xa.current;Me=Me-je}Dr.current=new Date().getTime()})():Me!==1/0&&(xa.current=new Date().getTime(),me=setTimeout(()=>{var je;(je=g.onAutoClose)==null||je.call(g,g),In()},Me)),()=>clearTimeout(me)},[A,x,pe,g,di,In,g.promise,pt,Q,Js]),V.useEffect(()=>{let me=yr.current;if(me){let Me=me.getBoundingClientRect().height;return St(Me),E(je=>[{toastId:g.id,height:Me,position:g.position},...je]),()=>E(je=>je.filter(dn=>dn.toastId!==g.id))}},[E,g.id]),V.useEffect(()=>{g.delete&&In()},[In,g.delete]);function Ta(){return K!=null&&K.loading?V.createElement("div",{className:"sonner-loader","data-visible":pt==="loading"},K.loading):de?V.createElement("div",{className:"sonner-loader","data-visible":pt==="loading"},de):V.createElement(q$,{visible:pt==="loading"})}return V.createElement("li",{"aria-live":g.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:yr,className:oe(se,cn,j==null?void 0:j.toast,(t=g==null?void 0:g.classNames)==null?void 0:t.toast,j==null?void 0:j.default,j==null?void 0:j[pt],(n=g==null?void 0:g.classNames)==null?void 0:n[pt]),"data-sonner-toast":"","data-rich-colors":(r=g.richColors)!=null?r:$,"data-styled":!(g.jsx||g.unstyled||w),"data-mounted":Se,"data-promise":!!g.promise,"data-removed":dt,"data-visible":Ks,"data-y-position":Gs,"data-x-position":Ea,"data-index":v,"data-front":un,"data-swiping":ln,"data-dismissible":Pn,"data-type":pt,"data-invert":Sa,"data-swipe-out":Jt,"data-expanded":!!(A||pe&&Se),style:{"--index":v,"--toasts-before":v,"--z-index":b.length-v,"--offset":`${dt?Nr:On.current}px`,"--initial-height":pe?"auto":`${mr}px`,...U,...g.style},onPointerDown:me=>{ls||!Pn||(vr.current=new Date,Qn(On.current),me.target.setPointerCapture(me.pointerId),me.target.tagName!=="BUTTON"&&(Qt(!0),wr.current={x:me.clientX,y:me.clientY}))},onPointerUp:()=>{var me,Me,je,dn;if(Jt||!Pn)return;wr.current=null;let fn=Number(((me=yr.current)==null?void 0:me.style.getPropertyValue("--swipe-amount").replace("px",""))||0),Ys=new Date().getTime()-((Me=vr.current)==null?void 0:Me.getTime()),nf=Math.abs(fn)/Ys;if(Math.abs(fn)>=uD||nf>.11){Qn(On.current),(je=g.onDismiss)==null||je.call(g,g),In(),gr(!0);return}(dn=yr.current)==null||dn.style.setProperty("--swipe-amount","0px"),Qt(!1)},onPointerMove:me=>{var Me;if(!wr.current||!Pn)return;let je=me.clientY-wr.current.y,dn=me.clientX-wr.current.x,fn=(Gs==="top"?Math.min:Math.max)(0,je),Ys=me.pointerType==="touch"?10:2;Math.abs(fn)>Ys?(Me=yr.current)==null||Me.style.setProperty("--swipe-amount",`${je}px`):Math.abs(dn)>Ys&&(wr.current=null)}},tf&&!g.jsx?V.createElement("button",{"aria-label":ne,"data-disabled":ls,"data-close-button":!0,onClick:ls||!Pn?()=>{}:()=>{var me;In(),(me=g.onDismiss)==null||me.call(g,g)},className:oe(j==null?void 0:j.closeButton,(i=g==null?void 0:g.classNames)==null?void 0:i.closeButton)},V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},V.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),V.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,g.jsx||V.isValidElement(g.title)?g.jsx||g.title:V.createElement(V.Fragment,null,pt||g.icon||g.promise?V.createElement("div",{"data-icon":"",className:oe(j==null?void 0:j.icon,(o=g==null?void 0:g.classNames)==null?void 0:o.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||Ta():null,g.type!=="loading"?g.icon||(K==null?void 0:K[pt])||H$(pt):null):null,V.createElement("div",{"data-content":"",className:oe(j==null?void 0:j.content,(l=g==null?void 0:g.classNames)==null?void 0:l.content)},V.createElement("div",{"data-title":"",className:oe(j==null?void 0:j.title,(u=g==null?void 0:g.classNames)==null?void 0:u.title)},g.title),g.description?V.createElement("div",{"data-description":"",className:oe(Z,as,j==null?void 0:j.description,(d=g==null?void 0:g.classNames)==null?void 0:d.description)},g.description):null),V.isValidElement(g.cancel)?g.cancel:g.cancel&&pc(g.cancel)?V.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||G,onClick:me=>{var Me,je;pc(g.cancel)&&Pn&&((je=(Me=g.cancel).onClick)==null||je.call(Me,me),In())},className:oe(j==null?void 0:j.cancelButton,(f=g==null?void 0:g.classNames)==null?void 0:f.cancelButton)},g.cancel.label):null,V.isValidElement(g.action)?g.action:g.action&&pc(g.action)?V.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||Y,onClick:me=>{var Me,je;
67pc(g.action)&&(me.defaultPrevented||((je=(Me=g.action).onClick)==null||je.call(Me,me),In()))},className:oe(j==null?void 0:j.actionButton,(p=g==null?void 0:g.classNames)==null?void 0:p.actionButton)},g.action.label):null))};function Zw(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var hD=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:i,closeButton:o,className:l,offset:u,theme:d="light",richColors:f,duration:p,style:m,visibleToasts:g=iD,toastOptions:w,dir:x=Zw(),gap:E=lD,loadingIcon:T,icons:_,containerAriaLabel:v="Notifications",pauseWhenPageIsHidden:b,cn:A=dD}=e,[O,$]=V.useState([]),D=V.useMemo(()=>Array.from(new Set([n].concat(O.filter(Q=>Q.position).map(Q=>Q.position)))),[O,n]),[U,G]=V.useState([]),[Y,se]=V.useState(!1),[Z,he]=V.useState(!1),[X,xe]=V.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),de=V.useRef(null),pe=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=V.useRef(null),K=V.useRef(!1),ne=V.useCallback(Q=>{var oe;(oe=O.find(Se=>Se.id===Q.id))!=null&&oe.delete||bn.dismiss(Q.id),$(Se=>Se.filter(({id:Ve})=>Ve!==Q.id))},[O]);return V.useEffect(()=>bn.subscribe(Q=>{if(Q.dismiss){$(oe=>oe.map(Se=>Se.id===Q.id?{...Se,delete:!0}:Se));return}setTimeout(()=>{mx.flushSync(()=>{$(oe=>{let Se=oe.findIndex(Ve=>Ve.id===Q.id);return Se!==-1?[...oe.slice(0,Se),{...oe[Se],...Q},...oe.slice(Se+1)]:[Q,...oe]})})})}),[]),V.useEffect(()=>{if(d!=="system"){xe(d);return}d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?xe("dark"):xe("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:Q})=>{xe(Q?"dark":"light")})},[d]),V.useEffect(()=>{O.length<=1&&se(!1)},[O]),V.useEffect(()=>{let Q=oe=>{var Se,Ve;r.every(dt=>oe[dt]||oe.code===dt)&&(se(!0),(Se=de.current)==null||Se.focus()),oe.code==="Escape"&&(document.activeElement===de.current||(Ve=de.current)!=null&&Ve.contains(document.activeElement))&&se(!1)};return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[r]),V.useEffect(()=>{if(de.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,K.current=!1)}},[de.current]),O.length?V.createElement("section",{"aria-label":`${v} ${pe}`,tabIndex:-1},D.map((Q,oe)=>{var Se;let[Ve,dt]=Q.split("-");return V.createElement("ol",{key:Q,dir:x==="auto"?Zw():x,tabIndex:-1,ref:de,className:l,"data-sonner-toaster":!0,"data-theme":X,"data-y-position":Ve,"data-x-position":dt,style:{"--front-toast-height":`${((Se=U[0])==null?void 0:Se.height)||0}px`,"--offset":typeof u=="number"?`${u}px`:u||sD,"--width":`${aD}px`,"--gap":`${E}px`,...m},onBlur:Re=>{K.current&&!Re.currentTarget.contains(Re.relatedTarget)&&(K.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:Re=>{Re.target instanceof HTMLElement&&Re.target.dataset.dismissible==="false"||K.current||(K.current=!0,j.current=Re.relatedTarget)},onMouseEnter:()=>se(!0),onMouseMove:()=>se(!0),onMouseLeave:()=>{Z||se(!1)},onPointerDown:Re=>{Re.target instanceof HTMLElement&&Re.target.dataset.dismissible==="false"||he(!0)},onPointerUp:()=>he(!1)},O.filter(Re=>!Re.position&&oe===0||Re.position===Q).map((Re,ln)=>{var Qt,Jt;return V.createElement(fD,{key:Re.id,icons:_,index:ln,toast:Re,defaultRichColors:f,duration:(Qt=w==null?void 0:w.duration)!=null?Qt:p,className:w==null?void 0:w.className,descriptionClassName:w==null?void 0:w.descriptionClassName,invert:t,visibleToasts:g,closeButton:(Jt=w==null?void 0:w.closeButton)!=null?Jt:o,interacting:Z,position:Q,style:w==null?void 0:w.style,unstyled:w==null?void 0:w.unstyled,classNames:w==null?void 0:w.classNames,cancelButtonStyle:w==null?void 0:w.cancelButtonStyle,actionButtonStyle:w==null?void 0:w.actionButtonStyle,removeToast:ne,toasts:O.filter(gr=>gr.position==Re.position),heights:U.filter(gr=>gr.position==Re.position),setHeights:G,expandByDefault:i,gap:E,loadingIcon:T,expanded:Y,pauseWhenPageIsHidden:b,cn:A})}))})):null};const pD=({...e})=>{const{theme:t="system"}=W$();return L.jsx(hD,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},gD=["top","right","bottom","left"],Yi=Math.min,En=Math.max,fd=Math.round,gc=Math.floor,Xi=e=>({x:e,y:e}
vendor: 11,704 bytes, line 67
67),mD={left:"right",right:"left",bottom:"top",top:"bottom"},vD={start:"end",end:"start"};function pg(e,t,n){return En(e,Yi(t,n))}function oi(e,t){return typeof e=="function"?e(t):e}function ai(e){return e.split("-")[0]}function va(e){return e.split("-")[1]}function $m(e){return e==="x"?"y":"x"}function Dm(e){return e==="y"?"height":"width"}function Zi(e){return["top","bottom"].includes(ai(e))?"y":"x"}function jm(e){return $m(Zi(e))}function yD(e,t,n){n===void 0&&(n=!1);const r=va(e),i=jm(e),o=Dm(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=hd(l)),[l,hd(l)]}function wD(e){const t=hd(e);return[gg(e),t,gg(t)]}function gg(e){return e.replace(/start|end/g,t=>vD[t])}function _D(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:l;default:return[]}}function bD(e,t,n,r){const i=va(e);let o=_D(ai(e),n==="start",r);return i&&(o=o.map(l=>l+"-"+i),t&&(o=o.concat(o.map(gg)))),o}function hd(e){return e.replace(/left|right|bottom|top/g,t=>mD[t])}function xD(e){return{top:0,right:0,bottom:0,left:0,...e}}function dE(e){return typeof e!="number"?xD(e):{top:e,right:e,bottom:e,left:e}}function pd(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function e_(e,t,n){let{reference:r,floating:i}=e;const o=Zi(t),l=jm(t),u=Dm(l),d=ai(t),f=o==="y",p=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[u]/2-i[u]/2;let w;switch(d){case"top":w={x:p,y:r.y-i.height};break;case"bottom":w={x:p,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:m};break;case"left":w={x:r.x-i.width,y:m};break;default:w={x:r.x,y:r.y}}switch(va(t)){case"start":w[l]-=g*(n&&f?-1:1);break;case"end":w[l]+=g*(n&&f?-1:1);break}return w}const ED=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,u=o.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:m}=e_(f,r,d),g=r,w={},x=0;for(let E=0;E<u.length;E++){const{name:T,fn:_}=u[E],{x:v,y:b,data:A,reset:O}=await _({x:p,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:w,rects:f,platform:l,elements:{reference:e,floating:t}});p=v??p,m=b??m,w={...w,[T]:{...w[T],...A}},O&&x<=50&&(x++,typeof O=="object"&&(O.placement&&(g=O.placement),O.rects&&(f=O.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:p,y:m}=e_(f,g,d)),E=-1)}return{x:p,y:m,placement:g,strategy:i,middlewareData:w}};async function $l(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:l,elements:u,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:g=!1,padding:w=0}=oi(t,e),x=dE(w),T=u[g?m==="floating"?"reference":"floating":m],_=pd(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(T)))==null||n?T:T.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:f,rootBoundary:p,strategy:d})),v=m==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),A=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},O=pd(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:v,offsetParent:b,strategy:d}):v);return{top:(_.top-O.top+x.top)/A.y,bottom:(O.bottom-_.bottom+x.bottom)/A.y,left:(_.left-O.left+x.left)/A.x,right:(O.right-_.right+x.right)/A.x}}const SD=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:l,elements:u,middlewareData:d}=t,{element:f,padding:p=0}=oi(e,t)||{};if(f==null)return{};const m=dE(p),g={x:n,y:r},w=jm(i),x=Dm(w),E=await l.getDimensions(f),T=w==="y",_=T?"top":"left",v=T?"bottom":"right",b=T?"clientHeight":"clientWidth",A=o.reference[x]+o.reference[w]-g[w]-o.floating[x],O=g[w]-o.reference[w],$=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let D=$?$[b]:0;(!D||!await(l.isElement==null?void 0:l.isElement($)))&&(D=u.floating[b]||o.floating[x]);const U=A/2-O/2,G=D/2-E[x]/2-1,Y=Yi(m[_],G),se=Yi(m[v],G),Z=Y,he=D-E[x]-se,X=D/2-E[x]/2+U,xe=pg(Z,X,he),de=!d.arrow&&va(i)!=null&&X!==xe&&o.reference[x]/2-(X<Z?Y:se)-E[x]/2<0,pe=de?X<Z?X-Z:X-he:0;return{[w]:g[w]+pe,data:{[w]:xe,centerOffset:X-xe-pe,...de&&{alignmentOffset:pe}},reset:de}}}),TD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:l,initialPlacement:u,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:E=!0,...T}=oi(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const _=ai(i),v=Zi(u),b=ai(u)===u,A=await(d.isRTL==null?void 0:d.isRTL(f.floating)),O=g||(b||!E?[hd(u)]:wD(u)),$=x!=="none";!g&&$&&O.push(...bD(u,E,x,A));const D=[u,...O],U=await $l(t,T),G=[];let Y=((r=o.flip)==null?void 0:r.overflows)||[];if(p&&G.push(U[_]),m){const X=yD(i,l,A);G.push(U[X[0]],U[X[1]])}if(Y=[...Y,{placement:i,overflows:G}],!G.every(X=>X<=0)){var se,Z;const X=(((se=o.flip)==null?void 0:se.index)||0)+1,xe=D[X];if(xe)return{data:{index:X,overflows:Y},reset:{placement:xe}};let de=(Z=Y.filter(pe=>pe.overflows[0]<=0).sort((pe,j)=>pe.overflows[1]-j.overflows[1])[0])==null?void 0:Z.placement;if(!de)switch(w){case"bestFit":{var he;const pe=(he=Y.filter(j=>{if($){const K=Zi(j.placement);return K===v||K==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(K=>K>0).reduce((K,ne)=>K+ne,0)]).sort((j,K)=>j[1]-K[1])[0])==null?void 0:he[0];pe&&(de=pe);break}case"initialPlacement":de=u;break}if(i!==de)return{reset:{placement:de}}}return{}}}};function t_(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function n_(e){return gD.some(t=>e[t]>=0)}const CD=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=oi(e,t);switch(r){case"referenceHidden":{const o=await $l(t,{...i,elementContext:"reference"}),l=t_(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:n_(l)}}}case"escaped":{const o=await $l(t,{...i,altBoundary:!0}),l=t_(o,n.floating);return{data:{escapedOffsets:l,escaped:n_(l)}}}default:return{}}}}};async function kD(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=ai(n),u=va(n),d=Zi(n)==="y",f=["left","top"].includes(l)?-1:1,p=o&&d?-1:1,m=oi(t,e);let{mainAxis:g,crossAxis:w,alignmentAxis:x}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return u&&typeof x=="number"&&(w=u==="end"?x*-1:x),d?{x:w*p,y:g*f}:{x:g*f,y:w*p}}const AD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:l,middlewareData:u}=t,d=await kD(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:o+d.y,data:{...d,placement:l}}}}},RD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:u={fn:T=>{let{x:_,y:v}=T;return{x:_,y:v}}},...d}=oi(e,t),f={x:n,y:r},p=await $l(t,d),m=Zi(ai(i)),g=$m(m);let w=f[g],x=f[m];if(o){const T=g==="y"?"top":"left",_=g==="y"?"bottom":"right",v=w+p[T],b=w-p[_];w=pg(v,w,b)}if(l){const T=m==="y"?"top":"left",_=m==="y"?"bottom":"right",v=x+p[T],b=x-p[_];x=pg(v,x,b)}const E=u.fn({...t,[g]:w,[m]:x});return{...E,data:{x:E.x-n,y:E.y-r,enabled:{[g]:o,[m]:l}}}}}},PD=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:f=!0}=oi(e,t),p={x:n,y:r},m=Zi(i),g=$m(m);let w=p[g],x=p[m];const E=oi(u,t),T=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(d){const b=g==="y"?"height":"width",A=o.reference[g]-o.floating[b]+T.mainAxis,O=o.reference[g]+o.reference[b]-T.mainAxis;w<A?w=A:w>O&&(w=O)}if(f){var _,v;const b=g==="y"?"width":"height",A=["top","left"].includes(ai(i)),O=o.reference[m]-o.floating[b]+(A&&((_=l.offset)==null?void 0:_[m])||0)+(A?0:T.crossAxis),$=o.reference[m]+o.reference[b]+(A?0:((v=l.offset)==null?void 0:v[m])||0)-(A?T.crossAxis:0);x<O?x=O:x>$&&(x=$)}return{[g]:w,[m]:x}}}},OD=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:l,elements:u}=t,{apply:d=()=>{},...f}=oi(e,t),p=await $l(t,f),m=ai(i),g=va(i),w=Zi(i)==="y",{width:x,height:E}=o.floating;let T,_;m==="top"||m==="bottom"?(T=m,_=g===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(_=m,T=g==="end"?"top":"bottom");const v=E-p.top-p.bottom,b=x-p.left-p.right,A=Yi(E-p[T],v),O=Yi(x-p[_],b),$=!t.middlewareData.shift;let D=A,U=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(U=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=v),$&&!g){const Y=En(p.left,0),se=En(p.right,0),Z=En(p.top,0),he=En(p.bottom,0);w?U=x-2*(Y!==0||se!==0?Y+se:En(p.left,p.right)):D=E-2*(Z!==0||he!==0?Z+he:En(p.top,p.bottom))}await d({...t,availableWidth:U,availableHeight:D});const G=await l.getDimensions(u.floating);return x!==G.width||E!==G.height?{reset:{rects:!0}}:{}}}};function Wd(){return typeof window<"u"}function ya(e){return fE(e)?(e.nodeName||"").toLowerCase():"#document"}function Cn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Lr(e){var t;return(t=(fE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fE(e){return Wd()?e instanceof Node||e instanceof Cn(e).Node:!1}function hr(e){return Wd()?e instanceof Element||e instanceof Cn(e).Element:!1}function Ir(e){return Wd()?e instanceof HTMLElement||e instanceof Cn(e).HTMLElement:!1}function r_(e){return!Wd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Cn(e).ShadowRoot}function ru(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=pr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function ID(e){return["table","td","th"].includes(ya(e))}function Hd(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Mm(e){const t=Um(),n=hr(e)?pr(e):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(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function LD(e){let t=es(e);for(;Ir(t)&&!da(t);){if(Mm(t))return t;if(Hd(t))return null;t=es(t)}return null}function Um(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function da(e){return["html","body","#document"].includes(ya(e))}function pr(e){return Cn(e).getComputedStyle(e)}function Vd(e){return hr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function es(e){if(ya(e)==="html")return e;const t=e.assignedSlot||e.parentNode||r_(e)&&e.host||Lr(e);return r_(t)?t.host:t}function hE(e){const t=es(e);return da(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ir(t)&&ru(t)?t:hE(t)}function Dl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=hE(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),l=Cn(i);if(o){const u=mg(l);
vendor: 7,125 bytes, line 67
67return t.concat(l,l.visualViewport||[],ru(i)?i:[],u&&n?Dl(u):[])}return t.concat(i,Dl(i,[],n))}function mg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pE(e){const t=pr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ir(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,u=fd(n)!==o||fd(r)!==l;return u&&(n=o,r=l),{width:n,height:r,$:u}}function Fm(e){return hr(e)?e:e.contextElement}function Ko(e){const t=Fm(e);if(!Ir(t))return Xi(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=pE(t);let l=(o?fd(n.width):n.width)/r,u=(o?fd(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const ND=Xi(0);function gE(e){const t=Cn(e);return!Um()||!t.visualViewport?ND:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $D(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Cn(e)?!1:t}function Ws(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Fm(e);let l=Xi(1);t&&(r?hr(r)&&(l=Ko(r)):l=Ko(e));const u=$D(o,n,r)?gE(o):Xi(0);let d=(i.left+u.x)/l.x,f=(i.top+u.y)/l.y,p=i.width/l.x,m=i.height/l.y;if(o){const g=Cn(o),w=r&&hr(r)?Cn(r):r;let x=g,E=mg(x);for(;E&&r&&w!==x;){const T=Ko(E),_=E.getBoundingClientRect(),v=pr(E),b=_.left+(E.clientLeft+parseFloat(v.paddingLeft))*T.x,A=_.top+(E.clientTop+parseFloat(v.paddingTop))*T.y;d*=T.x,f*=T.y,p*=T.x,m*=T.y,d+=b,f+=A,x=Cn(E),E=mg(x)}}return pd({width:p,height:m,x:d,y:f})}function DD(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",l=Lr(r),u=t?Hd(t.floating):!1;if(r===l||u&&o)return n;let d={scrollLeft:0,scrollTop:0},f=Xi(1);const p=Xi(0),m=Ir(r);if((m||!m&&!o)&&((ya(r)!=="body"||ru(l))&&(d=Vd(r)),Ir(r))){const g=Ws(r);f=Ko(r),p.x=g.x+r.clientLeft,p.y=g.y+r.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+p.x,y:n.y*f.y-d.scrollTop*f.y+p.y}}function jD(e){return Array.from(e.getClientRects())}function vg(e,t){const n=Vd(e).scrollLeft;return t?t.left+n:Ws(Lr(e)).left+n}function MD(e){const t=Lr(e),n=Vd(e),r=e.ownerDocument.body,i=En(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=En(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+vg(e);const u=-n.scrollTop;return pr(r).direction==="rtl"&&(l+=En(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:l,y:u}}function UD(e,t){const n=Cn(e),r=Lr(e),i=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,u=0,d=0;if(i){o=i.width,l=i.height;const f=Um();(!f||f&&t==="fixed")&&(u=i.offsetLeft,d=i.offsetTop)}return{width:o,height:l,x:u,y:d}}function FD(e,t){const n=Ws(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ir(e)?Ko(e):Xi(1),l=e.clientWidth*o.x,u=e.clientHeight*o.y,d=i*o.x,f=r*o.y;return{width:l,height:u,x:d,y:f}}function i_(e,t,n){let r;if(t==="viewport")r=UD(e,n);else if(t==="document")r=MD(Lr(e));else if(hr(t))r=FD(t,n);else{const i=gE(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return pd(r)}function mE(e,t){const n=es(e);return n===t||!hr(n)||da(n)?!1:pr(n).position==="fixed"||mE(n,t)}function BD(e,t){const n=t.get(e);if(n)return n;let r=Dl(e,[],!1).filter(u=>hr(u)&&ya(u)!=="body"),i=null;const o=pr(e).position==="fixed";let l=o?es(e):e;for(;hr(l)&&!da(l);){const u=pr(l),d=Mm(l);!d&&u.position==="fixed"&&(i=null),(o?!d&&!i:!d&&u.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ru(l)&&!d&&mE(e,l))?r=r.filter(p=>p!==l):i=u,l=es(l)}return t.set(e,r),r}function zD(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?Hd(t)?[]:BD(t,this._c):[].concat(n),r],u=l[0],d=l.reduce((f,p)=>{const m=i_(t,p,i);return f.top=En(m.top,f.top),f.right=Yi(m.right,f.right),f.bottom=Yi(m.bottom,f.bottom),f.left=En(m.left,f.left),f},i_(t,u,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function WD(e){const{width:t,height:n}=pE(e);return{width:t,height:n}}function HD(e,t,n){const r=Ir(t),i=Lr(t),o=n==="fixed",l=Ws(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const d=Xi(0);if(r||!r&&!o)if((ya(t)!=="body"||ru(i))&&(u=Vd(t)),r){const w=Ws(t,!0,o,t);d.x=w.x+t.clientLeft,d.y=w.y+t.clientTop}else i&&(d.x=vg(i));let f=0,p=0;if(i&&!r&&!o){const w=i.getBoundingClientRect();p=w.top+u.scrollTop,f=w.left+u.scrollLeft-vg(i,w)}const m=l.left+u.scrollLeft-d.x-f,g=l.top+u.scrollTop-d.y-p;return{x:m,y:g,width:l.width,height:l.height}}function Yh(e){return pr(e).position==="static"}function s_(e,t){if(!Ir(e)||pr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Lr(e)===n&&(n=n.ownerDocument.body),n}function vE(e,t){const n=Cn(e);if(Hd(e))return n;if(!Ir(e)){let i=es(e);for(;i&&!da(i);){if(hr(i)&&!Yh(i))return i;i=es(i)}return n}let r=s_(e,t);for(;r&&ID(r)&&Yh(r);)r=s_(r,t);return r&&da(r)&&Yh(r)&&!Mm(r)?n:r||LD(e)||n}const VD=async function(e){const t=this.getOffsetParent||vE,n=this.getDimensions,r=await n(e.floating);return{reference:HD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function qD(e){return pr(e).direction==="rtl"}const KD={convertOffsetParentRelativeRectToViewportRelativeRect:DD,getDocumentElement:Lr,getClippingRect:zD,getOffsetParent:vE,getElementRects:VD,getClientRects:jD,getDimensions:WD,getScale:Ko,isElement:hr,isRTL:qD};function GD(e,t){let n=null,r;const i=Lr(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),o();const{left:f,top:p,width:m,height:g}=e.getBoundingClientRect();if(u||t(),!m||!g)return;const w=gc(p),x=gc(i.clientWidth-(f+m)),E=gc(i.clientHeight-(p+g)),T=gc(f),v={rootMargin:-w+"px "+-x+"px "+-E+"px "+-T+"px",threshold:En(0,Yi(1,d))||1};let b=!0;function A(O){const $=O[0].intersectionRatio;if($!==d){if(!b)return l();$?l(!1,$):r=setTimeout(()=>{l(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(A,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,v)}n.observe(e)}return l(!0),o}function QD(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=Fm(e),p=i||o?[...f?Dl(f):[],...Dl(t)]:[];p.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),o&&_.addEventListener("resize",n)});const m=f&&u?GD(f,n):null;let g=-1,w=null;l&&(w=new ResizeObserver(_=>{let[v]=_;v&&v.target===f&&w&&(w.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var b;(b=w)==null||b.observe(t)})),n()}),f&&!d&&w.observe(f),w.observe(t));let x,E=d?Ws(e):null;d&&T();function T(){const _=Ws(e);E&&(_.x!==E.x||_.y!==E.y||_.width!==E.width||_.height!==E.height)&&n(),E=_,x=requestAnimationFrame(T)}return n(),()=>{var _;p.forEach(v=>{i&&v.removeEventListener("scroll",n),o&&v.removeEventListener("resize",n)}),m==null||m(),(_=w)==null||_.disconnect(),w=null,d&&cancelAnimationFrame(x)}}const JD=AD,YD=RD,XD=TD,ZD=OD,ej=CD,o_=SD,tj=PD,nj=(e,t,n)=>{const r=new Map,i={platform:KD,...n},o={...i.platform,_c:r};return ED(e,t,{...i,platform:o})};var Fc=typeof document<"u"?k.useLayoutEffect:k.useEffect;function gd(e,t){if(e===t)return!0;
vendor: 9,497 bytes, line 67
67if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!gd(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!gd(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function yE(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function a_(e,t){const n=yE(e);return Math.round(t*n)/n}function Xh(e){const t=k.useRef(e);return Fc(()=>{t.current=e}),t}function rj(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:u=!0,whileElementsMounted:d,open:f}=e,[p,m]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,w]=k.useState(r);gd(g,r)||w(r);const[x,E]=k.useState(null),[T,_]=k.useState(null),v=k.useCallback(j=>{j!==$.current&&($.current=j,E(j))},[]),b=k.useCallback(j=>{j!==D.current&&(D.current=j,_(j))},[]),A=o||x,O=l||T,$=k.useRef(null),D=k.useRef(null),U=k.useRef(p),G=d!=null,Y=Xh(d),se=Xh(i),Z=Xh(f),he=k.useCallback(()=>{if(!$.current||!D.current)return;const j={placement:t,strategy:n,middleware:g};se.current&&(j.platform=se.current),nj($.current,D.current,j).then(K=>{const ne={...K,isPositioned:Z.current!==!1};X.current&&!gd(U.current,ne)&&(U.current=ne,nu.flushSync(()=>{m(ne)}))})},[g,t,n,se,Z]);Fc(()=>{f===!1&&U.current.isPositioned&&(U.current.isPositioned=!1,m(j=>({...j,isPositioned:!1})))},[f]);const X=k.useRef(!1);Fc(()=>(X.current=!0,()=>{X.current=!1}),[]),Fc(()=>{if(A&&($.current=A),O&&(D.current=O),A&&O){if(Y.current)return Y.current(A,O,he);he()}},[A,O,he,Y,G]);const xe=k.useMemo(()=>({reference:$,floating:D,setReference:v,setFloating:b}),[v,b]),de=k.useMemo(()=>({reference:A,floating:O}),[A,O]),pe=k.useMemo(()=>{const j={position:n,left:0,top:0};if(!de.floating)return j;const K=a_(de.floating,p.x),ne=a_(de.floating,p.y);return u?{...j,transform:"translate("+K+"px, "+ne+"px)",...yE(de.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:ne}},[n,u,de.floating,p.x,p.y]);return k.useMemo(()=>({...p,update:he,refs:xe,elements:de,floatingStyles:pe}),[p,he,xe,de,pe])}const ij=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?o_({element:r.current,padding:i}).fn(n):{}:r?o_({element:r,padding:i}).fn(n):{}}}},sj=(e,t)=>({...JD(e),options:[e,t]}),oj=(e,t)=>({...YD(e),options:[e,t]}),aj=(e,t)=>({...tj(e),options:[e,t]}),lj=(e,t)=>({...XD(e),options:[e,t]}),uj=(e,t)=>({...ZD(e),options:[e,t]}),cj=(e,t)=>({...ej(e),options:[e,t]}),dj=(e,t)=>({...ij(e),options:[e,t]});var fj="Arrow",wE=k.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return L.jsx(an.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:L.jsx("polygon",{points:"0,0 30,0 15,10"})})});wE.displayName=fj;var hj=wE;function pj(e,t=[]){let n=[];function r(o,l){const u=k.createContext(l),d=n.length;n=[...n,l];function f(m){const{scope:g,children:w,...x}=m,E=(g==null?void 0:g[e][d])||u,T=k.useMemo(()=>x,Object.values(x));return L.jsx(E.Provider,{value:T,children:w})}function p(m,g){const w=(g==null?void 0:g[e][d])||u,x=k.useContext(w);if(x)return x;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${o}\``)}return f.displayName=o+"Provider",[f,p]}const i=()=>{const o=n.map(l=>k.createContext(l));return function(u){const d=(u==null?void 0:u[e])||o;return k.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return i.scopeName=e,[r,gj(i,...t)]}function gj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((u,{useScope:d,scopeName:f})=>{const m=d(o)[`__scope${f}`];return{...u,...m}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function mj(e){const[t,n]=k.useState(void 0);return zs(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let l,u;if("borderBoxSize"in o){const d=o.borderBoxSize,f=Array.isArray(d)?d[0]:d;l=f.inlineSize,u=f.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Bm="Popper",[_E,bE]=pj(Bm),[vj,xE]=_E(Bm),EE=e=>{const{__scopePopper:t,children:n}=e,[r,i]=k.useState(null);return L.jsx(vj,{scope:t,anchor:r,onAnchorChange:i,children:n})};EE.displayName=Bm;var SE="PopperAnchor",TE=k.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=xE(SE,n),l=k.useRef(null),u=fr(t,l);return k.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:L.jsx(an.div,{...i,ref:u})});TE.displayName=SE;var zm="PopperContent",[yj,wj]=_E(zm),CE=k.forwardRef((e,t)=>{var ln,Qt,Jt,gr,Nr,Qn;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:w="optimized",onPlaced:x,...E}=e,T=xE(zm,n),[_,v]=k.useState(null),b=fr(t,mr=>v(mr)),[A,O]=k.useState(null),$=mj(A),D=($==null?void 0:$.width)??0,U=($==null?void 0:$.height)??0,G=r+(o!=="center"?"-"+o:""),Y=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},se=Array.isArray(f)?f:[f],Z=se.length>0,he={padding:Y,boundary:se.filter(bj),altBoundary:Z},{refs:X,floatingStyles:xe,placement:de,isPositioned:pe,middlewareData:j}=rj({strategy:"fixed",placement:G,whileElementsMounted:(...mr)=>QD(...mr,{animationFrame:w==="always"}),elements:{reference:T.anchor},middleware:[sj({mainAxis:i+U,alignmentAxis:l}),d&&oj({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?aj():void 0,...he}),d&&lj({...he}),uj({...he,apply:({elements:mr,rects:St,availableWidth:vr,availableHeight:yr})=>{const{width:un,height:Ks}=St.reference,pt=mr.floating.style;pt.setProperty("--radix-popper-available-width",`${vr}px`),pt.setProperty("--radix-popper-available-height",`${yr}px`),pt.setProperty("--radix-popper-anchor-width",`${un}px`),pt.setProperty("--radix-popper-anchor-height",`${Ks}px`)}}),A&&dj({element:A,padding:u}),xj({arrowWidth:D,arrowHeight:U}),g&&cj({strategy:"referenceHidden",...he})]}),[K,ne]=RE(de),Q=Or(x);zs(()=>{pe&&(Q==null||Q())},[pe,Q]);const oe=(ln=j.arrow)==null?void 0:ln.x,Se=(Qt=j.arrow)==null?void 0:Qt.y,Ve=((Jt=j.arrow)==null?void 0:Jt.centerOffset)!==0,[dt,Re]=k.useState();return zs(()=>{_&&Re(window.getComputedStyle(_).zIndex)},[_]),L.jsx("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...xe,transform:pe?xe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:dt,"--radix-popper-transform-origin":[(gr=j.transformOrigin)==null?void 0:gr.x,(Nr=j.transformOrigin)==null?void 0:Nr.y].join(" "),...((Qn=j.hide)==null?void 0:Qn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:L.jsx(yj,{scope:n,placedSide:K,onArrowChange:O,arrowX:oe,arrowY:Se,shouldHideArrow:Ve,children:L.jsx(an.div,{"data-side":K,"data-align":ne,...E,ref:b,style:{...E.style,animation:pe?void 0:"none"}})})})});CE.displayName=zm;var kE="PopperArrow",_j={top:"bottom",right:"left",bottom:"top",left:"right"},AE=k.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=wj(kE,r),l=_j[o.placedSide];return L.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:L.jsx(hj,{...i,ref:n,style:{...i.style,display:"block"}})})});AE.displayName=kE;function bj(e){return e!==null}var xj=e=>({name:"transformOrigin",options:e,fn(t){var T,_,v;const{placement:n,rects:r,middlewareData:i}=t,l=((T=i.arrow)==null?void 0:T.centerOffset)!==0,u=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[f,p]=RE(n),m={start:"0%",center:"50%",end:"100%"}[p],g=(((_=i.arrow)==null?void 0:_.x)??0)+u/2,w=(((v=i.arrow)==null?void 0:v.y)??0)+d/2;let x="",E="";return f==="bottom"?(x=l?m:`${g}px`,E=`${-d}px`):f==="top"?(x=l?m:`${g}px`,E=`${r.floating.height+d}px`):f==="right"?(x=`${-d}px`,E=l?m:`${w}px`):f==="left"&&(x=`${r.floating.width+d}px`,E=l?m:`${w}px`),{data:{x,y:E}}}});function RE(e){const[t,n="center"]=e.split("-");return[t,n]}var MB=EE,Ej=TE,Sj=CE,Tj=AE,[qd,UB]=kx("Tooltip",[bE]),Wm=bE(),PE="TooltipProvider",Cj=700,l_="tooltip.open",[kj,OE]=qd(PE),IE=e=>{const{__scopeTooltip:t,delayDuration:n=Cj,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[l,u]=k.useState(!0),d=k.useRef(!1),f=k.useRef(0);return k.useEffect(()=>{const p=f.current;return()=>window.clearTimeout(p)},[]),L.jsx(kj,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:k.useCallback(()=>{window.clearTimeout(f.current),u(!1)},[]),onClose:k.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>u(!0),r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:k.useCallback(p=>{d.current=p}
vendor: 5,691 bytes, line 67
67,[]),disableHoverableContent:i,children:o})};IE.displayName=PE;var LE="Tooltip",[FB,Kd]=qd(LE),yg="TooltipTrigger",Aj=k.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Kd(yg,n),o=OE(yg,n),l=Wm(n),u=k.useRef(null),d=fr(t,u,i.onTriggerChange),f=k.useRef(!1),p=k.useRef(!1),m=k.useCallback(()=>f.current=!1,[]);return k.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),L.jsx(Ej,{asChild:!0,...l,children:L.jsx(an.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:d,onPointerMove:wt(e.onPointerMove,g=>{g.pointerType!=="touch"&&!p.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),p.current=!0)}),onPointerLeave:wt(e.onPointerLeave,()=>{i.onTriggerLeave(),p.current=!1}),onPointerDown:wt(e.onPointerDown,()=>{f.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:wt(e.onFocus,()=>{f.current||i.onOpen()}),onBlur:wt(e.onBlur,i.onClose),onClick:wt(e.onClick,i.onClose)})})});Aj.displayName=yg;var Rj="TooltipPortal",[BB,Pj]=qd(Rj,{forceMount:void 0}),fa="TooltipContent",NE=k.forwardRef((e,t)=>{const n=Pj(fa,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,l=Kd(fa,e.__scopeTooltip);return L.jsx(Pm,{present:r||l.open,children:l.disableHoverableContent?L.jsx($E,{side:i,...o,ref:t}):L.jsx(Oj,{side:i,...o,ref:t})})}),Oj=k.forwardRef((e,t)=>{const n=Kd(fa,e.__scopeTooltip),r=OE(fa,e.__scopeTooltip),i=k.useRef(null),o=fr(t,i),[l,u]=k.useState(null),{trigger:d,onClose:f}=n,p=i.current,{onPointerInTransitChange:m}=r,g=k.useCallback(()=>{u(null),m(!1)},[m]),w=k.useCallback((x,E)=>{const T=x.currentTarget,_={x:x.clientX,y:x.clientY},v=$j(_,T.getBoundingClientRect()),b=Dj(_,v),A=jj(E.getBoundingClientRect()),O=Uj([...b,...A]);u(O),m(!0)},[m]);return k.useEffect(()=>()=>g(),[g]),k.useEffect(()=>{if(d&&p){const x=T=>w(T,p),E=T=>w(T,d);return d.addEventListener("pointerleave",x),p.addEventListener("pointerleave",E),()=>{d.removeEventListener("pointerleave",x),p.removeEventListener("pointerleave",E)}}},[d,p,w,g]),k.useEffect(()=>{if(l){const x=E=>{const T=E.target,_={x:E.clientX,y:E.clientY},v=(d==null?void 0:d.contains(T))||(p==null?void 0:p.contains(T)),b=!Mj(_,l);v?g():b&&(g(),f())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[d,p,l,f,g]),L.jsx($E,{...e,ref:o})}),[Ij,Lj]=qd(LE,{isInside:!1}),$E=k.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:l,...u}=e,d=Kd(fa,n),f=Wm(n),{onClose:p}=d;return k.useEffect(()=>(document.addEventListener(l_,p),()=>document.removeEventListener(l_,p)),[p]),k.useEffect(()=>{if(d.trigger){const m=g=>{const w=g.target;w!=null&&w.contains(d.trigger)&&p()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[d.trigger,p]),L.jsx(Rm,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:m=>m.preventDefault(),onDismiss:p,children:L.jsxs(Sj,{"data-state":d.stateAttribute,...f,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[L.jsx(Cx,{children:r}),L.jsx(Ij,{scope:n,isInside:!0,children:L.jsx(L2,{id:d.contentId,role:"tooltip",children:i||r})})]})})});NE.displayName=fa;var DE="TooltipArrow",Nj=k.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Wm(n);return Lj(DE,n).isInside?null:L.jsx(Tj,{...i,...r,ref:t})});Nj.displayName=DE;function $j(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Dj(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function jj(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Mj(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,l=t.length-1;o<t.length;l=o++){const u=t[o].x,d=t[o].y,f=t[l].x,p=t[l].y;d>r!=p>r&&n<(f-u)*(r-d)/(p-d)+u&&(i=!i)}return i}function Uj(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Fj(t)}function Fj(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const o=t[t.length-1],l=t[t.length-2];if((o.x-l.x)*(i.y-l.y)>=(o.y-l.y)*(i.x-l.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],l=n[n.length-2];if((o.x-l.x)*(i.y-l.y)>=(o.y-l.y)*(i.x-l.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Bj=IE,jE=NE;const zj=Bj,Wj=k.forwardRef(({className:e,sideOffset:t=4,...n},r)=>L.jsx(jE,{ref:r,sideOffset:t,className:qs("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
67de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Wj.displayName=jE.displayName;var Gd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Qd=typeof window>"u"||"Deno"in globalThis;function rr(){}function Hj(e,t){return typeof e=="function"?e(t):e}function Vj(e){return typeof e=="number"&&e>=0&&e!==1/0}function qj(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u_(e,t){return typeof e=="function"?e(t):e}function Kj(e,t){return typeof e=="function"?e(t):e}function c_(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==Hm(l,t.options))return!1}else if(!Ml(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||o&&!o(t))}function d_(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(jl(t.options.mutationKey)!==jl(o))return!1}else if(!Ml(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Hm(e,t){return((t==null?void 0:t.queryKeyHashFn)||jl)(e)}function jl(e){return JSON.stringify(e,(t,n)=>wg(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Ml(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Ml(e[n],t[n])):!1}function ME(e,t){if(e===t)return e;const n=f_(e)&&f_(t);if(n||wg(e)&&wg(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),l=o.length,u=n?[]:{};let d=0;for(let f=0;f<l;f++){const p=n?f:o[f];(!n&&r.includes(p)||n)&&e[p]===void 0&&t[p]===void 0?(u[p]=void 0,d++):(u[p]=ME(e[p],t[p]),u[p]===e[p]&&e[p]!==void 0&&d++)}return i===l&&d===i?e:u}return t}function zB(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function f_(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function wg(e){if(!h_(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!h_(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function h_(e){return Object.prototype.toString.call(e)==="[object Object]"}function Gj(e){return new Promise(t=>{setTimeout(t,e)})}function Qj(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ME(e,t):t}function Jj(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Yj(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Vm=Symbol();function UE(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Vm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Os,Ii,Qo,J_,Xj=(J_=class extends Gd{constructor(){super();Le(this,Os);Le(this,Ii);Le(this,Qo);be(this,Qo,t=>{if(!Qd&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){W(this,Ii)||this.setEventListener(W(this,Qo))}onUnsubscribe(){var t;this.hasListeners()||((t=W(this,Ii))==null||t.call(this),be(this,Ii,void 0))}setEventListener(t){var n;be(this,Qo,t),(n=W(this,Ii))==null||n.call(this),be(this,Ii,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){W(this,Os)!==t&&(be(this,Os,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof W(this,Os)=="boolean"?W(this,Os):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Os=new WeakMap,Ii=new WeakMap,Qo=new WeakMap,J_),FE=new Xj,Jo,Li,Yo,Y_,Zj=(Y_=class extends Gd{constructor(){super();Le(this,Jo,!0);Le(this,Li);Le(this,Yo);be(this,Yo,t=>{if(!Qd&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){W(this,Li)||this.setEventListener(W(this,Yo))}onUnsubscribe(){var t;this.hasListeners()||((t=W(this,Li))==null||t.call(this),be(this,Li,void 0))}setEventListener(t){var n;be(this,Yo,t),(n=W(this,Li))==null||n.call(this),be(this,Li,t(this.setOnline.bind(this)))}setOnline(t){W(this,Jo)!==t&&(be(this,Jo,t),this.listeners.forEac
vendor: 18,565 bytes, line 67
67h(r=>{r(t)}))}isOnline(){return W(this,Jo)}},Jo=new WeakMap,Li=new WeakMap,Yo=new WeakMap,Y_),md=new Zj;function eM(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function tM(e){return Math.min(1e3*2**e,3e4)}function BE(e){return(e??"online")==="online"?md.isOnline():!0}var zE=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Zh(e){return e instanceof zE}function WE(e){let t=!1,n=0,r=!1,i;const o=eM(),l=E=>{var T;r||(g(new zE(E)),(T=e.abort)==null||T.call(e))},u=()=>{t=!0},d=()=>{t=!1},f=()=>FE.isFocused()&&(e.networkMode==="always"||md.isOnline())&&e.canRun(),p=()=>BE(e.networkMode)&&e.canRun(),m=E=>{var T;r||(r=!0,(T=e.onSuccess)==null||T.call(e,E),i==null||i(),o.resolve(E))},g=E=>{var T;r||(r=!0,(T=e.onError)==null||T.call(e,E),i==null||i(),o.reject(E))},w=()=>new Promise(E=>{var T;i=_=>{(r||f())&&E(_)},(T=e.onPause)==null||T.call(e)}).then(()=>{var E;i=void 0,r||(E=e.onContinue)==null||E.call(e)}),x=()=>{if(r)return;let E;const T=n===0?e.initialPromise:void 0;try{E=T??e.fn()}catch(_){E=Promise.reject(_)}Promise.resolve(E).then(m).catch(_=>{var $;if(r)return;const v=e.retry??(Qd?0:3),b=e.retryDelay??tM,A=typeof b=="function"?b(n,_):b,O=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,_);if(t||!O){g(_);return}n++,($=e.onFail)==null||$.call(e,n,_),Gj(A).then(()=>f()?void 0:w()).then(()=>{t?g(_):x()})})};return{promise:o,cancel:l,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?x():w().then(x),o)}}function nM(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=u=>setTimeout(u,0);const o=u=>{t?e.push(u):i(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||l()}return d},batchCalls:u=>(...d)=>{o(()=>{u(...d)})},schedule:o,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var Vt=nM(),Is,X_,HE=(X_=class{constructor(){Le(this,Is)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vj(this.gcTime)&&be(this,Is,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qd?1/0:5*60*1e3))}clearGcTimeout(){W(this,Is)&&(clearTimeout(W(this,Is)),be(this,Is,void 0))}},Is=new WeakMap,X_),Xo,Zo,zn,jt,Gl,Ls,ir,Gr,Z_,rM=(Z_=class extends HE{constructor(t){super();Le(this,ir);Le(this,Xo);Le(this,Zo);Le(this,zn);Le(this,jt);Le(this,Gl);Le(this,Ls);be(this,Ls,!1),be(this,Gl,t.defaultOptions),this.setOptions(t.options),this.observers=[],be(this,zn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,be(this,Xo,sM(this.options)),this.state=t.state??W(this,Xo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=W(this,jt))==null?void 0:t.promise}setOptions(t){this.options={...W(this,Gl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&W(this,zn).remove(this)}setData(t,n){const r=Qj(this.state.data,t,this.options);return Nt(this,ir,Gr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Nt(this,ir,Gr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=W(this,jt))==null?void 0:r.promise;return(i=W(this,jt))==null||i.cancel(t),n?n.then(rr).catch(rr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(W(this,Xo))}isActive(){return this.observers.some(t=>Kj(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Vm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!qj(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=W(this,jt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=W(this,jt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),W(this,zn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(W(this,jt)&&(W(this,Ls)?W(this,jt).cancel({revert:!0}):W(this,jt).cancelRetry()),this.scheduleGc()),W(this,zn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Nt(this,ir,Gr).call(this,{type:"invalidate"})}fetch(t,n){var d,f,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(W(this,jt))return W(this,jt).continueRetry(),W(this,jt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,i=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(be(this,Ls,!0),r.signal)})},o=()=>{const m=UE(this.options,n),g={queryKey:this.queryKey,meta:this.meta};return i(g),be(this,Ls,!1),this.options.persister?this.options.persister(m,g,this):m(g)},l={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(l),(d=this.options.behavior)==null||d.onFetch(l,this),be(this,Zo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=l.fetchOptions)==null?void 0:f.meta))&&Nt(this,ir,Gr).call(this,{type:"fetch",meta:(p=l.fetchOptions)==null?void 0:p.meta});const u=m=>{var g,w,x,E;Zh(m)&&m.silent||Nt(this,ir,Gr).call(this,{type:"error",error:m}),Zh(m)||((w=(g=W(this,zn).config).onError)==null||w.call(g,m,this),(E=(x=W(this,zn).config).onSettled)==null||E.call(x,this.state.data,m,this)),this.scheduleGc()};return be(this,jt,WE({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var g,w,x,E;if(m===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(T){u(T);return}(w=(g=W(this,zn).config).onSuccess)==null||w.call(g,m,this),(E=(x=W(this,zn).config).onSettled)==null||E.call(x,m,this.state.error,this),this.scheduleGc()},onError:u,onFail:(m,g)=>{Nt(this,ir,Gr).call(this,{type:"failed",failureCount:m,error:g})},onPause:()=>{Nt(this,ir,Gr).call(this,{type:"pause"})},onContinue:()=>{Nt(this,ir,Gr).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),W(this,jt).start()}},Xo=new WeakMap,Zo=new WeakMap,zn=new WeakMap,jt=new WeakMap,Gl=new WeakMap,Ls=new WeakMap,ir=new WeakSet,Gr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...iM(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Zh(i)&&i.revert&&W(this,Zo)?{...W(this,Zo),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Vt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),W(this,zn).notify({query:this,type:"updated",action:t})})},Z_);function iM(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:BE(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function sM(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Tr,e1,oM=(e1=class extends Gd{constructor(t={}){super();Le(this,Tr);this.config=t,be(this,Tr,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Hm(i,n);let l=this.get(o);return l||(l=new rM({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){W(this,Tr).has(t.queryHash)||(W(this,Tr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=W(this,Tr).get(t.queryHash);n&&(t.destroy(),n===t&&W(this,Tr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Vt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return W(this,Tr).get(t)}getAll(){return[...W(this,Tr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>c_(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>c_(t,r)):n}notify(t){Vt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Vt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Vt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Tr=new WeakMap,e1),Cr,Wt,Ns,kr,Ti,t1,aM=(t1=class extends HE{constructor(t){super();Le(this,kr);Le(this,Cr);Le(this,Wt);Le(this,Ns);this.mutationId=t.mutationId,be(this,Wt,t.mutationCache),be(this,Cr,[]),this.state=t.state||lM(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){W(this,Cr).includes(t)||(W(this,Cr).push(t),this.clearGcTimeout(),W(this,Wt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){be(this,Cr,W(this,Cr).filter(n=>n!==t)),this.scheduleGc(),W(this,Wt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){W(this,Cr).length||(this.state.status==="pending"?this.scheduleGc():W(this,Wt).remove(this))}continue(){var t;return((t=W(this,Ns))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,l,u,d,f,p,m,g,w,x,E,T,_,v,b,A,O,$,D;be(this,Ns,WE({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(U,G)=>{Nt(this,kr,Ti).call(this,{type:"failed",failureCount:U,error:G})},onPause:()=>{Nt(this,kr,Ti).call(this,{type:"pause"})},onContinue:()=>{Nt(this,kr,Ti).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>W(this,Wt).canRun(this)}));const n=this.state.status==="pending",r=!W(this,Ns).canStart();try{if(!n){Nt(this,kr,Ti).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=W(this,Wt).config).onMutate)==null?void 0:o.call(i,t,this));const G=await((u=(l=this.options).onMutate)==null?void 0:u.call(l,t));G!==this.state.context&&Nt(this,kr,Ti).call(this,{type:"pending",context:G,variables:t,isPaused:r})}const U=await W(this,Ns).start();return await((f=(d=W(this,Wt).config).onSuccess)==null?void 0:f.call(d,U,t,this.state.context,this)),await((m=(p=this.options).onSuccess)==null?void 0:m.call(p,U,t,this.state.context)),await((w=(g=W(this,Wt).config).onSettled)==null?void 0:w.call(g,U,null,this.state.variables,this.state.context,this)),await((E=(x=this.options).onSettled)==null?void 0:E.call(x,U,null,t,this.state.context)),Nt(this,kr,Ti).call(this,{type:"success",data:U}),U}catch(U){try{throw await((_=(T=W(this,Wt).config).onError)==null?void 0:_.call(T,U,t,this.state.context,this)),await((b=(v=this.options).onError)==null?void 0:b.call(v,U,t,this.state.context)),await((O=(A=W(this,Wt).config).onSettled)==null?void 0:O.call(A,void 0,U,this.state.variables,this.state.context,this)),await((D=($=this.options).onSettled)==null?void 0:D.call($,void 0,U,t,this.state.context)),U}finally{Nt(this,kr,Ti).call(this,{type:"error",error:U})}}finally{W(this,Wt).runNext(this)}}},Cr=new WeakMap,Wt=new WeakMap,Ns=new WeakMap,kr=new WeakSet,Ti=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Vt.batch(()=>{W(this,Cr).forEach(r=>{r.onMutationUpdate(t)}),W(this,Wt).notify({mutation:this,type:"updated",action:t})})},t1);function lM(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _n,Ql,n1,uM=(n1=class extends Gd{constructor(t={}){super();Le(this,_n);Le(this,Ql);this.config=t,be(this,_n,new Map),be(this,Ql,Date.now())}build(t,n,r){const i=new aM({mutationCache:this,mutationId:++Ku(this,Ql)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=mc(t),r=W(this,_n).get(n)??[];r.push(t),W(this,_n).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=mc(t);if(W(this,_n).has(n)){const i=(r=W(this,_n).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?W(this,_n).delete(n):W(this,_n).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=W(this,_n).get(mc(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=W(this,_n).get(mc(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Vt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...W(this,_n).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>d_(n,r))}findAll(t={}){return this.getAll().filter(n=>d_(t,n))}notify(t){Vt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Vt.batch(()=>Promise.all(t.map(n=>n.continue().catch(rr))))}},_n=new WeakMap,Ql=new WeakMap,n1);function mc(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function p_(e){return{onFetch:(t,n)=>{var p,m,g,w,x;const r=t.options,i=(g=(m=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:g.direction,o=((w=t.state.data)==null?void 0:w.pages)||[],l=((x=t.state.data)==null?void 0:x.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const f=async()=>{let E=!1;const T=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?E=!0:t.signal.addEventListener("abort",()=>{E=!0}),t.signal)})},_=UE(t.options,t.fetchOptions),v=async(b,A,O)=>{if(E)return Promise.reject();if(A==null&&b.pages.length)return Promise.resolve(b);const $={queryKey:t.queryKey,pageParam:A,direction:O?"backward":"forward",meta:t.options.meta};T($);const D=await _($),{maxPages:U}=t.options,G=O?Yj:Jj;return{pages:G(b.pages,D,U),pageParams:G(b.pageParams,A,U)}};if(i&&o.length){const b=i==="backward",A=b?cM:g_,O={pages:o,pageParams:l},$=A(r,O);u=await v(O,$,b)}else{const b=e??o.length;do{const A=d===0?l[0]??r.initialPageParam:g_(r,u);if(d>0&&A==null)break;u=await v(u,A),d++}while(d<b)}return u};t.options.persister?t.fetchFn=()=>{var E,T;return(T=(E=t.options).persister)==null?void 0:T.call(E,f,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function g_(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function cM(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var it,Ni,$i,ea,ta,Di,na,ra,r1,dM=(r1=class{constructor(e={}){Le(this,it);Le(this,Ni);Le(this,$i);Le(this,ea);Le(this,ta);Le(this,Di);Le(this,na);Le(this,ra);be(this,it,e.queryCache||new oM),be(this,Ni,e.mutationCache||new uM),be(this,$i,e.defaultOptions||{}),be(this,ea,new Map),be(this,ta,new Map),be(this,Di,0)}mount(){Ku(this,Di)._++,W(this,Di)===1&&(be(this,na,FE.subscribe(async e=>{e&&(await this.resumePausedMutations(),W(this,it).onFocus())})),be(this,ra,md.subscribe(async e=>{e&&(await this.resumePausedMutations(),W(this,it).onOnline())})))}unmount(){var e,t;Ku(this,Di)._--,W(this,Di)===0&&((e=W(this,na))==null||e.call(this),be(this,na,void 0),(t=W(this,ra))==null||t.call(this),be(this,ra,void 0))}isFetching(e){return W(this,it).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return W(this,Ni).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=W(this,it).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=W(this,it).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(u_(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return W(this,it).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=W(this,it).get(r.queryHash),o=i==null?void 0:i.state.data,l=Hj(t,o);if(l!==void 0)return W(this,it).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Vt.batch(()=>W(this,it).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=W(this,it).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=W(this,it);Vt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=W(this,it),r={type:"active",...e};return Vt.batch(()=>(n.findAll(e).forEach(i=>
67{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Vt.batch(()=>W(this,it).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(rr).catch(rr)}invalidateQueries(e={},t={}){return Vt.batch(()=>{if(W(this,it).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Vt.batch(()=>W(this,it).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(rr)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(rr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=W(this,it).build(this,t);return n.isStaleByTime(u_(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(rr).catch(rr)}fetchInfiniteQuery(e){return e.behavior=p_(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(rr).catch(rr)}ensureInfiniteQueryData(e){return e.behavior=p_(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return md.isOnline()?W(this,Ni).resumePausedMutations():Promise.resolve()}getQueryCache(){return W(this,it)}getMutationCache(){return W(this,Ni)}getDefaultOptions(){return W(this,$i)}setDefaultOptions(e){be(this,$i,e)}setQueryDefaults(e,t){W(this,ea).set(jl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...W(this,ea).values()];let n={};return t.forEach(r=>{Ml(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){W(this,ta).set(jl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...W(this,ta).values()];let n={};return t.forEach(r=>{Ml(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...W(this,$i).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Hm(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Vm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...W(this,$i).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){W(this,it).clear(),W(this,Ni).clear()}},it=new WeakMap,Ni=new WeakMap,$i=new WeakMap,ea=new WeakMap,ta=new WeakMap,Di=new WeakMap,na=new WeakMap,ra=new WeakMap,r1),VE=k.createContext(void 0),WB=e=>{const t=k.useContext(VE);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},fM=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),L.jsx(VE.Provider,{value:e,children:t}));/**
68 * @remix-run/router v1.20.0
69 *
70 * Copyright (c) Remix Software Inc.
71 *
72 * This source code is licensed under the MIT license found in the
73 * LICENSE.md file in the root directory of this source tree.
74 *
75 * @license MIT
76 */function Ul(){return Ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ul.apply(this,arguments)}var Ui;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ui||(Ui={}));const m_="popstate";function hM(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:l,hash:u}=r.location;return _g("",{pathname:o,search:l,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:vd(i)}return gM(t,n,null,e)}function ct(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function qE(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pM(){return Math.random().toString(36).substr(2,8)}function v_(e,t){return{usr:e.state,key:e.key,idx:t}}function _g(e,t,n,r){return n===void 0&&(n=null),Ul({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?wa(t):t,{state:n,key:t&&t.key||r||pM()})}function vd(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function wa(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function gM(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,u=Ui.Pop,d=null,f=p();f==null&&(f=0,l.replaceState(Ul({},l.state,{idx:f}),""));function p(){return(l.state||{idx:null}).idx}function m(){u=Ui.Pop;let T=p(),_=T==null?null:T-f;f=T,d&&d({action:u,location:E.location,delta:_})}function g(T,_){u=Ui.Push;let v=_g(E.location,T,_);f=p()+1;let b=v_(v,f),A=E.createHref(v);try{l.pushState(b,"",A)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;i.location.assign(A)}o&&d&&d({action:u,location:E.location,delta:1})}function w(T,_){u=Ui.Replace;let v=_g(E.location,T,_);f=p();let b=v_(v,f),A=E.createHref(v);l.replaceState(b,"",A),o&&d&&d({action:u,location:E.location,delta:0})}function x(T){let _=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof T=="string"?T:vd(T);return v=v.replace(/ $/,"%20"),ct(_,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,_)}let E={get action(){return u},get location(){return e(i,l)},listen(T){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(m_,m),d=T,()=>{i.removeEventListener(m_,m),d=null}},createHref(T){return t(i,T)},createURL:x,encodeLocation(T){let _=x(T);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:g,replace:w,go(T){return l.go(T)}};return E}var y_;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(y_||(y_={}));function mM(e,t,n){return n===void 0&&(n="/"),vM(e,t,n,!1)}function vM(e,t,n,r){let i=typeof t=="string"?wa(t):t,o=qm(i.pathname||"/",n);if(o==null)return null;let l=KE(e);yM(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let f=RM(o);u=kM(l[d],f,r)}return u}function KE(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,l,u)=>{let d={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};d.relativePath.startsWith("/")&&(ct(d.relativePath.startsWith(r),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+r+'" is not val
76id. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(r.length));let f=Gi([r,d.relativePath]),p=n.concat(d);o.children&&o.children.length>0&&(ct(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),KE(o.children,t,p,f)),!(o.path==null&&!o.index)&&t.push({path:f,score:TM(f,o.index),routesMeta:p})};return e.forEach((o,l)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))i(o,l);else for(let d of GE(o.path))i(o,l,d)}),t}function GE(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=GE(r.join("/")),u=[];return u.push(...l.map(d=>d===""?o:[o,d].join("/"))),i&&u.push(...l),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function yM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:CM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const wM=/^:[\w-]+$/,_M=3,bM=2,xM=1,EM=10,SM=-2,w_=e=>e==="*";function TM(e,t){let n=e.split("/"),r=n.length;return n.some(w_)&&(r+=SM),t&&(r+=bM),n.filter(i=>!w_(i)).reduce((i,o)=>i+(wM.test(o)?_M:o===""?xM:EM),r)}function CM(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function kM(e,t,n){let{routesMeta:r}=e,i={},o="/",l=[];for(let u=0;u<r.length;++u){let d=r[u],f=u===r.length-1,p=o==="/"?t:t.slice(o.length)||"/",m=__({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},p),g=d.route;if(!m&&f&&n&&!r[r.length-1].route.index&&(m=__({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},p)),!m)return null;
vendor: 6,917 bytes, lines 76-85
76Object.assign(i,m.params),l.push({params:i,pathname:Gi([o,m.pathname]),pathnameBase:LM(Gi([o,m.pathnameBase])),route:g}),m.pathnameBase!=="/"&&(o=Gi([o,m.pathnameBase]))}return l}function __(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=AM(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],l=o.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((f,p,m)=>{let{paramName:g,isOptional:w}=p;if(g==="*"){let E=u[m]||"";l=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const x=u[m];return w&&!x?f[g]=void 0:f[g]=(x||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:l,pattern:e}}function AM(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),qE(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 r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function RM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return qE(!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 qm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function PM(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?wa(e):e;return{pathname:n?n.startsWith("/")?n:OM(n,t):t,search:NM(r),hash:$M(i)}}function OM(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ep(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function IM(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Km(e,t){let n=IM(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Gm(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=wa(e):(i=Ul({},e),ct(!i.pathname||!i.pathname.includes("?"),ep("?","pathname","search",i)),ct(!i.pathname||!i.pathname.includes("#"),ep("#","pathname","hash",i)),ct(!i.search||!i.search.includes("#"),ep("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,u;if(l==null)u=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),m-=1;i.pathname=g.join("/")}u=m>=0?t[m]:"/"}let d=PM(i,u),f=l&&l!=="/"&&l.endsWith("/"),p=(o||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||p)&&(d.pathname+="/"),d}const Gi=e=>e.join("/").replace(/\/\/+/g,"/"),LM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),NM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$M=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function DM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const QE=["post","put","patch","delete"];new Set(QE);const jM=["get",...QE];new Set(jM);/**
77 * React Router v6.27.0
78 *
79 * Copyright (c) Remix Software Inc.
80 *
81 * This source code is licensed under the MIT license found in the
82 * LICENSE.md file in the root directory of this source tree.
83 *
84 * @license MIT
85 */function Fl(){return Fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fl.apply(this,arguments)}const Qm=k.createContext(null),MM=k.createContext(null),is=k.createContext(null),Jd=k.createContext(null),ui=k.createContext({outlet:null,matches:[],isDataRoute:!1}),JE=k.createContext(null);function UM(e,t){let{relative:n}=t===void 0?{}:t;_a()||ct(!1);let{basename:r,navigator:i}=k.useContext(is),{hash:o,pathname:l,search:u}=XE(e,{relative:n}),d=l;return r!=="/"&&(d=l==="/"?r:Gi([r,l])),i.createHref({pathname:d,search:u,hash:o})}function _a(){return k.useContext(Jd)!=null}function ss(){return _a()||ct(!1),k.useContext(Jd).location}function YE(e){k.useContext(is).static||k.useLayoutEffect(e)}function Jm(){let{isDataRoute:e}=k.useContext(ui);return e?XM():FM()}function FM(){_a()||ct(!1);let e=k.useContext(Qm),{basename:t,future:n,navigator:r}=k.useContext(is),{matches:i}=k.useContext(ui),{pathname:o}=ss(),l=JSON.stringify(Km(i,n.v7_relativeSplatPath)),u=k.useRef(!1);return YE(()=>{u.current=!0}),k.useCallback(function(f,p){if(p===void 0&&(p={}),!u.current)return;if(typeof f=="number"){r.go(f);return}let m=Gm(f,JSON.parse(l),o,p.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Gi([t,m.pathname])),(p.replace?r.replace:r.push)(m,p.state,p)},[t,r,l,o,e])}function HB(){let{matches:e}=k.useContext(ui),t=e[e.length-1];return t?t.params:{}}function XE(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=k.useContext(is),{matches:i}=k.useContext(ui),{pathname:o}=ss(),l=JSON.stringify(Km(i,r.v7_relativeSplatPath));return k.useMemo(()=>Gm(e,JSON.parse(l),o,n==="path"),[e,l,o,n])}function BM(e,t){return zM(e,t)}function zM(e,t,n,r){_a()||ct(!1);let{navigator:i}=k.useContext(is),{matches:o}=k.useContext(ui),l=o[o.length-1],u=l?l.params:{};l&&l.pathname;let d=l?l.pathnameBase:"/";l&&l.route;let f=ss(),p;if(t){var m;let T=typeof t=="string"?wa(t):t;d==="/"||(m=T.pathname)!=null&&m.startsWith(d)||ct(!1),p=T}else p=f;let g=p.pathname||"/",w=g;if(d!=="/"){let T=d.replace(/^\//,"").split("/");w="/"+g.replace(/^\//,"").split("/").slice(T.length).join("/")}let x=mM(e,{pathname:w}),E=KM(x&&x.map(T=>Object.assign({},T,{params:Object.assign({},u,T.params),pathname:Gi([d,i.encodeLocation?i.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?d:Gi([d,i.encodeLocation?i.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),o,n,r);return t&&E?k.createElement(Jd.Provider,{value:{location:Fl({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:Ui.Pop}},E):E}function WM(){let e=YM(),t=DM(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application 
85Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:i},n):null,null)}const HM=k.createElement(WM,null);class VM extends k.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?k.createElement(ui.Provider,{value:this.props.routeContext},k.createElement(JE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qM(e){let{routeContext:t,match:n,children:r}=e,i=k.useContext(Qm);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(ui.Provider,{value:t},r)}function KM(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,u=(i=n)==null?void 0:i.errors;if(u!=null){let p=l.findIndex(m=>m.route.id&&(u==null?void 0:u[m.route.id])!==void 0);p>=0||ct(!1),l=l.slice(0,Math.min(l.length,p+1))}let d=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p<l.length;p++){let m=l[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=p),m.route.id){let{loaderData:g,errors:w}=n,x=m.route.loader&&g[m.route.id]===void 0&&(!w||w[m.route.id]===void 0);if(m.route.lazy||x){d=!0,f>=0?l=l.slice(0,f+1):l=[l[0]];break}}}return l.reduceRight((p,m,g)=>{let w,x=!1,E=null,T=null;n&&(w=u&&m.route.id?u[m.route.id]:void 0,E=m.route.errorElement||HM,d&&(f<0&&g===0?(x=!0,T=null):f===g&&(x=!0,T=m.route.hydrateFallbackElement||null)));let _=t.concat(l.slice(0,g+1)),v=()=>{let b;return w?b=E:x?b=T:m.route.Component?b=k.createElement(m.route.Component,null):m.route.element?b=m.route.element:b=p,k.createElement(qM,{match:m,routeContext:{outlet:p,matches:_,isDataRoute:n!=null},children:b})};return n&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?k.createElement(VM,{location:n.location,revalidation:n.revalidation,component:E,error:w,children:v(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):v()},null)}var ZE=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ZE||{}),yd=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}(yd||{});function GM(e){let t=k.useContext(Qm);return t||ct(!1),t}function QM(e){let t=k.useContext(MM);return t||ct(!1),t}function JM(e){let t=k.useContext(ui);return t||ct(!1),t}function eS(e){let t=JM(),n=t.matches[t.matches.length-1];return n.route.id||ct(!1),n.route.id}function YM(){var e;let t=k.useContext(JE),n=QM(yd.UseRouteError),r=eS(yd.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function XM(){let{router:e}=GM(ZE.UseNavigateStable),t=eS(yd.UseNavigateStable),n=k.useRef(!1);return YE(()=>{n.current=!0}),k.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Fl({fromRouteId:t},o)))},[e,t])}function ZM(e){let{to:t,replace:n,state:r,relative:i}=e;_a()||ct(!1);let{future:o,static:l}=k.useContext(is),{matches:u}=k.useContext(ui),{pathname:d}=ss(),f=Jm(),p=Gm(t,Km(u,o.v7_relativeSplatPath),d,i==="path"),m=JSON.stringify(p);return k.useEffect(()=>f(JSON.parse(m),{replace:n,state:r,relative:i}),[f,m,i,n,r]),null}function Ne(e){ct(!1)}function eU(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ui.Pop,navigator:o,static:l=!1,future:u}=e;_a()&&ct(!1);let d=t.replace(/^\/*/,"/"),f=k.useMemo(()=>({basename:d,navigator:o,static:l,future:Fl({v7_relativeSplatPath:!1},u)}),[d,u,o,l]);typeof r=="string"&&(r=wa(r));let{pathname:p="/",search:m="",hash:g="",state:w=null,key:x="default"}=r,E=k.useMemo(()=>{let T=qm(p,d);return T==null?null:{location:{pathname:T,search:m,hash:g,state:w,key:x},navigationType:i}},[d,p,m,g,w,x,i]);return E==null?null:k.createElement(is.Provider,{value:f},k.createElement(Jd.Provider,{children:n,value:E}))}function tU(e){let{children:t,location:n}=e;return BM(bg(t),n)}new Promise(()=>{});function bg(e,t){t===void 0&&(t=[]);let n=[];
85return k.Children.forEach(e,(r,i)=>{if(!k.isValidElement(r))return;let o=[...t,i];if(r.type===k.Fragment){n.push.apply(n,bg(r.props.children,o));return}r.type!==Ne&&ct(!1),!r.props.index||!r.props.children||ct(!1);let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=bg(r.props.children,o)),n.push(l)}),n}/**
86 * React Router DOM v6.27.0
87 *
88 * Copyright (c) Remix Software Inc.
89 *
90 * This source code is licensed under the MIT license found in the
91 * LICENSE.md file in the root directory of this source tree.
92 *
93 * @license MIT
94 */function xg(){return xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xg.apply(this,arguments)}function nU(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function rU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function iU(e,t){return e.button===0&&(!t||t==="_self")&&!rU(e)}function Eg(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function sU(e,t){let n=Eg(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const oU=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],aU="6";try{window.__reactRouterVersion=aU}catch{}const lU="startTransition",b_=hI[lU];function uU(e){let{basename:t,children:n,future:r,window:i}=e,o=k.useRef();o.current==null&&(o.current=hM({window:i,v5Compat:!0}));let l=o.current,[u,d]=k.useState({action:l.action,location:l.location}),{v7_startTransition:f}=r||{},p=k.useCallback(m=>{f&&b_?b_(()=>d(m)):d(m)},[d,f]);return k.useLayoutEffect(()=>l.listen(p),[l,p]),k.createElement(eU,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:l,future:r})}const cU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dU=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,VB=k.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:u,target:d,to:f,preventScrollReset:p,viewTransition:m}=t,g=nU(t,oU),{basename:w}=k.useContext(is),x,E=!1;if(typeof f=="string"&&dU.test(f)&&(x=f,cU))try{let b=new URL(window.location.href),A=f.startsWith("//")?new URL(b.protocol+f):new URL(f),O=qm(A.pathname,w);A.origin===b.origin&&O!=null?f=O+A.search+A.hash:E=!0}catch{}let T=UM(f,{relative:i}),_=fU(f,{replace:l,state:u,target:d,preventScrollReset:p,relative:i,viewTransition:m});function v(b){r&&r(b),b.defaultPrevented||_(b)}return k.createElement("a",xg({},g,{href:x||T,onClick:E||o?r:v,ref:n,target:d}))});var x_;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(x_||(x_={}));var E_;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(E_||(E_={}));function fU(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l,viewTransition:u}=t===void 0?{}:t,d=Jm(),f=ss(),p=XE(e,{relative:l});return k.useCallback(m=>{if(iU(m,n)){m.preventDefault();let g=r!==void 0?r:vd(f)===vd(p);d(e,{replace:g,state:i,preventScrollReset:o,relative:l,viewTransition:u})}},[f,d,p,r,i,n,e,o,l,u])}function qB(e){let t=k.useRef(Eg(e)),n=k.useRef(!1),r=ss(),i=k.useMemo(()=>sU(r.search,n.current?null:t.current),[r.search]),o=Jm(),l=k.useCallback((u,d)=>{const f=Eg(typeof u=="function"?u(i):u);n.current=!0,o("?"+f,d)},[o,i]);return[i,l]}var wd={exports:{}};/**
95 * @license
96 * Lodash <https://lodash.com/>
97 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
98 * Released under MIT license <https://lodash.com/license>
99 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
100 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
101 */wd.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",m=1,g=2,w=4,x=1,E=2,T=1,_=2,v=4,b=8,A=16,O=32,$=64,D=128,U=256,G=512,Y=30,se="...",Z=800,he=16,X=1,xe=2,de=3,pe=1/0,j=9007199254740991,K=17976931348623157e292,ne=NaN,Q=4294967295,oe=Q-1,Se=Q>>>1,Ve=[["ary",D],["bind",T],["bindKey",_],["curry",b],["curryRight",A],["flip",G],["partial",O],["partialRight",$],["rearg",U]],dt="[object Arguments]",Re="[object Array]",ln="[object AsyncFunction]",Qt="[object Boolean]",Jt="[object Date]",gr="[object DOMException]",Nr="[object Error]",Qn="[object Function]",mr="[object GeneratorFunction]",St="[object Map]",vr="[object Number]",yr="[object Null]",un="[object Object]",Ks="[object Promise]",pt="[object Proxy]",Pn="[object RegExp]",cn="[object Set]",as="[object String]",$r="[object Symbol]",tf="[object Undefined]",di="[object WeakMap]",xa="[object WeakSet]",On="[object ArrayBuffer]",Dr="[object DataView]",wr="[object Float32Array]",Gs="[object Float64Array]",Ea="[object Int8Array]",Qs="[object Int16Array]",Js="[object Int32Array]",Sa="[object Uint8Array]",ls="[object Uint8ClampedArray]",In="[object Uint16Array]",Ta="[object Uint32Array]",me=/\b__p \+= '';/g,Me=/\b(__p \+=) '' \+/g,je=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dn=/&(?:amp|lt|gt|quot|#39);/g,fn=/[&<>"']/g,Ys=RegExp(dn.source),nf=RegExp(fn.source),bS=/<%-([\s\S]+?)%>/g,xS=/<%([\s\S]+?)%>/g,Zm=/<%=([\s\S]+?)%>/g,ES=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SS=/^\w*$/,TS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rf=/[\\^$.*+?()[\]{}|]/g,CS=RegExp(rf.source),sf=/^\s+/,kS=/\s/,AS=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,RS=/\{\n\/\* \[wrapped with (.+)\] \*/,PS=/,? & /,OS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,IS=/[()=,{}\[\]\/\s]/,LS=/\\(\\)?/g,NS=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ev=/\w*$/,$S=/^[-+]0x[0-9a-f]+$/i,DS=/^0b[01]+$/i,jS=/^\[object .+?Constructor\]$/,MS=/^0o[0-7]+$/i,US=/^(?:0|[1-9]\d*)$/,FS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 4,133 bytes, line 101
1017f]/g,su=/($^)/,BS=/['\n\r\u2028\u2029\\]/g,ou="\\ud800-\\udfff",zS="\\u0300-\\u036f",WS="\\ufe20-\\ufe2f",HS="\\u20d0-\\u20ff",tv=zS+WS+HS,nv="\\u2700-\\u27bf",rv="a-z\\xdf-\\xf6\\xf8-\\xff",VS="\\xac\\xb1\\xd7\\xf7",qS="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",KS="\\u2000-\\u206f",GS=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",iv="A-Z\\xc0-\\xd6\\xd8-\\xde",sv="\\ufe0e\\ufe0f",ov=VS+qS+KS+GS,of="['’]",QS="["+ou+"]",av="["+ov+"]",au="["+tv+"]",lv="\\d+",JS="["+nv+"]",uv="["+rv+"]",cv="[^"+ou+ov+lv+nv+rv+iv+"]",af="\\ud83c[\\udffb-\\udfff]",YS="(?:"+au+"|"+af+")",dv="[^"+ou+"]",lf="(?:\\ud83c[\\udde6-\\uddff]){2}",uf="[\\ud800-\\udbff][\\udc00-\\udfff]",Xs="["+iv+"]",fv="\\u200d",hv="(?:"+uv+"|"+cv+")",XS="(?:"+Xs+"|"+cv+")",pv="(?:"+of+"(?:d|ll|m|re|s|t|ve))?",gv="(?:"+of+"(?:D|LL|M|RE|S|T|VE))?",mv=YS+"?",vv="["+sv+"]?",ZS="(?:"+fv+"(?:"+[dv,lf,uf].join("|")+")"+vv+mv+")*",eT="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tT="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yv=vv+mv+ZS,nT="(?:"+[JS,lf,uf].join("|")+")"+yv,rT="(?:"+[dv+au+"?",au,lf,uf,QS].join("|")+")",iT=RegExp(of,"g"),sT=RegExp(au,"g"),cf=RegExp(af+"(?="+af+")|"+rT+yv,"g"),oT=RegExp([Xs+"?"+uv+"+"+pv+"(?="+[av,Xs,"$"].join("|")+")",XS+"+"+gv+"(?="+[av,Xs+hv,"$"].join("|")+")",Xs+"?"+hv+"+"+pv,Xs+"+"+gv,tT,eT,lv,nT].join("|"),"g"),aT=RegExp("["+fv+ou+tv+sv+"]"),lT=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,uT=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],cT=-1,qe={};qe[wr]=qe[Gs]=qe[Ea]=qe[Qs]=qe[Js]=qe[Sa]=qe[ls]=qe[In]=qe[Ta]=!0,qe[dt]=qe[Re]=qe[On]=qe[Qt]=qe[Dr]=qe[Jt]=qe[Nr]=qe[Qn]=qe[St]=qe[vr]=qe[un]=qe[Pn]=qe[cn]=qe[as]=qe[di]=!1;var ze={};ze[dt]=ze[Re]=ze[On]=ze[Dr]=ze[Qt]=ze[Jt]=ze[wr]=ze[Gs]=ze[Ea]=ze[Qs]=ze[Js]=ze[St]=ze[vr]=ze[un]=ze[Pn]=ze[cn]=ze[as]=ze[$r]=ze[Sa]=ze[ls]=ze[In]=ze[Ta]=!0,ze[Nr]=ze[Qn]=ze[di]=!1;var dT={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},fT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},hT={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},pT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gT=parseFloat,mT=parseInt,wv=typeof Ba=="object"&&Ba&&Ba.Object===Object&&Ba,vT=typeof self=="object"&&self&&self.Object===Object&&self,Tt=wv||vT||Function("return this")(),df=t&&!t.nodeType&&t,us=df&&!0&&e&&!e.nodeType&&e,_v=us&&us.exports===df,ff=_v&&wv.process,Ln=function(){try{var I=us&&us.require&&us.require("util").t
vendor: 9,785 bytes, line 101
101ypes;return I||ff&&ff.binding&&ff.binding("util")}catch{}}(),bv=Ln&&Ln.isArrayBuffer,xv=Ln&&Ln.isDate,Ev=Ln&&Ln.isMap,Sv=Ln&&Ln.isRegExp,Tv=Ln&&Ln.isSet,Cv=Ln&&Ln.isTypedArray;function hn(I,F,M){switch(M.length){case 0:return I.call(F);case 1:return I.call(F,M[0]);case 2:return I.call(F,M[0],M[1]);case 3:return I.call(F,M[0],M[1],M[2])}return I.apply(F,M)}function yT(I,F,M,ee){for(var ge=-1,Oe=I==null?0:I.length;++ge<Oe;){var gt=I[ge];F(ee,gt,M(gt),I)}return ee}function Nn(I,F){for(var M=-1,ee=I==null?0:I.length;++M<ee&&F(I[M],M,I)!==!1;);return I}function wT(I,F){for(var M=I==null?0:I.length;M--&&F(I[M],M,I)!==!1;);return I}function kv(I,F){for(var M=-1,ee=I==null?0:I.length;++M<ee;)if(!F(I[M],M,I))return!1;return!0}function fi(I,F){for(var M=-1,ee=I==null?0:I.length,ge=0,Oe=[];++M<ee;){var gt=I[M];F(gt,M,I)&&(Oe[ge++]=gt)}return Oe}function lu(I,F){var M=I==null?0:I.length;return!!M&&Zs(I,F,0)>-1}function hf(I,F,M){for(var ee=-1,ge=I==null?0:I.length;++ee<ge;)if(M(F,I[ee]))return!0;return!1}function Je(I,F){for(var M=-1,ee=I==null?0:I.length,ge=Array(ee);++M<ee;)ge[M]=F(I[M],M,I);return ge}function hi(I,F){for(var M=-1,ee=F.length,ge=I.length;++M<ee;)I[ge+M]=F[M];return I}function pf(I,F,M,ee){var ge=-1,Oe=I==null?0:I.length;for(ee&&Oe&&(M=I[++ge]);++ge<Oe;)M=F(M,I[ge],ge,I);return M}function _T(I,F,M,ee){var ge=I==null?0:I.length;for(ee&&ge&&(M=I[--ge]);ge--;)M=F(M,I[ge],ge,I);return M}function gf(I,F){for(var M=-1,ee=I==null?0:I.length;++M<ee;)if(F(I[M],M,I))return!0;return!1}var bT=mf("length");function xT(I){return I.split("")}function ET(I){return I.match(OS)||[]}function Av(I,F,M){var ee;return M(I,function(ge,Oe,gt){if(F(ge,Oe,gt))return ee=Oe,!1}),ee}function uu(I,F,M,ee){for(var ge=I.length,Oe=M+(ee?1:-1);ee?Oe--:++Oe<ge;)if(F(I[Oe],Oe,I))return Oe;return-1}function Zs(I,F,M){return F===F?$T(I,F,M):uu(I,Rv,M)}function ST(I,F,M,ee){for(var ge=M-1,Oe=I.length;++ge<Oe;)if(ee(I[ge],F))return ge;return-1}function Rv(I){return I!==I}function Pv(I,F){var M=I==null?0:I.length;return M?yf(I,F)/M:ne}function mf(I){return function(F){return F==null?n:F[I]}}function vf(I){return function(F){return I==null?n:I[F]}}function Ov(I,F,M,ee,ge){return ge(I,function(Oe,gt,Ue){M=ee?(ee=!1,Oe):F(M,Oe,gt,Ue)}),M}function TT(I,F){var M=I.length;for(I.sort(F);M--;)I[M]=I[M].value;return I}function yf(I,F){for(var M,ee=-1,ge=I.length;++ee<ge;){var Oe=F(I[ee]);Oe!==n&&(M=M===n?Oe:M+Oe)}return M}function wf(I,F){for(var M=-1,ee=Array(I);++M<I;)ee[M]=F(M);return ee}function CT(I,F){return Je(F,function(M){return[M,I[M]]})}function Iv(I){return I&&I.slice(0,Dv(I)+1).replace(sf,"")}function pn(I){return function(F){return I(F)}}function _f(I,F){return Je(F,function(M){return I[M]})}function Ca(I,F){return I.has(F)}function Lv(I,F){for(var M=-1,ee=I.length;++M<ee&&Zs(F,I[M],0)>-1;);return M}function Nv(I,F){for(var M=I.length;M--&&Zs(F,I[M],0)>-1;);return M}function kT(I,F){for(var M=I.length,ee=0;M--;)I[M]===F&&++ee;return ee}var AT=vf(dT),RT=vf(fT);function PT(I){return"\\"+pT[I]}function OT(I,F){return I==null?n:I[F]}function eo(I){return aT.test(I)}function IT(I){return lT.test(I)}function LT(I){for(var F,M=[];!(F=I.next()).done;)M.push(F.value);return M}function bf(I){var F=-1,M=Array(I.size);return I.forEach(function(ee,ge){M[++F]=[ge,ee]}),M}function $v(I,F){return function(M){return I(F(M))}}function pi(I,F){for(var M=-1,ee=I.length,ge=0,Oe=[];++M<ee;){var gt=I[M];(gt===F||gt===p)&&(I[M]=p,Oe[ge++]=M)}return Oe}function cu(I){var F=-1,M=Array(I.size);return I.forEach(function(ee){M[++F]=ee}),M}function NT(I){var F=-1,M=Array(I.size);return I.forEach(function(ee){M[++F]=[ee,ee]}),M}function $T(I,F,M){for(var ee=M-1,ge=I.length;++ee<ge;)if(I[ee]===F)return ee;return-1}function DT(I,F,M){for(var ee=M+1;ee--;)if(I[ee]===F)return ee;return ee}function to(I){return eo(I)?MT(I):bT(I)}function Jn(I){return eo(I)?UT(I):xT(I)}function Dv(I){for(var F=I.length;F--&&kS.test(I.charAt(F)););return F}var jT=vf(hT);function MT(I){for(var F=cf.lastIndex=0;cf.test(I);)++F;return F}function UT(I){return I.match(cf)||[]}function FT(I){return I.match(oT)||[]}var BT=function I(F){F=F==null?Tt:no.defaults(Tt.Object(),F,no.pick(Tt,uT));var M=F.Array,ee=F.Date,ge=F.Error,Oe=F.Function,gt=F.Math,Ue=F.Object,xf=F.RegExp,zT=F.String,$n=F.TypeError,du=M.prototype,WT=Oe.prototype,ro=Ue.prototype,fu=F["__core-js_shared__"],hu=WT.toString,$e=ro.hasOwnProperty,HT=0,jv=function(){var s=/[^.]+$/.exec(fu&&fu.keys&&fu.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),pu=ro.toString,VT=hu.call(Ue),qT=Tt._,KT=xf("^"+hu.call($e).replace(rf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gu=_v?F.Buffer:n,gi=F.Symbol,mu=F.Uint8Array,Mv=gu?gu.allocUnsafe:n,vu=$v(Ue.getPrototypeOf,Ue),Uv=Ue.create,Fv=ro.propertyIsEnumerable,yu=du.splice,Bv=gi?gi.isConcatSpreadable:n,ka=gi?gi.iterator:n,cs=gi?gi.toStringTag:n,wu=function(){try{var s=gs(Ue,"defineProperty");return s({},"",{}),s}catch{}}(),GT=F.clearTimeout!==Tt.clearTimeout&&F.clearTimeout,QT=ee&&ee.now!==Tt.Date.now&&ee.now,JT=F.setTimeout!==Tt.setTimeout&&F.setTimeout,_u=gt.ceil,bu=gt.floor,Ef=Ue.getOwnPropertySymbols,YT=gu?gu.isBuffer:n,zv=F.isFinite,XT=du.join,ZT=$v(Ue.keys,Ue),mt=gt.max,It=gt.min,eC=ee.now,tC=F.parseInt,Wv=gt.random,nC=du.reverse,Sf=gs(F,"DataView"),Aa=gs(F,"Map"),Tf=gs(F,"Promise"),io=gs(F,"Set"),Ra=gs(F,"WeakMap"),Pa=gs(Ue,"create"),xu=Ra&&new Ra,so={},rC=ms(Sf),iC=ms(Aa),sC=ms(Tf),oC=ms(io),aC=ms(Ra),Eu=gi?gi.prototype:n,Oa=Eu?Eu.valueOf:n,Hv=Eu?Eu.toString:n;function S(s){if(rt(s)&&!ve(s)&&!(s instanceof ke)){if(s instanceof Dn)return s;if($e.call(s,"__wrapped__"))return Vy(s)}return new Dn(s)}var oo=function(){function s(){}return function(a){if(!Ze(a))return{};if(Uv)return Uv(a);s.prototype=a;var c=new s;return s.prototype=n,c}}();function Su(){}function Dn(s,a){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=n}S.templateSettings={escape:bS,evaluate:xS,interpolate:Zm,variable:"",imports:{_:S}},S.prototype=Su.prototype,S.prototype.constructor=S,Dn.prototype=oo(Su.prototype),Dn.prototype.constructor=Dn;function ke(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function lC(){var s=new ke(this.__wrapped__);return s.__actions__=Yt(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Yt(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Yt(this.__views__),s}function uC(){if(this.__filtered__){var s=new ke(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function cC(){var s=this.__wrapped__.value(),a=this.__dir__,c=ve(s),h=a<0,y=c?s.length:0,C=xk(0,y,this.__views__),R=C.start,P=C.end,N=P-R,B=h?P:R-1,z=this.__iteratees__,H=z.length,J=0,re=It(N,this.__takeCount__);if(!c||!h&&y==N&&re==N)return py(s,this.__actions__);var le=[];e:for(;N--&&J<re;){B+=a;for(var _e=-1,ue=s[B];++_e<H;){var Te=z[_e],Ae=Te.iteratee,vn=Te.type,zt=Ae(ue);if(vn==xe)ue=zt;else if(!zt){if(vn==X)continue e;break e}}le[J++]=ue}return le}ke.prototype=oo(Su.prototype),ke.prototype.constructor=ke;function ds(s){var a=-1,c=s==null?0:s.length;for(this.clear();++a<c;){var h=s[a];this.set(h[0],h[1])}}function dC(){this.__data__=Pa?Pa(null):{},this.size=0}function fC(s){var a=this.has(s)&&delete this.__data__[s];return this.size-=a?1:0,a}function hC(s){var a=this.__data__;if(Pa){var c=a[s];return c===d?n:c}return $e.call(a,s)?a[s]:n}function pC(s){var a=this.__data__;return Pa?a[s]!==n:$e.call(a,s)}function gC(s,a){var c=this.__data__;return this.size+=this.has(s)?0:1,c[s]=Pa&&a===n?d:a,this}ds.prototype.clear=dC,ds.prototype.delete=fC,ds.prototype.get=hC,ds.prototype.has=pC,ds.prototype.set=gC;function jr(s){var a=-1,c=s==null?0:s.length;for(this.clear();++a<c;){var h=s[a];this.set(h[0],h[1])}}function mC(){this.__data__=[],this.size=0}function vC(s){var a=this.__data__,c=Tu(a,s);if(c<0)return!1;var h=a.length-1;return c==h?a.pop():yu.call(a,c,1),--this.size,!0}function yC(s){var a=this.__data__,c=Tu(a,s);return c<0?n:a[c][1]}function wC(s){return Tu(this.__data__,s)>-1}function _C(s,a){var c=this.__data__,h=Tu(c,s);return h<0?(++this.size,c.push([s,a])):c[h][1]=a,this}jr.prototype.clear=mC,jr.prototype.delete=vC,jr.prototype.get=yC,jr.prototype.has=wC,jr.prototype.set=_C;function Mr(s){var a=-1,c=s==null?0:s.length;for(this.clear();++a<c;){var h=s[a];this.set(h[0],h[1])}}function bC(){this.size=0,this.__data__={hash:new ds,map:new(Aa||jr),string:new ds}}function xC(s){var a=ju(this,s).delete(s);return this.size-=a?1:0,a}function EC(s){return ju(this,s).get(s)}function SC(s){return ju(this,s).has(s)}function TC(s,a){var c=ju(this,s),h=c.size;return c.set(s,a),this.size+=c.size==h?0:1,this}Mr.prototype.clear=bC,Mr.prototype.delete=xC,Mr.prototype.get=EC,Mr.prototype.has=SC,Mr.prototype.set=TC;function fs(s){var a=-1,c=s==null?0:s.length;for(this.__data__=new Mr;++a<c;)this.add(s[a])}function CC(s){return this.__data__.set(s,d),this}function kC(s){return this.__data__.has(s)}fs.prototype.add=fs.prototype.push=CC,fs.prototype.has=kC;function Yn(s){var a=this.__data__=new jr(s);this.size=a.size}function AC(){this.__data__=new jr,this.size=0}function RC(s){var a=this.__data__,c=a.delete(s);return this.size=a.size,c}function PC(s){return this.__data__.get(s)}function OC(s){return this.__data__.has(s)}function IC(s,a){var c=this.__data__;if(c instanceof jr){var h=c.__data__;if(!Aa||h.length<i-1)return h.push([s,a]),this.size=++c.size,this;c=this.__data__=new Mr(h)}return c.set(s,a),this.size=c.size,this}Yn.prototype.clear=AC,Yn.prototype.delete=RC,Yn.prototype.get=PC,Yn.prototype.has=OC,Yn.prototype.set=IC;function Vv(s,a){var c=ve(s),h=!c&&vs(s),y=!c&&!h&&_i(s),C=!c&&!h&&!y&&
vendor: 5,659 bytes, line 101
101co(s),R=c||h||y||C,P=R?wf(s.length,zT):[],N=P.length;for(var B in s)(a||$e.call(s,B))&&!(R&&(B=="length"||y&&(B=="offset"||B=="parent")||C&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||zr(B,N)))&&P.push(B);return P}function qv(s){var a=s.length;return a?s[Df(0,a-1)]:n}function LC(s,a){return Mu(Yt(s),hs(a,0,s.length))}function NC(s){return Mu(Yt(s))}function Cf(s,a,c){(c!==n&&!Xn(s[a],c)||c===n&&!(a in s))&&Ur(s,a,c)}function Ia(s,a,c){var h=s[a];(!($e.call(s,a)&&Xn(h,c))||c===n&&!(a in s))&&Ur(s,a,c)}function Tu(s,a){for(var c=s.length;c--;)if(Xn(s[c][0],a))return c;return-1}function $C(s,a,c,h){return mi(s,function(y,C,R){a(h,y,c(y),R)}),h}function Kv(s,a){return s&&br(a,bt(a),s)}function DC(s,a){return s&&br(a,Zt(a),s)}function Ur(s,a,c){a=="__proto__"&&wu?wu(s,a,{configurable:!0,enumerable:!0,value:c,writable:!0}):s[a]=c}function kf(s,a){for(var c=-1,h=a.length,y=M(h),C=s==null;++c<h;)y[c]=C?n:ah(s,a[c]);return y}function hs(s,a,c){return s===s&&(c!==n&&(s=s<=c?s:c),a!==n&&(s=s>=a?s:a)),s}function jn(s,a,c,h,y,C){var R,P=a&m,N=a&g,B=a&w;if(c&&(R=y?c(s,h,y,C):c(s)),R!==n)return R;if(!Ze(s))return s;var z=ve(s);if(z){if(R=Sk(s),!P)return Yt(s,R)}else{var H=Lt(s),J=H==Qn||H==mr;if(_i(s))return vy(s,P);if(H==un||H==dt||J&&!y){if(R=N||J?{}:Dy(s),!P)return N?hk(s,DC(R,s)):fk(s,Kv(R,s))}else{if(!ze[H])return y?s:{};R=Tk(s,H,P)}}C||(C=new Yn);var re=C.get(s);if(re)return re;C.set(s,R),d0(s)?s.forEach(function(ue){R.add(jn(ue,a,c,ue,s,C))}):u0(s)&&s.forEach(function(ue,Te){R.set(Te,jn(ue,a,c,Te,s,C))});var le=B?N?Kf:qf:N?Zt:bt,_e=z?n:le(s);return Nn(_e||s,function(ue,Te){_e&&(Te=ue,ue=s[Te]),Ia(R,Te,jn(ue,a,c,Te,s,C))}),R}function jC(s){var a=bt(s);return function(c){return Gv(c,s,a)}}function Gv(s,a,c){var h=c.length;if(s==null)return!h;for(s=Ue(s);h--;){var y=c[h],C=a[y],R=s[y];if(R===n&&!(y in s)||!C(R))return!1}return!0}function Qv(s,a,c){if(typeof s!="function")throw new $n(l);return Ua(function(){s.apply(n,c)},a)}function La(s,a,c,h){var y=-1,C=lu,R=!0,P=s.length,N=[],B=a.length;if(!P)return N;c&&(a=Je(a,pn(c))),h?(C=hf,R=!1):a.length>=i&&(C=Ca,R=!1,a=new fs(a));e:for(;++y<P;){var z=s[y],H=c==null?z:c(z);if(z=h||z!==0?z:0,R&&H===H){for(var J=B;J--;)if(a[J]===H)continue e;N.push(z)}else C(a,H,h)||N.push(z)}return N}var mi=xy(_r),Jv=xy(Rf,!0);function MC(s,a){var c=!0;return mi(s,function(h,y,C){return c=!!a(h,y,C),c}),c}function Cu(s,a,c){for(var h=-1,y=s.length;++h<y;){var C=s[h],R=a(C);if(R!=null&&(P===n?R===R&&!mn(R):c(R,P)))var P=R,N=C}return N}function UC(s,a,c,h){var y=s.length;for(c=ye(c),c<0&&(c=-c>y?0:y+c),h=h===n||h>y?y:ye(h),h<0&&(h+=y),h=c>h?0:h0(h);c<h;)s[c++]=a;return s}function Yv(s,a){var c=[];return mi(s,function(h,y,C){a(h,y,C)&&c.push(h)}),c}function Ct(s,a,c,h,y){var C=-1,R=s.length;for(c||(c=kk),y||(y=[]);++C<R;){var P=s[C];a>0&&c(P)?a>1?Ct(P,a-1,c,h,y):hi(y,P):h||(y[y.length]=P)}return y}var Af=Ey(),Xv=Ey(!0);function _r(s,a){return s&&Af(s,a,bt)}function Rf(s,a){return s&&Xv(s,a,bt)}function ku(s,a){return fi(a,function(c){return Wr(s[c])})}function ps(s,a){a=yi(a,s);for(var c=0,h=a.length;s!=null&&c<h;)s=s[xr(a[c++])];return c&&c==h?s:n}function Zv(s,a,c){var h=a(s);return ve(s)?h:hi(h,c(s))}function Ft(s){return s==null?s===n?tf:yr:cs&&cs in Ue(s)?bk(s):Nk(s)}function Pf(s,a){return s>a}function FC(s,a){return s!=null&&$e.call(s,a)}function BC(s,a){return s!=null&&a in Ue(s)}function zC(s,a,c){return s>=It(a,c)&&s<mt(a,c)}function Of(s,a,c){for(var h=c?hf:lu,y=s[0].length,C=s.length,R=C,P=M(C),N=1/0,B=[];R--;){var z=s[R];R&&a&&(z=Je(z,pn(a))),N=It(z.length,N),P[R]=!c&&(a||y>=120&&z.length>=120)?new fs(R&&z):n}z=s[0];var H=-1,J=P[0];e:for(;++H<y&&B.length<N;){var re=z[H],le=a?a(re):re;if(re=c||re!==0?re:0,!(J?Ca(J,le):h(B,le,c))){for(R=C;--R;){var _e=P[R];if(!(_e?Ca(_e,le):h(s[R],le,c)))continue e}J&&J.push(le),B.push(re)}}return B}function WC(s,a,c,h){return _r(s,function(y,C,R){a(h,c(y),C,R)}),h}function Na(s,a,c){a=yi(a,s),s=Fy(s,a);var h=s==null?s:s[xr(Un(a))];return h==null?n:hn(h,s,c)}function ey(s){return rt(s)&&Ft(s)==dt}function HC(s){return rt(s)&&Ft(s)==On}function VC(s){return rt(s)&&Ft(s)==Jt}function $a(s,a,c,h,y){return s===a?!0:s==null||a==null||!rt(s)&&!rt(a)?s!==s&&a!==a:qC(s,a,c,h,$a,y)}function qC(s,a,c,h,y,C){var R=ve(s),P=ve(a),N=R?Re:Lt(s),B=P?Re:Lt(a);N=N==dt?un:N,B=B==dt?un:B;var z=N==un,H=B==un,J=N==B;if(J&&_i(s)){if(!_i(a))return!1;R=!0,z=!1}if(J&&!z)return C||(C=new Yn),R||co(s)?Ly(s,a,c,h,y,C):wk(s,a,N,c,h,y,C);if(!(c&x)){var re=z&&$e.call(s,"__wrapped__"),le=H&&$e.call(a,"__wrapped__");if(re||le){var _e=re?s.value():s,ue=le?a.value():a;return C||(C=new Yn),y(_e,ue,c,h,C)}}return J?(C||(C=new Yn),_k(s,a,c,h,y,C)):!1}function KC(s){return rt(s)&&Lt(s)==St}function If(s,a,c,h){var y=c.length,C=y,R=!h;if(s==null)return!C;for(s=Ue(s);y--;){var P=c[y];if(R&&P[2]?P[1]!==s[P[0]]:!(P[0]in s))return!1}for(;++y<C;){P=c[y];var N=P[0],B=s[N],z=P[1];if(R&&P[2]){if(B===n&&!(N in s))return!1}else{var H=new Yn;if(h)var J=h(B,z,N,s,a,H);if(!(J===n?$a(z,B,x|E,h,H):J))return!1}}return!0}function ty(s){if(!Ze(s)||Rk(s))return!1;var a=Wr(s)?KT:jS;return a.test(ms(s))}function GC(s){return rt(s)&&Ft(s)==Pn}function QC(s){return rt(s)&&Lt(s)==cn}function JC(s){return rt(s)&&Hu(s.length)&&!!qe[Ft(s)]}function ny(s){return typeof s=="function"?s:s==null?en:typeof s=="object"?ve(s)?sy(s[0],s[1]):iy(s):S0(s)}function Lf(s){if(!Ma(s))return ZT(s);var a=[];for(var c in Ue(s))$e.call(s,c)&&c!="constructor"&&a.push(c);return a}function YC(s){if(!Ze(s))return Lk(s);var a=Ma(s),c=[];for(var h in s)h=="constructor"&&(a||!$e.call(s,h))||c.push(h);return c}function Nf(s,a){return s<a}function ry(s,a){var c=-1,h=Xt(s)?M(s.length):[];
vendor: 5,763 bytes, line 101
101return mi(s,function(y,C,R){h[++c]=a(y,C,R)}),h}function iy(s){var a=Qf(s);return a.length==1&&a[0][2]?My(a[0][0],a[0][1]):function(c){return c===s||If(c,s,a)}}function sy(s,a){return Yf(s)&&jy(a)?My(xr(s),a):function(c){var h=ah(c,s);return h===n&&h===a?lh(c,s):$a(a,h,x|E)}}function Au(s,a,c,h,y){s!==a&&Af(a,function(C,R){if(y||(y=new Yn),Ze(C))XC(s,a,R,c,Au,h,y);else{var P=h?h(Zf(s,R),C,R+"",s,a,y):n;P===n&&(P=C),Cf(s,R,P)}},Zt)}function XC(s,a,c,h,y,C,R){var P=Zf(s,c),N=Zf(a,c),B=R.get(N);if(B){Cf(s,c,B);return}var z=C?C(P,N,c+"",s,a,R):n,H=z===n;if(H){var J=ve(N),re=!J&&_i(N),le=!J&&!re&&co(N);z=N,J||re||le?ve(P)?z=P:at(P)?z=Yt(P):re?(H=!1,z=vy(N,!0)):le?(H=!1,z=yy(N,!0)):z=[]:Fa(N)||vs(N)?(z=P,vs(P)?z=p0(P):(!Ze(P)||Wr(P))&&(z=Dy(N))):H=!1}H&&(R.set(N,z),y(z,N,h,C,R),R.delete(N)),Cf(s,c,z)}function oy(s,a){var c=s.length;if(c)return a+=a<0?c:0,zr(a,c)?s[a]:n}function ay(s,a,c){a.length?a=Je(a,function(C){return ve(C)?function(R){return ps(R,C.length===1?C[0]:C)}:C}):a=[en];var h=-1;a=Je(a,pn(ae()));var y=ry(s,function(C,R,P){var N=Je(a,function(B){return B(C)});return{criteria:N,index:++h,value:C}});return TT(y,function(C,R){return dk(C,R,c)})}function ZC(s,a){return ly(s,a,function(c,h){return lh(s,h)})}function ly(s,a,c){for(var h=-1,y=a.length,C={};++h<y;){var R=a[h],P=ps(s,R);c(P,R)&&Da(C,yi(R,s),P)}return C}function ek(s){return function(a){return ps(a,s)}}function $f(s,a,c,h){var y=h?ST:Zs,C=-1,R=a.length,P=s;for(s===a&&(a=Yt(a)),c&&(P=Je(s,pn(c)));++C<R;)for(var N=0,B=a[C],z=c?c(B):B;(N=y(P,z,N,h))>-1;)P!==s&&yu.call(P,N,1),yu.call(s,N,1);return s}function uy(s,a){for(var c=s?a.length:0,h=c-1;c--;){var y=a[c];if(c==h||y!==C){var C=y;zr(y)?yu.call(s,y,1):Uf(s,y)}}return s}function Df(s,a){return s+bu(Wv()*(a-s+1))}function tk(s,a,c,h){for(var y=-1,C=mt(_u((a-s)/(c||1)),0),R=M(C);C--;)R[h?C:++y]=s,s+=c;return R}function jf(s,a){var c="";if(!s||a<1||a>j)return c;do a%2&&(c+=s),a=bu(a/2),a&&(s+=s);while(a);return c}function Ee(s,a){return eh(Uy(s,a,en),s+"")}function nk(s){return qv(fo(s))}function rk(s,a){var c=fo(s);return Mu(c,hs(a,0,c.length))}function Da(s,a,c,h){if(!Ze(s))return s;a=yi(a,s);for(var y=-1,C=a.length,R=C-1,P=s;P!=null&&++y<C;){var N=xr(a[y]),B=c;if(N==="__proto__"||N==="constructor"||N==="prototype")return s;if(y!=R){var z=P[N];B=h?h(z,N,P):n,B===n&&(B=Ze(z)?z:zr(a[y+1])?[]:{})}Ia(P,N,B),P=P[N]}return s}var cy=xu?function(s,a){return xu.set(s,a),s}:en,ik=wu?function(s,a){return wu(s,"toString",{configurable:!0,enumerable:!1,value:ch(a),writable:!0})}:en;function sk(s){return Mu(fo(s))}function Mn(s,a,c){var h=-1,y=s.length;a<0&&(a=-a>y?0:y+a),c=c>y?y:c,c<0&&(c+=y),y=a>c?0:c-a>>>0,a>>>=0;for(var C=M(y);++h<y;)C[h]=s[h+a];return C}function ok(s,a){var c;return mi(s,function(h,y,C){return c=a(h,y,C),!c}),!!c}function Ru(s,a,c){var h=0,y=s==null?h:s.length;if(typeof a=="number"&&a===a&&y<=Se){for(;h<y;){var C=h+y>>>1,R=s[C];R!==null&&!mn(R)&&(c?R<=a:R<a)?h=C+1:y=C}return y}return Mf(s,a,en,c)}function Mf(s,a,c,h){var y=0,C=s==null?0:s.length;if(C===0)return 0;a=c(a);for(var R=a!==a,P=a===null,N=mn(a),B=a===n;y<C;){var z=bu((y+C)/2),H=c(s[z]),J=H!==n,re=H===null,le=H===H,_e=mn(H);if(R)var ue=h||le;else B?ue=le&&(h||J):P?ue=le&&J&&(h||!re):N?ue=le&&J&&!re&&(h||!_e):re||_e?ue=!1:ue=h?H<=a:H<a;ue?y=z+1:C=z}return It(C,oe)}function dy(s,a){for(var c=-1,h=s.length,y=0,C=[];++c<h;){var R=s[c],P=a?a(R):R;if(!c||!Xn(P,N)){var N=P;C[y++]=R===0?0:R}}return C}function fy(s){return typeof s=="number"?s:mn(s)?ne:+s}function gn(s){if(typeof s=="string")return s;if(ve(s))return Je(s,gn)+"";if(mn(s))return Hv?Hv.call(s):"";var a=s+"";return a=="0"&&1/s==-pe?"-0":a}function vi(s,a,c){var h=-1,y=lu,C=s.length,R=!0,P=[],N=P;if(c)R=!1,y=hf;else if(C>=i){var B=a?null:vk(s);if(B)return cu(B);R=!1,y=Ca,N=new fs}else N=a?[]:P;e:for(;++h<C;){var z=s[h],H=a?a(z):z;if(z=c||z!==0?z:0,R&&H===H){for(var J=N.length;J--;)if(N[J]===H)continue e;a&&N.push(H),P.push(z)}else y(N,H,c)||(N!==P&&N.push(H),P.push(z))}return P}function Uf(s,a){return a=yi(a,s),s=Fy(s,a),s==null||delete s[xr(Un(a))]}function hy(s,a,c,h){return Da(s,a,c(ps(s,a)),h)}function Pu(s,a,c,h){for(var y=s.length,C=h?y:-1;(h?C--:++C<y)&&a(s[C],C,s););return c?Mn(s,h?0:C,h?C+1:y):Mn(s,h?C+1:0,h?y:C)}function py(s,a){var c=s;return c instanceof ke&&(c=c.value()),pf(a,function(h,y){return y.func.apply(y.thisArg,hi([h],y.args))},c)}function Ff(s,a,c){var h=s.length;if(h<2)return h?vi(s[0]):[];for(var y=-1,C=M(h);++y<h;)for(var R=s[y],P=-1;++P<h;)P!=y&&(C[y]=La(C[y]||R,s[P],a,c));return vi(Ct(C,1),a,c)}function gy(s,a,c){for(var h=-1,y=s.length,C=a.length,R={};++h<y;){var P=h<C?a[h]:n;c(R,s[h],P)}return R}function Bf(s){return at(s)?s:[]}function zf(s){return typeof s=="function"?s:en}function yi(s,a){return ve(s)?s:Yf(s,a)?[s]:Hy(Ie(s))}var ak=Ee;function wi(s,a,c){var h=s.length;return c=c===n?h:c,!a&&c>=h?s:Mn(s,a,c)}var my=GT||function(s){return Tt.clearTimeout(s)};function vy(s,a){if(a)return s.slice();var c=s.length,h=Mv?Mv(c):new s.constructor(c);return s.copy(h),h}function Wf(s){var a=new s.constructor(s.byteLength);return new mu(a).set(new mu(s)),a}function lk(s,a){var c=a?Wf(s.buffer):s.buffer;return new s.constructor(c,s.byteOffset,s.byteLength)}function uk(s){var a=new s.constructor(s.source,ev.exec(s));return a.lastIndex=s.lastIndex,a}function ck(s){return Oa?Ue(Oa.call(s)):{}}function yy(s,a){var c=a?Wf(s.buffer):s.buffer;return new s.constructor(c,s.byteOffset,s.length)}function wy(s,a){if(s!==a){var c=s!==n,h=s===null,y=s===s,C=mn(s),R=a!==n,P=a===null,N=a===a,B=mn(a);if(!P&&!B&&!C&&s>a||C&&R&&N&&!P&&!B||h&&R&&N||!c&&N||!y)return 1;if(!h&&!C&&!B&&s<a||B&&c&&y&&!h&&!C||P&&c&&y||!R&&y||!N)return-1}return 0}function dk(s,a,c){for(var h=-1,y=s.criteria,C=a.criteria,R=y.length,P=c.length;++h<R;
vendor: 1,075 bytes, line 101
101){var N=wy(y[h],C[h]);if(N){if(h>=P)return N;var B=c[h];return N*(B=="desc"?-1:1)}}return s.index-a.index}function _y(s,a,c,h){for(var y=-1,C=s.length,R=c.length,P=-1,N=a.length,B=mt(C-R,0),z=M(N+B),H=!h;++P<N;)z[P]=a[P];for(;++y<R;)(H||y<C)&&(z[c[y]]=s[y]);for(;B--;)z[P++]=s[y++];return z}function by(s,a,c,h){for(var y=-1,C=s.length,R=-1,P=c.length,N=-1,B=a.length,z=mt(C-P,0),H=M(z+B),J=!h;++y<z;)H[y]=s[y];for(var re=y;++N<B;)H[re+N]=a[N];for(;++R<P;)(J||y<C)&&(H[re+c[R]]=s[y++]);return H}function Yt(s,a){var c=-1,h=s.length;for(a||(a=M(h));++c<h;)a[c]=s[c];return a}function br(s,a,c,h){var y=!c;c||(c={});for(var C=-1,R=a.length;++C<R;){var P=a[C],N=h?h(c[P],s[P],P,c,s):n;N===n&&(N=s[P]),y?Ur(c,P,N):Ia(c,P,N)}return c}function fk(s,a){return br(s,Jf(s),a)}function hk(s,a){return br(s,Ny(s),a)}function Ou(s,a){return function(c,h){var y=ve(c)?yT:$C,C=a?a():{};return y(c,s,ae(h,2),C)}}function ao(s){return Ee(function(a,c){var h=-1,y=c.length,C=y>1?c[y-1]:n,R=y>2?c[2]:n;for(C=s.length>3&&typeof C=="function"?(y--,C):n,R&&Bt(c[0],c[1],R)&&(C=y<3?n:C,y=1),a=Ue(a
vendor: 13,466 bytes, lines 101-103
101);++h<y;){var P=c[h];P&&s(a,P,h,C)}return a})}function xy(s,a){return function(c,h){if(c==null)return c;if(!Xt(c))return s(c,h);for(var y=c.length,C=a?y:-1,R=Ue(c);(a?C--:++C<y)&&h(R[C],C,R)!==!1;);return c}}function Ey(s){return function(a,c,h){for(var y=-1,C=Ue(a),R=h(a),P=R.length;P--;){var N=R[s?P:++y];if(c(C[N],N,C)===!1)break}return a}}function pk(s,a,c){var h=a&T,y=ja(s);function C(){var R=this&&this!==Tt&&this instanceof C?y:s;return R.apply(h?c:this,arguments)}return C}function Sy(s){return function(a){a=Ie(a);var c=eo(a)?Jn(a):n,h=c?c[0]:a.charAt(0),y=c?wi(c,1).join(""):a.slice(1);return h[s]()+y}}function lo(s){return function(a){return pf(x0(b0(a).replace(iT,"")),s,"")}}function ja(s){return function(){var a=arguments;switch(a.length){case 0:return new s;case 1:return new s(a[0]);case 2:return new s(a[0],a[1]);case 3:return new s(a[0],a[1],a[2]);case 4:return new s(a[0],a[1],a[2],a[3]);case 5:return new s(a[0],a[1],a[2],a[3],a[4]);case 6:return new s(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new s(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var c=oo(s.prototype),h=s.apply(c,a);return Ze(h)?h:c}}function gk(s,a,c){var h=ja(s);function y(){for(var C=arguments.length,R=M(C),P=C,N=uo(y);P--;)R[P]=arguments[P];var B=C<3&&R[0]!==N&&R[C-1]!==N?[]:pi(R,N);if(C-=B.length,C<c)return Ry(s,a,Iu,y.placeholder,n,R,B,n,n,c-C);var z=this&&this!==Tt&&this instanceof y?h:s;return hn(z,this,R)}return y}function Ty(s){return function(a,c,h){var y=Ue(a);if(!Xt(a)){var C=ae(c,3);a=bt(a),c=function(P){return C(y[P],P,y)}}var R=s(a,c,h);return R>-1?y[C?a[R]:R]:n}}function Cy(s){return Br(function(a){var c=a.length,h=c,y=Dn.prototype.thru;for(s&&a.reverse();h--;){var C=a[h];if(typeof C!="function")throw new $n(l);if(y&&!R&&Du(C)=="wrapper")var R=new Dn([],!0)}for(h=R?h:c;++h<c;){C=a[h];var P=Du(C),N=P=="wrapper"?Gf(C):n;N&&Xf(N[0])&&N[1]==(D|b|O|U)&&!N[4].length&&N[9]==1?R=R[Du(N[0])].apply(R,N[3]):R=C.length==1&&Xf(C)?R[P]():R.thru(C)}return function(){var B=arguments,z=B[0];if(R&&B.length==1&&ve(z))return R.plant(z).value();for(var H=0,J=c?a[H].apply(this,B):z;++H<c;)J=a[H].call(this,J);return J}})}function Iu(s,a,c,h,y,C,R,P,N,B){var z=a&D,H=a&T,J=a&_,re=a&(b|A),le=a&G,_e=J?n:ja(s);function ue(){for(var Te=arguments.length,Ae=M(Te),vn=Te;vn--;)Ae[vn]=arguments[vn];if(re)var zt=uo(ue),yn=kT(Ae,zt);if(h&&(Ae=_y(Ae,h,y,re)),C&&(Ae=by(Ae,C,R,re)),Te-=yn,re&&Te<B){var lt=pi(Ae,zt);return Ry(s,a,Iu,ue.placeholder,c,Ae,lt,P,N,B-Te)}var Zn=H?c:this,Vr=J?Zn[s]:s;return Te=Ae.length,P?Ae=$k(Ae,P):le&&Te>1&&Ae.reverse(),z&&N<Te&&(Ae.length=N),this&&this!==Tt&&this instanceof ue&&(Vr=_e||ja(Vr)),Vr.apply(Zn,Ae)}return ue}function ky(s,a){return function(c,h){return WC(c,s,a(h),{})}}function Lu(s,a){return function(c,h){var y;if(c===n&&h===n)return a;if(c!==n&&(y=c),h!==n){if(y===n)return h;typeof c=="string"||typeof h=="string"?(c=gn(c),h=gn(h)):(c=fy(c),h=fy(h)),y=s(c,h)}return y}}function Hf(s){return Br(function(a){return a=Je(a,pn(ae())),Ee(function(c){var h=this;return s(a,function(y){return hn(y,h,c)})})})}function Nu(s,a){a=a===n?" ":gn(a);var c=a.length;if(c<2)return c?jf(a,s):a;var h=jf(a,_u(s/to(a)));return eo(a)?wi(Jn(h),0,s).join(""):h.slice(0,s)}function mk(s,a,c,h){var y=a&T,C=ja(s);function R(){for(var P=-1,N=arguments.length,B=-1,z=h.length,H=M(z+N),J=this&&this!==Tt&&this instanceof R?C:s;++B<z;)H[B]=h[B];for(;N--;)H[B++]=arguments[++P];return hn(J,y?c:this,H)}return R}function Ay(s){return function(a,c,h){return h&&typeof h!="number"&&Bt(a,c,h)&&(c=h=n),a=Hr(a),c===n?(c=a,a=0):c=Hr(c),h=h===n?a<c?1:-1:Hr(h),tk(a,c,h,s)}}function $u(s){return function(a,c){return typeof a=="string"&&typeof c=="string"||(a=Fn(a),c=Fn(c)),s(a,c)}}function Ry(s,a,c,h,y,C,R,P,N,B){var z=a&b,H=z?R:n,J=z?n:R,re=z?C:n,le=z?n:C;a|=z?O:$,a&=~(z?$:O),a&v||(a&=~(T|_));var _e=[s,a,y,re,H,le,J,P,N,B],ue=c.apply(n,_e);return Xf(s)&&By(ue,_e),ue.placeholder=h,zy(ue,s,a)}function Vf(s){var a=gt[s];return function(c,h){if(c=Fn(c),h=h==null?0:It(ye(h),292),h&&zv(c)){var y=(Ie(c)+"e").split("e"),C=a(y[0]+"e"+(+y[1]+h));return y=(Ie(C)+"e").split("e"),+(y[0]+"e"+(+y[1]-h))}return a(c)}}var vk=io&&1/cu(new io([,-0]))[1]==pe?function(s){return new io(s)}:hh;function Py(s){return function(a){var c=Lt(a);return c==St?bf(a):c==cn?NT(a):CT(a,s(a))}}function Fr(s,a,c,h,y,C,R,P){var N=a&_;if(!N&&typeof s!="function")throw new $n(l);var B=h?h.length:0;if(B||(a&=~(O|$),h=y=n),R=R===n?R:mt(ye(R),0),P=P===n?P:ye(P),B-=y?y.length:0,a&$){var z=h,H=y;h=y=n}var J=N?n:Gf(s),re=[s,a,c,h,y,z,H,C,R,P];if(J&&Ik(re,J),s=re[0],a=re[1],c=re[2],h=re[3],y=re[4],P=re[9]=re[9]===n?N?0:s.length:mt(re[9]-B,0),!P&&a&(b|A)&&(a&=~(b|A)),!a||a==T)var le=pk(s,a,c);else a==b||a==A?le=gk(s,a,P):(a==O||a==(T|O))&&!y.length?le=mk(s,a,c,h):le=Iu.apply(n,re);var _e=J?cy:By;return zy(_e(le,re),s,a)}function Oy(s,a,c,h){return s===n||Xn(s,ro[c])&&!$e.call(h,c)?a:s}function Iy(s,a,c,h,y,C){return Ze(s)&&Ze(a)&&(C.set(a,s),Au(s,a,n,Iy,C),C.delete(a)),s}function yk(s){return Fa(s)?n:s}function Ly(s,a,c,h,y,C){var R=c&x,P=s.length,N=a.length;if(P!=N&&!(R&&N>P))return!1;var B=C.get(s),z=C.get(a);if(B&&z)return B==a&&z==s;var H=-1,J=!0,re=c&E?new fs:n;for(C.set(s,a),C.set(a,s);++H<P;){var le=s[H],_e=a[H];if(h)var ue=R?h(_e,le,H,a,s,C):h(le,_e,H,s,a,C);if(ue!==n){if(ue)continue;J=!1;break}if(re){if(!gf(a,function(Te,Ae){if(!Ca(re,Ae)&&(le===Te||y(le,Te,c,h,C)))return re.push(Ae)})){J=!1;break}}else if(!(le===_e||y(le,_e,c,h,C))){J=!1;break}}return C.delete(s),C.delete(a),J}function wk(s,a,c,h,y,C,R){switch(c){case Dr:if(s.byteLength!=a.byteLength||s.byteOffset!=a.byteOffset)return!1;s=s.buffer,a=a.buffer;case On:return!(s.byteLength!=a.byteLength||!C(new mu(s),new mu(a)));case Qt:case Jt:case vr:return Xn(+s,+a);case Nr:return s.name==a.name&&s.message==a.message;case Pn:case as:return s==a+"";case St:var P=bf;case cn:var N=h&x;if(P||(P=cu),s.size!=a.size&&!N)return!1;var B=R.get(s);if(B)return B==a;h|=E,R.set(s,a);var z=Ly(P(s),P(a),h,y,C,R);return R.delete(s),z;case $r:if(Oa)return Oa.call(s)==Oa.call(a)}return!1}function _k(s,a,c,h,y,C){var R=c&x,P=qf(s),N=P.length,B=qf(a),z=B.length;if(N!=z&&!R)return!1;for(var H=N;H--;){var J=P[H];if(!(R?J in a:$e.call(a,J)))return!1}var re=C.get(s),le=C.get(a);if(re&&le)return re==a&&le==s;var _e=!0;C.set(s,a),C.set(a,s);for(var ue=R;++H<N;){J=P[H];var Te=s[J],Ae=a[J];if(h)var vn=R?h(Ae,Te,J,a,s,C):h(Te,Ae,J,s,a,C);if(!(vn===n?Te===Ae||y(Te,Ae,c,h,C):vn)){_e=!1;break}ue||(ue=J=="constructor")}if(_e&&!ue){var zt=s.constructor,yn=a.constructor;zt!=yn&&"constructor"in s&&"constructor"in a&&!(typeof zt=="function"&&zt instanceof zt&&typeof yn=="function"&&yn instanceof yn)&&(_e=!1)}return C.delete(s),C.delete(a),_e}function Br(s){return eh(Uy(s,n,Gy),s+"")}function qf(s){return Zv(s,bt,Jf)}function Kf(s){return Zv(s,Zt,Ny)}var Gf=xu?function(s){return xu.get(s)}:hh;function Du(s){for(var a=s.name+"",c=so[a],h=$e.call(so,a)?c.length:0;h--;){var y=c[h],C=y.func;if(C==null||C==s)return y.name}return a}function uo(s){var a=$e.call(S,"placeholder")?S:s;return a.placeholder}function ae(){var s=S.iteratee||dh;return s=s===dh?ny:s,arguments.length?s(arguments[0],arguments[1]):s}function ju(s,a){var c=s.__data__;return Ak(a)?c[typeof a=="string"?"string":"hash"]:c.map}function Qf(s){for(var a=bt(s),c=a.length;c--;){var h=a[c],y=s[h];a[c]=[h,y,jy(y)]}return a}function gs(s,a){var c=OT(s,a);return ty(c)?c:n}function bk(s){var a=$e.call(s,cs),c=s[cs];try{s[cs]=n;var h=!0}catch{}var y=pu.call(s);return h&&(a?s[cs]=c:delete s[cs]),y}var Jf=Ef?function(s){return s==null?[]:(s=Ue(s),fi(Ef(s),function(a){return Fv.call(s,a)}))}:ph,Ny=Ef?function(s){for(var a=[];s;)hi(a,Jf(s)),s=vu(s);return a}:ph,Lt=Ft;(Sf&&Lt(new Sf(new ArrayBuffer(1)))!=Dr||Aa&&Lt(new Aa)!=St||Tf&&Lt(Tf.resolve())!=Ks||io&&Lt(new io)!=cn||Ra&&Lt(new Ra)!=di)&&(Lt=function(s){var a=Ft(s),c=a==un?s.constructor:n,h=c?ms(c):"";if(h)switch(h){case rC:return Dr;case iC:return St;case sC:return Ks;case oC:return cn;case aC:return di}return a});function xk(s,a,c){for(var h=-1,y=c.length;++h<y;){var C=c[h],R=C.size;switch(C.type){case"drop":s+=R;break;case"dropRight":a-=R;break;case"take":a=It(a,s+R);break;case"takeRight":s=mt(s,a-R);break}}return{start:s,end:a}}function Ek(s){var a=s.match(RS);return a?a[1].split(PS):[]}function $y(s,a,c){a=yi(a,s);for(var h=-1,y=a.length,C=!1;++h<y;){var R=xr(a[h]);if(!(C=s!=null&&c(s,R)))break;s=s[R]}return C||++h!=y?C:(y=s==null?0:s.length,!!y&&Hu(y)&&zr(R,y)&&(ve(s)||vs(s)))}function Sk(s){var a=s.length,c=new s.constructor(a);return a&&typeof s[0]=="string"&&$e.call(s,"index")&&(c.index=s.index,c.input=s.input),c}function Dy(s){return typeof s.constructor=="function"&&!Ma(s)?oo(vu(s)):{}}function Tk(s,a,c){var h=s.constructor;switch(a){case On:return Wf(s);case Qt:case Jt:return new h(+s);case Dr:return lk(s,c);case wr:case Gs:case Ea:case Qs:case Js:case Sa:case ls:case In:case Ta:return yy(s,c);case St:return new h;case vr:case as:return new h(s);case Pn:return uk(s);case cn:return new h;case $r:return ck(s)}}function Ck(s,a){var c=a.length;if(!c)return s;var h=c-1;return a[h]=(c>1?"& ":"")+a[h],a=a.join(c>2?", ":" "),s.replace(AS,`{
102/* [wrapped with `+a+`] */
103`)}function kk(s){return ve(s)||vs(s)||!!(Bv&&s&&s[Bv])}function zr(s,a){var c=typeof s;return a=a??j,!!a&&(c=="number"||c!="symbol"&&US.test(s))&&s>-1&&s%1==0&&s<a}function Bt(s,a,c){if(!Ze(c))return!1;var h=typeof a;return(h=="number"?Xt(c)&&zr(a,c.length):h=="string"&&a in c)?Xn(c[a],s):!1}function Yf(s,a){if(ve(s))return!1;var c=typeof s;return c=="number"||c=="symbol"||c=="boolean"||s==null||mn(s)?!0:SS.test(s)||!ES.test(s)||a!=null&&s in Ue(a)}function Ak(s){var a=typeof s;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?s!=="__proto__":s===null}function Xf(s){var a=Du(s),c=S[a];if(typeof c!="function"||!(a in ke.prototype))return!1;if(s===c)return!0;var h=Gf(c);return!!h&&s===h[0]}function Rk(s){return!!jv&&jv in s}var Pk=fu?Wr:gh;function Ma(s){var a=s&&s.constructor,c=typeof a=="function"&&a.prototype||ro;return s===c}function jy(s){return s===s&&!Ze(s)}function My(s,a){return function(c){return c==null?!1:c[s]===a&&(a!==n||s in Ue(c))}}function Ok(s){var a=zu(s,function(h){return c.size===f&&c.clear(),h}),c=a.cache;return a}function Ik(s,a){var c=s[1],h=a[1],y=c|h,C=y<(T|_|D),R=h==D&&c==b||h==D&&c==U&&s[7].length<=a[8]||h==(D|U)&&a[7].length<=a[8]&&c==b;if(!(C||R))return s;h&T&&(s[2]=a[2],y|=c&T?0:v);var P=a[3];if(P){var N=s[3];s[3]=N?_y(N,P,a[4]):P,s[4]=N?pi(s[3],p):a[4]}return P=a[5],P&&(N=s[5],s[5]=N?by(N,P,a[6]):P,s[6]=N?pi(s[5],p):a[6]),P=a[7],P&&(s[7]=P),h&D&&(s[8]=s[8]==null?a[8]:It(s[8],a[8])),s[9]==null&&(s[9]=a[9]),s[0]=a[0],s[1]=y,s}function Lk(s){var a=[];if(s!=null)for(var c in Ue(s))a.push(c);return a}function Nk(s){return pu.call(s)}function Uy(s,a,c){return a=mt(a===n?s.length-1:a,0),function(){for(var h=arguments,y=-1,C=mt(h.length-a,0),R=M(C);++y<C;)R[y]=h[a+y];y=-1;for(var P=M(a+1);++y<a;)P[y]=h[y];return P[a]=c(R),hn(s,this,P)}}function Fy(s,a){return a.length<2?s:ps(s,Mn(a,0,-1))}function $k(s,a){for(var c=s.length,h=It(a.length,c),y=Yt(s);h--;){var C=a[h];s[h]=zr(C,c)?y[C]:n}return s}function Zf(s,a){if(!(a==="constructor"&&typeof s[a]=="function")&&a!="__proto__")return s[a]}var By=Wy(cy),Ua=JT||function(s,a){return Tt.setTimeout(s,a)},eh=Wy(ik);function zy(s,a,c){var h=a+"";return eh(s,Ck(h,Dk(Ek(h),c)))}function Wy(s){var a=0,c=0;return function(){var h=eC(),y=he-(h-c);if(c=h,y>0){if(++a>=Z)return arguments[0]}else a=0;return s.apply(n,arguments)}}function Mu(s,a){var c=-1,h=s.length,y=h-1;for(a=a===n?h:a;++c<a;){var C=Df(c,y),R=s[C];s[C]=s[c],s[c]=R}return s.length=a,s}var Hy=Ok(function(s){var a=[];return s.charCodeAt(0)===46&&a.push(""),s.replace(TS,function(c,h,y,C){a.push(y?C.replace(LS,"$1"):h||c)}),a});function xr(s){if(typeof s=="string"||mn(s))return s;var a=s+"";return a=="0"&&1/s==-pe?"-0":a}function ms(s){if(s!=null){try{return hu.call(s)}catch{}try{return s+""}catch{}}return""}function Dk(s,a){return Nn(Ve,function(c){var h="_."+c[0];a&c[1]&&!lu(s,h)&&s.push(h)}),s.sort()}function Vy(s){if(s instanceof ke)return s.clone();var a=new Dn(s.__wrapped__,s.__chain__);return a.__actions__=Yt(s.__actions__),a.__index__=s.__index__,a.__values__=s.__values__,a}function jk(s,a,c){(c?Bt(s,a,c):a===n)?a=1:a=mt(ye(a),0);var h=s==null?0:s.length;if(!h||a<1)return[];for(var y=0,C=0,R=M(_u(h/a));y<h;)R[C++]=Mn(s,y,y+=a);return R}function Mk(s){for(var a=-1,c=s==null?0:s.length,h=0,y=[];++a<c;){var C=s[a];C&&(y[h++]=C)}return y}function Uk(){var s=arguments.length;if(!s)return[];for(var a=M(s-1),c=arguments[0],h=s;h--;)a[h-1]=arguments[h];return hi(ve(c)?Yt(c):[c],Ct(a,1))}var Fk=Ee(function(s,a){return at(s)?La(s,Ct(a,1,at,!0)):[]}),Bk=Ee(function(s,a){var c=Un(a);return at(c)&&(c=n),at(s)?La(s,Ct(a,1,at,!0),ae(c,2)):[]}),zk=Ee(function(s,a){var c=Un(a);return at(c)&&(c=n),at(s)?La(s,Ct(a,1,at,!0),n,c):[]});function Wk(s,a,c){var h=s==null?0:s.length;return h?(a=c||a===n?1:ye(a),Mn(s,a<0?0:a,h)):[]}function Hk(s,a,c){var h=s==null?0:s.length;return h?(a=c||a===n?1:ye(a),a=h-a,Mn(s,0,a<0?0:a)):[]}function Vk(s,a){return s&&s.length?Pu(s,ae(a,3),!0,!0):[]}function qk(s,a){return s&&s.length?Pu(s,ae(a,3),!0):[]}function Kk(s,a,c,h){var y=s==null?0:s.length;return y?(c&&typeof c!="number"&&Bt(s,a,c)&&(c=0,h=y),UC(s,a,c,h)):[]}function qy(s,a,c){var h=s==null?0:s.length;if(!h)return-1;var y=c==null?0:ye(c);return y<0&&(y=mt(h+y,0)),uu(s,ae(a,3),y)}function Ky(s,a,c){var h=s==null?0:s.length;
vendor: 9,919 bytes, line 103
103if(!h)return-1;var y=h-1;return c!==n&&(y=ye(c),y=c<0?mt(h+y,0):It(y,h-1)),uu(s,ae(a,3),y,!0)}function Gy(s){var a=s==null?0:s.length;return a?Ct(s,1):[]}function Gk(s){var a=s==null?0:s.length;return a?Ct(s,pe):[]}function Qk(s,a){var c=s==null?0:s.length;return c?(a=a===n?1:ye(a),Ct(s,a)):[]}function Jk(s){for(var a=-1,c=s==null?0:s.length,h={};++a<c;){var y=s[a];h[y[0]]=y[1]}return h}function Qy(s){return s&&s.length?s[0]:n}function Yk(s,a,c){var h=s==null?0:s.length;if(!h)return-1;var y=c==null?0:ye(c);return y<0&&(y=mt(h+y,0)),Zs(s,a,y)}function Xk(s){var a=s==null?0:s.length;return a?Mn(s,0,-1):[]}var Zk=Ee(function(s){var a=Je(s,Bf);return a.length&&a[0]===s[0]?Of(a):[]}),eA=Ee(function(s){var a=Un(s),c=Je(s,Bf);return a===Un(c)?a=n:c.pop(),c.length&&c[0]===s[0]?Of(c,ae(a,2)):[]}),tA=Ee(function(s){var a=Un(s),c=Je(s,Bf);return a=typeof a=="function"?a:n,a&&c.pop(),c.length&&c[0]===s[0]?Of(c,n,a):[]});function nA(s,a){return s==null?"":XT.call(s,a)}function Un(s){var a=s==null?0:s.length;return a?s[a-1]:n}function rA(s,a,c){var h=s==null?0:s.length;if(!h)return-1;var y=h;return c!==n&&(y=ye(c),y=y<0?mt(h+y,0):It(y,h-1)),a===a?DT(s,a,y):uu(s,Rv,y,!0)}function iA(s,a){return s&&s.length?oy(s,ye(a)):n}var sA=Ee(Jy);function Jy(s,a){return s&&s.length&&a&&a.length?$f(s,a):s}function oA(s,a,c){return s&&s.length&&a&&a.length?$f(s,a,ae(c,2)):s}function aA(s,a,c){return s&&s.length&&a&&a.length?$f(s,a,n,c):s}var lA=Br(function(s,a){var c=s==null?0:s.length,h=kf(s,a);return uy(s,Je(a,function(y){return zr(y,c)?+y:y}).sort(wy)),h});function uA(s,a){var c=[];if(!(s&&s.length))return c;var h=-1,y=[],C=s.length;for(a=ae(a,3);++h<C;){var R=s[h];a(R,h,s)&&(c.push(R),y.push(h))}return uy(s,y),c}function th(s){return s==null?s:nC.call(s)}function cA(s,a,c){var h=s==null?0:s.length;return h?(c&&typeof c!="number"&&Bt(s,a,c)?(a=0,c=h):(a=a==null?0:ye(a),c=c===n?h:ye(c)),Mn(s,a,c)):[]}function dA(s,a){return Ru(s,a)}function fA(s,a,c){return Mf(s,a,ae(c,2))}function hA(s,a){var c=s==null?0:s.length;if(c){var h=Ru(s,a);if(h<c&&Xn(s[h],a))return h}return-1}function pA(s,a){return Ru(s,a,!0)}function gA(s,a,c){return Mf(s,a,ae(c,2),!0)}function mA(s,a){var c=s==null?0:s.length;if(c){var h=Ru(s,a,!0)-1;if(Xn(s[h],a))return h}return-1}function vA(s){return s&&s.length?dy(s):[]}function yA(s,a){return s&&s.length?dy(s,ae(a,2)):[]}function wA(s){var a=s==null?0:s.length;return a?Mn(s,1,a):[]}function _A(s,a,c){return s&&s.length?(a=c||a===n?1:ye(a),Mn(s,0,a<0?0:a)):[]}function bA(s,a,c){var h=s==null?0:s.length;return h?(a=c||a===n?1:ye(a),a=h-a,Mn(s,a<0?0:a,h)):[]}function xA(s,a){return s&&s.length?Pu(s,ae(a,3),!1,!0):[]}function EA(s,a){return s&&s.length?Pu(s,ae(a,3)):[]}var SA=Ee(function(s){return vi(Ct(s,1,at,!0))}),TA=Ee(function(s){var a=Un(s);return at(a)&&(a=n),vi(Ct(s,1,at,!0),ae(a,2))}),CA=Ee(function(s){var a=Un(s);return a=typeof a=="function"?a:n,vi(Ct(s,1,at,!0),n,a)});function kA(s){return s&&s.length?vi(s):[]}function AA(s,a){return s&&s.length?vi(s,ae(a,2)):[]}function RA(s,a){return a=typeof a=="function"?a:n,s&&s.length?vi(s,n,a):[]}function nh(s){if(!(s&&s.length))return[];var a=0;return s=fi(s,function(c){if(at(c))return a=mt(c.length,a),!0}),wf(a,function(c){return Je(s,mf(c))})}function Yy(s,a){if(!(s&&s.length))return[];var c=nh(s);return a==null?c:Je(c,function(h){return hn(a,n,h)})}var PA=Ee(function(s,a){return at(s)?La(s,a):[]}),OA=Ee(function(s){return Ff(fi(s,at))}),IA=Ee(function(s){var a=Un(s);return at(a)&&(a=n),Ff(fi(s,at),ae(a,2))}),LA=Ee(function(s){var a=Un(s);return a=typeof a=="function"?a:n,Ff(fi(s,at),n,a)}),NA=Ee(nh);function $A(s,a){return gy(s||[],a||[],Ia)}function DA(s,a){return gy(s||[],a||[],Da)}var jA=Ee(function(s){var a=s.length,c=a>1?s[a-1]:n;return c=typeof c=="function"?(s.pop(),c):n,Yy(s,c)});function Xy(s){var a=S(s);return a.__chain__=!0,a}function MA(s,a){return a(s),s}function Uu(s,a){return a(s)}var UA=Br(function(s){var a=s.length,c=a?s[0]:0,h=this.__wrapped__,y=function(C){return kf(C,s)};return a>1||this.__actions__.length||!(h instanceof ke)||!zr(c)?this.thru(y):(h=h.slice(c,+c+(a?1:0)),h.__actions__.push({func:Uu,args:[y],thisArg:n}),new Dn(h,this.__chain__).thru(function(C){return a&&!C.length&&C.push(n),C}))});function FA(){return Xy(this)}function BA(){return new Dn(this.value(),this.__chain__)}function zA(){this.__values__===n&&(this.__values__=f0(this.value()));var s=this.__index__>=this.__values__.length,a=s?n:this.__values__[this.__index__++];return{done:s,value:a}}function WA(){return this}function HA(s){for(var a,c=this;c instanceof Su;){var h=Vy(c);h.__index__=0,h.__values__=n,a?y.__wrapped__=h:a=h;var y=h;c=c.__wrapped__}return y.__wrapped__=s,a}function VA(){var s=this.__wrapped__;if(s instanceof ke){var a=s;return this.__actions__.length&&(a=new ke(this)),a=a.reverse(),a.__actions__.push({func:Uu,args:[th],thisArg:n}),new Dn(a,this.__chain__)}return this.thru(th)}function qA(){return py(this.__wrapped__,this.__actions__)}var KA=Ou(function(s,a,c){$e.call(s,c)?++s[c]:Ur(s,c,1)});function GA(s,a,c){var h=ve(s)?kv:MC;return c&&Bt(s,a,c)&&(a=n),h(s,ae(a,3))}function QA(s,a){var c=ve(s)?fi:Yv;return c(s,ae(a,3))}var JA=Ty(qy),YA=Ty(Ky);function XA(s,a){return Ct(Fu(s,a),1)}function ZA(s,a){return Ct(Fu(s,a),pe)}function eR(s,a,c){return c=c===n?1:ye(c),Ct(Fu(s,a),c)}function Zy(s,a){var c=ve(s)?Nn:mi;return c(s,ae(a,3))}function e0(s,a){var c=ve(s)?wT:Jv;return c(s,ae(a,3))}var tR=Ou(function(s,a,c){$e.call(s,c)?s[c].push(a):Ur(s,c,[a])});function nR(s,a,c,h){s=Xt(s)?s:fo(s),c=c&&!h?ye(c):0;var y=s.length;return c<0&&(c=mt(y+c,0)),Vu(s)?c<=y&&s.indexOf(a,c)>-1:!!y&&Zs(s,a,c)>-1}var rR=Ee(function(s,a,c){var h=-1,y=typeof a=="function",C=Xt(s)?M(s.length):[];return mi(s,function(R){C[++h]=y?hn(a,R,c):Na(R,a,c)}),C}),iR=Ou(function(s,a,c){Ur(s,c,a)});function Fu(s,a){var c=ve(s)?Je:ry;return c(s,ae(a,3))}function sR(s,a,c,h){return s==null?[]:(ve(a)||(a=a==null?[]:[a]),c=h?n:c,ve(c)||(c=c==null?[]:[c]),ay(s,a,c))}var oR=Ou(function(s,a,c){s[c?0:1].push(a)},function(){return[[],[]]});function aR(s,a,c){var h=ve(s)?pf:Ov,y=arguments.length<3;return h(s,ae(a,4),c,y,mi)}function lR(s,a,c){var h=ve(s)?_T:Ov,y=arguments.length<3;return h(s,ae(a,4),c,y,Jv)}function uR(s,a){var c=ve(s)?fi:Yv;return c(s,Wu(ae(a,3)))}function cR(s){var a=ve(s)?qv:nk;return a(s)}function dR(s,a,c){(c?Bt(s,a,c):a===n)?a=1:a=ye(a);var h=ve(s)?LC:rk;return h(s,a)}function fR(s){var a=ve(s)?NC:sk;return a(s)}function hR(s){if(s==null)return 0;if(Xt(s))return Vu(s)?to(s):s.length;var a=Lt(s);return a==St||a==cn?s.size:Lf(s).length}function pR(s,a,c){var h=ve(s)?gf:ok;return c&&Bt(s,a,c)&&(a=n),h(s,ae(a,3))}var gR=Ee(function(s,a){if(s==null)return[];var c=a.length;return c>1&&Bt(s,a[0],a[1])?a=[]:c>2&&Bt(a[0],a[1],a[2])&&(a=[a[0]]),ay(s,Ct(a,1),[])}),Bu=QT||function(){return Tt.Date.now()};function mR(s,a){if(typeof a!="function")throw new $n(l);return s=ye(s),function(){if(--s<1)return a.apply(this,arguments)}}function t0(s,a,c){return a=c?n:a,a=s&&a==null?s.length:a,Fr(s,D,n,n,n,n,a)}function n0(s,a){var c;if(typeof a!="function")throw new $n(l);return s=ye(s),function(){return--s>0&&(c=a.apply(this,arguments)),s<=1&&(a=n),c}}var rh=Ee(function(s,a,c){var h=T;if(c.length){var y=pi(c,uo(rh));h|=O}return Fr(s,h,a,c,y)}),r0=Ee(function(s,a,c){var h=T|_;if(c.length){var y=pi(c,uo(r0));h|=O}return Fr(a,h,s,c,y)});function i0(s,a,c){a=c?n:a;var h=Fr(s,b,n,n,n,n,n,a);return h.placeholder=i0.placeholder,h}function s0(s,a,c){a=c?n:a;var h=Fr(s,A,n,n,n,n,n,a);return h.placeholder=s0.placeholder,h}function o0(s,a,c){var h,y,C,R,P,N,B=0,z=!1,H=!1,J=!0;if(typeof s!="function")throw new $n(l);a=Fn(a)||0,Ze(c)&&(z=!!c.leading,H="maxWait"in c,C=H?mt(Fn(c.maxWait)||0,a):C,J="trailing"in c?!!c.trailing:J);function re(lt){var Zn=h,Vr=y;return h=y=n,B=lt,R=s.apply(Vr,Zn),R}function le(lt){return B=lt,P=Ua(Te,a),z?re(lt):R}function _e(lt){var Zn=lt-N,Vr=lt-B,T0=a-Zn;return H?It(T0,C-Vr):T0}function ue(lt){var Zn=lt-N,Vr=lt-B;return N===n||Zn>=a||Zn<0||H&&Vr>=C}function Te(){var lt=Bu();if(ue(lt))return Ae(lt);P=Ua(Te,_e(lt))}function Ae(lt){return P=n,J&&h?re(lt):(h=y=n,R)}function vn(){P!==n&&my(P),B=0,h=N=y=P=n}function zt(){return P===n?R:Ae(Bu())}function yn(){var lt=Bu(),Zn=ue(lt);if(h=arguments,y=this,N=lt,Zn){if(P===n)return le(N);if(H)return my(P),P=Ua(Te,a),re(N)}return P===n&&(P=Ua(Te,a)),R}return yn.cancel=vn,yn.flush=zt,yn}var vR=Ee(function(s,a){return Qv(s,1,a)}),yR=Ee(function(s,a,c){return Qv(s,Fn(a)||0,c)});function wR(s){return Fr(s,G)}function zu(s,a){if(typeof s!="function"||a!=null&&typeof a!="function")throw new $n(l);var c=function(){var h=arguments,y=a?a.apply(this,h):h[0],C=c.cache;if(C.has(y))return C.get(y);var R=s.apply(this,h);return c.cache=C.set(y,R)||C,R};return c.cache=new(zu.Cache||Mr),c}zu.Cache=Mr;function Wu(s){if(typeof s!="function")throw new $n(l);return function(){var a=arguments;switch(a.length){case 0:return!s.call(this);case 1:return!s.call(this,a[0]);case 2:return!s.call(this,a[0],a[1]);case 3:return!s.call(this,a[0],a[1],a[2])}return!s.apply(this,a)}}function _R(s){return n0(2,s)}var bR=ak(function(s,a){a=a.length==1&&ve(a[0])?Je(a[0],pn(ae())):Je(Ct(a,1),pn(ae()));var c=a.length;return Ee(function(h){for(var y=-1,C=It(h.length,c);++y<C;)h[y]=a[y].call(this,h[y]);return hn(s,this,h)})}),ih=Ee(function(s,a){var c=pi(a,uo(ih));return Fr(s,O,n,a,c)}),a0=Ee(function(s,a){var c=pi(a,uo(a0));return Fr(s,$,n,a,c)}),xR=Br(function(s,a){return Fr(s,U,n,n,n,a)});function ER(s,a){if(typeof s!="function")throw new $n(l);return a=a===n?a:ye(a),Ee(s,a)}function SR(s,a){if(typeof s!="function")throw new $n(l);return a=a==null?0:mt(ye(a),0),Ee(function(c){var h=c[a],y=wi(c,0,a);return h&&hi(y,h),hn(s,this,y)})}function TR(s,a,c){var h=!0,y=!0;if(typeof s!="function")throw new $n(l);return Ze(c)&&(h="leading"in c?!!c.leading:h,y="trailing"in c?!!c.trailing:y),o0(s,a,{leading:h,maxWait:a,trailing:y}
vendor: 5,471 bytes, line 103
103)}function CR(s){return t0(s,1)}function kR(s,a){return ih(zf(a),s)}function AR(){if(!arguments.length)return[];var s=arguments[0];return ve(s)?s:[s]}function RR(s){return jn(s,w)}function PR(s,a){return a=typeof a=="function"?a:n,jn(s,w,a)}function OR(s){return jn(s,m|w)}function IR(s,a){return a=typeof a=="function"?a:n,jn(s,m|w,a)}function LR(s,a){return a==null||Gv(s,a,bt(a))}function Xn(s,a){return s===a||s!==s&&a!==a}var NR=$u(Pf),$R=$u(function(s,a){return s>=a}),vs=ey(function(){return arguments}())?ey:function(s){return rt(s)&&$e.call(s,"callee")&&!Fv.call(s,"callee")},ve=M.isArray,DR=bv?pn(bv):HC;function Xt(s){return s!=null&&Hu(s.length)&&!Wr(s)}function at(s){return rt(s)&&Xt(s)}function jR(s){return s===!0||s===!1||rt(s)&&Ft(s)==Qt}var _i=YT||gh,MR=xv?pn(xv):VC;function UR(s){return rt(s)&&s.nodeType===1&&!Fa(s)}function FR(s){if(s==null)return!0;if(Xt(s)&&(ve(s)||typeof s=="string"||typeof s.splice=="function"||_i(s)||co(s)||vs(s)))return!s.length;var a=Lt(s);if(a==St||a==cn)return!s.size;if(Ma(s))return!Lf(s).length;for(var c in s)if($e.call(s,c))return!1;return!0}function BR(s,a){return $a(s,a)}function zR(s,a,c){c=typeof c=="function"?c:n;var h=c?c(s,a):n;return h===n?$a(s,a,n,c):!!h}function sh(s){if(!rt(s))return!1;var a=Ft(s);return a==Nr||a==gr||typeof s.message=="string"&&typeof s.name=="string"&&!Fa(s)}function WR(s){return typeof s=="number"&&zv(s)}function Wr(s){if(!Ze(s))return!1;var a=Ft(s);return a==Qn||a==mr||a==ln||a==pt}function l0(s){return typeof s=="number"&&s==ye(s)}function Hu(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=j}function Ze(s){var a=typeof s;return s!=null&&(a=="object"||a=="function")}function rt(s){return s!=null&&typeof s=="object"}var u0=Ev?pn(Ev):KC;function HR(s,a){return s===a||If(s,a,Qf(a))}function VR(s,a,c){return c=typeof c=="function"?c:n,If(s,a,Qf(a),c)}function qR(s){return c0(s)&&s!=+s}function KR(s){if(Pk(s))throw new ge(o);return ty(s)}function GR(s){return s===null}function QR(s){return s==null}function c0(s){return typeof s=="number"||rt(s)&&Ft(s)==vr}function Fa(s){if(!rt(s)||Ft(s)!=un)return!1;var a=vu(s);if(a===null)return!0;var c=$e.call(a,"constructor")&&a.constructor;return typeof c=="function"&&c instanceof c&&hu.call(c)==VT}var oh=Sv?pn(Sv):GC;function JR(s){return l0(s)&&s>=-j&&s<=j}var d0=Tv?pn(Tv):QC;function Vu(s){return typeof s=="string"||!ve(s)&&rt(s)&&Ft(s)==as}function mn(s){return typeof s=="symbol"||rt(s)&&Ft(s)==$r}var co=Cv?pn(Cv):JC;function YR(s){return s===n}function XR(s){return rt(s)&&Lt(s)==di}function ZR(s){return rt(s)&&Ft(s)==xa}var eP=$u(Nf),tP=$u(function(s,a){return s<=a});function f0(s){if(!s)return[];if(Xt(s))return Vu(s)?Jn(s):Yt(s);if(ka&&s[ka])return LT(s[ka]());var a=Lt(s),c=a==St?bf:a==cn?cu:fo;return c(s)}function Hr(s){if(!s)return s===0?s:0;if(s=Fn(s),s===pe||s===-pe){var a=s<0?-1:1;return a*K}return s===s?s:0}function ye(s){var a=Hr(s),c=a%1;return a===a?c?a-c:a:0}function h0(s){return s?hs(ye(s),0,Q):0}function Fn(s){if(typeof s=="number")return s;if(mn(s))return ne;if(Ze(s)){var a=typeof s.valueOf=="function"?s.valueOf():s;s=Ze(a)?a+"":a}if(typeof s!="string")return s===0?s:+s;s=Iv(s);var c=DS.test(s);return c||MS.test(s)?mT(s.slice(2),c?2:8):$S.test(s)?ne:+s}function p0(s){return br(s,Zt(s))}function nP(s){return s?hs(ye(s),-j,j):s===0?s:0}function Ie(s){return s==null?"":gn(s)}var rP=ao(function(s,a){if(Ma(a)||Xt(a)){br(a,bt(a),s);return}for(var c in a)$e.call(a,c)&&Ia(s,c,a[c])}),g0=ao(function(s,a){br(a,Zt(a),s)}),qu=ao(function(s,a,c,h){br(a,Zt(a),s,h)}),iP=ao(function(s,a,c,h){br(a,bt(a),s,h)}),sP=Br(kf);function oP(s,a){var c=oo(s);return a==null?c:Kv(c,a)}var aP=Ee(function(s,a){s=Ue(s);var c=-1,h=a.length,y=h>2?a[2]:n;for(y&&Bt(a[0],a[1],y)&&(h=1);++c<h;)for(var C=a[c],R=Zt(C),P=-1,N=R.length;++P<N;){var B=R[P],z=s[B];(z===n||Xn(z,ro[B])&&!$e.call(s,B))&&(s[B]=C[B])}return s}),lP=Ee(function(s){return s.push(n,Iy),hn(m0,n,s)});function uP(s,a){return Av(s,ae(a,3),_r)}function cP(s,a){return Av(s,ae(a,3),Rf)}function dP(s,a){return s==null?s:Af(s,ae(a,3),Zt)}function fP(s,a){return s==null?s:Xv(s,ae(a,3),Zt)}function hP(s,a){return s&&_r(s,ae(a,3))}function pP(s,a){return s&&Rf(s,ae(a,3))}function gP(s){return s==null?[]:ku(s,bt(s))}function mP(s){return s==null?[]:ku(s,Zt(s))}function ah(s,a,c){var h=s==null?n:ps(s,a);return h===n?c:h}function vP(s,a){return s!=null&&$y(s,a,FC)}function lh(s,a){return s!=null&&$y(s,a,BC)}var yP=ky(function(s,a,c){a!=null&&typeof a.toString!="function"&&(a=pu.call(a)),s[a]=c},ch(en)),wP=ky(function(s,a,c){a!=null&&typeof a.toString!="function"&&(a=pu.call(a)),$e.call(s,a)?s[a].push(c):s[a]=[c]},ae),_P=Ee(Na);function bt(s){return Xt(s)?Vv(s):Lf(s)}function Zt(s){return Xt(s)?Vv(s,!0):YC(s)}function bP(s,a){var c={};return a=ae(a,3),_r(s,function(h,y,C){Ur(c,a(h,y,C),h)}),c}function xP(s,a){var c={};return a=ae(a,3),_r(s,function(h,y,C){Ur(c,y,a(h,y,C))}),c}var EP=ao(function(s,a,c){Au(s,a,c)}),m0=ao(function(s,a,c,h){Au(s,a,c,h)}),SP=Br(function(s,a){var c={};if(s==null)return c;var h=!1;a=Je(a,function(C){return C=yi(C,s),h||(h=C.length>1),C}),br(s,Kf(s),c),h&&(c=jn(c,m|g|w,yk));for(var y=a.length;y--;)Uf(c,a[y]);return c});function TP(s,a){return v0(s,Wu(ae(a)))}var CP=Br(function(s,a){return s==null?{}:ZC(s,a)});function v0(s,a){if(s==null)return{};var c=Je(Kf(s),function(h){return[h]});return a=ae(a),ly(s,c,function(h,y){return a(h,y[0])})}function kP(s,a,c){a=yi(a,s);var h=-1,y=a.length;for(y||(y=1,s=n);++h<y;
vendor: 7,406 bytes, lines 103-120
103){var C=s==null?n:s[xr(a[h])];C===n&&(h=y,C=c),s=Wr(C)?C.call(s):C}return s}function AP(s,a,c){return s==null?s:Da(s,a,c)}function RP(s,a,c,h){return h=typeof h=="function"?h:n,s==null?s:Da(s,a,c,h)}var y0=Py(bt),w0=Py(Zt);function PP(s,a,c){var h=ve(s),y=h||_i(s)||co(s);if(a=ae(a,4),c==null){var C=s&&s.constructor;y?c=h?new C:[]:Ze(s)?c=Wr(C)?oo(vu(s)):{}:c={}}return(y?Nn:_r)(s,function(R,P,N){return a(c,R,P,N)}),c}function OP(s,a){return s==null?!0:Uf(s,a)}function IP(s,a,c){return s==null?s:hy(s,a,zf(c))}function LP(s,a,c,h){return h=typeof h=="function"?h:n,s==null?s:hy(s,a,zf(c),h)}function fo(s){return s==null?[]:_f(s,bt(s))}function NP(s){return s==null?[]:_f(s,Zt(s))}function $P(s,a,c){return c===n&&(c=a,a=n),c!==n&&(c=Fn(c),c=c===c?c:0),a!==n&&(a=Fn(a),a=a===a?a:0),hs(Fn(s),a,c)}function DP(s,a,c){return a=Hr(a),c===n?(c=a,a=0):c=Hr(c),s=Fn(s),zC(s,a,c)}function jP(s,a,c){if(c&&typeof c!="boolean"&&Bt(s,a,c)&&(a=c=n),c===n&&(typeof a=="boolean"?(c=a,a=n):typeof s=="boolean"&&(c=s,s=n)),s===n&&a===n?(s=0,a=1):(s=Hr(s),a===n?(a=s,s=0):a=Hr(a)),s>a){var h=s;s=a,a=h}if(c||s%1||a%1){var y=Wv();return It(s+y*(a-s+gT("1e-"+((y+"").length-1))),a)}return Df(s,a)}var MP=lo(function(s,a,c){return a=a.toLowerCase(),s+(c?_0(a):a)});function _0(s){return uh(Ie(s).toLowerCase())}function b0(s){return s=Ie(s),s&&s.replace(FS,AT).replace(sT,"")}function UP(s,a,c){s=Ie(s),a=gn(a);var h=s.length;c=c===n?h:hs(ye(c),0,h);var y=c;return c-=a.length,c>=0&&s.slice(c,y)==a}function FP(s){return s=Ie(s),s&&nf.test(s)?s.replace(fn,RT):s}function BP(s){return s=Ie(s),s&&CS.test(s)?s.replace(rf,"\\$&"):s}var zP=lo(function(s,a,c){return s+(c?"-":"")+a.toLowerCase()}),WP=lo(function(s,a,c){return s+(c?" ":"")+a.toLowerCase()}),HP=Sy("toLowerCase");function VP(s,a,c){s=Ie(s),a=ye(a);var h=a?to(s):0;if(!a||h>=a)return s;var y=(a-h)/2;return Nu(bu(y),c)+s+Nu(_u(y),c)}function qP(s,a,c){s=Ie(s),a=ye(a);var h=a?to(s):0;return a&&h<a?s+Nu(a-h,c):s}function KP(s,a,c){s=Ie(s),a=ye(a);var h=a?to(s):0;return a&&h<a?Nu(a-h,c)+s:s}function GP(s,a,c){return c||a==null?a=0:a&&(a=+a),tC(Ie(s).replace(sf,""),a||0)}function QP(s,a,c){return(c?Bt(s,a,c):a===n)?a=1:a=ye(a),jf(Ie(s),a)}function JP(){var s=arguments,a=Ie(s[0]);return s.length<3?a:a.replace(s[1],s[2])}var YP=lo(function(s,a,c){return s+(c?"_":"")+a.toLowerCase()});function XP(s,a,c){return c&&typeof c!="number"&&Bt(s,a,c)&&(a=c=n),c=c===n?Q:c>>>0,c?(s=Ie(s),s&&(typeof a=="string"||a!=null&&!oh(a))&&(a=gn(a),!a&&eo(s))?wi(Jn(s),0,c):s.split(a,c)):[]}var ZP=lo(function(s,a,c){return s+(c?" ":"")+uh(a)});function eO(s,a,c){return s=Ie(s),c=c==null?0:hs(ye(c),0,s.length),a=gn(a),s.slice(c,c+a.length)==a}function tO(s,a,c){var h=S.templateSettings;c&&Bt(s,a,c)&&(a=n),s=Ie(s),a=qu({},a,h,Oy);var y=qu({},a.imports,h.imports,Oy),C=bt(y),R=_f(y,C),P,N,B=0,z=a.interpolate||su,H="__p += '",J=xf((a.escape||su).source+"|"+z.source+"|"+(z===Zm?NS:su).source+"|"+(a.evaluate||su).source+"|$","g"),re="//# sourceURL="+($e.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++cT+"]")+`
104`;s.replace(J,function(ue,Te,Ae,vn,zt,yn){return Ae||(Ae=vn),H+=s.slice(B,yn).replace(BS,PT),Te&&(P=!0,H+=`' +
105__e(`+Te+`) +
106'`),zt&&(N=!0,H+=`';
107`+zt+`;
108__p += '`),Ae&&(H+=`' +
109((__t = (`+Ae+`)) == null ? '' : __t) +
110'`),B=yn+ue.length,ue}),H+=`';
111`;var le=$e.call(a,"variable")&&a.variable;if(!le)H=`with (obj) {
112`+H+`
113}
114`;else if(IS.test(le))throw new ge(u);H=(N?H.replace(me,""):H).replace(Me,"$1").replace(je,"$1;"),H="function("+(le||"obj")+`) {
115`+(le?"":`obj || (obj = {});
116`)+"var __t, __p = ''"+(P?", __e = _.escape":"")+(N?`, __j = Array.prototype.join;
117function print() { __p += __j.call(arguments, '') }
118`:`;
119`)+H+`return __p
120}`;var _e=E0(function(){return Oe(C,re+"return "+H).apply(n,R)});if(_e.source=H,sh(_e))throw _e;return _e}function nO(s){return Ie(s).toLowerCase()}function rO(s){return Ie(s).toUpperCase()}function iO(s,a,c){if(s=Ie(s),s&&(c||a===n))return Iv(s);if(!s||!(a=gn(a)))return s;var h=Jn(s),y=Jn(a),C=Lv(h,y),R=Nv(h,y)+1;return wi(h,C,R).join("")}function sO(s,a,c){if(s=Ie(s),s&&(c||a===n))return s.slice(0,Dv(s)+1);if(!s||!(a=gn(a)))return s;var h=Jn(s),y=Nv(h,Jn(a))+1;return wi(h,0,y).join("")}function oO(s,a,c){if(s=Ie(s),s&&(c||a===n))return s.replace(sf,"");if(!s||!(a=gn(a)))return s;var h=Jn(s),y=Lv(h,Jn(a));return wi(h,y).join("")}function aO(s,a){var c=Y,h=se;if(Ze(a)){var y="separator"in a?a.separator:y;c="length"in a?ye(a.length):c,h="omission"in a?gn(a.omission):h}s=Ie(s);var C=s.length;if(eo(s)){var R=Jn(s);C=R.length}if(c>=C)return s;var P=c-to(h);if(P<1)return h;var N=R?wi(R,0,P).join(""):s.slice(0,P);if(y===n)return N+h;if(R&&(P+=N.length-P),oh(y)){if(s.slice(P).search(y)){var B,z=N;for(y.global||(y=xf(y.source,Ie(ev.exec(y))+"g")),y.lastIndex=0;B=y.exec(z);)var H=B.index;N=N.slice(0,H===n?P:H)}}else if(s.indexOf(gn(y),P)!=P){var J=N.lastIndexOf(y);J>-1&&(N=N.slice(0,J))}return N+h}function lO(s){return s=Ie(s),s&&Ys.test(s)?s.replace(dn,jT):s}var uO=lo(function(s,a,c){return s+(c?" ":"")+a.toUpperCase()}),uh=Sy("toUpperCase");function x0(s,a,c){return s=Ie(s),a=c?n:a,a===n?IT(s)?FT(s):ET(s):s.match(a)||[]}var E0=Ee(function(s,a){try{return hn(s,n,a)}catch(c){return sh(c)?c:new ge(c)}}),cO=Br(function(s,a){return Nn(a,function(c){c=xr(c),Ur(s,c,rh(s[c],s))}),s});function dO(s){var a=s==null?0:s.length,c=ae();return s=a?Je(s,function(h){if(typeof h[1]!="function")throw new $n(l);return[c(h[0]),h[1]]}):[],Ee(function(h){for(var y=-1;++y<a;){var C=s[y];if(hn(C[0],this,h))return hn(C[1],this,h)}})}function fO(s){return jC(jn(s,m))}function ch(s){return function(){return s}}function hO(s,a){return s==null||s!==s?a:s}var pO=Cy(),gO=Cy(!0);function en(s){return s}function dh(s){return ny(typeof s=="function"?s:jn(s,m))}function mO(s){return iy(jn(s,m))}function vO(s,a){return sy(s,jn(a,m))}var yO=Ee(function(s,a){return function(c){return Na(c,s,a)}}),wO=Ee(function(s,a){return function(c){return Na(s,c,a)}});function fh(s,a,c){var h=bt(a),y=ku(a,h);c==null&&!(Ze(a)&&(y.length||!h.length))&&(c=a,a=s,s=this,y=ku(a,bt(a)));var C=!(Ze(c)&&"chain"in c)||!!c.chain,R=Wr(s);return Nn(y,function(P){var N=a[P];s[P]=N,R&&(s.prototype[P]=function(){var B=this.__chain__;if(C||B){var z=s(this.__wrapped__),H=z.__actions__=Yt(this.__actions__);return H.push({func:N,args:arguments,thisArg:s}),z.__chain__=B,z}return N.apply(s,hi([this.value()],arguments))})}),s}function _O(){return Tt._===this&&(Tt._=qT),this}function hh(){}function bO(s){return s=ye(s),Ee(function(a){return oy(a,s)})}var xO=Hf(Je),EO=Hf(kv),SO=Hf(gf);function S0(s){return Yf(s)?mf(xr(s)):ek(s)}function TO(s){return function(a){return s==null?n:ps(s,a)}}var CO=Ay(),kO=Ay(!0);function ph(){return[]}function gh(){return!1}function AO(){return{}}function RO(){return""}function PO(){return!0}function OO(s,a){if(s=ye(s),s<1||s>j)return[];var c=Q,h=It(s,Q);a=ae(a),s-=Q;for(var y=wf(h,a);++c<s;)a(c);return y}function IO(s){return ve(s)?Je(s,xr):mn(s)?[s]:Yt(Hy(Ie(s)))}function LO(s){var a=++HT;return Ie(s)+a}var NO=Lu(function(s,a){return s+a},0),$O=Vf("ceil"),DO=Lu(function(s,a){return s/a},1),jO=Vf("floor");function MO(s){return s&&s.length?Cu(s,en,Pf):n}function UO(s,a){return s&&s.length?Cu(s,ae(a,2),Pf):n}function FO(s){return Pv(s,en)}function BO(s,a){return Pv(s,ae(a,2))}function zO(s){return s&&s.length?Cu(s,en,Nf):n}function WO(s,a){return s&&s.length?Cu(s,ae(a,2),Nf):n}
120var HO=Lu(function(s,a){return s*a},1),VO=Vf("round"),qO=Lu(function(s,a){return s-a},0);function KO(s){return s&&s.length?yf(s,en):0}function GO(s,a){return s&&s.length?yf(s,ae(a,2)):0}return S.after=mR,S.ary=t0,S.assign=rP,S.assignIn=g0,S.assignInWith=qu,S.assignWith=iP,S.at=sP,S.before=n0,S.bind=rh,S.bindAll=cO,S.bindKey=r0,S.castArray=AR,S.chain=Xy,S.chunk=jk,S.compact=Mk,S.concat=Uk,S.cond=dO,S.conforms=fO,S.constant=ch,S.countBy=KA,S.create=oP,S.curry=i0,S.curryRight=s0,S.debounce=o0,S.defaults=aP,S.defaultsDeep=lP,S.defer=vR,S.delay=yR,S.difference=Fk,S.differenceBy=Bk,S.differenceWith=zk,S.drop=Wk,S.dropRight=Hk,S.dropRightWhile=Vk,S.dropWhile=qk,S.fill=Kk,S.filter=QA,S.flatMap=XA,S.flatMapDeep=ZA,S.flatMapDepth=eR,S.flatten=Gy,S.flattenDeep=Gk,S.flattenDepth=Qk,S.flip=wR,S.flow=pO,S.flowRight=gO,S.fromPairs=Jk,S.functions=gP,S.functionsIn=mP,S.groupBy=tR,S.initial=Xk,S.intersection=Zk,S.intersectionBy=eA,S.intersectionWith=tA,S.invert=yP,S.invertBy=wP,S.invokeMap=rR,S.iteratee=dh,S.keyBy=iR,S.keys=bt,S.keysIn=Zt,S.map=Fu,S.mapKeys=bP,S.mapValues=xP,S.matches=mO,S.matchesProperty=vO,S.memoize=zu,S.merge=EP,S.mergeWith=m0,S.method=yO,S.methodOf=wO,S.mixin=fh,S.negate=Wu,S.nthArg=bO,S.omit=SP,S.omitBy=TP,S.once=_R,S.orderBy=sR,S.over=xO,S.overArgs=bR,S.overEvery=EO,S.overSome=SO,S.partial=ih,S.partialRight=a0,S.partition=oR,S.pick=CP,S.pickBy=v0,S.property=S0,S.propertyOf=TO,S.pull=sA,S.pullAll=Jy,S.pullAllBy=oA,S.pullAllWith=aA,S.pullAt=lA,S.range=CO,S.rangeRight=kO,S.rearg=xR,S.reject=uR,S.remove=uA,S.rest=ER,S.reverse=th,S.sampleSize=dR,S.set=AP,S.setWith=RP,S.shuffle=fR,S.slice=cA,S.sortBy=gR,S.sortedUniq=vA,S.sortedUniqBy=yA,S.split=XP,S.spread=SR,S.tail=wA,S.take=_A,S.takeRight=bA,S.takeRightWhile=xA,S.takeWhile=EA,S.tap=MA,S.throttle=TR,S.thru=Uu,S.toArray=f0,S.toPairs=y0,S.toPairsIn=w0,S.toPath=IO,S.toPlainObject=p0,S.transform=PP,S.unary=CR,S.union=SA,S.unionBy=TA,S.unionWith=CA,S.uniq=kA,S.uniqBy=AA,S.uniqWith=RA,S.unset=OP,S.unzip=nh,S.unzipWith=Yy,S.update=IP,S.updateWith=LP,S.values=fo,S.valuesIn=NP,S.without=PA,S.words=x0,S.wrap=kR,S.xor=OA,S.xorBy=IA,S.xorWith=LA,S.zip=NA,S.zipObject=$A,S.zipObjectDeep=DA,S.zipWith=jA,S.entries=y0,S.entriesIn=w0,S.extend=g0,S.extendWith=qu,fh(S,S),S.add=NO,S.attempt=E0,S.camelCase=MP,S.capitalize=_0,S.ceil=$O,S.clamp=$P,S.clone=RR,S.cloneDeep=OR,S.cloneDeepWith=IR,S.cloneWith=PR,S.conformsTo=LR,S.deburr=b0,S.defaultTo=hO,S.divide=DO,S.endsWith=UP,S.eq=Xn,S.escape=FP,S.escapeRegExp=BP,S.every=GA,S.find=JA,S.findIndex=qy,S.findKey=uP,S.findLast=YA,S.findLastIndex=Ky,S.findLastKey=cP,S.floor=jO,S.forEach=Zy,S.forEac
vendor: 4,888 bytes, line 120
120hRight=e0,S.forIn=dP,S.forInRight=fP,S.forOwn=hP,S.forOwnRight=pP,S.get=ah,S.gt=NR,S.gte=$R,S.has=vP,S.hasIn=lh,S.head=Qy,S.identity=en,S.includes=nR,S.indexOf=Yk,S.inRange=DP,S.invoke=_P,S.isArguments=vs,S.isArray=ve,S.isArrayBuffer=DR,S.isArrayLike=Xt,S.isArrayLikeObject=at,S.isBoolean=jR,S.isBuffer=_i,S.isDate=MR,S.isElement=UR,S.isEmpty=FR,S.isEqual=BR,S.isEqualWith=zR,S.isError=sh,S.isFinite=WR,S.isFunction=Wr,S.isInteger=l0,S.isLength=Hu,S.isMap=u0,S.isMatch=HR,S.isMatchWith=VR,S.isNaN=qR,S.isNative=KR,S.isNil=QR,S.isNull=GR,S.isNumber=c0,S.isObject=Ze,S.isObjectLike=rt,S.isPlainObject=Fa,S.isRegExp=oh,S.isSafeInteger=JR,S.isSet=d0,S.isString=Vu,S.isSymbol=mn,S.isTypedArray=co,S.isUndefined=YR,S.isWeakMap=XR,S.isWeakSet=ZR,S.join=nA,S.kebabCase=zP,S.last=Un,S.lastIndexOf=rA,S.lowerCase=WP,S.lowerFirst=HP,S.lt=eP,S.lte=tP,S.max=MO,S.maxBy=UO,S.mean=FO,S.meanBy=BO,S.min=zO,S.minBy=WO,S.stubArray=ph,S.stubFalse=gh,S.stubObject=AO,S.stubString=RO,S.stubTrue=PO,S.multiply=HO,S.nth=iA,S.noConflict=_O,S.noop=hh,S.now=Bu,S.pad=VP,S.padEnd=qP,S.padStart=KP,S.parseInt=GP,S.random=jP,S.reduce=aR,S.reduceRight=lR,S.repeat=QP,S.replace=JP,S.result=kP,S.round=VO,S.runInContext=I,S.sample=cR,S.size=hR,S.snakeCase=YP,S.some=pR,S.sortedIndex=dA,S.sortedIndexBy=fA,S.sortedIndexOf=hA,S.sortedLastIndex=pA,S.sortedLastIndexBy=gA,S.sortedLastIndexOf=mA,S.startCase=ZP,S.startsWith=eO,S.subtract=qO,S.sum=KO,S.sumBy=GO,S.template=tO,S.times=OO,S.toFinite=Hr,S.toInteger=ye,S.toLength=h0,S.toLower=nO,S.toNumber=Fn,S.toSafeInteger=nP,S.toString=Ie,S.toUpper=rO,S.trim=iO,S.trimEnd=sO,S.trimStart=oO,S.truncate=aO,S.unescape=lO,S.uniqueId=LO,S.upperCase=uO,S.upperFirst=uh,S.each=Zy,S.eachRight=e0,S.first=Qy,fh(S,function(){var s={};return _r(S,function(a,c){$e.call(S.prototype,c)||(s[c]=a)}),s}(),{chain:!1}),S.VERSION=r,Nn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){S[s].placeholder=S}),Nn(["drop","take"],function(s,a){ke.prototype[s]=function(c){c=c===n?1:mt(ye(c),0);var h=this.__filtered__&&!a?new ke(this):this.clone();return h.__filtered__?h.__takeCount__=It(c,h.__takeCount__):h.__views__.push({size:It(c,Q),type:s+(h.__dir__<0?"Right":"")}),h},ke.prototype[s+"Right"]=function(c){return this.reverse()[s](c).reverse()}}),Nn(["filter","map","takeWhile"],function(s,a){var c=a+1,h=c==X||c==de;ke.prototype[s]=function(y){var C=this.clone();return C.__iteratees__.push({iteratee:ae(y,3),type:c}),C.__filtered__=C.__filtered__||h,C}}),Nn(["head","last"],function(s,a){var c="take"+(a?"Right":"");ke.prototype[s]=function(){return this[c](1).value()[0]}}),Nn(["initial","tail"],function(s,a){var c="drop"+(a?"":"Right");ke.prototype[s]=function(){return this.__filtered__?new ke(this):this[c](1)}}),ke.prototype.compact=function(){return this.filter(en)},ke.prototype.find=function(s){return this.filter(s).head()},ke.prototype.findLast=function(s){return this.reverse().find(s)},ke.prototype.invokeMap=Ee(function(s,a){return typeof s=="function"?new ke(this):this.map(function(c){return Na(c,s,a)})}),ke.prototype.reject=function(s){return this.filter(Wu(ae(s)))},ke.prototype.slice=function(s,a){s=ye(s);var c=this;return c.__filtered__&&(s>0||a<0)?new ke(c):(s<0?c=c.takeRight(-s):s&&(c=c.drop(s)),a!==n&&(a=ye(a),c=a<0?c.dropRight(-a):c.take(a-s)),c)},ke.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ke.prototype.toArray=function(){return this.take(Q)},_r(ke.prototype,function(s,a){var c=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),y=S[h?"take"+(a=="last"?"Right":""):a],C=h||/^find/.test(a);y&&(S.prototype[a]=function(){var R=this.__wrapped__,P=h?[1]:arguments,N=R instanceof ke,B=P[0],z=N||ve(R),H=function(Te){var Ae=y.apply(S,hi([Te],P));return h&&J?Ae[0]:Ae};z&&c&&typeof B=="function"&&B.length!=1&&(N=z=!1);var J=this.__chain__,re=!!this.__actions__.length,le=C&&!J,_e=N&&!re;if(!C&&z){R=_e?R:new ke(this);var ue=s.apply(R,P);return ue.__actions__.push({func:Uu,args:[H],thisArg:n}),new Dn(ue,J)}return le&&_e?s.apply(this,P):(ue=this.thru(H),le?h?ue.value()[0]:ue.value():ue)})}),Nn(["pop","push","shift","sort","splice","unshift"],function(s){var a=du[s],c=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",h=/^(?:pop|shift)$/.test(s);S.prototype[s]=function(){var y=arguments;if(h&&!this.__chain__){var C=this.value();return a.apply(ve(C)?C:[],y)}return this[c](function(R){return a.apply(ve(R)?R:[],y)})}}),_r(ke.prototype,function(s,a){var c=S[a];if(c){var h=c.name+"";$e.call(so,h)||(so[h]=[]),so[h].push({name:a,func:c})}}),so[Iu(n,_).name]=[{name:"wrapper",func:n}],ke.prototype.clone=lC,ke.prototype.reverse=uC,ke.prototype.value=cC,S.prototype.at=UA,S.prototype.chain=FA,S.prototype.commit=BA,S.prototype.next=zA,S.prototype.plant=HA,S.prototype.reverse=VA,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=qA,S.prototype.first=S.prototype.head,ka&&
120(S.prototype[ka]=WA),S},no=BT();us?((us.exports=no)._=no,df._=no):Tt._=no}).call(Ba)})(wd,wd.exports);var hU=wd.exports;const Bl=()=>typeof window<"u"&&"gtag"in window&&window.__analyticsReady===!0;let Xr=!1;const pU=e=>(typeof e<"u"?Xr=e:Xr=!Xr,console.log(`[Analytics] Debug mode: ${Xr?"enabled":"disabled"}`),Xr),os=({action:e,category:t="Interaction",label:n="",value:r,...i})=>{if(!Bl())return;const o=window.gtag,l={event_category:t,event_label:n,value:r,...i};o("event",e,l),Xr&&console.log(`[Analytics] Event sent: ${e}`,l)},tS=({name:e,category:t="Performance",value:n=0})=>{if(!Bl())return;const r=window.gtag;r("event","timing_complete",{name:e,value:n,event_category:t}),Xr&&console.log(`[Analytics] Timing: ${e}`,{category:t,value:`${n}ms`})},gU=(e,t,n)=>{os({action:`form_field_${n}`,category:"Form Interaction",label:`${e} - ${t}`,field_name:t,form_id:e})},mU=(e,t)=>{const n=Date.now()-t;tS({name:"form_submission_time",category:"Form Performance",value:n}),os({action:"form_submission_time",category:"Form Metrics",label:e,value:Math.round(n/1e3)})},nS=(e={percentages:[25,50,75,100],throttleTime:500})=>{if(typeof window>"u")return()=>{};const{percentages:t,throttleTime:n=500}=e,r={},i=hU.throttle(()=>{const o=window.pageYOffset,l=window.innerHeight,u=document.documentElement.scrollHeight;if(u<=0)return;const d=o/(u-l)*100;t.forEach(f=>{d>=f&&!r[`${f}`]&&(r[`${f}`]=!0,os({action:"scroll_depth",category:"Scroll",label:`Scrolled ${f}%`,non_interaction:!0,value:f}))})},n);return window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i)}},rS=(e,t=.5)=>{if(typeof window>"u"||!("IntersectionObserver"in window))return()=>{};const n=typeof e=="string"?Array.from(document.querySelectorAll(e)):e,r={},i=new IntersectionObserver(o=>{o.forEach(l=>{const u=l.target,d=u.id||u.getAttribute("data-section-name");d&&l.isIntersecting&&!r[d]&&(r[d]=!0,os({action:"section_view",category:"Content",label:`Viewed ${d}`,non_interaction:!0}))})},{threshold:t});return n.forEach(o=>i.observe(o)),()=>i.disconnect()},vU=(e,t)=>{os({action:"outbound_link_click",category:"Outbound Links",label:t||e,url:e})},yU=e=>{if(os({action:"whatsapp_click",category:"Contact",label:e||"WhatsApp Button",source:e}),!Bl())return;const t=window.gtag,n=`wa_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;let r=25;switch(e){case"Global Button":r=30;break;case"Fiscal Address Basic":r=80;break;case"Fiscal Address Professional":r=120;break;case"Fiscal Address Enterprise":r=150;break;case"Fiscal Address Discount":r=60;break;case"Blog Post CTA":r=40;break;case"Visit Schedule WhatsApp":r=60;break;case"Eventos":r=50;break}t("event","conversion",{send_to:"AW-11291828546/brs0CI-P2Y8bEMLCrogq",value:r,currency:"BRL",transaction_id:n,event_category:"Contact",event_label:e||"WhatsApp Button"}),Xr&&console.log("[Analytics] Google Ads Conversion: WhatsApp Click",{source:e,value:r,transactionId:n})},iS=()=>{const e=ss(),t=k.useRef(null);k.useEffect(()=>{const n=()=>
120{if(!Bl())return;const u=window.gtag,d=e.pathname+e.search;u("config","G-KE4H8V2243",{page_path:d}),t.current&&t.current!==d&&os({action:"page_navigation",category:"Navigation",label:`From: ${t.current} To: ${d}`}),Xr&&console.log(`[Analytics] Pageview: ${d}`)},r=Date.now();window.__beinPageLoadTime=r,t.current=e.pathname+e.search,Bl()?n():window.addEventListener("analyticsReady",n);const i=nS(),o=document.querySelectorAll('[id][data-track-visibility="true"], [data-section-name]'),l=rS(Array.from(o));return()=>{window.removeEventListener("analyticsReady",n),i(),l()}},[e])},KB=()=>(iS(),{sendEvent:os,trackTiming:tS,trackFormField:gU,trackFormSubmissionTime:mU,trackOutboundLink:vU,trackWhatsAppClick:yU,initScrollDepthTracking:nS,initSectionVisibilityTracking:rS,toggleDebugMode:pU});function wU(){const{pathname:e}=ss();k.useEffect(()=>{window.scrollTo(0,0),document.activeElement instanceof HTMLElement&&document.activeElement.blur()},[e])}function _U(){return wU(),null}var S_=function(){return S_=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},S_.apply(this,arguments)};function Yd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function bU(e,t,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function u(p){try{f(r.next(p))}catch(m){l(m)}}function d(p){try{f(r.throw(p))}catch(m){l(m)}}function f(p){p.done?o(p.value):i(p.value).then(u,d)}f((r=r.apply(e,t||[])).next())})}function GB(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}const xU=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Ym extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class EU extends Ym{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class T_ extends Ym{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class C_ extends Ym{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Sg;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Sg||(Sg={}));class SU{constructor(t,{headers:n={},customFetch:r,region:i=Sg.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=xU(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return bU(this,arguments,void 0,function*(n,r={}){var i;let o,l;try{const{headers:u,method:d,body:f,signal:p,timeout:m}=r;let g={},{region:w}=r;w||(w=this.region);const x=new URL(`${this.url}/${n}`);w&&w!=="any"&&(g["x-region"]=w,x.searchParams.set("forceFunctionRegion",w));let E;f&&(u&&!Object.prototype.hasOwnProperty.call(u,"Content-Type")||!u)?typeof Blob<"u"&&f instanceof Blob||f instanceof ArrayBuffer?(g["Content-Type"]="application/octet-stream",E=f):typeof f=="string"?(g["Content-Type"]="text/plain",E=f):typeof FormData<"u"&&f instanceof FormData?E=f:(g["Content-Type"]="application/json",E=JSON.stringify(f)):f&&typeof f!="string"&&!(typeof Blob<"u"&&f instanceof Blob)&&!(f instanceof ArrayBuffer)&&!(typeof FormData<"u"&&f instanceof FormData)?E=JSON.stringify(f):E=f;let T=p;m&&(l=new AbortController,o=setTimeout(()=>l.abort(),m),p?(T=l.signal,p.addEventListener("abort",()=>l.abort())):T=l.signal);const _=yield this.fetch(x.toString(),{method:d||"POST",headers:Object.assign(Object.assign(Object.assign({},g),this.headers),u),body:E,signal:T}).catch(O=>{throw new EU(O)}),v=_.headers.get("x-relay-error");
120if(v&&v==="true")throw new T_(_);if(!_.ok)throw new C_(_);let b=((i=_.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),A;return b==="application/json"?A=yield _.json():b==="application/octet-stream"||b==="application/pdf"?A=yield _.blob():b==="text/event-stream"?A=_:b==="multipart/form-data"?A=yield _.formData():A=yield _.text(),{data:A,error:null,response:_}}catch(u){return{data:null,error:u,response:u instanceof C_||u instanceof T_?u.context:void 0}}finally{o&&clearTimeout(o)}})}}var TU=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},CU=class{constructor(e){var t,n;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let i=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async o=>{let l=null,u=null,d=null,f=o.status,p=o.statusText;if(o.ok){var m,g;if(n.method!=="HEAD"){var w;const _=await o.text();_===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((w=n.headers.get("Accept"))===null||w===void 0)&&w.includes("application/vnd.pgrst.plan+text"))?u=_:u=JSON.parse(_))}const E=(m=n.headers.get("Prefer"))===null||m===void 0?void 0:m.match(/count=(exact|planned|estimated)/),T=(g=o.headers.get("content-range"))===null||g===void 0?void 0:g.split("/");E&&T&&T.length>1&&(d=parseInt(T[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(u)&&(u.length>1?(l={code:"PGRST116",details:`Results contain ${u.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},u=null,d=null,f=406,p="Not Acceptable"):u.length===1?u=u[0]:u=null)}else{var x;const E=await o.text();try{l=JSON.parse(E),Array.isArray(l)&&o.status===404&&(u=[],l=null,f=200,p="OK")}catch{o.status===404&&E===""?(f=204,p="No Content"):l={message:E}}if(l&&n.isMaybeSingle&&(!(l==null||(x=l.details)===null||x===void 0)&&x.includes("0 rows"))&&(l=null,f=200,p="OK"),l&&n.shouldThrowOnError)throw new TU(l)}return{error:l,data:u,count:d,status:f,statusText:p}});return this.shouldThrowOnError||(i=i.catch(o=>{var l;let u="";const d=o==null?void 0:o.cause;if(d){var f,p,m,g;const x=(f=d==null?void 0:d.message)!==null&&f!==void 0?f:"",E=(p=d==null?void 0:d.code)!==null&&p!==void 0?p:"";u=`${(m=o==null?void 0:o.name)!==null&&m!==void 0?m:"FetchError"}: ${o==null?void 0:o.message}`,u+=`
121
122Caused by: ${(g=d==null?void 0:d.name)!==null&&g!==void 0?g:"Error"}: ${x}`,E&&(u+=` (${E})`),d!=null&&d.stack&&(u+=`
123${d.stack}`)}else{var w;u=(w=o==null?void 0:o.stack)!==null&&w!==void 0?w:""}return{error:{message:`${(l=o==null?void 0:o.name)!==null&&l!==void 0?l:"FetchError"}: ${o==null?void 0:o.message}`,details:u,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),i.then(e,t)}returns(){return this}overrideTypes(){return this}},kU=class extends CU{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:i=r}={}){const o=i?`${i}.order`:"order",l=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${l?`${l},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r>"u"?"offset":`${r}.offset`,o=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(o,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
123explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:i=!1,format:o="text"}={}){var l;const u=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,i?"wal":null].filter(Boolean).join("|"),d=(l=this.headers.get("Accept"))!==null&&l!==void 0?l:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${d}"; options=${u};`),o==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const k_=new RegExp("[,()]");var xo=class extends kU{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&k_.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&k_.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let i="";r==="plain"?i="pl":r==="phrase"?i="ph":r==="websearch"&&(i="w");const o=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${i}fts${o}.${t}`),this}match(e){return Object.entries(e).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},AU=class{constructor(e,{headers:t={},schema:n,fetch:r}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},i=n?"HEAD":"GET";let o=!1;const l=(e??"*").split("").map(f=>/\s/.test(f)&&!o?"":(f==='"'&&(o=!o),f)).join(""),{url:u,headers:d}=this.cloneRequestState();return u.searchParams.set("select",l),r&&d.append("Prefer",`count=${r}`),new xo({method:i,url:u,headers:d,schema:this.schema,fetch:this.fetch})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const i="POST",{url:o,headers:l}=this.cloneRequestState();if(t&&l.append("Prefer",`count=${t}`),n||l.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((d,f)=>d.concat(Object.keys(f)),[]);if(u.length>0){const d=[...new Set(u)].map(f=>`"${f}"`);o.searchParams.set("columns",d.join(","))}}return new xo({method:i,url:o,headers:l,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:i=!0}={}){var o;const l="POST",{url:u,headers:d}=this.cloneRequestState();if(d.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&u.searchParams.set("on_conflict",t),r&&d.append("Prefer",`count=${r}`),i||d.append("Prefer","missing=default"),Array.isArray(e)){const f=e.reduce((p,m)=>p.concat(Object.keys(m)),[]);if(f.length>0){const p=[...new Set(f)].map(m=>`"${m}"`);u.searchParams.set("columns",p.join(","))}}return new xo({method:l,url:u,headers:d,schema:this.schema,body:e,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}update(e,{count:t}={}){var n;const r="PATCH",{url:i,headers:o}=this.cloneRequestState();return t&&o.append("Prefer",`count=${t}`),new xo({method:r,url:i,headers:o,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new xo({method:n,url:r,headers:i,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch})}},RU=class sS{constructor(t,{headers:n={},schema:r,fetch:i}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.fetch=i}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new AU(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new sS(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:i=!1,count:o}={}){var l;let u;const d=new URL(`${this.url}/rpc/${t}`);let f;const p=w=>w!==null&&typeof w=="object"&&(!Array.isArray(w)||w.some(p)),m=r&&Object.values(n).some(p);m?(u="POST",f=n):r||i?(u=r?"HEAD":"GET",Object.entries(n).filter(([w,x])=>x!==void 0).map(([w,x])=>[w,Array.isArray(x)?`{${x.join(",")}}`:`${x}
123`]).forEach(([w,x])=>{d.searchParams.append(w,x)})):(u="POST",f=n);const g=new Headers(this.headers);return m?g.set("Prefer",o?`count=${o},return=minimal`:"return=minimal"):o&&g.set("Prefer",`count=${o}`),new xo({method:u,url:d,headers:g,schema:this.schemaName,body:f,fetch:(l=this.fetch)!==null&&l!==void 0?l:fetch})}};class PU{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const i=r.node,o=parseInt(i.replace(/^v/,"").split(".")[0]);return o>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${o} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${o} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
124import ws from "ws"
125new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
126
127Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const OU="2.93.1",IU=`realtime-js/${OU}`,LU="1.0.0",oS="2.0.0",A_=oS,Tg=1e4,NU=1e3,$U=100;var Ai;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Ai||(Ai={}));var vt;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(vt||(vt={}));var or;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(or||(or={}));var Cg;(function(e){e.websocket="websocket"})(Cg||(Cg={}));var Ss;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Ss||(Ss={}));class DU{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},l=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,l)}_encodeUserBroadcastPush(t,n,r){var i,o;const l=t.topic,u=(i=t.ref)!==null&&i!==void 0?i:"",d=(o=t.join_ref)!==null&&o!==void 0?o:"",f=t.payload.event,p=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},m=Object.keys(p).length===0?"":JSON.stringify(p);if(d.length>255)throw new Error(`joinRef length ${d.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`ref length ${u.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`topic length ${l.length} exceeds maximum of 255`);if(f.length>255)throw new Error(`userEvent length ${f.length} exceeds maximum of 255`);if(m.length>255)throw new Error(`metadata length ${m.length} exceeds maximum of 255`);const g=this.USER_BROADCAST_PUSH_META_LENGTH+d.length+u.length+l.length+f.length+m.length,w=new ArrayBuffer(this.HEADER_LENGTH+g);let x=new DataView(w),E=0;x.setUint8(E++,this.KINDS.userBroadcastPush),x.setUint8(E++,d.length),x.setUint8(E++,u.length),x.setUint8(E++,l.length),x.setUint8(E++,f.length),x.setUint8(E++,m.length),x.setUint8(E++,n),Array.from(d,_=>x.setUint8(E++,_.charCodeAt(0))),Array.from(u,_=>x.setUint8(E++,_.charCodeAt(0))),Array.from(l,_=>x.setUint8(E++,_.charCodeAt(0))),Array.from(f,_=>x.setUint8(E++,_.charCodeAt(0))),Array.from(m,_=>x.setUint8(E++,_.charCodeAt(0)));var T=new Uint8Array(w.byteLength+r.byteLength);
127return T.set(new Uint8Array(w),0),T.set(new Uint8Array(r),w.byteLength),T.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[i,o,l,u,d]=r;return n({join_ref:i,ref:o,topic:l,event:u,payload:d})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),i=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,i)}}_decodeUserBroadcast(t,n,r){const i=n.getUint8(1),o=n.getUint8(2),l=n.getUint8(3),u=n.getUint8(4);let d=this.HEADER_LENGTH+4;const f=r.decode(t.slice(d,d+i));d=d+i;const p=r.decode(t.slice(d,d+o));d=d+o;const m=r.decode(t.slice(d,d+l));d=d+l;const g=t.slice(d,t.byteLength),w=u===this.JSON_ENCODING?JSON.parse(r.decode(g)):g,x={type:this.BROADCAST_EVENT,event:p,payload:w};return l>0&&(x.meta=JSON.parse(m)),{join_ref:null,ref:null,topic:f,event:this.BROADCAST_EVENT,payload:x}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}class aS{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var We;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(We||(We={}));const R_=(e,t,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((o,l)=>(o[l]=jU(l,e,t,i),o),{}):{}},jU=(e,t,n,r)=>{const i=t.find(u=>u.name===e),o=i==null?void 0:i.type,l=n[e];return o&&!r.includes(o)?lS(o,l):kg(l)},lS=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return BU(t,n)}switch(e){case We.bool:return MU(t);case We.float4:case We.float8:case We.int2:case We.int4:case We.int8:case We.numeric:case We.oid:return UU(t);case We.json:case We.jsonb:return FU(t);case We.timestamp:return zU(t);case We.abstime:case We.date:case We.daterange:case We.int4range:case We.int8range:case We.money:case We.reltime:case We.text:case We.time:case We.timestamptz:case We.timetz:case We.tsrange:case We.tstzrange:return kg(t);default:return kg(t)}},kg=e=>e,MU=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},UU=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},FU=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},BU=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let o;const l=e.slice(1,n);try{o=JSON.parse("["+l+"]")}catch{o=l?l.split(","):[]}return o.map(u=>lS(t,u))}return e},zU=e=>typeof e=="string"?e.replace(" ","T"):e,uS=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class tp{constructor(t,n,r={},i=Tg){this.channel=t,this.event=n,this.payload=r,this.timeout=i,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHo
127oks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var P_;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(P_||(P_={}));class ml{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},i=>{const{onJoin:o,onLeave:l,onSync:u}=this.caller;this.joinRef=this.channel._joinRef(),this.state=ml.syncState(this.state,i,o,l),this.pendingDiffs.forEach(d=>{this.state=ml.syncDiff(this.state,d,o,l)}),this.pendingDiffs=[],u()}),this.channel._on(r.diff,{},i=>{const{onJoin:o,onLeave:l,onSync:u}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=ml.syncDiff(this.state,i,o,l),u())}),this.onJoin((i,o,l)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:o,newPresences:l})}),this.onLeave((i,o,l)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:o,leftPresences:l})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,i){const o=this.cloneDeep(t),l=this.transformState(n),u={},d={};return this.map(o,(f,p)=>{l[f]||(d[f]=p)}),this.map(l,(f,p)=>{const m=o[f];if(m){const g=p.map(T=>T.presence_ref),w=m.map(T=>T.presence_ref),x=p.filter(T=>w.indexOf(T.presence_ref)<0),E=m.filter(T=>g.indexOf(T.presence_ref)<0);x.length>0&&(u[f]=x),E.length>0&&(d[f]=E)}else u[f]=p}),this.syncDiff(o,{joins:u,leaves:d},r,i)}static syncDiff(t,n,r,i){const{joins:o,leaves:l}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),i||(i=()=>{}),this.map(o,(u,d)=>{var f;const p=(f=t[u])!==null&&f!==void 0?f:[];if(t[u]=this.cloneDeep(d),p.length>0){const m=t[u].map(w=>w.presence_ref),g=p.filter(w=>m.indexOf(w.presence_ref)<0);t[u].unshift(...g)}r(u,p,d)}),this.map(l,(u,d)=>{let f=t[u];if(!f)return;const p=d.map(m=>m.presence_ref);f=f.filter(m=>p.indexOf(m.presence_ref)<0),t[u]=f,i(u,f,d),f.length===0&&delete t[u]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const i=t[r];return"metas"in i?n[r]=i.metas.map(o=>(o.presence_ref=o.phx_ref,delete o.phx_ref,delete o.phx_ref_prev,o)):n[r]=i,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var O_;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(O_||(O_={}));var vl;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(vl||(vl={}));var Jr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Jr||(Jr={}));class jo{constructor(t,n={config:{}},r){var i,o;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=vt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new tp(this,or.join,this.params,this.timeout),this.rejoinTimer=new aS(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=vt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(l=>l.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=vt.closed,this.socket._remove(this)}),this._onError(l=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,l),this.state=vt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=vt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",l=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,l),this.state=vt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(or.reply,{},(l,u)=>{this._trigger(this._replyEventName(u),l)}),this.presence=new ml(this),this.broadcastEndpointURL=uS(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((o=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||o===void 0)&&o.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,i,o;if(this.socket.isConnected()||this.socket.connect(),this.state==vt.closed){const{config:{broadcast:l,presence:u,private:d}}=this.params,f=(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(w=>w.filter))!==null&&i!==void 0?i:[],p=!!this.bindings[vl.PRESENCE]&&this.bindings[vl.PRESENCE].length>0||((o=this.params.config.presence)===null||o===void 0?void 0:o.enabled)===!0,m={},g={broadcast:l,presence:Object.assign(Object.assign({},u),{enabled:p}),postgres_changes:f,private:d};this.socket.accessTokenValue&&(m.access_token=this.socket.accessTokenValue),this._onError(w=>t==null?void 0:t(Jr.CHANNEL_ERROR,w)),this._onClose(()=>t==null?void 0:t(Jr.CLOSED)),this.updateJoinPayload(Object.assign({config:g},m)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:w})=>{var x;if(this.socket._isManualToken()||this.socket.setAuth(),w===void 0){t==null||t(Jr.SUBSCRIBED);return}else{const E=this.bindings.postgres_changes,T=(x=E==null?void 0:E.length)!==null&&x!==void 0?x:0,_=[];for(let v=0;v<T;v++){const b=E[v],{filter:{event:A,schema:O,table:$,filter:D}}=b,U=w&&w[v];if(U&&U.event===A&&jo.isFilterValueEqual(U.schema,O)&&jo.isFilterValueEqual(U.table,$)&&jo.isFilterValueEqual(U.filter,D))_.push(Object.assign(Object.assign({},b),{id:U.id}));else{this.unsubscribe(),this.state=vt.errored,t==null||t(Jr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=_,t&&t(Jr.SUBSCRIBED);return}}).receive("error",w=>{this.state=vt.errored,t==null||t(Jr.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(w).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Jr.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===vt.joined&&t===vl.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,n,r)}async httpSend(t,n,r={}){var i;if(n==null)return Promise.reject("Payload is required for httpSend()");const o={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(o.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:o,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(i=r.timeout)!==null&&i!==void 0?i:this.timeout);if(u.status===202)return{success:!0};let d=u.statusText;
127try{const f=await u.json();d=f.error||f.message||d}catch{}return Promise.reject(new Error(d))}async send(t,n={}){var r,i;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:o,payload:l}=t,u={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(u.Authorization=`Bearer ${this.socket.accessTokenValue}`);const d={method:"POST",headers:u,body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:l,private:this.private}]})};try{const f=await this._fetchWithTimeout(this.broadcastEndpointURL,d,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=f.body)===null||i===void 0?void 0:i.cancel()),f.ok?"ok":"error"}catch(f){return f.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var l,u,d;const f=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((d=(u=(l=this.params)===null||l===void 0?void 0:l.config)===null||u===void 0?void 0:u.broadcast)===null||d===void 0)&&d.ack)&&o("ok"),f.receive("ok",()=>o("ok")),f.receive("error",()=>o("error")),f.receive("timeout",()=>o("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=vt.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(or.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(i=>{r=new tp(this,or.leave,{},t),r.receive("ok",()=>{n(),i("ok")}).receive("timeout",()=>{n(),i("timed out")}).receive("error",()=>{i("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=vt.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const i=new AbortController,o=setTimeout(()=>i.abort(),r),l=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(o),l}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new tp(this,t,n,r);return this._canPush()?i.send():this._addToPushBuffer(i),i}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>$U){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var i,o;const l=t.toLocaleLowerCase(),{close:u,error:d,leave:f,join:p}=or;if(r&&[u,d,f,p].indexOf(l)>=0&&r!==this._joinRef())return;let g=this._onMessage(l,n,r);if(n&&!g)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(l)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(w=>{var x,E,T;return((x=w.filter)===null||x===void 0?void 0:x.event)==="*"||((T=(E=w.filter)===null||E===void 0?void 0:E.event)===null||T===void 0?void 0:T.toLocaleLowerCase())===l}).map(w=>w.callback(g,r)):(o=this.bindings[l])===null||o===void 0||o.filter(w=>{var x,E,T,_,v,b;if(["broadcast","presence","postgres_changes"].includes(l))if("id"in w){const A=w.id,O=(x=w.filter)===null||x===void 0?void 0:x.event;return A&&((E=n.ids)===null||E===void 0?void 0:E.includes(A))&&(O==="*"||(O==null?void 0:O.toLocaleLowerCase())===((T=n.data)===null||T===void 0?void 0:T.type.toLocaleLowerCase()))}else{const A=(v=(_=w==null?void 0:w.filter)===null||_===void 0?void 0:_.event)===null||v===void 0?void 0:v.toLocaleLowerCase();return A==="*"||A===((b=n==null?void 0:n.event)===null||b===void 0?void 0:b.toLocaleLowerCase())}else return w.type.toLocaleLowerCase()===l}).map(w=>{if(typeof g=="object"&&"ids"in g){const x=g.data,{schema:E,table:T,commit_timestamp:_,type:v,errors:b}=x;g=Object.assign(Object.assign({},{schema:E,table:T,commit_timestamp:_,eventType:v,new:{},old:{},errors:b}),this._getPayloadRecords(x))}w.callback(g,r)}
127)}_isClosed(){return this.state===vt.closed}_isJoined(){return this.state===vt.joined}_isJoining(){return this.state===vt.joining}_isLeaving(){return this.state===vt.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const i=t.toLocaleLowerCase(),o={type:i,filter:n,callback:r};return this.bindings[i]?this.bindings[i].push(o):this.bindings[i]=[o],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(i=>{var o;return!(((o=i.type)===null||o===void 0?void 0:o.toLocaleLowerCase())===r&&jo.isEqual(i.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(or.close,{},t)}_onError(t){this._on(or.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=vt.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=R_(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=R_(t.columns,t.old_record)),n}}const np=()=>{},vc={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},WU=[1e3,2e3,5e3,1e4],HU=1e4,VU=`
128  addEventListener("message", (e) => {
129    if (e.data.event === "start") {
130      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
131    }
132  });`;class qU{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Tg,this.transport=null,this.heartbeatIntervalMs=vc.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=np,this.ref=0,this.reconnectTimer=null,this.vsn=A_,this.logger=np,this.conn=null,this.sendBuffer=[],this.serializer=new DU,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=i=>i?(...o)=>i(...o):(...o)=>fetch(...o),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${Cg.websocket}`,this.httpEndpoint=uS(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=PU.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
133
134To use Realtime in Node.js, you need to provide a WebSocket implementation:
135
136Option 1: Use Node.js 22+ which has native WebSocket support
137Option 2: Install and provide the "ws" package:
138
139  npm install ws
140
141  import ws from "ws"
142  const client = new RealtimeClient(url, {
143    ...options,
144    transport: ws
145  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Ai.connecting:return Ss.Connecting;case Ai.open:return Ss.Open;case Ai.closing:return Ss.Closing;default:return Ss.Closed}}isConnected(){return this.connectionState()===Ss.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}
145channel(t,n={config:{}}){const r=`realtime:${t}`,i=this.getChannels().find(o=>o.topic===r);if(i)return i;{const o=new jo(`realtime:${t}`,n,this);return this.channels.push(o),o}}push(t){const{topic:n,event:r,payload:i,ref:o}=t,l=()=>{this.encode(t,u=>{var d;(d=this.conn)===null||d===void 0||d.send(u)})};this.log("push",`${n} ${r} (${o})`,i),this.isConnected()?l():this.sendBuffer.push(l)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(NU,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},vc.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply"&&n.ref&&n.ref===this.pendingHeartbeatRef){const f=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error",f)}catch(p){this.log("error","error in heartbeat callback",p)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:r,event:i,payload:o,ref:l}=n,u=l?`(${l})`:"",d=o.status||"";this.log("receive",`${d} ${r} ${i} ${u}`.trim(),o),this.channels.filter(f=>f._isMember(r)).forEach(f=>f._trigger(i,o,l)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===Ai.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Ai.open||this.conn.readyState===Ai.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t);try{this.heartbeatCallback("error")}catch(n){this.log("error","error in heartbeat callback",n)}}
145_triggerChanError(){this.channels.forEach(t=>t._trigger(or.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",i=new URLSearchParams(n);return`${t}${r}${i}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([VU],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(i=>{const o={access_token:n,version:IU};n&&i.updateJoinPayload(o),i.joinedOnce&&i._isJoined()&&i._push(or.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(i){this.log("error",`error in ${t} callback`,i)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new aS(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},vc.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,i,o,l,u,d,f,p,m,g,w;switch(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.timeout)!==null&&r!==void 0?r:Tg,this.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:vc.HEARTBEAT_INTERVAL,this.worker=(o=t==null?void 0:t.worker)!==null&&o!==void 0?o:!1,this.accessToken=(l=t==null?void 0:t.accessToken)!==null&&l!==void 0?l:null,this.heartbeatCallback=(u=t==null?void 0:t.heartbeatCallback)!==null&&u!==void 0?u:np,this.vsn=(d=t==null?void 0:t.vsn)!==null&&d!==void 0?d:A_,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(f=t==null?void 0:t.reconnectAfterMs)!==null&&f!==void 0?f:x=>WU[x-1]||HU,this.vsn){case LU:this.encode=(p=t==null?void 0:t.encode)!==null&&p!==void 0?p:(x,E)=>E(JSON.stringify(x)),this.decode=(m=t==null?void 0:t.decode)!==null&&m!==void 0?m:(x,E)=>E(JSON.parse(x));break;case oS:this.encode=(g=t==null?void 0:t.encode)!==null&&g!==void 0?g:this.serializer.encode.bind(this.serializer),this.decode=(w=t==null?void 0:t.decode)!==null&&w!==void 0?w:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var zl=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function KU(e,t,n){const r=new URL(t,e);if(n)for(const[i,o]of Object.entries(n))o!==void 0&&r.searchParams.set(i,o);return r.toString()}async function GU(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function QU(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:o,headers:l}){const u=KU(e.baseUrl,r,i),d=await GU(e.auth),f=await t(u,{method:n,headers:{...o?{"Content-Type":"application/json"}:{},...d,...l},body:o?JSON.stringify(o):void 0}),p=await f.text(),m=(f.headers.get("content-type")||"").includes("application/json"),g=m&&p?JSON.parse(p):p;if(!f.ok){const w=m?g:void 0,x=w==null?void 0:w.error;throw new zl((x==null?void 0:x.message)??`Request failed with status ${f.status}`,{status:f.status,icebergType:x==null?void 0:x.type,icebergCode:x==null?void 0:x.code,details:w})}return{status:f.status,headers:f.headers,data:g}}}}function yc(e){return e.join("�")}var JU=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:yc(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${yc(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${yc(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${yc(e.namespace)}`}),!0}catch(t){if(t instanceof zl&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof zl&&n.status===409)return;throw n}}};function go(e){return e.join("�")}var YU=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${go(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${go(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${go(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${go(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${go(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${go(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof zl&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof zl&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},XU=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=QU({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new JU(this.client,t),this.tableOps=new YU(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
145async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},Xd=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}};function Zd(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var wc=class extends Xd{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},cS=class extends Xd{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const ZU=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),eF=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)},Ag=e=>{if(Array.isArray(e))return e.map(n=>Ag(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));t[i]=Ag(r)}),t},tF=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function Wl(e){"@babel/helpers - typeof";return Wl=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},Wl(e)}function nF(e,t){if(Wl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Wl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rF(e){var t=nF(e,"string");return Wl(t)=="symbol"?t:t+""}function iF(e,t,n){return(t=rF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I_(Object(n),!0).forEach(function(r){iF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const L_=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},sF=async(e,t,n,r)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(n!=null&&n.noResolveJson)){const i=e,o=i.status||500;if(typeof i.json=="function")i.json().then(l=>{const u=(l==null?void 0:l.statusCode)||(l==null?void 0:l.code)||o+"";t(new wc(L_(l),o,u,r))}).catch(()=>{if(r==="vectors"){const l=o+"";t(new wc(i.statusText||`HTTP ${o} error`,o,l,r))}else{const l=o+"";t(new wc(i.statusText||`HTTP ${o} error`,o,l,r))}});else{const l=o+"";t(new wc(i.statusText||`HTTP ${o} error`,o,l,r))}}else t(new cS(L_(e),e,r))},oF=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!r?fe(fe({},i),n):(eF(r)?(i.headers=fe({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r)):i.body=r,t!=null&&t.duplex&&(i.duplex=t.duplex),fe(fe({},i),n))};async function el(e,t,n,r,i,o,l){return new Promise((u,d)=>{e(n,oF(t,r,i,o)).then(f=>{if(!f.ok)throw f;if(r!=null&&r.noResolveJson)return f;if(l==="vectors"){const p=f.headers.get("content-type");if(!p||!p.includes("application/json"))return{}}return f.json()}).then(f=>u(f)).catch(f=>sF(f,d,r,l))})}function aF(e="storage"){return{get:async(t,n,r,i)=>el(t,"GET",n,r,i,void 0,e),post:async(t,n,r,i,o)=>el(t,"POST",n,i,o,r,e),put:async(t,n,r,i,o)=>el(t,"PUT",n,i,o,r,e),head:async(t,n,r,i)=>el(t,"HEAD",n,fe(fe({},r),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,n,r,i,o)=>el(t,"DELETE",n,i,o,r,e)}}const lF=aF("storage"),{get:Hl,post:Ye,put:Rg,head:uF,remove:Xm}=lF;var ba=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=ZU(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Zd(n))return{data:null,error:n};throw n}}},cF=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Zd(t))return{data:null,error:t};throw t}}};let dS;dS=Symbol.toStringTag;var dF=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[dS]="BlobDownloadBuilder",this.promise=null}asStream(){return new cF(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Zd(t))return{data:null,error:t};throw t}}};const fF={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},N_={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var hF=class extends ba{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var i=this;return i.handleOperation(async()=>{let o;const l=fe(fe({},N_),r);let u=fe(fe({},i.headers),e==="POST"&&{"x-upsert":String(l.upsert)});const d=l.metadata;typeof Blob<"u"&&n instanceof Blob?(o=new FormData,o.append("cacheControl",l.cacheControl),d&&o.append("metadata",i.encodeMetadata(d)),o.append("",n)):typeof FormData<"u"&&n instanceof FormData?(o=n,o.has("cacheControl")||o.append("cacheControl",l.cacheControl),d&&!o.has("metadata")&&o.append("metadata",i.encodeMetadata(d))):(o=n,u["cache-control"]=`max-age=${l.cacheControl}`,u["content-type"]=l.contentType,d&&(u["x-metadata"]=i.toBase64(i.encodeMetadata(d))),(typeof ReadableStream<"u"&&o instanceof ReadableStream||o&&typeof o=="object"&&"pipe"in o&&typeof o.pipe=="function")&&!l.duplex&&(l.duplex="half")),r!=null&&r.headers&&(u=fe(fe({},u),r.headers));const f=i._removeEmptyFolders(t),p=i._getFinalPath(f),m=await(e=="PUT"?Rg:Ye)(i.fetch,`${i.url}/object/${p}`,o,fe({headers:u},l!=null&&l.duplex?{duplex:l.duplex}:{}));return{path:f,id:m.Id,fullPath:m.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var i=this;const o=i._removeEmptyFolders(e),l=i._getFinalPath(o),u=new URL(i.url+`/object/upload/sign/${l}`);return u.searchParams.set("token",t),i.handleOperation(async()=>{let d;const f=fe({upsert:N_.upsert},r),p=fe(fe({},i.headers),{"x-upsert":String(f.upsert)});return typeof Blob<"u"&&n instanceof Blob?(d=new FormData,d.append("cacheControl",f.cacheControl),d.append("",n)):typeof FormData<"u"&&n instanceof FormData?(d=n,d.append("cacheControl",f.cacheControl)):(d=n,p["cache-control"]=`max-age=${f.cac
145heControl}`,p["content-type"]=f.contentType),{path:o,fullPath:(await Rg(i.fetch,u.toString(),d,{headers:p})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const i=fe({},n.headers);t!=null&&t.upsert&&(i["x-upsert"]="true");const o=await Ye(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:i}),l=new URL(n.url+o.url),u=l.searchParams.get("token");if(!u)throw new Xd("No token returned by API");return{signedUrl:l.toString(),path:e,token:u}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await Ye(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await Ye(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let i=r._getFinalPath(e),o=await Ye(r.fetch,`${r.url}/object/sign/${i}`,fe({expiresIn:t},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const l=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{signedUrl:encodeURI(`${r.url}${o.signedURL}${l}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const i=await Ye(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i.map(l=>fe(fe({},l),{},{signedUrl:l.signedURL?encodeURI(`${r.url}${l.signedURL}${o}`):null}))})}download(e,t){const n=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",r=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),i=r?`?${r}`:"",o=this._getFinalPath(e),l=()=>Hl(this.fetch,`${this.url}/${n}/${o}${i}`,{headers:this.headers,noResolveJson:!0});return new dF(l,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>Ag(await Hl(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await uF(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(Zd(r)&&r instanceof cS){const i=r.originalError;if([400,404].includes(i==null?void 0:i.status))return{data:!1,error:r}}throw r}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],i=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";i!==""&&r.push(i);const o=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});l!==""&&r.push(l);let u=r.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${o}/public/${n}${u}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await Xm(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const i=fe(fe(fe({},fF),t),{},{prefix:e||""});return await Ye(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=fe({},e);return await Ye(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const pF="2.93.1",iu={"X-Client-Info":`storage-js/${pF}`};var gF=class extends ba{constructor(e,t={},n,r){const i=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const o=i.href.replace(/\/$/,""),l=fe(fe({},iu),t);super(o,l,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Hl(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Hl(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await Ye(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await Rg(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Ye(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Xm(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},mF=class extends ba{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=fe(fe({},iu),t);super(r,i,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Ye(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),i=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Hl(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Xm(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!tF(e))throw new Xd("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new XU({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
145),r=this.shouldThrowOnError;return new Proxy(n,{get(i,o){const l=i[o];return typeof l!="function"?l:async(...u)=>{try{return{data:await l.apply(i,u),error:null}}catch(d){if(r)throw d;return{data:null,error:d}}}}})}},vF=class extends ba{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=fe(fe({},iu),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Ye(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await Ye(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Ye(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await Ye(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},yF=class extends ba{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=fe(fe({},iu),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Ye(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Ye(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Ye(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Ye(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Ye(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},wF=class extends ba{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=fe(fe({},iu),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Ye(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Ye(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Ye(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Ye(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},_F=class extends wF{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new bF(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},bF=class extends vF{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new xF(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},xF=class extends yF{constructor(e,t,n,r,i){super(e,t,i),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},EF=class extends gF{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new hF(this.url,this.headers,e,this.fetch)}get vectors(){return new _F(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new mF(this.url+"/iceberg",this.headers,this.fetch)}};const fS="2.93.1",Eo=30*1e3,Pg=3,rp=Pg*Eo,SF="http://localhost:9999",TF="supabase.auth.token",CF={"X-Client-Info":`gotrue-js/${fS}`},Og="X-Supabase-Api-Version",hS={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},kF=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,AF=10*60*1e3;
145class Vl extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function ie(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class RF extends Vl{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function PF(e){return ie(e)&&e.name==="AuthApiError"}class Ts extends Vl{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class ci extends Vl{constructor(t,n,r,i){super(t,r,i),this.name=n,this.status=r}}class wn extends ci{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function ip(e){return ie(e)&&e.name==="AuthSessionMissingError"}class mo extends ci{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class _c extends ci{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class bc extends ci{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function OF(e){return ie(e)&&e.name==="AuthImplicitGrantRedirectError"}class $_ extends ci{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class IF extends ci{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Ig extends ci{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function sp(e){return ie(e)&&e.name==="AuthRetryableFetchError"}class D_ extends ci{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Lg extends ci{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const _d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),j_=` 	
146\r=`.split(""),LF=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<j_.length;t+=1)e[j_[t].charCodeAt(0)]=-2;for(let t=0;t<_d.length;t+=1)e[_d[t].charCodeAt(0)]=t;return e})();function M_(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(_d[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(_d[r]),t.queuedBits-=6}}function pS(e,t,n){const r=LF[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function U_(e){const t=[],n=l=>{t.push(String.fromCodePoint(l))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},o=l=>{DF(l,r,n)};for(let l=0;l<e.length;l+=1)pS(e.charCodeAt(l),i,o);return t.join("")}function NF(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function $F(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const i=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}NF(r,t)}}function DF(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Go(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)pS(e.charCodeAt(i),n,r);return new Uint8Array(t)}function jF(e){const t=[];return $F(e,n=>t.push(n)),new Uint8Array(t)}function Rs(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};return e.forEach(i=>
146M_(i,n,r)),M_(null,n,r),t.join("")}function MF(e){return Math.round(Date.now()/1e3)+e}function UF(){return Symbol("auth-callback")}const At=()=>typeof window<"u"&&typeof document<"u",ws={tested:!1,writable:!1},gS=()=>{if(!At())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ws.tested)return ws.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ws.tested=!0,ws.writable=!0}catch{ws.tested=!0,ws.writable=!1}return ws.writable};function FF(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,o)=>{t[o]=i})}catch{}return n.searchParams.forEach((r,i)=>{t[i]=r}),t}const mS=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),BF=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",So=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},_s=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},kt=async(e,t)=>{await e.removeItem(t)};class ef{constructor(){this.promise=new ef.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}ef.promiseConstructor=Promise;function xc(e){const t=e.split(".");if(t.length!==3)throw new Lg("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!kF.test(t[r]))throw new Lg("JWT not in base64url format");return{header:JSON.parse(U_(t[0])),payload:JSON.parse(U_(t[1])),signature:Go(t[2]),raw:{header:t[0],payload:t[1]}}}async function zF(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function WF(e,t){return new Promise((r,i)=>{(async()=>{for(let o=0;o<1/0;o++)try{const l=await e(o);if(!t(o,null,l)){r(l);return}}catch(l){if(!t(o,l)){i(l);return}}})()})}function HF(e){return("0"+e.toString(16)).substr(-2)}function VF(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let o=0;o<56;o++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(t),Array.from(t,HF).join("")}async function qF(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(o=>String.fromCharCode(o)).join("")}async function KF(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await qF(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function vo(e,t,n=!1){const r=VF();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await So(e,`${t}-code-verifier`,i);const o=await KF(r);return[o,r===o?"plain":"s256"]}const GF=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function QF(e){const t=e.headers.get(Og);if(!t||!t.match(GF))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function JF(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function YF(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const XF=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function yo(e){if(!XF.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function op(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function ZF(e,t){return new Proxy(e,{get:(n,r,i)=>{if(r==="__isInsecureUserWarningProxy")return!0;
146if(typeof r=="symbol"){const o=r.toString();if(o==="Symbol(Symbol.toPrimitive)"||o==="Symbol(Symbol.toStringTag)"||o==="Symbol(util.inspect.custom)"||o==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,i)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,i)}})}function F_(e){return JSON.parse(JSON.stringify(e))}const Es=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),e3=[502,503,504];async function B_(e){var t;if(!BF(e))throw new Ig(Es(e),0);if(e3.includes(e.status))throw new Ig(Es(e),e.status);let n;try{n=await e.json()}catch(o){throw new Ts(Es(o),o)}let r;const i=QF(e);if(i&&i.getTime()>=hS["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new D_(Es(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new wn}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((o,l)=>o&&typeof l=="string",!0))throw new D_(Es(n),e.status,n.weak_password.reasons);throw new RF(Es(n),e.status||500,r)}const t3=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function ce(e,t,n,r){var i;const o=Object.assign({},r==null?void 0:r.headers);o[Og]||(o[Og]=hS["2024-01-01"].name),r!=null&&r.jwt&&(o.Authorization=`Bearer ${r.jwt}`);const l=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(l.redirect_to=r.redirectTo);const u=Object.keys(l).length?"?"+new URLSearchParams(l).toString():"",d=await n3(e,t,n+u,{headers:o,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(d):{data:Object.assign({},d),error:null}}async function n3(e,t,n,r,i,o){const l=t3(t,r,i,o);let u;try{u=await e(n,Object.assign({},l))}catch(d){throw console.error(d),new Ig(Es(d),0)}if(u.ok||await B_(u),r!=null&&r.noResolveJson)return u;try{return await u.json()}catch(d){await B_(d)}}function tr(e){var t;let n=null;s3(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=MF(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function z_(e){const t=tr(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Oi(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function r3(e){return{data:e,error:null}}function i3(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:o}=e,l=Yd(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),u={action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:o},d=Object.assign({},l);return{data:{properties:u,user:d},error:null}}function W_(e){return e}function s3(e){return e.access_token&&e.refresh_token&&e.expires_in}const ap=["global","local","others"];class o3{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=mS(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}
146async signOut(t,n=ap[0]){if(ap.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${ap.join(", ")}`);try{return await ce(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(ie(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await ce(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Oi})}catch(r){if(ie(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Yd(t,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await ce(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:i3,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(ie(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await ce(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Oi})}catch(n){if(ie(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,i,o,l,u,d;try{const f={nextPage:null,lastPage:0,total:0},p=await ce(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(o=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&o!==void 0?o:""},xform:W_});if(p.error)throw p.error;const m=await p.json(),g=(l=p.headers.get("x-total-count"))!==null&&l!==void 0?l:0,w=(d=(u=p.headers.get("link"))===null||u===void 0?void 0:u.split(","))!==null&&d!==void 0?d:[];return w.length>0&&(w.forEach(x=>{const E=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),T=JSON.parse(x.split(";")[1].split("=")[1]);f[`${T}Page`]=E}),f.total=parseInt(g)),{data:Object.assign(Object.assign({},m),f),error:null}}catch(f){if(ie(f))return{data:{users:[]},error:f};throw f}}async getUserById(t){yo(t);try{return await ce(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Oi})}catch(n){if(ie(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){yo(t);try{return await ce(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Oi})}catch(r){if(ie(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){yo(t);try{return await ce(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Oi})}catch(r){if(ie(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){yo(t.userId);try{const{data:n,error:r}=await ce(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(ie(n))return{data:null,error:n};throw n}}async _deleteFactor(t){yo(t.userId),yo(t.id);try{return{data:await ce(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(ie(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,i,o,l,u,d;try{const f={nextPage:null,lastPage:0,total:0},p=await ce(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(o=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&o!==void 0?o:""},xform:W_});if(p.error)throw p.error;const m=await p.json(),g=(l=p.headers.get("x-total-count"))!==null&&l!==void 0?l:0,w=(d=(u=p.headers.get("link"))===null||u===void 0?void 0:u.split(","))!==null&&d!==void 0?d:[];return w.length>0&&(w.forEach(x=>{const E=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),T=JSON.parse(x.split(";")[1].split("=")[1]);f[`${T}Page`]=E}),f.total=parseInt(g)),{data:Object.assign(Object.assign({},m),f),error:null}}catch(f){if(ie(f))return{data:{clients:[]},error:f};throw f}}async _createOAuthClient(t){try{return await ce(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ie(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await ce(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ie(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await ce(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ie(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await ce(this.fetch,"DELET
146E",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(ie(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await ce(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ie(n))return{data:null,error:n};throw n}}}function H_(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const wo={debug:!!(globalThis&&gS()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class vS extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class a3 extends vS{}async function l3(e,t,n){wo.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),wo.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async i=>{if(i){wo.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await n()}finally{wo.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw wo.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new a3(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(wo.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null,"  "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function u3(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function yS(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function c3(e){return parseInt(e,16)}function d3(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function f3(e){var t;const{chainId:n,domain:r,expirationTime:i,issuedAt:o=new Date,nonce:l,notBefore:u,requestId:d,resources:f,scheme:p,uri:m,version:g}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(l&&l.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${l}`);if(!m)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(g!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${g}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
147`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const w=yS(e.address),x=p?`${p}://${r}`:r,E=e.statement?`${e.statement}
148`:"",T=`${x} wants you to sign in with your Ethereum account:
149${w}
150
151${E}`;let _=`URI: ${m}
152Version: ${g}
153Chain ID: ${n}${l?`
154Nonce: ${l}`:""}
155Issued At: ${o.toISOString()}`;if(i&&(_+=`
156Expiration Time: ${i.toISOString()}`),u&&(_+=`
157Not Before: ${u.toISOString()}`),d&&(_+=`
158Request ID: ${d}`),f){let v=`
159Resources:`;for(const b of f){if(!b||typeof b!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${b}`);v+=`
160- ${b}`}_+=v}return`${T}
161${_}`}
161class ft extends Error{constructor({message:t,code:n,cause:r,name:i}){var o;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(o=i??(r instanceof Error?r.name:void 0))!==null&&o!==void 0?o:"Unknown Error",this.code=n}}class bd extends ft{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function h3({error:e,options:t}){var n,r,i;const{publicKey:o}=t;if(!o)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new ft({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=o.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new ft({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=o.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new ft({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=o.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new ft({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new ft({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new ft({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return o.pubKeyCredParams.filter(u=>u.type==="public-key").length===0?new ft({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new ft({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const l=window.location.hostname;if(wS(l)){if(o.rp.id!==l)return new ft({message:`The RP ID "${o.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new ft({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(o.user.id.byteLength<1||o.user.id.byteLength>64)return new ft({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new ft({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new ft({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function p3({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new ft({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new ft({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(wS(r)){if(n.rpId!==r)return new ft({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new ft({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new ft({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new ft({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class g3{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const m3=new g3;function v3(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,i=Yd(e,["challenge","user","excludeCredentials"]),o=Go(t).buffer,l=Object.assign(Object.assign({},n),{id:Go(n.id).buffer}),u=Object.assign(Object.assign({},i),{challenge:o,user:l});if(r&&r.length>0){u.excludeCredentials=new Array(r.length);for(let d=0;d<r.length;d++){const f=r[d];u.excludeCredentials[d]=Object.assign(Object.assign({},f),{id:Go(f.id).buffer,type:f.type||"public-key",transports:f.transports})}}return u}function y3(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=Yd(e,["challenge","allowCredentials"]),i=Go(t).buffer,o=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){o.allowCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const u=n[l];o.allowCredentials[l]=Object.assign(Object.assign({},u),{id:Go(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return o}function w3(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:Rs(new Uint8Array(e.response.attestationObject)),clientDataJSON:Rs(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function _3(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Rs(new Uint8Array(i.authenticatorData)),clientDataJSON:Rs(new Uint8Array(i.clientDataJSON)),signature:Rs(new Uint8Array(i.signature)),userHandle:i.userHandle?Rs(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function wS(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function V_(){var e,t;return!!(At()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function b3(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new bd("Browser returned unexpected credential type",t)}:{data:null,error:new bd("Empty credential response",t)}}
161catch(t){return{data:null,error:h3({error:t,options:e})}}}async function x3(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new bd("Browser returned unexpected credential type",t)}:{data:null,error:new bd("Empty credential response",t)}}catch(t){return{data:null,error:p3({error:t,options:e})}}}const E3={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},S3={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function xd(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),n=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),r={};for(const i of e)if(i)for(const o in i){const l=i[o];if(l!==void 0)if(Array.isArray(l))r[o]=l;else if(n(l))r[o]=l;else if(t(l)){const u=r[o];t(u)?r[o]=xd(u,l):r[o]=xd(l)}else r[o]=l}return r}function T3(e,t){return xd(E3,e,t||{})}function C3(e,t){return xd(S3,e,t||{})}class k3{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:i},o){try{const{data:l,error:u}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!l)return{data:null,error:u};const d=i??m3.createNewAbortSignal();if(l.webauthn.type==="create"){const{user:f}=l.webauthn.credential_options.publicKey;f.name||(f.name=`${f.id}:${r}`),f.displayName||(f.displayName=f.name)}switch(l.webauthn.type){case"create":{const f=T3(l.webauthn.credential_options.publicKey,o==null?void 0:o.create),{data:p,error:m}=await b3({publicKey:f,signal:d});return p?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:p}},error:null}:{data:null,error:m}}case"request":{const f=C3(l.webauthn.credential_options.publicKey,o==null?void 0:o.request),{data:p,error:m}=await x3(Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:f,signal:d}));return p?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:p}},error:null}:{data:null,error:m}}}}catch(l){return ie(l)?{data:null,error:l}:{data:null,error:new Ts("Unexpected error in challenge",l)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},o){if(!n)return{data:null,error:new Vl("rpId is required for WebAuthn authentication")};try{if(!V_())return{data:null,error:new Ts("Browser does not support WebAuthn",null)};const{data:l,error:u}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:i},{request:o});if(!l)return{data:null,error:u};const{webauthn:d}=l;return this._verify({factorId:t,challengeId:l.challengeId,webauthn:{type:d.type,rpId:n,rpOrigins:r,credential_response:d.credential_response}})}catch(l){return ie(l)?{data:null,error:l}:{data:null,error:new Ts("Unexpected error in authenticate",l)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},o){if(!n)return{data:null,error:new Vl("rpId is required for WebAuthn registration")};try{if(!V_())return{data:null,error:new Ts("Browser does not support WebAuthn",null)};const{data:l,error:u}=await this._enroll({friendlyName:t});if(!l)return await this.client.mfa.listFactors().then(p=>{var m;return(m=p.data)===null||m===void 0?void 0:m.all.find(g=>g.factor_type==="webauthn"&&g.friendly_name===t&&g.status!=="unverified")}).then(p=>p?this.client.mfa.unenroll({factorId:p==null?void 0:p.id}):void 0),{data:null,error:u};const{data:d,error:f}=await this._challenge({factorId:l.id,friendlyName:l.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:i},{create:o});return d?this._verify({factorId:l.id,challengeId:d.challengeId,webauthn:{rpId:n,rpOrigins:r,type:d.webauthn.type,credential_response:d.webauthn.credential_response}}):{data:null,error:f}}catch(l){return ie(l)?{data:null,error:l}:{data:null,error:new Ts("Unexpected error in register",l)}}}}u3();const A3={url:SF,storageKey:TF,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:CF,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function q_(e,t,n){return await n()}const _o={};class ql{get jwks(){var t,n;return(n=(t=_o[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){_o[this.storageKey]=Object.assign(Object.assign({},_o[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=_o[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){_o[this.storageKey]=Object.assign(Object.assign({},_o[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const o=Object.assign(Object.assign({},A3),t);if(this.storageKey=o.storageKey,this.instanceID=(n=ql.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,ql.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.instanceID>0&&At()){const l=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(l),this.logDebugMessages&&console.trace(l)}if(this.persistSession=o.persistSession,this.autoRefreshToken=o.autoRefreshToken,this.admin=new o3({url:o.url,headers:o.headers,fetch:o.fetch}),this.url=o.url,this.headers=o.headers,this.fetch=mS(o.fetch),this.lock=o.lock||q_,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,this.throwOnError=o.throwOnError,this.lockAcquireTimeout=o.lockAcquireTimeout,o.lock?this.lock=o.lock:this.persistSession&&At()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=l3:this.lock=q_,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new k3(this)}
161,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(o.storage?this.storage=o.storage:gS()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=H_(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=H_(this.memoryStorage)),At()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(l){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",l)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async l=>{this._debug("received broadcast notification from other tab or client",l);try{await this._notifyAllSubscribers(l.data.event,l.data.session,!1)}catch(u){this._debug("#broadcastChannel","error",u)}})}this.initialize().catch(l=>{this._debug("#initialize()","error",l)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${fS}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(At()&&(n=FF(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),At()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:o}=await this._getSessionFromURL(n,r);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),OF(o)){const d=(t=o.details)===null||t===void 0?void 0:t.code;if(d==="identity_already_exists"||d==="identity_not_found"||d==="single_identity_not_deletable")return{error:o}}return{error:o}}const{session:l,redirectType:u}=i;return this._debug("#_initialize()","detected session in URL",l,"redirect type",u),await this._saveSession(l),setTimeout(async()=>{u==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",l):await this._notifyAllSubscribers("SIGNED_IN",l)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return ie(n)?this._returnResult({error:n}):this._returnResult({error:new Ts("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,i;try{const o=await ce(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:tr}),{data:l,error:u}=o;if(u||!l)return this._returnResult({data:{user:null,session:null},error:u});const d=l.session,f=l.user;return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",d)),this._returnResult({data:{user:f,session:d},error:null})}catch(o){if(ie(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signUp(t){var n,r,i;try{let o;if("email"in t){const{email:p,password:m,options:g}=t;let w=null,x=null;this.flowType==="pkce"&&([w,x]=await vo(this.storage,this.storageKey)),o=await ce(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:g==null?void 0:g.emailRedirectTo,body:{email:p,password:m,data:(n=g==null?void 0:g.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:g==null?void 0:g.captchaToken},code_challenge:w,code_challenge_method:x},xform:tr})}else if("phone"in t){const{phone:p,password:m,options:g}=t;o=await ce(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:p,password:m,data:(r=g==null?void 0:g.data)!==null&&r!==void 0?r:{},channel:(i=g==null?void 0:g.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:g==null?void 0:g.captchaToken}},xform:tr})}else throw new _c("You must provide either an email or phone number and a password");const{data:l,error:u}=o;if(u||!l)return await kt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:u});const d=l.session,f=l.user;return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",d)),this._returnResult({data:{user:f,session:d},error:null})}catch(o){if(await kt(this.storage,`${this.storageKey}-code-verifier`),ie(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithPassword(t){try{let n;if("email"in t){const{email:o,password:l,options:u}=t;n=await ce(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:l,gotrue_meta_security:{captcha_token:u==null?void 0:u.captchaToken}},xform:z_})}else if("phone"in t){const{phone:o,password:l,options:u}=t;n=await ce(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:l,gotrue_meta_security:{captcha_token:u==null?void 0:u.captchaToken}},xform:z_})}else throw new _c("You must provide either an email or phone number and a password");const{data:r,error:i}=n;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!r||!r.session||!r.user){const o=new mo;return this._returnResult({data:{user:null,session:null},error:o})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:i})}catch(n){if(ie(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,i,o;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(o=t.o
161ptions)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,i,o,l,u,d,f,p,m,g;let w,x;if("message"in t)w=t.message,x=t.signature;else{const{chain:E,wallet:T,statement:_,options:v}=t;let b;if(At())if(typeof T=="object")b=T;else{const G=window;if("ethereum"in G&&typeof G.ethereum=="object"&&"request"in G.ethereum&&typeof G.ethereum.request=="function")b=G.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof T!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");b=T}const A=new URL((n=v==null?void 0:v.url)!==null&&n!==void 0?n:window.location.href),O=await b.request({method:"eth_requestAccounts"}).then(G=>G).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!O||O.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const $=yS(O[0]);let D=(r=v==null?void 0:v.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!D){const G=await b.request({method:"eth_chainId"});D=c3(G)}const U={domain:A.host,address:$,statement:_,uri:A.href,version:"1",chainId:D,nonce:(i=v==null?void 0:v.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(l=(o=v==null?void 0:v.signInWithEthereum)===null||o===void 0?void 0:o.issuedAt)!==null&&l!==void 0?l:new Date,expirationTime:(u=v==null?void 0:v.signInWithEthereum)===null||u===void 0?void 0:u.expirationTime,notBefore:(d=v==null?void 0:v.signInWithEthereum)===null||d===void 0?void 0:d.notBefore,requestId:(f=v==null?void 0:v.signInWithEthereum)===null||f===void 0?void 0:f.requestId,resources:(p=v==null?void 0:v.signInWithEthereum)===null||p===void 0?void 0:p.resources};w=f3(U),x=await b.request({method:"personal_sign",params:[d3(w),$]})}try{const{data:E,error:T}=await ce(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:w,signature:x},!((m=t.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(g=t.options)===null||g===void 0?void 0:g.captchaToken}}:null),xform:tr});if(T)throw T;if(!E||!E.session||!E.user){const _=new mo;return this._returnResult({data:{user:null,session:null},error:_})}return E.session&&(await this._saveSession(E.session),await this._notifyAllSubscribers("SIGNED_IN",E.session)),this._returnResult({data:Object.assign({},E),error:T})}catch(E){if(ie(E))return this._returnResult({data:{user:null,session:null},error:E});throw E}}async signInWithSolana(t){var n,r,i,o,l,u,d,f,p,m,g,w;let x,E;if("message"in t)x=t.message,E=t.signature;else{const{chain:T,wallet:_,statement:v,options:b}=t;let A;if(At())if(typeof _=="object")A=_;else{const $=window;if("solana"in $&&typeof $.solana=="object"&&("signIn"in $.solana&&typeof $.solana.signIn=="function"||"signMessage"in $.solana&&typeof $.solana.signMessage=="function"))A=$.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof _!="object"||!(b!=null&&b.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");A=_}
161const O=new URL((n=b==null?void 0:b.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in A&&A.signIn){const $=await A.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},b==null?void 0:b.signInWithSolana),{version:"1",domain:O.host,uri:O.href}),v?{statement:v}:null));let D;if(Array.isArray($)&&$[0]&&typeof $[0]=="object")D=$[0];else if($&&typeof $=="object"&&"signedMessage"in $&&"signature"in $)D=$;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in D&&"signature"in D&&(typeof D.signedMessage=="string"||D.signedMessage instanceof Uint8Array)&&D.signature instanceof Uint8Array)x=typeof D.signedMessage=="string"?D.signedMessage:new TextDecoder().decode(D.signedMessage),E=D.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in A)||typeof A.signMessage!="function"||!("publicKey"in A)||typeof A!="object"||!A.publicKey||!("toBase58"in A.publicKey)||typeof A.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");x=[`${O.host} wants you to sign in with your Solana account:`,A.publicKey.toBase58(),...v?["",v,""]:[""],"Version: 1",`URI: ${O.href}`,`Issued At: ${(i=(r=b==null?void 0:b.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((o=b==null?void 0:b.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${b.signInWithSolana.notBefore}`]:[],...!((l=b==null?void 0:b.signInWithSolana)===null||l===void 0)&&l.expirationTime?[`Expiration Time: ${b.signInWithSolana.expirationTime}`]:[],...!((u=b==null?void 0:b.signInWithSolana)===null||u===void 0)&&u.chainId?[`Chain ID: ${b.signInWithSolana.chainId}`]:[],...!((d=b==null?void 0:b.signInWithSolana)===null||d===void 0)&&d.nonce?[`Nonce: ${b.signInWithSolana.nonce}`]:[],...!((f=b==null?void 0:b.signInWithSolana)===null||f===void 0)&&f.requestId?[`Request ID: ${b.signInWithSolana.requestId}`]:[],...!((m=(p=b==null?void 0:b.signInWithSolana)===null||p===void 0?void 0:p.resources)===null||m===void 0)&&m.length?["Resources",...b.signInWithSolana.resources.map(D=>`- ${D}`)]:[]].join(`
162`);const $=await A.signMessage(new TextEncoder().encode(x),"utf8");if(!$||!($ instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");E=$}}try{const{data:T,error:_}=await ce(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:x,signature:Rs(E)},!((g=t.options)===null||g===void 0)&&g.captchaToken?{gotrue_meta_security:{captcha_token:(w=t.options)===null||w===void 0?void 0:w.captchaToken}}:null),xform:tr});if(_)throw _;if(!T||!T.session||!T.user){const v=new mo;return this._returnResult({data:{user:null,session:null},error:v})}return T.session&&(await this._saveSession(T.session),await this._notifyAllSubscribers("SIGNED_IN",T.session)),this._returnResult({data:Object.assign({},T),error:_})}catch(T){if(ie(T))return this._returnResult({data:{user:null,session:null},error:T});throw T}}async _exchangeCodeForSession(t){const n=await _s(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new IF;const{data:o,error:l}=await ce(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:tr});if(await kt(this.storage,`${this.storageKey}-code-verifier`),l)throw l;if(!o||!o.session||!o.user){const u=new mo;return this._returnResult({data:{user:null,session:null,redirectType:null},error:u})}return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),this._returnResult({data:Object.assign(Object.assign({},o),{redirectType:i??null}),error:l})}catch(o){if(await kt(this.storage,`${this.storageKey}-code-verifier`),ie(o))return this._returnResult({data:{user:null,session:null,redirectType:null},error:o});throw o}}async signInWithIdToken(t){try{const{options:n,provider:r,token:i,access_token:o,nonce:l}=t,u=await ce(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:o,nonce:l,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:tr}),{data:d,error:f}=u;if(f)return this._returnResult({data:{user:null,session:null},error:f});if(!d||!d.session||!d.user){const p=new mo;return this._returnResult({data:{user:null,session:null},error:p})}return d.session&&(await this._saveSession(d.session),await this._notifyAllSubscribers("SIGNED_IN",d.session)),this._returnResult({data:d,error:f})}catch(n){if(ie(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,i,o,l;try{if("email"in t){const{email:u,options:d}=t;let f=null,p=null;this.flowType==="pkce"&&([f,p]=await vo(this.storage,this.storageKey));const{error:m}=await ce(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:u,data:(n=d==null?void 0:d.data)!==null&&n!==void 0?n:{},create_user:(r=d==null?void 0:d.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:d==null?void 0:d.captchaToken},code_challenge:f,code_challenge_method:p},redirectTo:d==null?void 0:d.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:m})}if("phone"in t){const{phone:u,options:d}=t,{data:f,error:p}=await ce(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:u,data:(i=d==null?void 0:d.data)!==null&&i!==void 0?i:{},create_user:(o=d==null?void 0:d.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:d==null?void 0:d.captchaToken},channel:(l=d==null?void 0:d.channel)!==null&&l!==void 0?l:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:f==null?void 0:f.message_id},error:p})}throw new _c("You must provide either an email or phone number.")}catch(u){if(await kt(this.storage,`${this.storageKey}-code-verifier`),ie(u))return this._returnResult({data:{user:null,session:null},error:u});throw u}}async verifyOtp(t){var n,r;try{let i,o;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,o=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:l,error:u}=await ce(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:o}}),redirectTo:i,xform:tr});if(u)throw u;if(!l)throw new Error("An error occurred on token verification.");const d=l.session,f=l.user;return d!=null&&d.access_token&&(await this._saveSession(d),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",d)),this._returnResult({data:{user:f,session:d},error:null})}catch(i){if(ie(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var n,r,i,o,l;try{let u=null,d=null;this.flowType==="pkce"&&([u,d]=await vo(this.storage,this.storageKey));const f=await ce(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:u,code_challenge_method:d}),headers:this.headers,xform:r3});return!((o=f.data)===null||o===void 0)&&o.url&&At()&&!(!((l=t.options)===null||l===void 0)&&l.skipBrowserRedirect)&&window.location.assign(f.data.url),this._returnResult(f)}catch(u){if(await kt(this.storage,`${this.storageKey}-code-verifier`),ie(u))return this._returnResult({data:null,error:u});throw u}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new wn;const{error:i}=await ce(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(ie(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:i,options:o}=t,{error:l}=await ce(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:l})}else if("phone"in t){const{phone:r,type:i,options:o}=t,{data:l,error:u}=await ce(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:l==null?void 0:l.message_id},error:u})}throw new _c("You must provide either an email or phone number and a type")}catch(n){if(ie(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await _s(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
162id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<rp:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const l=await _s(this.userStorage,this.storageKey+"-user");l!=null&&l.user?t.user=l.user:t.user=op()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const l={value:this.suppressGetSessionWarning};t.user=ZF(t.user,l),l.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{session:null},error:o}):this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await ce(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Oi}):await this._useSession(async n=>{var r,i,o;const{data:l,error:u}=n;if(u)throw u;return!(!((r=l.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new wn}:await ce(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(i=l.session)===null||i===void 0?void 0:i.access_token)!==null&&o!==void 0?o:void 0,xform:Oi})})}catch(n){if(ie(n))return ip(n)&&(await this._removeSession(),await kt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:i,error:o}=r;if(o)throw o;if(!i.session)throw new wn;const l=i.session;let u=null,d=null;this.flowType==="pkce"&&t.email!=null&&([u,d]=await vo(this.storage,this.storageKey));const{data:f,error:p}=await ce(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:u,code_challenge_method:d}),jwt:l.access_token,xform:Oi});if(p)throw p;return l.user=f.user,await this._saveSession(l),await this._notifyAllSubscribers("USER_UPDATED",l),this._returnResult({data:{user:l.user},error:null})})}catch(r){if(await kt(this.storage,`${this.storageKey}-code-verifier`),ie(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new wn;const n=Date.now()/1e3;let r=n,i=!0,o=null;const{payload:l}=xc(t.access_token);if(l.exp&&(r=l.exp,i=r<=n),i){const{data:u,error:d}=await this._callRefreshToken(t.refresh_token);if(d)return this._returnResult({data:{user:null,session:null},error:d});if(!u)return{data:{user:null,session:null},error:null};o=u}else{const{data:u,error:d}=await this._getUser(t.access_token);if(d)return this._returnResult({data:{user:null,session:null},error:d});o={access_token:t.access_token,refresh_token:t.refresh_token,user:u.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return this._returnResult({data:{user:o.user,session:o},error:null})}catch(n){if(ie(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:l,error:u}=n;if(u)throw u;t=(r=l.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new wn;const{data:i,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{user:null,session:null},error:o}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(ie(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!At())throw new bc("No browser detected.");
162if(t.error||t.error_description||t.error_code)throw new bc(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new $_("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new bc("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new $_("No code detected.");const{data:v,error:b}=await this._exchangeCodeForSession(t.code);if(b)throw b;const A=new URL(window.location.href);return A.searchParams.delete("code"),window.history.replaceState(window.history.state,"",A.toString()),{data:{session:v.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:o,refresh_token:l,expires_in:u,expires_at:d,token_type:f}=t;if(!o||!u||!l||!f)throw new bc("No session defined in URL");const p=Math.round(Date.now()/1e3),m=parseInt(u);let g=p+m;d&&(g=parseInt(d));const w=g-p;w*1e3<=Eo&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${w}s, should have been closer to ${m}s`);const x=g-m;p-x>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",x,g,p):p-x<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",x,g,p);const{data:E,error:T}=await this._getUser(o);if(T)throw T;const _={provider_token:r,provider_refresh_token:i,access_token:o,expires_in:m,expires_at:g,refresh_token:l,token_type:f,user:E.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:_,redirectType:t.type},error:null})}catch(r){if(ie(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await _s(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:i,error:o}=n;if(o&&!ip(o))return this._returnResult({error:o});const l=(r=i.session)===null||r===void 0?void 0:r.access_token;if(l){const{error:u}=await this.admin.signOut(l,t);if(u&&!(PF(u)&&(u.status===404||u.status===401||u.status===403)||ip(u)))return this._returnResult({error:u})}return t!=="others"&&(await this._removeSession(),await kt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=UF(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,i;try{const{data:{session:o},error:l}=n;if(l)throw l;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",t,"session",o)}catch(o){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",o),console.error(o)}})}async resetPasswordForEmail(t,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await vo(this.storage,this.storageKey,!0));try{return await ce(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(o){if(await kt(this.storage,`${this.storageKey}-code-verifier`),ie(o))return this._returnResult({data:null,error:o});throw o}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(ie(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:i}=await this._useSession(async o=>{var l,u,d,f,p;const{data:m,error:g}=o;if(g)throw g;const w=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(l=t.options)===null||l===void 0?void 0:l.redirectTo,scopes:(u=t.options)===null||u===void 0?void 0:u.scopes,queryParams:(d=t.options)===null||d===void 0?void 0:d.queryParams,skipBrowserRedirect:!0});return await ce(this.fetch,"GET",w,{headers:this.headers,jwt:(p=(f=m.session)===null||f===void 0?void 0:f.access_token)!==null&&p!==void 0?p:void 0})});if(i)throw i;return At()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(ie(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:i,data:{session:o}}=n;if(i)throw i;const{options:l,provider:u,token:d,access_token:f,nonce:p}=t,m=await ce(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=o==null?void 0:o.access_token)!==null&&r!==void 0?r:void 0,body:{provider:u,id_token:d,access_token:f,nonce:p,link_identity:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:tr}),{data:g,error:w}=m;return w?this._returnResult({data:{user:null,session:null},error:w}):!g||!g.session||!g.user?this._returnResult({data:{user:null,session:null},error:new mo}):(g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("USER_UPDATED",g.session)),this._returnResult({data:g,error:w}))}catch(i){if(await kt(this.storage,`${this.storageKey}-code-verifier`),ie(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,i;const{data:o,error:l}=n;if(l)throw l;
162return await ce(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(r=o.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(ie(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await WF(async i=>(i>0&&await zF(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await ce(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:tr})),(i,o)=>{const l=200*Math.pow(2,i);return o&&sp(o)&&Date.now()+l-r<Eo})}catch(r){if(this._debug(n,"error",r),ie(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),At()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const i=await _s(this.storage,this.storageKey);if(i&&this.userStorage){let l=await _s(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!l&&(l={user:i.user},await So(this.userStorage,this.storageKey+"-user",l)),i.user=(t=l==null?void 0:l.user)!==null&&t!==void 0?t:op()}else if(i&&!i.user&&!i.user){const l=await _s(this.storage,this.storageKey+"-user");l&&(l!=null&&l.user)?(i.user=l.user,await kt(this.storage,this.storageKey+"-user"),await So(this.storage,this.storageKey,i)):i.user=op()}if(this._debug(r,"session from storage",i),!this._isValidSession(i)){this._debug(r,"session is not valid"),i!==null&&await this._removeSession();return}const o=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<rp;if(this._debug(r,`session has${o?"":" not"} expired with margin of ${rp}s`),o){if(this.autoRefreshToken&&i.refresh_token){const{error:l}=await this._callRefreshToken(i.refresh_token);l&&(console.error(l),sp(l)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",l),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:l,error:u}=await this._getUser(i.access_token);!u&&(l!=null&&l.user)?(i.user=l.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(l){console.error("Error getting user data:",l),this._debug(r,"error getting user data, skipping SIGNED_IN notification",l)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(r,"error",i),console.error(i);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new wn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new ef;const{data:o,error:l}=await this._refreshAccessToken(t);if(l)throw l;if(!o.session)throw new wn;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const u={data:o.session,error:null};return this.refreshingDeferred.resolve(u),u}catch(o){if(this._debug(i,"error",o),ie(o)){const l={data:null,error:o};return sp(o)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(l),l}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(o),o}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,r=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const o=[],l=Array.from(this.stateChangeEmitters.values()).map(async u=>{try{await u.callback(t,n)}catch(d){o.push(d)}});if(await Promise.all(l),o.length>0){for(let u=0;u<o.length;u+=1)console.error(o[u]);throw o[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await kt(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await So(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const o=F_(i);await So(this.storage,this.storageKey,o)}else{const i=F_(n);await So(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await kt(this.storage,this.storageKey),await kt(this.storage,this.storageKey+"-code-verifier"),await kt(this.storage,this.storageKey+"-user"),this.userStorage&&await kt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&At()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
162catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Eo);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((r.expires_at*1e3-t)/Eo);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${Eo}ms, refresh threshold is ${Pg} ticks`),i<=Pg&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof vS)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!At()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[o,l]=await vo(this.storage,this.storageKey),u=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(l)}`});i.push(u.toString())}if(r!=null&&r.queryParams){const o=new URLSearchParams(r.queryParams);i.push(o.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:i,error:o}=n;return o?this._returnResult({data:null,error:o}):await ce(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ie(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,i;const{data:o,error:l}=n;if(l)return this._returnResult({data:null,error:l});const u=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:d,error:f}=await ce(this.fetch,"POST",`${this.url}/factors`,{body:u,headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token});return f?this._returnResult({data:null,error:f}):(t.factorType==="totp"&&d.type==="totp"&&(!((i=d==null?void 0:d.totp)===null||i===void 0)&&i.qr_code)&&(d.totp.qr_code=`data:image/svg+xml;utf-8,${d.totp.qr_code}`),this._returnResult({data:d,error:null}))})}catch(n){if(ie(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:o}=n;
162if(o)return this._returnResult({data:null,error:o});const l=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?w3(t.webauthn.credential_response):_3(t.webauthn.credential_response)})}:{code:t.code}),{data:u,error:d}=await ce(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:l,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return d?this._returnResult({data:null,error:d}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+u.expires_in},u)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",u),this._returnResult({data:u,error:d}))})}catch(n){if(ie(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:o}=n;if(o)return this._returnResult({data:null,error:o});const l=await ce(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});if(l.error)return l;const{data:u}=l;if(u.type!=="webauthn")return{data:u,error:null};switch(u.webauthn.type){case"create":return{data:Object.assign(Object.assign({},u),{webauthn:Object.assign(Object.assign({},u.webauthn),{credential_options:Object.assign(Object.assign({},u.webauthn.credential_options),{publicKey:v3(u.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},u),{webauthn:Object.assign(Object.assign({},u.webauthn),{credential_options:Object.assign(Object.assign({},u.webauthn.credential_options),{publicKey:y3(u.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(ie(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const i={all:[],phone:[],totp:[],webauthn:[]};for(const o of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])i.all.push(o),o.status==="verified"&&i[o.factor_type].push(o);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,i,o;if(t)try{const{payload:w}=xc(t);let x=null;w.aal&&(x=w.aal);let E=x;const{data:{user:T},error:_}=await this.getUser(t);if(_)return this._returnResult({data:null,error:_});((r=(n=T==null?void 0:T.factors)===null||n===void 0?void 0:n.filter(A=>A.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(E="aal2");const b=w.amr||[];return{data:{currentLevel:x,nextLevel:E,currentAuthenticationMethods:b},error:null}}catch(w){if(ie(w))return this._returnResult({data:null,error:w});throw w}const{data:{session:l},error:u}
162=await this.getSession();if(u)return this._returnResult({data:null,error:u});if(!l)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:d}=xc(l.access_token);let f=null;d.aal&&(f=d.aal);let p=f;((o=(i=l.user.factors)===null||i===void 0?void 0:i.filter(w=>w.status==="verified"))!==null&&o!==void 0?o:[]).length>0&&(p="aal2");const g=d.amr||[];return{data:{currentLevel:f,nextLevel:p,currentAuthenticationMethods:g},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?await ce(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new wn})})}catch(n){if(ie(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:o}=r;if(o)return this._returnResult({data:null,error:o});if(!i)return this._returnResult({data:null,error:new wn});const l=await ce(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:u=>({data:u,error:null})});return l.data&&l.data.redirect_url&&At()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(l.data.redirect_url),l})}catch(r){if(ie(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:o}=r;if(o)return this._returnResult({data:null,error:o});if(!i)return this._returnResult({data:null,error:new wn});const l=await ce(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:u=>({data:u,error:null})});return l.data&&l.data.redirect_url&&At()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(l.data.redirect_url),l})}catch(r){if(ie(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await ce(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new wn})})}catch(t){if(ie(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?(await ce(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new wn})})}catch(n){if(ie(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(u=>u.kid===t);if(r)return r;const i=Date.now();if(r=this.jwks.keys.find(u=>u.kid===t),r&&this.jwks_cached_at+AF>i)return r;const{data:o,error:l}=await ce(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(l)throw l;return!o.keys||o.keys.length===0||(this.jwks=o,this.jwks_cached_at=i,r=o.keys.find(u=>u.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:w,error:x}
162=await this.getSession();if(x||!w.session)return this._returnResult({data:null,error:x});r=w.session.access_token}const{header:i,payload:o,signature:l,raw:{header:u,payload:d}}=xc(r);n!=null&&n.allowExpired||JF(o.exp);const f=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!f){const{error:w}=await this.getUser(r);if(w)throw w;return{data:{claims:o,header:i,signature:l},error:null}}const p=YF(i.alg),m=await crypto.subtle.importKey("jwk",f,p,!0,["verify"]);if(!await crypto.subtle.verify(p,m,l,jF(`${u}.${d}`)))throw new Lg("Invalid JWT signature");return{data:{claims:o,header:i,signature:l},error:null}}catch(r){if(ie(r))return this._returnResult({data:null,error:r});throw r}}}ql.nextInstanceID={};const R3=ql,P3="2.93.1";let sl="";typeof Deno<"u"?sl="deno":typeof document<"u"?sl="web":typeof navigator<"u"&&navigator.product==="ReactNative"?sl="react-native":sl="node";function O3(){const e=globalThis.process;if(e&&e.platform){const t=e.platform;if(t==="darwin")return"macOS";if(t==="win32")return"Windows";if(t==="linux")return"Linux";if(t==="android")return"Android"}if(typeof navigator<"u"&&navigator.userAgentData&&navigator.userAgentData.platform){const t=navigator.userAgentData.platform;if(t==="macOS")return"macOS";if(t==="Windows")return"Windows";if(t==="Linux")return"Linux";if(t==="Android")return"Android";if(t==="iOS")return"iOS"}return null}function I3(){const e=globalThis.process;if(e){const t=e.versions;if(t&&t.node&&typeof window>"u")try{const n=globalThis.require;if(n)return n("os").release()}catch{return null}}if(typeof Deno<"u"&&Deno.osRelease)try{return Deno.osRelease()}catch{return null}return typeof navigator<"u"&&navigator.userAgentData&&navigator.userAgentData.platformVersion?navigator.userAgentData.platformVersion:null}function L3(){if(typeof Deno<"u")return"deno";if(typeof Bun<"u")return"bun";const e=globalThis.process;if(e){const t=e.versions;if(t&&t.node)return"node"}return null}function N3(){if(typeof Deno<"u"&&Deno.version)return Deno.version.deno;if(typeof Bun<"u"&&Bun.version)return Bun.version;const e=globalThis.process;if(e){const t=e.versions;if(t&&t.node)return t.node}return null}function $3(){const e={"X-Client-Info":`supabase-js-${sl}/${P3}`},t=O3();t&&(e["X-Supabase-Client-Platform"]=t);const n=I3();n&&(e["X-Supabase-Client-Platform-Version"]=n);const r=L3();r&&(e["X-Supabase-Client-Runtime"]=r);const i=N3();return i&&(e["X-Supabase-Client-Runtime-Version"]=i),e}const D3=$3(),j3={headers:D3},M3={schema:"public"},U3={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},F3={};function Kl(e){"@babel/helpers - typeof";return Kl=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},Kl(e)}function B3(e,t){if(Kl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Kl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function z3(e){var t=B3(e,"string");return Kl(t)=="symbol"?t:t+""}function W3(e,t,n){return(t=z3(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K_(Object(n),!0).forEach(function(r){W3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const H3=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),V3=()=>Headers,q3=(e,t,n)=>{const r=H3(n),i=V3();return async(o,l)=>{var u;
162const d=(u=await t())!==null&&u!==void 0?u:e;let f=new i(l==null?void 0:l.headers);return f.has("apikey")||f.set("apikey",e),f.has("Authorization")||f.set("Authorization",`Bearer ${d}`),r(o,st(st({},l),{},{headers:f}))}};function K3(e){return e.endsWith("/")?e:e+"/"}function G3(e,t){var n,r;const{db:i,auth:o,realtime:l,global:u}=e,{db:d,auth:f,realtime:p,global:m}=t,g={db:st(st({},d),i),auth:st(st({},f),o),realtime:st(st({},p),l),storage:{},global:st(st(st({},m),u),{},{headers:st(st({},(n=m==null?void 0:m.headers)!==null&&n!==void 0?n:{}),(r=u==null?void 0:u.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?g.accessToken=e.accessToken:delete g.accessToken,g}function Q3(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(K3(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var J3=class extends R3{constructor(e){super(e)}},Y3=class{constructor(e,t,n){var r,i;this.supabaseUrl=e,this.supabaseKey=t;const o=Q3(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",o),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",o),this.storageUrl=new URL("storage/v1",o),this.functionsUrl=new URL("functions/v1",o);const l=`sb-${o.hostname.split(".")[0]}-auth-token`,u={db:M3,realtime:F3,auth:st(st({},U3),{},{storageKey:l}),global:j3},d=G3(n??{},u);if(this.storageKey=(r=d.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(i=d.global.headers)!==null&&i!==void 0?i:{},d.accessToken)this.accessToken=d.accessToken,this.auth=new Proxy({},{get:(p,m)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(m)} is not possible`)}});else{var f;this.auth=this._initSupabaseAuthClient((f=d.auth)!==null&&f!==void 0?f:{},this.headers,d.global.fetch)}this.fetch=q3(t,this._getAccessToken.bind(this),d.global.fetch),this.realtime=this._initRealtimeClient(st({headers:this.headers,accessToken:this._getAccessToken.bind(this)},d.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(p=>this.realtime.setAuth(p)).catch(p=>console.warn("Failed to set initial Realtime auth token:",p)),this.rest=new RU(new URL("rest/v1",o).href,{headers:this.headers,schema:d.db.schema,fetch:this.fetch}),this.storage=new EF(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),d.accessToken||this._listenForAuthEvents()}get functions(){return new SU(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,storageKey:o,flowType:l,lock:u,debug:d,throwOnError:f},p,m){const g={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new J3({url:this.authUrl.href,headers:st(st({},g),p),storageKey:o,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,flowType:l,lock:u,debug:d,throwOnError:f,fetch:m,hasCustomAuthorizationHeader:Object.keys(this.headers).some(w=>w.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new qU(this.realtimeUrl.href,st(st({},e),{},{params:st(st({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const X3=(e,t,n)=>new Y3(e,t,n);function Z3(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}Z3()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
162ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function eB(){var T,_;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(v=>e===v||e.endsWith("."+v)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",i=n?((T=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:T[1])??((_=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:_[1]):void 0,o=window.parent&&window.parent!==window;if(!i||!o)return localStorage;const l=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),u=l?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,d=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),f=d&&u.test(d)?[d]:l?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],p="lovable-preview-auth:result",m=2e3,g=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),w=(v,b,A)=>new Promise(O=>{const $=g();let D=!1,U;const G=Z=>{D||(D=!0,clearTimeout(U),window.removeEventListener("message",Y),O(Z))},Y=Z=>{if(f.indexOf(Z.origin)<0)return;const he=Z.data;he&&he.type===p&&he.requestId===$&&G(he)};window.addEventListener("message",Y);const se={type:v,requestId:$,projectId:i,key:b};A!==void 0&&(se.value=A);for(const Z of f)window.parent.postMessage(se,Z);U=setTimeout(()=>G(null),m)});let x=!0;const E=250;return{getItem:async v=>{let b=await w("lovable-preview-auth:get",v);return!b&&x&&(await new Promise(A=>setTimeout(A,E)),b=await w("lovable-preview-auth:get",v)),x=!1,b&&b.ok&&typeof b.value=="string"?b.value===""?(localStorage.removeItem(v),null):b.value:localStorage.getItem(v)},setItem:(v,b)=>(localStorage.setItem(v,b),w("lovable-preview-auth:set",v,b).then(()=>{})),removeItem:v=>(localStorage.removeItem(v),w("lovable-preview-auth:remove",v).then(()=>{}))}}const tB="https://pojdfodrwsboueqpimcc.supabase.co",nB="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InBvamRmb2Ryd3Nib3VlcXBpbWNjIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njk1MzUwODUsImV4cCI6MjA4NTExMTA4NX0.B-RU0HjfiPnrH1lPvI_3vFKN5eCHfglKcIpzRvGIFuE",Si=X3(tB,nB,{auth:{storage:eB(),persistSession:!0,autoRefreshToken:!0}}),_S=k.createContext(void 0);function rB({children:e}){const[t,n]=k.useState(null),[r,i]=k.useState(null),[o,l]=k.useState(!0),[u,d]=k.useState(!1),[f,p]=k.useState(!1),m=async T=>{if(!t)return!1;const{data:_,error:v}=await Si.rpc("has_role",{_user_id:t.id,_role:T});return v?(console.error("Error checking role:",v),!1):_===!0},g=async T=>{if(!T){d(!1),p(!1);return}const[_,v]=await Promise.all([Si.rpc("has_role",{_user_id:T.id,_role:"admin"}),Si.rpc("has_role",{_user_id:T.id,_role:"editor"})]);d(_.data===!0),p(v.data===!0)};k.useEffect(()=>{const{data:{subscription:T}}=Si.auth.onAuthStateChange(async(_,v)=>{i(v),n((v==null?void 0:v.user)??null),v!=null&&v.user?setTimeout(()=>g(v.user),0):(d(!1),p(!1)),l(!1)});return Si.auth.getSession().then(({data:{session:_}})=>{i(_),n((_==null?void 0:_.user)??null),_!=null&&_.user&&g(_.user),l(!1)}),()=>{T.unsubscribe()}},[]);const w=async(T,_)=>{const{error:v}=await Si.auth.signInWithPassword({email:T,password:_});return{error:v}},x=async(T,_,v)=>{const{error:b}=await Si.auth.signUp({email:T,password:_,options:{emailRedirectTo:window.location.origin,data:{full_name:v||""}}});return{error:b}},E=async()=>{await Si.auth.signOut(),n(null),i(null),d(!1),p(!1)};return L.jsx(_S.Provider,{value:{user:t,session:r,loading:o,isAdmin:u,isEditor:f,signIn:w,signUp:x,signOut:E,checkRole:m},children:e})}function QB(){const e=k.useContext(_S);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e}const lp="https://beinbr.com",iB="https://beinbr.com/lovable-uploads/84e20da1-0faa-4200-ad0c-1a58ece20e8c.png",sB=({title:e="Be in - Escritórios Sob Medida e Coworking | Workspace as a Service",description:t="Be in oferece escritórios sob medida e coworking premium em São Paulo. Worksp
162ace as a Service com design personalizado, sem investimento inicial.",keywords:n,canonical:r,ogImage:i=iB,ogType:o="website",jsonLd:l})=>{const u=r?r.startsWith("http")?r:`${lp}${r}`:lp,d=i.startsWith("http")?i:`${lp}${i}`,f=l?Array.isArray(l)?l:[l]:[];return L.jsxs(ZN,{children:[L.jsx("title",{children:e}),L.jsx("meta",{name:"description",content:t}),n&&L.jsx("meta",{name:"keywords",content:n}),L.jsx("link",{rel:"canonical",href:u}),L.jsx("meta",{property:"og:type",content:o}),L.jsx("meta",{property:"og:title",content:e}),L.jsx("meta",{property:"og:description",content:t}),L.jsx("meta",{property:"og:url",content:u}),L.jsx("meta",{property:"og:image",content:d}),L.jsx("meta",{property:"og:site_name",content:"Be in"}),L.jsx("meta",{property:"og:locale",content:"pt_BR"}),L.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),L.jsx("meta",{name:"twitter:url",content:u}),L.jsx("meta",{name:"twitter:title",content:e}),L.jsx("meta",{name:"twitter:description",content:t}),L.jsx("meta",{name:"twitter:image",content:d}),f.map((p,m)=>L.jsx("script",{type:"application/ld+json",children:JSON.stringify(p)},m))]})},Be=e=>k.lazy(()=>e().catch(t=>{const n="lovable-chunk-reload";if(!sessionStorage.getItem(n))return sessionStorage.setItem(n,"1"),window.location.reload(),new Promise(()=>{});throw t})),oB=Be(()=>Fe(()=>import("./Index-DyB5HCy1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]))),aB=Be(()=>Fe(()=>import("./NotFound-BfzrsSVj.js"),[])),lB=Be(()=>Fe(()=>import("./EscritoriosSobMedida-BgI2x1ID.js"),__vite__mapDeps([27,1,2,3,4,7,25,28,29,19,30,31,18,17,32,33,34,35]))),uB=Be(()=>Fe(()=>import("./QuemSomos-Cl0BfZlP.js"),__vite__mapDeps([36,1,2,3,4,31,37,38,39,6,7,8,9,10,35]))),cB=Be(()=>Fe(()=>import("./Contato-DyA7niEd.js"),__vite__mapDeps([40,1,2,3,4,12,14,33,41,7,18,24,35]))),dB=Be(()=>Fe(()=>import("./Blog-BwqpDBLq.js"),__vite__mapDeps([42,1,2,3,4,43,9,10,13,33,5,44,45,35]))),fB=Be(()=>Fe(()=>import("./BlogPost-BGRjBwA_.js"),__vite__mapDeps([46,43,9,1,2,3,4,13,24,33,10,7,35]))),hB=Be(()=>Fe(()=>import("./Coworking-1RE2lDD6.js"),__vite__mapDeps([47,1,2,3,4,48,37,24,49,29,7,39,17,50,15,23,51,52,19,41,35]))),pB=Be(()=>Fe(()=>import("./CoworkingPinheiros-SPYn0o07.js"),__vite__mapDeps([53,1,2,3,4,48,37,24,49,29,7,39,17,50,15,23,51,52,19,54,55,56,44,45,30,34,35,57]))),gB=Be(()=>Fe(()=>import("./CoworkingBrooklin-DGn4j_ch.js"),__vite__mapDeps([58,1,2,3,4,48,37,24,49,29,7,39,17,50,15,23,51,52,19,54,55,56,44,45,30,34,35,57]))),mB=Be(()=>Fe(()=>import("./Eventos-B8x0JB4m.js"),__vite__mapDeps([59,1,2,3,4,32,60,55,56,44,45,11,12,13,14,15,16,7,35,24,33,51,23,52]))),vB=Be(()=>Fe(()=>import("./LPAuditorio-D5cJIDS9.js"),__vite__mapDeps([61,1,2,3,4,60,55,56,44,45,62,15,51,23,52]))),yB=Be(()=>Fe(()=>import("./EnderecoFiscal-DatkWcE0.js"),__vite__mapDeps([63,1,2,3,4,7,22,33,62,15,49,29,39,17,23,52,64,24,13,26,65,66,67,11,12,14,16,35]))),wB=Be(()=>Fe(()=>import("./FiscalAddress-DqQB8weg.js"),__vite__mapDeps([68,1,2,3,4,7,22,33,62,15,17,39,23,52,64,24,13,26,65,66,67,11,12,14,16,35]))),_B=Be(()=>Fe(()=>import("./CaseMGI-DjZdMq_S.js"),__vite__mapDeps([69,35]))),bB=Be(()=>Fe(()=>import("./EscritorioVirtual-Bt4feOt-.js"),__vite__mapDeps([70,1,2,3,4,11,12,13,14,15,16,7,49,29,39,17,65,66,67,35,22,33]))),xB=Be(()=>Fe(()=>import("./SalasDeReuniao-CFw2qs0j.js"),__vite__mapDeps([71,1,2,3,4,15,28,23,18,14,35]))),EB=Be(()=>Fe(()=>import("./AluguelDeEscritorio-DhrNs4We.js"),__vite__mapDeps([72,1,2,3,4,17,21,15,57,23,7,18,24,14,35]))),SB=Be(()=>Fe(()=>import("./BuiltToSuit-BPImr2-j.js"),__vite__mapDeps([73,1,2,3,4,24,14,17,7,18,35]))),TB=Be(()=>Fe(()=>import("./Login-DkUD0uwd.js"),__vite__mapDeps([74,3,75,76,19,77,78]))),CB=Be(()=>Fe(()=>import("./OAuthConsent-CFpddngQ.js"),__vite__mapDeps([79,3,19,78]))),kB=Be(()=>Fe(()=>import("./BlogAdmin-CCV_HFRZ.js"),__vite__mapDeps([80,81,34,3,67,2,45,17,56,13,43,9,75,29,82,10,5,38,20]))),AB=Be(()=>Fe(()=>import("./BlogAdminLogin-CQO7ofCc.js"),__vite__mapDeps([83,3,75,76,19,77,38,78]))),G_=Be(()=>Fe(()=>import("./BlogAdminPostEdit-CXb5Og3-.js"),__vite__mapDeps([84,81,34,3,67,2,45,17,56,13,85,76,75,78,43,9,19,66,18,10,30,16,4,50]))),RB=Be(()=>Fe(()=>import("./MediaAdmin-DzeaIHCN.js"),__vite__mapDeps([86,81,34,3,67,2,45,17,56,13,8,9,10,82,20]))),Q_=Be(()=>Fe(()=>import("./MediaMentionEdit-DmOX_X7J.js"),__vite__mapDeps([87,81,34,3,67,2,45,17,56,13,85,76,75,78,8,9,19]))),bo=Be(()=>Fe(()=>import("./ProtectedRoute-BfCG4OjT.js"),__vite__mapDeps([88,78]))),PB=new dM,OB=()=>(iS(),null),IB=()=>L.jsx(fM,{client:PB,children:L.jsx(rB,{children:L.jsxs(zj,{children:[L.jsx(U$,{}),L.jsx(pD,{}),L.jsxs(uU,{children:[L.jsx(_U,{}),L.jsx(OB,{}),L.jsx(sB,{}),L.jsx(k.Suspense,{fallback:L.jsx("div",{className:"min-h-screen bg-background"}),children:L.jsxs(tU,{children:[L.jsx(Ne,{path:"/",element:L.jsx(oB,{})}),L.jsx(Ne,{path:"/coworking",element:L.jsx(hB,{})}),L.jsx(Ne,{path:"/coworking-pinheiros",element:L.jsx(pB,{})}),L.jsx(Ne,{path:"/coworking-brooklin",element:L.jsx(gB,{})}),L.jsx(Ne,{path:"/salas-de-reuniao",element:L.jsx(xB,{})}),L.jsx(Ne,{path:"/escritorios-sob-medida",element:L.jsx(lB,{})}),L.jsx(Ne,{path:"/aluguel-de-escritorio",element:L.jsx(EB,{})}),L.jsx(Ne,{path:"/built-to-suit",element:L.jsx(SB,{})}),L.jsx(Ne,{path:"/eventos",element:L.jsx(mB,{})}),L.jsx(Ne,{path:"/auditorio",element:L.jsx(ZM,{to:"/eventos",replace:!0})}),L.jsx(Ne,{path:"/lpauditorio",element:L.jsx(vB,{})}),L.jsx(Ne,{path:"/quem-somos",element:L.jsx(uB,{})}),L.jsx(Ne,{path:"/contato",element:L.jsx(cB,{})}),L.jsx(Ne,{path:"/enderecofiscal",element:L.jsx(yB,{})}),L.jsx(Ne,{path:"/escritorio-virtual",element:L.jsx(bB,{})}),L.jsx(Ne,{path:"/fiscaladdress",element:L.jsx(wB,{})}),L.jsx(Ne,{path:"/case-mgi",element:L.jsx(_B,{})}),L.jsx(Ne,{path:"/blog",element:L.jsx(dB,{})}),L.jsx(Ne,{path:"/blog/:slug",element:L.jsx(fB,{})}),L.jsx(Ne,{path:"/login",element:L.jsx(TB,{})}),L.jsx(Ne,{path:"/.lovable/oauth/consent",element:L.jsx(CB,{})}),L.jsx(Ne,{path:"/blog/admin/login",element:L.jsx(AB,{})}),L.jsx(Ne,{path:"/blog/admin",element:L.jsx(bo,{children:L.jsx(kB,{})})}),L.jsx(Ne,{path:"/blog/admin/posts/new",element:L.jsx(bo,{children:L.jsx(G_,{})})}),L.jsx(Ne,{path:"/blog/admin/posts/:id",element:L.jsx(bo,{children:L.jsx(G_,{})})}),L.jsx(Ne,{path:"/blog/admin/media",element:L.jsx(bo,{children:L.jsx(RB,{})})}),L.jsx(Ne,{path:"/blog/admin/media/new",element:L.jsx(bo,{children:L.jsx(Q_,{})})}),L.jsx(Ne,{path:"/blog/admin/media/:id",element:L.jsx(bo,{children:L.jsx(Q_,{})})}),L.jsx(Ne,{path:"*",element:L.jsx(aB,{})})]})})]})]})})});document.documentElement.style.scrollBehavior="smooth";vx(document.getElementById("root")).render(L.jsx(Sx,{children:L.jsx(IB,{})}));typeof window<"u"&&requestAnimationFrame(()=>{setTimeout(()=>{document.dispatchEvent(new Event("render-event"))},2e3)});export{u_ as $,Ej as A,Si as B,Sj as C,Rm as D,X2 as E,zs as F,nu as G,dd as H,Or as I,jB as J,Ix as K,VB as L,mx as M,WB as N,Cx as O,an as P,Tx as Q,V as R,sB as S,Ax as T,mj as U,Fd as V,Gd as W,r$ as X,eM as Y,Kj as Z,zB as _,qs as a,rr as a0,Qd as a1,Vj as a2,qj as a3,FE as a4,iM as a5,Qj as a6,Vt as a7,jl as a8,lM as a9,hI as aa,S_ as ab,Yd as ac,GB as ad,NB as ae,ZM as af,a2 as b,n$ as c,mU as d,yU as e,HB as f,Jm as g,DB as h,rS as i,L as j,kx as k,bE as l,wt as m,Pm as n,fr as o,Tj as p,P2 as q,k as r,os as s,gU as t,ss as u,MB as v,p2 as w,KB as x,qB as y,QB as z};

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.